vendor: 1,770 bytes, lines 1-5
1const __vite__fileDeps=["assets/AllTestsView-C8GAl-D4.js","assets/LoadSpinner-D6IoUV1H.js","assets/business.init-OZqXoD9x.js","assets/LoadSpinner-C3URmpq5.css","assets/card.esm-Bo14KZVe.js","assets/AllTestsView-x2_W1Nlw.css","assets/LoginView-BrxBZojC.js","assets/inputtext.esm-CQIihQy_.js","assets/checkbox.esm-C7-UyY38.js","assets/LoginView-wBG9u0k2.css","assets/LoginRedirectView-DTqjslrC.js","assets/LoginRedirectView-BtnlI0MS.css","assets/AfterRegisterRedirectView-DArQZt9g.js","assets/AfterRegisterRedirectView-ClFgC0fa.css","assets/TestView-9omyLGow.js","assets/useCurrentTest-BfFCBxHy.js","assets/TestView-DZq-V1Ha.css","assets/ResultView-BJ6fvf8l.js","assets/ResultView-CNxFyNia.css","assets/NotFoundView-ClP7-0-E.js","assets/NotFoundView-CsfD1vEd.css","assets/AdminCabinetView-BV_Yzhee.js","assets/AdminCabinetView-CVN_KiVu.css","assets/TermsOfUseView-DTUhyZw2.js","assets/TermsOfUseView-v2qBZ9f9.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); 2(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();/** 3* @vue/shared v3.4.27 4* (c) 2018-present Yuxi (Evan) You and Vue contributors 5* @license MIT
6**//*! #__NO_SIDE_EFFECTS__ */function Lc(t,e){const n=new Set(t.split(","));return r=>n.has(r)}const He={},Pi=[],en=()=>{},$0=()=>!1,il=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Nc=t=>t.startsWith("onUpdate:"),rt=Object.assign,Vc=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},F0=Object.prototype.hasOwnProperty,Ce=(t,e)=>F0.call(t,e),de=Array.isArray,Ri=t=>sl(t)==="[object Map]",tg=t=>sl(t)==="[object Set]",ve=t=>typeof t=="function",Ye=t=>typeof t=="string",li=t=>typeof t=="symbol",ze=t=>t!==null&&typeof t=="object",ng=t=>(ze(t)||ve(t))&&ve(t.then)&&ve(t.catch),rg=Object.prototype.toString,sl=t=>rg.call(t),U0=t=>sl(t).slice(8,-1),ig=t=>sl(t)==="[object Object]",Mc=t=>Ye(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Is=Lc(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ol=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},B0=/-(\w)/g,Tn=ol(t=>t.replace(B0,(e,n)=>n?n.toUpperCase():"")),j0=/\B([A-Z])/g,ui=ol(t=>t.replace(j0,"-$1").toLowerCase()),al=ol(t=>t.charAt(0).toUpperCase()+t.slice(1)),ma=ol(t=>t?`on${al(t)}`:""),Er=(t,e)=>!Object.is(t,e),ru=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},sg=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},H0=t=>{const e=parseFloat(t);return isNaN(e)?t:e},z0=t=>{const e=Ye(t)?Number(t):NaN;return isNaN(e)?t:e};let of;const og=()=>
vendor: 1,425 bytes, lines 6-9
6of||(of=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ll(t){if(de(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],i=Ye(r)?G0(r):ll(r);if(i)for(const s in i)e[s]=i[s]}return e}else if(Ye(t)||ze(t))return t}const q0=/;(?![^(]*\))/g,W0=/:([^]+)/,K0=/\/\*[^]*?\*\//g;function G0(t){const e={};return t.replace(K0,"").split(q0).forEach(n=>{if(n){const r=n.split(W0);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function Mt(t){let e="";if(Ye(t))e=t;else if(de(t))for(let n=0;n<t.length;n++){const r=Mt(t[n]);r&&(e+=r+" ")}else if(ze(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function ag(t){if(!t)return null;let{class:e,style:n}=t;return e&&!Ye(e)&&(t.class=Mt(e)),n&&(t.style=ll(n)),t}const Q0="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Y0=Lc(Q0);function lg(t){return!!t||t===""}const In=t=>Ye(t)?t:t==null?"":de(t)||ze(t)&&(t.toString===rg||!ve(t.toString))?JSON.stringify(t,ug,2):String(t),ug=(t,e)=>e&&e.__v_isRef?ug(t,e.value):Ri(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,i],s)=>(n[iu(r,s)+" =>"]=i,n),{})}:tg(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>iu(n))}:li(e)?iu(e):ze(e)&&!de(e)&&!ig(e)?String(e):e,iu=(t,e="")=>{var n;return li(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/** 7* @vue/reactivity v3.4.27 8* (c) 2018-present Yuxi (Evan) You and Vue contributors 9* @license MIT
vendor: 19,183 bytes, lines 10-14
10**/let ln;class cg{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ln,!e&&ln&&(this.index=(ln.scopes||(ln.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=ln;try{return ln=this,e()}finally{ln=n}}}on(){ln=this}off(){ln=this.parent}stop(e){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function X0(t){return new cg(t)}function J0(t,e=ln){e&&e.active&&e.effects.push(t)}function Z0(){return ln}let Gr;class $c{constructor(e,n,r,i){this.fn=e,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,J0(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Rr();for(let e=0;e<this._depsLength;e++){const n=this.deps[e];if(n.computed&&(eb(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Or()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=mr,n=Gr;try{return mr=!0,Gr=this,this._runnings++,af(this),this.fn()}finally{lf(this),this._runnings--,Gr=n,mr=e}}stop(){this.active&&(af(this),lf(this),this.onStop&&this.onStop(),this.active=!1)}}function eb(t){return t.value}function af(t){t._trackId++,t._depsLength=0}function lf(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)hg(t.deps[e],t);t.deps.length=t._depsLength}}function hg(t,e){const n=t.get(e);n!==void 0&&e._trackId!==n&&(t.delete(e),t.size===0&&t.cleanup())}let mr=!0,$u=0;const dg=[];function Rr(){dg.push(mr),mr=!1}function Or(){const t=dg.pop();mr=t===void 0?!0:t}function Fc(){$u++}function Uc(){for($u--;!$u&&Fu.length;)Fu.shift()()}function fg(t,e,n){if(e.get(t)!==t._trackId){e.set(t,t._trackId);const r=t.deps[t._depsLength];r!==e?(r&&hg(r,t),t.deps[t._depsLength++]=e):t._depsLength++}}const Fu=[];function pg(t,e,n){Fc();for(const r of t.keys()){let i;r._dirtyLevel<e&&(i??(i=t.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=e),r._shouldSchedule&&(i??(i=t.get(r)===r._trackId))&&(r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&Fu.push(r.scheduler)))}Uc()}const mg=(t,e)=>{const n=new Map;return n.cleanup=t,n.computed=e,n},Uu=new WeakMap,Qr=Symbol(""),Bu=Symbol("");function $t(t,e,n){if(mr&&Gr){let r=Uu.get(t);r||Uu.set(t,r=new Map);let i=r.get(n);i||r.set(n,i=mg(()=>r.delete(n))),fg(Gr,i)}}function Fn(t,e,n,r,i,s){const o=Uu.get(t);if(!o)return;let l=[];if(e==="clear")l=[...o.values()];else if(n==="length"&&de(t)){const u=Number(r);o.forEach((c,h)=>{(h==="length"||!li(h)&&h>=u)&&l.push(c)})}else switch(n!==void 0&&l.push(o.get(n)),e){case"add":de(t)?Mc(n)&&l.push(o.get("length")):(l.push(o.get(Qr)),Ri(t)&&l.push(o.get(Bu)));break;case"delete":de(t)||(l.push(o.get(Qr)),Ri(t)&&l.push(o.get(Bu)));break;case"set":Ri(t)&&l.push(o.get(Qr));break}Fc();for(const u of l)u&&pg(u,4);Uc()}const tb=Lc("__proto__,__v_isRef,__isVue"),gg=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(li)),uf=nb();function nb(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=Re(this);for(let s=0,o=this.length;s<o;s++)$t(r,"get",s+"");const i=r[e](...n);return i===-1||i===!1?r[e](...n.map(Re)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){Rr(),Fc();const r=Re(this)[e].apply(this,n);return Uc(),Or(),r}}),t}function rb(t){li(t)||(t=String(t));const e=Re(this);return $t(e,"has",t),e.hasOwnProperty(t)}class yg{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?gb:wg:s?bg:_g).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=de(e);if(!i){if(o&&Ce(uf,n))return Reflect.get(uf,n,r);if(n==="hasOwnProperty")return rb}const l=Reflect.get(e,n,r);return(li(n)?gg.has(n):tb(n))||(i||$t(e,"get",n),s)?l:Ft(l)?o&&Mc(n)?l:l.value:ze(l)?i?Hc(l):Gi(l):l}}class vg extends yg{constructor(e=!1){super(!1,e)}set(e,n,r,i){let s=e[n];if(!this._isShallow){const u=zs(s);if(!xa(r)&&!zs(r)&&(s=Re(s),r=Re(r)),!de(e)&&Ft(s)&&!Ft(r))return u?!1:(s.value=r,!0)}const o=de(e)&&Mc(n)?Number(n)<e.length:Ce(e,n),l=Reflect.set(e,n,r,i);return e===Re(i)&&(o?Er(r,s)&&Fn(e,"set",n,r):Fn(e,"add",n,r)),l}deleteProperty(e,n){const r=Ce(e,n);e[n];const i=Reflect.deleteProperty(e,n);return i&&r&&Fn(e,"delete",n,void 0),i}has(e,n){const r=Reflect.has(e,n);return(!li(n)||!gg.has(n))&&$t(e,"has",n),r}ownKeys(e){return $t(e,"iterate",de(e)?"length":Qr),Reflect.ownKeys(e)}}class ib extends yg{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const sb=new vg,ob=new ib,ab=new vg(!0);const Bc=t=>t,ul=t=>Reflect.getPrototypeOf(t);function Yo(t,e,n=!1,r=!1){t=t.__v_raw;const i=Re(t),s=Re(e);n||(Er(e,s)&&$t(i,"get",e),$t(i,"get",s));const{has:o}=ul(i),l=r?Bc:n?Wc:qs;if(o.call(i,e))return l(t.get(e));if(o.call(i,s))return l(t.get(s));t!==i&&t.get(e)}function Xo(t,e=!1){const n=this.__v_raw,r=Re(n),i=Re(t);return e||(Er(t,i)&&$t(r,"has",t),$t(r,"has",i)),t===i?n.has(t):n.has(t)||n.has(i)}function Jo(t,e=!1){return t=t.__v_raw,!e&&$t(Re(t),"iterate",Qr),Reflect.get(t,"size",t)}function cf(t){t=Re(t);const e=Re(this);return ul(e).has.call(e,t)||(e.add(t),Fn(e,"add",t,t)),this}function hf(t,e){e=Re(e);const n=Re(this),{has:r,get:i}=ul(n);let s=r.call(n,t);s||(t=Re(t),s=r.call(n,t));const o=i.call(n,t);return n.set(t,e),s?Er(e,o)&&Fn(n,"set",t,e):Fn(n,"add",t,e),this}function df(t){const e=Re(this),{has:n,get:r}=ul(e);let i=n.call(e,t);i||(t=Re(t),i=n.call(e,t)),r&&r.call(e,t);const s=e.delete(t);return i&&Fn(e,"delete",t,void 0),s}function ff(){const t=Re(this),e=t.size!==0,n=t.clear();return e&&Fn(t,"clear",void 0,void 0),n}function Zo(t,e){return function(r,i){const s=this,o=s.__v_raw,l=Re(o),u=e?Bc:t?Wc:qs;return!t&&$t(l,"iterate",Qr),o.forEach((c,h)=>r.call(i,u(c),u(h),s))}}function ea(t,e,n){return function(...r){const i=this.__v_raw,s=Re(i),o=Ri(s),l=t==="entries"||t===Symbol.iterator&&o,u=t==="keys"&&o,c=i[t](...r),h=n?Bc:e?Wc:qs;return!e&&$t(s,"iterate",u?Bu:Qr),{next(){const{value:p,done:m}=c.next();return m?{value:p,done:m}:{value:l?[h(p[0]),h(p[1])]:h(p),done:m}},[Symbol.iterator](){return this}}}}function Jn(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function lb(){const t={get(s){return Yo(this,s)},get size(){return Jo(this)},has:Xo,add:cf,set:hf,delete:df,clear:ff,forEach:Zo(!1,!1)},e={get(s){return Yo(this,s,!1,!0)},get size(){return Jo(this)},has:Xo,add:cf,set:hf,delete:df,clear:ff,forEach:Zo(!1,!0)},n={get(s){return Yo(this,s,!0)},get size(){return Jo(this,!0)},has(s){return Xo.call(this,s,!0)},add:Jn("add"),set:Jn("set"),delete:Jn("delete"),clear:Jn("clear"),forEach:Zo(!0,!1)},r={get(s){return Yo(this,s,!0,!0)},get size(){return Jo(this,!0)},has(s){return Xo.call(this,s,!0)},add:Jn("add"),set:Jn("set"),delete:Jn("delete"),clear:Jn("clear"),forEach:Zo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{t[s]=ea(s,!1,!1),n[s]=ea(s,!0,!1),e[s]=ea(s,!1,!0),r[s]=ea(s,!0,!0)}),[t,n,e,r]}const[ub,cb,hb,db]=lb();function jc(t,e){const n=e?t?db:hb:t?cb:ub;return(r,i,s)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?r:Reflect.get(Ce(n,i)&&i in r?n:r,i,s)}const fb={get:jc(!1,!1)},pb={get:jc(!1,!0)},mb={get:jc(!0,!1)};const _g=new WeakMap,bg=new WeakMap,wg=new WeakMap,gb=new WeakMap;function yb(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vb(t){return t.__v_skip||!Object.isExtensible(t)?0:yb(U0(t))}function Gi(t){return zs(t)?t:zc(t,!1,sb,fb,_g)}function Eg(t){return zc(t,!1,ab,pb,bg)}function Hc(t){return zc(t,!0,ob,mb,wg)}function zc(t,e,n,r,i){if(!ze(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=i.get(t);if(s)return s;const o=vb(t);if(o===0)return t;const l=new Proxy(t,o===2?r:n);return i.set(t,l),l}function As(t){return zs(t)?As(t.__v_raw):!!(t&&t.__v_isReactive)}function zs(t){return!!(t&&t.__v_isReadonly)}function xa(t){return!!(t&&t.__v_isShallow)}function Tg(t){return t?!!t.__v_raw:!1}function Re(t){const e=t&&t.__v_raw;return e?Re(e):t}function qc(t){return Object.isExtensible(t)&&sg(t,"__v_skip",!0),t}const qs=t=>ze(t)?Gi(t):t,Wc=t=>ze(t)?Hc(t):t;class Ig{constructor(e,n,r,i){this.getter=e,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new $c(()=>e(this._value),()=>ga(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const e=Re(this);return(!e._cacheable||e.effect.dirty)&&Er(e._value,e._value=e.effect.run())&&ga(e,4),Ag(e),e.effect._dirtyLevel>=2&&ga(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function _b(t,e,n=!1){let r,i;const s=ve(t);return s?(r=t,i=en):(r=t.get,i=t.set),new Ig(r,i,s||!i,n)}function Ag(t){var e;mr&&Gr&&(t=Re(t),fg(Gr,(e=t.dep)!=null?e:t.dep=mg(()=>t.dep=void 0,t instanceof Ig?t:void 0)))}function ga(t,e=4,n){t=Re(t);const r=t.dep;r&&pg(r,e)}function Ft(t){return!!(t&&t.__v_isRef===!0)}function cn(t){return Sg(t,!1)}function bb(t){return Sg(t,!0)}function Sg(t,e){return Ft(t)?t:new wb(t,e)}class wb{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:Re(e),this._value=n?e:qs(e)}get value(){return Ag(this),this._value}set value(e){const n=this.__v_isShallow||xa(e)||zs(e);e=n?e:Re(e),Er(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:qs(e),ga(this,4))}}function me(t){return Ft(t)?t.value:t}const Eb={get:(t,e,n)=>me(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return Ft(i)&&!Ft(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function Cg(t){return As(t)?t:new Proxy(t,Eb)}/** 11* @vue/runtime-core v3.4.27 12* (c) 2018-present Yuxi (Evan) You and Vue contributors 13* @license MIT 14**/function gr(t,e,n,r){try{return r?t(...r):t()}catch(i){cl(i,e,n)}}function nn(t,e,n,r){if(ve(t)){const i=gr(t,e,n,r);return i&&ng(i)&&i.catch(s=>{cl(s,e,n)}),i}if(de(t)){const i=[];for(let s=0;s<t.length;s++)i.push(nn(t[s],e,n,r));return i}}function cl(t,e,n,r=!0){const i=e?e.vnode:null;if(e){let s=e.parent;const o=e.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const c=s.ec;if(c){for(let h=0;h<c.length;h++)if(c[h](t,o,l)===!1)return}s=s.parent}const u=e.appContext.config.errorHandler;if(u){Rr(),gr(u,null,10,[t,o,l]),Or();return}}Tb(t,n,i,r)}function Tb(t,e,n,r=!0){console.error(t)}let Ws=!1,ju=!1;const Pt=[];let yn=0;const Oi=[];let ir=null,Hr=0;const Pg=Promise.resolve();let Kc=null;function Gc(t){const e=Kc||Pg;return t?e.then(this?t.bind(this):t):e}function Ib(t){let e=yn+1,n=Pt.length;for(;e<n;){const r=e+n>>>1,i=Pt[r],s=Ks(i);s<t||s===t&&i.pre?e=r+1:n=r}return e}function Qc(t){(!Pt.length||!Pt.includes(t,Ws&&t.allowRecurse?yn+1:yn))&&(t.id==null?Pt.push(t):Pt.splice(Ib(t.id),0,t),Rg())}function Rg(){!Ws&&!ju&&(ju=!0,Kc=Pg.then(kg))}function Ab(t){const e=Pt.indexOf(t);e>yn&&Pt.splice(e,1)}function Sb(t){de(t)?Oi.push(...t):(!ir||!ir.includes(t,t.allowRecurse?Hr+1:Hr))&&Oi.push(t),Rg()}function pf(t,e,n=Ws?yn+1:0){for(;n<Pt.length;n++){const r=Pt[n];if(r&&r.pre){if(t&&r.id!==t.uid)continue;Pt.splice(n,1),n--,r()}}}function Og(t){if(Oi.length){const e=[...new Set(Oi)].sort((n,r)=>Ks(n)-Ks(r));if(Oi.length=0,ir){ir.push(...e);return}for(ir=e,Hr=0;Hr<ir.length;Hr++)ir[Hr]();ir=null,Hr=0}}const Ks=t=>t.id==null?1/0:t.id,Cb=(t,e)=>{const n=Ks(t)-Ks(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function kg(t){ju=!1,Ws=!0,Pt.sort(Cb);try{for(yn=0;yn<Pt.length;yn++){const e=Pt[yn];e&&e.active!==!1&&gr(e,null,14)}}finally{yn=0,Pt.length=0,Og(),Ws=!1,Kc=null,(Pt.length||Oi.length)&&kg()}}function Pb(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||He;let i=n;const s=e.startsWith("update:"),o=s&&e.slice(7);if(o&&o in r){const h=`${o==="modelValue"?"model":o}Modifiers`,{number:p,trim:m}=r[h]||He;m&&(i=n.map(y=>Ye(y)?y.trim():y)),p&&(i=n.map(H0))}let l,u=r[l=ma(e)]||r[l=ma(Tn(e))];!u&&s&&(u=r[l=ma(ui(e))]),u&&nn(u,t,6,i);const c=r[l+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,nn(c,t,6,i)}}function Dg(t,e,n=!1){const r=e.emitsCache,i=r.get(t);if(i!==void 0)return i;const s=t.emits;let o={},l=!1;if(!ve(t)){const u=c=>{const h=Dg(c,e,!0);h&&(l=!0,rt(o,h))};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}return!s&&!l?(ze(t)&&r.set(t,null),null):(de(s)?s.forEach(u=>o[u]=null):rt(o,s),ze(t)&&r.set(t,o),o)}function hl(t,e){return!t||!il(e)?!1:(e=e.slice(2).replace(/Once$/,""),Ce(t,e[0].toLowerCase()+e.slice(1))||Ce(t,ui(e))||Ce(t,e))}let lt=null,dl=null;function La(t){const e=lt;return lt=t,dl=t&&t.type.__scopeId||null,e}function Yc(t){dl=t}function Xc(){dl=null}function Ht(t,e=lt,n){if(!e||t._n)return t;const r=(...i)=>{r._d&&Pf(-1);const s=La(e);let o;try{o=t(...i)}finally{La(s),r._d&&Pf(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function su(t){const{type:e,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:o,attrs:l,emit:u,render:c,renderCache:h,props:p,data:m,setupState:y,ctx:C,inheritAttrs:R}=t,P=La(t);let k,x;try{if(n.shapeFlag&4){const j=i||r,Z=j;k=gn(c.call(Z,j,h,p,y,m,C)),x=l}else{const j=e;k=gn(j.length>1?j(p,{attrs:l,slots:o,emit:u}):j(p,null)),x=e.props?l:Rb(l)}}catch(j){Ds.length=0,cl(j,t,1),k=De(zt)}let N=k;if(x&&R!==!1){const j=Object.keys(x),{shapeFlag:Z}=N;j.length&&Z&7&&(s&&j.some(Nc)&&(x=Ob(x,s)),N=Ir(N,x,!1,!0))}return n.dirs&&(N=Ir(N,null,!1,!0),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition&&(N.transition=n.transition),k=N,La(P),k}const Rb=t=>{let e;for(const n in t)(n==="class"||n==="style"||il(n))&&((e||(e={}))[n]=t[n]);return e},Ob=(t,e)=>{const n={};for(const r in t)(!Nc(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function kb(t,e,n){const{props:r,children:i,component:s}=t,{props:o,children:l,patchFlag:u}=e,c=s.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return r?mf(r,o,c):!!o;if(u&8){const h=e.dynamicProps;for(let p=0;p<h.length;p++){const m=h[p];if(o[m]!==r[m]&&!hl(c,m))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:r===o?!1:r?o?mf(r,o,c):!0:!!o;return!1}function mf(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i<r.length;i++){const s=r[i];if(e[s]!==t[s]&&!hl(n,s))return!0}return!1}function Db({vnode:t,parent:e},n){for(;e;){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.el=t.el),r===t)(t=e.vnode).el=n,e=e.parent;else break}}const Jc="components",xb="directives";function Tr(t,e){return Zc(Jc,t,!0,e)||t}const xg=Symbol.for("v-ndc");function tn(t){return Ye(t)?Zc(Jc,t,!1)||t:t||xg}function Na(t){return Zc(xb,t)}function Zc(t,e,n=!0,r=!1){const i=lt||vt;if(i){const s=i.type;if(t===Jc){const l=S1(s,!1);if(l&&(l===e||l===Tn(e)||l===al(Tn(e))))return s}const o=gf(i[t]||s[t],e)||gf(i.appContext[t],e);return!o&&r?s:o}}function gf(t,e){return t&&(t[e]||t[Tn(e)]||t[al(Tn(e))])}const Lb=t=>t.__isSuspense;function Nb(t,e){e&&e.pendingBranch?de(t)?e.effects.push(...t):e.effects.push(t):Sb(t)}const Vb=Symbol.for("v-scx"),Mb=()=>rn(Vb),ta={};function Ss(t,e,n){return Lg(t,e,n)}function Lg(t,e,{immediate:n,deep:r,flush:i,once:s,onTrack:o,onTrigger:l}=He){if(e&&s){const z=e;e=(...A)=>{z(...A),Z()}}const u=vt,c=z=>r===!0?z:qr(z,r===!1?1:void 0);let h,p=!1,m=!1;if(Ft(t)?(h=()=>t.value,p=xa(t)):As(t)?(h=()=>c(t),p=!0):de(t)?(m=!0,p=t.some(z=>As(z)||xa(z)),h=()=>t.map(z=>{if(Ft(z))return z.value;if(As(z))return c(z);if(ve(z))return gr(z,u,2)})):ve(t)?e?h=()=>gr(t,u,2):h=()=>(y&&y(),nn(t,u,3,[C])):h=en,e&&r){const z=h;h=()=>qr(z())}let y,C=z=>{y=N.onStop=()=>{gr(z,u,4),y=N.onStop=void 0}},R;if(yl)if(C=en,e?n&&nn(e,u,3,[h(),m?[]:void 0,C]):h(),i==="sync"){const z=Mb();R=z.__watcherHandles||(z.__watcherHandles=[])}else return en;let P=m?new Array(t.length).fill(ta):ta;const k=()=>{if(!(!N.active||!N.dirty))if(e){const z=N.run();(r||p||(m?z.some((A,v)=>Er(A,P[v])):Er(z,P)))&&(y&&y(),nn(e,u,3,[z,P===ta?void 0:m&&P[0]===ta?[]:P,C]),P=z)}else N.run()};k.allowRecurse=!!e;let x;i==="sync"?x=k:i==="post"?x=()=>Nt(k,u&&u.suspense):(k.pre=!0,u&&(k.id=u.uid),x=()=>Qc(k));const N=new $c(h,en,x),j=Z0(),Z=()=>{N.stop(),j&&Vc(j.effects,N)};return e?n?k():P=N.run():i==="post"?Nt(N.run.bind(N),u&&u.suspense):N.run(),R&&R.push(Z),Z}function $b(t,e,n){const r=this.proxy,i=Ye(t)?t.includes(".")?Ng(r,t):()=>r[t]:t.bind(r,r);let s;ve(e)?s=e:(s=e.handler,n=e);const o=Eo(this),l=Lg(i,s.bind(r),n);return o(),l}function Ng(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function qr(t,e=1/0,n){if(e<=0||!ze(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),e--,Ft(t))qr(t.value,e,n);else if(de(t))for(let r=0;r<t.length;r++)qr(t[r],e,n);else if(tg(t)||Ri(t))t.forEach(r=>{qr(r,e,n)});else if(ig(t))for(const r in t)qr(t[r],e,n);return t}function Cs(t,e){if(lt===null)return t;const n=vl(lt)||lt.proxy,r=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[s,o,l,u=He]=e[i];s&&(ve(s)&&(s={mounted:s,updated:s}),s.deep&&qr(o),r.push({dir:s,instance:n,value:o,oldValue:void 0,arg:l,modifiers:u}))}return t}function $r(t,e,n,r){const i=t.dirs,s=e&&e.dirs;for(let o=0;o<i.length;o++){const l=i[o];s&&(l.oldValue=s[o].value);let u=l.dir[r];u&&(Rr(),nn(u,n,8,[t.el,l,t,e]),Or())}}const sr=Symbol("_leaveCb"),na=Symbol("_enterCb");function Vg(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ml(()=>{t.isMounted=!0}),Bg(()=>{t.isUnmounting=!0}),t}const Jt=[Function,Array],Mg={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Jt,onEnter:Jt,onAfterEnter:Jt,onEnterCancelled:Jt,onBeforeLeave:Jt,onLeave:Jt,onAfterLeave:Jt,onLeaveCancelled:Jt,onBeforeAppear:Jt,onAppear:Jt,onAfterAppear:Jt,onAppearCancelled:Jt},Fb={name:"BaseTransition",props:Mg,setup(t,{slots:e}){const n=sh(),r=Vg();return()=>{const i=e.default&&eh(e.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const m of i)if(m.type!==zt){s=m;break}}const o=Re(t),{mode:l}=o;if(r.isLeaving)return ou(s);const u=yf(s);if(!u)return ou(s);const c=Gs(u,o,r,n);Qs(u,c);const h=n.subTree,p=h&&yf(h);if(p&&p.type!==zt&&!zr(u,p)){const m=Gs(p,o,r,n);if(Qs(p,m),l==="out-in"&&u.type!==zt)return r.isLeaving=!0,m.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},ou(s);l==="in-out"&&u.type!==zt&&(m.delayLeave=(y,C,R)=>{const P=$g(r,p);P[String(p.key)]=p,y[sr]=()=>{C(),y[sr]=void 0,delete c.delayedLeave},c.delayedLeave=R})}return s}}},Ub=Fb;
vendor: 2,728 bytes, line 14
14function $g(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Gs(t,e,n,r){const{appear:i,mode:s,persisted:o=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:h,onBeforeLeave:p,onLeave:m,onAfterLeave:y,onLeaveCancelled:C,onBeforeAppear:R,onAppear:P,onAfterAppear:k,onAppearCancelled:x}=e,N=String(t.key),j=$g(n,t),Z=(v,b)=>{v&&nn(v,r,9,b)},z=(v,b)=>{const T=b[1];Z(v,b),de(v)?v.every(S=>S.length<=1)&&T():v.length<=1&&T()},A={mode:s,persisted:o,beforeEnter(v){let b=l;if(!n.isMounted)if(i)b=R||l;else return;v[sr]&&v[sr](!0);const T=j[N];T&&zr(t,T)&&T.el[sr]&&T.el[sr](),Z(b,[v])},enter(v){let b=u,T=c,S=h;if(!n.isMounted)if(i)b=P||u,T=k||c,S=x||h;else return;let I=!1;const w=v[na]=Le=>{I||(I=!0,Le?Z(S,[v]):Z(T,[v]),A.delayedLeave&&A.delayedLeave(),v[na]=void 0)};b?z(b,[v,w]):w()},leave(v,b){const T=String(t.key);if(v[na]&&v[na](!0),n.isUnmounting)return b();Z(p,[v]);let S=!1;const I=v[sr]=w=>{S||(S=!0,b(),w?Z(C,[v]):Z(y,[v]),v[sr]=void 0,j[T]===t&&delete j[T])};j[T]=t,m?z(m,[v,I]):I()},clone(v){return Gs(v,e,n,r)}};return A}function ou(t){if(fl(t))return t=Ir(t),t.children=null,t}function yf(t){if(!fl(t))return t;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&ve(n.default))return n.default()}}function Qs(t,e){t.shapeFlag&6&&t.component?Qs(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function eh(t,e=!1,n){let r=[],i=0;for(let s=0;s<t.length;s++){let o=t[s];const l=n==null?o.key:String(n)+String(o.key!=null?o.key:s);o.type===Fe?(o.patchFlag&128&&i++,r=r.concat(eh(o.children,e,l))):(e||o.type!==zt)&&r.push(l!=null?Ir(o,{key:l}):o)}if(i>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function kr(t,e){return ve(t)?rt({name:t.name},e,{setup:t}):t}const Ps=t=>!!t.type.__asyncLoader,fl=t=>t.type.__isKeepAlive;function Bb(t,e){Fg(t,"a",e)}function jb(t,e){Fg(t,"da",e)}function Fg(t,e,n=vt){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(pl(e,r,n),n){let i=n.parent;for(;i&&i.parent;)fl(i.parent.vnode)&&Hb(r,e,n,i),i=i.parent}}function Hb(t,e,n,r){const i=pl(e,t,r,!0);jg(()=>{Vc(r[e],i)},n)}function pl(t,e,n=vt,r=!1){if(n){const i=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;Rr();const l=Eo(n),u=nn(e,n,t,o);return l(),Or(),u});return r?i.unshift(s):i.push(s),s}}const Hn=t=>(e,n=vt)=>(!yl||t==="sp")&&pl(t,(...r)=>e(...r),n),zb=Hn("bm"),ml=Hn("m"),qb=Hn("bu"),Ug=Hn("u"),Bg=Hn("bum"),jg=Hn("um"),Wb=Hn("sp"),Kb=Hn("rtg"),Gb=Hn("rtc");function Qb(t,e=vt){pl("ec",t,e)}function ya(t,e,n,r){let i;const s=n;
vendor: 4,927 bytes, line 14
14if(de(t)||Ye(t)){i=new Array(t.length);for(let o=0,l=t.length;o<l;o++)i[o]=e(t[o],o,void 0,s)}else if(typeof t=="number"){i=new Array(t);for(let o=0;o<t;o++)i[o]=e(o+1,o,void 0,s)}else if(ze(t))if(t[Symbol.iterator])i=Array.from(t,(o,l)=>e(o,l,void 0,s));else{const o=Object.keys(t);i=new Array(o.length);for(let l=0,u=o.length;l<u;l++){const c=o[l];i[l]=e(t[c],c,l,s)}}else i=[];return i}function va(t,e){for(let n=0;n<e.length;n++){const r=e[n];if(de(r))for(let i=0;i<r.length;i++)t[r[i].name]=r[i].fn;else r&&(t[r.name]=r.key?(...i)=>{const s=r.fn(...i);return s&&(s.key=r.key),s}:r.fn)}return t}function yt(t,e,n={},r,i){if(lt.isCE||lt.parent&&Ps(lt.parent)&<.parent.isCE)return e!=="default"&&(n.name=e),De("slot",n,r&&r());let s=t[e];s&&s._c&&(s._d=!1),X();const o=s&&Hg(s(n)),l=Ne(Fe,{key:n.key||o&&o.key||`_${e}`},o||(r?r():[]),o&&t._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function Hg(t){return t.some(e=>Ma(e)?!(e.type===zt||e.type===Fe&&!Hg(e.children)):!0)?t:null}function Sk(t,e){const n={};for(const r in t)n[ma(r)]=t[r];return n}const Hu=t=>t?sy(t)?vl(t)||t.proxy:Hu(t.parent):null,Rs=rt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Hu(t.parent),$root:t=>Hu(t.root),$emit:t=>t.emit,$options:t=>th(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,Qc(t.update)}),$nextTick:t=>t.n||(t.n=Gc.bind(t.proxy)),$watch:t=>$b.bind(t)}),au=(t,e)=>t!==He&&!t.__isScriptSetup&&Ce(t,e),Yb={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:l,appContext:u}=t;let c;if(e[0]!=="$"){const y=o[e];if(y!==void 0)switch(y){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return s[e]}else{if(au(r,e))return o[e]=1,r[e];if(i!==He&&Ce(i,e))return o[e]=2,i[e];if((c=t.propsOptions[0])&&Ce(c,e))return o[e]=3,s[e];if(n!==He&&Ce(n,e))return o[e]=4,n[e];zu&&(o[e]=0)}}const h=Rs[e];let p,m;if(h)return e==="$attrs"&&$t(t.attrs,"get",""),h(t);if((p=l.__cssModules)&&(p=p[e]))return p;if(n!==He&&Ce(n,e))return o[e]=4,n[e];if(m=u.config.globalProperties,Ce(m,e))return m[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:s}=t;return au(i,e)?(i[e]=n,!0):r!==He&&Ce(r,e)?(r[e]=n,!0):Ce(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,propsOptions:s}},o){let l;return!!n[o]||t!==He&&Ce(t,o)||au(e,o)||(l=s[0])&&Ce(l,o)||Ce(r,o)||Ce(Rs,o)||Ce(i.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Ce(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function vf(t){return de(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let zu=!0;function Xb(t){const e=th(t),n=t.proxy,r=t.ctx;zu=!1,e.beforeCreate&&_f(e.beforeCreate,t,"bc");const{data:i,computed:s,methods:o,watch:l,provide:u,inject:c,created:h,beforeMount:p,mounted:m,beforeUpdate:y,updated:C,activated:R,deactivated:P,beforeDestroy:k,beforeUnmount:x,destroyed:N,unmounted:j,render:Z,renderTracked:z,renderTriggered:A,errorCaptured:v,serverPrefetch:b,expose:T,inheritAttrs:S,components:I,directives:w,filters:Le}=e;if(c&&Jb(c,r,null),o)for(const Te in o){const be=o[Te];ve(be)&&(r[Te]=be.bind(n))}if(i){const Te=i.call(n,n);ze(Te)&&(t.data=Gi(Te))}if(zu=!0,s)for(const Te in s){const be=s[Te],Ut=ve(be)?be.bind(n,n):ve(be.get)?be.get.bind(n,n):en,on=!ve(be)&&ve(be.set)?be.set.bind(n):en,Qt=dt({get:Ut,set:on});Object.defineProperty(r,Te,{enumerable:!0,configurable:!0,get:()=>Qt.value,set:Ke=>Qt.value=Ke})}if(l)for(const Te in l)zg(l[Te],r,n,Te);if(u){const Te=ve(u)?u.call(n):u;Reflect.ownKeys(Te).forEach(be=>{_a(be,Te[be])})}h&&_f(h,t,"c");function Be(Te,be){de(be)?be.forEach(Ut=>Te(Ut.bind(n))):be&&Te(be.bind(n))}if(Be(zb,p),Be(ml,m),Be(qb,y),Be(Ug,C),Be(Bb,R),Be(jb,P),Be(Qb,v),Be(Gb,z),Be(Kb,A),Be(Bg,x),Be(jg,j),Be(Wb,b),de(T))if(T.length){const Te=t.exposed||(t.exposed={});T.forEach(be=>{Object.defineProperty(Te,be,{get:()=>n[be],set:Ut=>n[be]=Ut})})}else t.exposed||(t.exposed={});Z&&t.render===en&&(t.render=Z),S!=null&&(t.inheritAttrs=S),I&&(t.components=I),w&&(t.directives=w)}function Jb(t,e,n=en){de(t)&&(t=qu(t));for(const r in t){const i=t[r];let s;ze(i)?"default"in i?s=rn(i.from||r,i.default,!0):s=rn(i.from||r):s=rn(i),Ft(s)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):e[r]=s}}function _f(t,e,n){nn(de(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function zg(t,e,n,r){const i=r.includes(".")?Ng(n,r):()=>n[r];if(Ye(t)){const s=e[t];ve(s)&&Ss(i,s)}else if(ve(t))Ss(i,t.bind(n));else if(ze(t))if(de(t))t.forEach(s=>zg(s,e,n,r));else{const s=ve(t.handler)?t.handler.bind(n):e[t.handler];ve(s)&&Ss(i,s,t)}}function th(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=t.appContext,l=s.get(e);let u;return l?u=l:!i.length&&!n&&!r?u=e:(u={}
vendor: 5,761 bytes, line 14
14,i.length&&i.forEach(c=>Va(u,c,o,!0)),Va(u,e,o)),ze(e)&&s.set(e,u),u}function Va(t,e,n,r=!1){const{mixins:i,extends:s}=e;s&&Va(t,s,n,!0),i&&i.forEach(o=>Va(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const l=Zb[o]||n&&n[o];t[o]=l?l(t[o],e[o]):e[o]}return t}const Zb={data:bf,props:wf,emits:wf,methods:bs,computed:bs,beforeCreate:xt,created:xt,beforeMount:xt,mounted:xt,beforeUpdate:xt,updated:xt,beforeDestroy:xt,beforeUnmount:xt,destroyed:xt,unmounted:xt,activated:xt,deactivated:xt,errorCaptured:xt,serverPrefetch:xt,components:bs,directives:bs,watch:t1,provide:bf,inject:e1};function bf(t,e){return e?t?function(){return rt(ve(t)?t.call(this,this):t,ve(e)?e.call(this,this):e)}:e:t}function e1(t,e){return bs(qu(t),qu(e))}function qu(t){if(de(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function xt(t,e){return t?[...new Set([].concat(t,e))]:e}function bs(t,e){return t?rt(Object.create(null),t,e):e}function wf(t,e){return t?de(t)&&de(e)?[...new Set([...t,...e])]:rt(Object.create(null),vf(t),vf(e??{})):e}function t1(t,e){if(!t)return e;if(!e)return t;const n=rt(Object.create(null),t);for(const r in e)n[r]=xt(t[r],e[r]);return n}function qg(){return{app:null,config:{isNativeTag:$0,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let n1=0;function r1(t,e){return function(r,i=null){ve(r)||(r=rt({},r)),i!=null&&!ze(i)&&(i=null);const s=qg(),o=new WeakSet;let l=!1;const u=s.app={_uid:n1++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:P1,get config(){return s.config},set config(c){},use(c,...h){return o.has(c)||(c&&ve(c.install)?(o.add(c),c.install(u,...h)):ve(c)&&(o.add(c),c(u,...h))),u},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),u},component(c,h){return h?(s.components[c]=h,u):s.components[c]},directive(c,h){return h?(s.directives[c]=h,u):s.directives[c]},mount(c,h,p){if(!l){const m=De(r,i);return m.appContext=s,p===!0?p="svg":p===!1&&(p=void 0),h&&e?e(m,c):t(m,c,p),l=!0,u._container=c,c.__vue_app__=u,vl(m.component)||m.component.proxy}},unmount(){l&&(t(null,u._container),delete u._container.__vue_app__)},provide(c,h){return s.provides[c]=h,u},runWithContext(c){const h=Os;Os=u;try{return c()}finally{Os=h}}};return u}}let Os=null;function _a(t,e){if(vt){let n=vt.provides;const r=vt.parent&&vt.parent.provides;r===n&&(n=vt.provides=Object.create(r)),n[t]=e}}function rn(t,e,n=!1){const r=vt||lt;if(r||Os){const i=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Os._context.provides;if(i&&t in i)return i[t];if(arguments.length>1)return n&&ve(e)?e.call(r&&r.proxy):e}}const Wg={},Kg=()=>Object.create(Wg),Gg=t=>Object.getPrototypeOf(t)===Wg;function i1(t,e,n,r=!1){const i={},s=Kg();t.propsDefaults=Object.create(null),Qg(t,e,i,s);for(const o in t.propsOptions[0])o in i||(i[o]=void 0);n?t.props=r?i:Eg(i):t.type.props?t.props=i:t.props=s,t.attrs=s}function s1(t,e,n,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=t,l=Re(i),[u]=t.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const h=t.vnode.dynamicProps;for(let p=0;p<h.length;p++){let m=h[p];if(hl(t.emitsOptions,m))continue;const y=e[m];if(u)if(Ce(s,m))y!==s[m]&&(s[m]=y,c=!0);else{const C=Tn(m);i[C]=Wu(u,l,C,y,t,!1)}else y!==s[m]&&(s[m]=y,c=!0)}}}else{Qg(t,e,i,s)&&(c=!0);let h;for(const p in l)(!e||!Ce(e,p)&&((h=ui(p))===p||!Ce(e,h)))&&(u?n&&(n[p]!==void 0||n[h]!==void 0)&&(i[p]=Wu(u,l,p,void 0,t,!0)):delete i[p]);if(s!==l)for(const p in s)(!e||!Ce(e,p))&&(delete s[p],c=!0)}c&&Fn(t.attrs,"set","")}function Qg(t,e,n,r){const[i,s]=t.propsOptions;let o=!1,l;if(e)for(let u in e){if(Is(u))continue;const c=e[u];let h;i&&Ce(i,h=Tn(u))?!s||!s.includes(h)?n[h]=c:(l||(l={}))[h]=c:hl(t.emitsOptions,u)||(!(u in r)||c!==r[u])&&(r[u]=c,o=!0)}if(s){const u=Re(n),c=l||He;for(let h=0;h<s.length;h++){const p=s[h];n[p]=Wu(i,u,p,c[p],t,!Ce(c,p))}}return o}function Wu(t,e,n,r,i,s){const o=t[n];if(o!=null){const l=Ce(o,"default");if(l&&r===void 0){const u=o.default;if(o.type!==Function&&!o.skipFactory&&ve(u)){const{propsDefaults:c}=i;if(n in c)r=c[n];else{const h=Eo(i);r=c[n]=u.call(null,e),h()}}else r=u}o[0]&&(s&&!l?r=!1:o[1]&&(r===""||r===ui(n))&&(r=!0))}return r}function Yg(t,e,n=!1){const r=e.propsCache,i=r.get(t);if(i)return i;const s=t.props,o={},l=[];let u=!1;if(!ve(t)){const h=p=>{u=!0;const[m,y]=Yg(p,e,!0);rt(o,m),y&&l.push(...y)};!n&&e.mixins.length&&e.mixins.forEach(h),t.extends&&h(t.extends),t.mixins&&t.mixins.forEach(h)}if(!s&&!u)return ze(t)&&r.set(t,Pi),Pi;if(de(s))for(let h=0;h<s.length;h++){const p=Tn(s[h]);Ef(p)&&(o[p]=He)}else if(s)for(const h in s){const p=Tn(h);if(Ef(p)){const m=s[h],y=o[p]=de(m)||ve(m)?{type:m}:rt({},m);if(y){const C=Af(Boolean,y.type),R=Af(String,y.type);y[0]=C>-1,y[1]=R<0||C<R,(C>-1||Ce(y,"default"))&&l.push(p)}}}const c=[o,l];return ze(t)&&r.set(t,c),c}function Ef(t){return t[0]!=="$"&&!Is(t)}function Tf(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function If(t,e){return Tf(t)===Tf(e)}function Af(t,e){return de(e)?e.findIndex(n=>If(n,t)):ve(e)&&If(e,t)?0:-1}const Xg=t=>t[0]==="_"||t==="$stable",nh=t=>de(t)?t.map(gn):[gn(t)],o1=(t,e,n)=>{if(e._n)return e;const r=Ht((...i)=>nh(e(...i)),n);return r._c=!1,r},Jg=(t,e,n)=>{const r=t._ctx;for(const i in t){if(Xg(i))continue;const s=t[i];if(ve(s))e[i]=o1(i,s,r);else if(s!=null){const o=nh(s);e[i]=()=>o}}},Zg=(t,e)=>{const n=nh(e);t.slots.default=()=>n},a1=(t,e)=>{const n=t.slots=Kg();if(t.vnode.shapeFlag&32){const r=e._;r?(rt(n,e),sg(n,"_",r,!0)):Jg(e,n)}else e&&Zg(t,e)},l1=(t,e,n)=>
vendor: 20,018 bytes, lines 14-17
14{const{vnode:r,slots:i}=t;let s=!0,o=He;if(r.shapeFlag&32){const l=e._;l?n&&l===1?s=!1:(rt(i,e),!n&&l===1&&delete i._):(s=!e.$stable,Jg(e,i)),o=e}else e&&(Zg(t,e),o={default:1});if(s)for(const l in i)!Xg(l)&&o[l]==null&&delete i[l]};function Ku(t,e,n,r,i=!1){if(de(t)){t.forEach((m,y)=>Ku(m,e&&(de(e)?e[y]:e),n,r,i));return}if(Ps(r)&&!i)return;const s=r.shapeFlag&4?vl(r.component)||r.component.proxy:r.el,o=i?null:s,{i:l,r:u}=t,c=e&&e.r,h=l.refs===He?l.refs={}:l.refs,p=l.setupState;if(c!=null&&c!==u&&(Ye(c)?(h[c]=null,Ce(p,c)&&(p[c]=null)):Ft(c)&&(c.value=null)),ve(u))gr(u,l,12,[o,h]);else{const m=Ye(u),y=Ft(u);if(m||y){const C=()=>{if(t.f){const R=m?Ce(p,u)?p[u]:h[u]:u.value;i?de(R)&&Vc(R,s):de(R)?R.includes(s)||R.push(s):m?(h[u]=[s],Ce(p,u)&&(p[u]=h[u])):(u.value=[s],t.k&&(h[t.k]=u.value))}else m?(h[u]=o,Ce(p,u)&&(p[u]=o)):y&&(u.value=o,t.k&&(h[t.k]=o))};o?(C.id=-1,Nt(C,n)):C()}}}const Nt=Nb;function u1(t){return c1(t)}function c1(t,e){const n=og();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:l,createComment:u,setText:c,setElementText:h,parentNode:p,nextSibling:m,setScopeId:y=en,insertStaticContent:C}=t,R=(_,E,D,$=null,V=null,W=null,Q=void 0,q=null,K=!!E.dynamicChildren)=>{if(_===E)return;_&&!zr(_,E)&&($=M(_),Ke(_,V,W,!0),_=null),E.patchFlag===-2&&(K=!1,E.dynamicChildren=null);const{type:B,ref:J,shapeFlag:ae}=E;switch(B){case gl:P(_,E,D,$);break;case zt:k(_,E,D,$);break;case ba:_==null&&x(E,D,$,Q);break;case Fe:I(_,E,D,$,V,W,Q,q,K);break;default:ae&1?Z(_,E,D,$,V,W,Q,q,K):ae&6?w(_,E,D,$,V,W,Q,q,K):(ae&64||ae&128)&&B.process(_,E,D,$,V,W,Q,q,K,te)}J!=null&&V&&Ku(J,_&&_.ref,W,E||_,!E)},P=(_,E,D,$)=>{if(_==null)r(E.el=l(E.children),D,$);else{const V=E.el=_.el;E.children!==_.children&&c(V,E.children)}},k=(_,E,D,$)=>{_==null?r(E.el=u(E.children||""),D,$):E.el=_.el},x=(_,E,D,$)=>{[_.el,_.anchor]=C(_.children,E,D,$,_.el,_.anchor)},N=({el:_,anchor:E},D,$)=>{let V;for(;_&&_!==E;)V=m(_),r(_,D,$),_=V;r(E,D,$)},j=({el:_,anchor:E})=>{let D;for(;_&&_!==E;)D=m(_),i(_),_=D;i(E)},Z=(_,E,D,$,V,W,Q,q,K)=>{E.type==="svg"?Q="svg":E.type==="math"&&(Q="mathml"),_==null?z(E,D,$,V,W,Q,q,K):b(_,E,V,W,Q,q,K)},z=(_,E,D,$,V,W,Q,q)=>{let K,B;const{props:J,shapeFlag:ae,transition:se,dirs:re}=_;if(K=_.el=o(_.type,W,J&&J.is,J),ae&8?h(K,_.children):ae&16&&v(_.children,K,null,$,V,lu(_,W),Q,q),re&&$r(_,null,$,"created"),A(K,_,_.scopeId,Q,$),J){for(const Se in J)Se!=="value"&&!Is(Se)&&s(K,Se,null,J[Se],W,_.children,$,V,ct);"value"in J&&s(K,"value",null,J.value,W),(B=J.onVnodeBeforeMount)&&mn(B,$,_)}re&&$r(_,null,$,"beforeMount");const ce=h1(V,se);ce&&se.beforeEnter(K),r(K,E,D),((B=J&&J.onVnodeMounted)||ce||re)&&Nt(()=>{B&&mn(B,$,_),ce&&se.enter(K),re&&$r(_,null,$,"mounted")},V)},A=(_,E,D,$,V)=>{if(D&&y(_,D),$)for(let W=0;W<$.length;W++)y(_,$[W]);if(V){let W=V.subTree;if(E===W){const Q=V.vnode;A(_,Q,Q.scopeId,Q.slotScopeIds,V.parent)}}},v=(_,E,D,$,V,W,Q,q,K=0)=>{for(let B=K;B<_.length;B++){const J=_[B]=q?or(_[B]):gn(_[B]);R(null,J,E,D,$,V,W,Q,q)}},b=(_,E,D,$,V,W,Q)=>{const q=E.el=_.el;let{patchFlag:K,dynamicChildren:B,dirs:J}=E;K|=_.patchFlag&16;const ae=_.props||He,se=E.props||He;let re;if(D&&Fr(D,!1),(re=se.onVnodeBeforeUpdate)&&mn(re,D,E,_),J&&$r(E,_,D,"beforeUpdate"),D&&Fr(D,!0),B?T(_.dynamicChildren,B,q,D,$,lu(E,V),W):Q||be(_,E,q,null,D,$,lu(E,V),W,!1),K>0){if(K&16)S(q,E,ae,se,D,$,V);else if(K&2&&ae.class!==se.class&&s(q,"class",null,se.class,V),K&4&&s(q,"style",ae.style,se.style,V),K&8){const ce=E.dynamicProps;for(let Se=0;Se<ce.length;Se++){const Me=ce[Se],tt=ae[Me],Bt=se[Me];(Bt!==tt||Me==="value")&&s(q,Me,tt,Bt,V,_.children,D,$,ct)}}K&1&&_.children!==E.children&&h(q,E.children)}else!Q&&B==null&&S(q,E,ae,se,D,$,V);((re=se.onVnodeUpdated)||J)&&Nt(()=>{re&&mn(re,D,E,_),J&&$r(E,_,D,"updated")},$)},T=(_,E,D,$,V,W,Q)=>{for(let q=0;q<E.length;q++){const K=_[q],B=E[q],J=K.el&&(K.type===Fe||!zr(K,B)||K.shapeFlag&70)?p(K.el):D;R(K,B,J,null,$,V,W,Q,!0)}},S=(_,E,D,$,V,W,Q)=>{if(D!==$){if(D!==He)for(const q in D)!Is(q)&&!(q in $)&&s(_,q,D[q],null,Q,E.children,V,W,ct);for(const q in $){if(Is(q))continue;const K=$[q],B=D[q];K!==B&&q!=="value"&&s(_,q,B,K,Q,E.children,V,W,ct)}"value"in $&&s(_,"value",D.value,$.value,Q)}},I=(_,E,D,$,V,W,Q,q,K)=>{const B=E.el=_?_.el:l(""),J=E.anchor=_?_.anchor:l("");let{patchFlag:ae,dynamicChildren:se,slotScopeIds:re}=E;re&&(q=q?q.concat(re):re),_==null?(r(B,D,$),r(J,D,$),v(E.children||[],D,J,V,W,Q,q,K)):ae>0&&ae&64&&se&&_.dynamicChildren?(T(_.dynamicChildren,se,D,V,W,Q,q),(E.key!=null||V&&E===V.subTree)&&rh(_,E,!0)):be(_,E,D,J,V,W,Q,q,K)},w=(_,E,D,$,V,W,Q,q,K)=>{E.slotScopeIds=q,_==null?E.shapeFlag&512?V.ctx.activate(E,D,$,Q,K):Le(E,D,$,V,W,Q,K):pt(_,E,K)},Le=(_,E,D,$,V,W,Q)=>{const q=_.component=w1(_,$,V);if(fl(_)&&(q.ctx.renderer=te),E1(q),q.asyncDep){if(V&&V.registerDep(q,Be),!_.el){const K=q.subTree=De(zt);k(null,K,E,D)}}else Be(q,_,E,D,V,W,Q)},pt=(_,E,D)=>{const $=E.component=_.component;if(kb(_,E,D))if($.asyncDep&&!$.asyncResolved){Te($,E,D);return}else $.next=E,Ab($.update),$.effect.dirty=!0,$.update();else E.el=_.el,$.vnode=E},Be=(_,E,D,$,V,W,Q)=>{const q=()=>{if(_.isMounted){let{next:J,bu:ae,u:se,parent:re,vnode:ce}=_;{const Yt=ey(_);if(Yt){J&&(J.el=ce.el,Te(_,J,Q)),Yt.asyncDep.then(()=>{_.isUnmounted||q()});return}}let Se=J,Me;Fr(_,!1),J?(J.el=ce.el,Te(_,J,Q)):J=ce,ae&&ru(ae),(Me=J.props&&J.props.onVnodeBeforeUpdate)&&mn(Me,re,J,ce),Fr(_,!0);const tt=su(_),Bt=_.subTree;_.subTree=tt,R(Bt,tt,p(Bt.el),M(Bt),_,V,W),J.el=tt.el,Se===null&&Db(_,tt.el),se&&Nt(se,V),(Me=J.props&&J.props.onVnodeUpdated)&&Nt(()=>mn(Me,re,J,ce),V)}else{let J;const{el:ae,props:se}=E,{bm:re,m:ce,parent:Se}=_,Me=Ps(E);if(Fr(_,!1),re&&ru(re),!Me&&(J=se&&se.onVnodeBeforeMount)&&mn(J,Se,E),Fr(_,!0),ae&&Ve){const tt=()=>{_.subTree=su(_),Ve(ae,_.subTree,_,V,null)};Me?E.type.__asyncLoader().then(()=>!_.isUnmounted&&tt()):tt()}else{const tt=_.subTree=su(_);R(null,tt,D,$,_,V,W),E.el=tt.el}if(ce&&Nt(ce,V),!Me&&(J=se&&se.onVnodeMounted)){const tt=E;Nt(()=>mn(J,Se,tt),V)}(E.shapeFlag&256||Se&&Ps(Se.vnode)&&Se.vnode.shapeFlag&256)&&_.a&&Nt(_.a,V),_.isMounted=!0,E=D=$=null}},K=_.effect=new $c(q,en,()=>Qc(B),_.scope),B=_.update=()=>{K.dirty&&K.run()};B.id=_.uid,Fr(_,!0),B()},Te=(_,E,D)=>{E.component=_;const $=_.vnode.props;_.vnode=E,_.next=null,s1(_,E.props,$,D),l1(_,E.children,D),Rr(),pf(_),Or()},be=(_,E,D,$,V,W,Q,q,K=!1)=>{const B=_&&_.children,J=_?_.shapeFlag:0,ae=E.children,{patchFlag:se,shapeFlag:re}=E;if(se>0){if(se&128){on(B,ae,D,$,V,W,Q,q,K);return}else if(se&256){Ut(B,ae,D,$,V,W,Q,q,K);return}}re&8?(J&16&&ct(B,V,W),ae!==B&&h(D,ae)):J&16?re&16?on(B,ae,D,$,V,W,Q,q,K):ct(B,V,W,!0):(J&8&&h(D,""),re&16&&v(ae,D,$,V,W,Q,q,K))},Ut=(_,E,D,$,V,W,Q,q,K)=>{_=_||Pi,E=E||Pi;const B=_.length,J=E.length,ae=Math.min(B,J);let se;for(se=0;se<ae;se++){const re=E[se]=K?or(E[se]):gn(E[se]);R(_[se],re,D,null,V,W,Q,q,K)}B>J?ct(_,V,W,!0,!1,ae):v(E,D,$,V,W,Q,q,K,ae)},on=(_,E,D,$,V,W,Q,q,K)=>{let B=0;const J=E.length;let ae=_.length-1,se=J-1;for(;B<=ae&&B<=se;){const re=_[B],ce=E[B]=K?or(E[B]):gn(E[B]);if(zr(re,ce))R(re,ce,D,null,V,W,Q,q,K);else break;B++}for(;B<=ae&&B<=se;){const re=_[ae],ce=E[se]=K?or(E[se]):gn(E[se]);if(zr(re,ce))R(re,ce,D,null,V,W,Q,q,K);else break;ae--,se--}if(B>ae){if(B<=se){const re=se+1,ce=re<J?E[re].el:$;for(;B<=se;)R(null,E[B]=K?or(E[B]):gn(E[B]),D,ce,V,W,Q,q,K),B++}}else if(B>se)for(;B<=ae;)Ke(_[B],V,W,!0),B++;else{const re=B,ce=B,Se=new Map;for(B=ce;B<=se;B++){const Ot=E[B]=K?or(E[B]):gn(E[B]);Ot.key!=null&&Se.set(Ot.key,B)}let Me,tt=0;const Bt=se-ce+1;let Yt=!1,es=0;const Gn=new Array(Bt);for(B=0;B<Bt;B++)Gn[B]=0;for(B=re;B<=ae;B++){const Ot=_[B];if(tt>=Bt){Ke(Ot,V,W,!0);continue}let Xt;if(Ot.key!=null)Xt=Se.get(Ot.key);else for(Me=ce;Me<=se;Me++)if(Gn[Me-ce]===0&&zr(Ot,E[Me])){Xt=Me;break}Xt===void 0?Ke(Ot,V,W,!0):(Gn[Xt-ce]=B+1,Xt>=es?es=Xt:Yt=!0,R(Ot,E[Xt],D,null,V,W,Q,q,K),tt++)}const pi=Yt?d1(Gn):Pi;for(Me=pi.length-1,B=Bt-1;B>=0;B--){const Ot=ce+B,Xt=E[Ot],mi=Ot+1<J?E[Ot+1].el:$;Gn[B]===0?R(null,Xt,D,mi,V,W,Q,q,K):Yt&&(Me<0||B!==pi[Me]?Qt(Xt,D,mi,2):Me--)}}},Qt=(_,E,D,$,V=null)=>{const{el:W,type:Q,transition:q,children:K,shapeFlag:B}=_;if(B&6){Qt(_.component.subTree,E,D,$);return}if(B&128){_.suspense.move(E,D,$);return}if(B&64){Q.move(_,E,D,te);return}if(Q===Fe){r(W,E,D);for(let ae=0;ae<K.length;ae++)Qt(K[ae],E,D,$);r(_.anchor,E,D);return}if(Q===ba){N(_,E,D);return}if($!==2&&B&1&&q)if($===0)q.beforeEnter(W),r(W,E,D),Nt(()=>q.enter(W),V);else{const{leave:ae,delayLeave:se,afterLeave:re}=q,ce=()=>r(W,E,D),Se=()=>{ae(W,()=>{ce(),re&&re()})};se?se(W,ce,Se):Se()}else r(W,E,D)},Ke=(_,E,D,$=!1,V=!1)=>{const{type:W,props:Q,ref:q,children:K,dynamicChildren:B,shapeFlag:J,patchFlag:ae,dirs:se}=_;if(q!=null&&Ku(q,null,D,_,!0),J&256){E.ctx.deactivate(_);return}const re=J&1&&se,ce=!Ps(_);let Se;if(ce&&(Se=Q&&Q.onVnodeBeforeUnmount)&&mn(Se,E,_),J&6)pn(_.component,D,$);else{if(J&128){_.suspense.unmount(D,$);return}re&&$r(_,null,E,"beforeUnmount"),J&64?_.type.remove(_,E,D,V,te,$):B&&(W!==Fe||ae>0&&ae&64)?ct(B,E,D,!1,!0):(W===Fe&&ae&384||!V&&J&16)&&ct(K,E,D),$&&Ge(_)}(ce&&(Se=Q&&Q.onVnodeUnmounted)||re)&&Nt(()=>{Se&&mn(Se,E,_),re&&$r(_,null,E,"unmounted")},D)},Ge=_=>{const{type:E,el:D,anchor:$,transition:V}=_;if(E===Fe){Kn(D,$);return}if(E===ba){j(_);return}const W=()=>{i(D),V&&!V.persisted&&V.afterLeave&&V.afterLeave()};if(_.shapeFlag&1&&V&&!V.persisted){const{leave:Q,delayLeave:q}=V,K=()=>Q(D,W);q?q(_.el,W,K):K()}else W()},Kn=(_,E)=>{let D;for(;_!==E;)D=m(_),i(_),_=D;i(E)},pn=(_,E,D)=>{const{bum:$,scope:V,update:W,subTree:Q,um:q}=_;$&&ru($),V.stop(),W&&(W.active=!1,Ke(Q,_,E,D)),q&&Nt(q,E),Nt(()=>{_.isUnmounted=!0},E),E&&E.pendingBranch&&!E.isUnmounted&&_.asyncDep&&!_.asyncResolved&&_.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve())},ct=(_,E,D,$=!1,V=!1,W=0)=>{for(let Q=W;Q<_.length;Q++)Ke(_[Q],E,D,$,V)},M=_=>_.shapeFlag&6?M(_.component.subTree):_.shapeFlag&128?_.suspense.next():m(_.anchor||_.el);let ee=!1;const Y=(_,E,D)=>{_==null?E._vnode&&Ke(E._vnode,null,null,!0):R(E._vnode||null,_,E,null,null,null,D),ee||(ee=!0,pf(),Og(),ee=!1),E._vnode=_},te={p:R,um:Ke,m:Qt,r:Ge,mt:Le,mc:v,pc:be,pbc:T,n:M,o:t};let Ie,Ve;return{render:Y,hydrate:Ie,createApp:r1(Y,Ie)}}function lu({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Fr({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function h1(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function rh(t,e,n=!1){const r=t.children,i=e.children;if(de(r)&&de(i))for(let s=0;s<r.length;s++){const o=r[s];let l=i[s];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[s]=or(i[s]),l.el=o.el),n||rh(o,l)),l.type===gl&&(l.el=o.el)}}function d1(t){const e=t.slice(),n=[0];let r,i,s,o,l;const u=t.length;for(r=0;r<u;r++){const c=t[r];if(c!==0){if(i=n[n.length-1],t[i]<c){e[r]=i,n.push(r);continue}for(s=0,o=n.length-1;s<o;)l=s+o>>1,t[n[l]]<c?s=l+1:o=l;c<t[n[s]]&&(s>0&&(e[r]=n[s-1]),n[s]=r)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=e[o];return n}function ey(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:ey(e)}const f1=t=>t.__isTeleport,ks=t=>t&&(t.disabled||t.disabled===""),Sf=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Cf=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,Gu=(t,e)=>{const n=t&&t.to;return Ye(n)?e?e(n):null:n},p1={name:"Teleport",__isTeleport:!0,process(t,e,n,r,i,s,o,l,u,c){const{mc:h,pc:p,pbc:m,o:{insert:y,querySelector:C,createText:R,createComment:P}}=c,k=ks(e.props);let{shapeFlag:x,children:N,dynamicChildren:j}=e;if(t==null){const Z=e.el=R(""),z=e.anchor=R("");y(Z,n,r),y(z,n,r);const A=e.target=Gu(e.props,C),v=e.targetAnchor=R("");A&&(y(v,A),o==="svg"||Sf(A)?o="svg":(o==="mathml"||Cf(A))&&(o="mathml"));const b=(T,S)=>{x&16&&h(N,T,S,i,s,o,l,u)};k?b(n,z):A&&b(A,v)}else{e.el=t.el;const Z=e.anchor=t.anchor,z=e.target=t.target,A=e.targetAnchor=t.targetAnchor,v=ks(t.props),b=v?n:z,T=v?Z:A;if(o==="svg"||Sf(z)?o="svg":(o==="mathml"||Cf(z))&&(o="mathml"),j?(m(t.dynamicChildren,j,b,i,s,o,l),rh(t,e,!0)):u||p(t,e,b,T,i,s,o,l,!1),k)v?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):ra(e,n,Z,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const S=e.target=Gu(e.props,C);S&&ra(e,S,null,c,0)}else v&&ra(e,z,A,c,1)}ty(e)},remove(t,e,n,r,{um:i,o:{remove:s}},o){const{shapeFlag:l,children:u,anchor:c,targetAnchor:h,target:p,props:m}=t;if(p&&s(h),o&&s(c),l&16){const y=o||!ks(m);for(let C=0;C<u.length;C++){const R=u[C];i(R,e,n,y,!!R.dynamicChildren)}}},move:ra,hydrate:m1};function ra(t,e,n,{o:{insert:r},m:i},s=2){s===0&&r(t.targetAnchor,e,n);const{el:o,anchor:l,shapeFlag:u,children:c,props:h}=t,p=s===2;if(p&&r(o,e,n),(!p||ks(h))&&u&16)for(let m=0;m<c.length;m++)i(c[m],e,n,2);p&&r(l,e,n)}function m1(t,e,n,r,i,s,{o:{nextSibling:o,parentNode:l,querySelector:u}},c){const h=e.target=Gu(e.props,u);if(h){const p=h._lpa||h.firstChild;if(e.shapeFlag&16)if(ks(e.props))e.anchor=c(o(t),e,l(t),n,r,i,s),e.targetAnchor=p;else{e.anchor=o(t);let m=p;for(;m;)if(m=o(m),m&&m.nodeType===8&&m.data==="teleport anchor"){e.targetAnchor=m,h._lpa=e.targetAnchor&&o(e.targetAnchor);break}c(p,e,h,n,r,i,s)}ty(e)}return e.anchor&&o(e.anchor)}const g1=p1;function ty(t){const e=t.ctx;if(e&&e.ut){let n=t.children[0].el;for(;n&&n!==t.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",e.uid),n=n.nextSibling;e.ut()}}const Fe=Symbol.for("v-fgt"),gl=Symbol.for("v-txt"),zt=Symbol.for("v-cmt"),ba=Symbol.for("v-stc"),Ds=[];let un=null;function X(t=!1){Ds.push(un=t?null:[])}function y1(){Ds.pop(),un=Ds[Ds.length-1]||null}let Ys=1;function Pf(t){Ys+=t}function ny(t){return t.dynamicChildren=Ys>0?un||Pi:null,y1(),Ys>0&&un&&un.push(t),t}function ge(t,e,n,r,i,s){return ny(ie(t,e,n,r,i,s,!0))}function Ne(t,e,n,r,i){return ny(De(t,e,n,r,i,!0))}function Ma(t){return t?t.__v_isVNode===!0:!1}function zr(t,e){return t.type===e.type&&t.key===e.key}const ry=({key:t})=>t??null,wa=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Ye(t)||Ft(t)||ve(t)?{i:lt,r:t,k:e,f:!!n}:t:null);function ie(t,e=null,n=null,r=0,i=null,s=t===Fe?0:1,o=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&ry(e),ref:e&&wa(e),scopeId:dl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:lt};return l?(ih(u,n),s&128&&t.normalize(u)):n&&(u.shapeFlag|=Ye(n)?8:16),Ys>0&&!o&&un&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&un.push(u),u}const De=v1;function v1(t,e=null,n=null,r=0,i=null,s=!1){if((!t||t===xg)&&(t=zt),Ma(t)){const l=Ir(t,e,!0);return n&&ih(l,n),Ys>0&&!s&&un&&(l.shapeFlag&6?un[un.indexOf(t)]=l:un.push(l)),l.patchFlag|=-2,l}if(C1(t)&&(t=t.__vccOpts),e){e=iy(e);let{class:l,style:u}=e;l&&!Ye(l)&&(e.class=Mt(l)),ze(u)&&(Tg(u)&&!de(u)&&(u=rt({},u)),e.style=ll(u))}const o=Ye(t)?1:Lb(t)?128:f1(t)?64:ze(t)?4:ve(t)?2:0;return ie(t,e,n,r,i,o,s,!0)}function iy(t){return t?Tg(t)||Gg(t)?rt({},t):t:null}function Ir(t,e,n=!1,r=!1){const{props:i,ref:s,patchFlag:o,children:l,transition:u}=t,c=e?le(i||{},e):i,h={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&ry(c),ref:e&&e.ref?n&&s?de(s)?s.concat(wa(e)):[s,wa(e)]:wa(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Fe?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:u,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ir(t.ssContent),ssFallback:t.ssFallback&&Ir(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return u&&r&&(h.transition=u.clone(h)),h}function Ni(t=" ",e=0){return De(gl,null,t,e)}function Ck(t,e){const n=De(ba,null,t);return n.staticCount=e,n}function nt(t="",e=!1){return e?(X(),Ne(zt,null,t)):De(zt,null,t)}function gn(t){return t==null||typeof t=="boolean"?De(zt):de(t)?De(Fe,null,t.slice()):typeof t=="object"?or(t):De(gl,null,String(t))}function or(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ir(t)}function ih(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(de(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),ih(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!Gg(e)?e._ctx=lt:i===3&<&&(lt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ve(e)?(e={default:e,_ctx:lt},n=32):(e=String(e),r&64?(n=16,e=[Ni(e)]):n=8);t.children=e,t.shapeFlag|=n}function le(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const i in r)if(i==="class")e.class!==r.class&&(e.class=Mt([e.class,r.class]));else if(i==="style")e.style=ll([e.style,r.style]);else if(il(i)){const s=e[i],o=r[i];o&&s!==o&&!(de(s)&&s.includes(o))&&(e[i]=s?[].concat(s,o):o)}else i!==""&&(e[i]=r[i])}return e}function mn(t,e,n,r=null){nn(t,e,7,[n,r])}const _1=qg();let b1=0;function w1(t,e,n){const r=t.type,i=(e?e.appContext:t.appContext)||_1,s={uid:b1++,vnode:t,type:r,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new cg(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Yg(r,i),emitsOptions:Dg(r,i),emit:null,emitted:null,propsDefaults:He,inheritAttrs:r.inheritAttrs,ctx:He,data:He,props:He,attrs:He,slots:He,refs:He,setupState:He,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=e?e.root:s,s.emit=Pb.bind(null,s),t.ce&&t.ce(s),s}let vt=null;const sh=()=>vt||lt;let $a,Qu;{const t=og(),e=(n,r)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(r),s=>{i.length>1?i.forEach(o=>o(s)):i[0](s)}};$a=e("__VUE_INSTANCE_SETTERS__",n=>vt=n),Qu=e("__VUE_SSR_SETTERS__",n=>yl=n)}const Eo=t=>{const e=vt;return $a(t),t.scope.on(),()=>{t.scope.off(),$a(e)}},Rf=()=>{vt&&vt.scope.off(),$a(null)};function sy(t){return t.vnode.shapeFlag&4}let yl=!1;function E1(t,e=!1){e&&Qu(e);const{props:n,children:r}=t.vnode,i=sy(t);i1(t,n,i,e),a1(t,r);const s=i?T1(t,e):void 0;return e&&Qu(!1),s}function T1(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Yb);const{setup:r}=n;if(r){const i=t.setupContext=r.length>1?A1(t):null,s=Eo(t);Rr();const o=gr(r,t,0,[t.props,i]);if(Or(),s(),ng(o)){if(o.then(Rf,Rf),e)return o.then(l=>{Of(t,l,e)}).catch(l=>{cl(l,t,0)});t.asyncDep=o}else Of(t,o,e)}else oy(t,e)}function Of(t,e,n){ve(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:ze(e)&&(t.setupState=Cg(e)),oy(t,n)}let kf;function oy(t,e,n){const r=t.type;if(!t.render){if(!e&&kf&&!r.render){const i=r.template||th(t).template;if(i){const{isCustomElement:s,compilerOptions:o}=t.appContext.config,{delimiters:l,compilerOptions:u}=r,c=rt(rt({isCustomElement:s,delimiters:l},o),u);r.render=kf(i,c)}}t.render=r.render||en}{const i=Eo(t);Rr();try{Xb(t)}finally{Or(),i()}}}const I1={get(t,e){return $t(t,"get",""),t[e]}};function A1(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,I1),slots:t.slots,emit:t.emit,expose:e}}function vl(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Cg(qc(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Rs)return Rs[n](t)},has(e,n){return n in e||n in Rs}}))}function S1(t,e=!0){return ve(t)?t.displayName||t.name:t.name||e&&t.__name}function C1(t){return ve(t)&&"__vccOpts"in t}const dt=(t,e)=>_b(t,e,yl);function oh(t,e,n){const r=arguments.length;return r===2?ze(e)&&!de(e)?Ma(e)?De(t,null,[e]):De(t,e):De(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ma(n)&&(n=[n]),De(t,e,n))}const P1="3.4.27";/** 15* @vue/runtime-dom v3.4.27 16* (c) 2018-present Yuxi (Evan) You and Vue contributors 17* @license MIT
18**/const R1="http://www.w3.org/2000/svg",O1="http://www.w3.org/1998/Math/MathML",ar=typeof document<"u"?document:null,Df=ar&&ar.createElement("template"),k1={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e==="svg"?ar.createElementNS(R1,t):e==="mathml"?ar.createElementNS(O1,t):ar.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:t=>ar.createTextNode(t),createComment:t=>ar.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>ar.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,i,s){const o=n?n.previousSibling:e.lastChild;if(i&&(i===s||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{Df.innerHTML=r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t;const l=Df.content;if(r==="svg"||r==="mathml"){const u=l.firstChild;for(;u.firstChild;)l.appendChild(u.firstChild);l.removeChild(u)}e.insertBefore(l,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Zn="transition",ps="animation",Vi=Symbol("_vtc"),ah=(t,{slots:e})=>oh(Ub,ly(t),e);ah.displayName="Transition";const ay={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},D1=ah.props=rt({},Mg,ay),Ur=(t,e=[])=>{de(t)?t.forEach(n=>n(...e)):t&&t(...e)},xf=t=>t?de(t)?t.some(e=>e.length>1):t.length>1:!1;function ly(t){const e={};for(const I in t)I in ay||(e[I]=t[I]);if(t.css===!1)return e;const{name:n="v",type:r,duration:i,enterFromClass:s=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:u=s,appearActiveClass:c=o,appearToClass:h=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=t,C=x1(i),R=C&&C[0],P=C&&C[1],{onBeforeEnter:k,onEnter:x,onEnterCancelled:N,onLeave:j,onLeaveCancelled:Z,onBeforeAppear:z=k,onAppear:A=x,onAppearCancelled:v=N}=e,b=(I,w,Le)=>{rr(I,w?h:l),rr(I,w?c:o),Le&&Le()},T=(I,w)=>{I._isLeaving=!1,rr(I,p),rr(I,y),rr(I,m),w&&w()},S=I=>(w,Le)=>{const pt=I?A:x,Be=()=>b(w,I,Le);Ur(pt,[w,Be]),Lf(()=>{rr(w,I?u:s),xn(w,I?h:l),xf(pt)||Nf(w,r,R,Be)})};return rt(e,{onBeforeEnter(I){Ur(k,[I]),xn(I,s),xn(I,o)},onBeforeAppear(I){Ur(z,[I]),xn(I,u),xn(I,c)},onEnter:S(!1),onAppear:S(!0),onLeave(I,w){I._isLeaving=!0;const Le=()=>T(I,w);xn(I,p),xn(I,m),cy(),Lf(()=>{I._isLeaving&&(rr(I,p),xn(I,y),xf(j)||Nf(I,r,P,Le))}),Ur(j,[I,Le])},onEnterCancelled(I){b(I,!1),Ur(N,[I])},onAppearCancelled(I){b(I,!0),Ur(v,[I])},onLeaveCancelled(I){T(I),Ur(Z,[I])}})}function x1(t){if(t==null)return null;if(ze(t))return[uu(t.enter),uu(t.leave)];{const e=uu(t);return[e,e]}}function uu(t){return z0(t)}function xn(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[Vi]||(t[Vi]=new Set)).add(e)}function rr(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[Vi];n&&(n.delete(e),n.size||(t[Vi]=void 0))}function Lf(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let L1=0;function Nf(t,e,n,r){const i=t._endId=++L1,s=()=>{i===t._endId&&r()};if(n)return setTimeout(s,n);const{type:o,timeout:l,propCount:u}=uy(t,e);if(!o)return r();const c=o+"end";let h=0;const p=()=>{t.removeEventListener(c,m),s()},m=y=>{y.target===t&&++h>=u&&p()};setTimeout(()=>{h<u&&p()},l+1),t.addEventListener(c,m)}function uy(t,e){const n=window.getComputedStyle(t),r=C=>(n[C]||"").split(", "),i=r(`${Zn}Delay`),s=r(`${Zn}Duration`),o=Vf(i,s),l=r(`${ps}Delay`),u=r(`${ps}Duration`),c=Vf(l,u);let h=null,p=0,m=0;e===Zn?o>0&&(h=Zn,p=o,m=s.length):e===ps?c>0&&(h=ps,p=c,m=u.length):(p=Math.max(o,c),h=p>0?o>c?Zn:ps:null,m=h?h===Zn?s.length:u.length:0);const y=h===Zn&&/\b(transform|all)(,|$)/.test(r(`${Zn}Property`).toString());return{type:h,timeout:p,propCount:m,hasTransform:y}}function Vf(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>Mf(n)+Mf(t[r])))}function Mf(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function cy(){return document.body.offsetHeight}function N1(t,e,n){const r=t[Vi];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const Fa=Symbol("_vod"),hy=Symbol("_vsh"),Pk={beforeMount(t,{value:e},{transition:n}){t[Fa]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):ms(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),ms(t,!0),r.enter(t)):r.leave(t,()=>{ms(t,!1)}
vendor: 6,110 bytes, line 18
18):ms(t,e))},beforeUnmount(t,{value:e}){ms(t,e)}};function ms(t,e){t.style.display=e?t[Fa]:"none",t[hy]=!e}const V1=Symbol(""),M1=/(^|;)\s*display\s*:/;function $1(t,e,n){const r=t.style,i=Ye(n);let s=!1;if(n&&!i){if(e)if(Ye(e))for(const o of e.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&Ea(r,l,"")}else for(const o in e)n[o]==null&&Ea(r,o,"");for(const o in n)o==="display"&&(s=!0),Ea(r,o,n[o])}else if(i){if(e!==n){const o=r[V1];o&&(n+=";"+o),r.cssText=n,s=M1.test(n)}}else e&&t.removeAttribute("style");Fa in t&&(t[Fa]=s?r.display:"",t[hy]&&(r.display="none"))}const $f=/\s*!important$/;function Ea(t,e,n){if(de(n))n.forEach(r=>Ea(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=F1(t,e);$f.test(n)?t.setProperty(ui(r),n.replace($f,""),"important"):t[r]=n}}const Ff=["Webkit","Moz","ms"],cu={};function F1(t,e){const n=cu[e];if(n)return n;let r=Tn(e);if(r!=="filter"&&r in t)return cu[e]=r;r=al(r);for(let i=0;i<Ff.length;i++){const s=Ff[i]+r;if(s in t)return cu[e]=s}return e}const Uf="http://www.w3.org/1999/xlink";function U1(t,e,n,r,i){if(r&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(Uf,e.slice(6,e.length)):t.setAttributeNS(Uf,e,n);else{const s=Y0(e);n==null||s&&!lg(n)?t.removeAttribute(e):t.setAttribute(e,s?"":n)}}function B1(t,e,n,r,i,s,o){if(e==="innerHTML"||e==="textContent"){r&&o(r,i,s),t[e]=n??"";return}const l=t.tagName;if(e==="value"&&l!=="PROGRESS"&&!l.includes("-")){const c=l==="OPTION"?t.getAttribute("value")||"":t.value,h=n??"";(c!==h||!("_value"in t))&&(t.value=h),n==null&&t.removeAttribute(e),t._value=n;return}let u=!1;if(n===""||n==null){const c=typeof t[e];c==="boolean"?n=lg(n):n==null&&c==="string"?(n="",u=!0):c==="number"&&(n=0,u=!0)}try{t[e]=n}catch{}u&&t.removeAttribute(e)}function j1(t,e,n,r){t.addEventListener(e,n,r)}function H1(t,e,n,r){t.removeEventListener(e,n,r)}const Bf=Symbol("_vei");function z1(t,e,n,r,i=null){const s=t[Bf]||(t[Bf]={}),o=s[e];if(r&&o)o.value=r;else{const[l,u]=q1(e);if(r){const c=s[e]=G1(r,i);j1(t,l,c,u)}else o&&(H1(t,l,o,u),s[e]=void 0)}}const jf=/(?:Once|Passive|Capture)$/;function q1(t){let e;if(jf.test(t)){e={};let r;for(;r=t.match(jf);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):ui(t.slice(2)),e]}let hu=0;const W1=Promise.resolve(),K1=()=>hu||(W1.then(()=>hu=0),hu=Date.now());function G1(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;nn(Q1(r,n.value),e,5,[r])};return n.value=t,n.attached=K1(),n}function Q1(t,e){if(de(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const Hf=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Y1=(t,e,n,r,i,s,o,l,u)=>{const c=i==="svg";e==="class"?N1(t,r,c):e==="style"?$1(t,n,r):il(e)?Nc(e)||z1(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):X1(t,e,r,c))?B1(t,e,r,s,o,l,u):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),U1(t,e,r,c))};function X1(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&Hf(e)&&ve(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Hf(e)&&Ye(n)?!1:e in t}const dy=new WeakMap,fy=new WeakMap,Ua=Symbol("_moveCb"),zf=Symbol("_enterCb"),py={name:"TransitionGroup",props:rt({},D1,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=sh(),r=Vg();let i,s;return Ug(()=>{if(!i.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!rw(i[0].el,n.vnode.el,o))return;i.forEach(ew),i.forEach(tw);const l=i.filter(nw);cy(),l.forEach(u=>{const c=u.el,h=c.style;xn(c,o),h.transform=h.webkitTransform=h.transitionDuration="";const p=c[Ua]=m=>{m&&m.target!==c||(!m||/transform$/.test(m.propertyName))&&(c.removeEventListener("transitionend",p),c[Ua]=null,rr(c,o))};c.addEventListener("transitionend",p)})}),()=>{const o=Re(t),l=ly(o);let u=o.tag||Fe;if(i=[],s)for(let c=0;c<s.length;c++){const h=s[c];h.el&&h.el instanceof Element&&(i.push(h),Qs(h,Gs(h,l,r,n)),dy.set(h,h.el.getBoundingClientRect()))}s=e.default?eh(e.default()):[];for(let c=0;c<s.length;c++){const h=s[c];h.key!=null&&Qs(h,Gs(h,l,r,n))}return De(u,null,s)}}},J1=t=>delete t.mode;py.props;const Z1=py;function ew(t){const e=t.el;e[Ua]&&e[Ua](),e[zf]&&e[zf]()}function tw(t){fy.set(t,t.el.getBoundingClientRect())}function nw(t){const e=dy.get(t),n=fy.get(t),r=e.left-n.left,i=e.top-n.top;if(r||i){const s=t.el.style;return s.transform=s.webkitTransform=`translate(${r}px,${i}px)`,s.transitionDuration="0s",t}}function rw(t,e,n){const r=t.cloneNode(),i=t[Vi];i&&i.forEach(l=>{l.split(/\s+/).forEach(u=>u&&r.classList.remove(u))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const s=e.nodeType===1?e:e.parentNode;s.appendChild(r);const{hasTransform:o}=uy(r);return s.removeChild(r),o}const iw=["ctrl","shift","alt","meta"],sw={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>iw.some(n=>t[`${n}Key`]&&!e.includes(n))},Rk=(t,e)=>{const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=(i,...s)=>{for(let o=0;o<e.length;o++){const l=sw[e[o]];if(l&&l(i,e))return}return t(i,...s)})},ow={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ok=(t,e)=>{const n=t._withKeys||(t._withKeys={}),r=e.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const s=ui(i.key);if(e.some(o=>o===s||ow[o]===s))return t(i)})},aw=rt({patchProp:Y1},k1);let qf;function lw(){return qf||(qf=u1(aw))}const uw=(...t)=>{const e=lw().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=hw(r);if(!i)return;const s=e._component;
18!ve(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,cw(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e};function cw(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function hw(t){return Ye(t)?document.querySelector(t):t}var dw=!1;/*! 19 * pinia v2.1.7 20 * (c) 2023 Eduardo San Martin Morote 21 * @license MIT 22 */const fw=Symbol();var Wf;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Wf||(Wf={}));function pw(){const t=X0(!0),e=t.run(()=>cn({}));let n=[],r=[];const i=qc({install(s){i._a=s,s.provide(fw,i),s.config.globalProperties.$pinia=i,r.forEach(o=>n.push(o)),r=[]},use(s){return!this._a&&!dw?r.push(s):n.push(s),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return i}var Kf={};/** 23 * @license 24 * Copyright 2017 Google LLC 25 * 26 * Licensed under the Apache License, Version 2.0 (the "License"); 27 * you may not use this file except in compliance with the License. 28 * You may obtain a copy of the License at 29 * 30 * http://www.apache.org/licenses/LICENSE-2.0 31 * 32 * Unless required by applicable law or agreed to in writing, software 33 * distributed under the License is distributed on an "AS IS" BASIS, 34 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 35 * See the License for the specific language governing permissions and 36 * limitations under the License. 37 */const my=function(t){const e=[];let n=0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=i&63|128):(i&64512)===55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=i&63|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=i&63|128)}return e},mw=function(t){const e=[];let n=0,r=0;for(;n<t.length;){const i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){const s=t[n++];e[r++]=String.fromCharCode((i&31)<<6|s&63)}else if(i>239&&i<365){const s=t[n++],o=t[n++],l=t[n++],u=((i&7)<<18|(s&63)<<12|(o&63)<<6|l&63)-65536;e[r++]=String.fromCharCode(55296+(u>>10)),e[r++]=String.fromCharCode(56320+(u&1023))}else{const s=t[n++],o=t[n++];e[r++]=String.fromCharCode((i&15)<<12|(s&63)<<6|o&63)}}return e.join("")},gy={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:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<t.length;i+=3){const s=t[i],o=i+1<t.length,l=o?t[i+1]:0,u=i+2<t.length,c=u?t[i+2]:0,h=s>>2,p=(s&3)<<4|l>>4;let m=(l&15)<<2|c>>6,y=c&63;u||(y=64,o||(m=64)),r.push(n[h],n[p],n[m],n[y])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(my(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):mw(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<t.length;){const s=n[t.charAt(i++)],l=i<t.length?n[t.charAt(i)]:0;++i;const c=i<t.length?n[t.charAt(i)]:64;++i;const p=i<t.length?n[t.charAt(i)]:64;if(++i,s==null||l==null||c==null||p==null)throw new gw;const m=s<<2|l>>4;if(r.push(m),c!==64){const y=l<<4&240|c>>2;if(r.push(y),p!==64){const C=c<<6&192|p;r.push(C)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};
37class gw extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const yw=function(t){const e=my(t);return gy.encodeByteArray(e,!0)},Ba=function(t){return yw(t).replace(/\./g,"")},yy=function(t){try{return gy.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/** 38 * @license 39 * Copyright 2022 Google LLC 40 * 41 * Licensed under the Apache License, Version 2.0 (the "License"); 42 * you may not use this file except in compliance with the License. 43 * You may obtain a copy of the License at 44 * 45 * http://www.apache.org/licenses/LICENSE-2.0 46 * 47 * Unless required by applicable law or agreed to in writing, software 48 * distributed under the License is distributed on an "AS IS" BASIS, 49 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 50 * See the License for the specific language governing permissions and 51 * limitations under the License. 52 */function vw(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/** 53 * @license 54 * Copyright 2022 Google LLC 55 * 56 * Licensed under the Apache License, Version 2.0 (the "License"); 57 * you may not use this file except in compliance with the License. 58 * You may obtain a copy of the License at 59 * 60 * http://www.apache.org/licenses/LICENSE-2.0 61 * 62 * Unless required by applicable law or agreed to in writing, software 63 * distributed under the License is distributed on an "AS IS" BASIS, 64 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 65 * See the License for the specific language governing permissions and 66 * limitations under the License. 67 */const _w=()=>vw().__FIREBASE_DEFAULTS__,bw=()=>{if(typeof process>"u"||typeof Kf>"u")return;const t=Kf.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},ww=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&yy(t[1]);return e&&JSON.parse(e)},_l=()=>{try{return _w()||bw()||ww()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},vy=t=>{var e,n;return(n=(e=_l())===null||e===void 0?void 0:e.emulatorHosts)===null||n===void 0?void 0:n[t]},_y=t=>{const e=vy(t);if(!e)return;const n=e.lastIndexOf(":");if(n<=0||n+1===e.length)throw new Error(`Invalid host ${e} with no separate hostname and port!`);const r=parseInt(e.substring(n+1),10);return e[0]==="["?[e.substring(1,n-1),r]:[e.substring(0,n),r]},by=()=>{var t;return(t=_l())===null||t===void 0?void 0:t.config},wy=t=>{var e;return(e=_l())===null||e===void 0?void 0:e[`_${t}`]};/** 68 * @license 69 * Copyright 2017 Google LLC 70 * 71 * Licensed under the Apache License, Version 2.0 (the "License"); 72 * you may not use this file except in compliance with the License. 73 * You may obtain a copy of the License at 74 * 75 * http://www.apache.org/licenses/LICENSE-2.0 76 * 77 * Unless required by applicable law or agreed to in writing, software 78 * distributed under the License is distributed on an "AS IS" BASIS, 79 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 80 * See the License for the specific language governing permissions and 81 * limitations under the License. 82 */class Ew{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,r))}}}/** 83 * @license 84 * Copyright 2021 Google LLC 85 * 86 * Licensed under the Apache License, Version 2.0 (the "License"); 87 * you may not use this file except in compliance with the License. 88 * You may obtain a copy of the License at 89 * 90 * http://www.apache.org/licenses/LICENSE-2.0 91 * 92 * Unless required by applicable law or agreed to in writing, software 93 * distributed under the License is distributed on an "AS IS" BASIS, 94 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 95 * See the License for the specific language governing permissions and 96 * limitations under the License. 97 */function Ey(t,e){if(t.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n={alg:"none",type:"JWT"},r=e||"demo-project",i=t.iat||0,s=t.sub||t.user_id;if(!s)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const o=Object.assign({iss:`https://securetoken.google.com/${r}`,aud:r,iat:i,exp:i+3600,auth_time:i,sub:s,user_id:s,firebase:{sign_in_provider:"custom",identities:{}}},t);return[Ba(JSON.stringify(n)),Ba(JSON.stringify(o)),""].join(".")}/** 98 * @license 99 * Copyright 2017 Google LLC 100 * 101 * Licensed under the Apache License, Version 2.0 (the "License");
102 * you may not use this file except in compliance with the License. 103 * You may obtain a copy of the License at 104 * 105 * http://www.apache.org/licenses/LICENSE-2.0 106 * 107 * Unless required by applicable law or agreed to in writing, software 108 * distributed under the License is distributed on an "AS IS" BASIS, 109 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 110 * See the License for the specific language governing permissions and 111 * limitations under the License. 112 */function wt(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function Tw(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(wt())}function Iw(){var t;const e=(t=_l())===null||t===void 0?void 0:t.forceEnvironment;if(e==="node")return!0;if(e==="browser")return!1;try{return Object.prototype.toString.call(global.process)==="[object process]"}catch{return!1}}function Aw(){const t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function Sw(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function Cw(){const t=wt();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function Pw(){return!Iw()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function Rw(){try{return typeof indexedDB=="object"}catch{return!1}}function Ow(){return new Promise((t,e)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),t(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var s;e(((s=i.error)===null||s===void 0?void 0:s.message)||"")}}catch(n){e(n)}})}/** 113 * @license 114 * Copyright 2017 Google LLC 115 * 116 * Licensed under the Apache License, Version 2.0 (the "License"); 117 * you may not use this file except in compliance with the License. 118 * You may obtain a copy of the License at 119 * 120 * http://www.apache.org/licenses/LICENSE-2.0 121 * 122 * Unless required by applicable law or agreed to in writing, software 123 * distributed under the License is distributed on an "AS IS" BASIS, 124 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 125 * See the License for the specific language governing permissions and 126 * limitations under the License. 127 */const kw="FirebaseError";class Pn extends Error{constructor(e,n,r){super(n),this.code=e,this.customData=r,this.name=kw,Object.setPrototypeOf(this,Pn.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,To.prototype.create)}}class To{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r}create(e,...n){const r=n[0]||{},i=`${this.service}/${e}`,s=this.errors[e],o=s?Dw(s,r):"Error",l=`${this.serviceName}: ${o} (${i}).`;return new Pn(i,l,r)}}function Dw(t,e){return t.replace(xw,(n,r)=>{const i=e[r];return i!=null?String(i):`<${r}?>`})}const xw=/\{\$([^}]+)}/g;function Lw(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function ja(t,e){if(t===e)return!0;const n=Object.keys(t),r=Object.keys(e);for(const i of n){if(!r.includes(i))return!1;const s=t[i],o=e[i];if(Gf(s)&&Gf(o)){if(!ja(s,o))return!1}else if(s!==o)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function Gf(t){return t!==null&&typeof t=="object"}/** 128 * @license 129 * Copyright 2017 Google LLC 130 * 131 * Licensed under the Apache License, Version 2.0 (the "License"); 132 * you may not use this file except in compliance with the License. 133 * You may obtain a copy of the License at 134 * 135 * http://www.apache.org/licenses/LICENSE-2.0 136 * 137 * Unless required by applicable law or agreed to in writing, software 138 * distributed under the License is distributed on an "AS IS" BASIS, 139 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 140 * See the License for the specific language governing permissions and 141 * limitations under the License. 142 */function Io(t){const e=[];for(const[n,r]of Object.entries(t))Array.isArray(r)?r.forEach(i=>
142{e.push(encodeURIComponent(n)+"="+encodeURIComponent(i))}):e.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return e.length?"&"+e.join("&"):""}function Nw(t,e){const n=new Vw(t,e);return n.subscribe.bind(n)}class Vw{constructor(e,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{e(this)}).catch(r=>{this.error(r)})}next(e){this.forEachObserver(n=>{n.next(e)})}error(e){this.forEachObserver(n=>{n.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,n,r){let i;if(e===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");Mw(e,["next","error","complete"])?i=e:i={next:e,error:n,complete:r},i.next===void 0&&(i.next=du),i.error===void 0&&(i.error=du),i.complete===void 0&&(i.complete=du);const s=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?i.error(this.finalError):i.complete()}catch{}}),this.observers.push(i),s}unsubscribeOne(e){this.observers===void 0||this.observers[e]===void 0||(delete this.observers[e],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let n=0;n<this.observers.length;n++)this.sendOne(n,e)}sendOne(e,n){this.task.then(()=>{if(this.observers!==void 0&&this.observers[e]!==void 0)try{n(this.observers[e])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(e){this.finalized||(this.finalized=!0,e!==void 0&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Mw(t,e){if(typeof t!="object"||t===null)return!1;for(const n of e)if(n in t&&typeof t[n]=="function")return!0;return!1}function du(){}/** 143 * @license 144 * Copyright 2021 Google LLC 145 * 146 * Licensed under the Apache License, Version 2.0 (the "License"); 147 * you may not use this file except in compliance with the License. 148 * You may obtain a copy of the License at 149 * 150 * http://www.apache.org/licenses/LICENSE-2.0 151 * 152 * Unless required by applicable law or agreed to in writing, software 153 * distributed under the License is distributed on an "AS IS" BASIS, 154 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 155 * See the License for the specific language governing permissions and 156 * limitations under the License. 157 */function ft(t){return t&&t._delegate?t._delegate:t}class Ar{constructor(e,n,r){this.name=e,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/** 158 * @license 159 * Copyright 2019 Google LLC 160 * 161 * Licensed under the Apache License, Version 2.0 (the "License"); 162 * you may not use this file except in compliance with the License. 163 * You may obtain a copy of the License at 164 * 165 * http://www.apache.org/licenses/LICENSE-2.0 166 * 167 * Unless required by applicable law or agreed to in writing, software 168 * distributed under the License is distributed on an "AS IS" BASIS, 169 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 170 * See the License for the specific language governing permissions and 171 * limitations under the License. 172 */const jr="[DEFAULT]";/** 173 * @license 174 * Copyright 2019 Google LLC 175 * 176 * Licensed under the Apache License, Version 2.0 (the "License"); 177 * you may not use this file except in compliance with the License. 178 * You may obtain a copy of the License at 179 * 180 * http://www.apache.org/licenses/LICENSE-2.0 181 * 182 * Unless required by applicable law or agreed to in writing, software 183 * distributed under the License is distributed on an "AS IS" BASIS, 184 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 185 * See the License for the specific language governing permissions and 186 * limitations under the License. 187 */class $w{constructor(e,n){this.name=e,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){const r=new Ew;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const r=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),i=(n=e==null?void 0:e.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(s){if(i)return null;throw s}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(Uw(e))try{this.getOrInitializeService({instanceIdentifier:jr})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const s=this.getOrInitializeService({instanceIdentifier:i});r.resolve(s)}catch{}}}}clearInstance(e=jr){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...e.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=jr){return this.instances.has(e)}getOptions(e=jr){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[s,o]of this.instancesDeferred.entries()){const l=this.normalizeInstanceIdentifier(s);r===l&&o.resolve(i)}return i}onInit(e,n){var r;const i=this.normalizeInstanceIdentifier(n),s=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;s.add(e),this.onInitCallbacks.set(i,s);const o=this.instances.get(i);return o&&e(o,i),()=>{s.delete(e)}}invokeOnInitCallbacks(e,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:Fw(e),options:n}),this.instances.set(e,r),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}return r||null}normalizeInstanceIdentifier(e=jr){return this.component?this.component.multipleInstances?e:jr:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function Fw(t){return t===jr?void 0:t}function Uw(t){return t.instantiationMode==="EAGER"}/** 188 * @license 189 * Copyright 2019 Google LLC 190 * 191 * Licensed under the Apache License, Version 2.0 (the "License");
192 * you may not use this file except in compliance with the License. 193 * You may obtain a copy of the License at 194 * 195 * http://www.apache.org/licenses/LICENSE-2.0 196 * 197 * Unless required by applicable law or agreed to in writing, software 198 * distributed under the License is distributed on an "AS IS" BASIS, 199 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 * See the License for the specific language governing permissions and 201 * limitations under the License. 202 */class Bw{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const n=this.getProvider(e.name);if(n.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);n.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const n=new $w(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}/** 203 * @license 204 * Copyright 2017 Google LLC 205 * 206 * Licensed under the Apache License, Version 2.0 (the "License"); 207 * you may not use this file except in compliance with the License. 208 * You may obtain a copy of the License at 209 * 210 * http://www.apache.org/licenses/LICENSE-2.0 211 * 212 * Unless required by applicable law or agreed to in writing, software 213 * distributed under the License is distributed on an "AS IS" BASIS, 214 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 215 * See the License for the specific language governing permissions and 216 * limitations under the License. 217 */var Ee;(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"})(Ee||(Ee={}));const jw={debug:Ee.DEBUG,verbose:Ee.VERBOSE,info:Ee.INFO,warn:Ee.WARN,error:Ee.ERROR,silent:Ee.SILENT},Hw=Ee.INFO,zw={[Ee.DEBUG]:"log",[Ee.VERBOSE]:"log",[Ee.INFO]:"info",[Ee.WARN]:"warn",[Ee.ERROR]:"error"},qw=(t,e,...n)=>{if(e<t.logLevel)return;const r=new Date().toISOString(),i=zw[e];if(i)console[i](`[${r}] ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class lh{constructor(e){this.name=e,this._logLevel=Hw,this._logHandler=qw,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Ee))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?jw[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,Ee.DEBUG,...e),this._logHandler(this,Ee.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Ee.VERBOSE,...e),this._logHandler(this,Ee.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Ee.INFO,...e),this._logHandler(this,Ee.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Ee.WARN,...e),this._logHandler(this,Ee.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Ee.ERROR,...e),this._logHandler(this,Ee.ERROR,...e)}}const Ww=(t,e)=>e.some(n=>t instanceof n);let Qf,Yf;function Kw(){return Qf||(Qf=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Gw(){return Yf||(Yf=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Ty=new WeakMap,Yu=new WeakMap,Iy=new WeakMap,fu=new WeakMap,uh=new WeakMap;function Qw(t){const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("success",s),t.removeEventListener("error",o)},s=()=>{n(yr(t.result)),i()},o=()=>{r(t.error),i()};t.addEventListener("success",s),t.addEventListener("error",o)});return e.then(n=>{n instanceof IDBCursor&&Ty.set(n,t)}).catch(()=>{}),uh.set(e,t),e}function Yw(t){if(Yu.has(t))return;const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("complete",s),t.removeEventListener("error",o),t.removeEventListener("abort",o)},s=()=>{n(),i()},o=()=>{r(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",s),t.addEventListener("error",o),t.addEventListener("abort",o)});Yu.set(t,e)}let Xu={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return Yu.get(t);if(e==="objectStoreNames")return t.objectStoreNames||Iy.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return yr(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function Xw(t){Xu=t(Xu)}function Jw(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(pu(this),e,...n);return Iy.set(r,e.sort?e.sort():[e]),yr(r)}:Gw().includes(t)?function(...e){return t.apply(pu(this),e),yr(Ty.get(this))}:function(...e){return yr(t.apply(pu(this),e))}}function Zw(t){return typeof t=="function"?Jw(t):(t instanceof IDBTransaction&&Yw(t),Ww(t,Kw())?new Proxy(t,Xu):t)}function yr(t){if(t instanceof IDBRequest)return Qw(t);if(fu.has(t))return fu.get(t);const e=Zw(t);return e!==t&&(fu.set(t,e),uh.set(e,t)),e}const pu=t=>uh.get(t);function eE(t,e,{blocked:n,upgrade:r,blocking:i,terminated:s}={}){const o=indexedDB.open(t,e),l=yr(o);return r&&o.addEventListener("upgradeneeded",u=>{r(yr(o.result),u.oldVersion,u.newVersion,yr(o.transaction),u)}),n&&o.addEventListener("blocked",u=>n(u.oldVersion,u.newVersion,u)),l.then(u=>{s&&u.addEventListener("close",()=>s()),i&&u.addEventListener("versionchange",c=>i(c.oldVersion,c.newVersion,c))}).catch(()=>{}),l}const tE=["get","getKey","getAll","getAllKeys","count"],nE=["put","add","delete","clear"],mu=new Map;function Xf(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(mu.get(e))return mu.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,i=nE.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||tE.includes(n)))return;const s=async function(o,...l){const u=this.transaction(o,i?"readwrite":"readonly");let c=u.store;
217return r&&(c=c.index(l.shift())),(await Promise.all([c[n](...l),i&&u.done]))[0]};return mu.set(e,s),s}Xw(t=>({...t,get:(e,n,r)=>Xf(e,n)||t.get(e,n,r),has:(e,n)=>!!Xf(e,n)||t.has(e,n)}));/** 218 * @license 219 * Copyright 2019 Google LLC 220 * 221 * Licensed under the Apache License, Version 2.0 (the "License"); 222 * you may not use this file except in compliance with the License. 223 * You may obtain a copy of the License at 224 * 225 * http://www.apache.org/licenses/LICENSE-2.0 226 * 227 * Unless required by applicable law or agreed to in writing, software 228 * distributed under the License is distributed on an "AS IS" BASIS, 229 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 230 * See the License for the specific language governing permissions and 231 * limitations under the License. 232 */class rE{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(iE(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function iE(t){const e=t.getComponent();return(e==null?void 0:e.type)==="VERSION"}const Ju="@firebase/app",Jf="0.10.4";/** 233 * @license 234 * Copyright 2019 Google LLC 235 * 236 * Licensed under the Apache License, Version 2.0 (the "License"); 237 * you may not use this file except in compliance with the License. 238 * You may obtain a copy of the License at 239 * 240 * http://www.apache.org/licenses/LICENSE-2.0 241 * 242 * Unless required by applicable law or agreed to in writing, software 243 * distributed under the License is distributed on an "AS IS" BASIS, 244 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 245 * See the License for the specific language governing permissions and 246 * limitations under the License. 247 */const Zr=new lh("@firebase/app"),sE="@firebase/app-compat",oE="@firebase/analytics-compat",aE="@firebase/analytics",lE="@firebase/app-check-compat",uE="@firebase/app-check",cE="@firebase/auth",hE="@firebase/auth-compat",dE="@firebase/database",fE="@firebase/database-compat",pE="@firebase/functions",mE="@firebase/functions-compat",gE="@firebase/installations",yE="@firebase/installations-compat",vE="@firebase/messaging",_E="@firebase/messaging-compat",bE="@firebase/performance",wE="@firebase/performance-compat",EE="@firebase/remote-config",TE="@firebase/remote-config-compat",IE="@firebase/storage",AE="@firebase/storage-compat",SE="@firebase/firestore",CE="@firebase/vertexai-preview",PE="@firebase/firestore-compat",RE="firebase",OE="10.12.1";/** 248 * @license 249 * Copyright 2019 Google LLC 250 * 251 * Licensed under the Apache License, Version 2.0 (the "License"); 252 * you may not use this file except in compliance with the License. 253 * You may obtain a copy of the License at 254 * 255 * http://www.apache.org/licenses/LICENSE-2.0 256 * 257 * Unless required by applicable law or agreed to in writing, software 258 * distributed under the License is distributed on an "AS IS" BASIS, 259 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 260 * See the License for the specific language governing permissions and 261 * limitations under the License. 262 */const Zu="[DEFAULT]",kE={[Ju]:"fire-core",[sE]:"fire-core-compat",[aE]:"fire-analytics",[oE]:"fire-analytics-compat",[uE]:"fire-app-check",[lE]:"fire-app-check-compat",[cE]:"fire-auth",[hE]:"fire-auth-compat",[dE]:"fire-rtdb",[fE]:"fire-rtdb-compat",[pE]:"fire-fn",[mE]:"fire-fn-compat",[gE]:"fire-iid",[yE]:"fire-iid-compat",[vE]:"fire-fcm",[_E]:"fire-fcm-compat",[bE]:"fire-perf",[wE]:"fire-perf-compat",[EE]:"fire-rc",[TE]:"fire-rc-compat",[IE]:"fire-gcs",[AE]:"fire-gcs-compat",[SE]:"fire-fst",[PE]:"fire-fst-compat",[CE]:"fire-vertex","fire-js":"fire-js",[RE]:"fire-js-all"};/** 263 * @license 264 * Copyright 2019 Google LLC 265 * 266 * Licensed under the Apache License, Version 2.0 (the "License"); 267 * you may not use this file except in compliance with the License. 268 * You may obtain a copy of the License at 269 * 270 * http://www.apache.org/licenses/LICENSE-2.0 271 * 272 * Unless required by applicable law or agreed to in writing, software 273 * distributed under the License is distributed on an "AS IS" BASIS, 274 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 275 * See the License for the specific language governing permissions and 276 * limitations under the License. 277 */const Ha=new Map,DE=new Map,ec=new Map;function Zf(t,e){try{t.container.addComponent(e)}catch(n){Zr.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function ei(t){const e=t.name;if(ec.has(e))return Zr.debug(`There were multiple attempts to register component ${e}.`),!1;ec.set(e,t);for(const n of Ha.values())Zf(n,t);for(const n of DE.values())Zf(n,t);return!0}function bl(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}function Nn(t){return t.settings!==void 0}/** 278 * @license 279 * Copyright 2019 Google LLC 280 * 281 * Licensed under the Apache License, Version 2.0 (the "License");
282 * you may not use this file except in compliance with the License. 283 * You may obtain a copy of the License at 284 * 285 * http://www.apache.org/licenses/LICENSE-2.0 286 * 287 * Unless required by applicable law or agreed to in writing, software 288 * distributed under the License is distributed on an "AS IS" BASIS, 289 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 290 * See the License for the specific language governing permissions and 291 * limitations under the License. 292 */const xE={"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.","invali
292d-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."},vr=new To("app","Firebase",xE);/** 293 * @license 294 * Copyright 2019 Google LLC 295 * 296 * Licensed under the Apache License, Version 2.0 (the "License"); 297 * you may not use this file except in compliance with the License. 298 * You may obtain a copy of the License at 299 * 300 * http://www.apache.org/licenses/LICENSE-2.0 301 * 302 * Unless required by applicable law or agreed to in writing, software 303 * distributed under the License is distributed on an "AS IS" BASIS, 304 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 305 * See the License for the specific language governing permissions and 306 * limitations under the License. 307 */class LE{constructor(e,n,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Ar("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw vr.create("app-deleted",{appName:this._name})}}/** 308 * @license 309 * Copyright 2019 Google LLC 310 * 311 * Licensed under the Apache License, Version 2.0 (the "License"); 312 * you may not use this file except in compliance with the License. 313 * You may obtain a copy of the License at 314 * 315 * http://www.apache.org/licenses/LICENSE-2.0 316 * 317 * Unless required by applicable law or agreed to in writing, software 318 * distributed under the License is distributed on an "AS IS" BASIS, 319 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 320 * See the License for the specific language governing permissions and 321 * limitations under the License. 322 */const ci=OE;function ch(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r=Object.assign({name:Zu,automaticDataCollectionEnabled:!1},e),i=r.name;if(typeof i!="string"||!i)throw vr.create("bad-app-name",{appName:String(i)});if(n||(n=by()),!n)throw vr.create("no-options");const s=Ha.get(i);if(s){if(ja(n,s.options)&&ja(r,s.config))return s;throw vr.create("duplicate-app",{appName:i})}const o=new Bw(i);for(const u of ec.values())o.addComponent(u);const l=new LE(n,r,o);return Ha.set(i,l),l}function hh(t=Zu){const e=Ha.get(t);if(!e&&t===Zu&&by())return ch();if(!e)throw vr.create("no-app",{appName:t});return e}function _n(t,e,n){var r;let i=(r=kE[t])!==null&&r!==void 0?r:t;n&&(i+=`-${n}`);const s=i.match(/\s|\//),o=e.match(/\s|\//);if(s||o){const l=[`Unable to register library "${i}" with version "${e}":`];s&&l.push(`library name "${i}" contains illegal characters (whitespace or "/")`),s&&o&&l.push("and"),o&&l.push(`version name "${e}" contains illegal characters (whitespace or "/")`),Zr.warn(l.join(" "));return}ei(new Ar(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}/** 323 * @license 324 * Copyright 2021 Google LLC 325 * 326 * Licensed under the Apache License, Version 2.0 (the "License"); 327 * you may not use this file except in compliance with the License. 328 * You may obtain a copy of the License at 329 * 330 * http://www.apache.org/licenses/LICENSE-2.0 331 * 332 * Unless required by applicable law or agreed to in writing, softw
332are 333 * distributed under the License is distributed on an "AS IS" BASIS, 334 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 335 * See the License for the specific language governing permissions and 336 * limitations under the License. 337 */const NE="firebase-heartbeat-database",VE=1,Xs="firebase-heartbeat-store";let gu=null;function Ay(){return gu||(gu=eE(NE,VE,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(Xs)}catch(n){console.warn(n)}}}}).catch(t=>{throw vr.create("idb-open",{originalErrorMessage:t.message})})),gu}async function ME(t){try{const n=(await Ay()).transaction(Xs),r=await n.objectStore(Xs).get(Sy(t));return await n.done,r}catch(e){if(e instanceof Pn)Zr.warn(e.message);else{const n=vr.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});Zr.warn(n.message)}}}async function ep(t,e){try{const r=(await Ay()).transaction(Xs,"readwrite");await r.objectStore(Xs).put(e,Sy(t)),await r.done}catch(n){if(n instanceof Pn)Zr.warn(n.message);else{const r=vr.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});Zr.warn(r.message)}}}function Sy(t){return`${t.name}!${t.options.appId}`}/** 338 * @license 339 * Copyright 2021 Google LLC 340 * 341 * Licensed under the Apache License, Version 2.0 (the "License"); 342 * you may not use this file except in compliance with the License. 343 * You may obtain a copy of the License at 344 * 345 * http://www.apache.org/licenses/LICENSE-2.0 346 * 347 * Unless required by applicable law or agreed to in writing, software 348 * distributed under the License is distributed on an "AS IS" BASIS, 349 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 350 * See the License for the specific language governing permissions and 351 * limitations under the License. 352 */const $E=1024,FE=30*24*60*60*1e3;class UE{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new jE(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var e,n;const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),s=tp();if(!(((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null))&&!(this._heartbeatsCache.lastSentHeartbeatDate===s||this._heartbeatsCache.heartbeats.some(o=>o.date===s)))return this._heartbeatsCache.heartbeats.push({date:s,agent:i}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(o=>{const l=new Date(o.date).valueOf();return Date.now()-l<=FE}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){var e;if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=tp(),{heartbeatsToSend:r,unsentEntries:i}=BE(this._heartbeatsCache.heartbeats),s=Ba(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,i.length>0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),s}}function tp(){return new Date().toISOString().substring(0,10)}function BE(t,e=$E){const n=[];let r=t.slice();for(const i of t){const s=n.find(o=>o.agent===i.agent);if(s){if(s.dates.push(i.date),np(n)>e){s.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),np(n)>e){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class jE{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return Rw()?Ow().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await ME(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(e){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return ep(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return ep(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...e.heartbeats]})}else return}}function np(t){return Ba(JSON.stringify({version:2,heartbeats:t})).length}/** 353 * @license 354 * Copyright 2019 Google LLC 355 * 356 * Licensed under the Apache License, Version 2.0 (the "License");
357 * you may not use this file except in compliance with the License. 358 * You may obtain a copy of the License at 359 * 360 * http://www.apache.org/licenses/LICENSE-2.0 361 * 362 * Unless required by applicable law or agreed to in writing, software 363 * distributed under the License is distributed on an "AS IS" BASIS, 364 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 365 * See the License for the specific language governing permissions and 366 * limitations under the License. 367 */function HE(t){ei(new Ar("platform-logger",e=>new rE(e),"PRIVATE")),ei(new Ar("heartbeat",e=>new UE(e),"PRIVATE")),_n(Ju,Jf,t),_n(Ju,Jf,"esm2017"),_n("fire-js","")}HE("");var zE="firebase",qE="10.12.1";/** 368 * @license 369 * Copyright 2020 Google LLC 370 * 371 * Licensed under the Apache License, Version 2.0 (the "License"); 372 * you may not use this file except in compliance with the License. 373 * You may obtain a copy of the License at 374 * 375 * http://www.apache.org/licenses/LICENSE-2.0 376 * 377 * Unless required by applicable law or agreed to in writing, software 378 * distributed under the License is distributed on an "AS IS" BASIS, 379 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 380 * See the License for the specific language governing permissions and 381 * limitations under the License. 382 */_n(zE,qE,"app");/** 383 * vee-validate v4.12.8 384 * (c) 2024 Abdelrahman Awad 385 * @license MIT 386 */function WE(t){return typeof t=="function"}function Kt(t,e){KE(t,e)}function KE(t,e){if(!WE(e))throw new Error(`Extension Error: The validator '${t}' must be a function.`)}const GE={generateMessage:({field:t})=>`${t} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0};let rp=Object.assign({},GE);const QE=t=>{rp=Object.assign(Object.assign({},rp),t)},YE=QE;/** 387 * vee-validate v4.12.8 388 * (c) 2024 Abdelrahman Awad 389 * @license MIT 390 */function hi(t,e){return Array.isArray(t)?t[0]:t[e]}function zn(t){return!!(t==null||t===""||Array.isArray(t)&&t.length===0)}function XE(t){return Array.isArray(t)?{min:t[0],max:t[1]}:t}const Cy=(t,e)=>{if(zn(t))return!0;const{min:n,max:r}=XE(e);if(Array.isArray(t))return t.every(s=>Cy(s,{min:n,max:r}));const i=Number(t);return Number(n)<=i&&Number(r)>=i},dh=(t,e)=>{if(zn(t))return!0;const n=hi(e,"length");if(Array.isArray(t))return t.every(i=>dh(i,{length:n}));const r=String(t);return/^[0-9]*$/.test(r)&&r.length===Number(n)},ip=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,JE=t=>zn(t)?!0:Array.isArray(t)?t.every(e=>ip.test(String(e))):ip.test(String(t)),ZE=t=>zn(t)?!0:Array.isArray(t)?t.every(e=>/^-?[0-9]+$/.test(String(e))):/^-?[0-9]+$/.test(String(t)),eT=(t,e)=>{const n=hi(e,"other");return t===n},tT=(t,e)=>{const n=hi(e,"other");return t!==n},nT=(t,e)=>{if(zn(t))return!0;const n=hi(e,"length");return typeof t=="number"&&(t=String(t)),t.length||(t=Array.from(t)),t.length===Number(n)},Py=(t,e)=>{if(zn(t))return!0;const n=hi(e,"length");return Array.isArray(t)?t.every(r=>Py(r,{length:n})):[...String(t)].length<=Number(n)},Ry=(t,e)=>{if(zn(t))return!0;const n=hi(e,"length");return Array.isArray(t)?t.every(r=>Ry(r,{length:n})):[...String(t)].length>=Number(n)},rT=/^[٠١٢٣٤٥٦٧٨٩]+$/,iT=/^[0-9]+$/,sT=t=>{if(zn(t))return!0;const e=n=>{const r=String(n);return iT.test(r)||rT.test(r)};return Array.isArray(t)?t.every(e):e(t)};function oT(t){return t==null}function aT(t){return Array.isArray(t)&&t.length===0}const lT=t=>oT(t)||aT(t)||t===!1?!1:!!String(t).trim().length,uT=(t,e)=>{var n;if(zn(t))return!0;let r=hi(e,"pattern");typeof r=="string"&&(r=new RegExp(r));try{new URL(t)}catch{return!1}return(n=r==null?void 0:r.test(t))!==null&&n!==void 0?n:!0};/** 391 * vee-validate v4.12.8 392 * (c) 2024 Abdelrahman Awad 393 * @license MIT 394 */function sp(t){return typeof t=="function"}function cT(t){return typeof t=="object"&&t!==null}function hT(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}function op(t){if(!cT(t)||hT(t)!=="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Oy(t,e){return Object.keys(e).forEach(n=>{if(op(e[n])&&op(t[n])){t[n]||(t[n]={}),Oy(t[n],e[n]);return}t[n]=e[n]}),t}function ap(t,e){return t.replace(/(\d:)?{([^}]+)}/g,function(n,r,i){if(!r||!e.params)return i in e?e[i]:e.params&&i in e.params?e.params[i]:`{${i}}`;if(!Array.isArray(e.params))return i in e.params?e.params[i]:`{${i}}`;const s=Number(r.replace(":",""));return s in e.params?e.params[s]:`${r}{${i}}`})}class dT{constructor(e,n){this.container={}
394,this.locale=e,this.merge(n)}resolve(e){return this.format(this.locale,e)}getLocaleDefault(e,n){var r,i,s,o,l;return((s=(i=(r=this.container[e])===null||r===void 0?void 0:r.fields)===null||i===void 0?void 0:i[n])===null||s===void 0?void 0:s._default)||((l=(o=this.container[e])===null||o===void 0?void 0:o.messages)===null||l===void 0?void 0:l._default)}resolveLabel(e,n,r){var i,s,o,l;return r?((s=(i=this.container[e])===null||i===void 0?void 0:i.names)===null||s===void 0?void 0:s[r])||r:((l=(o=this.container[e])===null||o===void 0?void 0:o.names)===null||l===void 0?void 0:l[n])||n}format(e,n){var r,i,s,o,l;let u;const{rule:c,form:h,label:p,name:m}=n,y=this.resolveLabel(e,m,p);return c?(u=((s=(i=(r=this.container[e])===null||r===void 0?void 0:r.fields)===null||i===void 0?void 0:i[m])===null||s===void 0?void 0:s[c.name])||((l=(o=this.container[e])===null||o===void 0?void 0:o.messages)===null||l===void 0?void 0:l[c.name]),u||(u=this.getLocaleDefault(e,m)||`${y} is not valid`),sp(u)?u(n):ap(u,Object.assign(Object.assign({},h),{field:y,params:c.params}))):(u=this.getLocaleDefault(e,m)||`${y} is not valid`,sp(u)?u(n):ap(u,Object.assign(Object.assign({},h),{field:y})))}merge(e){Oy(this.container,e)}}const yu=new dT("en",{});function fT(t,e){const n=r=>yu.resolve(r);return yu.locale=t,e&&yu.merge({[t]:e}),n}function vu(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=fh(t))||e){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 395In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&n.return!=null&&n.return()}finally{if(o)throw l}}}}function pT(t){return yT(t)||gT(t)||fh(t)||mT()}function mT(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 396In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gT(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function yT(t){if(Array.isArray(t))return tc(t)}function xs(t){"@babel/helpers - typeof";return xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xs(t)}function _u(t,e){return bT(t)||_T(t,e)||fh(t,e)||vT()}function vT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 397In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fh(t,e){if(t){if(typeof t=="string")return tc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tc(t,e)}}function tc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _T(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,o,l=[],u=!0,c=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(u=(r=s.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(h){c=!0,i=h}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function bT(t){if(Array.isArray(t))return t}var H={innerWidth:function(e){if(e){var n=e.offsetWidth,r=getComputedStyle(e);return n+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),n}return 0},width:function(e){if(e){var n=e.offsetWidth,r=getComputedStyle(e);return n-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),n}return 0},getWindowScrollTop:function(){var e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)},getWindowScrollLeft:function(){var e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)},getOuterWidth:function(e,n){if(e){var r=e.offsetWidth;if(n){var i=getComputedStyle(e);r+=parseFloat(i.marginLeft)+parseFloat(i.marginRight)}return r}return 0},getOuterHeight:function(e,n){if(e){var r=e.offsetHeight;if(n){var i=getComputedStyle(e);r+=parseFloat(i.marginTop)+parseFloat(i.marginBottom)}return r}return 0},getClientHeight:function(e,n){if(e){var r=e.clientHeight;if(n){var i=getComputedStyle(e);r+=parseFloat(i.marginTop)+parseFloat(i.marginBottom)}return r}return 0},getViewport:function(){var e=window,n=document,r=n.documentElement,i=n.getElementsByTagName("body")[0],s=e.innerWidth||r.clientWidth||i.clientWidth,o=e.innerHe
397ight||r.clientHeight||i.clientHeight;return{width:s,height:o}},getOffset:function(e){if(e){var n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}},index:function(e){if(e)for(var n,r=(n=this.getParentNode(e))===null||n===void 0?void 0:n.childNodes,i=0,s=0;s<r.length;s++){if(r[s]===e)return i;r[s].nodeType===1&&i++}return-1},addMultipleClasses:function(e,n){var r=this;e&&n&&[n].flat().filter(Boolean).forEach(function(i){return i.split(" ").forEach(function(s){return r.addClass(e,s)})})},removeMultipleClasses:function(e,n){var r=this;e&&n&&[n].flat().filter(Boolean).forEach(function(i){return i.split(" ").forEach(function(s){return r.removeClass(e,s)})})},addClass:function(e,n){e&&n&&!this.hasClass(e,n)&&(e.classList?e.classList.add(n):e.className+=" "+n)},removeClass:function(e,n){e&&n&&(e.classList?e.classList.remove(n):e.className=e.className.replace(new RegExp("(^|\\b)"+n.split(" ").join("|")+"(\\b|$)","gi")," "))},hasClass:function(e,n){return e?e.classList?e.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(e.className):!1},addStyles:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e&&Object.entries(n).forEach(function(r){var i=_u(r,2),s=i[0],o=i[1];return e.style[s]=o})},find:function(e,n){return this.isElement(e)?e.querySelectorAll(n):[]},findSingle:function(e,n){return this.isElement(e)?e.querySelector(n):null},createElement:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e){var r=document.createElement(e);this.setAttributes(r,n);for(var i=arguments.length,s=new Array(i>2?i-2:0),o=2;o<i;o++)s[o-2]=arguments[o];return r.append.apply(r,s),r}},setAttribute:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0;this.isElement(e)&&r!==null&&r!==void 0&&e.setAttribute(n,r)},setAttributes:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.isElement(e)){var i=function s(o,l){var u,c,h=e!=null&&(u=e.$attrs)!==null&&u!==void 0&&u[o]?[e==null||(c=e.$attrs)===null||c===void 0?void 0:c[o]]:[];return[l].flat().reduce(function(p,m){if(m!=null){var y=xs(m);if(y==="string"||y==="number")p.push(m);else if(y==="object"){var C=Array.isArray(m)?s(o,m):Object.entries(m).map(function(R){var P=_u(R,2),k=P[0],x=P[1];return o==="style"&&(x||x===0)?"".concat(k.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(x):x?k:void 0});p=C.length?p.concat(C.filter(function(R){return!!R})):p}}return p},h)};Object.entries(r).forEach(function(s){var o=_u(s,2),l=o[0],u=o[1];if(u!=null){var c=l.match(/^on(.+)/);c?e.addEventListener(c[1].toLowerCase(),u):l==="p-bind"?n.setAttributes(e,u):(u=l==="class"?pT(new Set(i("class",u))).join(" ").trim():l==="style"?i("style",u).join(";").trim():u,(e.$attrs=e.$attrs||{})&&(e.$attrs[l]=u),e.setAttribute(l,u))}})}},getAttribute:function(e,n){if(this.isElement(e)){var r=e.getAttribute(n);return isNaN(r)?r==="true"||r==="false"?r==="true":r:+r}},isAttributeEquals:function(e,n,r){return this.isElement(e)?this.getAttribute(e,n)===r:!1},isAttributeNotEquals:function(e,n,r){return!this.isAttributeEquals(e,n,r)},getHeight:function(e){if(e){var n=e.offsetHeight,r=getComputedStyle(e);return n-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),n}return 0},getWidth:function(e){if(e){var n=e.offsetWidth,r=getComputedStyle(e);return n-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),n}return 0},absolutePosition:function(e,n){if(e){var r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),i=r.height,s=r.width,o=n.offsetHeight,l=n.offsetWidth,u=n.getBoundingClientRect(),c=this.getWindowScrollTop(),h=this.getWindowScrollLeft(),p=this.getViewport(),m,y;u.top+o+i>p.height?(m=u.top+c-i,e.style.transformOrigin="bottom",m<0&&(m=c)):(m=o+u.top+c,e.style.transformOrigin="top"),u.left+s>p.width?y=Math.max(0,u.left+h+l-s):y=u.left+h,e.style.top=m+"px",e.style.left=y+"px"}},relativePosition:function(e,n){if(e){var r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),i=n.offsetHeight,s=n.getBoundingClientRect(),o=this.getViewport(),l,u;s.top+i+r.height>o.height?(l=-1*r.height,e.style.transformOrigin="bottom",s.top+l<0&&(l=-1*s.top)):(l=i,e.style.transformOrigin="top"),r.width>o.width?u=s.left*-1:s.left+r.width>o.width?u=(s.left+r.width-o.width)*-1:u=0,e.style.top=l+"px",e.style.left=u+"px"}},nestedPosition:function(e,n){if(e){var r=e.parentElement,i=this.getOffset(r),s=this.getViewport(),o=e.offsetParent?e.offsetWidth:this.getHiddenElementOuterWidth(e),l=this.getOuterWidth(r.children[0]),u;parseInt(i.left,10)+l+o>s.width-this.calculateScrollbarWidth()?parseInt(i.left,10)<o?n%2===1?u=parseInt(i.left,10)?"-"+parseInt(i.left,10)+"px":"100%":n%2===0&&(u=s.width-o-this.calculateScrollbarWidth()+"px"):u="-100%":u="100%",e.style.top="0px",e.style.left=u}},getParentNode:function(e){var n=e==null?void 0:e.parentNode;return n&&n.host&&(n=n.host),n},getParents:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=this.getParentNode(e);return r===null?n:this.getParents(r,n.concat([r]))},getScrollableParents:function(e){var n=[];if(e){var r=this.getParents(e),i=/(auto|scroll)/,s=function(P){try{var k=window.getComputedStyle(P,null);return i.test(k.getPropertyValue("overflow"))||i.test(k.getPropertyValue("overflowX"))||i.test(k.getPropertyValue("overflowY"))}catch{return!1}},o=vu(r),l;try{for(o.s();!(l=o.n()).done;){var u=l.value,c=u.nodeType===1&&u.dataset.scrollselectors;if(c){var h=c.split(","),p=vu(h),m;try{for(p.s();!(m=p.n()).done;){var y=m.value,C=this.findSingle(u,y);C&&s(C)&&n.push(C)}}catch(R){p.e(R)}finally{p.f()}}u.nodeType!==9&&s(u)&&n.push(u)}}catch(R){o.e(R)}finally{o.f()}}return n},getHiddenElementOuterHeight:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var n=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",n}return 0},getHiddenElementOuterWidth:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var n=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",n}return 0},getHiddenElementDimensions:function(e){if(e){var n={};return e.style.visibility="hidden",e.style.display="block",n.width=e.offsetWidth,n.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",n}return 0},fadeIn:function(e,n){if(e){e.style.opacity=0;var r=+new Date,i=0,s=function o(){i=+e.style.opacity+(new Date().getTime()-r)/n,e.style.opacity=i,r=+new Date,+i<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};s()}},fadeOut:function(e,n){if(e)var r=1,i=50,s=n,o=i/s,l=setInterval(function(){r-=o,r<=0&&(r=0,clearInterval(l)),e.style.opacity=r},i)},getUserAgent:function(){return navigator.userAgent},appendChild:function(e,n){if(this.isElement(n))n.appendChild(e);else if(n.el&&n.elElement)n.elElement.appendChild(e);else throw new Error("Cannot append "+n+" to "+e)},isElement:function(e){return(typeof HTMLElement>"u"?"undefined":xs(HTMLElement))==="object"?e instanceof HTMLElement:e&&xs(e)==="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string"},scrollInView:function(e,n){var r=getComputedStyle(e).getPropertyValue("borderTopWidth"),i=r?parseFloat(r):0,s=getComputedStyle(e).getPropertyValue("paddingTop"),o=s?parseFloat(s):0,l=e.getBoundingClientRect(),u=n.getBoundingClientRect(),c=u.top+document.body.scrollTop-(l.top+document.body.scrollTop)-i-o,h=e.scrollTop,p=e.clientHeight,m=this.getOuterHeight(n);c<0?e.scrollTop=h+c:c+m>p&&(e.scrollTop=h+c-p+m)},clearSelection:function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}},getSelection:function(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null},calculateScrollbarWidth:function(){if(this.calculatedScrollbarWidth!=null)return this.calculatedScrollbarWidth;var e=document.createElement("div");this.addStyles(e,{width:"100px",height:"100px",overflow:"scroll",position:"absolute",top:"-9999px"}),document.body.appendChild(e);var n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),this.calculatedScrollbarWidth=n,n},calculateBodyScrollbarWidth:function(){return window.innerWidth-document.documentElement.offsetWidth},getBrowser:function(){if(!this.browser){var e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser},resolveUserAgent:function(){var e=navigator.userAgent.toLowerCase(),n=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:n[1]||"",version:n[2]||"0"}},isVisible:function(e){return e&&e.offsetParent!=null},invokeElementMethod:function(e,n,r){e[n].apply(e,r)},isExist:function(e){return!!(e!==null&&typeof e<"u"&&e.nodeName&&this.getParentNode(e))},isClient:function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)},focus:function(e,n){e&&document.activeElement!==e&&e.focus(n)},isFocusableElement:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.isElement(e)?e.matches('button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(n,`, 398 [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(n,`, 399 input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(n,`, 400 select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(n,`, 401 textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(n,`,
402 [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(n,`, 403 [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(n)):!1},getFocusableElements:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=this.find(e,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(n,`, 404 [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(n,`, 405 input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(n,`, 406 select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(n,`, 407 textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(n,`, 408 [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(n,`, 409 [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(n)),i=[],s=vu(r),o;try{for(s.s();!(o=s.n()).done;){var l=o.value;getComputedStyle(l).display!="none"&&getComputedStyle(l).visibility!="hidden"&&i.push(l)}}catch(u){s.e(u)}finally{s.f()}return i},getFirstFocusableElement:function(e,n){var r=this.getFocusableElements(e,n);return r.length>0?r[0]:null},getLastFocusableElement:function(e,n){var r=this.getFocusableElements(e,n);return r.length>0?r[r.length-1]:null},getNextFocusableElement:function(e,n,r){var i=this.getFocusableElements(e,r),s=i.length>0?i.findIndex(function(l){return l===n}):-1,o=s>-1&&i.length>=s+1?s+1:-1;return o>-1?i[o]:null},getPreviousElementSibling:function(e,n){for(var r=e.previousElementSibling;r;){if(r.matches(n))return r;r=r.previousElementSibling}return null},getNextElementSibling:function(e,n){for(var r=e.nextElementSibling;r;){if(r.matches(n))return r;r=r.nextElementSibling}return null},isClickable:function(e){if(e){var n=e.nodeName,r=e.parentElement&&e.parentElement.nodeName;return n==="INPUT"||n==="TEXTAREA"||n==="BUTTON"||n==="A"||r==="INPUT"||r==="TEXTAREA"||r==="BUTTON"||r==="A"||!!e.closest(".p-button, .p-checkbox, .p-radiobutton")}return!1},applyStyle:function(e,n){if(typeof n=="string")e.style.cssText=n;else for(var r in n)e.style[r]=n[r]},isIOS:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream},isAndroid:function(){return/(android)/i.test(navigator.userAgent)},isTouchDevice:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0},hasCSSAnimation:function(e){if(e){var n=getComputedStyle(e),r=parseFloat(n.getPropertyValue("animation-duration")||"0");return r>0}return!1},hasCSSTransition:function(e){if(e){var n=getComputedStyle(e),r=parseFloat(n.getPropertyValue("transition-duration")||"0");return r>0}return!1},exportCSV:function(e,n){var r=new Blob([e],{type:"application/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(r,n+".csv");else{var i=document.createElement("a");i.download!==void 0?(i.setAttribute("href",URL.createObjectURL(r)),i.setAttribute("download",n+".csv"),i.style.display="none",document.body.appendChild(i),i.click(),document.body.removeChild(i)):(e="data:text/csv;charset=utf-8,"+e,window.open(encodeURI(e)))}},blockBodyScroll:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"p-overflow-hidden";document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)},unblockBodyScroll:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"p-overflow-hidden";document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}};function Js(t){"@babel/helpers - typeof";return Js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Js(t)}function wT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ET(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,IT(r.key),r)}}function TT(t,e,n){return e&&ET(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function IT(t){var e=AT(t,"string");return Js(e)=="symbol"?e:String(e)}function AT(t,e){if(Js(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Js(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var ST=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};wT(this,t),this.element=e,this.listener=n}return TT(t,[{key:"bindScrollListener",value:function(){this.scrollableParents=H.getScrollableParents(this.element);for(var n=0;n<this.scrollableParents.length;n++)this.scrollableParents[n].addEventListener("scroll",this.listener)}},{key:"unbindScrollListener",value:function(){if(this.scrollableParents)for(var n=0;n<this.scrollableParents.length;n++)this.scrollableParents[n].removeEventListener("scroll",this.listener)}},{key:"destroy",value:function(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}]),t}();function ph(){var t=new Map;return{on:function(n,r){var i=t.get(n);i?i.push(r):i=[r],t.set(n,i)},off:function(n,r){var i=t.get(n);i&&i.splice(i.indexOf(r)>>>0,1)},emit:function(n,r){var i=t.get(n);i&&i.slice().map(function(s){s(r)})}}}function lp(t,e){return RT(t)||PT(t,e)||mh(t,e)||CT()}
409function CT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 410In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PT(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,o,l=[],u=!0,c=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(u=(r=s.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(h){c=!0,i=h}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function RT(t){if(Array.isArray(t))return t}function up(t){return DT(t)||kT(t)||mh(t)||OT()}function OT(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 411In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kT(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function DT(t){if(Array.isArray(t))return nc(t)}function bu(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=mh(t))||e){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 412In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&n.return!=null&&n.return()}finally{if(o)throw l}}}}function mh(t,e){if(t){if(typeof t=="string")return nc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nc(t,e)}}function nc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ls(t){"@babel/helpers - typeof";return Ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ls(t)}var oe={equals:function(e,n,r){return r?this.resolveFieldData(e,r)===this.resolveFieldData(n,r):this.deepEquals(e,n)},deepEquals:function(e,n){if(e===n)return!0;if(e&&n&&Ls(e)=="object"&&Ls(n)=="object"){var r=Array.isArray(e),i=Array.isArray(n),s,o,l;if(r&&i){if(o=e.length,o!=n.length)return!1;for(s=o;s--!==0;)if(!this.deepEquals(e[s],n[s]))return!1;return!0}if(r!=i)return!1;var u=e instanceof Date,c=n instanceof Date;if(u!=c)return!1;if(u&&c)return e.getTime()==n.getTime();var h=e instanceof RegExp,p=n instanceof RegExp;if(h!=p)return!1;if(h&&p)return e.toString()==n.toString();var m=Object.keys(e);if(o=m.length,o!==Object.keys(n).length)return!1;for(s=o;s--!==0;)if(!Object.prototype.hasOwnProperty.call(n,m[s]))return!1;for(s=o;s--!==0;)if(l=m[s],!this.deepEquals(e[l],n[l]))return!1;return!0}return e!==e&&n!==n},resolveFieldData:function(e,n){if(!e||!n)return null;try{var r=e[n];if(this.isNotEmpty(r))return r}catch{}if(Object.keys(e).length){if(this.isFunction(n))return n(e);if(n.indexOf(".")===-1)return e[n];for(var i=n.split("."),s=e,o=0,l=i.length;o<l;++o){if(s==null)return null;s=s[i[o]]}return s}return null},getItemValue:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return this.isFunction(e)?e.apply(void 0,r):e},filter:function(e,n,r){var i=[];if(e){var s=bu(e),o;try{for(s.s();!(o=s.n()).done;){var l=o.value,u=bu(n),c;try{for(u.s();!(c=u.n()).done;){var h=c.value;if(String(this.resolveFieldData(l,h)).toLowerCase().indexOf(r.toLowerCase())>-1){i.push(l);break}}}catch(p){u.e(p)}finally{u.f()}}}catch(p){s.e(p)}finally{s.f()}}return i},reorderArray:function(e,n,r){e&&n!==r&&(r>=e.length&&(r%=e.length,n%=e.length),e.splice(r,0,e.splice(n,1)[0]))},findIndexInList:function(e,n){var r=-1;if(n){for(var i=0;i<n.length;i++)if(n[i]===e){r=i;break}}return r},contains:function(e,n){if(e!=null&&n&&n.length){var r=bu(n),i;try{for(r.s();!(i=r.n()).done;){var s=i.value;
412if(this.equals(e,s))return!0}}catch(o){r.e(o)}finally{r.f()}}return!1},insertIntoOrderedArray:function(e,n,r,i){if(r.length>0){for(var s=!1,o=0;o<r.length;o++){var l=this.findIndexInList(r[o],i);if(l>n){r.splice(o,0,e),s=!0;break}}s||r.push(e)}else r.push(e)},removeAccents:function(e){return e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e},getVNodeProp:function(e,n){if(e){var r=e.props;if(r){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s=Object.prototype.hasOwnProperty.call(r,i)?i:n;return e.type.extends.props[n].type===Boolean&&r[s]===""?!0:r[s]}}return null},toFlatCase:function(e){return this.isString(e)?e.replace(/(-|_)/g,"").toLowerCase():e},toKebabCase:function(e){return this.isString(e)?e.replace(/(_)/g,"-").replace(/[A-Z]/g,function(n,r){return r===0?n:"-"+n.toLowerCase()}).toLowerCase():e},toCapitalCase:function(e){return this.isString(e,{empty:!1})?e[0].toUpperCase()+e.slice(1):e},isEmpty:function(e){return e==null||e===""||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&Ls(e)==="object"&&Object.keys(e).length===0},isNotEmpty:function(e){return!this.isEmpty(e)},isFunction:function(e){return!!(e&&e.constructor&&e.call&&e.apply)},isObject:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e instanceof Object&&e.constructor===Object&&(n||Object.keys(e).length!==0)},isDate:function(e){return e instanceof Date&&e.constructor===Date},isArray:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Array.isArray(e)&&(n||e.length!==0)},isString:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return typeof e=="string"&&(n||e!=="")},isPrintableCharacter:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return this.isNotEmpty(e)&&e.length===1&&e.match(/\S| /)},findLast:function(e,n){var r;if(this.isNotEmpty(e))try{r=e.findLast(n)}catch{r=up(e).reverse().find(n)}return r},findLastIndex:function(e,n){var r=-1;if(this.isNotEmpty(e))try{r=e.findLastIndex(n)}catch{r=e.lastIndexOf(up(e).reverse().find(n))}return r},sort:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,o=this.compare(e,n,i,r),l=r;return(this.isEmpty(e)||this.isEmpty(n))&&(l=s===1?r:s),l*o},compare:function(e,n,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,s=-1,o=this.isEmpty(e),l=this.isEmpty(n);return o&&l?s=0:o?s=i:l?s=-i:typeof e=="string"&&typeof n=="string"?s=r(e,n):s=e<n?-1:e>n?1:0,s},localeComparator:function(){return new Intl.Collator(void 0,{numeric:!0}).compare},nestedKeys:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.entries(n).reduce(function(i,s){var o=lp(s,2),l=o[0],u=o[1],c=r?"".concat(r,".").concat(l):l;return e.isObject(u)?i=i.concat(e.nestedKeys(u,c)):i.push(c),i},[])},stringify:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,s=" ".repeat(i),o=" ".repeat(i+r);return this.isArray(e)?"["+e.map(function(l){return n.stringify(l,r,i+r)}).join(", ")+"]":this.isDate(e)?e.toISOString():this.isFunction(e)?e.toString():this.isObject(e)?`{ 413`+Object.entries(e).map(function(l){var u=lp(l,2),c=u[0],h=u[1];return"".concat(o).concat(c,": ").concat(n.stringify(h,r,i+r))}).join(`, 414`)+` 415`.concat(s)+"}":JSON.stringify(e)}};function Zs(t){"@babel/helpers - typeof";return Zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zs(t)}function xT(t){return MT(t)||VT(t)||NT(t)||LT()}function LT(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 416In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NT(t,e){if(t){if(typeof t=="string")return rc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rc(t,e)}}function VT(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function MT(t){if(Array.isArray(t))return rc(t)}function rc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function $T(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function FT(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ky(r.key),r)}}function UT(t,e,n){return e&&FT(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function cp(t,e,n){return e=ky(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ky(t){var e=BT(t,"string");return Zs(e)=="symbol"?e:String(e)}function BT(t,e){if(Zs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Zs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var kk=function(){function t(e){var n=e.init,r=e.type;$T(this,t),cp(this,"helpers",void 0),cp(this,"type",void 0),this.helpers=new Set(n),this.type=r}return UT(t,[{key:"add",value:function(n){this.helpers.add(n)}},{key:"update",value:function(){}},{key:"delete",value:function(n){this.helpers.delete(n)}},{key:"clear",value:function(){this.helpers.clear()}},{key:"get",value:function(n,r){var i=this._get(n,r),s=i?this._recursive(xT(this.helpers),i):null;return oe.isNotEmpty(s)?s:null}},{key:"_isMatched",value:function(n,r){var i,s=n==null?void 0:n.parent;return(s==null||(i=s.vnode)===null||i===void 0?void 0:i.key)===r||s&&this._isMatched(s,r)||!1}},{key:"_get",value:function(n,r){var i,s;return((i=r||(n==null?void 0:n.$slots))===null||i===void 0||(s=i.default)===null||s===void 0?void 0:s.call(i))||null}},{key:"_recursive",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=[];
416return i.forEach(function(o){o.children instanceof Array?s=s.concat(n._recursive(s,o.children)):o.type.name===n.type?s.push(o):oe.isNotEmpty(o.key)&&(s=s.concat(r.filter(function(l){return n._isMatched(l,o.key)}).map(function(l){return l.vnode})))}),s}}]),t}(),hp=0;function Lt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return hp++,"".concat(t).concat(hp)}function jT(t){return WT(t)||qT(t)||zT(t)||HT()}function HT(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 417In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zT(t,e){if(t){if(typeof t=="string")return ic(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ic(t,e)}}function qT(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function WT(t){if(Array.isArray(t))return ic(t)}function ic(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function KT(){var t=[],e=function(l,u){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:999,h=i(l,u,c),p=h.value+(h.key===l?0:c)+1;return t.push({key:l,value:p}),p},n=function(l){t=t.filter(function(u){return u.value!==l})},r=function(l,u){return i(l,u).value},i=function(l,u){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return jT(t).reverse().find(function(h){return!0})||{key:l,value:c}},s=function(l){return l&&parseInt(l.style.zIndex,10)||0};return{get:s,set:function(l,u,c){u&&(u.style.zIndex=String(e(l,!0,c)))},clear:function(l){l&&(n(s(l)),l.style.zIndex="")},getCurrent:function(l){return r(l,!0)}}}var _r=KT(),It={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"},Dk={AND:"and",OR:"or"};function dp(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=GT(t))||e){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 418In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,l;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return s=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!s&&n.return!=null&&n.return()}finally{if(o)throw l}}}}function GT(t,e){if(t){if(typeof t=="string")return fp(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fp(t,e)}}function fp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var xk={filter:function(e,n,r,i,s){var o=[];if(!e)return o;var l=dp(e),u;try{for(l.s();!(u=l.n()).done;){var c=u.value;if(typeof c=="string"){if(this.filters[i](c,r,s)){o.push(c);continue}}else{var h=dp(n),p;try{for(h.s();!(p=h.n()).done;){var m=p.value,y=oe.resolveFieldData(c,m);if(this.filters[i](y,r,s)){o.push(c);break}}}catch(C){h.e(C)}finally{h.f()}}}}catch(C){l.e(C)}finally{l.f()}return o},filters:{startsWith:function(e,n,r){if(n==null||n.trim()==="")return!0;if(e==null)return!1;var i=oe.removeAccents(n.toString()).toLocaleLowerCase(r),s=oe.removeAccents(e.toString()).toLocaleLowerCase(r);return s.slice(0,i.length)===i},contains:function(e,n,r){if(n==null||typeof n=="string"&&n.trim()==="")return!0;if(e==null)return!1;var i=oe.removeAccents(n.toString()).toLocaleLowerCase(r),s=oe.removeAccents(e.toString()).toLocaleLowerCase(r);return s.indexOf(i)!==-1},notContains:function(e,n,r){if(n==null||typeof n=="string"&&n.trim()==="")return!0;
418if(e==null)return!1;var i=oe.removeAccents(n.toString()).toLocaleLowerCase(r),s=oe.removeAccents(e.toString()).toLocaleLowerCase(r);return s.indexOf(i)===-1},endsWith:function(e,n,r){if(n==null||n.trim()==="")return!0;if(e==null)return!1;var i=oe.removeAccents(n.toString()).toLocaleLowerCase(r),s=oe.removeAccents(e.toString()).toLocaleLowerCase(r);return s.indexOf(i,s.length-i.length)!==-1},equals:function(e,n,r){return n==null||typeof n=="string"&&n.trim()===""?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()===n.getTime():oe.removeAccents(e.toString()).toLocaleLowerCase(r)==oe.removeAccents(n.toString()).toLocaleLowerCase(r)},notEquals:function(e,n,r){return n==null||typeof n=="string"&&n.trim()===""?!1:e==null?!0:e.getTime&&n.getTime?e.getTime()!==n.getTime():oe.removeAccents(e.toString()).toLocaleLowerCase(r)!=oe.removeAccents(n.toString()).toLocaleLowerCase(r)},in:function(e,n){if(n==null||n.length===0)return!0;for(var r=0;r<n.length;r++)if(oe.equals(e,n[r]))return!0;return!1},between:function(e,n){return n==null||n[0]==null||n[1]==null?!0:e==null?!1:e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1]},lt:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()<n.getTime():e<n},lte:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n},gt:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()>n.getTime():e>n},gte:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n},dateIs:function(e,n){return n==null?!0:e==null?!1:e.toDateString()===n.toDateString()},dateIsNot:function(e,n){return n==null?!0:e==null?!1:e.toDateString()!==n.toDateString()},dateBefore:function(e,n){return n==null?!0:e==null?!1:e.getTime()<n.getTime()},dateAfter:function(e,n){return n==null?!0:e==null?!1:e.getTime()>n.getTime()}},register:function(e,n){this.filters[e]=n}};function eo(t){"@babel/helpers - typeof";return eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eo(t)}function pp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function wu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pp(Object(n),!0).forEach(function(r){QT(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pp(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function QT(t,e,n){return e=YT(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function YT(t){var e=XT(t,"string");return eo(e)=="symbol"?e:String(e)}function XT(t,e){if(eo(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(eo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var mp={ripple:!1,inputStyle:"outlined",locale:{startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",completed:"Completed",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",today:"Today",weekHeader:"Wk",firstDayOfWeek:0,showMonthAfterYear:!1,dateFormat:"mm/dd/yy",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyFilterMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyMessage:"No available options",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"Page {page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left"}},filterMatchModeOptions:{text:[It.STARTS_WITH,It.CONTAINS,It.NOT_CONTAINS,It.ENDS_WITH,It.EQUALS,It.NOT_EQUALS],numeric:[It.EQUALS,It.NOT_EQUALS,It.LESS_THAN,It.LESS_THAN_OR_EQUAL_TO,It.GREATER_THAN,It.GREATER_THAN_OR_EQUAL_TO],date:[It.DATE_IS,It.DATE_IS_NOT,It.DATE_BEFORE,It.DATE_AFTER]},zIndex:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100},pt:void 0,ptOptions:{mergeSections:!0,mergeProps:!1},unstyled:!1,csp:{nonce:void 0}},JT=Symbol();function ZT(t,e,n,r){if(t!==e){var i=document.getElementById(n),s=i.
418cloneNode(!0),o=i.getAttribute("href").replace(t,e);s.setAttribute("id",n+"-clone"),s.setAttribute("href",o),s.addEventListener("load",function(){i.remove(),s.setAttribute("id",n),r&&r()}),i.parentNode&&i.parentNode.insertBefore(s,i.nextSibling)}}var eI={install:function(e,n){var r=n?wu(wu({},mp),n):wu({},mp),i={config:Gi(r),changeTheme:ZT};e.config.globalProperties.$primevue=i,e.provide(JT,i)}},Zt=ph(),tI=Symbol(),nI={install:function(e){var n={add:function(i){Zt.emit("add",i)},remove:function(i){Zt.emit("remove",i)},removeGroup:function(i){Zt.emit("remove-group",i)},removeAllGroups:function(){Zt.emit("remove-all-groups")}};e.config.globalProperties.$toast=n,e.provide(tI,n)}},Si=ph(),Dy=Symbol();function Lk(){var t=rn(Dy);if(!t)throw new Error("No PrimeVue Dialog provided!");return t}var rI={install:function(e){var n={open:function(i,s){var o={content:i&&qc(i),options:s||{},data:s&&s.data,close:function(u){Si.emit("close",{instance:o,params:u})}};return Si.emit("open",{instance:o}),o}};e.config.globalProperties.$dialog=n,e.provide(Dy,n)}},Ci=ph(),xy=Symbol();function Nk(){var t=rn(xy);if(!t)throw new Error("No PrimeVue Confirmation provided!");return t}var iI={install:function(e){var n={require:function(i){Ci.emit("confirm",i)},close:function(){Ci.emit("close")}};e.config.globalProperties.$confirm=n,e.provide(xy,n)}};function to(t){"@babel/helpers - typeof";return to=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},to(t)}function gp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function yp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gp(Object(n),!0).forEach(function(r){sI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gp(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function sI(t,e,n){return e=oI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function oI(t){var e=aI(t,"string");return to(e)=="symbol"?e:String(e)}function aI(t,e){if(to(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(to(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function lI(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;sh()?ml(t):e?t():Gc(t)}var uI=0;function Ly(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=cn(!1),r=cn(t),i=cn(null),s=H.isClient()?window.document:void 0,o=e.document,l=o===void 0?s:o,u=e.immediate,c=u===void 0?!0:u,h=e.manual,p=h===void 0?!1:h,m=e.name,y=m===void 0?"style_".concat(++uI):m,C=e.id,R=C===void 0?void 0:C,P=e.media,k=P===void 0?void 0:P,x=e.nonce,N=x===void 0?void 0:x,j=e.props,Z=j===void 0?{}:j,z=function(){},A=function(T){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l){var I=yp(yp({},Z),S),w=I.name||y,Le=I.id||R,pt=I.nonce||N;i.value=l.querySelector('style[data-primevue-style-id="'.concat(w,'"]'))||l.getElementById(Le)||l.createElement("style"),i.value.isConnected||(r.value=T||t,H.setAttributes(i.value,{type:"text/css",id:Le,media:k,nonce:pt}),l.head.appendChild(i.value),H.setAttribute(i.value,"data-primevue-style-id",y),H.setAttributes(i.value,I)),!n.value&&(z=Ss(r,function(Be){i.value.textContent=Be},{immediate:!0}),n.value=!0)}},v=function(){!l||!n.value||(z(),H.isExist(i.value)&&l.head.removeChild(i.value),n.value=!1)};return c&&!p&&lI(A),{id:R,name:y,css:r,unload:v,load:A,isLoaded:Hc(n)}}function no(t){"@babel/helpers - typeof";return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},no(t)}function cI(t,e){return pI(t)||fI(t,e)||dI(t,e)||hI()}
418function hI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 419In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dI(t,e){if(t){if(typeof t=="string")return vp(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vp(t,e)}}function vp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function fI(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,o,l=[],u=!0,c=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(u=(r=s.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(h){c=!0,i=h}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function pI(t){if(Array.isArray(t))return t}function _p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Eu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_p(Object(n),!0).forEach(function(r){mI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_p(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function mI(t,e,n){return e=gI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gI(t){var e=yI(t,"string");return no(e)=="symbol"?e:String(e)}function yI(t,e){if(no(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(no(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var vI=` 420.p-hidden-accessible { 421 border: 0; 422 clip: rect(0 0 0 0); 423 height: 1px; 424 margin: -1px; 425 overflow: hidden; 426 padding: 0; 427 position: absolute; 428 width: 1px; 429} 430 431.p-hidden-accessible input, 432.p-hidden-accessible select { 433 transform: scale(0); 434} 435 436.p-overflow-hidden { 437 overflow: hidden; 438 padding-right: var(--scrollbar-width); 439} 440`,_I={},bI={},Gt={name:"base",css:vI,classes:_I,inlineStyles:bI,loadStyle:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.css?Ly(this.css,Eu({name:this.name},e)):{}},getStyleSheet:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var r=Object.entries(n).reduce(function(i,s){var o=cI(s,2),l=o[0],u=o[1];return i.push("".concat(l,'="').concat(u,'"'))&&i},[]).join(" ");return'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(r,">").concat(this.css).concat(e,"</style>")}return""},extend:function(e){return Eu(Eu({},this),{},{css:void 0},e)}};function ro(t){"@babel/helpers - typeof";return ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ro(t)}function bp(t,e){return II(t)||TI(t,e)||EI(t,e)||wI()}function wI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 441In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EI(t,e){if(t){if(typeof t=="string")return wp(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wp(t,e)}}function wp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function TI(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,o,l=[],u=!0,c=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(u=(r=s.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(h){c=!0,i=h}
441finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function II(t){if(Array.isArray(t))return t}function Ep(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Qe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ep(Object(n),!0).forEach(function(r){sc(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ep(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function sc(t,e,n){return e=AI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function AI(t){var e=SI(t,"string");return ro(e)=="symbol"?e:String(e)}function SI(t,e){if(ro(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ro(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Oe={_getMeta:function(){return[oe.isObject(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],oe.getItemValue(oe.isObject(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_getConfig:function(e,n){var r,i,s;return(r=(e==null||(i=e.instance)===null||i===void 0?void 0:i.$primevue)||(n==null||(s=n.ctx)===null||s===void 0||(s=s.appContext)===null||s===void 0||(s=s.config)===null||s===void 0||(s=s.globalProperties)===null||s===void 0?void 0:s.$primevue))===null||r===void 0?void 0:r.config},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=oe.toFlatCase(n).split("."),s=i.shift();return s?oe.isObject(e)?Oe._getOptionValue(oe.getItemValue(e[Object.keys(e).find(function(o){return oe.toFlatCase(o)===s}
441)||""],r),i.join("."),r):void 0:oe.getItemValue(e,r)},_getPTValue:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,u=function(){var N=Oe._getOptionValue.apply(Oe,arguments);return oe.isString(N)||oe.isArray(N)?{class:N}:N},c="data-pc-",h=((e=r.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=r.$config)===null||n===void 0?void 0:n.ptOptions)||{},p=h.mergeSections,m=p===void 0?!0:p,y=h.mergeProps,C=y===void 0?!1:y,R=l?Oe._useDefaultPT(r,r.defaultPT(),u,s,o):void 0,P=Oe._usePT(r,Oe._getPT(i,r.$name),u,s,Qe(Qe({},o),{},{global:R||{}})),k=Qe(Qe({},s==="root"&&sc({},"".concat(c,"name"),oe.toFlatCase(r.$name))),{},sc({},"".concat(c,"section"),oe.toFlatCase(s)));return m||!m&&P?C?le(R,P,k):Qe(Qe(Qe({},R),P),k):Qe(Qe({},P),k)},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,i=function(o){var l,u=r?r(o):o,c=oe.toFlatCase(n);return(l=u==null?void 0:u[c])!==null&&l!==void 0?l:u};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,o=function(P){return r(P,i,s)};if(n!=null&&n.hasOwnProperty("_usept")){var l,u=n._usept||((l=e.$config)===null||l===void 0?void 0:l.ptOptions)||{},c=u.mergeSections,h=c===void 0?!0:c,p=u.mergeProps,m=p===void 0?!1:p,y=o(n.originalValue),C=o(n.value);return y===void 0&&C===void 0?void 0:oe.isString(C)?C:oe.isString(y)?y:h||!h&&C?m?le(y,C):Qe(Qe({},y),C):C}return o(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;return Oe._usePT(e,n,r,i,s)},_hook:function(e,n,r,i,s,o){var l,u,c="on".concat(oe.toCapitalCase(n)),h=Oe._getConfig(i,s),p=r==null?void 0:r.$instance,m=Oe._usePT(p,Oe._getPT(i==null||(l=i.value)===null||l===void 0?void 0:l.pt,e),Oe._getOptionValue,"hooks.".concat(c)),y=Oe._useDefaultPT(p,h==null||(u=h.pt)===null||u===void 0||(u=u.directives)===null||u===void 0?void 0:u[e],Oe._getOptionValue,"hooks.".concat(c)),C={el:r,binding:i,vnode:s,prevVnode:o};m==null||m(p,C),y==null||y(p,C)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=function(s,o,l,u,c){var h,p;o._$instances=o._$instances||{};var m=Oe._getConfig(l,u),y=o._$instances[e]||{},C=oe.isEmpty(y)?Qe(Qe({},n),n==null?void 0:n.methods):{};o._$instances[e]=Qe(Qe({},y),{},{$name:e,$host:o,$binding:l,$modifiers:l==null?void 0:l.modifiers,$value:l==null?void 0:l.value,$el:y.$el||o||void 0,$style:Qe({classes:void 0,inlineStyles:void 0,loadStyle:function(){}},n==null?void 0:n.style),$config:m,defaultPT:function(){return Oe._getPT(m==null?void 0:m.pt,void 0,function(P){var k;return P==null||(k=P.directives)===null||k===void 0?void 0:k[e]})},isUnstyled:function(){var P,k;return((P=o.$instance)===null||P===void 0||(P=P.$binding)===null||P===void 0||(P=P.value)===null||P===void 0?void 0:P.unstyled)!==void 0?(k=o.$instance)===null||k===void 0||(k=k.$binding)===null||k===void 0||(k=k.value)===null||k===void 0?void 0:k.unstyled:m==null?void 0:m.unstyled},ptm:function(){var P,k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Oe._getPTValue(o.$instance,(P=o.$instance)===null||P===void 0||(P=P.$binding)===null||P===void 0||(P=P.value)===null||P===void 0?void 0:P.pt,k,Qe({},x))},ptmo:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Oe._getPTValue(o.$instance,P,k,x,!1)},cx:function(){var P,k,x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(P=o.$instance)!==null&&P!==void 0&&P.isUnstyled()?void 0:Oe._getOptionValue((k=o.$instance)===null||k===void 0||(k=k.$style)===null||k===void 0?void 0:k.classes,x,Qe({},N))},sx:function(){var P,k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return x?Oe._getOptionValue((P=o.$instance)===null||P===void 0||(P=P.$style)===null||P===void 0?void 0:P.inlineStyles,k,Qe({},N)):void 0}},C),o.$instance=o._$instances[e],(h=(p=o.$instance)[s])===null||h===void 0||h.call(p,o,l,u,c),Oe._hook(e,s,o,l,u,c)};return{created:function(s,o,l,u){r("created",s,o,l,u)},beforeMount:function(s,o,l,u){var c,h,p,m,y=Oe._getConfig(o,l);Gt.loadStyle(void 0,{nonce:y==null||(c=y.csp)===null||c===void 0?void 0:c.nonce}),!((h=s.$instance)!==null&&h!==void 0&&h.isUnstyled())&&((p=s.$instance)===null||p===void 0||(p=p.$style)===null||p===void 0||p.loadStyle(void 0,{nonce:y==null||(m=y.csp)===null||m===void 0?void 0:m.nonce})),r("beforeMount",s,o,l,u)},mounted:function(s,o,l,u){r("mounted",s,o,l,u)},beforeUpdate:function(s,o,l,u){r("beforeUpdate",s,o,l,u)},updated:function(s,o,l,u){r("updated",s,o,l,u)},beforeUnmount:function(s,o,l,u){r("beforeUnmount",s,o,l,u)},unmounted:function(s,o,l,u){r("unmounted",s,o,l,u)}}},extend:function(){var e=Oe._getMeta.apply(Oe,arguments),n=bp(e,2),r=n[0],i=n[1];return Qe({extend:function(){var o=Oe._getMeta.apply(Oe,arguments),l=bp(o,2),u=l[0],c=l[1];return Oe.extend(u,Qe(Qe(Qe({},i),i==null?void 0:i.methods),c))}},Oe._extend(r,i))}},CI=` 442@layer primevue { 443 .p-tooltip { 444 position:absolute; 445 display:none; 446 padding: .25em .5rem; 447 max-width: 12.5rem; 448 } 449 450 .p-tooltip.p-tooltip-right, 451 .p-tooltip.p-tooltip-left { 452 padding: 0 .25rem; 453 } 454 455 .p-tooltip.p-tooltip-top, 456 .p-tooltip.p-tooltip-bottom { 457 padding:.25em 0; 458 } 459 460 .p-tooltip .p-tooltip-text { 461 white-space: pre-line; 462 word-break: break-word; 463 } 464 465 .p-tooltip-arrow { 466 position: absolute; 467 width: 0; 468 height: 0; 469 border-color: transparent; 470 border-style: solid; 471 scale: 2; 472 } 473 474 .p-tooltip-right .p-tooltip-arrow { 475 margin-top: -.25rem; 476 border-width: .25em .25em .25em 0; 477 } 478 479 .p-tooltip-left .p-tooltip-arrow { 480 margin-top: -.25rem; 481 border-width: .25em 0 .25em .25rem; 482 } 483 484 .p-tooltip.p-tooltip-top { 485 padding: .25em 0; 486 } 487 488 .p-tooltip-top .p-tooltip-arrow { 489 margin-left: -.25rem; 490 border-width: .25em .25em 0; 491 } 492 493 .p-tooltip-bottom .p-tooltip-arrow { 494 margin-left: -.25rem; 495 border-width: 0 .25em .25rem; 496 } 497} 498`,PI={root:"p-tooltip p-component",arrow:"p-tooltip-arrow",text:"p-tooltip-text"},RI=Gt.extend({name:"tooltip",css:CI,classes:PI}),OI=Oe.extend({style:RI});function kI(t,e){return NI(t)||LI(t,e)||xI(t,e)||DI()}
498function DI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 499In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xI(t,e){if(t){if(typeof t=="string")return Tp(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tp(t,e)}}function Tp(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function LI(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,o,l=[],u=!0,c=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(u=(r=s.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(h){c=!0,i=h}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function NI(t){if(Array.isArray(t))return t}function Ns(t){"@babel/helpers - typeof";return Ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ns(t)}var VI=OI.extend("tooltip",{beforeMount:function(e,n){var r,i=this.getTarget(e);if(i.$_ptooltipModifiers=this.getModifiers(n),n.value){if(typeof n.value=="string")i.$_ptooltipValue=n.value,i.$_ptooltipDisabled=!1,i.$_ptooltipEscape=!0,i.$_ptooltipClass=null,i.$_ptooltipFitContent=!0,i.$_ptooltipIdAttr=Lt()+"_tooltip",i.$_ptooltipShowDelay=0,i.$_ptooltipHideDelay=0,i.$_ptooltipAutoHide=!0;else if(Ns(n.value)==="object"&&n.value){if(oe.isEmpty(n.value.value)||n.value.value.trim()==="")return;i.$_ptooltipValue=n.value.value,i.$_ptooltipDisabled=!!n.value.disabled===n.value.disabled?n.value.disabled:!1,i.$_ptooltipEscape=!!n.value.escape===n.value.escape?n.value.escape:!0,i.$_ptooltipClass=n.value.class||"",i.$_ptooltipFitContent=!!n.value.fitContent===n.value.fitContent?n.value.fitContent:!0,i.$_ptooltipIdAttr=n.value.id||Lt()+"_tooltip",i.$_ptooltipShowDelay=n.value.showDelay||0,i.$_ptooltipHideDelay=n.value.hideDelay||0,i.$_ptooltipAutoHide=!!n.value.autoHide===n.value.autoHide?n.value.autoHide:!0}}else return;i.$_ptooltipZIndex=(r=n.instance.$primevue)===null||r===void 0||(r=r.config)===null||r===void 0||(r=r.zIndex)===null||r===void 0?void 0:r.tooltip,this.bindEvents(i,n),e.setAttribute("data-pd-tooltip",!0)},updated:function(e,n){var r=this.getTarget(e);if(r.$_ptooltipModifiers=this.getModifiers(n),this.unbindEvents(r),!!n.value){if(typeof n.value=="string")r.$_ptooltipValue=n.value,r.$_ptooltipDisabled=!1,r.$_ptooltipEscape=!0,r.$_ptooltipClass=null,r.$_ptooltipIdAttr=r.$_ptooltipIdAttr||Lt()+"_tooltip",r.$_ptooltipShowDelay=0,r.$_ptooltipHideDelay=0,r.$_ptooltipAutoHide=!0,this.bindEvents(r,n);else if(Ns(n.value)==="object"&&n.value)if(oe.isEmpty(n.value.value)||n.value.value.trim()===""){this.unbindEvents(r,n);return}else r.$_ptooltipValue=n.value.value,r.$_ptooltipDisabled=!!n.value.disabled===n.value.disabled?n.value.disabled:!1,r.$_ptooltipEscape=!!n.value.escape===n.value.escape?n.value.escape:!0,r.$_ptooltipClass=n.value.class||"",r.$_ptooltipFitContent=!!n.value.fitContent===n.value.fitContent?n.value.fitContent:!0,r.$_ptooltipIdAttr=n.value.id||r.$_ptooltipIdAttr||Lt()+"_tooltip",r.$_ptooltipShowDelay=n.value.showDelay||0,r.$_ptooltipHideDelay=n.value.hideDelay||0,r.$_ptooltipAutoHide=!!n.value.autoHide===n.value.autoHide?n.value.autoHide:!0,this.bindEvents(r,n)}},unmounted:function(e,n){var r=this.getTarget(e);this.remove(r),this.unbindEvents(r,n),r.$_ptooltipScrollHandler&&(r.$_ptooltipScrollHandler.destroy(),r.$_ptooltipScrollHandler=null)},timer:void 0,methods:{bindEvents:function(e,n){var r=this,i=e.$_ptooltipModifiers;i.focus?(e.$_focusevent=function(s){return r.onFocus(s,n)},e.addEventListener("focus",e.$_focusevent),e.addEventListener("blur",this.onBlur.bind(this))):(e.$_mouseenterevent=function(s){return r.onMouseEnter(s,n)},e.addEventListener("mouseenter",e.$_mouseenterevent),e.addEventListener("mouseleave",this.onMouseLeave.bind(this)),e.addEventListener("click",this.onClick.bind(this))),e.addEventListener("keydown",this.onKeydown.bind(this))},unbindEvents:function(e){var n=e.$_ptooltipModifiers;n.focus?(e.removeEventListener("focus",e.$_focusevent),e.$_focusevent=null,e.removeEventListener("blur",this.onBlur.bind(this))):(e.removeEventListener("mouseenter",e.$_mouseenterevent),e.$_mouseenterevent=null,e.removeEventListener("mouseleave",this.onMouseLeave.bind(this)),e.removeEventListener("click",this.onClick.bind(this))),e.removeEventListener("keydown",this.onKeydown.bind(this))},bindScrollListener:function(e){var n=this;e.$_ptooltipScrollHandler||(e.$_ptooltipScrollHandler=new ST(e,function(){n.hide(e)})),e.$_ptooltipScrollHandler.bindScrollListener()},unbindScrollListener:function(e){e.$_ptooltipScrollHandler&&e.$_ptooltipScrollHandler.unbindScrollListener()},onMouseEnter:function(e,n){var r=e.currentTarget,i=r.$_ptooltipShowDelay;this.show(r,n,i)},onMouseLeave:function(e){var n=e.currentTarget,r=n.$_ptooltipHideDelay,i=n.$_ptooltipAutoHide;if(i)this.hide(n,r);else{var s=H.getAttribute(e.target,"data-pc-name")==="tooltip"||H.getAttribute(e.target,"data-pc-section")==="arrow"||H.getAttribute(e.target,"data-pc-section")==="text"||H.getAttribute(e.relatedTarget,"data-pc-name")==="tooltip"||H.getAttribute(e.relatedTarget,"data-pc-section")==="arrow"||H.getAttribute(e.relatedTarget,"data-pc-section")==="text";!s&&this.hide(n,r)}},onFocus:function(e,n){var r=e.currentTarget,i=r.$_ptooltipShowDelay;this.show(r,n,i)},onBlur:function(e){var n=e.currentTarget,r=n.$_ptooltipHideDelay;this.hide(n,r)},onClick:function(e){var n=e.currentTarget,r=n.$_ptooltipHideDelay;this.hide(n,r)},onKeydown:function(e){var n=e.currentTarget,r=n.$_ptooltipHideDelay;e.code==="Escape"&&this.hide(e.currentTarget,r)},tooltipActions:function(e,n){if(!(e.$_ptooltipDisabled||!H.isExist(e))){var r=this.create(e,n);this.align(e),!this.isUnstyled()&&H.fadeIn(r,250);var i=this;window.addEventListener("resize",function s(){H.isTouchDevice()||i.hide(e),window.removeEventListener("resize",s)}),r.addEventListener("mouseleave",function s(){i.hide(e),r.removeEventListener("mouseleave",s)}),this.bindScrollListener(e),_r.set("tooltip",r,e.$_ptooltipZIndex)}},show:function(e,n,r){var i=this;r!==void 0?this.timer=setTimeout(function(){return i.tooltipActions(e,n)},r):this.tooltipActions(e,n)},tooltipRemoval:function(e){this.remove(e),this.unbindScrollListener(e)},hide:function(e,n){var r=this;clearTimeout(this.timer),n!==void 0?setTimeout(function(){return r.tooltipRemoval(e)},n):this.tooltipRemoval(e)},getTooltipElement:function(e){return document.getElementById(e.$_ptooltipId)},create:function(e,n){var r=e.$_ptooltipModifiers,i=H.createElement("div",{class:!this.isUnstyled()&&this.cx("arrow"),style:{to
499p:r!=null&&r.bottom?"0":r!=null&&r.right||r!=null&&r.left||!(r!=null&&r.right)&&!(r!=null&&r.left)&&!(r!=null&&r.top)&&!(r!=null&&r.bottom)?"50%":null,bottom:r!=null&&r.top?"0":null,left:r!=null&&r.right||!(r!=null&&r.right)&&!(r!=null&&r.left)&&!(r!=null&&r.top)&&!(r!=null&&r.bottom)?"0":r!=null&&r.top||r!=null&&r.bottom?"50%":null,right:r!=null&&r.left?"0":null},"p-bind":this.ptm("arrow",{context:r})}),s=H.createElement("div",{class:!this.isUnstyled()&&this.cx("text"),"p-bind":this.ptm("text",{context:r})});e.$_ptooltipEscape?(s.innerHTML="",s.appendChild(document.createTextNode(e.$_ptooltipValue))):s.innerHTML=e.$_ptooltipValue;var o=H.createElement("div",{id:e.$_ptooltipIdAttr,role:"tooltip",style:{display:"inline-block",width:e.$_ptooltipFitContent?"fit-content":void 0,pointerEvents:!this.isUnstyled()&&e.$_ptooltipAutoHide&&"none"},class:[!this.isUnstyled()&&this.cx("root"),e.$_ptooltipClass],"p-bind":this.ptm("root",{context:r})},i,s);return document.body.appendChild(o),e.$_ptooltipId=o.id,this.$el=o,o},remove:function(e){if(e){var n=this.getTooltipElement(e);n&&n.parentElement&&(_r.clear(n),document.body.removeChild(n)),e.$_ptooltipId=null}},align:function(e){var n=e.$_ptooltipModifiers;n.top?(this.alignTop(e),this.isOutOfBounds(e)&&(this.alignBottom(e),this.isOutOfBounds(e)&&this.alignTop(e))):n.left?(this.alignLeft(e),this.isOutOfBounds(e)&&(this.alignRight(e),this.isOutOfBounds(e)&&(this.alignTop(e),this.isOutOfBounds(e)&&(this.alignBottom(e),this.isOutOfBounds(e)&&this.alignLeft(e))))):n.bottom?(this.alignBottom(e),this.isOutOfBounds(e)&&(this.alignTop(e),this.isOutOfBounds(e)&&this.alignBottom(e))):(this.alignRight(e),this.isOutOfBounds(e)&&(this.alignLeft(e),this.isOutOfBounds(e)&&(this.alignTop(e),this.isOutOfBounds(e)&&(this.alignBottom(e),this.isOutOfBounds(e)&&this.alignRight(e)))))},getHostOffset:function(e){var n=e.getBoundingClientRect(),r=n.left+H.getWindowScrollLeft(),i=n.top+H.getWindowScrollTop();return{left:r,top:i}},alignRight:function(e){this.preAlign(e,"right");var n=this.getTooltipElement(e),r=this.getHostOffset(e),i=r.left+H.getOuterWidth(e),s=r.top+(H.getOuterHeight(e)-H.getOuterHeight(n))/2;n.style.left=i+"px",n.style.top=s+"px"},alignLeft:function(e){this.preAlign(e,"left");var n=this.getTooltipElement(e),r=this.getHostOffset(e),i=r.left-H.getOuterWidth(n),s=r.top+(H.getOuterHeight(e)-H.getOuterHeight(n))/2;n.style.left=i+"px",n.style.top=s+"px"},alignTop:function(e){this.preAlign(e,"top");var n=this.getTooltipElement(e),r=this.getHostOffset(e),i=r.left+(H.getOuterWidth(e)-H.getOuterWidth(n))/2,s=r.top-H.getOuterHeight(n);n.style.left=i+"px",n.style.top=s+"px"},alignBottom:function(e){this.preAlign(e,"bottom");var n=this.getTooltipElement(e),r=this.getHostOffset(e),i=r.left+(H.getOuterWidth(e)-H.getOuterWidth(n))/2,s=r.top+H.getOuterHeight(e);n.style.left=i+"px",n.style.top=s+"px"},preAlign:function(e,n){var r=this.getTooltipElement(e);r.style.left="-999px",r.style.top="-999px",H.removeClass(r,"p-tooltip-".concat(r.$_ptooltipPosition)),!this.isUnstyled()&&H.addClass(r,"p-tooltip-".concat(n)),r.$_ptooltipPosition=n,r.setAttribute("data-p-position",n)},isOutOfBounds:function(e){var n=this.getTooltipElement(e),r=n.getBoundingClientRect(),i=r.top,s=r.left,o=H.getOuterWidth(n),l=H.getOuterHeight(n),u=H.getViewport();return s+o>u.width||s<0||i<0||i+l>u.height},getTarget:function(e){return H.hasClass(e,"p-inputwrapper")?H.findSingle(e,"input"):e},getModifiers:function(e){return e.modifiers&&Object.keys(e.modifiers).length?e.modifiers:e.arg&&Ns(e.arg)==="object"?Object.entries(e.arg).reduce(function(n,r){var i=kI(r,2),s=i[0],o=i[1];return(s==="event"||s==="position")&&(n[o]=!0),n},{}):{}}}}),MI=` 500@layer primevue { 501 .p-badge { 502 display: inline-block; 503 border-radius: 10px; 504 text-align: center; 505 padding: 0 .5rem; 506 } 507 508 .p-overlay-badge { 509 position: relative; 510 } 511 512 .p-overlay-badge .p-badge { 513 position: absolute; 514 top: 0; 515 right: 0; 516 transform: translate(50%,-50%); 517 transform-origin: 100% 0; 518 margin: 0; 519 } 520 521 .p-badge-dot { 522 width: .5rem; 523 min-width: .5rem; 524 height: .5rem; 525 border-radius: 50%; 526 padding: 0; 527 } 528 529 .p-badge-no-gutter { 530 padding: 0; 531 border-radius: 50%; 532 } 533} 534`,$I={root:"p-badge p-component"},FI=Gt.extend({name:"badge",css:MI,classes:$I}),UI=Oe.extend({style:FI});function ti(t){"@babel/helpers - typeof";return ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ti(t)}function Ip(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ap(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
534e%2?Ip(Object(n),!0).forEach(function(r){BI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ip(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function BI(t,e,n){return e=jI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jI(t){var e=HI(t,"string");return ti(e)=="symbol"?e:String(e)}function HI(t,e){if(ti(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ti(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var zI=UI.extend("badge",{mounted:function(e,n){var r=Lt()+"_badge",i=H.createElement("span",{id:r,class:!this.isUnstyled()&&this.cx("root"),"p-bind":this.ptm("root",{context:Ap(Ap({},n.modifiers),{},{nogutter:String(n.value).length===1,dot:n.value==null})})});e.$_pbadgeId=i.getAttribute("id");for(var s in n.modifiers)!this.isUnstyled()&&H.addClass(i,"p-badge-"+s);n.value!=null?(ti(n.value)==="object"?e.$_badgeValue=n.value.value:e.$_badgeValue=n.value,i.appendChild(document.createTextNode(e.$_badgeValue)),String(e.$_badgeValue).length===1&&!this.isUnstyled()&&
vendor: 18,332 bytes, lines 534-538
534!this.isUnstyled()&&H.addClass(i,"p-badge-no-gutter")):!this.isUnstyled()&&H.addClass(i,"p-badge-dot"),e.setAttribute("data-pd-badge",!0),!this.isUnstyled()&&H.addClass(e,"p-overlay-badge"),e.setAttribute("data-p-overlay-badge","true"),e.appendChild(i),this.$el=i},updated:function(e,n){if(!this.isUnstyled()&&H.addClass(e,"p-overlay-badge"),e.setAttribute("data-p-overlay-badge","true"),n.oldValue!==n.value){var r=document.getElementById(e.$_pbadgeId);ti(n.value)==="object"?e.$_badgeValue=n.value.value:e.$_badgeValue=n.value,this.isUnstyled()||(e.$_badgeValue?(H.hasClass(r,"p-badge-dot")&&H.removeClass(r,"p-badge-dot"),e.$_badgeValue.length===1?H.addClass(r,"p-badge-no-gutter"):H.removeClass(r,"p-badge-no-gutter")):!e.$_badgeValue&&!H.hasClass(r,"p-badge-dot")&&H.addClass(r,"p-badge-dot")),r.innerHTML="",r.appendChild(document.createTextNode(e.$_badgeValue))}}});/*! 535 * vue-router v4.2.5 536 * (c) 2023 Eduardo San Martin Morote 537 * @license MIT 538 */const Ei=typeof window<"u";function qI(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const xe=Object.assign;function Tu(t,e){const n={};for(const r in e){const i=e[r];n[r]=fn(i)?i.map(t):t(i)}return n}const Vs=()=>{},fn=Array.isArray,WI=/\/$/,KI=t=>t.replace(WI,"");function Iu(t,e,n="/"){let r,i={},s="",o="";const l=e.indexOf("#");let u=e.indexOf("?");return l<u&&l>=0&&(u=-1),u>-1&&(r=e.slice(0,u),s=e.slice(u+1,l>-1?l:e.length),i=t(s)),l>-1&&(r=r||e.slice(0,l),o=e.slice(l,e.length)),r=XI(r??e,n),{fullPath:r+(s&&"?")+s+o,path:r,query:i,hash:o}}function GI(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function Sp(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function QI(t,e,n){const r=e.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Mi(e.matched[r],n.matched[i])&&Ny(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function Mi(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function Ny(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!YI(t[n],e[n]))return!1;return!0}function YI(t,e){return fn(t)?Cp(t,e):fn(e)?Cp(e,t):t===e}function Cp(t,e){return fn(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function XI(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let s=n.length-1,o,l;for(o=0;o<r.length;o++)if(l=r[o],l!==".")if(l==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var io;(function(t){t.pop="pop",t.push="push"})(io||(io={}));var Ms;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Ms||(Ms={}));function JI(t){if(!t)if(Ei){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),KI(t)}const ZI=/^[^#]+#/;function eA(t,e){return t.replace(ZI,"#")+e}function tA(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const wl=()=>({left:window.pageXOffset,top:window.pageYOffset});function nA(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;e=tA(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function Pp(t,e){return(history.state?history.state.position-e:-1)+t}const oc=new Map;function rA(t,e){oc.set(t,e)}function iA(t){const e=oc.get(t);return oc.delete(t),e}let sA=()=>location.protocol+"//"+location.host;function Vy(t,e){const{pathname:n,search:r,hash:i}=e,s=t.indexOf("#");if(s>-1){let l=i.includes(t.slice(s))?t.slice(s).length:1,u=i.slice(l);return u[0]!=="/"&&(u="/"+u),Sp(u,"")}return Sp(n,t)+r+i}function oA(t,e,n,r){let i=[],s=[],o=null;const l=({state:m})=>{const y=Vy(t,location),C=n.value,R=e.value;let P=0;if(m){if(n.value=y,e.value=m,o&&o===C){o=null;return}P=R?m.position-R.position:0}else r(y);i.forEach(k=>{k(n.value,C,{delta:P,type:io.pop,direction:P?P>0?Ms.forward:Ms.back:Ms.unknown})})};function u(){o=n.value}function c(m){i.push(m);const y=()=>{const C=i.indexOf(m);C>-1&&i.splice(C,1)};return s.push(y),y}function h(){const{history:m}=window;m.state&&m.replaceState(xe({},m.state,{scroll:wl()}),"")}function p(){for(const m of s)m();s=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:u,listen:c,destroy:p}}function Rp(t,e,n,r=!1,i=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:i?wl():null}}function aA(t){const{history:e,location:n}=window,r={value:Vy(t,n)},i={value:e.state};i.value||s(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(u,c,h){const p=t.indexOf("#"),m=p>-1?(n.host&&document.querySelector("base")?t:t.slice(p))+u:sA()+t+u;try{e[h?"replaceState":"pushState"](c,"",m),i.value=c}catch(y){console.error(y),n[h?"replace":"assign"](m)}}function o(u,c){const h=xe({},e.state,Rp(i.value.back,u,i.value.forward,!0),c,{position:i.value.position});s(u,h,!0),r.value=u}function l(u,c){const h=xe({},i.value,e.state,{forward:u,scroll:wl()});s(h.current,h,!0);const p=xe({},Rp(r.value,u,null),{position:h.position+1},c);s(u,p,!1),r.value=u}return{location:r,state:i,push:l,replace:o}}function lA(t){t=JI(t);const e=aA(t),n=oA(t,e.state,e.location,e.replace);function r(s,o=!0){o||n.pauseListeners(),history.go(s)}const i=xe({location:"",base:t,go:r,createHref:eA.bind(null,t)},e,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function uA(t){return typeof t=="string"||t&&typeof t=="object"}function My(t){return typeof t=="string"||typeof t=="symbol"}const er={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},$y=Symbol("");var Op;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Op||(Op={}));function $i(t,e){return xe(new Error,{type:t,[$y]:!0},e)}function kn(t,e){return t instanceof Error&&$y in t&&(e==null||!!(t.type&e))}const kp="[^/]+?",cA={sensitive:!1,strict:!1,start:!0,end:!0},hA=/[.+*?^${}()[\]/\\]/g;function dA(t,e){const n=xe({},cA,e),r=[];let i=n.start?"^":"";const s=[];for(const c of t){const h=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let p=0;p<c.length;p++){const m=c[p];let y=40+(n.sensitive?.25:0);if(m.type===0)p||(i+="/"),i+=m.value.replace(hA,"\\$&"),y+=40;else if(m.type===1){const{value:C,repeatable:R,optional:P,regexp:k}=m;s.push({name:C,repeatable:R,optional:P});const x=k||kp;if(x!==kp){y+=10;try{new RegExp(`(${x})`)}catch(j){throw new Error(`Invalid custom RegExp for param "${C}" (${x}): `+j.message)}}let N=R?`((?:${x})(?:/(?:${x}))*)`:`(${x})`;p||(N=P&&c.length<2?`(?:/${N})`:"/"+N),P&&(N+="?"),i+=N,y+=20,P&&(y+=-8),R&&(y+=-20),x===".*"&&(y+=-50)}h.push(y)}r.push(h)}if(n.strict&&n.end){const c=r.length-1;r[c][r[c].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const o=new RegExp(i,n.sensitive?"":"i");function l(c){const h=c.match(o),p={};if(!h)return null;for(let m=1;m<h.length;m++){const y=h[m]||"",C=s[m-1];p[C.name]=y&&C.repeatable?y.split("/"):y}return p}function u(c){let h="",p=!1;for(const m of t){(!p||!h.endsWith("/"))&&(h+="/"),p=!1;for(const y of m)if(y.type===0)h+=y.value;else if(y.type===1){const{value:C,repeatable:R,optional:P}=y,k=C in c?c[C]:"";if(fn(k)&&!R)throw new Error(`Provided param "${C}" is an array but it is not repeatable (* or + modifiers)`);const x=fn(k)?k.join("/"):k;if(!x)if(P)m.length<2&&(h.endsWith("/")?h=h.slice(0,-1):p=!0);else throw new Error(`Missing required param "${C}"`);h+=x}}return h||"/"}return{re:o,score:r,keys:s,parse:l,stringify:u}}function fA(t,e){let n=0;for(;n<t.length&&n<e.length;){const r=e[n]-t[n];if(r)return r;n++}return t.length<e.length?t.length===1&&t[0]===80?-1:1:t.length>e.length?e.length===1&&e[0]===80?1:-1:0}function pA(t,e){let n=0;const r=t.score,i=e.score;for(;n<r.length&&n<i.length;){const s=fA(r[n],i[n]);if(s)return s;n++}if(Math.abs(i.length-r.length)===1){if(Dp(r))return 1;if(Dp(i))return-1}return i.length-r.length}function Dp(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const mA={type:0,value:""},gA=/[a-zA-Z0-9_]/;function yA(t){if(!t)return[[]];if(t==="/")return[[mA]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(y){throw new Error(`ERR (${n})/"${c}": ${y}`)}let n=0,r=n;const i=[];let s;function o(){s&&i.push(s),s=[]}let l=0,u,c="",h="";function p(){c&&(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(u==="*"||u==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:h,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):e("Invalid state to consume buffer"),c="")}function m(){c+=u}for(;l<t.length;){if(u=t[l++],u==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:u==="/"?(c&&p(),o()):u===":"?(p(),n=1):m();break;case 4:m(),n=r;break;case 1:u==="("?n=2:gA.test(u)?m():(p(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&l--);break;case 2:u===")"?h[h.length-1]=="\\"?h=h.slice(0,-1)+u:n=3:h+=u;break;case 3:p(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&l--,h="";break;default:e("Unknown state");break}}return n===2&&e(`Unfinished custom RegExp for param "${c}"`),p(),o(),i}function vA(t,e,n){const r=dA(yA(t.path),n),i=xe(r,{record:t,parent:e,children:[],alias:[]});return e&&!i.record.aliasOf==!e.record.aliasOf&&e.children.push(i),i}function _A(t,e){const n=[],r=new Map;e=Np({strict:!1,end:!0,sensitive:!1},e);function i(h){return r.get(h)}function s(h,p,m){const y=!m,C=bA(h);C.aliasOf=m&&m.record;const R=Np(e,h),P=[C];if("alias"in h){const N=typeof h.alias=="string"?[h.alias]:h.alias;for(const j of N)P.push(xe({},C,{components:m?m.record.components:C.components,path:j,aliasOf:m?m.record:C}))}let k,x;for(const N of P){const{path:j}=N;if(p&&j[0]!=="/"){const Z=p.record.path,z=Z[Z.length-1]==="/"?"":"/";N.path=p.record.path+(j&&z+j)}if(k=vA(N,p,R),m?m.alias.push(k):(x=x||k,x!==k&&x.alias.push(k),y&&h.name&&!Lp(k)&&o(h.name)),C.children){const Z=C.children;for(let z=0;z<Z.length;z++)s(Z[z],k,m&&m.children[z])}m=m||k,(k.record.components&&Object.keys(k.record.components).length||k.record.name||k.record.redirect)&&u(k)}return x?()=>{o(x)}:Vs}function o(h){if(My(h)){const p=r.get(h);p&&(r.delete(h),n.splice(n.indexOf(p),1),p.children.forEach(o),p.alias.forEach(o))}else{const p=n.indexOf(h);p>-1&&(n.splice(p,1),h.record.name&&r.delete(h.record.name),h.children.forEach(o),h.alias.forEach(o))}}function l(){return n}function u(h){let p=0;for(;p<n.length&&pA(h,n[p])>=0&&(h.record.path!==n[p].record.path||!Fy(h,n[p]));)p++;n.splice(p,0,h),h.record.name&&!Lp(h)&&r.set(h.record.name,h)}function c(h,p){let m,y={},C,R;if("name"in h&&h.name){if(m=r.get(h.name),!m)throw $i(1,{location:h});R=m.record.name,y=xe(xp(p.params,m.keys.filter(x=>!x.optional).map(x=>x.name)),h.params&&xp(h.params,m.keys.map(x=>x.name))),C=m.stringify(y)}else if("path"in h)C=h.path,m=n.find(x=>x.re.test(C)),m&&(y=m.parse(C),R=m.record.name);else{if(m=p.name?r.get(p.name):n.find(x=>x.re.test(p.path)),!m)throw $i(1,{location:h,currentLocation:p});R=m.record.name,y=xe({},p.params,h.params),C=m.stringify(y)}const P=[];let k=m;for(;k;)P.unshift(k.record),k=k.parent;return{name:R,path:C,params:y,matched:P,meta:EA(P)}}return t.forEach(h=>s(h)),{addRoute:s,resolve:c,removeRoute:o,getRoutes:l,getRecordMatcher:i}}function xp(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function bA(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:wA(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function wA(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="object"?n[r]:n;return e}function Lp(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function EA(t){return t.reduce((e,n)=>xe(e,n.meta),{})}function Np(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function Fy(t,e){return e.children.some(n=>n===t||Fy(t,n))}const Uy=/#/g,TA=/&/g,IA=/\//g,AA=/=/g,SA=/\?/g,By=/\+/g,CA=/%5B/g,PA=/%5D/g,jy=/%5E/g,RA=/%60/g,Hy=/%7B/g,OA=/%7C/g,zy=/%7D/g,kA=/%20/g;function gh(t){return encodeURI(""+t).replace(OA,"|").replace(CA,"[").replace(PA,"]")}function DA(t){return gh(t).replace(Hy,"{").replace(zy,"}").replace(jy,"^")}function ac(t){return gh(t).replace(By,"%2B").replace(kA,"+").replace(Uy,"%23").replace(TA,"%26").replace(RA,"`").replace(Hy,"{").replace(zy,"}").replace(jy,"^")}function xA(t){return ac(t).replace(AA,"%3D")}function LA(t){return gh(t).replace(Uy,"%23").replace(SA,"%3F")}function NA(t){return t==null?"":LA(t).replace(IA,"%2F")}function za(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function VA(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;i<r.length;++i){const s=r[i].replace(By," "),o=s.indexOf("="),l=za(o<0?s:s.slice(0,o)),u=o<0?null:za(s.slice(o+1));if(l in e){let c=e[l];fn(c)||(c=e[l]=[c]),c.push(u)}else e[l]=u}return e}function Vp(t){let e="";for(let n in t){const r=t[n];if(n=xA(n),r==null){r!==void 0&&(e+=(e.length?"&":"")+n);continue}(fn(r)?r.map(s=>s&&ac(s)):[r&&ac(r)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+n,s!=null&&(e+="="+s))})}return e}function MA(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=fn(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return e}const $A=Symbol(""),Mp=Symbol(""),El=Symbol(""),qy=Symbol(""),lc=Symbol("");function gs(){let t=[];function e(r){return t.push(r),()=>{const i=t.indexOf(r);i>-1&&t.splice(i,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function lr(t,e,n,r,i){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,l)=>{const u=p=>{p===!1?l($i(4,{from:n,to:e})):p instanceof Error?l(p):uA(p)?l($i(2,{from:e,to:p})):(s&&r.enterCallbacks[i]===s&&typeof p=="function"&&s.push(p),o())},c=t.call(r&&r.instances[i],e,n,u);let h=Promise.resolve(c);t.length<3&&(h=h.then(u)),h.catch(p=>l(p))})}function Au(t,e,n,r){const i=[];for(const s of t)for(const o in s.components){let l=s.components[o];if(!(e!=="beforeRouteEnter"&&!s.instances[o]))if(FA(l)){const c=(l.__vccOpts||l)[e];c&&i.push(lr(c,n,r,s,o))}else{let u=l();i.push(()=>u.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${s.path}"`));const h=qI(c)?c.default:c;s.components[o]=h;const m=(h.__vccOpts||h)[e];return m&&lr(m,n,r,s,o)()}))}}return i}function FA(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function $p(t){const e=rn(El),n=rn(qy),r=dt(()=>e.resolve(me(t.to))),i=dt(()=>{const{matched:u}=r.value,{length:c}=u,h=u[c-1],p=n.matched;if(!h||!p.length)return-1;const m=p.findIndex(Mi.bind(null,h));if(m>-1)return m;const y=Fp(u[c-2]);return c>1&&Fp(h)===y&&p[p.length-1].path!==y?p.findIndex(Mi.bind(null,u[c-2])):m}),s=dt(()=>i.value>-1&&HA(n.params,r.value.params)),o=dt(()=>i.value>-1&&i.value===n.matched.length-1&&Ny(n.params,r.value.params));function l(u={}){return jA(u)?e[me(t.replace)?"replace":"push"](me(t.to)).catch(Vs):Promise.resolve()}return{route:r,href:dt(()=>r.value.href),isActive:s,isExactActive:o,navigate:l}}const UA=kr({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:$p,setup(t,{slots:e}){const n=Gi($p(t)),{options:r}=rn(El),i=dt(()=>({[Up(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Up(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=e.default&&e.default(n);return t.custom?s:oh("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},s)}}}),BA=UA;function jA(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function HA(t,e){for(const n in e){const r=e[n],i=t[n];if(typeof r=="string"){if(r!==i)return!1}else if(!fn(i)||i.length!==r.length||r.some((s,o)=>s!==i[o]))return!1}return!0}function Fp(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Up=(t,e,n)=>t??e??n,zA=kr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=rn(lc),i=dt(()=>t.route||r.value),s=rn(Mp,0),o=dt(()=>{let c=me(s);const{matched:h}=i.value;let p;for(;(p=h[c])&&!p.components;)c++;return c}),l=dt(()=>i.value.matched[o.value]);_a(Mp,dt(()=>o.value+1)),_a($A,l),_a(lc,i);const u=cn();return Ss(()=>[u.value,l.value,t.name],([c,h,p],[m,y,C])=>{h&&(h.instances[p]=c,y&&y!==h&&c&&c===m&&(h.leaveGuards.size||(h.leaveGuards=y.leaveGuards),h.updateGuards.size||(h.updateGuards=y.updateGuards))),c&&h&&(!y||!Mi(h,y)||!m)&&(h.enterCallbacks[p]||[]).forEach(R=>R(c))},{flush:"post"}),()=>{const c=i.value,h=t.name,p=l.value,m=p&&p.components[h];if(!m)return Bp(n.default,{Component:m,route:c});const y=p.props[h],C=y?y===!0?c.params:typeof y=="function"?y(c):y:null,P=oh(m,xe({},C,e,{onVnodeUnmounted:k=>{k.component.isUnmounted&&(p.instances[h]=null)},ref:u}));return Bp(n.default,{Component:P,route:c})||P}}});function Bp(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const Wy=zA;function qA(t){const e=_A(t.routes,t),n=t.parseQuery||VA,r=t.stringifyQuery||Vp,i=t.history,s=gs(),o=gs(),l=gs(),u=bb(er);let c=er;Ei&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=Tu.bind(null,M=>
vendor: 5,413 bytes, line 538
538""+M),p=Tu.bind(null,NA),m=Tu.bind(null,za);function y(M,ee){let Y,te;return My(M)?(Y=e.getRecordMatcher(M),te=ee):te=M,e.addRoute(te,Y)}function C(M){const ee=e.getRecordMatcher(M);ee&&e.removeRoute(ee)}function R(){return e.getRoutes().map(M=>M.record)}function P(M){return!!e.getRecordMatcher(M)}function k(M,ee){if(ee=xe({},ee||u.value),typeof M=="string"){const E=Iu(n,M,ee.path),D=e.resolve({path:E.path},ee),$=i.createHref(E.fullPath);return xe(E,D,{params:m(D.params),hash:za(E.hash),redirectedFrom:void 0,href:$})}let Y;if("path"in M)Y=xe({},M,{path:Iu(n,M.path,ee.path).path});else{const E=xe({},M.params);for(const D in E)E[D]==null&&delete E[D];Y=xe({},M,{params:p(E)}),ee.params=p(ee.params)}const te=e.resolve(Y,ee),Ie=M.hash||"";te.params=h(m(te.params));const Ve=GI(r,xe({},M,{hash:DA(Ie),path:te.path})),_=i.createHref(Ve);return xe({fullPath:Ve,hash:Ie,query:r===Vp?MA(M.query):M.query||{}},te,{redirectedFrom:void 0,href:_})}function x(M){return typeof M=="string"?Iu(n,M,u.value.path):xe({},M)}function N(M,ee){if(c!==M)return $i(8,{from:ee,to:M})}function j(M){return A(M)}function Z(M){return j(xe(x(M),{replace:!0}))}function z(M){const ee=M.matched[M.matched.length-1];if(ee&&ee.redirect){const{redirect:Y}=ee;let te=typeof Y=="function"?Y(M):Y;return typeof te=="string"&&(te=te.includes("?")||te.includes("#")?te=x(te):{path:te},te.params={}),xe({query:M.query,hash:M.hash,params:"path"in te?{}:M.params},te)}}function A(M,ee){const Y=c=k(M),te=u.value,Ie=M.state,Ve=M.force,_=M.replace===!0,E=z(Y);if(E)return A(xe(x(E),{state:typeof E=="object"?xe({},Ie,E.state):Ie,force:Ve,replace:_}),ee||Y);const D=Y;D.redirectedFrom=ee;let $;return!Ve&&QI(r,te,Y)&&($=$i(16,{to:D,from:te}),Qt(te,te,!0,!1)),($?Promise.resolve($):T(D,te)).catch(V=>kn(V)?kn(V,2)?V:on(V):be(V,D,te)).then(V=>{if(V){if(kn(V,2))return A(xe({replace:_},x(V.to),{state:typeof V.to=="object"?xe({},Ie,V.to.state):Ie,force:Ve}),ee||D)}else V=I(D,te,!0,_,Ie);return S(D,te,V),V})}function v(M,ee){const Y=N(M,ee);return Y?Promise.reject(Y):Promise.resolve()}function b(M){const ee=Kn.values().next().value;return ee&&typeof ee.runWithContext=="function"?ee.runWithContext(M):M()}function T(M,ee){let Y;const[te,Ie,Ve]=WA(M,ee);Y=Au(te.reverse(),"beforeRouteLeave",M,ee);for(const E of te)E.leaveGuards.forEach(D=>{Y.push(lr(D,M,ee))});const _=v.bind(null,M,ee);return Y.push(_),ct(Y).then(()=>{Y=[];for(const E of s.list())Y.push(lr(E,M,ee));return Y.push(_),ct(Y)}).then(()=>{Y=Au(Ie,"beforeRouteUpdate",M,ee);for(const E of Ie)E.updateGuards.forEach(D=>{Y.push(lr(D,M,ee))});return Y.push(_),ct(Y)}).then(()=>{Y=[];for(const E of Ve)if(E.beforeEnter)if(fn(E.beforeEnter))for(const D of E.beforeEnter)Y.push(lr(D,M,ee));else Y.push(lr(E.beforeEnter,M,ee));return Y.push(_),ct(Y)}).then(()=>(M.matched.forEach(E=>E.enterCallbacks={}),Y=Au(Ve,"beforeRouteEnter",M,ee),Y.push(_),ct(Y))).then(()=>{Y=[];for(const E of o.list())Y.push(lr(E,M,ee));return Y.push(_),ct(Y)}).catch(E=>kn(E,8)?E:Promise.reject(E))}function S(M,ee,Y){l.list().forEach(te=>b(()=>te(M,ee,Y)))}function I(M,ee,Y,te,Ie){const Ve=N(M,ee);if(Ve)return Ve;const _=ee===er,E=Ei?history.state:{};Y&&(te||_?i.replace(M.fullPath,xe({scroll:_&&E&&E.scroll},Ie)):i.push(M.fullPath,Ie)),u.value=M,Qt(M,ee,Y,_),on()}let w;function Le(){w||(w=i.listen((M,ee,Y)=>{if(!pn.listening)return;const te=k(M),Ie=z(te);if(Ie){A(xe(Ie,{replace:!0}),te).catch(Vs);return}c=te;const Ve=u.value;Ei&&rA(Pp(Ve.fullPath,Y.delta),wl()),T(te,Ve).catch(_=>kn(_,12)?_:kn(_,2)?(A(_.to,te).then(E=>{kn(E,20)&&!Y.delta&&Y.type===io.pop&&i.go(-1,!1)}).catch(Vs),Promise.reject()):(Y.delta&&i.go(-Y.delta,!1),be(_,te,Ve))).then(_=>{_=_||I(te,Ve,!1),_&&(Y.delta&&!kn(_,8)?i.go(-Y.delta,!1):Y.type===io.pop&&kn(_,20)&&i.go(-1,!1)),S(te,Ve,_)}).catch(Vs)}))}let pt=gs(),Be=gs(),Te;function be(M,ee,Y){on(M);const te=Be.list();return te.length?te.forEach(Ie=>Ie(M,ee,Y)):console.error(M),Promise.reject(M)}function Ut(){return Te&&u.value!==er?Promise.resolve():new Promise((M,ee)=>{pt.add([M,ee])})}function on(M){return Te||(Te=!M,Le(),pt.list().forEach(([ee,Y])=>M?Y(M):ee()),pt.reset()),M}function Qt(M,ee,Y,te){const{scrollBehavior:Ie}=t;if(!Ei||!Ie)return Promise.resolve();const Ve=!Y&&iA(Pp(M.fullPath,0))||(te||!Y)&&history.state&&history.state.scroll||null;return Gc().then(()=>Ie(M,ee,Ve)).then(_=>_&&nA(_)).catch(_=>be(_,M,ee))}const Ke=M=>i.go(M);let Ge;const Kn=new Set,pn={currentRoute:u,listening:!0,addRoute:y,removeRoute:C,hasRoute:P,getRoutes:R,resolve:k,options:t,push:j,replace:Z,go:Ke,back:()=>Ke(-1),forward:()=>Ke(1),beforeEach:s.add,beforeResolve:o.add,afterEach:l.add,onError:Be.add,isReady:Ut,install(M){const ee=this;M.component("RouterLink",BA),M.component("RouterView",Wy),M.config.globalProperties.$router=ee,Object.defineProperty(M.config.globalProperties,"$route",{enumerable:!0,get:()=>me(u)}),Ei&&!Ge&&u.value===er&&(Ge=!0,j(i.location).catch(Ie=>{}));const Y={};for(const Ie in er)Object.defineProperty(Y,Ie,{get:()=>u.value[Ie],enumerable:!0});M.provide(El,ee),M.provide(qy,Eg(Y)),M.provide(lc,u);const te=M.unmount;Kn.add(M),M.unmount=function(){Kn.delete(M),Kn.size<1&&(c=er,w&&w(),w=null,u.value=er,Ge=!1,Te=!1),te()}}};function ct(M){return M.reduce((ee,Y)=>ee.then(()=>b(Y)),Promise.resolve())}return pn}function WA(t,e){const n=[],r=[],i=[],s=Math.max(e.matched.length,t.matched.length);for(let o=0;o<s;o++){const l=e.matched[o];l&&(t.matched.find(c=>
538Mi(c,l))?r.push(l):n.push(l));const u=t.matched[o];u&&(e.matched.find(c=>Mi(c,u))||i.push(u))}return[n,r,i]}function yh(){return rn(El)}const KA="/assets/logo-CBfpefhY.png";var GA=` 539@layer primevue { 540 .p-badge { 541 display: inline-block; 542 border-radius: 10px; 543 text-align: center; 544 padding: 0 .5rem; 545 } 546 547 .p-overlay-badge { 548 position: relative; 549 } 550 551 .p-overlay-badge .p-badge { 552 position: absolute; 553 top: 0; 554 right: 0; 555 transform: translate(50%,-50%); 556 transform-origin: 100% 0; 557 margin: 0; 558 } 559 560 .p-badge-dot { 561 width: .5rem; 562 min-width: .5rem; 563 height: .5rem; 564 border-radius: 50%; 565 padding: 0; 566 } 567 568 .p-badge-no-gutter { 569 padding: 0; 570 border-radius: 50%; 571 } 572} 573`,QA={root:function(e){var n=e.props,r=e.instance;return["p-badge p-component",{"p-badge-no-gutter":oe.isNotEmpty(n.value)&&String(n.value).length===1,"p-badge-dot":oe.isEmpty(n.value)&&!r.$slots.default,"p-badge-lg":n.size==="large","p-badge-xl":n.size==="xlarge","p-badge-info":n.severity==="info","p-badge-success":n.severity==="success","p-badge-warning":n.severity==="warning","p-badge-danger":n.severity==="danger"}]}},YA=Gt.extend({name:"badge",css:GA,classes:QA});function so(t){"@babel/helpers - typeof";return so=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},so(t)}function jp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function XA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?jp(Object(n),!0).forEach(function(r){JA(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jp(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function JA(t,e,n){return e=ZA(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ZA(t){var e=eS(t,"string");return so(e)=="symbol"?e:String(e)}function eS(t,e){if(so(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(so(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var tS=` 574.p-button { 575 display: inline-flex; 576 cursor: pointer; 577 user-select: none; 578 align-items: center; 579 vertical-align: bottom; 580 text-align: center; 581 overflow: hidden; 582 position: relative; 583} 584 585.p-button-label { 586 flex: 1 1 auto; 587} 588 589.p-button-icon-right { 590 order: 1; 591} 592 593.p-button:disabled { 594 cursor: default; 595} 596 597.p-button-icon-only { 598 justify-content: center; 599} 600 601.p-button-icon-only .p-button-label { 602 visibility: hidden; 603 width: 0; 604 flex: 0 0 auto; 605} 606 607.p-button-vertical { 608 flex-direction: column; 609} 610 611.p-button-icon-bottom { 612 order: 2; 613} 614 615.p-buttonset .p-button { 616 margin: 0; 617} 618 619.p-buttonset .p-button:not(:last-child), .p-buttonset .p-button:not(:last-child):hover { 620 border-right: 0 none; 621} 622 623.p-buttonset .p-button:not(:first-of-type):not(:last-of-type) { 624 border-radius: 0; 625} 626 627.p-buttonset .p-button:first-of-type:not(:only-of-type) { 628 border-top-right-radius: 0; 629 border-bottom-right-radius: 0; 630} 631 632.p-buttonset .p-button:last-of-type:not(:only-of-type) { 633 border-top-left-radius: 0; 634 border-bottom-left-radius: 0; 635} 636 637.p-buttonset .p-button:focus { 638 position: relative; 639 z-index: 1; 640} 641`,nS=` 642.p-checkbox { 643 display: inline-flex; 644 cursor: pointer; 645 user-select: none; 646 vertical-align: bottom; 647 position: relative; 648} 649 650.p-checkbox.p-checkbox-disabled { 651 cursor: default; 652} 653 654.p-checkbox-box { 655 display: flex; 656 justify-content: center; 657 align-items: center; 658} 659`,rS=` 660.p-fluid .p-inputtext { 661 width: 100%; 662} 663 664/* InputGroup */ 665.p-inputgroup { 666 display: flex; 667 align-items: stretch; 668 width: 100%; 669} 670 671.p-inputgroup-addon { 672 display: flex; 673 align-items: center; 674 justify-content: center; 675} 676 677.p-inputgroup .p-float-label { 678 display: flex; 679 align-items: stretch; 680 width: 100%; 681} 682 683.p-inputgroup .p-inputtext, 684.p-fluid .p-inputgroup .p-inputtext, 685.p-inputgroup .p-inputwrapper, 686.p-fluid .p-inputgroup .p-input { 687 flex: 1 1 auto; 688 width: 1%; 689} 690 691/* Floating Label */ 692.p-float-label { 693 display: block; 694 position: relative; 695} 696 697.p-float-label label { 698 position: absolute; 699 pointer-events: none; 700 top: 50%; 701 margin-top: -.5rem; 702 transition-property: all; 703 transition-timing-function: ease; 704 line-height: 1; 705} 706 707.p-float-label textarea ~ label { 708 top: 1rem; 709} 710 711.p-float-label input:focus ~ label, 712.p-float-label input.p-filled ~ label, 713.p-float-label input:-webkit-autofill ~ label, 714.p-float-label textarea:focus ~ label, 715.p-float-label textarea.p-filled ~ label, 716.p-float-label .p-inputwrapper-focus ~ label, 717.p-float-label .p-inputwrapper-filled ~ label { 718 top: -.75rem; 719 font-size: 12px; 720} 721 722 723.p-float-label .p-placeholder, 724.p-float-label input::placeholder, 725.p-float-label .p-inputtext::placeholder { 726 opacity: 0; 727 transition-property: all; 728 transition-timing-function: ease; 729} 730 731.p-float-label .p-focus .p-placeholder, 732.p-float-label input:focus::placeholder, 733.p-float-label .p-inputtext:focus::placeholder { 734 opacity: 1; 735 transition-property: all; 736 transition-timing-function: ease; 737} 738 739.p-input-icon-left, 740.p-input-icon-right { 741 position: relative; 742 display: inline-block; 743} 744 745.p-input-icon-left > i, 746.p-input-icon-left > svg, 747.p-input-icon-right > i, 748.p-input-icon-right > svg { 749 position: absolute; 750 top: 50%; 751 margin-top: -.5rem; 752} 753 754.p-fluid .p-input-icon-left, 755.p-fluid .p-input-icon-right { 756 display: block; 757 width: 100%; 758} 759`,iS=` 760.p-radiobutton { 761 position: relative; 762 display: inline-flex; 763 cursor: pointer; 764 user-select: none; 765 vertical-align: bottom; 766} 767 768.p-radiobutton.p-radiobutton-disabled { 769 cursor: default; 770} 771 772.p-radiobutton-box { 773 display: flex; 774 justify-content: center;
775 align-items: center; 776} 777 778.p-radiobutton-icon { 779 -webkit-backface-visibility: hidden; 780 backface-visibility: hidden; 781 transform: translateZ(0) scale(.1); 782 border-radius: 50%; 783 visibility: hidden; 784} 785 786.p-radiobutton-box.p-highlight .p-radiobutton-icon { 787 transform: translateZ(0) scale(1.0, 1.0); 788 visibility: visible; 789} 790`,sS=` 791@layer primevue { 792.p-component, .p-component * { 793 box-sizing: border-box; 794} 795 796.p-hidden-space { 797 visibility: hidden; 798} 799 800.p-reset { 801 margin: 0; 802 padding: 0; 803 border: 0; 804 outline: 0; 805 text-decoration: none; 806 font-size: 100%; 807 list-style: none; 808} 809 810.p-disabled, .p-disabled * { 811 cursor: default; 812 pointer-events: none; 813 user-select: none; 814} 815 816.p-component-overlay { 817 position: fixed; 818 top: 0; 819 left: 0; 820 width: 100%; 821 height: 100%; 822} 823 824.p-unselectable-text { 825 user-select: none; 826} 827 828.p-sr-only { 829 border: 0; 830 clip: rect(1px, 1px, 1px, 1px); 831 clip-path: inset(50%); 832 height: 1px; 833 margin: -1px; 834 overflow: hidden; 835 padding: 0; 836 position: absolute; 837 width: 1px; 838 word-wrap: normal; 839} 840 841.p-link { 842 text-align: left; 843 background-color: transparent; 844 margin: 0; 845 padding: 0; 846 border: none; 847 cursor: pointer; 848 user-select: none; 849} 850 851.p-link:disabled { 852 cursor: default; 853} 854 855/* Non vue overlay animations */ 856.p-connected-overlay { 857 opacity: 0; 858 transform: scaleY(0.8); 859 transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1); 860} 861 862.p-connected-overlay-visible { 863 opacity: 1; 864 transform: scaleY(1); 865} 866 867.p-connected-overlay-hidden { 868 opacity: 0; 869 transform: scaleY(1); 870 transition: opacity .1s linear; 871} 872 873/* Vue based overlay animations */ 874.p-connected-overlay-enter-from { 875 opacity: 0; 876 transform: scaleY(0.8); 877} 878 879.p-connected-overlay-leave-to { 880 opacity: 0; 881} 882 883.p-connected-overlay-enter-active { 884 transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1); 885} 886 887.p-connected-overlay-leave-active { 888 transition: opacity .1s linear; 889} 890 891/* Toggleable Content */ 892.p-toggleable-content-enter-from, 893.p-toggleable-content-leave-to { 894 max-height: 0; 895} 896 897.p-toggleable-content-enter-to, 898.p-toggleable-content-leave-from { 899 max-height: 1000px; 900} 901 902.p-toggleable-content-leave-active { 903 overflow: hidden; 904 transition: max-height 0.45s cubic-bezier(0, 1, 0, 1); 905} 906 907.p-toggleable-content-enter-active { 908 overflow: hidden; 909 transition: max-height 1s ease-in-out; 910} 911`.concat(tS,` 912`).concat(nS,` 913`).concat(rS,` 914`).concat(iS,` 915} 916`),Su=Gt.extend({name:"common",css:sS,loadGlobalStyle:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ly(e,XA({name:"global"},n))}});function oo(t){"@babel/helpers - typeof";return oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oo(t)}function Hp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function qe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Hp(Object(n),!0).forEach(function(r){uc(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hp(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function uc(t,e,n){return e=oS(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function oS(t){var e=aS(t,"string");return oo(e)=="symbol"?e:String(e)}function aS(t,e){if(oo(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(oo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var qn={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){if(!e){var n,r;Su.loadStyle({nonce:(n=this.$config)===null||n===void 0||(n=n.csp)===null||n===void 0?void 0:n.nonce}),this.$options.style&&this.$style.loadStyle({nonce:(r=this.$config)===null||r===void 0||(r=r.csp)===null||r===void 0?void 0:r.nonce})}}}},beforeCreate:function(){var e,n,r,i,s,o,l,u,c,h,p,m=(e=this.pt)===null||e===void 0?void 0:e._usept,y=m?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.n
916ame]:void 0,C=m?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(i=C||y)===null||i===void 0||(i=i.hooks)===null||i===void 0||(s=i.onBeforeCreate)===null||s===void 0||s.call(i);var R=(o=this.$config)===null||o===void 0||(o=o.pt)===null||o===void 0?void 0:o._usept,P=R?(l=this.$primevue)===null||l===void 0||(l=l.config)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l.originalValue:void 0,k=R?(u=this.$primevue)===null||u===void 0||(u=u.config)===null||u===void 0||(u=u.pt)===null||u===void 0?void 0:u.value:(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0?void 0:c.pt;(h=k||P)===null||h===void 0||(h=h[this.$.type.name])===null||h===void 0||(h=h.hooks)===null||h===void 0||(p=h.onBeforeCreate)===null||p===void 0||p.call(h)},created:function(){this._hook("onCreated")},beforeMount:function(){var e;Gt.loadStyle({nonce:(e=this.$config)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}),this._loadGlobalStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),r==null||r()}},_loadGlobalStyles:function(){var e,n=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);oe.isNotEmpty(n)&&Su.loadGlobalStyle(n,{nonce:(e=this.$config)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce})},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=oe.toFlatCase(n).split("."),s=i.shift();return s?oe.isObject(e)?this._getOptionValue(oe.getItemValue(e[Object.keys(e).find(function(o){return oe.toFlatCase(o)===s}
916)||""],r),i.join("."),r):void 0:oe.getItemValue(e,r)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o="data-pc-",l=/./g.test(r)&&!!i[r.split(".")[0]],u=this._getPropValue("ptOptions")||((e=this.$config)===null||e===void 0?void 0:e.ptOptions)||{},c=u.mergeSections,h=c===void 0?!0:c,p=u.mergeProps,m=p===void 0?!1:p,y=s?l?this._useGlobalPT(this._getPTClassValue,r,i):this._useDefaultPT(this._getPTClassValue,r,i):void 0,C=l?void 0:this._usePT(this._getPT(n,this.$name),this._getPTClassValue,r,qe(qe({},i),{},{global:y||{}})),R=r!=="transition"&&qe(qe({},r==="root"&&uc({},"".concat(o,"name"),oe.toFlatCase(this.$.type.name))),{},uc({},"".concat(o,"section"),oe.toFlatCase(r)));return h||!h&&C?m?le(y,C,R):qe(qe(qe({},y),C),R):qe(qe({},C),R)},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return oe.isString(e)||oe.isArray(e)?{class:e}:e},_getPT:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,s=function(l){var u,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=i?i(l):l,p=oe.toFlatCase(r),m=oe.toFlatCase(n.$name);return(u=c?p!==m?h==null?void 0:h[p]:void 0:h==null?void 0:h[p])!==null&&u!==void 0?u:h};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:s(e.originalValue),value:s(e.value)}:s(e,!0)},_usePT:function(e,n,r,i){var s=function(R){return n(R,r,i)};if(e!=null&&e.hasOwnProperty("_usept")){var o,l=e._usept||((o=this.$config)===null||o===void 0?void 0:o.ptOptions)||{},u=l.mergeSections,c=u===void 0?!0:u,h=l.mergeProps,p=h===void 0?!1:h,m=s(e.originalValue),y=s(e.value);return m===void 0&&y===void 0?void 0:oe.isString(y)?y:oe.isString(m)?m:c||!c&&y?p?le(m,y):qe(qe({},m),y):y}return s(e)},_useGlobalPT:function(e,n,r){return this._usePT(this.globalPT,e,n,r)},_useDefaultPT:function(e,n,r){return this._usePT(this.defaultPT,e,n,r)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,qe(qe({},this.$params),n))},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,qe({instance:this},r),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,qe(qe({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var i=this._getOptionValue(this.$style.inlineStyles,e,qe(qe({},this.$params),r)),s=this._getOptionValue(Su.inlineStyles,e,qe(qe({},this.$params),r));return[s,i]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$config)===null||e===void 0?void 0:e.pt,void 0,function(r){return oe.getItemValue(r,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$config)===null||e===void 0?void 0:e.pt,void 0,function(r){return n._getOptionValue(r,n.$name,qe({},n.$params))||oe.getItemValue(r,qe({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$config)===null||e===void 0?void 0:e.unstyled},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs},parentInstance:e}},$style:function(){return qe(qe({classes:void 0,inlineStyles:void 0,loadStyle:function(){},loadCustomStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$config:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config}
916,$name:function(){return this.$options.hostName||this.$.type.name}}},lS={name:"BaseBadge",extends:qn,props:{value:{type:[String,Number],default:null},severity:{type:String,default:null},size:{type:String,default:null}},style:YA,provide:function(){return{$parentInstance:this}}},Ky={name:"Badge",extends:lS};function uS(t,e,n,r,i,s){return X(),ge("span",le({class:t.cx("root")},t.ptm("root"),{"data-pc-name":"badge"}),[yt(t.$slots,"default",{},function(){return[Ni(In(t.value),1)]})],16)}Ky.render=uS;var cS=` 917.p-icon { 918 display: inline-block; 919} 920 921.p-icon-spin { 922 -webkit-animation: p-icon-spin 2s infinite linear; 923 animation: p-icon-spin 2s infinite linear; 924} 925 926@-webkit-keyframes p-icon-spin { 927 0% { 928 -webkit-transform: rotate(0deg); 929 transform: rotate(0deg); 930 } 931 100% { 932 -webkit-transform: rotate(359deg); 933 transform: rotate(359deg); 934 } 935} 936 937@keyframes p-icon-spin { 938 0% { 939 -webkit-transform: rotate(0deg); 940 transform: rotate(0deg); 941 } 942 100% { 943 -webkit-transform: rotate(359deg); 944 transform: rotate(359deg); 945 } 946} 947`,hS=Gt.extend({name:"baseicon",css:cS});function ao(t){"@babel/helpers - typeof";return ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ao(t)}function zp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function qp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?zp(Object(n),!0).forEach(function(r){dS(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zp(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function dS(t,e,n){return e=fS(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fS(t){var e=pS(t,"string");return ao(e)=="symbol"?e:String(e)}function pS(t,e){if(ao(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ao(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Dr={name:"BaseIcon",extends:qn,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:hS,methods:{pti:function(){var e=oe.isEmpty(this.label);return qp(qp({},!this.isUnstyled&&{class:["p-icon",{"p-icon-spin":this.spin}]}),{},{role:e?void 0:"img","aria-label":e?void 0:this.label,"aria-hidden":e})}}},Gy={name:"SpinnerIcon",extends:Dr,computed:{pathId:function(){return"pv_icon_clip_".concat(Lt())}}},mS=["clip-path"],gS=ie("path",{d:"M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.752
9471 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z",fill:"currentColor"},null,-1),yS=[gS],vS=["id"],_S=ie("rect",{width:"14",height:"14",fill:"white"},null,-1),bS=[_S];function wS(t,e,n,r,i,s){return X(),ge("svg",le({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),[ie("g",{"clip-path":"url(#".concat(s.pathId,")")},yS,8,mS),ie("defs",null,[ie("clipPath",{id:"".concat(s.pathId)},bS,8,vS)])],16)}Gy.render=wS;var ES=` 948@keyframes ripple { 949 100% { 950 opacity: 0; 951 transform: scale(2.5); 952 } 953} 954 955@layer primevue { 956 .p-ripple { 957 overflow: hidden; 958 position: relative; 959 } 960 961 .p-ink { 962 display: block; 963 position: absolute; 964 background: rgba(255, 255, 255, 0.5); 965 border-radius: 100%; 966 transform: scale(0); 967 pointer-events: none; 968 } 969 970 .p-ink-active { 971 animation: ripple 0.4s linear; 972 } 973 974 .p-ripple-disabled .p-ink { 975 display: none; 976 } 977} 978`,TS={root:"p-ink"},IS=Gt.extend({name:"ripple",css:ES,classes:TS}),AS=Oe.extend({style:IS});function SS(t){return OS(t)||RS(t)||PS(t)||CS()}function CS(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 979In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PS(t,e){if(t){if(typeof t=="string")return cc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cc(t,e)}}function RS(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function OS(t){if(Array.isArray(t))return cc(t)}function cc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var vh=AS.extend("ripple",{mounted:function(e){var n,r=e==null||(n=e.$instance)===null||n===void 0?void 0:n.$config;r&&r.ripple&&(this.create(e),this.bindEvents(e),e.setAttribute("data-pd-ripple",!0))},unmounted:function(e){this.remove(e)},timeout:void 0,methods:{bindEvents:function(e){e.addEventListener("mousedown",this.onMouseDown.bind(this))},unbindEvents:function(e){e.removeEventListener("mousedown",this.onMouseDown.bind(this))},create:function(e){var n=H.createElement("span",{role:"presentation","aria-hidden":!0,"data-p-ink":!0,"data-p-ink-active":!1,class:!this.isUnstyled()&&this.cx("root"),onAnimationEnd:this.onAnimationEnd.bind(this),"p-bind":this.ptm("root")});e.appendChild(n),this.$el=n},remove:function(e){var n=this.getInk(e);n&&(this.unbindEvents(e),n.removeEventListener("animationend",this.onAnimationEnd),n.remove())},onMouseDown:function(e){var n=this,r=e.currentTarget,i=this.getInk(r);if(!(!i||getComputedStyle(i,null).display==="none")){if(!this.isUnstyled()&&H.removeClass(i,"p-ink-active"),i.setAttribute("data-p-ink-active","false"),!H.getHeight(i)&&!H.getWidth(i)){var s=Math.max(H.getOuterWidth(r),H.getOuterHeight(r));i.style.height=s+"px",i.style.width=s+"px"}var o=H.getOffset(r),l=e.pageX-o.left+document.body.scrollTop-H.getWidth(i)/2,u=e.pageY-o.top+document.body.scrollLeft-H.getHeight(i)/2;i.style.top=u+"px",i.style.left=l+"px",!this.isUnstyled()&&H.addClass(i,"p-ink-active"),i.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){i&&(!n.isUnstyled()&&H.removeClass(i,"p-ink-active"),i.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&H.removeClass(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?SS(e.children).find(function(n){return H.getAttribute(n,"data-pc-name")==="ripple"}):void 0}}});function lo(t){"@babel/helpers - typeof";return lo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lo(t)}function tr(t,e,n){return e=kS(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kS(t){var e=DS(t,"string");return lo(e)=="symbol"?e:String(e)}function DS(t,e){if(lo(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(lo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var xS={root:function(e){var n=e.instance,r=e.props;return["p-button p-component",tr(tr(tr(tr(tr(tr(tr(tr({"p-button-icon-only":n.hasIcon&&!r.label&&!r.badge,"p-button-vertical":(r.iconPos==="top"||r.iconPos==="bottom")&&r.label,"p-disabled":n.$attrs.disabled||n.$attrs.disabled===""||r.loading,"p-button-loading":r.loading,"p-button-loading-label-only":r.loading&&!n.hasIcon&&r.label,"p-button-link":r.link},"p-button-".concat(r.severity),r.severity),"p-button-raised",r.raised),"p-button-rounded",r.rounded),"p-button-text",r.text),"p-button-outlined",r.outlined),"p-button-sm",r.size==="small"),"p-button-lg",r.size==="large"),"p-button-plain",r.plain)]},loadingIcon:"p-button-loading-icon pi-spin",icon:function(e){var n=e.props;return["p-button-icon",{"p-button-icon-left":n.iconPos==="left"&&n.label,"p-button-icon-right":n.iconPos==="right"&&n.label,"p-button-icon-top":n.iconPos==="top"&&n.label,"p-button-icon-bottom":n.iconPos==="bottom"&&n.label}]},label:"p-button-label"},LS=Gt.extend({name:"button",classes:xS}),NS={name:"BaseButton",extends:qn,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},badgeSeverity:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:LS,provide:function(){return{$parentInstance:this}}},Fi={name:"Button",extends:NS,methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||this.$attrs.disabled===""||this.loading}
979,defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs.ariaLabel},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:Gy,Badge:Ky},directives:{ripple:vh}},VS=["aria-label","disabled","data-pc-severity"];function MS(t,e,n,r,i,s){var o=Tr("SpinnerIcon"),l=Tr("Badge"),u=Na("ripple");return Cs((X(),ge("button",le({class:t.cx("root"),type:"button","aria-label":s.defaultAriaLabel,disabled:s.disabled},s.getPTOptions("root"),{"data-pc-name":"button","data-pc-severity":t.severity}),[yt(t.$slots,"default",{},function(){return[t.loading?yt(t.$slots,"loadingicon",{key:0,class:Mt([t.cx("loadingIcon"),t.cx("icon")])},function(){return[t.loadingIcon?(X(),ge("span",le({key:0,class:[t.cx("loadingIcon"),t.cx("icon"),t.loadingIcon]},t.ptm("loadingIcon")),null,16)):(X(),Ne(o,le({key:1,class:[t.cx("loadingIcon"),t.cx("icon")],spin:""},t.ptm("loadingIcon")),null,16,["class"]))]}):yt(t.$slots,"icon",{key:1,class:Mt([t.cx("icon")])},function(){return[t.icon?(X(),ge("span",le({key:0,class:[t.cx("icon"),t.icon,t.iconClass]},t.ptm("icon")),null,16)):nt("",!0)]}),ie("span",le({class:t.cx("label")},t.ptm("label")),In(t.label||"Â "),17),t.badge?(X(),Ne(l,le({key:2,value:t.badge,class:t.badgeClass,severity:t.badgeSeverity,unstyled:t.unstyled},t.ptm("badge")),null,16,["value","class","severity","unstyled"])):nt("",!0)]})],16,VS)),[[u]])}Fi.render=MS;var $S=` 980@layer primevue { 981 .p-avatar { 982 display: inline-flex; 983 align-items: center; 984 justify-content: center; 985 width: 2rem; 986 height: 2rem; 987 font-size: 1rem; 988 } 989 990 .p-avatar.p-avatar-image { 991 background-color: transparent; 992 } 993 994 .p-avatar.p-avatar-circle { 995 border-radius: 50%; 996 } 997 998 .p-avatar-circle img { 999 border-radius: 50%; 1000 } 1001 1002 .p-avatar .p-avatar-icon { 1003 font-size: 1rem; 1004 } 1005 1006 .p-avatar img { 1007 width: 100%; 1008 height: 100%; 1009 } 1010} 1011`,FS={root:function(e){var n=e.props;return["p-avatar p-component",{"p-avatar-image":n.image!=null,"p-avatar-circle":n.shape==="circle","p-avatar-lg":n.size==="large","p-avatar-xl":n.size==="xlarge"}]},label:"p-avatar-text",icon:"p-avatar-icon"},US=Gt.extend({name:"avatar",css:$S,classes:FS}),BS={name:"BaseAvatar",extends:qn,props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},size:{type:String,default:"normal"},shape:{type:String,default:"square"},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:US,provide:function(){return{$parentInstance:this}}},Ta={name:"Avatar",extends:BS,emits:["error"],methods:{onError:function(e){this.$emit("error",e)}}},jS=["aria-labelledby","aria-label"],HS=["src","alt"];function zS(t,e,n,r,i,s){return X(),ge("div",le({class:t.cx("root"),"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel},t.ptm("root"),{"data-pc-name":"avatar"}),[yt(t.$slots,"default",{},function(){return[t.label?(X(),ge("span",le({key:0,class:t.cx("label")},t.ptm("label")),In(t.label),17)):t.$slots.icon?(X(),Ne(tn(t.$slots.icon),{key:1,class:Mt(t.cx("icon"))},null,8,["class"])):t.icon?(X(),ge("span",le({key:2,class:[t.cx("icon"),t.icon]},t.ptm("icon")),null,16)):t.image?(X(),ge("img",le({key:3,src:t.image,alt:t.ariaLabel,onError:e[0]||(e[0]=function(){return s.onError&&s.onError.apply(s,arguments)})},t.ptm("image")),null,16,HS)):nt("",!0)]})],16,jS)}Ta.render=zS;var Wp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/** @license 1012Copyright The Closure Library Authors. 1013SPDX-License-Identifier: Apache-2.0 1014*/var Yr,Qy;(function(){var t;/** @license 1015 1016 Copyright The Closure Library Authors. 1017 SPDX-License-Identifier: Apache-2.0 1018*/function e(A,v){function b(){}b.prototype=v.prototype,A.D=v.prototype,A.prototype=new b,A.prototype.constructor=A,A.C=function(T,S,I){for(var w=Array(arguments.length-2),Le=2;Le<arguments.length;Le++)w[Le-2]=arguments[Le];return v.prototype[S].apply(T,w)}}function n(){this.blockSize=-1}function r(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}e(r,n),r.prototype.s=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0};function i(A,v,b){b||(b=0);var T=Array(16);if(typeof v=="string")for(var S=0;16>S;++S)T[S]=v.charCodeAt(b++)|v.charCodeAt(b++)<<8|v.charCodeAt(b++)<<16|v.charCodeAt(b++)<<24;else for(S=0;16>S;++S)T[S]=v[b++]|v[b++]<<8|v[b++]<<16|v[b++]<<24;v=A.g[0],b=A.g[1],S=A.g[2];var I=A.g[3],w=v+(I^b&(S^I))+T[0]+3614090360&4294967295;v=b+(w<<7&4294967295|w>>>25),w=I+(S^v&(b^S))+T[1]+3905402710&4294967295,I=v+(w<<12&4294967295|w>>>20),w=S+(b^I&(v^b))+T[2]+606105819&4294967295,S=I+(w<<17&4294967295|w>>>15),w=b+(v^S&(I^v))+T[3]+3250441966&4294967295,b=S+(w<<22&4294967295|w>>>10),w=v+(I^b&(S^I))+T[4]+4118548399&4294967295,v=b+(w<<7&4294967295|w>>>25),w=I+(S^v&(b^S))+T[5]+1200080426&4294967295,I=v+(w<<12&4294967295|w>>>20),w=S+(b^I&(v^b))+T[6]+2821735955&4294967295,S=I+(w<<17&4294967295|w>>>15),w=b+(v^S&(I^v))+T[7]+4249261313&4294967295,b=S+(w<<22&4294967295|w>>>10),w=v+(I^b&(S^I))+T[8]+1770035416&4294967295,v=b+(w<<7&4294967295|w>>>25),w=I+(S^v&(b^S))+T[9]+2336552879&4294967295,I=v+(w<<12&4294967295|w>>>20),w=S+(b^I&(v^b))+T[10]+4294925233&4294967295,S=I+(w<<17&4294967295|w>>>15),w=b+(v^S&(I^v))+T[11]+2304563134&4294967295,b=S+(w<<22&4294967295|w>>>10),w=v+(I^b&(S^I))+T[12]+1804603682&4294967295,v=b+(w<<7&4294967295|w>>>25),w=I+(S^v&(b^S))+T[13]+4254626195&4294967295,I=v+(w<<12&4294967295|w>>>20),w=S+(b^I&(v^b))+T[14]+2792965006&4294967295,S=I+(w<<17&4294967295|w>>>15),w=b+(v^S&(I^v))+T[15]+1236535329&4294967295,b=S+(w<<22&4294967295|w>>>10),w=v+(S^I&(b^S))+T[1]+4129170786&4294967295,v=b+(w<<5&4294967295|w>>>27),w=I+(b^S&(v^b))+T[6]+3225465664&4294967295,I=v+(w<<9&4294967295|w>>>23),w=S+(v^b&(I^v))+T[11]+643717713&4294967295,S=I+(w<<14&4294967295|w>>>18),w=b+(I^v&(S^I))+T[0]+3921069994&4294967295,b=S+(w<<20&4294967295|w>>>12),w=v+(S^I&(b^S))+T[5]+3593408605&4294967295,v=b+(w<<5&4294967295|w>>>27),w=I+(b^S&(v^b))+T[10]+38016083&4294967295,I=v+(w<<9&4294967295|w>>>23),w=S+(v^b&(I^v))+T[15]+3634488961&4294967295,S=I+(w<<14&4294967295|w>>>18),w=b+(I^v&(S^I))+T[4]+3889429448&4294967295,b=S+(w<<20&4294967295|w>>>12),w=v+(S^I&(b^S))+T[9]+568446438&4294967295,v=b+(w<<5&4294967295|w>>>27),w=I+(b^S&(v^b))+T[14]+3275163606&4294967295,I=v+(w<<9&4294967295|w>>>23),w=S+(v^b&(I^v))+T[3]+4107603335&4294967295,S=I+(w<<14&4294967295|w>>>18),w=b+(I^v&(S^I))+T[8]+1163531501&4294967295,b=S+(w<<20&4294967295|w>>>12),w=v+(S^I&(b^S))+T[13]+2850285829&4294967295,v=b+(w<<5&4294967295|w>>>27),w=I+(b^S&(v^b))+T[2]+4243563512&4294967295,I=v+(w<<9&4294967295|w>>>23),w=S+(v^b&(I^v))+T[7]+1735328473&4294967295,S=I+(w<<14&4294967295|w>>>18),w=b+(I^v&(S^I))+T[12]+2368359562&4294967295,b=S+(w<<20&4294967295|w>>>12),w=v+(b^S^I)+T[5]+4294588738&4294967295,v=b+(w<<4&4294967295|w>>>28),w=I+(v^b^S)+T[8]+2272392833&4294967295,I=v+(w<<11&4294967295|w>>>21),w=S+(I^v^b)+T[11]+1839030562&4294967295,S=I+(w<<16&4294967295|w>>>16),w=b+(S^I^v)+T[14]+4259657740&4294967295,b=S+(w<<23&4294967295|w>>>9),w=v+(b^S^I)+T[1]+2763975236&4294967295,v=b+(w<<4&4294967295|w>>>28),w=I+(v^b^S)+T[4]+1272893353&4294967295,I=v+(w<<11&4294967295|w>>>21),w=S+(I^v^b)+T[7]+4139469664&4294967295,S=I+(w<<16&4294967295|w>>>16),w=b+(S^I^v)+T[10]+3200236656&4294967295,b=S+(w<<23&4294967295|w>>>9),w=v+(b^S^I)+T[13]+681279174&4294967295,v=b+(w<<4&4294967295|w>>>28),w=I+(v^b^S)+T[0]+3936430074&4294967295,I=v+(w<<11&4294967295|w>>>21),w=S+(I^v^b)+T[3]+3572445317&4294967295,S=I+(w<<16&4294967295|w>>>16),w=b+(S^I^v)+T[6]+76029189&4294967295,b=S+(w<<23&4294967295|w>>>9),w=v+(b^S^I)+T[9]+3654602809&4294967295,v=b+(w<<4&4294967295|w>>>28),w=I+(v^b^S)+T[12]+3873151461&4294967295,I=v+(w<<11&4294967295|w>>>21),w=S+(I^v^b)+T[15]+530742520&4294967295,S=I+(w<<16&4294967295|w>>>16),w=b+(S^I^v)+T[2]+3299628645&4294967295,b=S+(w<<23&4294967295|w>>>9),w=v+(S^(b|~I))+T[0]+4096336452&4294967295,v=b+(w<<6&4294967295|w>>>26),w=I+(b^(v|~S))+T[7]+1126891415&4294967295,I=v+(w<<10&4294967295|w>>>22),w=S+(v^(I|~b))+T[14]+2878612391&4294967295,S=I+(w<<15&4294967295|w>>>17),w=b+(I^(S|~v))+T[5]+4237533241&4294967295,b=S+(w<<21&4294967295|w>>>11),w=v+(S^(b|~I))+T[12]+1700485571&4294967295,v=b+(w<<6&4294967295|w>>>26),w=I+(b^(v|~S))+T[3]+2399980690&4294967295,I=v+(w<<10&4294967295|w>>>22),w=S+(v^(I|~b))+T[10]+4293915773&4294967295,S=I+(w<<15&4294967295|w>>>17),w=b+(I^(S|~v))+T[1]+2240044497&4294967295,b=S+(w<<21&4294967295|w>>>11),w=v+(S^(b|~I))+T[8]+1873313359&4294967295,v=b+(w<<6&4294967295|w>>>26),w=I+(b^(v|~S))+T[15]+4264355552&4294967295,I=v+(w<<10&4294967295|w>>>22),w=S+(v^(I|~b))+T[6]+2734768916&4294967295,S=I+(w<<15&4294967295|w>>>17),w=b+(I^(S|~v))+T[13]+1309151649&4294967295,b=S+(w<<21&4294967295|w>>>11),w=v+(S^(b|~I))+T[4]+4149444226&4294967295,v=b+(w<<6&4294967295|w>>>26),w=I+(b^(v|~S))+T[11]+3174756917&4294967295,I=v+(w<<10&4294967295|w>>>22),w=S+(v^(I|~b))+T[2]+718787259&4294967295,S=I+(w<<15&4294967295|w>>>17),w=b+(I^(S|~v))+T[9]+3951481745&4294967295,A.g[0]=A.g[0]+v&4294967295,A.g[1]=A.g[1]+(S+(w<<21&4294967295|w>>>11))&4294967295,A.g[2]=A.g[2]+S&4294967295,A.g[3]=A.g[3]+I&4294967295}r.prototype.u=function(A,v){v===void 0&&(v=A.length);for(var b=v-this.blockSize,T=this.B,S=this.h,I=0;I<v;){if(S==0)for(;I<=b;)i(this,A,I),I+=this.blockSize;if(typeof A=="string"){for(;I<v;)if(T[S++]=A.charCodeAt(I++),S==this.blockSize){i(this,T),S=0;break}}else for(;I<v;)if(T[S++]=A[I++],S==this.blockSize){i(this,T),S=0;break}}this.h=S,this.o+=v},r.prototype.v=function(){var A=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);A[0]=128;for(var v=1;v<A.length-8;++v)A[v]=0;var b=8*this.o;for(v=A.length-8;v<A.length;++v)A[v]=b&255,b/=256;for(this.u(A),A=Array(16),v=b=0;4>v;++v)for(var T=0;32>T;T+=8)A[b++]=this.g[v]>>>T&255;return A};function s(A,v){var b=l;return Object.prototype.hasOwnProperty.call(b,A)?b[A]:b[A]=v(A)}function o(A,v){this.h=v;for(var b=[],T=!0,S=A.length-1;0<=S;S--){var I=A[S]|0;
vendor: 45,900 bytes, lines 1018-1037
1018T&&I==v||(b[S]=I,T=!1)}this.g=b}var l={};function u(A){return-128<=A&&128>A?s(A,function(v){return new o([v|0],0>v?-1:0)}):new o([A|0],0>A?-1:0)}function c(A){if(isNaN(A)||!isFinite(A))return p;if(0>A)return P(c(-A));for(var v=[],b=1,T=0;A>=b;T++)v[T]=A/b|0,b*=4294967296;return new o(v,0)}function h(A,v){if(A.length==0)throw Error("number format error: empty string");if(v=v||10,2>v||36<v)throw Error("radix out of range: "+v);if(A.charAt(0)=="-")return P(h(A.substring(1),v));if(0<=A.indexOf("-"))throw Error('number format error: interior "-" character');for(var b=c(Math.pow(v,8)),T=p,S=0;S<A.length;S+=8){var I=Math.min(8,A.length-S),w=parseInt(A.substring(S,S+I),v);8>I?(I=c(Math.pow(v,I)),T=T.j(I).add(c(w))):(T=T.j(b),T=T.add(c(w)))}return T}var p=u(0),m=u(1),y=u(16777216);t=o.prototype,t.m=function(){if(R(this))return-P(this).m();for(var A=0,v=1,b=0;b<this.g.length;b++){var T=this.i(b);A+=(0<=T?T:4294967296+T)*v,v*=4294967296}return A},t.toString=function(A){if(A=A||10,2>A||36<A)throw Error("radix out of range: "+A);if(C(this))return"0";if(R(this))return"-"+P(this).toString(A);for(var v=c(Math.pow(A,6)),b=this,T="";;){var S=j(b,v).g;b=k(b,S.j(v));var I=((0<b.g.length?b.g[0]:b.h)>>>0).toString(A);if(b=S,C(b))return I+T;for(;6>I.length;)I="0"+I;T=I+T}},t.i=function(A){return 0>A?0:A<this.g.length?this.g[A]:this.h};function C(A){if(A.h!=0)return!1;for(var v=0;v<A.g.length;v++)if(A.g[v]!=0)return!1;return!0}function R(A){return A.h==-1}t.l=function(A){return A=k(this,A),R(A)?-1:C(A)?0:1};function P(A){for(var v=A.g.length,b=[],T=0;T<v;T++)b[T]=~A.g[T];return new o(b,~A.h).add(m)}t.abs=function(){return R(this)?P(this):this},t.add=function(A){for(var v=Math.max(this.g.length,A.g.length),b=[],T=0,S=0;S<=v;S++){var I=T+(this.i(S)&65535)+(A.i(S)&65535),w=(I>>>16)+(this.i(S)>>>16)+(A.i(S)>>>16);T=w>>>16,I&=65535,w&=65535,b[S]=w<<16|I}return new o(b,b[b.length-1]&-2147483648?-1:0)};function k(A,v){return A.add(P(v))}t.j=function(A){if(C(this)||C(A))return p;if(R(this))return R(A)?P(this).j(P(A)):P(P(this).j(A));if(R(A))return P(this.j(P(A)));if(0>this.l(y)&&0>A.l(y))return c(this.m()*A.m());for(var v=this.g.length+A.g.length,b=[],T=0;T<2*v;T++)b[T]=0;for(T=0;T<this.g.length;T++)for(var S=0;S<A.g.length;S++){var I=this.i(T)>>>16,w=this.i(T)&65535,Le=A.i(S)>>>16,pt=A.i(S)&65535;b[2*T+2*S]+=w*pt,x(b,2*T+2*S),b[2*T+2*S+1]+=I*pt,x(b,2*T+2*S+1),b[2*T+2*S+1]+=w*Le,x(b,2*T+2*S+1),b[2*T+2*S+2]+=I*Le,x(b,2*T+2*S+2)}for(T=0;T<v;T++)b[T]=b[2*T+1]<<16|b[2*T];for(T=v;T<2*v;T++)b[T]=0;return new o(b,0)};function x(A,v){for(;(A[v]&65535)!=A[v];)A[v+1]+=A[v]>>>16,A[v]&=65535,v++}function N(A,v){this.g=A,this.h=v}function j(A,v){if(C(v))throw Error("division by zero");if(C(A))return new N(p,p);if(R(A))return v=j(P(A),v),new N(P(v.g),P(v.h));if(R(v))return v=j(A,P(v)),new N(P(v.g),v.h);if(30<A.g.length){if(R(A)||R(v))throw Error("slowDivide_ only works with positive integers.");for(var b=m,T=v;0>=T.l(A);)b=Z(b),T=Z(T);var S=z(b,1),I=z(T,1);for(T=z(T,2),b=z(b,2);!C(T);){var w=I.add(T);0>=w.l(A)&&(S=S.add(b),I=w),T=z(T,1),b=z(b,1)}return v=k(A,S.j(v)),new N(S,v)}for(S=p;0<=A.l(v);){for(b=Math.max(1,Math.floor(A.m()/v.m())),T=Math.ceil(Math.log(b)/Math.LN2),T=48>=T?1:Math.pow(2,T-48),I=c(b),w=I.j(v);R(w)||0<w.l(A);)b-=T,I=c(b),w=I.j(v);C(I)&&(I=m),S=S.add(I),A=k(A,w)}return new N(S,A)}t.A=function(A){return j(this,A).h},t.and=function(A){for(var v=Math.max(this.g.length,A.g.length),b=[],T=0;T<v;T++)b[T]=this.i(T)&A.i(T);return new o(b,this.h&A.h)},t.or=function(A){for(var v=Math.max(this.g.length,A.g.length),b=[],T=0;T<v;T++)b[T]=this.i(T)|A.i(T);return new o(b,this.h|A.h)},t.xor=function(A){for(var v=Math.max(this.g.length,A.g.length),b=[],T=0;T<v;T++)b[T]=this.i(T)^A.i(T);return new o(b,this.h^A.h)};function Z(A){for(var v=A.g.length+1,b=[],T=0;T<v;T++)b[T]=A.i(T)<<1|A.i(T-1)>>>31;return new o(b,A.h)}function z(A,v){var b=v>>5;v%=32;for(var T=A.g.length-b,S=[],I=0;I<T;I++)S[I]=0<v?A.i(I+b)>>>v|A.i(I+b+1)<<32-v:A.i(I+b);return new o(S,A.h)}r.prototype.digest=r.prototype.v,r.prototype.reset=r.prototype.s,r.prototype.update=r.prototype.u,Qy=r,o.prototype.add=o.prototype.add,o.prototype.multiply=o.prototype.j,o.prototype.modulo=o.prototype.A,o.prototype.compare=o.prototype.l,o.prototype.toNumber=o.prototype.m,o.prototype.toString=o.prototype.toString,o.prototype.getBits=o.prototype.i,o.fromNumber=c,o.fromString=h,Yr=o}).apply(typeof Wp<"u"?Wp:typeof self<"u"?self:typeof window<"u"?window:{});var ia=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/** @license 1019Copyright The Closure Library Authors. 1020SPDX-License-Identifier: Apache-2.0 1021*/var Yy,Xy,ws,Jy,Ia,hc,Zy,ev,tv;(function(){var t,e=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,d,f){return a==Array.prototype||a==Object.prototype||(a[d]=f.value),a};function n(a){a=[typeof globalThis=="object"&&globalThis,a,typeof window=="object"&&window,typeof self=="object"&&self,typeof ia=="object"&&ia];for(var d=0;d<a.length;++d){var f=a[d];if(f&&f.Math==Math)return f}throw Error("Cannot find global object")}var r=n(this);function i(a,d){if(d)e:{var f=r;a=a.split(".");for(var g=0;g<a.length-1;g++){var O=a[g];if(!(O in f))break e;f=f[O]}a=a[a.length-1],g=f[a],d=d(g),d!=g&&d!=null&&e(f,a,{configurable:!0,writable:!0,value:d})}}function s(a,d){a instanceof String&&(a+="");var f=0,g=!1,O={next:function(){if(!g&&f<a.length){var L=f++;return{value:d(L,a[L]),done:!1}}return g=!0,{done:!0,value:void 0}}};return O[Symbol.iterator]=function(){return O},O}i("Array.prototype.values",function(a){return a||function(){return s(this,function(d,f){return f})}});/** @license 1022 1023 Copyright The Closure Library Authors. 1024 SPDX-License-Identifier: Apache-2.0 1025*/var o=o||{},l=this||self;function u(a){var d=typeof a;return d=d!="object"?d:a?Array.isArray(a)?"array":d:"null",d=="array"||d=="object"&&typeof a.length=="number"}function c(a){var d=typeof a;return d=="object"&&a!=null||d=="function"}function h(a,d,f){return a.call.apply(a.bind,arguments)}function p(a,d,f){if(!a)throw Error();if(2<arguments.length){var g=Array.prototype.slice.call(arguments,2);return function(){var O=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(O,g),a.apply(d,O)}}return function(){return a.apply(d,arguments)}}function m(a,d,f){return m=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?h:p,m.apply(null,arguments)}function y(a,d){var f=Array.prototype.slice.call(arguments,1);return function(){var g=f.slice();return g.push.apply(g,arguments),a.apply(this,g)}}function C(a,d){function f(){}f.prototype=d.prototype,a.aa=d.prototype,a.prototype=new f,a.prototype.constructor=a,a.Qb=function(g,O,L){for(var G=Array(arguments.length-2),$e=2;$e<arguments.length;$e++)G[$e-2]=arguments[$e];return d.prototype[O].apply(g,G)}}function R(a){const d=a.length;if(0<d){const f=Array(d);for(let g=0;g<d;g++)f[g]=a[g];return f}return[]}function P(a,d){for(let f=1;f<arguments.length;f++){const g=arguments[f];if(u(g)){const O=a.length||0,L=g.length||0;a.length=O+L;for(let G=0;G<L;G++)a[O+G]=g[G]}else a.push(g)}}class k{constructor(d,f){this.i=d,this.j=f,this.h=0,this.g=null}get(){let d;return 0<this.h?(this.h--,d=this.g,this.g=d.next,d.next=null):d=this.i(),d}}function x(a){return/^[\s\xa0]*$/.test(a)}function N(){var a=l.navigator;return a&&(a=a.userAgent)?a:""}function j(a){return j[" "](a),a}j[" "]=function(){};var Z=N().indexOf("Gecko")!=-1&&!(N().toLowerCase().indexOf("webkit")!=-1&&N().indexOf("Edge")==-1)&&!(N().indexOf("Trident")!=-1||N().indexOf("MSIE")!=-1)&&N().indexOf("Edge")==-1;function z(a,d,f){for(const g in a)d.call(f,a[g],g,a)}function A(a,d){for(const f in a)d.call(void 0,a[f],f,a)}function v(a){const d={};for(const f in a)d[f]=a[f];return d}const b="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function T(a,d){let f,g;for(let O=1;O<arguments.length;O++){g=arguments[O];for(f in g)a[f]=g[f];for(let L=0;L<b.length;L++)f=b[L],Object.prototype.hasOwnProperty.call(g,f)&&(a[f]=g[f])}}function S(a){var d=1;a=a.split(":");const f=[];for(;0<d&&a.length;)f.push(a.shift()),d--;return a.length&&f.push(a.join(":")),f}function I(a){l.setTimeout(()=>{throw a},0)}function w(){var a=Ut;let d=null;return a.g&&(d=a.g,a.g=a.g.next,a.g||(a.h=null),d.next=null),d}class Le{constructor(){this.h=this.g=null}add(d,f){const g=pt.get();g.set(d,f),this.h?this.h.next=g:this.g=g,this.h=g}}var pt=new k(()=>new Be,a=>a.reset());class Be{constructor(){this.next=this.g=this.h=null}set(d,f){this.h=d,this.g=f,this.next=null}reset(){this.next=this.g=this.h=null}}let Te,be=!1,Ut=new Le,on=()=>{const a=l.Promise.resolve(void 0);Te=()=>{a.then(Qt)}};var Qt=()=>{for(var a;a=w();){try{a.h.call(a.g)}catch(f){I(f)}var d=pt;d.j(a),100>d.h&&(d.h++,a.next=d.g,d.g=a)}be=!1};function Ke(){this.s=this.s,this.C=this.C}Ke.prototype.s=!1,Ke.prototype.ma=function(){this.s||(this.s=!0,this.N())},Ke.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()};function Ge(a,d){this.type=a,this.g=this.target=d,this.defaultPrevented=!1}Ge.prototype.h=function(){this.defaultPrevented=!0};var Kn=function(){if(!l.addEventListener||!Object.defineProperty)return!1;var a=!1,d=Object.defineProperty({},"passive",{get:function(){a=!0}});try{const f=()=>{};l.addEventListener("test",f,d),l.removeEventListener("test",f,d)}catch{}return a}();function pn(a,d){if(Ge.call(this,a?a.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,a){var f=this.type=a.type,g=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;if(this.target=a.target||a.srcElement,this.g=d,d=a.relatedTarget){if(Z){e:{try{j(d.nodeName);var O=!0;break e}catch{}O=!1}O||(d=null)}}else f=="mouseover"?d=a.fromElement:f=="mouseout"&&(d=a.toElement);this.relatedTarget=d,g?(this.clientX=g.clientX!==void 0?g.clientX:g.pageX,this.clientY=g.clientY!==void 0?g.clientY:g.pageY,this.screenX=g.screenX||0,this.screenY=g.screenY||0):(this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY=a.clientY!==void 0?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0),this.button=a.button,this.key=a.key||"",this.ctrlKey=a.ctrlKey,this.altKey=a.altKey,this.shiftKey=a.shiftKey,this.metaKey=a.metaKey,this.pointerId=a.pointerId||0,this.pointerType=typeof a.pointerType=="string"?a.pointerType:ct[a.pointerType]||"",this.state=a.state,this.i=a,a.defaultPrevented&&pn.aa.h.call(this)}}C(pn,Ge);var ct={2:"touch",3:"pen",4:"mouse"};pn.prototype.h=function(){pn.aa.h.call(this);var a=this.i;a.preventDefault?a.preventDefault():a.returnValue=!1};var M="closure_listenable_"+(1e6*Math.random()|0),ee=0;function Y(a,d,f,g,O){this.listener=a,this.proxy=null,this.src=d,this.type=f,this.capture=!!g,this.ha=O,this.key=++ee,this.da=this.fa=!1}function te(a){a.da=!0,a.listener=null,a.proxy=null,a.src=null,a.ha=null}function Ie(a){this.src=a,this.g={},this.h=0}Ie.prototype.add=function(a,d,f,g,O){var L=a.toString();a=this.g[L],a||(a=this.g[L]=[],this.h++);var G=_(a,d,g,O);return-1<G?(d=a[G],f||(d.fa=!1)):(d=new Y(d,this.src,L,!!g,O),d.fa=f,a.push(d)),d};function Ve(a,d){var f=d.type;if(f in a.g){var g=a.g[f],O=Array.prototype.indexOf.call(g,d,void 0),L;(L=0<=O)&&Array.prototype.splice.call(g,O,1),L&&(te(d),a.g[f].length==0&&(delete a.g[f],a.h--))}}function _(a,d,f,g){for(var O=0;O<a.length;++O){var L=a[O];if(!L.da&&L.listener==d&&L.capture==!!f&&L.ha==g)return O}return-1}var E="closure_lm_"+(1e6*Math.random()|0),D={};function $(a,d,f,g,O){if(Array.isArray(d)){for(var L=0;L<d.length;L++)$(a,d[L],f,g,O);return null}return f=se(f),a&&a[M]?a.K(d,f,c(g)?!!g.capture:!!g,O):V(a,d,f,!1,g,O)}function V(a,d,f,g,O,L){if(!d)throw Error("Invalid event type");var G=c(O)?!!O.capture:!!O,$e=J(a);if($e||(a[E]=$e=new Ie(a)),f=$e.add(d,f,g,G,L),f.proxy)return f;if(g=W(),f.proxy=g,g.src=a,g.listener=f,a.addEventListener)Kn||(O=G),O===void 0&&(O=!1),a.addEventListener(d.toString(),g,O);else if(a.attachEvent)a.attachEvent(K(d.toString()),g);else if(a.addListener&&a.removeListener)a.addListener(g);else throw Error("addEventListener and attachEvent are unavailable.");return f}function W(){function a(f){return d.call(a.src,a.listener,f)}const d=B;return a}function Q(a,d,f,g,O){if(Array.isArray(d))for(var L=0;L<d.length;L++)Q(a,d[L],f,g,O);else g=c(g)?!!g.capture:!!g,f=se(f),a&&a[M]?(a=a.i,d=String(d).toString(),d in a.g&&(L=a.g[d],f=_(L,f,g,O),-1<f&&(te(L[f]),Array.prototype.splice.call(L,f,1),L.length==0&&(delete a.g[d],a.h--)))):a&&(a=J(a))&&(d=a.g[d.toString()],a=-1,d&&(a=_(d,f,g,O)),(f=-1<a?d[a]:null)&&q(f))}function q(a){if(typeof a!="number"&&a&&!a.da){var d=a.src;if(d&&d[M])Ve(d.i,a);else{var f=a.type,g=a.proxy;d.removeEventListener?d.removeEventListener(f,g,a.capture):d.detachEvent?d.detachEvent(K(f),g):d.addListener&&d.removeListener&&d.removeListener(g),(f=J(d))?(Ve(f,a),f.h==0&&(f.src=null,d[E]=null)):te(a)}}}function K(a){return a in D?D[a]:D[a]="on"+a}function B(a,d){if(a.da)a=!0;else{d=new pn(d,this);var f=a.listener,g=a.ha||a.src;a.fa&&q(a),a=f.call(g,d)}return a}function J(a){return a=a[E],a instanceof Ie?a:null}var ae="__closure_events_fn_"+(1e9*Math.random()>>>0);function se(a){return typeof a=="function"?a:(a[ae]||(a[ae]=function(d){return a.handleEvent(d)}),a[ae])}function re(){Ke.call(this),this.i=new Ie(this),this.M=this,this.F=null}C(re,Ke),re.prototype[M]=!0,re.prototype.removeEventListener=function(a,d,f,g){Q(this,a,d,f,g)};function ce(a,d){var f,g=a.F;if(g)for(f=[];g;g=g.F)f.push(g);if(a=a.M,g=d.type||d,typeof d=="string")d=new Ge(d,a);else if(d instanceof Ge)d.target=d.target||a;else{var O=d;d=new Ge(g,a),T(d,O)}if(O=!0,f)for(var L=f.length-1;0<=L;L--){var G=d.g=f[L];O=Se(G,g,!0,d)&&O}if(G=d.g=a,O=Se(G,g,!0,d)&&O,O=Se(G,g,!1,d)&&O,f)for(L=0;L<f.length;L++)G=d.g=f[L],O=Se(G,g,!1,d)&&O}re.prototype.N=function(){if(re.aa.N.call(this),this.i){var a=this.i,d;for(d in a.g){for(var f=a.g[d],g=0;g<f.length;g++)te(f[g]);delete a.g[d],a.h--}}this.F=null},re.prototype.K=function(a,d,f,g){return this.i.add(String(a),d,!1,f,g)},re.prototype.L=function(a,d,f,g){return this.i.add(String(a),d,!0,f,g)};function Se(a,d,f,g){if(d=a.i.g[String(d)],!d)return!0;d=d.concat();for(var O=!0,L=0;L<d.length;++L){var G=d[L];if(G&&!G.da&&G.capture==f){var $e=G.listener,mt=G.ha||G.src;G.fa&&Ve(a.i,G),O=$e.call(mt,g)!==!1&&O}}return O&&!g.defaultPrevented}function Me(a,d,f){if(typeof a=="function")f&&(a=m(a,f));else if(a&&typeof a.handleEvent=="function")a=m(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(d)?-1:l.setTimeout(a,d||0)}function tt(a){a.g=Me(()=>{a.g=null,a.i&&(a.i=!1,tt(a))},a.l);const d=a.h;a.h=null,a.m.apply(null,d)}class Bt extends Ke{constructor(d,f){super(),this.m=d,this.l=f,this.h=null,this.i=!1,this.g=null}j(d){this.h=arguments,this.g?this.i=!0:tt(this)}N(){super.N(),this.g&&(l.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function Yt(a){Ke.call(this),this.h=a,this.g={}}C(Yt,Ke);var es=[];function Gn(a){z(a.g,function(d,f){this.g.hasOwnProperty(f)&&q(d)},a),a.g={}}Yt.prototype.N=function(){Yt.aa.N.call(this),Gn(this)},Yt.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var pi=l.JSON.stringify,Ot=l.JSON.parse,Xt=class{stringify(a){return l.JSON.stringify(a,void 0)}parse(a){return l.JSON.parse(a,void 0)}};function mi(){}mi.prototype.h=null;function pd(a){return a.h||(a.h=a.i())}function md(){}var ts={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function Hl(){Ge.call(this,"d")}C(Hl,Ge);function zl(){Ge.call(this,"c")}C(zl,Ge);var Lr={},gd=null;function Vo(){return gd=gd||new re}Lr.La="serverreachability";function yd(a){Ge.call(this,Lr.La,a)}C(yd,Ge);function ns(a){const d=Vo();ce(d,new yd(d))}Lr.STAT_EVENT="statevent";function vd(a,d){Ge.call(this,Lr.STAT_EVENT,a),this.stat=d}C(vd,Ge);function kt(a){const d=Vo();ce(d,new vd(d,a))}Lr.Ma="timingevent";function _d(a,d){Ge.call(this,Lr.Ma,a),this.size=d}C(_d,Ge);function rs(a,d){if(typeof a!="function")throw Error("Fn must not be null and must be a function");return l.setTimeout(function(){a()},d)}function is(){this.g=!0}is.prototype.xa=function(){this.g=!1};function m0(a,d,f,g,O,L){a.info(function(){if(a.g)if(L)for(var G="",$e=L.split("&"),mt=0;mt<$e.length;mt++){var Pe=$e[mt].split("=");if(1<Pe.length){var Et=Pe[0];Pe=Pe[1];var Tt=Et.split("_");G=2<=Tt.length&&Tt[1]=="type"?G+(Et+"="+Pe+"&"):G+(Et+"=redacted&")}}else G=null;else G=L;return"XMLHTTP REQ ("+g+") [attempt "+O+"]: "+d+` 1026`+f+` 1027`+G})}function g0(a,d,f,g,O,L,G){a.info(function(){return"XMLHTTP RESP ("+g+") [ attempt "+O+"]: "+d+` 1028`+f+` 1029`+L+" "+G})}function gi(a,d,f,g){a.info(function(){return"XMLHTTP TEXT ("+d+"): "+v0(a,f)+(g?" "+g:"")})}function y0(a,d){a.info(function(){return"TIMEOUT: "+d})}is.prototype.info=function(){};function v0(a,d){if(!a.g)return d;if(!d)return null;try{var f=JSON.parse(d);if(f){for(a=0;a<f.length;a++)if(Array.isArray(f[a])){var g=f[a];if(!(2>g.length)){var O=g[1];if(Array.isArray(O)&&!(1>O.length)){var L=O[0];if(L!="noop"&&L!="stop"&&L!="close")for(var G=1;G<O.length;G++)O[G]=""}}}}return pi(f)}catch{return d}}var Mo={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},bd={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"},ql;function $o(){}C($o,mi),$o.prototype.g=function(){return new XMLHttpRequest},$o.prototype.i=function(){return{}},ql=new $o;function Qn(a,d,f,g){this.j=a,this.i=d,this.l=f,this.R=g||1,this.U=new Yt(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new wd}function wd(){this.i=null,this.g="",this.h=!1}var Ed={},Wl={};function Kl(a,d,f){a.L=1,a.v=jo(Rn(d)),a.m=f,a.P=!0,Td(a,null)}function Td(a,d){a.F=Date.now(),Fo(a),a.A=Rn(a.v);var f=a.A,g=a.R;Array.isArray(g)||(g=[String(g)]),Md(f.i,"t",g),a.C=0,f=a.j.J,a.h=new wd,a.g=tf(a.j,f?d:null,!a.m),0<a.O&&(a.M=new Bt(m(a.Y,a,a.g),a.O)),d=a.U,f=a.g,g=a.ca;var O="readystatechange";Array.isArray(O)||(O&&(es[0]=O.toString()),O=es);for(var L=0;L<O.length;L++){var G=$(f,O[L],g||d.handleEvent,!1,d.h||d);if(!G)break;d.g[G.key]=G}d=a.H?v(a.H):{},a.m?(a.u||(a.u="POST"),d["Content-Type"]="application/x-www-form-urlencoded",a.g.ea(a.A,a.u,a.m,d)):(a.u="GET",a.g.ea(a.A,a.u,null,d)),ns(),m0(a.i,a.u,a.A,a.l,a.R,a.m)}Qn.prototype.ca=function(a){a=a.target;const d=this.M;d&&On(a)==3?d.j():this.Y(a)},Qn.prototype.Y=function(a){try{if(a==this.g)e:{const Tt=On(this.g);var d=this.g.Ba();const _i=this.g.Z();if(!(3>Tt)&&(Tt!=3||this.g&&(this.h.h||this.g.oa()||zd(this.g)))){this.J||Tt!=4||d==7||(d==8||0>=_i?ns(3):ns(2)),Gl(this);var f=this.g.Z();this.X=f;t:if(Id(this)){var g=zd(this.g);a="";var O=g.length,L=On(this.g)==4;if(!this.h.i){if(typeof TextDecoder>"u"){Nr(this),ss(this);var G="";break t}this.h.i=new l.TextDecoder}for(d=0;d<O;d++)this.h.h=!0,a+=this.h.i.decode(g[d],{stream:!(L&&d==O-1)});g.length=0,this.h.g+=a,this.C=0,G=this.h.g}else G=this.g.oa();if(this.o=f==200,g0(this.i,this.u,this.A,this.l,this.R,Tt,f),this.o){if(this.T&&!this.K){t:{if(this.g){var $e,mt=this.g;if(($e=mt.g?mt.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!x($e)){var Pe=$e;break t}}Pe=null}if(f=Pe)gi(this.i,this.l,f,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,Ql(this,f);else{this.o=!1,this.s=3,kt(12),Nr(this),ss(this);break e}}if(this.P){f=!0;let an;for(;!this.J&&this.C<G.length;)if(an=_0(this,G),an==Wl){Tt==4&&(this.s=4,kt(14),f=!1),gi(this.i,this.l,null,"[Incomplete Response]");break}else if(an==Ed){this.s=4,kt(15),gi(this.i,this.l,G,"[Invalid Chunk]"),f=!1;break}else gi(this.i,this.l,an,null),Ql(this,an);if(Id(this)&&this.C!=0&&(this.h.g=this.h.g.slice(this.C),this.C=0),Tt!=4||G.length!=0||this.h.h||(this.s=1,kt(16),f=!1),this.o=this.o&&f,!f)gi(this.i,this.l,G,"[Invalid Chunked Response]"),Nr(this),ss(this);else if(0<G.length&&!this.W){this.W=!0;var Et=this.j;Et.g==this&&Et.ba&&!Et.M&&(Et.j.info("Great, no buffering proxy detected. Bytes received: "+G.length),tu(Et),Et.M=!0,kt(11))}}else gi(this.i,this.l,G,null),Ql(this,G);Tt==4&&Nr(this),this.o&&!this.J&&(Tt==4?Xd(this.j,this):(this.o=!1,Fo(this)))}else V0(this.g),f==400&&0<G.indexOf("Unknown SID")?(this.s=3,kt(12)):(this.s=0,kt(13)),Nr(this),ss(this)}}}catch{}finally{}};function Id(a){return a.g?a.u=="GET"&&a.L!=2&&a.j.Ca:!1}function _0(a,d){var f=a.C,g=d.indexOf(` 1030`,f);return g==-1?Wl:(f=Number(d.substring(f,g)),isNaN(f)?Ed:(g+=1,g+f>d.length?Wl:(d=d.slice(g,g+f),a.C=g+f,d)))}Qn.prototype.cancel=function(){this.J=!0,Nr(this)};function Fo(a){a.S=Date.now()+a.I,Ad(a,a.I)}function Ad(a,d){if(a.B!=null)throw Error("WatchDog timer not null");a.B=rs(m(a.ba,a),d)}function Gl(a){a.B&&(l.clearTimeout(a.B),a.B=null)}Qn.prototype.ba=function(){this.B=null;const a=Date.now();0<=a-this.S?(y0(this.i,this.A),this.L!=2&&(ns(),kt(17)),Nr(this),this.s=2,ss(this)):Ad(this,this.S-a)};function ss(a){a.j.G==0||a.J||Xd(a.j,a)}function Nr(a){Gl(a);var d=a.M;d&&typeof d.ma=="function"&&d.ma(),a.M=null,Gn(a.U),a.g&&(d=a.g,a.g=null,d.abort(),d.ma())}function Ql(a,d){try{var f=a.j;if(f.G!=0&&(f.g==a||Yl(f.h,a))){if(!a.K&&Yl(f.h,a)&&f.G==3){try{var g=f.Da.g.parse(d)}catch{g=null}if(Array.isArray(g)&&g.length==3){var O=g;if(O[0]==0){e:if(!f.u){if(f.g)if(f.g.F+3e3<a.F)Ko(f),qo(f);else break e;eu(f),kt(18)}}else f.za=O[1],0<f.za-f.T&&37500>O[2]&&f.F&&f.v==0&&!f.C&&(f.C=rs(m(f.Za,f),6e3));if(1>=Pd(f.h)&&f.ca){try{f.ca()}catch{}f.ca=void 0}}else Mr(f,11)}else if((a.K||f.g==a)&&Ko(f),!x(d))for(O=f.Da.g.parse(d),d=0;d<O.length;d++){let Pe=O[d];if(f.T=Pe[0],Pe=Pe[1],f.G==2)if(Pe[0]=="c"){f.K=Pe[1],f.ia=Pe[2];const Et=Pe[3];Et!=null&&(f.la=Et,f.j.info("VER="+f.la));const Tt=Pe[4];Tt!=null&&(f.Aa=Tt,f.j.info("SVER="+f.Aa));const _i=Pe[5];_i!=null&&typeof _i=="number"&&0<_i&&(g=1.5*_i,f.L=g,f.j.info("backChannelRequestTimeoutMs_="+g)),g=f;const an=a.g;if(an){const Qo=an.g?an.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(Qo){var L=g.h;L.g||Qo.indexOf("spdy")==-1&&Qo.indexOf("quic")==-1&&Qo.indexOf("h2")==-1||(L.j=L.l,L.g=new Set,L.h&&(Xl(L,L.h),L.h=null))}if(g.D){const nu=an.g?an.g.getResponseHeader("X-HTTP-Session-Id"):null;nu&&(g.ya=nu,je(g.I,g.D,nu))}}f.G=3,f.l&&f.l.ua(),f.ba&&(f.R=Date.now()-a.F,f.j.info("Handshake RTT: "+f.R+"ms")),g=f;var G=a;if(g.qa=ef(g,g.J?g.ia:null,g.W),G.K){Rd(g.h,G);var $e=G,mt=g.L;mt&&($e.I=mt),$e.B&&(Gl($e),Fo($e)),g.g=G}else Qd(g);0<f.i.length&&Wo(f)}else Pe[0]!="stop"&&Pe[0]!="close"||Mr(f,7);else f.G==3&&(Pe[0]=="stop"||Pe[0]=="close"?Pe[0]=="stop"?Mr(f,7):Zl(f):Pe[0]!="noop"&&f.l&&f.l.ta(Pe),f.v=0)}}ns(4)}catch{}}var b0=class{constructor(a,d){this.g=a,this.map=d}};function Sd(a){this.l=a||10,l.PerformanceNavigationTiming?(a=l.performance.getEntriesByType("navigation"),a=0<a.length&&(a[0].nextHopProtocol=="hq"||a[0].nextHopProtocol=="h2")):a=!!(l.chrome&&l.chrome.loadTimes&&l.chrome.loadTimes()&&l.chrome.loadTimes().wasFetchedViaSpdy),this.j=a?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function Cd(a){return a.h?!0:a.g?a.g.size>=a.j:!1}function Pd(a){return a.h?1:a.g?a.g.size:0}function Yl(a,d){return a.h?a.h==d:a.g?a.g.has(d):!1}function Xl(a,d){a.g?a.g.add(d):a.h=d}function Rd(a,d){a.h&&a.h==d?a.h=null:a.g&&a.g.has(d)&&a.g.delete(d)}Sd.prototype.cancel=function(){if(this.i=Od(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&this.g.size!==0){for(const a of this.g.values())a.cancel();this.g.clear()}};function Od(a){if(a.h!=null)return a.i.concat(a.h.D);if(a.g!=null&&a.g.size!==0){let d=a.i;for(const f of a.g.values())d=d.concat(f.D);return d}return R(a.i)}function w0(a){if(a.V&&typeof a.V=="function")return a.V();if(typeof Map<"u"&&a instanceof Map||typeof Set<"u"&&a instanceof Set)return Array.from(a.values());if(typeof a=="string")return a.split("");if(u(a)){for(var d=[],f=a.length,g=0;g<f;g++)d.push(a[g]);return d}d=[],f=0;for(g in a)d[f++]=a[g];return d}function E0(a){if(a.na&&typeof a.na=="function")return a.na();if(!a.V||typeof a.V!="function"){if(typeof Map<"u"&&a instanceof Map)return Array.from(a.keys());if(!(typeof Set<"u"&&a instanceof Set)){if(u(a)||typeof a=="string"){var d=[];a=a.length;for(var f=0;f<a;f++)d.push(f);return d}d=[],f=0;for(const g in a)d[f++]=g;return d}}}function kd(a,d){if(a.forEach&&typeof a.forEach=="function")a.forEach(d,void 0);else if(u(a)||typeof a=="string")Array.prototype.forEach.call(a,d,void 0);else for(var f=E0(a),g=w0(a),O=g.length,L=0;L<O;L++)d.call(void 0,g[L],f&&f[L],a)}var Dd=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function T0(a,d){if(a){a=a.split("&");for(var f=0;f<a.length;f++){var g=a[f].indexOf("="),O=null;if(0<=g){var L=a[f].substring(0,g);O=a[f].substring(g+1)}else L=a[f];d(L,O?decodeURIComponent(O.replace(/\+/g," ")):"")}}}function Vr(a){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,a instanceof Vr){this.h=a.h,Uo(this,a.j),this.o=a.o,this.g=a.g,Bo(this,a.s),this.l=a.l;var d=a.i,f=new ls;f.i=d.i,d.g&&(f.g=new Map(d.g),f.h=d.h),xd(this,f),this.m=a.m}else a&&(d=String(a).match(Dd))?(this.h=!1,Uo(this,d[1]||"",!0),this.o=os(d[2]||""),this.g=os(d[3]||"",!0),Bo(this,d[4]),this.l=os(d[5]||"",!0),xd(this,d[6]||"",!0),this.m=os(d[7]||"")):(this.h=!1,this.i=new ls(null,this.h))}Vr.prototype.toString=function(){var a=[],d=this.j;d&&a.push(as(d,Ld,!0),":");var f=this.g;return(f||d=="file")&&(a.push("//"),(d=this.o)&&a.push(as(d,Ld,!0),"@"),a.push(encodeURIComponent(String(f)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),f=this.s,f!=null&&a.push(":",String(f))),(f=this.l)&&(this.g&&f.charAt(0)!="/"&&a.push("/"),a.push(as(f,f.charAt(0)=="/"?S0:A0,!0))),(f=this.i.toString())&&a.push("?",f),(f=this.m)&&a.push("#",as(f,P0)),a.join("")};function Rn(a){return new Vr(a)}function Uo(a,d,f){a.j=f?os(d,!0):d,a.j&&(a.j=a.j.replace(/:$/,""))}function Bo(a,d){if(d){if(d=Number(d),isNaN(d)||0>d)throw Error("Bad port number "+d);a.s=d}else a.s=null}function xd(a,d,f){d instanceof ls?(a.i=d,R0(a.i,a.h)):(f||(d=as(d,C0)),a.i=new ls(d,a.h))}function je(a,d,f){a.i.set(d,f)}function jo(a){return je(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),a}function os(a,d){return a?d?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function as(a,d,f){return typeof a=="string"?(a=encodeURI(a).replace(d,I0),f&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function I0(a){return a=a.charCodeAt(0),"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Ld=/[#\/\?@]/g,A0=/[#\?:]/g,S0=/[#\?]/g,C0=/[#\?@]/g,P0=/#/g;function ls(a,d){this.h=this.g=null,this.i=a||null,this.j=!!d}function Yn(a){a.g||(a.g=new Map,a.h=0,a.i&&T0(a.i,function(d,f){a.add(decodeURIComponent(d.replace(/\+/g," ")),f)}))}t=ls.prototype,t.add=function(a,d){Yn(this),this.i=null,a=yi(this,a);var f=this.g.get(a);return f||this.g.set(a,f=[]),f.push(d),this.h+=1,this};function Nd(a,d){Yn(a),d=yi(a,d),a.g.has(d)&&(a.i=null,a.h-=a.g.get(d).length,a.g.delete(d))}function Vd(a,d){return Yn(a),d=yi(a,d),a.g.has(d)}t.forEach=function(a,d){Yn(this),this.g.forEach(function(f,g){f.forEach(function(O){a.call(d,O,g,this)},this)},this)},t.na=function(){Yn(this);const a=Array.from(this.g.values()),d=Array.from(this.g.keys()),f=[];for(let g=0;g<d.length;g++){const O=a[g];for(let L=0;L<O.length;L++)f.push(d[g])}return f},t.V=function(a){Yn(this);let d=[];if(typeof a=="string")Vd(this,a)&&(d=d.concat(this.g.get(yi(this,a))));else{a=Array.from(this.g.values());for(let f=0;f<a.length;f++)d=d.concat(a[f])}return d},t.set=function(a,d){return Yn(this),this.i=null,a=yi(this,a),Vd(this,a)&&(this.h-=this.g.get(a).length),this.g.set(a,[d]),this.h+=1,this},t.get=function(a,d){return a?(a=this.V(a),0<a.length?String(a[0]):d):d};function Md(a,d,f){Nd(a,d),0<f.length&&(a.i=null,a.g.set(yi(a,d),R(f)),a.h+=f.length)}t.toString=function(){if(this.i)return this.i;if(!this.g)return"";const a=[],d=Array.from(this.g.keys());for(var f=0;f<d.length;f++){var g=d[f];const L=encodeURIComponent(String(g)),G=this.V(g);for(g=0;g<G.length;g++){var O=L;G[g]!==""&&(O+="="+encodeURIComponent(String(G[g]))),a.push(O)}}return this.i=a.join("&")};function yi(a,d){return d=String(d),a.j&&(d=d.toLowerCase()),d}function R0(a,d){d&&!a.j&&(Yn(a),a.i=null,a.g.forEach(function(f,g){var O=g.toLowerCase();g!=O&&(Nd(this,g),Md(this,O,f))},a)),a.j=d}function O0(a,d){const f=new is;if(l.Image){const g=new Image;g.onload=y(Xn,f,"TestLoadImage: loaded",!0,d,g),g.onerror=y(Xn,f,"TestLoadImage: error",!1,d,g),g.onabort=y(Xn,f,"TestLoadImage: abort",!1,d,g),g.ontimeout=y(Xn,f,"TestLoadImage: timeout",!1,d,g),l.setTimeout(function(){g.ontimeout&&g.ontimeout()},1e4),g.src=a}else d(!1)}function k0(a,d){const f=new is,g=new AbortController,O=setTimeout(()=>{g.abort(),Xn(f,"TestPingServer: timeout",!1,d)},1e4);fetch(a,{signal:g.signal}).then(L=>{clearTimeout(O),L.ok?Xn(f,"TestPingServer: ok",!0,d):Xn(f,"TestPingServer: server error",!1,d)}).catch(()=>{clearTimeout(O),Xn(f,"TestPingServer: error",!1,d)})}function Xn(a,d,f,g,O){try{O&&(O.onload=null,O.onerror=null,O.onabort=null,O.ontimeout=null),g(f)}catch{}}function D0(){this.g=new Xt}function x0(a,d,f){const g=f||"";try{kd(a,function(O,L){let G=O;c(O)&&(G=pi(O)),d.push(g+L+"="+encodeURIComponent(G))})}catch(O){throw d.push(g+"type="+encodeURIComponent("_badmap")),O}}function us(a){this.l=a.Ub||null,this.j=a.eb||!1}C(us,mi),us.prototype.g=function(){return new Ho(this.l,this.j)},us.prototype.i=function(a){return function(){return a}}({});function Ho(a,d){re.call(this),this.D=a,this.o=d,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.u=new Headers,this.h=null,this.B="GET",this.A="",this.g=!1,this.v=this.j=this.l=null}C(Ho,re),t=Ho.prototype,t.open=function(a,d){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.B=a,this.A=d,this.readyState=1,hs(this)},t.send=function(a){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.g=!0;const d={headers:this.u,method:this.B,credentials:this.m,cache:void 0};a&&(d.body=a),(this.D||l).fetch(new Request(this.A,d)).then(this.Sa.bind(this),this.ga.bind(this))},t.abort=function(){this.response=this.responseText="",this.u=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&this.readyState!=4&&(this.g=!1,cs(this)),this.readyState=0},t.Sa=function(a){if(this.g&&(this.l=a,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=a.headers,this.readyState=2,hs(this)),this.g&&(this.readyState=3,hs(this),this.g)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof l.ReadableStream<"u"&&"body"in a){if(this.j=a.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.v=new TextDecoder;$d(this)}else a.text().then(this.Ra.bind(this),this.ga.bind(this))};function $d(a){a.j.read().then(a.Pa.bind(a)).catch(a.ga.bind(a))}t.Pa=function(a){if(this.g){if(this.o&&a.value)this.response.push(a.value);else if(!this.o){var d=a.value?a.value:new Uint8Array(0);(d=this.v.decode(d,{stream:!a.done}))&&(this.response=this.responseText+=d)}a.done?cs(this):hs(this),this.readyState==3&&$d(this)}},t.Ra=function(a){this.g&&(this.response=this.responseText=a,cs(this))},t.Qa=function(a){this.g&&(this.response=a,cs(this))},t.ga=function(){this.g&&cs(this)};function cs(a){a.readyState=4,a.l=null,a.j=null,a.v=null,hs(a)}t.setRequestHeader=function(a,d){this.u.append(a,d)},t.getResponseHeader=function(a){return this.h&&this.h.get(a.toLowerCase())||""},t.getAllResponseHeaders=function(){if(!this.h)return"";const a=[],d=this.h.entries();for(var f=d.next();!f.done;)f=f.value,a.push(f[0]+": "+f[1]),f=d.next();return a.join(`\r 1031`)};function hs(a){a.onreadystatechange&&a.onreadystatechange.call(a)}Object.defineProperty(Ho.prototype,"withCredentials",{get:function(){return this.m==="include"},set:function(a){this.m=a?"include":"same-origin"}});function Fd(a){let d="";return z(a,function(f,g){d+=g,d+=":",d+=f,d+=`\r 1032`}),d}function Jl(a,d,f){e:{for(g in f){var g=!1;break e}g=!0}g||(f=Fd(f),typeof a=="string"?f!=null&&encodeURIComponent(String(f)):je(a,d,f))}function Je(a){re.call(this),this.headers=new Map,this.o=a||null,this.h=!1,this.v=this.g=null,this.D="",this.m=0,this.l="",this.j=this.B=this.u=this.A=!1,this.I=null,this.H="",this.J=!1}C(Je,re);var L0=/^https?$/i,N0=["POST","PUT"];t=Je.prototype,t.Ha=function(a){this.J=a},t.ea=function(a,d,f,g){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+a);d=d?d.toUpperCase():"GET",this.D=a,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():ql.g(),this.v=this.o?pd(this.o):pd(ql),this.g.onreadystatechange=m(this.Ea,this);try{this.B=!0,this.g.open(d,String(a),!0),this.B=!1}catch(L){Ud(this,L);return}if(a=f||"",f=new Map(this.headers),g)if(Object.getPrototypeOf(g)===Object.prototype)for(var O in g)f.set(O,g[O]);else if(typeof g.keys=="function"&&typeof g.get=="function")for(const L of g.keys())f.set(L,g.get(L));else throw Error("Unknown input type for opt_headers: "+String(g));g=Array.from(f.keys()).find(L=>L.toLowerCase()=="content-type"),O=l.FormData&&a instanceof l.FormData,!(0<=Array.prototype.indexOf.call(N0,d,void 0))||g||O||f.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[L,G]of f)this.g.setRequestHeader(L,G);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{Hd(this),this.u=!0,this.g.send(a),this.u=!1}catch(L){Ud(this,L)}};function Ud(a,d){a.h=!1,a.g&&(a.j=!0,a.g.abort(),a.j=!1),a.l=d,a.m=5,Bd(a),zo(a)}function Bd(a){a.A||(a.A=!0,ce(a,"complete"),ce(a,"error"))}t.abort=function(a){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=a||7,ce(this,"complete"),ce(this,"abort"),zo(this))},t.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),zo(this,!0)),Je.aa.N.call(this)},t.Ea=function(){this.s||(this.B||this.u||this.j?jd(this):this.bb())},t.bb=function(){jd(this)};function jd(a){if(a.h&&typeof o<"u"&&(!a.v[1]||On(a)!=4||a.Z()!=2)){if(a.u&&On(a)==4)Me(a.Ea,0,a);else if(ce(a,"readystatechange"),On(a)==4){a.h=!1;try{const G=a.Z();e:switch(G){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var d=!0;break e;default:d=!1}var f;if(!(f=d)){var g;if(g=G===0){var O=String(a.D).match(Dd)[1]||null;!O&&l.self&&l.self.location&&(O=l.self.location.protocol.slice(0,-1)),g=!L0.test(O?O.toLowerCase():"")}f=g}if(f)ce(a,"complete"),ce(a,"success");else{a.m=6;try{var L=2<On(a)?a.g.statusText:""}catch{L=""}a.l=L+" ["+a.Z()+"]",Bd(a)}}finally{zo(a)}}}}function zo(a,d){if(a.g){Hd(a);const f=a.g,g=a.v[0]?()=>{}:null;a.g=null,a.v=null,d||ce(a,"ready");try{f.onreadystatechange=g}catch{}}}function Hd(a){a.I&&(l.clearTimeout(a.I),a.I=null)}t.isActive=function(){return!!this.g};function On(a){return a.g?a.g.readyState:0}t.Z=function(){try{return 2<On(this)?this.g.status:-1}catch{return-1}},t.oa=function(){try{return this.g?this.g.responseText:""}catch{return""}},t.Oa=function(a){if(this.g){var d=this.g.responseText;return a&&d.indexOf(a)==0&&(d=d.substring(a.length)),Ot(d)}};function zd(a){try{if(!a.g)return null;if("response"in a.g)return a.g.response;switch(a.H){case"":case"text":return a.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in a.g)return a.g.mozResponseArrayBuffer}return null}catch{return null}}function V0(a){const d={};a=(a.g&&2<=On(a)&&a.g.getAllResponseHeaders()||"").split(`\r 1033`);for(let g=0;g<a.length;g++){if(x(a[g]))continue;var f=S(a[g]);const O=f[0];if(f=f[1],typeof f!="string")continue;f=f.trim();const L=d[O]||[];d[O]=L,L.push(f)}A(d,function(g){return g.join(", ")})}t.Ba=function(){return this.m},t.Ka=function(){return typeof this.l=="string"?this.l:String(this.l)};function ds(a,d,f){return f&&f.internalChannelParams&&f.internalChannelParams[a]||d}function qd(a){this.Aa=0,this.i=[],this.j=new is,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=ds("failFast",!1,a),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=ds("baseRetryDelayMs",5e3,a),this.cb=ds("retryDelaySeedMs",1e4,a),this.Wa=ds("forwardChannelMaxRetries",2,a),this.wa=ds("forwardChannelRequestTimeoutMs",2e4,a),this.pa=a&&a.xmlHttpFactory||void 0,this.Xa=a&&a.Tb||void 0,this.Ca=a&&a.useFetchStreams||!1,this.L=void 0,this.J=a&&a.supportsCrossDomainXhr||!1,this.K="",this.h=new Sd(a&&a.concurrentRequestLimit),this.Da=new D0,this.P=a&&a.fastHandshake||!1,this.O=a&&a.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=a&&a.Rb||!1,a&&a.xa&&this.j.xa(),a&&a.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&a&&a.detectBufferingProxy||!1,this.ja=void 0,a&&a.longPollingTimeout&&0<a.longPollingTimeout&&(this.ja=a.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}t=qd.prototype,t.la=8,t.G=1,t.connect=function(a,d,f,g){kt(0),this.W=a,this.H=d||{},f&&g!==void 0&&(this.H.OSID=f,this.H.OAID=g),this.F=this.X,this.I=ef(this,null,this.W),Wo(this)};function Zl(a){if(Wd(a),a.G==3){var d=a.U++,f=Rn(a.I);if(je(f,"SID",a.K),je(f,"RID",d),je(f,"TYPE","terminate"),fs(a,f),d=new Qn(a,a.j,d),d.L=2,d.v=jo(Rn(f)),f=!1,l.navigator&&l.navigator.sendBeacon)try{f=l.navigator.sendBeacon(d.v.toString(),"")}catch{}!f&&l.Image&&(new Image().src=d.v,f=!0),f||(d.g=tf(d.j,null),d.g.ea(d.v)),d.F=Date.now(),Fo(d)}Zd(a)}function qo(a){a.g&&(tu(a),a.g.cancel(),a.g=null)}function Wd(a){qo(a),a.u&&(l.clearTimeout(a.u),a.u=null),Ko(a),a.h.cancel(),a.s&&(typeof a.s=="number"&&l.clearTimeout(a.s),a.s=null)}function Wo(a){if(!Cd(a.h)&&!a.s){a.s=!0;var d=a.Ga;Te||on(),be||(Te(),be=!0),Ut.add(d,a),a.B=0}}function M0(a,d){return Pd(a.h)>=a.h.j-(a.s?1:0)?!1:a.s?(a.i=d.D.concat(a.i),!0):a.G==1||a.G==2||a.B>=(a.Va?0:a.Wa)?!1:(a.s=rs(m(a.Ga,a,d),Jd(a,a.B)),a.B++,!0)}t.Ga=function(a){if(this.s)if(this.s=null,this.G==1){if(!a){this.U=Math.floor(1e5*Math.random()),a=this.U++;const O=new Qn(this,this.j,a);let L=this.o;if(this.S&&(L?(L=v(L),T(L,this.S)):L=this.S),this.m!==null||this.O||(O.H=L,L=null),this.P)e:{for(var d=0,f=0;f<this.i.length;f++){t:{var g=this.i[f];if("__data__"in g.map&&(g=g.map.__data__,typeof g=="string")){g=g.length;break t}g=void 0}if(g===void 0)break;if(d+=g,4096<d){d=f;break e}if(d===4096||f===this.i.length-1){d=f+1;break e}}d=1e3}else d=1e3;d=Gd(this,O,d),f=Rn(this.I),je(f,"RID",a),je(f,"CVER",22),this.D&&je(f,"X-HTTP-Session-Id",this.D),fs(this,f),L&&(this.O?d="headers="+encodeURIComponent(String(Fd(L)))+"&"+d:this.m&&Jl(f,this.m,L)),Xl(this.h,O),this.Ua&&je(f,"TYPE","init"),this.P?(je(f,"$req",d),je(f,"SID","null"),O.T=!0,Kl(O,f,null)):Kl(O,f,d),this.G=2}}else this.G==3&&(a?Kd(this,a):this.i.length==0||Cd(this.h)||Kd(this))};function Kd(a,d){var f;d?f=d.l:f=a.U++;const g=Rn(a.I);je(g,"SID",a.K),je(g,"RID",f),je(g,"AID",a.T),fs(a,g),a.m&&a.o&&Jl(g,a.m,a.o),f=new Qn(a,a.j,f,a.B+1),a.m===null&&(f.H=a.o),d&&(a.i=d.D.concat(a.i)),d=Gd(a,f,1e3),f.I=Math.round(.5*a.wa)+Math.round(.5*a.wa*Math.random()),Xl(a.h,f),Kl(f,g,d)}function fs(a,d){a.H&&z(a.H,function(f,g){je(d,g,f)}),a.l&&kd({},function(f,g){je(d,g,f)})}function Gd(a,d,f){f=Math.min(a.i.length,f);var g=a.l?m(a.l.Na,a.l,a):null;e:{var O=a.i;let L=-1;for(;;){const G=["count="+f];L==-1?0<f?(L=O[0].g,G.push("ofs="+L)):L=0:G.push("ofs="+L);let $e=!0;for(let mt=0;mt<f;mt++){let Pe=O[mt].g;const Et=O[mt].map;if(Pe-=L,0>Pe)L=Math.max(0,O[mt].g-100),$e=!1;else try{x0(Et,G,"req"+Pe+"_")}catch{g&&g(Et)}}if($e){g=G.join("&");break e}}}return a=a.i.splice(0,f),d.D=a,g}function Qd(a){if(!a.g&&!a.u){a.Y=1;var d=a.Fa;Te||on(),be||(Te(),be=!0),Ut.add(d,a),a.v=0}}function eu(a){return a.g||a.u||3<=a.v?!1:(a.Y++,a.u=rs(m(a.Fa,a),Jd(a,a.v)),a.v++,!0)}t.Fa=function(){if(this.u=null,Yd(this),this.ba&&!(this.M||this.g==null||0>=this.R)){var a=2*this.R;this.j.info("BP detection timer enabled: "+a),this.A=rs(m(this.ab,this),a)}},t.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,kt(10),qo(this),Yd(this))};function tu(a){a.A!=null&&(l.clearTimeout(a.A),a.A=null)}function Yd(a){a.g=new Qn(a,a.j,"rpc",a.Y),a.m===null&&(a.g.H=a.o),a.g.O=0;var d=Rn(a.qa);je(d,"RID","rpc"),je(d,"SID",a.K),je(d,"AID",a.T),je(d,"CI",a.F?"0":"1"),!a.F&&a.ja&&je(d,"TO",a.ja),je(d,"TYPE","xmlhttp"),fs(a,d),a.m&&a.o&&Jl(d,a.m,a.o),a.L&&(a.g.I=a.L);var f=a.g;a=a.ia,f.L=1,f.v=jo(Rn(d)),f.m=null,f.P=!0,Td(f,a)}t.Za=function(){this.C!=null&&(this.C=null,qo(this),eu(this),kt(19))};function Ko(a){a.C!=null&&(l.clearTimeout(a.C),a.C=null)}function Xd(a,d){var f=null;if(a.g==d){Ko(a),tu(a),a.g=null;var g=2}else if(Yl(a.h,d))f=d.D,Rd(a.h,d),g=1;else return;if(a.G!=0){if(d.o)if(g==1){f=d.m?d.m.length:0,d=Date.now()-d.F;var O=a.B;g=Vo(),ce(g,new _d(g,f)),Wo(a)}else Qd(a);else if(O=d.s,O==3||O==0&&0<d.X||!(g==1&&M0(a,d)||g==2&&eu(a)))switch(f&&0<f.length&&(d=a.h,d.i=d.i.concat(f)),O){case 1:Mr(a,5);break;case 4:Mr(a,10);break;case 3:Mr(a,6);break;default:Mr(a,2)}}}function Jd(a,d){let f=a.Ta+Math.floor(Math.random()*a.cb);return a.isActive()||(f*=2),f*d}function Mr(a,d){if(a.j.info("Error code "+d),d==2){var f=m(a.fb,a),g=a.Xa;const O=!g;g=new Vr(g||"//www.google.com/images/cleardot.gif"),l.location&&l.location.protocol=="http"||Uo(g,"https"),jo(g),O?O0(g.toString(),f):k0(g.toString(),f)}else kt(2);a.G=0,a.l&&a.l.sa(d),Zd(a),Wd(a)}t.fb=function(a){a?(this.j.info("Successfully pinged google.com"),kt(2)):(this.j.info("Failed to ping google.com"),kt(1))};function Zd(a){if(a.G=0,a.ka=[],a.l){const d=Od(a.h);(d.length!=0||a.i.length!=0)&&(P(a.ka,d),P(a.ka,a.i),a.h.i.length=0,R(a.i),a.i.length=0),a.l.ra()}}function ef(a,d,f){var g=f instanceof Vr?Rn(f):new Vr(f);if(g.g!="")d&&(g.g=d+"."+g.g),Bo(g,g.s);else{var O=l.location;g=O.protocol,d=d?d+"."+O.hostname:O.hostname,O=+O.port;var L=new Vr(null);g&&Uo(L,g),d&&(L.g=d),O&&Bo(L,O),f&&(L.l=f),g=L}return f=a.D,d=a.ya,f&&d&&je(g,f,d),je(g,"VER",a.la),fs(a,g),g}function tf(a,d,f){if(d&&!a.J)throw Error("Can't create secondary domain capable XhrIo object.");return d=a.Ca&&!a.pa?new Je(new us({eb:f})):new Je(a.pa),d.Ha(a.J),d}t.isActive=function(){return!!this.l&&this.l.isActive(this)};function nf(){}t=nf.prototype,t.ua=function(){},t.ta=function(){},t.sa=function(){},t.ra=function(){},t.isActive=function(){return!0},t.Na=function(){};function Go(){}Go.prototype.g=function(a,d){return new jt(a,d)};function jt(a,d){re.call(this),this.g=new qd(d),this.l=a,this.h=d&&d.messageUrlParams||null,a=d&&d.messageHeaders||null,d&&d.clientProtocolHeaderRequired&&(a?a["X-Client-Protocol"]="webchannel":a={"X-Client-Protocol":"webchannel"}),this.g.o=a,a=d&&d.initMessageHeaders||null,d&&d.messageContentType&&(a?a["X-WebChannel-Content-Type"]=d.messageContentType:a={"X-WebChannel-Content-Type":d.messageContentType}),d&&d.va&&(a?a["X-WebChannel-Client-Profile"]=d.va:a={"X-WebChannel-Client-Profile":d.va}),this.g.S=a,(a=d&&d.Sb)&&!x(a)&&(this.g.m=a),this.v=d&&d.supportsCrossDomainXhr||!1,this.u=d&&d.sendRawJson||!1,(d=d&&d.httpSessionIdParam)&&!x(d)&&(this.g.D=d,a=this.h,a!==null&&d in a&&(a=this.h,d in a&&delete a[d])),this.j=new vi(this)}C(jt,re),jt.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},jt.prototype.close=function(){Zl(this.g)},jt.prototype.o=function(a){var d=this.g;if(typeof a=="string"){var f={};f.__data__=a,a=f}else this.u&&(f={},f.__data__=pi(a),a=f);d.i.push(new b0(d.Ya++,a)),d.G==3&&Wo(d)},jt.prototype.N=function(){this.g.l=null,delete this.j,Zl(this.g),delete this.g,jt.aa.N.call(this)};function rf(a){Hl.call(this),a.__headers__&&(this.headers=a.__headers__,this.statusCode=a.__status__,delete a.__headers__,delete a.__status__);var d=a.__sm__;if(d){e:{for(const f in d){a=f;break e}a=void 0}(this.i=a)&&(a=this.i,d=d!==null&&a in d?d[a]:void 0),this.data=d}else this.data=a}C(rf,Hl);function sf(){zl.call(this),this.status=1}C(sf,zl);function vi(a){this.g=a}C(vi,nf),vi.prototype.ua=function(){ce(this.g,"a")},vi.prototype.ta=function(a){ce(this.g,new rf(a))},vi.prototype.sa=function(a){ce(this.g,new sf)},vi.prototype.ra=function(){ce(this.g,"b")},Go.prototype.createWebChannel=Go.prototype.g,jt.prototype.send=jt.prototype.o,jt.prototype.open=jt.prototype.m,jt.prototype.close=jt.prototype.close,tv=function(){return new Go},ev=function(){return Vo()},Zy=Lr,hc={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},Mo.NO_ERROR=0,Mo.TIMEOUT=8,Mo.HTTP_ERROR=6,Ia=Mo,bd.COMPLETE="complete",Jy=bd,md.EventType=ts,ts.OPEN="a",ts.CLOSE="b",ts.ERROR="c",ts.MESSAGE="d",re.prototype.listen=re.prototype.K,ws=md,Xy=us,Je.prototype.listenOnce=Je.prototype.L,Je.prototype.getLastError=Je.prototype.Ka,Je.prototype.getLastErrorCode=Je.prototype.Ba,Je.prototype.getStatus=Je.prototype.Z,Je.prototype.getResponseJson=Je.prototype.Oa,Je.prototype.getResponseText=Je.prototype.oa,Je.prototype.send=Je.prototype.ea,Je.prototype.setWithCredentials=Je.prototype.Ha,Yy=Je}).apply(typeof ia<"u"?ia:typeof self<"u"?self:typeof window<"u"?window:{});const Kp="@firebase/firestore";/** 1034 * @license 1035 * Copyright 2017 Google LLC 1036 * 1037 * Licensed under the Apache License, Version 2.0 (the "License");
1038 * you may not use this file except in compliance with the License. 1039 * You may obtain a copy of the License at 1040 * 1041 * http://www.apache.org/licenses/LICENSE-2.0 1042 * 1043 * Unless required by applicable law or agreed to in writing, software 1044 * distributed under the License is distributed on an "AS IS" BASIS, 1045 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1046 * See the License for the specific language governing permissions and 1047 * limitations under the License. 1048 */class St{constructor(e){this.uid=e}isAuthenticated(){return this.uid!=null}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}St.UNAUTHENTICATED=new St(null),St.GOOGLE_CREDENTIALS=new St("google-credentials-uid"),St.FIRST_PARTY=new St("first-party-uid"),St.MOCK_USER=new St("mock-user");/** 1049 * @license 1050 * Copyright 2017 Google LLC 1051 * 1052 * Licensed under the Apache License, Version 2.0 (the "License"); 1053 * you may not use this file except in compliance with the License. 1054 * You may obtain a copy of the License at 1055 * 1056 * http://www.apache.org/licenses/LICENSE-2.0 1057 * 1058 * Unless required by applicable law or agreed to in writing, software 1059 * distributed under the License is distributed on an "AS IS" BASIS, 1060 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1061 * See the License for the specific language governing permissions and 1062 * limitations under the License. 1063 */let Qi="10.12.1";/** 1064 * @license 1065 * Copyright 2017 Google LLC 1066 * 1067 * Licensed under the Apache License, Version 2.0 (the "License"); 1068 * you may not use this file except in compliance with the License. 1069 * You may obtain a copy of the License at 1070 * 1071 * http://www.apache.org/licenses/LICENSE-2.0 1072 * 1073 * Unless required by applicable law or agreed to in writing, software 1074 * distributed under the License is distributed on an "AS IS" BASIS, 1075 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1076 * See the License for the specific language governing permissions and 1077 * limitations under the License. 1078 */const ni=new lh("@firebase/firestore");function ys(){return ni.logLevel}function ne(t,...e){if(ni.logLevel<=Ee.DEBUG){const n=e.map(_h);ni.debug(`Firestore (${Qi}): ${t}`,...n)}}function Un(t,...e){if(ni.logLevel<=Ee.ERROR){const n=e.map(_h);ni.error(`Firestore (${Qi}): ${t}`,...n)}}function Ui(t,...e){if(ni.logLevel<=Ee.WARN){const n=e.map(_h);ni.warn(`Firestore (${Qi}): ${t}`,...n)}}function _h(t){if(typeof t=="string")return t;try{/** 1079* @license 1080* Copyright 2020 Google LLC 1081* 1082* Licensed under the Apache License, Version 2.0 (the "License"); 1083* you may not use this file except in compliance with the License. 1084* You may obtain a copy of the License at 1085* 1086* http://www.apache.org/licenses/LICENSE-2.0 1087* 1088* Unless required by applicable law or agreed to in writing, software 1089* distributed under the License is distributed on an "AS IS" BASIS, 1090* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1091* See the License for the specific language governing permissions and 1092* limitations under the License. 1093*/return function(n){return JSON.stringify(n)}(t)}catch{return t}}/** 1094 * @license 1095 * Copyright 2017 Google LLC 1096 * 1097 * Licensed under the Apache License, Version 2.0 (the "License"); 1098 * you may not use this file except in compliance with the License. 1099 * You may obtain a copy of the License at 1100 * 1101 * http://www.apache.org/licenses/LICENSE-2.0 1102 * 1103 * Unless required by applicable law or agreed to in writing, software 1104 * distributed under the License is distributed on an "AS IS" BASIS, 1105 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1106 * See the License for the specific language governing permissions and 1107 * limitations under the License. 1108 */function pe(t="Unexpected state"){const e=`FIRESTORE (${Qi}) INTERNAL ASSERTION FAILED: `+t;throw Un(e),new Error(e)}function Ue(t,e){t||pe()}function _e(t,e){return t}/** 1109 * @license 1110 * Copyright 2017 Google LLC 1111 * 1112 * Licensed under the Apache License, Version 2.0 (the "License"); 1113 * you may not use this file except in compliance with the License. 1114 * You may obtain a copy of the License at 1115 * 1116 * http://www.apache.org/licenses/LICENSE-2.0 1117 * 1118 * Unless required by applicable law or agreed to in writing, softw
1118are 1119 * distributed under the License is distributed on an "AS IS" BASIS, 1120 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1121 * See the License for the specific language governing permissions and 1122 * limitations under the License. 1123 */const F={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class ue extends Pn{constructor(e,n){super(e,n),this.code=e,this.message=n,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}/** 1124 * @license 1125 * Copyright 2017 Google LLC 1126 * 1127 * Licensed under the Apache License, Version 2.0 (the "License"); 1128 * you may not use this file except in compliance with the License. 1129 * You may obtain a copy of the License at 1130 * 1131 * http://www.apache.org/licenses/LICENSE-2.0 1132 * 1133 * Unless required by applicable law or agreed to in writing, software 1134 * distributed under the License is distributed on an "AS IS" BASIS, 1135 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1136 * See the License for the specific language governing permissions and 1137 * limitations under the License. 1138 */class br{constructor(){this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}}/** 1139 * @license 1140 * Copyright 2017 Google LLC 1141 * 1142 * Licensed under the Apache License, Version 2.0 (the "License"); 1143 * you may not use this file except in compliance with the License. 1144 * You may obtain a copy of the License at 1145 * 1146 * http://www.apache.org/licenses/LICENSE-2.0 1147 * 1148 * Unless required by applicable law or agreed to in writing, software 1149 * distributed under the License is distributed on an "AS IS" BASIS, 1150 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1151 * See the License for the specific language governing permissions and 1152 * limitations under the License. 1153 */class nv{constructor(e,n){this.user=n,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class qS{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,n){e.enqueueRetryable(()=>n(St.UNAUTHENTICATED))}shutdown(){}}class WS{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,n){this.changeListener=n,e.enqueueRetryable(()=>n(this.token.user))}shutdown(){this.changeListener=null}}class KS{constructor(e){this.t=e,this.currentUser=St.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,n){let r=this.i;const i=u=>this.i!==r?(r=this.i,n(u)):Promise.resolve();let s=new br;this.o=()=>{this.i++,this.currentUser=this.u(),s.resolve(),s=new br,e.enqueueRetryable(()=>i(this.currentUser))};const o=()=>{const u=s;e.enqueueRetryable(async()=>{await u.promise,await i(this.currentUser)})},l=u=>{ne("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=u,this.auth.addAuthTokenListener(this.o),o()};this.t.onInit(u=>l(u)),setTimeout(()=>{if(!this.auth){const u=this.t.getImmediate({optional:!0});u?l(u):(ne("FirebaseAuthCredentialsProvider","Auth not yet detected"),s.resolve(),s=new br)}},0),o()}getToken(){const e=this.i,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then(r=>this.i!==e?(ne("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):r?(Ue(typeof r.accessToken=="string"),new nv(r.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const e=this.auth&&this.auth.getUid();return Ue(e===null||typeof e=="string"),new St(e)}}class GS{constructor(e,n,r){this.l=e,this.h=n,this.P=r,this.type="FirstParty",this.user=St.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const e=this.T();return e&&this.I.set("Authorization",e),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class QS{constructor(e,n,r){this.l=e,this.h=n,this.P=r}getToken(){return Promise.resolve(new GS(this.l,this.h,this.P))}start(e,n){e.enqueueRetryable(()=>n(St.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class YS{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class XS{constructor(e){this.A=e,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(e,n){const r=s=>{s.error!=null&&ne("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${s.error.message}`);const o=s.token!==this.R;return this.R=s.token,ne("FirebaseAppCheckTokenProvider",`Received ${o?"new":"existing"} token.`),o?n(s.token):Promise.resolve()};this.o=s=>{e.enqueueRetryable(()=>r(s))};const i=s=>{ne("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=s,this.appCheck.addTokenListener(this.o)};this.A.onInit(s=>i(s)),setTimeout(()=>{if(!this.appCheck){const s=this.A.getImmediate({optional:!0});s?i(s):ne("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(n=>n?(Ue(typeof n.token=="string"),this.R=n.token,new YS(n.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}/** 1154 * @license 1155 * Copyright 2020 Google LLC 1156 * 1157 * Licensed under the Apache License, Version 2.0 (the "License");
1158 * you may not use this file except in compliance with the License. 1159 * You may obtain a copy of the License at 1160 * 1161 * http://www.apache.org/licenses/LICENSE-2.0 1162 * 1163 * Unless required by applicable law or agreed to in writing, software 1164 * distributed under the License is distributed on an "AS IS" BASIS, 1165 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1166 * See the License for the specific language governing permissions and 1167 * limitations under the License. 1168 */function JS(t){const e=typeof self<"u"&&(self.crypto||self.msCrypto),n=new Uint8Array(t);if(e&&typeof e.getRandomValues=="function")e.getRandomValues(n);else for(let r=0;r<t;r++)n[r]=Math.floor(256*Math.random());return n}/** 1169 * @license 1170 * Copyright 2017 Google LLC 1171 * 1172 * Licensed under the Apache License, Version 2.0 (the "License"); 1173 * you may not use this file except in compliance with the License. 1174 * You may obtain a copy of the License at 1175 * 1176 * http://www.apache.org/licenses/LICENSE-2.0 1177 * 1178 * Unless required by applicable law or agreed to in writing, software 1179 * distributed under the License is distributed on an "AS IS" BASIS, 1180 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1181 * See the License for the specific language governing permissions and 1182 * limitations under the License. 1183 */class rv{static newId(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=Math.floor(256/e.length)*e.length;let r="";for(;r.length<20;){const i=JS(40);for(let s=0;s<i.length;++s)r.length<20&&i[s]<n&&(r+=e.charAt(i[s]%e.length))}return r}}function ke(t,e){return t<e?-1:t>e?1:0}function Bi(t,e,n){return t.length===e.length&&t.every((r,i)=>n(r,e[i]))}/** 1184 * @license 1185 * Copyright 2017 Google LLC 1186 * 1187 * Licensed under the Apache License, Version 2.0 (the "License"); 1188 * you may not use this file except in compliance with the License. 1189 * You may obtain a copy of the License at 1190 * 1191 * http://www.apache.org/licenses/LICENSE-2.0 1192 * 1193 * Unless required by applicable law or agreed to in writing, software 1194 * distributed under the License is distributed on an "AS IS" BASIS, 1195 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1196 * See the License for the specific language governing permissions and 1197 * limitations under the License. 1198 */class ut{constructor(e,n){if(this.seconds=e,this.nanoseconds=n,n<0)throw new ue(F.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(n>=1e9)throw new ue(F.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(e<-62135596800)throw new ue(F.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new ue(F.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}static now(){return ut.fromMillis(Date.now())}static fromDate(e){return ut.fromMillis(e.getTime())}static fromMillis(e){const n=Math.floor(e/1e3),r=Math.floor(1e6*(e-1e3*n));return new ut(n,r)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?ke(this.nanoseconds,e.nanoseconds):ke(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){const e=this.seconds- -62135596800;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}/** 1199 * @license 1200 * Copyright 2017 Google LLC 1201 * 1202 * Licensed under the Apache License, Version 2.0 (the "License"); 1203 * you may not use this file except in compliance with the License. 1204 * You may obtain a copy of the License at 1205 * 1206 * http://www.apache.org/licenses/LICENSE-2.0 1207 * 1208 * Unless required by applicable law or agreed to in writing, software 1209 * distributed under the License is distributed on an "AS IS" BASIS, 1210 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1211 * See the License for the specific language governing permissions and 1212 * limitations under the License. 1213 */class ye{constructor(e){this.timestamp=e}static fromTimestamp(e){return new ye(e)}static min(){return new ye(new ut(0,0))}static max(){return new ye(new ut(253402300799,999999999))}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}/** 1214 * @license 1215 * Copyright 2017 Google LLC 1216 * 1217 * Licensed under the Apache License, Version 2.0 (the "License");
1218 * you may not use this file except in compliance with the License. 1219 * You may obtain a copy of the License at 1220 * 1221 * http://www.apache.org/licenses/LICENSE-2.0 1222 * 1223 * Unless required by applicable law or agreed to in writing, software 1224 * distributed under the License is distributed on an "AS IS" BASIS, 1225 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1226 * See the License for the specific language governing permissions and 1227 * limitations under the License. 1228 */class uo{constructor(e,n,r){n===void 0?n=0:n>e.length&&pe(),r===void 0?r=e.length-n:r>e.length-n&&pe(),this.segments=e,this.offset=n,this.len=r}get length(){return this.len}isEqual(e){return uo.comparator(this,e)===0}child(e){const n=this.segments.slice(this.offset,this.limit());return e instanceof uo?e.forEach(r=>{n.push(r)}):n.push(e),this.construct(n)}limit(){return this.offset+this.length}popFirst(e){return e=e===void 0?1:e,this.construct(this.segments,this.offset+e,this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return this.length===0}isPrefixOf(e){if(e.length<this.length)return!1;for(let n=0;n<this.length;n++)if(this.get(n)!==e.get(n))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let n=0;n<this.length;n++)if(this.get(n)!==e.get(n))return!1;return!0}forEach(e){for(let n=this.offset,r=this.limit();n<r;n++)e(this.segments[n])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,n){const r=Math.min(e.length,n.length);for(let i=0;i<r;i++){const s=e.get(i),o=n.get(i);if(s<o)return-1;if(s>o)return 1}return e.length<n.length?-1:e.length>n.length?1:0}}class We extends uo{construct(e,n,r){return new We(e,n,r)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...e){const n=[];for(const r of e){if(r.indexOf("//")>=0)throw new ue(F.INVALID_ARGUMENT,`Invalid segment (${r}). Paths must not contain // in them.`);n.push(...r.split("/").filter(i=>i.length>0))}return new We(n)}static emptyPath(){return new We([])}}const ZS=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class _t extends uo{construct(e,n,r){return new _t(e,n,r)}static isValidIdentifier(e){return ZS.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),_t.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return this.length===1&&this.get(0)==="__name__"}static keyField(){return new _t(["__name__"])}static fromServerFormat(e){const n=[];let r="",i=0;const s=()=>
1228{if(r.length===0)throw new ue(F.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);n.push(r),r=""};let o=!1;for(;i<e.length;){const l=e[i];if(l==="\\"){if(i+1===e.length)throw new ue(F.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const u=e[i+1];if(u!=="\\"&&u!=="."&&u!=="`")throw new ue(F.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=u,i+=2}else l==="`"?(o=!o,i++):l!=="."||o?(r+=l,i++):(s(),i++)}if(s(),o)throw new ue(F.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new _t(n)}static emptyPath(){return new _t([])}}/** 1229 * @license 1230 * Copyright 2017 Google LLC 1231 * 1232 * Licensed under the Apache License, Version 2.0 (the "License"); 1233 * you may not use this file except in compliance with the License. 1234 * You may obtain a copy of the License at 1235 * 1236 * http://www.apache.org/licenses/LICENSE-2.0 1237 * 1238 * Unless required by applicable law or agreed to in writing, software 1239 * distributed under the License is distributed on an "AS IS" BASIS, 1240 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1241 * See the License for the specific language governing permissions and 1242 * limitations under the License. 1243 */class he{constructor(e){this.path=e}static fromPath(e){return new he(We.fromString(e))}static fromName(e){return new he(We.fromString(e).popFirst(5))}static empty(){return new he(We.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return e!==null&&We.comparator(this.path,e.path)===0}toString(){return this.path.toString()}static comparator(e,n){return We.comparator(e.path,n.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new he(new We(e.slice()))}}function eC(t,e){const n=t.toTimestamp().seconds,r=t.toTimestamp().nanoseconds+1,i=ye.fromTimestamp(r===1e9?new ut(n+1,0):new ut(n,r));return new Sr(i,he.empty(),e)}function tC(t){return new Sr(t.readTime,t.key,-1)}class Sr{constructor(e,n,r){this.readTime=e,this.documentKey=n,this.largestBatchId=r}static min(){return new Sr(ye.min(),he.empty(),-1)}static max(){return new Sr(ye.max(),he.empty(),-1)}}function nC(t,e){let n=t.readTime.compareTo(e.readTime);return n!==0?n:(n=he.comparator(t.documentKey,e.documentKey),n!==0?n:ke(t.largestBatchId,e.largestBatchId))}/** 1244 * @license 1245 * Copyright 2020 Google LLC 1246 * 1247 * Licensed under the Apache License, Version 2.0 (the "License"); 1248 * you may not use this file except in compliance with the License. 1249 * You may obtain a copy of the License at 1250 * 1251 * http://www.apache.org/licenses/LICENSE-2.0 1252 * 1253 * Unless required by applicable law or agreed to in writing, software 1254 * distributed under the License is distributed on an "AS IS" BASIS, 1255 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1256 * See the License for the specific language governing permissions and 1257 * limitations under the License. 1258 */const rC="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class iC{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}}/** 1259 * @license 1260 * Copyright 2017 Google LLC 1261 * 1262 * Licensed under the Apache License, Version 2.0 (the "License"); 1263 * you may not use this file except in compliance with the License. 1264 * You may obtain a copy of the License at 1265 * 1266 * http://www.apache.org/licenses/LICENSE-2.0 1267 * 1268 * Unless required by applicable law or agreed to in writing, software 1269 * distributed under the License is distributed on an "AS IS" BASIS, 1270 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1271 * See the License for the specific language governing permissions and 1272 * limitations under the License. 1273 */async function Ao(t){if(t.code!==F.FAILED_PRECONDITION||t.message!==rC)throw t;ne("LocalStore","Unexpectedly lost primary lease")}/** 1274 * @license 1275 * Copyright 2017 Google LLC 1276 * 1277 * Licensed under the Apache License, Version 2.0 (the "License");
1278 * you may not use this file except in compliance with the License. 1279 * You may obtain a copy of the License at 1280 * 1281 * http://www.apache.org/licenses/LICENSE-2.0 1282 * 1283 * Unless required by applicable law or agreed to in writing, software 1284 * distributed under the License is distributed on an "AS IS" BASIS, 1285 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1286 * See the License for the specific language governing permissions and 1287 * limitations under the License. 1288 */class U{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e(n=>{this.isDone=!0,this.result=n,this.nextCallback&&this.nextCallback(n)},n=>{this.isDone=!0,this.error=n,this.catchCallback&&this.catchCallback(n)})}catch(e){return this.next(void 0,e)}next(e,n){return this.callbackAttached&&pe(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(e,this.result):new U((r,i)=>{this.nextCallback=s=>{this.wrapSuccess(e,s).next(r,i)},this.catchCallback=s=>{this.wrapFailure(n,s).next(r,i)}})}toPromise(){return new Promise((e,n)=>{this.next(e,n)})}wrapUserFunction(e){try{const n=e();return n instanceof U?n:U.resolve(n)}catch(n){return U.reject(n)}}wrapSuccess(e,n){return e?this.wrapUserFunction(()=>e(n)):U.resolve(n)}wrapFailure(e,n){return e?this.wrapUserFunction(()=>e(n)):U.reject(n)}static resolve(e){return new U((n,r)=>{n(e)})}static reject(e){return new U((n,r)=>{r(e)})}static waitFor(e){return new U((n,r)=>{let i=0,s=0,o=!1;e.forEach(l=>{++i,l.next(()=>{++s,o&&s===i&&n()},u=>r(u))}),o=!0,s===i&&n()})}static or(e){let n=U.resolve(!1);for(const r of e)n=n.next(i=>i?U.resolve(i):r());return n}static forEach(e,n){const r=[];return e.forEach((i,s)=>{r.push(n.call(this,i,s))}),this.waitFor(r)}static mapArray(e,n){return new U((r,i)=>{const s=e.length,o=new Array(s);let l=0;for(let u=0;u<s;u++){const c=u;n(e[c]).next(h=>{o[c]=h,++l,l===s&&r(o)},h=>i(h))}})}static doWhile(e,n){return new U((r,i)=>{const s=()=>{e()===!0?n().next(()=>{s()},i):r()};s()})}}function sC(t){const e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)}function So(t){return t.name==="IndexedDbTransactionError"}/** 1289 * @license 1290 * Copyright 2018 Google LLC 1291 * 1292 * Licensed under the Apache License, Version 2.0 (the "License"); 1293 * you may not use this file except in compliance with the License. 1294 * You may obtain a copy of the License at 1295 * 1296 * http://www.apache.org/licenses/LICENSE-2.0 1297 * 1298 * Unless required by applicable law or agreed to in writing, software 1299 * distributed under the License is distributed on an "AS IS" BASIS, 1300 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1301 * See the License for the specific language governing permissions and 1302 * limitations under the License. 1303 */class bh{constructor(e,n){this.previousValue=e,n&&(n.sequenceNumberHandler=r=>this.ie(r),this.se=r=>n.writeSequenceNumber(r))}ie(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this.se&&this.se(e),e}}bh.oe=-1;function Tl(t){return t==null}function qa(t){return t===0&&1/t==-1/0}function oC(t){return typeof t=="number"&&Number.isInteger(t)&&!qa(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}/** 1304 * @license 1305 * Copyright 2017 Google LLC 1306 * 1307 * Licensed under the Apache License, Version 2.0 (the "License"); 1308 * you may not use this file except in compliance with the License. 1309 * You may obtain a copy of the License at 1310 * 1311 * http://www.apache.org/licenses/LICENSE-2.0 1312 * 1313 * Unless required by applicable law or agreed to in writing, software 1314 * distributed under the License is distributed on an "AS IS" BASIS, 1315 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1316 * See the License for the specific language governing permissions and 1317 * limitations under the License. 1318 */function Gp(t){let e=0;for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function di(t,e){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function iv(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}/** 1319 * @license 1320 * Copyright 2017 Google LLC 1321 * 1322 * Licensed under the Apache License, Version 2.0 (the "License");
1323 * you may not use this file except in compliance with the License. 1324 * You may obtain a copy of the License at 1325 * 1326 * http://www.apache.org/licenses/LICENSE-2.0 1327 * 1328 * Unless required by applicable law or agreed to in writing, software 1329 * distributed under the License is distributed on an "AS IS" BASIS, 1330 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1331 * See the License for the specific language governing permissions and 1332 * limitations under the License. 1333 */class Xe{constructor(e,n){this.comparator=e,this.root=n||gt.EMPTY}insert(e,n){return new Xe(this.comparator,this.root.insert(e,n,this.comparator).copy(null,null,gt.BLACK,null,null))}remove(e){return new Xe(this.comparator,this.root.remove(e,this.comparator).copy(null,null,gt.BLACK,null,null))}get(e){let n=this.root;for(;!n.isEmpty();){const r=this.comparator(e,n.key);if(r===0)return n.value;r<0?n=n.left:r>0&&(n=n.right)}return null}indexOf(e){let n=0,r=this.root;for(;!r.isEmpty();){const i=this.comparator(e,r.key);if(i===0)return n+r.left.size;i<0?r=r.left:(n+=r.left.size+1,r=r.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((n,r)=>(e(n,r),!1))}toString(){const e=[];return this.inorderTraversal((n,r)=>(e.push(`${n}:${r}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new sa(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new sa(this.root,e,this.comparator,!1)}getReverseIterator(){return new sa(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new sa(this.root,e,this.comparator,!0)}}class sa{constructor(e,n,r,i){this.isReverse=i,this.nodeStack=[];let s=1;for(;!e.isEmpty();)if(s=n?r(e.key,n):1,n&&i&&(s*=-1),s<0)e=this.isReverse?e.left:e.right;else{if(s===0){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const n={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return n}hasNext(){return this.nodeStack.length>0}peek(){if(this.nodeStack.length===0)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class gt{constructor(e,n,r,i,s){this.key=e,this.value=n,this.color=r??gt.RED,this.left=i??gt.EMPTY,this.right=s??gt.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,n,r,i,s){return new gt(e??this.key,n??this.value,r??this.color,i??this.left,s??this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,n,r){let i=this;const s=r(e,i.key);return i=s<0?i.copy(null,null,null,i.left.insert(e,n,r),null):s===0?i.copy(null,n,null,null,null):i.copy(null,null,null,null,i.right.insert(e,n,r)),i.fixUp()}removeMin(){if(this.left.isEmpty())return gt.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,n){let r,i=this;if(n(e,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(e,n),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),n(e,i.key)===0){if(i.right.isEmpty())return gt.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(e,n))}return i.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,gt.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,gt.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const e=this.left.copy(null,null,!this.left.color,null,null),n=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,n)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw pe();const e=this.left.check();if(e!==this.right.check())throw pe();return e+(this.isRed()?0:1)}}gt.EMPTY=null,gt.RED=!0,gt.BLACK=!1;
1333gt.EMPTY=new class{constructor(){this.size=0}get key(){throw pe()}get value(){throw pe()}get color(){throw pe()}get left(){throw pe()}get right(){throw pe()}copy(e,n,r,i,s){return this}insert(e,n,r){return new gt(e,n)}remove(e,n){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};/** 1334 * @license 1335 * Copyright 2017 Google LLC 1336 * 1337 * Licensed under the Apache License, Version 2.0 (the "License"); 1338 * you may not use this file except in compliance with the License. 1339 * You may obtain a copy of the License at 1340 * 1341 * http://www.apache.org/licenses/LICENSE-2.0 1342 * 1343 * Unless required by applicable law or agreed to in writing, software 1344 * distributed under the License is distributed on an "AS IS" BASIS, 1345 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1346 * See the License for the specific language governing permissions and 1347 * limitations under the License. 1348 */class bt{constructor(e){this.comparator=e,this.data=new Xe(this.comparator)}has(e){return this.data.get(e)!==null}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal((n,r)=>(e(n),!1))}forEachInRange(e,n){const r=this.data.getIteratorFrom(e[0]);for(;r.hasNext();){const i=r.getNext();if(this.comparator(i.key,e[1])>=0)return;n(i.key)}}forEachWhile(e,n){let r;for(r=n!==void 0?this.data.getIteratorFrom(n):this.data.getIterator();r.hasNext();)if(!e(r.getNext().key))return}firstAfterOrEqual(e){const n=this.data.getIteratorFrom(e);return n.hasNext()?n.getNext().key:null}getIterator(){return new Qp(this.data.getIterator())}getIteratorFrom(e){return new Qp(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let n=this;return n.size<e.size&&(n=e,e=this),e.forEach(r=>{n=n.add(r)}),n}isEqual(e){if(!(e instanceof bt)||this.size!==e.size)return!1;const n=this.data.getIterator(),r=e.data.getIterator();for(;n.hasNext();){const i=n.getNext().key,s=r.getNext().key;if(this.comparator(i,s)!==0)return!1}return!0}toArray(){const e=[];return this.forEach(n=>{e.push(n)}),e}toString(){const e=[];return this.forEach(n=>e.push(n)),"SortedSet("+e.toString()+")"}copy(e){const n=new bt(this.comparator);return n.data=e,n}}class Qp{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}/** 1349 * @license 1350 * Copyright 2020 Google LLC 1351 * 1352 * Licensed under the Apache License, Version 2.0 (the "License"); 1353 * you may not use this file except in compliance with the License. 1354 * You may obtain a copy of the License at 1355 * 1356 * http://www.apache.org/licenses/LICENSE-2.0 1357 * 1358 * Unless required by applicable law or agreed to in writing, software 1359 * distributed under the License is distributed on an "AS IS" BASIS, 1360 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1361 * See the License for the specific language governing permissions and 1362 * limitations under the License. 1363 */class qt{constructor(e){this.fields=e,e.sort(_t.comparator)}static empty(){return new qt([])}unionWith(e){let n=new bt(_t.comparator);for(const r of this.fields)n=n.add(r);for(const r of e)n=n.add(r);return new qt(n.toArray())}covers(e){for(const n of this.fields)if(n.isPrefixOf(e))return!0;return!1}isEqual(e){return Bi(this.fields,e.fields,(n,r)=>n.isEqual(r))}}/** 1364 * @license 1365 * Copyright 2023 Google LLC 1366 * 1367 * Licensed under the Apache License, Version 2.0 (the "License"); 1368 * you may not use this file except in compliance with the License. 1369 * You may obtain a copy of the License at 1370 * 1371 * http://www.apache.org/licenses/LICENSE-2.0 1372 * 1373 * Unless required by applicable law or agreed to in writing, software 1374 * distributed under the License is distributed on an "AS IS" BASIS, 1375 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1376 * See the License for the specific language governing permissions and 1377 * limitations under the License.
1378 */class sv extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}/** 1379 * @license 1380 * Copyright 2020 Google LLC 1381 * 1382 * Licensed under the Apache License, Version 2.0 (the "License"); 1383 * you may not use this file except in compliance with the License. 1384 * You may obtain a copy of the License at 1385 * 1386 * http://www.apache.org/licenses/LICENSE-2.0 1387 * 1388 * Unless required by applicable law or agreed to in writing, software 1389 * distributed under the License is distributed on an "AS IS" BASIS, 1390 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1391 * See the License for the specific language governing permissions and 1392 * limitations under the License. 1393 */class Rt{constructor(e){this.binaryString=e}static fromBase64String(e){const n=function(i){try{return atob(i)}catch(s){throw typeof DOMException<"u"&&s instanceof DOMException?new sv("Invalid base64 string: "+s):s}}(e);return new Rt(n)}static fromUint8Array(e){const n=function(i){let s="";for(let o=0;o<i.length;++o)s+=String.fromCharCode(i[o]);return s}(e);return new Rt(n)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return function(n){return btoa(n)}(this.binaryString)}toUint8Array(){return function(n){const r=new Uint8Array(n.length);for(let i=0;i<n.length;i++)r[i]=n.charCodeAt(i);return r}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return ke(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}Rt.EMPTY_BYTE_STRING=new Rt("");const aC=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Cr(t){if(Ue(!!t),typeof t=="string"){let e=0;const n=aC.exec(t);if(Ue(!!n),n[1]){let i=n[1];i=(i+"000000000").substr(0,9),e=Number(i)}const r=new Date(t);return{seconds:Math.floor(r.getTime()/1e3),nanos:e}}return{seconds:st(t.seconds),nanos:st(t.nanos)}}function st(t){return typeof t=="number"?t:typeof t=="string"?Number(t):0}function ri(t){return typeof t=="string"?Rt.fromBase64String(t):Rt.fromUint8Array(t)}/** 1394 * @license 1395 * Copyright 2020 Google LLC 1396 * 1397 * Licensed under the Apache License, Version 2.0 (the "License"); 1398 * you may not use this file except in compliance with the License. 1399 * You may obtain a copy of the License at 1400 * 1401 * http://www.apache.org/licenses/LICENSE-2.0 1402 * 1403 * Unless required by applicable law or agreed to in writing, software 1404 * distributed under the License is distributed on an "AS IS" BASIS, 1405 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1406 * See the License for the specific language governing permissions and 1407 * limitations under the License. 1408 */function wh(t){var e,n;return((n=(((e=t==null?void 0:t.mapValue)===null||e===void 0?void 0:e.fields)||{}).__type__)===null||n===void 0?void 0:n.stringValue)==="server_timestamp"}function Eh(t){const e=t.mapValue.fields.__previous_value__;return wh(e)?Eh(e):e}function co(t){const e=Cr(t.mapValue.fields.__local_write_time__.timestampValue);return new ut(e.seconds,e.nanos)}/** 1409 * @license 1410 * Copyright 2017 Google LLC 1411 * 1412 * Licensed under the Apache License, Version 2.0 (the "License"); 1413 * you may not use this file except in compliance with the License. 1414 * You may obtain a copy of the License at 1415 * 1416 * http://www.apache.org/licenses/LICENSE-2.0 1417 * 1418 * Unless required by applicable law or agreed to in writing, software 1419 * distributed under the License is distributed on an "AS IS" BASIS, 1420 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1421 * See the License for the specific language governing permissions and 1422 * limitations under the License. 1423 */class lC{constructor(e,n,r,i,s,o,l,u,c){this.databaseId=e,this.appId=n,this.persistenceKey=r,this.host=i,this.ssl=s,this.forceLongPolling=o,this.autoDetectLongPolling=l,this.longPollingOptions=u,this.useFetchStreams=c}}class ho{constructor(e,n){this.projectId=e,this.database=n||"(default)"}static empty(){return new ho("","")}get isDefaultDatabase(){return this.database==="(default)"}isEqual(e){return e instanceof ho&&e.projectId===this.projectId&&e.database===this.database}}/** 1424 * @license 1425 * Copyright 2020 Google LLC 1426 * 1427 * Licensed under the Apache License, Version 2.0 (the "License");
1428 * you may not use this file except in compliance with the License. 1429 * You may obtain a copy of the License at 1430 * 1431 * http://www.apache.org/licenses/LICENSE-2.0 1432 * 1433 * Unless required by applicable law or agreed to in writing, software 1434 * distributed under the License is distributed on an "AS IS" BASIS, 1435 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1436 * See the License for the specific language governing permissions and 1437 * limitations under the License. 1438 */const oa={mapValue:{fields:{__type__:{stringValue:"__max__"}}}};function ii(t){return"nullValue"in t?0:"booleanValue"in t?1:"integerValue"in t||"doubleValue"in t?2:"timestampValue"in t?3:"stringValue"in t?5:"bytesValue"in t?6:"referenceValue"in t?7:"geoPointValue"in t?8:"arrayValue"in t?9:"mapValue"in t?wh(t)?4:uC(t)?9007199254740991:10:pe()}function An(t,e){if(t===e)return!0;const n=ii(t);if(n!==ii(e))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return co(t).isEqual(co(e));case 3:return function(i,s){if(typeof i.timestampValue=="string"&&typeof s.timestampValue=="string"&&i.timestampValue.length===s.timestampValue.length)return i.timestampValue===s.timestampValue;const o=Cr(i.timestampValue),l=Cr(s.timestampValue);return o.seconds===l.seconds&&o.nanos===l.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return function(i,s){return ri(i.bytesValue).isEqual(ri(s.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(i,s){return st(i.geoPointValue.latitude)===st(s.geoPointValue.latitude)&&st(i.geoPointValue.longitude)===st(s.geoPointValue.longitude)}(t,e);case 2:return function(i,s){if("integerValue"in i&&"integerValue"in s)return st(i.integerValue)===st(s.integerValue);if("doubleValue"in i&&"doubleValue"in s){const o=st(i.doubleValue),l=st(s.doubleValue);return o===l?qa(o)===qa(l):isNaN(o)&&isNaN(l)}return!1}(t,e);case 9:return Bi(t.arrayValue.values||[],e.arrayValue.values||[],An);case 10:return function(i,s){const o=i.mapValue.fields||{},l=s.mapValue.fields||{};if(Gp(o)!==Gp(l))return!1;for(const u in o)if(o.hasOwnProperty(u)&&(l[u]===void 0||!An(o[u],l[u])))return!1;return!0}(t,e);default:return pe()}}function fo(t,e){return(t.values||[]).find(n=>An(n,e))!==void 0}function ji(t,e){if(t===e)return 0;const n=ii(t),r=ii(e);if(n!==r)return ke(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return ke(t.booleanValue,e.booleanValue);case 2:return function(s,o){const l=st(s.integerValue||s.doubleValue),u=st(o.integerValue||o.doubleValue);return l<u?-1:l>u?1:l===u?0:isNaN(l)?isNaN(u)?0:-1:1}(t,e);case 3:return Yp(t.timestampValue,e.timestampValue);case 4:return Yp(co(t),co(e));case 5:return ke(t.stringValue,e.stringValue);case 6:return function(s,o){const l=ri(s),u=ri(o);return l.compareTo(u)}(t.bytesValue,e.bytesValue);case 7:return function(s,o){const l=s.split("/"),u=o.split("/");for(let c=0;c<l.length&&c<u.length;c++){const h=ke(l[c],u[c]);if(h!==0)return h}return ke(l.length,u.length)}(t.referenceValue,e.referenceValue);case 8:return function(s,o){const l=ke(st(s.latitude),st(o.latitude));return l!==0?l:ke(st(s.longitude),st(o.longitude))}(t.geoPointValue,e.geoPointValue);case 9:return function(s,o){const l=s.values||[],u=o.values||[];for(let c=0;c<l.length&&c<u.length;++c){const h=ji(l[c],u[c]);if(h)return h}return ke(l.length,u.length)}(t.arrayValue,e.arrayValue);case 10:return function(s,o){if(s===oa.mapValue&&o===oa.mapValue)return 0;if(s===oa.mapValue)return 1;if(o===oa.mapValue)return-1;const l=s.fields||{},u=Object.keys(l),c=o.fields||{},h=Object.keys(c);u.sort(),h.sort();for(let p=0;p<u.length&&p<h.length;++p){const m=ke(u[p],h[p]);if(m!==0)return m;const y=ji(l[u[p]],c[h[p]]);if(y!==0)return y}return ke(u.length,h.length)}(t.mapValue,e.mapValue);default:throw pe()}}function Yp(t,e){if(typeof t=="string"&&typeof e=="string"&&t.length===e.length)return ke(t,e);const n=Cr(t),r=Cr(e),i=ke(n.seconds,r.seconds);return i!==0?i:ke(n.nanos,r.nanos)}function Hi(t){return dc(t)}function dc(t){return"nullValue"in t?"null":"booleanValue"in t?""+t.booleanValue:"integerValue"in t?""+t.integerValue:"doubleValue"in t?""+t.doubleValue:"timestampValue"in t?function(n){const r=Cr(n);return`time(${r.seconds},${r.nanos})`}(t.timestampValue):"stringValue"in t?t.stringValue:"bytesValue"in t?function(n){return ri(n).toBase64()}(t.bytesValue):"referenceValue"in t?function(n){return he.fromName(n).toString()}(t.referenceValue):"geoPointValue"in t?function(n){return`geo(${n.latitude},${n.longitude})`}(t.geoPointValue):"arrayValue"in t?function(n){let r="[",i=!0;for(const s of n.values||[])i?i=!1:r+=",",r+=dc(s);return r+"]"}(t.arrayValue):"mapValue"in t?function(n){const r=Object.keys(n.fields||{}).sort();let i="{",s=!0;for(const o of r)s?s=!1:i+=",",i+=`${o}:${dc(n.fields[o])}`;return i+"}"}(t.mapValue):pe()}function fc(t){return!!t&&"integerValue"in t}function Th(t){return!!t&&"arrayValue"in t}function Xp(t){return!!t&&"nullValue"in t}function Jp(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function Aa(t){return!!t&&"mapValue"in t}function $s(t){if(t.geoPointValue)return{geoPointValue:Object.assign({},t.geoPointValue)};if(t.timestampValue&&typeof t.timestampValue=="object")return{timestampValue:Object.assign({},t.timestampValue)};if(t.mapValue){const e={mapValue:{fields:{}}};return di(t.mapValue.fields,(n,r)=>e.mapValue.fields[n]=$s(r)),e}if(t.arrayValue){const e={arrayValue:{values:[]}};for(let n=0;n<(t.arrayValue.values||[]).length;++n)e.arrayValue.values[n]=$s(t.arrayValue.values[n]);return e}return Object.assign({},t)}function uC(t){return(((t.mapValue||{}).fields||{}).__type__||{}).stringValue==="__max__"}/** 1439 * @license 1440 * Copyright 2017 Google LLC 1441 * 1442 * Licensed under the Apache License, Version 2.0 (the "License");
1443 * you may not use this file except in compliance with the License. 1444 * You may obtain a copy of the License at 1445 * 1446 * http://www.apache.org/licenses/LICENSE-2.0 1447 * 1448 * Unless required by applicable law or agreed to in writing, software 1449 * distributed under the License is distributed on an "AS IS" BASIS, 1450 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1451 * See the License for the specific language governing permissions and 1452 * limitations under the License. 1453 */class Vt{constructor(e){this.value=e}static empty(){return new Vt({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let n=this.value;for(let r=0;r<e.length-1;++r)if(n=(n.mapValue.fields||{})[e.get(r)],!Aa(n))return null;return n=(n.mapValue.fields||{})[e.lastSegment()],n||null}}set(e,n){this.getFieldsMap(e.popLast())[e.lastSegment()]=$s(n)}setAll(e){let n=_t.emptyPath(),r={},i=[];e.forEach((o,l)=>{if(!n.isImmediateParentOf(l)){const u=this.getFieldsMap(n);this.applyChanges(u,r,i),r={},i=[],n=l.popLast()}o?r[l.lastSegment()]=$s(o):i.push(l.lastSegment())});const s=this.getFieldsMap(n);this.applyChanges(s,r,i)}delete(e){const n=this.field(e.popLast());Aa(n)&&n.mapValue.fields&&delete n.mapValue.fields[e.lastSegment()]}isEqual(e){return An(this.value,e.value)}getFieldsMap(e){let n=this.value;n.mapValue.fields||(n.mapValue={fields:{}});for(let r=0;r<e.length;++r){let i=n.mapValue.fields[e.get(r)];Aa(i)&&i.mapValue.fields||(i={mapValue:{fields:{}}},n.mapValue.fields[e.get(r)]=i),n=i}return n.mapValue.fields}applyChanges(e,n,r){di(n,(i,s)=>e[i]=s);for(const i of r)delete e[i]}clone(){return new Vt($s(this.value))}}function ov(t){const e=[];return di(t.fields,(n,r)=>{const i=new _t([n]);if(Aa(r)){const s=ov(r.mapValue).fields;
1453if(s.length===0)e.push(i);else for(const o of s)e.push(i.child(o))}else e.push(i)}),new qt(e)}/** 1454 * @license 1455 * Copyright 2017 Google LLC 1456 * 1457 * Licensed under the Apache License, Version 2.0 (the "License"); 1458 * you may not use this file except in compliance with the License. 1459 * You may obtain a copy of the License at 1460 * 1461 * http://www.apache.org/licenses/LICENSE-2.0 1462 * 1463 * Unless required by applicable law or agreed to in writing, software 1464 * distributed under the License is distributed on an "AS IS" BASIS, 1465 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1466 * See the License for the specific language governing permissions and 1467 * limitations under the License. 1468 */class Ct{constructor(e,n,r,i,s,o,l){this.key=e,this.documentType=n,this.version=r,this.readTime=i,this.createTime=s,this.data=o,this.documentState=l}static newInvalidDocument(e){return new Ct(e,0,ye.min(),ye.min(),ye.min(),Vt.empty(),0)}static newFoundDocument(e,n,r,i){return new Ct(e,1,n,ye.min(),r,i,0)}static newNoDocument(e,n){return new Ct(e,2,n,ye.min(),ye.min(),Vt.empty(),0)}static newUnknownDocument(e,n){return new Ct(e,3,n,ye.min(),ye.min(),Vt.empty(),2)}convertToFoundDocument(e,n){return!this.createTime.isEqual(ye.min())||this.documentType!==2&&this.documentType!==0||(this.createTime=e),this.version=e,this.documentType=1,this.data=n,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=Vt.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=Vt.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=ye.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return this.documentState===1}get hasCommittedMutations(){return this.documentState===2}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return this.documentType!==0}isFoundDocument(){return this.documentType===1}isNoDocument(){return this.documentType===2}isUnknownDocument(){return this.documentType===3}isEqual(e){return e instanceof Ct&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)}mutableCopy(){return new Ct(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}/** 1469 * @license 1470 * Copyright 2022 Google LLC 1471 * 1472 * Licensed under the Apache License, Version 2.0 (the "License"); 1473 * you may not use this file except in compliance with the License. 1474 * You may obtain a copy of the License at 1475 * 1476 * http://www.apache.org/licenses/LICENSE-2.0 1477 * 1478 * Unless required by applicable law or agreed to in writing, software 1479 * distributed under the License is distributed on an "AS IS" BASIS, 1480 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1481 * See the License for the specific language governing permissions and 1482 * limitations under the License. 1483 */class Wa{constructor(e,n){this.position=e,this.inclusive=n}}function Zp(t,e,n){let r=0;for(let i=0;i<t.position.length;i++){const s=e[i],o=t.position[i];if(s.field.isKeyField()?r=he.comparator(he.fromName(o.referenceValue),n.key):r=ji(o,n.data.field(s.field)),s.dir==="desc"&&(r*=-1),r!==0)break}return r}function em(t,e){if(t===null)return e===null;if(e===null||t.inclusive!==e.inclusive||t.position.length!==e.position.length)return!1;for(let n=0;n<t.position.length;n++)if(!An(t.position[n],e.position[n]))return!1;return!0}/** 1484 * @license 1485 * Copyright 2022 Google LLC 1486 * 1487 * Licensed under the Apache License, Version 2.0 (the "License"); 1488 * you may not use this file except in compliance with the License. 1489 * You may obtain a copy of the License at 1490 * 1491 * http://www.apache.org/licenses/LICENSE-2.0 1492 * 1493 * Unless required by applicable law or agreed to in writing, softw
1493are 1494 * distributed under the License is distributed on an "AS IS" BASIS, 1495 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1496 * See the License for the specific language governing permissions and 1497 * limitations under the License. 1498 */class Ka{constructor(e,n="asc"){this.field=e,this.dir=n}}function cC(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}/** 1499 * @license 1500 * Copyright 2022 Google LLC 1501 * 1502 * Licensed under the Apache License, Version 2.0 (the "License"); 1503 * you may not use this file except in compliance with the License. 1504 * You may obtain a copy of the License at 1505 * 1506 * http://www.apache.org/licenses/LICENSE-2.0 1507 * 1508 * Unless required by applicable law or agreed to in writing, software 1509 * distributed under the License is distributed on an "AS IS" BASIS, 1510 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1511 * See the License for the specific language governing permissions and 1512 * limitations under the License. 1513 */class av{}class at extends av{constructor(e,n,r){super(),this.field=e,this.op=n,this.value=r}static create(e,n,r){return e.isKeyField()?n==="in"||n==="not-in"?this.createKeyFieldInFilter(e,n,r):new dC(e,n,r):n==="array-contains"?new mC(e,r):n==="in"?new gC(e,r):n==="not-in"?new yC(e,r):n==="array-contains-any"?new vC(e,r):new at(e,n,r)}static createKeyFieldInFilter(e,n,r){return n==="in"?new fC(e,r):new pC(e,r)}matches(e){const n=e.data.field(this.field);return this.op==="!="?n!==null&&this.matchesComparison(ji(n,this.value)):n!==null&&ii(this.value)===ii(n)&&this.matchesComparison(ji(n,this.value))}matchesComparison(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return e===0;case"!=":return e!==0;case">":return e>0;case">=":return e>=0;default:return pe()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class Sn extends av{constructor(e,n){super(),this.filters=e,this.op=n,this.ae=null}static create(e,n){return new Sn(e,n)}matches(e){return lv(this)?this.filters.find(n=>!n.matches(e))===void 0:this.filters.find(n=>n.matches(e))!==void 0}getFlattenedFilters(){return this.ae!==null||(this.ae=this.filters.reduce((e,n)=>e.concat(n.getFlattenedFilters()),[])),this.ae}getFilters(){return Object.assign([],this.filters)}}function lv(t){return t.op==="and"}function uv(t){return hC(t)&&lv(t)}function hC(t){for(const e of t.filters)if(e instanceof Sn)return!1;return!0}function pc(t){if(t instanceof at)return t.field.canonicalString()+t.op.toString()+Hi(t.value);if(uv(t))return t.filters.map(e=>pc(e)).join(",");{const e=t.filters.map(n=>pc(n)).join(",");return`${t.op}(${e})`}}function cv(t,e){return t instanceof at?function(r,i){return i instanceof at&&r.op===i.op&&r.field.isEqual(i.field)&&An(r.value,i.value)}(t,e):t instanceof Sn?function(r,i){return i instanceof Sn&&r.op===i.op&&r.filters.length===i.filters.length?r.filters.reduce((s,o,l)=>s&&cv(o,i.filters[l]),!0):!1}(t,e):void pe()}function hv(t){return t instanceof at?function(n){return`${n.field.canonicalString()} ${n.op} ${Hi(n.value)}`}(t):t instanceof Sn?function(n){return n.op.toString()+" {"+n.getFilters().map(hv).join(" ,")+"}"}(t):"Filter"}class dC extends at{constructor(e,n,r){super(e,n,r),this.key=he.fromName(r.referenceValue)}matches(e){const n=he.comparator(e.key,this.key);return this.matchesComparison(n)}}class fC extends at{constructor(e,n){super(e,"in",n),this.keys=dv("in",n)}matches(e){return this.keys.some(n=>n.isEqual(e.key))}}class pC extends at{constructor(e,n){super(e,"not-in",n),this.keys=dv("not-in",n)}matches(e){return!this.keys.some(n=>n.isEqual(e.key))}}function dv(t,e){var n;return(((n=e.arrayValue)===null||n===void 0?void 0:n.values)||[]).map(r=>he.fromName(r.referenceValue))}class mC extends at{constructor(e,n){super(e,"array-contains",n)}matches(e){const n=e.data.field(this.field);return Th(n)&&fo(n.arrayValue,this.value)}}class gC extends at{constructor(e,n){super(e,"in",n)}matches(e){const n=e.data.field(this.field);return n!==null&&fo(this.value.arrayValue,n)}}class yC extends at{constructor(e,n){super(e,"not-in",n)}matches(e){if(fo(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const n=e.data.field(this.field);return n!==null&&!fo(this.value.arrayValue,n)}}class vC extends at{constructor(e,n){super(e,"array-contains-any",n)}matches(e){const n=e.data.field(this.field);return!(!Th(n)||!n.arrayValue.values)&&n.arrayValue.values.some(r=>fo(this.value.arrayValue,r))}}/** 1514 * @license 1515 * Copyright 2019 Google LLC 1516 * 1517 * Licensed under the Apache License, Version 2.0 (the "License");
1518 * you may not use this file except in compliance with the License. 1519 * You may obtain a copy of the License at 1520 * 1521 * http://www.apache.org/licenses/LICENSE-2.0 1522 * 1523 * Unless required by applicable law or agreed to in writing, software 1524 * distributed under the License is distributed on an "AS IS" BASIS, 1525 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1526 * See the License for the specific language governing permissions and 1527 * limitations under the License. 1528 */class _C{constructor(e,n=null,r=[],i=[],s=null,o=null,l=null){this.path=e,this.collectionGroup=n,this.orderBy=r,this.filters=i,this.limit=s,this.startAt=o,this.endAt=l,this.ue=null}}function tm(t,e=null,n=[],r=[],i=null,s=null,o=null){return new _C(t,e,n,r,i,s,o)}function Ih(t){const e=_e(t);if(e.ue===null){let n=e.path.canonicalString();e.collectionGroup!==null&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map(r=>pc(r)).join(","),n+="|ob:",n+=e.orderBy.map(r=>function(s){return s.field.canonicalString()+s.dir}(r)).join(","),Tl(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=e.startAt.inclusive?"b:":"a:",n+=e.startAt.position.map(r=>Hi(r)).join(",")),e.endAt&&(n+="|ub:",n+=e.endAt.inclusive?"a:":"b:",n+=e.endAt.position.map(r=>Hi(r)).join(",")),e.ue=n}return e.ue}function Ah(t,e){if(t.limit!==e.limit||t.orderBy.length!==e.orderBy.length)return!1;for(let n=0;n<t.orderBy.length;n++)if(!cC(t.orderBy[n],e.orderBy[n]))return!1;if(t.filters.length!==e.filters.length)return!1;for(let n=0;n<t.filters.length;n++)if(!cv(t.filters[n],e.filters[n]))return!1;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!em(t.startAt,e.startAt)&&em(t.endAt,e.endAt)}function mc(t){return he.isDocumentKey(t.path)&&t.collectionGroup===null&&t.filters.length===0}/** 1529 * @license 1530 * Copyright 2017 Google LLC 1531 * 1532 * Licensed under the Apache License, Version 2.0 (the "License"); 1533 * you may not use this file except in compliance with the License. 1534 * You may obtain a copy of the License at 1535 * 1536 * http://www.apache.org/licenses/LICENSE-2.0 1537 * 1538 * Unless required by applicable law or agreed to in writing, software 1539 * distributed under the License is distributed on an "AS IS" BASIS, 1540 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1541 * See the License for the specific language governing permissions and 1542 * limitations under the License. 1543 */class Il{constructor(e,n=null,r=[],i=[],s=null,o="F",l=null,u=null){this.path=e,this.collectionGroup=n,this.explicitOrderBy=r,this.filters=i,this.limit=s,this.limitType=o,this.startAt=l,this.endAt=u,this.ce=null,this.le=null,this.he=null,this.startAt,this.endAt}}function bC(t,e,n,r,i,s,o,l){return new Il(t,e,n,r,i,s,o,l)}function fv(t){return new Il(t)}function nm(t){return t.filters.length===0&&t.limit===null&&t.startAt==null&&t.endAt==null&&(t.explicitOrderBy.length===0||t.explicitOrderBy.length===1&&t.explicitOrderBy[0].field.isKeyField())}function wC(t){return t.collectionGroup!==null}function Fs(t){const e=_e(t);if(e.ce===null){e.ce=[];const n=new Set;for(const s of e.explicitOrderBy)e.ce.push(s),n.add(s.field.canonicalString());const r=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";(function(o){let l=new bt(_t.comparator);return o.filters.forEach(u=>{u.getFlattenedFilters().forEach(c=>{c.isInequality()&&(l=l.add(c.field))})}),l})(e).forEach(s=>{n.has(s.canonicalString())||s.isKeyField()||e.ce.push(new Ka(s,r))}),n.has(_t.keyField().canonicalString())||e.ce.push(new Ka(_t.keyField(),r))}return e.ce}function bn(t){const e=_e(t);return e.le||(e.le=EC(e,Fs(t))),e.le}function EC(t,e){if(t.limitType==="F")return tm(t.path,t.collectionGroup,e,t.filters,t.limit,t.startAt,t.endAt);{e=e.map(i=>{const s=i.dir==="desc"?"asc":"desc";return new Ka(i.field,s)});const n=t.endAt?new Wa(t.endAt.position,t.endAt.inclusive):null,r=t.startAt?new Wa(t.startAt.position,t.startAt.inclusive):null;return tm(t.path,t.collectionGroup,e,t.filters,t.limit,n,r)}}function gc(t,e,n){return new Il(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function Al(t,e){return Ah(bn(t),bn(e))&&t.limitType===e.limitType}function pv(t){return`${Ih(bn(t))}|lt:${t.limitType}`}function Ti(t){return`Query(target=${function(n){let r=n.path.canonicalString();return n.collectionGroup!==null&&(r+=" collectionGroup="+n.collectionGroup),n.filters.length>0&&(r+=`, filters: [${n.filters.map(i=>hv(i)).join(", ")}]`),Tl(n.limit)||(r+=", limit: "+n.limit),n.orderBy.length>0&&(r+=`, orderBy: [${n.orderBy.map(i=>function(o){return`${o.field.canonicalString()} (${o.dir})`}(i)).join(", ")}]`),n.startAt&&(r+=", startAt: ",r+=n.startAt.inclusive?"b:":"a:",r+=n.startAt.position.map(i=>Hi(i)).join(",")),n.endAt&&(r+=", endAt: ",r+=n.endAt.inclusive?"a:":"b:",r+=n.endAt.position.map(i=>Hi(i)).join(",")),`Target(${r})`}(bn(t))}; limitType=${t.limitType})`}function Sl(t,e){return e.isFoundDocument()&&function(r,i){const s=i.key.path;return r.collectionGroup!==null?i.key.hasCollectionId(r.collectionGroup)&&r.path.isPrefixOf(s):he.isDocumentKey(r.path)?r.path.isEqual(s):r.path.isImmediateParentOf(s)}(t,e)&&function(r,i){for(const s of Fs(r))if(!s.field.isKeyField()&&i.data.field(s.field)===null)return!1;return!0}(t,e)&&function(r,i){for(const s of r.filters)if(!s.matches(i))return!1;return!0}(t,e)&&function(r,i){return!(r.startAt&&!function(o,l,u){const c=Zp(o,l,u);return o.inclusive?c<=0:c<0}(r.startAt,Fs(r),i)||r.endAt&&!function(o,l,u){const c=Zp(o,l,u);return o.inclusive?c>=0:c>0}(r.endAt,Fs(r),i))}(t,e)}function TC(t){return t.collectionGroup||(t.path.length%2==1?t.path.lastSegment():t.path.get(t.path.length-2))}function mv(t){return(e,n)=>{let r=!1;for(const i of Fs(t)){const s=IC(i,e,n);if(s!==0)return s;r=r||i.field.isKeyField()}return 0}}function IC(t,e,n){const r=t.field.isKeyField()?he.comparator(e.key,n.key):function(s,o,l){const u=o.data.field(s),c=l.data.field(s);return u!==null&&c!==null?ji(u,c):pe()}
1543(t.field,e,n);switch(t.dir){case"asc":return r;case"desc":return-1*r;default:return pe()}}/** 1544 * @license 1545 * Copyright 2017 Google LLC 1546 * 1547 * Licensed under the Apache License, Version 2.0 (the "License"); 1548 * you may not use this file except in compliance with the License. 1549 * You may obtain a copy of the License at 1550 * 1551 * http://www.apache.org/licenses/LICENSE-2.0 1552 * 1553 * Unless required by applicable law or agreed to in writing, software 1554 * distributed under the License is distributed on an "AS IS" BASIS, 1555 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1556 * See the License for the specific language governing permissions and 1557 * limitations under the License. 1558 */class Yi{constructor(e,n){this.mapKeyFn=e,this.equalsFn=n,this.inner={},this.innerSize=0}get(e){const n=this.mapKeyFn(e),r=this.inner[n];if(r!==void 0){for(const[i,s]of r)if(this.equalsFn(i,e))return s}}has(e){return this.get(e)!==void 0}set(e,n){const r=this.mapKeyFn(e),i=this.inner[r];if(i===void 0)return this.inner[r]=[[e,n]],void this.innerSize++;for(let s=0;s<i.length;s++)if(this.equalsFn(i[s][0],e))return void(i[s]=[e,n]);i.push([e,n]),this.innerSize++}delete(e){const n=this.mapKeyFn(e),r=this.inner[n];if(r===void 0)return!1;for(let i=0;i<r.length;i++)if(this.equalsFn(r[i][0],e))return r.length===1?delete this.inner[n]:r.splice(i,1),this.innerSize--,!0;return!1}forEach(e){di(this.inner,(n,r)=>{for(const[i,s]of r)e(i,s)})}isEmpty(){return iv(this.inner)}size(){return this.innerSize}}/** 1559 * @license 1560 * Copyright 2017 Google LLC 1561 * 1562 * Licensed under the Apache License, Version 2.0 (the "License"); 1563 * you may not use this file except in compliance with the License. 1564 * You may obtain a copy of the License at 1565 * 1566 * http://www.apache.org/licenses/LICENSE-2.0 1567 * 1568 * Unless required by applicable law or agreed to in writing, software 1569 * distributed under the License is distributed on an "AS IS" BASIS, 1570 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1571 * See the License for the specific language governing permissions and 1572 * limitations under the License. 1573 */const AC=new Xe(he.comparator);function Bn(){return AC}const gv=new Xe(he.comparator);function Es(...t){let e=gv;for(const n of t)e=e.insert(n.key,n);return e}function yv(t){let e=gv;return t.forEach((n,r)=>e=e.insert(n,r.overlayedDocument)),e}function Wr(){return Us()}function vv(){return Us()}function Us(){return new Yi(t=>t.toString(),(t,e)=>t.isEqual(e))}const SC=new Xe(he.comparator),CC=new bt(he.comparator);function we(...t){let e=CC;for(const n of t)e=e.add(n);return e}const PC=new bt(ke);function RC(){return PC}/** 1574 * @license 1575 * Copyright 2020 Google LLC 1576 * 1577 * Licensed under the Apache License, Version 2.0 (the "License"); 1578 * you may not use this file except in compliance with the License. 1579 * You may obtain a copy of the License at 1580 * 1581 * http://www.apache.org/licenses/LICENSE-2.0 1582 * 1583 * Unless required by applicable law or agreed to in writing, software 1584 * distributed under the License is distributed on an "AS IS" BASIS, 1585 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1586 * See the License for the specific language governing permissions and 1587 * limitations under the License. 1588 */function _v(t,e){if(t.useProto3Json){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:qa(e)?"-0":e}}function bv(t){return{integerValue:""+t}}function OC(t,e){return oC(e)?bv(e):_v(t,e)}/** 1589 * @license 1590 * Copyright 2018 Google LLC 1591 * 1592 * Licensed under the Apache License, Version 2.0 (the "License"); 1593 * you may not use this file except in compliance with the License. 1594 * You may obtain a copy of the License at 1595 * 1596 * http://www.apache.org/licenses/LICENSE-2.0 1597 * 1598 * Unless required by applicable law or agreed to in writing, software 1599 * distributed under the License is distributed on an "AS IS" BASIS, 1600 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1601 * See the License for the specific language governing permissions and 1602 * limitations under the License. 1603 */class Cl{constructor(){this._=void 0}}function kC(t,e,n){return t instanceof Ga?function(i,s){const o={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:i.seconds,nanos:i.nanoseconds}}}};return s&&wh(s)&&(s=Eh(s)),s&&(o.fields.__previous_value__=s),{mapValue:o}}(n,e):t instanceof po?Ev(t,e):t instanceof mo?Tv(t,e):function(i,s){const o=wv(i,s),l=rm(o)+rm(i.Pe);
1603return fc(o)&&fc(i.Pe)?bv(l):_v(i.serializer,l)}(t,e)}function DC(t,e,n){return t instanceof po?Ev(t,e):t instanceof mo?Tv(t,e):n}function wv(t,e){return t instanceof Qa?function(r){return fc(r)||function(s){return!!s&&"doubleValue"in s}(r)}(e)?e:{integerValue:0}:null}class Ga extends Cl{}class po extends Cl{constructor(e){super(),this.elements=e}}function Ev(t,e){const n=Iv(e);for(const r of t.elements)n.some(i=>An(i,r))||n.push(r);return{arrayValue:{values:n}}}class mo extends Cl{constructor(e){super(),this.elements=e}}function Tv(t,e){let n=Iv(e);for(const r of t.elements)n=n.filter(i=>!An(i,r));return{arrayValue:{values:n}}}class Qa extends Cl{constructor(e,n){super(),this.serializer=e,this.Pe=n}}function rm(t){return st(t.integerValue||t.doubleValue)}function Iv(t){return Th(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}function xC(t,e){return t.field.isEqual(e.field)&&function(r,i){return r instanceof po&&i instanceof po||r instanceof mo&&i instanceof mo?Bi(r.elements,i.elements,An):r instanceof Qa&&i instanceof Qa?An(r.Pe,i.Pe):r instanceof Ga&&i instanceof Ga}(t.transform,e.transform)}class LC{constructor(e,n){this.version=e,this.transformResults=n}}class hn{constructor(e,n){this.updateTime=e,this.exists=n}static none(){return new hn}static exists(e){return new hn(void 0,e)}static updateTime(e){return new hn(e)}get isNone(){return this.updateTime===void 0&&this.exists===void 0}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function Sa(t,e){return t.updateTime!==void 0?e.isFoundDocument()&&e.version.isEqual(t.updateTime):t.exists===void 0||t.exists===e.isFoundDocument()}class Pl{}function Av(t,e){if(!t.hasLocalMutations||e&&e.fields.length===0)return null;if(e===null)return t.isNoDocument()?new Sh(t.key,hn.none()):new Co(t.key,t.data,hn.none());{const n=t.data,r=Vt.empty();let i=new bt(_t.comparator);for(let s of e.fields)if(!i.has(s)){let o=n.field(s);o===null&&s.length>1&&(s=s.popLast(),o=n.field(s)),o===null?r.delete(s):r.set(s,o),i=i.add(s)}return new xr(t.key,r,new qt(i.toArray()),hn.none())}}function NC(t,e,n){t instanceof Co?function(i,s,o){const l=i.value.clone(),u=sm(i.fieldTransforms,s,o.transformResults);l.setAll(u),s.convertToFoundDocument(o.version,l).setHasCommittedMutations()}(t,e,n):t instanceof xr?function(i,s,o){if(!Sa(i.precondition,s))return void s.convertToUnknownDocument(o.version);const l=sm(i.fieldTransforms,s,o.transformResults),u=s.data;u.setAll(Sv(i)),u.setAll(l),s.convertToFoundDocument(o.version,u).setHasCommittedMutations()}(t,e,n):function(i,s,o){s.convertToNoDocument(o.version).setHasCommittedMutations()}(0,e,n)}function Bs(t,e,n,r){return t instanceof Co?function(s,o,l,u){if(!Sa(s.precondition,o))return l;const c=s.value.clone(),h=om(s.fieldTransforms,u,o);return c.setAll(h),o.convertToFoundDocument(o.version,c).setHasLocalMutations(),null}(t,e,n,r):t instanceof xr?function(s,o,l,u){if(!Sa(s.precondition,o))return l;const c=om(s.fieldTransforms,u,o),h=o.data;return h.setAll(Sv(s)),h.setAll(c),o.convertToFoundDocument(o.version,h).setHasLocalMutations(),l===null?null:l.unionWith(s.fieldMask.fields).unionWith(s.fieldTransforms.map(p=>p.field))}(t,e,n,r):function(s,o,l){return Sa(s.precondition,o)?(o.convertToNoDocument(o.version).setHasLocalMutations(),null):l}(t,e,n)}function VC(t,e){let n=null;for(const r of t.fieldTransforms){const i=e.data.field(r.field),s=wv(r.transform,i||null);s!=null&&(n===null&&(n=Vt.empty()),n.set(r.field,s))}return n||null}function im(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.precondition.isEqual(e.precondition)&&!!function(r,i){return r===void 0&&i===void 0||!(!r||!i)&&Bi(r,i,(s,o)=>xC(s,o))}(t.fieldTransforms,e.fieldTransforms)&&(t.type===0?t.value.isEqual(e.value):t.type!==1||t.data.isEqual(e.data)&&t.fieldMask.isEqual(e.fieldMask))}class Co extends Pl{constructor(e,n,r,i=[]){super(),this.key=e,this.value=n,this.precondition=r,this.fieldTransforms=i,this.type=0}getFieldMask(){return null}}class xr extends Pl{constructor(e,n,r,i,s=[]){super(),this.key=e,this.data=n,this.fieldMask=r,this.prec
1603ondition=i,this.fieldTransforms=s,this.type=1}getFieldMask(){return this.fieldMask}}function Sv(t){const e=new Map;return t.fieldMask.fields.forEach(n=>{if(!n.isEmpty()){const r=t.data.field(n);e.set(n,r)}}),e}function sm(t,e,n){const r=new Map;Ue(t.length===n.length);for(let i=0;i<n.length;i++){const s=t[i],o=s.transform,l=e.data.field(s.field);r.set(s.field,DC(o,l,n[i]))}return r}function om(t,e,n){const r=new Map;for(const i of t){const s=i.transform,o=n.data.field(i.field);r.set(i.field,kC(s,o,e))}return r}class Sh extends Pl{constructor(e,n){super(),this.key=e,this.precondition=n,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class MC extends Pl{constructor(e,n){super(),this.key=e,this.precondition=n,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}/** 1604 * @license 1605 * Copyright 2017 Google LLC 1606 * 1607 * Licensed under the Apache License, Version 2.0 (the "License"); 1608 * you may not use this file except in compliance with the License. 1609 * You may obtain a copy of the License at 1610 * 1611 * http://www.apache.org/licenses/LICENSE-2.0 1612 * 1613 * Unless required by applicable law or agreed to in writing, software 1614 * distributed under the License is distributed on an "AS IS" BASIS, 1615 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1616 * See the License for the specific language governing permissions and 1617 * limitations under the License. 1618 */class $C{constructor(e,n,r,i){this.batchId=e,this.localWriteTime=n,this.baseMutations=r,this.mutations=i}applyToRemoteDocument(e,n){const r=n.mutationResults;for(let i=0;i<this.mutations.length;i++){const s=this.mutations[i];s.key.isEqual(e.key)&&NC(s,e,r[i])}}applyToLocalView(e,n){for(const r of this.baseMutations)r.key.isEqual(e.key)&&(n=Bs(r,e,n,this.localWriteTime));for(const r of this.mutations)r.key.isEqual(e.key)&&(n=Bs(r,e,n,this.localWriteTime));return n}applyToLocalDocumentSet(e,n){const r=vv();return this.mutations.forEach(i=>{const s=e.get(i.key),o=s.overlayedDocument;let l=this.applyToLocalView(o,s.mutatedFields);l=n.has(i.key)?null:l;const u=Av(o,l);u!==null&&r.set(i.key,u),o.isValidDocument()||o.convertToNoDocument(ye.min())}),r}keys(){return this.mutations.reduce((e,n)=>e.add(n.key),we())}isEqual(e){return this.batchId===e.batchId&&Bi(this.mutations,e.mutations,(n,r)=>im(n,r))&&Bi(this.baseMutations,e.baseMutations,(n,r)=>im(n,r))}}class Ch{constructor(e,n,r,i){this.batch=e,this.commitVersion=n,this.mutationResults=r,this.docVersions=i}static from(e,n,r){Ue(e.mutations.length===r.length);let i=function(){return SC}();const s=e.mutations;for(let o=0;o<s.length;o++)i=i.insert(s[o].key,r[o].version);return new Ch(e,n,r,i)}}/** 1619 * @license 1620 * Copyright 2022 Google LLC 1621 * 1622 * Licensed under the Apache License, Version 2.0 (the "License"); 1623 * you may not use this file except in compliance with the License. 1624 * You may obtain a copy of the License at 1625 * 1626 * http://www.apache.org/licenses/LICENSE-2.0 1627 * 1628 * Unless required by applicable law or agreed to in writing, software 1629 * distributed under the License is distributed on an "AS IS" BASIS, 1630 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1631 * See the License for the specific language governing permissions and 1632 * limitations under the License. 1633 */class FC{constructor(e,n){this.largestBatchId=e,this.mutation=n}getKey(){return this.mutation.key}isEqual(e){return e!==null&&this.mutation===e.mutation}toString(){return`Overlay{ 1634 largestBatchId: ${this.largestBatchId}, 1635 mutation: ${this.mutation.toString()} 1636 }`}}/** 1637 * @license 1638 * Copyright 2017 Google LLC 1639 * 1640 * Licensed under the Apache License, Version 2.0 (the "License"); 1641 * you may not use this file except in compliance with the License. 1642 * You may obtain a copy of the License at 1643 * 1644 * http://www.apache.org/licenses/LICENSE-2.0 1645 * 1646 * Unless required by applicable law or agreed to in writing, software 1647 * distributed under the License is distributed on an "AS IS" BASIS, 1648 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1649 * See the License for the specific language governing permissions and 1650 * limitations under the License. 1651 */class UC{constructor(e,n){this.count=e,this.unchangedNames=n}}/** 1652 * @license 1653 * Copyright 2017 Google LLC 1654 * 1655 * Licensed under the Apache License, Version 2.0 (the "License");
1656 * you may not use this file except in compliance with the License. 1657 * You may obtain a copy of the License at 1658 * 1659 * http://www.apache.org/licenses/LICENSE-2.0 1660 * 1661 * Unless required by applicable law or agreed to in writing, software 1662 * distributed under the License is distributed on an "AS IS" BASIS, 1663 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1664 * See the License for the specific language governing permissions and 1665 * limitations under the License. 1666 */var it,Ae;function BC(t){switch(t){default:return pe();case F.CANCELLED:case F.UNKNOWN:case F.DEADLINE_EXCEEDED:case F.RESOURCE_EXHAUSTED:case F.INTERNAL:case F.UNAVAILABLE:case F.UNAUTHENTICATED:return!1;case F.INVALID_ARGUMENT:case F.NOT_FOUND:case F.ALREADY_EXISTS:case F.PERMISSION_DENIED:case F.FAILED_PRECONDITION:case F.ABORTED:case F.OUT_OF_RANGE:case F.UNIMPLEMENTED:case F.DATA_LOSS:return!0}}function Cv(t){if(t===void 0)return Un("GRPC error has no .code"),F.UNKNOWN;switch(t){case it.OK:return F.OK;case it.CANCELLED:return F.CANCELLED;case it.UNKNOWN:return F.UNKNOWN;case it.DEADLINE_EXCEEDED:return F.DEADLINE_EXCEEDED;case it.RESOURCE_EXHAUSTED:return F.RESOURCE_EXHAUSTED;case it.INTERNAL:return F.INTERNAL;case it.UNAVAILABLE:return F.UNAVAILABLE;case it.UNAUTHENTICATED:return F.UNAUTHENTICATED;case it.INVALID_ARGUMENT:return F.INVALID_ARGUMENT;case it.NOT_FOUND:return F.NOT_FOUND;case it.ALREADY_EXISTS:return F.ALREADY_EXISTS;case it.PERMISSION_DENIED:return F.PERMISSION_DENIED;case it.FAILED_PRECONDITION:return F.FAILED_PRECONDITION;case it.ABORTED:return F.ABORTED;case it.OUT_OF_RANGE:return F.OUT_OF_RANGE;case it.UNIMPLEMENTED:return F.UNIMPLEMENTED;case it.DATA_LOSS:return F.DATA_LOSS;default:return pe()}}(Ae=it||(it={}))[Ae.OK=0]="OK",Ae[Ae.CANCELLED=1]="CANCELLED",Ae[Ae.UNKNOWN=2]="UNKNOWN",Ae[Ae.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Ae[Ae.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Ae[Ae.NOT_FOUND=5]="NOT_FOUND",Ae[Ae.ALREADY_EXISTS=6]="ALREADY_EXISTS",Ae[Ae.PERMISSION_DENIED=7]="PERMISSION_DENIED",Ae[Ae.UNAUTHENTICATED=16]="UNAUTHENTICATED",Ae[Ae.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Ae[Ae.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Ae[Ae.ABORTED=10]="ABORTED",Ae[Ae.OUT_OF_RANGE=11]="OUT_OF_RANGE",Ae[Ae.UNIMPLEMENTED=12]="UNIMPLEMENTED",Ae[Ae.INTERNAL=13]="INTERNAL",Ae[Ae.UNAVAILABLE=14]="UNAVAILABLE",Ae[Ae.DATA_LOSS=15]="DATA_LOSS";/** 1667 * @license 1668 * Copyright 2023 Google LLC 1669 * 1670 * Licensed under the Apache License, Version 2.0 (the "License"); 1671 * you may not use this file except in compliance with the License. 1672 * You may obtain a copy of the License at 1673 * 1674 * http://www.apache.org/licenses/LICENSE-2.0 1675 * 1676 * Unless required by applicable law or agreed to in writing, software 1677 * distributed under the License is distributed on an "AS IS" BASIS, 1678 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1679 * See the License for the specific language governing permissions and 1680 * limitations under the License. 1681 */function jC(){return new TextEncoder}/** 1682 * @license 1683 * Copyright 2022 Google LLC 1684 * 1685 * Licensed under the Apache License, Version 2.0 (the "License"); 1686 * you may not use this file except in compliance with the License. 1687 * You may obtain a copy of the License at 1688 * 1689 * http://www.apache.org/licenses/LICENSE-2.0 1690 * 1691 * Unless required by applicable law or agreed to in writing, software 1692 * distributed under the License is distributed on an "AS IS" BASIS, 1693 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1694 * See the License for the specific language governing permissions and 1695 * limitations under the License. 1696 */const HC=new Yr([4294967295,4294967295],0);function am(t){const e=jC().encode(t),n=new Qy;return n.update(e),new Uint8Array(n.digest())}function lm(t){const e=new DataView(t.buffer),n=e.getUint32(0,!0),r=e.getUint32(4,!0),i=e.getUint32(8,!0),s=e.getUint32(12,!0);return[new Yr([n,r],0),new Yr([i,s],0)]}class Ph{constructor(e,n,r){if(this.bitmap=e,this.padding=n,this.hashCount=r,n<0||n>=8)throw new Ts(`Invalid padding: ${n}`);if(r<0)throw new Ts(`Invalid hash count: ${r}`);if(e.length>0&&this.hashCount===0)throw new Ts(`Invalid hash count: ${r}`);if(e.length===0&&n!==0)throw new Ts(`Invalid padding when bitmap length is 0: ${n}`);this.Ie=8*e.length-n,this.Te=Yr.fromNumber(this.Ie)}Ee(e,n,r){let i=e.add(n.multiply(Yr.fromNumber(r)));return i.compare(HC)===1&&(i=new Yr([i.getBits(0),i.getBits(1)],0)),i.modulo(this.Te).toNumber()}de(e){return(this.bitmap[Math.floor(e/8)]&1<<e%8)!=0}mightContain(e){if(this.Ie===0)return!1;const n=am(e),[r,i]=lm(n);for(let s=0;s<this.hashCount;s++){const o=this.Ee(r,i,s);if(!this.de(o))return!1}return!0}static create(e,n,r){const i=e%8==0?0:8-e%8,s=new Uint8Array(Math.ceil(e/8)),o=new Ph(s,i,n);return r.forEach(l=>o.insert(l)),o}insert(e){if(this.Ie===0)return;const n=am(e),[r,i]=lm(n);for(let s=0;s<this.hashCount;s++){const o=this.Ee(r,i,s);this.Ae(o)}}Ae(e){const n=Math.floor(e/8),r=e%8;this.bitmap[n]|=1<<r}}
1696class Ts extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}/** 1697 * @license 1698 * Copyright 2017 Google LLC 1699 * 1700 * Licensed under the Apache License, Version 2.0 (the "License"); 1701 * you may not use this file except in compliance with the License. 1702 * You may obtain a copy of the License at 1703 * 1704 * http://www.apache.org/licenses/LICENSE-2.0 1705 * 1706 * Unless required by applicable law or agreed to in writing, software 1707 * distributed under the License is distributed on an "AS IS" BASIS, 1708 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1709 * See the License for the specific language governing permissions and 1710 * limitations under the License. 1711 */class Rl{constructor(e,n,r,i,s){this.snapshotVersion=e,this.targetChanges=n,this.targetMismatches=r,this.documentUpdates=i,this.resolvedLimboDocuments=s}static createSynthesizedRemoteEventForCurrentChange(e,n,r){const i=new Map;return i.set(e,Po.createSynthesizedTargetChangeForCurrentChange(e,n,r)),new Rl(ye.min(),i,new Xe(ke),Bn(),we())}}class Po{constructor(e,n,r,i,s){this.resumeToken=e,this.current=n,this.addedDocuments=r,this.modifiedDocuments=i,this.removedDocuments=s}static createSynthesizedTargetChangeForCurrentChange(e,n,r){return new Po(r,n,we(),we(),we())}}/** 1712 * @license 1713 * Copyright 2017 Google LLC 1714 * 1715 * Licensed under the Apache License, Version 2.0 (the "License"); 1716 * you may not use this file except in compliance with the License. 1717 * You may obtain a copy of the License at 1718 * 1719 * http://www.apache.org/licenses/LICENSE-2.0 1720 * 1721 * Unless required by applicable law or agreed to in writing, software 1722 * distributed under the License is distributed on an "AS IS" BASIS, 1723 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1724 * See the License for the specific language governing permissions and 1725 * limitations under the License. 1726 */class Ca{constructor(e,n,r,i){this.Re=e,this.removedTargetIds=n,this.key=r,this.Ve=i}}class Pv{constructor(e,n){this.targetId=e,this.me=n}}class Rv{constructor(e,n,r=Rt.EMPTY_BYTE_STRING,i=null){this.state=e,this.targetIds=n,this.resumeToken=r,this.cause=i}}class um{constructor(){this.fe=0,this.ge=hm(),this.pe=Rt.EMPTY_BYTE_STRING,this.ye=!1,this.we=!0}get current(){return this.ye}get resumeToken(){return this.pe}get Se(){return this.fe!==0}get be(){return this.we}De(e){e.approximateByteSize()>0&&(this.we=!0,this.pe=e)}Ce(){let e=we(),n=we(),r=we();return this.ge.forEach((i,s)=>{switch(s){case 0:e=e.add(i);break;case 2:n=n.add(i);break;case 1:r=r.add(i);break;default:pe()}}),new Po(this.pe,this.ye,e,n,r)}ve(){this.we=!1,this.ge=hm()}Fe(e,n){this.we=!0,this.ge=this.ge.insert(e,n)}Me(e){this.we=!0,this.ge=this.ge.remove(e)}xe(){this.fe+=1}Oe(){this.fe-=1,Ue(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class zC{constructor(e){this.Le=e,this.Be=new Map,this.ke=Bn(),this.qe=cm(),this.Qe=new Xe(ke)}Ke(e){for(const n of e.Re)e.Ve&&e.Ve.isFoundDocument()?this.$e(n,e.Ve):this.Ue(n,e.key,e.Ve);for(const n of e.removedTargetIds)this.Ue(n,e.key,e.Ve)}We(e){this.forEachTarget(e,n=>{const r=this.Ge(n);switch(e.state){case 0:this.ze(n)&&r.De(e.resumeToken);break;case 1:r.Oe(),r.Se||r.ve(),r.De(e.resumeToken);break;case 2:r.Oe(),r.Se||this.removeTarget(n);break;case 3:this.ze(n)&&(r.Ne(),r.De(e.resumeToken));break;case 4:this.ze(n)&&(this.je(n),r.De(e.resumeToken));break;default:pe()}})}forEachTarget(e,n){e.targetIds.length>0?e.targetIds.forEach(n):this.Be.forEach((r,i)=>{this.ze(i)&&n(i)})}He(e){const n=e.targetId,r=e.me.count,i=this.Je(n);if(i){const s=i.target;if(mc(s))if(r===0){const o=new he(s.path);this.Ue(n,o,Ct.newNoDocument(o,ye.min()))}else Ue(r===1);else{const o=this.Ye(n);if(o!==r){const l=this.Ze(e),u=l?this.Xe(l,e,o):1;if(u!==0){this.je(n);const c=u===2?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.Qe=this.Qe.insert(n,c)}}}}}Ze(e){const n=e.me.unchangedNames;if(!n||!n.bits)return null;const{bits:{bitmap:r="",padding:i=0},hashCount:s=0}=n;let o,l;try{o=ri(r).toUint8Array()}catch(u){if(u instanceof sv)return Ui("Decoding the base64 bloom filter in existence filter failed ("+u.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw u}try{l=new Ph(o,i,s)}catch(u){return Ui(u instanceof Ts?"BloomFilter error: ":"Applying bloom filter failed: ",u),null}return l.Ie===0?null:l}Xe(e,n,r){return n.me.count===r-this.nt(e,n.targetId)?0:2}nt(e,n){const r=this.Le.getRemoteKeysForTarget(n);let i=0;return r.forEach(s=>{const o=this.Le.tt(),l=`projects/${o.projectId}/databases/${o.database}/documents/${s.path.canonicalString()}`;e.mightContain(l)||(this.Ue(n,s,null),i++)}),i}rt(e){const n=new Map;this.Be.forEach((s,o)=>{const l=this.Je(o);if(l){if(s.current&&mc(l.target)){const u=new he(l.target.path);this.ke.get(u)!==null||this.it(o,u)||this.Ue(o,u,Ct.newNoDocument(u,e))}s.be&&(n.set(o,s.Ce()),s.ve())}});let r=we();this.qe.forEach((s,o)=>{let l=!0;o.forEachWhile(u=>{const c=this.Je(u);return!c||c.purpose==="TargetPurposeLimboResolution"||(l=!1,!1)}),l&&(r=r.add(s))}),this.ke.forEach((s,o)=>o.setReadTime(e));const i=new Rl(e,n,this.Qe,this.ke,r);return this.ke=Bn(),this.qe=cm(),this.Qe=new Xe(ke),i}$e(e,n){if(!this.ze(e))return;const r=this.it(e,n.key)?2:0;this.Ge(e).Fe(n.key,r),this.ke=this.ke.insert(n.key,n),this.qe=this.qe.insert(n.key,this.st(n.key).add(e))}Ue(e,n,r){if(!this.ze(e))return;const i=this.Ge(e);this.it(e,n)?i.Fe(n,1):i.Me(n),this.qe=this.qe.insert(n,this.st(n).delete(e)),r&&(this.ke=this.ke.insert(n,r))}removeTarget(e){this.Be.delete(e)}Ye(e){const n=this.Ge(e).Ce();return this.Le.getRemoteKeysForTarget(e).size+n.addedDocuments.size-n.removedDocuments.size}xe(e){this.Ge(e).xe()}Ge(e){let n=this.Be.get(e);return n||(n=new um,this.Be.set(e,n)),n}st(e){let n=this.qe.get(e);return n||(n=new bt(ke),this.qe=this.qe.insert(e,n)),n}ze(e){const n=this.Je(e)!==null;return n||ne("WatchChangeAggregator","Detected inactive target",e),n}Je(e){const n=this.Be.get(e);return n&&n.Se?null:this.Le.ot(e)}je(e){this.Be.set(e,new um),this.Le.getRemoteKeysForTarget(e).forEach(n=>{this.Ue(e,n,null)})}it(e,n){return this.Le.getRemoteKeysForTarget(e).has(n)}}function cm(){return new Xe(he.comparator)}function hm(){return new Xe(he.comparator)}const qC={asc:"ASCENDING",desc:"DESCENDING"},WC={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},KC={and:"AND",or:"OR"};class GC{constructor(e,n){this.databaseId=e,this.useProto3Json=n}}function yc(t,e){return t.useProto3Json||Tl(e)?e:{value:e}}function Ya(t,e){return t.useProto3Json?`${new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+e.nanoseconds).slice(-9)}Z`:{seconds:""+e.seconds,nanos:e.nanoseconds}}function Ov(t,e){return t.useProto3Json?e.toBase64():e.toUint8Array()}function QC(t,e){return Ya(t,e.toTimestamp())}function wn(t){return Ue(!!t),ye.fromTimestamp(function(n){const r=Cr(n);return new ut(r.seconds,r.nanos)}(t))}
1726function Rh(t,e){return vc(t,e).canonicalString()}function vc(t,e){const n=function(i){return new We(["projects",i.projectId,"databases",i.database])}(t).child("documents");return e===void 0?n:n.child(e)}function kv(t){const e=We.fromString(t);return Ue(Vv(e)),e}function _c(t,e){return Rh(t.databaseId,e.path)}function Cu(t,e){const n=kv(e);if(n.get(1)!==t.databaseId.projectId)throw new ue(F.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+t.databaseId.projectId);if(n.get(3)!==t.databaseId.database)throw new ue(F.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new he(xv(n))}function Dv(t,e){return Rh(t.databaseId,e)}function YC(t){const e=kv(t);return e.length===4?We.emptyPath():xv(e)}function bc(t){return new We(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function xv(t){return Ue(t.length>4&&t.get(4)==="documents"),t.popFirst(5)}function dm(t,e,n){return{name:_c(t,e),fields:n.value.mapValue.fields}}function XC(t,e){let n;if("targetChange"in e){e.targetChange;const r=function(c){return c==="NO_CHANGE"?0:c==="ADD"?1:c==="REMOVE"?2:c==="CURRENT"?3:c==="RESET"?4:pe()}(e.targetChange.targetChangeType||"NO_CHANGE"),i=e.targetChange.targetIds||[],s=function(c,h){return c.useProto3Json?(Ue(h===void 0||typeof h=="string"),Rt.fromBase64String(h||"")):(Ue(h===void 0||h instanceof Buffer||h instanceof Uint8Array),Rt.fromUint8Array(h||new Uint8Array))}(t,e.targetChange.resumeToken),o=e.targetChange.cause,l=o&&function(c){const h=c.code===void 0?F.UNKNOWN:Cv(c.code);return new ue(h,c.message||"")}(o);n=new Rv(r,i,s,l||null)}else if("documentChange"in e){e.documentChange;const r=e.documentChange;r.document,r.document.name,r.document.updateTime;const i=Cu(t,r.document.name),s=wn(r.document.updateTime),o=r.document.createTime?wn(r.document.createTime):ye.min(),l=new Vt({mapValue:{fields:r.document.fields}}),u=Ct.newFoundDocument(i,s,o,l),c=r.targetIds||[],h=r.removedTargetIds||[];n=new Ca(c,h,u.key,u)}else if("documentDelete"in e){e.documentDelete;const r=e.documentDelete;r.document;const i=Cu(t,r.document),s=r.readTime?wn(r.readTime):ye.min(),o=Ct.newNoDocument(i,s),l=r.removedTargetIds||[];n=new Ca([],l,o.key,o)}else if("documentRemove"in e){e.documentRemove;const r=e.documentRemove;r.document;const i=Cu(t,r.document),s=r.removedTargetIds||[];n=new Ca([],s,i,null)}else{if(!("filter"in e))return pe();{e.filter;const r=e.filter;r.targetId;const{count:i=0,unchangedNames:s}=r,o=new UC(i,s),l=r.targetId;n=new Pv(l,o)}}return n}function JC(t,e){let n;if(e instanceof Co)n={update:dm(t,e.key,e.value)};else if(e instanceof Sh)n={delete:_c(t,e.key)};else if(e instanceof xr)n={update:dm(t,e.key,e.data),updateMask:aP(e.fieldMask)};else{if(!(e instanceof MC))return pe();n={verify:_c(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map(r=>function(s,o){const l=o.transform;if(l instanceof Ga)return{fieldPath:o.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(l instanceof po)return{fieldPath:o.field.canonicalString(),appendMissingElements:{values:l.elements}};if(l instanceof mo)return{fieldPath:o.field.canonicalString(),removeAllFromArray:{values:l.elements}};if(l instanceof Qa)return{fieldPath:o.field.canonicalString(),increment:l.Pe};throw pe()}(0,r))),e.precondition.isNone||(n.currentDocument=function(i,s){return s.updateTime!==void 0?{updateTime:QC(i,s.updateTime)}:s.exists!==void 0?{exists:s.exists}:pe()}(t,e.precondition)),n}function ZC(t,e){return t&&t.length>0?(Ue(e!==void 0),t.map(n=>function(i,s){let o=i.updateTime?wn(i.updateTime):wn(s);return o.isEqual(ye.min())&&(o=wn(s)),new LC(o,i.transformResults||[])}(n,e))):[]}function eP(t,e){return{documents:[Dv(t,e.path)]}}function tP(t,e){const n={structuredQuery:{}},r=e.path;let i;e.collectionGroup!==null?(i=r,n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(i=r.popLast(),n.structuredQuery.from=[{collectionId:r.lastSegment()}]),n.parent=Dv(t,i);const s=function(c){if(c.length!==0)return Nv(Sn.create(c,"and"))}(e.filters);s&&(n.structuredQuery.where=s);const o=function(c){if(c.length!==0)return c.map(h=>function(m){return{field:Ii(m.field),direction:iP(m.dir)}}(h))}(e.orderBy);o&&(n.structuredQuery.orderBy=o);const l=yc(t,e.limit);return l!==null&&(n.structuredQuery.limit=l),e.startAt&&(n.structuredQuery.startAt=function(c){return{before:c.inclusive,values:c.position}}(e.startAt)),e.endAt&&(n.structuredQuery.endAt=function(c){return{before:!c.inclusive,values:c.position}}(e.endAt)),{_t:n,parent:i}}function nP(t){let e=YC(t.parent);
1726const n=t.structuredQuery,r=n.from?n.from.length:0;let i=null;if(r>0){Ue(r===1);const h=n.from[0];h.allDescendants?i=h.collectionId:e=e.child(h.collectionId)}let s=[];n.where&&(s=function(p){const m=Lv(p);return m instanceof Sn&&uv(m)?m.getFilters():[m]}(n.where));let o=[];n.orderBy&&(o=function(p){return p.map(m=>function(C){return new Ka(Ai(C.field),function(P){switch(P){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(C.direction))}(m))}(n.orderBy));let l=null;n.limit&&(l=function(p){let m;return m=typeof p=="object"?p.value:p,Tl(m)?null:m}(n.limit));let u=null;n.startAt&&(u=function(p){const m=!!p.before,y=p.values||[];return new Wa(y,m)}(n.startAt));let c=null;return n.endAt&&(c=function(p){const m=!p.before,y=p.values||[];return new Wa(y,m)}(n.endAt)),bC(e,i,o,s,l,"F",u,c)}function rP(t,e){const n=function(i){switch(i){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return pe()}}(e.purpose);return n==null?null:{"goog-listen-tags":n}}function Lv(t){return t.unaryFilter!==void 0?function(n){switch(n.unaryFilter.op){case"IS_NAN":const r=Ai(n.unaryFilter.field);return at.create(r,"==",{doubleValue:NaN});case"IS_NULL":const i=Ai(n.unaryFilter.field);return at.create(i,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const s=Ai(n.unaryFilter.field);return at.create(s,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const o=Ai(n.unaryFilter.field);return at.create(o,"!=",{nullValue:"NULL_VALUE"});default:return pe()}}(t):t.fieldFilter!==void 0?function(n){return at.create(Ai(n.fieldFilter.field),function(i){switch(i){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return pe()}}(n.fieldFilter.op),n.fieldFilter.value)}(t):t.compositeFilter!==void 0?function(n){return Sn.create(n.compositeFilter.filters.map(r=>Lv(r)),function(i){switch(i){case"AND":return"and";case"OR":return"or";default:return pe()}}(n.compositeFilter.op))}(t):pe()}function iP(t){return qC[t]}function sP(t){return WC[t]}function oP(t){return KC[t]}function Ii(t){return{fieldPath:t.canonicalString()}}function Ai(t){return _t.fromServerFormat(t.fieldPath)}function Nv(t){return t instanceof at?function(n){if(n.op==="=="){if(Jp(n.value))return{unaryFilter:{field:Ii(n.field),op:"IS_NAN"}};if(Xp(n.value))return{unaryFilter:{field:Ii(n.field),op:"IS_NULL"}}}else if(n.op==="!="){if(Jp(n.value))return{unaryFilter:{field:Ii(n.field),op:"IS_NOT_NAN"}};if(Xp(n.value))return{unaryFilter:{field:Ii(n.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Ii(n.field),op:sP(n.op),value:n.value}}}(t):t instanceof Sn?function(n){const r=n.getFilters().map(i=>Nv(i));return r.length===1?r[0]:{compositeFilter:{op:oP(n.op),filters:r}}}(t):pe()}function aP(t){const e=[];return t.fields.forEach(n=>e.push(n.canonicalString())),{fieldPaths:e}}function Vv(t){return t.length>=4&&t.get(0)==="projects"&&t.get(2)==="databases"}/** 1727 * @license 1728 * Copyright 2017 Google LLC 1729 * 1730 * Licensed under the Apache License, Version 2.0 (the "License"); 1731 * you may not use this file except in compliance with the License. 1732 * You may obtain a copy of the License at 1733 * 1734 * http://www.apache.org/licenses/LICENSE-2.0 1735 * 1736 * Unless required by applicable law or agreed to in writing, software 1737 * distributed under the License is distributed on an "AS IS" BASIS, 1738 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1739 * See the License for the specific language governing permissions and 1740 * limitations under the License. 1741 */class pr{constructor(e,n,r,i,s=ye.min(),o=ye.min(),l=Rt.EMPTY_BYTE_STRING,u=null){this.target=e,this.targetId=n,this.purpose=r,this.sequenceNumber=i,this.snapshotVersion=s,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=l,this.expectedCount=u}withSequenceNumber(e){return new pr(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,n){return new pr(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new pr(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new pr(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}/** 1742 * @license 1743 * Copyright 2017 Google LLC 1744 * 1745 * Licensed under the Apache License, Version 2.0 (the "License");
1746 * you may not use this file except in compliance with the License. 1747 * You may obtain a copy of the License at 1748 * 1749 * http://www.apache.org/licenses/LICENSE-2.0 1750 * 1751 * Unless required by applicable law or agreed to in writing, software 1752 * distributed under the License is distributed on an "AS IS" BASIS, 1753 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1754 * See the License for the specific language governing permissions and 1755 * limitations under the License. 1756 */class lP{constructor(e){this.ct=e}}function uP(t){const e=nP({parent:t.parent,structuredQuery:t.structuredQuery});return t.limitType==="LAST"?gc(e,e.limit,"L"):e}/** 1757 * @license 1758 * Copyright 2019 Google LLC 1759 * 1760 * Licensed under the Apache License, Version 2.0 (the "License"); 1761 * you may not use this file except in compliance with the License. 1762 * You may obtain a copy of the License at 1763 * 1764 * http://www.apache.org/licenses/LICENSE-2.0 1765 * 1766 * Unless required by applicable law or agreed to in writing, software 1767 * distributed under the License is distributed on an "AS IS" BASIS, 1768 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1769 * See the License for the specific language governing permissions and 1770 * limitations under the License. 1771 */class cP{constructor(){this._n=new hP}addToCollectionParentIndex(e,n){return this._n.add(n),U.resolve()}getCollectionParents(e,n){return U.resolve(this._n.getEntries(n))}addFieldIndex(e,n){return U.resolve()}deleteFieldIndex(e,n){return U.resolve()}deleteAllFieldIndexes(e){return U.resolve()}createTargetIndexes(e,n){return U.resolve()}getDocumentsMatchingTarget(e,n){return U.resolve(null)}getIndexType(e,n){return U.resolve(0)}getFieldIndexes(e,n){return U.resolve([])}getNextCollectionGroupToUpdate(e){return U.resolve(null)}getMinOffset(e,n){return U.resolve(Sr.min())}getMinOffsetFromCollectionGroup(e,n){return U.resolve(Sr.min())}updateCollectionGroup(e,n,r){return U.resolve()}updateIndexEntries(e,n){return U.resolve()}}class hP{constructor(){this.index={}}add(e){const n=e.lastSegment(),r=e.popLast(),i=this.index[n]||new bt(We.comparator),s=!i.has(r);return this.index[n]=i.add(r),s}has(e){const n=e.lastSegment(),r=e.popLast(),i=this.index[n];return i&&i.has(r)}getEntries(e){return(this.index[e]||new bt(We.comparator)).toArray()}}/** 1772 * @license 1773 * Copyright 2017 Google LLC 1774 * 1775 * Licensed under the Apache License, Version 2.0 (the "License"); 1776 * you may not use this file except in compliance with the License. 1777 * You may obtain a copy of the License at 1778 * 1779 * http://www.apache.org/licenses/LICENSE-2.0 1780 * 1781 * Unless required by applicable law or agreed to in writing, software 1782 * distributed under the License is distributed on an "AS IS" BASIS, 1783 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1784 * See the License for the specific language governing permissions and 1785 * limitations under the License. 1786 */class zi{constructor(e){this.On=e}next(){return this.On+=2,this.On}static Nn(){return new zi(0)}static Ln(){return new zi(-1)}}/** 1787 * @license 1788 * Copyright 2017 Google LLC 1789 * 1790 * Licensed under the Apache License, Version 2.0 (the "License"); 1791 * you may not use this file except in compliance with the License. 1792 * You may obtain a copy of the License at 1793 * 1794 * http://www.apache.org/licenses/LICENSE-2.0 1795 * 1796 * Unless required by applicable law or agreed to in writing, software 1797 * distributed under the License is distributed on an "AS IS" BASIS, 1798 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1799 * See the License for the specific language governing permissions and 1800 * limitations under the License. 1801 */class dP{constructor(){this.changes=new Yi(e=>e.toString(),(e,n)=>e.isEqual(n)),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,n){this.assertNotApplied(),this.changes.set(e,Ct.newInvalidDocument(e).setReadTime(n))}getEntry(e,n){this.assertNotApplied();const r=this.changes.get(n);return r!==void 0?U.resolve(r):this.getFromCache(e,n)}getEntries(e,n){return this.getAllFromCache(e,n)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}
1801assertNotApplied(){}}/** 1802 * @license 1803 * Copyright 2017 Google LLC 1804 * 1805 * Licensed under the Apache License, Version 2.0 (the "License"); 1806 * you may not use this file except in compliance with the License. 1807 * You may obtain a copy of the License at 1808 * 1809 * http://www.apache.org/licenses/LICENSE-2.0 1810 * 1811 * Unless required by applicable law or agreed to in writing, software 1812 * distributed under the License is distributed on an "AS IS" BASIS, 1813 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1814 * See the License for the specific language governing permissions and 1815 * limitations under the License. 1816 *//** 1817 * @license 1818 * Copyright 2022 Google LLC 1819 * 1820 * Licensed under the Apache License, Version 2.0 (the "License"); 1821 * you may not use this file except in compliance with the License. 1822 * You may obtain a copy of the License at 1823 * 1824 * http://www.apache.org/licenses/LICENSE-2.0 1825 * 1826 * Unless required by applicable law or agreed to in writing, software 1827 * distributed under the License is distributed on an "AS IS" BASIS, 1828 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1829 * See the License for the specific language governing permissions and 1830 * limitations under the License. 1831 */class fP{constructor(e,n){this.overlayedDocument=e,this.mutatedFields=n}}/** 1832 * @license 1833 * Copyright 2017 Google LLC 1834 * 1835 * Licensed under the Apache License, Version 2.0 (the "License"); 1836 * you may not use this file except in compliance with the License. 1837 * You may obtain a copy of the License at 1838 * 1839 * http://www.apache.org/licenses/LICENSE-2.0 1840 * 1841 * Unless required by applicable law or agreed to in writing, software 1842 * distributed under the License is distributed on an "AS IS" BASIS, 1843 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1844 * See the License for the specific language governing permissions and 1845 * limitations under the License. 1846 */class pP{constructor(e,n,r,i){this.remoteDocumentCache=e,this.mutationQueue=n,this.documentOverlayCache=r,this.indexManager=i}getDocument(e,n){let r=null;return this.documentOverlayCache.getOverlay(e,n).next(i=>(r=i,this.remoteDocumentCache.getEntry(e,n))).next(i=>(r!==null&&Bs(r.mutation,i,qt.empty(),ut.now()),i))}getDocuments(e,n){return this.remoteDocumentCache.getEntries(e,n).next(r=>this.getLocalViewOfDocuments(e,r,we()).next(()=>r))}getLocalViewOfDocuments(e,n,r=we()){const i=Wr();return this.populateOverlays(e,i,n).next(()=>this.computeViews(e,n,i,r).next(s=>{let o=Es();return s.forEach((l,u)=>{o=o.insert(l,u.overlayedDocument)}),o}))}getOverlayedDocuments(e,n){const r=Wr();return this.populateOverlays(e,r,n).next(()=>this.computeViews(e,n,r,we()))}populateOverlays(e,n,r){const i=[];return r.forEach(s=>{n.has(s)||i.push(s)}),this.documentOverlayCache.getOverlays(e,i).next(s=>{s.forEach((o,l)=>{n.set(o,l)})})}computeViews(e,n,r,i){let s=Bn();const o=Us(),l=function(){return Us()}();return n.forEach((u,c)=>{const h=r.get(c.key);i.has(c.key)&&(h===void 0||h.mutation instanceof xr)?s=s.insert(c.key,c):h!==void 0?(o.set(c.key,h.mutation.getFieldMask()),Bs(h.mutation,c,h.mutation.getFieldMask(),ut.now())):o.set(c.key,qt.empty())}),this.recalculateAndSaveOverlays(e,s).next(u=>(u.forEach((c,h)=>o.set(c,h)),n.forEach((c,h)=>{var p;return l.set(c,new fP(h,(p=o.get(c))!==null&&p!==void 0?p:null))}),l))}recalculateAndSaveOverlays(e,n){const r=Us();let i=new Xe((o,l)=>o-l),s=we();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,n).next(o=>{for(const l of o)l.keys().forEach(u=>{const c=n.get(u);if(c===null)return;let h=r.get(u)||qt.empty();h=l.applyToLocalView(c,h),r.set(u,h);const p=(i.get(l.batchId)||we()).add(u);i=i.insert(l.batchId,p)})}).next(()=>{const o=[],l=i.getReverseIterator();for(;l.hasNext();){const u=l.getNext(),c=u.key,h=u.value,p=vv();h.forEach(m=>{if(!s.has(m)){const y=Av(n.get(m),r.get(m));y!==null&&p.set(m,y),s=s.add(m)}}),o.push(this.documentOverlayCache.saveOverlays(e,c,p))}return U.waitFor(o)}).next(()=>r)}recalculateAndSaveOverlaysForDocumentKeys(e,n){return this.remoteDocumentCache.getEntries(e,n).next(r=>this.recalculateAndSaveOverlays(e,r))}getDocumentsMatchingQuery(e,n,r,i){return function(o){return he.isDocumentKey(o.path)&&o.collectionGroup===null&&o.filters.length===0}(n)?this.getDocumentsMatchingDocumentQuery(e,n.path):wC(n)?this.getDocumentsMatchingCollectionGroupQuery(e,n,r,i):this.getDocumentsMatchingCollectionQuery(e,n,r,i)}getNextDocuments(e,n,r,i){return this.remoteDocumentCache.getAllFromCollectionGroup(e,n,r,i).next(s=>{const o=i-s.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,n,r.largestBatchId,i-s.size):U.resolve(Wr());let l=-1,u=s;return o.next(c=>U.forEach(c,(h,p)=>(l<p.largestBatchId&&(l=p.largestBatchId),s.get(h)?U.resolve():this.remoteDocumentCache.getEntry(e,h).next(m=>{u=u.insert(h,m)}))).next(()=>this.populateOverlays(e,c,s)).next(()=>this.computeViews(e,u,c,we())).next(h=>({batchId:l,changes:yv(h)})))})}getDocumentsMatchingDocumentQuery(e,n){return this.getDocument(e,new he(n)).next(r=>{let i=Es();
1846return r.isFoundDocument()&&(i=i.insert(r.key,r)),i})}getDocumentsMatchingCollectionGroupQuery(e,n,r,i){const s=n.collectionGroup;let o=Es();return this.indexManager.getCollectionParents(e,s).next(l=>U.forEach(l,u=>{const c=function(p,m){return new Il(m,null,p.explicitOrderBy.slice(),p.filters.slice(),p.limit,p.limitType,p.startAt,p.endAt)}(n,u.child(s));return this.getDocumentsMatchingCollectionQuery(e,c,r,i).next(h=>{h.forEach((p,m)=>{o=o.insert(p,m)})})}).next(()=>o))}getDocumentsMatchingCollectionQuery(e,n,r,i){let s;return this.documentOverlayCache.getOverlaysForCollection(e,n.path,r.largestBatchId).next(o=>(s=o,this.remoteDocumentCache.getDocumentsMatchingQuery(e,n,r,s,i))).next(o=>{s.forEach((u,c)=>{const h=c.getKey();o.get(h)===null&&(o=o.insert(h,Ct.newInvalidDocument(h)))});let l=Es();return o.forEach((u,c)=>{const h=s.get(u);h!==void 0&&Bs(h.mutation,c,qt.empty(),ut.now()),Sl(n,c)&&(l=l.insert(u,c))}),l})}}/** 1847 * @license 1848 * Copyright 2020 Google LLC 1849 * 1850 * Licensed under the Apache License, Version 2.0 (the "License"); 1851 * you may not use this file except in compliance with the License. 1852 * You may obtain a copy of the License at 1853 * 1854 * http://www.apache.org/licenses/LICENSE-2.0 1855 * 1856 * Unless required by applicable law or agreed to in writing, software 1857 * distributed under the License is distributed on an "AS IS" BASIS, 1858 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1859 * See the License for the specific language governing permissions and 1860 * limitations under the License. 1861 */class mP{constructor(e){this.serializer=e,this.cr=new Map,this.lr=new Map}getBundleMetadata(e,n){return U.resolve(this.cr.get(n))}saveBundleMetadata(e,n){return this.cr.set(n.id,function(i){return{id:i.id,version:i.version,createTime:wn(i.createTime)}}(n)),U.resolve()}getNamedQuery(e,n){return U.resolve(this.lr.get(n))}saveNamedQuery(e,n){return this.lr.set(n.name,function(i){return{name:i.name,query:uP(i.bundledQuery),readTime:wn(i.readTime)}}(n)),U.resolve()}}/** 1862 * @license 1863 * Copyright 2022 Google LLC 1864 * 1865 * Licensed under the Apache License, Version 2.0 (the "License"); 1866 * you may not use this file except in compliance with the License. 1867 * You may obtain a copy of the License at 1868 * 1869 * http://www.apache.org/licenses/LICENSE-2.0 1870 * 1871 * Unless required by applicable law or agreed to in writing, software 1872 * distributed under the License is distributed on an "AS IS" BASIS, 1873 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1874 * See the License for the specific language governing permissions and 1875 * limitations under the License. 1876 */class gP{constructor(){this.overlays=new Xe(he.comparator),this.hr=new Map}getOverlay(e,n){return U.resolve(this.overlays.get(n))}getOverlays(e,n){const r=Wr();return U.forEach(n,i=>this.getOverlay(e,i).next(s=>{s!==null&&r.set(i,s)})).next(()=>r)}saveOverlays(e,n,r){return r.forEach((i,s)=>{this.ht(e,n,s)}),U.resolve()}removeOverlaysForBatchId(e,n,r){const i=this.hr.get(r);return i!==void 0&&(i.forEach(s=>this.overlays=this.overlays.remove(s)),this.hr.delete(r)),U.resolve()}getOverlaysForCollection(e,n,r){const i=Wr(),s=n.length+1,o=new he(n.child("")),l=this.overlays.getIteratorFrom(o);for(;l.hasNext();){const u=l.getNext().value,c=u.getKey();if(!n.isPrefixOf(c.path))break;c.path.length===s&&u.largestBatchId>r&&i.set(u.getKey(),u)}return U.resolve(i)}getOverlaysForCollectionGroup(e,n,r,i){let s=new Xe((c,h)=>c-h);const o=this.overlays.getIterator();for(;o.hasNext();){const c=o.getNext().value;if(c.getKey().getCollectionGroup()===n&&c.largestBatchId>r){let h=s.get(c.largestBatchId);h===null&&(h=Wr(),s=s.insert(c.largestBatchId,h)),h.set(c.getKey(),c)}}const l=Wr(),u=s.getIterator();for(;u.hasNext()&&(u.getNext().value.forEach((c,h)=>l.set(c,h)),!(l.size()>=i)););return U.resolve(l)}ht(e,n,r){const i=this.overlays.get(r.key);if(i!==null){const o=this.hr.get(i.largestBatchId).delete(r.key);this.hr.set(i.largestBatchId,o)}this.overlays=this.overlays.insert(r.key,new FC(n,r));let s=this.hr.get(n);s===void 0&&(s=we(),this.hr.set(n,s)),this.hr.set(n,s.add(r.key))}}/** 1877 * @license 1878 * Copyright 2017 Google LLC 1879 * 1880 * Licensed under the Apache License, Version 2.0 (the "License");
1881 * you may not use this file except in compliance with the License. 1882 * You may obtain a copy of the License at 1883 * 1884 * http://www.apache.org/licenses/LICENSE-2.0 1885 * 1886 * Unless required by applicable law or agreed to in writing, software 1887 * distributed under the License is distributed on an "AS IS" BASIS, 1888 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1889 * See the License for the specific language governing permissions and 1890 * limitations under the License. 1891 */class Oh{constructor(){this.Pr=new bt(ht.Ir),this.Tr=new bt(ht.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(e,n){const r=new ht(e,n);this.Pr=this.Pr.add(r),this.Tr=this.Tr.add(r)}dr(e,n){e.forEach(r=>this.addReference(r,n))}removeReference(e,n){this.Ar(new ht(e,n))}Rr(e,n){e.forEach(r=>this.removeReference(r,n))}Vr(e){const n=new he(new We([])),r=new ht(n,e),i=new ht(n,e+1),s=[];return this.Tr.forEachInRange([r,i],o=>{this.Ar(o),s.push(o.key)}),s}mr(){this.Pr.forEach(e=>this.Ar(e))}Ar(e){this.Pr=this.Pr.delete(e),this.Tr=this.Tr.delete(e)}gr(e){const n=new he(new We([])),r=new ht(n,e),i=new ht(n,e+1);let s=we();return this.Tr.forEachInRange([r,i],o=>{s=s.add(o.key)}),s}containsKey(e){const n=new ht(e,0),r=this.Pr.firstAfterOrEqual(n);return r!==null&&e.isEqual(r.key)}}class ht{constructor(e,n){this.key=e,this.pr=n}static Ir(e,n){return he.comparator(e.key,n.key)||ke(e.pr,n.pr)}static Er(e,n){return ke(e.pr,n.pr)||he.comparator(e.key,n.key)}}/** 1892 * @license 1893 * Copyright 2017 Google LLC 1894 * 1895 * Licensed under the Apache License, Version 2.0 (the "License"); 1896 * you may not use this file except in compliance with the License. 1897 * You may obtain a copy of the License at 1898 * 1899 * http://www.apache.org/licenses/LICENSE-2.0 1900 * 1901 * Unless required by applicable law or agreed to in writing, software 1902 * distributed under the License is distributed on an "AS IS" BASIS, 1903 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1904 * See the License for the specific language governing permissions and 1905 * limitations under the License. 1906 */class yP{constructor(e,n){this.indexManager=e,this.referenceDelegate=n,this.mutationQueue=[],this.yr=1,this.wr=new bt(ht.Ir)}checkEmpty(e){return U.resolve(this.mutationQueue.length===0)}addMutationBatch(e,n,r,i){const s=this.yr;this.yr++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const o=new $C(s,n,r,i);this.mutationQueue.push(o);for(const l of i)this.wr=this.wr.add(new ht(l.key,s)),this.indexManager.addToCollectionParentIndex(e,l.key.path.popLast());return U.resolve(o)}lookupMutationBatch(e,n){return U.resolve(this.Sr(n))}getNextMutationBatchAfterBatchId(e,n){const r=n+1,i=this.br(r),s=i<0?0:i;return U.resolve(this.mutationQueue.length>s?this.mutationQueue[s]:null)}getHighestUnacknowledgedBatchId(){return U.resolve(this.mutationQueue.length===0?-1:this.yr-1)}getAllMutationBatches(e){return U.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,n){const r=new ht(n,0),i=new ht(n,Number.POSITIVE_INFINITY),s=[];return this.wr.forEachInRange([r,i],o=>{const l=this.Sr(o.pr);s.push(l)}),U.resolve(s)}getAllMutationBatchesAffectingDocumentKeys(e,n){let r=new bt(ke);return n.forEach(i=>{const s=new ht(i,0),o=new ht(i,Number.POSITIVE_INFINITY);this.wr.forEachInRange([s,o],l=>{r=r.add(l.pr)})}),U.resolve(this.Dr(r))}getAllMutationBatchesAffectingQuery(e,n){const r=n.path,i=r.length+1;let s=r;he.isDocumentKey(s)||(s=s.child(""));const o=new ht(new he(s),0);let l=new bt(ke);return this.wr.forEachWhile(u=>{const c=u.key.path;return!!r.isPrefixOf(c)&&(c.length===i&&(l=l.add(u.pr)),!0)},o),U.resolve(this.Dr(l))}Dr(e){const n=[];return e.forEach(r=>{const i=this.Sr(r);i!==null&&n.push(i)}),n}removeMutationBatch(e,n){Ue(this.Cr(n.batchId,"removed")===0),this.mutationQueue.shift();let r=this.wr;return U.forEach(n.mutations,i=>{const s=new ht(i.key,n.batchId);return r=r.delete(s),this.referenceDelegate.markPotentiallyOrphaned(e,i.key)}).next(()=>{this.wr=r})}Mn(e){}containsKey(e,n){const r=new ht(n,0),i=this.wr.firstAfterOrEqual(r);return U.resolve(n.isEqual(i&&i.key))}
1906performConsistencyCheck(e){return this.mutationQueue.length,U.resolve()}Cr(e,n){return this.br(e)}br(e){return this.mutationQueue.length===0?0:e-this.mutationQueue[0].batchId}Sr(e){const n=this.br(e);return n<0||n>=this.mutationQueue.length?null:this.mutationQueue[n]}}/** 1907 * @license 1908 * Copyright 2017 Google LLC 1909 * 1910 * Licensed under the Apache License, Version 2.0 (the "License"); 1911 * you may not use this file except in compliance with the License. 1912 * You may obtain a copy of the License at 1913 * 1914 * http://www.apache.org/licenses/LICENSE-2.0 1915 * 1916 * Unless required by applicable law or agreed to in writing, software 1917 * distributed under the License is distributed on an "AS IS" BASIS, 1918 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1919 * See the License for the specific language governing permissions and 1920 * limitations under the License. 1921 */class vP{constructor(e){this.vr=e,this.docs=function(){return new Xe(he.comparator)}(),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,n){const r=n.key,i=this.docs.get(r),s=i?i.size:0,o=this.vr(n);return this.docs=this.docs.insert(r,{document:n.mutableCopy(),size:o}),this.size+=o-s,this.indexManager.addToCollectionParentIndex(e,r.path.popLast())}removeEntry(e){const n=this.docs.get(e);n&&(this.docs=this.docs.remove(e),this.size-=n.size)}getEntry(e,n){const r=this.docs.get(n);return U.resolve(r?r.document.mutableCopy():Ct.newInvalidDocument(n))}getEntries(e,n){let r=Bn();return n.forEach(i=>{const s=this.docs.get(i);r=r.insert(i,s?s.document.mutableCopy():Ct.newInvalidDocument(i))}),U.resolve(r)}getDocumentsMatchingQuery(e,n,r,i){let s=Bn();const o=n.path,l=new he(o.child("")),u=this.docs.getIteratorFrom(l);for(;u.hasNext();){const{key:c,value:{document:h}}=u.getNext();if(!o.isPrefixOf(c.path))break;c.path.length>o.length+1||nC(tC(h),r)<=0||(i.has(h.key)||Sl(n,h))&&(s=s.insert(h.key,h.mutableCopy()))}return U.resolve(s)}getAllFromCollectionGroup(e,n,r,i){pe()}Fr(e,n){return U.forEach(this.docs,r=>n(r))}newChangeBuffer(e){return new _P(this)}getSize(e){return U.resolve(this.size)}}class _P extends dP{constructor(e){super(),this.ar=e}applyChanges(e){const n=[];
1921return this.changes.forEach((r,i)=>{i.isValidDocument()?n.push(this.ar.addEntry(e,i)):this.ar.removeEntry(r)}),U.waitFor(n)}getFromCache(e,n){return this.ar.getEntry(e,n)}getAllFromCache(e,n){return this.ar.getEntries(e,n)}}/** 1922 * @license 1923 * Copyright 2017 Google LLC 1924 * 1925 * Licensed under the Apache License, Version 2.0 (the "License"); 1926 * you may not use this file except in compliance with the License. 1927 * You may obtain a copy of the License at 1928 * 1929 * http://www.apache.org/licenses/LICENSE-2.0 1930 * 1931 * Unless required by applicable law or agreed to in writing, software 1932 * distributed under the License is distributed on an "AS IS" BASIS, 1933 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1934 * See the License for the specific language governing permissions and 1935 * limitations under the License. 1936 */class bP{constructor(e){this.persistence=e,this.Mr=new Yi(n=>Ih(n),Ah),this.lastRemoteSnapshotVersion=ye.min(),this.highestTargetId=0,this.Or=0,this.Nr=new Oh,this.targetCount=0,this.Lr=zi.Nn()}forEachTarget(e,n){return this.Mr.forEach((r,i)=>n(i)),U.resolve()}getLastRemoteSnapshotVersion(e){return U.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return U.resolve(this.Or)}allocateTargetId(e){return this.highestTargetId=this.Lr.next(),U.resolve(this.highestTargetId)}setTargetsMetadata(e,n,r){return r&&(this.lastRemoteSnapshotVersion=r),n>this.Or&&(this.Or=n),U.resolve()}qn(e){this.Mr.set(e.target,e);const n=e.targetId;n>this.highestTargetId&&(this.Lr=new zi(n),this.highestTargetId=n),e.sequenceNumber>this.Or&&(this.Or=e.sequenceNumber)}addTargetData(e,n){return this.qn(n),this.targetCount+=1,U.resolve()}updateTargetData(e,n){return this.qn(n),U.resolve()}removeTargetData(e,n){return this.Mr.delete(n.target),this.Nr.Vr(n.targetId),this.targetCount-=1,U.resolve()}removeTargets(e,n,r){let i=0;const s=[];return this.Mr.forEach((o,l)=>{l.sequenceNumber<=n&&r.get(l.targetId)===null&&(this.Mr.delete(o),s.push(this.removeMatchingKeysForTargetId(e,l.targetId)),i++)}),U.waitFor(s).next(()=>i)}getTargetCount(e){return U.resolve(this.targetCount)}getTargetData(e,n){const r=this.Mr.get(n)||null;return U.resolve(r)}addMatchingKeys(e,n,r){return this.Nr.dr(n,r),U.resolve()}removeMatchingKeys(e,n,r){this.Nr.Rr(n,r);const i=this.persistence.referenceDelegate,s=[];return i&&n.forEach(o=>{s.push(i.markPotentiallyOrphaned(e,o))}),U.waitFor(s)}removeMatchingKeysForTargetId(e,n){return this.Nr.Vr(n),U.resolve()}getMatchingKeysForTargetId(e,n){const r=this.Nr.gr(n);return U.resolve(r)}containsKey(e,n){return U.resolve(this.Nr.containsKey(n))}}/** 1937 * @license 1938 * Copyright 2017 Google LLC 1939 * 1940 * Licensed under the Apache License, Version 2.0 (the "License"); 1941 * you may not use this file except in compliance with the License. 1942 * You may obtain a copy of the License at 1943 * 1944 * http://www.apache.org/licenses/LICENSE-2.0 1945 * 1946 * Unless required by applicable law or agreed to in writing, software 1947 * distributed under the License is distributed on an "AS IS" BASIS, 1948 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1949 * See the License for the specific language governing permissions and 1950 * limitations under the License. 1951 */class wP{constructor(e,n){this.Br={},this.overlays={},this.kr=new bh(0),this.qr=!1,this.qr=!0,this.referenceDelegate=e(this),this.Qr=new bP(this),this.indexManager=new cP,this.remoteDocumentCache=function(i){return new vP(i)}(r=>this.referenceDelegate.Kr(r)),this.serializer=new lP(n),this.$r=new mP(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.qr=!1,Promise.resolve()}get started(){return this.qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let n=this.overlays[e.toKey()];return n||(n=new gP,this.overlays[e.toKey()]=n),n}getMutationQueue(e,n){let r=this.Br[e.toKey()];return r||(r=new yP(n,this.referenceDelegate),this.Br[e.toKey()]=r),r}getTargetCache(){return this.Qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.$r}runTransaction(e,n,r){ne("MemoryPersistence","Starting transaction:",e);const i=new EP(this.kr.next());return this.referenceDelegate.Ur(),r(i).next(s=>this.referenceDelegate.Wr(i).next(()=>s)).toPromise().then(s=>(i.raiseOnCommittedEvent(),s))}Gr(e,n){return U.or(Object.values(this.Br).map(r=>()=>r.containsKey(e,n)))}}class EP extends iC{constructor(e){super(),this.currentSequenceNumber=e}}class kh{constructor(e){this.persistence=e,this.zr=new Oh,this.jr=null}static Hr(e){return new kh(e)}get Jr(){if(this.jr)return this.jr;throw pe()}addReference(e,n,r){return this.zr.addReference(r,n),this.Jr.delete(r.toString()),U.resolve()}removeReference(e,n,r){return this.zr.removeReference(r,n),this.Jr.add(r.toString()),U.resolve()}markPotentiallyOrphaned(e,n){return this.Jr.add(n.toString()),U.resolve()}
1951removeTarget(e,n){this.zr.Vr(n.targetId).forEach(i=>this.Jr.add(i.toString()));const r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(e,n.targetId).next(i=>{i.forEach(s=>this.Jr.add(s.toString()))}).next(()=>r.removeTargetData(e,n))}Ur(){this.jr=new Set}Wr(e){const n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return U.forEach(this.Jr,r=>{const i=he.fromPath(r);return this.Yr(e,i).next(s=>{s||n.removeEntry(i,ye.min())})}).next(()=>(this.jr=null,n.apply(e)))}updateLimboDocument(e,n){return this.Yr(e,n).next(r=>{r?this.Jr.delete(n.toString()):this.Jr.add(n.toString())})}Kr(e){return 0}Yr(e,n){return U.or([()=>U.resolve(this.zr.containsKey(n)),()=>this.persistence.getTargetCache().containsKey(e,n),()=>this.persistence.Gr(e,n)])}}/** 1952 * @license 1953 * Copyright 2017 Google LLC 1954 * 1955 * Licensed under the Apache License, Version 2.0 (the "License"); 1956 * you may not use this file except in compliance with the License. 1957 * You may obtain a copy of the License at 1958 * 1959 * http://www.apache.org/licenses/LICENSE-2.0 1960 * 1961 * Unless required by applicable law or agreed to in writing, software 1962 * distributed under the License is distributed on an "AS IS" BASIS, 1963 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1964 * See the License for the specific language governing permissions and 1965 * limitations under the License. 1966 */class Dh{constructor(e,n,r,i){this.targetId=e,this.fromCache=n,this.qi=r,this.Qi=i}static Ki(e,n){let r=we(),i=we();for(const s of n.docChanges)switch(s.type){case 0:r=r.add(s.doc.key);break;case 1:i=i.add(s.doc.key)}return new Dh(e,n.fromCache,r,i)}}/** 1967 * @license 1968 * Copyright 2023 Google LLC 1969 * 1970 * Licensed under the Apache License, Version 2.0 (the "License"); 1971 * you may not use this file except in compliance with the License. 1972 * You may obtain a copy of the License at 1973 * 1974 * http://www.apache.org/licenses/LICENSE-2.0 1975 * 1976 * Unless required by applicable law or agreed to in writing, software 1977 * distributed under the License is distributed on an "AS IS" BASIS, 1978 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1979 * See the License for the specific language governing permissions and 1980 * limitations under the License. 1981 */class TP{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}/** 1982 * @license 1983 * Copyright 2019 Google LLC 1984 * 1985 * Licensed under the Apache License, Version 2.0 (the "License"); 1986 * you may not use this file except in compliance with the License. 1987 * You may obtain a copy of the License at 1988 * 1989 * http://www.apache.org/licenses/LICENSE-2.0 1990 * 1991 * Unless required by applicable law or agreed to in writing, software 1992 * distributed under the License is distributed on an "AS IS" BASIS, 1993 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1994 * See the License for the specific language governing permissions and 1995 * limitations under the License. 1996 */class IP{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=function(){return Pw()?8:sC(wt())>0?6:4}()}initialize(e,n){this.zi=e,this.indexManager=n,this.$i=!0}getDocumentsMatchingQuery(e,n,r,i){const s={result:null};return this.ji(e,n).next(o=>{s.result=o}).next(()=>{if(!s.result)return this.Hi(e,n,i,r).next(o=>{s.result=o})}).next(()=>{if(s.result)return;const o=new TP;return this.Ji(e,n,o).next(l=>{if(s.result=l,this.Ui)return this.Yi(e,n,o,l.size)})}).next(()=>s.result)}Yi(e,n,r,i){return r.documentReadCount<this.Wi?(ys()<=Ee.DEBUG&&ne("QueryEngine","SDK will not create cache indexes for query:",Ti(n),"since it only creates cache indexes for collection contains","more than or equal to",this.Wi,"documents"),U.resolve()):(ys()<=Ee.DEBUG&&ne("QueryEngine","Query:",Ti(n),"scans",r.documentReadCount,"local documents and returns",i,"documents as results."),r.documentReadCount>this.Gi*i?(ys()<=Ee.DEBUG&&ne("QueryEngine","The SDK decides to create cache indexes for query:",Ti(n),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,bn(n))):U.resolve())}ji(e,n){if(nm(n))return U.resolve(null);let r=bn(n);return this.indexManager.getIndexType(e,r).next(i=>i===0?null:(n.limit!==null&&i===1&&(n=gc(n,null,"F"),r=bn(n)),this.indexManager.getDocumentsMatchingTarget(e,r).next(s=>{const o=we(...s);return this.zi.getDocuments(e,o).next(l=>this.indexManager.getMinOffset(e,r).next(u=>{const c=this.Zi(n,l);return this.Xi(n,c,o,u.readTime)?this.ji(e,gc(n,null,"F")):this.es(e,c,n,u)}))})))}Hi(e,n,r,i){return nm(n)||i.isEqual(ye.min())?U.resolve(null):this.zi.getDocuments(e,r).next(s=>{const o=this.Zi(n,s);return this.Xi(n,o,r,i)?U.resolve(null):(ys()<=Ee.DEBUG&&ne("QueryEngine","Re-using previous result from %s to execute query: %s",i.toString(),Ti(n)),this.es(e,o,n,eC(i,-1)).next(l=>l))})}Zi(e,n){let r=new bt(mv(e));
1996return n.forEach((i,s)=>{Sl(e,s)&&(r=r.add(s))}),r}Xi(e,n,r,i){if(e.limit===null)return!1;if(r.size!==n.size)return!0;const s=e.limitType==="F"?n.last():n.first();return!!s&&(s.hasPendingWrites||s.version.compareTo(i)>0)}Ji(e,n,r){return ys()<=Ee.DEBUG&&ne("QueryEngine","Using full collection scan to execute query:",Ti(n)),this.zi.getDocumentsMatchingQuery(e,n,Sr.min(),r)}es(e,n,r,i){return this.zi.getDocumentsMatchingQuery(e,r,i).next(s=>(n.forEach(o=>{s=s.insert(o.key,o)}),s))}}/** 1997 * @license 1998 * Copyright 2020 Google LLC 1999 * 2000 * Licensed under the Apache License, Version 2.0 (the "License"); 2001 * you may not use this file except in compliance with the License. 2002 * You may obtain a copy of the License at 2003 * 2004 * http://www.apache.org/licenses/LICENSE-2.0 2005 * 2006 * Unless required by applicable law or agreed to in writing, software 2007 * distributed under the License is distributed on an "AS IS" BASIS, 2008 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2009 * See the License for the specific language governing permissions and 2010 * limitations under the License. 2011 */class AP{constructor(e,n,r,i){this.persistence=e,this.ts=n,this.serializer=i,this.ns=new Xe(ke),this.rs=new Yi(s=>Ih(s),Ah),this.ss=new Map,this.os=e.getRemoteDocumentCache(),this.Qr=e.getTargetCache(),this.$r=e.getBundleCache(),this._s(r)}_s(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new pP(this.os,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.os.setIndexManager(this.indexManager),this.ts.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",n=>e.collect(n,this.ns))}}function SP(t,e,n,r){return new AP(t,e,n,r)}async function Mv(t,e){const n=_e(t);return await n.persistence.runTransaction("Handle user change","readonly",r=>{let i;
2011return n.mutationQueue.getAllMutationBatches(r).next(s=>(i=s,n._s(e),n.mutationQueue.getAllMutationBatches(r))).next(s=>{const o=[],l=[];let u=we();for(const c of i){o.push(c.batchId);for(const h of c.mutations)u=u.add(h.key)}for(const c of s){l.push(c.batchId);for(const h of c.mutations)u=u.add(h.key)}return n.localDocuments.getDocuments(r,u).next(c=>({us:c,removedBatchIds:o,addedBatchIds:l}))})})}function CP(t,e){const n=_e(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",r=>{const i=e.batch.keys(),s=n.os.newChangeBuffer({trackRemovals:!0});return function(l,u,c,h){const p=c.batch,m=p.keys();let y=U.resolve();return m.forEach(C=>{y=y.next(()=>h.getEntry(u,C)).next(R=>{const P=c.docVersions.get(C);Ue(P!==null),R.version.compareTo(P)<0&&(p.applyToRemoteDocument(R,c),R.isValidDocument()&&(R.setReadTime(c.commitVersion),h.addEntry(R)))})}),y.next(()=>l.mutationQueue.removeMutationBatch(u,p))}(n,r,e,s).next(()=>s.apply(r)).next(()=>n.mutationQueue.performConsistencyCheck(r)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(r,i,e.batch.batchId)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(r,function(l){let u=we();for(let c=0;c<l.mutationResults.length;++c)l.mutationResults[c].transformResults.length>0&&(u=u.add(l.batch.mutations[c].key));return u}(e))).next(()=>n.localDocuments.getDocuments(r,i))})}function $v(t){const e=_e(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",n=>e.Qr.getLastRemoteSnapshotVersion(n))}function PP(t,e){const n=_e(t),r=e.snapshotVersion;let i=n.ns;return n.persistence.runTransaction("Apply remote event","readwrite-primary",s=>{const o=n.os.newChangeBuffer({trackRemovals:!0});i=n.ns;const l=[];
2011e.targetChanges.forEach((h,p)=>{const m=i.get(p);if(!m)return;l.push(n.Qr.removeMatchingKeys(s,h.removedDocuments,p).next(()=>n.Qr.addMatchingKeys(s,h.addedDocuments,p)));let y=m.withSequenceNumber(s.currentSequenceNumber);e.targetMismatches.get(p)!==null?y=y.withResumeToken(Rt.EMPTY_BYTE_STRING,ye.min()).withLastLimboFreeSnapshotVersion(ye.min()):h.resumeToken.approximateByteSize()>0&&(y=y.withResumeToken(h.resumeToken,r)),i=i.insert(p,y),function(R,P,k){return R.resumeToken.approximateByteSize()===0||P.snapshotVersion.toMicroseconds()-R.snapshotVersion.toMicroseconds()>=3e8?!0:k.addedDocuments.size+k.modifiedDocuments.size+k.removedDocuments.size>0}(m,y,h)&&l.push(n.Qr.updateTargetData(s,y))});let u=Bn(),c=we();if(e.documentUpdates.forEach(h=>{e.resolvedLimboDocuments.has(h)&&l.push(n.persistence.referenceDelegate.updateLimboDocument(s,h))}),l.push(RP(s,o,e.documentUpdates).next(h=>{u=h.cs,c=h.ls})),!r.isEqual(ye.min())){const h=n.Qr.getLastRemoteSnapshotVersion(s).next(p=>n.Qr.setTargetsMetadata(s,s.currentSequenceNumber,r));l.push(h)}return U.waitFor(l).next(()=>o.apply(s)).next(()=>n.localDocuments.getLocalViewOfDocuments(s,u,c)).next(()=>u)}).then(s=>(n.ns=i,s))}function RP(t,e,n){let r=we(),i=we();return n.forEach(s=>r=r.add(s)),e.getEntries(t,r).next(s=>{let o=Bn();return n.forEach((l,u)=>{const c=s.get(l);u.isFoundDocument()!==c.isFoundDocument()&&(i=i.add(l)),u.isNoDocument()&&u.version.isEqual(ye.min())?(e.removeEntry(l,u.readTime),o=o.insert(l,u)):!c.isValidDocument()||u.version.compareTo(c.version)>0||u.version.compareTo(c.version)===0&&c.hasPendingWrites?(e.addEntry(u),o=o.insert(l,u)):ne("LocalStore","Ignoring outdated watch update for ",l,". Current version:",c.version," Watch version:",u.version)}),{cs:o,ls:i}})}function OP(t,e){const n=_e(t);return n.persistence.runTransaction("Get next mutation batch","readonly",r=>(e===void 0&&(e=-1),n.mutationQueue.getNextMutationBatchAfterBatchId(r,e)))}function kP(t,e){const n=_e(t);return n.persistence.runTransaction("Allocate target","readwrite",r=>{let i;return n.Qr.getTargetData(r,e).next(s=>s?(i=s,U.resolve(i)):n.Qr.allocateTargetId(r).next(o=>(i=new pr(e,o,"TargetPurposeListen",r.currentSequenceNumber),n.Qr.addTargetData(r,i).next(()=>i))))}).then(r=>{const i=n.ns.get(r.targetId);return(i===null||r.snapshotVersion.compareTo(i.snapshotVersion)>0)&&(n.ns=n.ns.insert(r.targetId,r),n.rs.set(e,r.targetId)),r})}async function wc(t,e,n){const r=_e(t),i=r.ns.get(e),s=n?"readwrite":"readwrite-primary";try{n||await r.persistence.runTransaction("Release target",s,o=>r.persistence.referenceDelegate.removeTarget(o,i))}catch(o){if(!So(o))throw o;ne("LocalStore",`Failed to update sequence numbers for target ${e}: ${o}`)}r.ns=r.ns.remove(e),r.rs.delete(i.target)}function fm(t,e,n){const r=_e(t);let i=ye.min(),s=we();return r.persistence.runTransaction("Execute query","readwrite",o=>function(u,c,h){const p=_e(u),m=p.rs.get(h);return m!==void 0?U.resolve(p.ns.get(m)):p.Qr.getTargetData(c,h)}(r,o,bn(e)).next(l=>{if(l)return i=l.lastLimboFreeSnapshotVersion,r.Qr.getMatchingKeysForTargetId(o,l.targetId).next(u=>{s=u})}).next(()=>r.ts.getDocumentsMatchingQuery(o,e,n?i:ye.min(),n?s:we())).next(l=>(DP(r,TC(e),l),{documents:l,hs:s})))}function DP(t,e,n){let r=t.ss.get(e)||ye.min();n.forEach((i,s)=>{s.readTime.compareTo(r)>0&&(r=s.readTime)}),t.ss.set(e,r)}class pm{constructor(){this.activeTargetIds=RC()}As(e){this.activeTargetIds=this.activeTargetIds.add(e)}Rs(e){this.activeTargetIds=this.activeTargetIds.delete(e)}ds(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class xP{constructor(){this.no=new pm,this.ro={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,n,r){}addLocalQueryTarget(e){return this.no.As(e),this.ro[e]||"not-current"}updateQueryState(e,n,r){this.ro[e]=n}removeLocalQueryTarget(e){this.no.Rs(e)}isLocalQueryTarget(e){return this.no.activeTargetIds.has(e)}clearQueryState(e){delete this.ro[e]}getAllActiveQueryTargets(){return this.no.activeTargetIds}isActiveQueryTarget(e){return this.no.activeTargetIds.has(e)}start(){return this.no=new pm,Promise.resolve()}handleUserChange(e,n,r){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}/** 2012 * @license 2013 * Copyright 2019 Google LLC 2014 * 2015 * Licensed under the Apache License, Version 2.0 (the "License");
2016 * you may not use this file except in compliance with the License. 2017 * You may obtain a copy of the License at 2018 * 2019 * http://www.apache.org/licenses/LICENSE-2.0 2020 * 2021 * Unless required by applicable law or agreed to in writing, software 2022 * distributed under the License is distributed on an "AS IS" BASIS, 2023 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2024 * See the License for the specific language governing permissions and 2025 * limitations under the License. 2026 */class LP{io(e){}shutdown(){}}/** 2027 * @license 2028 * Copyright 2019 Google LLC 2029 * 2030 * Licensed under the Apache License, Version 2.0 (the "License"); 2031 * you may not use this file except in compliance with the License. 2032 * You may obtain a copy of the License at 2033 * 2034 * http://www.apache.org/licenses/LICENSE-2.0 2035 * 2036 * Unless required by applicable law or agreed to in writing, software 2037 * distributed under the License is distributed on an "AS IS" BASIS, 2038 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2039 * See the License for the specific language governing permissions and 2040 * limitations under the License. 2041 */class mm{constructor(){this.so=()=>this.oo(),this._o=()=>this.ao(),this.uo=[],this.co()}io(e){this.uo.push(e)}shutdown(){window.removeEventListener("online",this.so),window.removeEventListener("offline",this._o)}co(){window.addEventListener("online",this.so),window.addEventListener("offline",this._o)}oo(){ne("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const e of this.uo)e(0)}ao(){ne("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const e of this.uo)e(1)}static D(){return typeof window<"u"&&window.addEventListener!==void 0&&window.removeEventListener!==void 0}}/** 2042 * @license 2043 * Copyright 2023 Google LLC 2044 * 2045 * Licensed under the Apache License, Version 2.0 (the "License"); 2046 * you may not use this file except in compliance with the License. 2047 * You may obtain a copy of the License at 2048 * 2049 * http://www.apache.org/licenses/LICENSE-2.0 2050 * 2051 * Unless required by applicable law or agreed to in writing, software 2052 * distributed under the License is distributed on an "AS IS" BASIS, 2053 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2054 * See the License for the specific language governing permissions and 2055 * limitations under the License. 2056 */let aa=null;function Pu(){return aa===null?aa=function(){return 268435456+Math.round(2147483648*Math.random())}():aa++,"0x"+aa.toString(16)}/** 2057 * @license 2058 * Copyright 2020 Google LLC 2059 * 2060 * Licensed under the Apache License, Version 2.0 (the "License"); 2061 * you may not use this file except in compliance with the License. 2062 * You may obtain a copy of the License at 2063 * 2064 * http://www.apache.org/licenses/LICENSE-2.0 2065 * 2066 * Unless required by applicable law or agreed to in writing, software 2067 * distributed under the License is distributed on an "AS IS" BASIS, 2068 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2069 * See the License for the specific language governing permissions and 2070 * limitations under the License. 2071 */const NP={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};/** 2072 * @license 2073 * Copyright 2017 Google LLC 2074 * 2075 * Licensed under the Apache License, Version 2.0 (the "License"); 2076 * you may not use this file except in compliance with the License. 2077 * You may obtain a copy of the License at 2078 * 2079 * http://www.apache.org/licenses/LICENSE-2.0 2080 * 2081 * Unless required by applicable law or agreed to in writing, software 2082 * distributed under the License is distributed on an "AS IS" BASIS, 2083 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2084 * See the License for the specific language governing permissions and 2085 * limitations under the License. 2086 */class VP{constructor(e){this.lo=e.lo,this.ho=e.ho}Po(e){this.Io=e}To(e){this.Eo=e}Ao(e){this.Ro=e}onMessage(e){this.Vo=e}close(){this.ho()}send(e){this.lo(e)}mo(){this.Io()}fo(){this.Eo()}po(e){this.Ro(e)}yo(e){this.Vo(e)}}/** 2087 * @license 2088 * Copyright 2017 Google LLC 2089 * 2090 * Licensed under the Apache License, Version 2.0 (the "License");
2091 * you may not use this file except in compliance with the License. 2092 * You may obtain a copy of the License at 2093 * 2094 * http://www.apache.org/licenses/LICENSE-2.0 2095 * 2096 * Unless required by applicable law or agreed to in writing, software 2097 * distributed under the License is distributed on an "AS IS" BASIS, 2098 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2099 * See the License for the specific language governing permissions and 2100 * limitations under the License. 2101 */const At="WebChannelConnection";class MP extends class{constructor(n){this.databaseInfo=n,this.databaseId=n.databaseId;const r=n.ssl?"https":"http",i=encodeURIComponent(this.databaseId.projectId),s=encodeURIComponent(this.databaseId.database);this.wo=r+"://"+n.host,this.So=`projects/${i}/databases/${s}`,this.bo=this.databaseId.database==="(default)"?`project_id=${i}`:`project_id=${i}&database_id=${s}`}get Do(){return!1}Co(n,r,i,s,o){const l=Pu(),u=this.vo(n,r.toUriEncodedString());ne("RestConnection",`Sending RPC '${n}' ${l}:`,u,i);const c={"google-cloud-resource-prefix":this.So,"x-goog-request-params":this.bo};return this.Fo(c,s,o),this.Mo(n,u,c,i).then(h=>(ne("RestConnection",`Received RPC '${n}' ${l}: `,h),h),h=>{throw Ui("RestConnection",`RPC '${n}' ${l} failed with error: `,h,"url: ",u,"request:",i),h})}xo(n,r,i,s,o,l){return this.Co(n,r,i,s,o)}Fo(n,r,i){n["X-Goog-Api-Client"]=function(){return"gl-js/ fire/"+Qi}(),n["Content-Type"]="text/plain",this.databaseInfo.appId&&(n["X-Firebase-GMPID"]=this.databaseInfo.appId),r&&r.headers.forEach((s,o)=>n[o]=s),i&&i.headers.forEach((s,o)=>n[o]=s)}vo(n,r){const i=NP[n];return`${this.wo}/v1/${r}:${i}`}terminate(){}}{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}Mo(e,n,r,i){const s=Pu();return new Promise((o,l)=>{const u=new Yy;u.setWithCredentials(!0),u.listenOnce(Jy.COMPLETE,()=>{try{switch(u.getLastErrorCode()){case Ia.NO_ERROR:const h=u.getResponseJson();ne(At,`XHR for RPC '${e}' ${s} received:`,JSON.stringify(h)),o(h);break;case Ia.TIMEOUT:ne(At,`RPC '${e}' ${s} timed out`),l(new ue(F.DEADLINE_EXCEEDED,"Request time out"));break;case Ia.HTTP_ERROR:const p=u.getStatus();if(ne(At,`RPC '${e}' ${s} failed with status:`,p,"response text:",u.getResponseText()),p>0){let m=u.getResponseJson();Array.isArray(m)&&(m=m[0]);const y=m==null?void 0:m.error;if(y&&y.status&&y.message){const C=function(P){const k=P.toLowerCase().replace(/_/g,"-");return Object.values(F).indexOf(k)>=0?k:F.UNKNOWN}(y.status);l(new ue(C,y.message))}else l(new ue(F.UNKNOWN,"Server responded with status "+u.getStatus()))}else l(new ue(F.UNAVAILABLE,"Connection failed."));break;default:pe()}}finally{ne(At,`RPC '${e}' ${s} completed.`)}});const c=JSON.stringify(i);ne(At,`RPC '${e}' ${s} sending request:`,i),u.send(n,"POST",c,r,15)})}Oo(e,n,r){const i=Pu(),s=[this.wo,"/","google.firestore.v1.Firestore","/",e,"/channel"],o=tv(),l=ev(),u={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},c=this.longPollingOptions.timeoutSeconds;c!==void 0&&(u.longPollingTimeout=Math.round(1e3*c)),this.useFetchStreams&&(u.xmlHttpFactory=new Xy({})),this.Fo(u.initMessageHeaders,n,r),u.encodeInitMessageHeaders=!0;const h=s.join("");ne(At,`Creating RPC '${e}' stream ${i}: ${h}`,u);const p=o.createWebChannel(h,u);let m=!1,y=!1;const C=new VP({lo:P=>{y?ne(At,`Not sending because RPC '${e}' stream ${i} is closed:`,P):(m||(ne(At,`Opening RPC '${e}' stream ${i} transport.`),p.open(),m=!0),ne(At,`RPC '${e}' stream ${i} sending:`,P),p.send(P))},ho:()=>p.close()}),R=(P,k,x)=>{P.listen(k,N=>{try{x(N)}catch(j){setTimeout(()=>{throw j},0)}})};return R(p,ws.EventType.OPEN,()=>{y||(ne(At,`RPC '${e}' stream ${i} transport opened.`),C.mo())}),R(p,ws.EventType.CLOSE,()=>{y||(y=!0,ne(At,`RPC '${e}' stream ${i} transport closed`),C.po())}
2101),R(p,ws.EventType.ERROR,P=>{y||(y=!0,Ui(At,`RPC '${e}' stream ${i} transport errored:`,P),C.po(new ue(F.UNAVAILABLE,"The operation could not be completed")))}),R(p,ws.EventType.MESSAGE,P=>{var k;if(!y){const x=P.data[0];Ue(!!x);const N=x,j=N.error||((k=N[0])===null||k===void 0?void 0:k.error);if(j){ne(At,`RPC '${e}' stream ${i} received error:`,j);const Z=j.status;let z=function(b){const T=it[b];if(T!==void 0)return Cv(T)}(Z),A=j.message;z===void 0&&(z=F.INTERNAL,A="Unknown error status: "+Z+" with message "+j.message),y=!0,C.po(new ue(z,A)),p.close()}else ne(At,`RPC '${e}' stream ${i} received:`,x),C.yo(x)}}),R(l,Zy.STAT_EVENT,P=>{P.stat===hc.PROXY?ne(At,`RPC '${e}' stream ${i} detected buffering proxy`):P.stat===hc.NOPROXY&&ne(At,`RPC '${e}' stream ${i} detected no buffering proxy`)}),setTimeout(()=>{C.fo()},0),C}}function Ru(){return typeof document<"u"?document:null}/** 2102 * @license 2103 * Copyright 2020 Google LLC 2104 * 2105 * Licensed under the Apache License, Version 2.0 (the "License"); 2106 * you may not use this file except in compliance with the License. 2107 * You may obtain a copy of the License at 2108 * 2109 * http://www.apache.org/licenses/LICENSE-2.0 2110 * 2111 * Unless required by applicable law or agreed to in writing, software 2112 * distributed under the License is distributed on an "AS IS" BASIS, 2113 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2114 * See the License for the specific language governing permissions and 2115 * limitations under the License. 2116 */function Ol(t){return new GC(t,!0)}/** 2117 * @license 2118 * Copyright 2017 Google LLC 2119 * 2120 * Licensed under the Apache License, Version 2.0 (the "License"); 2121 * you may not use this file except in compliance with the License. 2122 * You may obtain a copy of the License at 2123 * 2124 * http://www.apache.org/licenses/LICENSE-2.0 2125 * 2126 * Unless required by applicable law or agreed to in writing, software 2127 * distributed under the License is distributed on an "AS IS" BASIS, 2128 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2129 * See the License for the specific language governing permissions and 2130 * limitations under the License. 2131 */class Fv{constructor(e,n,r=1e3,i=1.5,s=6e4){this.oi=e,this.timerId=n,this.No=r,this.Lo=i,this.Bo=s,this.ko=0,this.qo=null,this.Qo=Date.now(),this.reset()}reset(){this.ko=0}Ko(){this.ko=this.Bo}$o(e){this.cancel();const n=Math.floor(this.ko+this.Uo()),r=Math.max(0,Date.now()-this.Qo),i=Math.max(0,n-r);i>0&&ne("ExponentialBackoff",`Backing off for ${i} ms (base delay: ${this.ko} ms, delay with jitter: ${n} ms, last attempt: ${r} ms ago)`),this.qo=this.oi.enqueueAfterDelay(this.timerId,i,()=>(this.Qo=Date.now(),e())),this.ko*=this.Lo,this.ko<this.No&&(this.ko=this.No),this.ko>this.Bo&&(this.ko=this.Bo)}Wo(){this.qo!==null&&(this.qo.skipDelay(),this.qo=null)}cancel(){this.qo!==null&&(this.qo.cancel(),this.qo=null)}Uo(){return(Math.random()-.5)*this.ko}}/** 2132 * @license 2133 * Copyright 2017 Google LLC 2134 * 2135 * Licensed under the Apache License, Version 2.0 (the "License"); 2136 * you may not use this file except in compliance with the License. 2137 * You may obtain a copy of the License at 2138 * 2139 * http://www.apache.org/licenses/LICENSE-2.0 2140 * 2141 * Unless required by applicable law or agreed to in writing, software 2142 * distributed under the License is distributed on an "AS IS" BASIS, 2143 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2144 * See the License for the specific language governing permissions and 2145 * limitations under the License. 2146 */class Uv{constructor(e,n,r,i,s,o,l,u){this.oi=e,this.Go=r,this.zo=i,this.connection=s,this.authCredentialsProvider=o,this.appCheckCredentialsProvider=l,this.listener=u,this.state=0,this.jo=0,this.Ho=null,this.Jo=null,this.stream=null,this.Yo=new Fv(e,n)}Zo(){return this.state===1||this.state===5||this.Xo()}Xo(){return this.state===2||this.state===3}start(){this.state!==4?this.auth():this.e_()}async stop(){this.Zo()&&await this.close(0)}t_(){this.state=0,this.Yo.reset()}n_(){this.Xo()&&this.Ho===null&&(this.Ho=this.oi.enqueueAfterDelay(this.Go,6e4,()=>this.r_()))}i_(e){this.s_(),this.stream.send(e)}async r_(){if(this.Xo())return this.close(0)}s_(){this.Ho&&(this.Ho.cancel(),this.Ho=null)}o_(){this.Jo&&(this.Jo.cancel(),this.Jo=null)}async close(e,n){this.s_(),this.o_(),this.Yo.cancel(),this.jo++,e!==4?this.Yo.reset():n&&n.code===F.RESOURCE_EXHAUSTED?(Un(n.toString()),Un("Using maximum backoff delay to prevent overloading the backend."),this.Yo.Ko()):n&&n.code===F.UNAUTHENTICATED&&this.state!==3&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),this.stream!==null&&(this.__(),this.stream.close(),this.stream=null),this.state=e,await this.listener.Ao(n)}__(){}auth(){this.state=1;const e=this.a_(this.jo),n=this.jo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([r,i])=>{this.jo===n&&this.u_(r,i)},r=>{e(()=>{const i=new ue(F.UNKNOWN,"Fetching auth token failed: "+r.message);return this.c_(i)})})}u_(e,n){const r=this.a_(this.jo);this.stream=this.l_(e,n),this.stream.Po(()=>{r(()=>this.listener.Po())}),this.stream.To(()=>{r(()=>(this.state=2,this.Jo=this.oi.enqueueAfterDelay(this.zo,1e4,()=>(this.Xo()&&(this.state=3),Promise.resolve())),this.listener.To()))}),this.stream.Ao(i=>{r(()=>this.c_(i))}),this.stream.onMessage(i=>{r(()=>this.onMessage(i))})}e_(){this.state=5,this.Yo.$o(async()=>{this.state=0,this.start()})}c_(e){return ne("PersistentStream",`close with error: ${e}`),this.stream=null,this.close(4,e)}a_(e){return n=>{this.oi.enqueueAndForget(()=>this.jo===e?n():(ne("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class $P extends Uv{constructor(e,n,r,i,s,o){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",n,r,i,o),this.serializer
2146=s}l_(e,n){return this.connection.Oo("Listen",e,n)}onMessage(e){this.Yo.reset();const n=XC(this.serializer,e),r=function(s){if(!("targetChange"in s))return ye.min();const o=s.targetChange;return o.targetIds&&o.targetIds.length?ye.min():o.readTime?wn(o.readTime):ye.min()}(e);return this.listener.h_(n,r)}P_(e){const n={};n.database=bc(this.serializer),n.addTarget=function(s,o){let l;const u=o.target;if(l=mc(u)?{documents:eP(s,u)}:{query:tP(s,u)._t},l.targetId=o.targetId,o.resumeToken.approximateByteSize()>0){l.resumeToken=Ov(s,o.resumeToken);const c=yc(s,o.expectedCount);c!==null&&(l.expectedCount=c)}else if(o.snapshotVersion.compareTo(ye.min())>0){l.readTime=Ya(s,o.snapshotVersion.toTimestamp());const c=yc(s,o.expectedCount);c!==null&&(l.expectedCount=c)}return l}(this.serializer,e);const r=rP(this.serializer,e);r&&(n.labels=r),this.i_(n)}I_(e){const n={};n.database=bc(this.serializer),n.removeTarget=e,this.i_(n)}}class FP extends Uv{constructor(e,n,r,i,s,o){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",n,r,i,o),this.serializer=s,this.T_=!1}get E_(){return this.T_}start(){this.T_=!1,this.lastStreamToken=void 0,super.start()}__(){this.T_&&this.d_([])}l_(e,n){return this.connection.Oo("Write",e,n)}onMessage(e){if(Ue(!!e.streamToken),this.lastStreamToken=e.streamToken,this.T_){this.Yo.reset();const n=ZC(e.writeResults,e.commitTime),r=wn(e.commitTime);return this.listener.A_(r,n)}return Ue(!e.writeResults||e.writeResults.length===0),this.T_=!0,this.listener.R_()}V_(){const e={};e.database=bc(this.serializer),this.i_(e)}d_(e){const n={streamToken:this.lastStreamToken,writes:e.map(r=>JC(this.serializer,r))};this.i_(n)}}/** 2147 * @license 2148 * Copyright 2017 Google LLC 2149 * 2150 * Licensed under the Apache License, Version 2.0 (the "License"); 2151 * you may not use this file except in compliance with the License. 2152 * You may obtain a copy of the License at 2153 * 2154 * http://www.apache.org/licenses/LICENSE-2.0 2155 * 2156 * Unless required by applicable law or agreed to in writing, software 2157 * distributed under the License is distributed on an "AS IS" BASIS, 2158 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2159 * See the License for the specific language governing permissions and 2160 * limitations under the License. 2161 */class UP extends class{}{constructor(e,n,r,i){super(),this.authCredentials=e,this.appCheckCredentials=n,this.connection=r,this.serializer=i,this.m_=!1}f_(){if(this.m_)throw new ue(F.FAILED_PRECONDITION,"The client has already been terminated.")}Co(e,n,r,i){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([s,o])=>this.connection.Co(e,vc(n,r),i,s,o)).catch(s=>{throw s.name==="FirebaseError"?(s.code===F.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),s):new ue(F.UNKNOWN,s.toString())})}xo(e,n,r,i,s){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([o,l])=>this.connection.xo(e,vc(n,r),i,o,l,s)).catch(o=>{throw o.name==="FirebaseError"?(o.code===F.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),o):new ue(F.UNKNOWN,o.toString())})}terminate(){this.m_=!0,this.connection.terminate()}}class BP{constructor(e,n){this.asyncQueue=e,this.onlineStateHandler=n,this.state="Unknown",this.g_=0,this.p_=null,this.y_=!0}w_(){this.g_===0&&(this.S_("Unknown"),this.p_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.p_=null,this.b_("Backend didn't respond within 10 seconds."),this.S_("Offline"),Promise.resolve())))}D_(e){this.state==="Online"?this.S_("Unknown"):(this.g_++,this.g_>=1&&(this.C_(),this.b_(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.S_("Offline")))}set(e){this.C_(),this.g_=0,e==="Online"&&(this.y_=!1),this.S_(e)}S_(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}b_(e){const n=`Could not reach Cloud Firestore backend. ${e} 2162This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.y_?(Un(n),this.y_=!1):ne("OnlineStateTracker",n)}C_(){this.p_!==null&&(this.p_.cancel(),this.p_=null)}}/** 2163 * @license 2164 * Copyright 2017 Google LLC 2165 * 2166 * Licensed under the Apache License, Version 2.0 (the "License");
2167 * you may not use this file except in compliance with the License. 2168 * You may obtain a copy of the License at 2169 * 2170 * http://www.apache.org/licenses/LICENSE-2.0 2171 * 2172 * Unless required by applicable law or agreed to in writing, software 2173 * distributed under the License is distributed on an "AS IS" BASIS, 2174 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2175 * See the License for the specific language governing permissions and 2176 * limitations under the License. 2177 */class jP{constructor(e,n,r,i,s){this.localStore=e,this.datastore=n,this.asyncQueue=r,this.remoteSyncer={},this.v_=[],this.F_=new Map,this.M_=new Set,this.x_=[],this.O_=s,this.O_.io(o=>{r.enqueueAndForget(async()=>{fi(this)&&(ne("RemoteStore","Restarting streams for network reachability change."),await async function(u){const c=_e(u);c.M_.add(4),await Ro(c),c.N_.set("Unknown"),c.M_.delete(4),await kl(c)}(this))})}),this.N_=new BP(r,i)}}async function kl(t){if(fi(t))for(const e of t.x_)await e(!0)}async function Ro(t){for(const e of t.x_)await e(!1)}function Bv(t,e){const n=_e(t);n.F_.has(e.targetId)||(n.F_.set(e.targetId,e),Vh(n)?Nh(n):Xi(n).Xo()&&Lh(n,e))}function xh(t,e){const n=_e(t),r=Xi(n);n.F_.delete(e),r.Xo()&&jv(n,e),n.F_.size===0&&(r.Xo()?r.n_():fi(n)&&n.N_.set("Unknown"))}function Lh(t,e){if(t.L_.xe(e.targetId),e.resumeToken.approximateByteSize()>0||e.snapshotVersion.compareTo(ye.min())>0){const n=t.remoteSyncer.getRemoteKeysForTarget(e.targetId).size;e=e.withExpectedCount(n)}Xi(t).P_(e)}function jv(t,e){t.L_.xe(e),Xi(t).I_(e)}function Nh(t){t.L_=new zC({getRemoteKeysForTarget:e=>t.remoteSyncer.getRemoteKeysForTarget(e),ot:e=>t.F_.get(e)||null,tt:()=>t.datastore.serializer.databaseId}),Xi(t).start(),t.N_.w_()}function Vh(t){return fi(t)&&!Xi(t).Zo()&&t.F_.size>0}function fi(t){return _e(t).M_.size===0}function Hv(t){t.L_=void 0}async function HP(t){t.N_.set("Online")}async function zP(t){t.F_.forEach((e,n)=>{Lh(t,e)})}async function qP(t,e){Hv(t),Vh(t)?(t.N_.D_(e),Nh(t)):t.N_.set("Unknown")}async function WP(t,e,n){if(t.N_.set("Online"),e instanceof Rv&&e.state===2&&e.cause)try{await async function(i,s){const o=s.cause;for(const l of s.targetIds)i.F_.has(l)&&(await i.remoteSyncer.rejectListen(l,o),i.F_.delete(l),i.L_.removeTarget(l))}(t,e)}catch(r){ne("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),r),await Xa(t,r)}else if(e instanceof Ca?t.L_.Ke(e):e instanceof Pv?t.L_.He(e):t.L_.We(e),!n.isEqual(ye.min()))try{const r=await $v(t.localStore);n.compareTo(r)>=0&&await function(s,o){const l=s.L_.rt(o);
2177return l.targetChanges.forEach((u,c)=>{if(u.resumeToken.approximateByteSize()>0){const h=s.F_.get(c);h&&s.F_.set(c,h.withResumeToken(u.resumeToken,o))}}),l.targetMismatches.forEach((u,c)=>{const h=s.F_.get(u);if(!h)return;s.F_.set(u,h.withResumeToken(Rt.EMPTY_BYTE_STRING,h.snapshotVersion)),jv(s,u);const p=new pr(h.target,u,c,h.sequenceNumber);Lh(s,p)}),s.remoteSyncer.applyRemoteEvent(l)}(t,n)}catch(r){ne("RemoteStore","Failed to raise snapshot:",r),await Xa(t,r)}}async function Xa(t,e,n){if(!So(e))throw e;t.M_.add(1),await Ro(t),t.N_.set("Offline"),n||(n=()=>$v(t.localStore)),t.asyncQueue.enqueueRetryable(async()=>{ne("RemoteStore","Retrying IndexedDB access"),await n(),t.M_.delete(1),await kl(t)})}function zv(t,e){return e().catch(n=>Xa(t,n,e))}async function Dl(t){const e=_e(t),n=Pr(e);let r=e.v_.length>0?e.v_[e.v_.length-1].batchId:-1;for(;KP(e);)try{const i=await OP(e.localStore,r);if(i===null){e.v_.length===0&&n.n_();break}r=i.batchId,GP(e,i)}catch(i){await Xa(e,i)}qv(e)&&Wv(e)}function KP(t){return fi(t)&&t.v_.length<10}function GP(t,e){t.v_.push(e);const n=Pr(t);n.Xo()&&n.E_&&n.d_(e.mutations)}function qv(t){return fi(t)&&!Pr(t).Zo()&&t.v_.length>0}function Wv(t){Pr(t).start()}async function QP(t){Pr(t).V_()}async function YP(t){const e=Pr(t);for(const n of t.v_)e.d_(n.mutations)}async function XP(t,e,n){const r=t.v_.shift(),i=Ch.from(r,e,n);await zv(t,()=>t.remoteSyncer.applySuccessfulWrite(i)),await Dl(t)}async function JP(t,e){e&&Pr(t).E_&&await async function(r,i){if(function(o){return BC(o)&&o!==F.ABORTED}(i.code)){const s=r.v_.shift();Pr(r).t_(),await zv(r,()=>r.remoteSyncer.rejectFailedWrite(s.batchId,i)),await Dl(r)}}(t,e),qv(t)&&Wv(t)}async function gm(t,e){const n=_e(t);n.asyncQueue.verifyOperationInProgress(),ne("RemoteStore","RemoteStore received new credentials");const r=fi(n);n.M_.add(3),await Ro(n),r&&n.N_.set("Unknown"),await n.remoteSyncer.handleCredentialChange(e),n.M_.delete(3),await kl(n)}async function ZP(t,e){const n=_e(t);e?(n.M_.delete(2),await kl(n)):e||(n.M_.add(2),await Ro(n),n.N_.set("Unknown"))}function Xi(t){return t.B_||(t.B_=function(n,r,i){const s=_e(n);return s.f_(),new $P(r,s.connection,s.authCredentials,s.appCheckCredentials,s.serializer,i)}(t.datastore,t.asyncQueue,{Po:HP.bind(null,t),To:zP.bind(null,t),Ao:qP.bind(null,t),h_:WP.bind(null,t)}),t.x_.push(async e=>{e?(t.B_.t_(),Vh(t)?Nh(t):t.N_.set("Unknown")):(await t.B_.stop(),Hv(t))})),t.B_}function Pr(t){return t.k_||(t.k_=function(n,r,i){const s=_e(n);return s.f_(),new FP(r,s.connection,s.authCredentials,s.appCheckCredentials,s.serializer,i)}(t.datastore,t.asyncQueue,{Po:()=>Promise.resolve(),To:QP.bind(null,t),Ao:JP.bind(null,t),R_:YP.bind(null,t),A_:XP.bind(null,t)}),t.x_.push(async e=>{e?(t.k_.t_(),await Dl(t)):(await t.k_.stop(),t.v_.length>0&&(ne("RemoteStore",`Stopping write stream with ${t.v_.length} pending writes`),t.v_=[]))})),t.k_}/** 2178 * @license 2179 * Copyright 2017 Google LLC 2180 * 2181 * Licensed under the Apache License, Version 2.0 (the "License"); 2182 * you may not use this file except in compliance with the License. 2183 * You may obtain a copy of the License at 2184 * 2185 * http://www.apache.org/licenses/LICENSE-2.0 2186 * 2187 * Unless required by applicable law or agreed to in writing, software 2188 * distributed under the License is distributed on an "AS IS" BASIS, 2189 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2190 * See the License for the specific language governing permissions and 2191 * limitations under the License. 2192 */class Mh{constructor(e,n,r,i,s){this.asyncQueue=e,this.timerId=n,this.targetTimeMs=r,this.op=i,this.removalCallback=s,this.deferred=new br,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(o=>{})}get promise(){return this.deferred.promise}static createAndSchedule(e,n,r,i,s){const o=Date.now()+r,l=new Mh(e,n,o,i,s);return l.start(r),l}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){this.timerHandle!==null&&(this.clearTimeout(),this.deferred.reject(new ue(F.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>this.timerHandle!==null?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){this.timerHandle!==null&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function $h(t,e){if(Un("AsyncQueue",`${e}: ${t}`),So(t))return new ue(F.UNAVAILABLE,`${e}: ${t}`);throw t}/** 2193 * @license 2194 * Copyright 2017 Google LLC 2195 * 2196 * Licensed under the Apache License, Version 2.0 (the "License");
2197 * you may not use this file except in compliance with the License. 2198 * You may obtain a copy of the License at 2199 * 2200 * http://www.apache.org/licenses/LICENSE-2.0 2201 * 2202 * Unless required by applicable law or agreed to in writing, software 2203 * distributed under the License is distributed on an "AS IS" BASIS, 2204 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2205 * See the License for the specific language governing permissions and 2206 * limitations under the License. 2207 */class ki{constructor(e){this.comparator=e?(n,r)=>e(n,r)||he.comparator(n.key,r.key):(n,r)=>he.comparator(n.key,r.key),this.keyedMap=Es(),this.sortedSet=new Xe(this.comparator)}static emptySet(e){return new ki(e.comparator)}has(e){return this.keyedMap.get(e)!=null}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){const n=this.keyedMap.get(e);return n?this.sortedSet.indexOf(n):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal((n,r)=>(e(n),!1))}add(e){const n=this.delete(e.key);return n.copy(n.keyedMap.insert(e.key,e),n.sortedSet.insert(e,null))}delete(e){const n=this.get(e);return n?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(n)):this}isEqual(e){if(!(e instanceof ki)||this.size!==e.size)return!1;const n=this.sortedSet.getIterator(),r=e.sortedSet.getIterator();for(;n.hasNext();){const i=n.getNext().key,s=r.getNext().key;if(!i.isEqual(s))return!1}return!0}toString(){const e=[];return this.forEach(n=>{e.push(n.toString())}),e.length===0?"DocumentSet ()":`DocumentSet ( 2208 `+e.join(` 2209`)+` 2210)`}copy(e,n){const r=new ki;return r.comparator=this.comparator,r.keyedMap=e,r.sortedSet=n,r}}/** 2211 * @license 2212 * Copyright 2017 Google LLC 2213 * 2214 * Licensed under the Apache License, Version 2.0 (the "License"); 2215 * you may not use this file except in compliance with the License. 2216 * You may obtain a copy of the License at 2217 * 2218 * http://www.apache.org/licenses/LICENSE-2.0 2219 * 2220 * Unless required by applicable law or agreed to in writing, software 2221 * distributed under the License is distributed on an "AS IS" BASIS, 2222 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2223 * See the License for the specific language governing permissions and 2224 * limitations under the License. 2225 */class ym{constructor(){this.q_=new Xe(he.comparator)}track(e){const n=e.doc.key,r=this.q_.get(n);r?e.type!==0&&r.type===3?this.q_=this.q_.insert(n,e):e.type===3&&r.type!==1?this.q_=this.q_.insert(n,{type:r.type,doc:e.doc}):e.type===2&&r.type===2?this.q_=this.q_.insert(n,{type:2,doc:e.doc}):e.type===2&&r.type===0?this.q_=this.q_.insert(n,{type:0,doc:e.doc}):e.type===1&&r.type===0?this.q_=this.q_.remove(n):e.type===1&&r.type===2?this.q_=this.q_.insert(n,{type:1,doc:r.doc}):e.type===0&&r.type===1?this.q_=this.q_.insert(n,{type:2,doc:e.doc}):pe():this.q_=this.q_.insert(n,e)}Q_(){const e=[];return this.q_.inorderTraversal((n,r)=>{e.push(r)}),e}}class qi{constructor(e,n,r,i,s,o,l,u,c){this.query=e,this.docs=n,this.oldDocs=r,this.docChanges=i,this.mutatedKeys=s,this.fromCache=o,this.syncStateChanged=l,this.excludesMetadataChanges=u,this.hasCachedResults=c}static fromInitialDocuments(e,n,r,i,s){const o=[];return n.forEach(l=>{o.push({type:0,doc:l})}),new qi(e,n,ki.emptySet(n),o,r,i,!0,!1,s)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&Al(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const n=this.docChanges,r=e.docChanges;if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(n[i].type!==r[i].type||!n[i].doc.isEqual(r[i].doc))return!1;return!0}}/** 2226 * @license 2227 * Copyright 2017 Google LLC 2228 * 2229 * Licensed under the Apache License, Version 2.0 (the "License"); 2230 * you may not use this file except in compliance with the License. 2231 * You may obtain a copy of the License at 2232 * 2233 * http://www.apache.org/licenses/LICENSE-2.0 2234 * 2235 * Unless required by applicable law or agreed to in writing, softw
2235are 2236 * distributed under the License is distributed on an "AS IS" BASIS, 2237 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2238 * See the License for the specific language governing permissions and 2239 * limitations under the License. 2240 */class eR{constructor(){this.K_=void 0,this.U_=[]}W_(){return this.U_.some(e=>e.G_())}}class tR{constructor(){this.queries=new Yi(e=>pv(e),Al),this.onlineState="Unknown",this.z_=new Set}}async function nR(t,e){const n=_e(t);let r=3;const i=e.query;let s=n.queries.get(i);s?!s.W_()&&e.G_()&&(r=2):(s=new eR,r=e.G_()?0:1);try{switch(r){case 0:s.K_=await n.onListen(i,!0);break;case 1:s.K_=await n.onListen(i,!1);break;case 2:await n.onFirstRemoteStoreListen(i)}}catch(o){const l=$h(o,`Initialization of query '${Ti(e.query)}' failed`);return void e.onError(l)}n.queries.set(i,s),s.U_.push(e),e.j_(n.onlineState),s.K_&&e.H_(s.K_)&&Fh(n)}async function rR(t,e){const n=_e(t),r=e.query;let i=3;const s=n.queries.get(r);if(s){const o=s.U_.indexOf(e);o>=0&&(s.U_.splice(o,1),s.U_.length===0?i=e.G_()?0:1:!s.W_()&&e.G_()&&(i=2))}switch(i){case 0:return n.queries.delete(r),n.onUnlisten(r,!0);case 1:return n.queries.delete(r),n.onUnlisten(r,!1);case 2:return n.onLastRemoteStoreUnlisten(r);default:return}}function iR(t,e){const n=_e(t);let r=!1;for(const i of e){const s=i.query,o=n.queries.get(s);if(o){for(const l of o.U_)l.H_(i)&&(r=!0);o.K_=i}}r&&Fh(n)}function sR(t,e,n){const r=_e(t),i=r.queries.get(e);if(i)for(const s of i.U_)s.onError(n);r.queries.delete(e)}function Fh(t){t.z_.forEach(e=>{e.next()})}var Ec,vm;(vm=Ec||(Ec={})).J_="default",vm.Cache="cache";class oR{constructor(e,n,r){this.query=e,this.Y_=n,this.Z_=!1,this.X_=null,this.onlineState="Unknown",this.options=r||{}}H_(e){if(!this.options.includeMetadataChanges){const r=[];for(const i of e.docChanges)i.type!==3&&r.push(i);e=new qi(e.query,e.docs,e.oldDocs,r,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let n=!1;return this.Z_?this.ea(e)&&(this.Y_.next(e),n=!0):this.ta(e,this.onlineState)&&(this.na(e),n=!0),this.X_=e,n}onError(e){this.Y_.error(e)}j_(e){this.onlineState=e;let n=!1;return this.X_&&!this.Z_&&this.ta(this.X_,e)&&(this.na(this.X_),n=!0),n}ta(e,n){if(!e.fromCache||!this.G_())return!0;const r=n!=="Offline";return(!this.options.ra||!r)&&(!e.docs.isEmpty()||e.hasCachedResults||n==="Offline")}ea(e){if(e.docChanges.length>0)return!0;const n=this.X_&&this.X_.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!n)&&this.options.includeMetadataChanges===!0}na(e){e=qi.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.Z_=!0,this.Y_.next(e)}G_(){return this.options.source!==Ec.Cache}}/** 2241 * @license 2242 * Copyright 2017 Google LLC 2243 * 2244 * Licensed under the Apache License, Version 2.0 (the "License"); 2245 * you may not use this file except in compliance with the License. 2246 * You may obtain a copy of the License at 2247 * 2248 * http://www.apache.org/licenses/LICENSE-2.0 2249 * 2250 * Unless required by applicable law or agreed to in writing, software 2251 * distributed under the License is distributed on an "AS IS" BASIS, 2252 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2253 * See the License for the specific language governing permissions and 2254 * limitations under the License. 2255 */class Kv{constructor(e){this.key=e}}class Gv{constructor(e){this.key=e}}class aR{constructor(e,n){this.query=e,this.la=n,this.ha=null,this.hasCachedResults=!1,this.current=!1,this.Pa=we(),this.mutatedKeys=we(),this.Ia=mv(e),this.Ta=new ki(this.Ia)}get Ea(){return this.la}da(e,n){const r=n?n.Aa:new ym,i=n?n.Ta:this.Ta;let s=n?n.mutatedKeys:this.mutatedKeys,o=i,l=!1;const u=this.query.limitType==="F"&&i.size===this.query.limit?i.last():null,c=this.query.limitType==="L"&&i.size===this.query.limit?i.first():null;if(e.inorderTraversal((h,p)=>{const m=i.get(h),y=Sl(this.query,p)?p:null,C=!!m&&this.mutatedKeys.has(m.key),R=!!y&&(y.hasLocalMutations||this.mutatedKeys.has(y.key)&&y.hasCommittedMutations);let P=!1;m&&y?m.data.isEqual(y.data)?C!==R&&(r.track({type:3,doc:y}),P=!0):this.Ra(m,y)||(r.track({type:2,doc:y}),P=!0,(u&&this.Ia(y,u)>0||c&&this.Ia(y,c)<0)&&(l=!0)):!m&&y?(r.track({type:0,doc:y}),P=!0):m&&!y&&(r.track({type:1,doc:m}),P=!0,(u||c)&&(l=!0)),P&&(y?(o=o.add(y),s=R?s.add(h):s.delete(h)):(o=o.delete(h),s=s.delete(h)))}),this.query.limit!==null)for(;o.size>this.query.limit;){const h=this.query.limitType==="F"?o.last():o.first();o=o.delete(h.key),s=s.delete(h.key),r.track({type:1,doc:h})}return{Ta:o,Aa:r,Xi:l,mutatedKeys:s}}Ra(e,n){return e.hasLocalMutations&&n.hasCommittedMutations&&!n.hasLocalMutations}
2255applyChanges(e,n,r,i){const s=this.Ta;this.Ta=e.Ta,this.mutatedKeys=e.mutatedKeys;const o=e.Aa.Q_();o.sort((h,p)=>function(y,C){const R=P=>{switch(P){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return pe()}};return R(y)-R(C)}(h.type,p.type)||this.Ia(h.doc,p.doc)),this.Va(r),i=i!=null&&i;const l=n&&!i?this.ma():[],u=this.Pa.size===0&&this.current&&!i?1:0,c=u!==this.ha;return this.ha=u,o.length!==0||c?{snapshot:new qi(this.query,e.Ta,s,o,e.mutatedKeys,u===0,c,!1,!!r&&r.resumeToken.approximateByteSize()>0),fa:l}:{fa:l}}j_(e){return this.current&&e==="Offline"?(this.current=!1,this.applyChanges({Ta:this.Ta,Aa:new ym,mutatedKeys:this.mutatedKeys,Xi:!1},!1)):{fa:[]}}ga(e){return!this.la.has(e)&&!!this.Ta.has(e)&&!this.Ta.get(e).hasLocalMutations}Va(e){e&&(e.addedDocuments.forEach(n=>this.la=this.la.add(n)),e.modifiedDocuments.forEach(n=>{}),e.removedDocuments.forEach(n=>this.la=this.la.delete(n)),this.current=e.current)}ma(){if(!this.current)return[];const e=this.Pa;this.Pa=we(),this.Ta.forEach(r=>{this.ga(r.key)&&(this.Pa=this.Pa.add(r.key))});const n=[];return e.forEach(r=>{this.Pa.has(r)||n.push(new Gv(r))}),this.Pa.forEach(r=>{e.has(r)||n.push(new Kv(r))}),n}pa(e){this.la=e.hs,this.Pa=we();const n=this.da(e.documents);return this.applyChanges(n,!0)}ya(){return qi.fromInitialDocuments(this.query,this.Ta,this.mutatedKeys,this.ha===0,this.hasCachedResults)}}class lR{constructor(e,n,r){this.query=e,this.targetId=n,this.view=r}}class uR{constructor(e){this.key=e,this.wa=!1}}class cR{constructor(e,n,r,i,s,o){this.localStore=e,this.remoteStore=n,this.eventManager=r,this.sharedClientState=i,this.currentUser=s,this.maxConcurrentLimboResolutions=o,this.Sa={},this.ba=new Yi(l=>pv(l),Al),this.Da=new Map,this.Ca=new Set,this.va=new Xe(he.comparator),this.Fa=new Map,this.Ma=new Oh,this.xa={},this.Oa=new Map,this.Na=zi.Ln(),this.onlineState="Unknown",this.La=void 0}get isPrimaryClient(){return this.La===!0}}async function hR(t,e,n=!0){const r=e_(t);let i;const s=r.ba.get(e);return s?(r.sharedClientState.addLocalQueryTarget(s.targetId),i=s.view.ya()):i=await Qv(r,e,n,!0),i}async function dR(t,e){const n=e_(t);await Qv(n,e,!0,!1)}async function Qv(t,e,n,r){const i=await kP(t.localStore,bn(e)),s=i.targetId,o=n?t.sharedClientState.addLocalQueryTarget(s):"not-current";let l;return r&&(l=await fR(t,e,s,o==="current",i.resumeToken)),t.isPrimaryClient&&n&&Bv(t.remoteStore,i),l}async function fR(t,e,n,r,i){t.Ba=(p,m,y)=>async function(R,P,k,x){let N=P.view.da(k);N.Xi&&(N=await fm(R.localStore,P.query,!1).then(({documents:A})=>P.view.da(A,N)));const j=x&&x.targetChanges.get(P.targetId),Z=x&&x.targetMismatches.get(P.targetId)!=null,z=P.view.applyChanges(N,R.isPrimaryClient,j,Z);return bm(R,P.targetId,z.fa),z.snapshot}(t,p,m,y);const s=await fm(t.localStore,e,!0),o=new aR(e,s.hs),l=o.da(s.documents),u=Po.createSynthesizedTargetChangeForCurrentChange(n,r&&t.onlineState!=="Offline",i),c=o.applyChanges(l,t.isPrimaryClient,u);bm(t,n,c.fa);const h=new lR(e,n,o);return t.ba.set(e,h),t.Da.has(n)?t.Da.get(n).push(e):t.Da.set(n,[e]),c.snapshot}async function pR(t,e,n){const r=_e(t),i=r.ba.get(e),s=r.Da.get(i.targetId);if(s.length>1)return r.Da.set(i.targetId,s.filter(o=>!Al(o,e))),void r.ba.delete(e);r.isPrimaryClient?(r.sharedClientState.removeLocalQueryTarget(i.targetId),r.sharedCl
2255ientState.isActiveQueryTarget(i.targetId)||await wc(r.localStore,i.targetId,!1).then(()=>{r.sharedClientState.clearQueryState(i.targetId),n&&xh(r.remoteStore,i.targetId),Tc(r,i.targetId)}).catch(Ao)):(Tc(r,i.targetId),await wc(r.localStore,i.targetId,!0))}async function mR(t,e){const n=_e(t),r=n.ba.get(e),i=n.Da.get(r.targetId);n.isPrimaryClient&&i.length===1&&(n.sharedClientState.removeLocalQueryTarget(r.targetId),xh(n.remoteStore,r.targetId))}async function gR(t,e,n){const r=TR(t);try{const i=await function(o,l){const u=_e(o),c=ut.now(),h=l.reduce((y,C)=>y.add(C.key),we());let p,m;return u.persistence.runTransaction("Locally write mutations","readwrite",y=>{let C=Bn(),R=we();return u.os.getEntries(y,h).next(P=>{C=P,C.forEach((k,x)=>{x.isValidDocument()||(R=R.add(k))})}).next(()=>u.localDocuments.getOverlayedDocuments(y,C)).next(P=>{p=P;const k=[];for(const x of l){const N=VC(x,p.get(x.key).overlayedDocument);N!=null&&k.push(new xr(x.key,N,ov(N.value.mapValue),hn.exists(!0)))}return u.mutationQueue.addMutationBatch(y,c,k,l)}).next(P=>{m=P;const k=P.applyToLocalDocumentSet(p,R);return u.documentOverlayCache.saveOverlays(y,P.batchId,k)})}).then(()=>({batchId:m.batchId,changes:yv(p)}))}(r.localStore,e);r.sharedClientState.addPendingMutation(i.batchId),function(o,l,u){let c=o.xa[o.currentUser.toKey()];c||(c=new Xe(ke)),c=c.insert(l,u),o.xa[o.currentUser.toKey()]=c}(r,i.batchId,n),await Oo(r,i.changes),await Dl(r.remoteStore)}catch(i){const s=$h(i,"Failed to persist write");n.reject(s)}}async function Yv(t,e){const n=_e(t);try{const r=await PP(n.localStore,e);
2255e.targetChanges.forEach((i,s)=>{const o=n.Fa.get(s);o&&(Ue(i.addedDocuments.size+i.modifiedDocuments.size+i.removedDocuments.size<=1),i.addedDocuments.size>0?o.wa=!0:i.modifiedDocuments.size>0?Ue(o.wa):i.removedDocuments.size>0&&(Ue(o.wa),o.wa=!1))}),await Oo(n,r,e)}catch(r){await Ao(r)}}function _m(t,e,n){const r=_e(t);if(r.isPrimaryClient&&n===0||!r.isPrimaryClient&&n===1){const i=[];r.ba.forEach((s,o)=>{const l=o.view.j_(e);l.snapshot&&i.push(l.snapshot)}),function(o,l){const u=_e(o);u.onlineState=l;let c=!1;u.queries.forEach((h,p)=>{for(const m of p.U_)m.j_(l)&&(c=!0)}),c&&Fh(u)}(r.eventManager,e),i.length&&r.Sa.h_(i),r.onlineState=e,r.isPrimaryClient&&r.sharedClientState.setOnlineState(e)}}async function yR(t,e,n){const r=_e(t);r.sharedClientState.updateQueryState(e,"rejected",n);const i=r.Fa.get(e),s=i&&i.key;if(s){let o=new Xe(he.comparator);o=o.insert(s,Ct.newNoDocument(s,ye.min()));const l=we().add(s),u=new Rl(ye.min(),new Map,new Xe(ke),o,l);await Yv(r,u),r.va=r.va.remove(s),r.Fa.delete(e),Uh(r)}else await wc(r.localStore,e,!1).then(()=>Tc(r,e,n)).catch(Ao)}async function vR(t,e){const n=_e(t),r=e.batch.batchId;try{const i=await CP(n.localStore,e);Jv(n,r,null),Xv(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),await Oo(n,i)}catch(i){await Ao(i)}}async function _R(t,e,n){const r=_e(t);try{const i=await function(o,l){const u=_e(o);return u.persistence.runTransaction("Reject batch","readwrite-primary",c=>{let h;return u.mutationQueue.lookupMutationBatch(c,l).next(p=>(Ue(p!==null),h=p.keys(),u.mutationQueue.removeMutationBatch(c,p))).next(()=>u.mutationQueue.performConsistencyCheck(c)).next(()=>u.documentOverlayCache.removeOverlaysForBatchId(c,h,l)).next(()=>u.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(c,h)).next(()=>u.localDocuments.getDocuments(c,h))})}(r.localStore,e);Jv(r,e,n),Xv(r,e),r.sharedClientState.updateMutationState(e,"rejected",n),await Oo(r,i)}catch(i){await Ao(i)}}function Xv(t,e){(t.Oa.get(e)||[]).forEach(n=>{n.resolve()}),t.Oa.delete(e)}function Jv(t,e,n){const r=_e(t);let i=r.xa[r.currentUser.toKey()];if(i){const s=i.get(e);s&&(n?s.reject(n):s.resolve(),i=i.remove(e)),r.xa[r.currentUser.toKey()]=i}}
2255function Tc(t,e,n=null){t.sharedClientState.removeLocalQueryTarget(e);for(const r of t.Da.get(e))t.ba.delete(r),n&&t.Sa.ka(r,n);t.Da.delete(e),t.isPrimaryClient&&t.Ma.Vr(e).forEach(r=>{t.Ma.containsKey(r)||Zv(t,r)})}function Zv(t,e){t.Ca.delete(e.path.canonicalString());const n=t.va.get(e);n!==null&&(xh(t.remoteStore,n),t.va=t.va.remove(e),t.Fa.delete(n),Uh(t))}function bm(t,e,n){for(const r of n)r instanceof Kv?(t.Ma.addReference(r.key,e),bR(t,r)):r instanceof Gv?(ne("SyncEngine","Document no longer in limbo: "+r.key),t.Ma.removeReference(r.key,e),t.Ma.containsKey(r.key)||Zv(t,r.key)):pe()}function bR(t,e){const n=e.key,r=n.path.canonicalString();t.va.get(n)||t.Ca.has(r)||(ne("SyncEngine","New document in limbo: "+n),t.Ca.add(r),Uh(t))}function Uh(t){for(;t.Ca.size>0&&t.va.size<t.maxConcurrentLimboResolutions;){const e=t.Ca.values().next().value;t.Ca.delete(e);const n=new he(We.fromString(e)),r=t.Na.next();t.Fa.set(r,new uR(n)),t.va=t.va.insert(n,r),Bv(t.remoteStore,new pr(bn(fv(n.path)),r,"TargetPurposeLimboResolution",bh.oe))}}async function Oo(t,e,n){const r=_e(t),i=[],s=[],o=[];r.ba.isEmpty()||(r.ba.forEach((l,u)=>{o.push(r.Ba(u,e,n).then(c=>{if((c||n)&&r.isPrimaryClient){const h=c&&!c.fromCache;r.sharedClientState.updateQueryState(u.targetId,h?"current":"not-current")}if(c){i.push(c);const h=Dh.Ki(u.targetId,c);s.push(h)}}))}),await Promise.all(o),r.Sa.h_(i),await async function(u,c){const h=_e(u);try{await h.persistence.runTransaction("notifyLocalViewChanges","readwrite",p=>U.forEach(c,m=>U.forEach(m.qi,y=>h.persistence.referenceDelegate.addReference(p,m.targetId,y)).next(()=>U.forEach(m.Qi,y=>h.persistence.referenceDelegate.removeReference(p,m.targetId,y)))))}catch(p){if(!So(p))throw p;ne("LocalStore","Failed to update sequence numbers: "+p)}for(const p of c){const m=p.targetId;if(!p.fromCache){const y=h.ns.get(m),C=y.snapshotVersion,R=y.withLastLimboFreeSnapshotVersion(C);h.ns=h.ns.insert(m,R)}}}(r.localStore,s))}async function wR(t,e){const n=_e(t);if(!n.currentUser.isEqual(e)){ne("SyncEngine","User change. New user:",e.toKey());const r=await Mv(n.localStore,e);n.currentUser=e,function(s,o){s.Oa.forEach(l=>{l.forEach(u=>{u.reject(new ue(F.CANCELLED,o))})}),s.Oa.clear()}(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(e,r.removedBatchIds,r.addedBatchIds),await Oo(n,r.us)}}function ER(t,e){const n=_e(t),r=n.Fa.get(e);if(r&&r.wa)return we().add(r.key);{let i=we();const s=n.Da.get(e);if(!s)return i;for(const o of s){const l=n.ba.get(o);i=i.unionWith(l.view.Ea)}return i}}function e_(t){const e=_e(t);return e.remoteStore.remoteSyncer.applyRemoteEvent=Yv.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=ER.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=yR.bind(null,e),e.Sa.h_=iR.bind(null,e.eventManager),e.Sa.ka=sR.bind(null,e.eventManager),e}function TR(t){const e=_e(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=vR.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=_R.bind(null,e),e}class wm{constructor(){this.synchronizeTabs=!1}async initialize(e){this.serializer=Ol(e.databaseInfo.databaseId),this.sharedClientState=this.createSharedClientState(e),this.persistence=this.createPersistence(e),await this.persistence.start(),this.localStore=this.createLocalStore(e),this.gcScheduler=this.createGarbageCollectionScheduler(e,this.localStore),this.indexBackfillerScheduler=this.createIndexBackfillerScheduler(e,this.localStore)}createGarbageCollectionScheduler(e,n){return null}createIndexBackfillerScheduler(e,n){return null}createLocalStore(e){return SP(this.persistence,new IP,e.initialUser,this.serializer)}createPersistence(e){return new wP(kh.Hr,this.serializer)}createSharedClientState(e){return new xP}async terminate(){var e,n;(e=this.gcScheduler)===null||e===void 0||e.stop(),(n=this.indexBackfillerScheduler)===null||n===void 0||n.stop(),this.sharedClientState.shutdown(),await this.persistence.shutdown()}}class IR{async initialize(e,n){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(n),this.remoteStore=this.createRemoteStore(n),this.eventManager=this.createEventManager(n),this.syncEngine=this.createSyncEngine(n,!e.synchronizeTabs),this.sharedCl
2255ientState.onlineStateHandler=r=>_m(this.syncEngine,r,1),this.remoteStore.remoteSyncer.handleCredentialChange=wR.bind(null,this.syncEngine),await ZP(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return function(){return new tR}()}createDatastore(e){const n=Ol(e.databaseInfo.databaseId),r=function(s){return new MP(s)}(e.databaseInfo);return function(s,o,l,u){return new UP(s,o,l,u)}(e.authCredentials,e.appCheckCredentials,r,n)}createRemoteStore(e){return function(r,i,s,o,l){return new jP(r,i,s,o,l)}(this.localStore,this.datastore,e.asyncQueue,n=>_m(this.syncEngine,n,0),function(){return mm.D()?new mm:new LP}())}createSyncEngine(e,n){return function(i,s,o,l,u,c,h){const p=new cR(i,s,o,l,u,c);return h&&(p.La=!0),p}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,n)}async terminate(){var e;await async function(r){const i=_e(r);ne("RemoteStore","RemoteStore shutting down."),i.M_.add(5),await Ro(i),i.O_.shutdown(),i.N_.set("Unknown")}(this.remoteStore),(e=this.datastore)===null||e===void 0||e.terminate()}}/** 2256 * @license 2257 * Copyright 2020 Google LLC 2258 * 2259 * Licensed under the Apache License, Version 2.0 (the "License"); 2260 * you may not use this file except in compliance with the License. 2261 * You may obtain a copy of the License at 2262 * 2263 * http://www.apache.org/licenses/LICENSE-2.0 2264 * 2265 * Unless required by applicable law or agreed to in writing, software 2266 * distributed under the License is distributed on an "AS IS" BASIS, 2267 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2268 * See the License for the specific language governing permissions and 2269 * limitations under the License. 2270 *//** 2271 * @license 2272 * Copyright 2017 Google LLC 2273 * 2274 * Licensed under the Apache License, Version 2.0 (the "License"); 2275 * you may not use this file except in compliance with the License. 2276 * You may obtain a copy of the License at 2277 * 2278 * http://www.apache.org/licenses/LICENSE-2.0 2279 * 2280 * Unless required by applicable law or agreed to in writing, software 2281 * distributed under the License is distributed on an "AS IS" BASIS, 2282 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2283 * See the License for the specific language governing permissions and 2284 * limitations under the License. 2285 */class AR{constructor(e){this.observer=e,this.muted=!1}next(e){this.observer.next&&this.Ka(this.observer.next,e)}error(e){this.observer.error?this.Ka(this.observer.error,e):Un("Uncaught Error in snapshot listener:",e.toString())}$a(){this.muted=!0}Ka(e,n){this.muted||setTimeout(()=>{this.muted||e(n)},0)}}/** 2286 * @license 2287 * Copyright 2017 Google LLC 2288 * 2289 * Licensed under the Apache License, Version 2.0 (the "License"); 2290 * you may not use this file except in compliance with the License. 2291 * You may obtain a copy of the License at 2292 * 2293 * http://www.apache.org/licenses/LICENSE-2.0 2294 * 2295 * Unless required by applicable law or agreed to in writing, software 2296 * distributed under the License is distributed on an "AS IS" BASIS, 2297 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2298 * See the License for the specific language governing permissions and 2299 * limitations under the License. 2300 */class SR{constructor(e,n,r,i){this.authCredentials=e,this.appCheckCredentials=n,this.asyncQueue=r,this.databaseInfo=i,this.user=St.UNAUTHENTICATED,this.clientId=rv.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(r,async s=>{ne("FirestoreClient","Received user=",s.uid),await this.authCredentialListener(s),this.user=s}),this.appCheckCredentials.start(r,s=>(ne("FirestoreClient","Received new app check token=",s),this.appCheckCredentialListener(s,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new ue(F.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){this.asyncQueue.enterRestrictedMode();const e=new br;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(async()=>{try{this._onlineComponents&&await this._onlineComponents.terminate(),this._offlineComponents&&await this._offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(n){const r=$h(n,"Failed to shutdown persistence");e.reject(r)}}),e.promise}}async function Ou(t,e){t.asyncQueue.verifyOperationInProgress(),ne("FirestoreClient","Initializing OfflineComponentProvider");const n=t.configuration;await e.initialize(n);let r=n.initialUser;t.setCredentialChangeListener(async i=>{r.isEqual(i)||(await Mv(e.localStore,i),r=i)}),e.persistence.setDatabaseDeletedListener(()=>t.terminate()),t._offlineComponents=e}async function Em(t,e){t.asyncQueue.verifyOperationInProgress();const n=await PR(t);ne("FirestoreClient","Initializing OnlineComponentProvider"),await e.initialize(n,t.configuration),t.setCredentialChangeListener(r=>gm(e.remoteStore,r)),t.setAppCheckTokenChangeListener((r,i)=>gm(e.remoteStore,i)),t._onlineComponents=e}function CR(t){return t.name==="FirebaseError"?t.code===F.FAILED_PRECONDITION||t.code===F.UNIMPLEMENT
2300ED:!(typeof DOMException<"u"&&t instanceof DOMException)||t.code===22||t.code===20||t.code===11}async function PR(t){if(!t._offlineComponents)if(t._uninitializedComponentsProvider){ne("FirestoreClient","Using user provided OfflineComponentProvider");try{await Ou(t,t._uninitializedComponentsProvider._offline)}catch(e){const n=e;if(!CR(n))throw n;Ui("Error using user provided cache. Falling back to memory cache: "+n),await Ou(t,new wm)}}else ne("FirestoreClient","Using default OfflineComponentProvider"),await Ou(t,new wm);return t._offlineComponents}async function t_(t){return t._onlineComponents||(t._uninitializedComponentsProvider?(ne("FirestoreClient","Using user provided OnlineComponentProvider"),await Em(t,t._uninitializedComponentsProvider._online)):(ne("FirestoreClient","Using default OnlineComponentProvider"),await Em(t,new IR))),t._onlineComponents}function RR(t){return t_(t).then(e=>e.syncEngine)}async function OR(t){const e=await t_(t),n=e.eventManager;return n.onListen=hR.bind(null,e.syncEngine),n.onUnlisten=pR.bind(null,e.syncEngine),n.onFirstRemoteStoreListen=dR.bind(null,e.syncEngine),n.onLastRemoteStoreUnlisten=mR.bind(null,e.syncEngine),n}function kR(t,e,n={}){const r=new br;return t.asyncQueue.enqueueAndForget(async()=>function(s,o,l,u,c){const h=new AR({next:m=>{o.enqueueAndForget(()=>rR(s,p)),m.fromCache&&u.source==="server"?c.reject(new ue(F.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):c.resolve(m)},error:m=>c.reject(m)}),p=new oR(l,h,{includeMetadataChanges:!0,ra:!0});return nR(s,p)}(await OR(t),t.asyncQueue,e,n,r)),r.promise}/** 2301 * @license 2302 * Copyright 2023 Google LLC 2303 * 2304 * Licensed under the Apache License, Version 2.0 (the "License"); 2305 * you may not use this file except in compliance with the License. 2306 * You may obtain a copy of the License at 2307 * 2308 * http://www.apache.org/licenses/LICENSE-2.0 2309 * 2310 * Unless required by applicable law or agreed to in writing, software 2311 * distributed under the License is distributed on an "AS IS" BASIS, 2312 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2313 * See the License for the specific language governing permissions and 2314 * limitations under the License. 2315 */function n_(t){const e={};return t.timeoutSeconds!==void 0&&(e.timeoutSeconds=t.timeoutSeconds),e}/** 2316 * @license 2317 * Copyright 2020 Google LLC 2318 * 2319 * Licensed under the Apache License, Version 2.0 (the "License"); 2320 * you may not use this file except in compliance with the License. 2321 * You may obtain a copy of the License at 2322 * 2323 * http://www.apache.org/licenses/LICENSE-2.0 2324 * 2325 * Unless required by applicable law or agreed to in writing, software 2326 * distributed under the License is distributed on an "AS IS" BASIS, 2327 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2328 * See the License for the specific language governing permissions and 2329 * limitations under the License. 2330 */const Tm=new Map;/** 2331 * @license 2332 * Copyright 2017 Google LLC 2333 * 2334 * Licensed under the Apache License, Version 2.0 (the "License"); 2335 * you may not use this file except in compliance with the License. 2336 * You may obtain a copy of the License at 2337 * 2338 * http://www.apache.org/licenses/LICENSE-2.0 2339 * 2340 * Unless required by applicable law or agreed to in writing, software 2341 * distributed under the License is distributed on an "AS IS" BASIS, 2342 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2343 * See the License for the specific language governing permissions and 2344 * limitations under the License. 2345 */function r_(t,e,n){if(!n)throw new ue(F.INVALID_ARGUMENT,`Function ${t}() cannot be called with an empty ${e}.`)}function DR(t,e,n,r){if(e===!0&&r===!0)throw new ue(F.INVALID_ARGUMENT,`${t} and ${n} cannot be used together.`)}function Im(t){if(!he.isDocumentKey(t))throw new ue(F.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${t} has ${t.length}.`)}function Am(t){if(he.isDocumentKey(t))throw new ue(F.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${t} has ${t.length}.`)}function Bh(t){if(t===void 0)return"undefined";if(t===null)return"null";if(typeof t=="string")return t.length>20&&(t=`${t.substring(0,20)}...`),JSON.stringify(t);if(typeof t=="number"||typeof t=="boolean")return""+t;if(typeof t=="object"){if(t instanceof Array)return"an array";{const e=function(r){return r.constructor?r.constructor.name:null}(t);return e?`a custom ${e} object`:"an object"}}return typeof t=="function"?"a function":pe()}function si(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new ue(F.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=Bh(t);throw new ue(F.INVALID_ARGUMENT,`Expected type '${e.name}', but it was: ${n}`)}}return t}/** 2346 * @license 2347 * Copyright 2020 Google LLC 2348 * 2349 * Licensed under the Apache License, Version 2.0 (the "License");
2350 * you may not use this file except in compliance with the License. 2351 * You may obtain a copy of the License at 2352 * 2353 * http://www.apache.org/licenses/LICENSE-2.0 2354 * 2355 * Unless required by applicable law or agreed to in writing, software 2356 * distributed under the License is distributed on an "AS IS" BASIS, 2357 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2358 * See the License for the specific language governing permissions and 2359 * limitations under the License. 2360 */class Sm{constructor(e){var n,r;if(e.host===void 0){if(e.ssl!==void 0)throw new ue(F.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=e.host,this.ssl=(n=e.ssl)===null||n===void 0||n;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,e.cacheSizeBytes===void 0)this.cacheSizeBytes=41943040;else{if(e.cacheSizeBytes!==-1&&e.cacheSizeBytes<1048576)throw new ue(F.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}DR("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:e.experimentalAutoDetectLongPolling===void 0?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=n_((r=e.experimentalLongPollingOptions)!==null&&r!==void 0?r:{}),function(s){if(s.timeoutSeconds!==void 0){if(isNaN(s.timeoutSeconds))throw new ue(F.INVALID_ARGUMENT,`invalid long polling timeout: ${s.timeoutSeconds} (must not be NaN)`);if(s.timeoutSeconds<5)throw new ue(F.INVALID_ARGUMENT,`invalid long polling timeout: ${s.timeoutSeconds} (minimum allowed value is 5)`);if(s.timeoutSeconds>30)throw new ue(F.INVALID_ARGUMENT,`invalid long polling timeout: ${s.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&function(r,i){return r.timeoutSeconds===i.timeoutSeconds}(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class xl{constructor(e,n,r,i){this._authCredentials=e,this._appCheckCredentials=n,this._databaseId=r,this._app=i,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Sm({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new ue(F.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return this._terminateTask!==void 0}_setSettings(e){if(this._settingsFrozen)throw new ue(F.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Sm(e),e.credentials!==void 0&&(this._authCredentials=function(r){if(!r)return new qS;switch(r.type){case"firstParty":return new QS(r.sessionIndex||"0",r.iamToken||null,r.authTokenFactory||null);case"provider":return r.client;default:throw new ue(F.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(e.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(n){const r=Tm.get(n);r&&(ne("ComponentProvider","Removing Datastore"),Tm.delete(n),r.terminate())}(this),Promise.resolve()}}function xR(t,e,n,r={}){var i;const s=(t=si(t,xl))._getSettings(),o=`${e}:${n}`;if(s.host!=="firestore.googleapis.com"&&s.host!==o&&Ui("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),t._setSettings(Object.assign(Object.assign({},s),{host:o,ssl:!1})),r.mockUserToken){let l,u;if(typeof r.mockUserToken=="string")l=r.mockUserToken,u=St.MOCK_USER;else{l=Ey(r.mockUserToken,(i=t._app)===null||i===void 0?void 0:i.options.projectId);const c=r.mockUserToken.sub||r.mockUserToken.user_id;if(!c)throw new ue(F.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");u=new St(c)}t._authCredentials=new WS(new nv(l,u))}}/** 2361 * @license 2362 * Copyright 2020 Google LLC 2363 * 2364 * Licensed under the Apache License, Version 2.0 (the "License");
2365 * you may not use this file except in compliance with the License. 2366 * You may obtain a copy of the License at 2367 * 2368 * http://www.apache.org/licenses/LICENSE-2.0 2369 * 2370 * Unless required by applicable law or agreed to in writing, software 2371 * distributed under the License is distributed on an "AS IS" BASIS, 2372 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2373 * See the License for the specific language governing permissions and 2374 * limitations under the License. 2375 */class Ll{constructor(e,n,r){this.converter=n,this._query=r,this.type="query",this.firestore=e}withConverter(e){return new Ll(this.firestore,e,this._query)}}class sn{constructor(e,n,r){this.converter=n,this._key=r,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new wr(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new sn(this.firestore,e,this._key)}}class wr extends Ll{constructor(e,n,r){super(e,n,fv(r)),this._path=r,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new sn(this.firestore,null,new he(e))}withConverter(e){return new wr(this.firestore,e,this._path)}}function LR(t,e,...n){if(t=ft(t),r_("collection","path",e),t instanceof xl){const r=We.fromString(e,...n);return Am(r),new wr(t,null,r)}{if(!(t instanceof sn||t instanceof wr))throw new ue(F.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(We.fromString(e,...n));return Am(r),new wr(t.firestore,null,r)}}function i_(t,e,...n){if(t=ft(t),arguments.length===1&&(e=rv.newId()),r_("doc","path",e),t instanceof xl){const r=We.fromString(e,...n);return Im(r),new sn(t,null,new he(r))}{if(!(t instanceof sn||t instanceof wr))throw new ue(F.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(We.fromString(e,...n));return Im(r),new sn(t.firestore,t instanceof wr?t.converter:null,new he(r))}}/** 2376 * @license 2377 * Copyright 2020 Google LLC 2378 * 2379 * Licensed under the Apache License, Version 2.0 (the "License"); 2380 * you may not use this file except in compliance with the License. 2381 * You may obtain a copy of the License at 2382 * 2383 * http://www.apache.org/licenses/LICENSE-2.0 2384 * 2385 * Unless required by applicable law or agreed to in writing, software 2386 * distributed under the License is distributed on an "AS IS" BASIS, 2387 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2388 * See the License for the specific language governing permissions and 2389 * limitations under the License. 2390 */class NR{constructor(){this.iu=Promise.resolve(),this.su=[],this.ou=!1,this._u=[],this.au=null,this.uu=!1,this.cu=!1,this.lu=[],this.Yo=new Fv(this,"async_queue_retry"),this.hu=()=>{const n=Ru();n&&ne("AsyncQueue","Visibility state changed to "+n.visibilityState),this.Yo.Wo()};const e=Ru();e&&typeof e.addEventListener=="function"&&e.addEventListener("visibilitychange",this.hu)}get isShuttingDown(){return this.ou}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.Pu(),this.Iu(e)}enterRestrictedMode(e){if(!this.ou){this.ou=!0,this.cu=e||!1;const n=Ru();n&&typeof n.removeEventListener=="function"&&n.removeEventListener("visibilitychange",this.hu)}}enqueue(e){if(this.Pu(),this.ou)return new Promise(()=>{});const n=new br;return this.Iu(()=>this.ou&&this.cu?Promise.resolve():(e().then(n.resolve,n.reject),n.promise)).then(()=>n.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.su.push(e),this.Tu()))}async Tu(){if(this.su.length!==0){try{await this.su[0](),this.su.shift(),this.Yo.reset()}catch(e){if(!So(e))throw e;ne("AsyncQueue","Operation failed with retryable error: "+e)}this.su.length>0&&this.Yo.$o(()=>this.Tu())}}Iu(e){const n=this.iu.then(()=>(this.uu=!0,e().catch(r=>{this.au=r,this.uu=!1;const i=function(o){let l=o.message||"";return o.stack&&(l=o.stack.includes(o.message)?o.stack:o.message+` 2391`+o.stack),l}(r);throw Un("INTERNAL UNHANDLED ERROR: ",i),r}).then(r=>(this.uu=!1,r))));return this.iu=n,n}enqueueAfterDelay(e,n,r){this.Pu(),this.lu.indexOf(e)>-1&&(n=0);const i=Mh.createAndSchedule(this,e,n,r,s=>this.Eu(s));return this._u.push(i),i}Pu(){this.au&&pe()}verifyOperationInProgress(){}async du(){let e;do e=this.iu,await e;while(e!==this.iu)}Au(e){for(const n of this._u)if(n.timerId===e)return!0;return!1}Ru(e){return this.du().then(()=>{this._u.sort((n,r)=>n.targetTimeMs-r.targetTimeMs);for(const n of this._u)if(n.skipDelay(),e!=="all"&&n.timerId===e)break;return this.du()})}Vu(e){this.lu.push(e)}Eu(e){const n=this._u.indexOf(e);this._u.splice(n,1)}}class ko extends xl{constructor(e,n,r,i){super(e,n,r,i),this.type="firestore",this._queue=function(){return new NR}(),this._persistenceKey=(i==null?void 0:i.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||o_(this),this._firestoreClient.terminate()}}function VR(t,e){const n=typeof t=="object"?t:hh(),r=typeof t=="string"?t:"(default)",i=bl(n,"firestore").getImmediate({identifier:r});if(!i._initialized){const s=_y("firestore");s&&xR(i,...s)}return i}function s_(t){return t._firestoreClient||o_(t),t._firestoreClient.verifyNotTerminated(),t._firestoreClient}function o_(t){var e,n,r;const i=t._freezeSettings(),s=function(l,u,c,h){return new lC(l,u,c,h.host,h.ssl,h.experimentalForceLongPolling,h.experimentalAutoDetectLongPolling,n_(h.experimentalLongPollingOptions),h.useFetchStreams)}(t._databaseId,((e=t._app)===null||e===void 0?void 0:e.options.appId)||"",t._persistenceKey,i);t._firestoreClient=new SR(t._authCredentials,t._appCheckCredentials,t._queue,s),!((n=i.localCache)===null||n===void 0)&&n._offlineComponentProvider&&(!((r=i.localCache)===null||r===void 0)&&r._onlineComponentProvider)&&(t._firestoreClient._uninitializedComponentsProvider={_offlineKind:i.localCache.kind,_offline:i.localCache._offlineComponentProvider,_online:i.localCache._onlineComponentProvider})}/** 2392 * @license 2393 * Copyright 2020 Google LLC 2394 * 2395 * Licensed under the Apache License, Version 2.0 (the "License");
2396 * you may not use this file except in compliance with the License. 2397 * You may obtain a copy of the License at 2398 * 2399 * http://www.apache.org/licenses/LICENSE-2.0 2400 * 2401 * Unless required by applicable law or agreed to in writing, software 2402 * distributed under the License is distributed on an "AS IS" BASIS, 2403 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2404 * See the License for the specific language governing permissions and 2405 * limitations under the License. 2406 */class Wi{constructor(e){this._byteString=e}static fromBase64String(e){try{return new Wi(Rt.fromBase64String(e))}catch(n){throw new ue(F.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+n)}}static fromUint8Array(e){return new Wi(Rt.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}}/** 2407 * @license 2408 * Copyright 2020 Google LLC 2409 * 2410 * Licensed under the Apache License, Version 2.0 (the "License"); 2411 * you may not use this file except in compliance with the License. 2412 * You may obtain a copy of the License at 2413 * 2414 * http://www.apache.org/licenses/LICENSE-2.0 2415 * 2416 * Unless required by applicable law or agreed to in writing, software 2417 * distributed under the License is distributed on an "AS IS" BASIS, 2418 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2419 * See the License for the specific language governing permissions and 2420 * limitations under the License. 2421 */class Nl{constructor(...e){for(let n=0;n<e.length;++n)if(e[n].length===0)throw new ue(F.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new _t(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}/** 2422 * @license 2423 * Copyright 2020 Google LLC 2424 * 2425 * Licensed under the Apache License, Version 2.0 (the "License"); 2426 * you may not use this file except in compliance with the License. 2427 * You may obtain a copy of the License at 2428 * 2429 * http://www.apache.org/licenses/LICENSE-2.0 2430 * 2431 * Unless required by applicable law or agreed to in writing, software 2432 * distributed under the License is distributed on an "AS IS" BASIS, 2433 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2434 * See the License for the specific language governing permissions and 2435 * limitations under the License. 2436 */class jh{constructor(e){this._methodName=e}}/** 2437 * @license 2438 * Copyright 2017 Google LLC 2439 * 2440 * Licensed under the Apache License, Version 2.0 (the "License"); 2441 * you may not use this file except in compliance with the License. 2442 * You may obtain a copy of the License at 2443 * 2444 * http://www.apache.org/licenses/LICENSE-2.0 2445 * 2446 * Unless required by applicable law or agreed to in writing, software 2447 * distributed under the License is distributed on an "AS IS" BASIS, 2448 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2449 * See the License for the specific language governing permissions and 2450 * limitations under the License. 2451 */class Hh{constructor(e,n){if(!isFinite(e)||e<-90||e>90)throw new ue(F.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(n)||n<-180||n>180)throw new ue(F.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+n);this._lat=e,this._long=n}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(e){return ke(this._lat,e._lat)||ke(this._long,e._long)}}/** 2452 * @license 2453 * Copyright 2017 Google LLC 2454 * 2455 * Licensed under the Apache License, Version 2.0 (the "License"); 2456 * you may not use this file except in compliance with the License. 2457 * You may obtain a copy of the License at 2458 * 2459 * http://www.apache.org/licenses/LICENSE-2.0 2460 * 2461 * Unless required by applicable law or agreed to in writing, software 2462 * distributed under the License is distributed on an "AS IS" BASIS, 2463 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2464 * See the License for the specific language governing permissions and 2465 * limitations under the License. 2466 */const MR=/^__.*__$/;class $R{constructor(e,n,r){this.data=e,this.fieldMask=n,this.fieldTransforms=r}toMutation(e,n){return this.fieldMask!==null?new xr(e,this.data,this.fieldMask,n,this.fieldTransforms):new Co(e,this.data,n,this.fieldTransforms)}}class a_{constructor(e,n,r){this.data=e,this.fieldMask=n,this.fieldTransforms=r}toMutation(e,n){return new xr(e,this.data,this.fieldMask,n,this.fieldTransforms)}}function l_(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw pe()}}class zh{constructor(e,n,r,i,s,o){this.settings=e,this.databaseId=n,this.serializer
2466=r,this.ignoreUndefinedProperties=i,s===void 0&&this.mu(),this.fieldTransforms=s||[],this.fieldMask=o||[]}get path(){return this.settings.path}get fu(){return this.settings.fu}gu(e){return new zh(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}pu(e){var n;const r=(n=this.path)===null||n===void 0?void 0:n.child(e),i=this.gu({path:r,yu:!1});return i.wu(e),i}Su(e){var n;const r=(n=this.path)===null||n===void 0?void 0:n.child(e),i=this.gu({path:r,yu:!1});return i.mu(),i}bu(e){return this.gu({path:void 0,yu:!0})}Du(e){return Ja(e,this.settings.methodName,this.settings.Cu||!1,this.path,this.settings.vu)}contains(e){return this.fieldMask.find(n=>e.isPrefixOf(n))!==void 0||this.fieldTransforms.find(n=>e.isPrefixOf(n.field))!==void 0}mu(){if(this.path)for(let e=0;e<this.path.length;e++)this.wu(this.path.get(e))}wu(e){if(e.length===0)throw this.Du("Document fields must not be empty");if(l_(this.fu)&&MR.test(e))throw this.Du('Document fields cannot begin and end with "__"')}}class FR{constructor(e,n,r){this.databaseId=e,this.ignoreUndefinedProperties=n,this.serializer=r||Ol(e)}Fu(e,n,r,i=!1){return new zh({fu:e,methodName:n,vu:r,path:_t.emptyPath(),yu:!1,Cu:i},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function u_(t){const e=t._freezeSettings(),n=Ol(t._databaseId);return new FR(t._databaseId,!!e.ignoreUndefinedProperties,n)}function UR(t,e,n,r,i,s={}){const o=t.Fu(s.merge||s.mergeFields?2:0,e,n,i);qh("Data must be an object, but it was:",o,r);const l=c_(r,o);let u,c;if(s.merge)u=new qt(o.fieldMask),c=o.fieldTransforms;else if(s.mergeFields){const h=[];for(const p of s.mergeFields){const m=Ic(e,p,n);if(!o.contains(m))throw new ue(F.INVALID_ARGUMENT,`Field '${m}' is specified in your field mask but missing from your input data.`);d_(h,m)||h.push(m)}u=new qt(h),c=o.fieldTransforms.filter(p=>u.covers(p.field))}else u=null,c=o.fieldTransforms;return new $R(new Vt(l),u,c)}class Vl extends jh{_toFieldTransform(e){if(e.fu!==2)throw e.fu===1?e.Du(`${this._methodName}() can only appear at the top level of your update data`):e.Du(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return e.fieldMask.push(e.path),null}isEqual(e){return e instanceof Vl}}function BR(t,e,n,r){const i=t.Fu(1,e,n);qh("Data must be an object, but it was:",i,r);const s=[],o=Vt.empty();di(r,(u,c)=>{const h=Wh(e,u,n);c=ft(c);const p=i.Su(h);if(c instanceof Vl)s.push(h);else{const m=Ml(c,p);m!=null&&(s.push(h),o.set(h,m))}});const l=new qt(s);return new a_(o,l,i.fieldTransforms)}function jR(t,e,n,r,i,s){const o=t.Fu(1,e,n),l=[Ic(e,r,n)],u=[i];if(s.length%2!=0)throw new ue(F.INVALID_ARGUMENT,`Function ${e}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let m=0;m<s.length;m+=2)l.push(Ic(e,s[m])),u.push(s[m+1]);const c=[],h=Vt.empty();for(let m=l.length-1;m>=0;--m)if(!d_(c,l[m])){const y=l[m];let C=u[m];C=ft(C);const R=o.Su(y);if(C instanceof Vl)c.push(y);else{const P=Ml(C,R);P!=null&&(c.push(y),h.set(y,P))}}const p=new qt(c);return new a_(h,p,o.fieldTransforms)}function Ml(t,e){if(h_(t=ft(t)))return qh("Unsupported field value:",e,t),c_(t,e);if(t instanceof jh)return function(r,i){if(!l_(i.fu))throw i.Du(`${r._methodName}() can only be used with update() and set()`);if(!i.path)throw i.Du(`${r._methodName}() is not currently supported inside arrays`);const s=r._toFieldTransform(i);s&&i.fieldTransforms.push(s)}(t,e),null;if(t===void 0&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),t instanceof Array){if(e.settings.yu&&e.fu!==4)throw e.Du("Nested arrays are not supported");return function(r,i){const s=[];let o=0;for(const l of r){let u=Ml(l,i.bu(o));u==null&&(u={nullValue:"NULL_VALUE"}),s.push(u),o++}return{arrayValue:{values:s}}}(t,e)}return function(r,i){if((r=ft(r))===null)return{nullValue:"NULL_VALUE"};if(typeof r=="number")return OC(i.serializer,r);if(typeof r=="boolean")return{booleanValue:r};if(typeof r=="string")return{stringValue:r};if(r instanceof Date){const s=ut.fromDate(r);return{timestampValue:Ya(i.serializer,s)}}if(r instanceof ut){const s=new ut(r.seconds,1e3*Math.floor(r.nanoseconds/1e3));return{timestampValue:Ya(i.serializer,s)}}if(r instanceof Hh)return{geoPointValue:{latitude:r.latitude,longitude:r.longitude}};
2466if(r instanceof Wi)return{bytesValue:Ov(i.serializer,r._byteString)};if(r instanceof sn){const s=i.databaseId,o=r.firestore._databaseId;if(!o.isEqual(s))throw i.Du(`Document reference is for database ${o.projectId}/${o.database} but should be for database ${s.projectId}/${s.database}`);return{referenceValue:Rh(r.firestore._databaseId||i.databaseId,r._key.path)}}throw i.Du(`Unsupported field value: ${Bh(r)}`)}(t,e)}function c_(t,e){const n={};return iv(t)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):di(t,(r,i)=>{const s=Ml(i,e.pu(r));s!=null&&(n[r]=s)}),{mapValue:{fields:n}}}function h_(t){return!(typeof t!="object"||t===null||t instanceof Array||t instanceof Date||t instanceof ut||t instanceof Hh||t instanceof Wi||t instanceof sn||t instanceof jh)}function qh(t,e,n){if(!h_(n)||!function(i){return typeof i=="object"&&i!==null&&(Object.getPrototypeOf(i)===Object.prototype||Object.getPrototypeOf(i)===null)}(n)){const r=Bh(n);throw r==="an object"?e.Du(t+" a custom object"):e.Du(t+" "+r)}}function Ic(t,e,n){if((e=ft(e))instanceof Nl)return e._internalPath;if(typeof e=="string")return Wh(t,e);throw Ja("Field path arguments must be of type string or ",t,!1,void 0,n)}const HR=new RegExp("[~\\*/\\[\\]]");function Wh(t,e,n){if(e.search(HR)>=0)throw Ja(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`,t,!1,void 0,n);try{return new Nl(...e.split("."))._internalPath}catch{throw Ja(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,t,!1,void 0,n)}}function Ja(t,e,n,r,i){const s=r&&!r.isEmpty(),o=i!==void 0;let l=`Function ${e}() called with invalid data`;n&&(l+=" (via `toFirestore()`)"),l+=". ";let u="";return(s||o)&&(u+=" (found",s&&(u+=` in field ${r}`),o&&(u+=` in document ${i}`),u+=")"),new ue(F.INVALID_ARGUMENT,l+t+u)}function d_(t,e){return t.some(n=>n.isEqual(e))}/** 2467 * @license 2468 * Copyright 2020 Google LLC 2469 * 2470 * Licensed under the Apache License, Version 2.0 (the "License"); 2471 * you may not use this file except in compliance with the License. 2472 * You may obtain a copy of the License at 2473 * 2474 * http://www.apache.org/licenses/LICENSE-2.0 2475 * 2476 * Unless required by applicable law or agreed to in writing, software 2477 * distributed under the License is distributed on an "AS IS" BASIS, 2478 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2479 * See the License for the specific language governing permissions and 2480 * limitations under the License. 2481 */class f_{constructor(e,n,r,i,s){this._firestore=e,this._userDataWriter=n,this._key=r,this._document=i,this._converter=s}get id(){return this._key.path.lastSegment()}get ref(){return new sn(this._firestore,this._converter,this._key)}exists(){return this._document!==null}data(){if(this._document){if(this._converter){const e=new zR(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}get(e){if(this._document){const n=this._document.data.field(p_("DocumentSnapshot.get",e));if(n!==null)return this._userDataWriter.convertValue(n)}}}class zR extends f_{data(){return super.data()}}function p_(t,e){return typeof e=="string"?Wh(t,e):e instanceof Nl?e._internalPath:e._delegate._internalPath}/** 2482 * @license 2483 * Copyright 2020 Google LLC 2484 * 2485 * Licensed under the Apache License, Version 2.0 (the "License"); 2486 * you may not use this file except in compliance with the License. 2487 * You may obtain a copy of the License at 2488 * 2489 * http://www.apache.org/licenses/LICENSE-2.0 2490 * 2491 * Unless required by applicable law or agreed to in writing, software 2492 * distributed under the License is distributed on an "AS IS" BASIS, 2493 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2494 * See the License for the specific language governing permissions and 2495 * limitations under the License. 2496 */function qR(t){if(t.limitType==="L"&&t.explicitOrderBy.length===0)throw new ue(F.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class WR{convertValue(e,n="none"){switch(ii(e)){case 0:return null;case 1:return e.booleanValue;case 2:return st(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,n);case 5:return e.stringValue;case 6:return this.convertBytes(ri(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,n);case 10:return this.convertObject(e.mapValue,n);default:throw pe()}}convertObject(e,n){return this.convertObjectMap(e.fields,n)}convertObjectMap(e,n="none"){const r={};return di(e,(i,s)=>{r[i]=this.convertValue(s,n)}),r}convertGeoPoint(e){return new Hh(st(e.latitude),st(e.longitude))}convertArray(e,n){return(e.values||[]).map(r=>this.convertValue(r,n))}convertServerTimestamp(e,n){switch(n){case"previous":const r=Eh(e);return r==null?null:this.convertValue(r,n);case"estimate":return this.convertTimestamp(co(e));default:return null}}convertTimestamp(e){const n=Cr(e);return new ut(n.seconds,n.nanos)}convertDocumentKey(e,n){const r=We.fromString(e);Ue(Vv(r));const i=new ho(r.get(1),r.get(3)),s=new he(r.popFirst(5));return i.isEqual(n)||Un(`Document ${s} contains a document reference within a different database (${i.projectId}/${i.database}) which is not supported. It will be treated as a reference in the current database (${n.projectId}/${n.database}) instead.`),s}}/** 2497 * @license 2498 * Copyright 2020 Google LLC 2499 * 2500 * Licensed under the Apache License, Version 2.0 (the "License");
2501 * you may not use this file except in compliance with the License. 2502 * You may obtain a copy of the License at 2503 * 2504 * http://www.apache.org/licenses/LICENSE-2.0 2505 * 2506 * Unless required by applicable law or agreed to in writing, software 2507 * distributed under the License is distributed on an "AS IS" BASIS, 2508 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2509 * See the License for the specific language governing permissions and 2510 * limitations under the License. 2511 */function KR(t,e,n){let r;return r=t?t.toFirestore(e):e,r}/** 2512 * @license 2513 * Copyright 2020 Google LLC 2514 * 2515 * Licensed under the Apache License, Version 2.0 (the "License"); 2516 * you may not use this file except in compliance with the License. 2517 * You may obtain a copy of the License at 2518 * 2519 * http://www.apache.org/licenses/LICENSE-2.0 2520 * 2521 * Unless required by applicable law or agreed to in writing, software 2522 * distributed under the License is distributed on an "AS IS" BASIS, 2523 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2524 * See the License for the specific language governing permissions and 2525 * limitations under the License. 2526 */class la{constructor(e,n){this.hasPendingWrites=e,this.fromCache=n}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class GR extends f_{constructor(e,n,r,i,s,o){super(e,n,r,i,o),this._firestore=e,this._firestoreImpl=e,this.metadata=s}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const n=new Pa(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(n,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,n={}){if(this._document){const r=this._document.data.field(p_("DocumentSnapshot.get",e));if(r!==null)return this._userDataWriter.convertValue(r,n.serverTimestamps)}}}class Pa extends GR{data(e={}){return super.data(e)}}class QR{constructor(e,n,r,i){this._firestore=e,this._userDataWriter=n,this._snapshot=i,this.metadata=new la(i.hasPendingWrites,i.fromCache),this.query=r}get docs(){const e=[];return this.forEach(n=>e.push(n)),e}get size(){return this._snapshot.docs.size}get empty(){return this.size===0}forEach(e,n){this._snapshot.docs.forEach(r=>{e.call(n,new Pa(this._firestore,this._userDataWriter,r.key,r,new la(this._snapshot.mutatedKeys.has(r.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){const n=!!e.includeMetadataChanges;if(n&&this._snapshot.excludesMetadataChanges)throw new ue(F.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===n||(this._cachedChanges=function(i,s){if(i._snapshot.oldDocs.isEmpty()){let o=0;return i._snapshot.docChanges.map(l=>{const u=new Pa(i._firestore,i._userDataWriter,l.doc.key,l.doc,new la(i._snapshot.mutatedKeys.has(l.doc.key),i._snapshot.fromCache),i.query.converter);return l.doc,{type:"added",doc:u,oldIndex:-1,newIndex:o++}})}{let o=i._snapshot.oldDocs;return i._snapshot.docChanges.filter(l=>s||l.type!==3).map(l=>{const u=new Pa(i._firestore,i._userDataWriter,l.doc.key,l.doc,new la(i._snapshot.mutatedKeys.has(l.doc.key),i._snapshot.fromCache),i.query.converter);let c=-1,h=-1;return l.type!==0&&(c=o.indexOf(l.doc.key),o=o.delete(l.doc.key)),l.type!==1&&(o=o.add(l.doc),h=o.indexOf(l.doc.key)),{type:YR(l.type),doc:u,oldIndex:c,newIndex:h}})}}(this,n),this._cachedChangesIncludeMetadataChanges=n),this._cachedChanges}}function YR(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return pe()}}class XR extends WR{constructor(e){super(),this.firestore=e}convertBytes(e){return new Wi(e)}convertReference(e){const n=this.convertDocumentKey(e,this.firestore._databaseId);return new sn(this.firestore,null,n)}}function JR(t){t=si(t,Ll);const e=si(t.firestore,ko),n=s_(e),r=new XR(e);return qR(t._query),kR(n,t._query).then(i=>new QR(e,r,t,i))}function ZR(t,e,n,...r){t=si(t,sn);const i=si(t.firestore,ko),s=u_(i);let o;return o=typeof(e=ft(e))=="string"||e instanceof Nl?jR(s,"updateDoc",t._key,e,n,r):BR(s,"updateDoc",t._key,e),Kh(i,[o.toMutation(t._key,hn.exists(!0))])}function Fk(t){return Kh(si(t.firestore,ko),[new Sh(t._key,hn.none())])}function Uk(t,e){const n=si(t.firestore,ko),r=i_(t),i=KR(t.converter,e);return Kh(n,[UR(u_(t.firestore),"addDoc",r._key,i,t.converter!==null,{}).toMutation(r._key,hn.exists(!1))]).then(()=>r)}function Kh(t,e){return function(r,i){const s=new br;return r.asyncQueue.enqueueAndForget(async()=>gR(await RR(r),i,s)),s.promise}(s_(t),e)}(function(e,n=!0){(function(i){Qi=i})(ci),ei(new Ar("firestore",(r,{instanceIdentifier:i,options:s})=>{const o=r.getProvider("app").getImmediate(),l=new ko(new KS(r.getProvider("auth-internal")),new XS(r.getProvider("app-check-internal")),function(c,h){if(!Object.prototype.hasOwnProperty.apply(c.options,["projectId"]))throw new ue(F.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new ho(c.options.projectId,h)}(o,i),o);return s=Object.assign({useFetchStreams:n},s),l._setSettings(s),l},"PUBLIC").setMultipleInstances(!0)),_n(Kp,"4.6.3",e),_n(Kp,"4.6.3","esm2017")})();/** 2527 * @license 2528 * Copyright 2017 Google LLC 2529 * 2530 * Licensed under the Apache License, Version 2.0 (the "License");
2531 * you may not use this file except in compliance with the License. 2532 * You may obtain a copy of the License at 2533 * 2534 * http://www.apache.org/licenses/LICENSE-2.0 2535 * 2536 * Unless required by applicable law or agreed to in writing, software 2537 * distributed under the License is distributed on an "AS IS" BASIS, 2538 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2539 * See the License for the specific language governing permissions and 2540 * limitations under the License. 2541 */const m_="firebasestorage.googleapis.com",g_="storageBucket",e2=2*60*1e3,t2=10*60*1e3;/** 2542 * @license 2543 * Copyright 2017 Google LLC 2544 * 2545 * Licensed under the Apache License, Version 2.0 (the "License"); 2546 * you may not use this file except in compliance with the License. 2547 * You may obtain a copy of the License at 2548 * 2549 * http://www.apache.org/licenses/LICENSE-2.0 2550 * 2551 * Unless required by applicable law or agreed to in writing, software 2552 * distributed under the License is distributed on an "AS IS" BASIS, 2553 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2554 * See the License for the specific language governing permissions and 2555 * limitations under the License. 2556 */class et extends Pn{constructor(e,n,r=0){super(ku(e),`Firebase Storage: ${n} (${ku(e)})`),this.status_=r,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,et.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return ku(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message=`${this._baseMessage} 2557${this.customData.serverResponse}`:this.message=this._baseMessage}}var Ze;(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"})(Ze||(Ze={}));function ku(t){return"storage/"+t}function Gh(){const t="An unknown error occurred, please check the error payload for server response.";return new et(Ze.UNKNOWN,t)}function n2(t){return new et(Ze.OBJECT_NOT_FOUND,"Object '"+t+"' does not exist.")}function r2(t){return new et(Ze.QUOTA_EXCEEDED,"Quota for bucket '"+t+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}function i2(){const t="User is not authenticated, please authenticate using Firebase Authentication and try again.";return new et(Ze.UNAUTHENTICATED,t)}function s2(){return new et(Ze.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project.")}function o2(t){return new et(Ze.UNAUTHORIZED,"User does not have permission to access '"+t+"'.")}function a2(){return new et(Ze.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function l2(){return new et(Ze.CANCELED,"User canceled the upload/download.")}function u2(t){return new et(Ze.INVALID_URL,"Invalid URL '"+t+"'.")}function c2(t){return new et(Ze.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+t+"'.")}function h2(){return new et(Ze.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+g_+"' property when initializing the app?")}function d2(){return new et(Ze.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function f2(){return new et(Ze.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")}function p2(t){return new et(Ze.UNSUPPORTED_ENVIRONMENT,`${t} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`)}function Ac(t){return new et(Ze.INVALID_ARGUMENT,t)}function y_(){return new et(Ze.APP_DELETED,"The Firebase app was deleted.")}function m2(t){return new et(Ze.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 js(t,e){return new et(Ze.INVALID_FORMAT,"String does not match format '"+t+"': "+e)}function vs(t){throw new et(Ze.INTERNAL_ERROR,"Internal error: "+t)}/** 2558 * @license 2559 * Copyright 2017 Google LLC 2560 * 2561 * Licensed under the Apache License, Version 2.0 (the "License");
2562 * you may not use this file except in compliance with the License. 2563 * You may obtain a copy of the License at 2564 * 2565 * http://www.apache.org/licenses/LICENSE-2.0 2566 * 2567 * Unless required by applicable law or agreed to in writing, software 2568 * distributed under the License is distributed on an "AS IS" BASIS, 2569 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2570 * See the License for the specific language governing permissions and 2571 * limitations under the License. 2572 */class Wt{constructor(e,n){this.bucket=e,this.path_=n}get path(){return this.path_}get isRoot(){return this.path.length===0}fullServerUrl(){const e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(e,n){let r;try{r=Wt.makeFromUrl(e,n)}catch{return new Wt(e,"")}if(r.path==="")return r;throw c2(e)}static makeFromUrl(e,n){let r=null;const i="([A-Za-z0-9.\\-_]+)";function s(j){j.path.charAt(j.path.length-1)==="/"&&(j.path_=j.path_.slice(0,-1))}const o="(/(.*))?$",l=new RegExp("^gs://"+i+o,"i"),u={bucket:1,path:3};function c(j){j.path_=decodeURIComponent(j.path)}const h="v[A-Za-z0-9_]+",p=n.replace(/[.]/g,"\\."),m="(/([^?#]*).*)?$",y=new RegExp(`^https?://${p}/${h}/b/${i}/o${m}`,"i"),C={bucket:1,path:3},R=n===m_?"(?:storage.googleapis.com|storage.cloud.google.com)":n,P="([^?#]*)",k=new RegExp(`^https?://${R}/${i}/${P}`,"i"),N=[{regex:l,indices:u,postModify:s},{regex:y,indices:C,postModify:c},{regex:k,indices:{bucket:1,path:2},postModify:c}];for(let j=0;j<N.length;j++){const Z=N[j],z=Z.regex.exec(e);if(z){const A=z[Z.indices.bucket];let v=z[Z.indices.path];v||(v=""),r=new Wt(A,v),Z.postModify(r);break}}if(r==null)throw u2(e);return r}}class g2{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(e=!1){}}/** 2573 * @license 2574 * Copyright 2017 Google LLC 2575 * 2576 * Licensed under the Apache License, Version 2.0 (the "License"); 2577 * you may not use this file except in compliance with the License. 2578 * You may obtain a copy of the License at 2579 * 2580 * http://www.apache.org/licenses/LICENSE-2.0 2581 * 2582 * Unless required by applicable law or agreed to in writing, software 2583 * distributed under the License is distributed on an "AS IS" BASIS, 2584 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2585 * See the License for the specific language governing permissions and 2586 * limitations under the License. 2587 */function y2(t,e,n){let r=1,i=null,s=null,o=!1,l=0;function u(){return l===2}let c=!1;function h(...P){c||(c=!0,e.apply(null,P))}function p(P){i=setTimeout(()=>{i=null,t(y,u())},P)}function m(){s&&clearTimeout(s)}function y(P,...k){if(c){m();return}if(P){m(),h.call(null,P,...k);return}if(u()||o){m(),h.call(null,P,...k);return}r<64&&(r*=2);let N;l===1?(l=2,N=0):N=(r+Math.random())*1e3,p(N)}let C=!1;function R(P){C||(C=!0,m(),!c&&(i!==null?(P||(l=2),clearTimeout(i),p(0)):P||(l=1)))}return p(0),s=setTimeout(()=>{o=!0,R(!0)},n),R}function v2(t){t(!1)}/** 2588 * @license 2589 * Copyright 2017 Google LLC 2590 * 2591 * Licensed under the Apache License, Version 2.0 (the "License"); 2592 * you may not use this file except in compliance with the License. 2593 * You may obtain a copy of the License at 2594 * 2595 * http://www.apache.org/licenses/LICENSE-2.0 2596 * 2597 * Unless required by applicable law or agreed to in writing, software 2598 * distributed under the License is distributed on an "AS IS" BASIS, 2599 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2600 * See the License for the specific language governing permissions and 2601 * limitations under the License. 2602 */function _2(t){return t!==void 0}function b2(t){return typeof t=="object"&&!Array.isArray(t)}function Qh(t){return typeof t=="string"||t instanceof String}function Cm(t){return Yh()&&t instanceof Blob}function Yh(){return typeof Blob<"u"}function Pm(t,e,n,r){if(r<e)throw Ac(`Invalid value for '${t}'. Expected ${e} or greater.`);if(r>n)throw Ac(`Invalid value for '${t}'. Expected ${n} or less.`)}/** 2603 * @license 2604 * Copyright 2017 Google LLC 2605 * 2606 * Licensed under the Apache License, Version 2.0 (the "License");
2607 * you may not use this file except in compliance with the License. 2608 * You may obtain a copy of the License at 2609 * 2610 * http://www.apache.org/licenses/LICENSE-2.0 2611 * 2612 * Unless required by applicable law or agreed to in writing, software 2613 * distributed under the License is distributed on an "AS IS" BASIS, 2614 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2615 * See the License for the specific language governing permissions and 2616 * limitations under the License. 2617 */function Xh(t,e,n){let r=e;return n==null&&(r=`https://${e}`),`${n}://${r}/v0${t}`}function v_(t){const e=encodeURIComponent;let n="?";for(const r in t)if(t.hasOwnProperty(r)){const i=e(r)+"="+e(t[r]);n=n+i+"&"}return n=n.slice(0,-1),n}/** 2618 * @license 2619 * Copyright 2017 Google LLC 2620 * 2621 * Licensed under the Apache License, Version 2.0 (the "License"); 2622 * you may not use this file except in compliance with the License. 2623 * You may obtain a copy of the License at 2624 * 2625 * http://www.apache.org/licenses/LICENSE-2.0 2626 * 2627 * Unless required by applicable law or agreed to in writing, software 2628 * distributed under the License is distributed on an "AS IS" BASIS, 2629 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2630 * See the License for the specific language governing permissions and 2631 * limitations under the License. 2632 */var Xr;(function(t){t[t.NO_ERROR=0]="NO_ERROR",t[t.NETWORK_ERROR=1]="NETWORK_ERROR",t[t.ABORT=2]="ABORT"})(Xr||(Xr={}));/** 2633 * @license 2634 * Copyright 2022 Google LLC 2635 * 2636 * Licensed under the Apache License, Version 2.0 (the "License"); 2637 * you may not use this file except in compliance with the License. 2638 * You may obtain a copy of the License at 2639 * 2640 * http://www.apache.org/licenses/LICENSE-2.0 2641 * 2642 * Unless required by applicable law or agreed to in writing, software 2643 * distributed under the License is distributed on an "AS IS" BASIS, 2644 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2645 * See the License for the specific language governing permissions and 2646 * limitations under the License. 2647 */function w2(t,e){const n=t>=500&&t<600,i=[408,429].indexOf(t)!==-1,s=e.indexOf(t)!==-1;return n||i||s}/** 2648 * @license 2649 * Copyright 2017 Google LLC 2650 * 2651 * Licensed under the Apache License, Version 2.0 (the "License"); 2652 * you may not use this file except in compliance with the License. 2653 * You may obtain a copy of the License at 2654 * 2655 * http://www.apache.org/licenses/LICENSE-2.0 2656 * 2657 * Unless required by applicable law or agreed to in writing, software 2658 * distributed under the License is distributed on an "AS IS" BASIS, 2659 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2660 * See the License for the specific language governing permissions and 2661 * limitations under the License. 2662 */class E2{constructor(e,n,r,i,s,o,l,u,c,h,p,m=!0){this.url_=e,this.method_=n,this.headers_=r,this.body_=i,this.successCodes_=s,this.additionalRetryCodes_=o,this.callback_=l,this.errorCallback_=u,this.timeout_=c,this.progressCallback_=h,this.connectionFactory_=p,this.retry=m,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((y,C)=>{this.resolve_=y,this.reject_=C,this.start_()})}start_(){const e=(r,i)=>{if(i){r(!1,new ua(!1,null,!0));return}const s=this.connectionFactory_();this.pendingConnection_=s;const o=l=>{const u=l.loaded,c=l.lengthComputable?l.total:-1;this.progressCallback_!==null&&this.progressCallback_(u,c)};this.progressCallback_!==null&&s.addUploadProgressListener(o),s.send(this.url_,this.method_,this.body_,this.headers_).then(()=>{this.progressCallback_!==null&&s.removeUploadProgressListener(o),this.pendingConnection_=null;const l=s.getErrorCode()===Xr.NO_ERROR,u=s.getStatus();if(!l||w2(u,this.additionalRetryCodes_)&&this.retry){const h=s.getErrorCode()===Xr.ABORT;r(!1,new ua(!1,null,h));return}const c=this.successCodes_.indexOf(u)!==-1;r(!0,new ua(c,s))})},n=(r,i)=>{const s=this.resolve_,o=this.reject_,l=i.connection;if(i.wasSuccessCode)try{const u=this.callback_(l,l.getResponse());_2(u)?s(u):s()}catch(u){o(u)}else if(l!==null){const u=Gh();u.serverResponse=l.getErrorText(),this.errorCallback_?o(this.errorCallback_(l,u)):o(u)}else if(i.canceled){const u=this.appDelete_?y_():l2();o(u)}else{const u=a2();o(u)}};this.canceled_?n(!1,new ua(!1,null,!0)):this.backoffId_=y2(e,n,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,this.backoffId_!==null&&v2(this.backoffId_),this.pendingConnection_!==null&&this.pendingConnection_.abort()}}class ua{constructor(e,n,r){this.wasSuccessCode=e,this.connection=n,this.canceled=!!r}}function T2(t,e){e!==null&&e.length>0&&(t.Authorization="Firebase "+e)}function I2(t,e){t["X-Firebase-Storage-Version"]="webjs/"+(e??"AppManager")}function A2(t,e){e&&(t["X-Firebase-GMPID"]=e)}function S2(t,e){e!==null&&(t["X-Firebase-AppCheck"]=e)}
2662function C2(t,e,n,r,i,s,o=!0){const l=v_(t.urlParams),u=t.url+l,c=Object.assign({},t.headers);return A2(c,e),T2(c,n),I2(c,s),S2(c,r),new E2(u,t.method,c,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,i,o)}/** 2663 * @license 2664 * Copyright 2017 Google LLC 2665 * 2666 * Licensed under the Apache License, Version 2.0 (the "License"); 2667 * you may not use this file except in compliance with the License. 2668 * You may obtain a copy of the License at 2669 * 2670 * http://www.apache.org/licenses/LICENSE-2.0 2671 * 2672 * Unless required by applicable law or agreed to in writing, software 2673 * distributed under the License is distributed on an "AS IS" BASIS, 2674 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2675 * See the License for the specific language governing permissions and 2676 * limitations under the License. 2677 */function P2(){return typeof BlobBuilder<"u"?BlobBuilder:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:void 0}function R2(...t){const e=P2();if(e!==void 0){const n=new e;for(let r=0;r<t.length;r++)n.append(t[r]);return n.getBlob()}else{if(Yh())return new Blob(t);throw new et(Ze.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}}function O2(t,e,n){return t.webkitSlice?t.webkitSlice(e,n):t.mozSlice?t.mozSlice(e,n):t.slice?t.slice(e,n):null}/** 2678 * @license 2679 * Copyright 2021 Google LLC 2680 * 2681 * Licensed under the Apache License, Version 2.0 (the "License"); 2682 * you may not use this file except in compliance with the License. 2683 * You may obtain a copy of the License at 2684 * 2685 * http://www.apache.org/licenses/LICENSE-2.0 2686 * 2687 * Unless required by applicable law or agreed to in writing, software 2688 * distributed under the License is distributed on an "AS IS" BASIS, 2689 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2690 * See the License for the specific language governing permissions and 2691 * limitations under the License. 2692 */function k2(t){if(typeof atob>"u")throw p2("base-64");return atob(t)}/** 2693 * @license 2694 * Copyright 2017 Google LLC 2695 * 2696 * Licensed under the Apache License, Version 2.0 (the "License"); 2697 * you may not use this file except in compliance with the License. 2698 * You may obtain a copy of the License at 2699 * 2700 * http://www.apache.org/licenses/LICENSE-2.0 2701 * 2702 * Unless required by applicable law or agreed to in writing, software 2703 * distributed under the License is distributed on an "AS IS" BASIS, 2704 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2705 * See the License for the specific language governing permissions and 2706 * limitations under the License. 2707 */const vn={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};class Du{constructor(e,n){this.data=e,this.contentType=n||null}}function D2(t,e){switch(t){case vn.RAW:return new Du(__(e));case vn.BASE64:case vn.BASE64URL:return new Du(b_(t,e));case vn.DATA_URL:return new Du(L2(e),N2(e))}throw Gh()}function __(t){const e=[];for(let n=0;n<t.length;n++){let r=t.charCodeAt(n);if(r<=127)e.push(r);else if(r<=2047)e.push(192|r>>6,128|r&63);else if((r&64512)===55296)if(!(n<t.length-1&&(t.charCodeAt(n+1)&64512)===56320))e.push(239,191,189);else{const s=r,o=t.charCodeAt(++n);r=65536|(s&1023)<<10|o&1023,e.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|r&63)}else(r&64512)===56320?e.push(239,191,189):e.push(224|r>>12,128|r>>6&63,128|r&63)}return new Uint8Array(e)}function x2(t){let e;try{e=decodeURIComponent(t)}catch{throw js(vn.DATA_URL,"Malformed data URL.")}return __(e)}function b_(t,e){switch(t){case vn.BASE64:{const i=e.indexOf("-")!==-1,s=e.indexOf("_")!==-1;if(i||s)throw js(t,"Invalid character '"+(i?"-":"_")+"' found: is it base64url encoded?");break}case vn.BASE64URL:{const i=e.indexOf("+")!==-1,s=e.indexOf("/")!==-1;if(i||s)throw js(t,"Invalid character '"+(i?"+":"/")+"' found: is it base64 encoded?");e=e.replace(/-/g,"+").replace(/_/g,"/");break}}let n;try{n=k2(e)}catch(i){throw i.message.includes("polyfill")?i:js(t,"Invalid character found")}const r=new Uint8Array(n.length);for(let i=0;i<n.length;i++)r[i]=n.charCodeAt(i);return r}class w_{constructor(e){this.base64=!1,this.contentType=null;const n=e.match(/^data:([^,]+)?,/);if(n===null)throw js(vn.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");const r=n[1]||null;r!=null&&(this.base64=V2(r,";base64"),this.contentType=this.base64?r.substring(0,r.length-7):r),this.rest=e.substring(e.indexOf(",")+1)}}function L2(t){const e=new w_(t);return e.base64?b_(vn.BASE64,e.rest):x2(e.rest)}function N2(t){return new w_(t).contentType}function V2(t,e){return t.length>=e.length?t.substring(t.length-e.length)===e:!1}/** 2708 * @license 2709 * Copyright 2017 Google LLC 2710 * 2711 * Licensed under the Apache License, Version 2.0 (the "License");
2712 * you may not use this file except in compliance with the License. 2713 * You may obtain a copy of the License at 2714 * 2715 * http://www.apache.org/licenses/LICENSE-2.0 2716 * 2717 * Unless required by applicable law or agreed to in writing, software 2718 * distributed under the License is distributed on an "AS IS" BASIS, 2719 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2720 * See the License for the specific language governing permissions and 2721 * limitations under the License. 2722 */class ur{constructor(e,n){let r=0,i="";Cm(e)?(this.data_=e,r=e.size,i=e.type):e instanceof ArrayBuffer?(n?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),r=this.data_.length):e instanceof Uint8Array&&(n?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),r=e.length),this.size_=r,this.type_=i}size(){return this.size_}type(){return this.type_}slice(e,n){if(Cm(this.data_)){const r=this.data_,i=O2(r,e,n);return i===null?null:new ur(i)}else{const r=new Uint8Array(this.data_.buffer,e,n-e);return new ur(r,!0)}}static getBlob(...e){if(Yh()){const n=e.map(r=>r instanceof ur?r.data_:r);return new ur(R2.apply(null,n))}else{const n=e.map(o=>Qh(o)?D2(vn.RAW,o).data:o.data_);let r=0;n.forEach(o=>{r+=o.byteLength});const i=new Uint8Array(r);let s=0;return n.forEach(o=>{for(let l=0;l<o.length;l++)i[s++]=o[l]}),new ur(i,!0)}}uploadData(){return this.data_}}/** 2723 * @license 2724 * Copyright 2017 Google LLC 2725 * 2726 * Licensed under the Apache License, Version 2.0 (the "License"); 2727 * you may not use this file except in compliance with the License. 2728 * You may obtain a copy of the License at 2729 * 2730 * http://www.apache.org/licenses/LICENSE-2.0 2731 * 2732 * Unless required by applicable law or agreed to in writing, software 2733 * distributed under the License is distributed on an "AS IS" BASIS, 2734 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2735 * See the License for the specific language governing permissions and 2736 * limitations under the License. 2737 */function E_(t){let e;try{e=JSON.parse(t)}catch{return null}return b2(e)?e:null}/** 2738 * @license 2739 * Copyright 2017 Google LLC 2740 * 2741 * Licensed under the Apache License, Version 2.0 (the "License"); 2742 * you may not use this file except in compliance with the License. 2743 * You may obtain a copy of the License at 2744 * 2745 * http://www.apache.org/licenses/LICENSE-2.0 2746 * 2747 * Unless required by applicable law or agreed to in writing, software 2748 * distributed under the License is distributed on an "AS IS" BASIS, 2749 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2750 * See the License for the specific language governing permissions and 2751 * limitations under the License. 2752 */function M2(t){if(t.length===0)return null;const e=t.lastIndexOf("/");return e===-1?"":t.slice(0,e)}function $2(t,e){const n=e.split("/").filter(r=>r.length>0).join("/");return t.length===0?n:t+"/"+n}function T_(t){const e=t.lastIndexOf("/",t.length-2);return e===-1?t:t.slice(e+1)}/** 2753 * @license 2754 * Copyright 2017 Google LLC 2755 * 2756 * Licensed under the Apache License, Version 2.0 (the "License"); 2757 * you may not use this file except in compliance with the License. 2758 * You may obtain a copy of the License at 2759 * 2760 * http://www.apache.org/licenses/LICENSE-2.0 2761 * 2762 * Unless required by applicable law or agreed to in writing, software 2763 * distributed under the License is distributed on an "AS IS" BASIS, 2764 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2765 * See the License for the specific language governing permissions and 2766 * limitations under the License. 2767 */function F2(t,e){return e}class Dt{constructor(e,n,r,i){this.server=e,this.local=n||e,this.writable=!!r,this.xform=i||F2}}let ca=null;function U2(t){return!Qh(t)||t.length<2?t:T_(t)}function I_(){if(ca)return ca;const t=[];t.push(new Dt("bucket")),t.push(new Dt("generation")),t.push(new Dt("metageneration")),t.push(new Dt("name","fullPath",!0));function e(s,o){return U2(o)}const n=new Dt("name");n.xform=e,t.push(n);function r(s,o){return o!==void 0?Number(o):o}const i=new Dt("size");return i.xform=r,t.push(i),t.push(new Dt("timeCreated")),t.push(new Dt("updated")),t.push(new Dt("md5Hash",null,!0)),t.push(new Dt("cacheControl",null,!0)),t.push(new Dt("contentDisposition",null,!0)),t.push(new Dt("contentEncoding",null,!0)),t.push(new Dt("contentLanguage",null,!0)),t.push(new Dt("contentType",null,!0)),t.push(new Dt("metadata","customMetadata",!0)),ca=t,ca}function B2(t,e){function n(){const r=t.bucket,i=t.fullPath,s=new Wt(r,i);return e._makeStorageReference(s)}Object.defineProperty(t,"ref",{get:n})}function j2(t,e,n){const r={};r.type="file";const i=n.length;for(let s=0;s<i;s++){const o=n[s];r[o.local]=o.xform(r,e[o.server])}return B2(r,t),r}function A_(t,e,n){const r=E_(e);return r===null?null:j2(t,r,n)}function H2(t,e,n,r){const i=E_(e);if(i===null||!Qh(i.downloadTokens))return null;const s=i.downloadTokens;if(s.length===0)return null;const o=encodeURIComponent;return s.split(",").map(c=>{const h=t.bucket,p=t.fullPath,m="/b/"+o(h)+"/o/"+o(p),y=Xh(m,n,r),C=v_({alt:"media",token:c});return y+C})[0]}function z2(t,e){const n={},r=e.length;for(let i=0;i<r;i++){const s=e[i];s.writable&&(n[s.server]=t[s.local])}return JSON.stringify(n)}class S_{constructor(e,n,r,i){this.url=e,this.method=n,this.handler=r,this.timeout=i,this.urlParam
vendor: 1,504 bytes, lines 2767-2782
2767s={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}/** 2768 * @license 2769 * Copyright 2017 Google LLC 2770 * 2771 * Licensed under the Apache License, Version 2.0 (the "License"); 2772 * you may not use this file except in compliance with the License. 2773 * You may obtain a copy of the License at 2774 * 2775 * http://www.apache.org/licenses/LICENSE-2.0 2776 * 2777 * Unless required by applicable law or agreed to in writing, software 2778 * distributed under the License is distributed on an "AS IS" BASIS, 2779 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2780 * See the License for the specific language governing permissions and 2781 * limitations under the License. 2782 */function C_(t){if(!t)throw Gh()}function q2(t,e){function n(r,i){const s=A_(t,i,e);return C_(s!==null),s}return n}function W2(t,e){function n(r,i){const s=A_(t,i,e);return C_(s!==null),H2(s,i,t.host,t._protocol)}return n}function P_(t){function e(n,r){let i;return n.getStatus()===401?n.getErrorText().includes("Firebase App Check token is invalid")?i=s2():i=i2():n.getStatus()===402?i=r2(t.bucket):n.getStatus()===403?i=o2(t.path):i=r,i.status=n.getStatus(),i.serverResponse=r.serverResponse,i}return e}function K2(t){const e=P_(t);function n(r,i){let s=e(r,i);return r.getStatus()===404&&(s=n2(t.path)),s.serverResponse=i.serverResponse,s}return n}function G2(t,e,n){const r=e.fullServerUrl(),i=Xh(r,t.host,t._protocol),s="GET",o=t.maxOperationRetryTime,l=ne
2782w S_(i,s,W2(t,n),o);return l.errorHandler=K2(e),l}function Q2(t,e){return t&&t.contentType||e&&e.type()||"application/octet-stream"}function Y2(t,e,n){const r=Object.assign({},n);return r.fullPath=t.path,r.size=e.size(),r.contentType||(r.contentType=Q2(null,e)),r}function X2(t,e,n,r,i){const s=e.bucketOnlyServerUrl(),o={"X-Goog-Upload-Protocol":"multipart"};function l(){let N="";for(let j=0;j<2;j++)N=N+Math.random().toString().slice(2);return N}const u=l();o["Content-Type"]="multipart/related; boundary="+u;const c=Y2(e,r,i),h=z2(c,n),p="--"+u+`\r 2783Content-Type: application/json; charset=utf-8\r 2784\r 2785`+h+`\r 2786--`+u+`\r 2787Content-Type: `+c.contentType+`\r 2788\r 2789`,m=`\r 2790--`+u+"--",y=ur.getBlob(p,r,m);if(y===null)throw d2();const C={name:c.fullPath},R=Xh(s,t.host,t._protocol),P="POST",k=t.maxUploadRetryTime,x=new S_(R,P,q2(t,n),k);return x.urlParams=C,x.headers=o,x.body=y.uploadData(),x.errorHandler=P_(e),x}class J2{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=Xr.NO_ERROR,this.sendPromise_=new Promise(e=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=Xr.ABORT,e()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=Xr.NETWORK_ERROR,e()}),this.xhr_.addEventListener("load",()=>{e()})})}send(e,n,r,i){if(this.sent_)throw vs("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(n,e,!0),i!==void 0)for(const s in i)i.hasOwnProperty(s)&&this.xhr_.setRequestHeader(s,i[s].toString());return r!==void 0?this.xhr_.send(r):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw vs("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw vs("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw vs("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw vs("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(e){return this.xhr_.getResponseHeader(e)}addUploadProgressListener(e){this.xhr_.upload!=null&&this.xhr_.upload.addEventListener("progress",e)}removeUploadProgressListener(e){this.xhr_.upload!=null&&this.xhr_.upload.removeEventListener("progress",e)}}class Z2 extends J2{initXhr(){this.xhr_.responseType="text"}}function R_(){return new Z2}/** 2791 * @license 2792 * Copyright 2019 Google LLC 2793 * 2794 * Licensed under the Apache License, Version 2.0 (the "License"); 2795 * you may not use this file except in compliance with the License. 2796 * You may obtain a copy of the License at 2797 * 2798 * http://www.apache.org/licenses/LICENSE-2.0 2799 * 2800 * Unless required by applicable law or agreed to in writing, software 2801 * distributed under the License is distributed on an "AS IS" BASIS, 2802 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2803 * See the License for the specific language governing permissions and 2804 * limitations under the License. 2805 */class oi{constructor(e,n){this._service=e,n instanceof Wt?this._location=n:this._location=Wt.makeFromUrl(n,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,n){return new oi(e,n)}get root(){const e=new Wt(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return T_(this._location.path)}get storage(){return this._service}get parent(){const e=M2(this._location.path);if(e===null)return null;const n=new Wt(this._location.bucket,e);return new oi(this._service,n)}_throwIfRoot(e){if(this._location.path==="")throw m2(e)}}function eO(t,e,n){t._throwIfRoot("uploadBytes");const r=X2(t.storage,t._location,I_(),new ur(e,!0),n);return t.storage.makeRequestWithTokens(r,R_).then(i=>({metadata:i,ref:t}))}function tO(t){t._throwIfRoot("getDownloadURL");const e=G2(t.storage,t._location,I_());return t.storage.makeRequestWithTokens(e,R_).then(n=>{if(n===null)throw f2();return n})}function nO(t,e){const n=$2(t._location.path,e),r=new Wt(t._location.bucket,n);return new oi(t.storage,r)}/** 2806 * @license 2807 * Copyright 2017 Google LLC 2808 * 2809 * Licensed under the Apache License, Version 2.0 (the "License");
2810 * you may not use this file except in compliance with the License. 2811 * You may obtain a copy of the License at 2812 * 2813 * http://www.apache.org/licenses/LICENSE-2.0 2814 * 2815 * Unless required by applicable law or agreed to in writing, software 2816 * distributed under the License is distributed on an "AS IS" BASIS, 2817 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2818 * See the License for the specific language governing permissions and 2819 * limitations under the License. 2820 */function rO(t){return/^[A-Za-z]+:\/\//.test(t)}function iO(t,e){return new oi(t,e)}function O_(t,e){if(t instanceof Jh){const n=t;if(n._bucket==null)throw h2();const r=new oi(n,n._bucket);return e!=null?O_(r,e):r}else return e!==void 0?nO(t,e):t}function sO(t,e){if(e&&rO(e)){if(t instanceof Jh)return iO(t,e);throw Ac("To use ref(service, url), the first argument must be a Storage instance.")}else return O_(t,e)}function Rm(t,e){const n=e==null?void 0:e[g_];return n==null?null:Wt.makeFromBucketSpec(n,t)}function oO(t,e,n,r={}){t.host=`${e}:${n}`,t._protocol="http";const{mockUserToken:i}=r;i&&(t._overrideAuthToken=typeof i=="string"?i:Ey(i,t.app.options.projectId))}class Jh{constructor(e,n,r,i,s){this.app=e,this._authProvider=n,this._appCheckProvider=r,this._url=i,this._firebaseVersion=s,this._bucket=null,this._host=m_,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=e2,this._maxUploadRetryTime=t2,this._requests=new Set,i!=null?this._bucket=Wt.makeFromBucketSpec(i,this._host):this._bucket=Rm(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,this._url!=null?this._bucket=Wt.makeFromBucketSpec(this._url,e):this._bucket=Rm(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){Pm("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){Pm("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;const e=this._authProvider.getImmediate({optional:!0});if(e){const n=await e.getToken();if(n!==null)return n.accessToken}return null}async _getAppCheckToken(){const e=this._appCheckProvider.getImmediate({optional:!0});return e?(await e.getToken()).token:null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(e=>e.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new oi(this,e)}_makeRequest(e,n,r,i,s=!0){if(this._deleted)return new g2(y_());{const o=C2(e,this._appId,r,i,n,this._firebaseVersion,s);return this._requests.add(o),o.getPromise().then(()=>this._requests.delete(o),()=>this._requests.delete(o)),o}}async makeRequestWithTokens(e,n){const[r,i]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,n,r,i).getPromise()}}const Om="@firebase/storage",km="0.12.5";/** 2821 * @license 2822 * Copyright 2020 Google LLC 2823 * 2824 * Licensed under the Apache License, Version 2.0 (the "License"); 2825 * you may not use this file except in compliance with the License. 2826 * You may obtain a copy of the License at 2827 * 2828 * http://www.apache.org/licenses/LICENSE-2.0 2829 * 2830 * Unless required by applicable law or agreed to in writing, software 2831 * distributed under the License is distributed on an "AS IS" BASIS, 2832 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2833 * See the License for the specific language governing permissions and 2834 * limitations under the License. 2835 */const k_="storage";function Bk(t,e,n){return t=ft(t),eO(t,e,n)}function jk(t){return t=ft(t),tO(t)}function Hk(t,e){return t=ft(t),sO(t,e)}function aO(t=hh(),e){t=ft(t);const r=bl(t,k_).getImmediate({identifier:e}),i=_y("storage");return i&&lO(r,...i),r}function lO(t,e,n,r={}){oO(t,e,n,r)}function uO(t,{instanceIdentifier:e}){const n=t.getProvider("app").getImmediate(),r=t.getProvider("auth-internal"),i=t.getProvider("app-check-internal");return new Jh(n,r,i,e,ci)}function cO(){ei(new Ar(k_,uO,"PUBLIC").setMultipleInstances(!0)),_n(Om,km,""),_n(Om,km,"esm2017")}cO();const hO={apiKey:"AIzaSyC8oKlXm8viK4dVZt4xo4T0AWSnACVMM_M",authDomain:"almau-psychologist.firebaseapp.com",projectId:"almau-psychologist",storageBucket:"almau-psychologist.appspot.com",messagingSenderId:"291718757462",appId:"1:291718757462:web:8c60f6b6efef12ef100ff7"},D_=ch(hO),Dm=VR(D_);aO(D_);function Zh(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function x_(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const dO=x_,L_=new To("auth","Firebase",x_());/** 2836 * @license 2837 * Copyright 2020 Google LLC 2838 * 2839 * Licensed under the Apache License, Version 2.0 (the "License");
2840 * you may not use this file except in compliance with the License. 2841 * You may obtain a copy of the License at 2842 * 2843 * http://www.apache.org/licenses/LICENSE-2.0 2844 * 2845 * Unless required by applicable law or agreed to in writing, software 2846 * distributed under the License is distributed on an "AS IS" BASIS, 2847 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2848 * See the License for the specific language governing permissions and 2849 * limitations under the License. 2850 */const Za=new lh("@firebase/auth");function fO(t,...e){Za.logLevel<=Ee.WARN&&Za.warn(`Auth (${ci}): ${t}`,...e)}function Ra(t,...e){Za.logLevel<=Ee.ERROR&&Za.error(`Auth (${ci}): ${t}`,...e)}/** 2851 * @license 2852 * Copyright 2020 Google LLC 2853 * 2854 * Licensed under the Apache License, Version 2.0 (the "License"); 2855 * you may not use this file except in compliance with the License. 2856 * You may obtain a copy of the License at 2857 * 2858 * http://www.apache.org/licenses/LICENSE-2.0 2859 * 2860 * Unless required by applicable law or agreed to in writing, software 2861 * distributed under the License is distributed on an "AS IS" BASIS, 2862 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2863 * See the License for the specific language governing permissions and 2864 * limitations under the License. 2865 */function Cn(t,...e){throw td(t,...e)}function dn(t,...e){return td(t,...e)}function ed(t,e,n){const r=Object.assign(Object.assign({},dO()),{[e]:n});return new To("auth","Firebase",r).create(e,{appName:t.name})}function Jr(t){return ed(t,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function pO(t,e,n){const r=n;if(!(e instanceof r))throw r.name!==e.constructor.name&&Cn(t,"argument-error"),ed(t,"argument-error",`Type of ${e.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function td(t,...e){if(typeof t!="string"){const n=e[0],r=[...e.slice(1)];return r[0]&&(r[0].appName=t.name),t._errorFactory.create(n,...r)}return L_.create(t,...e)}function fe(t,e,...n){if(!t)throw td(e,...n)}function Vn(t){const e="INTERNAL ASSERTION FAILED: "+t;throw Ra(e),new Error(e)}function jn(t,e){t||Vn(e)}/** 2866 * @license 2867 * Copyright 2020 Google LLC 2868 * 2869 * Licensed under the Apache License, Version 2.0 (the "License"); 2870 * you may not use this file except in compliance with the License. 2871 * You may obtain a copy of the License at 2872 * 2873 * http://www.apache.org/licenses/LICENSE-2.0 2874 * 2875 * Unless required by applicable law or agreed to in writing, software 2876 * distributed under the License is distributed on an "AS IS" BASIS, 2877 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2878 * See the License for the specific language governing permissions and 2879 * limitations under the License. 2880 */function Sc(){var t;return typeof self<"u"&&((t=self.location)===null||t===void 0?void 0:t.href)||""}function mO(){return xm()==="http:"||xm()==="https:"}function xm(){var t;return typeof self<"u"&&((t=self.location)===null||t===void 0?void 0:t.protocol)||null}/** 2881 * @license 2882 * Copyright 2020 Google LLC 2883 * 2884 * Licensed under the Apache License, Version 2.0 (the "License"); 2885 * you may not use this file except in compliance with the License. 2886 * You may obtain a copy of the License at 2887 * 2888 * http://www.apache.org/licenses/LICENSE-2.0 2889 * 2890 * Unless required by applicable law or agreed to in writing, software 2891 * distributed under the License is distributed on an "AS IS" BASIS, 2892 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2893 * See the License for the specific language governing permissions and 2894 * limitations under the License. 2895 */function gO(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(mO()||Aw()||"connection"in navigator)?navigator.onLine:!0}function yO(){if(typeof navigator>"u")return null;const t=navigator;return t.languages&&t.languages[0]||t.language||null}/** 2896 * @license 2897 * Copyright 2020 Google LLC 2898 * 2899 * Licensed under the Apache License, Version 2.0 (the "License");
2900 * you may not use this file except in compliance with the License. 2901 * You may obtain a copy of the License at 2902 * 2903 * http://www.apache.org/licenses/LICENSE-2.0 2904 * 2905 * Unless required by applicable law or agreed to in writing, software 2906 * distributed under the License is distributed on an "AS IS" BASIS, 2907 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2908 * See the License for the specific language governing permissions and 2909 * limitations under the License. 2910 */class Do{constructor(e,n){this.shortDelay=e,this.longDelay=n,jn(n>e,"Short delay should be less than long delay!"),this.isMobile=Tw()||Sw()}get(){return gO()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/** 2911 * @license 2912 * Copyright 2020 Google LLC 2913 * 2914 * Licensed under the Apache License, Version 2.0 (the "License"); 2915 * you may not use this file except in compliance with the License. 2916 * You may obtain a copy of the License at 2917 * 2918 * http://www.apache.org/licenses/LICENSE-2.0 2919 * 2920 * Unless required by applicable law or agreed to in writing, software 2921 * distributed under the License is distributed on an "AS IS" BASIS, 2922 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2923 * See the License for the specific language governing permissions and 2924 * limitations under the License. 2925 */function nd(t,e){jn(t.emulator,"Emulator should always be set here");const{url:n}=t.emulator;return e?`${n}${e.startsWith("/")?e.slice(1):e}`:n}/** 2926 * @license 2927 * Copyright 2020 Google LLC 2928 * 2929 * Licensed under the Apache License, Version 2.0 (the "License"); 2930 * you may not use this file except in compliance with the License. 2931 * You may obtain a copy of the License at 2932 * 2933 * http://www.apache.org/licenses/LICENSE-2.0 2934 * 2935 * Unless required by applicable law or agreed to in writing, software 2936 * distributed under the License is distributed on an "AS IS" BASIS, 2937 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2938 * See the License for the specific language governing permissions and 2939 * limitations under the License. 2940 */class N_{static initialize(e,n,r){this.fetchImpl=e,n&&(this.headersImpl=n),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;Vn("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;Vn("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;Vn("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/** 2941 * @license 2942 * Copyright 2020 Google LLC 2943 * 2944 * Licensed under the Apache License, Version 2.0 (the "License"); 2945 * you may not use this file except in compliance with the License. 2946 * You may obtain a copy of the License at 2947 * 2948 * http://www.apache.org/licenses/LICENSE-2.0 2949 * 2950 * Unless required by applicable law or agreed to in writing, software 2951 * distributed under the License is distributed on an "AS IS" BASIS, 2952 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2953 * See the License for the specific language governing permissions and 2954 * limitations under the License. 2955 */const vO={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-rec
2955aptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};/** 2956 * @license 2957 * Copyright 2020 Google LLC 2958 * 2959 * Licensed under the Apache License, Version 2.0 (the "License"); 2960 * you may not use this file except in compliance with the License. 2961 * You may obtain a copy of the License at 2962 * 2963 * http://www.apache.org/licenses/LICENSE-2.0 2964 * 2965 * Unless required by applicable law or agreed to in writing, software 2966 * distributed under the License is distributed on an "AS IS" BASIS, 2967 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2968 * See the License for the specific language governing permissions and 2969 * limitations under the License. 2970 */const _O=new Do(3e4,6e4);function rd(t,e){return t.tenantId&&!e.tenantId?Object.assign(Object.assign({},e),{tenantId:t.tenantId}):e}async function Ji(t,e,n,r,i={}){return V_(t,i,async()=>{let s={},o={};r&&(e==="GET"?o=r:s={body:JSON.stringify(r)});const l=Io(Object.assign({key:t.config.apiKey},o)).slice(1),u=await t._getAdditionalHeaders();return u["Content-Type"]="application/json",t.languageCode&&(u["X-Firebase-Locale"]=t.languageCode),N_.fetch()(M_(t,t.config.apiHost,n,l),Object.assign({method:e,headers:u,referrerPolicy:"no-referrer"},s))})}async function V_(t,e,n){t._canInitEmulator=!1;const r=Object.assign(Object.assign({},vO),e);try{const i=new wO(t),s=await Promise.race([n(),i.promise]);i.clearNetworkTimeout();const o=await s.json();if("needConfirmation"in o)throw ha(t,"account-exists-with-different-credential",o);if(s.ok&&!("errorMessage"in o))return o;{const l=s.ok?o.errorMessage:o.error.message,[u,c]=l.split(" : ");if(u==="FEDERATED_USER_ID_ALREADY_LINKED")throw ha(t,"credential-already-in-use",o);if(u==="EMAIL_EXISTS")throw ha(t,"email-already-in-use",o);if(u==="USER_DISABLED")throw ha(t,"user-disabled",o);const h=r[u]||u.toLowerCase().replace(/[_\s]+/g,"-");if(c)throw ed(t,h,c);Cn(t,h)}}catch(i){if(i instanceof Pn)throw i;Cn(t,"network-request-failed",{message:String(i)})}}async function bO(t,e,n,r,i={}){const s=await Ji(t,e,n,r,i);return"mfaPendingCredential"in s&&Cn(t,"multi-factor-auth-required",{_serverResponse:s}),s}function M_(t,e,n,r){const i=`${e}${n}?${r}`;return t.config.emulator?nd(t.config,i):`${t.config.apiScheme}://${i}`}class wO{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(dn(this.auth,"network-request-failed")),_O.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function ha(t,e,n){const r={appName:t.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=dn(t,e,r);return i.customData._tokenResponse=n,i}/** 2971 * @license 2972 * Copyright 2020 Google LLC 2973 * 2974 * Licensed under the Apache License, Version 2.0 (the "License"); 2975 * you may not use this file except in compliance with the License. 2976 * You may obtain a copy of the License at 2977 * 2978 * http://www.apache.org/licenses/LICENSE-2.0 2979 * 2980 * Unless required by applicable law or agreed to in writing, software 2981 * distributed under the License is distributed on an "AS IS" BASIS, 2982 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2983 * See the License for the specific language governing permissions and 2984 * limitations under the License. 2985 */async function EO(t,e){return Ji(t,"POST","/v1/accounts:delete",e)}async function $_(t,e){return Ji(t,"POST","/v1/accounts:lookup",e)}/** 2986 * @license 2987 * Copyright 2020 Google LLC 2988 * 2989 * Licensed under the Apache License, Version 2.0 (the "License"); 2990 * you may not use this file except in compliance with the License. 2991 * You may obtain a copy of the License at 2992 * 2993 * http://www.apache.org/licenses/LICENSE-2.0 2994 * 2995 * Unless required by applicable law or agreed to in writing, software 2996 * distributed under the License is distributed on an "AS IS" BASIS, 2997 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2998 * See the License for the specific language governing permissions and 2999 * limitations under the License. 3000 */function Hs(t){if(t)try{const e=new Date(Number(t));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}async function TO(t,e=!1){const n=ft(t),r=await n.getIdToken(e),i=id(r);fe(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const s=typeof i.firebase=="object"?i.firebase:void 0,o=s==null?void 0:s.sign_in_provider;return{claims:i,token:r,authTime:Hs(xu(i.auth_time)),issuedAtTime:Hs(xu(i.iat)),expirationTime:Hs(xu(i.exp)),signInProvider:o||null,signInSecondFactor:(s==null?void 0:s.sign_in_second_factor)||null}}function xu(t){return Number(t)*1e3}function id(t){const[e,n,r]=t.split(".");if(e===void 0||n===void 0||r===void 0)return Ra("JWT malformed, contained fewer than 3 sections"),null;try{const i=yy(n);return i?JSON.parse(i):(Ra("Failed to decode base64 JWT payload"),null)}catch(i){return Ra("Caught error parsing JWT payload as JSON",i==null?void 0:i.toString()),null}}function Lm(t){const e=id(t);return fe(e,"internal-error"),fe(typeof e.exp<"u","internal-error"),fe(typeof e.iat
3000<"u","internal-error"),Number(e.exp)-Number(e.iat)}/** 3001 * @license 3002 * Copyright 2020 Google LLC 3003 * 3004 * Licensed under the Apache License, Version 2.0 (the "License"); 3005 * you may not use this file except in compliance with the License. 3006 * You may obtain a copy of the License at 3007 * 3008 * http://www.apache.org/licenses/LICENSE-2.0 3009 * 3010 * Unless required by applicable law or agreed to in writing, software 3011 * distributed under the License is distributed on an "AS IS" BASIS, 3012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3013 * See the License for the specific language governing permissions and 3014 * limitations under the License. 3015 */async function go(t,e,n=!1){if(n)return e;try{return await e}catch(r){throw r instanceof Pn&&IO(r)&&t.auth.currentUser===t&&await t.auth.signOut(),r}}function IO({code:t}){return t==="auth/user-disabled"||t==="auth/user-token-expired"}/** 3016 * @license 3017 * Copyright 2020 Google LLC 3018 * 3019 * Licensed under the Apache License, Version 2.0 (the "License"); 3020 * you may not use this file except in compliance with the License. 3021 * You may obtain a copy of the License at 3022 * 3023 * http://www.apache.org/licenses/LICENSE-2.0 3024 * 3025 * Unless required by applicable law or agreed to in writing, software 3026 * distributed under the License is distributed on an "AS IS" BASIS, 3027 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3028 * See the License for the specific language governing permissions and 3029 * limitations under the License. 3030 */class AO{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(e){var n;if(e){const r=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),r}else{this.errorBackoff=3e4;const i=((n=this.user.stsTokenManager.expirationTime)!==null&&n!==void 0?n:0)-Date.now()-3e5;return Math.max(0,i)}}schedule(e=!1){if(!this.isRunning)return;const n=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){(e==null?void 0:e.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/** 3031 * @license 3032 * Copyright 2020 Google LLC 3033 * 3034 * Licensed under the Apache License, Version 2.0 (the "License"); 3035 * you may not use this file except in compliance with the License. 3036 * You may obtain a copy of the License at 3037 * 3038 * http://www.apache.org/licenses/LICENSE-2.0 3039 * 3040 * Unless required by applicable law or agreed to in writing, software 3041 * distributed under the License is distributed on an "AS IS" BASIS, 3042 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3043 * See the License for the specific language governing permissions and 3044 * limitations under the License. 3045 */class Cc{constructor(e,n){this.createdAt=e,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=Hs(this.lastLoginAt),this.creationTime=Hs(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/** 3046 * @license 3047 * Copyright 2019 Google LLC 3048 * 3049 * Licensed under the Apache License, Version 2.0 (the "License"); 3050 * you may not use this file except in compliance with the License. 3051 * You may obtain a copy of the License at 3052 * 3053 * http://www.apache.org/licenses/LICENSE-2.0 3054 * 3055 * Unless required by applicable law or agreed to in writing, software 3056 * distributed under the License is distributed on an "AS IS" BASIS, 3057 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3058 * See the License for the specific language governing permissions and 3059 * limitations under the License. 3060 */async function el(t){var e;const n=t.auth,r=await t.getIdToken(),i=await go(t,$_(n,{idToken:r}));fe(i==null?void 0:i.users.length,n,"internal-error");const s=i.users[0];t._notifyReloadListener(s);const o=!((e=s.providerUserInfo)===null||e===void 0)&&e.length?F_(s.providerUserInfo):[],l=CO(t.providerData,o),u=t.isAnonymous,c=!(t.email&&s.passwordHash)&&!(l!=null&&l.length),h=u?c:!1,p={uid:s.localId,displayName:s.displayName||null,photoURL:s.photoUrl||null,email:s.email||null,emailVerified:s.emailVerified||!1,phoneNumber:s.phoneNumber||null,tenantId:s.tenantId||null,providerData:l,metadata:new Cc(s.createdAt,s.lastLoginAt),isAnonymous:h};Object.assign(t,p)}async function SO(t){const e=ft(t);await el(e),await e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)}function CO(t,e){return[...t.filter(r=>!e.some(i=>i.providerId===r.providerId)),...e]}function F_(t){return t.map(e=>{var{providerId:n}=e,r=Zh(e,["providerId"]);
3060return{providerId:n,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}/** 3061 * @license 3062 * Copyright 2020 Google LLC 3063 * 3064 * Licensed under the Apache License, Version 2.0 (the "License"); 3065 * you may not use this file except in compliance with the License. 3066 * You may obtain a copy of the License at 3067 * 3068 * http://www.apache.org/licenses/LICENSE-2.0 3069 * 3070 * Unless required by applicable law or agreed to in writing, software 3071 * distributed under the License is distributed on an "AS IS" BASIS, 3072 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3073 * See the License for the specific language governing permissions and 3074 * limitations under the License. 3075 */async function PO(t,e){const n=await V_(t,{},async()=>{const r=Io({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:i,apiKey:s}=t.config,o=M_(t,i,"/v1/token",`key=${s}`),l=await t._getAdditionalHeaders();return l["Content-Type"]="application/x-www-form-urlencoded",N_.fetch()(o,{method:"POST",headers:l,body:r})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function RO(t,e){return Ji(t,"POST","/v2/accounts:revokeToken",rd(t,e))}/** 3076 * @license 3077 * Copyright 2020 Google LLC 3078 * 3079 * Licensed under the Apache License, Version 2.0 (the "License"); 3080 * you may not use this file except in compliance with the License. 3081 * You may obtain a copy of the License at 3082 * 3083 * http://www.apache.org/licenses/LICENSE-2.0 3084 * 3085 * Unless required by applicable law or agreed to in writing, software 3086 * distributed under the License is distributed on an "AS IS" BASIS, 3087 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3088 * See the License for the specific language governing permissions and 3089 * limitations under the License. 3090 */class Di{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){fe(e.idToken,"internal-error"),fe(typeof e.idToken<"u","internal-error"),fe(typeof e.refreshToken<"u","internal-error");const n="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):Lm(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,n)}updateFromIdToken(e){fe(e.length!==0,"internal-error");const n=Lm(e);this.updateTokensAndExpiration(e,null,n)}async getToken(e,n=!1){return!n&&this.accessToken&&!this.isExpired?this.accessToken:(fe(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(e,n){const{accessToken:r,refreshToken:i,expiresIn:s}=await PO(e,n);this.updateTokensAndExpiration(r,i,Number(s))}updateTokensAndExpiration(e,n,r){this.refreshToken=n||null,this.accessToken=e||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(e,n){const{refreshToken:r,accessToken:i,expirationTime:s}=n,o=new Di;return r&&(fe(typeof r=="string","internal-error",{appName:e}),o.refreshToken=r),i&&(fe(typeof i=="string","internal-error",{appName:e}),o.accessToken=i),s&&(fe(typeof s=="number","internal-error",{appName:e}),o.expirationTime=s),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Di,this.toJSON())}_performRefresh(){return Vn("not implemented")}}/** 3091 * @license 3092 * Copyright 2020 Google LLC 3093 * 3094 * Licensed under the Apache License, Version 2.0 (the "License"); 3095 * you may not use this file except in compliance with the License. 3096 * You may obtain a copy of the License at 3097 * 3098 * http://www.apache.org/licenses/LICENSE-2.0 3099 * 3100 * Unless required by applicable law or agreed to in writing, software 3101 * distributed under the License is distributed on an "AS IS" BASIS, 3102 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3103 * See the License for the specific language governing permissions and 3104 * limitations under the License. 3105 */function nr(t,e){fe(typeof t=="string"||typeof t>"u","internal-error",{appName:e})}class Mn{constructor(e){var{uid:n,auth:r,stsTokenManager:i}=e,s=Zh(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new AO(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=s.displayName||null,this.email=s.email||null,this.emailVerified=s.emailVerified||!1,this.phoneNumber=s.phoneNumber||null,this.photoURL=s.photoURL||null,this.isAnonymous=s.isAnonymous||!1,this.tenantId=s.tenantId||null,this.providerData=s.providerData?[...s.providerData]:[],this.metadata=new Cc(s.createdAt||void 0,s.lastLoginAt||void 0)}async getIdToken(e){const n=await go(this,this.stsTokenManager.getToken(this.auth,e));return fe(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(e){return TO(this,e)}reload(){return SO(this)}_assign(e){this!==e&&(fe(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.ph
3105otoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(n=>Object.assign({},n)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const n=new Mn(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(e){fe(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,n=!1){let r=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),r=!0),n&&await el(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(Nn(this.auth.app))return Promise.reject(Jr(this.auth));const e=await this.getIdToken();return await go(this,EO(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,n){var r,i,s,o,l,u,c,h;const p=(r=n.displayName)!==null&&r!==void 0?r:void 0,m=(i=n.email)!==null&&i!==void 0?i:void 0,y=(s=n.phoneNumber)!==null&&s!==void 0?s:void 0,C=(o=n.photoURL)!==null&&o!==void 0?o:void 0,R=(l=n.tenantId)!==null&&l!==void 0?l:void 0,P=(u=n._redirectEventId)!==null&&u!==void 0?u:void 0,k=(c=n.createdAt)!==null&&c!==void 0?c:void 0,x=(h=n.lastLoginAt)!==null&&h!==void 0?h:void 0,{uid:N,emailVerified:j,isAnonymous:Z,providerData:z,stsTokenManager:A}=n;fe(N&&A,e,"internal-error");const v=Di.fromJSON(this.name,A);fe(typeof N=="string",e,"internal-error"),nr(p,e.name),nr(m,e.name),fe(typeof j=="boolean",e,"internal-error"),fe(typeof Z=="boolean",e,"internal-error"),nr(y,e.name),nr(C,e.name),nr(R,e.name),nr(P,e.name),nr(k,e.name),nr(x,e.name);const b=new Mn({uid:N,auth:e,email:m,emailVerified:j,displayName:p,isAnonymous:Z,photoURL:C,phoneNumber:y,tenantId:R,stsTokenManager:v,createdAt:k,lastLoginAt:x});return z&&Array.isArray(z)&&(b.providerData=z.map(T=>Object.assign({},T))),P&&(b._redirectEventId=P),b}static async _fromIdTokenResponse(e,n,r=!1){const i=new Di;i.updateFromServerResponse(n);const s=new Mn({uid:n.localId,auth:e,stsTokenManager:i,isAnonymous:r});return await el(s),s}static async _fromGetAccountInfoResponse(e,n,r){const i=n.users[0];fe(i.localId!==void 0,"internal-error");const s=i.providerUserInfo!==void 0?F_(i.providerUserInfo):[],o=!(i.email&&i.passwordHash)&&!(s!=null&&s.length),l=new Di;l.updateFromIdToken(r);const u=new Mn({uid:i.localId,auth:e,stsTokenManager:l,isAnonymous:o}),c={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:s,metadata:new Cc(i.createdAt,i.lastLoginAt),isAnonymous:!(i.email&&i.passwordHash)&&!(s!=null&&s.length)};return Object.assign(u,c),u}}/** 3106 * @license 3107 * Copyright 2020 Google LLC 3108 * 3109 * Licensed under the Apache License, Version 2.0 (the "License"); 3110 * you may not use this file except in compliance with the License. 3111 * You may obtain a copy of the License at 3112 * 3113 * http://www.apache.org/licenses/LICENSE-2.0 3114 * 3115 * Unless required by applicable law or agreed to in writing, softw
3115are 3116 * distributed under the License is distributed on an "AS IS" BASIS, 3117 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3118 * See the License for the specific language governing permissions and 3119 * limitations under the License. 3120 */const Nm=new Map;function $n(t){jn(t instanceof Function,"Expected a class definition");let e=Nm.get(t);return e?(jn(e instanceof t,"Instance stored in cache mismatched with class"),e):(e=new t,Nm.set(t,e),e)}/** 3121 * @license 3122 * Copyright 2019 Google LLC 3123 * 3124 * Licensed under the Apache License, Version 2.0 (the "License"); 3125 * you may not use this file except in compliance with the License. 3126 * You may obtain a copy of the License at 3127 * 3128 * http://www.apache.org/licenses/LICENSE-2.0 3129 * 3130 * Unless required by applicable law or agreed to in writing, software 3131 * distributed under the License is distributed on an "AS IS" BASIS, 3132 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3133 * See the License for the specific language governing permissions and 3134 * limitations under the License. 3135 */class U_{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,n){this.storage[e]=n}async _get(e){const n=this.storage[e];return n===void 0?null:n}async _remove(e){delete this.storage[e]}_addListener(e,n){}_removeListener(e,n){}}U_.type="NONE";const Vm=U_;/** 3136 * @license 3137 * Copyright 2019 Google LLC 3138 * 3139 * Licensed under the Apache License, Version 2.0 (the "License"); 3140 * you may not use this file except in compliance with the License. 3141 * You may obtain a copy of the License at 3142 * 3143 * http://www.apache.org/licenses/LICENSE-2.0 3144 * 3145 * Unless required by applicable law or agreed to in writing, software 3146 * distributed under the License is distributed on an "AS IS" BASIS, 3147 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3148 * See the License for the specific language governing permissions and 3149 * limitations under the License. 3150 */function Oa(t,e,n){return`firebase:${t}:${e}:${n}`}class xi{constructor(e,n,r){this.persistence=e,this.auth=n,this.userKey=r;const{config:i,name:s}=this.auth;this.fullUserKey=Oa(this.userKey,i.apiKey,s),this.fullPersistenceKey=Oa("persistence",i.apiKey,s),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);return e?Mn._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const n=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,n)return this.setCurrentUser(n)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,n,r="authUser"){if(!n.length)return new xi($n(Vm),e,r);const i=(await Promise.all(n.map(async c=>{if(await c._isAvailable())return c}))).filter(c=>c);let s=i[0]||$n(Vm);const o=Oa(r,e.config.apiKey,e.name);let l=null;for(const c of n)try{const h=await c._get(o);if(h){const p=Mn._fromJSON(e,h);c!==s&&(l=p),s=c;break}}catch{}const u=i.filter(c=>c._shouldAllowMigration);return!s._shouldAllowMigration||!u.length?new xi(s,e,r):(s=u[0],l&&await s._set(o,l.toJSON()),await Promise.all(n.map(async c=>{if(c!==s)try{await c._remove(o)}catch{}})),new xi(s,e,r))}}/** 3151 * @license 3152 * Copyright 2020 Google LLC 3153 * 3154 * Licensed under the Apache License, Version 2.0 (the "License"); 3155 * you may not use this file except in compliance with the License. 3156 * You may obtain a copy of the License at 3157 * 3158 * http://www.apache.org/licenses/LICENSE-2.0 3159 * 3160 * Unless required by applicable law or agreed to in writing, software 3161 * distributed under the License is distributed on an "AS IS" BASIS, 3162 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3163 * See the License for the specific language governing permissions and 3164 * limitations under the License. 3165 */function Mm(t){const e=t.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(H_(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(B_(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(q_(e))return"Blackberry";if(W_(e))return"Webos";if(sd(e))return"Safari";if((e.includes("chrome/")||j_(e))&&!e.includes("edge/"))return"Chrome";if(z_(e))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=t.match(n);if((r==null?void 0:r.length)===2)return r[1]}return"Other"}function B_(t=wt()){return/firefox\//i.test(t)}function sd(t=wt()){const e=t.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function j_(t=wt()){return/crios\//i.test(t)}function H_(t=wt()){return/iemobile/i.test(t)}function z_(t=wt()){return/android/i.test(t)}function q_(t=wt()){return/blackberry/i.test(t)}function W_(t=wt()){return/webos/i.test(t)}function $l(t=wt()){return/iphone|ipad|ipod/i.test(t)||/macintosh/i.test(t)&&/mobile/i.test(t)}function OO(t=wt()){var e;
3165return $l(t)&&!!(!((e=window.navigator)===null||e===void 0)&&e.standalone)}function kO(){return Cw()&&document.documentMode===10}function K_(t=wt()){return $l(t)||z_(t)||W_(t)||q_(t)||/windows phone/i.test(t)||H_(t)}function DO(){try{return!!(window&&window!==window.top)}catch{return!1}}/** 3166 * @license 3167 * Copyright 2020 Google LLC 3168 * 3169 * Licensed under the Apache License, Version 2.0 (the "License"); 3170 * you may not use this file except in compliance with the License. 3171 * You may obtain a copy of the License at 3172 * 3173 * http://www.apache.org/licenses/LICENSE-2.0 3174 * 3175 * Unless required by applicable law or agreed to in writing, software 3176 * distributed under the License is distributed on an "AS IS" BASIS, 3177 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3178 * See the License for the specific language governing permissions and 3179 * limitations under the License. 3180 */function G_(t,e=[]){let n;switch(t){case"Browser":n=Mm(wt());break;case"Worker":n=`${Mm(wt())}-${t}`;break;default:n=t}const r=e.length?e.join(","):"FirebaseCore-web";return`${n}/JsCore/${ci}/${r}`}/** 3181 * @license 3182 * Copyright 2022 Google LLC 3183 * 3184 * Licensed under the Apache License, Version 2.0 (the "License"); 3185 * you may not use this file except in compliance with the License. 3186 * You may obtain a copy of the License at 3187 * 3188 * http://www.apache.org/licenses/LICENSE-2.0 3189 * 3190 * Unless required by applicable law or agreed to in writing, software 3191 * distributed under the License is distributed on an "AS IS" BASIS, 3192 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3193 * See the License for the specific language governing permissions and 3194 * limitations under the License. 3195 */class xO{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,n){const r=s=>new Promise((o,l)=>{try{const u=e(s);o(u)}catch(u){l(u)}});r.onAbort=n,this.queue.push(r);const i=this.queue.length-1;return()=>{this.queue[i]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const n=[];try{for(const r of this.queue)await r(e),r.onAbort&&n.push(r.onAbort)}catch(r){n.reverse();for(const i of n)try{i()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r==null?void 0:r.message})}}}/** 3196 * @license 3197 * Copyright 2023 Google LLC 3198 * 3199 * Licensed under the Apache License, Version 2.0 (the "License"); 3200 * you may not use this file except in compliance with the License. 3201 * You may obtain a copy of the License at 3202 * 3203 * http://www.apache.org/licenses/LICENSE-2.0 3204 * 3205 * Unless required by applicable law or agreed to in writing, software 3206 * distributed under the License is distributed on an "AS IS" BASIS, 3207 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3208 * See the License for the specific language governing permissions and 3209 * limitations under the License. 3210 */async function LO(t,e={}){return Ji(t,"GET","/v2/passwordPolicy",rd(t,e))}/** 3211 * @license 3212 * Copyright 2023 Google LLC 3213 * 3214 * Licensed under the Apache License, Version 2.0 (the "License"); 3215 * you may not use this file except in compliance with the License. 3216 * You may obtain a copy of the License at 3217 * 3218 * http://www.apache.org/licenses/LICENSE-2.0 3219 * 3220 * Unless required by applicable law or agreed to in writing, software 3221 * distributed under the License is distributed on an "AS IS" BASIS, 3222 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3223 * See the License for the specific language governing permissions and 3224 * limitations under the License. 3225 */const NO=6;class VO{constructor(e){var n,r,i,s;const o=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(n=o.minPasswordLength)!==null&&n!==void 0?n:NO,o.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=o.maxPasswordLength),o.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=o.containsLowercaseCharacter),o.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=o.containsUppercaseCharacter),o.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=o.containsNumericCharacter),o.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=o.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(i=(r=e.allowedNonAlphanumericCharacters)===null||r===void 0?void 0:r.join(""))!==null&&i!==void 0?i:"",this.forceUpgradeOnSignin=(s=e.forceUpgradeOnSignin)!==null&&s!==void 0?s:!1,this.schemaVersion=e.schemaVersion}validatePassword(e){var n,r,i,s,o,l;const u={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,u),this.validatePasswordCharacterOptions(e,u),u.isValid&&
3225(u.isValid=(n=u.meetsMinPasswordLength)!==null&&n!==void 0?n:!0),u.isValid&&(u.isValid=(r=u.meetsMaxPasswordLength)!==null&&r!==void 0?r:!0),u.isValid&&(u.isValid=(i=u.containsLowercaseLetter)!==null&&i!==void 0?i:!0),u.isValid&&(u.isValid=(s=u.containsUppercaseLetter)!==null&&s!==void 0?s:!0),u.isValid&&(u.isValid=(o=u.containsNumericCharacter)!==null&&o!==void 0?o:!0),u.isValid&&(u.isValid=(l=u.containsNonAlphanumericCharacter)!==null&&l!==void 0?l:!0),u}validatePasswordLengthOptions(e,n){const r=this.customStrengthOptions.minPasswordLength,i=this.customStrengthOptions.maxPasswordLength;r&&(n.meetsMinPasswordLength=e.length>=r),i&&(n.meetsMaxPasswordLength=e.length<=i)}validatePasswordCharacterOptions(e,n){this.updatePasswordCharacterOptionsStatuses(n,!1,!1,!1,!1);let r;for(let i=0;i<e.length;i++)r=e.charAt(i),this.updatePasswordCharacterOptionsStatuses(n,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(e,n,r,i,s){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=i)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=s))}}/** 3226 * @license 3227 * Copyright 2020 Google LLC 3228 * 3229 * Licensed under the Apache License, Version 2.0 (the "License"); 3230 * you may not use this file except in compliance with the License. 3231 * You may obtain a copy of the License at 3232 * 3233 * http://www.apache.org/licenses/LICENSE-2.0 3234 * 3235 * Unless required by applicable law or agreed to in writing, software 3236 * distributed under the License is distributed on an "AS IS" BASIS, 3237 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3238 * See the License for the specific language governing permissions and 3239 * limitations under the License. 3240 */class MO{constructor(e,n,r,i){this.app=e,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=i,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new $m(this),this.idTokenSubscription=new $m(this),this.beforeStateQueue=new xO(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=L_,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=i.sdkClientVersion}_initializeWithPersistence(e,n){return n&&(this._popupRedirectResolver=$n(n)),this._initializationPromise=this.queue(async()=>{var r,i;if(!this._deleted&&(this.persistenceManager=await xi.create(this,e),!this._deleted)){if(!((r=this._popupRedirectResolver)===null||r===void 0)&&r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(n),this.lastNotifiedUid=((i=this.currentUser)===null||i===void 0?void 0:i.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUserFromIdToken(e){try{const n=await $_(this,{idToken:e}),r=await Mn._fromGetAccountInfoResponse(this,n,e);await this.directlySetCurrentUser(r)}catch(n){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",n),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){var n;if(Nn(this.app)){const o=this.app.settings.authIdToken;return o?new Promise(l=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(o).then(l,l))}):this.directlySetCurrentUser(null)}const r=await this.assertedPersistence.getCurrentUser();let i=r,s=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const o=(n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId,l=i==null?void 0:i._redirectEventId,u=await this.tryRedirectSignIn(e);(!o||o===l)&&(u!=null&&u.user)&&(i=u.user,s=!0)}if(!i)return this.directlySetCurrentUser(null);
3240if(!i._redirectEventId){if(s)try{await this.beforeStateQueue.runMiddleware(i)}catch(o){i=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(o))}return i?this.reloadAndSetCurrentUserOrClear(i):this.directlySetCurrentUser(null)}return fe(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===i._redirectEventId?this.directlySetCurrentUser(i):this.reloadAndSetCurrentUserOrClear(i)}async tryRedirectSignIn(e){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(e){try{await el(e)}catch(n){if((n==null?void 0:n.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=yO()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if(Nn(this.app))return Promise.reject(Jr(this));const n=e?ft(e):null;return n&&fe(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))}async _updateCurrentUser(e,n=!1){if(!this._deleted)return e&&fe(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),n||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return Nn(this.app)?Promise.reject(Jr(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return Nn(this.app)?Promise.reject(Jr(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence($n(e))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const n=this._getPasswordPolicyInternal();return n.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):n.validatePassword(e)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await LO(this),n=new VO(e);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new To("auth","Firebase",e())}onAuthStateChanged(e,n,r){return this.registerStateListener(this.authStateSubscription,e,n,r)}beforeAuthStateChanged(e,n){return this.beforeStateQueue.pushCallback(e,n)}onIdTokenChanged(e,n,r){return this.registerStateListener(this.idTokenSubscription,e,n,r)}authStateReady(){return new Promise((e,n)=>{if(this.currentUser)e();else{const r=this.onAuthStateChanged(()=>{r(),e()},n)}})}async revokeAccessToken(e){if(this.currentUser){const n=await this.currentUser.getIdToken(),r={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:n};this.tenantId!=null&&(r.tenantId=this.tenantId),await RO(this,r)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(e=this._currentUser)===null||e===void 0?void 0:e.toJSON()}}async _setRedirectUser(e,n){const r=await this.getOrInitRedirectPersistenceManager(n);return e===null?r.removeCurrentUser():r.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const n=e&&$n(e)||this._popupRedirectResolver;fe(n,this,"argument-error"),this.redirectPersistenceManager=await xi.create(this,[$n(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var n,r;return this._isInitialized&&await this.queue(async()=>{}),((n=this._currentUser)===null||n===void 0?void 0:n._redirectEventId)===e?this._currentUser:((r=this.redirectUser)===null||r===void 0?void 0:r._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,n;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=(n=(e=this.currentUser)===null||e===void 0?void 0:e.uid)!==null&&n!==void 0?n:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,n,r,i){if(this._deleted)return()=>{};const s=typeof n=="function"?n:n.next.bind(n);let o=!1;const l=this._isInitialized?Promise.resolve():this._initializationPromise;if(fe(l,this,"internal-error"),l.then(()=>{o||s(this.currentUser)}),typeof n=="function"){const u=e.addObserver(n,r,i);return()=>{o=!0,u()}}else{const u=e.addObserver(n);return()=>{o=!0,u()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return fe(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=G_(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const n={"X-Client-Version":this.clientVersion};this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId);const r=await((e=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getHeartbeatsHeader());r&&(n["X-Firebase-Client"]=r);const i=await this._getAppCheckToken();return i&&(n["X-Firebase-AppCheck"]=i),n}async _getAppCheckToken(){var e;const n=await((e=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getToken());return n!=null&&n.error&&fO(`Error while retrieving App Check token: ${n.error}`),n==null?void 0:n.token}}function Fl(t){return ft(t)}class $m{constructor(e){this.auth=e,this.observer=null,this.addObserver=Nw(n=>this.observer=n)}get next(){return fe(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/** 3241 * @license 3242 * Copyright 2020 Google LLC 3243 * 3244 * Licensed under the Apache License, Version 2.0 (the "License");
3245 * you may not use this file except in compliance with the License. 3246 * You may obtain a copy of the License at 3247 * 3248 * http://www.apache.org/licenses/LICENSE-2.0 3249 * 3250 * Unless required by applicable law or agreed to in writing, software 3251 * distributed under the License is distributed on an "AS IS" BASIS, 3252 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3253 * See the License for the specific language governing permissions and 3254 * limitations under the License. 3255 */let od={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function $O(t){od=t}function FO(t){return od.loadJS(t)}function UO(){return od.gapiScript}function BO(t){return`__${t}${Math.floor(Math.random()*1e6)}`}/** 3256 * @license 3257 * Copyright 2020 Google LLC 3258 * 3259 * Licensed under the Apache License, Version 2.0 (the "License"); 3260 * you may not use this file except in compliance with the License. 3261 * You may obtain a copy of the License at 3262 * 3263 * http://www.apache.org/licenses/LICENSE-2.0 3264 * 3265 * Unless required by applicable law or agreed to in writing, software 3266 * distributed under the License is distributed on an "AS IS" BASIS, 3267 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3268 * See the License for the specific language governing permissions and 3269 * limitations under the License. 3270 */function jO(t,e){const n=bl(t,"auth");if(n.isInitialized()){const i=n.getImmediate(),s=n.getOptions();if(ja(s,e??{}))return i;Cn(i,"already-initialized")}return n.initialize({options:e})}function HO(t,e){const n=(e==null?void 0:e.persistence)||[],r=(Array.isArray(n)?n:[n]).map($n);e!=null&&e.errorMap&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(r,e==null?void 0:e.popupRedirectResolver)}function zO(t,e,n){const r=Fl(t);fe(r._canInitEmulator,r,"emulator-config-failed"),fe(/^https?:\/\//.test(e),r,"invali
3270d-emulator-scheme");const i=!1,s=Q_(e),{host:o,port:l}=qO(e),u=l===null?"":`:${l}`;r.config.emulator={url:`${s}//${o}${u}/`},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:o,port:l,protocol:s.replace(":",""),options:Object.freeze({disableWarnings:i})}),WO()}function Q_(t){const e=t.indexOf(":");return e<0?"":t.substr(0,e+1)}function qO(t){const e=Q_(t),n=/(\/\/)?([^?#/]+)/.exec(t.substr(e.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){const s=i[1];return{host:s,port:Fm(r.substr(s.length+1))}}else{const[s,o]=r.split(":");return{host:s,port:Fm(o)}}}function Fm(t){if(!t)return null;const e=Number(t);return isNaN(e)?null:e}function WO(){function t(){const e=document.createElement("p"),n=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",n.position="fixed",n.width="100%",n.backgroundColor="#ffffff",n.border=".1em solid #000000",n.color="#b50000",n.bottom="0px",n.left="0px",n.margin="0px",n.zIndex="10000",n.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",t):t())}/** 3271 * @license 3272 * Copyright 2020 Google LLC 3273 * 3274 * Licensed under the Apache License, Version 2.0 (the "License"); 3275 * you may not use this file except in compliance with the License. 3276 * You may obtain a copy of the License at 3277 * 3278 * http://www.apache.org/licenses/LICENSE-2.0 3279 * 3280 * Unless required by applicable law or agreed to in writing, software 3281 * distributed under the License is distributed on an "AS IS" BASIS, 3282 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3283 * See the License for the specific language governing permissions and 3284 * limitations under the License. 3285 */class Y_{constructor(e,n){this.providerId=e,this.signInMethod=n}toJSON(){return Vn("not implemented")}_getIdTokenResponse(e){return Vn("not implemented")}_linkToIdToken(e,n){return Vn("not implemented")}_getReauthenticationResolver(e){return Vn("not implemented")}}/** 3286 * @license 3287 * Copyright 2020 Google LLC 3288 * 3289 * Licensed under the Apache License, Version 2.0 (the "License"); 3290 * you may not use this file except in compliance with the License. 3291 * You may obtain a copy of the License at 3292 * 3293 * http://www.apache.org/licenses/LICENSE-2.0 3294 * 3295 * Unless required by applicable law or agreed to in writing, software 3296 * distributed under the License is distributed on an "AS IS" BASIS, 3297 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3298 * See the License for the specific language governing permissions and 3299 * limitations under the License. 3300 */async function Li(t,e){return bO(t,"POST","/v1/accounts:signInWithIdp",rd(t,e))}/** 3301 * @license 3302 * Copyright 2020 Google LLC 3303 * 3304 * Licensed under the Apache License, Version 2.0 (the "License"); 3305 * you may not use this file except in compliance with the License. 3306 * You may obtain a copy of the License at 3307 * 3308 * http://www.apache.org/licenses/LICENSE-2.0 3309 * 3310 * Unless required by applicable law or agreed to in writing, software 3311 * distributed under the License is distributed on an "AS IS" BASIS, 3312 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3313 * See the License for the specific language governing permissions and 3314 * limitations under the License. 3315 */const KO="http://localhost";class ai extends Y_{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const n=new ai(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(n.idToken=e.idToken),e.accessToken&&(n.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(n.nonce=e.nonce),e.pendingToken&&(n.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(n.accessToken=e.oauthToken,n.secret=e.oauthTokenSecret):Cn("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
3315once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e,{providerId:r,signInMethod:i}=n,s=Zh(n,["providerId","signInMethod"]);if(!r||!i)return null;const o=new ai(r,i);return o.idToken=s.idToken||void 0,o.accessToken=s.accessToken||void 0,o.secret=s.secret,o.nonce=s.nonce,o.pendingToken=s.pendingToken||null,o}_getIdTokenResponse(e){const n=this.buildRequest();return Li(e,n)}_linkToIdToken(e,n){const r=this.buildRequest();return r.idToken=n,Li(e,r)}_getReauthenticationResolver(e){const n=this.buildRequest();return n.autoCreate=!1,Li(e,n)}buildRequest(){const e={requestUri:KO,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const n={};this.idToken&&(n.id_token=this.idToken),this.accessToken&&(n.access_token=this.accessToken),this.secret&&(n.oauth_token_secret=this.secret),n.providerId=this.providerId,this.nonce&&!this.pendingToken&&(n.nonce=this.nonce),e.postBody=Io(n)}return e}}/** 3316 * @license 3317 * Copyright 2020 Google LLC 3318 * 3319 * Licensed under the Apache License, Version 2.0 (the "License"); 3320 * you may not use this file except in compliance with the License. 3321 * You may obtain a copy of the License at 3322 * 3323 * http://www.apache.org/licenses/LICENSE-2.0 3324 * 3325 * Unless required by applicable law or agreed to in writing, software 3326 * distributed under the License is distributed on an "AS IS" BASIS, 3327 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3328 * See the License for the specific language governing permissions and 3329 * limitations under the License. 3330 */class ad{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}/** 3331 * @license 3332 * Copyright 2019 Google LLC 3333 * 3334 * Licensed under the Apache License, Version 2.0 (the "License"); 3335 * you may not use this file except in compliance with the License. 3336 * You may obtain a copy of the License at 3337 * 3338 * http://www.apache.org/licenses/LICENSE-2.0 3339 * 3340 * Unless required by applicable law or agreed to in writing, software 3341 * distributed under the License is distributed on an "AS IS" BASIS, 3342 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3343 * See the License for the specific language governing permissions and 3344 * limitations under the License. 3345 */class xo extends ad{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}/** 3346 * @license 3347 * Copyright 2020 Google LLC 3348 * 3349 * Licensed under the Apache License, Version 2.0 (the "License"); 3350 * you may not use this file except in compliance with the License. 3351 * You may obtain a copy of the License at 3352 * 3353 * http://www.apache.org/licenses/LICENSE-2.0 3354 * 3355 * Unless required by applicable law or agreed to in writing, software 3356 * distributed under the License is distributed on an "AS IS" BASIS, 3357 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3358 * See the License for the specific language governing permissions and 3359 * limitations under the License. 3360 */class cr extends xo{constructor(){super("facebook.com")}static credential(e){return ai._fromParams({providerId:cr.PROVIDER_ID,signInMethod:cr.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return cr.credentialFromTaggedObject(e)}static credentialFromError(e){return cr.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return cr.credential(e.oauthAccessToken)}catch{return null}}}cr.FACEBOOK_SIGN_IN_METHOD="facebook.com";cr.PROVIDER_ID="facebook.com";/** 3361 * @license 3362 * Copyright 2020 Google LLC 3363 * 3364 * Licensed under the Apache License, Version 2.0 (the "License"); 3365 * you may not use this file except in compliance with the License. 3366 * You may obtain a copy of the License at 3367 * 3368 * http://www.apache.org/licenses/LICENSE-2.0 3369 * 3370 * Unless required by applicable law or agreed to in writing, softw
3370are 3371 * distributed under the License is distributed on an "AS IS" BASIS, 3372 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3373 * See the License for the specific language governing permissions and 3374 * limitations under the License. 3375 */class Ln extends xo{constructor(){super("google.com"),this.addScope("profile")}static credential(e,n){return ai._fromParams({providerId:Ln.PROVIDER_ID,signInMethod:Ln.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:n})}static credentialFromResult(e){return Ln.credentialFromTaggedObject(e)}static credentialFromError(e){return Ln.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:n,oauthAccessToken:r}=e;if(!n&&!r)return null;try{return Ln.credential(n,r)}catch{return null}}}Ln.GOOGLE_SIGN_IN_METHOD="google.com";Ln.PROVIDER_ID="google.com";/** 3376 * @license 3377 * Copyright 2020 Google LLC 3378 * 3379 * Licensed under the Apache License, Version 2.0 (the "License"); 3380 * you may not use this file except in compliance with the License. 3381 * You may obtain a copy of the License at 3382 * 3383 * http://www.apache.org/licenses/LICENSE-2.0 3384 * 3385 * Unless required by applicable law or agreed to in writing, software 3386 * distributed under the License is distributed on an "AS IS" BASIS, 3387 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3388 * See the License for the specific language governing permissions and 3389 * limitations under the License. 3390 */class hr extends xo{constructor(){super("github.com")}static credential(e){return ai._fromParams({providerId:hr.PROVIDER_ID,signInMethod:hr.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return hr.credentialFromTaggedObject(e)}static credentialFromError(e){return hr.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return hr.credential(e.oauthAccessToken)}catch{return null}}}hr.GITHUB_SIGN_IN_METHOD="github.com";hr.PROVIDER_ID="github.com";/** 3391 * @license 3392 * Copyright 2020 Google LLC 3393 * 3394 * Licensed under the Apache License, Version 2.0 (the "License"); 3395 * you may not use this file except in compliance with the License. 3396 * You may obtain a copy of the License at 3397 * 3398 * http://www.apache.org/licenses/LICENSE-2.0 3399 * 3400 * Unless required by applicable law or agreed to in writing, software 3401 * distributed under the License is distributed on an "AS IS" BASIS, 3402 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3403 * See the License for the specific language governing permissions and 3404 * limitations under the License. 3405 */class dr extends xo{constructor(){super("twitter.com")}static credential(e,n){return ai._fromParams({providerId:dr.PROVIDER_ID,signInMethod:dr.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:n})}static credentialFromResult(e){return dr.credentialFromTaggedObject(e)}static credentialFromError(e){return dr.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=e;if(!n||!r)return null;try{return dr.credential(n,r)}catch{return null}}}dr.TWITTER_SIGN_IN_METHOD="twitter.com";dr.PROVIDER_ID="twitter.com";/** 3406 * @license 3407 * Copyright 2020 Google LLC 3408 * 3409 * Licensed under the Apache License, Version 2.0 (the "License"); 3410 * you may not use this file except in compliance with the License. 3411 * You may obtain a copy of the License at 3412 * 3413 * http://www.apache.org/licenses/LICENSE-2.0 3414 * 3415 * Unless required by applicable law or agreed to in writing, software 3416 * distributed under the License is distributed on an "AS IS" BASIS, 3417 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3418 * See the License for the specific language governing permissions and 3419 * limitations under the License. 3420 */class Ki{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,n,r,i=!1){const s=await Mn._fromIdTokenResponse(e,r,i),o=Um(r);return new Ki({user:s,providerId:o,_tokenResponse:r,operationType:n})}static async _forOperation(e,n,r){await e._updateTokensIfNecessary(r,!0);const i=Um(r);return new Ki({user:e,providerId:i,_tokenResponse:r,operationType:n})}}function Um(t){return t.providerId?t.providerId:"phoneNumber"in t?"phone":null}/** 3421 * @license 3422 * Copyright 2020 Google LLC 3423 * 3424 * Licensed under the Apache License, Version 2.0 (the "License");
3425 * you may not use this file except in compliance with the License. 3426 * You may obtain a copy of the License at 3427 * 3428 * http://www.apache.org/licenses/LICENSE-2.0 3429 * 3430 * Unless required by applicable law or agreed to in writing, software 3431 * distributed under the License is distributed on an "AS IS" BASIS, 3432 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3433 * See the License for the specific language governing permissions and 3434 * limitations under the License. 3435 */class tl extends Pn{constructor(e,n,r,i){var s;super(n.code,n.message),this.operationType=r,this.user=i,Object.setPrototypeOf(this,tl.prototype),this.customData={appName:e.name,tenantId:(s=e.tenantId)!==null&&s!==void 0?s:void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(e,n,r,i){return new tl(e,n,r,i)}}function X_(t,e,n,r){return(e==="reauthenticate"?n._getReauthenticationResolver(t):n._getIdTokenResponse(t)).catch(s=>{throw s.code==="auth/multi-factor-auth-required"?tl._fromErrorAndOperation(t,s,e,r):s})}async function GO(t,e,n=!1){const r=await go(t,e._linkToIdToken(t.auth,await t.getIdToken()),n);return Ki._forOperation(t,"link",r)}/** 3436 * @license 3437 * Copyright 2019 Google LLC 3438 * 3439 * Licensed under the Apache License, Version 2.0 (the "License"); 3440 * you may not use this file except in compliance with the License. 3441 * You may obtain a copy of the License at 3442 * 3443 * http://www.apache.org/licenses/LICENSE-2.0 3444 * 3445 * Unless required by applicable law or agreed to in writing, software 3446 * distributed under the License is distributed on an "AS IS" BASIS, 3447 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3448 * See the License for the specific language governing permissions and 3449 * limitations under the License. 3450 */async function QO(t,e,n=!1){const{auth:r}=t;if(Nn(r.app))return Promise.reject(Jr(r));const i="reauthenticate";try{const s=await go(t,X_(r,i,e,t),n);fe(s.idToken,r,"internal-error");const o=id(s.idToken);fe(o,r,"internal-error");const{sub:l}=o;return fe(t.uid===l,r,"user-mismatch"),Ki._forOperation(t,i,s)}catch(s){throw(s==null?void 0:s.code)==="auth/user-not-found"&&Cn(r,"user-mismatch"),s}}/** 3451 * @license 3452 * Copyright 2020 Google LLC 3453 * 3454 * Licensed under the Apache License, Version 2.0 (the "License"); 3455 * you may not use this file except in compliance with the License. 3456 * You may obtain a copy of the License at 3457 * 3458 * http://www.apache.org/licenses/LICENSE-2.0 3459 * 3460 * Unless required by applicable law or agreed to in writing, software 3461 * distributed under the License is distributed on an "AS IS" BASIS, 3462 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3463 * See the License for the specific language governing permissions and 3464 * limitations under the License. 3465 */async function YO(t,e,n=!1){if(Nn(t.app))return Promise.reject(Jr(t));const r="signIn",i=await X_(t,r,e),s=await Ki._fromIdTokenResponse(t,r,i);return n||await t._updateCurrentUser(s.user),s}function XO(t,e,n,r){return ft(t).onIdTokenChanged(e,n,r)}function JO(t,e,n){return ft(t).beforeAuthStateChanged(e,n)}const nl="__sak";/** 3466 * @license 3467 * Copyright 2019 Google LLC 3468 * 3469 * Licensed under the Apache License, Version 2.0 (the "License"); 3470 * you may not use this file except in compliance with the License. 3471 * You may obtain a copy of the License at 3472 * 3473 * http://www.apache.org/licenses/LICENSE-2.0 3474 * 3475 * Unless required by applicable law or agreed to in writing, software 3476 * distributed under the License is distributed on an "AS IS" BASIS, 3477 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3478 * See the License for the specific language governing permissions and 3479 * limitations under the License. 3480 */class J_{constructor(e,n){this.storageRetriever=e,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(nl,"1"),this.storage.removeItem(nl),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(e,n){return this.storage.setItem(e,JSON.stringify(n)),Promise.resolve()}_get(e){const n=this.storage.getItem(e);return Promise.resolve(n?JSON.parse(n):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}/** 3481 * @license 3482 * Copyright 2020 Google LLC 3483 * 3484 * Licensed under the Apache License, Version 2.0 (the "License");
3485 * you may not use this file except in compliance with the License. 3486 * You may obtain a copy of the License at 3487 * 3488 * http://www.apache.org/licenses/LICENSE-2.0 3489 * 3490 * Unless required by applicable law or agreed to in writing, software 3491 * distributed under the License is distributed on an "AS IS" BASIS, 3492 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3493 * See the License for the specific language governing permissions and 3494 * limitations under the License. 3495 */function ZO(){const t=wt();return sd(t)||$l(t)}const e4=1e3,t4=10;class Z_ extends J_{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,n)=>this.onStorageEvent(e,n),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=ZO()&&DO(),this.fallbackToPolling=K_(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),i=this.localCache[n];r!==i&&e(n,i,r)}}onStorageEvent(e,n=!1){if(!e.key){this.forAllChangedKeys((o,l,u)=>{this.notifyListeners(o,u)});return}const r=e.key;if(n?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const o=this.storage.getItem(r);if(e.newValue!==o)e.newValue!==null?this.storage.setItem(r,e.newValue):this.storage.removeItem(r);else if(this.localCache[r]===e.newValue&&!n)return}const i=()=>{const o=this.storage.getItem(r);!n&&this.localCache[r]===o||this.notifyListeners(r,o)},s=this.storage.getItem(r);kO()&&s!==e.newValue&&e.newValue!==e.oldValue?setTimeout(i,t4):i()}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const i of Array.from(r))i(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:n,newValue:r}),!0)})},e4)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Ob
3495ject.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(e,n){await super._set(e,n),this.localCache[e]=JSON.stringify(n)}async _get(e){const n=await super._get(e);return this.localCache[e]=JSON.stringify(n),n}async _remove(e){await super._remove(e),delete this.localCache[e]}}Z_.type="LOCAL";const n4=Z_;/** 3496 * @license 3497 * Copyright 2020 Google LLC 3498 * 3499 * Licensed under the Apache License, Version 2.0 (the "License"); 3500 * you may not use this file except in compliance with the License. 3501 * You may obtain a copy of the License at 3502 * 3503 * http://www.apache.org/licenses/LICENSE-2.0 3504 * 3505 * Unless required by applicable law or agreed to in writing, software 3506 * distributed under the License is distributed on an "AS IS" BASIS, 3507 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3508 * See the License for the specific language governing permissions and 3509 * limitations under the License. 3510 */class e0 extends J_{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,n){}_removeListener(e,n){}}e0.type="SESSION";const t0=e0;/** 3511 * @license 3512 * Copyright 2019 Google LLC 3513 * 3514 * Licensed under the Apache License, Version 2.0 (the "License"); 3515 * you may not use this file except in compliance with the License. 3516 * You may obtain a copy of the License at 3517 * 3518 * http://www.apache.org/licenses/LICENSE-2.0 3519 * 3520 * Unless required by applicable law or agreed to in writing, software 3521 * distributed under the License is distributed on an "AS IS" BASIS, 3522 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3523 * See the License for the specific language governing permissions and 3524 * limitations under the License. 3525 */function r4(t){return Promise.all(t.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(n){return{fulfilled:!1,reason:n}}}))}/** 3526 * @license 3527 * Copyright 2019 Google LLC 3528 * 3529 * Licensed under the Apache License, Version 2.0 (the "License"); 3530 * you may not use this file except in compliance with the License. 3531 * You may obtain a copy of the License at 3532 * 3533 * http://www.apache.org/licenses/LICENSE-2.0 3534 * 3535 * Unless required by applicable law or agreed to in writing, software 3536 * distributed under the License is distributed on an "AS IS" BASIS, 3537 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3538 * See the License for the specific language governing permissions and 3539 * limitations under the License. 3540 */class Ul{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const n=this.receivers.find(i=>i.isListeningto(e));if(n)return n;const r=new Ul(e);return this.receivers.push(r),r}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const n=e,{eventId:r,eventType:i,data:s}=n.data,o=this.handlersMap[i];if(!(o!=null&&o.size))return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:i});const l=Array.from(o).map(async c=>c(n.origin,s)),u=await r4(l);n.ports[0].postMessage({status:"done",eventId:r,eventType:i,response:u})}_subscribe(e,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(n)}_unsubscribe(e,n){this.handlersMap[e]&&n&&this.handlersMap[e].delete(n),(!n||this.handlersMap[e].size===0)&&delete this.handlersMap[e],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}Ul.receivers=[];/** 3541 * @license 3542 * Copyright 2020 Google LLC 3543 * 3544 * Licensed under the Apache License, Version 2.0 (the "License"); 3545 * you may not use this file except in compliance with the License. 3546 * You may obtain a copy of the License at 3547 * 3548 * http://www.apache.org/licenses/LICENSE-2.0 3549 * 3550 * Unless required by applicable law or agreed to in writing, software 3551 * distributed under the License is distributed on an "AS IS" BASIS, 3552 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3553 * See the License for the specific language governing permissions and 3554 * limitations under the License. 3555 */function ld(t="",e=10){let n="";for(let r=0;r<e;r++)n+=Math.floor(Math.random()*10);return t+n}/** 3556 * @license 3557 * Copyright 2019 Google LLC 3558 * 3559 * Licensed under the Apache License, Version 2.0 (the "License");
3560 * you may not use this file except in compliance with the License. 3561 * You may obtain a copy of the License at 3562 * 3563 * http://www.apache.org/licenses/LICENSE-2.0 3564 * 3565 * Unless required by applicable law or agreed to in writing, software 3566 * distributed under the License is distributed on an "AS IS" BASIS, 3567 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3568 * See the License for the specific language governing permissions and 3569 * limitations under the License. 3570 */class i4{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,n,r=50){const i=typeof MessageChannel<"u"?new MessageChannel:null;if(!i)throw new Error("connection_unavailable");let s,o;return new Promise((l,u)=>{const c=ld("",20);i.port1.start();const h=setTimeout(()=>{u(new Error("unsupported_event"))},r);o={messageChannel:i,onMessage(p){const m=p;if(m.data.eventId===c)switch(m.data.status){case"ack":clearTimeout(h),s=setTimeout(()=>{u(new Error("timeout"))},3e3);break;case"done":clearTimeout(s),l(m.data.response);break;default:clearTimeout(h),clearTimeout(s),u(new Error("invalid_response"));break}}},this.handlers.add(o),i.port1.addEventListener("message",o.onMessage),this.target.postMessage({eventType:e,eventId:c,data:n},[i.port2])}).finally(()=>{o&&this.removeMessageHandler(o)})}}/** 3571 * @license 3572 * Copyright 2020 Google LLC 3573 * 3574 * Licensed under the Apache License, Version 2.0 (the "License"); 3575 * you may not use this file except in compliance with the License. 3576 * You may obtain a copy of the License at 3577 * 3578 * http://www.apache.org/licenses/LICENSE-2.0 3579 * 3580 * Unless required by applicable law or agreed to in writing, software 3581 * distributed under the License is distributed on an "AS IS" BASIS, 3582 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3583 * See the License for the specific language governing permissions and 3584 * limitations under the License. 3585 */function En(){return window}function s4(t){En().location.href=t}/** 3586 * @license 3587 * Copyright 2020 Google LLC. 3588 * 3589 * Licensed under the Apache License, Version 2.0 (the "License"); 3590 * you may not use this file except in compliance with the License. 3591 * You may obtain a copy of the License at 3592 * 3593 * http://www.apache.org/licenses/LICENSE-2.0 3594 * 3595 * Unless required by applicable law or agreed to in writing, software 3596 * distributed under the License is distributed on an "AS IS" BASIS, 3597 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3598 * See the License for the specific language governing permissions and 3599 * limitations under the License. 3600 */function n0(){return typeof En().WorkerGlobalScope<"u"&&typeof En().importScripts=="function"}async function o4(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function a4(){var t;return((t=navigator==null?void 0:navigator.serviceWorker)===null||t===void 0?void 0:t.controller)||null}function l4(){return n0()?self:null}/** 3601 * @license 3602 * Copyright 2019 Google LLC 3603 * 3604 * Licensed under the Apache License, Version 2.0 (the "License"); 3605 * you may not use this file except in compliance with the License. 3606 * You may obtain a copy of the License at 3607 * 3608 * http://www.apache.org/licenses/LICENSE-2.0 3609 * 3610 * Unless required by applicable law or agreed to in writing, software 3611 * distributed under the License is distributed on an "AS IS" BASIS, 3612 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3613 * See the License for the specific language governing permissions and 3614 * limitations under the License. 3615 */const r0="firebaseLocalStorageDb",u4=1,rl="firebaseLocalStorage",i0="fbase_key";class Lo{constructor(e){this.request=e}toPromise(){return new Promise((e,n)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{n(this.request.error)})})}}function Bl(t,e){return t.transaction([rl],e?"readwrite":"readonly").objectStore(rl)}function c4(){const t=indexedDB.deleteDatabase(r0);
3615return new Lo(t).toPromise()}function Pc(){const t=indexedDB.open(r0,u4);return new Promise((e,n)=>{t.addEventListener("error",()=>{n(t.error)}),t.addEventListener("upgradeneeded",()=>{const r=t.result;try{r.createObjectStore(rl,{keyPath:i0})}catch(i){n(i)}}),t.addEventListener("success",async()=>{const r=t.result;r.objectStoreNames.contains(rl)?e(r):(r.close(),await c4(),e(await Pc()))})})}async function Bm(t,e,n){const r=Bl(t,!0).put({[i0]:e,value:n});return new Lo(r).toPromise()}async function h4(t,e){const n=Bl(t,!1).get(e),r=await new Lo(n).toPromise();return r===void 0?null:r.value}function jm(t,e){const n=Bl(t,!0).delete(e);return new Lo(n).toPromise()}const d4=800,f4=3;class s0{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await Pc(),this.db)}async _withRetries(e){let n=0;for(;;)try{const r=await this._openDb();return await e(r)}catch(r){if(n++>f4)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return n0()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Ul._getInstance(l4()),this.receiver._subscribe("keyChanged",async(e,n)=>({keyProcessed:(await this._poll()).includes(n.key)}
3615)),this.receiver._subscribe("ping",async(e,n)=>["keyChanged"])}async initializeSender(){var e,n;if(this.activeServiceWorker=await o4(),!this.activeServiceWorker)return;this.sender=new i4(this.activeServiceWorker);const r=await this.sender._send("ping",{},800);r&&!((e=r[0])===null||e===void 0)&&e.fulfilled&&!((n=r[0])===null||n===void 0)&&n.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(!(!this.sender||!this.activeServiceWorker||a4()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await Pc();return await Bm(e,nl,"1"),await jm(e,nl),!0}catch{}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,n){return this._withPendingWrite(async()=>(await this._withRetries(r=>Bm(r,e,n)),this.localCache[e]=n,this.notifyServiceWorker(e)))}async _get(e){const n=await this._withRetries(r=>h4(r,e));return this.localCache[e]=n,n}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(n=>jm(n,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){const e=await this._withRetries(i=>{const s=Bl(i,!1).getAll();return new Lo(s).toPromise()});if(!e)return[];if(this.pendingWrites!==0)return[];const n=[],r=new Set;if(e.length!==0)for(const{fbase_key:i,value:s}of e)r.add(i),JSON.stringify(this.localCache[i])!==JSON.stringify(s)&&(this.notifyListeners(i,s),n.push(i));for(const i of Object.keys(this.localCache))this.localCache[i]&&!r.has(i)&&(this.notifyListeners(i,null),n.push(i));return n}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const i of Array.from(r))i(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),d4)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Ob
3615ject.keys(this.listeners).length===0&&this.stopPolling()}}s0.type="LOCAL";const p4=s0;new Do(3e4,6e4);/** 3616 * @license 3617 * Copyright 2021 Google LLC 3618 * 3619 * Licensed under the Apache License, Version 2.0 (the "License"); 3620 * you may not use this file except in compliance with the License. 3621 * You may obtain a copy of the License at 3622 * 3623 * http://www.apache.org/licenses/LICENSE-2.0 3624 * 3625 * Unless required by applicable law or agreed to in writing, software 3626 * distributed under the License is distributed on an "AS IS" BASIS, 3627 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3628 * See the License for the specific language governing permissions and 3629 * limitations under the License. 3630 */function o0(t,e){return e?$n(e):(fe(t._popupRedirectResolver,t,"argument-error"),t._popupRedirectResolver)}/** 3631 * @license 3632 * Copyright 2019 Google LLC 3633 * 3634 * Licensed under the Apache License, Version 2.0 (the "License"); 3635 * you may not use this file except in compliance with the License. 3636 * You may obtain a copy of the License at 3637 * 3638 * http://www.apache.org/licenses/LICENSE-2.0 3639 * 3640 * Unless required by applicable law or agreed to in writing, software 3641 * distributed under the License is distributed on an "AS IS" BASIS, 3642 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3643 * See the License for the specific language governing permissions and 3644 * limitations under the License. 3645 */class ud extends Y_{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return Li(e,this._buildIdpRequest())}_linkToIdToken(e,n){return Li(e,this._buildIdpRequest(n))}_getReauthenticationResolver(e){return Li(e,this._buildIdpRequest())}_buildIdpRequest(e){const n={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(n.idToken=e),n}}function m4(t){return YO(t.auth,new ud(t),t.bypassAuthState)}function g4(t){const{auth:e,user:n}=t;return fe(n,e,"internal-error"),QO(n,new ud(t),t.bypassAuthState)}async function y4(t){const{auth:e,user:n}=t;return fe(n,e,"internal-error"),GO(n,new ud(t),t.bypassAuthState)}/** 3646 * @license 3647 * Copyright 2020 Google LLC 3648 * 3649 * Licensed under the Apache License, Version 2.0 (the "License"); 3650 * you may not use this file except in compliance with the License. 3651 * You may obtain a copy of the License at 3652 * 3653 * http://www.apache.org/licenses/LICENSE-2.0 3654 * 3655 * Unless required by applicable law or agreed to in writing, software 3656 * distributed under the License is distributed on an "AS IS" BASIS, 3657 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3658 * See the License for the specific language governing permissions and 3659 * limitations under the License. 3660 */class a0{constructor(e,n,r,i,s=!1){this.auth=e,this.resolver=r,this.user=i,this.bypassAuthState=s,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(e,n)=>{this.pendingPromise={resolve:e,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(e){const{urlResponse:n,sessionId:r,postBody:i,tenantId:s,error:o,type:l}=e;if(o){this.reject(o);return}const u={auth:this.auth,requestUri:n,sessionId:r,tenantId:s||void 0,postBody:i||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(l)(u))}catch(c){this.reject(c)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return m4;case"linkViaPopup":case"linkViaRedirect":return y4;case"reauthViaPopup":case"reauthViaRedirect":return g4;default:Cn(this.auth,"internal-error")}}resolve(e){jn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){jn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/** 3661 * @license 3662 * Copyright 2020 Google LLC 3663 * 3664 * Licensed under the Apache License, Version 2.0 (the "License");
3665 * you may not use this file except in compliance with the License. 3666 * You may obtain a copy of the License at 3667 * 3668 * http://www.apache.org/licenses/LICENSE-2.0 3669 * 3670 * Unless required by applicable law or agreed to in writing, software 3671 * distributed under the License is distributed on an "AS IS" BASIS, 3672 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3673 * See the License for the specific language governing permissions and 3674 * limitations under the License. 3675 */const v4=new Do(2e3,1e4);async function _4(t,e,n){if(Nn(t.app))return Promise.reject(dn(t,"operation-not-supported-in-this-environment"));const r=Fl(t);pO(t,e,ad);const i=o0(r,n);return new Kr(r,"signInViaPopup",e,i).executeNotNull()}class Kr extends a0{constructor(e,n,r,i,s){super(e,n,i,s),this.provider=r,this.authWindow=null,this.pollId=null,Kr.currentPopupAction&&Kr.currentPopupAction.cancel(),Kr.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return fe(e,this.auth,"internal-error"),e}async onExecution(){jn(this.filter.length===1,"Popup operations only handle one event");const e=ld();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(dn(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return((e=this.authWindow)===null||e===void 0?void 0:e.associatedEvent)||null}cancel(){this.reject(dn(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Kr.currentPopupAction=null}pollUserCancellation(){const e=()=>{var n,r;if(!((r=(n=this.authWindow)===null||n===void 0?void 0:n.window)===null||r===void 0)&&r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(dn(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,v4.get())};e()}}Kr.currentPopupAction=null;/** 3676 * @license 3677 * Copyright 2020 Google LLC 3678 * 3679 * Licensed under the Apache License, Version 2.0 (the "License"); 3680 * you may not use this file except in compliance with the License. 3681 * You may obtain a copy of the License at 3682 * 3683 * http://www.apache.org/licenses/LICENSE-2.0 3684 * 3685 * Unless required by applicable law or agreed to in writing, software 3686 * distributed under the License is distributed on an "AS IS" BASIS, 3687 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3688 * See the License for the specific language governing permissions and 3689 * limitations under the License. 3690 */const b4="pendingRedirect",ka=new Map;class w4 extends a0{constructor(e,n,r=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r),this.eventId=null}async execute(){let e=ka.get(this.auth._key());if(!e){try{const r=await E4(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(r)}catch(n){e=()=>Promise.reject(n)}ka.set(this.auth._key(),e)}return this.bypassAuthState||ka.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if(e.type==="signInViaRedirect")return super.onAuthEvent(e);if(e.type==="unknown"){this.resolve(null);return}if(e.eventId){const n=await this.auth._redirectUserForId(e.eventId);if(n)return this.user=n,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function E4(t,e){const n=A4(e),r=I4(t);if(!await r._isAvailable())return!1;const i=await r._get(n)==="true";return await r._remove(n),i}function T4(t,e){ka.set(t._key(),e)}function I4(t){return $n(t._redirectPersistence)}function A4(t){return Oa(b4,t.config.apiKey,t.name)}async function S4(t,e,n=!1){if(Nn(t.app))return Promise.reject(Jr(t));const r=Fl(t),i=o0(r,e),o=await new w4(r,i,n).execute();return o&&!n&&(delete o.user._redirectEventId,await r._persistUserIfCurrent(o.user),await r._setRedirectUser(null,e)),o}/** 3691 * @license 3692 * Copyright 2020 Google LLC 3693 * 3694 * Licensed under the Apache License, Version 2.0 (the "License");
3695 * you may not use this file except in compliance with the License. 3696 * You may obtain a copy of the License at 3697 * 3698 * http://www.apache.org/licenses/LICENSE-2.0 3699 * 3700 * Unless required by applicable law or agreed to in writing, software 3701 * distributed under the License is distributed on an "AS IS" BASIS, 3702 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3703 * See the License for the specific language governing permissions and 3704 * limitations under the License. 3705 */const C4=10*60*1e3;class P4{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let n=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(e,r)&&(n=!0,this.sendToConsumer(e,r),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!R4(e)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=e,n=!0)),n}sendToConsumer(e,n){var r;if(e.error&&!l0(e)){const i=((r=e.error.code)===null||r===void 0?void 0:r.split("auth/")[1])||"internal-error";n.onError(dn(this.auth,i))}else n.onAuthEvent(e)}isEventForConsumer(e,n){const r=n.eventId===null||!!e.eventId&&e.eventId===n.eventId;return n.filter.includes(e.type)&&r}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=C4&&this.cachedEventUids.clear(),this.cachedEventUids.has(Hm(e))}saveEventToCache(e){this.cachedEventUids.add(Hm(e)),this.lastProcessedEventTime=Date.now()}}function Hm(t){return[t.type,t.eventId,t.sessionId,t.tenantId].filter(e=>e).join("-")}function l0({type:t,error:e}){return t==="unknown"&&(e==null?void 0:e.code)==="auth/no-auth-event"}function R4(t){switch(t.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return l0(t);default:return!1}}/** 3706 * @license 3707 * Copyright 2020 Google LLC 3708 * 3709 * Licensed under the Apache License, Version 2.0 (the "License"); 3710 * you may not use this file except in compliance with the License. 3711 * You may obtain a copy of the License at 3712 * 3713 * http://www.apache.org/licenses/LICENSE-2.0 3714 * 3715 * Unless required by applicable law or agreed to in writing, software 3716 * distributed under the License is distributed on an "AS IS" BASIS, 3717 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3718 * See the License for the specific language governing permissions and 3719 * limitations under the License. 3720 */async function O4(t,e={}){return Ji(t,"GET","/v1/projects",e)}/** 3721 * @license 3722 * Copyright 2020 Google LLC 3723 * 3724 * Licensed under the Apache License, Version 2.0 (the "License"); 3725 * you may not use this file except in compliance with the License. 3726 * You may obtain a copy of the License at 3727 * 3728 * http://www.apache.org/licenses/LICENSE-2.0 3729 * 3730 * Unless required by applicable law or agreed to in writing, software 3731 * distributed under the License is distributed on an "AS IS" BASIS, 3732 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3733 * See the License for the specific language governing permissions and 3734 * limitations under the License. 3735 */const k4=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,D4=/^https?/;async function x4(t){if(t.config.emulator)return;const{authorizedDomains:e}=await O4(t);for(const n of e)try{if(L4(n))return}catch{}Cn(t,"unauthorized-domain")}function L4(t){const e=Sc(),{protocol:n,hostname:r}=new URL(e);if(t.startsWith("chrome-extension://")){const o=new URL(t);return o.hostname===""&&r===""?n==="chrome-extension:"&&t.replace("chrome-extension://","")===e.replace("chrome-extension://",""):n==="chrome-extension:"&&o.hostname===r}if(!D4.test(n))return!1;if(k4.test(t))return r===t;const i=t.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(r)}/** 3736 * @license 3737 * Copyright 2020 Google LLC. 3738 * 3739 * Licensed under the Apache License, Version 2.0 (the "License");
3740 * you may not use this file except in compliance with the License. 3741 * You may obtain a copy of the License at 3742 * 3743 * http://www.apache.org/licenses/LICENSE-2.0 3744 * 3745 * Unless required by applicable law or agreed to in writing, software 3746 * distributed under the License is distributed on an "AS IS" BASIS, 3747 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3748 * See the License for the specific language governing permissions and 3749 * limitations under the License. 3750 */const N4=new Do(3e4,6e4);function zm(){const t=En().___jsl;if(t!=null&&t.H){for(const e of Object.keys(t.H))if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=[...t.H[e].L],t.CP)for(let n=0;n<t.CP.length;n++)t.CP[n]=null}}function V4(t){return new Promise((e,n)=>{var r,i,s;function o(){zm(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{zm(),n(dn(t,"network-request-failed"))},timeout:N4.get()})}if(!((i=(r=En().gapi)===null||r===void 0?void 0:r.iframes)===null||i===void 0)&&i.Iframe)e(gapi.iframes.getContext());else if(!((s=En().gapi)===null||s===void 0)&&s.load)o();else{const l=BO("iframefcb");return En()[l]=()=>{gapi.load?o():n(dn(t,"network-request-failed"))},FO(`${UO()}?onload=${l}`).catch(u=>n(u))}}).catch(e=>{throw Da=null,e})}let Da=null;function M4(t){return Da=Da||V4(t),Da}/** 3751 * @license 3752 * Copyright 2020 Google LLC. 3753 * 3754 * Licensed under the Apache License, Version 2.0 (the "License"); 3755 * you may not use this file except in compliance with the License. 3756 * You may obtain a copy of the License at 3757 * 3758 * http://www.apache.org/licenses/LICENSE-2.0 3759 * 3760 * Unless required by applicable law or agreed to in writing, software 3761 * distributed under the License is distributed on an "AS IS" BASIS, 3762 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3763 * See the License for the specific language governing permissions and 3764 * limitations under the License. 3765 */const $4=new Do(5e3,15e3),F4="__/auth/iframe",U4="emulator/auth/iframe",B4={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},j4=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function H4(t){const e=t.config;fe(e.authDomain,t,"auth-domain-config-required");const n=e.emulator?nd(e,U4):`https://${t.config.authDomain}/${F4}`,r={apiKey:e.apiKey,appName:t.name,v:ci},i=j4.get(t.config.apiHost);i&&(r.eid=i);const s=t._getFrameworks();return s.length&&(r.fw=s.join(",")),`${n}?${Io(r).slice(1)}`}async function z4(t){const e=await M4(t),n=En().gapi;return fe(n,t,"internal-error"),e.open({where:document.body,url:H4(t),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:B4,dontclear:!0},r=>new Promise(async(i,s)=>{await r.restyle({setHideOnLeave:!1});const o=dn(t,"network-request-failed"),l=En().setTimeout(()=>{s(o)},$4.get());function u(){En().clearTimeout(l),i(r)}r.ping(u).then(u,()=>{s(o)})}))}/** 3766 * @license 3767 * Copyright 2020 Google LLC. 3768 * 3769 * Licensed under the Apache License, Version 2.0 (the "License"); 3770 * you may not use this file except in compliance with the License. 3771 * You may obtain a copy of the License at 3772 * 3773 * http://www.apache.org/licenses/LICENSE-2.0 3774 * 3775 * Unless required by applicable law or agreed to in writing, software 3776 * distributed under the License is distributed on an "AS IS" BASIS, 3777 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3778 * See the License for the specific language governing permissions and 3779 * limitations under the License. 3780 */const q4={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},W4=500,K4=600,G4="_blank",Q4="http://localhost";class qm{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function Y4(t,e,n,r=W4,i=K4){const s=Math.max((window.screen.availHeight-i)/2,0).toString(),o=Math.max((window.screen.availWidth-r)/2,0).toString();let l="";const u=Object.assign(Object.assign({},q4),{width:r.toString(),height:i.toString(),top:s,left:o}),c=wt().toLowerCase();n&&(l=j_(c)?G4:n),B_(c)&&(e=e||Q4,u.scrollbars="yes");const h=Object.entries(u).reduce((m,[y,C])=>`${m}${y}=${C},`,"");if(OO(c)&&l!=="_self")return X4(e||"",l),new qm(null);const p=window.open(e||"",l,h);fe(p,t,"popup-blocked");try{p.focus()}catch{}return new qm(p)}function X4(t,e){const n=document.createElement("a");n.href=t,n.target=e;const r=document.createEvent("MouseEvent");
3780r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}/** 3781 * @license 3782 * Copyright 2021 Google LLC 3783 * 3784 * Licensed under the Apache License, Version 2.0 (the "License"); 3785 * you may not use this file except in compliance with the License. 3786 * You may obtain a copy of the License at 3787 * 3788 * http://www.apache.org/licenses/LICENSE-2.0 3789 * 3790 * Unless required by applicable law or agreed to in writing, software 3791 * distributed under the License is distributed on an "AS IS" BASIS, 3792 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3793 * See the License for the specific language governing permissions and 3794 * limitations under the License. 3795 */const J4="__/auth/handler",Z4="emulator/auth/handler",e9=encodeURIComponent("fac");async function Wm(t,e,n,r,i,s){fe(t.config.authDomain,t,"auth-domain-config-required"),fe(t.config.apiKey,t,"invalid-api-key");const o={apiKey:t.config.apiKey,appName:t.name,authType:n,redirectUrl:r,v:ci,eventId:i};if(e instanceof ad){e.setDefaultLanguage(t.languageCode),o.providerId=e.providerId||"",Lw(e.getCustomParameters())||(o.customParameters=JSON.stringify(e.getCustomParameters()));for(const[h,p]of Object.entries({}))o[h]=p}if(e instanceof xo){const h=e.getScopes().filter(p=>p!=="");h.length>0&&(o.scopes=h.join(","))}t.tenantId&&(o.tid=t.tenantId);const l=o;for(const h of Object.keys(l))l[h]===void 0&&delete l[h];const u=await t._getAppCheckToken(),c=u?`#${e9}=${encodeURIComponent(u)}`:"";return`${t9(t)}?${Io(l).slice(1)}${c}`}function t9({config:t}){return t.emulator?nd(t,Z4):`https://${t.authDomain}/${J4}`}/** 3796 * @license 3797 * Copyright 2020 Google LLC 3798 * 3799 * Licensed under the Apache License, Version 2.0 (the "License"); 3800 * you may not use this file except in compliance with the License. 3801 * You may obtain a copy of the License at 3802 * 3803 * http://www.apache.org/licenses/LICENSE-2.0 3804 * 3805 * Unless required by applicable law or agreed to in writing, software 3806 * distributed under the License is distributed on an "AS IS" BASIS, 3807 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3808 * See the License for the specific language governing permissions and 3809 * limitations under the License. 3810 */const Lu="webStorageSupport";class n9{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=t0,this._completeRedirectFn=S4,this._overrideRedirectResult=T4}async _openPopup(e,n,r,i){var s;jn((s=this.eventManagers[e._key()])===null||s===void 0?void 0:s.manager,"_initialize() not called before _openPopup()");const o=await Wm(e,n,r,Sc(),i);return Y4(e,o,ld())}async _openRedirect(e,n,r,i){await this._originValidation(e);const s=await Wm(e,n,r,Sc(),i);return s4(s),new Promise(()=>{})}_initialize(e){const n=e._key();if(this.eventManagers[n]){const{manager:i,promise:s}=this.eventManagers[n];return i?Promise.resolve(i):(jn(s,"If manager is not set, promise should be"),s)}const r=this.initAndGetManager(e);return this.eventManagers[n]={promise:r},r.catch(()=>{delete this.eventManagers[n]}),r}async initAndGetManager(e){const n=await z4(e),r=new P4(e);return n.register("authEvent",i=>(fe(i==null?void 0:i.authEvent,e,"invalid-auth-event"),{status:r.onEvent(i.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=n,r}_isIframeWebStorageSupported(e,n){this.iframes[e._key()].send(Lu,{type:Lu},i=>{var s;const o=(s=i==null?void 0:i[0])===null||s===void 0?void 0:s[Lu];o!==void 0&&n(!!o),Cn(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const n=e._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=x4(e)),this.originValidationPromises[n]}get _shouldInitProactively(){return K_()||sd()||$l()}}const r9=n9;var Km="@firebase/auth",Gm="1.7.3";/** 3811 * @license 3812 * Copyright 2020 Google LLC 3813 * 3814 * Licensed under the Apache License, Version 2.0 (the "License"); 3815 * you may not use this file except in compliance with the License. 3816 * You may obtain a copy of the License at 3817 * 3818 * http://www.apache.org/licenses/LICENSE-2.0 3819 * 3820 * Unless required by applicable law or agreed to in writing, softw
3820are 3821 * distributed under the License is distributed on an "AS IS" BASIS, 3822 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3823 * See the License for the specific language governing permissions and 3824 * limitations under the License. 3825 */class i9{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),((e=this.auth.currentUser)===null||e===void 0?void 0:e.uid)||null}async getToken(e){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const n=this.auth.onIdTokenChanged(r=>{e((r==null?void 0:r.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,n),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const n=this.internalListeners.get(e);n&&(this.internalListeners.delete(e),n(),this.updateProactiveRefresh())}assertAuthConfigured(){fe(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/** 3826 * @license 3827 * Copyright 2020 Google LLC 3828 * 3829 * Licensed under the Apache License, Version 2.0 (the "License"); 3830 * you may not use this file except in compliance with the License. 3831 * You may obtain a copy of the License at 3832 * 3833 * http://www.apache.org/licenses/LICENSE-2.0 3834 * 3835 * Unless required by applicable law or agreed to in writing, software 3836 * distributed under the License is distributed on an "AS IS" BASIS, 3837 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3838 * See the License for the specific language governing permissions and 3839 * limitations under the License. 3840 */function s9(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function o9(t){ei(new Ar("auth",(e,{options:n})=>{const r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),s=e.getProvider("app-check-internal"),{apiKey:o,authDomain:l}=r.options;fe(o&&!o.includes(":"),"invalid-api-key",{appName:r.name});const u={apiKey:o,authDomain:l,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:G_(t)},c=new MO(r,i,s,u);return HO(c,n),c},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,n,r)=>{e.getProvider("auth-internal").initialize()})),ei(new Ar("auth-internal",e=>{const n=Fl(e.getProvider("auth").getImmediate());return(r=>new i9(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),_n(Km,Gm,s9(t)),_n(Km,Gm,"esm2017")}/** 3841 * @license 3842 * Copyright 2021 Google LLC 3843 * 3844 * Licensed under the Apache License, Version 2.0 (the "License"); 3845 * you may not use this file except in compliance with the License. 3846 * You may obtain a copy of the License at 3847 * 3848 * http://www.apache.org/licenses/LICENSE-2.0 3849 * 3850 * Unless required by applicable law or agreed to in writing, software 3851 * distributed under the License is distributed on an "AS IS" BASIS, 3852 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3853 * See the License for the specific language governing permissions and 3854 * limitations under the License. 3855 */const a9=5*60,l9=wy("authIdTokenMaxAge")||a9;let Qm=null;const u9=t=>async e=>{const n=e&&await e.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>l9)return;const i=n==null?void 0:n.token;Qm!==i&&(Qm=i,await fetch(t,{method:i?"POST":"DELETE",headers:i?{Authorization:`Bearer ${i}`}:{}}))};function Ym(t=hh()){const e=bl(t,"auth");if(e.isInitialized())return e.getImmediate();const n=jO(t,{popupRedirectResolver:r9,persistence:[p4,n4,t0]}),r=wy("authTokenSyncURL");if(r&&typeof isSecureContext=="boolean"&&isSecureContext){const s=new URL(r,location.origin);if(location.origin===s.origin){const o=u9(s.toString());JO(n,o,()=>o(n.currentUser)),XO(n,l=>o(l))}}const i=vy("auth");return i&&zO(n,`http://${i}`),n}function c9(){var t,e;return(e=(t=document.getElementsByTagName("head"))===null||t===void 0?void 0:t[0])!==null&&e!==void 0?e:document}
3855$O({loadJS(t){return new Promise((e,n)=>{const r=document.createElement("script");r.setAttribute("src",t),r.onload=e,r.onerror=i=>{const s=dn("internal-error");s.customData=i,n(s)},r.type="text/javascript",r.charset="UTF-8",c9().appendChild(r)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});o9("Browser");const fr=cn(),Nu=cn(""),da=cn(""),h9=dt(()=>{var t;return(t=fr.value)==null?void 0:t.ready()}),d9=dt(()=>{var t;if(fr.value)return(t=fr.value)==null?void 0:t.initDataUnsafe});function No(){const t=yh(),e=()=>Nu.value,n=()=>da.value;function r(){var c,h,p,m;fr.value=(c=window==null?void 0:window.Telegram)==null?void 0:c.WebApp,da.value=((m=(p=(h=fr.value)==null?void 0:h.initDataUnsafe)==null?void 0:p.user)==null?void 0:m.username)||""}function i(){var c,h,p;return((p=(h=(c=fr.value)==null?void 0:c.initDataUnsafe)==null?void 0:h.user)==null?void 0:p.id)||Nu.value}function s(c){return c}function o(){var m,y;const c=(m=t.currentRoute.value.query.redirectTeleramId)==null?void 0:m.toLocaleString(),h=(y=t.currentRoute.value.query.redirectLogin)==null?void 0:y.toLocaleString();if(!c&&c==="undefined")return;const p=c;Nu.value=p,da.value=h||""}function l(){var c;(c=fr.value)==null||c.expand()}function u(){window.location.reload()}return{telegramWindow:fr,telegramUser:d9,initTelegram:r,isTelegramLoading:h9,decodeTelegramUser:i,encodeTelegramUser:s,saveTelegramLogin:o,getTelegramID:e,expandWindow:l,telegramNickname:da,getTelegramNickname:n,reloadPage:u}}const ot=cn(),bi=cn([]),Br=Gi({googleUser:!1,googleUserList:!1}),Vu=dt(()=>ot.value?{uid:ot.value.uid,email:ot.value.email,displayName:ot.value.displayName,photoURL:ot.value.photoURL}:null),cd=()=>{const{telegramUser:t,expandWindow:e}=No(),n="users",r=yh(),i=Ym(),s=dt(()=>{var x;return((x=ot.value)==null?void 0:x.status)==="admin"});async function o(){await u()==="new user"?r.push("/login"):(await p(),m(),r.push("/"))}async function l(){const x=Ym(),N=new Ln;try{const Z=(await _4(x,N)).user;ot.value={uid:Z.uid,email:Z.email,displayName:Z.displayName,photoURL:Z.photoURL},await o()}catch(j){console.error(j)}}async function u(){Br.googleUser=!0;try{if(Vu.value)return h()?"already exist":"new user";Br.googleUser=!1}catch(x){console.error(x)}}async function c(){Br.googleUserList=!0;const x=[];try{(await JR(LR(Dm,n))).forEach(j=>{const Z={...j.data(),firebaseId:j.id};x.push(Z)}),bi.value=x,Br.googleUserList=!1}catch(N){console.error(N)}}function h(){return bi.value.some(x=>{var N;return x.uid===((N=Vu.value)==null?void 0:N.uid)})}async function p(){bi.value.length!==0&&(ot.value=bi.value.find(x=>{var N;return x.uid===((N=ot.value)==null?void 0:N.uid)}))}function m(){ot.value&&localStorage.setItem("user",JSON.stringify(ot.value))}function y(){const x=localStorage.getItem("user");x&&(ot.value=JSON.parse(x))}function C(){var j,Z;const x=String((Z=(j=t.value)==null?void 0:j.user)==null?void 0:Z.id);if(!x)return;const N=bi.value.filter(z=>{const A=z==null?void 0:z.telegramID;return A?x===A:!1});N!=null&&N[0]&&(ot.value=N[0]),e()}function R(){localStorage.removeItem("user")}function P(){i.signOut(),ot.value=null,R()}async function k(x){var N,j,Z,z;(j=(N=ot.value)==null?void 0:N.completedTests)==null||j.push(x),Br.googleUser=!0;try{(Z=ot.value)!=null&&Z.firebaseId&&await ZR(i_(Dm,n,(z=ot.value)==null?void 0:z.firebaseId),ot.value),Br.googleUser=!1}catch(A){console.error(A)}}return{googleUser:ot,googleUserList:bi,loading:Br,googleRegister:l,googleLogout:P,getAllUsers:c,userToObject:Vu,addToLocalStorage:m,getUserFromLocalStorage:y,removeFromLocalStorage:R,isAdmin:s,checkUserTelegram:C,updateUserInDatabase:k}},Mu=cn(!1),yo=()=>{const t=()=>/iPad|iPhone|iPod/.test(navigator.userAgent),e=()=>/Android/.test(navigator.userAgent),n=()=>/Windows/.test(navigator.userAgent);return{isIOS:t,isAndroid:e,isWindows:n,textForIOS:{title:"ÐоÑ
оже Ñ Ð²Ð°Ñ iOS ÑÑÑÑойÑÑво и Ð²Ñ Ð·Ð´ÐµÑÑ Ð²Ð¿ÐµÑвÑе"},textForAndroid:{title:"ÐоÑ
оже Ñ Ð²Ð°Ñ Android ÑÑÑÑойÑÑво и Ð²Ñ Ð·Ð´ÐµÑÑ Ð²Ð¿ÐµÑвÑе"},isBrowserMounted:()=>n(),isWebViewMounted:()=>t()||e(),redirectToBrowser:Mu,toggleRedirectPosition:()=>Mu.value=!Mu.value}};function jl(){const t=yh(),{redirectToBrowser:e}=yo(),{telegramNickname:n,decodeTelegramUser:r}=No(),i=["login","login-options","after-register"],s=()=>`https://almau-psychology.netlify.app/login-options?redirect=true&redirectTeleramId=${r()}&redirectLogin=${n.value}`,o=dt(()=>{var P,k;return(k=(P=t.currentRoute)==null?void 0:P.value)!=null&&k.name?i.includes(String(t.currentRoute.value.name))||e.value:!1}),l=dt(()=>t.currentRoute.value.params.id);function u(){window.location.href="https://t.me/AlmaU_Psychology_BOT"}function c(){t.push("/")}function h(P){t.push(`/result/${P}`)}function p(P){t.push(`/test/${P}`)}function m(){t.push("/admin-cabinet")}function y(){window.open("https://www.instagram.com/_krivalex_/?hl=ru")}function C(){t.push("/term-of-use")}function R(){t.back()}
3855return{isLoginPage:o,currentParamsID:l,getRedirectRoute:s,goBackToTelegramBot:u,goToMain:c,goToAdminView:m,goToResultPage:h,goToTest:p,redirectToKrivalex:y,goToTermOfUse:C,goBack:R}}const f9=["href"],p9=kr({__name:"LoginButton",setup(t){const{googleRegister:e,googleUser:n}=cd(),{isBrowserMounted:r,toggleRedirectPosition:i}=yo(),{getRedirectRoute:s,isLoginPage:o}=jl(),{isWebViewMounted:l}=yo(),{telegramUser:u}=No();return(c,h)=>!me(o)&&me(u)&&me(l)()?(X(),ge(Fe,{key:0},[me(r)()?(X(),ge(Fe,{key:1},[me(n)?nt("",!0):(X(),Ne(me(Fi),{key:0,class:"enter p-button-sm",onClick:me(e),label:"ÐойÑи",icon:"pi pi-sign"},null,8,["onClick"])),me(n)?(X(),Ne(me(Ta),{key:1,image:me(n).photoURL,shape:"circle",size:"normal"},null,8,["image"])):nt("",!0)],64)):(X(),ge(Fe,{key:0},[me(n)?nt("",!0):(X(),ge("a",{key:0,href:me(s)(),target:"_blank",class:"enter-link p-button-sm",onClick:h[0]||(h[0]=(...p)=>me(i)&&me(i)(...p))},"ÐойÑи",8,f9)),me(n)?(X(),Ne(me(Ta),{key:1,image:me(n).photoURL,shape:"circle",size:"normal"},null,8,["image"])):nt("",!0)],64))],64)):me(n)?(X(),ge(Fe,{key:1},[me(n)?(X(),Ne(me(Ta),{key:0,image:me(n).photoURL,shape:"circle",size:"normal"},null,8,["image"])):nt("",!0)],64)):(X(),Ne(me(Fi),{key:2,class:"enter p-button-sm",onClick:me(e),label:"ÐойÑи",icon:"pi pi-sign"},null,8,["onClick"]))}}),Zi=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},m9=Zi(p9,[["__scopeId","data-v-4f19c26e"]]),g9=kr({__name:"AdminButton",setup(t){const{goToAdminView:e}=jl(),{isAdmin:n}=cd(),{isWebViewMounted:r}=yo();return(i,s)=>
3855me(n)&&!me(r)()?(X(),Ne(me(Fi),{key:0,class:"admin-link p-button-sm",label:"ÐÐ°Ð±Ð¸Ð½ÐµÑ Ð¿ÑиÑ
олога",onClick:me(e)},null,8,["onClick"])):nt("",!0)}}),y9=Zi(g9,[["__scopeId","data-v-1962190c"]]),v9=t=>(Yc("data-v-606335e6"),t=t(),Xc(),t),_9={class:"navbar-panel"},b9={class:"standart-navbar"},w9=v9(()=>ie("img",{class:"logo",src:KA,alt:"logo"},null,-1)),E9={class:"login-control"},T9="0.3.7",I9=kr({__name:"NavbarPanel",setup(t){const{goToMain:e}=jl();return(n,r)=>(X(),ge("div",_9,[ie("div",b9,[ie("div",{class:"naming",onClick:r[0]||(r[0]=(...i)=>me(e)&&me(e)(...i))},[w9,ie("h1",{class:"name"},[Ni(" AlmaU Psychology "),ie("span",{class:"version"},In(T9))])]),ie("div",E9,[De(y9),De(m9)])])]))}}),A9=Zi(I9,[["__scopeId","data-v-606335e6"]]),S9=t=>(Yc("data-v-1ac63196"),t=t(),Xc(),t),C9={class:"footer-panel"},P9={class:"author"},R9={class:"copyright"},O9=S9(()=>ie("strong",null,"AlmaU Psychology",-1)),k9={class:"author-name"},D9=kr({__name:"FooterPanel",setup(t){const{redirectToKrivalex:e}=jl(),n=new Date().getFullYear();return(r,i)=>(X(),ge("div",C9,[ie("div",P9,[ie("span",R9,[Ni(" © "+In(me(n))+" ",1),O9]),ie("span",k9,[Ni("developed by "),ie("strong",{onClick:i[0]||(i[0]=(...s)=>me(e)&&me(e)(...s))},"@krivalex")])])]))}}),x9=Zi(D9,[["__scopeId","data-v-1ac63196"]]),L9=t=>(Yc("data-v-e3c19833"),t=t(),Xc(),t),N9={key:0,class:"warning-message-absolute"},V9=L9(()=>ie("span",{class:"description"}," ÐÐ»Ñ ÑÑпеÑной ÑегиÑÑÑаÑии нажмиÑе ",-1)),M9=kr({__name:"WarningWindow",setup(t){const{redirectToBrowser:e}=yo(),{reloadPage:n}=No();return(r,i)=>me(e)?(X(),ge("div",N9,[V9,De(me(Fi),{label:"ÐÑодолжиÑÑ",onClick:me(n)},null,8,["onClick"])])):nt("",!0)}}),$9=Zi(M9,[["__scopeId","data-v-e3c19833"]]);var F9={},U9=Oe.extend({style:F9}),B9=U9.extend("focustrap",{mounted:function(e,n){var r=n.value||{},i=r.disabled;i||(this.createHiddenFocusableElements(e,n),this.bind(e,n),this.autoFocus(e,n)),e.setAttribute("data-pd-focustrap",!0),this.$el=e},updated:function(e,n){var r=n.value||{},i=r.disabled;i&&this.unbind(e)},unmounted:function(e){this.unbind(e)},methods:{getComputedSelector:function(e){return':not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])'.concat(e??"")},bind:function(e,n){var r=this,i=n.value||{},s=i.onFocusIn,o=i.onFocusOut;e.$_pfocustrap_mutationobserver=new MutationObserver(function(l){l.forEach(function(u){if(u.type==="childList"&&!e.contains(document.activeElement)){var c=function h(p){var m=H.isFocusableElement(p)?H.isFocusableElement(p,r.getComputedSelector(e.$_pfocustrap_focusableselector))?p:H.getFirstFocusableElement(e,r.getComputedSelector(e.$_pfocustrap_focusableselector)):H.getFirstFocusableElement(p);return oe.isNotEmpty(m)?m:p.nextSibling&&h(p.nextSibling)};H.focus(c(u.nextSibling))}})}),e.$_pfocustrap_mutationobserver.disconnect(),e.$_pfocustrap_mutationobserver.observe(e,{childList:!0}),e.$_pfocustrap_focusinlistener=function(l){return s&&s(l)},e.$_pfocustrap_focusoutlistener=function(l){return o&&o(l)},e.addEventListener("focusin",e.$_pfocustrap_focusinlistener),e.addEventListener("focusout",e.$_pfocustrap_focusoutlistener)},unbind:function(e){e.$_pfocustrap_mutationobserver&&e.$_pfocustrap_mutationobserver.disconnect(),e.$_pfocustrap_focusinlistener&&e.removeEventListener("focusin",e.$_pfocustrap_focusinlistener)&&(e.$_pfocustrap_focusinlistener=null),e.$_pfocustrap_focusoutlistener&&e.removeEventListener("focusout",e.$_pfocustrap_focusoutlistener)&&(e.$_pfocustrap_focusoutlistener=null)},autoFocus:function(e,n){var r=n.value||{},i=r.autoFocusSelector,s=i===void 0?"":i,o=r.firstFocusableSelector,l=o===void 0?"":o,u=r.autoFocus,c=u===void 0?!1:u,h=H.getFirstFocusableElement(e,"[autofocus]".concat(this.getComputedSelector(s)));c&&!h&&(h=H.getFirstFocusableElement(e,this.getComputedSelector(l))),H.focus(h)},onFirstHiddenElementFocus:function(e){var n,r=e.currentTarget,i=e.relatedTarget,s=i===r.$_pfocustrap_lasthiddenfocusableelement||!((n=this.$el)!==null&&n!==void 0&&n.contains(i))?H.getFirstFocusableElement(r.parentElement,this.getComputedSelector(r.$_pfocustrap_focusableselector)):r.$_pfocustrap_lasthiddenfocusableelement;H.focus(s)},onLastHiddenElementFocus:function(e){var n,r=e.currentTarget,i=e.relatedTarget,s=i===r.$_pfocustrap_firsthiddenfocusableelement||!((n=this.$el)!==null&&n!==void 0&&n.contains(i))?H.getLastFocusableElement(r.parentElement,this.getComputedSelector(r.$_pfocustrap_focusableselector)):r.$_pfocustrap_firsthiddenfocusableelement;H.focus(s)},createHiddenFocusableElements:function(e,n){var r=this,i=n.value||{},s=i.tabIndex,o=s===void 0?0:s,l=i.firstFocusableSelector,u=l===void 0?"":l,c=i.lastFocusableSelector,h=c===void 0?"":c,p=function(R){return H.createElement("span",{class:"p-hidden-accessible p-hidden-focusable",tabIndex:o,role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:R==null?void 0:R.bind(r)})},m=p(this.onFirstHiddenElementFocus),y=p(this.onLastHiddenElementFocus);m.$_pfocustrap_lasthiddenfocusableelement=y,m.$_pfocustrap_focusableselector=u,m.setAttribute("data-pc-section","firstfocusableelement"),y.$_pfocustrap_firsthiddenfocusableelement=m,y.$_pfocustrap_focusableselector=h,y.setAttribute("data-pc-section","lastfocusableelement"),e.prepend(m),e.append(y)}}}),hd={name:"TimesIcon",extends:Dr},j9=ie("path",{d:"M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303
38551.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",fill:"currentColor"},null,-1),H9=[j9];function z9(t,e,n,r,i,s){return X(),ge("svg",le({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),H9,16)}hd.render=z9;var u0={name:"WindowMaximizeIcon",extends:Dr,computed:{pathId:function(){return"pv_icon_clip_".concat(Lt())}}},q9=["clip-path"],W9=ie("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z",fill:"currentColor"},null,-1),K9=[W9],G9=["id"],Q9=ie("rect",{width:"14",height:"14",fill:"white"},null,-1),Y9=[Q9];function X9(t,e,n,r,i,s){return X(),ge("svg",le({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),[ie("g",{"clip-path":"url(#".concat(s.pathId,")")},K9,8,q9),ie("defs",null,[ie("clipPath",{id:"".concat(s.pathId)},Y9,8,G9)])],16)}u0.render=X9;var c0={name:"WindowMinimizeIcon",extends:Dr,computed:{pathId:function(){return"pv_icon_clip_".concat(Lt())}}},J9=["clip-path"],Z9=ie("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2
385512.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z",fill:"currentColor"},null,-1),e6=[Z9],t6=["id"],n6=ie("rect",{width:"14",height:"14",fill:"white"},null,-1),r6=[n6];function i6(t,e,n,r,i,s){return X(),ge("svg",le({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),[ie("g",{"clip-path":"url(#".concat(s.pathId,")")},e6,8,J9),ie("defs",null,[ie("clipPath",{id:"".concat(s.pathId)},r6,8,t6)])],16)}c0.render=i6;var dd={name:"Portal",props:{appendTo:{type:[String,Object],default:"body"},disabled:{type:Boolean,default:!1}},data:function(){return{mounted:!1}},mounted:function(){this.mounted=H.isClient()},computed:{inline:function(){return this.disabled||this.appendTo==="self"}}};function s6(t,e,n,r,i,s){return s.inline?yt(t.$slots,"default",{key:0}):i.mounted?(X(),Ne(g1,{key:1,to:n.appendTo},[yt(t.$slots,"default")],8,["to"])):nt("",!0)}dd.render=s6;var o6=` 3856@layer primevue { 3857 .p-dialog-mask.p-component-overlay { 3858 pointer-events: auto; 3859 } 3860 3861 .p-dialog { 3862 max-height: 90%; 3863 transform: scale(1); 3864 } 3865 3866 .p-dialog-content { 3867 overflow-y: auto; 3868 } 3869 3870 .p-dialog-header { 3871 display: flex; 3872 align-items: center; 3873 justify-content: space-between; 3874 flex-shrink: 0; 3875 } 3876 3877 .p-dialog-footer { 3878 flex-shrink: 0; 3879 } 3880 3881 .p-dialog .p-dialog-header-icons { 3882 display: flex; 3883 align-items: center; 3884 } 3885 3886 .p-dialog .p-dialog-header-icon { 3887 display: flex; 3888 align-items: center; 3889 justify-content: center; 3890 overflow: hidden; 3891 position: relative; 3892 } 3893 3894 /* Fluid */ 3895 .p-fluid .p-dialog-footer .p-button { 3896 width: auto; 3897 } 3898 3899 /* Animation */ 3900 /* Center */ 3901 .p-dialog-enter-active { 3902 transition: all 150ms cubic-bezier(0, 0, 0.2, 1); 3903 } 3904 .p-dialog-leave-active { 3905 transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); 3906 } 3907 .p-dialog-enter-from, 3908 .p-dialog-leave-to { 3909 opacity: 0; 3910 transform: scale(0.7); 3911 } 3912 3913 /* Top, Bottom, Left, Right, Top* and Bottom* */ 3914 .p-dialog-top .p-dialog, 3915 .p-dialog-bottom .p-dialog, 3916 .p-dialog-left .p-dialog, 3917 .p-dialog-right .p-dialog, 3918 .p-dialog-topleft .p-dialog, 3919 .p-dialog-topright .p-dialog, 3920 .p-dialog-bottomleft .p-dialog, 3921 .p-dialog-bottomright .p-dialog { 3922 margin: 0.75rem; 3923 transform: translate3d(0px, 0px, 0px); 3924 } 3925 .p-dialog-top .p-dialog-enter-active, 3926 .p-dialog-top .p-dialog-leave-active, 3927 .p-dialog-bottom .p-dialog-enter-active, 3928 .p-dialog-bottom .p-dialog-leave-active, 3929 .p-dialog-left .p-dialog-enter-active, 3930 .p-dialog-left .p-dialog-leave-active, 3931 .p-dialog-right .p-dialog-enter-active, 3932 .p-dialog-right .p-dialog-leave-active, 3933 .p-dialog-topleft .p-dialog-enter-active, 3934 .p-dialog-topleft .p-dialog-leave-active, 3935 .p-dialog-topright .p-dialog-enter-active, 3936 .p-dialog-topright .p-dialog-leave-active, 3937 .p-dialog-bottomleft .p-dialog-enter-active, 3938 .p-dialog-bottomleft .p-dialog-leave-active, 3939 .p-dialog-bottomright .p-dialog-enter-active, 3940 .p-dialog-bottomright .p-dialog-leave-active { 3941 transition: all 0.3s ease-out; 3942 } 3943 .p-dialog-top .p-dialog-enter-from, 3944 .p-dialog-top .p-dialog-leave-to { 3945 transform: translate3d(0px, -100%, 0px); 3946 } 3947 .p-dialog-bottom .p-dialog-enter-from, 3948 .p-dialog-bottom .p-dialog-leave-to { 3949 transform: translate3d(0px, 100%, 0px); 3950 } 3951 .p-dialog-left .p-dialog-enter-from, 3952 .p-dialog-left .p-dialog-leave-to, 3953 .p-dialog-topleft .p-dialog-enter-from, 3954 .p-dialog-topleft .p-dialog-leave-to, 3955 .p-dialog-bottomleft .p-dialog-enter-from, 3956 .p-dialog-bottomleft .p-dialog-leave-to { 3957 transform: translate3d(-100%, 0px, 0px); 3958 } 3959 .p-dialog-right .p-dialog-enter-from, 3960 .p-dialog-right .p-dialog-leave-to, 3961 .p-dialog-topright .p-dialog-enter-from, 3962 .p-dialog-topright .p-dialog-leave-to, 3963 .p-dialog-bottomright .p-dialog-enter-from, 3964 .p-dialog-bottomright .p-dialog-leave-to { 3965 transform: translate3d(100%, 0px, 0px); 3966 } 3967 3968 /* Maximize */ 3969 .p-dialog-maximized { 3970 -webkit-transition: none; 3971 transition: none; 3972 transform: none; 3973 width: 100vw !important; 3974 height: 100vh !important; 3975 top: 0px; 3976 left: 0px; 3977 max-height: 100%; 3978 height: 100%; 3979 } 3980 .p-dialog-maximized .p-dialog-content { 3981 flex-grow: 1; 3982 } 3983 3984 .p-confirm-dialog .p-dialog-content { 3985 display: flex; 3986 align-items: center; 3987 } 3988} 3989`,a6={mask:function(e){var n=e.position,r=e.modal;return{position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex",justifyContent:n==="left"||n==="topleft"||n==="bottomleft"?"flex-start":n==="right"||n==="topright"||n==="bottomright"?"flex-end":"center",alignItems:n==="top"||n==="topleft"||n==="topright"?"flex-start":n==="bottom"||n==="bottomleft"||n==="bottomright"?"flex-end":"center",pointerEvents:r?"auto":"none"}},root:{display:"flex",flexDirection:"column",pointerEvents:"auto"}},l6={mask:function(e){var n=e.props,r=["left","right","top","topleft","topright","bottom","bottomleft","bottomright"],i=r.find(function(s){return s===n.position});return["p-dialog-mask",{"p-component-overlay p-component-overlay-enter":n.modal},i?"p-dialog-".concat(i):""]},root:function(e){var n=e.props,r=e.instance;return["p-dialog p-component",{"p-dialog-rtl":n.rtl,"p-dialog-maximized":n.maximizable&&r.maximized,"p-input-filled":r.$primevue.config.inputStyle==="filled","p-ripple-disabled":r.$primevue.config.ripple===!1}]},header:"p-dialog-header",title:"p-dialog-title",icons:"p-dialog-header-icons",maximizableButton:"p-dialog-header-icon p-dialog-header-maximize p-link",maximizableIcon:"p-dialog-header-maximize-icon",closeButton:"p-dialog-header-icon p-dialog-header-close p-link",closeButtonIcon:"p-dialog-header-close-icon",content:"p-dialog-content",footer:"p-dialog-footer"},u6=Gt.extend({name:"dialog",css:o6,classes:l6,inlineStyles:a6}),c6={name:"BaseDialog",extends:qn,props:{header:{type:null,default:null},footer:{type:null,default:null},visible:{type:Boolean,default:!1},modal:{type:Boolean,default:null},contentStyle:{type:null,default:null},contentClass:{type:String,default:null},contentProps:{type:null,default:null},rtl:{type:Boolean,default:null},maximizable:{type:Boolean,default:!1},dismissableMask:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!1},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},position:{type:String,default:"center"},breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0},keepInViewport:{type:Boolean,default:!0},minX:{type:Number,default:0},minY:{type:Number,default:0},appendTo:{type:[String,Object],default:"body"},closeIcon:{type:String,default:void 0},maximizeIcon:{type:String,default:void 0},minimizeIcon:{type:String,default:void 0},closeButtonProps:{type:null,default:null},_instance:null},style:u6,provide:function(){return{$parentInstance:this}}},fd={name:"Dialog",extends:c6,inheritAttrs:!1,emits:["update:visible","show","hide","after-hide","maximize","unmaximize","dragend"],provide:function(){var e=this;return{dialogRef:dt(function(){return e._instance})}},data:function(){return{containerVisible:this.visible,maximized:!1,focusableMax:null,focusableClose:null}},documentKeydownListener:null,container:null,mask:null,content:null,headerContainer:null,footerContainer:null,maximizableButton:null,closeButton:null,styleElement:null,dragging:null,documentDragListener:null,documentDragEndListener:null,lastPageX:null,lastPageY:null,updated:function(){this.visible&&(this.containerVisible=this.visible)},beforeUnmount:function(){this.unbindDocumentState(),this.unbindGlobalListeners(),this.destroyStyle(),this.mask&&this.autoZIndex&&_r.clear(this.mask),this.container=null,this.mask=null},mounted:function(){this.breakpoints&&this.createStyle()},methods:{close:function(){this.$emit("update:visible",!1)},onBeforeEnter:function(e){e.setAttribute(this.attributeSelector,"")},onEnter:function(){this.$emit("show"),this.focus(),this.enableDocumentSettings(),this.bindGlobalListeners(),this.autoZIndex&&_r.set("modal",this.mask,this.baseZIndex+this.$primevue.config.zIndex.modal)},onBeforeLeave:function(){this.modal&&!this.isUnstyled&&H.addClass(this.mask,"p-component-overlay-leave")},onLeave:function(){this.$emit("hide"),this.focusableClose=null,this.focusableMax=null},onAfterLeave:function(){this.autoZIndex&&_r.clear(this.mask),this.containerVisible=!1,this.unbindDocumentState(),this.unbindGlobalListeners(),this.$emit("after-hide")},onMaskClick:function(e){this.dismissableMask&&this.modal&&this.mask===e.target&&this.close()},focus:function(){var e=function(i){return i&&i.querySelector("[autofocus]")},n=this.$slots.footer&&e(this.footerContainer);n||(n=this.$slots.header&&e(this.headerContainer),n||(n=this.$slots.default&&e(this.content),n||(this.maximizable?(this.focusableMax=!0,n=this.maximizableButton):(this.focusableClose=!0,n=this.closeButton)))),n&&H.focus(n,{focusVisible:!0})},maximize:function(e){this.maximized?(this.maximized=!1,this.$emit("unmaximize",e)):(this.maximized=!0,this.$emit("maximize",e)),this.modal||(this.maximized?H.blockBodyScroll():H.unblockBodyScroll())},enableDocumentSettings:function(){(this.modal||!this.modal&&this.blockScroll||this.maximizable&&this.maximized)&&H.blockBodyScroll()},unbindDocumentState:function(){(this.modal||!this.modal&&this.blockScroll||this.maximizable&&this.maximized)&&H.unblockBodyScroll()},onKeyDown:function(e){e.code==="Escape"&&this.closeOnEscape&&this.close()},bindDocumentKeyDownListener:function(){this.documentKeydownListener||(this.documentKeydownListener=this.onKeyDown.bind(this),window.document.addEventListener("keydown",this.documentKeydownListener))},unbindDocumentKeyDownListener:function(){this.documentKeydownListener&&(window.document.removeEventListener("keydown",this.documentKeydownListener),this.documentKeydownListener=null)},containerRef:function(e){this.container=e},maskRef:function(e){this.mask=e},contentRef:function(e){this.content=e},headerContainerRef:function(e){this.headerContainer=e},footerContainerRef:function(e){this.footerContainer=e},maximizableRef:function(e){this.maximizableButton=e},closeButtonRef:function(e){this.closeButton=e},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",H.setAttribute(this.styleElement,"nonce",(e=this.$primevue)===null||e===void 0||(e=e.config)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce),document.head.appendChild(this.styleElement);var n="";for(var r in this.breakpoints)n+=` 3990 @media screen and (max-width: `.concat(r,`) { 3991 .p-dialog[`).concat(this.attributeSelector,`] { 3992 width: `).concat(this.breakpoints[r],` !important; 3993 } 3994 } 3995 `);this.styleElement.innerHTML=n}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},initDrag:function(e){e.target.closest("div").getAttribute("data-pc-section")!=="icons"&&this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",!this.isUnstyled&&H.addClass(document.body,"p-unselectable-text"))},bindGlobalListeners:function(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.closeOnEscape&&this.closable&&this.bindDocumentKeyDownListener()},unbindGlobalListeners:function(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentKeyDownListener()},bindDocumentDragListener:function(){var e=this;this.documentDragListener=function(n){if(e.dragging){var r=H.getOuterWidth(e.container),i=H.getOuterHeight(e.container),s=n.pageX-e.lastPageX,o=n.pageY-e.lastPageY,l=e.container.getBoundingClientRect(),u=l.left+s,c=l.top+o,h=H.getViewport(),p=getComputedStyle(e.container),m=parseFloat(p.marginLeft),y=parseFloat(p.marginTop);e.container.style.position="fixed",e.keepInViewport?(u>=e.minX&&u+r<h.width&&(e.lastPageX=n.pageX,e.container.style.left=u-m+"px"),c>=e.minY&&c+i<h.height&&(e.lastPageY=n.pageY,e.container.style.top=c-y+"px")):(e.lastPageX=n.pageX,e.container.style.left=u-m+"px",e.lastPageY=n.pageY,e.container.style.top=c-y+"px")}},window.document.addEventListener("mousemove",this.documentDragListener)},unbindDocumentDragListener:function(){this.documentDragListener&&(window.document.removeEventListener("mousemove",this.documentDragListener),this.documentDragListener=null)},bindDocumentDragEndListener:function(){var e=this;this.documentDragEndListener=function(n){e.dragging&&(e.dragging=!1,!e.isUnstyled&&H.removeClass(document.body,"p-unselectable-text"),e.$emit("dragend",n))},window.document.addEventListener("mouseup",this.documentDragEndListener)},unbindDocumentDragEndListener:function(){this.documentDragEndListener&&(window.document.removeEventListener("mouseup",this.documentDragEndListener),this.documentDragEndListener=null)}},computed:{maximizeIconComponent:function(){return this.maximized?this.minimizeIcon?"span":"WindowMinimizeIcon":this.maximizeIcon?"span":"WindowMaximizeIcon"},ariaId:function(){return Lt()},ariaLabelledById:function(){return this.header!=null||this.$attrs["aria-labelledby"]!==null?this.ariaId+"_header":null},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0},attributeSelector:function(){return Lt()}},directives:{ripple:vh,focustrap:B9},components:{Portal:dd,WindowMinimizeIcon:c0,WindowMaximizeIcon:u0,TimesIcon:hd}};function vo(t){"@babel/helpers - typeof";return vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vo(t)}function Xm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function wi(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2
3995?Xm(Object(n),!0).forEach(function(r){h6(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function h6(t,e,n){return e=d6(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d6(t){var e=f6(t,"string");return vo(e)=="symbol"?e:String(e)}function f6(t,e){if(vo(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(vo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var p6=["aria-labelledby","aria-modal"],m6=["id"],g6=["autofocus","tabindex"],y6=["autofocus","aria-label"];function v6(t,e,n,r,i,s){var o=Tr("Portal"),l=Na("ripple"),u=Na("focustrap");return X(),Ne(o,{appendTo:t.appendTo},{default:Ht(function(){return[i.containerVisible?(X(),ge("div",le({key:0,ref:s.maskRef,class:t.cx("mask"),style:t.sx("mask",!0,{position:t.position,modal:t.modal}),onClick:e[3]||(e[3]=function(){return s.onMaskClick&&s.onMaskClick.apply(s,arguments)})},t.ptm("mask")),[De(ah,le({name:"p-dialog",onBeforeEnter:s.onBeforeEnter,onEnter:s.onEnter,onBeforeLeave:s.onBeforeLeave,onLeave:s.onLeave,onAfterLeave:s.onAfterLeave,appear:""},t.ptm("transition")),{default:Ht(function(){return[t.visible?Cs((X(),ge("div",le({key:0,ref:s.containerRef,class:t.cx("root"),style:t.sx("root"),role:"dialog","aria-labelledby":s.ariaLabelledById,"aria-modal":t.modal},wi(wi({},t.$attrs),t.ptm("root"))),[t.$slots.container?yt(t.$slots,"container",{key:0,onClose:s.close,onMaximize:function(h){return s.maximize(h)},closeCallback:s.close,maximizeCallback:function(h){return s.maximize(h)}}):(X(),ge(Fe,{key:1},[t.showHeader?(X(),ge("div",le({key:0,ref:s.headerContainerRef,class:t.cx("header"),onMousedown:e[2]||(e[2]=function(){return s.initDrag&&s.initDrag.apply(s,arguments)})},t.ptm("header")),[yt(t.$slots,"header",{class:Mt(t.cx("title"))},function(){return[t.header?(X(),ge("span",le({key:0,id:s.ariaLabelledById,class:t.cx("title")},t.ptm("title")),In(t.header),17,m6)):nt("",!0)]}),ie("div",le({class:t.cx("icons")},t.ptm("icons")),[t.maximizable?Cs((X(),ge("button",le({key:0,ref:s.maximizableRef,autofocus:i.focusableMax,class:t.cx("maximizableButton"),onClick:e[0]||(e[0]=function(){return s.maximize&&s.maximize.apply(s,arguments)}),type:"button",tabindex:t.maximizable?"0":"-1"},t.ptm("maximizableButton"),{"data-pc-group-section":"headericon"}),[yt(t.$slots,"maximizeicon",{maximized:i.maximized,class:Mt(t.cx("maximizableIcon"))},function(){return[(X(),Ne(tn(s.maximizeIconComponent),le({class:[t.cx("maximizableIcon"),i.maximized?t.minimizeIcon:t.maximizeIcon]},t.ptm("maximizableIcon")),null,16,["class"]))]})],16,g6)),[[l]]):nt("",!0),t.closable?Cs((X(),ge("button",le({key:1,ref:s.closeButtonRef,autofocus:i.focusableClose,class:t.cx("closeButton"),onClick:e[1]||(e[1]=function(){return s.close&&s.close.apply(s,arguments)}),"aria-label":s.closeAriaLabel,type:"button"},wi(wi({},t.closeButtonProps),t.ptm("closeButton")),{"data-pc-group-section":"headericon"}),[yt(t.$slots,"closeicon",{class:Mt(t.cx("closeButtonIcon"))},function(){return[(X(),Ne(tn(t.closeIcon?"span":"TimesIcon"),le({class:[t.cx("closeButtonIcon"),t.closeIcon]},t.ptm("closeButtonIcon")),null,16,["class"]))]})],16,y6)),[[l]]):nt("",!0)],16)],16)):nt("",!0),ie("div",le({ref:s.contentRef,class:[t.cx("content"),t.contentClass],style:t.contentStyle},wi(wi({},t.contentProps),t.ptm("content"))),[yt(t.$slots,"default")],16),t.footer||t.$slots.footer?(X(),ge("div",le({key:1,ref:s.footerContainerRef,class:t.cx("footer")},t.ptm("footer")),[yt(t.$slots,"footer",{},function(){return[Ni(In(t.footer),1)]})],16)):nt("",!0)],64))],16,p6)),[[u,{disabled:!t.modal}]]):nt("",!0)]}),_:3},16,["onBeforeEnter","onEnter","onBeforeLeave","onLeave","onAfterLeave"])],16)):nt("",!0)]}),_:3},8,["appendTo"])}fd.render=v6;var _6={},b6={name:"BaseDynamicDialog",extends:qn,props:{},style:_6,provide:function(){return{$parentInstance:this}}},h0={name:"DynamicDialog",extends:b6,inheritAttrs:!1,data:function(){return{instanceMap:{}}},openListener:null,closeListener:null,currentInstance:null,mounted:function(){var e=this;this.openListener=function(n){var r=n.instance,i=Lt()+"_dynamic_dialog";r.visible=!0,r.key=i,e.instanceMap[i]=r},this.closeListener=function(n){var r=n.instance,i=n.params,s=r.key,o=e.instanceMap[s];o&&(o.visible=!1,o.options.onClose&&o.options.onClose({data:i,type:"config-close"}),e.currentInstance=o)},Si.on("open",this.openListener),Si.on("close",this.closeListener)},beforeUnmount:function(){Si.off("open",this.openListener),Si.off("
3995close",this.closeListener)},methods:{onDialogHide:function(e){!this.currentInstance&&e.options.onClose&&e.options.onClose({type:"dialog-close"})},onDialogAfterHide:function(){this.currentInstance&&delete this.currentInstance,this.currentInstance=null},getTemplateItems:function(e){return Array.isArray(e)?e:[e]}},components:{DDialog:fd}};function w6(t,e,n,r,i,s){var o=Tr("DDialog");return X(!0),ge(Fe,null,ya(i.instanceMap,function(l,u){return X(),Ne(o,le({key:u,visible:l.visible,"onUpdate:visible":function(h){return l.visible=h},_instance:l},l.options.props,{onHide:function(h){return s.onDialogHide(l)},onAfterHide:s.onDialogAfterHide}),va({default:Ht(function(){return[(X(),Ne(tn(l.content),ag(iy(l.options.emits)),null,16))]}),_:2},[l.options.templates&&l.options.templates.header?{name:"header",fn:Ht(function(){return[(X(!0),ge(Fe,null,ya(s.getTemplateItems(l.options.templates.header),function(c,h){return X(),Ne(tn(c),le({key:h+"_header"},l.options.emits),null,16)}),128))]}),key:"0"}:void 0,l.options.templates&&l.options.templates.footer?{name:"footer",fn:Ht(function(){return[(X(!0),ge(Fe,null,ya(s.getTemplateItems(l.options.templates.footer),function(c,h){return X(),Ne(tn(c),le({key:h+"_footer"},l.options.emits),null,16)}),128))]}),key:"1"}:void 0]),1040,["visible","onUpdate:visible","_instance","onHide","onAfterHide"])}),128)}h0.render=w6;var E6={root:"p-confirm-dialog",icon:"p-confirm-dialog-icon",message:"p-confirm-dialog-message",rejectButton:function(e){var n=e.instance;return["p-confirm-dialog-reject",n.confirmation&&!n.confirmation.rejectClass?"p-button-text":null]},acceptButton:"p-confirm-dialog-accept"},T6=Gt.extend({name:"confirmdialog",classes:E6}),I6={name:"BaseConfirmDialog",extends:qn,props:{group:String,breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0}},style:T6,provide:function(){return{$parentInstance:this}}},d0={name:"ConfirmDialog",extends:I6,confirmListener:null,closeListener:null,data:function(){return{visible:!1,confirmation:null}},mounted:function(){var e=this;this.confirmListener=function(n){n&&n.group===e.group&&(e.confirmation=n,e.confirmation.onShow&&e.confirmation.onShow(),e.visible=!0)},this.closeListener=function(){e.visible=!1,e.confirmation=null},Ci.on("confirm",this.confirmListener),Ci.on("close",this.closeListener)},beforeUnmount:function(){Ci.off("confirm",this.confirmListener),Ci.off("close",this.closeListener)},methods:{accept:function(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject:function(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide:function(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1},getCXOptions:function(e,n){return{contenxt:{icon:e,iconClass:n.class}}}},computed:{header:function(){return this.confirmation?this.confirmation.header:null},message:function(){return this.confirmation?this.confirmation.message:null},blockScroll:function(){return this.confirmation?this.confirmation.blockScroll:!0},position:function(){return this.confirmation?this.confirmation.position:null},acceptLabel:function(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel:function(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon:function(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon:function(){return this.confirmation?this.confirmation.rejectIcon:null},autoFocusAccept:function(){return this.confirmation.defaultFocus===void 0||this.confirmation.defaultFocus==="accept"},autoFocusReject:function(){return this.confirmation.defaultFocus==="reject"},closeOnEscape:function(){return this.confirmation?this.confirmation.closeOnEscape:!0}},components:{CDialog:fd,CDButton:Fi}};function A6(t,e,n,r,i,s){var o=Tr("CDButton"),l=Tr("CDialog");return X(),Ne(l,{visible:i.visible,"onUpdate:visible":[e[2]||(e[2]=function(u){return i.visible=u}),s.onHide],role:"alertdialog",class:Mt(t.cx("root")),modal:!0,header:s.header,blockScroll:s.blockScroll,position:s.position,breakpoints:t.breakpoints,closeOnEscape:s.closeOnEscape,draggable:t.draggable,pt:t.pt,unstyled:t.unstyled},va({default:Ht(function(){return[t.$slots.container?nt("",!0):(X(),ge(Fe,{key:0},[t.$slots.message?(X(),Ne(tn(t.$slots.message),{key:1,message:i.confirmation},null,8,["message"])):(X(),ge(Fe,{key:0},[yt(t.$slots,"icon",{},function(){return[t.$slots.icon?(X(),Ne(tn(t.$slots.icon),{key:0,class:Mt(t.cx("icon"))},null,8,["class"])):i.confirmation.icon?(X(),ge("span",le({key:1,class:[i.confirmation.icon,t.cx("icon")]},t.ptm("icon")),null,16)):nt("",!0)]}),ie("span",le({class:t.cx("message")},t.ptm("message")),In(s.message),17)],64))],64))]}),_:2},[t.$slots.container?{name:"container",fn:Ht(function(u){return[yt(t.$slots,"container",{message:i.confirmation,onClose:u.onClose,onAccept:s.accept,onReject:s.reject,closeCallback:u.onclose,acceptCallback:s.accept,rejectCallback:s.reject})]}),key:"0"}:void 0,t.$slots.container?void 0:{name:"footer",fn:Ht(function(){return[De(o,{label:s.rejectLabel,class:Mt([t.cx("rejectButton"),i.confirmation.rejectClass]),onClick:e[0]||(e[0]=function(u){return s.reject()}
3995),autofocus:s.autoFocusReject,unstyled:t.unstyled,pt:t.ptm("rejectButton"),"data-pc-name":"rejectbutton"},va({_:2},[s.rejectIcon||t.$slots.rejecticon?{name:"icon",fn:Ht(function(u){return[yt(t.$slots,"rejecticon",{},function(){return[ie("span",le({class:[s.rejectIcon,u.class]},t.ptm("rejectButton").icon,{"data-pc-name":"rejectbuttonicon"}),null,16)]})]}),key:"0"}:void 0]),1032,["label","class","autofocus","unstyled","pt"]),De(o,{label:s.acceptLabel,class:Mt([t.cx("acceptButton"),i.confirmation.acceptClass]),onClick:e[1]||(e[1]=function(u){return s.accept()}),autofocus:s.autoFocusAccept,unstyled:t.unstyled,pt:t.ptm("acceptButton"),"data-pc-name":"acceptbutton"},va({_:2},[s.acceptIcon||t.$slots.accepticon?{name:"icon",fn:Ht(function(u){return[yt(t.$slots,"accepticon",{},function(){return[ie("span",le({class:[s.acceptIcon,u.class]},t.ptm("acceptButton").icon,{"data-pc-name":"acceptbuttonicon"}),null,16)]})]}),key:"0"}:void 0]),1032,["label","class","autofocus","unstyled","pt"])]}),key:"1"}]),1032,["visible","class","header","blockScroll","position","breakpoints","closeOnEscape","draggable","onUpdate:visible","pt","unstyled"])}d0.render=A6;function _o(t){"@babel/helpers - typeof";return _o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_o(t)}function fa(t,e,n){return e=S6(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function S6(t){var e=C6(t,"string");return _o(e)=="symbol"?e:String(e)}function C6(t,e){if(_o(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(_o(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var P6=` 3996@layer primevue { 3997 .p-toast { 3998 width: 25rem; 3999 white-space: pre-line; 4000 word-break: break-word; 4001 } 4002 4003 .p-toast-message-icon { 4004 flex-shrink: 0; 4005 } 4006 4007 .p-toast-message-content { 4008 display: flex; 4009 align-items: flex-start; 4010 } 4011 4012 .p-toast-message-text { 4013 flex: 1 1 auto; 4014 } 4015 4016 .p-toast-top-center { 4017 transform: translateX(-50%); 4018 } 4019 4020 .p-toast-bottom-center { 4021 transform: translateX(-50%); 4022 } 4023 4024 .p-toast-center { 4025 min-width: 20vw; 4026 transform: translate(-50%, -50%); 4027 } 4028 4029 .p-toast-icon-close { 4030 display: flex; 4031 align-items: center; 4032 justify-content: center; 4033 overflow: hidden; 4034 position: relative; 4035 } 4036 4037 .p-toast-icon-close.p-link { 4038 cursor: pointer; 4039 } 4040 4041 /* Animations */ 4042 .p-toast-message-enter-from { 4043 opacity: 0; 4044 -webkit-transform: translateY(50%); 4045 -ms-transform: translateY(50%); 4046 transform: translateY(50%); 4047 } 4048 4049 .p-toast-message-leave-from { 4050 max-height: 1000px; 4051 } 4052 4053 .p-toast .p-toast-message.p-toast-message-leave-to { 4054 max-height: 0; 4055 opacity: 0; 4056 margin-bottom: 0; 4057 overflow: hidden; 4058 } 4059 4060 .p-toast-message-enter-active { 4061 -webkit-transition: transform 0.3s, opacity 0.3s; 4062 transition: transform 0.3s, opacity 0.3s; 4063 } 4064 4065 .p-toast-message-leave-active { 4066 -webkit-transition: max-height 0.45s cubic-bezier(0, 1, 0, 1), opacity 0.3s, margin-bottom 0.3s; 4067 transition: max-height 0.45s cubic-bezier(0, 1, 0, 1), opacity 0.3s, margin-bottom 0.3s; 4068 } 4069} 4070`,R6={root:function(e){var n=e.position;return{position:"fixed",top:n==="top-right"||n==="top-left"||n==="top-center"?"20px":n==="center"?"50%":null,right:(n==="top-right"||n==="bottom-right")&&"20px",bottom:(n==="bottom-left"||n==="bottom-right"||n==="bottom-center")&&"20px",left:n==="top-left"||n==="bottom-left"?"20px":n==="center"||n==="top-center"||n==="bottom-center"?"50%":null}}},O6={root:function(e){var n=e.props,r=e.instance;return["p-toast p-component p-toast-"+n.position,{"p-input-filled":r.$primevue.config.inputStyle==="filled","p-ripple-disabled":r.$primevue.config.ripple===!1}]},container:function(e){var n=e.props;return["p-toast-message",{"p-toast-message-info":n.message.severity==="info"||n.message.severity===void 0,"p-toast-message-warn":n.message.severity==="warn","p-toast-message-error":n.message.severity==="error","p-toast-message-success":n.message.severity==="success"}]},content:"p-toast-message-content",icon:function(e){var n=e.props;return["p-toast-message-icon",fa(fa(fa(fa({},n.infoIcon,n.message.severity==="info"),n.warnIcon,n.message.severity==="warn"),n.errorIcon,n.message.severity==="error"),n.successIcon,n.message.severity==="success")]}
4070,text:"p-toast-message-text",summary:"p-toast-summary",detail:"p-toast-detail",closeButton:"p-toast-icon-close p-link",closeIcon:"p-toast-icon-close-icon"},k6=Gt.extend({name:"toast",css:P6,classes:O6,inlineStyles:R6}),Rc={name:"CheckIcon",extends:Dr},D6=ie("path",{d:"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",fill:"currentColor"},null,-1),x6=[D6];function L6(t,e,n,r,i,s){return X(),ge("svg",le({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),x6,16)}Rc.render=L6;var Oc={name:"ExclamationTriangleIcon",extends:Dr,computed:{pathId:function(){return"pv_icon_clip_".concat(Lt())}}},N6=["clip-path"],V6=ie("path",{d:"M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z",fill:"currentColor"},null,-1),M6=ie("path",{d:"M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z",fill:"currentColor"},null,-1),$6=ie("path",{d:"M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z",fill:"currentColor"},null,-1),F6=[V6,M6,$6],U6=["id"],B6=ie("rect",{width:"14",height:"14",fill:"white"},null,-1),j6=[B6];function H6(t,e,n,r,i,s){return X(),ge("svg",le({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),[ie("g",{"clip-path":"url(#".concat(s.pathId,")")},F6,8,N6),ie("defs",null,[ie("clipPath",{id:"".concat(s.pathId)},j6,8,U6)])],16)}Oc.render=H6;var kc={name:"InfoCircleIcon",extends:Dr,computed:{pathId:function(){return"pv_icon_clip_".concat(Lt())}}},z6=["clip-path"],q6=ie("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.8752
40701 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z",fill:"currentColor"},null,-1),W6=[q6],K6=["id"],G6=ie("rect",{width:"14",height:"14",fill:"white"},null,-1),Q6=[G6];function Y6(t,e,n,r,i,s){return X(),ge("svg",le({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),[ie("g",{"clip-path":"url(#".concat(s.pathId,")")},W6,8,z6),ie("defs",null,[ie("clipPath",{id:"".concat(s.pathId)},Q6,8,K6)])],16)}kc.render=Y6;var Dc={name:"TimesCircleIcon",extends:Dr,computed:{pathId:function(){return"pv_icon_clip_".concat(Lt())}}},X6=["clip-path"],J6=ie("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z",fill:"currentColor"},null,-1),Z6=[J6],ek=["id"],tk=ie("rect",{width:"14",height:"14",fill:"white"},null,-1),nk=[tk];function rk(t,e,n,r,i,s){return X(),ge("svg",le({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),[ie("g",{"clip-path":"url(#".concat(s.pathId,")")},Z6,8,X6),ie("defs",null,[ie("clipPath",{id:"".concat(s.pathId)},nk,8,ek)])],16)}Dc.render=rk;var ik={name:"BaseToast",extends:qn,props:{group:{type:String,default:null},position:{type:String,default:"top-right"},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},breakpoints:{type:Object,default:null},closeIcon:{type:String,default:void 0},infoIcon:{type:String,default:void 0},warnIcon:{type:String,default:void 0},errorIcon:{type:String,default:void 0},successIcon:{type:String,default:void 0},closeButtonProps:{type:null,default:null}},style:k6,provide:function(){return{$parentInstance:this}}},f0={name:"ToastMessage",hostName:"Toast",extends:qn,emits:["close"],closeTimeout:null,props:{message:{type:null,default:null},templates:{type:Object,default:null},closeIcon:{type:String,default:null},infoIcon:{type:String,default:null},warnIcon:{type:String,default:null},errorIcon:{type:String,default:null},successIcon:{type:String,default:null},closeButtonProps:{type:null,default:null}},mounted:function(){var e=this;this.message.life&&(this.closeTimeout=setTimeout(function(){e.close({message:e.message,type:"life-end"})},this.message.life))},beforeUnmount:function(){this.clearCloseTimeout()},methods:{close:function(e){this.$emit("close",e)},onCloseClick:function(){this.clearCloseTimeout(),this.close({message:this.message,type:"close"})},clearCloseTimeout:function(){this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null)}},computed:{iconComponent:function(){return{info:!this.infoIcon&&kc,success:!this.successIcon&&Rc,warn:!this.warnIcon&&Oc,error:!this.errorIcon&&Dc}[this.message.severity]},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{TimesIcon:hd,InfoCircleIcon:kc,CheckIcon:Rc,ExclamationTriangleIcon:Oc,TimesCircleIcon:Dc},directives:{ripple:vh}};function bo(t){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bo(t)}function Jm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function _s(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
4070e%2?Jm(Object(n),!0).forEach(function(r){sk(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function sk(t,e,n){return e=ok(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ok(t){var e=ak(t,"string");return bo(e)=="symbol"?e:String(e)}function ak(t,e){if(bo(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(bo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var lk=["aria-label"];function uk(t,e,n,r,i,s){var o=Na("ripple");return X(),ge("div",le({class:[t.cx("container"),n.message.styleClass],role:"alert","aria-live":"assertive","aria-atomic":"true"},t.ptm("container")),[n.templates.container?(X(),Ne(tn(n.templates.container),{key:0,message:n.message,onClose:s.onCloseClick,closeCallback:s.onCloseClick},null,40,["message","onClose","closeCallback"])):(X(),ge("div",le({key:1,class:[t.cx("content"),n.message.contentStyleClass]},t.ptm("content")),[n.templates.message?(X(),Ne(tn(n.templates.message),{key:1,message:n.message},null,8,["message"])):(X(),ge(Fe,{key:0},[(X(),Ne(tn(n.templates.icon?n.templates.icon:s.iconComponent&&s.iconComponent.name?s.iconComponent:"span"),le({class:t.cx("icon")},t.ptm("icon")),null,16,["class"])),ie("div",le({class:t.cx("text")},t.ptm("text")),[ie("span",le({class:t.cx("summary")},t.ptm("summary")),In(n.message.summary),17),ie("div",le({class:t.cx("detail")},t.ptm("detail")),In(n.message.detail),17)],16)],64)),n.message.closable!==!1?(X(),ge("div",ag(le({key:2},t.ptm("buttonContainer"))),[Cs((X(),ge("button",le({class:t.cx("closeButton"),type:"button","aria-label":s.closeAriaLabel,onClick:e[0]||(e[0]=function(){return s.onCloseClick&&s.onCloseClick.apply(s,arguments)}),autofocus:""},_s(_s(_s({},n.closeButtonProps),t.ptm("button")),t.ptm("closeButton"))),[(X(),Ne(tn(n.templates.closeicon||"TimesIcon"),le({class:[t.cx("closeIcon"),n.closeIcon]},_s(_s({},t.ptm("buttonIcon")),t.ptm("closeIcon"))),null,16,["class"]))],16,lk)),[[o]])],16)):nt("",!0)],16))],16)}f0.render=uk;function ck(t){return pk(t)||fk(t)||dk(t)||hk()}function hk(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 4071In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dk(t,e){if(t){if(typeof t=="string")return xc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xc(t,e)}}function fk(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function pk(t){if(Array.isArray(t))return xc(t)}function xc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var mk=0,p0={name:"Toast",extends:ik,inheritAttrs:!1,emits:["close","life-end"],data:function(){return{messages:[]}},styleElement:null,mounted:function(){Zt.on("add",this.onAdd),Zt.on("remove",this.onRemove),Zt.on("remove-group",this.onRemoveGroup),Zt.on("remove-all-groups",this.onRemoveAllGroups),this.breakpoints&&this.createStyle()},beforeUnmount:function(){this.destroyStyle(),this.$refs.container&&this.autoZIndex&&_r.clear(this.$refs.container),Zt.off("add",this.onAdd),Zt.off("remove",this.onRemove),Zt.off("remove-group",this.onRemoveGroup),Zt.off("remove-all-groups",this.onRemoveAllGroups)},methods:{add:function(e){e.id==null&&(e.id=mk++),this.messages=[].concat(ck(this.messages),[e])},remove:function(e){for(var n=-1,r=0;r<this.messages.length;r++)if(this.messages[r]===e.message){n=r;break}this.messages.splice(n,1),this.$emit(e.type,{message:e.message})},onAdd:function(e){this.group==e.group&&this.add(e)},onRemove:function(e){this.remove({message:e,type:"close"})},onRemoveGroup:function(e){this.group===e&&(this.messages=[])},onRemoveAllGroups:function(){this.messages=[]},onEnter:function(){this.$refs.container.setAttribute(this.attributeSelector,""),this.autoZIndex&&_r.set("modal",this.$refs.container,this.baseZIndex||this.$primevue.config.zIndex.modal)},onLeave:function(){var e=this;this.$refs.container&&this.autoZIndex&&oe.isEmpty(this.messages)&&setTimeout(function(){_r.clear(e.$refs.container)},200)},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",H.setAttribute(this.styleElement,"nonce",(e=this.$primevue)===null||e===void 0||(e=e.config)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce),document.head.appendChild(this.styleElement);var n="";for(var r in this.breakpoints){var i="";for(var s in this.breakpoints[r])i+=s+":"+this.breakpoints[r][s]+"!important;";n+=` 4072 @media screen and (max-width: `.concat(r,`) { 4073 .p-toast[`).concat(this.attributeSelector,`] { 4074 `).concat(i,` 4075 } 4076 } 4077 `)}this.styleElement.innerHTML=n}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}},computed:{attributeSelector:function(){return Lt()}},components:{ToastMessage:f0,Portal:dd}};function wo(t){"@babel/helpers - typeof";return wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wo(t)}function Zm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function pa(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
4077e%2?Zm(Object(n),!0).forEach(function(r){gk(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function gk(t,e,n){return e=yk(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yk(t){var e=vk(t,"string");return wo(e)=="symbol"?e:String(e)}function vk(t,e){if(wo(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(wo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _k(t,e,n,r,i,s){var o=Tr("ToastMessage"),l=Tr("Portal");return X(),Ne(l,null,{default:Ht(function(){return[ie("div",le({ref:"container",class:t.cx("root"),style:t.sx("root",!0,{position:t.position})},pa(pa({},t.$attrs),t.ptm("root"))),[De(Z1,le({name:"p-toast-message",tag:"div",onEnter:s.onEnter,onLeave:s.onLeave},pa(pa({},t.ptm("message")),t.ptm("transition"))),{default:Ht(function(){return[(X(!0),ge(Fe,null,ya(i.messages,function(u){return X(),Ne(o,{key:u.id,message:u,templates:t.$slots,closeIcon:t.closeIcon,infoIcon:t.infoIcon,warnIcon:t.warnIcon,errorIcon:t.errorIcon,successIcon:t.successIcon,closeButtonProps:t.closeButtonProps,onClose:e[0]||(e[0]=function(c){return s.remove(c)}),pt:t.pt},null,8,["message","templates","closeIcon","infoIcon","warnIcon","errorIcon","successIcon","closeButtonProps","pt"])}),128))]}),_:1},16,["onEnter","onLeave"])],16)]}),_:1})}p0.render=_k;const bk=kr({__name:"App",setup(t){const{getAllUsers:e,getUserFromLocalStorage:n,checkUserTelegram:r}=cd(),{initTelegram:i}=No();return ml(async()=>{i(),await e(),setTimeout(()=>{r(),n()},100)}),(s,o)=>(X(),ge(Fe,null,[De($9),De(me(h0)),De(me(d0)),De(me(p0),{position:"bottom-left"}),De(A9),ie("main",null,[De(me(Wy))]),De(x9)],64))}}),wk=Zi(bk,[["__scopeId","data-v-ac9aef59"]]),Ek="modulepreload",Tk=function(t){return"/"+t},eg={},Dn=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),o=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.all(n.map(l=>{if(l=Tk(l),l in eg)return;eg[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":Ek,u||(h.as="script",h.crossOrigin=""),h.href=l,o&&h.setAttribute("nonce",o),document.head.appendChild(h),u)return new Promise((p,m)=>{h.addEventListener("load",p),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}return i.then(()=>e()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})},Ik=qA({history:lA("/"),routes:[{path:"/",name:"all-tests",component:()=>Dn(()=>import("./AllTestsView-C8GAl-D4.js"),__vite__mapDeps([0,1,2,3,4,5]))}
4077,{path:"/login",name:"login",component:()=>Dn(()=>import("./LoginView-BrxBZojC.js"),__vite__mapDeps([6,7,8,2,9]))},{path:"/login-options",name:"login-options",component:()=>Dn(()=>import("./LoginRedirectView-DTqjslrC.js"),__vite__mapDeps([10,11]))},{path:"/after-register",name:"after-register",component:()=>Dn(()=>import("./AfterRegisterRedirectView-DArQZt9g.js"),__vite__mapDeps([12,13]))},{path:"/test/:id",name:"test",component:()=>Dn(()=>import("./TestView-9omyLGow.js").then(t=>t.a),__vite__mapDeps([14,8,1,2,3,15,16]))},{path:"/result/:id",name:"result",component:()=>Dn(()=>import("./ResultView-BJ6fvf8l.js"),__vite__mapDeps([17,1,2,3,15,18]))},{path:"/:pathMatch(.*)*",name:"not-found",component:()=>Dn(()=>import("./NotFoundView-ClP7-0-E.js"),__vite__mapDeps([19,20]))},{path:"/admin-cabinet",name:"admin-cabinet",component:()=>Dn(()=>import("./AdminCabinetView-BV_Yzhee.js"),__vite__mapDeps([21,15,2,1,3,7,4,14,8,16,17,18,22]))},{path:"/term-of-use",name:"term-of-use",component:()=>Dn(()=>import("./TermsOfUseView-DTUhyZw2.js"),__vite__mapDeps([23,24]))}]});Kt("required",lT);Kt("min",Ry);Kt("max",Py);Kt("numeric",sT);Kt("email",JE);Kt("url",uT);Kt("length",nT);Kt("digits",dh);Kt("between",Cy);Kt("integer",ZE);Kt("is",eT);Kt("is_not",tT);Kt("digitsBetween",dh);YE({generateMessage:fT("ru",{messages:{required:"Ðоле обÑзаÑелÑно Ð´Ð»Ñ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ",min:"ÐинималÑное знаÑение {length}",max:"ÐакÑималÑное знаÑение {length}",numeric:"Ðолжно бÑÑÑ ÑиÑлом",email:"ÐекоÑÑекÑнÑй email",url:"ÐекоÑÑекÑнÑй URL",length:"Ðлина должна бÑÑÑ {length} Ñимволов",digits:"Ðлина должна бÑÑÑ {length} Ñимволов и ÑодеÑжаÑÑ ÑолÑко ÑиÑÑÑ",between:"Ðолжно бÑÑÑ Ð¼ÐµÐ¶Ð´Ñ {min} и {max}",integer:"Ðолжно бÑÑÑ ÑелÑм ÑиÑлом",is:"Ðолжно бÑÑÑ {value}",is_not:"Ðе должно бÑÑÑ {value}",digitsBetween:"Ðолжно бÑÑÑ {params} ÑиÑÑ Ð¸Ð»Ð¸ пÑÑÑое"}})});const Ak={apiKey:"AIzaSyC8oKlXm8viK4dVZt4xo4T0AWSnACVMM_M",authDomain:"almau-psychologist.firebaseapp.com",projectId:"almau-psychologist",storageBucket:"almau-psychologist.appspot.com",messagingSenderId:"291718757462",appId:"1:291718757462:web:8c60f6b6efef12ef100ff7"};ch(Ak);const Wn=uw(wk);Wn.use(eI,{locale:{dayNames:["ÐоÑкÑеÑенÑе","ÐонеделÑник","ÐÑоÑник","СÑеда","ЧеÑвеÑг","ÐÑÑниÑа","СÑббоÑа"],dayNamesShort:["ÐÑ","Ðн","ÐÑ","СÑ","ЧÑ","ÐÑ","Сб"],dayNamesMin:["ÐÑ","Ðн","ÐÑ","СÑ","ЧÑ","ÐÑ","Сб"],monthNames:["ЯнваÑÑ","ФевÑалÑ","ÐаÑÑ","ÐпÑелÑ","Ðай","ÐÑнÑ","ÐÑлÑ","ÐвгÑÑÑ","СенÑÑбÑÑ","ÐкÑÑбÑÑ","ÐоÑбÑÑ","ÐекабÑÑ"],monthNamesShort:["Янв","ФевÑ","ÐаÑÑ","ÐпÑ","Ðай","ÐÑнÑ","ÐÑлÑ","Ðвг","СенÑ","ÐкÑ","ÐоÑб","Ðек"],today:"СегоднÑ",firstDayOfWeek:1,dateFormat:"dd.mm.yy"}});Wn.use(nI);Wn.use(rI);Wn.use(iI);Wn.directive("badge",zI);Wn.directive("tooltip",VI);Wn.use(pw());Wn.use(Ik);Wn.mount("#app");export{Rc as $,LR as A,Gt as B,yo as C,H as D,Dm as E,Fe as F,dt as G,Dr as H,Na as I,Cs as J,tn as K,m9 as L,Pk as M,Tr as N,Sk as O,va as P,Mt as Q,vh as R,ag as S,kk as T,Lt as U,oe as V,Dk as W,xk as X,It as Y,Gy as Z,Zi as _,nt as a,Ok as a0,Rk as a1,hd as a2,_r as a3,ST as a4,dd as a5,B9 as a6,iy as a7,ah as a8,rn as a9,Lk as aa,Nk as ab,ll as ac,Ft as ad,bb as ae,Zt as af,Ss as ag,jg as ah,ph as ai,JR as aj,Fk as ak,i_ as al,ZR as am,aO as an,Hk as ao,Bk as ap,jk as aq,Ck as ar,cd as b,ge as c,kr as d,De as e,ie as f,me as g,Ne as h,Fi as i,Ni as j,Xc as k,ml as l,le as m,ya as n,X as o,Yc as p,cn as q,yt as r,qn as s,In as t,jl as u,No as v,Ht as w,yh as x,Gi as y,Uk as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.