cloudcommerce 0.0.96 → 0.0.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/package.json +3 -3
  3. package/packages/api/package.json +1 -1
  4. package/packages/apps/correios/lib-mjs/correios-ws.mjs +2 -1
  5. package/packages/apps/correios/package.json +1 -1
  6. package/packages/apps/custom-shipping/package.json +1 -1
  7. package/packages/apps/discounts/package.json +1 -1
  8. package/packages/apps/frenet/package.json +1 -1
  9. package/packages/apps/tiny-erp/lib/event-to-tiny.js +94 -94
  10. package/packages/apps/tiny-erp/lib/index.js +1 -1
  11. package/packages/apps/tiny-erp/lib/integration/after-tiny-queue.js +74 -71
  12. package/packages/apps/tiny-erp/lib/integration/export-order-to-tiny.js +73 -70
  13. package/packages/apps/tiny-erp/lib/integration/export-product-to-tiny.js +53 -49
  14. package/packages/apps/tiny-erp/lib/integration/helpers/format-tiny-date.js +3 -3
  15. package/packages/apps/tiny-erp/lib/integration/import-order-from-tiny.js +75 -76
  16. package/packages/apps/tiny-erp/lib/integration/import-product-from-tiny.js +140 -137
  17. package/packages/apps/tiny-erp/lib/integration/parsers/order-from-tiny.js +39 -40
  18. package/packages/apps/tiny-erp/lib/integration/parsers/order-to-tiny.js +178 -173
  19. package/packages/apps/tiny-erp/lib/integration/parsers/product-from-tiny.js +171 -173
  20. package/packages/apps/tiny-erp/lib/integration/parsers/product-to-tiny.js +127 -123
  21. package/packages/apps/tiny-erp/lib/integration/parsers/status-from-tiny.js +32 -32
  22. package/packages/apps/tiny-erp/lib/integration/parsers/status-to-tiny.js +37 -37
  23. package/packages/apps/tiny-erp/lib/integration/post-tiny-erp.js +43 -42
  24. package/packages/apps/tiny-erp/lib/tiny-erp.js +6 -8
  25. package/packages/apps/tiny-erp/lib/tiny-webhook.js +73 -76
  26. package/packages/apps/tiny-erp/package.json +2 -2
  27. package/packages/cli/package.json +1 -1
  28. package/packages/config/package.json +1 -1
  29. package/packages/events/package.json +2 -2
  30. package/packages/firebase/package.json +3 -3
  31. package/packages/modules/lib/firebase/ajv.js +19 -24
  32. package/packages/modules/lib/firebase/call-app-module.js +116 -110
  33. package/packages/modules/lib/firebase/checkout.js +151 -152
  34. package/packages/modules/lib/firebase/functions-checkout/fix-items.js +194 -187
  35. package/packages/modules/lib/firebase/functions-checkout/get-custumerId.js +25 -26
  36. package/packages/modules/lib/firebase/functions-checkout/handle-order-transaction.js +110 -109
  37. package/packages/modules/lib/firebase/functions-checkout/new-order.js +177 -177
  38. package/packages/modules/lib/firebase/functions-checkout/request-to-module.js +59 -59
  39. package/packages/modules/lib/firebase/functions-checkout/utils.js +195 -197
  40. package/packages/modules/lib/firebase/handle-module.js +144 -146
  41. package/packages/modules/lib/firebase/proxy-apps.js +2 -1
  42. package/packages/modules/lib/firebase/serve-modules-api.js +52 -53
  43. package/packages/modules/lib/firebase.js +4 -6
  44. package/packages/modules/lib/index.js +12 -15
  45. package/packages/modules/package.json +2 -2
  46. package/packages/passport/package.json +2 -2
  47. package/packages/ssr/package.json +2 -2
  48. package/packages/storefront/.eslintrc.cjs +1 -0
  49. package/packages/storefront/astro.config.mjs +11 -1
  50. package/packages/storefront/dist/client/LoginOffcanvas.daf3f717.js +1 -0
  51. package/packages/storefront/dist/client/assets/_...522e6bf2.css +4 -0
  52. package/packages/storefront/dist/client/assets/{_...ee104f19.css → _...a48b75c7.css} +1 -1
  53. package/packages/storefront/dist/client/chunks/LoginForm.d9251274.js +1066 -0
  54. package/packages/storefront/dist/client/chunks/LoginOffcanvas.07fe6492.js +1 -0
  55. package/packages/storefront/dist/client/{hoisted.46e058d2.js → chunks/index.esm.84a649c7.js} +77 -17
  56. package/packages/storefront/dist/client/chunks/preload-helper.f15ab524.js +1 -0
  57. package/packages/storefront/dist/client/chunks/runtime-dom.esm-bundler.738639ee.js +1 -0
  58. package/packages/storefront/dist/client/client.b552d86a.js +1 -0
  59. package/packages/storefront/dist/client/hoisted.054c36ac.js +1 -0
  60. package/packages/storefront/dist/client/manifest.webmanifest +1 -1
  61. package/packages/storefront/dist/client/sw.js +1 -1
  62. package/packages/storefront/dist/server/entry.mjs +370 -180
  63. package/packages/storefront/dist/server/manifest.webmanifest +1 -1
  64. package/packages/storefront/package.json +6 -5
  65. package/packages/storefront/src/assets/pico.css +0 -1
  66. package/packages/storefront/src/env.d.ts +1 -1
  67. package/packages/storefront/src/lib/components/AOffcanvas.vue +98 -0
  68. package/packages/storefront/src/lib/components/LoginForm.vue +54 -0
  69. package/packages/storefront/src/lib/components/LoginOffcanvas.vue +41 -0
  70. package/packages/storefront/src/lib/components/TheHeader.vue +37 -3
  71. package/packages/storefront/src/lib/components/TopBar.vue +13 -21
  72. package/packages/storefront/src/lib/layouts/BaseBody.astro +41 -38
  73. package/packages/storefront/src/lib/layouts/BaseHead.astro +0 -5
  74. package/packages/storefront/src/lib/layouts/BaseStateJson.astro +12 -11
  75. package/packages/storefront/src/lib/layouts/PagesHeader.astro +29 -20
  76. package/packages/storefront/src/lib/scripts/firebase-app.ts +16 -0
  77. package/packages/storefront/src/lib/{helpers → ssr}/image.ts +1 -1
  78. package/packages/storefront/src/pages/app/account.astro +0 -0
  79. package/packages/storefront/storefront.config.mjs +1 -1
  80. package/packages/storefront/tsconfig.json +4 -1
  81. package/packages/types/package.json +1 -1
  82. package/packages/storefront/dist/client/assets/_...73e01db2.css +0 -4
  83. package/packages/storefront/dist/client/client.80baece3.js +0 -1
  84. package/packages/storefront/src/lib/components/LoginModal.vue +0 -82
@@ -0,0 +1 @@
1
+ import{_ as k}from"./preload-helper.f15ab524.js";import{d as p,r as v,w as y,t as V,c as C,a as L,b as _,T as x,o as u,e as g,f as i,u as r,g as b,h as m,n as h,i as w,j as E,k as A,l as O,m as $,p as f,F as B}from"./runtime-dom.esm-bundler.738639ee.js";/* empty css */const F="Fechar",S="Login",T="Minha conta e pedidos",I=["open"],P=["aria-label","onClick"],j=p({__name:"AOffcanvas",props:{modelValue:{type:Boolean,default:!1},placement:{default:"end"}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e;E(s=>({d23880fa:r(d)}));const o=()=>t("update:modelValue",!1),l=v(null),n=s=>{l.value?.contains(s.target)||o()},c=s=>{s.key==="Escape"&&o()};y(V(a,"modelValue"),async s=>{s?(document.body.style.maxWidth=`${document.body.offsetWidth}px`,document.body.style.overflow="hidden",setTimeout(()=>{document.addEventListener("click",n,{passive:!0}),document.addEventListener("keydown",c,{passive:!0})},500)):(document.removeEventListener("click",n),document.removeEventListener("keydown",c))});const d=C(()=>a.placement==="end"?"100%":"-100%");return(s,z)=>(u(),L(x,null,{default:_(()=>[e.modelValue?(u(),g("dialog",{key:0,class:h(["offcanvas p-0",e.placement==="end"?"justify-end":"justify-start"]),open:e.modelValue},[i("article",{ref_key:"article",ref:l,class:"rounded-none h-full max-h-screen m-0"},[i("a",{href:"#close","aria-label":r(F),class:"close","data-target":"modal-example",onClick:b(o,["prevent"])},null,8,P),m(s.$slots,"default",{},void 0,!0)],512)],10,I)):w("",!0)]),_:3}))}}),N=(e,t)=>{const a=e.__vccOpts||e;for(const[o,l]of t)a[o]=l;return a},R=N(j,[["__scopeId","data-v-8bddc837"]]),U=["href","title"],q=p({__name:"LoginOffcanvas",props:{accountUrl:{default:"/app/account"},accountIconClass:{default:"i-user-circle"}},setup(e){const t=v(!1),a=k(()=>import("./LoginForm.d9251274.js"),["chunks/LoginForm.d9251274.js","chunks/runtime-dom.esm-bundler.738639ee.js","chunks/index.esm.84a649c7.js","chunks/preload-helper.f15ab524.js"]),o=A(()=>a),l=n=>{a.then(()=>{t.value=!t.value,n.preventDefault()})};return(n,c)=>(u(),g(B,null,[i("div",{onClick:l},[m(n.$slots,"toggle",O($({isVisible:t.value})),()=>[i("a",{href:e.accountUrl,title:r(T)},[i("div",{class:h(e.accountIconClass)},null,2)],8,U)])]),f(R,{modelValue:t.value,"onUpdate:modelValue":c[0]||(c[0]=d=>t.value=d),class:"login-offcanvas"},{default:_(()=>[m(n.$slots,"form",{},()=>[f(r(o),{class:"max-w-xs"})])]),_:3},8,["modelValue"])],64))}});export{q as _,S as i};
@@ -1,4 +1,4 @@
1
- const q="modulepreload",Q=function(t){return"/"+t},P={},ee=function(e,n,s){return!n||n.length===0?e():Promise.all(n.map(r=>{if(r=Q(r),r in P)return;P[r]=!0;const a=r.endsWith(".css"),i=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${i}`))return;const o=document.createElement("link");if(o.rel=a?"stylesheet":q,a||(o.as="script",o.crossOrigin=""),o.href=r,document.head.appendChild(o),a)return new Promise((h,l)=>{o.addEventListener("load",h),o.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>e())};function te(t={}){const{immediate:e=!1,onNeedRefresh:n,onOfflineReady:s,onRegistered:r,onRegisteredSW:a,onRegisterError:i}=t;let o,h;const l=async(f=!0)=>{await h};async function _(){if("serviceWorker"in navigator){const{Workbox:f,messageSW:b}=await ee(()=>import("./chunks/workbox-window.prod.es5.4b654ae6.js"),[]);o=new f("/sw.js",{scope:"/",type:"classic"}),o.addEventListener("activated",d=>{d.isUpdate?window.location.reload():s?.()}),o.register({immediate:e}).then(d=>{a?a("/sw.js",d):r?.(d)}).catch(d=>{i?.(d)})}}return h=_(),l}/**
1
+ /**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  *
@@ -28,7 +28,7 @@ const q="modulepreload",Q=function(t){return"/"+t},P={},ee=function(e,n,s){retur
28
28
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29
29
  * See the License for the specific language governing permissions and
30
30
  * limitations under the License.
31
- */const W=function(t){const e=[];let n=0;for(let s=0;s<t.length;s++){let r=t.charCodeAt(s);r<128?e[n++]=r:r<2048?(e[n++]=r>>6|192,e[n++]=r&63|128):(r&64512)===55296&&s+1<t.length&&(t.charCodeAt(s+1)&64512)===56320?(r=65536+((r&1023)<<10)+(t.charCodeAt(++s)&1023),e[n++]=r>>18|240,e[n++]=r>>12&63|128,e[n++]=r>>6&63|128,e[n++]=r&63|128):(e[n++]=r>>12|224,e[n++]=r>>6&63|128,e[n++]=r&63|128)}return e},ne=function(t){const e=[];let n=0,s=0;for(;n<t.length;){const r=t[n++];if(r<128)e[s++]=String.fromCharCode(r);else if(r>191&&r<224){const a=t[n++];e[s++]=String.fromCharCode((r&31)<<6|a&63)}else if(r>239&&r<365){const a=t[n++],i=t[n++],o=t[n++],h=((r&7)<<18|(a&63)<<12|(i&63)<<6|o&63)-65536;e[s++]=String.fromCharCode(55296+(h>>10)),e[s++]=String.fromCharCode(56320+(h&1023))}else{const a=t[n++],i=t[n++];e[s++]=String.fromCharCode((r&15)<<12|(a&63)<<6|i&63)}}return e.join("")},re={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_,s=[];for(let r=0;r<t.length;r+=3){const a=t[r],i=r+1<t.length,o=i?t[r+1]:0,h=r+2<t.length,l=h?t[r+2]:0,_=a>>2,f=(a&3)<<4|o>>4;let b=(o&15)<<2|l>>6,d=l&63;h||(d=64,i||(b=64)),s.push(n[_],n[f],n[b],n[d])}return s.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(W(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):ne(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,s=[];for(let r=0;r<t.length;){const a=n[t.charAt(r++)],o=r<t.length?n[t.charAt(r)]:0;++r;const l=r<t.length?n[t.charAt(r)]:64;++r;const f=r<t.length?n[t.charAt(r)]:64;if(++r,a==null||o==null||l==null||f==null)throw Error();const b=a<<2|o>>4;if(s.push(b),l!==64){const d=o<<4&240|l>>2;if(s.push(d),f!==64){const Z=l<<6&192|f;s.push(Z)}}}return s},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)}}},se=function(t){const e=W(t);return re.encodeByteArray(e,!0)},U=function(t){return se(t).replace(/\./g,"")};/**
31
+ */const V=function(t){const e=[];let n=0;for(let s=0;s<t.length;s++){let r=t.charCodeAt(s);r<128?e[n++]=r:r<2048?(e[n++]=r>>6|192,e[n++]=r&63|128):(r&64512)===55296&&s+1<t.length&&(t.charCodeAt(s+1)&64512)===56320?(r=65536+((r&1023)<<10)+(t.charCodeAt(++s)&1023),e[n++]=r>>18|240,e[n++]=r>>12&63|128,e[n++]=r>>6&63|128,e[n++]=r&63|128):(e[n++]=r>>12|224,e[n++]=r>>6&63|128,e[n++]=r&63|128)}return e},te=function(t){const e=[];let n=0,s=0;for(;n<t.length;){const r=t[n++];if(r<128)e[s++]=String.fromCharCode(r);else if(r>191&&r<224){const i=t[n++];e[s++]=String.fromCharCode((r&31)<<6|i&63)}else if(r>239&&r<365){const i=t[n++],a=t[n++],o=t[n++],h=((r&7)<<18|(i&63)<<12|(a&63)<<6|o&63)-65536;e[s++]=String.fromCharCode(55296+(h>>10)),e[s++]=String.fromCharCode(56320+(h&1023))}else{const i=t[n++],a=t[n++];e[s++]=String.fromCharCode((r&15)<<12|(i&63)<<6|a&63)}}return e.join("")},W={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_,s=[];for(let r=0;r<t.length;r+=3){const i=t[r],a=r+1<t.length,o=a?t[r+1]:0,h=r+2<t.length,l=h?t[r+2]:0,x=i>>2,m=(i&3)<<4|o>>4;let y=(o&15)<<2|l>>6,E=l&63;h||(E=64,a||(y=64)),s.push(n[x],n[m],n[y],n[E])}return s.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(V(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):te(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,s=[];for(let r=0;r<t.length;){const i=n[t.charAt(r++)],o=r<t.length?n[t.charAt(r)]:0;++r;const l=r<t.length?n[t.charAt(r)]:64;++r;const m=r<t.length?n[t.charAt(r)]:64;if(++r,i==null||o==null||l==null||m==null)throw Error();const y=i<<2|o>>4;if(s.push(y),l!==64){const E=o<<4&240|l>>2;if(s.push(E),m!==64){const ee=l<<6&192|m;s.push(ee)}}}return s},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)}}},ne=function(t){const e=V(t);return W.encodeByteArray(e,!0)},G=function(t){return ne(t).replace(/\./g,"")},Et=function(t){try{return W.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/**
32
32
  * @license
33
33
  * Copyright 2017 Google LLC
34
34
  *
@@ -43,7 +43,7 @@ const q="modulepreload",Q=function(t){return"/"+t},P={},ee=function(e,n,s){retur
43
43
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
44
44
  * See the License for the specific language governing permissions and
45
45
  * limitations under the License.
46
- */class ae{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,s)=>{n?this.reject(n):this.resolve(s),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,s))}}}function ie(){return typeof indexedDB=="object"}function oe(){return new Promise((t,e)=>{try{let n=!0;const s="validate-browser-context-for-indexeddb-analytics-module",r=self.indexedDB.open(s);r.onsuccess=()=>{r.result.close(),n||self.indexedDB.deleteDatabase(s),t(!0)},r.onupgradeneeded=()=>{n=!1},r.onerror=()=>{var a;e(((a=r.error)===null||a===void 0?void 0:a.message)||"")}}catch(n){e(n)}})}/**
46
+ */class re{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,s)=>{n?this.reject(n):this.resolve(s),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,s))}}}/**
47
47
  * @license
48
48
  * Copyright 2017 Google LLC
49
49
  *
@@ -58,7 +58,52 @@ const q="modulepreload",Q=function(t){return"/"+t},P={},ee=function(e,n,s){retur
58
58
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
59
59
  * See the License for the specific language governing permissions and
60
60
  * limitations under the License.
61
- */const ce="FirebaseError";class y extends Error{constructor(e,n,s){super(n),this.code=e,this.customData=s,this.name=ce,Object.setPrototypeOf(this,y.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,G.prototype.create)}}class G{constructor(e,n,s){this.service=e,this.serviceName=n,this.errors=s}create(e,...n){const s=n[0]||{},r=`${this.service}/${e}`,a=this.errors[e],i=a?he(a,s):"Error",o=`${this.serviceName}: ${i} (${r}).`;return new y(r,o,s)}}function he(t,e){return t.replace(le,(n,s)=>{const r=e[s];return r!=null?String(r):`<${s}?>`})}const le=/\{\$([^}]+)}/g;function B(t,e){if(t===e)return!0;const n=Object.keys(t),s=Object.keys(e);for(const r of n){if(!s.includes(r))return!1;const a=t[r],i=e[r];if(L(a)&&L(i)){if(!B(a,i))return!1}else if(a!==i)return!1}for(const r of s)if(!n.includes(r))return!1;return!0}function L(t){return t!==null&&typeof t=="object"}class D{constructor(e,n,s){this.name=e,this.instanceFactory=n,this.type=s,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}}/**
61
+ */function K(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function _t(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(K())}function It(){const t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function vt(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function Dt(){const t=K();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function se(){return typeof indexedDB=="object"}function ie(){return new Promise((t,e)=>{try{let n=!0;const s="validate-browser-context-for-indexeddb-analytics-module",r=self.indexedDB.open(s);r.onsuccess=()=>{r.result.close(),n||self.indexedDB.deleteDatabase(s),t(!0)},r.onupgradeneeded=()=>{n=!1},r.onerror=()=>{var i;e(((i=r.error)===null||i===void 0?void 0:i.message)||"")}}catch(n){e(n)}})}/**
62
+ * @license
63
+ * Copyright 2017 Google LLC
64
+ *
65
+ * Licensed under the Apache License, Version 2.0 (the "License");
66
+ * you may not use this file except in compliance with the License.
67
+ * You may obtain a copy of the License at
68
+ *
69
+ * http://www.apache.org/licenses/LICENSE-2.0
70
+ *
71
+ * Unless required by applicable law or agreed to in writing, software
72
+ * distributed under the License is distributed on an "AS IS" BASIS,
73
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
74
+ * See the License for the specific language governing permissions and
75
+ * limitations under the License.
76
+ */const ae="FirebaseError";class g extends Error{constructor(e,n,s){super(n),this.code=e,this.customData=s,this.name=ae,Object.setPrototypeOf(this,g.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Y.prototype.create)}}class Y{constructor(e,n,s){this.service=e,this.serviceName=n,this.errors=s}create(e,...n){const s=n[0]||{},r=`${this.service}/${e}`,i=this.errors[e],a=i?oe(i,s):"Error",o=`${this.serviceName}: ${a} (${r}).`;return new g(r,o,s)}}function oe(t,e){return t.replace(ce,(n,s)=>{const r=e[s];return r!=null?String(r):`<${s}?>`})}const ce=/\{\$([^}]+)}/g;function Ct(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function B(t,e){if(t===e)return!0;const n=Object.keys(t),s=Object.keys(e);for(const r of n){if(!s.includes(r))return!1;const i=t[r],a=e[r];if(P(i)&&P(a)){if(!B(i,a))return!1}else if(i!==a)return!1}for(const r of s)if(!n.includes(r))return!1;return!0}function P(t){return t!==null&&typeof t=="object"}/**
77
+ * @license
78
+ * Copyright 2017 Google LLC
79
+ *
80
+ * Licensed under the Apache License, Version 2.0 (the "License");
81
+ * you may not use this file except in compliance with the License.
82
+ * You may obtain a copy of the License at
83
+ *
84
+ * http://www.apache.org/licenses/LICENSE-2.0
85
+ *
86
+ * Unless required by applicable law or agreed to in writing, software
87
+ * distributed under the License is distributed on an "AS IS" BASIS,
88
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
89
+ * See the License for the specific language governing permissions and
90
+ * limitations under the License.
91
+ */function wt(t){const e=[];for(const[n,s]of Object.entries(t))Array.isArray(s)?s.forEach(r=>{e.push(encodeURIComponent(n)+"="+encodeURIComponent(r))}):e.push(encodeURIComponent(n)+"="+encodeURIComponent(s));return e.length?"&"+e.join("&"):""}function St(t){const e={};return t.replace(/^\?/,"").split("&").forEach(s=>{if(s){const[r,i]=s.split("=");e[decodeURIComponent(r)]=decodeURIComponent(i)}}),e}function At(t){const e=t.indexOf("?");if(!e)return"";const n=t.indexOf("#",e);return t.substring(e,n>0?n:void 0)}function Bt(t,e){const n=new he(t,e);return n.subscribe.bind(n)}class he{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(s=>{this.error(s)})}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,s){let r;if(e===void 0&&n===void 0&&s===void 0)throw new Error("Missing Observer.");le(e,["next","error","complete"])?r=e:r={next:e,error:n,complete:s},r.next===void 0&&(r.next=D),r.error===void 0&&(r.error=D),r.complete===void 0&&(r.complete=D);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch{}}),this.observers.push(r),i}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(s){typeof console<"u"&&console.error&&console.error(s)}})}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 le(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 D(){}/**
92
+ * @license
93
+ * Copyright 2021 Google LLC
94
+ *
95
+ * Licensed under the Apache License, Version 2.0 (the "License");
96
+ * you may not use this file except in compliance with the License.
97
+ * You may obtain a copy of the License at
98
+ *
99
+ * http://www.apache.org/licenses/LICENSE-2.0
100
+ *
101
+ * Unless required by applicable law or agreed to in writing, software
102
+ * distributed under the License is distributed on an "AS IS" BASIS,
103
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
104
+ * See the License for the specific language governing permissions and
105
+ * limitations under the License.
106
+ */function Ot(t){return t&&t._delegate?t._delegate:t}class I{constructor(e,n,s){this.name=e,this.instanceFactory=n,this.type=s,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}}/**
62
107
  * @license
63
108
  * Copyright 2019 Google LLC
64
109
  *
@@ -73,7 +118,7 @@ const q="modulepreload",Q=function(t){return"/"+t},P={},ee=function(e,n,s){retur
73
118
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
74
119
  * See the License for the specific language governing permissions and
75
120
  * limitations under the License.
76
- */const p="[DEFAULT]";/**
121
+ */const f="[DEFAULT]";/**
77
122
  * @license
78
123
  * Copyright 2019 Google LLC
79
124
  *
@@ -88,7 +133,7 @@ const q="modulepreload",Q=function(t){return"/"+t},P={},ee=function(e,n,s){retur
88
133
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
89
134
  * See the License for the specific language governing permissions and
90
135
  * limitations under the License.
91
- */class de{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 s=new ae;if(this.instancesDeferred.set(n,s),this.isInitialized(n)||this.shouldAutoInitialize())try{const r=this.getOrInitializeService({instanceIdentifier:n});r&&s.resolve(r)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const s=this.normalizeInstanceIdentifier(e?.identifier),r=(n=e?.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(s)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:s})}catch(a){if(r)return null;throw a}else{if(r)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(ue(e))try{this.getOrInitializeService({instanceIdentifier:p})}catch{}for(const[n,s]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(n);try{const a=this.getOrInitializeService({instanceIdentifier:r});s.resolve(a)}catch{}}}}clearInstance(e=p){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=p){return this.instances.has(e)}getOptions(e=p){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,s=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(s))throw Error(`${this.name}(${s}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:s,options:n});for(const[a,i]of this.instancesDeferred.entries()){const o=this.normalizeInstanceIdentifier(a);s===o&&i.resolve(r)}return r}onInit(e,n){var s;const r=this.normalizeInstanceIdentifier(n),a=(s=this.onInitCallbacks.get(r))!==null&&s!==void 0?s:new Set;a.add(e),this.onInitCallbacks.set(r,a);const i=this.instances.get(r);return i&&e(i,r),()=>{a.delete(e)}}invokeOnInitCallbacks(e,n){const s=this.onInitCallbacks.get(n);if(!!s)for(const r of s)try{r(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let s=this.instances.get(e);if(!s&&this.component&&(s=this.component.instanceFactory(this.container,{instanceIdentifier:fe(e),options:n}),this.instances.set(e,s),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(s,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,s)}catch{}return s||null}normalizeInstanceIdentifier(e=p){return this.component?this.component.multipleInstances?e:p:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function fe(t){return t===p?void 0:t}function ue(t){return t.instantiationMode==="EAGER"}/**
136
+ */class de{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 s=new re;if(this.instancesDeferred.set(n,s),this.isInitialized(n)||this.shouldAutoInitialize())try{const r=this.getOrInitializeService({instanceIdentifier:n});r&&s.resolve(r)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const s=this.normalizeInstanceIdentifier(e?.identifier),r=(n=e?.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(s)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:s})}catch(i){if(r)return null;throw i}else{if(r)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(ue(e))try{this.getOrInitializeService({instanceIdentifier:f})}catch{}for(const[n,s]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(n);try{const i=this.getOrInitializeService({instanceIdentifier:r});s.resolve(i)}catch{}}}}clearInstance(e=f){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=f){return this.instances.has(e)}getOptions(e=f){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,s=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(s))throw Error(`${this.name}(${s}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:s,options:n});for(const[i,a]of this.instancesDeferred.entries()){const o=this.normalizeInstanceIdentifier(i);s===o&&a.resolve(r)}return r}onInit(e,n){var s;const r=this.normalizeInstanceIdentifier(n),i=(s=this.onInitCallbacks.get(r))!==null&&s!==void 0?s:new Set;i.add(e),this.onInitCallbacks.set(r,i);const a=this.instances.get(r);return a&&e(a,r),()=>{i.delete(e)}}invokeOnInitCallbacks(e,n){const s=this.onInitCallbacks.get(n);if(!!s)for(const r of s)try{r(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let s=this.instances.get(e);if(!s&&this.component&&(s=this.component.instanceFactory(this.container,{instanceIdentifier:fe(e),options:n}),this.instances.set(e,s),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(s,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,s)}catch{}return s||null}normalizeInstanceIdentifier(e=f){return this.component?this.component.multipleInstances?e:f:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function fe(t){return t===f?void 0:t}function ue(t){return t.instantiationMode==="EAGER"}/**
92
137
  * @license
93
138
  * Copyright 2019 Google LLC
94
139
  *
@@ -118,7 +163,22 @@ const q="modulepreload",Q=function(t){return"/"+t},P={},ee=function(e,n,s){retur
118
163
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
119
164
  * See the License for the specific language governing permissions and
120
165
  * limitations under the License.
121
- */var c;(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"})(c||(c={}));const me={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},ge=c.INFO,be={[c.DEBUG]:"log",[c.VERBOSE]:"log",[c.INFO]:"info",[c.WARN]:"warn",[c.ERROR]:"error"},Ee=(t,e,...n)=>{if(e<t.logLevel)return;const s=new Date().toISOString(),r=be[e];if(r)console[r](`[${s}] ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class ye{constructor(e){this.name=e,this._logLevel=ge,this._logHandler=Ee,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in c))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?me[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,c.DEBUG,...e),this._logHandler(this,c.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,c.VERBOSE,...e),this._logHandler(this,c.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,c.INFO,...e),this._logHandler(this,c.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,c.WARN,...e),this._logHandler(this,c.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,c.ERROR,...e),this._logHandler(this,c.ERROR,...e)}}const _e=(t,e)=>e.some(n=>t instanceof n);let x,H;function Ie(){return x||(x=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function De(){return H||(H=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const K=new WeakMap,A=new WeakMap,Y=new WeakMap,v=new WeakMap,N=new WeakMap;function ve(t){const e=new Promise((n,s)=>{const r=()=>{t.removeEventListener("success",a),t.removeEventListener("error",i)},a=()=>{n(u(t.result)),r()},i=()=>{s(t.error),r()};t.addEventListener("success",a),t.addEventListener("error",i)});return e.then(n=>{n instanceof IDBCursor&&K.set(n,t)}).catch(()=>{}),N.set(e,t),e}function we(t){if(A.has(t))return;const e=new Promise((n,s)=>{const r=()=>{t.removeEventListener("complete",a),t.removeEventListener("error",i),t.removeEventListener("abort",i)},a=()=>{n(),r()},i=()=>{s(t.error||new DOMException("AbortError","AbortError")),r()};t.addEventListener("complete",a),t.addEventListener("error",i),t.addEventListener("abort",i)});A.set(t,e)}let O={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return A.get(t);if(e==="objectStoreNames")return t.objectStoreNames||Y.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return u(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 Ce(t){O=t(O)}function Se(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const s=t.call(w(this),e,...n);return Y.set(s,e.sort?e.sort():[e]),u(s)}:De().includes(t)?function(...e){return t.apply(w(this),e),u(K.get(this))}:function(...e){return u(t.apply(w(this),e))}}function Be(t){return typeof t=="function"?Se(t):(t instanceof IDBTransaction&&we(t),_e(t,Ie())?new Proxy(t,O):t)}function u(t){if(t instanceof IDBRequest)return ve(t);if(v.has(t))return v.get(t);const e=Be(t);return e!==t&&(v.set(t,e),N.set(e,t)),e}const w=t=>N.get(t);function Ae(t,e,{blocked:n,upgrade:s,blocking:r,terminated:a}={}){const i=indexedDB.open(t,e),o=u(i);return s&&i.addEventListener("upgradeneeded",h=>{s(u(i.result),h.oldVersion,h.newVersion,u(i.transaction))}),n&&i.addEventListener("blocked",()=>n()),o.then(h=>{a&&h.addEventListener("close",()=>a()),r&&h.addEventListener("versionchange",()=>r())}).catch(()=>{}),o}const Oe=["get","getKey","getAll","getAllKeys","count"],Te=["put","add","delete","clear"],C=new Map;function k(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(C.get(e))return C.get(e);const n=e.replace(/FromIndex$/,""),s=e!==n,r=Te.includes(n);if(!(n in(s?IDBIndex:IDBObjectStore).prototype)||!(r||Oe.includes(n)))return;const a=async function(i,...o){const h=this.transaction(i,r?"readwrite":"readonly");let l=h.store;return s&&(l=l.index(o.shift())),(await Promise.all([l[n](...o),r&&h.done]))[0]};return C.set(e,a),a}Ce(t=>({...t,get:(e,n,s)=>k(e,n)||t.get(e,n,s),has:(e,n)=>!!k(e,n)||t.has(e,n)}));/**
166
+ */var c;(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"})(c||(c={}));const me={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},be=c.INFO,ge={[c.DEBUG]:"log",[c.VERBOSE]:"log",[c.INFO]:"info",[c.WARN]:"warn",[c.ERROR]:"error"},ye=(t,e,...n)=>{if(e<t.logLevel)return;const s=new Date().toISOString(),r=ge[e];if(r)console[r](`[${s}] ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class Ee{constructor(e){this.name=e,this._logLevel=be,this._logHandler=ye,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in c))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?me[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,c.DEBUG,...e),this._logHandler(this,c.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,c.VERBOSE,...e),this._logHandler(this,c.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,c.INFO,...e),this._logHandler(this,c.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,c.WARN,...e),this._logHandler(this,c.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,c.ERROR,...e),this._logHandler(this,c.ERROR,...e)}}const _e=(t,e)=>e.some(n=>t instanceof n);let H,L;function Ie(){return H||(H=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function ve(){return L||(L=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const q=new WeakMap,O=new WeakMap,X=new WeakMap,C=new WeakMap,$=new WeakMap;function De(t){const e=new Promise((n,s)=>{const r=()=>{t.removeEventListener("success",i),t.removeEventListener("error",a)},i=()=>{n(d(t.result)),r()},a=()=>{s(t.error),r()};t.addEventListener("success",i),t.addEventListener("error",a)});return e.then(n=>{n instanceof IDBCursor&&q.set(n,t)}).catch(()=>{}),$.set(e,t),e}function Ce(t){if(O.has(t))return;const e=new Promise((n,s)=>{const r=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",a),t.removeEventListener("abort",a)},i=()=>{n(),r()},a=()=>{s(t.error||new DOMException("AbortError","AbortError")),r()};t.addEventListener("complete",i),t.addEventListener("error",a),t.addEventListener("abort",a)});O.set(t,e)}let T={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return O.get(t);if(e==="objectStoreNames")return t.objectStoreNames||X.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return d(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 we(t){T=t(T)}function Se(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const s=t.call(w(this),e,...n);return X.set(s,e.sort?e.sort():[e]),d(s)}:ve().includes(t)?function(...e){return t.apply(w(this),e),d(q.get(this))}:function(...e){return d(t.apply(w(this),e))}}function Ae(t){return typeof t=="function"?Se(t):(t instanceof IDBTransaction&&Ce(t),_e(t,Ie())?new Proxy(t,T):t)}function d(t){if(t instanceof IDBRequest)return De(t);if(C.has(t))return C.get(t);const e=Ae(t);return e!==t&&(C.set(t,e),$.set(e,t)),e}const w=t=>$.get(t);function Be(t,e,{blocked:n,upgrade:s,blocking:r,terminated:i}={}){const a=indexedDB.open(t,e),o=d(a);return s&&a.addEventListener("upgradeneeded",h=>{s(d(a.result),h.oldVersion,h.newVersion,d(a.transaction))}),n&&a.addEventListener("blocked",()=>n()),o.then(h=>{i&&h.addEventListener("close",()=>i()),r&&h.addEventListener("versionchange",()=>r())}).catch(()=>{}),o}const Oe=["get","getKey","getAll","getAllKeys","count"],Te=["put","add","delete","clear"],S=new Map;function k(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(S.get(e))return S.get(e);const n=e.replace(/FromIndex$/,""),s=e!==n,r=Te.includes(n);if(!(n in(s?IDBIndex:IDBObjectStore).prototype)||!(r||Oe.includes(n)))return;const i=async function(a,...o){const h=this.transaction(a,r?"readwrite":"readonly");let l=h.store;return s&&(l=l.index(o.shift())),(await Promise.all([l[n](...o),r&&h.done]))[0]};return S.set(e,i),i}we(t=>({...t,get:(e,n,s)=>k(e,n)||t.get(e,n,s),has:(e,n)=>!!k(e,n)||t.has(e,n)}));/**
167
+ * @license
168
+ * Copyright 2019 Google LLC
169
+ *
170
+ * Licensed under the Apache License, Version 2.0 (the "License");
171
+ * you may not use this file except in compliance with the License.
172
+ * You may obtain a copy of the License at
173
+ *
174
+ * http://www.apache.org/licenses/LICENSE-2.0
175
+ *
176
+ * Unless required by applicable law or agreed to in writing, software
177
+ * distributed under the License is distributed on an "AS IS" BASIS,
178
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
179
+ * See the License for the specific language governing permissions and
180
+ * limitations under the License.
181
+ */class Me{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(Ne(n)){const s=n.getImmediate();return`${s.library}/${s.version}`}else return null}).filter(n=>n).join(" ")}}function Ne(t){const e=t.getComponent();return e?.type==="VERSION"}const M="@firebase/app",j="0.7.33";/**
122
182
  * @license
123
183
  * Copyright 2019 Google LLC
124
184
  *
@@ -133,7 +193,7 @@ const q="modulepreload",Q=function(t){return"/"+t},P={},ee=function(e,n,s){retur
133
193
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
134
194
  * See the License for the specific language governing permissions and
135
195
  * limitations under the License.
136
- */class Me{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if($e(n)){const s=n.getImmediate();return`${s.library}/${s.version}`}else return null}).filter(n=>n).join(" ")}}function $e(t){const e=t.getComponent();return e?.type==="VERSION"}const T="@firebase/app",j="0.7.33";/**
196
+ */const u=new Ee("@firebase/app"),Re="@firebase/app-compat",$e="@firebase/analytics-compat",xe="@firebase/analytics",Pe="@firebase/app-check-compat",He="@firebase/app-check",Le="@firebase/auth",ke="@firebase/auth-compat",je="@firebase/database",Fe="@firebase/database-compat",ze="@firebase/functions",Ue="@firebase/functions-compat",Ve="@firebase/installations",We="@firebase/installations-compat",Ge="@firebase/messaging",Ke="@firebase/messaging-compat",Ye="@firebase/performance",qe="@firebase/performance-compat",Xe="@firebase/remote-config",Je="@firebase/remote-config-compat",Qe="@firebase/storage",Ze="@firebase/storage-compat",et="@firebase/firestore",tt="@firebase/firestore-compat",nt="firebase",rt="9.10.0";/**
137
197
  * @license
138
198
  * Copyright 2019 Google LLC
139
199
  *
@@ -148,7 +208,7 @@ const q="modulepreload",Q=function(t){return"/"+t},P={},ee=function(e,n,s){retur
148
208
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
149
209
  * See the License for the specific language governing permissions and
150
210
  * limitations under the License.
151
- */const m=new ye("@firebase/app"),Re="@firebase/app-compat",Ne="@firebase/analytics-compat",Pe="@firebase/analytics",Le="@firebase/app-check-compat",xe="@firebase/app-check",He="@firebase/auth",ke="@firebase/auth-compat",je="@firebase/database",Fe="@firebase/database-compat",Ve="@firebase/functions",ze="@firebase/functions-compat",We="@firebase/installations",Ue="@firebase/installations-compat",Ge="@firebase/messaging",Ke="@firebase/messaging-compat",Ye="@firebase/performance",Xe="@firebase/performance-compat",Je="@firebase/remote-config",Ze="@firebase/remote-config-compat",qe="@firebase/storage",Qe="@firebase/storage-compat",et="@firebase/firestore",tt="@firebase/firestore-compat",nt="firebase";/**
211
+ */const J="[DEFAULT]",st={[M]:"fire-core",[Re]:"fire-core-compat",[xe]:"fire-analytics",[$e]:"fire-analytics-compat",[He]:"fire-app-check",[Pe]:"fire-app-check-compat",[Le]:"fire-auth",[ke]:"fire-auth-compat",[je]:"fire-rtdb",[Fe]:"fire-rtdb-compat",[ze]:"fire-fn",[Ue]:"fire-fn-compat",[Ve]:"fire-iid",[We]:"fire-iid-compat",[Ge]:"fire-fcm",[Ke]:"fire-fcm-compat",[Ye]:"fire-perf",[qe]:"fire-perf-compat",[Xe]:"fire-rc",[Je]:"fire-rc-compat",[Qe]:"fire-gcs",[Ze]:"fire-gcs-compat",[et]:"fire-fst",[tt]:"fire-fst-compat","fire-js":"fire-js",[nt]:"fire-js-all"};/**
152
212
  * @license
153
213
  * Copyright 2019 Google LLC
154
214
  *
@@ -163,7 +223,7 @@ const q="modulepreload",Q=function(t){return"/"+t},P={},ee=function(e,n,s){retur
163
223
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
164
224
  * See the License for the specific language governing permissions and
165
225
  * limitations under the License.
166
- */const rt="[DEFAULT]",st={[T]:"fire-core",[Re]:"fire-core-compat",[Pe]:"fire-analytics",[Ne]:"fire-analytics-compat",[xe]:"fire-app-check",[Le]:"fire-app-check-compat",[He]:"fire-auth",[ke]:"fire-auth-compat",[je]:"fire-rtdb",[Fe]:"fire-rtdb-compat",[Ve]:"fire-fn",[ze]:"fire-fn-compat",[We]:"fire-iid",[Ue]:"fire-iid-compat",[Ge]:"fire-fcm",[Ke]:"fire-fcm-compat",[Ye]:"fire-perf",[Xe]:"fire-perf-compat",[Je]:"fire-rc",[Ze]:"fire-rc-compat",[qe]:"fire-gcs",[Qe]:"fire-gcs-compat",[et]:"fire-fst",[tt]:"fire-fst-compat","fire-js":"fire-js",[nt]:"fire-js-all"};/**
226
+ */const v=new Map,N=new Map;function it(t,e){try{t.container.addComponent(e)}catch(n){u.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function R(t){const e=t.name;if(N.has(e))return u.debug(`There were multiple attempts to register component ${e}.`),!1;N.set(e,t);for(const n of v.values())it(n,t);return!0}function Tt(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}/**
167
227
  * @license
168
228
  * Copyright 2019 Google LLC
169
229
  *
@@ -178,7 +238,7 @@ const q="modulepreload",Q=function(t){return"/"+t},P={},ee=function(e,n,s){retur
178
238
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
179
239
  * See the License for the specific language governing permissions and
180
240
  * limitations under the License.
181
- */const M=new Map,$=new Map;function at(t,e){try{t.container.addComponent(e)}catch(n){m.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function R(t){const e=t.name;if($.has(e))return m.debug(`There were multiple attempts to register component ${e}.`),!1;$.set(e,t);for(const n of M.values())at(n,t);return!0}/**
241
+ */const at={["no-app"]:"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",["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",["invalid-app-argument"]:"firebase.{$appName}() takes either no argument or a Firebase App instance.",["invalid-log-argument"]:"First argument to `onLog` must be null or a function.",["idb-open"]:"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.",["idb-get"]:"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.",["idb-set"]:"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.",["idb-delete"]:"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."},p=new Y("app","Firebase",at);/**
182
242
  * @license
183
243
  * Copyright 2019 Google LLC
184
244
  *
@@ -193,7 +253,7 @@ const q="modulepreload",Q=function(t){return"/"+t},P={},ee=function(e,n,s){retur
193
253
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
194
254
  * See the License for the specific language governing permissions and
195
255
  * limitations under the License.
196
- */const it={["no-app"]:"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",["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",["invalid-app-argument"]:"firebase.{$appName}() takes either no argument or a Firebase App instance.",["invalid-log-argument"]:"First argument to `onLog` must be null or a function.",["idb-open"]:"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.",["idb-get"]:"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.",["idb-set"]:"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.",["idb-delete"]:"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."},g=new G("app","Firebase",it);/**
256
+ */class ot{constructor(e,n,s){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=s,this.container.addComponent(new I("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 p.create("app-deleted",{appName:this._name})}}/**
197
257
  * @license
198
258
  * Copyright 2019 Google LLC
199
259
  *
@@ -208,7 +268,7 @@ const q="modulepreload",Q=function(t){return"/"+t},P={},ee=function(e,n,s){retur
208
268
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
209
269
  * See the License for the specific language governing permissions and
210
270
  * limitations under the License.
211
- */class ot{constructor(e,n,s){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=s,this.container.addComponent(new D("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 g.create("app-deleted",{appName:this._name})}}function ct(t,e={}){typeof e!="object"&&(e={name:e});const n=Object.assign({name:rt,automaticDataCollectionEnabled:!1},e),s=n.name;if(typeof s!="string"||!s)throw g.create("bad-app-name",{appName:String(s)});const r=M.get(s);if(r){if(B(t,r.options)&&B(n,r.config))return r;throw g.create("duplicate-app",{appName:s})}const a=new pe(s);for(const o of $.values())a.addComponent(o);const i=new ot(t,n,a);return M.set(s,i),i}function I(t,e,n){var s;let r=(s=st[t])!==null&&s!==void 0?s:t;n&&(r+=`-${n}`);const a=r.match(/\s|\//),i=e.match(/\s|\//);if(a||i){const o=[`Unable to register library "${r}" with version "${e}":`];a&&o.push(`library name "${r}" contains illegal characters (whitespace or "/")`),a&&i&&o.push("and"),i&&o.push(`version name "${e}" contains illegal characters (whitespace or "/")`),m.warn(o.join(" "));return}R(new D(`${r}-version`,()=>({library:r,version:e}),"VERSION"))}/**
271
+ */const Mt=rt;function Nt(t,e={}){typeof e!="object"&&(e={name:e});const n=Object.assign({name:J,automaticDataCollectionEnabled:!1},e),s=n.name;if(typeof s!="string"||!s)throw p.create("bad-app-name",{appName:String(s)});const r=v.get(s);if(r){if(B(t,r.options)&&B(n,r.config))return r;throw p.create("duplicate-app",{appName:s})}const i=new pe(s);for(const o of N.values())i.addComponent(o);const a=new ot(t,n,i);return v.set(s,a),a}function Rt(t=J){const e=v.get(t);if(!e)throw p.create("no-app",{appName:t});return e}function _(t,e,n){var s;let r=(s=st[t])!==null&&s!==void 0?s:t;n&&(r+=`-${n}`);const i=r.match(/\s|\//),a=e.match(/\s|\//);if(i||a){const o=[`Unable to register library "${r}" with version "${e}":`];i&&o.push(`library name "${r}" contains illegal characters (whitespace or "/")`),i&&a&&o.push("and"),a&&o.push(`version name "${e}" contains illegal characters (whitespace or "/")`),u.warn(o.join(" "));return}R(new I(`${r}-version`,()=>({library:r,version:e}),"VERSION"))}/**
212
272
  * @license
213
273
  * Copyright 2021 Google LLC
214
274
  *
@@ -223,7 +283,7 @@ const q="modulepreload",Q=function(t){return"/"+t},P={},ee=function(e,n,s){retur
223
283
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
224
284
  * See the License for the specific language governing permissions and
225
285
  * limitations under the License.
226
- */const ht="firebase-heartbeat-database",lt=1,E="firebase-heartbeat-store";let S=null;function X(){return S||(S=Ae(ht,lt,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(E)}}}).catch(t=>{throw g.create("idb-open",{originalErrorMessage:t.message})})),S}async function dt(t){var e;try{return(await X()).transaction(E).objectStore(E).get(J(t))}catch(n){if(n instanceof y)m.warn(n.message);else{const s=g.create("idb-get",{originalErrorMessage:(e=n)===null||e===void 0?void 0:e.message});m.warn(s.message)}}}async function F(t,e){var n;try{const r=(await X()).transaction(E,"readwrite");return await r.objectStore(E).put(e,J(t)),r.done}catch(s){if(s instanceof y)m.warn(s.message);else{const r=g.create("idb-set",{originalErrorMessage:(n=s)===null||n===void 0?void 0:n.message});m.warn(r.message)}}}function J(t){return`${t.name}!${t.options.appId}`}/**
286
+ */const ct="firebase-heartbeat-database",ht=1,b="firebase-heartbeat-store";let A=null;function Q(){return A||(A=Be(ct,ht,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(b)}}}).catch(t=>{throw p.create("idb-open",{originalErrorMessage:t.message})})),A}async function lt(t){var e;try{return(await Q()).transaction(b).objectStore(b).get(Z(t))}catch(n){if(n instanceof g)u.warn(n.message);else{const s=p.create("idb-get",{originalErrorMessage:(e=n)===null||e===void 0?void 0:e.message});u.warn(s.message)}}}async function F(t,e){var n;try{const r=(await Q()).transaction(b,"readwrite");return await r.objectStore(b).put(e,Z(t)),r.done}catch(s){if(s instanceof g)u.warn(s.message);else{const r=p.create("idb-set",{originalErrorMessage:(n=s)===null||n===void 0?void 0:n.message});u.warn(r.message)}}}function Z(t){return`${t.name}!${t.options.appId}`}/**
227
287
  * @license
228
288
  * Copyright 2021 Google LLC
229
289
  *
@@ -238,7 +298,7 @@ const q="modulepreload",Q=function(t){return"/"+t},P={},ee=function(e,n,s){retur
238
298
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
239
299
  * See the License for the specific language governing permissions and
240
300
  * limitations under the License.
241
- */const ft=1024,ut=30*24*60*60*1e3;class pt{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new gt(n),this._heartbeatsCachePromise=this._storage.read().then(s=>(this._heartbeatsCache=s,s))}async triggerHeartbeat(){const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),s=V();if(this._heartbeatsCache===null&&(this._heartbeatsCache=await this._heartbeatsCachePromise),!(this._heartbeatsCache.lastSentHeartbeatDate===s||this._heartbeatsCache.heartbeats.some(r=>r.date===s)))return this._heartbeatsCache.heartbeats.push({date:s,agent:n}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(r=>{const a=new Date(r.date).valueOf();return Date.now()-a<=ut}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache===null||this._heartbeatsCache.heartbeats.length===0)return"";const e=V(),{heartbeatsToSend:n,unsentEntries:s}=mt(this._heartbeatsCache.heartbeats),r=U(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=e,s.length>0?(this._heartbeatsCache.heartbeats=s,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),r}}function V(){return new Date().toISOString().substring(0,10)}function mt(t,e=ft){const n=[];let s=t.slice();for(const r of t){const a=n.find(i=>i.agent===r.agent);if(a){if(a.dates.push(r.date),z(n)>e){a.dates.pop();break}}else if(n.push({agent:r.agent,dates:[r.date]}),z(n)>e){n.pop();break}s=s.slice(1)}return{heartbeatsToSend:n,unsentEntries:s}}class gt{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return ie()?oe().then(()=>!0).catch(()=>!1):!1}async read(){return await this._canUseIndexedDBPromise?await dt(this.app)||{heartbeats:[]}:{heartbeats:[]}}async overwrite(e){var n;if(await this._canUseIndexedDBPromise){const r=await this.read();return F(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:r.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var n;if(await this._canUseIndexedDBPromise){const r=await this.read();return F(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...e.heartbeats]})}else return}}function z(t){return U(JSON.stringify({version:2,heartbeats:t})).length}/**
301
+ */const dt=1024,ft=30*24*60*60*1e3;class ut{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new mt(n),this._heartbeatsCachePromise=this._storage.read().then(s=>(this._heartbeatsCache=s,s))}async triggerHeartbeat(){const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),s=z();if(this._heartbeatsCache===null&&(this._heartbeatsCache=await this._heartbeatsCachePromise),!(this._heartbeatsCache.lastSentHeartbeatDate===s||this._heartbeatsCache.heartbeats.some(r=>r.date===s)))return this._heartbeatsCache.heartbeats.push({date:s,agent:n}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(r=>{const i=new Date(r.date).valueOf();return Date.now()-i<=ft}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache===null||this._heartbeatsCache.heartbeats.length===0)return"";const e=z(),{heartbeatsToSend:n,unsentEntries:s}=pt(this._heartbeatsCache.heartbeats),r=G(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=e,s.length>0?(this._heartbeatsCache.heartbeats=s,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),r}}function z(){return new Date().toISOString().substring(0,10)}function pt(t,e=dt){const n=[];let s=t.slice();for(const r of t){const i=n.find(a=>a.agent===r.agent);if(i){if(i.dates.push(r.date),U(n)>e){i.dates.pop();break}}else if(n.push({agent:r.agent,dates:[r.date]}),U(n)>e){n.pop();break}s=s.slice(1)}return{heartbeatsToSend:n,unsentEntries:s}}class mt{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return se()?ie().then(()=>!0).catch(()=>!1):!1}async read(){return await this._canUseIndexedDBPromise?await lt(this.app)||{heartbeats:[]}:{heartbeats:[]}}async overwrite(e){var n;if(await this._canUseIndexedDBPromise){const r=await this.read();return F(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:r.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var n;if(await this._canUseIndexedDBPromise){const r=await this.read();return F(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...e.heartbeats]})}else return}}function U(t){return G(JSON.stringify({version:2,heartbeats:t})).length}/**
242
302
  * @license
243
303
  * Copyright 2019 Google LLC
244
304
  *
@@ -253,7 +313,7 @@ const q="modulepreload",Q=function(t){return"/"+t},P={},ee=function(e,n,s){retur
253
313
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
254
314
  * See the License for the specific language governing permissions and
255
315
  * limitations under the License.
256
- */function bt(t){R(new D("platform-logger",e=>new Me(e),"PRIVATE")),R(new D("heartbeat",e=>new pt(e),"PRIVATE")),I(T,j,t),I(T,j,"esm2017"),I("fire-js","")}bt("");var Et="firebase",yt="9.10.0";/**
316
+ */function bt(t){R(new I("platform-logger",e=>new Me(e),"PRIVATE")),R(new I("heartbeat",e=>new ut(e),"PRIVATE")),_(M,j,t),_(M,j,"esm2017"),_("fire-js","")}bt("");var gt="firebase",yt="9.10.0";/**
257
317
  * @license
258
318
  * Copyright 2020 Google LLC
259
319
  *
@@ -268,4 +328,4 @@ const q="modulepreload",Q=function(t){return"/"+t},P={},ee=function(e,n,s){retur
268
328
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
269
329
  * See the License for the specific language governing permissions and
270
330
  * limitations under the License.
271
- */I(Et,yt,"app");te();const _t=window.firebaseConfig||{apiKey:"AIzaSyCrVzemDgpyp9i6ni7Yc5ZuEVfXYwl-4J0",authDomain:"ecom2-002.firebaseapp.com",projectId:"ecom2-002",storageBucket:"ecom2-002.appspot.com",messagingSenderId:"402807248219",appId:"1:402807248219:web:cf7d57759751e74776367e",measurementId:"G-SC592CE0GB"};ct(_t);
331
+ */_(gt,yt,"app");export{I as C,Y as E,g as F,Ee as L,Mt as S,Tt as _,_t as a,vt as b,R as c,B as d,It as e,Ot as f,Rt as g,Bt as h,Nt as i,K as j,Dt as k,c as l,Ct as m,Et as n,St as o,At as p,wt as q,_ as r};
@@ -0,0 +1 @@
1
+ const u="modulepreload",f=function(s){return"/"+s},i={},m=function(o,n,h){return!n||n.length===0?o():Promise.all(n.map(e=>{if(e=f(e),e in i)return;i[e]=!0;const t=e.endsWith(".css"),l=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${l}`))return;const r=document.createElement("link");if(r.rel=t?"stylesheet":u,t||(r.as="script",r.crossOrigin=""),r.href=e,document.head.appendChild(r),t)return new Promise((c,a)=>{r.addEventListener("load",c),r.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${e}`)))})})).then(()=>o())};export{m as _};
@@ -0,0 +1 @@
1
+ function Bn(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r<s.length;r++)n[s[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const Zr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Qr=Bn(Zr);function ks(e){return!!e||e===""}function Gt(e){if(H(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=oe(s)?ti(s):Gt(s);if(r)for(const i in r)t[i]=r[i]}return t}else{if(oe(e))return e;if(ne(e))return e}}const Gr=/;(?![^(]*\))/g,ei=/:(.+)/;function ti(e){const t={};return e.split(Gr).forEach(n=>{if(n){const s=n.split(ei);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function en(e){let t="";if(oe(e))t=e;else if(H(e))for(let n=0;n<e.length;n++){const s=en(e[n]);s&&(t+=s+" ")}else if(ne(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Ml(e){if(!e)return null;let{class:t,style:n}=e;return t&&!oe(t)&&(e.class=en(t)),n&&(e.style=Gt(n)),e}const Il=e=>oe(e)?e:e==null?"":H(e)||ne(e)&&(e.toString===zs||!$(e.toString))?JSON.stringify(e,Ws,2):String(e),Ws=(e,t)=>t&&t.__v_isRef?Ws(e,t.value):ot(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:Vs(t)?{[`Set(${t.size})`]:[...t.values()]}:ne(t)&&!H(t)&&!Js(t)?String(t):t,G={},it=[],Ae=()=>{},ni=()=>!1,si=/^on[^a-z]/,Pt=e=>si.test(e),Sn=e=>e.startsWith("onUpdate:"),ce=Object.assign,jn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ri=Object.prototype.hasOwnProperty,W=(e,t)=>ri.call(e,t),H=Array.isArray,ot=e=>tn(e)==="[object Map]",Vs=e=>tn(e)==="[object Set]",$=e=>typeof e=="function",oe=e=>typeof e=="string",Dn=e=>typeof e=="symbol",ne=e=>e!==null&&typeof e=="object",qs=e=>ne(e)&&$(e.then)&&$(e.catch),zs=Object.prototype.toString,tn=e=>zs.call(e),ii=e=>tn(e).slice(8,-1),Js=e=>tn(e)==="[object Object]",$n=e=>oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ct=Bn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),nn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},oi=/-(\w)/g,ut=nn(e=>e.replace(oi,(t,n)=>n?n.toUpperCase():"")),li=/\B([A-Z])/g,pt=nn(e=>e.replace(li,"-$1").toLowerCase()),Ys=nn(e=>e.charAt(0).toUpperCase()+e.slice(1)),hn=nn(e=>e?`on${Ys(e)}`:""),At=(e,t)=>!Object.is(e,t),Kt=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Wt=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Vt=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ls;const ci=()=>ls||(ls=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Fe;class fi{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Fe&&(this.parent=Fe,this.index=(Fe.scopes||(Fe.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Fe;try{return Fe=this,t()}finally{Fe=n}}}on(){Fe=this}off(){Fe=this.parent}stop(t){if(this.active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.active=!1}}}function ui(e,t=Fe){t&&t.active&&t.effects.push(e)}const Un=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Xs=e=>(e.w&ke)>0,Zs=e=>(e.n&ke)>0,ai=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ke},di=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const r=t[s];Xs(r)&&!Zs(r)?r.delete(e):t[n++]=r,r.w&=~ke,r.n&=~ke}t.length=n}},En=new WeakMap;let xt=0,ke=1;const Tn=30;let Te;const Ge=Symbol(""),wn=Symbol("");class Kn{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,ui(this,s)}run(){if(!this.active)return this.fn();let t=Te,n=Ue;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Te,Te=this,Ue=!0,ke=1<<++xt,xt<=Tn?ai(this):cs(this),this.fn()}finally{xt<=Tn&&di(this),ke=1<<--xt,Te=this.parent,Ue=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Te===this?this.deferStop=!0:this.active&&(cs(this),this.onStop&&this.onStop(),this.active=!1)}}function cs(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ue=!0;const Qs=[];function gt(){Qs.push(Ue),Ue=!1}function mt(){const e=Qs.pop();Ue=e===void 0?!0:e}function _e(e,t,n){if(Ue&&Te){let s=En.get(e);s||En.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=Un()),Gs(r)}}function Gs(e,t){let n=!1;xt<=Tn?Zs(e)||(e.n|=ke,n=!Xs(e)):n=!e.has(Te),n&&(e.add(Te),Te.deps.push(e))}function Re(e,t,n,s,r,i){const o=En.get(e);if(!o)return;let l=[];if(t==="clear")l=[...o.values()];else if(n==="length"&&H(e))o.forEach((f,a)=>{(a==="length"||a>=s)&&l.push(f)});else switch(n!==void 0&&l.push(o.get(n)),t){case"add":H(e)?$n(n)&&l.push(o.get("length")):(l.push(o.get(Ge)),ot(e)&&l.push(o.get(wn)));break;case"delete":H(e)||(l.push(o.get(Ge)),ot(e)&&l.push(o.get(wn)));break;case"set":ot(e)&&l.push(o.get(Ge));break}if(l.length===1)l[0]&&An(l[0]);else{const f=[];for(const a of l)a&&f.push(...a);An(Un(f))}}function An(e,t){const n=H(e)?e:[...e];for(const s of n)s.computed&&fs(s);for(const s of n)s.computed||fs(s)}function fs(e,t){(e!==Te||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const hi=Bn("__proto__,__v_isRef,__isVue"),er=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Dn)),pi=kn(),gi=kn(!1,!0),mi=kn(!0),us=_i();function _i(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=z(this);for(let i=0,o=this.length;i<o;i++)_e(s,"get",i+"");const r=s[t](...n);return r===-1||r===!1?s[t](...n.map(z)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){gt();const s=z(this)[t].apply(this,n);return mt(),s}}),e}function kn(e=!1,t=!1){return function(s,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&i===(e?t?Ri:ir:t?rr:sr).get(s))return s;const o=H(s);if(!e&&o&&W(us,r))return Reflect.get(us,r,i);const l=Reflect.get(s,r,i);return(Dn(r)?er.has(r):hi(r))||(e||_e(s,"get",r),t)?l:le(l)?o&&$n(r)?l:l.value:ne(l)?e?or(l):qn(l):l}}const bi=tr(),yi=tr(!0);function tr(e=!1){return function(n,s,r,i){let o=n[s];if(at(o)&&le(o)&&!le(r))return!1;if(!e&&(!qt(r)&&!at(r)&&(o=z(o),r=z(r)),!H(n)&&le(o)&&!le(r)))return o.value=r,!0;const l=H(n)&&$n(s)?Number(s)<n.length:W(n,s),f=Reflect.set(n,s,r,i);return n===z(i)&&(l?At(r,o)&&Re(n,"set",s,r):Re(n,"add",s,r)),f}}function xi(e,t){const n=W(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&Re(e,"delete",t,void 0),s}function Ci(e,t){const n=Reflect.has(e,t);return(!Dn(t)||!er.has(t))&&_e(e,"has",t),n}function Ei(e){return _e(e,"iterate",H(e)?"length":Ge),Reflect.ownKeys(e)}const nr={get:pi,set:bi,deleteProperty:xi,has:Ci,ownKeys:Ei},Ti={get:mi,set(e,t){return!0},deleteProperty(e,t){return!0}},wi=ce({},nr,{get:gi,set:yi}),Wn=e=>e,sn=e=>Reflect.getPrototypeOf(e);function Ht(e,t,n=!1,s=!1){e=e.__v_raw;const r=z(e),i=z(t);n||(t!==i&&_e(r,"get",t),_e(r,"get",i));const{has:o}=sn(r),l=s?Wn:n?Jn:vt;if(o.call(r,t))return l(e.get(t));if(o.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function Bt(e,t=!1){const n=this.__v_raw,s=z(n),r=z(e);return t||(e!==r&&_e(s,"has",e),_e(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function St(e,t=!1){return e=e.__v_raw,!t&&_e(z(e),"iterate",Ge),Reflect.get(e,"size",e)}function as(e){e=z(e);const t=z(this);return sn(t).has.call(t,e)||(t.add(e),Re(t,"add",e,e)),this}function ds(e,t){t=z(t);const n=z(this),{has:s,get:r}=sn(n);let i=s.call(n,e);i||(e=z(e),i=s.call(n,e));const o=r.call(n,e);return n.set(e,t),i?At(t,o)&&Re(n,"set",e,t):Re(n,"add",e,t),this}function hs(e){const t=z(this),{has:n,get:s}=sn(t);let r=n.call(t,e);r||(e=z(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&Re(t,"delete",e,void 0),i}function ps(){const e=z(this),t=e.size!==0,n=e.clear();return t&&Re(e,"clear",void 0,void 0),n}function jt(e,t){return function(s,r){const i=this,o=i.__v_raw,l=z(o),f=t?Wn:e?Jn:vt;return!e&&_e(l,"iterate",Ge),o.forEach((a,h)=>s.call(r,f(a),f(h),i))}}function Dt(e,t,n){return function(...s){const r=this.__v_raw,i=z(r),o=ot(i),l=e==="entries"||e===Symbol.iterator&&o,f=e==="keys"&&o,a=r[e](...s),h=n?Wn:t?Jn:vt;return!t&&_e(i,"iterate",f?wn:Ge),{next(){const{value:b,done:x}=a.next();return x?{value:b,done:x}:{value:l?[h(b[0]),h(b[1])]:h(b),done:x}},[Symbol.iterator](){return this}}}}function Be(e){return function(...t){return e==="delete"?!1:this}}function Ai(){const e={get(i){return Ht(this,i)},get size(){return St(this)},has:Bt,add:as,set:ds,delete:hs,clear:ps,forEach:jt(!1,!1)},t={get(i){return Ht(this,i,!1,!0)},get size(){return St(this)},has:Bt,add:as,set:ds,delete:hs,clear:ps,forEach:jt(!1,!0)},n={get(i){return Ht(this,i,!0)},get size(){return St(this,!0)},has(i){return Bt.call(this,i,!0)},add:Be("add"),set:Be("set"),delete:Be("delete"),clear:Be("clear"),forEach:jt(!0,!1)},s={get(i){return Ht(this,i,!0,!0)},get size(){return St(this,!0)},has(i){return Bt.call(this,i,!0)},add:Be("add"),set:Be("set"),delete:Be("delete"),clear:Be("clear"),forEach:jt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Dt(i,!1,!1),n[i]=Dt(i,!0,!1),t[i]=Dt(i,!1,!0),s[i]=Dt(i,!0,!0)}),[e,n,t,s]}const[vi,Fi,Mi,Ii]=Ai();function Vn(e,t){const n=t?e?Ii:Mi:e?Fi:vi;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(W(n,r)&&r in s?n:s,r,i)}const Oi={get:Vn(!1,!1)},Pi={get:Vn(!1,!0)},Ni={get:Vn(!0,!1)},sr=new WeakMap,rr=new WeakMap,ir=new WeakMap,Ri=new WeakMap;function Li(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Hi(e){return e.__v_skip||!Object.isExtensible(e)?0:Li(ii(e))}function qn(e){return at(e)?e:zn(e,!1,nr,Oi,sr)}function Bi(e){return zn(e,!1,wi,Pi,rr)}function or(e){return zn(e,!0,Ti,Ni,ir)}function zn(e,t,n,s,r){if(!ne(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=Hi(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function lt(e){return at(e)?lt(e.__v_raw):!!(e&&e.__v_isReactive)}function at(e){return!!(e&&e.__v_isReadonly)}function qt(e){return!!(e&&e.__v_isShallow)}function lr(e){return lt(e)||at(e)}function z(e){const t=e&&e.__v_raw;return t?z(t):e}function cr(e){return Wt(e,"__v_skip",!0),e}const vt=e=>ne(e)?qn(e):e,Jn=e=>ne(e)?or(e):e;function fr(e){Ue&&Te&&(e=z(e),Gs(e.dep||(e.dep=Un())))}function ur(e,t){e=z(e),e.dep&&An(e.dep)}function le(e){return!!(e&&e.__v_isRef===!0)}function pn(e){return Si(e,!1)}function Si(e,t){return le(e)?e:new ji(e,t)}class ji{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:z(t),this._value=n?t:vt(t)}get value(){return fr(this),this._value}set value(t){const n=this.__v_isShallow||qt(t)||at(t);t=n?t:z(t),At(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:vt(t),ur(this))}}function Di(e){return le(e)?e.value:e}const $i={get:(e,t,n)=>Di(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return le(r)&&!le(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function ar(e){return lt(e)?e:new Proxy(e,$i)}class Ui{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function Ol(e,t,n){const s=e[t];return le(s)?s:new Ui(e,t,n)}var dr;class Ki{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[dr]=!1,this._dirty=!0,this.effect=new Kn(t,()=>{this._dirty||(this._dirty=!0,ur(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=z(this);return fr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}dr="__v_isReadonly";function ki(e,t,n=!1){let s,r;const i=$(e);return i?(s=e,r=Ae):(s=e.get,r=e.set),new Ki(s,r,i||!r,n)}function Ke(e,t,n,s){let r;try{r=s?e(...s):e()}catch(i){Nt(i,t,n)}return r}function xe(e,t,n,s){if($(e)){const i=Ke(e,t,n,s);return i&&qs(i)&&i.catch(o=>{Nt(o,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(xe(e[i],t,n,s));return r}function Nt(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,l=n;for(;i;){const a=i.ec;if(a){for(let h=0;h<a.length;h++)if(a[h](e,o,l)===!1)return}i=i.parent}const f=t.appContext.config.errorHandler;if(f){Ke(f,null,10,[e,o,l]);return}}Wi(e,n,r,s)}function Wi(e,t,n,s=!0){console.error(e)}let Ft=!1,vn=!1;const fe=[];let Ie=0;const ct=[];let Ne=null,Ye=0;const hr=Promise.resolve();let Yn=null;function Vi(e){const t=Yn||hr;return e?t.then(this?e.bind(this):e):t}function qi(e){let t=Ie+1,n=fe.length;for(;t<n;){const s=t+n>>>1;Mt(fe[s])<e?t=s+1:n=s}return t}function rn(e){(!fe.length||!fe.includes(e,Ft&&e.allowRecurse?Ie+1:Ie))&&(e.id==null?fe.push(e):fe.splice(qi(e.id),0,e),pr())}function pr(){!Ft&&!vn&&(vn=!0,Yn=hr.then(gr))}function zi(e){const t=fe.indexOf(e);t>Ie&&fe.splice(t,1)}function Ji(e){H(e)?ct.push(...e):(!Ne||!Ne.includes(e,e.allowRecurse?Ye+1:Ye))&&ct.push(e),pr()}function gs(e,t=Ft?Ie+1:0){for(;t<fe.length;t++){const n=fe[t];n&&n.pre&&(fe.splice(t,1),t--,n())}}function zt(e){if(ct.length){const t=[...new Set(ct)];if(ct.length=0,Ne){Ne.push(...t);return}for(Ne=t,Ne.sort((n,s)=>Mt(n)-Mt(s)),Ye=0;Ye<Ne.length;Ye++)Ne[Ye]();Ne=null,Ye=0}}const Mt=e=>e.id==null?1/0:e.id,Yi=(e,t)=>{const n=Mt(e)-Mt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function gr(e){vn=!1,Ft=!0,fe.sort(Yi);const t=Ae;try{for(Ie=0;Ie<fe.length;Ie++){const n=fe[Ie];n&&n.active!==!1&&Ke(n,null,14)}}finally{Ie=0,fe.length=0,zt(),Ft=!1,Yn=null,(fe.length||ct.length)&&gr()}}function Xi(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||G;let r=n;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in s){const h=`${o==="modelValue"?"model":o}Modifiers`,{number:b,trim:x}=s[h]||G;x&&(r=n.map(A=>A.trim())),b&&(r=n.map(Vt))}let l,f=s[l=hn(t)]||s[l=hn(ut(t))];!f&&i&&(f=s[l=hn(pt(t))]),f&&xe(f,e,6,r);const a=s[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,xe(a,e,6,r)}}function mr(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!$(e)){const f=a=>{const h=mr(a,t,!0);h&&(l=!0,ce(o,h))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!l?(ne(e)&&s.set(e,null),null):(H(i)?i.forEach(f=>o[f]=null):ce(o,i),ne(e)&&s.set(e,o),o)}function on(e,t){return!e||!Pt(t)?!1:(t=t.slice(2).replace(/Once$/,""),W(e,t[0].toLowerCase()+t.slice(1))||W(e,pt(t))||W(e,t))}let de=null,_r=null;function Jt(e){const t=de;return de=e,_r=e&&e.type.__scopeId||null,t}function Zi(e,t=de,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&As(-1);const i=Jt(t),o=e(...r);return Jt(i),s._d&&As(1),o};return s._n=!0,s._c=!0,s._d=!0,s}function gn(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:i,propsOptions:[o],slots:l,attrs:f,emit:a,render:h,renderCache:b,data:x,setupState:A,ctx:I,inheritAttrs:S}=e;let R,p;const y=Jt(e);try{if(n.shapeFlag&4){const D=r||s;R=Ee(h.call(D,D,b,i,A,x,I)),p=f}else{const D=t;R=Ee(D.length>1?D(i,{attrs:f,slots:l,emit:a}):D(i,null)),p=t.props?f:Qi(f)}}catch(D){Tt.length=0,Nt(D,e,1),R=re(me)}let L=R;if(p&&S!==!1){const D=Object.keys(p),{shapeFlag:k}=L;D.length&&k&7&&(o&&D.some(Sn)&&(p=Gi(p,o)),L=We(L,p))}return n.dirs&&(L=We(L),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&(L.transition=n.transition),R=L,Jt(y),R}const Qi=e=>{let t;for(const n in e)(n==="class"||n==="style"||Pt(n))&&((t||(t={}))[n]=e[n]);return t},Gi=(e,t)=>{const n={};for(const s in e)(!Sn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function eo(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:f}=t,a=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return s?ms(s,o,a):!!o;if(f&8){const h=t.dynamicProps;for(let b=0;b<h.length;b++){const x=h[b];if(o[x]!==s[x]&&!on(a,x))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===o?!1:s?o?ms(s,o,a):!0:!!o;return!1}function ms(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(t[i]!==e[i]&&!on(n,i))return!0}return!1}function to({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const no=e=>e.__isSuspense;function br(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):Ji(e)}function so(e,t){if(ie){let n=ie.provides;const s=ie.parent&&ie.parent.provides;s===n&&(n=ie.provides=Object.create(s)),n[e]=t}}function mn(e,t,n=!1){const s=ie||de;if(s){const r=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&$(t)?t.call(s.proxy):t}}function ro(e,t){return Xn(e,null,{flush:"post"})}const _s={};function _n(e,t,n){return Xn(e,t,n)}function Xn(e,t,{immediate:n,deep:s,flush:r,onTrack:i,onTrigger:o}=G){const l=ie;let f,a=!1,h=!1;if(le(e)?(f=()=>e.value,a=qt(e)):lt(e)?(f=()=>e,s=!0):H(e)?(h=!0,a=e.some(p=>lt(p)||qt(p)),f=()=>e.map(p=>{if(le(p))return p.value;if(lt(p))return Qe(p);if($(p))return Ke(p,l,2)})):$(e)?t?f=()=>Ke(e,l,2):f=()=>{if(!(l&&l.isUnmounted))return b&&b(),xe(e,l,3,[x])}:f=Ae,t&&s){const p=f;f=()=>Qe(p())}let b,x=p=>{b=R.onStop=()=>{Ke(p,l,4)}};if(ht)return x=Ae,t?n&&xe(t,l,3,[f(),h?[]:void 0,x]):f(),Ae;let A=h?[]:_s;const I=()=>{if(!!R.active)if(t){const p=R.run();(s||a||(h?p.some((y,L)=>At(y,A[L])):At(p,A)))&&(b&&b(),xe(t,l,3,[p,A===_s?void 0:A,x]),A=p)}else R.run()};I.allowRecurse=!!t;let S;r==="sync"?S=I:r==="post"?S=()=>pe(I,l&&l.suspense):(I.pre=!0,l&&(I.id=l.uid),S=()=>rn(I));const R=new Kn(f,S);return t?n?I():A=R.run():r==="post"?pe(R.run.bind(R),l&&l.suspense):R.run(),()=>{R.stop(),l&&l.scope&&jn(l.scope.effects,R)}}function io(e,t,n){const s=this.proxy,r=oe(e)?e.includes(".")?yr(s,e):()=>s[e]:e.bind(s,s);let i;$(t)?i=t:(i=t.handler,n=t);const o=ie;dt(this);const l=Xn(r,i.bind(s),n);return o?dt(o):et(),l}function yr(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function Qe(e,t){if(!ne(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),le(e))Qe(e.value,t);else if(H(e))for(let n=0;n<e.length;n++)Qe(e[n],t);else if(Vs(e)||ot(e))e.forEach(n=>{Qe(n,t)});else if(Js(e))for(const n in e)Qe(e[n],t);return e}function oo(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Zn(()=>{e.isMounted=!0}),wr(()=>{e.isUnmounting=!0}),e}const be=[Function,Array],lo={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:be,onEnter:be,onAfterEnter:be,onEnterCancelled:be,onBeforeLeave:be,onLeave:be,onAfterLeave:be,onLeaveCancelled:be,onBeforeAppear:be,onAppear:be,onAfterAppear:be,onAppearCancelled:be},setup(e,{slots:t}){const n=Ur(),s=oo();let r;return()=>{const i=t.default&&Er(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const S of i)if(S.type!==me){o=S;break}}const l=z(e),{mode:f}=l;if(s.isLeaving)return bn(o);const a=bs(o);if(!a)return bn(o);const h=Fn(a,l,s,n);Mn(a,h);const b=n.subTree,x=b&&bs(b);let A=!1;const{getTransitionKey:I}=a.type;if(I){const S=I();r===void 0?r=S:S!==r&&(r=S,A=!0)}if(x&&x.type!==me&&(!Xe(a,x)||A)){const S=Fn(x,l,s,n);if(Mn(x,S),f==="out-in")return s.isLeaving=!0,S.afterLeave=()=>{s.isLeaving=!1,n.update()},bn(o);f==="in-out"&&a.type!==me&&(S.delayLeave=(R,p,y)=>{const L=Cr(s,x);L[String(x.key)]=x,R._leaveCb=()=>{p(),R._leaveCb=void 0,delete h.delayedLeave},h.delayedLeave=y})}return o}}},xr=lo;function Cr(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Fn(e,t,n,s){const{appear:r,mode:i,persisted:o=!1,onBeforeEnter:l,onEnter:f,onAfterEnter:a,onEnterCancelled:h,onBeforeLeave:b,onLeave:x,onAfterLeave:A,onLeaveCancelled:I,onBeforeAppear:S,onAppear:R,onAfterAppear:p,onAppearCancelled:y}=t,L=String(e.key),D=Cr(n,e),k=(v,j)=>{v&&xe(v,s,9,j)},Y=(v,j)=>{const U=j[1];k(v,j),H(v)?v.every(V=>V.length<=1)&&U():v.length<=1&&U()},J={mode:i,persisted:o,beforeEnter(v){let j=l;if(!n.isMounted)if(r)j=S||l;else return;v._leaveCb&&v._leaveCb(!0);const U=D[L];U&&Xe(e,U)&&U.el._leaveCb&&U.el._leaveCb(),k(j,[v])},enter(v){let j=f,U=a,V=h;if(!n.isMounted)if(r)j=R||f,U=p||a,V=y||h;else return;let F=!1;const K=v._enterCb=O=>{F||(F=!0,O?k(V,[v]):k(U,[v]),J.delayedLeave&&J.delayedLeave(),v._enterCb=void 0)};j?Y(j,[v,K]):K()},leave(v,j){const U=String(e.key);if(v._enterCb&&v._enterCb(!0),n.isUnmounting)return j();k(b,[v]);let V=!1;const F=v._leaveCb=K=>{V||(V=!0,j(),K?k(I,[v]):k(A,[v]),v._leaveCb=void 0,D[U]===e&&delete D[U])};D[U]=e,x?Y(x,[v,F]):F()},clone(v){return Fn(v,t,n,s)}};return J}function bn(e){if(Rt(e))return e=We(e),e.children=null,e}function bs(e){return Rt(e)?e.children?e.children[0]:void 0:e}function Mn(e,t){e.shapeFlag&6&&e.component?Mn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Er(e,t=!1,n){let s=[],r=0;for(let i=0;i<e.length;i++){let o=e[i];const l=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===ae?(o.patchFlag&128&&r++,s=s.concat(Er(o.children,t,l))):(t||o.type!==me)&&s.push(l!=null?We(o,{key:l}):o)}if(r>1)for(let i=0;i<s.length;i++)s[i].patchFlag=-2;return s}function co(e){return $(e)?{setup:e,name:e.name}:e}const ft=e=>!!e.type.__asyncLoader;function Pl(e){$(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,timeout:i,suspensible:o=!0,onError:l}=e;let f=null,a,h=0;const b=()=>(h++,f=null,x()),x=()=>{let A;return f||(A=f=t().catch(I=>{if(I=I instanceof Error?I:new Error(String(I)),l)return new Promise((S,R)=>{l(I,()=>S(b()),()=>R(I),h+1)});throw I}).then(I=>A!==f&&f?f:(I&&(I.__esModule||I[Symbol.toStringTag]==="Module")&&(I=I.default),a=I,I)))};return co({name:"AsyncComponentWrapper",__asyncLoader:x,get __asyncResolved(){return a},setup(){const A=ie;if(a)return()=>yn(a,A);const I=y=>{f=null,Nt(y,A,13,!s)};if(o&&A.suspense||ht)return x().then(y=>()=>yn(y,A)).catch(y=>(I(y),()=>s?re(s,{error:y}):null));const S=pn(!1),R=pn(),p=pn(!!r);return r&&setTimeout(()=>{p.value=!1},r),i!=null&&setTimeout(()=>{if(!S.value&&!R.value){const y=new Error(`Async component timed out after ${i}ms.`);I(y),R.value=y}},i),x().then(()=>{S.value=!0,A.parent&&Rt(A.parent.vnode)&&rn(A.parent.update)}).catch(y=>{I(y),R.value=y}),()=>{if(S.value&&a)return yn(a,A);if(R.value&&s)return re(s,{error:R.value});if(n&&!p.value)return re(n)}}})}function yn(e,{vnode:{ref:t,props:n,children:s,shapeFlag:r},parent:i}){const o=re(e,n,s);return o.ref=t,o}const Rt=e=>e.type.__isKeepAlive;function fo(e,t){Tr(e,"a",t)}function uo(e,t){Tr(e,"da",t)}function Tr(e,t,n=ie){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(ln(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Rt(r.parent.vnode)&&ao(s,t,n,r),r=r.parent}}function ao(e,t,n,s){const r=ln(t,e,s,!0);Qn(()=>{jn(s[t],r)},n)}function ln(e,t,n=ie,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;gt(),dt(n);const l=xe(t,n,e,o);return et(),mt(),l});return s?r.unshift(i):r.push(i),i}}const Le=e=>(t,n=ie)=>(!ht||e==="sp")&&ln(e,t,n),ho=Le("bm"),Zn=Le("m"),po=Le("bu"),go=Le("u"),wr=Le("bum"),Qn=Le("um"),mo=Le("sp"),_o=Le("rtg"),bo=Le("rtc");function yo(e,t=ie){ln("ec",e,t)}function Nl(e,t){const n=de;if(n===null)return e;const s=fn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,l,f,a=G]=t[i];$(o)&&(o={mounted:o,updated:o}),o.deep&&Qe(l),r.push({dir:o,instance:s,value:l,oldValue:void 0,arg:f,modifiers:a})}return e}function Me(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let f=l.dir[s];f&&(gt(),xe(f,n,8,[e.el,l,e,t]),mt())}}const xo=Symbol();function Rl(e,t,n={},s,r){if(de.isCE||de.parent&&ft(de.parent)&&de.parent.isCE)return re("slot",t==="default"?null:{name:t},s&&s());let i=e[t];i&&i._c&&(i._d=!1),Hr();const o=i&&Ar(i(n)),l=Sr(ae,{key:n.key||o&&o.key||`_${t}`},o||(s?s():[]),o&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Ar(e){return e.some(t=>Qt(t)?!(t.type===me||t.type===ae&&!Ar(t.children)):!0)?e:null}const In=e=>e?Kr(e)?fn(e)||e.proxy:In(e.parent):null,Yt=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>In(e.parent),$root:e=>In(e.root),$emit:e=>e.emit,$options:e=>Gn(e),$forceUpdate:e=>e.f||(e.f=()=>rn(e.update)),$nextTick:e=>e.n||(e.n=Vi.bind(e.proxy)),$watch:e=>io.bind(e)}),Co={get({_:e},t){const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:f}=e;let a;if(t[0]!=="$"){const A=o[t];if(A!==void 0)switch(A){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(s!==G&&W(s,t))return o[t]=1,s[t];if(r!==G&&W(r,t))return o[t]=2,r[t];if((a=e.propsOptions[0])&&W(a,t))return o[t]=3,i[t];if(n!==G&&W(n,t))return o[t]=4,n[t];On&&(o[t]=0)}}const h=Yt[t];let b,x;if(h)return t==="$attrs"&&_e(e,"get",t),h(e);if((b=l.__cssModules)&&(b=b[t]))return b;if(n!==G&&W(n,t))return o[t]=4,n[t];if(x=f.config.globalProperties,W(x,t))return x[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return r!==G&&W(r,t)?(r[t]=n,!0):s!==G&&W(s,t)?(s[t]=n,!0):W(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==G&&W(e,o)||t!==G&&W(t,o)||(l=i[0])&&W(l,o)||W(s,o)||W(Yt,o)||W(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:W(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let On=!0;function Eo(e){const t=Gn(e),n=e.proxy,s=e.ctx;On=!1,t.beforeCreate&&ys(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:f,inject:a,created:h,beforeMount:b,mounted:x,beforeUpdate:A,updated:I,activated:S,deactivated:R,beforeDestroy:p,beforeUnmount:y,destroyed:L,unmounted:D,render:k,renderTracked:Y,renderTriggered:J,errorCaptured:v,serverPrefetch:j,expose:U,inheritAttrs:V,components:F,directives:K,filters:O}=t;if(a&&To(a,s,null,e.appContext.config.unwrapInjectedRef),o)for(const se in o){const ee=o[se];$(ee)&&(s[se]=ee.bind(n))}if(r){const se=r.call(n,n);ne(se)&&(e.data=qn(se))}if(On=!0,i)for(const se in i){const ee=i[se],Oe=$(ee)?ee.bind(n,n):$(ee.get)?ee.get.bind(n,n):Ae,un=!$(ee)&&$(ee.set)?ee.set.bind(n):Ae,_t=Zo({get:Oe,set:un});Object.defineProperty(s,se,{enumerable:!0,configurable:!0,get:()=>_t.value,set:tt=>_t.value=tt})}if(l)for(const se in l)vr(l[se],s,n,se);if(f){const se=$(f)?f.call(n):f;Reflect.ownKeys(se).forEach(ee=>{so(ee,se[ee])})}h&&ys(h,e,"c");function X(se,ee){H(ee)?ee.forEach(Oe=>se(Oe.bind(n))):ee&&se(ee.bind(n))}if(X(ho,b),X(Zn,x),X(po,A),X(go,I),X(fo,S),X(uo,R),X(yo,v),X(bo,Y),X(_o,J),X(wr,y),X(Qn,D),X(mo,j),H(U))if(U.length){const se=e.exposed||(e.exposed={});U.forEach(ee=>{Object.defineProperty(se,ee,{get:()=>n[ee],set:Oe=>n[ee]=Oe})})}else e.exposed||(e.exposed={});k&&e.render===Ae&&(e.render=k),V!=null&&(e.inheritAttrs=V),F&&(e.components=F),K&&(e.directives=K)}function To(e,t,n=Ae,s=!1){H(e)&&(e=Pn(e));for(const r in e){const i=e[r];let o;ne(i)?"default"in i?o=mn(i.from||r,i.default,!0):o=mn(i.from||r):o=mn(i),le(o)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[r]=o}}function ys(e,t,n){xe(H(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function vr(e,t,n,s){const r=s.includes(".")?yr(n,s):()=>n[s];if(oe(e)){const i=t[e];$(i)&&_n(r,i)}else if($(e))_n(r,e.bind(n));else if(ne(e))if(H(e))e.forEach(i=>vr(i,t,n,s));else{const i=$(e.handler)?e.handler.bind(n):t[e.handler];$(i)&&_n(r,i,e)}}function Gn(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let f;return l?f=l:!r.length&&!n&&!s?f=t:(f={},r.length&&r.forEach(a=>Xt(f,a,o,!0)),Xt(f,t,o)),ne(t)&&i.set(t,f),f}function Xt(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Xt(e,i,n,!0),r&&r.forEach(o=>Xt(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=wo[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const wo={data:xs,props:Je,emits:Je,methods:Je,computed:Je,beforeCreate:ue,created:ue,beforeMount:ue,mounted:ue,beforeUpdate:ue,updated:ue,beforeDestroy:ue,beforeUnmount:ue,destroyed:ue,unmounted:ue,activated:ue,deactivated:ue,errorCaptured:ue,serverPrefetch:ue,components:Je,directives:Je,watch:vo,provide:xs,inject:Ao};function xs(e,t){return t?e?function(){return ce($(e)?e.call(this,this):e,$(t)?t.call(this,this):t)}:t:e}function Ao(e,t){return Je(Pn(e),Pn(t))}function Pn(e){if(H(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ue(e,t){return e?[...new Set([].concat(e,t))]:t}function Je(e,t){return e?ce(ce(Object.create(null),e),t):t}function vo(e,t){if(!e)return t;if(!t)return e;const n=ce(Object.create(null),e);for(const s in t)n[s]=ue(e[s],t[s]);return n}function Fo(e,t,n,s=!1){const r={},i={};Wt(i,cn,1),e.propsDefaults=Object.create(null),Fr(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:Bi(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Mo(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=z(r),[f]=e.propsOptions;let a=!1;if((s||o>0)&&!(o&16)){if(o&8){const h=e.vnode.dynamicProps;for(let b=0;b<h.length;b++){let x=h[b];if(on(e.emitsOptions,x))continue;const A=t[x];if(f)if(W(i,x))A!==i[x]&&(i[x]=A,a=!0);else{const I=ut(x);r[I]=Nn(f,l,I,A,e,!1)}else A!==i[x]&&(i[x]=A,a=!0)}}}else{Fr(e,t,r,i)&&(a=!0);let h;for(const b in l)(!t||!W(t,b)&&((h=pt(b))===b||!W(t,h)))&&(f?n&&(n[b]!==void 0||n[h]!==void 0)&&(r[b]=Nn(f,l,b,void 0,e,!0)):delete r[b]);if(i!==l)for(const b in i)(!t||!W(t,b)&&!0)&&(delete i[b],a=!0)}a&&Re(e,"set","$attrs")}function Fr(e,t,n,s){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let f in t){if(Ct(f))continue;const a=t[f];let h;r&&W(r,h=ut(f))?!i||!i.includes(h)?n[h]=a:(l||(l={}))[h]=a:on(e.emitsOptions,f)||(!(f in s)||a!==s[f])&&(s[f]=a,o=!0)}if(i){const f=z(n),a=l||G;for(let h=0;h<i.length;h++){const b=i[h];n[b]=Nn(r,f,b,a[b],e,!W(a,b))}}return o}function Nn(e,t,n,s,r,i){const o=e[n];if(o!=null){const l=W(o,"default");if(l&&s===void 0){const f=o.default;if(o.type!==Function&&$(f)){const{propsDefaults:a}=r;n in a?s=a[n]:(dt(r),s=a[n]=f.call(null,t),et())}else s=f}o[0]&&(i&&!l?s=!1:o[1]&&(s===""||s===pt(n))&&(s=!0))}return s}function Mr(e,t,n=!1){const s=t.propsCache,r=s.get(e);if(r)return r;const i=e.props,o={},l=[];let f=!1;if(!$(e)){const h=b=>{f=!0;const[x,A]=Mr(b,t,!0);ce(o,x),A&&l.push(...A)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!i&&!f)return ne(e)&&s.set(e,it),it;if(H(i))for(let h=0;h<i.length;h++){const b=ut(i[h]);Cs(b)&&(o[b]=G)}else if(i)for(const h in i){const b=ut(h);if(Cs(b)){const x=i[h],A=o[b]=H(x)||$(x)?{type:x}:x;if(A){const I=ws(Boolean,A.type),S=ws(String,A.type);A[0]=I>-1,A[1]=S<0||I<S,(I>-1||W(A,"default"))&&l.push(b)}}}const a=[o,l];return ne(e)&&s.set(e,a),a}function Cs(e){return e[0]!=="$"}function Es(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Ts(e,t){return Es(e)===Es(t)}function ws(e,t){return H(t)?t.findIndex(n=>Ts(n,e)):$(t)&&Ts(t,e)?0:-1}const Ir=e=>e[0]==="_"||e==="$stable",es=e=>H(e)?e.map(Ee):[Ee(e)],Io=(e,t,n)=>{if(t._n)return t;const s=Zi((...r)=>es(t(...r)),n);return s._c=!1,s},Or=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Ir(r))continue;const i=e[r];if($(i))t[r]=Io(r,i,s);else if(i!=null){const o=es(i);t[r]=()=>o}}},Pr=(e,t)=>{const n=es(t);e.slots.default=()=>n},Oo=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=z(t),Wt(t,"_",n)):Or(t,e.slots={})}else e.slots={},t&&Pr(e,t);Wt(e.slots,cn,1)},Po=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=G;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(ce(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Or(t,r)),o=t}else t&&(Pr(e,t),o={default:1});if(i)for(const l in r)!Ir(l)&&!(l in o)&&delete r[l]};function Nr(){return{app:null,config:{isNativeTag:ni,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 No=0;function Ro(e,t){return function(s,r=null){$(s)||(s=Object.assign({},s)),r!=null&&!ne(r)&&(r=null);const i=Nr(),o=new Set;let l=!1;const f=i.app={_uid:No++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:Go,get config(){return i.config},set config(a){},use(a,...h){return o.has(a)||(a&&$(a.install)?(o.add(a),a.install(f,...h)):$(a)&&(o.add(a),a(f,...h))),f},mixin(a){return i.mixins.includes(a)||i.mixins.push(a),f},component(a,h){return h?(i.components[a]=h,f):i.components[a]},directive(a,h){return h?(i.directives[a]=h,f):i.directives[a]},mount(a,h,b){if(!l){const x=re(s,r);return x.appContext=i,h&&t?t(x,a):e(x,a,b),l=!0,f._container=a,a.__vue_app__=f,fn(x.component)||x.component.proxy}},unmount(){l&&(e(null,f._container),delete f._container.__vue_app__)},provide(a,h){return i.provides[a]=h,f}};return f}}function Zt(e,t,n,s,r=!1){if(H(e)){e.forEach((x,A)=>Zt(x,t&&(H(t)?t[A]:t),n,s,r));return}if(ft(s)&&!r)return;const i=s.shapeFlag&4?fn(s.component)||s.component.proxy:s.el,o=r?null:i,{i:l,r:f}=e,a=t&&t.r,h=l.refs===G?l.refs={}:l.refs,b=l.setupState;if(a!=null&&a!==f&&(oe(a)?(h[a]=null,W(b,a)&&(b[a]=null)):le(a)&&(a.value=null)),$(f))Ke(f,l,12,[o,h]);else{const x=oe(f),A=le(f);if(x||A){const I=()=>{if(e.f){const S=x?h[f]:f.value;r?H(S)&&jn(S,i):H(S)?S.includes(i)||S.push(i):x?(h[f]=[i],W(b,f)&&(b[f]=h[f])):(f.value=[i],e.k&&(h[e.k]=f.value))}else x?(h[f]=o,W(b,f)&&(b[f]=o)):A&&(f.value=o,e.k&&(h[e.k]=o))};o?(I.id=-1,pe(I,n)):I()}}}let Se=!1;const $t=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Ut=e=>e.nodeType===8;function Lo(e){const{mt:t,p:n,o:{patchProp:s,createText:r,nextSibling:i,parentNode:o,remove:l,insert:f,createComment:a}}=e,h=(p,y)=>{if(!y.hasChildNodes()){n(null,p,y),zt(),y._vnode=p;return}Se=!1,b(y.firstChild,p,null,null,null),zt(),y._vnode=p,Se&&console.error("Hydration completed but contains mismatches.")},b=(p,y,L,D,k,Y=!1)=>{const J=Ut(p)&&p.data==="[",v=()=>S(p,y,L,D,k,J),{type:j,ref:U,shapeFlag:V,patchFlag:F}=y,K=p.nodeType;y.el=p,F===-2&&(Y=!1,y.dynamicChildren=null);let O=null;switch(j){case It:K!==3?y.children===""?(f(y.el=r(""),o(p),p),O=p):O=v():(p.data!==y.children&&(Se=!0,p.data=y.children),O=i(p));break;case me:K!==8||J?O=v():O=i(p);break;case Et:if(K!==1&&K!==3)O=v();else{O=p;const he=!y.children.length;for(let X=0;X<y.staticCount;X++)he&&(y.children+=O.nodeType===1?O.outerHTML:O.data),X===y.staticCount-1&&(y.anchor=O),O=i(O);return O}break;case ae:J?O=I(p,y,L,D,k,Y):O=v();break;default:if(V&1)K!==1||y.type.toLowerCase()!==p.tagName.toLowerCase()?O=v():O=x(p,y,L,D,k,Y);else if(V&6){y.slotScopeIds=k;const he=o(p);if(t(y,he,null,L,D,$t(he),Y),O=J?R(p):i(p),O&&Ut(O)&&O.data==="teleport end"&&(O=i(O)),ft(y)){let X;J?(X=re(ae),X.anchor=O?O.previousSibling:he.lastChild):X=p.nodeType===3?$r(""):re("div"),X.el=p,y.component.subTree=X}}else V&64?K!==8?O=v():O=y.type.hydrate(p,y,L,D,k,Y,e,A):V&128&&(O=y.type.hydrate(p,y,L,D,$t(o(p)),k,Y,e,b))}return U!=null&&Zt(U,null,D,y),O},x=(p,y,L,D,k,Y)=>{Y=Y||!!y.dynamicChildren;const{type:J,props:v,patchFlag:j,shapeFlag:U,dirs:V}=y,F=J==="input"&&V||J==="option";if(F||j!==-1){if(V&&Me(y,null,L,"created"),v)if(F||!Y||j&48)for(const O in v)(F&&O.endsWith("value")||Pt(O)&&!Ct(O))&&s(p,O,null,v[O],!1,void 0,L);else v.onClick&&s(p,"onClick",null,v.onClick,!1,void 0,L);let K;if((K=v&&v.onVnodeBeforeMount)&&ye(K,L,y),V&&Me(y,null,L,"beforeMount"),((K=v&&v.onVnodeMounted)||V)&&br(()=>{K&&ye(K,L,y),V&&Me(y,null,L,"mounted")},D),U&16&&!(v&&(v.innerHTML||v.textContent))){let O=A(p.firstChild,y,p,L,D,k,Y);for(;O;){Se=!0;const he=O;O=O.nextSibling,l(he)}}else U&8&&p.textContent!==y.children&&(Se=!0,p.textContent=y.children)}return p.nextSibling},A=(p,y,L,D,k,Y,J)=>{J=J||!!y.dynamicChildren;const v=y.children,j=v.length;for(let U=0;U<j;U++){const V=J?v[U]:v[U]=Ee(v[U]);if(p)p=b(p,V,D,k,Y,J);else{if(V.type===It&&!V.children)continue;Se=!0,n(null,V,L,null,D,k,$t(L),Y)}}return p},I=(p,y,L,D,k,Y)=>{const{slotScopeIds:J}=y;J&&(k=k?k.concat(J):J);const v=o(p),j=A(i(p),y,v,L,D,k,Y);return j&&Ut(j)&&j.data==="]"?i(y.anchor=j):(Se=!0,f(y.anchor=a("]"),v,j),j)},S=(p,y,L,D,k,Y)=>{if(Se=!0,y.el=null,Y){const j=R(p);for(;;){const U=i(p);if(U&&U!==j)l(U);else break}}const J=i(p),v=o(p);return l(p),n(null,y,v,J,L,D,$t(v),k),J},R=p=>{let y=0;for(;p;)if(p=i(p),p&&Ut(p)&&(p.data==="["&&y++,p.data==="]")){if(y===0)return i(p);y--}return p};return[h,b]}const pe=br;function Ho(e){return Rr(e)}function Bo(e){return Rr(e,Lo)}function Rr(e,t){const n=ci();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:f,setText:a,setElementText:h,parentNode:b,nextSibling:x,setScopeId:A=Ae,cloneNode:I,insertStaticContent:S}=e,R=(c,u,d,m=null,g=null,E=null,w=!1,C=null,T=!!u.dynamicChildren)=>{if(c===u)return;c&&!Xe(c,u)&&(m=Lt(c),He(c,g,E,!0),c=null),u.patchFlag===-2&&(T=!1,u.dynamicChildren=null);const{type:_,ref:P,shapeFlag:M}=u;switch(_){case It:p(c,u,d,m);break;case me:y(c,u,d,m);break;case Et:c==null&&L(u,d,m,w);break;case ae:K(c,u,d,m,g,E,w,C,T);break;default:M&1?Y(c,u,d,m,g,E,w,C,T):M&6?O(c,u,d,m,g,E,w,C,T):(M&64||M&128)&&_.process(c,u,d,m,g,E,w,C,T,nt)}P!=null&&g&&Zt(P,c&&c.ref,E,u||c,!u)},p=(c,u,d,m)=>{if(c==null)s(u.el=l(u.children),d,m);else{const g=u.el=c.el;u.children!==c.children&&a(g,u.children)}},y=(c,u,d,m)=>{c==null?s(u.el=f(u.children||""),d,m):u.el=c.el},L=(c,u,d,m)=>{[c.el,c.anchor]=S(c.children,u,d,m,c.el,c.anchor)},D=({el:c,anchor:u},d,m)=>{let g;for(;c&&c!==u;)g=x(c),s(c,d,m),c=g;s(u,d,m)},k=({el:c,anchor:u})=>{let d;for(;c&&c!==u;)d=x(c),r(c),c=d;r(u)},Y=(c,u,d,m,g,E,w,C,T)=>{w=w||u.type==="svg",c==null?J(u,d,m,g,E,w,C,T):U(c,u,g,E,w,C,T)},J=(c,u,d,m,g,E,w,C)=>{let T,_;const{type:P,props:M,shapeFlag:N,transition:B,patchFlag:q,dirs:Z}=c;if(c.el&&I!==void 0&&q===-1)T=c.el=I(c.el);else{if(T=c.el=o(c.type,E,M&&M.is,M),N&8?h(T,c.children):N&16&&j(c.children,T,null,m,g,E&&P!=="foreignObject",w,C),Z&&Me(c,null,m,"created"),M){for(const te in M)te!=="value"&&!Ct(te)&&i(T,te,null,M[te],E,c.children,m,g,Pe);"value"in M&&i(T,"value",null,M.value),(_=M.onVnodeBeforeMount)&&ye(_,m,c)}v(T,c,c.scopeId,w,m)}Z&&Me(c,null,m,"beforeMount");const Q=(!g||g&&!g.pendingBranch)&&B&&!B.persisted;Q&&B.beforeEnter(T),s(T,u,d),((_=M&&M.onVnodeMounted)||Q||Z)&&pe(()=>{_&&ye(_,m,c),Q&&B.enter(T),Z&&Me(c,null,m,"mounted")},g)},v=(c,u,d,m,g)=>{if(d&&A(c,d),m)for(let E=0;E<m.length;E++)A(c,m[E]);if(g){let E=g.subTree;if(u===E){const w=g.vnode;v(c,w,w.scopeId,w.slotScopeIds,g.parent)}}},j=(c,u,d,m,g,E,w,C,T=0)=>{for(let _=T;_<c.length;_++){const P=c[_]=C?$e(c[_]):Ee(c[_]);R(null,P,u,d,m,g,E,w,C)}},U=(c,u,d,m,g,E,w)=>{const C=u.el=c.el;let{patchFlag:T,dynamicChildren:_,dirs:P}=u;T|=c.patchFlag&16;const M=c.props||G,N=u.props||G;let B;d&&Ve(d,!1),(B=N.onVnodeBeforeUpdate)&&ye(B,d,u,c),P&&Me(u,c,d,"beforeUpdate"),d&&Ve(d,!0);const q=g&&u.type!=="foreignObject";if(_?V(c.dynamicChildren,_,C,d,m,q,E):w||Oe(c,u,C,null,d,m,q,E,!1),T>0){if(T&16)F(C,u,M,N,d,m,g);else if(T&2&&M.class!==N.class&&i(C,"class",null,N.class,g),T&4&&i(C,"style",M.style,N.style,g),T&8){const Z=u.dynamicProps;for(let Q=0;Q<Z.length;Q++){const te=Z[Q],Ce=M[te],st=N[te];(st!==Ce||te==="value")&&i(C,te,Ce,st,g,c.children,d,m,Pe)}}T&1&&c.children!==u.children&&h(C,u.children)}else!w&&_==null&&F(C,u,M,N,d,m,g);((B=N.onVnodeUpdated)||P)&&pe(()=>{B&&ye(B,d,u,c),P&&Me(u,c,d,"updated")},m)},V=(c,u,d,m,g,E,w)=>{for(let C=0;C<u.length;C++){const T=c[C],_=u[C],P=T.el&&(T.type===ae||!Xe(T,_)||T.shapeFlag&70)?b(T.el):d;R(T,_,P,null,m,g,E,w,!0)}},F=(c,u,d,m,g,E,w)=>{if(d!==m){for(const C in m){if(Ct(C))continue;const T=m[C],_=d[C];T!==_&&C!=="value"&&i(c,C,_,T,w,u.children,g,E,Pe)}if(d!==G)for(const C in d)!Ct(C)&&!(C in m)&&i(c,C,d[C],null,w,u.children,g,E,Pe);"value"in m&&i(c,"value",d.value,m.value)}},K=(c,u,d,m,g,E,w,C,T)=>{const _=u.el=c?c.el:l(""),P=u.anchor=c?c.anchor:l("");let{patchFlag:M,dynamicChildren:N,slotScopeIds:B}=u;B&&(C=C?C.concat(B):B),c==null?(s(_,d,m),s(P,d,m),j(u.children,d,P,g,E,w,C,T)):M>0&&M&64&&N&&c.dynamicChildren?(V(c.dynamicChildren,N,d,g,E,w,C),(u.key!=null||g&&u===g.subTree)&&Lr(c,u,!0)):Oe(c,u,d,P,g,E,w,C,T)},O=(c,u,d,m,g,E,w,C,T)=>{u.slotScopeIds=C,c==null?u.shapeFlag&512?g.ctx.activate(u,d,m,w,T):he(u,d,m,g,E,w,T):X(c,u,T)},he=(c,u,d,m,g,E,w)=>{const C=c.component=Vo(c,m,g);if(Rt(c)&&(C.ctx.renderer=nt),qo(C),C.asyncDep){if(g&&g.registerDep(C,se),!c.el){const T=C.subTree=re(me);y(null,T,u,d)}return}se(C,c,u,d,g,E,w)},X=(c,u,d)=>{const m=u.component=c.component;if(eo(c,u,d))if(m.asyncDep&&!m.asyncResolved){ee(m,u,d);return}else m.next=u,zi(m.update),m.update();else u.el=c.el,m.vnode=u},se=(c,u,d,m,g,E,w)=>{const C=()=>{if(c.isMounted){let{next:P,bu:M,u:N,parent:B,vnode:q}=c,Z=P,Q;Ve(c,!1),P?(P.el=q.el,ee(c,P,w)):P=q,M&&Kt(M),(Q=P.props&&P.props.onVnodeBeforeUpdate)&&ye(Q,B,P,q),Ve(c,!0);const te=gn(c),Ce=c.subTree;c.subTree=te,R(Ce,te,b(Ce.el),Lt(Ce),c,g,E),P.el=te.el,Z===null&&to(c,te.el),N&&pe(N,g),(Q=P.props&&P.props.onVnodeUpdated)&&pe(()=>ye(Q,B,P,q),g)}else{let P;const{el:M,props:N}=u,{bm:B,m:q,parent:Z}=c,Q=ft(u);if(Ve(c,!1),B&&Kt(B),!Q&&(P=N&&N.onVnodeBeforeMount)&&ye(P,Z,u),Ve(c,!0),M&&dn){const te=()=>{c.subTree=gn(c),dn(M,c.subTree,c,g,null)};Q?u.type.__asyncLoader().then(()=>!c.isUnmounted&&te()):te()}else{const te=c.subTree=gn(c);R(null,te,d,m,c,g,E),u.el=te.el}if(q&&pe(q,g),!Q&&(P=N&&N.onVnodeMounted)){const te=u;pe(()=>ye(P,Z,te),g)}(u.shapeFlag&256||Z&&ft(Z.vnode)&&Z.vnode.shapeFlag&256)&&c.a&&pe(c.a,g),c.isMounted=!0,u=d=m=null}},T=c.effect=new Kn(C,()=>rn(_),c.scope),_=c.update=()=>T.run();_.id=c.uid,Ve(c,!0),_()},ee=(c,u,d)=>{u.component=c;const m=c.vnode.props;c.vnode=u,c.next=null,Mo(c,u.props,m,d),Po(c,u.children,d),gt(),gs(),mt()},Oe=(c,u,d,m,g,E,w,C,T=!1)=>{const _=c&&c.children,P=c?c.shapeFlag:0,M=u.children,{patchFlag:N,shapeFlag:B}=u;if(N>0){if(N&128){_t(_,M,d,m,g,E,w,C,T);return}else if(N&256){un(_,M,d,m,g,E,w,C,T);return}}B&8?(P&16&&Pe(_,g,E),M!==_&&h(d,M)):P&16?B&16?_t(_,M,d,m,g,E,w,C,T):Pe(_,g,E,!0):(P&8&&h(d,""),B&16&&j(M,d,m,g,E,w,C,T))},un=(c,u,d,m,g,E,w,C,T)=>{c=c||it,u=u||it;const _=c.length,P=u.length,M=Math.min(_,P);let N;for(N=0;N<M;N++){const B=u[N]=T?$e(u[N]):Ee(u[N]);R(c[N],B,d,null,g,E,w,C,T)}_>P?Pe(c,g,E,!0,!1,M):j(u,d,m,g,E,w,C,T,M)},_t=(c,u,d,m,g,E,w,C,T)=>{let _=0;const P=u.length;let M=c.length-1,N=P-1;for(;_<=M&&_<=N;){const B=c[_],q=u[_]=T?$e(u[_]):Ee(u[_]);if(Xe(B,q))R(B,q,d,null,g,E,w,C,T);else break;_++}for(;_<=M&&_<=N;){const B=c[M],q=u[N]=T?$e(u[N]):Ee(u[N]);if(Xe(B,q))R(B,q,d,null,g,E,w,C,T);else break;M--,N--}if(_>M){if(_<=N){const B=N+1,q=B<P?u[B].el:m;for(;_<=N;)R(null,u[_]=T?$e(u[_]):Ee(u[_]),d,q,g,E,w,C,T),_++}}else if(_>N)for(;_<=M;)He(c[_],g,E,!0),_++;else{const B=_,q=_,Z=new Map;for(_=q;_<=N;_++){const ge=u[_]=T?$e(u[_]):Ee(u[_]);ge.key!=null&&Z.set(ge.key,_)}let Q,te=0;const Ce=N-q+1;let st=!1,rs=0;const bt=new Array(Ce);for(_=0;_<Ce;_++)bt[_]=0;for(_=B;_<=M;_++){const ge=c[_];if(te>=Ce){He(ge,g,E,!0);continue}let ve;if(ge.key!=null)ve=Z.get(ge.key);else for(Q=q;Q<=N;Q++)if(bt[Q-q]===0&&Xe(ge,u[Q])){ve=Q;break}ve===void 0?He(ge,g,E,!0):(bt[ve-q]=_+1,ve>=rs?rs=ve:st=!0,R(ge,u[ve],d,null,g,E,w,C,T),te++)}const is=st?So(bt):it;for(Q=is.length-1,_=Ce-1;_>=0;_--){const ge=q+_,ve=u[ge],os=ge+1<P?u[ge+1].el:m;bt[_]===0?R(null,ve,d,os,g,E,w,C,T):st&&(Q<0||_!==is[Q]?tt(ve,d,os,2):Q--)}}},tt=(c,u,d,m,g=null)=>{const{el:E,type:w,transition:C,children:T,shapeFlag:_}=c;if(_&6){tt(c.component.subTree,u,d,m);return}if(_&128){c.suspense.move(u,d,m);return}if(_&64){w.move(c,u,d,nt);return}if(w===ae){s(E,u,d);for(let M=0;M<T.length;M++)tt(T[M],u,d,m);s(c.anchor,u,d);return}if(w===Et){D(c,u,d);return}if(m!==2&&_&1&&C)if(m===0)C.beforeEnter(E),s(E,u,d),pe(()=>C.enter(E),g);else{const{leave:M,delayLeave:N,afterLeave:B}=C,q=()=>s(E,u,d),Z=()=>{M(E,()=>{q(),B&&B()})};N?N(E,q,Z):Z()}else s(E,u,d)},He=(c,u,d,m=!1,g=!1)=>{const{type:E,props:w,ref:C,children:T,dynamicChildren:_,shapeFlag:P,patchFlag:M,dirs:N}=c;if(C!=null&&Zt(C,null,d,c,!0),P&256){u.ctx.deactivate(c);return}const B=P&1&&N,q=!ft(c);let Z;if(q&&(Z=w&&w.onVnodeBeforeUnmount)&&ye(Z,u,c),P&6)Xr(c.component,d,m);else{if(P&128){c.suspense.unmount(d,m);return}B&&Me(c,null,u,"beforeUnmount"),P&64?c.type.remove(c,u,d,g,nt,m):_&&(E!==ae||M>0&&M&64)?Pe(_,u,d,!1,!0):(E===ae&&M&384||!g&&P&16)&&Pe(T,u,d),m&&ns(c)}(q&&(Z=w&&w.onVnodeUnmounted)||B)&&pe(()=>{Z&&ye(Z,u,c),B&&Me(c,null,u,"unmounted")},d)},ns=c=>{const{type:u,el:d,anchor:m,transition:g}=c;if(u===ae){Yr(d,m);return}if(u===Et){k(c);return}const E=()=>{r(d),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(c.shapeFlag&1&&g&&!g.persisted){const{leave:w,delayLeave:C}=g,T=()=>w(d,E);C?C(c.el,E,T):T()}else E()},Yr=(c,u)=>{let d;for(;c!==u;)d=x(c),r(c),c=d;r(u)},Xr=(c,u,d)=>{const{bum:m,scope:g,update:E,subTree:w,um:C}=c;m&&Kt(m),g.stop(),E&&(E.active=!1,He(w,c,u,d)),C&&pe(C,u),pe(()=>{c.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},Pe=(c,u,d,m=!1,g=!1,E=0)=>{for(let w=E;w<c.length;w++)He(c[w],u,d,m,g)},Lt=c=>c.shapeFlag&6?Lt(c.component.subTree):c.shapeFlag&128?c.suspense.next():x(c.anchor||c.el),ss=(c,u,d)=>{c==null?u._vnode&&He(u._vnode,null,null,!0):R(u._vnode||null,c,u,null,null,null,d),gs(),zt(),u._vnode=c},nt={p:R,um:He,m:tt,r:ns,mt:he,mc:j,pc:Oe,pbc:V,n:Lt,o:e};let an,dn;return t&&([an,dn]=t(nt)),{render:ss,hydrate:an,createApp:Ro(ss,an)}}function Ve({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Lr(e,t,n=!1){const s=e.children,r=t.children;if(H(s)&&H(r))for(let i=0;i<s.length;i++){const o=s[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=$e(r[i]),l.el=o.el),n||Lr(o,l))}}function So(e){const t=e.slice(),n=[0];let s,r,i,o,l;const f=e.length;for(s=0;s<f;s++){const a=e[s];if(a!==0){if(r=n[n.length-1],e[r]<a){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<a?i=l+1:o=l;a<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const jo=e=>e.__isTeleport,ae=Symbol(void 0),It=Symbol(void 0),me=Symbol(void 0),Et=Symbol(void 0),Tt=[];let we=null;function Hr(e=!1){Tt.push(we=e?null:[])}function Do(){Tt.pop(),we=Tt[Tt.length-1]||null}let Ot=1;function As(e){Ot+=e}function Br(e){return e.dynamicChildren=Ot>0?we||it:null,Do(),Ot>0&&we&&we.push(e),e}function Ll(e,t,n,s,r,i){return Br(Dr(e,t,n,s,r,i,!0))}function Sr(e,t,n,s,r){return Br(re(e,t,n,s,r,!0))}function Qt(e){return e?e.__v_isVNode===!0:!1}function Xe(e,t){return e.type===t.type&&e.key===t.key}const cn="__vInternal",jr=({key:e})=>e??null,kt=({ref:e,ref_key:t,ref_for:n})=>e!=null?oe(e)||le(e)||$(e)?{i:de,r:e,k:t,f:!!n}:e:null;function Dr(e,t=null,n=null,s=0,r=null,i=e===ae?0:1,o=!1,l=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&jr(t),ref:t&&kt(t),scopeId:_r,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:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null};return l?(ts(f,n),i&128&&e.normalize(f)):n&&(f.shapeFlag|=oe(n)?8:16),Ot>0&&!o&&we&&(f.patchFlag>0||i&6)&&f.patchFlag!==32&&we.push(f),f}const re=$o;function $o(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===xo)&&(e=me),Qt(e)){const l=We(e,t,!0);return n&&ts(l,n),Ot>0&&!i&&we&&(l.shapeFlag&6?we[we.indexOf(e)]=l:we.push(l)),l.patchFlag|=-2,l}if(Xo(e)&&(e=e.__vccOpts),t){t=Uo(t);let{class:l,style:f}=t;l&&!oe(l)&&(t.class=en(l)),ne(f)&&(lr(f)&&!H(f)&&(f=ce({},f)),t.style=Gt(f))}const o=oe(e)?1:no(e)?128:jo(e)?64:ne(e)?4:$(e)?2:0;return Dr(e,t,n,s,r,o,i,!0)}function Uo(e){return e?lr(e)||cn in e?ce({},e):e:null}function We(e,t,n=!1){const{props:s,ref:r,patchFlag:i,children:o}=e,l=t?Ko(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&jr(l),ref:t&&t.ref?n&&r?H(r)?r.concat(kt(t)):[r,kt(t)]:kt(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ae?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&We(e.ssContent),ssFallback:e.ssFallback&&We(e.ssFallback),el:e.el,anchor:e.anchor}}function $r(e=" ",t=0){return re(It,null,e,t)}function Hl(e="",t=!1){return t?(Hr(),Sr(me,null,e)):re(me,null,e)}function Ee(e){return e==null||typeof e=="boolean"?re(me):H(e)?re(ae,null,e.slice()):typeof e=="object"?$e(e):re(It,null,String(e))}function $e(e){return e.el===null||e.memo?e:We(e)}function ts(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(H(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),ts(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(cn in t)?t._ctx=de:r===3&&de&&(de.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else $(t)?(t={default:t,_ctx:de},n=32):(t=String(t),s&64?(n=16,t=[$r(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ko(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=en([t.class,s.class]));else if(r==="style")t.style=Gt([t.style,s.style]);else if(Pt(r)){const i=t[r],o=s[r];o&&i!==o&&!(H(i)&&i.includes(o))&&(t[r]=i?[].concat(i,o):o)}else r!==""&&(t[r]=s[r])}return t}function ye(e,t,n,s=null){xe(e,t,7,[n,s])}const ko=Nr();let Wo=0;function Vo(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||ko,i={uid:Wo++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new fi(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Mr(s,r),emitsOptions:mr(s,r),emit:null,emitted:null,propsDefaults:G,inheritAttrs:s.inheritAttrs,ctx:G,data:G,props:G,attrs:G,slots:G,refs:G,setupState:G,setupContext: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 i.ctx={_:i},i.root=t?t.root:i,i.emit=Xi.bind(null,i),e.ce&&e.ce(i),i}let ie=null;const Ur=()=>ie||de,dt=e=>{ie=e,e.scope.on()},et=()=>{ie&&ie.scope.off(),ie=null};function Kr(e){return e.vnode.shapeFlag&4}let ht=!1;function qo(e,t=!1){ht=t;const{props:n,children:s}=e.vnode,r=Kr(e);Fo(e,n,r,t),Oo(e,s);const i=r?zo(e,t):void 0;return ht=!1,i}function zo(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=cr(new Proxy(e.ctx,Co));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?Yo(e):null;dt(e),gt();const i=Ke(s,e,0,[e.props,r]);if(mt(),et(),qs(i)){if(i.then(et,et),t)return i.then(o=>{vs(e,o,t)}).catch(o=>{Nt(o,e,0)});e.asyncDep=i}else vs(e,i,t)}else kr(e,t)}function vs(e,t,n){$(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ne(t)&&(e.setupState=ar(t)),kr(e,n)}let Fs;function kr(e,t,n){const s=e.type;if(!e.render){if(!t&&Fs&&!s.render){const r=s.template||Gn(e).template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:f}=s,a=ce(ce({isCustomElement:i,delimiters:l},o),f);s.render=Fs(r,a)}}e.render=s.render||Ae}dt(e),gt(),Eo(e),mt(),et()}function Jo(e){return new Proxy(e.attrs,{get(t,n){return _e(e,"get","$attrs"),t[n]}})}function Yo(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=Jo(e))},slots:e.slots,emit:e.emit,expose:t}}function fn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ar(cr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Yt)return Yt[n](e)}}))}function Xo(e){return $(e)&&"__vccOpts"in e}const Zo=(e,t)=>ki(e,t,ht);function Qo(e,t,n){const s=arguments.length;return s===2?ne(t)&&!H(t)?Qt(t)?re(e,null,[t]):re(e,t):re(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Qt(n)&&(n=[n]),re(e,t,n))}const Go="3.2.39",el="http://www.w3.org/2000/svg",Ze=typeof document<"u"?document:null,Ms=Ze&&Ze.createElement("template"),tl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t?Ze.createElementNS(el,e):Ze.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Ze.createTextNode(e),createComment:e=>Ze.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ze.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Ms.innerHTML=s?`<svg>${e}</svg>`:e;const l=Ms.content;if(s){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function nl(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function sl(e,t,n){const s=e.style,r=oe(n);if(n&&!r){for(const i in n)Rn(s,i,n[i]);if(t&&!oe(t))for(const i in t)n[i]==null&&Rn(s,i,"")}else{const i=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=i)}}const Is=/\s*!important$/;function Rn(e,t,n){if(H(n))n.forEach(s=>Rn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=rl(e,t);Is.test(n)?e.setProperty(pt(s),n.replace(Is,""),"important"):e[s]=n}}const Os=["Webkit","Moz","ms"],xn={};function rl(e,t){const n=xn[t];if(n)return n;let s=ut(t);if(s!=="filter"&&s in e)return xn[t]=s;s=Ys(s);for(let r=0;r<Os.length;r++){const i=Os[r]+s;if(i in e)return xn[t]=i}return t}const Ps="http://www.w3.org/1999/xlink";function il(e,t,n,s,r){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ps,t.slice(6,t.length)):e.setAttributeNS(Ps,t,n);else{const i=Qr(t);n==null||i&&!ks(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function ol(e,t,n,s,r,i,o){if(t==="innerHTML"||t==="textContent"){s&&o(s,r,i),e[t]=n??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const f=n??"";(e.value!==f||e.tagName==="OPTION")&&(e.value=f),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=ks(n):n==null&&f==="string"?(n="",l=!0):f==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}const[Wr,ll]=(()=>{let e=Date.now,t=!1;if(typeof window<"u"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let Ln=0;const cl=Promise.resolve(),fl=()=>{Ln=0},ul=()=>Ln||(cl.then(fl),Ln=Wr());function rt(e,t,n,s){e.addEventListener(t,n,s)}function al(e,t,n,s){e.removeEventListener(t,n,s)}function dl(e,t,n,s,r=null){const i=e._vei||(e._vei={}),o=i[t];if(s&&o)o.value=s;else{const[l,f]=hl(t);if(s){const a=i[t]=pl(s,r);rt(e,l,a,f)}else o&&(al(e,l,o,f),i[t]=void 0)}}const Ns=/(?:Once|Passive|Capture)$/;function hl(e){let t;if(Ns.test(e)){t={};let s;for(;s=e.match(Ns);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):pt(e.slice(2)),t]}function pl(e,t){const n=s=>{const r=s.timeStamp||Wr();(ll||r>=n.attached-1)&&xe(gl(s,n.value),t,5,[s])};return n.value=e,n.attached=ul(),n}function gl(e,t){if(H(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Rs=/^on[a-z]/,ml=(e,t,n,s,r=!1,i,o,l,f)=>{t==="class"?nl(e,s,r):t==="style"?sl(e,n,s):Pt(t)?Sn(t)||dl(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_l(e,t,s,r))?ol(e,t,s,i,o,l,f):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),il(e,t,s,r))};function _l(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Rs.test(t)&&$(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Rs.test(t)&&oe(n)?!1:t in e}function Bl(e){const t=Ur();if(!t)return;const n=()=>Hn(t.subTree,e(t.proxy));ro(n),Zn(()=>{const s=new MutationObserver(n);s.observe(t.subTree.el.parentNode,{childList:!0}),Qn(()=>s.disconnect())})}function Hn(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Hn(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Ls(e.el,t);else if(e.type===ae)e.children.forEach(n=>Hn(n,t));else if(e.type===Et){let{el:n,anchor:s}=e;for(;n&&(Ls(n,t),n!==s);)n=n.nextSibling}}function Ls(e,t){if(e.nodeType===1){const n=e.style;for(const s in t)n.setProperty(`--${s}`,t[s])}}const je="transition",yt="animation",Vr=(e,{slots:t})=>Qo(xr,bl(e),t);Vr.displayName="Transition";const qr={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};Vr.props=ce({},xr.props,qr);const qe=(e,t=[])=>{H(e)?e.forEach(n=>n(...t)):e&&e(...t)},Hs=e=>e?H(e)?e.some(t=>t.length>1):e.length>1:!1;function bl(e){const t={};for(const F in e)F in qr||(t[F]=e[F]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:f=i,appearActiveClass:a=o,appearToClass:h=l,leaveFromClass:b=`${n}-leave-from`,leaveActiveClass:x=`${n}-leave-active`,leaveToClass:A=`${n}-leave-to`}=e,I=yl(r),S=I&&I[0],R=I&&I[1],{onBeforeEnter:p,onEnter:y,onEnterCancelled:L,onLeave:D,onLeaveCancelled:k,onBeforeAppear:Y=p,onAppear:J=y,onAppearCancelled:v=L}=t,j=(F,K,O)=>{ze(F,K?h:l),ze(F,K?a:o),O&&O()},U=(F,K)=>{F._isLeaving=!1,ze(F,b),ze(F,A),ze(F,x),K&&K()},V=F=>(K,O)=>{const he=F?J:y,X=()=>j(K,F,O);qe(he,[K,X]),Bs(()=>{ze(K,F?f:i),De(K,F?h:l),Hs(he)||Ss(K,s,S,X)})};return ce(t,{onBeforeEnter(F){qe(p,[F]),De(F,i),De(F,o)},onBeforeAppear(F){qe(Y,[F]),De(F,f),De(F,a)},onEnter:V(!1),onAppear:V(!0),onLeave(F,K){F._isLeaving=!0;const O=()=>U(F,K);De(F,b),El(),De(F,x),Bs(()=>{!F._isLeaving||(ze(F,b),De(F,A),Hs(D)||Ss(F,s,R,O))}),qe(D,[F,O])},onEnterCancelled(F){j(F,!1),qe(L,[F])},onAppearCancelled(F){j(F,!0),qe(v,[F])},onLeaveCancelled(F){U(F),qe(k,[F])}})}function yl(e){if(e==null)return null;if(ne(e))return[Cn(e.enter),Cn(e.leave)];{const t=Cn(e);return[t,t]}}function Cn(e){return Vt(e)}function De(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ze(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Bs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let xl=0;function Ss(e,t,n,s){const r=e._endId=++xl,i=()=>{r===e._endId&&s()};if(n)return setTimeout(i,n);const{type:o,timeout:l,propCount:f}=Cl(e,t);if(!o)return s();const a=o+"end";let h=0;const b=()=>{e.removeEventListener(a,x),i()},x=A=>{A.target===e&&++h>=f&&b()};setTimeout(()=>{h<f&&b()},l+1),e.addEventListener(a,x)}function Cl(e,t){const n=window.getComputedStyle(e),s=I=>(n[I]||"").split(", "),r=s(je+"Delay"),i=s(je+"Duration"),o=js(r,i),l=s(yt+"Delay"),f=s(yt+"Duration"),a=js(l,f);let h=null,b=0,x=0;t===je?o>0&&(h=je,b=o,x=i.length):t===yt?a>0&&(h=yt,b=a,x=f.length):(b=Math.max(o,a),h=b>0?o>a?je:yt:null,x=h?h===je?i.length:f.length:0);const A=h===je&&/\b(transform|all)(,|$)/.test(n[je+"Property"]);return{type:h,timeout:b,propCount:x,hasTransform:A}}function js(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Ds(n)+Ds(e[s])))}function Ds(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function El(){return document.body.offsetHeight}const $s=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?n=>Kt(t,n):t};function Tl(e){e.target.composing=!0}function Us(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Sl={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=$s(r);const i=s||r.props&&r.props.type==="number";rt(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=Vt(l)),e._assign(l)}),n&&rt(e,"change",()=>{e.value=e.value.trim()}),t||(rt(e,"compositionstart",Tl),rt(e,"compositionend",Us),rt(e,"change",Us))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},i){if(e._assign=$s(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(r||e.type==="number")&&Vt(e.value)===t))return;const o=t??"";e.value!==o&&(e.value=o)}},wl=["ctrl","shift","alt","meta"],Al={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>wl.some(n=>e[`${n}Key`]&&!t.includes(n))},jl=(e,t)=>(n,...s)=>{for(let r=0;r<t.length;r++){const i=Al[t[r]];if(i&&i(n,t))return}return e(n,...s)},zr=ce({patchProp:ml},tl);let wt,Ks=!1;function vl(){return wt||(wt=Ho(zr))}function Fl(){return wt=Ks?wt:Bo(zr),Ks=!0,wt}const Dl=(...e)=>{const t=vl().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Jr(s);if(!r)return;const i=t._component;!$(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t},$l=(...e)=>{const t=Fl().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Jr(s);if(r)return n(r,!0,r instanceof SVGElement)},t};function Jr(e){return oe(e)?document.querySelector(e):e}export{ae as F,Vr as T,Sr as a,Zi as b,Zo as c,co as d,Ll as e,Dr as f,jl as g,Rl as h,Hl as i,Bl as j,Pl as k,Ml as l,Uo as m,en as n,Hr as o,re as p,Qo as q,pn as r,Dl as s,Ol as t,Di as u,$l as v,_n as w,Nl as x,Sl as y,Il as z};
@@ -0,0 +1 @@
1
+ import{d as f,q as s,s as l,v as d}from"./chunks/runtime-dom.esm-bundler.738639ee.js";const p=f({props:{value:String,name:String},setup({name:t,value:e}){return e?()=>s("astro-slot",{name:t,innerHTML:e}):()=>null}}),S=t=>(e,a,o,{client:u})=>{if(delete a.class,!t.hasAttribute("ssr"))return;const i=e.name?`${e.name} Host`:void 0,r={};for(const[n,c]of Object.entries(o))r[n]=()=>s(p,{value:c,name:n==="default"?void 0:n});u==="only"?l({name:i,render:()=>s(e,a,r)}).mount(t,!1):d({name:i,render:()=>s(e,a,r)}).mount(t,!0)};export{S as default};
@@ -0,0 +1 @@
1
+ import{_ as m}from"./chunks/preload-helper.f15ab524.js";import{i as f}from"./chunks/index.esm.84a649c7.js";function g(c={}){const{immediate:d=!1,onNeedRefresh:w,onOfflineReady:o,onRegistered:r,onRegisteredSW:t,onRegisterError:a}=c;let i,s;const p=async(n=!0)=>{await s};async function l(){if("serviceWorker"in navigator){const{Workbox:n,messageSW:v}=await m(()=>import("./chunks/workbox-window.prod.es5.4b654ae6.js"),[]);i=new n("/sw.js",{scope:"/",type:"classic"}),i.addEventListener("activated",e=>{e.isUpdate?window.location.reload():o?.()}),i.register({immediate:d}).then(e=>{t?t("/sw.js",e):r?.(e)}).catch(e=>{a?.(e)})}}return s=l(),p}g();const u=window.firebaseConfig||{apiKey:"AIzaSyCrVzemDgpyp9i6ni7Yc5ZuEVfXYwl-4J0",authDomain:"ecom2-002.firebaseapp.com",projectId:"ecom2-002",storageBucket:"ecom2-002.appspot.com",messagingSenderId:"402807248219",appId:"1:402807248219:web:cf7d57759751e74776367e",measurementId:"G-SC592CE0GB"};f(u);
@@ -1 +1 @@
1
- {"name":"My Shop","short_name":"MyShop","start_url":"/","display":"standalone","background_color":"#f5f6fa","lang":"en","scope":"/","description":"My PWA Shop","theme_color":"#20c997","crossorigin":"use-credentials","icons":[{"src":"/img/icon.png","sizes":"192x192","type":"image/png"},{"src":"/img/large-icon.png","sizes":"512x512","type":"image/png"},{"src":"/img/large-icon.png","sizes":"512x512","type":"image/png","purpose":"any maskable"}]}
1
+ {"name":"My Shop","short_name":"MyShop","start_url":"/","display":"standalone","background_color":"#f5f6fa","lang":"en","scope":"/","description":"My PWA Shop","theme_color":"#137c5c","crossorigin":"use-credentials","icons":[{"src":"/img/icon.png","sizes":"192x192","type":"image/png"},{"src":"/img/large-icon.png","sizes":"512x512","type":"image/png"},{"src":"/img/large-icon.png","sizes":"512x512","type":"image/png","purpose":"any maskable"}]}
@@ -1 +1 @@
1
- if(!self.define){let e,s={};const n=(n,i)=>(n=new URL(n+".js",i).href,s[n]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=s,document.head.appendChild(e)}else e=n,importScripts(n),s()})).then((()=>{let e=s[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(i,o)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(s[r])return;let a={};const t=e=>n(e,r),c={module:{uri:r},exports:a,require:t};s[r]=Promise.all(i.map((e=>c[e]||t(e)))).then((e=>(o(...e),a)))}}define(["./workbox-6f0d1f78"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"chunks/workbox-window.prod.es5.4b654ae6.js",revision:null},{url:"client.80baece3.js",revision:null},{url:"hoisted.46e058d2.js",revision:null},{url:"page.3aa82516.js",revision:null},{url:"img/icon.png",revision:"791be7ee6538f26bb57bc31243a6e17e"},{url:"img/large-icon.png",revision:"0b35db516cfa7475b1c2f8c081e8d54d"},{url:"manifest.webmanifest",revision:"f3f24fe1b3d542152ca2f18813168ad6"}],{ignoreURLParametersMatching:[/.*/]}),e.cleanupOutdatedCaches(),e.registerRoute(/^\/$/,new e.NetworkFirst,"GET"),e.registerRoute(/\/((?!(?:admin|assets|img)(\/|$))[^.]+)(\.(?!js|css|xml|txt|png|jpg|jpeg|webp|avif|svg|gif)[^.]+)*$/,new e.NetworkFirst({cacheName:"pages",plugins:[new e.ExpirationPlugin({maxEntries:50,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^\/assets\//,new e.StaleWhileRevalidate({cacheName:"assets",plugins:[]}),"GET"),e.registerRoute(/^\/img\/uploads\/logo.webp$/,new e.StaleWhileRevalidate({cacheName:"logo",plugins:[]}),"GET"),e.registerRoute(/^\/img\/uploads\/.*\.(?:png|jpg|jpeg|webp|avif|svg|gif)$/,new e.StaleWhileRevalidate({cacheName:"cms-images",plugins:[new e.ExpirationPlugin({maxEntries:20,maxAgeSeconds:2592e3,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^https:\/\/ecomplus\.io/,new e.NetworkFirst({cacheName:"store-api",plugins:[new e.ExpirationPlugin({maxEntries:50,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^https:\/\/(((\w+\.)?ecoms\d)|(ecom[\w-]+(\.\w+)*\.digitaloceanspaces))\.com.*\/imgs\/normal\//,new e.CacheFirst({cacheName:"product-thumbnails",plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:2592e3,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^https:\/\/(((\w+\.)?ecoms\d)|(ecom[\w-]+(\.\w+)*\.digitaloceanspaces))\.com.*\/imgs\/big\//,new e.CacheFirst({cacheName:"product-pictures",plugins:[new e.ExpirationPlugin({maxEntries:10,maxAgeSeconds:604800,purgeOnQuotaError:!0})]}),"GET")}));
1
+ if(!self.define){let e,n={};const s=(s,i)=>(s=new URL(s+".js",i).href,n[s]||new Promise((n=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=n,document.head.appendChild(e)}else e=s,importScripts(s),n()})).then((()=>{let e=n[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e})));self.define=(i,r)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(n[o])return;let a={};const c=e=>s(e,o),u={module:{uri:o},exports:a,require:c};n[o]=Promise.all(i.map((e=>u[e]||c(e)))).then((e=>(r(...e),a)))}}define(["./workbox-6f0d1f78"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"chunks/index.esm.84a649c7.js",revision:null},{url:"chunks/LoginForm.d9251274.js",revision:null},{url:"chunks/LoginOffcanvas.07fe6492.js",revision:null},{url:"chunks/preload-helper.f15ab524.js",revision:null},{url:"chunks/runtime-dom.esm-bundler.738639ee.js",revision:null},{url:"chunks/workbox-window.prod.es5.4b654ae6.js",revision:null},{url:"client.b552d86a.js",revision:null},{url:"hoisted.054c36ac.js",revision:null},{url:"LoginOffcanvas.daf3f717.js",revision:null},{url:"page.3aa82516.js",revision:null},{url:"img/icon.png",revision:"791be7ee6538f26bb57bc31243a6e17e"},{url:"img/large-icon.png",revision:"0b35db516cfa7475b1c2f8c081e8d54d"},{url:"manifest.webmanifest",revision:"bed7dac4cf0dcea91307069b819ceec1"}],{ignoreURLParametersMatching:[/.*/]}),e.cleanupOutdatedCaches(),e.registerRoute(/^\/$/,new e.NetworkFirst,"GET"),e.registerRoute(/\/((?!(?:admin|assets|img)(\/|$))[^.]+)(\.(?!js|css|xml|txt|png|jpg|jpeg|webp|avif|svg|gif)[^.]+)*$/,new e.NetworkFirst({cacheName:"pages",plugins:[new e.ExpirationPlugin({maxEntries:50,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^\/assets\//,new e.StaleWhileRevalidate({cacheName:"assets",plugins:[]}),"GET"),e.registerRoute(/^\/img\/uploads\/logo.webp$/,new e.StaleWhileRevalidate({cacheName:"logo",plugins:[]}),"GET"),e.registerRoute(/^\/img\/uploads\/.*\.(?:png|jpg|jpeg|webp|avif|svg|gif)$/,new e.StaleWhileRevalidate({cacheName:"cms-images",plugins:[new e.ExpirationPlugin({maxEntries:20,maxAgeSeconds:2592e3,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^https:\/\/ecomplus\.io/,new e.NetworkFirst({cacheName:"store-api",plugins:[new e.ExpirationPlugin({maxEntries:50,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^https:\/\/(((\w+\.)?ecoms\d)|(ecom[\w-]+(\.\w+)*\.digitaloceanspaces))\.com.*\/imgs\/normal\//,new e.CacheFirst({cacheName:"product-thumbnails",plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:2592e3,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^https:\/\/(((\w+\.)?ecoms\d)|(ecom[\w-]+(\.\w+)*\.digitaloceanspaces))\.com.*\/imgs\/big\//,new e.CacheFirst({cacheName:"product-pictures",plugins:[new e.ExpirationPlugin({maxEntries:10,maxAgeSeconds:604800,purgeOnQuotaError:!0})]}),"GET")}));