1/*! For license information please see main.a2f6c129.js.LICENSE.txt */ 2(()=>{var e={44050:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={}},74330:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={}},10814:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={}},93719:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={}},54614:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={}},15046:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={}},30020:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={}},27697:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={}},64032:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={}},59555:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={}},25429:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={container:"DevelopedBy_container__uGLHk",header:"DevelopedBy_header__1Uxi9",highlight:"DevelopedBy_highlight__iywtM",closing:"DevelopedBy_closing__I7Kkm"}},99114:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={container:"HomePage_container__ywHC4",ctaButton:"HomePage_ctaButton__xsQpz",header:"HomePage_header__sd5fv",heroEyebrow:"HomePage_heroEyebrow__lmY6z",heroDescription:"HomePage_heroDescription__lQ0X5",learningModes:"HomePage_learningModes__FtXK8",learningGrid:"HomePage_learningGrid__Lzy3S",learningCard:"HomePage_learningCard__CRI5u",selfPacedCard:"HomePage_selfPacedCard__L8TjX",tutoring
2Card:"HomePage_tutoringCard__1FUAy",stickyPurchase:"HomePage_stickyPurchase__2CuWt",stickyText:"HomePage_stickyText__zCuwk",stickyPrice:"HomePage_stickyPrice__--rmG",stickyButton:"HomePage_stickyButton__PcnQF",ctaSection:"HomePage_ctaSection__O1nWd",secondaryCta:"HomePage_secondaryCta__aTTdH",ctaBand:"HomePage_ctaBand__uEzGf",exampleSection:"HomePage_exampleSection__bYHfg",exampleIntro:"HomePage_exampleIntro__E6Nrb",exampleGrid:"HomePage_exampleGrid__bqfK9",exampleCard:"HomePage_exampleCard__U8x8+",userSection:"HomePage_userSection__3jyo3",cardGrid:"HomePage_cardGrid__4TJe4",card:"HomePage_card__317kc",cardContent:"HomePage_cardContent__bf1Xk",cardTitle:"HomePage_cardTitle__zJ3bL",cardDescription:"HomePage_cardDescription__yc8Y-",cardTags:"HomePage_cardTags__4r-nk",tag:"HomePage_tag__faxLF",cardLink:"HomePage_cardLink__MNHkC",navButton:"HomePage_navButton__EKJPl",lockedOverlay:"HomePage_lockedOverlay__+1QCi",loading:"HomePage_loading__wL0Hc",progressBar:"HomePage_progressBar__6I63P",progressFill:"HomePage_progressFill__v6CdY",signOutButton:"HomePage_signOutButton__xbeO4",dialog:"HomePage_dialog__iq6eZ",dialogContent:"HomePage_dialogContent__WLDtw",closeButton:"HomePage_closeButton__zVcM-","free-content-section":"HomePage_free-content-section__ptx+b",freeContent:"HomePage_freeContent__oisRT",calculusLevels:"HomePage_calculusLevels__kyyCJ",levelButton:"HomePage_levelButton__N2mdp",developedBy:"HomePage_developedBy__77-+B",developerInfo:"HomePage_developerInfo__ZpfXg"}},32097:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={container:"MagicLinkSignIn_container__eGjZV",title:"MagicLinkSignIn_title__SqKHs",section:"MagicLinkSignIn_section__pA8zM",sectionTitle:"MagicLinkSignIn_sectionTitle__lF6ug",explanation:"MagicLinkSignIn_explanation__bqB1X",form:"MagicLinkSignIn_form__RXcsX",label:"MagicLinkSignIn_label__M974k",input:"MagicLinkSignIn_input__lJUsw",button:"MagicLinkSignIn_button__xa6mf",googleButton:"MagicLinkSignIn_googleButton__9zzRN",error:"MagicLinkSignIn_error__AKAN6",success:"MagicLinkSignIn_success__2u81f",separator:"MagicLinkSignIn_separator__n0uhi"}},51900:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={wrapper:"ApIbOverview_wrapper__Av4Zi",titleArea:"ApIbOverview_titleArea__tBJOd",eyebrow:"ApIbOverview_eyebrow__lr8zz",tabList:"ApIbOverview_tabList__MVAKa",tabButton:"ApIbOverview_tabButton__Yzszl",activeTab:"ApIbOverview_activeTab__MCtmQ",contentArea:"ApIbOverview_contentArea__sOgPk",columns:"ApIbOverview_columns__ELFOJ",card:"ApIbOverview_card__dHn8w",cardEyebrow:"ApIbOverview_cardEyebrow__YTMrp",highlightBox:"ApIbOverview_highlightBox__tLZKs",listGrid:"ApIbOverview_listGrid__yyXJZ",superpower:"ApIbOverview_superpower__nsRQK",cardStack:"ApIbOverview_cardStack__DP5Fr",challengeCard:"ApIbOverview_challengeCard__090Fq",challengeIndex:"ApIbOverview_challengeIndex__wmYz-",curriculum:"ApIbOverview_curriculum__m8aFx",curriculumCard:"ApIbOverview_curriculumCard__Bs+qD",curriculumBlock:"ApIbOverview_curriculumBlock__ooq+e",curriculumList:"ApIbOverview_curriculumList__9GciJ",advantageGrid:"ApIbOverview_advantageGrid__SMFFy",advantageCard:"ApIbOverview_advantageCard__IBED2"}},16063:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var r=n(82483),i=n(93376),s=n(99891),a=(n(44050),n(29741)),o=n(35183),l=n(17582),c=n(73082),u=n(258),d=n(44427),h=n(43214),f=n(87565),p=n(63055),m=n(47757),g=n(85091),y=n(20577),v=n(78985),b=n(39657),w=n(56723);const x=e=>(0,r.lazy)((()=>n(34590)(`./Lesson${e}`).catch((()=>({default:()=>(0,w.jsxs)("div",{children:["Lesson ",e," not found"]})}))))),_=e=>(0,r.lazy)((()=>n(20676)(`./FreeLesson${e}`).catch((()=>({default:()=>(0,w.jsxs)("div",{children:["Free Lesson ",e," not found"]})})))));function S(){const{user:e}=(0,m.useAuth)(),t=(0,i.Zp)();return(0,w.jsxs)("nav",{className:"navbar",children:[(0,w.jsxs)("div",{className:"nav-brand",children:[(0,w.jsx)("span",{className:"nav-title",children:"21IFM"}),(0,w.jsx)("span",{className:"nav-tagline",children:"21st Century Illustrated Foundational Mathematics"})]}),(0,w.jsxs)("div",{className:"nav-links",children:[(0,w.jsx)(s.N_,{to:"/",className:"nav-link",children:"Home"}),(0,w.jsx)(s.N_,{to:"/free",className:"nav-link",children:"Free Content"}),e&&(0,w.jsx)(s.N_,{to:"/premium",className:"nav-link",children:"Premium Content"})]}),(0,w.jsx)("div",{className:"nav-actions",children:e?(0,w.jsx)("button",{className:"signout-button",onClick:()=>{(0,v.CI)(b.auth).then((()=>{localStorage.removeItem("userAuthenticated"),t("/")})).catch((e=>{console.error("Sign out error",e)}))},children:"Sign Out"}):(0,w.jsx)(s.N_,{to:"/signin",className:"nav-link",children:"Sign In"})})]})}function E(){const{lessonId:e}=(0,i.g)(),t=x(e);return(0,w.jsx)(r.Suspense,{fallback:(0,w.jsxs)("div",{children:["Loading Lesson ",e,"..."]}),children:(0,w.jsx)(t,{})})}function k(){const{lessonId:e}=(0,i.g)(),t=_(e);return(0,w.jsx)(r.Suspense,{fallback:(0,w.jsxs)("div",{children:["Loading Free Lesson ",e,"..."]}),children:(0,w.jsx)(t,{})})}const C=function(){return(0,w.jsx)(m.AuthProvider,{children:(0,w.jsxs)(g.GlobalComponentsProvider,{children:[(0,w.jsxs)(s.Kd,{children:[(0,w.jsx)(S,{}),(0,w.jsx)(r.Suspense,{fallback:(0,w.jsx)("div",{className:"loading",children:"Loading..."}),children:(0,w.jsxs)(i.BV,{children:[(0,w.jsx)(i.qh,{path:"/",element:(0,w.jsx)(u.default,{})}),(0,w.jsx)(i.qh,{path:"/signin",element:(0,w.jsx)(a.default,{})}),(0,w.jsx)(i.qh,{path:"/verify",element:(0,w.jsx)(o.default,{})}),(0,w.jsx)(i.qh,{path:"/purchase",element:(0,w.jsx)(l.default,{})}),(0,w.jsx)(i.qh,{path:"/free",element:(0,w.jsx)(p.default,{})}),(0,w.jsx)(i.qh,{path:"/premium",element:(0,w.jsx)(c.default,{isPremium:!0,children:(0,w.jsx)(u.default,{showMarketing:!1})})}),(0,w.jsx)(i.qh,{path:"/calculus1",element:(0,w.jsx)(d.default,{})})," ",(0,w.jsx)(i.qh,{path:"/calculus2",element:(0,w.jsx)(h.default,{})})," ",(0,w.jsx)(i.qh,{path:"/calculus3",element:(0,w.jsx)(f.default,{})})," ",(0,w.jsx)(i.qh,{path:"/lesson/:lessonId",element:(0,w.jsx)(c.default,{isPremium:!0,children:(0,w.jsx)(E,{})})}),(0,w.jsx)(i.qh,{path:"/free-lesson/:lessonId",element:(0,w.jsx)(k,{})})]})})]}),(0,w.jsx)(y.default,{})]})})}},47757:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AuthProvider:()=>l,useAuth:()=>c});var r=n(82483),i=n(78985),s=n(39657),a=n(56723);const o=(0,r.createContext)();function l(e){let{children:t}=e;const[n,l]=(0,r.useState)(null),[c,u]=(0,r.useState)(!0);return(0,r.useEffect)((()=>{const e=(0,i.hg)(s.auth,(e=>{l(e),u(!1)}));return()=>e()}),[]),(0,a.jsx)(o.Provider,{value:{user:n,loading:c},children:t})}function c(){return(0,r.useContext)(o)}},44427:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(82483),i=n(93376),s=n(99891),a=n(47757),o=n(99114),l=n(15821),c=n(78985),u=n(39657),d=n(41371),h=n(
257318),f=(n(7476),n(18072)),p=(n(63055),n(39692)),m=n(56723);const g=e=>{const t=e.trim().split("\n"),n=t[0].split("\t");return t.slice(1).map((e=>e.split("\t").reduce(((e,t,r)=>(e[n[r]]=t.trim(),e)),{}))).map((e=>({...e,free:"true"===e.free||"1"===e.free})))},y=async()=>{const e=await(async e=>{try{const t=await fetch(e);return await t.text()}catch(t){return console.error("Error fetching TSV data:",t),""}})("https://docs.google.com/spreadsheets/d/e/2PACX-1vRdakk_SOtcm6gzGFYYCmQcAOJt1oD4He_p3DrqE1FAU4p4t8SXDXdvqnyFJGMZpF6VPwXKxDIywkDh/pub?gid=0&single=true&output=tsv");return[{section:"Calls",lessons:g(e)}]},v=r.memo((e=>{var t;let{lesson:n,onClick:r}=e;return(0,m.jsxs)("div",{className:o.default.card,onClick:()=>r(n),children:[(0,m.jsxs)("div",{className:o.default.cardContent,children:[(0,m.jsx)("h3",{className:o.default.cardTitle,children:n.title}),(0,m.jsxs)("div",{className:o.default.mediaContainer,children:[n.imageUrl&&(0,m.jsx)("div",{className:o.default.mediaWrapper,children:(0,m.jsx)(f.default,{src:n.imageUrl})}),n.videoUrl&&(0,m.jsx)("div",{className:o.default.mediaWrapper,children:(0,m.jsx)(h.default,{videoUrl:n.videoUrl})})]}),(0,m.jsx)("p",{className:o.default.cardCaption,children:n.caption}),(0,m.jsx)("p",{className:o.default.cardDescription,children:n.description}),(0,m.jsx)("div",{className:o.default.cardTags,children:null===(t=n.tags)||void 0===t?void 0:t.split(",").map((e=>(0,m.jsx)("span",{className:o.default.tag,children:e.trim()},e)))}),(0,m.jsx)("div",{className:o.default.cardLink,children:n.free?100===n.percentComplete?"Review":"Continue Learning":"Unlock Lesson"})]}),!n.free&&(0,m.jsx)("div",{className:o.default.lockedOverlay,children:"Premium Content"})]})}));const b=function(){const{user:e}=(0,a.useAuth)(),t=(0,i.Zp)(),[h,f]=(0,r.useState)([]),[g,b]=(0,r.useState)(!0),[w,x]=(0,r.useState)(null),[_,S]=(0,r.useState)(!1),[E,k]=(0,r.useState)(null),[C,A]=(0,r.useState)(null),[T,I]=(0,r.useState)(!1);(0,r.useEffect)((()=>{(async()=>{try{console.log("Fetching lessons data...");let t=await y();if(console.log("Lessons data fetched:",t),e&&e.uid){console.log("User is logged in, fetching user data...");const n=(0,l.aU)(),r=(0,l.H9)(n,"users",e.uid),i=await(0,l.x7)(r);if(i.exists()){S(i.data().hasPurchased||!1);const r=(0,l.rJ)(n,"users",e.uid,"progress"),s=await(0,l.GG)(r),a={};s.forEach((e=>{a[e.id]=e.data()})),t=t.map((e=>({...e,lessons:e.lessons.map((e=>{var t;return{...e,percentComplete:(null===(t=a[e.id])||void 0===t?void 0:t.percentComplete)||0}}))})))}}t=(0,p.normalizeSectionsCopy)(t,"Calculus 1"),f(t)}catch(t){console.error("Error fetching data:",t),x("Failed to load data. Please try again later.")}finally{b(!1)}})()}),[e]);const P=async e=>{const r=(e=>{const t={};return Object.keys(e).forEach((n=>{const r=n.replace(/\r/g,""),i="string"===typeof e[n]?e[n].replace(/\r/g,""):e[n];t[r]=i})),t})(e);if(r.free||_)if(k(r),r.file){const e=`./${r.file}.jsx`;try{const t=await n(28969)(`${e}`);A((()=>t.default)),I(!0)}catch(w){console.error("Error loading component from path:",e,w),alert(`Error loading component: ${w.message}`)}}else alert("No valid file path provided.");else t("/purchase")},j=()=>{I(!1),k(null),A(null)};return g?(0,m.jsx)("div",{className:o.default.loading,children:"Loading..."}):w?(0,m.jsx)("div",{className:o.default.error,children:w}):0===h.length?(0,m.jsx)("div",{className:o.default.noLessons,children:"No lessons available at the moment."}):(0,m.jsxs)("div",{className:o.default.container,children:[(0,m.jsxs)("header",{className:o.default.header,children:[(0,m.jsx)("h1",{children:"Calculus 1 Interactive Explainers"}),(0,m.jsx)("p",{children:"Designed for top performance in competitive exams."})]}),(0,m.jsxs)("main",{children:[(0,m.jsx)("section",{className:o.default.userSection,children:e?(0,m.jsxs)("div",{children:[(0,m.jsxs)("p",{children:["Welcome back, ",e.email,"!"]}),(0,m.jsx)("p",{children:_?"You have premium access.":"Upgrade to premium for full access. You can explore free content in the meantime."}),!_&&(0,m.jsx)(s.N_,{to:"/purchase",className:o.default.cardLink,children:"Upgrade to Premium"}),(0,m.jsx)("button",{onClick:()=>{(0,c.CI)(u.auth).then((()=>{localStorage.removeItem("userAuthenticated"),t("/")})).catch((e=>{console.error("Sign out error",e)}))},className:o.default.signOutButton,children:"Sign Out"})]}):(0,m.jsxs)("div",{children:[(0,m.jsx)("p",{children:"Sign in to access your personalized dashboard, explore free content, and unlock premium features."}),(0,m.jsx)(s.N_,{to:"/signin",className:o.default.cardLink,children:"Sign In"})]})}),h.map(((e,t)=>((e,t)=>(0,m.jsxs)("div",{children:[t>0&&(0,m.jsxs)("div",{className:o.default.customSection,children:[(0,m.jsx)("h2",{children:"Intermediate Section Heading"}),(0,m.jsx)("p",{children:"Some custom content or component can go here."})]}),(0,m.jsx)("h2",{children:"Calls"===e.section?"Master Mathematics with Interactive Tools":"Put Options Lessons"}),(0,m.jsx)("div",{className:o.default.cardGrid,children:e.lessons.map((e=>(0,m.jsx)(v,{lesson:{...e,free:e.free||_},onClick:P},e.id)))})]},t))(e,t))),!_&&(0,m.jsxs)("section",{className:o.default.userSection,children:[(0,m.jsx)("h2",{children:"Premium Content"}),(0,m.jsx)("p",{children:"Unlock advanced strategies and personalized advice with our premium subscription."}),(0,m.jsx)(s.N_,{to:"/purchase",className:o.default.cardLink,children:"Upgrade to Premium"})]})]}),(0,m.jsx)(d.A,{fullScreen:!0,open:T,onClose:j,children:(0,m.jsxs)("div",{className:o.default.dialogContent,children:[(0,m.jsx)("button",{className:o.default.closeButton,onClick:j,children:"Close"}),C&&(0,m.jsx)(C,{})]})})]})}}
2,43214:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(82483),i=n(93376),s=n(99891),a=n(47757),o=n(99114),l=n(15821),c=n(78985),u=n(39657),d=n(41371),h=n(57318),f=(n(7476),n(18072)),p=(n(63055),n(39692)),m=n(56723);const g=e=>{const t=e.trim().split("\n"),n=t[0].split("\t");return t.slice(1).map((e=>e.split("\t").reduce(((e,t,r)=>(e[n[r]]=t.trim(),e)),{}))).map((e=>({...e,free:"true"===e.free||"1"===e.free})))},y=async()=>{const e=await(async e=>{try{const t=await fetch(e);return await t.text()}catch(t){return console.error("Error fetching TSV data:",t),""}})("https://docs.google.com/spreadsheets/d/e/2PACX-1vR90qpwRf_F7eRYjbYA3PKvH1XuLlZZMPxRr3q4K9ktxhcMSSJRkJQTCmZ-9m93YpAItpMtbR4aY0M8/pub?output=tsv");return[{section:"Calls",lessons:g(e)}]},v=r.memo((e=>{var t;let{lesson:n,onClick:r}=e;return(0,m.jsxs)("div",{className:o.default.card,onClick:()=>r(n),children:[(0,m.jsxs)("div",{className:o.default.cardContent,children:[(0,m.jsx)("h3",{className:o.default.cardTitle,children:n.title}),(0,m.jsxs)("div",{className:o.default.mediaContainer,children:[n.imageUrl&&(0,m.jsx)("div",{className:o.default.mediaWrapper,children:(0,m.jsx)(f.default,{src:n.imageUrl})}),n.videoUrl&&(0,m.jsx)("div",{className:o.default.mediaWrapper,children:(0,m.jsx)(h.default,{videoUrl:n.videoUrl})})]}),(0,m.jsx)("p",{className:o.default.cardCaption,children:n.caption}),(0,m.jsx)("p",{className:o.default.cardDescription,children:n.description}),(0,m.jsx)("div",{className:o.default.cardTags,children:null===(t=n.tags)||void 0===t?void 0:t.split(",").map((e=>(0,m.jsx)("span",{className:o.default.tag,children:e.trim()},e)))}),(0,m.jsx)("div",{className:o.default.cardLink,children:n.free?100===n.percentComplete?"Review":"Continue Learning":"Unlock Lesson"})]}),!n.free&&(0,m.jsx)("div",{className:o.default.lockedOverlay,children:"Premium Content"})]})}));const b=function(){const{user:e}=(0,a.useAuth)(),t=(0,i.Zp)(),[h,f]=(0,r.useState)([]),[g,b]=(0,r.useState)(!0),[w,x]=(0,r.useState)(null),[_,S]=(0,r.useState)(!1),[E,k]=(0,r.useState)(null),[C,A]=(0,r.useState)(null),[T,I]=(0,r.useState)(!1);(0,r.useEffect)((()=>{(async()=>{try{console.log("Fetching lessons data...");let t=await y();if(console.log("Lessons data fetched:",t),e&&e.uid){console.log("User is logged in, fetching user data...");const n=(0,l.aU)(),r=(0,l.H9)(n,"users",e.uid),i=await(0,l.x7)(r);if(i.exists()){S(i.data().hasPurchased||!1);const r=(0,l.rJ)(n,"users",e.uid,"progress"),s=await(0,l.GG)(r),a={};s.forEach((e=>{a[e.id]=e.data()})),t=t.map((e=>({...e,lessons:e.lessons.map((e=>{var t;return{...e,percentComplete:(null===(t=a[e.id])||void 0===t?void 0:t.percentComplete)||0}}))})))}}t=(0,p.normalizeSectionsCopy)(t,"Calculus 2"),f(t)}catch(t){console.error("Error fetching data:",t),x("Failed to load data. Please try again later.")}finally{b(!1)}})()}),[e]);const P=async e=>{const r=(e=>{const t={};return Object.keys(e).forEach((n=>{const r=n.replace(/\r/g,""),i="string"===typeof e[n]?e[n].replace(/\r/g,""):e[n];t[r]=i})),t})(e);if(r.free||_)if(k(r),r.file){const e=`./${r.file}.jsx`;try{const t=await n(28969)(`${e}`);A((()=>t.default)),I(!0)}catch(w){console.error("Error loading component from path:",e,w),alert(`Error loading component: ${w.message}`)}}else alert("No valid file path provided.");else t("/purchase")},j=()=>{I(!1),k(null),A(null)};return g?(0,m.jsx)("div",{className:o.default.loading,children:"Loading..."}):w?(0,m.jsx)("div",{className:o.default.error,children:w}):0===h.length?(0,m.jsx)("div",{className:o.default.noLessons,children:"No lessons available at the moment."}):(0,m.jsxs)("div",{className:o.default.container,children:[(0,m.jsxs)("header",{className:o.default.header,children:[(0,m.jsx)("h1",{children:"Calculus 2 Interactive Explainers"}),(0,m.jsx)("p",{children:"Designed for top performance in competitive exams."})]}),(0,m.jsxs)("main",{children:[(0,m.jsx)("section",{className:o.default.userSection,children:e?(0,m.jsxs)("div",{children:[(0,m.jsxs)("p",{children:["Welcome back, ",e.email,"!"]}),(0,m.jsx)("p",{children:_?"You have premium access.":"Upgrade to premium for full access. You can explore free content in the meantime."}),!_&&(0,m.jsx)(s.N_,{to:"/purchase",className:o.default.cardLink,children:"Upgrade to Premium"}),(0,m.jsx)("button",{onClick:()=>{(0,c.CI)(u.auth).then((()=>{localStorage.removeItem("userAuthenticated"),t("/")})).catch((e=>{console.error("Sign out error",e)}))},className:o.default.signOutButton,children:"Sign Out"})]}):(0,m.jsxs)("div",{children:[(0,m.jsx)("p",{children:"Sign in to access your personalized dashboard, explore free content, and unlock premium features."}),(0,m.jsx)(s.N_,{to:"/signin",className:o.default.cardLink,children:"Sign In"})]})}),h.map(((e,t)=>((e,t)=>(0,m.jsxs)("div",{children:[t>0&&(0,m.jsxs)("div",{className:o.default.customSection,children:[(0,m.jsx)("h2",{children:"Intermediate Section Heading"}),(0,m.jsx)("p",{children:"Some custom content or component can go here."})]}),(0,m.jsx)("h2",{children:"Calls"===e.section?"Master Mathematics with Interactive Tools":"Put Options Lessons"}),(0,m.jsx)("div",{className:o.default.cardGrid,children:e.lessons.map((e=>(0,m.jsx)(v,{lesson:{...e,free:e.free||_},onClick:P},e.id)))})]},t))(e,t))),!_&&(0,m.jsxs)("section",{className:o.default.userSection,children:[(0,m.jsx)("h2",{children:"Premium Content"}),(0,m.jsx)("p",{children:"Unlock advanced strategies and personalized advice with our premium subscription."}),(0,m.jsx)(s.N_,{to:"/purchase",className:o.default.cardLink,children:"Upgrade to Premium"})]})]}),(0,m.jsx)(d.A,{fullScreen:!0,open:T,onClose:j,children:(0,m.jsxs)("div",{className:o.default.dialogContent,children:[(0,m.jsx)("button",{className:o.default.closeButton,onClick:j,children:"Close"}),C&&(0,m.jsx)(C,{})]})})]})}},87565:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(82483),i=n(93376),s=n(99891),a=n(47757),o=n(99114),l=n(15821),c=n(78985),u=n(39657),d=n(41371),h=n(
257318),f=(n(7476),n(18072)),p=(n(63055),n(39692)),m=(n(3704),n(56723));const g=e=>{const t=e.trim().split("\n"),n=t[0].split("\t");return t.slice(1).map((e=>e.split("\t").reduce(((e,t,r)=>(e[n[r]]=t.trim(),e)),{}))).map((e=>({...e,free:"true"===e.free||"1"===e.free})))},y=async()=>{const e=await(async e=>{try{const t=await fetch(e);return await t.text()}catch(t){return console.error("Error fetching TSV data:",t),""}})("https://docs.google.com/spreadsheets/d/e/2PACX-1vQMf9RACAc_6Wu1v6dgmBHGQU2YtXVaZCNJUjXAXMHAhGbaSgVnzmGhzAaLsxLCD5RqLj7bB-NcA45C/pub?gid=0&single=true&output=tsv");return[{section:"Calls",lessons:g(e)}]},v=r.memo((e=>{var t;let{lesson:n,onClick:r}=e;return(0,m.jsxs)("div",{className:o.default.card,onClick:()=>r(n),children:[(0,m.jsxs)("div",{className:o.default.cardContent,children:[(0,m.jsx)("h3",{className:o.default.cardTitle,children:n.title}),(0,m.jsxs)("div",{className:o.default.mediaContainer,children:[n.imageUrl&&(0,m.jsx)("div",{className:o.default.mediaWrapper,children:(0,m.jsx)(f.default,{src:n.imageUrl})}),n.videoUrl&&(0,m.jsx)("div",{className:o.default.mediaWrapper,children:(0,m.jsx)(h.default,{videoUrl:n.videoUrl})})]}),(0,m.jsx)("p",{className:o.default.cardCaption,children:n.caption}),(0,m.jsx)("p",{className:o.default.cardDescription,children:n.description}),(0,m.jsx)("div",{className:o.default.cardTags,children:null===(t=n.tags)||void 0===t?void 0:t.split(",").map((e=>(0,m.jsx)("span",{className:o.default.tag,children:e.trim()},e)))}),"Performance Tracker",(0,m.jsx)("div",{className:o.default.progressBar,children:(0,m.jsx)("div",{className:o.default.progressFill,style:{width:`${n.percentComplete}%`}})}),(0,m.jsxs)("p",{children:["Progress: ",n.percentComplete,"%"]}),(0,m.jsx)("div",{className:o.default.cardLink,children:n.free?100===n.percentComplete?"Review":"Continue Learning":"Unlock Lesson"})]}),!n.free&&(0,m.jsx)("div",{className:o.default.lockedOverlay,children:"Premium Content"})]})}));const b=function(){const{user:e}=(0,a.useAuth)(),t=(0,i.Zp)(),[f,g]=(0,r.useState)([]),[b,w]=(0,r.useState)(!0),[x,_]=(0,r.useState)(null),[S,E]=(0,r.useState)(!1),[k,C]=(0,r.useState)(null),[A,T]=(0,r.useState)(null),[I,P]=(0,r.useState)(!1);(0,r.useEffect)((()=>{(async()=>{try{console.log("Fetching lessons data...");let t=await y();if(console.log("Lessons data fetched:",t),e&&e.uid){console.log("User is logged in, fetching user data...");const n=(0,l.aU)(),r=(0,l.H9)(n,"users",e.uid),i=await(0,l.x7)(r);if(i.exists()){E(i.data().hasPurchased||!1);const r=(0,l.rJ)(n,"users",e.uid,"progress"),s=await(0,l.GG)(r),a={};s.forEach((e=>{a[e.id]=e.data()})),t=t.map((e=>({...e,lessons:e.lessons.map((e=>{var t;return{...e,percentComplete:(null===(t=a[e.id])||void 0===t?void 0:t.percentComplete)||0}}))})))}}t=(0,p.normalizeSectionsCopy)(t,"Calculus 3"),g(t)}catch(t){console.error("Error fetching data:",t),_("Failed to load data. Please try again later.")}finally{w(!1)}})()}),[e]);const j=async e=>{const r=(e=>{const t={};return Object.keys(e).forEach((n=>{const r=n.replace(/\r/g,""),i="string"===typeof e[n]?e[n].replace(/\r/g,""):e[n];t[r]=i})),t})(e);
2if(r.free||S)if(C(r),r.file){const e=`./${r.file}.jsx`;try{const t=await n(28969)(`${e}`);T((()=>t.default)),P(!0)}catch(x){console.error("Error loading component from path:",e,x),alert(`Error loading component: ${x.message}`)}}else alert("No valid file path provided.");else t("/purchase")},N=()=>{P(!1),C(null),T(null)};return b?(0,m.jsx)("div",{className:o.default.loading,children:"Loading..."}):x?(0,m.jsx)("div",{className:o.default.error,children:x}):0===f.length?(0,m.jsx)("div",{className:o.default.noLessons,children:"No lessons available at the moment."}):(0,m.jsxs)("div",{className:o.default.container,children:[(0,m.jsxs)("header",{className:o.default.header,children:[(0,m.jsx)("div",{className:o.default.mediaWrapper,children:(0,m.jsx)(h.default,{videoUrl:"https://storage.googleapis.com/chapters-ifm/explainers/2025/rates_of_change/intro_21ifm.mp4"})}),(0,m.jsxs)("p",{children:[(0,m.jsx)("strong",{children:"Master Calculus without anxiety."}),(0,m.jsx)("br",{})," ","Excel in exams with rapid revision.",(0,m.jsx)("br",{})," ","Your ",(0,m.jsx)("strong",{children:"24/7 Calculus Coach"})," is here to guide you."]})]}),(0,m.jsxs)("h2",{children:[" A Free Example at the Bottom of this Page",(0,m.jsx)("br",{}),(0,m.jsx)("br",{})]}),(0,m.jsxs)("main",{children:[(0,m.jsx)("section",{className:o.default.userSection,children:e?(0,m.jsxs)("div",{children:[(0,m.jsxs)("p",{children:["Welcome back, ",e.email,"!"]}),(0,m.jsx)("p",{children:S?"You have premium access.":"Upgrade to premium for full access. You can explore free content in the meantime."}),!S&&(0,m.jsx)(s.N_,{to:"/purchase",className:o.default.cardLink,children:"Upgrade to Premium"}),(0,m.jsx)("button",{onClick:()=>{(0,c.CI)(u.auth).then((()=>{localStorage.removeItem("userAuthenticated"),t("/")})).catch((e=>{console.error("Sign out error",e)}))},className:o.default.signOutButton,children:"Sign Out"})]}):(0,m.jsxs)("div",{children:[(0,m.jsx)("p",{children:"Sign in to access your personalized dashboard, explore free content, and unlock premium features."}),(0,m.jsx)(s.N_,{to:"/signin",className:o.default.cardLink,children:"Sign In"})]})}),f.map(((e,t)=>((e,t)=>(0,m.jsxs)("div",{children:[t>0&&(0,m.jsxs)("div",{className:o.default.customSection,children:[(0,m.jsx)("h2",{children:"Intermediate Section Heading"}),(0,m.jsx)("p",{children:"Some custom content or component can go here."})]}),(0,m.jsx)("h2",{children:"Calls"===e.section?"Master Mathematics with Interactive Tools":"Put Options Lessons"}),(0,m.jsx)("div",{className:o.default.cardGrid,children:e.lessons.map((e=>(0,m.jsx)(v,{lesson:{...e,free:e.free||S},onClick:j},e.id)))})]},t))(e,t))),!S&&(0,m.jsxs)("section",{className:o.default.userSection,children:[(0,m.jsx)("h2",{children:"Premium Content"}),(0,m.jsx)("p",{children:"Unlock advanced strategies and personalized advice with our premium subscription."}),(0,m.jsx)(s.N_,{to:"/purchase",className:o.default.cardLink,children:"Upgrade to Premium"})]})]}),(0,m.jsx)(d.A,{fullScreen:!0,open:I,onClose:N,children:(0,m.jsxs)("div",{className:o.default.dialogContent,children:[(0,m.jsx)("button",{className:o.default.closeButton,onClick:N,children:"Close"}),A&&(0,m.jsx)(A,{})]})})]})}},57279:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});n(82483);var r=n(25429),i=n(56723);const s=()=>(0,i.jsxs)("div",{className:r.default.container,children:[(0,i.jsxs)("div",{className:r.default.header,children:[(0,i.jsx)("h1",{children:"Pavan Mirla"}),(0,i.jsx)("p",{children:"\u2714 AI Consultant for Quant Hedge Funds in USA & Canada"})]}),(0,i.jsx)("hr",{}),(0,i.jsxs)("div",{className:r.default.section,children:[(0,i.jsx)("h2",{children:"\ud83c\udfaf Why This Platform?"}),(0,i.jsxs)("p",{children:["Many ",(0,i.jsx)("strong",{children:"struggle with math"})," but dream of becoming",(0,i.jsx)("strong",{children:" engineers, doctors, or scientists"}),". My ",(0,i.jsx)("strong",{children:"daughter is homeschooled & on the autism spectrum"}),", and I wanted to create an ",(0,i.jsx)("strong",{children:"interactive, fear-free"})," way for her to ",(0,i.jsx)("strong",{children:"master calculus"}),"."]}),(0,i.jsxs)("p",{className:r.default.highlight,children:["\ud83d\udd25 Every student deserves the ",(0,i.jsx)("strong",{children:"right tools & approach"})," to succeed in math."]})]}),(0,i.jsx)("hr",{}),(0,i.jsxs)("div",{className:r.default.section,children:[(0,i.jsx)("h2",{children:"\ud83d\ude80 What\u2019s Different?"}),(0,i.jsxs)("ul",{children:[(0,i.jsxs)("li",{children:["\u2714 ",(0,i.jsx)("strong",{children:"Intuition over memorization"})]}),(0,i.jsxs)("li",{children:["\u2714 ",(0,i.jsx)("strong",{children:"Real-world examples & interactive visuals"})]}),(0,i.jsxs)("li",{children:["\u2714 ",(0,i.jsx)("strong",{children:"Student-driven learning & progress tracking"})]})]}),(0,i.jsxs)("p",{className:r.default.highlight,children:["\ud83d\udccc ",(0,i.jsx)("strong",{children:"Math is the key to innovation & problem-solving."})]})]}),(0,i.jsx)("hr",{}),(0,i.jsxs)("div",{className:r.default.contactSection,children:[(0,i.jsx)("h2",{children:"\ud83d\udcec Get in Touch"}),(0,i.jsxs)("p",{children:["\ud83d\udce9 ",(0,i.jsx)("strong",{children:"Email:"})," ",(0,i.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})]}),(0,i.jsxs)("p",{children:["\ud83d\udcde ",(0,i.jsx)("strong",{children:"Phone:"})," ",(0,i.jsx)("a",{href:"tel:2369898450",children:"236-989-8450"})]}),(0,i.jsxs)("p",{children:["\ud83d\udd17 ",(0,i.jsx)("strong",{children:"LinkedIn:"})," ",(0,i.jsx)("a",{href:"https://www.linkedin.com/in/pavanmirla/",target:"_blank",rel:"noopener noreferrer",children:"Pavan Mirla"})]})]})]})},20577:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});n(82483),n(74330);var r=n(56723);const i=function(){return(0,r.jsxs)("footer",{className:"footer",children:[(0,r.jsx)("p",{children:"\xa9 2025 Interactive Mathematics. All rights reserved."}),(0,r.jsx)("a",{href:"/privacy-policy.html",target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"})," | ",(0,r.jsx)("a",{href:"/terms-of-service.html",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})]})}}
2,70814:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(82483),i=n(39657),s=n(15821),a=n(56723);const o=()=>{const[e,t]=(0,r.useState)(""),[n,o]=(0,r.useState)("");return(0,a.jsxs)("div",{className:"p-6 max-w-md mx-auto bg-white shadow-md rounded-lg border text-center",children:[(0,a.jsx)("h2",{className:"text-xl font-bold mb-3",children:"\ud83d\udcd8 Request a Free Chapter"}),(0,a.jsx)("p",{className:"text-gray-600 mb-4",children:"Enter your email to receive a free chapter demo."}),(0,a.jsx)("input",{type:"email",placeholder:"Enter your email",value:e,onChange:e=>t(e.target.value),className:"p-2 border rounded-md mb-3 w-full",required:!0}),(0,a.jsx)("button",{onClick:async()=>{if(e&&/\S+@\S+\.\S+/.test(e)){o("\u23f3 Saving your request...");try{await(0,s.gS)((0,s.rJ)(i.db,"free_chapter_requests"),{email:e,timestamp:new Date}),o("\u2705 Request saved! Opening email..."),window.location.href=`mailto:[email protected]?subject=Request Free Chapter&body=Hello,%0D%0A%0D%0AI would like to request a free chapter. My email is: ${e}%0D%0A%0D%0AThank you.`,t("")}catch(n){console.error("Error saving request:",n),o("\u274c Something went wrong. Please try again.")}}else o("\u274c Please enter a valid email address.")},className:"bg-blue-500 text-white px-4 py-2 rounded-md hover:bg-blue-600 transition w-full",children:"Get Free Chapter"}),n&&(0,a.jsx)("p",{className:"mt-3 text-sm font-semibold",children:n})]})}},63055:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(82483),i=n(99891),s=n(78985),a=n(15821),o=n(47757),l=(n(10814),n(18072)),c=n(56723);const u=(0,s.xI)(),d=(0,a.aU)(),h=new s.HF,f=[{id:1,title:"Rate of Change in Baseball",description:"Learn rate of change through a baseball example where two runners move at different velocities on a 90-foot diamond field.",details:{duration:"20 minutes",difficulty:"Beginner"},imageUrl:"https://storage.googleapis.com/chapters-ifm/explainers/2025/baseball_diamond.png",tags:["Calculus","Real-world Application","Interactive"]}];const p=function(){const{user:e}=(0,o.useAuth)(),[t,n]=(0,r.useState)(null),[p,m]=(0,r.useState)(!0);(0,r.useEffect)((()=>{e&&(n(e),g(e)),m(!1)}),[e]);const g=async e=>{if(!e)return;const t=(0,a.H9)(d,"freeUsers",e.uid);(await(0,a.x7)(t)).exists()||await(0,a.BN)(t,{email:e.email,name:e.displayName||"",joined:new Date})};return(0,c.jsxs)("div",{className:"free-content-container",children:[(0,c.jsx)("h1",{children:"Free Example"}),(0,c.jsx)("div",{className:"auth-section",children:t?(0,c.jsxs)("div",{className:"user-info",children:[(0,c.jsxs)("p",{children:["Signed in as: ",(0,c.jsx)("strong",{children:t.email})]}),(0,c.jsx)("button",{onClick:async()=>{try{await(0,s.CI)(u),n(null)}catch(e){console.error("Sign-Out Error:",e)}},className:"auth-button sign-out",children:"Sign Out"})]}):(0,c.jsx)("button",{onClick:async()=>{try{const e=await(0,s.df)(u,h);n(e.user),g(e.user)}catch(e){console.error("Google Sign-In Error:",e)}},className:"auth-button sign-in",children:"Sign in with Google to Access Free Interactive Lessons"})}),(0,c.jsx)("div",{className:"lesson-grid",children:f.map((e=>(0,c.jsxs)("div",{className:"lesson-card",children:[(0,c.jsx)("div",{className:"card-media",children:e.imageUrl&&(0,c.jsx)(l.default,{src:e.imageUrl,alt:e.title})}),(0,c.jsxs)("div",{className:"card-content",children:[(0,c.jsx)("h2",{children:e.title}),(0,c.jsx)("p",{className:"description",children:e.description}),(0,c.jsxs)("div",{className:"lesson-details",children:[(0,c.jsx)("span",{className:"duration",children:e.details.duration}),(0,c.jsx)("span",{className:"difficulty",children:e.details.difficulty})]}),(0,c.jsx)("div",{className:"tags",children:e.tags.map((e=>(0,c.jsx)("span",{className:"tag",children:e},e)))}),t?(0,c.jsx)(i.N_,{to:`/free-lesson/${e.id}`,className:"start-button",children:"Begin Interactive Lesson"}):(0,c.jsx)("p",{className:"login-message",children:"Sign in to start this interactive lesson."})]})]},e.id)))})]})}},258:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(82483),i=n(93376),s=n(99891),a=n(47757),o=n(99114),l=n(15821),c=n(41371),u=n(57318),d=(n(7476),n(18072)),h=(n(63055),n(3704),n(57279)),f=n(70814),p=n(95584),m=n(56723);const g=e=>{const t=e.trim().split("\n"),n=t[0].split("\t");return t.slice(1).map((e=>e.split("\t").reduce(((e,t,r)=>(e[n[r]]=t.trim(),e)),{}))).map((e=>({...e,free:"true"===e.free||"1"===e.free})))},y=async()=>{const e=await(async e=>{try{const t=await fetch(e);return await t.text()}catch(t){return console.error("Error fetching TSV data:",t),""}})("https://docs.google.com/spreadsheets/d/e/2PACX-1vQpDLtIKLn-KhMElJhOl-6oq5lV26q6gUeQsVq_GKB3fRgA4z8WglpOq6AbLEoOEAzGXpcOd0WsUO-C/pub?gid=0&single=true&output=tsv");return[{section:"Calls",lessons:g(e)}]},v=r.memo((e=>{var t;let{lesson:n,onClick:r}=e;return(0,m.jsxs)("div",{className:o.default.card,onClick:()=>r(n),children:[(0,m.jsxs)("div",{className:o.default.cardContent,children:[(0,m.jsx)("h3",{className:o.default.cardTitle,children:n.title}),(0,m.jsxs)("div",{className:o.default.mediaContainer,children:[n.imageUrl&&(0,m.jsx)("div",{className:o.default.mediaWrapper,children:(0,m.jsx)(d.default,{src:n.imageUrl})}),n.videoUrl&&(0,m.jsx)("div",{className:o.default.mediaWrapper,children:(0,m.jsx)(u.default,{videoUrl:n.videoUrl})})]}),(0,m.jsx)("p",{className:o.default.cardCaption,children:n.caption}),(0,m.jsx)("p",{className:o.default.cardDescription,children:n.description}),(0,m.jsx)("div",{className:o.default.cardTags,children:null===(t=n.tags)||void 0===t?void 0:t.split(",").map((e=>(0,m.jsx)("span",{className:o.default.tag,children:e.trim()},e)))}),"Performance Tracker",(0,m.jsx)("div",{className:o.default.progressBar,children:(0,m.jsx)("div",{className:o.default.progressFill,style:{width:`${n.percentComplete}%`}})}),(0,m.jsxs)("p",{children:["Progress: ",n.percentComplete,"%"]}),(0,m.jsx)("div",{className:o.default.cardLink,children:n.free?100===n.percentComplete?"Review":"Continue Learning":"Unlock Lesson"})]}),!n.free&&(0,m.jsx)("div",{className:o.default.lockedOverlay,children:"Premium Content"})]})}));const b=function(e){let{showMarketing:t=!0}=e;const{user:d}=(0,a.useAuth)(),g=(0,i.Zp)(),[b,w]=(0,r.useState)([]),[x,_]=(0,r.useState)(!0),[S,E]=(0,r.useState)(null),[k,C]=(0,r.useState)(!1),[A,T]=(0,r.useState)(null),[I,P]=(0,r.useState)(null),[j,N]=(0,r.useState)(!1);(0,r.useEffect)((()=>{(async()=>{try{console.log("Fetching lessons data...");let e=await y();if(console.log("Lessons data fetched:",e),d&&d.uid){console.log("User is logged in, fetching user data...");const t=(0,l.aU)(),n=(0,l.H9)(t,"users",d.uid),r=await(0,l.x7)(n);if(r.exists()){C(r.data().hasPurchased||!1);const n=(0,l.rJ)(t,"users",d.uid,"progress"),i=await(0,l.GG)(n),s={};
2i.forEach((e=>{s[e.id]=e.data()})),e=e.map((e=>({...e,lessons:e.lessons.map((e=>{var t;return{...e,percentComplete:(null===(t=s[e.id])||void 0===t?void 0:t.percentComplete)||0}}))})))}}w(e)}catch(e){console.error("Error fetching data:",e),E("Failed to load data. Please try again later.")}finally{_(!1)}})()}),[d]);const O=async e=>{const t=(e=>{const t={};return Object.keys(e).forEach((n=>{const r=n.replace(/\r/g,""),i="string"===typeof e[n]?e[n].replace(/\r/g,""):e[n];t[r]=i})),t})(e);if(t.free||k)if(T(t),t.file){const e=`./${t.file}.jsx`;try{const t=await n(28969)(`${e}`);P((()=>t.default)),N(!0)}catch(S){console.error("Error loading component from path:",e,S),alert(`Error loading component: ${S.message}`)}}else alert("No valid file path provided.");else g("/purchase")},R=()=>{N(!1),T(null),P(null)};return x?(0,m.jsx)("div",{className:o.default.loading,children:"Loading..."}):S?(0,m.jsx)("div",{className:o.default.error,children:S}):0===b.length?(0,m.jsx)("div",{className:o.default.noLessons,children:"No lessons available at the moment."}):(0,m.jsxs)("div",{className:o.default.container,children:[t&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("header",{className:o.default.header,children:[(0,m.jsx)("p",{className:o.default.heroEyebrow,children:"Visual, intuitive AP & IB prep"}),(0,m.jsx)("h1",{children:"Visual AP/IB calculus prep, minus the panic."}),(0,m.jsxs)("p",{className:o.default.heroDescription,children:["Families tackling ",(0,m.jsx)("strong",{children:"Advanced Placement (AP) Calculus AB & BC"})," or ",(0,m.jsx)("strong",{children:"International Baccalaureate (IB) Math Analysis & Approaches (AA) Standard Level / Higher Level"})," get cinematic explainers plus calm, one-on-one coaching so concepts become second nature before exam day."]})]}),(0,m.jsxs)("section",{className:o.default.learningModes,children:[(0,m.jsx)("h2",{children:"Choose how you learn"}),(0,m.jsx)("p",{children:"Pick what you need tonight\u2014start from fundamentals with interactive explainers or book focused 1:1 coaching for tricky sections."}),(0,m.jsxs)("div",{className:o.default.learningGrid,children:[(0,m.jsxs)("article",{className:`${o.default.learningCard} ${o.default.selfPacedCard}`,children:[(0,m.jsx)("h3",{children:"Self-paced library"}),(0,m.jsx)("p",{children:"Work through fundamentals or revisit selective units with 300+ interactive explainers, checkpoints, and annotation tools."})]}),(0,m.jsxs)("article",{className:`${o.default.learningCard} ${o.default.tutoringCard}`,children:[(0,m.jsx)("h3",{children:"1:1 tutoring sessions"}),(0,m.jsx)("p",{children:"Drop into live coaching for FRQs, IA checkpoints, or exam crunch weeks. Sessions mirror the same visuals so everything stays connected."})]})]})]}),(0,m.jsx)(p.default,{}),(0,m.jsxs)("section",{className:o.default.ctaBand,children:[(0,m.jsx)("p",{children:"Ready to see it in action or share it with your student?"}),(0,m.jsxs)("div",{className:o.default.ctaSection,children:[(0,m.jsx)("a",{href:"mailto:[email protected]?subject=Request%20for%20a%20Free%20Chapter&body=Hi,%20I%20would%20love%20to%20request%20a%20free%20chapter.%20Please%20send%20it%20to%20my%20email.%20Thank%20you!",className:o.default.ctaButton,children:"\ud83d\udce9 Request a Free Chapter"}),(0,m.jsx)("a",{href:"#examples",className:o.default.secondaryCta,children:"\u25b6 Watch a free explainer"})]})]}),(0,m.jsxs)("section",{id:"examples",className:o.default.exampleSection,children:[(0,m.jsxs)("div",{className:o.default.exampleIntro,children:[(0,m.jsx)("h2",{children:"See the explainers in action"}),(0,m.jsx)("p",{children:"Short, cinematic videos show how we animate slopes, motion, and reasoning so students instantly get it."})]}),(0,m.jsxs)("div",{className:o.default.exampleGrid,children:[(0,m.jsxs)("div",{className:o.default.exampleCard,children:[(0,m.jsx)(u.default,{videoUrl:"https://storage.googleapis.com/chapters-ifm/explainers/2025/rates_of_change/CassiniOval.mp4"}),(0,m.jsx)("h3",{children:"Parametric intuition with Cassini ovals"}),(0,m.jsx)("p",{children:"Students drag the parameters, watch the oval morph, build intuition about parametric equations, and then tie it back to formulas."})]}),(0,m.jsxs)("div",{className:o.default.exampleCard,children:[(0,m.jsx)(u.default,{videoUrl:"https://storage.googleapis.com/chapters-ifm/GENAI_COURSEWORK/2024_SEP/GGB/simultaneous_equations/video/projectile_motion.mp4"}),(0,m.jsx)("h3",{children:"Step-by-step walkthrough"}
2),(0,m.jsx)("p",{children:"Then we layer the formal solution, coaching students through the same steps they\u2019ll write on exams."})]})]})]}),(0,m.jsxs)("section",{className:o.default.developedBy,children:[(0,m.jsx)(h.default,{}),(0,m.jsx)(f.default,{})]}),(0,m.jsxs)("h2",{children:[" A Free Example at the Bottom of this Page",(0,m.jsx)("br",{}),(0,m.jsx)("br",{})]})]}),(0,m.jsxs)("section",{className:o.default.calculusLevels,children:[(0,m.jsxs)("div",{className:o.default.levelButton,children:[(0,m.jsx)("h2",{children:"\ud83d\ude80 Calculus 1"}),(0,m.jsxs)("p",{children:["Master the ",(0,m.jsx)("strong",{children:"basics"})," of limits, derivatives, and integrals with ",(0,m.jsx)("strong",{children:"interactive explainers"})," and ",(0,m.jsx)("strong",{children:"color-coded formulas"}),"."]}),(0,m.jsxs)(s.N_,{to:"/calculus1",className:o.default.cardLink,children:["\ud83c\udfaf ",(0,m.jsx)("strong",{children:"Start Learning"})]})]}),(0,m.jsxs)("div",{className:o.default.levelButton,children:[(0,m.jsx)("h2",{children:"\ud83d\udcca Calculus 2"}),(0,m.jsxs)("p",{children:["Dive deeper into ",(0,m.jsx)("strong",{children:"series, advanced integration"}),", and parametric equations. ",(0,m.jsx)("strong",{children:"Track your progress"})," and get",(0,m.jsx)("strong",{children:"smart-spaced revision recommendations"}),"."]}),(0,m.jsxs)(s.N_,{to:"/calculus2",className:o.default.cardLink,children:["\ud83d\udd0d ",(0,m.jsx)("strong",{children:"Start Learning"})]})]}),(0,m.jsxs)("div",{className:o.default.levelButton,children:[(0,m.jsx)("h2",{children:"\ud83c\udf0d Calculus 3"}),(0,m.jsxs)("p",{children:["Learn ",(0,m.jsx)("strong",{children:"multivariable calculus"}),", ",(0,m.jsx)("strong",{children:"vector calculus"}),", and ",(0,m.jsx)("strong",{children:"partial derivatives"})," using",(0,m.jsx)("strong",{children:" step-by-step solutions"})," with ",(0,m.jsx)("strong",{children:"AI-assisted hints"}),"."]}),(0,m.jsxs)(s.N_,{to:"/calculus3",className:o.default.cardLink,children:["\ud83d\ude80 ",(0,m.jsx)("strong",{children:"Start Learning"})]})]})]}),(0,m.jsxs)("main",{children:[(0,m.jsx)("section",{className:o.default.userSection,children:d?(0,m.jsxs)("div",{children:[(0,m.jsxs)("p",{children:["Welcome back, ",d.email,"!"]}),(0,m.jsx)("p",{children:k?"You have premium access.":"Upgrade to premium for full access. You can explore free content in the meantime."}),!k&&(0,m.jsx)(s.N_,{to:"/purchase",className:o.default.cardLink,children:"Upgrade to Premium"})]}):(0,m.jsxs)("div",{children:[(0,m.jsx)("p",{children:"Sign in to access your personalized dashboard, explore free content, and unlock premium features."}),(0,m.jsx)(s.N_,{to:"/signin",className:o.default.cardLink,children:"Sign In"})]})}),b.map(((e,t)=>((e,t)=>(0,m.jsxs)("div",{children:[t>0&&(0,m.jsxs)("div",{className:o.default.customSection,children:[(0,m.jsx)("h2",{children:"Intermediate Section Heading"}),(0,m.jsx)("p",{children:"Some custom content or component can go here."})]}),(0,m.jsx)("h2",{children:"Calls"===e.section?"Master Mathematics with Interactive Tools":"Put Options Lessons"}),(0,m.jsx)("div",{className:o.default.cardGrid,children:e.lessons.map((e=>(0,m.jsx)(v,{lesson:{...e,free:e.free||k},onClick:O},e.id)))})]},t))(e,t))),!k&&(0,m.jsxs)("section",{className:o.default.userSection,children:[(0,m.jsx)("h2",{children:"Premium Content"}),(0,m.jsx)("p",{children:"Unlock advanced strategies and personalized advice with our premium subscription."}),(0,m.jsx)(s.N_,{to:"/purchase",className:o.default.cardLink,children:"Upgrade to Premium"})]})]}),!k&&(0,m.jsxs)("div",{className:o.default.stickyPurchase,children:[(0,m.jsxs)("div",{className:o.default.stickyText,children:[(0,m.jsx)("p",{children:"\u2728 Before exam day, make calculus feel easy."}),(0,m.jsx)("p",{children:"\ud83d\udcda Unlock 300+ explainers & exam prep tools."}),(0,m.jsx)("p",{children:"\ud83d\udcaa Give your child AP/IB confidence."}),(0,m.jsx)("span",{className:o.default.stickyPrice,children:"From $249/term \xb7 includes digital library, optional 1:1 coaching add-ons."})]}),(0,m.jsx)(s.N_,{to:"/purchase",className:o.default.stickyButton,children:"Start Premium Access \u2192"})]}),(0,m.jsx)(c.A,{fullScreen:!0,open:j,onClose:R,children:(0,m.jsxs)("div",{className:o.default.dialogContent,children:[(0,m.jsx)("button",{className:o.default.closeButton,onClick:R,children:"Close"}),I&&(0,m.jsx)(I,{})]})})]})}},29741:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(82483),i=n(78985),s=n(93376),a=n(39657),o=n(47757),l=n(15821),c=n(32097),u=n(56723);const d=function(){const[e,t]=(0,r.useState)(""),[n,d]=(0,r.useState)(!1),[h,f]=(0,r.useState)(null),[p,m]=(0,r.useState)(!1),{user:g}=(0,o.useAuth)(),y=(0,s.Zp)(),v=(0,l.aU)();return(0,r.useEffect)((()=>{g&&y("/")}),[g,y]),(0,u.jsxs)("div",{className:c.default.container,children:[(0,u.jsx)("h2",{className:c.default.title,children:"Sign In"}),(0,u.jsxs)("section",{className:c.default.section,children:[(0,u.jsx)("h3",{className:c.default.sectionTitle,children:"Sign in with Google"}),(0,u.jsx)("p",{className:c.default.explanation,children:"Sign in quickly and securely with your Google account."}),(0,u.jsx)("button",{onClick:async()=>{d(!0),f(null);const e=new i.HF;try{const t=(await(0,i.df)(a.auth,e)).user;await(0,l.BN)((0,l.H9)(v,"users",t.email),{uid:t.uid,hasPurchased:!1,createdAt:new Date},{merge:!0}),d(!1),y("/")}catch(h){d(!1),f(h.message)}},disabled:n,className:c.default.googleButton,children:n?"Processing...":"Sign in with Google"})]}),(0,u.jsx)("div",{className:c.default.separator,children:(0,u.jsx)("span",{children:"OR"})}),(0,u.jsxs)("section",{className:c.default.section,children:[(0,u.jsx)("h3",{className:c.default.sectionTitle,children:"Sign in with a Magic Link"}),(0,u.jsx)("p",{className:c.default.explanation,children:"Sign in securely without a password! We'll send a magic link to your email. Just click the link to log in instantly. No passwords to remember or reset."}),h&&(0,u.jsx)("p",{className:c.default.error,children:h}),p&&(0,u.jsx)("p",{className:c.default.success,children:"Magic link sent to your email! Please check your inbox."}),(0,u.jsxs)("form",{onSubmit:async t=>{if(t.preventDefault(),d(!0),f(null),m(!1),!e||!/\S+@\S+\.\S+/.test(e))return f("Please enter a valid email address"),void d(!1);try{const t=await(0,i.eJ)(a.auth,e,Math.random().toString(36).slice(-8));await(0,l.BN)((0,l.H9)(v,"users",e),{uid:t.user.uid,hasPurchased:!1,createdAt:new Date});const n={url:`${window.location.origin}/verify`,handleCodeInApp:!0};await(0,i.MN)(a.auth,e,n),localStorage.setItem("emailForSignIn",e),d(!1),m(!0)}catch(h){if("auth/email-already-in-use"===h.code)try{const t={url:`${window.location.origin}/verify`,handleCodeInApp:!0};await(0,i.MN)(a.auth,e,t),localStorage.setItem("emailForSignIn",e),d(!1),m(!0)}catch(n){d(!1),f(n.message)}else d(!1),f(h.message)}},className:c.default.form,children:[(0,u.jsx)("label",{htmlFor:"email",className:c.default.label,children:"Email Address:"}),(0,u.jsx)("input",{id:"email",type:"email",placeholder:"Enter your email",value:e,onCh
2ange:e=>{t(e.target.value)},required:!0,className:c.default.input}),(0,u.jsx)("button",{type:"submit",disabled:n,className:c.default.button,children:n?"Processing...":"Send Magic Link"})]})]})]})}},73082:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(82483),i=n(93376),s=n(47757),a=n(15821),o=n(56723);const l=e=>{let{children:t}=e;const{user:n,loading:l}=(0,s.useAuth)(),[c,u]=(0,r.useState)(!1),[d,h]=(0,r.useState)(!0);return(0,r.useEffect)((()=>{(async()=>{if(n&&n.uid)try{const e=(0,a.aU)(),t=(0,a.H9)(e,"users",n.uid),r=await(0,a.x7)(t);r.exists()?u(r.data().hasPurchased||!1):(console.log("No user document found for UID:",n.uid),u(!1))}catch(e){console.error("Error checking purchase status:",e),u(!1)}else u(!1);h(!1)})()}),[n]),l||d?(0,o.jsx)("div",{children:"Loading..."}):n?c?t:(0,o.jsx)(i.C5,{to:"/purchase"}):(0,o.jsx)(i.C5,{to:"/"})}},17582:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});n(82483),n(93719);var r=n(56723);const i=function(){return(0,r.jsxs)("div",{className:"purchase-page",children:[(0,r.jsx)("h2",{children:"Request Premium Access"}),(0,r.jsxs)("div",{className:"custom-message",children:[(0,r.jsx)("p",{children:"AP/IB calculus students who want the full library, downloadable resources, and white-glove support can request access directly."}),(0,r.jsxs)("p",{children:["Send a quick note to"," ",(0,r.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})," ","with your student's goals, and I\u2019ll reply with the next steps."]}),(0,r.jsxs)("p",{children:["Typical investment starts at ",(0,r.jsx)("strong",{children:"$249 USD per term"})," for unlimited explainer access, with optional 1:1 coaching add-ons."]})]}),(0,r.jsxs)("div",{className:"pricing-grid",children:[(0,r.jsxs)("article",{className:"pricing-card",children:[(0,r.jsx)("h3",{children:"Digital Library Pass"}),(0,r.jsx)("p",{className:"price",children:"$249 / term"}),(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:"300+ interactive AP/IB explainers & quizzes"}),(0,r.jsx)("li",{children:"Downloadable IA-ready visuals and notes"}),(0,r.jsx)("li",{children:"Progress tracking plus spaced-review prompts"})]}),(0,r.jsx)("p",{className:"note",children:"Perfect for self-motivated students who want cinematic explanations on demand."})]}),(0,r.jsxs)("article",{className:"pricing-card",children:[(0,r.jsx)("h3",{children:"1:1 Coaching Bundle"}),(0,r.jsx)("p",{className:"price",children:"from $249 library + $399 coaching block"}),(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:"Everything in the digital pass"}),(0,r.jsx)("li",{children:"Weekly or exam-crunch live sessions"}),(0,r.jsx)("li",{children:"Personalized FRQ/IA review with the same visuals"})]}),(0,r.jsx)("p",{className:"note",children:"Tell me the cadence you need\u2014I'll tailor a package for your student."})]})]}),(0,r.jsxs)("div",{className:"additional-info",children:[(0,r.jsx)("p",{children:"What you'll get with premium access:"}),(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:"Access to all premium lessons"}),(0,r.jsx)("li",{children:"Downloadable resources"}),(0,r.jsx)("li",{children:"24/7 support"}),(0,r.jsx)("li",{children:"Option to add live 1:1 coaching blocks for FRQs/IA"})]})]}),(0,r.jsxs)("section",{className:"exam-glossary",children:[(0,r.jsx)("h3",{children:"IB & AP terms in parent-friendly language"}),(0,r.jsxs)("div",{className:"glossary-item",children:[(0,r.jsx)("h4",{children:"IA (Internal Assessment)"}),(0,r.jsx)("p",{children:"Every IB subject includes a project, investigation, or experiment that counts for roughly 20\u201325% of the student\u2019s grade. Teachers mark it, but IB examiners review it again, so structure really matters."}),(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:"Math IA = modeling or data-analysis report with clear math reasoning."}),(0,r.jsx)("li",{children:"Science IA = experiment design, data collection, and conclusions."}),(0,r.jsx)("li",{children:"Business/Economics IA = applied research on a real organization or issue."})]}),(0,r.jsx)("p",{children:"Our coaching blocks help students pick defensible topics, align with the rubric, and polish their math/evidence using the same visuals from the library."})]}),(0,r.jsxs)("div",{className:"glossary-item",children:[(0,r.jsx)("h4",{children:"FRQ (Free-Response Questions)"}),(0,r.jsx)("p",{children:"AP exams include long-form questions that demand each step, justification, or written explanation\u2014not just the final answer. Responses are graded manually by AP readers."}),(0,r.jsx)("p",{children:"During FRQ tune-ups we rehearse how to show work clearly, manage time, and translate visual intuition into the exact wording scorers expect."})]})]})]})}}
2,35183:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(82483),i=n(78985),s=n(93376),a=n(39657),o=(n(54614),n(56723));const l=function(){const[e,t]=(0,r.useState)(!0),[n,l]=(0,r.useState)(null),[c,u]=(0,r.useState)(!1),d=(0,s.Zp)();return(0,r.useEffect)((()=>{const e=(0,i.hg)(a.auth,(e=>{if(e)u(!0),t(!1),localStorage.setItem("userAuthenticated","true"),setTimeout((()=>d("/")),3e3);else if((0,i.Pj)(a.auth,window.location.href)){let e=localStorage.getItem("emailForSignIn");e||(e=window.prompt("Please provide your email for confirmation")),(0,i.hK)(a.auth,e,window.location.href).then((e=>{localStorage.removeItem("emailForSignIn"),localStorage.setItem("userAuthenticated","true"),t(!1),u(!0),setTimeout((()=>d("/")),3e3)})).catch((e=>{t(!1),l(e.message)}))}else t(!1),l("Invalid email link or user not authenticated.")}));return()=>e()}),[d]),(0,o.jsxs)("div",{className:"verify-email-container",children:[(0,o.jsx)("h2",{className:"verify-email-title",children:"Email Verification"}),e&&(0,o.jsx)("p",{className:"verify-email-message verify-email-loading",children:"Verifying your email..."}),n&&(0,o.jsxs)("p",{className:"verify-email-message verify-email-error",children:["Error: ",n]}),c&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{className:"verify-email-message verify-email-success",children:"Authentication Successful!"}),(0,o.jsx)("p",{className:"verify-email-message",children:"You have been successfully authenticated."}),(0,o.jsx)("p",{className:"verify-email-message",children:"Redirecting to the home page in 3 seconds..."})]})]})}},95584:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(82483),i=n(51900),s=n(56723);const a=[{id:"step1",label:"AP & IB Overview"},{id:"step2",label:"What Students Need"},{id:"step3",label:"Where They Struggle"},{id:"step4",label:"Curriculum Snapshot"},{id:"step5",label:"Why This Platform"},{id:"step6",label:"How We Explain It"}],o=()=>{const[e,t]=(0,r.useState)(a[0].id);return(0,s.jsxs)("section",{className:i.default.wrapper,children:[(0,s.jsxs)("div",{className:i.default.titleArea,children:[(0,s.jsx)("p",{className:i.default.eyebrow,children:"AP + IB Parent Guide"}),(0,s.jsx)("h2",{children:"Help students fall in love with calculus through intuition first."}),(0,s.jsx)("p",{children:"Use the tabs below to see how the program aligns with AP Calculus AB/BC and IB Math AA SL/HL requirements."})]}),(0,s.jsx)("div",{className:i.default.tabList,children:a.map((n=>(0,s.jsx)("button",{className:`${i.default.tabButton} ${e===n.id?i.default.activeTab:""}`,onClick:()=>t(n.id),type:"button",children:n.label},n.id)))}),(0,s.jsx)("div",{className:i.default.contentArea,children:(()=>{switch(e){case"step1":return(0,s.jsxs)("div",{className:i.default.columns,children:[(0,s.jsxs)("div",{className:i.default.card,children:[(0,s.jsx)("p",{className:i.default.cardEyebrow,children:"AP Calculus (US/Canada)"}),(0,s.jsx)("h3",{children:"College-level calculus in high school"}),(0,s.jsx)("p",{children:"AP (Advanced Placement) Calculus offers two tracks parents often hear about:"}),(0,s.jsxs)("ul",{children:[(0,s.jsxs)("li",{children:[(0,s.jsx)("strong",{children:"AP AB (Advanced Placement Calculus AB)"})," \u2014 single-variable Calculus 1: limits, derivatives, integrals, applications."]}),(0,s.jsxs)("li",{children:[(0,s.jsx)("strong",{children:"AP BC (Advanced Placement Calculus BC)"})," \u2014 AB plus parametric calculus, Taylor series, and introductory differential equations."]})]}),(0,s.jsx)("div",{className:i.default.highlightBox,children:"\ud83d\udccc AP is fast, dense, and formula-heavy. Students face rapid MCQs and open-response FRQs, so speed and precision matter."})]}),(0,s.jsxs)("div",{className:i.default.card,children:[(0,s.jsx)("p",{className:i.default.cardEyebrow,children:"IB Math AA (SL/HL)"}),(0,s.jsx)("h3",{children:"International and deeply conceptual"}),(0,s.jsxs)("ul",{children:[(0,s.jsxs)("li",{children:[(0,s.jsx)("strong",{children:"SL (Standard Level)"})," \u2014 similar breadth to AP AB."]}),(0,s.jsxs)("li",{children:[(0,s.jsx)("strong",{children:"HL (Higher Level)"})," \u2014 extends past AP BC with vectors and deeper modeling."]})]}),(0,s.jsx)("div",{className:i.default.highlightBox,children:"\ud83d\udccc IB prioritizes explanation and reasoning. Students must connect ideas visually and justify each step, not just compute."})]})]});case"step2":return(0,s.jsxs)("div",{className:i.default.listGrid,children:[[{title:"Conceptual understanding",detail:"Students must know what derivatives, integrals, and limits represent before manipulating them."}
2,{title:"Problem-solving ability",detail:"They apply calculus to physics-style scenarios: motion, related rates, optimization, area, and volume."},{title:"Speed and accuracy",detail:"AP exams reward fast, correct work. Errors under time pressure tank scores."},{title:"A visual model in their head",detail:"Without seeing slopes, areas, curvature, and surfaces, the algebra never sticks."}].map((e=>(0,s.jsxs)("div",{className:i.default.card,children:[(0,s.jsx)("h3",{children:e.title}),(0,s.jsx)("p",{children:e.detail})]},e.title))),(0,s.jsxs)("div",{className:i.default.superpower,children:[(0,s.jsx)("strong",{children:"THIS IS WHERE THE PLATFORM IS A SUPERPOWER."})," Students see intuition first\u2014motion, color, and geometry\u2014 so symbols finally make sense."]})]});case"step3":return(0,s.jsx)("div",{className:i.default.cardStack,children:[{title:"They don\u2019t understand why calculus works",detail:"Classrooms jump straight to formulas. Students wonder why derivatives are slopes or integrals are area. Diagrams, animation, and interactive tools close the gap."},{title:"They cannot visualize 3D or motion",detail:"IB HL and AP BC lean on space curves, vector fields, and tangent planes. Dynamic explainers reveal moving particles, changing slopes, and curvature."},{title:"They memorize instead of understanding",detail:"AP students cram formulas. IB students over-write explanations. This platform teaches concept \u2192 visual \u2192 formula, so recall becomes natural."},{title:"They feel relentless exam pressure",detail:"AP FRQs and IB written responses require calm structure. Step-by-step walkthroughs, worked examples, and intuitive shortcuts build confidence."}].map(((e,t)=>(0,s.jsxs)("article",{className:i.default.challengeCard,children:[(0,s.jsxs)("span",{className:i.default.challengeIndex,children:["#",t+1]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{children:e.title}),(0,s.jsx)("p",{children:e.detail})]})]},e.title)))});case"step4":return(0,s.jsxs)("div",{className:i.default.curriculum,children:[(0,s.jsxs)("div",{className:i.default.curriculumCard,children:[(0,s.jsx)("h3",{children:"AP Calculus Structure"}),(0,s.jsx)("p",{children:"Two paths\u2014AB and BC\u2014cover single-variable mastery and extend into polar, parametric, and series work."}),(0,s.jsxs)("div",{className:i.default.curriculumBlock,children:[(0,s.jsx)("p",{className:i.default.cardEyebrow,children:"AB Core Units"}),(0,s.jsxs)("ul",{className:i.default.curriculumList,children:[(0,s.jsx)("li",{children:"Limits and continuity"}),(0,s.jsx)("li",{children:"Derivatives and their applications"}),(0,s.jsx)("li",{children:"Integrals, FTC, differential equations"}),(0,s.jsx)("li",{children:"Area and volume of revolution"})]})]}),(0,s.jsxs)("div",{className:i.default.curriculumBlock,children:[(0,s.jsx)("p",{className:i.default.cardEyebrow,children:"BC Adds"}),(0,s.jsxs)("ul",{className:i.default.curriculumList,children:[(0,s.jsx)("li",{children:"Parametric and polar calculus"}),(0,s.jsx)("li",{children:"Series and Taylor polynomials"}),(0,s.jsx)("li",{children:"Advanced differential equations"})]})]})]}),(0,s.jsxs)("div",{className:i.default.curriculumCard,children:[(0,s.jsx)("h3",{children:"IB Math AA (SL/HL)"}),(0,s.jsx)("p",{children:"Analysis & Approaches emphasises reasoning. HL pushes deeper into vectors, modeling, and multivariable thinking."}),(0,s.jsxs)("div",{className:i.default.curriculumBlock,children:[(0,s.jsx)("p",{className:i.default.cardEyebrow,children:"SL Topics"}),(0,s.jsxs)("ul",{className:i.default.curriculumList,children:[(0,s.jsx)("li",{children:"Functions and analysis foundations"}),(0,s.jsx)("li",{children:"Introductory calculus and integration"}),(0,s.jsx)("li",{children:"Applications and modeling"})]})]}),(0,s.jsxs)("div",{className:i.default.curriculumBlock,children:[(0,s.jsx)("p",{className:i.default.cardEyebrow,children:"HL Adds"}),(0,s.jsxs)("ul",{className:i.default.curriculumList,children:[(0,s.jsx)("li",{children:"Vectors and parametric curves"}),(0,s.jsx)("li",{children:"Series approximations"}),(0,s.jsx)("li",{children:"Differential equations and complex modeling"})]})]})]})]});case"step5":return(0,s.jsxs)("div",{className:i.default.listGrid,children:[[{title:"Visual explainers no one else has",detail
2:"AP and IB teachers rarely have time to build interactive views; this platform does."},{title:"Interactive explainer app",detail:"Students manipulate sliders and see reasoning instantly\u2014perfect for IB justification questions."},{title:"Step-by-step animation",detail:"Perfect for AP FRQs: each decision is tracked, reducing blank-page fear."},{title:"Calculus 1, 2, 3 coverage",detail:"Content maps cleanly to AP AB, AP BC, and IB HL expectations."}].map((e=>(0,s.jsxs)("div",{className:i.default.card,children:[(0,s.jsx)("h3",{children:e.title}),(0,s.jsx)("p",{children:e.detail})]},e.title))),(0,s.jsxs)("div",{className:i.default.superpower,children:[(0,s.jsx)("strong",{children:"\ud83d\udd25 Solving the #1 problem:"})," students finally gain intuitive understanding instead of rote memorization."]})]});case"step6":return(0,s.jsxs)("div",{className:i.default.card,children:[(0,s.jsx)("h3",{children:"How we describe the advantage"}),(0,s.jsx)("p",{children:"\u201cAP and IB students struggle because calculus is taught abstractly. My platform teaches it visually\u2014using motion, color, and step-by-step diagrams\u2014so students understand what calculus means, not just how to compute it.\u201d"}),(0,s.jsx)("p",{children:"When parents ask what makes the approach different, I describe the routines below:"}),(0,s.jsx)("div",{className:i.default.advantageGrid,children:[{title:"Coloring concepts",detail:"Trace each variable or constraint in matching colors to highlight how it shows up throughout a problem."},{title:"Planning frameworks",detail:"Reusable word-problem boards, Notion note-taking checklists, and read-aloud prompts surface missing givens before solving."},{title:"Representation first",detail:"Students sketch diagrams, tables, or animations before writing equations, then explain the story in plain language."},{title:"Debrief every question",detail:"We wrap each solution by naming the setup, the pitfall, and the one-sentence explanation they\u2019ll give a grader."},{title:"Model questions + quick writes",detail:"FRQ/IA-style reps plus short timed reflections build speed, clarity, and resilience under time pressure."},{title:"Framework-backed note taking",detail:"Color-coded templates keep scratch work organized so students can audit their reasoning quickly."}].map((e=>(0,s.jsxs)("article",{className:i.default.advantageCard,children:[(0,s.jsx)("h4",{children:e.title}),(0,s.jsx)("p",{children:e.detail})]},e.title)))})]});default:return null}})()})]})}},11085:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});n(82483),n(15046);var r=n(56723);const i=e=>{let{speaker:t,avatarUrl:n,title:i,children:s,position:a="left"}=e;const o="right"===a;return(0,r.jsxs)("div",{className:"conversation-block "+(o?"conversation-block-right":"conversation-block-left"),children:[(0,r.jsx)("img",{src:n,alt:`${t} avatar`,className:"conversation-block-avatar"}),(0,r.jsx)("div",{className:"conversation-block-content",children:(0,r.jsx)("div",{className:"conversation-block-text "+(o?"text-right":"text-left"),children:s})})]})}},85091:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalComponentsProvider:()=>y,H1:()=>h,H2:()=>f,P:()=>p,useGlobalComponents:()=>g});var r=n(82483),i=n(78611),s=n(33893),a=n(18072),o=n(38973),l=n(43509),c=n(11085),u=n(27044),d=n(56723);const h=e=>{let{children:t}=e;return(0,d.jsx)("h1",{style:{color:"blue",fontSize:"2em"},children:t})},f=e=>{let{children:t}=e;return(0,d.jsx)("h2",{style:{color:"green",fontSize:"1.5em"},children:t})}
2,p=e=>{let{children:t}=e;return(0,d.jsx)("p",{style:{lineHeight:"1.6"},children:t})},m=(0,r.createContext)(),g=()=>r.useContext(m),y=e=>{let{children:t}=e;return(0,d.jsx)(m.Provider,{value:{SectionHeader:i.default,TextBlock:s.default,Image:a.default,H1:h,H2:f,P:p,VideoPlayer:o.default,RenderSections:l.default,ConversationBlock:c.default,ToggleContent:u.default},children:t})}},18072:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});n(82483);var r=n(56723);const i=e=>{let{src:t,alt:n,caption:i}=e;return(0,r.jsxs)("div",{style:{textAlign:"center",margin:"1rem 0"},children:[(0,r.jsx)("img",{src:t,alt:n,style:{maxWidth:"100%",height:"auto"}}),i&&(0,r.jsx)("div",{style:{fontSize:"0.8rem",color:"#555"},children:i})]})}},7476:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(82483),i=n(56723);const s=e=>{let{name:t,imageUrl:n,description:s}=e;const[a,o]=(0,r.useState)(!1),l=()=>{o(!a)};return(0,i.jsxs)("div",{style:{fontFamily:"Arial, sans-serif",maxWidth:"100%"},children:[(0,i.jsx)("img",{src:n,alt:t,onClick:l,style:{width:"100%",height:"auto",cursor:"pointer",transition:"all 0.3s ease"}}),(0,i.jsx)("p",{children:s}),a&&(0,i.jsx)("div",{onClick:l,style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},children:(0,i.jsx)("img",{src:n,alt:t,style:{maxWidth:"90%",maxHeight:"90%",cursor:"pointer",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.2)",borderRadius:"8px"}})})]})}},43509:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});n(82483),n(30020);var r=n(56723);const i=e=>{let{sections:t}=e;return(0,r.jsx)("div",{className:"scrollable-nav-container",children:(0,r.jsx)("div",{className:"main-content",children:t.map(((e,t)=>{let{id:n,component:i,useCardStyle:s,isVideo:a}=e;return(0,r.jsx)("div",{id:n,className:`\n section \n ${!1!==s?"card-style":""}\n ${t%2===0?"even-section":"odd-section"}\n ${a?"video-section":""}\n `,children:(0,r.jsx)(i,{})},n)}))})})}},78611:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});n(82483);var r=n(56723);const i=e=>{let{title:t}=e;return(0,r.jsx)("h2",{style:{fontSize:"2rem",marginBottom:"1rem"},children:t})}},3704:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(82483),i=n(57318),s=n(7476),a=n(56723);const o={sliderContainer:{width:"100%",maxWidth:"1200px",margin:"0 auto",textAlign:"center",fontFamily:"Arial, sans-serif",boxSizing:"border-box",padding:"0 10px"},sliderTitle:{margin:"20px 0"},slideWrapper:{marginBottom:"10px"},navContainer:{display:"flex",alignItems:"center",justifyContent:"space-between"},navButton:{backgroundColor:"#2196F3",border:"none",color:"#fff",padding:"10px 15px",borderRadius:"5px",cursor:"pointer"},indicator:{margin:"0",fontWeight:"bold",color:"#555"}},l=e=>{let{slides:t}=e;const[n,l]=(0,r.useState)(0),c=t[n];return(0,a.jsxs)("div",{style:o.sliderContainer,children:[(0,a.jsx)("h2",{style:o.sliderTitle,children:"Introduction"}),(0,a.jsx)("div",{style:o.slideWrapper,children:"image"===c.type?(0,a.jsx)(s.default,{imageUrl:c.url}):(0,a.jsx)(i.default,{videoUrl:c.url})}),(0,a.jsxs)("div",{style:o.navContainer,children:[(0,a.jsx)("button",{style:o.navButton,onClick:()=>{l((e=>0===e?t.length-1:e-1))},children:"< Prev"}),(0,a.jsxs)("p",{style:o.indicator,children:[n+1," / ",t.length]}),(0,a.jsx)("button",{style:o.navButton,onClick:()=>{l((e=>e===t.length-1?0:e+1))},children:"Next >"})]})]})}},33893:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});n(82483);var r=n(56723);const i=e=>{let{children:t}=e;return(0,r.jsx)("p",{style:{lineHeight:"1.6",marginBottom:"1rem"},children:t})}},27044:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(82483),i=(n(27697),n(56723));const s=e=>{let{children:t}=e;const[n,s]=(0,r.useState)(!1);return(0,i.jsxs)("div",{className:"toggle-content-container",children:[(0,i.jsx)("button",{onClick:()=>{s(!n)},className:"toggle-button",children:n?"Hide Details":"See Details"}),n&&(0,i.jsx)("div",{className:"toggle-content",children:t})]})}},57318:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});n(82483);var r=n(38973),i=n(56723);const s=e=>{let{name:t,videoUrl:n}=e;return(0,i.jsx)("div",{style:{fontFamily:"Arial, sans-serif",maxWidth:"800px",margin:"0 auto"},children:(0,i.jsx)(r.default,{url:n,width:"100%",height:"450px"})})}},38973:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});n(82483);var r=n(48819),i=n.n(r),s=(n(64032),n(56723));const a=e=>{let{url:t,width:n="100%",height:r="100%"}=e;return(0,s.jsx)("div",{className:"video-player",style:{width:n},children:(0,s.jsx)(i(),{url:t,controls:!0,width:"100%",height:r})})}},39657:(e,t,n)=>{"use strict";n.r(t),n.d(t,{app:()=>a,auth:()=>o,db:()=>l});var r=n(39160);(0,r.KO)("firebase","10.12.5","app");var i=n(78985),s=n(15821);const a=(0,r.Wp)({apiKey:"AIzaSyC4U9-KYCJsa0kXm1lWTXThx7cKcQah5eI",authDomain:"options-2024.firebaseapp.com",projectId:"options-2024",storageBucket:"options-2024.appspot.com",messagingSenderId:"52993695082",appId:"1:52993695082:web:6def73cc707df9bc051913",measurementId:"G-6KG500EJQ8"}),o=(0,i.xI)(a),l=(0,s.aU)(a)},89708:(e,t,n)=>{"use strict";n.r(t);var r=n(82483),i=n(60775),s=(n(59555),n(16063)),a=n(4743),o=n(56723);i.createRoot(document.getElementById("root")).render((0,o.jsx)(r.StrictMode,{children:(0,o.jsx)(s.default,{})})),(0,a.default)()}
2,4743:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=e=>{e&&e instanceof Function&&n.e(9845).then(n.bind(n,9845)).then((t=>{let{getCLS:n,getFID:r,getFCP:i,getLCP:s,getTTFB:a}=t;n(e),r(e),i(e),s(e),a(e)}))}},39692:(e,t,n)=>{"use strict";n.r(t),n.d(t,{normalizeSectionsCopy:()=>u});const r=["stokes' theorem","surface & line integrals"],i=["convert complex surface integrals into easy-to-handle line integrals"],s=[...i],a={"Calculus 1":e=>`Build fluency with ${e} using color-coded steps and AP-style checks.`,"Calculus 2":e=>`Push deeper into ${e} with convergence visuals and guided problem solving.`,"Calculus 3":e=>`Develop 3D intuition for ${e} through vector animations and exam walk-throughs.`},o={"Calculus 1":e=>`Interactive explainers and practice prompts help cement every ${e} skill long before exam day.`,"Calculus 2":e=>`Students see every layer of ${e} unfold\u2014series intuition, parameter tweaks, and polished write-ups.`,"Calculus 3":e=>`We animate fields, slices, and trajectories so ${e} feels concrete before the FRQ.`},l=(e,t)=>{if(!e)return!0;const n=e.trim().toLowerCase();return!n||t.some((e=>n.includes(e)))},c=(e,t)=>{const n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return"Interactive Lesson";const t=(e.split("/").pop()||"").replace(/\.[^/.]+$/,"").replace(/[_-]+/g," ").replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/\s+/g," ").trim();return t?t.split(" ").map((e=>e.length?e[0].toUpperCase()+e.slice(1).toLowerCase():e)).join(" "):"Interactive Lesson"}(e.file),c=l(e.title,r)?n:e.title,u=l(e.caption,i)?((e,t)=>(a[t]||(e=>`Explore ${e} with interactive explainers and coaching tips.`))(e))(c,t):e.caption,d=l(e.description,s)?((e,t)=>(o[t]||(e=>`Visual walkthroughs, quick quizzes, and real exam scenarios make ${e} finally stick.`))(e))(c,t):e.description;return{...e,title:c,caption:u,description:d}},u=(e,t)=>e.map((e=>({...e,lessons:e.lessons.map((e=>c(e,t)))})))},36243:(e,t,n)=>{"use strict";n.d(t,{A:()=>ie});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++}
vendor: 5,083 bytes, line 2
2,t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),i=Math.abs,s=String.fromCharCode,a=Object.assign;function o(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function h(e){return e.length}function f(e){return e.length}function p(e,t){return t.push(e),e}var m=1,g=1,y=0,v=0,b=0,w="";function x(e,t,n,r,i,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:m,column:g,length:a,return:""}}function _(e,t){return a(x("",null,null,"",null,null,0),e,{length:-e.length},t)}function S(){return b=v>0?u(w,--v):0,g--,10===b&&(g=1,m--),b}function E(){return b=v<y?u(w,v++):0,g++,10===b&&(g=1,m++),b}function k(){return u(w,v)}function C(){return v}function A(e,t){return d(w,e,t)}function T(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function I(e){return m=g=1,y=h(w=e),v=0,[]}function P(e){return w="",e}function j(e){return o(A(v-1,R(91===e?e+2:40===e?e+1:e)))}function N(e){for(;(b=k())&&b<33;)E();return T(e)>2||T(b)>3?"":" "}function O(e,t){for(;--t&&E()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return A(e,C()+(t<6&&32==k()&&32==E()))}function R(e){for(;E();)switch(b){case e:return v;case 34:case 39:34!==e&&39!==e&&R(b);break;case 40:41===e&&R(e);break;case 92:E()}return v}function L(e,t){for(;E()&&e+b!==57&&(e+b!==84||47!==k()););return"/*"+A(t,v-1)+"*"+s(47===e?e:E())}function D(e){for(;!T(k());)E();return A(e,v)}var M="-ms-",F="-moz-",U="-webkit-",V="comm",B="rule",z="decl",$="@keyframes";function H(e,t){for(var n="",r=f(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function q(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case z:return e.return=e.return||e.value;case V:return"";case $:return e.return=e.value+"{"+H(e.children,r)+"}";case B:e.value=e.props.join(",")}return h(n=H(e.children,r))?e.return=e.value+"{"+n+"}":""}function W(e){return P(K("",null,null,null,[""],e=I(e),0,[0],e))}function K(e,t,n,r,i,a,o,d,f){for(var m=0,g=0,y=o,v=0,b=0,w=0,x=1,_=1,A=1,T=0,I="",P=i,R=a,M=r,F=I;_;)switch(w=T,T=E()){case 40:if(108!=w&&58==u(F,y-1)){-1!=c(F+=l(j(T),"&","&\f"),"&\f")&&(A=-1);break}case 34:case 39:case 91:F+=j(T);break;case 9:case 10:case 13:case 32:F+=N(w);break;case 92:F+=O(C()-1,7);continue;case 47:switch(k()){case 42:case 47:p(Q(L(E(),C()),t,n),f);break;default:F+="/"}break;case 123*x:d[m++]=h(F)*A;case 125*x:case 59:case 0:switch(T){case 0:case 125:_=0;case 59+g:-1==A&&(F=l(F,/\f/g,"")),b>0&&h(F)-y&&p(b>32?X(F+";",r,n,y-1):X(l(F," ","")+";",r,n,y-2),f);break;case 59:F+=";";default:if(p(M=G(F,t,n,m,g,i,d,I,P=[],R=[],y),a),123===T)if(0===g)K(F,t,M,M,P,a,y,d,R);else switch(99===v&&110===u(F,3)?100:v){case 100:case 108:case 109:case 115:K(e,M,M,r&&p(G(e,M,M,0,0,i,d,I,i,P=[],y),R),i,R,y,d,r?P:R);break;default:K(F,M,M,M,[""],R,0,d,R)}}m=g=b=0,x=A=1,I=F="",y=o;break;case 58:y=1+h(F),b=w;default:if(x<1)if(123==T)--x;else if(125==T&&0==x++&&125==S())continue;switch(F+=s(T),T*x){case 38:A=g>0?1:(F+="\f",-1);break;case 44:d[m++]=(h(F)-1)*A,A=1;break;case 64:45===k()&&(F+=j(E())),v=k(),g=y=h(I=F+=D(C())),T++;break;case 45:45===w&&2==h(F)&&(x=0)}}return a}function G(e,t,n,r,s,a,c,u,h,p,m){for(var g=s-1,y=0===s?a:[""],v=f(y),b=0,w=0,_=0;b<r;++b)for(var S=0,E=d(e,g+1,g=i(w=c[b])),k=e;S<v;++S)(k=o(w>0?y[S]+" "+E:l(E,/&\f/g,y[S])))&&(h[_++]=k);return x(e,t,n,0===s?B:u,h,p,m)}function Q(e,t,n){return x(e,t,n,V,s(b),d(e,2,-2),0)}function X(e,t,n,r){return x(e,t,n,z,d(e,0,r),d(e,r+1,-1),r)}var Y=function(e,t,n){for(var r=0,i=0;r=i,i=k(),38===r&&12===i&&(t[n]=1),!T(i);)E();return A(e,v)},J=function(e,t){return P(function(e,t){var n=-1,r=44;do{switch(T(r)){case 0:38===r&&12===k()&&(t[n]=1),e[n]+=Y(v-1,t,n);break;case 2:e[n]+=j(r);break;case 4:if(44===r){e[++n]=58===k()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=s(r)}}while(r=E());return e}(I(e),t))},Z=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Z.get(n))&&!r){Z.set(e,!0);for(var i=[],s=J(t,i),a=n.props,o=0,l=0;o<s.length;o++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[o]?s[o].replace(/&\f/g,a[c]):a[c]+" "+s[o]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return U+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return U+e+e;
vendor: 4,089 bytes, line 2
2case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+F+e+M+e+e;case 6828:case 4268:return U+e+M+e+e;case 6165:return U+e+M+"flex-"+e+e;case 5187:return U+e+l(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+M+"flex-$1$2")+e;case 5443:return U+e+M+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return U+e+M+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+M+l(e,"shrink","negative")+e;case 5292:return U+e+M+l(e,"basis","preferred-size")+e;case 6060:return U+"box-"+l(e,"-grow","")+U+e+M+l(e,"grow","positive")+e;case 4554:return U+l(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+M+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,U+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(h(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+F+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,h(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+U)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(45===u(e,14)?"inline-":"")+"box$3$1"+U+"$2$3$1"+M+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return U+e+M+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+M+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+M+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+M+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case z:e.return=ne(e.value,e.length);break;case $:return H([_(e,{value:l(e.value,"@","@"+U)})],r);case B:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return H([_(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return H([_(e,{props:[l(t,/:(plac\w+)/,":"+U+"input-$1")]}),_(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),_(e,{props:[l(t,/:(plac\w+)/,M+"input-$1")]})],r)}return""}))}}],ie=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,s,a=e.stylisPlugins||re,o={},l=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)o[t[n]]=!0;l.push(e)}));var c,u,d=[q,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],h=function(e){var t=f(e);return function(n,r,i,s){for(var a="",o=0;o<t;o++)a+=e[o](n,r,i,s)||"";return a}}([ee,te].concat(a,d));s=function(e,t,n,r){c=n,H(W(e?e+"{"+t.styles+"}":t.styles),h),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new r({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:s};return p.sheet.hydrate(l),p}},80326:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},73151:(e,t,n)=>{"use strict";n.d(t,{C:()=>c,E:()=>g,T:()=>d,c:()=>p,h:()=>h,w:()=>u});var r=n(82483),i=n(36243),s=n(55066),a=n(3407),o=n(29404),l=r.createContext("undefined"!==typeof HTMLElement?(0,i.A)({key:"css"}):null),c=l.Provider,u=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(l);return e(t,i,n)}))},d=r.createContext({});var h={}.hasOwnProperty,f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",p=function(e,t){var n={};for(var r in t)h.call(t,r)&&(n[r]=t[r]);return n[f]=e,n},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;
2return(0,s.SF)(t,n,r),(0,o.s)((function(){return(0,s.sk)(t,n,r)})),null},g=u((function(e,t,n){var i=e.css;"string"===typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var o=e[f],l=[i],c="";"string"===typeof e.className?c=(0,s.Rk)(t.registered,l,e.className):null!=e.className&&(c=e.className+" ");var u=(0,a.J)(l,void 0,r.useContext(d));c+=t.key+"-"+u.name;var p={};for(var g in e)h.call(e,g)&&"css"!==g&&g!==f&&(p[g]=e[g]);return p.className=c,n&&(p.ref=n),r.createElement(r.Fragment,null,r.createElement(m,{cache:t,serialized:u,isStringTag:"string"===typeof o}),r.createElement(o,p))}))},64122:(e,t,n)=>{"use strict";n.d(t,{AH:()=>u,Y:()=>l,i7:()=>d,mL:()=>c});var r=n(73151),i=n(82483),s=n(55066),a=n(29404),o=n(3407),l=(n(36243),n(60315),function(e,t){var n=arguments;if(null==t||!r.h.call(t,"css"))return i.createElement.apply(void 0,n);var s=n.length,a=new Array(s);a[0]=r.E,a[1]=(0,r.c)(e,t);for(var o=2;o<s;o++)a[o]=n[o];return i.createElement.apply(null,a)}),c=(0,r.w)((function(e,t){var n=e.styles,l=(0,o.J)([n],void 0,i.useContext(r.T)),c=i.useRef();return(0,a.i)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),c.current=[n,r],function(){n.flush()}}),[t]),(0,a.i)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,s.sk)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null}));function u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.J)(t)}var d=function(){var e=u.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},3407:(e,t,n)=>{"use strict";n.d(t,{J:()=>g});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=n(80326),s=!1,a=/[A-Z]|^ms/g,o=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},u=(0,i.A)((function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(o,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===r[e]||l(e)||"number"!==typeof t||0===t?t:t+"px"},h="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function f(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return p={name:i.name,styles:i.styles,next:p},i.name;var a=n;if(void 0!==a.styles){var o=a.next;if(void 0!==o)for(;void 0!==o;)p={name:o.name,styles:o.styles,next:p},o=o.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=f(e,t,n[i])+";";else for(var a in n){var o=n[a];if("object"!==typeof o){var l=o;null!=t&&void 0!==t[l]?r+=a+"{"+t[l]+"}":c(l)&&(r+=u(a)+":"+d(a,l)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&s)throw new Error(h);if(!Array.isArray(o)||"string"!==typeof o[0]||null!=t&&void 0!==t[o[0]]){var p=f(e,t,o);switch(a){case"animation":case"animationName":r+=u(a)+":"+p+";";break;default:r+=a+"{"+p+"}"}}else for(var m=0;m<o.length;m++)c(o[m])&&(r+=u(a)+":"+d(a,o[m])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=p,m=n(e);return p=l,f(e,t,m)}}var g=n;if(null==t)return g;var y=t[g];return void 0!==y?y:g}var p,m=/label:\s*([^\s;{]+)\s*(;|$)/g;function g(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";p=void 0;var s=e[0];null==s||void 0===s.raw?(r=!1,i+=f(n,t,s)):i+=s[0];for(var a=1;a<e.length;a++){if(i+=f(n,t,e[a]),r)i+=s[a]}m.lastIndex=0;for(var o,l="";null!==(o=m.exec(i));)l+="-"+o[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:p}}}
2,29404:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>o,s:()=>a});var i=n(82483),s=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=s||function(e){return e()},o=s||i.useLayoutEffect},55066:(e,t,n)=>{"use strict";n.d(t,{Rk:()=>r,SF:()=>i,sk:()=>s});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},s=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var s=t;do{e.insert(t===s?"."+r:"",s,e.sheet,!0),s=s.next}while(void 0!==s)}}},13540:(e,t,n)=>{"use strict";n.d(t,{Am:()=>P,FA:()=>k,Fy:()=>m,I9:()=>j,Im:()=>A,Ku:()=>D,T9:()=>h,Tj:()=>u,Uj:()=>a,XA:()=>f,ZQ:()=>g,bD:()=>T,cY:()=>p,eX:()=>S,g:()=>E,hp:()=>N,jZ:()=>y,lT:()=>w,lV:()=>b,nr:()=>x,sr:()=>v,tD:()=>O,u:()=>o,yU:()=>d,zW:()=>_});const r=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296===(64512&i)&&r+1<e.length&&56320===(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},i={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const t=e[i],s=i+1<e.length,a=s?e[i+1]:0,o=i+2<e.length,l=o?e[i+2]:0,c=t>>2,u=(3&t)<<4|a>>4;let d=(15&a)<<2|l>>6,h=63&l;o||(h=64,s||(d=64)),r.push(n[c],n[u],n[d],n[h])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(r(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const s=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&s)}else if(i>239&&i<365){const s=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(s>>10)),t[r++]=String.fromCharCode(56320+(1023&s))}else{const s=e[n++],a=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&a)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const t=n[e.charAt(i++)],a=i<e.length?n[e.charAt(i)]:0;++i;const o=i<e.length?n[e.charAt(i)]:64;++i;const l=i<e.length?n[e.charAt(i)]:64;if(++i,null==t||null==a||null==o||null==l)throw new s;const c=t<<2|a>>4;if(r.push(c),64!==o){const e=a<<4&240|o>>2;if(r.push(e),64!==l){const e=o<<6&192|l;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class s extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const a=function(e){return function(e){const t=r(e);return i.encodeByteArray(t,!0)}(e).replace(/\./g,"")},o=function(e){try{return i.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};const l=()=>function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__,c=()=>{try{return l()||(()=>{if("undefined"===typeof process)return;const e={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"===typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;
2]+)/)}catch(n){return}const t=e&&o(e[1]);return t&&JSON.parse(t)})()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}},u=e=>{var t,n;return null===(n=null===(t=c())||void 0===t?void 0:t.emulatorHosts)||void 0===n?void 0:n[e]},d=e=>{const t=u(e);if(!t)return;const n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error(`Invalid host ${t} with no separate hostname and port!`);const r=parseInt(t.substring(n+1),10);return"["===t[0]?[t.substring(1,n-1),r]:[t.substring(0,n),r]},h=()=>{var e;return null===(e=c())||void 0===e?void 0:e.config},f=e=>{var t;return null===(t=c())||void 0===t?void 0:t[`_${e}`]};class p{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"===typeof e&&(this.promise.catch((()=>{})),1===e.length?e(t):e(t,n))}}}function m(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n=t||"demo-project",r=e.iat||0,i=e.sub||e.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const s=Object.assign({iss:`https://securetoken.google.com/${n}`,aud:n,iat:r,exp:r+3600,auth_time:r,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);return[a(JSON.stringify({alg:"none",type:"JWT"})),a(JSON.stringify(s)),""].join(".")}function g(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function y(){return"undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(g())}function v(){const e="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof e&&void 0!==e.id}function b(){return"object"===typeof navigator&&"ReactNative"===navigator.product}function w(){const e=g();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function x(){return!function(){var e;const t=null===(e=c())||void 0===e?void 0:e.forceEnvironment;if("node"===t)return!0;if("browser"===t)return!1;try{return"[object process]"===Object.prototype.toString.call(n.g.process)}catch(r){return!1}}()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function _(){try{return"object"===typeof indexedDB}catch(e){return!1}}function S(){return new Promise(((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(n){t(n)}}))}class E extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,E.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,k.prototype.create)}}class k{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e){const t=(arguments.length<=1?void 0:arguments[1])||{},n=`${this.service}/${e}`,r=this.errors[e],i=r?function(e,t){return e.replace(C,((e,n)=>{const r=t[n];return null!=r?String(r):`<${n}?>`}))}(r,t):"Error",s=`${this.serviceName}: ${i} (${n}).`;return new E(n,s,t)}}const C=/\{\$([^}]+)}/g;function A(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function T(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const n=e[i],s=t[i];if(I(n)&&I(s)){if(!T(n,s))return!1}else if(n!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function I(e){return null!==e&&"object"===typeof e}function P(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach((e=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))})):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function j(e){const t={};return e.replace(/^\?/,"").split("&").forEach((e=>{if(e){const[n,r]=e.split("=");
2t[decodeURIComponent(n)]=decodeURIComponent(r)}})),t}function N(e){const t=e.indexOf("?");if(!t)return"";const n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}function O(e,t){const n=new R(e,t);return n.subscribe.bind(n)}class R{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then((()=>{e(this)})).catch((e=>{this.error(e)}))}next(e){this.forEachObserver((t=>{t.next(e)}))}error(e){this.forEachObserver((t=>{t.error(e)})),this.close(e)}complete(){this.forEachObserver((e=>{e.complete()})),this.close()}subscribe(e,t,n){let r;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");r=function(e,t){if("object"!==typeof e||null===e)return!1;for(const n of t)if(n in e&&"function"===typeof e[n])return!0;return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n},void 0===r.next&&(r.next=L),void 0===r.error&&(r.error=L),void 0===r.complete&&(r.complete=L);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(e){}})),this.observers.push(r),i}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then((()=>
2{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(n){"undefined"!==typeof console&&console.error&&console.error(n)}}))}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((()=>{this.observers=void 0,this.onNoObservers=void 0})))}}function L(){}function D(e){return e&&e._delegate?e._delegate:e}},33790:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});n(82483);var r=n(25750);n(56723);function i(e){return(0,r.b)(e)}},41371:(e,t,n)=>{"use strict";n.d(t,{A:()=>ae});var r=n(98587),i=n(58168),s=n(82483),a=n(90094),o=n(97266),l=n(51348),c=n(71251),u=n(25564),d=n(44390),h=n(62644),f=n(56723);const p=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function m(e){const t=[],n=[];return Array.from(e.querySelectorAll(p)).forEach(((e,r)=>{const i=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function g(){return!0}const y=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=m,isEnabled:o=g,open:l}=e,c=s.useRef(!1),u=s.useRef(null),p=s.useRef(null),y=s.useRef(null),v=s.useRef(null),b=s.useRef(!1),w=s.useRef(null),x=(0,d.A)(t.ref,w),_=s.useRef(null);s.useEffect((()=>{l&&w.current&&(b.current=!n)}),[n,l]),s.useEffect((()=>{if(!l||!w.current)return;const e=(0,h.A)(w.current);return w.current.contains(e.activeElement)||(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex","-1"),b.current&&w.current.focus()),()=>{i||(y.current&&y.current.focus&&(c.current=!0,y.current.focus()),y.current=null)}}),[l]),s.useEffect((()=>{if(!l||!w.current)return;const e=(0,h.A)(w.current),t=t=>{_.current=t,!r&&o()&&"Tab"===t.key&&e.activeElement===w.current&&t.shiftKey&&(c.current=!0,p.current&&p.current.focus())},n=()=>{const t=w.current;if(null===t)return;if(!e.hasFocus()||!o()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==p.current)return;if(e.activeElement!==v.current)v.current=null;else if(null!==v.current)return;if(!b.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==p.current||(n=a(w.current)),n.length>0){var i,s;const e=Boolean((null==(i=_.current)?void 0:i.shiftKey)&&"Tab"===(null==(s=_.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!==typeof t&&"string"!==typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,i,o,l,a]);const S=e=>{null===y.current&&(y.current=e.relatedTarget),b.current=!0};return(0,f.jsxs)(s.Fragment,{children:[(0,f.jsx)("div",{tabIndex:l?0:-1,onFocus:S,ref:u,"data-testid":"sentinelStart"}),s.cloneElement(t,{ref:x,onFocus:e=>{null===y.current&&(y.current=e.relatedTarget),b.current=!0,v.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,f.jsx)("div",{tabIndex:l?0:-1,onFocus:S,ref:p,"data-testid":"sentinelEnd"})]})};var v=n(83054),b=n(26855),w=n(33790),x=n(53097),_=n(28896),S=n(38413),E=n(24201);const k=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],C={entering:{opacity:1},entered:{opacity:1}},A=s.forwardRef((function(e,t){const n=(0,_.A)(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:l=!0,children:c,easing:u,in:d,onEnter:h,onEntered:p,onEntering:m,onExit:g,onExited:y,onExiting:v,style:b,timeout:w=a,TransitionComponent:A=x.Ay}=e,T=(0,r.A)(e,k),I=s.useRef(null),P=(0,E.A)(I,c.ref,t),j=e=>t=>{if(e){const n=I.current;void 0===t?e(n):e(n,t)}},N=j(m),O=j(((e,t)=>{(0,S.q)(e);const r=(0,S.c)({style:b,timeout:w,easing:u},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),h&&h(e,t)})),R=j(p),L=j(v),D=j((e=>{const t=(0,S.c)({style:b,timeout:w,easing:u},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),g&&g(e)})),M=j(y);return(0,f.jsx)(A,(0,i.A)({appear:l,in:d,nodeRef:I,onEnter:O,onEntered:R,onEntering:N,onExit:D,onExited:M,onExiting:L,addEndListener:e=>{o&&o(I.current,e)},timeout:w},T,{children:(e,t)=>s.cloneElement(c,(0,i.A)({style:(0,i.A)({opacity:0,visibility:"exited"!==e||d?void 0:"hidden"},C[e],b,c.props.style),ref:P},t))}))}));var T=n(90292),I=n(4692);function P(e){return(0,I.Ay)("MuiBackdrop",e)}(0,T.A)("MuiBackdrop",["root","invisible"]);const j=["children","className","component","components","componentsProps","invisible","open","slotProps","
2slots","TransitionComponent","transitionDuration"],N=(0,b.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((e=>{let{ownerState:t}=e;return(0,i.A)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})})),O=s.forwardRef((function(e,t){var n,s,l;const c=(0,w.b)({props:e,name:"MuiBackdrop"}),{children:u,className:d,component:h="div",components:p={},componentsProps:m={},invisible:g=!1,open:y,slotProps:v={},slots:b={},TransitionComponent:x=A,transitionDuration:_}=c,S=(0,r.A)(c,j),E=(0,i.A)({},c,{component:h,invisible:g}),k=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,o.A)(r,P,t)})(E),C=null!=(n=v.root)?n:m.root;return(0,f.jsx)(x,(0,i.A)({in:y,timeout:_},S,{children:(0,f.jsx)(N,(0,i.A)({"aria-hidden":!0},C,{as:null!=(s=null!=(l=b.root)?l:p.Root)?s:h,className:(0,a.A)(k.root,d,null==C?void 0:C.className),ownerState:(0,i.A)({},E,null==C?void 0:C.ownerState),classes:k,ref:t,children:u}))}))}));var R=n(24710),L=n(11256),D=n(39090),M=n(42660),F=n(46100);function U(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function V(e){return parseInt((0,M.A)(e).getComputedStyle(e).paddingRight,10)||0}function B(e,t,n,r,i){const s=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===s.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&U(e,i)}))}function z(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function $(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,h.A)(e);return t.body===e?(0,M.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=(0,F.A)((0,h.A)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${V(r)+e}px`;const t=(0,h.A)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${V(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=(0,h.A)(r).body;else{const t=r.parentElement,n=(0,M.A)(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((e=>{let{value:t,el:n,property:r}=e;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}const H=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&U(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);B(t,e.mount,e.modalRef,r,!0);const i=z(this.containers,(e=>e.container===t));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=z(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=$(r,t))}remove(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.modals.indexOf(e);if(-1===n)return n;const r=z(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&U(e.modalRef,t),B(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&U(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};const q=function(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:a=H,closeAfterTransition:o=!1,onTransitionEnter:l,onTransitionExited:c,children:u,onClose:f,open:p,rootRef:m}=e,g=s.useRef({}),y=s.useRef(null),v=s.useRef(null),b=(0,d.A)(v,m),[w,x]=s.useState(!p),_=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let S=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(S=!1);const E=()=>(g.current.modalRef=v.current,g.current.mount=y.current,g.current),k=()=>{a.mount(E(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},C=(0,R.A)((()=>{const e=function(e){return"function"===typeof e?e():e}(t)||(0,h.A)(y.current).body;a.add(E(),e),v.current&&k()})),A=s.useCallback((()=>a.isTopModal(E())),[a]),T=(0,R.A)((e=>{y.current=e,e&&(p&&A()?k():v.current&&U(v.current,S))})),I=s.useCallback((()=>{a.remove(E(),S)}),[S,a]);s.useEffect((()=>()=>{I()}),[I]),s.useEffect((()=>{p?C():_&&o||I()}),[p,I,_,o,C]);const P=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&A()&&(n||(t.stopPropagation(),f&&f(t,"escapeKeyDown")))},j=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&f&&f(t,"backdropClick")};return{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=(0,D.A)(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=(0,i.A)({},n,t);return(0,i.A)({role:"presentation"},r,{onKeyDown:P(r),ref:b})},getBackdropProps:function(){const e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.A)({"aria-hidden":!0},e,{onClick:j(e),open:p})},getTransitionProps:()=>({onEnter:(0,L.A)((()=>{x(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:(0,L.A)((()=>{x(!0),c&&c(),o&&I()}),null==u?void 0:u.props.onExited)}),rootRef:b,portalRef:T,isTopModal:A,exited:w,hasTransition:_}};function W(e){return(0,I.Ay)("MuiModal",e)}(0,T.A)("MuiModal",["root","hidden","backdrop"]);const K=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","
2slots","theme"],G=(0,b.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),Q=(0,b.Ay)(O,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),X=s.forwardRef((function(e,t){var n,l,c,d,h,p;const m=(0,w.b)({name:"MuiModal",props:e}),{BackdropComponent:g=Q,BackdropProps:b,className:x,closeAfterTransition:_=!1,children:S,container:E,component:k,components:C={},componentsProps:A={},disableAutoFocus:T=!1,disableEnforceFocus:I=!1,disableEscapeKeyDown:P=!1,disablePortal:j=!1,disableRestoreFocus:N=!1,disableScrollLock:O=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:D,open:M,slotProps:F,slots:U}=m,V=(0,r.A)(m,K),B=(0,i.A)({},m,{closeAfterTransition:_,disableAutoFocus:T,disableEnforceFocus:I,disableEscapeKeyDown:P,disablePortal:j,disableRestoreFocus:N,disableScrollLock:O,hideBackdrop:R,keepMounted:L}),{getRootProps:z,getBackdropProps:$,getTransitionProps:H,portalRef:X,isTopModal:Y,exited:J,hasTransition:Z}=q((0,i.A)({},B,{rootRef:t})),ee=(0,i.A)({},B,{exited:J}),te=(e=>{const{open:t,exited:n,classes:r}=e,i={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,o.A)(i,W,r)})(ee),ne={};if(void 0===S.props.tabIndex&&(ne.tabIndex="-1"),Z){const{onEnter:e,onExited:t}=H();ne.onEnter=e,ne.onExited=t}const re=null!=(n=null!=(l=null==U?void 0:U.root)?l:C.Root)?n:G,ie=null!=(c=null!=(d=null==U?void 0:U.backdrop)?d:C.Backdrop)?c:g,se=null!=(h=null==F?void 0:F.root)?h:A.root,ae=null!=(p=null==F?void 0:F.backdrop)?p:A.backdrop,oe=(0,u.A)({elementType:re,externalSlotProps:se,externalForwardedProps:V,getSlotProps:z,additionalProps:{ref:t,as:k},ownerState:ee,className:(0,a.A)(x,null==se?void 0:se.className,null==te?void 0:te.root,!ee.open&&ee.exited&&(null==te?void 0:te.hidden))}),le=(0,u.A)({elementType:ie,externalSlotProps:ae,additionalProps:b,getSlotProps:e=>$((0,i.A)({},e,{onClick:t=>{D&&D(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,a.A)(null==ae?void 0:ae.className,null==b?void 0:b.className,null==te?void 0:te.backdrop),ownerState:ee});return L||M||Z&&!J?(0,f.jsx)(v.A,{ref:X,container:E,disablePortal:j,children:(0,f.jsxs)(re,(0,i.A)({},oe,{children:[!R&&g?(0,f.jsx)(ie,(0,i.A)({},le)):null,(0,f.jsx)(y,{disableEnforceFocus:I,disableAutoFocus:T,disableRestoreFocus:N,isEnabled:Y,open:M,children:s.cloneElement(S,ne)})]}))}):null}));var Y=n(77924);function J(e){return(0,I.Ay)("MuiDialog",e)}const Z=(0,T.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var ee=n(86851);const te=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],ne=(0,b.Ay)(O,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),re=(0,b.Ay)(X,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),ie=(0,b.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${(0,c.A)(n.scroll)}`]]}})((e=>{let{ownerState:t}=e;return(0,i.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),se=(0,b.Ay)(Y.A,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,c.A)(n.scroll)}`],t[`paperWidth${(0,c.A)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===n.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===n.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!n.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===n.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${Z.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},n.maxWidth&&"xs"!==n.maxWidth&&{maxWidth:`${t.breakpoints.values[n.maxWidth]}${t.breakpoints.unit}`,[`&.${Z.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[n.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},n.fullWidth&&{width:"calc(100% - 64px)"},n.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Z.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})})),ae=s.forwardRef((function(e,t){const n=(0,w.b)({props:e,name:"MuiDialog"}),u=(0,_.A)(),d={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},{"aria-describedby":h,"aria-labelledby":p,BackdropComponent:m,BackdropProps:g,children:y,className:v,disableEscapeKeyDown:b=!1,fullScreen:x=!1,fullWidth:S=!1,maxWidth:E="sm",onBackdropClick:k,onClick:C,onClose:T,open:I,PaperComponent:P=Y.A,Pa
2perProps:j={},scroll:N="paper",TransitionComponent:O=A,transitionDuration:R=d,TransitionProps:L}=n,D=(0,r.A)(n,te),M=(0,i.A)({},n,{disableEscapeKeyDown:b,fullScreen:x,fullWidth:S,maxWidth:E,scroll:N}),F=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:s}=e,a={root:["root"],container:["container",`scroll${(0,c.A)(n)}`],paper:["paper",`paperScroll${(0,c.A)(n)}`,`paperWidth${(0,c.A)(String(r))}`,i&&"paperFullWidth",s&&"paperFullScreen"]};return(0,o.A)(a,J,t)})(M),U=s.useRef(),V=(0,l.A)(p),B=s.useMemo((()=>({titleId:V})),[V]);return(0,f.jsx)(re,(0,i.A)({className:(0,a.A)(F.root,v),closeAfterTransition:!0,components:{Backdrop:ne},componentsProps:{backdrop:(0,i.A)({transitionDuration:R,as:m},g)},disableEscapeKeyDown:b,onClose:T,open:I,ref:t,onClick:e=>{C&&C(e),U.current&&(U.current=null,k&&k(e),T&&T(e,"backdropClick"))},ownerState:M},D,{children:(0,f.jsx)(O,(0,i.A)({appear:!0,in:I,timeout:R,role:"presentation"},L,{children:(0,f.jsx)(ie,{className:(0,a.A)(F.container),onMouseDown:e=>{U.current=e.target===e.currentTarget},ownerState:M,children:(0,f.jsx)(se,(0,i.A)({as:P,elevation:24,role:"dialog","aria-describedby":h,"aria-labelledby":V},j,{className:(0,a.A)(F.paper,j.className),ownerState:M,children:(0,f.jsx)(ee.A.Provider,{value:B,children:y})}))})}))}))}))},86851:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(82483).createContext({})},77924:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(98587),i=n(58168),s=n(82483),a=n(90094),o=n(97266),l=n(32610),c=n(26855);const u=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};var d=n(33790),h=n(90292),f=n(4692);function p(e){return(0,f.Ay)("MuiPaper",e)}(0,h.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var m=n(56723);const g=["className","component","elevation","square","variant"],y=(0,c.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((e=>{let{theme:t,ownerState:n}=e;var r;return(0,i.A)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!n.square&&{borderRadius:t.shape.borderRadius},"outlined"===n.variant&&{border:`1px solid ${(t.vars||t).palette.divider}`},"elevation"===n.variant&&(0,i.A)({boxShadow:(t.vars||t).shadows[n.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${(0,l.X4)("#fff",u(n.elevation))}, ${(0,l.X4)("#fff",u(n.elevation))})`},t.vars&&{backgroundImage:null==(r=t.vars.overlays)?void 0:r[n.elevation]}))})),v=s.forwardRef((function(e,t){const n=(0,d.b)({props:e,name:"MuiPaper"}),{className:s,component:l="div",elevation:c=1,square:u=!1,variant:h="elevation"}=n,f=(0,r.A)(n,g),v=(0,i.A)({},n,{component:l,elevation:c,square:u,variant:h}),b=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e,s={root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]};return(0,o.A)(s,p,i)})(v);return(0,m.jsx)(y,(0,i.A)({as:l,ownerState:v,className:(0,a.A)(b.root,s),ref:t},f))}))},83054:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(82483),i=n(99998),s=n(44390),a=n(60344),o=n(12548),l=n(56723);const c=r.forwardRef((function(e,t){const{children:n,container:c,disablePortal:u=!1}=e,[d,h]=r.useState(null),f=(0,s.A)(r.isValidElement(n)?n.ref:null,t);if((0,a.A)((()=>{u||h(function(e){return"function"===typeof e?e():e}(c)||document.body)}),[c,u]),(0,a.A)((()=>{if(d&&!u)return(0,o.A)(t,d),()=>{(0,o.A)(t,null)}}),[t,d,u]),u){if(r.isValidElement(n)){const e={ref:f};return r.cloneElement(n,e)}return(0,l.jsx)(r.Fragment,{children:n})}return(0,l.jsx)(r.Fragment,{children:d?i.createPortal(n,d):d})}))},17646:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,p0:()=>o});var r=n(98587),i=n(58168);
2const s=["duration","easing","delay"],a={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return`${Math.round(e)}ms`}function c(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function u(e){const t=(0,i.A)({},a,e.easing),n=(0,i.A)({},o,e.duration);return(0,i.A)({getAutoHeightDuration:c,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:a=n.standard,easing:o=t.easeInOut,delay:c=0}=i;(0,r.A)(i,s);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"===typeof a?a:l(a)} ${o} ${"string"===typeof c?c:l(c)}`)).join(",")}},e,{easing:t,duration:n})}},46122:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=n(58168),i=n(98587),s=n(48172),a=n(31460),o=n(16222),l=n(22748),c=n(40254);var u=n(32610);const d={black:"#000",white:"#fff"},h={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},f={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},p={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},v={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=["mode","contrastThreshold","tonalOffset"],w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function _(e,t,n,r){const i=r.light||r,s=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.a)(e.main,i):"dark"===t&&(e.dark=(0,u.e$)(e.main,s)))}function S(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2}=e,l=(0,i.A)(e,b),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(t),S=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:f[200],light:f[50],dark:f[400
2]}:{main:f[500],light:f[300],dark:f[700]}}(t),E=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:p[500],light:p[300],dark:p[700]}:{main:p[700],light:p[400],dark:p[800]}}(t),k=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[400],light:y[300],dark:y[700]}:{main:y[700],light:y[500],dark:y[900]}}(t),C=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:v[800],light:v[500],dark:v[900]}}(t),A=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(t);function T(e){return(0,u.eM)(e,x.text.primary)>=n?x.text.primary:w.text.primary}const I=e=>{let{color:t,name:n,mainShade:i=500,lightShade:a=300,darkShade:l=700}=e;if(t=(0,r.A)({},t),!t.main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw new Error((0,s.A)(11,n?` (${n})`:"",i));if("string"!==typeof t.main)throw new Error((0,s.A)(12,n?` (${n})`:"",JSON.stringify(t.main)));return _(t,"light",a,o),_(t,"dark",l,o),t.contrastText||(t.contrastText=T(t.main)),t},P={dark:x,light:w};return(0,a.A)((0,r.A)({common:(0,r.A)({},d),mode:t,primary:I({color:c,name:"primary"}),secondary:I({color:S,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:I({color:E,name:"error"}),warning:I({color:A,name:"warning"}),info:I({color:k,name:"info"}),success:I({color:C,name:"success"}),grey:h,contrastThreshold:n,getContrastText:T,augmentColor:I,tonalOffset:o},P[t]),l)}const E=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const k={textTransform:"uppercase"},C='"Roboto", "Helvetica", "Arial", sans-serif';function A(e,t){const n="function"===typeof t?t(e):t,{fontFamily:s=C,fontSize:o=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:f,pxToRem:p}=n,m=(0,i.A)(n,E);const g=o/14,y=p||(e=>e/h*g+"rem"),v=(e,t,n,i,a)=>{return(0,r.A)({fontFamily:s,fontWeight:e,fontSize:y(t),lineHeight:n},s===C?{letterSpacing:(o=i/t,Math.round(1e5*o)/1e5)+"em"}:{},a,f);var o},b={h1:v(l,96,1.167,-1.5),h2:v(l,60,1.2,-.5),h3:v(c,48,1.167,0),h4:v(c,34,1.235,.25),h5:v(c,24,1.334,0),h6:v(u,20,1.6,.15),subtitle1:v(c,16,1.75,.15),subtitle2:v(u,14,1.57,.1),body1:v(c,16,1.5,.15),body2:v(c,14,1.43,.15),button:v(u,14,1.75,.4,k),caption:v(c,12,1.66,.4),overline:v(c,12,2.66,1,k),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.A)((0,r.A)({htmlFontSize:h,pxToRem:y,fontFamily:s,fontSize:o,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},b),m,{clone:!1})}function T(){return[`${arguments.length<=0?void 0:arguments[0]}px ${arguments.length<=1?void 0:arguments[1]}px ${arguments.length<=2?void 0:arguments[2]}px ${arguments.length<=3?void 0:arguments[3]}px rgba(0,0,0,0.2)`,`${arguments.length<=4?void 0:arguments[4]}px ${arguments.length<=5?void 0:arguments[5]}px ${arguments.length<=6?void 0:arguments[6]}px ${arguments.length<=7?void 0:arguments[7]}px rgba(0,0,0,0.14)`,`${arguments.length<=8?void 0:arguments[8]}px ${arguments.length<=9?void 0:arguments[9]}px ${arguments.length<=10?void 0:arguments[10]}px ${arguments.length<=11?void 0:arguments[11]}px rgba(0,0,0,0.12)`].join(",")}const I=["none",T(0,2,1,-1,0,1,1,0,0,1,3,0),T(0,3,1,-2,0,2,2,0,0,1,5,0),T(0,3,3,-2,0,3,4,0,0,1,8,0),T(0,2,4,-1,0,4,5,0,0,1,10,0),T(0,3,5,-1,0,5,8,0,0,1,14,0),T(0,3,5,-1,0,6,10,0,0,1,18,0),T(0,4,5,-2,0,7,10,1,0,2,16,1),T(0,5,5,-3,0,8,10,1,0,3,14,2),T(0,5,6,-3,0,9,12,1,0,3,16,2),T(0,6,6,-3,0,10,14,1,0,4,18,3),T(0,6,7,-4,0,11,15,1,0,4,20,3),T(0,7,8,-4,0,12,17,2,0,5,22,4),T(0,7,8,-4,0,13,19,2,0,5,24,4),T(0,7,9,-4,0,14,21,2,0,5,26,4),T(0,8,9,-5,0,15,22,2,0,6,28,5),T(0,8,10,-5,0,16,24,2,0,6,30,5),T(0,8,11,-5,0,17,26,2,0,6,32,5),T(0,9,11,-5,0,18,28,2,0,7,34,6),T(0,9,12,-6,0,19,29,2,0,7,36,6
2),T(0,10,13,-6,0,20,31,3,0,8,38,7),T(0,10,13,-6,0,21,33,3,0,8,40,7),T(0,10,14,-6,0,22,35,3,0,8,42,7),T(0,11,14,-7,0,23,36,3,0,9,44,8),T(0,11,15,-7,0,24,38,3,0,9,46,8)];var P=n(17646);const j={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},N=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function O(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:n={},transitions:u={},typography:d={}}=e,h=(0,i.A)(e,N);if(e.vars)throw new Error((0,s.A)(18));const f=S(n),p=(0,c.A)(e);let m=(0,a.A)(p,{mixins:(g=p.breakpoints,y=t,(0,r.A)({toolbar:{minHeight:56,[g.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[g.up("sm")]:{minHeight:64}}},y)),palette:f,shadows:I.slice(),typography:A(f,d),transitions:(0,P.Ay)(u),zIndex:(0,r.A)({},j)});var g,y;m=(0,a.A)(m,h);for(var v=arguments.length,b=new Array(v>1?v-1:0),w=1;w<v;w++)b[w-1]=arguments[w];return m=b.reduce(((e,t)=>(0,a.A)(e,t)),m),m.unstable_sxConfig=(0,r.A)({},o.A,null==h?void 0:h.unstable_sxConfig),m.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},m}const R=O()},5663:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="$$material"},90302:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e},i=e=>r(e)&&"classes"!==e},26855:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o});var r=n(12036),i=n(46122),s=n(5663),a=n(90302);const o=(0,r.Ay)({themeId:s.A,defaultTheme:i.A,rootShouldForwardProp:a.A})},28896:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});n(82483);var r=n(76599),i=n(46122),s=n(5663);function a(){const e=(0,r.A)(i.A);return e[s.A]||e}},38413:(e,t,n)=>{"use strict";n.d(t,{c:()=>i,q:()=>r});const r=e=>e.scrollTop;function i(e,t){var n,r;const{timeout:i,easing:s,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"===typeof i?i:i[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"===typeof s?s[t.mode]:s,delay:a.transitionDelay}}},71251:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(16590).A},24201:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(44390).A},10773:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});n(82483);var r=n(64122),i=n(56723);function s(e){const{styles:t,defaultTheme:n={}}=e,s="function"===typeof t?e=>{return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,i.jsx)(r.mL,{styles:s})}},38983:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});n(82483);var r=n(73151),i=n(36243),s=n(56723);let a;function o(e){const{injectFirst:t,children:n}=e;return t&&a?(0,s.jsx)(r.C,{value:a,children:n}):n}"object"===typeof document&&(a=(0,i.A)({key:"css",prepend:!0}))},83754:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalStyles:()=>w.A,StyledEngineProvider:()=>b.A,ThemeContext:()=>l.T,css:()=>v.AH,default:()=>x,internal_processStyles:()=>_,keyframes:()=>v.i7});var r=n(58168),i=n(82483),s=n(80326),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRen
2dering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=(0,s.A)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(73151),c=n(55066),u=n(3407),d=n(29404),h=o,f=function(e){return"theme"!==e},p=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?h:f},m=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.SF)(t,n,r),(0,d.s)((function(){return(0,c.sk)(t,n,r)})),null},y=function e(t,n){var s,a,o=t.__emotion_real===t,d=o&&t.__emotion_base||t;void 0!==n&&(s=n.label,a=n.target);var h=m(t,n,o),f=h||p(d),y=!f("as");return function(){var v=arguments,b=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==s&&b.push("label:"+s+";"),null==v[0]||void 0===v[0].raw)b.push.apply(b,v);else{b.push(v[0][0]);for(var w=v.length,x=1;x<w;x++)b.push(v[x],v[0][x])}var _=(0,l.w)((function(e,t,n){var r=y&&e.as||d,s="",o=[],m=e;if(null==e.theme){for(var v in m={},e)m[v]=e[v];m.theme=i.useContext(l.T)}"string"===typeof e.className?s=(0,c.Rk)(t.registered,o,e.className):null!=e.className&&(s=e.className+" ");var w=(0,u.J)(b.concat(o),t.registered,m);s+=t.key+"-"+w.name,void 0!==a&&(s+=" "+a);var x=y&&void 0===h?p(r):f,_={};for(var S in e)y&&"as"===S||x(S)&&(_[S]=e[S]);return _.className=s,n&&(_.ref=n),i.createElement(i.Fragment,null,i.createElement(g,{cache:t,serialized:w,isStringTag:"string"===typeof r}),i.createElement(r,_))}));return _.displayName=void 0!==s?s:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=d,_.__emotion_styles=b,_.__emotion_forwardProp=h,Object.defineProperty(_,"toString",{value:function(){return"."+a}}),_.withComponent=function(t,i){return e(t,(0,r.A)({},n,i,{shouldForwardProp:m(_,i,!0)})).apply(void 0,b)},_}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){y[e]=y(e)}));var v=n(64122),b=n(38983),w=n(10773);function x(e,t){return y(e,t)}const _=(e,t)=>
2{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},32610:(e,t,n)=>{"use strict";var r=n(24994);t.X4=f,t.e$=p,t.eM=function(e,t){const n=h(e),r=h(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=m;var i=r(n(37241)),s=r(n(71587));function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,s.default)(e,t,n)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(o(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,i.default)(9,e));let r,s=e.substring(t+1,e.length-1);if("color"===n){if(s=s.split(" "),r=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,i.default)(10,r))}else s=s.split(",");return s=s.map((e=>parseFloat(e))),{type:n,values:s,colorSpace:r}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function u(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function d(e){e=l(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)};let o="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(o+="a",c.push(t[3])),u({type:o,values:c})}function h(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function f(e,t){return e=l(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,u(e)}function p(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function m(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u(e)}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return h(e)>.5?p(e,t):m(e,t)}},12036:(e,t,n)=>{"use strict";var r=n(24994);t.Ay=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=m,rootShouldForwardProp:r=p,slotShouldForwardProp:l=p}=e,u=e=>(0,c.default)((0,i.default)({},e,{theme:y((0,i.default)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:f,skipVariantsResolver:m,skipSx:w,overridesResolver:x=v(g(f))}=c,_=(0,s.default)(c,h),S=void 0!==m?m:f&&"Root"!==f&&"root"!==f||!1,E=w||!1;let k=p;"Root"===f||"root"===f?k=r:f?k=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(k=void 0);const C=(0,a.default)(e,(0,i.default)({shouldForwardProp:k,label:undefined},_)),A=e=>"function"===typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?r=>b(e,(0,i.default)({},r,{theme:y({theme:r.theme,defaultTheme:n,themeId:t})})):e,T=function(r){let s=A(r);for(var a=arguments.length,o=new Array(a>1?a-1:0),l=1;l<a;l++)o[l-1]=arguments[l];const c=o?o.map(A):[];d&&x&&c.push((e=>{const r=y((0,i.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[d]||!r.components[d].styleOverrides)return null;const s=r.components[d].styleOverrides,a={};
2return Object.entries(s).forEach((t=>{let[n,s]=t;a[n]=b(s,(0,i.default)({},e,{theme:r}))})),x(e,a)})),d&&!S&&c.push((e=>{var r;const s=y((0,i.default)({},e,{defaultTheme:n,themeId:t}));return b({variants:null==s||null==(r=s.components)||null==(r=r[d])?void 0:r.variants},(0,i.default)({},e,{theme:s}))})),E||c.push(u);const h=c.length-o.length;if(Array.isArray(r)&&h>0){const e=new Array(h).fill("");s=[...r,...e],s.raw=[...r.raw,...e]}const f=C(s,...c);return e.muiName&&(f.muiName=e.muiName),f};return C.withConfig&&(T.withConfig=C.withConfig),T}};var i=r(n(94634)),s=r(n(54893)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}(n(83754)),o=n(15546),l=(r(n(61006)),r(n(80888)),r(n(47837))),c=r(n(3154));const u=["ownerState"],d=["variants"],h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const m=(0,l.default)(),g=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function y(e){let{defaultTheme:t,theme:n,themeId:r}=e;return i=n,0===Object.keys(i).length?t:n[r]||n;var i}function v(e){return e?(t,n)=>n[e]:null}function b(e,t){let{ownerState:n}=t,r=(0,s.default)(t,u);const a="function"===typeof e?e((0,i.default)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap((e=>b(e,(0,i.default)({ownerState:n},r))));if(a&&"object"===typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,s.default)(a,d);return e.forEach((e=>{let s=!0;"function"===typeof e.props?s=e.props((0,i.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(s=!1)})),s&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,i.default)({ownerState:n},r,n)):e.style))})),t}return a}},25750:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,b:()=>o});var r=n(82483),i=n(91366),s=n(56723);const a=r.createContext(void 0);function o(e){let{props:t,name:n}=e;return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const s=t.components[n];return s.defaultProps?(0,i.A)(s.defaultProps,r):s.styleOverrides||s.variants?r:(0,i.A)(s,r)}({props:t,name:n,theme:{components:r.useContext(a)}})}const l=function(e){let{value:t,children:n}=e;return(0,s.jsx)(a.Provider,{value:t,children:n})}},98871:(e,t,n)=>{"use strict";n.d(t,{EU:()=>o,NI:()=>a,iZ:()=>c,kW:()=>u,vf:()=>l,zu:()=>i});var r=n(31460);const i={xs:0,sm:600,md:900,lg:1200,xl:1536},s={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i[e]}px)`};function a(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||s;return t.reduce(((r,i,s)=>(r[e.up(e.keys[s])]=n(t[s]),r)),{})}if("object"===typeof t){const e=r.breakpoints||s;return Object.keys(t).reduce(((r,s)=>{if(-1!==Object.keys(e.values||i).indexOf(s)){r[e.up(s)]=n(t[s],s)}else{const e=s;r[e]=t[e]}return r}),{})}return n(t)}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e){const t=o(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];const a=[t,...i].reduce(((e,t)=>(0,r.A)(e,t)),{});return l(Object.keys(t),a)}function u(e){let{values:t,breakpoints:n,base:r}=e;const i=r||function(e,t){if("object"!==typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(t,n),s=Object.keys(i);if(0===s.length)return t;let a;return s.reduce(((e,n,r)=>(Array.isArray(t)?(e[n]=null!=t[r]?t[r]:t[a],a=r):"object"===typeof t?(e[n]=null!=t[n]?t[n]:t[a],a=n):e[n]=t,e)),{})}}
2,36039:(e,t,n)=>{"use strict";function r(e,t){const n=this;if(n.vars&&"function"===typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}n.d(t,{A:()=>r})},27749:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(98587),i=n(58168);const s=["values","unit","step"],a=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,i.A)({},e,{[t.key]:t.val})),{})};function o(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5}=e,l=(0,r.A)(e,s),c=a(t),u=Object.keys(c);function d(e){return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n})`}function h(e){return`@media (max-width:${("number"===typeof t[e]?t[e]:e)-o/100}${n})`}function f(e,r){const i=u.indexOf(r);return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"===typeof t[u[i]]?t[u[i]]:r)-o/100}${n})`}return(0,i.A)({keys:u,values:c,up:d,down:h,between:f,only:function(e){return u.indexOf(e)+1<u.length?f(e,u[u.indexOf(e)+1]):d(e)},not:function(e){const t=u.indexOf(e);return 0===t?d(u[1]):t===u.length-1?h(u[t]):f(e,u[u.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},l)}},62524:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(81392);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,r.LX)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0===n.length?[1]:n).map((e=>{const n=t(e);return"number"===typeof n?`${n}px`:n})).join(" ")};return n.mui=!0,n}},40254:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(58168),i=n(98587),s=n(31460),a=n(27749);const o={borderRadius:4};var l=n(62524),c=n(22748),u=n(16222),d=n(36039);const h=["breakpoints","palette","spacing","shape"];const f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:f,shape:p={}}=e,m=(0,i.A)(e,h),g=(0,a.A)(t),y=(0,l.A)(f);let v=(0,s.A)({breakpoints:g,direction:"ltr",components:{},palette:(0,r.A)({mode:"light"},n),spacing:y,shape:(0,r.A)({},o,p)},m);v.applyStyles=d.A;for(var b=arguments.length,w=new Array(b>1?b-1:0),x=1;x<b;x++)w[x-1]=arguments[x];return v=w.reduce(((e,t)=>(0,s.A)(e,t)),v),v.unstable_sxConfig=(0,r.A)({},u.A,null==m?void 0:m.unstable_sxConfig),v.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},v}},47837:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,private_createBreakpoints:()=>i.A,unstable_applyStyles:()=>s.A});var r=n(40254),i=n(27749),s=n(36039)},63351:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(31460);const i=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},81392:(e,t,n)=>{"use strict";n.d(t,{LX:()=>p,MA:()=>f,_W:()=>m,Lc:()=>v,Ms:()=>b});var r=n(98871),i=n(46858),s=n(63351);const a={m:"margin",p:"padding"},o={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=a[t],i=o[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],h=[...u,...d];function f(e,t,n,r){var s;const a=null!=(s=(0,i.Yn)(e,t,!1))?s:n;return"number"===typeof a?e=>"string"===typeof e?e:a*e:Array.isArray(a)?e=>"string"===typeof e?e:a[e]:"function"===typeof a?a:()=>{}}function p(e){return f(e,"spacing",8)}function m(e,t){if("string"===typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:`-${n}`}function g(e,t,n,i){if(-1===t.indexOf(n))return null;const s=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=m(t,n),e)),{})}(c(n),i),a=e[n];return(0,r.NI)(e,a,s)}function y(e,t){const n=p(e.theme);return Object.keys(e).map((r=>g(e,t,r,n))).reduce(s.A,{})}function v(e){return y(e,u)}function b(e){return y(e,d)}function w(e){return y(e,h)}
vendor: 4,915 bytes, line 2
2v.propTypes={},v.filterProps=u,b.propTypes={},b.filterProps=d,w.propTypes={},w.filterProps=h},46858:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o,BO:()=>a,Yn:()=>s});var r=n(16590),i=n(98871);function s(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,n){let r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||i:s(e,n)||i,t&&(r=t(r,i,e)),r}const o=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=s(e.theme,o)||{};return(0,i.NI)(e,c,(e=>{let i=a(u,l,e);return e===i&&"string"===typeof e&&(i=a(u,l,`${t}${"default"===e?"":(0,r.A)(e)}`,e)),!1===n?i:{[n]:i}}))};return c.propTypes={},c.filterProps=[t],c}},16222:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=n(81392),i=n(46858),s=n(63351);const a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),i=e=>Object.keys(e).reduce(((t,n)=>r[n]?(0,s.A)(t,r[n](e)):t),{});return i.propTypes={},i.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),i};var o=n(98871);function l(e){return"number"!==typeof e?e:`${e}px solid`}function c(e,t){return(0,i.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),h=c("borderRight",l),f=c("borderBottom",l),p=c("borderLeft",l),m=c("borderColor"),g=c("borderTopColor"),y=c("borderRightColor"),v=c("borderBottomColor"),b=c("borderLeftColor"),w=c("outline",l),x=c("outlineColor"),_=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,o.NI)(e,e.borderRadius,n)}return null};_.propTypes={},_.filterProps=["borderRadius"];a(u,d,h,f,p,m,g,y,v,b,_,w,x);const S=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r._W)(t,e)});return(0,o.NI)(e,e.gap,n)}return null};S.propTypes={},S.filterProps=["gap"];const E=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,o.NI)(e,e.columnGap,n)}return null};E.propTypes={},E.filterProps=["columnGap"];const k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,o.NI)(e,e.rowGap,n)}return null};k.propTypes={},k.filterProps=["rowGap"];a(S,E,k,(0,i.Ay)({prop:"gridColumn"}),(0,i.Ay)({prop:"gridRow"}),(0,i.Ay)({prop:"gridAutoFlow"}),(0,i.Ay)({prop:"gridAutoColumns"}),(0,i.Ay)({prop:"gridAutoRows"}),(0,i.Ay)({prop:"gridTemplateColumns"}),(0,i.Ay)({prop:"gridTemplateRows"}),(0,i.Ay)({prop:"gridTemplateAreas"}),(0,i.Ay)({prop:"gridArea"}));function C(e,t){return"grey"===t?t:e}a((0,i.Ay)({prop:"color",themeKey:"palette",transform:C}),(0,i.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:C}),(0,i.Ay)({prop:"backgroundColor",themeKey:"palette",transform:C}));function A(e){return e<=1&&0!==e?100*e+"%":e}const T=(0,i.Ay)({prop:"width",transform:A}),I=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||o.zu[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:A(t)}};return(0,o.NI)(e,e.maxWidth,t)}return null};I.filterProps=["maxWidth"];const P=(0,i.Ay)({prop:"minWidth",transform:A}),j=(0,i.Ay)({prop:"height",transform:A}),N=(0,i.Ay)({prop:"maxHeight",transform:A}),O=(0,i.Ay)({prop:"minHeight",transform:A}),R=((0,i.Ay)({prop:"size",cssProperty:"width",transform:A}),(0,i.Ay)({prop:"size",cssProperty:"height",transform:A}),a(T,I,P,j,N,O,(0,i.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:_},color:{themeKey:"palette",transform:C},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:C},backgroundColor:{themeKey:"palette",transform:C},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms}
2,paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:S},rowGap:{style:k},columnGap:{style:E},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:A},maxWidth:{style:I},minWidth:{transform:A},height:{transform:A},maxHeight:{transform:A},minHeight:{transform:A},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},49770:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(58168),i=n(98587),s=n(31460),a=n(16222);const o=["sx"],l=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:a.A;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function c(e){const{sx:t}=e,n=(0,i.A)(e,o),{systemProps:a,otherProps:c}=l(n);let u;return u=Array.isArray(t)?[a,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,s.Q)(e)?(0,r.A)({},a,e):a}:(0,r.A)({},a,t),(0,r.A)({},c,{sx:u})}},3154:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,extendSxProp:()=>i.A,unstable_createStyleFunctionSx:()=>r.k,unstable_defaultSxConfig:()=>s.A});var r=n(22748),i=n(49770),s=n(16222)},22748:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,k:()=>l});var r=n(16590),i=n(63351),s=n(46858),a=n(98871),o=n(16222);function l(){function e(e,t,n,i){const o={[e]:t,theme:n},l=i[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:h}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const f=(0,s.Yn)(n,u)||{};if(h)return h(o);return(0,a.NI)(o,t,(t=>{let n=(0,s.BO)(f,d,t);return t===n&&"string"===typeof t&&(n=(0,s.BO)(f,d,`${e}${"default"===t?"":(0,r.A)(t)}`,t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:s,theme:l={}}=n||{};if(!s)return null;const c=null!=(r=l.unstable_sxConfig)?r:o.A;function u(n){let r=n;if("function"===typeof n)r=n(l);else if("object"!==typeof n)return n;if(!r)return null;const s=(0,a.EU)(l.breakpoints),o=Object.keys(s);let u=s;return Object.keys(r).forEach((n=>{const s=(o=r[n],d=l,"function"===typeof o?o(d):o);var o,d;if(null!==s&&void 0!==s)if("object"===typeof s)if(c[n])u=(0,i.A)(u,e(n,s,l,c));else{const e=(0,a.NI)({theme:l},s,(e=>({[n]:e})));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),i=new Set(r);return t.every((e=>i.size===Object.keys(e).length))}(e,s)?u=(0,i.A)(u,e):u[n]=t({sx:s,theme:l})}else u=(0,i.A)(u,e(n,s,l,c))})),(0,a.vf)(o,u)}return Array.isArray(s)?s.map(u):u(s)}}const c=l();c.filterProps=["sx"];const u=c},76599:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(40254),i=n(77162);const s=(0,r.A)();const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return(0,i.A)(e)}}
2,77162:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(82483),i=n(73151);const s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=r.useContext(i.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},31354:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r=e=>e,i=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},64991:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(58168);const i=function(e){return"string"===typeof e};const s=function(e,t,n){return void 0===e||i(e)?t:(0,r.A)({},t,{ownerState:(0,r.A)({},t.ownerState,n)})}},16590:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(48172);function i(e){if("string"!==typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},61006:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(16590)},13076:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,n))}},71587:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(13076)},97266:(e,t,n)=>{"use strict";function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{A:()=>r})},11256:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t)=>null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}),(()=>{}))}n.d(t,{A:()=>r})},31460:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,Q:()=>i});var r=n(58168);function i(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function s(e){if(!i(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=s(e[n])})),t}function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const o=n.clone?(0,r.A)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((r=>{i(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&i(e[r])?o[r]=a(e[r],t[r],n):n.clone?o[r]=i(t[r])?s(t[r]):t[r]:o[r]=t[r]})),o}},15546:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,isPlainObject:()=>r.Q});var r=n(31460)},39090:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}},48172:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{A:()=>r})},37241:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(48172)},4692:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(31354);const i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const s=i[t];return s?`${n}-${s}`:`${r.A.generate(e)}-${t}`}},90292:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(4692);function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const i={};return t.forEach((t=>{i[t]=(0,r.Ay)(e,t,n)})),i}},80888:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,getFunctionName:()=>s});var r=n(56237);const i=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function s(e){const t=`${e}`.match(i);return t&&t[1]||""}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||s(e)||t}function o(e,t,n){const r=a(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function l(e){if(null!=e){if("string"===typeof e)return e;if("function"===typeof e)return a(e,"Component");if("object"===typeof e)switch(e.$$typeof){case r.ForwardRef:return o(e,e.render,"ForwardRef");case r.Memo:return o(e,e.type,"memo");default:return}}}},46100:(e,t,n)=>{"use strict";function r(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}n.d(t,{A:()=>r})},81425:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(58168);function i(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=i(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const s=function(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=i(e))&&(r&&(r+=" "),r+=t);return r};var a=n(39090);const o=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>
2!(t.match(/^on[A-Z]/)&&"function"===typeof e[t]))).forEach((n=>{t[n]=e[n]})),t};const l=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:l,className:c}=e;if(!t){const e=s(null==n?void 0:n.className,c,null==l?void 0:l.className,null==i?void 0:i.className),t=(0,r.A)({},null==n?void 0:n.style,null==l?void 0:l.style,null==i?void 0:i.style),a=(0,r.A)({},n,l,i);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const u=(0,a.A)((0,r.A)({},l,i)),d=o(i),h=o(l),f=t(u),p=s(null==f?void 0:f.className,null==n?void 0:n.className,c,null==l?void 0:l.className,null==i?void 0:i.className),m=(0,r.A)({},null==f?void 0:f.style,null==n?void 0:n.style,null==l?void 0:l.style,null==i?void 0:i.style),g=(0,r.A)({},f,n,h,d);return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:f.ref}}},62644:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},42660:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(62644);function i(e){return(0,r.A)(e).defaultView||window}},77140:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t,n){return"function"===typeof e?e(t,n):e}},91366:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(58168);function i(e,t){const n=(0,r.A)({},t);return Object.keys(e).forEach((s=>{if(s.toString().match(/^(components|slots)$/))n[s]=(0,r.A)({},e[s],n[s]);else if(s.toString().match(/^(componentsProps|slotProps)$/)){const a=e[s]||{},o=t[s];n[s]={},o&&Object.keys(o)?a&&Object.keys(a)?(n[s]=(0,r.A)({},o),Object.keys(a).forEach((e=>{n[s][e]=i(a[e],o[e])}))):n[s]=o:n[s]=a}else void 0===n[s]&&(n[s]=e[s])})),n}},12548:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},60344:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82483);const i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect},24710:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(82483),i=n(60344);const s=function(e){const t=r.useRef(e);return(0,i.A)((()=>{t.current=e})),r.useRef((function(){return(0,t.current)(...arguments)})).current}},44390:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(82483),i=n(12548);function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,i.A)(t,e)}))}),t)}},51348:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>o});var i=n(82483);let s=0;const a=(r||(r=n.t(i,2)))["useId".toString()];function o(e){if(void 0!==a){const t=a();return null!=e?e:t}return function(e){const[t,n]=i.useState(e),r=e||t;return i.useEffect((()=>{null==t&&(s+=1,n(`mui-${s}`))}),[t]),r}(e)}},25564:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(58168),i=n(98587),s=n(44390),a=n(64991),o=n(81425),l=n(77140);const c=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];const u=function(e){var t;const{elementType:n,externalSlotProps:u,ownerState:d,skipResolvingSlotProps:h=!1}=e,f=(0,i.A)(e,c),p=h?{}:(0,l.A)(u,d),{props:m,internalRef:g}=(0,o.A)((0,r.A)({},f,{externalSlotProps:p})),y=(0,s.A)(g,null==p?void 0:p.ref,null==(t=e.additionalProps)?void 0:t.ref);return(0,a.A)(n,(0,r.A)({},m,{ref:y}),d)}},89585:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function y(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case s:case o:case a:case h:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case p:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.Memo=p},56237:(e,t,n)=>{"use strict";e.exports=n(89585)},81083:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var i;n.d(t,{AO:()=>d,Gh:()=>R,HS:()=>L,Oi:()=>o,Rr:()=>h,pX:()=>V,pb:()=>P,rc:()=>i,tH:()=>U,ue:()=>m,yD:()=>O,zR:()=>a}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(i||(i={}));const s="popstate";function a(e){return void 0===e&&(e={}),f((function(e,t){let{pathname:n,search:r,hash:i}=e.location;return u("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:d(t)}),null,e)}function o(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function l(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function c(e,t){return{usr:e.state,key:e.key,idx:t}}function u(e,t,n,i){return void 0===n&&(n=null),r({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?h(t):t,{state:n,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function d(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function h(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function f(e,t,n,a){void 0===a&&(a={});let{window:l=document.defaultView,v5Compat:h=!1}=a,f=l.history,p=i.Pop,m=null,g=y();function y(){return(f.state||{idx:null}).idx}function v(){p=i.Pop;let e=y(),t=null==e?null:e-g;g=e,m&&m({action:p,location:w.location,delta:t})}function b(e){let t="null"!==l.location.origin?l.location.origin:l.location.href,n="string"===typeof e?e:d(e);return n=n.replace(/ $/,"%20"),o(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,f.replaceState(r({},f.state,{idx:g}),""));let w={get action(){return p},get location(){return e(l,f)},listen(e){if(m)throw new Error("A history only accepts one active listener");return l.addEventListener(s,v),m=e,()=>{l.removeEventListener(s,v),m=null}},createHref:e=>t(l,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){p=i.Push;let r=u(w.location,e,t);n&&n(r,e),g=y()+1;let s=c(r,g),a=w.createHref(r);try{f.pushState(s,"",a)}catch(o){if(o instanceof DOMException&&"DataCloneError"===o.name)throw o;l.location.assign(a)}h&&m&&m({action:p,location:w.location,delta:1})},replace:function(e,t){p=i.Replace;let r=u(w.location,e,t);n&&n(r,e),g=y();let s=c(r,g),a=w.createHref(r);f.replaceState(s,"",a),h&&m&&m({action:p,location:w.location,delta:0})},go:e=>f.go(e)};return w}var p;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(p||(p={}));
2new Set(["lazy","caseSensitive","path","id","index","children"]);function m(e,t,n){return void 0===n&&(n="/"),g(e,t,n,!1)}function g(e,t,n,r){let i=P(("string"===typeof t?h(t):t).pathname||"/",n);if(null==i)return null;let s=y(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(s);let a=null;for(let o=0;null==a&&o<s.length;++o){let e=I(i);a=A(s[o],e,r)}return a}function y(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let i=(e,i,s)=>{let a={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(o(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let l=L([r,a.relativePath]),c=n.concat(a);e.children&&e.children.length>0&&(o(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),y(e.children,t,c,l)),(null!=e.path||e.index)&&t.push({path:l,score:C(l,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of v(e.path))i(e,t,r);else i(e,t)})),t}function v(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(0===r.length)return i?[s,""]:[s];let a=v(r.join("/")),o=[];return o.push(...a.map((e=>""===e?s:[s,e].join("/")))),i&&o.push(...a),o.map((t=>e.startsWith("/")&&""===t?"/":t))}const b=/^:[\w-]+$/,w=3,x=2,_=1,S=10,E=-2,k=e=>"*"===e;function C(e,t){let n=e.split("/"),r=n.length;return n.some(k)&&(r+=E),t&&(r+=x),n.filter((e=>!k(e))).reduce(((e,t)=>e+(b.test(t)?w:""===t?_:S)),r)}function A(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,i={},s="/",a=[];for(let o=0;o<r.length;++o){let e=r[o],l=o===r.length-1,c="/"===s?t:t.slice(s.length)||"/",u=T({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=T({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;
2Object.assign(i,u.params),a.push({params:i,pathname:L([s,u.pathname]),pathnameBase:D(L([s,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(s=L([s,u.pathnameBase]))}return a}function T(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);l("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let s=new RegExp(i,t?void 0:"i");return[s,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=o[n]||"";a=s.slice(0,s.length-e.length).replace(/(.)\/+$/,"$1")}const l=o[n];return e[r]=i&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:s,pathnameBase:a,pattern:e}}function I(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return l(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function P(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function j(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function N(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function O(e,t){let n=N(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function R(e,t,n,i){let s;void 0===i&&(i=!1),"string"===typeof e?s=h(e):(s=r({},e),o(!s.pathname||!s.pathname.includes("?"),j("?","pathname","search",s)),o(!s.pathname||!s.pathname.includes("#"),j("#","pathname","hash",s)),o(!s.search||!s.search.includes("#"),j("#","search","hash",s)));let a,l=""===e||""===s.pathname,c=l?"/":s.pathname;if(null==c)a=n;else{let e=t.length-1;if(!i&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;s.pathname=t.join("/")}a=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"===typeof e?h(e):e,s=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:s,search:M(r),hash:F(i)}}(s,a),d=c&&"/"!==c&&c.endsWith("/"),f=(l||"."===c)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!f||(u.pathname+="/"),u}const L=e=>e.join("/").replace(/\/\/+/g,"/"),D=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),M=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",F=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class U extends Error{}function V(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const B=["post","put","patch","delete"],z=(new Set(B),["get",...B]);new Set(z),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred")},48109:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(n){return!1}}function o(e,t,n){var i={};return n.isMergeableObject(e)&&s(e).forEach((function(t){i[t]=r(e[t],n)})),s(t).forEach((function(s){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}
2)(e,s)||(a(e,s)&&n.isMergeableObject(t[s])?i[s]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"===typeof n?n:l}(s,n)(e[s],t[s],n):i[s]=r(t[s],n))})),i}function l(e,n,s){(s=s||{}).arrayMerge=s.arrayMerge||i,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?s.arrayMerge(e,n,s):o(e,n,s):r(n,s)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},60315:(e,t,n)=>{"use strict";var r=n(84643),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(e){return r.isMemo(e)?a:o[e.$$typeof]||i}o[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=f(n);i&&i!==p&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var o=l(t),m=l(n),g=0;g<a.length;++g){var y=a[g];if(!s[y]&&(!r||!r[y])&&(!m||!m[y])&&(!o||!o[y])){var v=h(n,y);try{c(t,y,v)}catch(b){}}}}return t}},48423:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,o=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case s:case o:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case h:case g:case m:case l:return e;default:return t}}case i:return t}}}function _(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=s,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=o,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return _(e)||x(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===s},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===o},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===s||e===d||e===o||e===a||e===f||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=x},84643:(e,t,n)=>{"use strict";e.exports=n(48423)},15068:e=>{function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function n(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}e.exports=function(e,r,i){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");"function"===typeof r&&(i=r,r={}),r=r||{},i=i||function(){},a.type=r.type||"text/javascript",a.charset=r.charset||"utf8",a.async=!("async"in r)||!!r.async,a.src=e,r.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(a,r.attrs),r.text&&(a.text=""+r.text),("onload"in a?t:n)(a,i),a.onload||t(a,i),s.appendChild(a)}},6570:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function i(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(i=e[n],s=t[n],!(i===s||r(i)&&r(s)))return!1;var i,s;return!0}const s=function(e,t){var n;void 0===t&&(t=i);var r,s=[],a=!1;return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return a&&n===this&&t(i,s)||(r=e.apply(this,i),a=!0,n=this,s=i),r}}}
vendor: 5,256 bytes, line 2
2,59993:(e,t,n)=>{"use strict";var r=n(85730);function i(){}function s(){}s.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,s,a){if(a!==r){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:i};return n.PropTypes=n,n}},16405:(e,t,n)=>{e.exports=n(59993)()},85730:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},75914:(e,t,n)=>{"use strict";var r=n(82483),i=n(83557);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,o={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(o[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},p={};function m(e,t,n,r,i,s,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(p,e)||!d.call(f,e)&&(h.test(e)?p[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
2-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),_=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),A=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var O=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function L(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=R&&e[R]||e["@@iterator"])?e:null}var D,M=Object.assign;function F(e){if(void 0===D)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var U=!1;function V(e,t){if(!e||U)return"";U=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),s=r.stack.split("\n"),a=i.length-1,o=s.length-1;1<=a&&0<=o&&i[a]!==s[o];)o--;for(;1<=a&&0<=o;a--,o--)if(i[a]!==s[o]){if(1!==a||1!==o)do{if(a--,0>--o||i[a]!==s[o]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=o);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function B(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 1:return e=V(e.type,!0);default:return""}}function z(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case S:return"Fragment";case _:return"Portal";case k:return"Profiler";case E:return"StrictMode";case I:return"Suspense";case P:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return z(e(t))}catch(n){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,s.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return M({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Y(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return M({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(s(92));
vendor: 23,828 bytes, line 2
2if(te(n)){if(1<n.length)throw Error(s(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function se(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function oe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?oe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(fe).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ye=M({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(s(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,Se=null,Ee=null;function ke(e){if(e=bi(e)){if("function"!==typeof _e)throw Error(s(280));var t=e.stateNode;t&&(t=xi(t),_e(e.stateNode,e.type,t))}}function Ce(e){Se?Ee?Ee.push(e):Ee=[e]:Se=e}function Ae(){if(Se){var e=Se,t=Ee;if(Ee=Se=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function Te(e,t){return e(t)}function Ie(){}var Pe=!1;function je(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Te(e,t,n)}finally{Pe=!1,(null!==Se||null!==Ee)&&(Ie(),Ae())}}function Ne(e,t){var n=e.stateNode;if(null===n)return null;var r=xi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(s(231,t,typeof n));return n}var Oe=!1;if(u)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(ue){Oe=!1}function Le(e,t,n,r,i,s,a,o,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var De=!1,Me=null,Fe=!1,Ue=null,Ve={onError:function(e){De=!0,Me=e}};function Be(e,t,n,r,i,s,a,o,l){De=!1,Me=null,Le.apply(Ve,arguments)}function ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(ze(e)!==e)throw Error(s(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return He(i),e;if(a===r)return He(i),t;a=a.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=a;break}if(l===r){o=!0,r=i,n=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===n){o=!0,n=a,r=i;break}if(l===r){o=!0,r=a,n=i;break}l=l.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Ke=i.unstable_scheduleCallback,Ge=i.unstable_cancelCallback,Qe=i.unstable_shouldYield,Xe=i.unstable_requestPaint,Ye=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,Ze=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,st=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(ot(e)/lt|0)|0},ot=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,a=268435455&n;if(0!==a){var o=a&~i;0!==o?r=dt(o):0!==(s&=a)&&(r=dt(s))}else 0!==(a=n&~i)?r=dt(a):0!==s&&(r=dt(s));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(s=t&-t)||16===i&&0!==(4194240&s)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,_t,St,Et,kt,Ct=!1,At=[],Tt=null,It=null,Pt=null,jt=new Map,Nt=new Map,Ot=[],Rt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":It=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":jt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nt.delete(t.pointerId)}}function Dt(e,t,n,r,i,s){return null===e||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&_t(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Mt(e){var t=vi(e.target);if(null!==t){var n=ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void kt(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&_t(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ut(e,t,n){Ft(e)&&n.delete(t)}function Vt(){Ct=!1,null!==Tt&&Ft(Tt)&&(Tt=null),null!==It&&Ft(It)&&(It=null),null!==Pt&&Ft(Pt)&&(Pt=null),jt.forEach(Ut),Nt.forEach(Ut)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Vt)))}function zt(e){function t(t){return Bt(t,e)}if(0<At.length){Bt(At[0],e);for(var n=1;n<At.length;n++){var r=At[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Bt(Tt,e),null!==It&&Bt(It,e),null!==Pt&&Bt(Pt,e),jt.forEach(t),Nt.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)Mt(n),null===n.blockedOn&&Ot.shift()}var $t=w.ReactCurrentBatchConfig,Ht=!0;function qt(e,t,n,r){var i=bt,s=$t.transition;$t.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=i,$t.transition=s}}function Wt(e,t,n,r){var i=bt,s=$t.transition;$t.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=i,$t.transition=s}}function Kt(e,t,n,r){if(Ht){var i=Qt(e,t,n,r);if(null===i)Hr(e,t,r,Gt,n),Lt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Tt=Dt(Tt,e,t,n,r,i),!0;case"dragenter":return It=Dt(It,e,t,n,r,i),!0;case"mouseover":return Pt=Dt(Pt,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return jt.set(s,Dt(jt.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Nt.set(s,Dt(Nt.get(s)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Lt(e,r),4&t&&-1<Rt.indexOf(e)){for(;null!==i;){var s=bi(i);if(null!==s&&xt(s),null===(s=Qt(e,t,n,r))&&Hr(e,t,r,Gt,n),s===i)break;i=s}null!==i&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Gt=null;function Qt(e,t,n,r){if(Gt=null,null!==(e=vi(e=xe(r))))if(null===(t=ze(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,i="value"in Yt?Yt.value:Yt.textContent,s=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[s-t];t++);return Zt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function sn(e){function t(t,n,r,i,s){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=s,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return M(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,on,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=sn(cn),dn=M({},cn,{view:0,detail:0}),hn=sn(dn),fn=M({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,on=e.screenY-ln.screenY):on=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:on}}),pn=sn(fn),mn=sn(M({},fn,{dataTransfer:0})),gn=sn(M({},dn,{relatedTarget:0})),yn=sn(M({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=M({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=sn(vn),wn=sn(M({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function kn(){return En}var Cn=M({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=sn(Cn),Tn=sn(M({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),In=sn(M({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),Pn=sn(M({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),jn=M({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nn=sn(jn),On=[9,13,27,32],Rn=u&&"CompositionEvent"in window,Ln=null;u&&"documentMode"in document&&(Ln=document.documentMode);var Dn=u&&"TextEvent"in window&&!Ln,Mn=u&&(!Rn||Ln&&8<Ln&&11>=Ln),Fn=String.fromCharCode(32),Un=!1;function Vn(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1;var $n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function qn(e,t,n,r){Ce(r),0<(t=Wr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Kn=null;function Gn(e){Fr(e,0)}function Qn(e){if(K(wi(e)))return e}function Xn(e,t){if("change"===e)return t}var Yn=!1;if(u){var Jn;if(u){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"===typeof er.oninput}Jn=Zn}else Jn=!1;Yn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Wn&&(Wn.detachEvent("onpropertychange",nr),Kn=Wn=null)}function nr(e){if("value"===e.propertyName&&Qn(Kn)){var t=[];qn(t,Kn,e,xe(e)),je(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(Wn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Kn)}function sr(e,t){if("click"===e)return Qn(t)}function ar(e,t){if("input"===e||"change"===e)return Qn(t)}var or="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(or(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!d.call(t,i)||!or(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=hr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=void 0===r.end?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=ur(n,s);var a=ur(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,vr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==G(r)||("selectionStart"in(r=gr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=Wr(yr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _r={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Sr={},Er={};function kr(e){if(Sr[e])return Sr[e];if(!_r[e])return e;var t,n=_r[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return Sr[e]=n[t];return e}u&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete _r.animationend.animation,delete _r.animationiteration.animation,delete _r.animationstart.animation),"TransitionEvent"in window||delete _r.transitionend.transition);var Cr=kr("animationend"),Ar=kr("animationiteration"),Tr=kr("animationstart"),Ir=kr("transitionend"),Pr=new Map,jr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Nr(e,t){Pr.set(e,t),l(t,[e])}for(var Or=0;Or<jr.length;Or++){var Rr=jr[Or];Nr(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Nr(Cr,"onAnimationEnd"),Nr(Ar,"onAnimationIteration"),Nr(Tr,"onAnimationStart"),Nr("dblclick","onDoubleClick"),Nr("focusin","onFocus"),Nr("focusout","onBlur"),Nr(Ir,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lr));function Mr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,o,l,c){if(Be.apply(this,arguments),De){if(!De)throw Error(s(198));var u=Me;De=!1,Me=null,Fe||(Fe=!0,Ue=u)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var a=r.length-1;0<=a;a--){var o=r[a],l=o.instance,c=o.currentTarget;if(o=o.listener,l!==s&&i.isPropagationStopped())break e;Mr(i,o,c),s=l}else for(a=0;a<r.length;a++){if(l=(o=r[a]).instance,c=o.currentTarget,o=o.listener,l!==s&&i.isPropagationStopped())break e;Mr(i,o,c),s=l}}}if(Fe)throw e=Ue,Fe=!1,Ue=null,e}function Ur(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function Vr(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function zr(e){if(!e[Br]){e[Br]=!0,a.forEach((function(t){"selectionchange"!==t&&(Dr.has(t)||Vr(t,!1,e),Vr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,Vr("selectionchange",!1,t))}}function $r(e,t,n,r){switch(Xt(t)){case 1:var i=qt;break;case 4:i=Wt;break;default:i=Kt}n=i.bind(null,t,n,e),i=void 0,!Oe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,i){var s=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var o=r.stateNode.containerInfo;if(o===i||8===o.nodeType&&o.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==o;){if(null===(a=vi(o)))return;if(5===(l=a.tag)||6===l){r=s=a;continue e}o=o.parentNode}}r=r.return}je((function(){var r=s,i=xe(n),a=[];e:{var o=Pr.get(e);if(void 0!==o){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=An;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=In;break;case Cr:case Ar:case Tr:l=yn;break;case Ir:l=Pn;break;case"scroll":l=hn;break;case"wheel":l=Nn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var u=0!==(4&t),d=!u&&"scroll"===e,h=u?null!==o?o+"Capture":null:o;u=[];for(var f,p=r;null!==p;){var m=(f=p).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==h&&(null!=(m=Ne(p,h))&&u.push(qr(p,m,f)))),d)break;p=p.return}0<u.length&&(o=new l(o,c,null,n,i),a.push({event:o,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(o="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!vi(c)&&!c[pi])&&(l||o)&&(o=i.window===i?i:(o=i.ownerDocument)?o.defaultView||o.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?vi(c):null)&&(c!==(d=ze(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=pn,m="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tn,m="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==l?o:wi(l),f=null==c?o:wi(c),(o=new u(m,p+"leave",l,n,i)).target=d,o.relatedTarget=f,m=null,vi(i)===r&&((u=new u(h,p+"enter",c,n,i)).target=f,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(h=c,p=0,f=u=l;f;f=Kr(f))p++;for(f=0,m=h;m;m=Kr(m))f++;for(;0<p-f;)u=Kr(u),p--;for(;0<f-p;)h=Kr(h),f--;for(;p--;){if(u===h||null!==h&&u===h.alternate)break e;u=Kr(u),h=Kr(h)}u=null}else u=null;null!==l&&Gr(a,o,l,u,!1),null!==c&&null!==d&&Gr(a,d,c,u,!0)}if("select"===(l=(o=r?wi(r):window).nodeName&&o.nodeName.toLowerCase())||"input"===l&&"file"===o.type)var g=Xn;else if(Hn(o))if(Yn)g=ar;else{g=ir;var y=rr}else(l=o.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(g=sr);switch(g&&(g=g(e,r))?qn(a,g,n,i):(y&&y(e,o,r),"focusout"===e&&(y=o._wrapperState)&&y.controlled&&"number"===o.type&&ee(o,"number",o.value)),y=r?wi(r):window,e){case"focusin":(Hn(y)||"true"===y.contentEditable)&&(gr=y,yr=r,vr=null);break;case"focusout":vr=yr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,i)}var v;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else zn?Vn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(zn||"onCompositionStart"!==b?"onCompositionEnd"===b&&zn&&(v=en()):(Jt="value"in(Yt=i)?Yt.value:Yt.textContent,zn=!0)),0<(y=Wr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=Bn(n))&&(b.data=v))),(v=Dn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Un=!0,Fn);case"textInput":return(e=t.data)===Fn&&Un?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Rn&&Vn(e,t)?(e=en(),Zt=Jt=Yt=null,zn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;
vendor: 87,040 bytes, line 2
2case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Wr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}Fr(a,t)}))}function qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,s=i.stateNode;5===i.tag&&null!==s&&(i=s,null!=(s=Ne(e,n))&&r.unshift(qr(e,s,i)),null!=(s=Ne(e,t))&&r.push(qr(e,s,i))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,i){for(var s=t._reactName,a=[];null!==n&&n!==r;){var o=n,l=o.alternate,c=o.stateNode;if(null!==l&&l===r)break;5===o.tag&&null!==c&&(o=c,i?null!=(l=Ne(n,s))&&a.unshift(qr(n,l,o)):i||null!=(l=Ne(n,s))&&a.push(qr(n,l,o))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Qr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Yr(e){return("string"===typeof e?e:""+e).replace(Qr,"\n").replace(Xr,"")}function Jr(e,t,n){if(t=Yr(t),Yr(e)!==t&&n)throw Error(s(425))}function Zr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,si="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof si?function(e){return si.resolve(null).then(e).catch(oi)}:ri;function oi(e){setTimeout((function(){throw e}))}function li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void zt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);zt(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ui(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),hi="__reactFiber$"+di,fi="__reactProps$"+di,pi="__reactContainer$"+di,mi="__reactEvents$"+di,gi="__reactListeners$"+di,yi="__reactHandles$"+di;function vi(e){var t=e[hi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[hi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ui(e);null!==e;){if(n=e[hi])return n;e=ui(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[hi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function xi(e){return e[fi]||null}var _i=[],Si=-1;function Ei(e){return{current:e}}function ki(e){0>Si||(e.current=_i[Si],_i[Si]=null,Si--)}function Ci(e,t){Si++,_i[Si]=e.current,e.current=t}var Ai={},Ti=Ei(Ai),Ii=Ei(!1),Pi=Ai;function ji(e,t){var n=e.type.contextTypes;if(!n)return Ai;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,s={};for(i in n)s[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Ni(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Oi(){ki(Ii),ki(Ti)}function Ri(e,t,n){if(Ti.current!==Ai)throw Error(s(168));Ci(Ti,t),Ci(Ii,n)}function Li(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(s(108,$(e)||"Unknown",i));return M({},n,r)}function Di(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ai,Pi=Ti.current,Ci(Ti,e),Ci(Ii,Ii.current),!0}function Mi(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=Li(e,t,Pi),r.__reactInternalMemoizedMergedChildContext=e,ki(Ii),ki(Ti),Ci(Ti,e)):ki(Ii),Ci(Ii,n)}var Fi=null,Ui=!1,Vi=!1;function Bi(e){null===Fi?Fi=[e]:Fi.push(e)}function zi(){if(!Vi&&null!==Fi){Vi=!0;var e=0,t=bt;try{var n=Fi;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fi=null,Ui=!1}catch(i){throw null!==Fi&&(Fi=Fi.slice(e+1)),Ke(Ze,zi),i}finally{bt=t,Vi=!1}}return null}var $i=[],Hi=0,qi=null,Wi=0,Ki=[],Gi=0,Qi=null,Xi=1,Yi="";function Ji(e,t){$i[Hi++]=Wi,$i[Hi++]=qi,qi=e,Wi=t}function Zi(e,t,n){Ki[Gi++]=Xi,Ki[Gi++]=Yi,Ki[Gi++]=Qi,Qi=e;var r=Xi;e=Yi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var s=32-at(t)+i;if(30<s){var a=i-i%5;s=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Xi=1<<32-at(t)+i|n<<i|r,Yi=s+e}else Xi=1<<s|n<<i|r,Yi=e}function es(e){null!==e.return&&(Ji(e,1),Zi(e,1,0))}function ts(e){for(;e===qi;)qi=$i[--Hi],$i[Hi]=null,Wi=$i[--Hi],$i[Hi]=null;for(;e===Qi;)Qi=Ki[--Gi],Ki[Gi]=null,Yi=Ki[--Gi],Ki[Gi]=null,Xi=Ki[--Gi],Ki[Gi]=null}var ns=null,rs=null,is=!1,ss=null;function as(e,t){var n=jc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function os(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ns=e,rs=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ns=e,rs=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qi?{id:Xi,overflow:Yi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=jc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ns=e,rs=null,!0);default:return!1}}function ls(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function cs(e){if(is){var t=rs;if(t){var n=t;if(!os(e,t)){if(ls(e))throw Error(s(418));t=ci(n.nextSibling);var r=ns;t&&os(e,t)?as(r,n):(e.flags=-4097&e.flags|2,is=!1,ns=e)}}else{if(ls(e))throw Error(s(418));e.flags=-4097&e.flags|2,is=!1,ns=e}}}function us(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ns=e}function ds(e){if(e!==ns)return!1;if(!is)return us(e),is=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=rs)){if(ls(e))throw hs(),Error(s(418));for(;t;)as(e,t),t=ci(t.nextSibling)}if(us(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){rs=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}rs=null}}else rs=ns?ci(e.stateNode.nextSibling):null;return!0}function hs(){for(var e=rs;e;)e=ci(e.nextSibling)}function fs(){rs=ns=null,is=!1}function ps(e){null===ss?ss=[e]:ss.push(e)}var ms=w.ReactCurrentBatchConfig;function gs(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(s(309));var r=n.stateNode}if(!r)throw Error(s(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function ys(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vs(e){return(0,e._init)(e._payload)}function bs(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Oc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function o(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Mc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var s=n.type;return s===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===s||"object"===typeof s&&null!==s&&s.$$typeof===N&&vs(s)===t.type)?((r=i(t,n.props)).ref=gs(e,t,n),r.return=e,r):((r=Rc(n.type,n.key,n.props,null,e.mode,r)).ref=gs(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,s){return null===t||7!==t.tag?((t=Lc(n,e.mode,r,s)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Mc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Rc(t.type,t.key,t.props,null,e.mode,n)).ref=gs(e,null,t),n.return=e,n;case _:return(t=Fc(t,e.mode,n)).return=e,t;case N:return h(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Lc(t,e.mode,n,null)).return=e,t;ys(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===i?c(e,t,n,r):null;case _:return n.key===i?u(e,t,n,r):null;case N:return f(e,t,(i=n._init)(n._payload),r)}if(te(n)||L(n))return null!==i?null:d(e,t,n,r,null);ys(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case _:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case N:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||L(r))return d(t,e=e.get(n)||null,r,i,null);ys(t,r)}return null}function m(i,s,o,l){for(var c=null,u=null,d=s,m=s=0,g=null;null!==d&&m<o.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var y=f(i,d,o[m],l);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(i,d),s=a(y,s,m),null===u?c=y:u.sibling=y,u=y,d=g}if(m===o.length)return n(i,d),is&&Ji(i,m),c;if(null===d){for(;m<o.length;m++)null!==(d=h(i,o[m],l))&&(s=a(d,s,m),null===u?c=d:u.sibling=d,u=d);return is&&Ji(i,m),c}for(d=r(i,d);m<o.length;m++)null!==(g=p(d,i,m,o[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),s=a(g,s,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(i,e)})),is&&Ji(i,m),c}function g(i,o,l,c){var u=L(l);if("function"!==typeof u)throw Error(s(150));if(null==(l=u.call(l)))throw Error(s(151));for(var d=u=null,m=o,g=o=0,y=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=f(i,m,v.value,c);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(i,m),o=a(b,o,g),null===d?u=b:d.sibling=b,d=b,m=y}if(v.done)return n(i,m),is&&Ji(i,g),u;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=h(i,v.value,c))&&(o=a(v,o,g),null===d?u=v:d.sibling=v,d=v);return is&&Ji(i,g),u}for(m=r(i,m);!v.done;g++,v=l.next())null!==(v=p(m,i,g,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),o=a(v,o,g),null===d?u=v:d.sibling=v,d=v);return e&&m.forEach((function(e){return t(i,e)})),is&&Ji(i,g),u}return function e(r,s,a,l){if("object"===typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var c=a.key,u=s;null!==u;){if(u.key===c){if((c=a.type)===S){if(7===u.tag){n(r,u.sibling),(s=i(u,a.props.children)).return=r,r=s;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===N&&vs(c)===u.type){n(r,u.sibling),(s=i(u,a.props)).ref=gs(r,u,a),s.return=r,r=s;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===S?((s=Lc(a.props.children,r.mode,l,a.key)).return=r,r=s):((l=Rc(a.type,a.key,a.props,null,r.mode,l)).ref=gs(r,s,a),l.return=r,r=l)}return o(r);case _:e:{for(u=a.key;null!==s;){if(s.key===u){if(4===s.tag&&s.stateNode.containerInfo===a.containerInfo&&s.stateNode.implementation===a.implementation){n(r,s.sibling),(s=i(s,a.children||[])).return=r,r=s;break e}n(r,s);break}t(r,s),s=s.sibling}(s=Fc(a,r.mode,l)).return=r,r=s}return o(r);case N:return e(r,s,(u=a._init)(a._payload),l)}if(te(a))return m(r,s,a,l);if(L(a))return g(r,s,a,l);ys(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==s&&6===s.tag?(n(r,s.sibling),(s=i(s,a)).return=r,r=s):(n(r,s),(s=Mc(a,r.mode,l)).return=r,r=s),o(r)):n(r,s)}}var ws=bs(!0),xs=bs(!1),_s=Ei(null),Ss=null,Es=null,ks=null;function Cs(){ks=Es=Ss=null}function As(e){var t=_s.current;ki(_s),e._currentValue=t}function Ts(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Is(e,t){Ss=e,ks=Es=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bo=!0),e.firstContext=null)}function Ps(e){var t=e._currentValue;if(ks!==e)if(e={context:e,memoizedValue:t,next:null},null===Es){if(null===Ss)throw Error(s(308));Es=e,Ss.dependencies={lanes:0,firstContext:e}}else Es=Es.next=e;return t}var js=null;function Ns(e){null===js?js=[e]:js.push(e)}function Os(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Ns(t)):(n.next=i.next,i.next=n),t.interleaved=n,Rs(e,r)}function Rs(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ls=!1;function Ds(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ms(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Us(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Tl)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Rs(e,n)}return null===(i=r.interleaved)?(t.next=t,Ns(r)):(t.next=i.next,i.next=t),r.interleaved=t,Rs(e,n)}function Vs(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Bs(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,s=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===s?i=s=a:s=s.next=a,n=n.next}while(null!==n);null===s?i=s=t:s=s.next=t}else i=s=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function zs(e,t,n,r){var i=e.updateQueue;Ls=!1;var s=i.firstBaseUpdate,a=i.lastBaseUpdate,o=i.shared.pending;if(null!==o){i.shared.pending=null;var l=o,c=l.next;l.next=null,null===a?s=c:a.next=c,a=l;var u=e.alternate;null!==u&&((o=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===o?u.firstBaseUpdate=c:o.next=c,u.lastBaseUpdate=l))}if(null!==s){var d=i.baseState;for(a=0,u=c=l=null,o=s;;){var h=o.lane,f=o.eventTime;if((r&h)===h){null!==u&&(u=u.next={eventTime:f,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var p=e,m=o;switch(h=t,f=n,m.tag){case 1:if("function"===typeof(p=m.payload)){d=p.call(f,d,h);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(h="function"===typeof(p=m.payload)?p.call(f,d,h):p)||void 0===h)break e;d=M({},d,h);break e;case 2:Ls=!0}}null!==o.callback&&0!==o.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[o]:h.push(o))}else f={eventTime:f,lane:h,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,a|=h;if(null===(o=o.next)){if(null===(o=i.shared.pending))break;o=(h=o).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===s&&(i.shared.lanes=0);Dl|=a,e.lanes=a,e.memoizedState=d}}function $s(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(s(191,i));i.call(r)}}}var Hs={},qs=Ei(Hs),Ws=Ei(Hs),Ks=Ei(Hs);function Gs(e){if(e===Hs)throw Error(s(174));return e}function Qs(e,t){switch(Ci(Ks,t),Ci(Ws,e),Ci(qs,Hs),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ki(qs),Ci(qs,t)}function Xs(){ki(qs),ki(Ws),ki(Ks)}function Ys(e){Gs(Ks.current);var t=Gs(qs.current),n=le(t,e.type);t!==n&&(Ci(Ws,e),Ci(qs,n))}function Js(e){Ws.current===e&&(ki(qs),ki(Ws))}var Zs=Ei(0);function ea(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ta=[];function na(){for(var e=0;e<ta.length;e++)ta[e]._workInProgressVersionPrimary=null;ta.length=0}var ra=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,sa=0,aa=null,oa=null,la=null,ca=!1,ua=!1,da=0,ha=0;function fa(){throw Error(s(321))}function pa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function ma(e,t,n,r,i,a){if(sa=a,aa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ra.current=null===e||null===e.memoizedState?Ja:Za,e=n(r,i),ua){a=0;do{if(ua=!1,da=0,25<=a)throw Error(s(301));a+=1,la=oa=null,t.updateQueue=null,ra.current=eo,e=n(r,i)}while(ua)}if(ra.current=Ya,t=null!==oa&&null!==oa.next,sa=0,la=oa=aa=null,ca=!1,t)throw Error(s(300));return e}function ga(){var e=0!==da;return da=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===la?aa.memoizedState=la=e:la=la.next=e,la}function va(){if(null===oa){var e=aa.alternate;e=null!==e?e.memoizedState:null}else e=oa.next;var t=null===la?aa.memoizedState:la.next;if(null!==t)la=t,oa=e;else{if(null===e)throw Error(s(310));e={memoizedState:(oa=e).memoizedState,baseState:oa.baseState,baseQueue:oa.baseQueue,queue:oa.queue,next:null},null===la?aa.memoizedState=la=e:la=la.next=e}return la}function ba(e,t){return"function"===typeof t?t(e):t}function wa(e){var t=va(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=oa,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=o=null,c=null,u=a;do{var d=u.lane;if((sa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=h,o=r):c=c.next=h,aa.lanes|=d,Dl|=d}u=u.next}while(null!==u&&u!==a);null===c?o=r:c.next=l,or(r,t.memoizedState)||(bo=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,aa.lanes|=a,Dl|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xa(e){var t=va(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var o=i=i.next;do{a=e(a,o.action),o=o.next}while(o!==i);or(a,t.memoizedState)||(bo=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function _a(){}function Sa(e,t){var n=aa,r=va(),i=t(),a=!or(r.memoizedState,i);if(a&&(r.memoizedState=i,bo=!0),r=r.queue,La(Ca.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==la&&1&la.memoizedState.tag){if(n.flags|=2048,Pa(9,ka.bind(null,n,r,i,t),void 0,null),null===Il)throw Error(s(349));0!==(30&sa)||Ea(n,t,i)}return i}function Ea(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=aa.updateQueue)?(t={lastEffect:null,stores:null},aa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ka(e,t,n,r){t.value=n,t.getSnapshot=r,Aa(t)&&Ta(e)}function Ca(e,t,n){return n((function(){Aa(t)&&Ta(e)}))}function Aa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!or(e,n)}catch(r){return!0}}function Ta(e){var t=Rs(e,1);null!==t&&nc(t,e,1,-1)}function Ia(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:e},t.queue=e,e=e.dispatch=Ka.bind(null,aa,e),[t.memoizedState,e]}function Pa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=aa.updateQueue)?(t={lastEffect:null,stores:null},aa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ja(){return va().memoizedState}function Na(e,t,n,r){var i=ya();aa.flags|=e,i.memoizedState=Pa(1|t,n,void 0,void 0===r?null:r)}function Oa(e,t,n,r){var i=va();r=void 0===r?null:r;var s=void 0;if(null!==oa){var a=oa.memoizedState;if(s=a.destroy,null!==r&&pa(r,a.deps))return void(i.memoizedState=Pa(t,n,s,r))}aa.flags|=e,i.memoizedState=Pa(1|t,n,s,r)}function Ra(e,t){return Na(8390656,8,e,t)}function La(e,t){return Oa(2048,8,e,t)}function Da(e,t){return Oa(4,2,e,t)}function Ma(e,t){return Oa(4,4,e,t)}function Fa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ua(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Oa(4,4,Fa.bind(null,t,e),n)}function Va(){}function Ba(e,t){var n=va();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&pa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function za(e,t){var n=va();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&pa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function $a(e,t,n){return 0===(21&sa)?(e.baseState&&(e.baseState=!1,bo=!0),e.memoizedState=n):(or(n,t)||(n=mt(),aa.lanes|=n,Dl|=n,e.baseState=!0),t)}function Ha(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function qa(){return va().memoizedState}function Wa(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ga(e))Qa(t,n);else if(null!==(n=Os(e,t,n,r))){nc(n,e,r,ec()),Xa(n,t,r)}}function Ka(e,t,n){var r=tc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ga(e))Qa(t,i);else{var s=e.alternate;if(0===e.lanes&&(null===s||0===s.lanes)&&null!==(s=t.lastRenderedReducer))try{var a=t.lastRenderedState,o=s(a,n);if(i.hasEagerState=!0,i.eagerState=o,or(o,a)){var l=t.interleaved;return null===l?(i.next=i,Ns(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(c){}null!==(n=Os(e,t,i,r))&&(nc(n,e,r,i=ec()),Xa(n,t,r))}}function Ga(e){var t=e.alternate;return e===aa||null!==t&&t===aa}function Qa(e,t){ua=ca=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xa(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var Ya={readContext:Ps,useCallback:fa,useContext:fa,useEffect:fa,useImperativeHandle:fa,useInsertionEffect:fa,useLayoutEffect:fa,useMemo:fa,useReducer:fa,useRef:fa,useState:fa,useDebugValue:fa,useDeferredValue:fa,useTransition:fa,useMutableSource:fa,useSyncExternalStore:fa,useId:fa,unstable_isNewReconciler:!1},Ja={readContext:Ps,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Ps,useEffect:Ra,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Na(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Na(4194308,4,e,t)},useInsertionEffect:function(e,t){return Na(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Wa.bind(null,aa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Ia,useDebugValue:Va,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Ia(!1),t=e[0];return e=Ha.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=aa,i=ya();if(is){if(void 0===n)throw Error(s(407));n=n()}else{if(n=t(),null===Il)throw Error(s(349));0!==(30&sa)||Ea(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ra(Ca.bind(null,r,a,e),[e]),r.flags|=2048,Pa(9,ka.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Il.identifierPrefix;if(is){var n=Yi;t=":"+t+"R"+(n=(Xi&~(1<<32-at(Xi)-1)).toString(32)+n),0<(n=da++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Za={readContext:Ps,useCallback:Ba,useContext:Ps,useEffect:La,useImperativeHandle:Ua,useInsertionEffect:Da,useLayoutEffect:Ma,useMemo:za,useReducer:wa,useRef:ja,useState:function(){return wa(ba)},useDebugValue:Va,useDeferredValue:function(e){return $a(va(),oa.memoizedState,e)},useTransition:function(){return[wa(ba)[0],va().memoizedState]},useMutableSource:_a,useSyncExternalStore:Sa,useId:qa,unstable_isNewReconciler:!1},eo={readContext:Ps,useCallback:Ba,useContext:Ps,useEffect:La,useImperativeHandle:Ua,useInsertionEffect:Da,useLayoutEffect:Ma,useMemo:za,useReducer:xa,useRef:ja,useState:function(){return xa(ba)},useDebugValue:Va,useDeferredValue:function(e){var t=va();return null===oa?t.memoizedState=e:$a(t,oa.memoizedState,e)},useTransition:function(){return[xa(ba)[0],va().memoizedState]},useMutableSource:_a,useSyncExternalStore:Sa,useId:qa,unstable_isNewReconciler:!1};function to(e,t){if(e&&e.defaultProps){for(var n in t=M({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function no(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:M({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ro={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),s=Fs(r,i);s.payload=t,void 0!==n&&null!==n&&(s.callback=n),null!==(t=Us(e,s,i))&&(nc(t,e,i,r),Vs(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),s=Fs(r,i);s.tag=1,s.payload=t,void 0!==n&&null!==n&&(s.callback=n),null!==(t=Us(e,s,i))&&(nc(t,e,i,r),Vs(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),i=Fs(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Us(e,i,r))&&(nc(t,e,r,n),Vs(t,e,r))}};function io(e,t,n,r,i,s,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,s,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,s))}function so(e,t,n){var r=!1,i=Ai,s=t.contextType;return"object"===typeof s&&null!==s?s=Ps(s):(i=Ni(t)?Pi:Ti.current,s=(r=null!==(r=t.contextTypes)&&void 0!==r)?ji(e,i):Ai),t=new t(n,s),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ro,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function ao(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ro.enqueueReplaceState(t,t.state,null)}function oo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Ds(e);var s=t.contextType;"object"===typeof s&&null!==s?i.context=Ps(s):(s=Ni(t)?Pi:Ti.current,i.context=ji(e,s)),i.state=e.memoizedState,"function"===typeof(s=t.getDerivedStateFromProps)&&(no(e,t,s,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ro.enqueueReplaceState(i,i.state,null),zs(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function lo(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var i=n}catch(s){i="\nError generating stack: "+s.message+"\n"+s.stack}return{value:e,source:t,stack:i,digest:null}}function co(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function uo(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ho="function"===typeof WeakMap?WeakMap:Map;function fo(e,t,n){(n=Fs(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,ql=r),uo(0,t)},n}function po(e,t,n){(n=Fs(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){uo(0,t)}}var s=e.stateNode;return null!==s&&"function"===typeof s.componentDidCatch&&(n.callback=function(){uo(0,t),"function"!==typeof r&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function mo(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ho;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=kc.bind(null,e,t,n),t.then(e,e))}function go(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function yo(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fs(-1,1)).tag=2,Us(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var vo=w.ReactCurrentOwner,bo=!1;function wo(e,t,n,r){t.child=null===e?xs(t,null,n,r):ws(t,e.child,n,r)}function xo(e,t,n,r,i){n=n.render;var s=t.ref;return Is(t,i),r=ma(e,t,n,r,s,i),n=ga(),null===e||bo?(is&&n&&es(t),t.flags|=1,wo(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ho(e,t,i))}function _o(e,t,n,r,i){if(null===e){var s=n.type;return"function"!==typeof s||Nc(s)||void 0!==s.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Rc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,So(e,t,s,r,i))}if(s=e.child,0===(e.lanes&i)){var a=s.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Ho(e,t,i)}return t.flags|=1,(e=Oc(s,r)).ref=t.ref,e.return=t,t.child=e}function So(e,t,n,r,i){if(null!==e){var s=e.memoizedProps;if(lr(s,r)&&e.ref===t.ref){if(bo=!1,t.pendingProps=r=s,0===(e.lanes&i))return t.lanes=e.lanes,Ho(e,t,i);0!==(131072&e.flags)&&(bo=!0)}}return Co(e,t,n,r,i)}function Eo(e,t,n){var r=t.pendingProps,i=r.children,s=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ci(Ol,Nl),Nl|=n;else{if(0===(1073741824&n))return e=null!==s?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ci(Ol,Nl),Nl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==s?s.baseLanes:n,Ci(Ol,Nl),Nl|=r}else null!==s?(r=s.baseLanes|n,t.memoizedState=null):r=n,Ci(Ol,Nl),Nl|=r;return wo(e,t,i,n),t.child}function ko(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Co(e,t,n,r,i){var s=Ni(n)?Pi:Ti.current;return s=ji(t,s),Is(t,i),n=ma(e,t,n,r,s,i),r=ga(),null===e||bo?(is&&r&&es(t),t.flags|=1,wo(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ho(e,t,i))}function Ao(e,t,n,r,i){if(Ni(n)){var s=!0;Di(t)}else s=!1;if(Is(t,i),null===t.stateNode)$o(e,t),so(t,n,r),oo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,o=t.memoizedProps;a.props=o;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Ps(c):c=ji(t,c=Ni(n)?Pi:Ti.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(o!==r||l!==c)&&ao(t,a,r,c),Ls=!1;var h=t.memoizedState;a.state=h,zs(t,r,a,i),l=t.memoizedState,o!==r||h!==l||Ii.current||Ls?("function"===typeof u&&(no(t,n,u,r),l=t.memoizedState),(o=Ls||io(t,n,o,r,h,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=o):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ms(e,t),o=t.memoizedProps,c=t.type===t.elementType?o:to(t.type,o),a.props=c,d=t.pendingProps,h=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Ps(l):l=ji(t,l=Ni(n)?Pi:Ti.current);var f=n.getDerivedStateFromProps;(u="function"===typeof f||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(o!==d||h!==l)&&ao(t,a,r,l),Ls=!1,h=t.memoizedState,a.state=h,zs(t,r,a,i);var p=t.memoizedState;o!==d||h!==p||Ii.current||Ls?("function"===typeof f&&(no(t,n,f,r),p=t.memoizedState),(c=Ls||io(t,n,c,r,h,p,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return To(e,t,n,r,s,i)}function To(e,t,n,r,i,s){ko(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Mi(t,n,!1),Ho(e,t,s);r=t.stateNode,vo.current=t;var o=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ws(t,e.child,null,s),t.child=ws(t,null,o,s)):wo(e,t,o,s),t.memoizedState=r.state,i&&Mi(t,n,!0),t.child}function Io(e){var t=e.stateNode;t.pendingContext?Ri(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ri(0,t.context,!1),Qs(e,t.containerInfo)}function Po(e,t,n,r,i){return fs(),ps(i),t.flags|=256,wo(e,t,n,r),t.child}var jo,No,Oo,Ro,Lo={dehydrated:null,treeContext:null,retryLane:0};function Do(e){return{baseLanes:e,cachePool:null,transitions:null}}function Mo(e,t,n){var r,i=t.pendingProps,a=Zs.current,o=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(o=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ci(Zs,1&a),null===e)return cs(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,o?(i=t.mode,o=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==o?(o.childLanes=0,o.pendingProps=l):o=Dc(l,i,0,null),e=Lc(e,i,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Do(n),t.memoizedState=Lo,e):Fo(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,o){if(n)return 256&t.flags?(t.flags&=-257,Uo(e,t,o,r=co(Error(s(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Dc({mode:"visible",children:r.children},i,0,null),(a=Lc(a,i,o,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&ws(t,e.child,null,o),t.child.memoizedState=Do(o),t.memoizedState=Lo,a);if(0===(1&t.mode))return Uo(e,t,o,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Uo(e,t,o,r=co(a=Error(s(419)),r,void 0))}if(l=0!==(o&e.childLanes),bo||l){if(null!==(r=Il)){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|o))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Rs(e,i),nc(r,e,i,-1))}return mc(),Uo(e,t,o,r=co(Error(s(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Ac.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,rs=ci(i.nextSibling),ns=t,is=!0,ss=null,null!==e&&(Ki[Gi++]=Xi,Ki[Gi++]=Yi,Ki[Gi++]=Qi,Xi=e.id,Yi=e.overflow,Qi=t),t=Fo(t,r.children),t.flags|=4096,t)}(e,t,l,i,r,a,n);if(o){o=i.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Oc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?o=Oc(r,o):(o=Lc(o,l,n,null)).flags|=2,o.return=t,i.return=t,i.sibling=o,t.child=i,i=o,o=t.child,l=null===(l=e.child.memoizedState)?Do(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=Lo,i}return e=(o=e.child).sibling,i=Oc(o,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Fo(e,t){return(t=Dc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Uo(e,t,n,r){return null!==r&&ps(r),ws(t,e.child,null,n),(e=Fo(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Vo(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ts(e.return,t,n)}function Bo(e,t,n,r,i){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function zo(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(wo(e,t,r.children,n),0!==(2&(r=Zs.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Vo(e,n,t);else if(19===e.tag)Vo(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ci(Zs,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ea(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Bo(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ea(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Bo(t,!0,n,null,s);break;case"together":Bo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function $o(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ho(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Dl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Oc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Oc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function qo(e,t){if(!is)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Wo(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ko(e,t,n){var r=t.pendingProps;switch(ts(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wo(t),null;case 1:case 17:return Ni(t.type)&&Oi(),Wo(t),null;case 3:return r=t.stateNode,Xs(),ki(Ii),ki(Ti),na(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ds(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ss&&(ac(ss),ss=null))),No(e,t),Wo(t),null;case 5:Js(t);var i=Gs(Ks.current);if(n=t.type,null!==e&&null!=t.stateNode)Oo(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(s(166));return Wo(t),null}if(e=Gs(qs.current),ds(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[hi]=t,r[fi]=a,e=0!==(1&t.mode),n){case"dialog":Ur("cancel",r),Ur("close",r);break;case"iframe":case"object":case"embed":Ur("load",r);break;case"video":case"audio":for(i=0;i<Lr.length;i++)Ur(Lr[i],r);break;case"source":Ur("error",r);break;case"img":case"image":case"link":Ur("error",r),Ur("load",r);break;case"details":Ur("toggle",r);break;case"input":X(r,a),Ur("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Ur("invalid",r);break;case"textarea":ie(r,a),Ur("invalid",r)}for(var l in ve(n,a),i=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",""+c]):o.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Ur("scroll",r)}switch(n){case"input":W(r),Z(r,a,!0);break;case"textarea":W(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Zr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=oe(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[hi]=t,e[fi]=r,jo(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Ur("cancel",e),Ur("close",e),i=r;break;case"iframe":case"object":case"embed":Ur("load",e),i=r;break;case"video":case"audio":for(i=0;i<Lr.length;i++)Ur(Lr[i],e);i=r;break;case"source":Ur("error",e),i=r;break;case"img":case"image":case"link":Ur("error",e),Ur("load",e),i=r;break;case"details":Ur("toggle",e),i=r;break;case"input":X(e,r),i=Q(e,r),Ur("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=M({},r,{value:void 0}),Ur("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Ur("invalid",e)}for(a in ve(n,i),c=i)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&he(e,u):"number"===typeof u&&he(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(o.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Ur("scroll",e):null!=u&&b(e,a,u,l))}switch(n){case"input":W(e),Z(e,r,!1);break;case"textarea":W(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Wo(t),null;case 6:if(e&&null!=t.stateNode)Ro(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(s(166));if(n=Gs(Ks.current),Gs(qs.current),ds(t)){if(r=t.stateNode,n=t.memoizedProps,r[hi]=t,(a=r.nodeValue!==n)&&null!==(e=ns))switch(e.tag){case 3:Jr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[hi]=t,t.stateNode=r}return Wo(t),null;case 13:if(ki(Zs),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(is&&null!==rs&&0!==(1&t.mode)&&0===(128&t.flags))hs(),fs(),t.flags|=98560,a=!1;else if(a=ds(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(s(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(s(317));a[hi]=t}else fs(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Wo(t),a=!1}else null!==ss&&(ac(ss),ss=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&Zs.current)?0===Rl&&(Rl=3):mc())),null!==t.updateQueue&&(t.flags|=4),Wo(t),null);case 4:return Xs(),No(e,t),null===e&&zr(t.stateNode.containerInfo),Wo(t),null;case 10:return As(t.type._context),Wo(t),null;case 19:if(ki(Zs),null===(a=t.memoizedState))return Wo(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)qo(a,!1);else{if(0!==Rl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ea(e))){for(t.flags|=128,qo(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ci(Zs,1&Zs.current|2),t.child}e=e.sibling}null!==a.tail&&Ye()>zl&&(t.flags|=128,r=!0,qo(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ea(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qo(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!is)return Wo(t),null}else 2*Ye()-a.renderingStartTime>zl&&1073741824!==n&&(t.flags|=128,r=!0,qo(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ye(),t.sibling=null,n=Zs.current,Ci(Zs,r?1&n|2:1&n),t):(Wo(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Nl)&&(Wo(t),6&t.subtreeFlags&&(t.flags|=8192)):Wo(t),null;case 24:case 25:return null}throw Error(s(156,t.tag))}function Go(e,t){switch(ts(t),t.tag){case 1:return Ni(t.type)&&Oi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xs(),ki(Ii),ki(Ti),na(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Js(t),null;case 13:if(ki(Zs),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(s(340));fs()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ki(Zs),null;case 4:return Xs(),null;case 10:return As(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}jo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},No=function(){},Oo=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Gs(qs.current);var s,a=null;switch(n){case"input":i=Q(e,i),r=Q(e,r),a=[];break;case"select":i=M({},i,{value:void 0}),r=M({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Zr)}for(u in ve(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(o.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(s in l)!l.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&l[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(o.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Ur("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ro=function(e,t,n,r){n!==r&&(t.flags|=4)};var Qo=!1,Xo=!1,Yo="function"===typeof WeakSet?WeakSet:Set,Jo=null;function Zo(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Ec(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Ec(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,void 0!==s&&el(t,n,s)}i=i.next}while(i!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function sl(e){var t=e.alternate;null!==t&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[hi],delete t[fi],delete t[mi],delete t[gi],delete t[yi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function ol(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function hl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(st&&"function"===typeof st.onCommitFiberUnmount)try{st.onCommitFiberUnmount(it,n)}catch(o){}switch(n.tag){case 5:Xo||Zo(n,t);case 6:var r=ul,i=dl;ul=null,hl(e,t,n),dl=i,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),zt(e)):li(ul,n.stateNode));break;case 4:r=ul,i=dl,ul=n.stateNode.containerInfo,dl=!0,hl(e,t,n),ul=r,dl=i;break;case 0:case 11:case 14:case 15:if(!Xo&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var s=i,a=s.destroy;s=s.tag,void 0!==a&&(0!==(2&s)||0!==(4&s))&&el(n,t,a),i=i.next}while(i!==r)}hl(e,t,n);break;case 1:if(!Xo&&(Zo(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){Ec(n,t,o)}hl(e,t,n);break;case 21:hl(e,t,n);break;case 22:1&n.mode?(Xo=(r=Xo)||null!==n.memoizedState,hl(e,t,n),Xo=r):hl(e,t,n);break;default:hl(e,t,n)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Yo),t.forEach((function(t){var r=Tc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,o=t,l=o;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(s(160));fl(a,o,i),ul=null,dl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(u){Ec(i,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),yl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(g){Ec(e,e.return,g)}try{nl(5,e,e.return)}catch(g){Ec(e,e.return,g)}}break;case 1:ml(t,e),yl(e),512&r&&null!==n&&Zo(n,n.return);break;case 5:if(ml(t,e),yl(e),512&r&&null!==n&&Zo(n,n.return),32&e.flags){var i=e.stateNode;try{he(i,"")}catch(g){Ec(e,e.return,g)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,o=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Y(i,a),be(l,o);var u=be(l,a);for(o=0;o<c.length;o+=2){var d=c[o],h=c[o+1];"style"===d?ge(i,h):"dangerouslySetInnerHTML"===d?de(i,h):"children"===d?he(i,h):b(i,d,h,u)}switch(l){case"input":J(i,a);break;case"textarea":se(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(i,!!a.multiple,p,!1):f!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[fi]=a}catch(g){Ec(e,e.return,g)}}break;case 6:if(ml(t,e),yl(e),4&r){if(null===e.stateNode)throw Error(s(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(g){Ec(e,e.return,g)}}break;case 3:if(ml(t,e),yl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(g){Ec(e,e.return,g)}break;case 4:default:ml(t,e),yl(e);break;case 13:ml(t,e),yl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Bl=Ye())),4&r&&pl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xo=(u=Xo)||d,ml(t,e),Xo=u):ml(t,e),yl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Jo=e,d=e.child;null!==d;){for(h=Jo=d;null!==Jo;){switch(p=(f=Jo).child,f.tag){case 0:case 11:case 14:case 15:nl(4,f,f.return);break;case 1:Zo(f,f.return);var m=f.stateNode;if("function"===typeof m.componentWillUnmount){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Ec(r,n,g)}}break;case 5:Zo(f,f.return);break;case 22:if(null!==f.memoizedState){xl(h);continue}}null!==p?(p.return=f,Jo=p):xl(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{i=h.stateNode,u?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=h.stateNode,o=void 0!==(c=h.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",o))}catch(g){Ec(e,e.return,g)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(g){Ec(e,e.return,g)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ml(t,e),yl(e),4&r&&pl(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(s(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(he(i,""),r.flags&=-33),cl(e,ol(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,ol(e),a);break;default:throw Error(s(161))}}catch(o){Ec(e,e.return,o)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Jo=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!==(1&e.mode);null!==Jo;){var i=Jo,s=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Qo;if(!a){var o=i.alternate,l=null!==o&&null!==o.memoizedState||Xo;o=Qo;var c=Xo;if(Qo=a,(Xo=l)&&!c)for(Jo=i;null!==Jo;)l=(a=Jo).child,22===a.tag&&null!==a.memoizedState?_l(i):null!==l?(l.return=a,Jo=l):_l(i);for(;null!==s;)Jo=s,bl(s,t,n),s=s.sibling;Jo=i,Qo=o,Xo=c}wl(e)}else 0!==(8772&i.subtreeFlags)&&null!==s?(s.return=i,Jo=s):wl(e)}}function wl(e){for(;null!==Jo;){var t=Jo;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xo||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xo)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:to(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&$s(t,a,r);break;case 3:var o=t.updateQueue;if(null!==o){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}$s(t,o,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&zt(h)}}}break;default:throw Error(s(163))}Xo||512&t.flags&&il(t)}catch(f){Ec(t,t.return,f)}}if(t===e){Jo=null;break}if(null!==(n=t.sibling)){n.return=t.return,Jo=n;break}Jo=t.return}}function xl(e){for(;null!==Jo;){var t=Jo;if(t===e){Jo=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Jo=n;break}Jo=t.return}}function _l(e){for(;null!==Jo;){var t=Jo;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Ec(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){Ec(t,i,l)}}var s=t.return;try{il(t)}catch(l){Ec(t,s,l)}break;case 5:var a=t.return;try{il(t)}catch(l){Ec(t,a,l)}}}catch(l){Ec(t,t.return,l)}if(t===e){Jo=null;break}var o=t.sibling;if(null!==o){o.return=t.return,Jo=o;break}Jo=t.return}}var Sl,El=Math.ceil,kl=w.ReactCurrentDispatcher,Cl=w.ReactCurrentOwner,Al=w.ReactCurrentBatchConfig,Tl=0,Il=null,Pl=null,jl=0,Nl=0,Ol=Ei(0),Rl=0,Ll=null,Dl=0,Ml=0,Fl=0,Ul=null,Vl=null,Bl=0,zl=1/0,$l=null,Hl=!1,ql=null,Wl=null,Kl=!1,Gl=null,Ql=0,Xl=0,Yl=null,Jl=-1,Zl=0;function ec(){return 0!==(6&Tl)?Ye():-1!==Jl?Jl:Jl=Ye()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Tl)&&0!==jl?jl&-jl:null!==ms.transition?(0===Zl&&(Zl=mt()),Zl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function nc(e,t,n,r){if(50<Xl)throw Xl=0,Yl=null,Error(s(185));yt(e,n,r),0!==(2&Tl)&&e===Il||(e===Il&&(0===(2&Tl)&&(Ml|=n),4===Rl&&oc(e,jl)),rc(e,r),1===n&&0===Tl&&0===(1&t.mode)&&(zl=Ye()+500,Ui&&zi()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var a=31-at(s),o=1<<a,l=i[a];-1===l?0!==(o&n)&&0===(o&r)||(i[a]=ft(o,t)):l<=t&&(e.expiredLanes|=o),s&=~o}}(e,t);var r=ht(e,e===Il?jl:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Ui=!0,Bi(e)}(lc.bind(null,e)):Bi(lc.bind(null,e)),ai((function(){0===(6&Tl)&&zi()})),n=null;else{switch(wt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ic(n,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ic(e,t){if(Jl=-1,Zl=0,0!==(6&Tl))throw Error(s(327));var n=e.callbackNode;if(_c()&&e.callbackNode!==n)return null;var r=ht(e,e===Il?jl:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var i=Tl;Tl|=2;var a=pc();for(Il===e&&jl===t||($l=null,zl=Ye()+500,hc(e,t));;)try{vc();break}catch(l){fc(e,l)}Cs(),kl.current=a,Tl=i,null!==Pl?t=0:(Il=null,jl=0,t=Rl)}if(0!==t){if(2===t&&(0!==(i=pt(e))&&(r=i,t=sc(e,i))),1===t)throw n=Ll,hc(e,0),oc(e,r),rc(e,Ye()),n;if(6===t)oc(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!or(s(),i))return!1}catch(o){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=gc(e,r))&&(0!==(a=pt(e))&&(r=a,t=sc(e,a))),1===t))throw n=Ll,hc(e,0),oc(e,r),rc(e,Ye()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(s(345));case 2:case 5:xc(e,Vl,$l);break;case 3:if(oc(e,r),(130023424&r)===r&&10<(t=Bl+500-Ye())){if(0!==ht(e,0))break;if(((i=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(xc.bind(null,e,Vl,$l),t);break}xc(e,Vl,$l);break;case 4:if(oc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-at(r);a=1<<o,(o=t[o])>i&&(i=o),r&=~a}if(r=i,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*El(r/1960))-r)){e.timeoutHandle=ri(xc.bind(null,e,Vl,$l),r);break}xc(e,Vl,$l);break;default:throw Error(s(329))}}}return rc(e,Ye()),e.callbackNode===n?ic.bind(null,e):null}function sc(e,t){var n=Ul;return e.current.memoizedState.isDehydrated&&(hc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Vl,Vl=n,null!==t&&ac(t)),e}function ac(e){null===Vl?Vl=e:Vl.push.apply(Vl,e)}function oc(e,t){for(t&=~Fl,t&=~Ml,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!==(6&Tl))throw Error(s(327));_c();var t=ht(e,0);if(0===(1&t))return rc(e,Ye()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=sc(e,r))}if(1===n)throw n=Ll,hc(e,0),oc(e,t),rc(e,Ye()),n;if(6===n)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Vl,$l),rc(e,Ye()),null}function cc(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=n)&&(zl=Ye()+500,Ui&&zi())}}function uc(e){null!==Gl&&0===Gl.tag&&0===(6&Tl)&&_c();var t=Tl;Tl|=1;var n=Al.transition,r=bt;try{if(Al.transition=null,bt=1,e)return e()}finally{bt=r,Al.transition=n,0===(6&(Tl=t))&&zi()}}function dc(){Nl=Ol.current,ki(Ol)}function hc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Pl)for(n=Pl.return;null!==n;){var r=n;switch(ts(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Oi();break;case 3:Xs(),ki(Ii),ki(Ti),na();break;case 5:Js(r);break;case 4:Xs();break;case 13:case 19:ki(Zs);break;case 10:As(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Il=e,Pl=e=Oc(e.current,null),jl=Nl=t,Rl=0,Ll=null,Fl=Ml=Dl=0,Vl=Ul=null,null!==js){for(t=0;t<js.length;t++)if(null!==(r=(n=js[t]).interleaved)){n.interleaved=null;var i=r.next,s=n.pending;if(null!==s){var a=s.next;s.next=i,r.next=a}n.pending=r}js=null}return e}function fc(e,t){for(;;){var n=Pl;try{if(Cs(),ra.current=Ya,ca){for(var r=aa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ca=!1}if(sa=0,la=oa=aa=null,ua=!1,da=0,Cl.current=null,null===n||null===n.return){Rl=1,Ll=t,Pl=null;break}e:{var a=e,o=n.return,l=n,c=t;if(t=jl,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,h=d.tag;if(0===(1&d.mode)&&(0===h||11===h||15===h)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=go(o);if(null!==p){p.flags&=-257,yo(p,o,l,0,t),1&p.mode&&mo(a,u,t),c=u;var m=(t=p).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){mo(a,u,t),mc();break e}c=Error(s(426))}else if(is&&1&l.mode){var y=go(o);if(null!==y){0===(65536&y.flags)&&(y.flags|=256),yo(y,o,l,0,t),ps(lo(c,l));break e}}a=c=lo(c,l),4!==Rl&&(Rl=2),null===Ul?Ul=[a]:Ul.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Bs(a,fo(0,c,t));break e;case 1:l=c;var v=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof v.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Wl||!Wl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Bs(a,po(a,l,t));break e}}a=a.return}while(null!==a)}wc(n)}catch(w){t=w,Pl===n&&null!==n&&(Pl=n=n.return);continue}break}}function pc(){var e=kl.current;return kl.current=Ya,null===e?Ya:e}function mc(){0!==Rl&&3!==Rl&&2!==Rl||(Rl=4),null===Il||0===(268435455&Dl)&&0===(268435455&Ml)||oc(Il,jl)}function gc(e,t){var n=Tl;Tl|=2;var r=pc();for(Il===e&&jl===t||($l=null,hc(e,t));;)try{yc();break}catch(i){fc(e,i)}if(Cs(),Tl=n,kl.current=r,null!==Pl)throw Error(s(261));return Il=null,jl=0,Rl}function yc(){for(;null!==Pl;)bc(Pl)}function vc(){for(;null!==Pl&&!Qe();)bc(Pl)}function bc(e){var t=Sl(e.alternate,e,Nl);e.memoizedProps=e.pendingProps,null===t?wc(e):Pl=t,Cl.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ko(n,t,Nl)))return void(Pl=n)}else{if(null!==(n=Go(n,t)))return n.flags&=32767,void(Pl=n);if(null===e)return Rl=6,void(Pl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Pl=t);Pl=t=e}while(null!==t);0===Rl&&(Rl=5)}function xc(e,t,n){var r=bt,i=Al.transition;try{Al.transition=null,bt=1,function(e,t,n,r){do{_c()}while(null!==Gl);if(0!==(6&Tl))throw Error(s(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}(e,a),e===Il&&(Pl=Il=null,jl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Kl||(Kl=!0,Ic(tt,(function(){return _c(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Al.transition,Al.transition=null;var o=bt;bt=1;var l=Tl;Tl|=4,Cl.current=null,function(e,t){if(ei=Ht,fr(e=hr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(x){n=null;break e}var o=0,l=-1,c=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==n||0!==i&&3!==h.nodeType||(l=o+i),h!==a||0!==r&&3!==h.nodeType||(c=o+r),3===h.nodeType&&(o+=h.nodeValue.length),null!==(p=h.firstChild);)f=h,h=p;for(;;){if(h===e)break t;if(f===n&&++u===i&&(l=o),f===a&&++d===r&&(c=o),null!==(p=h.nextSibling))break;f=(h=f).parentNode}h=p}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Ht=!1,Jo=t;null!==Jo;)if(e=(t=Jo).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Jo=e;else for(;null!==Jo;){t=Jo;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,y=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:to(t.type,g),y);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(s(163))}}catch(x){Ec(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Jo=e;break}Jo=t.return}m=tl,tl=!1}(e,n),gl(n,e),pr(ti),Ht=!!ei,ti=ei=null,e.current=n,vl(n,e,i),Xe(),Tl=l,bt=o,Al.transition=a}else e.current=n;if(Kl&&(Kl=!1,Gl=e,Ql=i),a=e.pendingLanes,0===a&&(Wl=null),function(e){if(st&&"function"===typeof st.onCommitFiberRoot)try{st.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Ye()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Hl)throw Hl=!1,e=ql,ql=null,e;0!==(1&Ql)&&0!==e.tag&&_c(),a=e.pendingLanes,0!==(1&a)?e===Yl?Xl++:(Xl=0,Yl=e):Xl=0,zi()}(e,t,n,r)}finally{Al.transition=i,bt=r}return null}function _c(){if(null!==Gl){var e=wt(Ql),t=Al.transition,n=bt;try{if(Al.transition=null,bt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Ql=0,0!==(6&Tl))throw Error(s(331));var i=Tl;for(Tl|=4,Jo=e.current;null!==Jo;){var a=Jo,o=a.child;if(0!==(16&Jo.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Jo=u;null!==Jo;){var d=Jo;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var h=d.child;if(null!==h)h.return=d,Jo=h;else for(;null!==Jo;){var f=(d=Jo).sibling,p=d.return;if(sl(d),d===u){Jo=null;break}if(null!==f){f.return=p,Jo=f;break}Jo=p}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Jo=a}}if(0!==(2064&a.subtreeFlags)&&null!==o)o.return=a,Jo=o;else e:for(;null!==Jo;){if(0!==(2048&(a=Jo).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,Jo=v;break e}Jo=a.return}}var b=e.current;for(Jo=b;null!==Jo;){var w=(o=Jo).child;if(0!==(2064&o.subtreeFlags)&&null!==w)w.return=o,Jo=w;else e:for(o=b;null!==Jo;){if(0!==(2048&(l=Jo).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(_){Ec(l,l.return,_)}if(l===o){Jo=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Jo=x;break e}Jo=l.return}}if(Tl=i,zi(),st&&"function"===typeof st.onPostCommitFiberRoot)try{st.onPostCommitFiberRoot(it,e)}catch(_){}r=!0}return r}finally{bt=n,Al.transition=t}}return!1}function Sc(e,t,n){e=Us(e,t=fo(0,t=lo(n,t),1),1),t=ec(),null!==e&&(yt(e,1,t),rc(e,t))}function Ec(e,t,n){if(3===e.tag)Sc(e,e,n);else for(;null!==t;){if(3===t.tag){Sc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Wl||!Wl.has(r))){t=Us(t,e=po(t,e=lo(n,e),1),1),e=ec(),null!==t&&(yt(t,1,e),rc(t,e));break}}t=t.return}}function kc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Il===e&&(jl&n)===n&&(4===Rl||3===Rl&&(130023424&jl)===jl&&500>Ye()-Bl?hc(e,0):Fl|=n),rc(e,t)}function Cc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Rs(e,t))&&(yt(e,t,n),rc(e,n))}function Ac(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cc(e,n)}function Tc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(s(314))}null!==r&&r.delete(t),Cc(e,n)}function Ic(e,t){return Ke(e,t)}function Pc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jc(e,t,n,r){return new Pc(e,t,n,r)}function Nc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Oc(e,t){var n=e.alternate;return null===n?((n=jc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Rc(e,t,n,r,i,a){var o=2;if(r=e,"function"===typeof e)Nc(e)&&(o=1);else if("string"===typeof e)o=5;else e:switch(e){case S:return Lc(n.children,i,a,t);case E:o=8,i|=8;break;case k:return(e=jc(12,n,t,2|i)).elementType=k,e.lanes=a,e;case I:return(e=jc(13,n,t,i)).elementType=I,e.lanes=a,e;case P:return(e=jc(19,n,t,i)).elementType=P,e.lanes=a,e;case O:return Dc(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:o=10;break e;case A:o=9;break e;case T:o=11;break e;case j:o=14;break e;case N:o=16,r=null;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=jc(o,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Lc(e,t,n,r){return(e=jc(7,e,r,t)).lanes=n,e}function Dc(e,t,n,r){return(e=jc(22,e,r,t)).elementType=O,e.lanes=n,e.stateNode={isHidden:!1},e}function Mc(e,t,n){return(e=jc(6,e,null,t)).lanes=n,e}function Fc(e,t,n){return(t=jc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uc(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Vc(e,t,n,r,i,s,a,o,l){return e=new Uc(e,t,n,o,l),1===t?(t=1,!0===s&&(t|=8)):t=0,s=jc(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ds(s),e}function Bc(e){if(!e)return Ai;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ni(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(s(171))}if(1===e.tag){var n=e.type;if(Ni(n))return Li(e,n,t)}return t}function zc(e,t,n,r,i,s,a,o,l){return(e=Vc(n,r,!0,e,0,s,0,o,l)).context=Bc(null),n=e.current,(s=Fs(r=ec(),i=tc(n))).callback=void 0!==t&&null!==t?t:null,Us(n,s,i),e.current.lanes=i,yt(e,i,r),rc(e,r),e}function $c(e,t,n,r){var i=t.current,s=ec(),a=tc(i);return n=Bc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fs(s,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Us(i,t,a))&&(nc(e,i,a,s),Vs(e,i,a)),a}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wc(e,t){qc(e,t),(e=e.alternate)&&qc(e,t)}Sl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ii.current)bo=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bo=!1,function(e,t,n){switch(t.tag){case 3:Io(t),fs();break;case 5:Ys(t);break;case 1:Ni(t.type)&&Di(t);break;case 4:Qs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ci(_s,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ci(Zs,1&Zs.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Mo(e,t,n):(Ci(Zs,1&Zs.current),null!==(e=Ho(e,t,n))?e.sibling:null);Ci(Zs,1&Zs.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return zo(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ci(Zs,Zs.current),r)break;return null;case 22:case 23:return t.lanes=0,Eo(e,t,n)}return Ho(e,t,n)}(e,t,n);bo=0!==(131072&e.flags)}else bo=!1,is&&0!==(1048576&t.flags)&&Zi(t,Wi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$o(e,t),e=t.pendingProps;var i=ji(t,Ti.current);Is(t,n),i=ma(null,t,r,e,i,n);var a=ga();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ni(r)?(a=!0,Di(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ds(t),i.updater=ro,t.stateNode=i,i._reactInternals=t,oo(t,r,e,n),t=To(null,t,r,!0,a,n)):(t.tag=0,is&&a&&es(t),wo(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch($o(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Nc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===j)return 14}return 2}(r),e=to(r,e),i){case 0:t=Co(null,t,r,e,n);break e;case 1:t=Ao(null,t,r,e,n);break e;case 11:t=xo(null,t,r,e,n);break e;case 14:t=_o(null,t,r,to(r.type,e),n);break e}throw Error(s(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Co(e,t,r,i=t.elementType===r?i:to(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ao(e,t,r,i=t.elementType===r?i:to(r,i),n);case 3:e:{if(Io(t),null===e)throw Error(s(387));r=t.pendingProps,i=(a=t.memoizedState).element,Ms(e,t),zs(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Po(e,t,r,n,i=lo(Error(s(423)),t));break e}if(r!==i){t=Po(e,t,r,n,i=lo(Error(s(424)),t));break e}for(rs=ci(t.stateNode.containerInfo.firstChild),ns=t,is=!0,ss=null,n=xs(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fs(),r===i){t=Ho(e,t,n);break e}wo(e,t,r,n)}t=t.child}return t;case 5:return Ys(t),null===e&&cs(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,o=i.children,ni(r,i)?o=null:null!==a&&ni(r,a)&&(t.flags|=32),ko(e,t),wo(e,t,o,n),t.child;case 6:return null===e&&cs(t),null;case 13:return Mo(e,t,n);case 4:return Qs(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ws(t,null,r,n):wo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,xo(e,t,r,i=t.elementType===r?i:to(r,i),n);case 7:return wo(e,t,t.pendingProps,n),t.child;case 8:case 12:return wo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Ci(_s,r._currentValue),r._currentValue=o,null!==a)if(or(a.value,o)){if(a.children===i.children&&!Ii.current){t=Ho(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){o=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Fs(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Ts(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)o=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(o=a.return))throw Error(s(341));o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),Ts(o,n,t),o=a.sibling}else o=a.child;if(null!==o)o.return=a;else for(o=a;null!==o;){if(o===t){o=null;break}if(null!==(a=o.sibling)){a.return=o.return,o=a;break}o=o.return}a=o}wo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Is(t,n),r=r(i=Ps(i)),t.flags|=1,wo(e,t,r,n),t.child;case 14:return i=to(r=t.type,t.pendingProps),_o(e,t,r,i=to(r.type,i),n);case 15:return So(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:to(r,i),$o(e,t),t.tag=1,Ni(r)?(e=!0,Di(t)):e=!1,Is(t,n),so(t,r,i),oo(t,r,i,n),To(null,t,r,!0,e,n);case 19:return zo(e,t,n);case 22:return Eo(e,t,n)}throw Error(s(156,t.tag))};var Kc="function"===typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Qc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function Zc(e,t,n,r,i){var s=n._reactRootContainer;if(s){var a=s;if("function"===typeof i){var o=i;i=function(){var e=Hc(a);o.call(e)}}$c(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var s=r;r=function(){var e=Hc(a);s.call(e)}}var a=zc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=a,e[pi]=a.current,zr(8===e.nodeType?e.parentNode:e),uc(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var o=r;r=function(){var e=Hc(l);o.call(e)}}var l=Vc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[pi]=l.current,zr(8===e.nodeType?e.parentNode:e),uc((function(){$c(t,l,n,r)})),l}(n,t,e,i,r);return Hc(a)}Qc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(s(409));$c(e,t,null,null)},Qc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){$c(null,e,null,null)})),t[pi]=null}},Qc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&0!==t&&t<Ot[n].priority;n++);Ot.splice(n,0,e),0===n&&Mt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(vt(t,1|n),rc(t,Ye()),0===(6&Tl)&&(zl=Ye()+500,zi()))}break;case 13:uc((function(){var t=Rs(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Wc(e,1)}},_t=function(e){if(13===e.tag){var t=Rs(e,134217728);if(null!==t)nc(t,e,134217728,ec());Wc(e,134217728)}},St=function(e){if(13===e.tag){var t=tc(e),n=Rs(e,t);if(null!==n)nc(n,e,t,ec());Wc(e,t)}},Et=function(){return bt},kt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},_e=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=xi(r);if(!i)throw Error(s(90));K(r),J(r,i)}}}break;case"textarea":se(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=cc,Ie=uc;var eu={usingClientEntryPoint:!1,Events:[bi,wi,xi,Ce,Ae,cc]},tu={findFiberByHostInstance:vi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qe(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{it=ru.inject(nu),st=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(s(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xc(e))throw Error(s(299));var n=!1,r="",i=Kc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Vc(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,zr(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(s(188));throw e=Object.keys(e).join(","),Error(s(268,e))}return e=null===(e=qe(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Yc(t))throw Error(s(200));return Zc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xc(e))throw Error(s(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",o=Kc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(o=n.onRecoverableError)),t=zc(t,null,e,1,null!=n?n:null,i,0,a,o),e[pi]=t.current,zr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Qc(t)},t.render=function(e,t,n){if(!Yc(t))throw Error(s(200));return Zc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Yc(e))throw Error(s(40));return!!e._reactRootContainer&&(uc((function(){Zc(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Yc(n))throw Error(s(200));if(null==e||void 0===e._reactInternals)throw Error(s(38));return Zc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},60775:(e,t,n)=>{"use strict";var r=n(99998);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot}
2,99998:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(75914)},25630:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function s(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var o,l,c,u;if(Array.isArray(e)){if((o=e.length)!=a.length)return!1;for(l=o;0!==l--;)if(!s(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!s(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((o=e.length)!=a.length)return!1;for(l=o;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((o=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=o;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=o;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!s(e[c[l]],a[c[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return s(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},48470:(e,t,n)=>{var r,i=Object.create,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of o(t))c.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},d=(e,t,n)=>(n=null!=e?i(l(e)):{},u(!t&&e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)),h=(e,t,n)=>(((e,t,n)=>{t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!==typeof t?t+"":t,n),n),f={};((e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(f,{default:()=>v}),e.exports=(r=f,u(s({},"__esModule",{value:!0}),r));var p=d(n(82483)),m=d(n(25630)),g=n(60305),y=n(84558);class v extends p.Component{constructor(){var e;super(...arguments),e=this,h(this,"mounted",!1),h(this,"isReady",!1),h(this,"isPlaying",!1),h(this,"isLoading",!0),h(this,"loadOnReady",null),h(this,"startOnPlay",!0),h(this,"seekOnPlay",null),h(this,"onDurationCalled",!1),h(this,"handlePlayerMount",(e=>{this.player||(this.player=e,this.player.load(this.props.url)),this.progress()})),h(this,"getInternalPlayer",(e=>this.player?this.player[e]:null)),h(this,"progress",(()=>{if(this.props.url&&this.player&&this.isReady){const e=this.getCurrentTime()||0,t=this.getSecondsLoaded(),n=this.getDuration();if(n){const r={playedSeconds:e,played:e/n};null!==t&&(r.loadedSeconds=t,r.loaded=t/n),r.playedSeconds===this.prevPlayed&&r.loadedSeconds===this.prevLoaded||this.props.onProgress(r),this.prevPlayed=r.playedSeconds,this.prevLoaded=r.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)})),h(this,"handleReady",(()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:e,playing:t,volume:n,muted:r}=this.props;e(),r||null===n||this.player.setVolume(n),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):t&&this.player.play(),this.handleDurationCheck()})),h(this,"handlePlay",(()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:e,onPlay:t,playbackRate:n}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&1!==n&&this.player.setPlaybackRate(n),e(),this.startOnPlay=!1),t(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()})),h(this,"handlePause",(e=>{this.isPlaying=!1,this.isLoading||this.props.onPause(e)})),h(this,"handleEnded",(()=>{const{activePlayer:e,loop:t,onEnded:n}=this.props;e.loopOnEnded&&t&&this.seekTo(0),t||(this.isPlaying=!1,n())})),h(this,"handleError",(function(){e.isLoading=!1,e.props.onError(...arguments)})),h(this,"handleDurationCheck",(()=>{clearTimeout(this.durationCheckTimeout);const e=this.getDuration();e?this.onDurationCalled||(this.props.onDuration(e),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)})),h(this,"handleLoaded",(()=>{this.isLoading=!1}))}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP(
2)),this.mounted=!1}componentDidUpdate(e){if(!this.player)return;const{url:t,playing:n,volume:r,muted:i,playbackRate:s,pip:a,loop:o,activePlayer:l,disableDeferredLoading:c}=this.props;if(!(0,m.default)(e.url,t)){if(this.isLoading&&!l.forceLoad&&!c&&!(0,y.isMediaStream)(t))return console.warn(`ReactPlayer: the attempt to load ${t} is being deferred until the player has loaded`),void(this.loadOnReady=t);this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(t,this.isReady)}e.playing||!n||this.isPlaying||this.player.play(),e.playing&&!n&&this.isPlaying&&this.player.pause(),!e.pip&&a&&this.player.enablePIP&&this.player.enablePIP(),e.pip&&!a&&this.player.disablePIP&&this.player.disablePIP(),e.volume!==r&&null!==r&&this.player.setVolume(r),e.muted!==i&&(i?this.player.mute():(this.player.unmute(),null!==r&&setTimeout((()=>this.player.setVolume(r))))),e.playbackRate!==s&&this.player.setPlaybackRate&&this.player.setPlaybackRate(s),e.loop!==o&&this.player.setLoop&&this.player.setLoop(o)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(e,t,n){if(!this.isReady)return void(0!==e&&(this.seekOnPlay=e,setTimeout((()=>{this.seekOnPlay=null}),5e3)));if(t?"fraction"===t:e>0&&e<1){const t=this.player.getDuration();return t?void this.player.seekTo(t*e,n):void console.warn("ReactPlayer: could not seek using fraction \u2013\xa0duration not yet available")}this.player.seekTo(e,n)}render(){const e=this.props.activePlayer;return e?p.default.createElement(e,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}h(v,"displayName","Player"),h(v,"propTypes",g.propTypes),h(v,"defaultProps",g.defaultProps)},45361:(e,t,n)=>{var r,i=Object.create,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of o(t))c.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},d=(e,t,n)=>(n=null!=e?i(l(e)):{},u(!t&&e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)),h=(e,t,n)=>(((e,t,n)=>{t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!==typeof t?t+"":t,n),n),f={};((e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(f,{createReactPlayer:()=>A}),e.exports=(r=f,u(s({},"__esModule",{value:!0}),r));var p=d(n(82483)),m=d(n(48109)),g=d(n(6570)),y=d(n(25630)),v=n(60305),b=n(84558),w=d(n(48470));const x=(0,b.lazy)((()=>n.e(6353).then(n.t.bind(n,22483,23)))),_="undefined"!==typeof window&&window.document&&"undefined"!==typeof document,S="undefined"!==typeof n.g&&n.g.window&&n.g.window.document,E=Object.keys(v.propTypes),k=_||S?p.Suspense:()=>null,C=[],A=(e,t)=>
2{var n;return n=class extends p.Component{constructor(){var n;super(...arguments),n=this,h(this,"state",{showPreview:!!this.props.light}),h(this,"references",{wrapper:e=>{this.wrapper=e},player:e=>{this.player=e}}),h(this,"handleClickPreview",(e=>{this.setState({showPreview:!1}),this.props.onClickPreview(e)})),h(this,"showPreview",(()=>{this.setState({showPreview:!0})})),h(this,"getDuration",(()=>this.player?this.player.getDuration():null)),h(this,"getCurrentTime",(()=>this.player?this.player.getCurrentTime():null)),h(this,"getSecondsLoaded",(()=>this.player?this.player.getSecondsLoaded():null)),h(this,"getInternalPlayer",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"player";return n.player?n.player.getInternalPlayer(e):null})),h(this,"seekTo",((e,t,n)=>{if(!this.player)return null;this.player.seekTo(e,t,n)})),h(this,"handleReady",(()=>{this.props.onReady(this)})),h(this,"getActivePlayer",(0,g.default)((n=>{for(const t of[...C,...e])if(t.canPlay(n))return t;return t||null}))),h(this,"getConfig",(0,g.default)(((e,t)=>{const{config:n}=this.props;return m.default.all([v.defaultProps.config,v.defaultProps.config[t]||{},n,n[t]||{}])}))),h(this,"getAttributes",(0,g.default)((e=>(0,b.omit)(this.props,E)))),h(this,"renderActivePlayer",(e=>{if(!e)return null;const t=this.getActivePlayer(e);if(!t)return null;const n=this.getConfig(e,t.key);return p.default.createElement(w.default,{...this.props,key:t.key,ref:this.references.player,config:n,activePlayer:t.lazyPlayer||t,onReady:this.handleReady})}))}shouldComponentUpdate(e,t){return!(0,y.default)(this.props,e)||!(0,y.default)(this.state,t)}componentDidUpdate(e){const{light:t}=this.props;!e.light&&t&&this.setState({showPreview:!0}),e.light&&!t&&this.setState({showPreview:!1})}renderPreview(e){if(!e)return null;const{light:t,playIcon:n,previewTabIndex:r,oEmbedUrl:i,previewAriaLabel:s}=this.props;return p.default.createElement(x,{url:e,light:t,playIcon:n,previewTabIndex:r,previewAriaLabel:s,oEmbedUrl:i,onClick:this.handleClickPreview})}render(){const{url:e,style:t,width:n,height:r,fallback:i,wrapper:s}=this.props,{showPreview:a}=this.state,o=this.getAttributes(e),l="string"===typeof s?this.references.wrapper:void 0;return p.default.createElement(s,{ref:l,style:{...t,width:n,height:r},...o},p.default.createElement(k,{fallback:i},a?this.renderPreview(e):this.renderActivePlayer(e)))}},h(n,"displayName","ReactPlayer"),h(n,"propTypes",v.propTypes),h(n,"defaultProps",v.defaultProps),h(n,"addCustomPlayer",(e=>{C.push(e)})),h(n,"removeCustomPlayers",(()=>{C.length=0})),h(n,"canPlay",(t=>{for(const n of[...C,...e])if(n.canPlay(t))return!0;return!1})),h(n,"canEnablePIP",(t=>{for(const n of[...C,...e])if(n.canEnablePIP&&n.canEnablePIP(t))return!0;return!1})),n}},48819:(e,t,n)=>{var r,i=Object.create,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of o(t))c.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},d={};((e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(d,{default:()=>m}),e.exports=(r=d,u(s({},"__esModule",{value:!0}),r));var h=((e,t,n)=>(n=null!=e?i(l(e)):{},u(!t&&e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)))(n(60582)),f=n(45361);const p=h.default[h.default.length-1];var m=(0,f.createReactPlayer)(h.default,p)},46160:(e,t,n)=>{var r,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(l,{AUDIO_EXTENSIONS:()=>E,DASH_EXTENSIONS:()=>A,FLV_EXTENSIONS:()=>T,HLS_EXTENSIONS:()=>C,MATCH_URL_DAILYMOTION:()=>w,MATCH_URL_FACEBOOK:()=>p,MATCH_URL_FACEBOOK_WATCH:()=>m,MATCH_URL_KALTURA:()=>S,MATCH_URL_MIXCLOUD:()=>x,MATCH_URL_MUX:()=>f,MATCH_URL_SOUNDCLOUD:()=>d,MATCH_URL_STREAMABLE:()=>g,MATCH_URL_TWITCH_CHANNEL:()=>b,MATCH_URL_TWITCH_VIDEO:()=>v,MATCH_URL_VIDYARD:()=>_,MATCH_URL_VIMEO:()=>h,MATCH_URL_WISTIA:()=>y,MATCH_URL_YOUTUBE:()=>u,VIDEO_EXTENSIONS:()=>k,canPlay:()=>P}),e.exports=(r=l,((e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let l of a(t))o.call(e,l)||l===n||i(e,l,{get:()=>t[l],enumerable:!(r=s(t,l))||r.enumerable});return e})(i({},"__esModule",{value:!0}),r));var c=n(84558);const u=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|wat
2ch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,d=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,h=/vimeo\.com\/(?!progressive_redirect).+/,f=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,p=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,m=/^https?:\/\/fb\.watch\/.+$/,g=/streamable\.com\/([a-z0-9]+)$/,y=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,v=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,b=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,w=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,x=/mixcloud\.com\/([^/]+\/[^/]+)/,_=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,S=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,E=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,k=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,C=/\.(m3u8)($|\?)/i,A=/\.(mpd)($|\?)/i,T=/\.(flv)($|\?)/i,I=e=>{if(e instanceof Array){for(const t of e){if("string"===typeof t&&I(t))return!0;if(I(t.src))return!0}return!1}return!(!(0,c.isMediaStream)(e)&&!(0,c.isBlobUrl)(e))||(E.test(e)||k.test(e)||C.test(e)||A.test(e)||T.test(e))},P={youtube:e=>e instanceof Array?e.every((e=>u.test(e))):u.test(e),soundcloud:e=>d.test(e)&&!E.test(e),vimeo:e=>h.test(e)&&!k.test(e)&&!C.test(e),mux:e=>f.test(e),facebook:e=>p.test(e)||m.test(e),streamable:e=>g.test(e),wistia:e=>y.test(e),twitch:e=>v.test(e)||b.test(e),dailymotion:e=>w.test(e),mixcloud:e=>x.test(e),vidyard:e=>_.test(e),kaltura:e=>S.test(e),file:I}},60582:(e,t,n)=>{Object.create;var r,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=(Object.getPrototypeOf,Object.prototype.hasOwnProperty),l=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let l of a(t))o.call(e,l)||l===n||i(e,l,{get:()=>t[l],enumerable:!(r=s(t,l))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(c,{default:()=>h}),e.exports=(r=c,l(i({},"__esModule",{value:!0}),r));var u=n(84558),d=n(46160),h=[{key:"youtube",name:"YouTube",canPlay:d.canPlay.youtube,lazyPlayer:(0,u.lazy)((()=>n.e(8446).then(n.t.bind(n,75187,23))))},{key:"soundcloud",name:"SoundCloud",canPlay:d.canPlay.soundcloud,lazyPlayer:(0,u.lazy)((()=>n.e(9979).then(n.t.bind(n,38984,23))))},{key:"vimeo",name:"Vimeo",canPlay:d.canPlay.vimeo,lazyPlayer:(0,u.lazy)((()=>n.e(6173).then(n.t.bind(n,20618,23))))},{key:"mux",name:"Mux",canPlay:d.canPlay.mux,lazyPlayer:(0,u.lazy)((()=>n.e(2723).then(n.t.bind(n,53520,23))))},{key:"facebook",name:"Facebook",canPlay:d.canPlay.facebook,lazyPlayer:(0,u.lazy)((()=>n.e(6887).then(n.t.bind(n,46736,23))))},{key:"streamable",name:"Streamable",canPlay:d.canPlay.streamable,lazyPlayer:(0,u.lazy)((()=>n.e(7627).then(n.t.bind(n,47208,23))))},{key:"wistia",name:"Wistia",canPlay:d.canPlay.wistia,lazyPlayer:(0,u.lazy)((()=>n.e(9340).then(n.t.bind(n,44733,23))))},{key:"twitch",name:"Twitch",canPlay:d.canPlay.twitch,lazyPlayer:(0,u.lazy)((()=>n.e(2042).then(n.t.bind(n,90867,23))))},{key:"dailymotion",name:"DailyMotion",canPlay:d.canPlay.dailymotion,lazyPlayer:(0,u.lazy)((()=>n.e(6328).then(n.t.bind(n,953,23))))},{key:"mixcloud",name:"Mixcloud",canPlay:d.canPlay.mixcloud,lazyPlayer:(0,u.lazy)((()=>n.e(7570).then(n.t.bind(n,97851,23))))},{key:"vidyard",name:"Vidyard",canPlay:d.canPlay.vidyard,lazyPlayer:(0,u.lazy)((()=>n.e(3392).then(n.t.bind(n,36901,23))))},{key:"kaltura",name:"Kaltura",canPlay:d.canPlay.kaltura,lazyPlayer:(0,u.lazy)((()=>n.e(6463).then(n.t.bind(n,81836,23))))},{key:"file",name:"FilePlayer",canPlay:d.canPlay.file,canEnablePIP:e=>d.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,u.supportsWebKitPresentationMode)())&&!d.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,u.lazy)((()=>n.e(7458).then(n.t.bind(n,50139,23))))}]},60305:(e,t,n)=>{var r,i=Object.create,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of o(t))c.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},d={};((e,t)=>
2{for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(d,{defaultProps:()=>E,propTypes:()=>_}),e.exports=(r=d,u(s({},"__esModule",{value:!0}),r));var h=((e,t,n)=>(n=null!=e?i(l(e)):{},u(!t&&e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)))(n(16405));const{string:f,bool:p,number:m,array:g,oneOfType:y,shape:v,object:b,func:w,node:x}=h.default,_={url:y([f,g,b]),playing:p,loop:p,controls:p,volume:m,muted:p,playbackRate:m,width:y([f,m]),height:y([f,m]),style:b,progressInterval:m,playsinline:p,pip:p,stopOnUnmount:p,light:y([p,f,b]),playIcon:x,previewTabIndex:m,previewAriaLabel:f,fallback:x,oEmbedUrl:f,wrapper:y([f,w,v({render:w.isRequired})]),config:v({soundcloud:v({options:b}),youtube:v({playerVars:b,embedOptions:b,onUnstarted:w}),facebook:v({appId:f,version:f,playerId:f,attributes:b}),dailymotion:v({params:b}),vimeo:v({playerOptions:b,title:f}),mux:v({attributes:b,version:f}),file:v({attributes:b,tracks:g,forceVideo:p,forceAudio:p,forceHLS:p,forceSafariHLS:p,forceDisableHls:p,forceDASH:p,forceFLV:p,hlsOptions:b,hlsVersion:f,dashVersion:f,flvVersion:f}),wistia:v({options:b,playerId:f,customControls:g}),mixcloud:v({options:b}),twitch:v({options:b,playerId:f}
2),vidyard:v({options:b})}),onReady:w,onStart:w,onPlay:w,onPause:w,onBuffer:w,onBufferEnd:w,onEnded:w,onError:w,onDuration:w,onSeek:w,onPlaybackRateChange:w,onPlaybackQualityChange:w,onProgress:w,onClickPreview:w,onEnablePIP:w,onDisablePIP:w},S=()=>{},E={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:S},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:S,onStart:S,onPlay:S,onPause:S,onBuffer:S,onBufferEnd:S,onEnded:S,onError:S,onDuration:S,onSeek:S,onPlaybackRateChange:S,onPlaybackQualityChange:S,onProgress:S,onClickPreview:S,onEnablePIP:S,onDisablePIP:S}},84558:(e,t,n)=>{var r,i=Object.create,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let i of o(t))c.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},d=(e,t,n)=>(n=null!=e?i(l(e)):{},u(!t&&e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(h,{callPlayer:()=>j,getConfig:()=>I,getSDK:()=>T,isBlobUrl:()=>O,isMediaStream:()=>N,lazy:()=>g,omit:()=>P,parseEndTime:()=>S,parseStartTime:()=>_,queryString:()=>k,randomString:()=>E,supportsWebKitPresentationMode:()=>R}),e.exports=(r=h,u(s({},"__esModule",{value:!0}),r));var f=d(n(82483)),p=d(n(15068)),m=d(n(48109));const g=e=>f.default.lazy((async()=>{const t=await e();return"function"===typeof t.default?t:t.default})),y=/[?&#](?:start|t)=([0-9hms]+)/,v=/[?&#]end=([0-9hms]+)/,b=/(\d+)(h|m|s)/g,w=/^\d+$/;function x(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const e=n[1];if(e.match(b))return function(e){let t=0,n=b.exec(e);for(;null!==n;){const[,r,i]=n;"h"===i&&(t+=60*parseInt(r,10)*60),"m"===i&&(t+=60*parseInt(r,10)),"s"===i&&(t+=parseInt(r,10)),n=b.exec(e)}return t}(e);if(w.test(e))return parseInt(e)}}function _(e){return x(e,y)}function S(e){return x(e,v)}function E(){return Math.random().toString(36).substr(2,5)}function k(e){return Object.keys(e).map((t=>`${t}=${e[t]}`)).join("&")}function C(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const A={},T=function(e){0;return e}((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>!0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:p.default;const s=C(t);return s&&r(s)?Promise.resolve(s):new Promise(((r,s)=>{if(A[e])return void A[e].push({resolve:r,reject:s});A[e]=[{resolve:r,reject:s}];const a=t=>{A[e].forEach((e=>e.resolve(t)))};if(n){const e=window[n];window[n]=function(){e&&e(),a(C(t))}}i(e,(r=>{r?(A[e].forEach((e=>e.reject(r))),A[e]=null):n||a(C(t))}))}))}));function I(e,t){return(0,m.default)(t.config,e.config)}function P(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=[].concat(...n),s={},a=Object.keys(e);for(const o of a)-1===i.indexOf(o)&&(s[o]=e[o]);return s}function j(e){if(!this.player||!this.player[e]){let t=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c \u2013 `;return this.player?this.player[e]||(t+="The method was not available"):t+="The player was not available",console.warn(t,"font-weight: bold",""),null}for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this.player[e](...n)}function N(e){return"undefined"!==typeof window&&"undefined"!==typeof window.MediaStream&&e instanceof window.MediaStream}function O(e){return/^blob:/.test(e)}function R(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.createElement("video");const t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"===typeof e.webkitSetPresentationMode&&t}},99891:(e,t,n)=>{"use strict";var r,i;n.d(t,{Kd:()=>f,N_:()=>g});var s=n(82483),a=n(99998),o=n(93376),l=n(81083);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const d=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(b){}new Map;const h=(r||(r=n.t(s,2))).startTransition;(i||(i=n.t(a,2))).flushSync,(r||(r=n.t(s,2))).useId;function f(e){let{basename:t,children:n,future:r,window:i}=e,a=s.useRef();null==a.current&&(a.current=(0,l.zR)({window:i,v5Compat:!0}));let c=a.current,[u,d]=s.useState({action:c.action,location:c.location}),{v7_startTransition:f}=r||{},p=s.useCallback((e=>{f&&h?h((()=>d(e))):d(e)}),[d,f]);return s.useLayoutEffect((()=>c.listen(p)),[c,p]),s.createElement(o.Ix,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:c,future:r})}const p="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,m=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,g=s.forwardRef((function(e,t){let n,{onClick:r,relative:i,reloadDocument:a,replace:h,state:f,target:g,to:y,preventScrollReset:v,unstable_viewTransition:w}=e,x=u(e,d),{basename:_}=s.useContext(o.jb),S=!1;if("string"===typeof y&&m.test(y)&&(n=y,p))try{let e=new URL(window.location.href),t=y.startsWith("//")?new URL(e.protocol+y):new URL(y),n=(0,l.pb)(t.pathname,_);t.origin===e.origin&&null!=n?y=n+t.search+t.hash:S=!0}catch(b){}let E=(0,o.$P)(y,{relative:i}),k=function(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:c,unstable_viewTransition:u}=void 0===t?{}:t,d=(0,o.Zp)(),h=(0,o.zy)(),f=(0,o.x$)(e,{relative:c}
2);return s.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==r?r:(0,l.AO)(h)===(0,l.AO)(f);d(e,{replace:n,state:i,preventScrollReset:a,relative:c,unstable_viewTransition:u})}}),[h,d,f,r,i,n,e,a,c,u])}(y,{replace:h,state:f,target:g,preventScrollReset:v,relative:i,unstable_viewTransition:w});return s.createElement("a",c({},x,{href:n||E,onClick:S||a?r:function(e){r&&r(e),e.defaultPrevented||k(e)},ref:t,target:g}))}));var y,v;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(y||(y={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(v||(v={}))},93376:(e,t,n)=>{"use strict";var r;n.d(t,{$P:()=>f,BV:()=>L,C5:()=>N,Ix:()=>R,Zp:()=>y,g:()=>v,jb:()=>c,qh:()=>O,x$:()=>b,zy:()=>m});var i=n(82483),s=n(81083);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}const o=i.createContext(null);const l=i.createContext(null);const c=i.createContext(null);const u=i.createContext(null);const d=i.createContext({outlet:null,matches:[],isDataRoute:!1});const h=i.createContext(null);function f(e,t){let{relative:n}=void 0===t?{}:t;p()||(0,s.Oi)(!1);let{basename:r,navigator:a}=i.useContext(c),{hash:o,pathname:l,search:u}=b(e,{relative:n}),d=l;return"/"!==r&&(d="/"===l?r:(0,s.HS)([r,l])),a.createHref({pathname:d,search:u,hash:o})}function p(){return null!=i.useContext(u)}function m(){return p()||(0,s.Oi)(!1),i.useContext(u).location}function g(e){i.useContext(c).static||i.useLayoutEffect(e)}function y(){let{isDataRoute:e}=i.useContext(d);return e?function(){let{router:e}=T(C.UseNavigateStable),t=P(A.UseNavigateStable),n=i.useRef(!1);return g((()=>{n.current=!0})),i.useCallback((function(r,i){void 0===i&&(i={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,a({fromRouteId:t},i)))}),[e,t])}():function(){p()||(0,s.Oi)(!1);let e=i.useContext(o),{basename:t,future:n,navigator:r}=i.useContext(c),{matches:a}=i.useContext(d),{pathname:l}=m(),u=JSON.stringify((0,s.yD)(a,n.v7_relativeSplatPath)),h=i.useRef(!1);return g((()=>{h.current=!0})),i.useCallback((function(n,i){if(void 0===i&&(i={}),!h.current)return;if("number"===typeof n)return void r.go(n);let a=(0,s.Gh)(n,JSON.parse(u),l,"path"===i.relative);null==e&&"/"!==t&&(a.pathname="/"===a.pathname?t:(0,s.HS)([t,a.pathname])),(i.replace?r.replace:r.push)(a,i.state,i)}),[t,r,u,l,e])}()}function v(){let{matches:e}=i.useContext(d),t=e[e.length-1];return t?t.params:{}}function b(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=i.useContext(c),{matches:a}=i.useContext(d),{pathname:o}=m(),l=JSON.stringify((0,s.yD)(a,r.v7_relativeSplatPath));return i.useMemo((()=>(0,s.Gh)(e,JSON.parse(l),o,"path"===n)),[e,l,o,n])}function w(e,t,n,r){p()||(0,s.Oi)(!1);let{navigator:o}=i.useContext(c),{matches:l}=i.useContext(d),h=l[l.length-1],f=h?h.params:{},g=(h&&h.pathname,h?h.pathnameBase:"/");h&&h.route;let y,v=m();if(t){var b;let e="string"===typeof t?(0,s.Rr)(t):t;"/"===g||(null==(b=e.pathname)?void 0:b.startsWith(g))||(0,s.Oi)(!1),y=e}else y=v;let w=y.pathname||"/",x=w;if("/"!==g){let e=g.replace(/^\//,"").split("/");x="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let _=(0,s.ue)(e,{pathname:x});let S=k(_&&_.map((e=>Object.assign({},e,{params:Object.assign({},f,e.params),pathname:(0,s.HS)([g,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?g:(0,s.HS)([g,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),l,n,r);return t&&S?i.createElement(u.Provider,{value:{location:a({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:s.rc.Pop}},S):S}function x(){let e=function(){var e;let t=i.useContext(h),n=I(A.UseRouteError),r=P(A.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=(0,s.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r};return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application
2Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:a},n):null,null)}const _=i.createElement(x,null);class S extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?i.createElement(d.Provider,{value:this.props.routeContext},i.createElement(h.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function E(e){let{routeContext:t,match:n,children:r}=e,s=i.useContext(o);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),i.createElement(d.Provider,{value:t},r)}function k(e,t,n,r){var a;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var o;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(o=r)&&o.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let l=e,c=null==(a=n)?void 0:a.errors;if(null!=c){let e=l.findIndex((e=>e.route.id&&void 0!==(null==c?void 0:c[e.route.id])));e>=0||(0,s.Oi)(!1),l=l.slice(0,Math.min(l.length,e+1))}let u=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let i=0;i<l.length;i++){let e=l[i];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(d=i),e.route.id){let{loaderData:t,errors:r}=n,i=e.route.loader&&void 0===t[e.route.id]&&(!r||void 0===r[e.route.id]);if(e.route.lazy||i){u=!0,l=d>=0?l.slice(0,d+1):[l[0]];break}}}return l.reduceRight(((e,r,s)=>{let a,o=!1,h=null,f=null;var p;n&&(a=c&&r.route.id?c[r.route.id]:void 0,h=r.route.errorElement||_,u&&(d<0&&0===s?(p="route-fallback",!1||j[p]||(j[p]=!0),o=!0,f=null):d===s&&(o=!0,f=r.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,s+1)),g=()=>{let t;return t=a?h:o?f:r.route.Component?i.createElement(r.route.Component,null):r.route.element?r.route.element:e,i.createElement(E,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===s)?i.createElement(S,{location:n.location,revalidation:n.revalidation,component:h,error:a,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}var C=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(C||{}),A=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(A||{});function T(e){let t=i.useContext(o);return t||(0,s.Oi)(!1),t}function I(e){let t=i.useContext(l);return t||(0,s.Oi)(!1),t}function P(e){let t=function(){let e=i.useContext(d);return e||(0,s.Oi)(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||(0,s.Oi)(!1),n.route.id}const j={};(r||(r=n.t(i,2))).startTransition;function N(e){let{to:t,replace:n,state:r,relative:a}=e;p()||(0,s.Oi)(!1);let{future:o,static:l}=i.useContext(c),{matches:u}=i.useContext(d),{pathname:h}=m(),f=y(),g=(0,s.Gh)(t,(0,s.yD)(u,o.v7_relativeSplatPath),h,"path"===a),v=JSON.stringify(g);return i.useEffect((()=>f(JSON.parse(v),{replace:n,state:r,relative:a})),[f,v,a,n,r]),null}function O(e){(0,s.Oi)(!1)}function R(e){let{basename:t="/",children:n=null,location:r,navigationType:o=s.rc.Pop,navigator:l,static:d=!1,future:h}=e;p()&&(0,s.Oi)(!1);let f=t.replace(/^\/*/,"/"),m=i.useMemo((()=>({basename:f,navigator:l,static:d,future:a({v7_relativeSplatPath:!1},h)})),[f,h,l,d]);"string"===typeof r&&(r=(0,s.Rr)(r));let{pathname:g="/",search:y="",hash:v="",state:b=null,key:w="default"}=r,x=i.useMemo((()=>{let e=(0,s.pb)(g,f);return null==e?null:{location:{pathname:e,search:y,hash:v,state:b,key:w},navigationType:o}}),[f,g,y,v,b,w,o]);return null==x?null:i.createElement(c.Provider,{value:m},i.createElement(u.Provider,{children:n,value:x}))}function L(e){let{children:t,location:n}=e;return w(D(t),n)}new Promise((()=>{}));i.Component;function D(e,t){void 0===t&&(t=[]);let n=[];
2return i.Children.forEach(e,((e,r)=>{if(!i.isValidElement(e))return;let a=[...t,r];if(e.type===i.Fragment)return void n.push.apply(n,D(e.props.children,a));e.type!==O&&(0,s.Oi)(!1),e.props.index&&e.props.children&&(0,s.Oi)(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=D(e.props.children,a)),n.push(o)})),n}},53097:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>g});var r=n(98587),i=n(77387),s=n(82483),a=n(99998);const o=!1;var l=n(60406),c="unmounted",u="exited",d="entering",h="entered",f="exiting",p=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,s=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?s?(i=u,r.appearStatus=d):i=h:i=t.unmountOnExit||t.mountOnEnter?c:u,r.state={status:i},r.nextCallback=null,r}(0,i.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:u}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==h&&(t=d):n!==d&&n!==h||(t=f)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===d){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:c})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[a.findDOMNode(this),r],s=i[0],l=i[1],c=this.getTimeouts(),u=r?c.appear:c.enter;!e&&!n||o?this.safeSetState({status:h},(function(){t.props.onEntered(s)})):(this.props.onEnter(s,l),this.safeSetState({status:d},(function(){t.props.onEntering(s,l),t.onTransitionEnd(u,(function(){t.safeSetState({status:h},(function(){t.props.onEntered(s,l)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!o?(this.props.onExit(r),this.safeSetState({status:f},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:u},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:u},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],s=i[0],o=i[1];this.props.addEndListener(s,o)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(l.A.Provider,{value:null},"function"===typeof n?n(e,i):s.cloneElement(s.Children.only(n),i))},t}(s.Component);function m(){}p.contextType=l.A,p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter
vendor: 11,688 bytes, line 2
2:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},p.UNMOUNTED=c,p.EXITED=u,p.ENTERING=d,p.ENTERED=h,p.EXITING=f;const g=p},60406:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(82483).createContext(null)},49009:(e,t,n)=>{"use strict";var r=n(82483),i=Symbol.for("react.element"),s=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,s={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===s[r]&&(s[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:s,_owner:o.current}}t.Fragment=s,t.jsx=c,t.jsxs=c},13146:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var w=b.prototype=new v;w.constructor=b,m(w,y.prototype),w.isPureReactComponent=!0;var x=Array.isArray,_=Object.prototype.hasOwnProperty,S={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,r){var i,s={},a=null,o=null;if(null!=t)for(i in void 0!==t.ref&&(o=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,i)&&!E.hasOwnProperty(i)&&(s[i]=t[i]);var l=arguments.length-2;if(1===l)s.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];s.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===s[i]&&(s[i]=l[i]);return{$$typeof:n,type:e,key:a,ref:o,props:s,_owner:S.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function T(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function I(e,t,i,s,a){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var l=!1;if(null===e)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===s?"."+T(l,0):s,x(a)?(i="",null!=e&&(i=e.replace(A,"$&/")+"/"),I(a,t,i,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(A,"$&/")+"/")+e)),t.push(a)),1;if(l=0,s=""===s?".":s+":",x(e))for(var c=0;c<e.length;c++){var u=s+T(o=e[c],c);l+=I(o,t,i,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(o=e.next()).done;)l+=I(o=o.value,t,i,u=s+T(o,c++),a);else if("object"===o)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var r=[],i=0;return I(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function j(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N={current:null},O={transition:null},R={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:O,ReactCurrentOwner:S};function L(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=s,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.act=L,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),s=e.key,a=e.ref,o=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,o=S.current),void 0!==t.key&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)_.call(t,c)&&!E.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:n,type:e.type,key:s,ref:a,props:i,_owner:o}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:j}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},t.unstable_act=L,t.useCallback=function(e,t){return N.current.useCallback(e,t)},t.useContext=function(e){return N.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return N.current.useDeferredValue(e)},t.useEffect=function(e,t){return N.current.useEffect(e,t)},t.useId=function(){return N.current.useId()},t.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.current.useMemo(e,t)},t.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},t.useRef=function(e){return N.current.useRef(e)},t.useState=function(e){return N.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return N.current.useTransition()},t.version="18.3.1"},82483:(e,t,n)=>{"use strict";e.exports=n(13146)},56723:(e,t,n)=>{"use strict";e.exports=n(49009)},97122:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<s(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var o=2*(r+1)-1,l=e[o],c=o+1,u=e[c];if(0>s(l,n))c<i&&0>s(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[o]=n,r=o);else{if(!(c<i&&0>s(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function s(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,h=null,f=3,p=!1,m=!1,g=!1,y="function"===typeof setTimeout?setTimeout:null,v="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,O(_);else{var t=r(u);null!==t&&R(x,t.startTime-e)}}function _(e,n){m=!1,g&&(g=!1,v(C),C=-1),p=!0;var s=f;try{for(w(n),h=r(c);null!==h&&(!(h.expirationTime>n)||e&&!I());){var a=h.callback;if("function"===typeof a){h.callback=null,f=h.priorityLevel;var o=a(h.expirationTime<=n);n=t.unstable_now(),"function"===typeof o?h.callback=o:h===r(c)&&i(c),w(n)}else i(c);h=r(c)}if(null!==h)var l=!0;else{var d=r(u);null!==d&&R(x,d.startTime-n),l=!1}return l}finally{h=null,f=s,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,E=!1,k=null,C=-1,A=5,T=-1;function I(){return!(t.unstable_now()-T<A)}function P(){if(null!==k){var e=t.unstable_now();T=e;var n=!0;try{n=k(!0,e)}finally{n?S():(E=!1,k=null)}}else E=!1}if("function"===typeof b)S=function(){b(P)};else if("undefined"!==typeof MessageChannel){var j=new MessageChannel,N=j.port2;j.port1.onmessage=P,S=function(){N.postMessage(null)}}else S=function(){y(P,0)};function O(e){k=e,E||(E=!0,S())}function R(e,n){C=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,O(_))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,i,s){var a=t.unstable_now();switch("object"===typeof s&&null!==s?s="number"===typeof(s=s.delay)&&0<s?a+s:a:s=a,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:s,expirationTime:o=s+o,sortIndex:-1},s>a?(e.sortIndex=s,n(u,e),null===r(c)&&e===r(u)&&(g?(v(C),C=-1):g=!0,R(x,s-a))):(e.sortIndex=o,n(c,e),m||p||(m=!0,O(_))),e},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},83557:(e,t,n)=>{"use strict";e.exports=n(97122)},20676:(e,t,n)=>{var r={"./FreeLesson1":[23945,5084,3394,119,4393,3945],"./FreeLesson1.jsx":[23945,5084,3394,119,4393,3945],"./FreeLesson2":[52322,5084,119,4393,2322],"./FreeLesson2.jsx":[52322,5084,119,4393,2322]};function i(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>
vendor: 15,482 bytes, line 2
2n(i)))}i.keys=()=>Object.keys(r),i.id=20676,e.exports=i},34590:(e,t,n)=>{var r={"./Lesson3":[30441,441],"./Lesson3.jsx":[30441,441],"./Lesson4":[60366,366],"./Lesson4.jsx":[60366,366],"./LessonA2":[98341,8341],"./LessonA2.jsx":[98341,8341],"./LessonCallDelta":[97428,7428],"./LessonCallDelta.jsx":[97428,7428],"./LessonCallOptions":[75064,5064],"./LessonCallOptions.jsx":[75064,5064],"./LessonMarginCalls":[51975,1975],"./LessonMarginCalls.jsx":[51975,1975],"./LessonTemplate":[93162,4393,3162],"./LessonTemplate.jsx":[93162,4393,3162],"./LessonTemplateAdvanced":[49504,5084,119,4393,9504],"./LessonTemplateAdvanced.jsx":[49504,5084,119,4393,9504],"./Lessonpmcc":[12851,2851],"./Lessonpmcc.jsx":[12851,2851]};function i(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(i)))}i.keys=()=>Object.keys(r),i.id=34590,e.exports=i},28969:(e,t,n)=>{var r={".":[89708,9],"./":[89708,9],"./App":[16063,9],"./App.css":[44050,9],"./App.js":[16063,9],"./App.test":[33509,9,9349,1988,1094],"./App.test.js":[33509,9,9349,1988,1094],"./AuthContext":[47757,9],"./AuthContext.js":[47757,9],"./Calculus1":[44427,9],"./Calculus1.js":[44427,9],"./Calculus2":[43214,9],"./Calculus2.js":[43214,9],"./Calculus2New":[91548,9,6330,1548],"./Calculus2New.js":[91548,9,6330,1548],"./Calculus3":[87565,9],"./Calculus3.js":[87565,9],"./Dashboard":[44828,9,4828],"./Dashboard.js":[44828,9,4828],"./DevelopedBy":[57279,9],"./DevelopedBy.jsx":[57279,9],"./DevelopedBy.module.css":[25429,9],"./Footer":[20577,9],"./Footer.css":[74330,9],"./Footer.js":[20577,9],"./FreeChapterRequest":[70814,9],"./FreeChapterRequest.jsx":[70814,9],"./FreeContent":[63055,9],"./FreeContent.css":[10814,9],"./FreeContent.js":[63055,9],"./HomePage":[258,9],"./HomePage.js":[258,9],"./HomePage.module.css":[99114,9],"./MagicLinkSignIn":[29741,9],"./MagicLinkSignIn.js":[29741,9],"./MagicLinkSignIn.module.css":[32097,9],"./PrivateRoute":[73082,9],"./PrivateRoute.jsx":[73082,9],"./PurchasePage":[17582,9],"./PurchasePage.css":[93719,9],"./PurchasePage.js":[17582,9],"./VerifyEmail":[35183,9],"./VerifyEmail.css":[54614,9],"./VerifyEmail.js":[35183,9],"./components/ApIbOverview":[95584,9],"./components/ApIbOverview.jsx":[95584,9],"./components/ApIbOverview.module.css":[51900,9],"./components/ConversationBlock":[11085,9],"./components/ConversationBlock.css":[15046,9],"./components/ConversationBlock.js":[11085,9],"./components/DraggableComponent":[59455,9,4393,7238,4811,9455],"./components/DraggableComponent.js":[59455,9,4393,7238,4811,9455],"./components/DyslexicReader":[73627,9,4584,3627],"./components/DyslexicReader.js":[73627,9,4584,3627],"./components/FullScreenDialog":[93124,9,6330,7447,3124],"./components/FullScreenDialog.jsx":[93124,9,6330,7447,3124],"./components/GGBComponent":[2858,9,2858],"./components/GGBComponent.js":[2858,9,2858],"./components/GGBWithCustomHandling":[32675,9,4393,2675],"./components/GGBWithCustomHandling.js":[32675,9,4393,2675],"./components/GenericAccordion":[55121,9,6330,7447,5121],"./components/GenericAccordion.js":[55121,9,6330,7447,5121],"./components/GenericSwarmPlot":[36489,9,7238,7788,2063,6489],"./components/GenericSwarmPlot.js":[36489,9,7238,7788,2063,6489],"./components/GlobalComponentsContext":[85091,9],"./components/GlobalComponentsContext.js":[85091,9],"./components/Image":[18072,9],"./components/Image.jsx":[18072,9],"./components/ImageInfo":[7476,9],"./components/ImageInfo.js":[7476,9],"./components/InstructionInfo":[96501,9,5084,119,6501],"./components/InstructionInfo.js":[96501,9,5084,119,6501],"./components/LessonProgress":[31438,9,1438],"./components/LessonProgress.js":[31438,9,1438],"./components/LessonProgress.module.css":[93614,9,3614],"./components/MyLoader":[82593,9,2593],"./components/MyLoader.js":[82593,9,2593],"./components/NavigationButtons":[58650,9,8650],"./components/NavigationButtons.css":[87315,9,7315],"./components/NavigationButtons.js":[58650,9,8650],"./components/Quiz":[39744,9,9744],"./components/Quiz.js":[39744,9,9744],"./components/QuizComponent.css":[97926,9,7926],"./components/RenderSections":[43509,9],"./components/RenderSections.css":[30020,9],"./components/RenderSections.js":[43509,9],"./components/SecretKeyAuth":[45892,7,5892],"./components/SecretKeyAuth.js":[45892,7,5892],"./components/SectionHeader":[78611,9],"./components/SectionHeader.js":[78611,9],"./components/SimpleModal":[66030,9,4393,7238,4811,6030],"./components/SimpleModal.js":[66030,9,4393,7238,4811,6030],"./components/SimpleQuiz":[50102,9,102],"./components/SimpleQuiz.js":[50102,9,102],"./components/Slider":[3704,9],"./components/Slider.js":[3704,9],"./components/SpeakInfo":[10443,9,443],"./components/SpeakInfo.js":[10443,9,443],"./components/SpeakInfoPodcast":[6631,9,6631],"./components/SpeakInfoPodcast.js":[6631,9,6631],"./components/SpeakInfoWithQuiz":[50302,9,302],"./components/SpeakInfoWithQuiz.js":[50302,9,302],"./components/TextBlock":[33893,9],"./components/TextBlock.js":[33893,9],"./components/ToggleContent":[27044,9],"./components/ToggleContent.css":[27697,9],"./components/ToggleContent.js":[27044,9],"./components/Typography":[4052,9,4052],"./components/Typography.jsx":[4052,9,4052],"./components/UseFetchData":[54284,9,4284],"./components/UseFetchData.js":[54284,9,4284],"./components/VideoButton":[7706,9,7706],"./components/VideoButton.js":[7706,9,7706],"./components/VideoInfo":[57318,9],"./components/VideoInfo.js":[57318,9],"./components/VideoModal":[31257,9,1257],"./components/VideoModal.js":[31257,9,1257],"./components/VideoPlayer":[38973,9],"./components/VideoPlayer.css":[64032,9],"./components/VideoPlayer.jsx":[38973,9],"./components/ZoomableImage":[41541,9,1541],"./components/ZoomableImage.css":[31038,9,1038],"./components/ZoomableImage.js":[41541,9,1541],"./components/style.css":[84613,9,4613],"./content/FirstOrderLinearEquations":[73328,9,5084,3394,119,4393,3328],"./content/FirstOrderLinearEquations.jsx":[73328,9,5084,3394,119,4393,3328],"./content/FreeLesson1":[23945,9,5084,3394,119,4393,3945],"./content/FreeLesson1.jsx":[23945,9,5084,3394,119,4393,3945],"./content/FreeLesson2":[52322,9,5084,119,4393,2322],"./content/FreeLesson2.jsx":[52322,9,5084,119,4393,2322],"./content/Lesson3":[30441,9,441],"./content/Lesson3.jsx":[30441,9,441],"./content/Lesson4":[60366,9,366],"./content/Lesson4.jsx":[60366,9,366],"./content/LessonA2":[98341,9,8341],"./content/LessonA2.jsx":[98341,9,8341],"./content/LessonCallDelta":[97428,9,7428],"./content/LessonCallDelta.jsx":[97428,9,7428],"./content/LessonCallOptions":[75064,9,5064],"./content/LessonCallOptions.jsx":[75064,9,5064],"./content/LessonMarginCalls":[51975,9,1975],"./content/LessonMarginCalls.jsx":[51975,9,1975],"./content/LessonTemplate":[93162,9,4393,3162],"./content/LessonTemplate.jsx":[93162,9,4393,3162],"./content/LessonTemplateAdvanced":[49504,9,5084,119,4393,9504],"./content/LessonTemplateAdvanced.jsx":[49504,9,5084,119,4393,9504],"./content/Lessonpmcc":[12851,9,2851],"./content/Lessonpmcc.jsx":[12851,9,2851],"./content/Optimization":[67311,9,5084,3394,119,4393,7311],"./content/Optimization.jsx":[67311,9,5084,3394,119,4393,7311],"./content/ParametricCurves":[5598,9,5084,3394,119,4393,5598],"./content/ParametricCurves.jsx":[5598,9,5084,3394,119,4393,5598],"./content/PartialFractions":[4240,9,5084,3394,119,4393,4240],"./content/PartialFractions.jsx":[4240,9,5084,3394,119,4393,4240],"./content/Perceptron_Classify":[96629,9,5084,3394,119,4393,6629],"./content/Perceptron_Classify.jsx":[96629,9,5084,3394,119,4393,6629],"./content/baseballRate":[65050,9,5084,119,4393,5050],"./content/baseballRate.jsx":[65050,9,5084,119,4393,5050],"./content/baseballRateQ1":[52436,9,5084,3394,119,4393,2436],"./content/baseballRateQ1.jsx":[52436,9,5084,3394,119,4393,2436],"./content/bond_duration":[87900,9,5084,119,4393,7900],"./content/bond_duration.jsx":[87900,9,5084,119,4393,7900],"./content/calculus1/AntiDerivative":[89691,9,5084,3394,119,4393,9691],"./content/calculus1/AntiDerivative.jsx":[89691,9,5084,3394,119,4393,9691],"./content/calculus1/AntiDerivative504_514":[18297,9,5084,3394,8297],"./content/calculus1/AntiDerivative504_514.jsx":[18297,9,5084,3394,8297],"./content/calculus1/AntiDerivativeExplainer":[51843,9,5084,3394,1843],"./content/calculus1/AntiDerivativeExplainer.jsx":[51843,9,5084,3394,1843],"./content/calculus1/AntiDerivativesGGB":[22594,9,5084,3394,2594],"./content/calculus1/AntiDerivativesGGB.jsx":[22594,9,5084,3394,2594],"./content/calculus1/ApplicationsExpLog":[92180,9,5084,3394,119,2180],"./content/calculus1/ApplicationsExpLog.jsx":[92180,9,5084,3394,119,2180],"./content/calculus1/ApplicationsExpLog295_306":[4414,9,5084,3394,4414],"./content/calculus1/ApplicationsExpLog295_306.jsx":[4414,9,5084,3394,4414],"./content/calculus1/AppliedOptimization":[21798,9,5084,3394,119,4393,1798],"./content/calculus1/AppliedOptimization.jsx":[21798,9,5084,3394,119,4393,1798],"./content/calculus1/AppliedOptimization311_315":[67157,9,5084,3394,7157],"./content/calculus1/AppliedOptimization311_315.jsx":[67157,9,5084,3394,7157],"./content/calculus1/AppliedOptimization341_348":[45568,9,5084,3394,5568],"./content/calculus1/AppliedOptimization341_348.jsx":[45568,9,5084,3394,5568],"./content/calculus1/ApproximatingAreas":[57951,9,5084,3394,119,4393,7951],"./content/calculus1/ApproximatingAreas.jsx":[57951,9,5084,3394,119,4393,7951],"./content/calculus1/ApproximatingAreas12_23":[60830,9,5084,3394,830],"./content/calculus1/ApproximatingAreas12_23.jsx":[60830,9,5084,3394,830],"./content/calculus1/ArcLengthCurveSurface":[79452,9,5084,3394,119,4393,9452],"./content/calculus1/ArcLengthCurveSurface.jsx":[79452,9,5084,3394,119,4393,9452],"./content/calculus1/ArcLengthCurveSurfaceExplainer":[47294,9,5084,3394,7294],"./content/calculus1/ArcLengthCurveSurfaceExplainer.jsx":[47294,9,5084,3394,7294],"./content/calculus1/ArcLengthCurveSurfaceExplainermlamp":[23907,9,5084,3394,3907],"./content/calculus1/ArcLengthCurveSurfaceExplainermlamp.jsx":[23907,9,5084,3394,3907],"./content/calculus1/AreasBetweenCurves":[88574,9,5084,3394,119,8574],"./content/calculus1/AreasBetweenCurves.jsx":[88574,9,5084,3394,119,8574],"./content/calculus1/AreasbetweenCurves49_52":[66345,9,5084,3394,6345],"./content/calculus1/AreasbetweenCurves49_52.jsx":[66345,9,5084,3394,6345],"./content/calculus1/AreasbetweenCurves53_55":[77769,9,5084,3394,7769],"./content/calculus1/AreasbetweenCurves53_55.jsx":[77769,9,5084,3394,7769],"./content/calculus1/BoxVolumeExplainer":[44523,9,5084,3394,4523],"./content/calculus1/BoxVolumeExplainer.jsx":[44523,9,5084,3394,4523],"./content/calculus1/ChainRule":[51291,9,5084,3394,119,4393,1291],"./content/calculus1/ChainRule.jsx":[51291,9,5084,3394,119,4393,1291],"./content/calculus1/ChainRule214_224":[85355,9,5084,3394,5355],"./content/calculus1/ChainRule214_224.jsx":[85355,9,5084,3394,5355],"./content/calculus1/ChainRuleTree":[70967,9,5084,3394,3348],"./content/calculus1/ChainRuleTree.jsx":[70967,9,5084,3394,3348],"./content/calculus1/Continuity":[41226,9,5084,3394,119,1226],"./content/calculus1/Continuity.jsx":[41226,9,5084,3394,119,1226],"./content/calculus1/Continuity168_169":[81084,9,5084,3394,1084],"./content/calculus1/Continuity168_169.jsx":[81084,9,5084,3394,1084],"./content/calculus1/DefiniteIntegral":[75416,9,5084,3394,119,5416],"./content/calculus1/DefiniteIntegral.jsx":[75416,9,5084,3394,119,5416],"./content/calculus1/DefiniteIntegral135_140":[61903,9,5084,3394,1903],"./content/calculus1/DefiniteIntegral135_140.jsx":[61903,9,5084,3394,1903],"./content/calculus1/DefiniteIntegral60_67":[12458,9,5084,3394,2458],"./content/calculus1/DefiniteIntegral60_67.jsx":[12458,9,5084,3394,2458],"./content/calculus1/DefiniteIntegralVCE_13_5__1_4":[49503,9,5084,3394,9503],"./content/calculus1/DefiniteIntegralVCE_13_5__1_4.jsx":[49503,9,5084,3394,9503],"./content/calculus1/DerivativeDefinition":[9480,9,5084,3394,119,9480],"./content/calculus1/DerivativeDefinition.jsx":[9480,9,5084,3394,119,9480],"./content/calculus1/DerivativeDefinition1_13":[36532,9,5084,3394,6532],"./content/calculus1/DerivativeDefinition1_13.jsx":[36532,9,5084,3394,6532],"./content/calculus1/DerivativeFunctions":[33492,9,5084,3394,119,3492],"./content/calculus1/DerivativeFunctions.jsx":[33492,9,5084,3394,119,3492],"./content/calculus1/DerivativeFunctions101_105":[81936,9,5084,3394,9555],"./content/calculus1/DerivativeFunctions101_105.jsx":[81936,9,5084,3394,9555],"./content/calculus1/DerivativeInverseFunctions":[99028,9,5084,3394,119,9028],"./content/calculus1/DerivativeInverseFunctions.jsx":[99028,9,5084,3394,119,9028],"./content/calculus1/DerivativeInverseFunctions299":[98590,9,5084,3394,8590],"./content/calculus1/DerivativeInverseFunctions299.jsx":[98590,9,5084,3394,8590],"./content/calculus1/DerivativesExponential":[72611,9,5084,3394,119,2611],"./content/calculus1/DerivativesExponential.jsx":[72611,9,5084,3394,119,2611],"./content/calculus1/DerivativesExponential360_362":[5188,9,5084,3394,5188],"./content/calculus1/DerivativesExponential360_362.jsx":[5188,9,5084,3394,5188],"./content/calculus1/DerivativesGraphShape":[78719,9,5084,3394,119,8719],"./content/calculus1/DerivativesGraphShape.jsx":[78719,9,5084,3394,119,8719],"./content/calculus1/DerivativesGraphShape231_240":[79278,9,5084,3394,9278],"./content/calculus1/DerivativesGraphShape231_240.jsx":[79278,9,5084,3394,9278],"./content/calculus1/DerivativesRateOfChange":[54945,9,5084,3394,119,4945],"./content/calculus1/DerivativesRateOfChange.jsx":[54945,9,5084,3394,119,4945],"./content/calculus1/DerivativesRateOfChange150_155":[83885,9,5084,3394,3885],"./content/calculus1/DerivativesRateOfChange150_155.jsx":[83885,9,5084,3394,3885],"./content/calculus1/DerivativesTrig":[25430,9,5084,3394,119,5430],"./content/calculus1/DerivativesTrig.jsx":[25430,9,5084,3394,119,5430],"./content/calculus1/DerivativesTrig200_204":[24577,9,5084,3394,4577],"./content/calculus1/DerivativesTrig200_204.jsx":[24577,9,5084,3394,4577],"./content/calculus1/DifferentiationRules":[10272,9,5084,3394,119,272],"./content/calculus1/DifferentiationRules.jsx":[10272,9,5084,3394,119,272],"./content/calculus1/DifferentiationRules106_117":[59353,9,5084,3394,9353],"./content/calculus1/DifferentiationRules106_117.jsx":[59353,9,5084,3394,9353],"./content/calculus1/DyDxExplainer":[69689,9,5084,3394,9689],"./content/calculus1/DyDxExplainer.jsx":[69689,9,5084,3394,9689],"./content/calculus1/EllipsoidVolumeExplainer":[21655,9,5084,3394,1655],"./content/calculus1/EllipsoidVolumeExplainer.jsx":[21655,9,5084,3394,1655],"./content/calculus1/ExpAndLogFunctions":[62181,9,5084,3394,119,2181],"./content/calculus1/ExpAndLogFunctions.jsx":[62181,9,5084,3394,119,2181],"./content/calculus1/ExpAndLogFunctions292_301":[841,9,5084,3394,841],"./content/calculus1/ExpAndLogFunctions292_301.jsx":[841,9,5084,3394,841],"./content/calculus1/ExponentialGrowth":[8378,9,5084,3394,119,8378],"./content/calculus1/ExponentialGrowth.jsx":[8378,9,5084,3394,119,8378],"./content/calculus1/ExponentialGrowth348_358":[2682,9,5084,3394,2682],"./content/calculus1/ExponentialGrowth348_358.jsx":[2682,9,5084,3394,2682],"./content/calculus1/FunctionClasses107_112":[82455,9,5084,3394,2455],"./content/calculus1/FunctionClasses107_112.jsx":[82455,9,5084,3394,2455],"./content/calculus1/FunctionClasses94_102":[51107,9,5084,3394,1107],"./content/calculus1/FunctionClasses94_102.jsx":[51107,9,5084,3394,1107],"./content/calculus1/FunctionsClasse
2s":[67705,9,5084,3394,119,7705],"./content/calculus1/FunctionsClasses.jsx":[67705,9,5084,3394,119,7705],"./content/calculus1/FunctionsLimits":[36013,9,5084,3394,119,6013],"./content/calculus1/FunctionsLimits.jsx":[36013,9,5084,3394,119,6013],"./content/calculus1/FunctionsLimits81_82":[98023,9,5084,3394,8023],"./content/calculus1/FunctionsLimits81_82.jsx":[98023,9,5084,3394,8023],"./content/calculus1/FundamentalTheormCalculus":[27080,9,5084,3394,119,4393,7080],"./content/calculus1/FundamentalTheormCalculus.jsx":[27080,9,5084,3394,119,4393,7080],"./content/calculus1/FundamentalTheormCalculus148_157":[11187,9,5084,3394,1187],"./content/calculus1/FundamentalTheormCalculus148_157.jsx":[11187,9,5084,3394,1187],"./content/calculus1/FundamentalTheormCalculus170_178":[30739,9,5084,3394,739],"./content/calculus1/FundamentalTheormCalculus170_178.jsx":[30739,9,5084,3394,739],"./content/calculus1/FundamentalTheormCalculusExplainer1":[17409,9,5084,3394,7409],"./content/calculus1/FundamentalTheormCalculusExplainer1.jsx":[17409,9,5084,3394,7409],"./content/calculus1/HyperbolicFunctions":[38954,9,5084,3394,119,4393,8954],"./content/calculus1/HyperbolicFunctions.jsx":[38954,9,5084,3394,119,4393,8954],"./content/calculus1/HyperbolicFunctions377_390":[73344,9,5084,3394,3344],"./content/calculus1/HyperbolicFunctions377_390.jsx":[73344,9,5084,3394,3344],"./content/calculus1/HyperbolicFunctionsExplainer1":[89043,9,5084,3394,9043],"./content/calculus1/HyperbolicFunctionsExplainer1.jsx":[89043,9,5084,3394,9043],"./content/calculus1/ImplicitDifferentiation":[25218,9,5084,3394,119,5218],"./content/calculus1/ImplicitDifferentiation.jsx":[25218,9,5084,3394,119,5218],"./content/calculus1/ImplicitDifferentiation300_309":[4908,9,5084,3394,4908],"./content/calculus1/ImplicitDifferentiation300_309.jsx":[4908,9,5084,3394,4908],"./content/calculus1/IntegrationFormulas":[7141,9,5084,3394,119,7141],"./content/calculus1/IntegrationFormulas.jsx":[7141,9,5084,3394,119,7141],"./content/calculus1/IntegrationFormulas207_215":[18357,9,5084,3394,8357],"./content/calculus1/IntegrationFormulas207_215.jsx":[18357,9,5084,3394,8357],"./content/calculus1/InverseFunctions":[36699,9,5084,3394,119,4393,6699],"./content/calculus1/InverseFunctions.jsx":[36699,9,5084,3394,119,4393,6699],"./content/calculus1/InverseFunctions223_226":[38615,9,5084,3394,8615],"./content/calculus1/InverseFunctions223_226.jsx":[38615,9,5084,3394,8615],"./content/calculus1/InverseFunctionsExplainer":[40291,9,5084,3394,291],"./content/calculus1/InverseFunctionsExplainer.jsx":[40291,9,5084,3394,291],"./content/calculus1/Lhopital356_366":[49529,9,5084,3394,9529],"./content/calculus1/Lhopital356_366.jsx":[49529,9,5084,3394,9529],"./content/calculus1/LimitsAndHopital":[1844,9,5084,3394,119,4393,1844],"./content/calculus1/LimitsAndHopital.jsx":[1844,9,5084,3394,119,4393,1844],"./content/calculus1/LimitsAtInfinity":[23919,9,5084,3394,119,3919],"./content/calculus1/LimitsAtInfinity.jsx":[23919,9,5084,3394,119,3919],"./content/calculus1/LimitsAtInfinity256_266":[38243,9,5084,3394,8243],"./content/calculus1/LimitsAtInfinity256_266.jsx":[38243,9,5084,3394,8243],"./content/calculus1/LimitsExplainer":[81206,9,5084,3394,1206],"./content/calculus1/LimitsExplainer.jsx":[81206,9,5084,3394,1206],"./content/calculus1/LimitsLaws":[22327,9,5084,3394,119,2327],"./content/calculus1/LimitsLaws.jsx":[22327,9,5084,3394,119,2327],"./content/calculus1/LimitsLaws83_92":[76992,9,5084,3394,6992],"./content/calculus1/LimitsLaws83_92.jsx":[76992,9,5084,3394,6992],"./content/calculus1/LinearApproximation78_86":[78730,9,5084,3394,8730],"./content/calculus1/LinearApproximation78_86.jsx":[78730,9,5084,3394,8730],"./content/calculus1/LinearApproximations":[61315,9,5084,3394,119,1315],"./content/calculus1/LinearApproximations.jsx":[61315,9,5084,3394,119,1315],"./content/calculus1/MaximaAndMinima":[80773,9,5084,3394,119,773],"./content/calculus1/MaximaAndMinima.jsx":[80773,9,5084,3394,119,773],"./content/calculus1/MaximaAndMinima90_99":[65093,9,5084,3394,5093],"./content/calculus1/MaximaAndMinima90_99.jsx":[65093,9,5084,3394,5093],"./content/calculus1/MeanValueTheorm":[46507,9,5084,3394,119,6507],"./content/calculus1/MeanValueTheorm.jsx":[46507,9,5084,3394,119,6507],"./content/calculus1/MeanValueTheorm148_160":[18540,9,5084,3394,8540],"./content/calculus1/MeanValueTheorm148_160.jsx":[18540,9,5084,3394,8540],"./content/calculus1/MomentsAndCentersOfMass":[83625,9,5084,3394,119,3625],"./content/calculus1/MomentsAndCentersOfMass.jsx":[83625,9,5084,3394,119,3625],"./content/calculus1/MomentsAndCentersOfMass254-259":[60967,9,5084,3394,967],"./content/calculus1/MomentsAndCentersOfMass254-259.jsx":[60967,9,5084,3394,967],"./content/calculus1/MomentsAndCentersOfMassExplainer":[58933,9,5084,3394,8933],"./content/calculus1/MomentsAndCentersOfMassExplainer.jsx":[58933,9,5084,3394,8933],"./content/calculus1/MomentsAndCentersOfMassQ2":[38932,9,5084,3394,8932],"./content/calculus1/MomentsAndCentersOfMassQ2.jsx":[38932,9,5084,3394,8932],"./content/calculus1/NewtonRaphson":[21688,9,5084,3394,119,4393,1688],"./content/calculus1/NewtonRaphson.jsx":[21688,9,5084,3394,119,4393,1688],"./content/calculus1/NewtonRaphson406_416":[69436,9,5084,3394,9436],"./content/calculus1/NewtonRaphson406_416.jsx":[69436,9,5084,3394,9436],"./content/calculus1/NewtonRaphsonExplainer":[63058,9,5084,3394,3058],"./content/calculus1/NewtonRaphsonExplainer.jsx":[63058,9,5084,3394,3058],"./content/calculus1/Pappus":[98785,9,5084,3394,8785],"./content/calculus1/Pappus.jsx":[98785,9,5084,3394,8785],"./content/calculus1/PreviewCalculus":[6246,9,5084,3394,119,6246],"./content/calculus1/PreviewCalculus.jsx":[6246,9,5084,3394,119,6246],"./content/calculus1/PreviewCalculus16_18":[73483,9,5084,3394,3483],"./content/calculus1/PreviewCalculus16_18.jsx":[73483,9,5084,3394,3483],"./content/calculus1/RelatedRates":[53250,9,5084,3394,119,3250],"./content/calculus1/RelatedRates.jsx":[53250,9,5084,3394,119,3250],"./content/calculus1/RelatedRates16_24":[9874,9,5084,3394,9874],"./content/calculus1/RelatedRates16_24.jsx":[9874,9,5084,3394,9874],"./content/calculus1/ReviewFunctions":[78381,9,5084,3394,119,8381],"./content/calculus1/ReviewFunctions.jsx":[78381,9,5084,3394,119,8381],"./content/calculus1/ReviewFunctions50_54":[77460,9,5084,3394,7460],"./content/calculus1/ReviewFunctions50_54.jsx":[77460,9,5084,3394,7460],"./content/calculus1/RienmannSums":[2727,3,2727],"./content/calculus1/RienmannSums.json":[2727,3,2727],"./content/calculus1/Sub
2stitution":[90975,9,5084,3394,119,975],"./content/calculus1/Substitution.jsx":[90975,9,5084,3394,119,975],"./content/calculus1/Substitution254_261":[33798,9,5084,3394,3798],"./content/calculus1/Substitution254_261.jsx":[33798,9,5084,3394,3798],"./content/calculus1/Substitution271_280":[12006,9,5084,3394,2006],"./content/calculus1/Substitution271_280.jsx":[12006,9,5084,3394,2006],"./content/calculus1/TriginometricFunctions":[27669,9,5084,3394,119,7669],"./content/calculus1/TriginometricFunctions.jsx":[27669,9,5084,3394,119,7669],"./content/calculus1/TriginometricFunctions113_126":[1908,9,5084,3394,1908],"./content/calculus1/TriginometricFunctions113_126.jsx":[1908,9,5084,3394,1908],"./content/calculus1/TriginometricFunctions180_182":[98282,9,5084,3394,8282],"./content/calculus1/TriginometricFunctions180_182.jsx":[98282,9,5084,3394,8282],"./content/calculus1/VolumesBySlicing":[12369,9,5084,3394,119,2369],"./content/calculus1/VolumesBySlicing.jsx":[12369,9,5084,3394,119,2369],"./content/calculus1/VolumesBySlicing108_110":[55407,9,5084,3394,5407],"./content/calculus1/VolumesBySlicing108_110.jsx":[55407,9,5084,3394,5407],"./content/calculus1/VolumesBySlicing58_62":[20140,9,5084,3394,7759],"./content/calculus1/VolumesBySlicing58_62.jsx":[20140,9,5084,3394,7759],"./content/calculus1/VolumesBySlicing68_73":[71710,9,5084,3394,1710],"./content/calculus1/VolumesBySlicing68_73.jsx":[71710,9,5084,3394,1710],"./content/calculus1/VolumesOfRevolution":[44813,9,5084,3394,119,4813],"./content/calculus1/VolumesOfRevolution.jsx":[44813,9,5084,3394,119,4813],"./content/calculus1/VolumesOfRevolution114_119":[61841,9,5084,3394,1841],"./content/calculus1/VolumesOfRevolution114_119.jsx":[61841,9,5084,3394,1841],"./content/calculus1/VolumesOfRevolution158_159":[3373,9,5084,3394,3373],"./content/calculus1/VolumesOfRevolution158_159.jsx":[3373,9,5084,3394,3373],"./content/calculus1/VolumesOfRevolution160_161":[99669,9,5084,3394,9669],"./content/calculus1/VolumesOfRevolution160_161.jsx":[99669,9,5084,3394,9669],"./content/calculus1/lhopital":[22165,9,5084,3394,119,4393,2165],"./content/calculus1/lhopital.jsx":[22165,9,5084,3394,119,4393,2165],"./content/calculus2/ArcLengthCurve":[18952,9,5084,3394,119,8952],"./content/calculus2/ArcLengthCurve.jsx":[18952,9,5084,3394,119,8952],"./content/calculus2/ArcLengthCurve165_167":[45925,9,5084,3394,5925],"./content/calculus2/ArcLengthCurve165_167.jsx":[45925,9,5084,3394,5925],"./content/calculus2/ArcLengthCurve208_209":[45482,9,5084,3394,5482],"./content/calculus2/ArcLengthCurve208_209.jsx":[45482,9,5084,3394,5482],"./content/calculus2/ArcLengthCurve210_211":[37118,9,5084,3394,7118],"./content/calculus2/ArcLengthCurve210_211.jsx":[37118,9,5084,3394,7118],"./content/calculus2/AreasBetweenCurves":[91967,9,5084,3394,119,1967],"./content/calculus2/AreasBetweenCurves.jsx":[91967,9,5084,3394,119,1967],"./content/calculus2/AreasbetweenCurves49_52":[93882,9,5084,3394,3882],"./content/calculus2/AreasbetweenCurves49_52.jsx":[93882,9,5084,3394,3882],"./content/calculus2/AreasbetweenCurves53_55":[47086,9,5084,3394,7086],"./content/calculus2/AreasbetweenCurves53_55.jsx":[47086,9,5084,3394,7086],"./content/calculus2/DifferentialEquations":[92857,9,5084,3394,119,2857],"./content/calculus2/DifferentialEquations.jsx":[92857,9,5084,3394,119,2857],"./content/calculus2/DifferentialEquations28_37":[73298,9,5084,3394,3298],"./content/calculus2/DifferentialEquations28_37.jsx":[73298,9,5084,3394,3298],"./content/calculus2/DifferentialEquations58_65":[14312,9,5084,3394,4312],"./content/calculus2/DifferentialEquations58_65.jsx":[14312,9,5084,3394,4312],"./content/calculus2/DifferentialEquationsAbbas":[12464,9,5084,3394,2464],"./content/calculus2/DifferentialEquationsAbbas.jsx":[12464,9,5084,3394,2464],"./content/calculus2/DifferentialEquationsAbbas2":[98600,9,5084,3394,8600],"./content/calculus2/DifferentialEquationsAbbas2.jsx":[98600,9,5084,3394,8600],"./content/calculus2/DirectionalField":[93953,9,5084,3394,119,3953],"./content/calculus2/DirectionalField.jsx":[93953,9,5084,3394,119,3953],"./content/calculus2/DirectionalField74_78":[72732,9,5084,3394,2732],"./content/calculus2/DirectionalField74_78.jsx":[72732,9,5084,3394,2732],"./content/calculus2/ExpAndLogApplications":[74234,9,5084,3394,119,4234],"./content/calculus2/ExpAndLogApplications.jsx":[74234,9,5084,3394,119,4234],"./content/calculus2/ExpAndLogApplications295_307":[14381,9,5084,3394,4381],"./content/calculus2/ExpAndLogApplications295_307.jsx":[14381,9,5084,3394,4381],"./content/calculus2/ExponentialGrowthandDecay":[41898,9,5084,3394,119,1898],"./content/calculus2/ExponentialGrowthandDecay.jsx":[41898,9,5084,3394,119,1898],"./content/calculus2/ExponentialGrowthandDecay348_358":[29962,9,5084,3394,9962],"./content/calculus2/ExponentialGrowthandDecay348_358.jsx":[29962,9,5084,3394,9962],"./content/calculus2/FirstOrderLinearEquations":[37883,9,5084,3394,119,7883],"./content/calculus2/FirstOrderLinearEquations.jsx":[37883,9,5084,3394,119,7883],"./content/calculus2/FirstOrderLinearEquations208_217":[99466,9,5084,3394,9466],"./content/calculus2/FirstOrderLinearEquations208_217.jsx":[99466,9,5084,3394,9466],"./content/calculus2/FirstOrderLinearEquations241_250":[64292,9,5084,3394,4292],"./content/calculus2/FirstOrderLinearEquations241_250.jsx":[64292,9,5084,3394,4292],"./content/calculus2/HyperbolicFunctions":[13541,9,5084,3394,119,3541],"./content/calculus2/HyperbolicFunctions.jsx":[13541,9,5084,3394,119,3541],"./content/calculus2/HyperbolicFunctions377_390":[1469,9,5084,3394,1469],"./content/calculus2/HyperbolicFunctions377_390.jsx":[1469,9,5084,3394,1469],"./content/calculus2/ImproperIntegrals":[97745,9,5084,3394,119,4393,126],"./content/calculus2/ImproperIntegrals.jsx":[97745,9,5084,3394,119,4393,126],"./content/calculus2/ImproperIntegrals347_352":[36667,9,5084,3394,6667],"./content/calculus2/ImproperIntegrals347_352.jsx":[36667,9,5084,3394,6667],"./content/calculus2/ImproperIntegralsComparisonTest":[25817,9,5084,3394,5817],"./content/calculus2/ImproperIntegralsComparisonTest.jsx":[25817,9,5084,3394,5817],"./content/calculus2/ImproperIntegralsLaplaceTransform":[55736,9,5084,3394,5736],"./content/calculus2/ImproperIntegralsLaplaceTransform.jsx":[55736,9,5084,3394,5736],"./content/calculus2/IntegralsSubstitution":[38225,9,5084,3394,119,8225],"./content/calculus2/IntegralsSubstitution.jsx":[38225,9,5084,3394,119,8225],"./content/calculus2/IntegrationByParts":[35248,9,5084,3394,119,5248],"./content/calculus2/IntegrationByParts.jsx":[35248,9,5084,3394,119,5248],"./content/calculus2/IntegrationByParts1_9":[16443,9,5084,3394,6443],"./content/calculus2/IntegrationByParts1_9.jsx":[16443,9,5084,3394,6443],"./content/calculus2/IntegrationByParts60_68":[20573,9,5084,3394,573],"./content/calculus2/IntegrationByParts60_68.jsx":[20573,9,5084,3394,573],"./content/calculus2/InverseTrigonometricResults":[71043,9,5084,3394,119,4393,1043],"./content/calculus2/InverseTrigonometricResults.jsx":[71043,9,5084,3394,119,4393,1043],"./content/calculus2/InverseTrigonometricResults390_398":[38782,9,5084,3394,6401],"./content/calculus2/InverseTrigonometricResults390_398.jsx":[38782,9,5084,3394,6401],"./content/calculus2/InverseTrigonometricResults400_406":[39648,9,5084,3394,9648],"./content/calculus2/InverseTrigonometricResults400_406.jsx":[39
2648,9,5084,3394,9648],"./content/calculus2/InverseTrigonometricResults438":[45506,9,5084,3394,5506],"./content/calculus2/InverseTrigonometricResults438.jsx":[45506,9,5084,3394,5506],"./content/calculus2/InvolvingExpAndLog":[53145,9,5084,3394,119,3145],"./content/calculus2/InvolvingExpAndLog.jsx":[53145,9,5084,3394,119,3145],"./content/calculus2/LogisticEquation":[38049,9,5084,3394,119,8049],"./content/calculus2/LogisticEquation.jsx":[38049,9,5084,3394,119,8049],"./content/calculus2/LogisticEquation168_178":[17331,9,5084,3394,7331],"./content/calculus2/LogisticEquation168_178.jsx":[17331,9,5084,3394,7331],"./content/calculus2/MomentsAndCentersOfMass":[55422,9,5084,3394,119,5422],"./content/calculus2/MomentsAndCentersOfMass.jsx":[55422,9,5084,3394,119,5422],"./content/calculus2/MomentsAndCentersOfMass254_263":[39323,9,5084,3394,9323],"./content/calculus2/MomentsAndCentersOfMass254_263.jsx":[39323,9,5084,3394,9323],"./content/calculus2/MomentsAndCentersOfMass290_293":[17610,9,5084,3394,7610],"./content/calculus2/MomentsAndCentersOfMass290_293.jsx":[17610,9,5084,3394,7610],"./content/calculus2/NumericIntegration":[38108,9,5084,3394,119,8108],"./content/calculus2/NumericIntegration.jsx":[38108,9,5084,3394,119,8108],"./content/calculus2/NumericIntegration299_303":[99251,9,5084,3394,9251],"./content/calculus2/NumericIntegration299_303.jsx":[99251,9,5084,3394,9251],"./content/calculus2/OtherStrategies":[37324,9,5084,3394,119,7324],"./content/calculus2/OtherStrategies.jsx":[37324,9,5084,3394,119,7324],"./content/calculus2/OtherStrategies244_252":[85574,9,5084,3394,5574],"./content/calculus2/OtherStrategies244_252.jsx":[85574,9,5084,3394,5574],"./content/calculus2/ParametricCurves":[1963,9,5084,3394,119,4393,1963],"./content/calculus2/ParametricCurves.jsx":[1963,9,5084,3394,119,4393,1963],"./content/calculus2/ParametricCurves62_70":[44241,9,5084,3394,4241],"./content/calculus2/ParametricCurves62_70.jsx":[44241,9,5084,3394,4241],"./content/calculus2/PartialFractionExplainerQ1":[28140,9,5084,3394,8140],"./content/calculus2/PartialFractionExplainerQ1.jsx":[28140,9,5084,3394,8140],"./content/calculus2/PartialFractionExplainerQ2":[12727,9,5084,3394,5108],"./content/calculus2/PartialFractionExplainerQ2.jsx":[12727,9,5084,3394,5108],"./content/calculus2/PartialFractionExplainerQ3":[95178,9,5084,3394,5178],"./content/calculus2/PartialFractionExplainerQ3.jsx":[95178,9,5084,3394,5178],"./content/calculus2/PartialFractionExplainerQ4":[66797,9,5084,3394,6797],"./content/calculus2/PartialFractionExplainerQ4.jsx":[66797,9,5084,3394,6797],"./content/calculus2/PartialFractions":[19557,9,5084,3394,119,9557],"./content/calculus2/PartialFractions.jsx":[19557,9,5084,3394,119,9557],"./content/calculus2/PhysicalApplications":[9579,9,5084,3394,119,9579],"./content/calculus2/PhysicalApplications.jsx":[9579,9,5084,3394,119,9579],"./content/calculus2/PhysicalApplications218_223":[93640,9,5084,3394,3640],"./content/calculus2/PhysicalApplications218_223.jsx":[93640,9,5084,3394,3640],"./content/calculus2/PhysicalApplications246_253":[61908,9,5084,3394,9527],"./content/calculus2/PhysicalApplications246_253.jsx":[61908,9,5084,3394,9527],"./content/calculus2/PolarArcLength":[49281,9,5084,3394,119,9281],"./content/calculus2/PolarArcLength.jsx":[49281,9,5084,3394,119,9281],"./content/calculus2/PolarArcLength188_200":[35467,9,5084,3394,5467],"./content/calculus2/PolarArcLength188_200.jsx":[35467,9,5084,3394,5467],"./content/calculus2/RatioAndRootTests":[91266,9,5084,3394,119,1266],"./content/calculus2/RatioAndRootTests.jsx":[91266,9,5084,3394,119,1266],"./content/calculus2/RatioAndRootTests317_325":[24130,9,5084,3394,4130],"./content/calculus2/RatioAndRootTests317_325.jsx":[24130,9,5084,3394,4130],"./content/calculus2/SeperableEquations":[78835,9,5084,3394,119,8835],"./content/calculus2/SeperableEquations.jsx":[78835,9,5084,3394,119,8835],"./content/calculus2/SeperableEquations123_132":[65944,9,5084,3394,5944],"./content/calculus2/SeperableEquations123_132.jsx":[65944,9,5084,3394,5944],"./content/calculus2/SeperableEquations150_155":[28167,9,5084,3394,8167],"./content/calculus2/SeperableEquations150_155.jsx":[28167,9,5084,3394,8167],"./content/calculus2/TaylorSeries":[21167,9,5084,3394,119,1167],"./content/calculus2/TaylorSeries.jsx":[21167,9,5084,3394,119,1167],"./content/calculus2/TaylorSeries116_123":[74070,9,5084,3394,4070],"./content/calculus2/TaylorSeries116_123.jsx":[74070,9,5084,3394,4070],"./content/calculus2/TennisBallSeamExplainer":[31009,9,5084,3394,1009],"./content/calculus2/TennisBallSeamExplainer.jsx":[31009,9,5084,3394,1009],"./content/calculus2/TrigonometricIntegrals":[57462,9,5084,3394,119,7462],"./content/calculus2/TrigonometricIntegrals.jsx":[57462,9,5084,3394,119,7462],"./content/calculus2/TrigonometricIntegrals116_120":[90726,9,5084,3394,726],"./content/calculus2/TrigonometricIntegrals116_120.jsx":[90726,9,5084,3394,726],"./content/calculus2/TrigonometricIntegrals73_78":[1648,9,5084,3394,1648],"./content/calculus2/TrigonometricIntegrals73_78.jsx":[1648,9,5084,3394,1648],"./content/calculus2/TrigonometricSubstitution":[
264410,9,5084,3394,119,4410],"./content/calculus2/TrigonometricSubstitution.jsx":[64410,9,5084,3394,119,4410],"./content/calculus2/TrigonometricSubstitution126_130":[23664,9,5084,3394,3664],"./content/calculus2/TrigonometricSubstitution126_130.jsx":[23664,9,5084,3394,3664],"./content/calculus2/TrigonometricSubstitution176_181":[19471,9,5084,3394,9471],"./content/calculus2/TrigonometricSubstitution176_181.jsx":[19471,9,5084,3394,9471],"./content/calculus2/VolumesBySlicing":[20240,9,5084,3394,119,240],"./content/calculus2/VolumesBySlicing.jsx":[20240,9,5084,3394,119,240],"./content/calculus2/VolumesBySlicing108_110":[68188,9,5084,3394,8188],"./content/calculus2/VolumesBySlicing108_110.jsx":[68188,9,5084,3394,8188],"./content/calculus2/VolumesBySlicing58_62":[27956,9,5084,3394,7956],"./content/calculus2/VolumesBySlicing58_62.jsx":[27956,9,5084,3394,7956],"./content/calculus2/VolumesBySlicing68_73":[38749,9,5084,3394,8749],"./content/calculus2/VolumesBySlicing68_73.jsx":[38749,9,5084,3394,8749],"./content/calculus2/VolumesOfRevolution":[84318,9,5084,3394,119,4318],"./content/calculus2/VolumesOfRevolution.jsx":[84318,9,5084,3394,119,4318],"./content/calculus2/VolumesOfRevolution114_119":[31092,9,5084,3394,1092],"./content/calculus2/VolumesOfRevolution114_119.jsx":[31092,9,5084,3394,1092],"./content/calculus2/VolumesOfRevolution158_159":[19976,9,5084,3394,9976],"./content/calculus2/VolumesOfRevolution158_159.jsx":[19976,9,5084,3394,9976],"./content/calculus2/VolumesOfRevolution160_161":[23968,9,5084,3394,3968],"./content/calculus2/VolumesOfRevolution160_161.jsx":[23968,9,5084,3394,3968],"./content/calculus3/ChainRule":[28901,9,5084,3394,119,8901],"./content/calculus3/ChainRule.jsx":[28901,9,5084,3394,119,8901],"./content/calculus3/ChainRule255_259":[20172,9,5084,3394,172],"./content/calculus3/ChainRule255_259.jsx":[20172,9,5084,3394,172],"./content/calculus3/ConicSections":[59432,9,5084,3394,119,9432],"./content/calculus3/ConicSections.jsx":[59432,9,5084,3394,119,9432],"./content/calculus3/ConicSections306_316":[36760,9,5084,3394,6760],"./content/calculus3/ConicSections306_316.jsx":[36760,9,5084,3394,6760],"./content/calculus3/ConservativeVectorFields":[26415,9,5084,3394,119,6415],"./content/calculus3/ConservativeVectorFields.jsx":[26415,9,5084,3394,119,6415],"./content/calculus3/ConservativeVectorFields99_103":[88186,9,5084,3394,8186],"./content/calculus3/ConservativeVectorFields99_103.jsx":[88186,9,5084,3394,8186],"./content/calculus3/CrossProduct":[26087,9,5084,3394,119,6087],"./content/calculus3/CrossProduct.jsx":[26087,9,5084,3394,119,6087],"./content/calculus3/CrossProduct199_207":[86928,9,5084,3394,6928],"./content/calculus3/CrossProduct199_207.jsx":[86928,9,5084,3394,6928],"./content/calculus3/CrossProduct235_236":[57469,9,5084,3394,7469],"./content/calculus3/CrossProduct235_236.jsx":[57469,9,5084,3394,7469],"./content/calculus3/CylindricalCoordinates":[72867,9,5084,3394,119,4393,2867],"./content/calculus3/CylindricalCoordinates.jsx":[72867,9,5084,3394,119,4393,2867],"./content/calculus3/CylindricalCoordinates363_366":[14099,9,5084,3394,4099],"./content/calculus3/CylindricalCoordinates363_366.jsx":[14099,9,5084,3394,4099],"./content/calculus3/CylindricalCoordinatesSpherical":[77062,9,5084,3394,7062],"./content/calculus3/CylindricalCoordinatesSpherical.jsx":[77062,9,5084,3394,7062],"./content/calculus3/DirectionalDerivative":[29219,9,5084,3394,119,4393,9219],"./content/calculus3/DirectionalDerivative.jsx":[29219,9,5084,3394,119,4393,9219],"./content/calculus3/DirectionalDerivative306_309":[50285,9,5084,3394,285],"./content/calculus3/DirectionalDerivative306_309.jsx":[50285,9,5084,3394,285],"./content/calculus3/DirectionalDerivativeDistanceSkewLines":[81815,9,5084,3394,1815],"./content/calculus3/DirectionalDerivativeDistanceSkewLines.jsx":[81815,9,5084,3394,1815],"./content/calculus3/DivergenceAndCurl":[85671,9,5084,3394,119,4393,5671],"./content/calculus3/DivergenceAndCurl.jsx":[85671,9,5084,3394,119,4393,5671],"./content/calculus3/DivergenceAndCurlIntro":[60321,9,5084,3394,321],"./content/calculus3/DivergenceAndCurlIntro.jsx":[60321,9,5084,3394,321],"./content/calculus3/DivergenceAndCurlIntroCircularField":[40368,9,5084,3394,368],"./content/calculus3/DivergenceAndCurlIntroCircularField.jsx":[40368,9,5084,3394,368],"./content/calculus3/DotProduct":[26236,9,5084,3394,119,6236],"./content/calculus3/DotProduct.jsx":[26236,9,5084,3394,119,6236],"./content/calculus3/DotProduct141_151":[54916,9,5084,3394,4916],"./content/calculus3/DotProduct141_151.jsx":[54916,9,5084,3394,4916],"./content/calculus3/DotProduct177_180":[49633,9,5084,3394,9633],"./content/calculus3/DotProduct177_180.jsx":[49633,9,5084,3394,9633],"./content/calculus3/DoubleIntegrals9":[96625,9,5084,3394,6625],"./content/calculus3/DoubleIntegrals9.jsx":[96625,9,5084,3394,6625],"./content/calculus3/DoubleIntegralsGeneral":[99064,9,5084,3394,119,9064],"./content/calculus3/DoubleIntegralsGeneral.jsx":[99064,9,5084,3394,119,9064],"./content/calculus3/DoubleIntegralsGeneral80_85":[24784,9,5084,3394,4784],"./content/calculus3/DoubleIntegralsGeneral80_85.jsx":[24784,9,5084,3394,4784],"./content/calculus3/DoubleIntegralsPolar":[52604,9,5084,3394,119,2604],"./content/calculus3/DoubleIntegralsPolar.jsx":[52604,9,5084,3394,119,2604],"./content/calculus3/DoubleIntegralsPolar148_151":[3333,9,5084,3394,3333],"./content/calculus3/DoubleIntegralsPolar148_151.jsx":[3333,9,5084,3394,3333],"./content/calculus3/DoubleIntegralsReactangular":[98231,9,5084,3394,119,8231],"./content/calculus3/DoubleIntegralsReactangular.jsx":[98231,9,5084,3394,119,8231],"./content/calculus3/FunctionsSeveralVariables":[94540,9,5084,3394,119,4540],"./content/calculus3/FunctionsSeveralVariables.jsx":[94540,9,5084,3394,119,4540],"./content/calculus3/FunctionsSeveralVariables1_10":[30539,9,5084,3394,539],"./content/calculus3/FunctionsSeveralVariables1_10.jsx":[30539,9,5084,3394,539],"./content/calculus3/FunctionsSeveralVariables53_59":[91727,9,5084,3394,1727],"./content/calculus3/FunctionsSeveralVariables53_59.jsx":[9
21727,9,5084,3394,1727],"./content/calculus3/GreensTheorem":[87891,9,5084,3394,119,7891],"./content/calculus3/GreensTheorem.jsx":[87891,9,5084,3394,119,7891],"./content/calculus3/GreensTheorem146_151":[81747,9,5084,3394,1747],"./content/calculus3/GreensTheorem146_151.jsx":[81747,9,5084,3394,1747],"./content/calculus3/LagrangeMultipliers":[76249,9,5084,3394,119,4393,6249],"./content/calculus3/LagrangeMultipliers.jsx":[76249,9,5084,3394,119,4393,6249],"./content/calculus3/LagrangeMultipliers358_364":[10501,9,5084,3394,501],"./content/calculus3/LagrangeMultipliers358_364.jsx":[10501,9,5084,3394,501],"./content/calculus3/LagrangeMultipliersAbbas":[48496,9,5084,3394,8496],"./content/calculus3/LagrangeMultipliersAbbas.jsx":[48496,9,5084,3394,8496],"./content/calculus3/LagrangeMultipliersGGB":[97301,9,5084,3394,7301],"./content/calculus3/LagrangeMultipliersGGB.jsx":[97301,9,5084,3394,7301],"./content/calculus3/LimitsAndContinuity":[62585,9,5084,3394,119,2585],"./content/calculus3/LimitsAndContinuity.jsx":[62585,9,5084,3394,119,2585],"./content/calculus3/LimitsAndContinuity94_103":[84429,9,5084,3394,4429],"./content/calculus3/LimitsAndContinuity94_103.jsx":[84429,9,5084,3394,4429],"./content/calculus3/LineIntegrals":[82173,9,5084,3394,119,2173],"./content/calculus3/LineIntegrals.jsx":[82173,9,5084,3394,119,2173],"./content/calculus3/Lineintegrals39_43":[15277,9,5084,3394,5277],"./content/calculus3/Lineintegrals39_43.jsx":[15277,9,5084,3394,5277],"./content/calculus3/LineintegralsTangentLesson":[48010,9,5084,3394,8010],"./content/calculus3/LineintegralsTangentLesson.jsx":[48010,9,5084,3394,8010],"./content/calculus3/LinesAndPlanes":[29607,9,5084,3394,119,9607],"./content/calculus3/LinesAndPlanes.jsx":[29607,9,5084,3394,119,9607],"./content/calculus3/LinesAndPlanes243_246":[78055,9,5084,3394,8055],"./content/calculus3/LinesAndPlanes243_246.jsx":[78055,9,5084,3394,8055],"./content/calculus3/LinesAndPlanes299":[4963,9,5084,3394,4963],"./content/calculus3/LinesAndPlanes299.jsx":[4963,9,5084,3394,4963],"./content/calculus3/MaximaAndMinima":[10155,9,5084,3394,119,155],"./content/calculus3/MaximaAndMinima.jsx":[10155,9,5084,3394,119,155],"./content/calculus3/MaximaAndMinima348_357":[86986,9,5084,3394,6986],"./content/calculus3/MaximaAndMinima348_357.jsx":[86986,9,5084,3394,6986],"./content/calculus3/MomentsAndCentersOfMass":[44215,9,5084,3394,119,4215],"./content/calculus3/MomentsAndCentersOfMass.jsx":[44215,9,5084,3394,119,4215],"./content/calculus3/MomentsAndCentersOfMass254-259":[14049,9,5084,3394,4049],"./content/calculus3/MomentsAndCentersOfMass254-259.jsx":[14049,9,5084,3394,4049],"./content/calculus3/MomentsAndCentersOfMassQ2":[4662,9,5084,3394,4662],"./content/calculus3/MomentsAndCentersOfMassQ2.jsx":[4662,9,5084,3394,4662],"./content/calculus3/MotionInSpace":[90783,9,5084,3394,119,783],"./content/calculus3/MotionInSpace.jsx":[90783,9,5084,3394,119,783],"./content/calculus3/MotionInSpace157_159":[15572,9,5084,3394,5572],"./content/calculus3/MotionInSpace157_159.jsx":[15572,9,5084,3394,5572],"./content/calculus3/MultipleIntegralsChangeOfVariables":[93337,9,5084,3394,119,3337],"./content/calculus3/MultipleIntegralsChangeOfVariables.jsx":[93337,9,5084,3394,119,3337],"./content/calculus3/MultipleIntegralsChangeOfVariables356_361":[82490,9,5084,3394,2490],"./content/calculus3/MultipleIntegralsChangeOfVariables356_361.jsx":[82490,9,5084,3394,2490],"./content/calculus3/MultipleIntegralsChangeOfVariables394_395":[34169,9,5084,3394,4169],"./content/calculus3/MultipleIntegralsChangeOfVariables394_395.jsx":[34169,9,5084,3394,4169],"./content/calculus3/ParametricCurves":[74644,9,5084,3394,119,4644],"./content/calculus3/ParametricCurves.jsx":[74644,9,5084,3394,119,4644],"./content/calculus3/ParametricCurves108_110":[18336,9,5084,3394,8336],"./content/calculus3/ParametricCurves108_110.jsx":[18336,9,5084,3394,8336],"./content/calculus3/ParametricCurvesProblem":[61803,9,5084,3394,1803],"./content/calculus3/ParametricCurvesProblem.jsx":[61803,9,5084,3394,1803],"./content/calculus3/ParametricEquations":[92703,9,5084,3394,119,4393,2703],"./content/calculus3/ParametricEquations.jsx":[92703,9,5084,3394,119,4393,2703],"./content/calculus3/ParametricEquations1_9":[8574,9,5084,3394,6193],"./content/calculus3/ParametricEquations1_9.jsx":[8574,9,5084,3394,6193],"./content/calculus3/ParametricEquations21_23":[61288,9,5084,3394,1288],"./content/calculus3/ParametricEquations21_23.jsx":[61288,9,5084,3394,1288],"./content/calculus3/ParametricEquations21_35":[6069,9,5084,3394,6069],"./content/calculus3/ParametricEquations21_35.jsx":[6069,9,5084,3394,6069],"./content/calculus3/ParametricEquations54_58":[98630,9,5084,3394,8630],"./content/calculus3/ParametricEquations54_58.jsx":[98630,9,5084,3394,8630],"./content/calculus3/ParametricEquationsPlane":[88145,9,5084,3394,8145],"./content/calculus3/ParametricEquationsPlane.jsx":[88145,9,5084,3394,8145],"./content/calculus3/PartialDerivatives":[18689,9,5084,3394,119,8689],"./content/calculus3/PartialDerivatives.jsx":[18689,9,5084,3394,119,8689],"./content/calculus3/PartialDerivatives156_162":[90153,9,5084,3394,153],"./content/calculus3/PartialDerivatives156_162.jsx":[90153,9,5084,3394,153],"./content/calculus3/PartialDerivativesAbbas":[47624,9,5084,3394,7624],"./content/calculus3/PartialDerivativesAbbas.jsx":[47624,9,5084,3394,7624],"./content/calculus3/PolarCoordinates":[19339,9,5084,3394,119,9339],"./content/calculus3/PolarCoordinates.jsx":[19339,9,5084,3394,119,9339],"./content/calculus3/PolarCoordinates125_131":[14217,9,5084,3394,4217],"./content/calculus3/PolarCoordinates125_131.jsx":[14217,9,5084,3394,4217],"./content/calculus3/PolarCoordinates136_148":[40825,9,5084,3394,825],"./content/calculus3/PolarCoordinates136_148.jsx":[40825,9,5084,3394,825],"./content/calculus3/PolarCoordinatesArcLength":[77835,9,5084,3394,119,7835],"./content/calculus3/PolarCoordinatesArcLength.jsx":[77835,9,5084,3394,119,7835],"./content/calculus3/PolarCoordinatesArclength188_200":[28353,9,5084,3394,8353],"./content/calculus3/PolarCoordinatesArclength188_200.jsx":[28353,9,5084,3394,8353],"./content/calculus3/QuadricSurfaces":[31929,9,5084,3394,119,1929],"./content/calculus3/QuadricSurfaces.jsx":[31929,9,5084,3394,119,1929],"./content/calculus3/QuadricSurfaces303_308":[60803,9,5084,3394,803],"./content/calculus3/QuadricSurfaces303_308.jsx":[60803,9,5084,3394,803],"./content/calculus3/StokesTheorm":[28218,9,5084,3394,119,8218],"./content/calculus3/StokesTheorm.jsx":[28218,9,5084,3394,119,8218],"./content/calculus3/StoketsTheormProblems326_331":[57183,9,5084,3394,7183],"./content/calculus3/StoketsTheormProblems326_331.jsx":[57183,9,5084,3394,7183],"./content/calculus3/StoketsTheormProblems332_335":[1168,9,5084,3394,1168],"./content/calculus3/StoketsTheormProblems332_335.jsx":[1168,9,5084,3394,1168],"./content/calculus3/StoketsTheormProblems365_367":[88333,9,5084,3394,8333],"./content/calculus3/StoketsTheormProblems365_367.jsx":[88333,9,5084,3394,8333],"./content/calculus3/StoketsTheormProblems368_373":[6339,9,5084,3394,6339],"./content/calculus3/StoketsTheormProblems368_373.jsx":[6339,9,5084,3394,6339],"./content/calculus3/SurfaceIntegrals":[9846,9,5084,3394,119,9846],"./content/calculus3/SurfaceIntegrals.jsx":[9846,9,5084,3394,119,9846],"./content/calculus3/SurfaceIntegralsExplanation":[85425,9,5084,3394,119,5425],"./content/calculus3/SurfaceIntegralsExplanation.jsx":[85425,9,5084,3394,119,5425],"./content/calculus3/SurfaceIntegrals_281_283":[73028,9,5084,3394,3028],"./content/calculus3/SurfaceIntegrals_281_283.jsx":[73028,9,5084,3394,3028],"./content/calculus3/TangentPlanes":[36082,9,5084,3394,119,6082],"./content/calculus3/TangentPlanes.jsx":[36082,9,5084,3394,119,6082],"./content/calculus3/TangentPlanes163_175":[41424,9,5084,3394,1424],"./content/calculus3/TangentPlanes163_175.jsx":[41424,9,5084,3394,1424],"./content/calculus3/TripleIntegrals":[30511,9,5084,3394,119,511],"./content/calculus3/TripleIntegrals.jsx":[30511,9,5084,3394,119,511],"./content/calculus3/TripleIntegrals181_184":[76519,9,5084,3394,6519],"./content/calculus3/TripleIntegrals181_184.jsx":[76519,9,5084,3394,6519],"./content/calculus3/TripleIntegrals249_252":[28782,9,5084,3394,8782],"./content/calculus3/TripleIntegrals249_252.jsx":[28782,9,5084,3394,8782],"./content/calculus3/TripleIntegrals293_294":[40645,9,5084,3394,645],"./content/calculus3/TripleIntegrals293_294.jsx":[40645,9,5084,3394,645],"./content/calculus3/TripleIntegralsCylinders":[51234,9,5084,3394,119,1234],"./content/calculus3/TripleIntegralsCylinders.jsx":[51234,9,5084,3394,119,1234],"./content/calculus3/VectorFields":[79684,9,5084,3394,119,9684],"./content/calculus3/VectorFields.jsx":[79684,9,5084,3394,119,9684],"./content/calculus3/VectorFields1_4":[68710,9,5084,3394,8710],"./content/calculus3/VectorFields1_4.jsx":[68710,9,5084,3394,8710],"./content/calculus3/VectorValuedFunctions":[32163,9,5084,3394,119,2163],"./content/calculus3/VectorValuedFunctions.jsx":[32163,9,5084,3394,119,2163],"./content/calculus3/VectorValuedFunctions1_6":[35725,9,5084,3394,5725],"./content/calculus3/VectorValuedFunctions1_6.jsx":[35725,9,5084,3394,5725],"./content/calculus3/VectorValuedFunctions32_40":[15665,9,5084,3394,5665],"./content/calculus3/VectorValuedFunctions32_40.jsx":[15665,9,5084,3394,5665],"./content/calculus3/VectorValuedFunctionsArcLength":[36771,9,5084,3394,119,6771],"./content/calculus3/VectorValuedFunctionsArcLength.jsx":[36771,9,5084,3394,119,6771],"./content/calculus3/VectorValuedFunctionsArcLength107_111":[39687,9,5084,3394,9687],"./content/calculus3/VectorValuedFunctionsArcLength107_111.jsx":[39
2687,9,5084,3394,9687],"./content/calculus3/VectorValuedFunctionsCalculus":[27751,9,5084,3394,119,7751],"./content/calculus3/VectorValuedFunctionsCalculus.jsx":[27751,9,5084,3394,119,7751],"./content/calculus3/VectorValuedFunctionsCalculus44_54":[79995,9,5084,3394,9995],"./content/calculus3/VectorValuedFunctionsCalculus44_54.jsx":[79995,9,5084,3394,9995],"./content/calculus3/VectorValuedFunctionsCalculus90_93":[8913,9,5084,3394,8913],"./content/calculus3/VectorValuedFunctionsCalculus90_93.jsx":[8913,9,5084,3394,8913],"./content/calculus3/VectorsIn3D":[500,9,5084,3394,119,500],"./content/calculus3/VectorsIn3D.jsx":[500,9,5084,3394,119,500],"./content/calculus3/VectorsIn3D63_74":[52155,9,5084,3394,2155],"./content/calculus3/VectorsIn3D63_74.jsx":[52155,9,5084,3394,2155],"./content/calculus3/VectorsInPlane":[38207,9,5084,3394,119,8207],"./content/calculus3/VectorsInPlane.jsx":[38207,9,5084,3394,119,8207],"./content/calculus3/VectorsInPlane1_12":[69782,9,5084,3394,9782],"./content/calculus3/VectorsInPlane1_12.jsx":[69782,9,5084,3394,9782],"./content/calculus_parametric_curves":[86936,9,5084,119,4393,6936],"./content/calculus_parametric_curves.jsx":[86936,9,5084,119,4393,6936],"./content/chapters/BackpropExplainer":[67433,9,5084,3394,7433],"./content/chapters/BackpropExplainer.jsx":[67433,9,5084,3394,7433],"./content/chapters/BaseballDistanceExplainer":[25496,9,5084,3394,5496],"./content/chapters/BaseballDistanceExplainer.jsx":[25496,9,5084,3394,5496],"./content/chapters/BasketballShotExplainer":[8276,9,5084,3394,8276],"./content/chapters/BasketballShotExplainer.jsx":[8276,9,5084,3394,8276],"./content/chapters/BoxVolumeExplainer":[54344,9,5084,3394,4344],"./content/chapters/BoxVolumeExplainer.jsx":[54344,9,5084,3394,4344],"./content/chapters/CoffeeBlendExplainer":[30612,9,5084,3394,612],"./content/chapters/CoffeeBlendExplainer.jsx":[30612,9,5084,3394,612],"./content/chapters/DifferentialEquationsExplainer":[74563,9,5084,3394,4563],"./content/chapters/DifferentialEquationsExplainer.jsx":[74563,9,5084,3394,4563],"./content/chapters/EvaporationExplainer":[45351,9,5084,3394,5351],"./content/chapters/EvaporationExplainer.jsx":[45351,9,5084,3394,5351],"./content/chapters/FOLEQ1":[50429,9,5084,3394,2810],"./content/chapters/FOLEQ1.jsx":[50429,9,5084,3394,2810],"./content/chapters/LimitsExplainer":[27103,9,5084,3394,7103],"./content/chapters/LimitsExplainer.jsx":[27103,9,5084,3394,7103],"./content/chapters/MagneticFluxExplainer":[83902,9,5084,3394,3902],"./content/chapters/MagneticFluxExplainer.jsx":[83902,9,5084,3394,3902],"./content/chapters/MomentsAndCentersOfMassQ1":[10374,9,5084,3394,374],"./content/chapters/MomentsAndCentersOfMassQ1.jsx":[10374,9,5084,3394,374],"./content/chapters/MomentsAndCentersOfMassQ2":[90429,9,5084,3394,429],"./content/chapters/MomentsAndCentersOfMassQ2.jsx":[90429,9,5084,3394,429],"./content/chapters/NewtonRaphsonExplainer":[18865,9,5084,3394,8865],"./content/chapters/NewtonRaphsonExplainer.jsx":[18865,9,5084,3394,8865],"./content/chapters/OdeBoats":[98692,9,5084,3394,8692],"./content/chapters/OdeBoats.jsx":[98692,9,5084,3394,8692],"./content/chapters/ParametricCurvesQ1":[11711,9,5084,3394,1711],"./content/chapters/ParametricCurvesQ1.jsx":[11711,9,5084,3394,1711],"./content/chapters/PartialFractionExplainer":[72708,9,5084,3394,2708],"./content/chapters/PartialFractionExplainer.jsx":[72708,9,5084,3394,2708],"./content/chapters/PartialFractionExplainerQ1":[70142,9,5084,3394,142],"./content/chapters/PartialFractionExplainerQ1.jsx":[70142,9,5084,3394,142],"./content/chapters/PartialFractionExplainerQ2":[27189,9,5084,3394,7189],"./content/chapters/PartialFractionExplainerQ2.jsx":[27189,9,5084,3394,7189],"./content/chapters/PartialFractionExplainerQ3":[4336,9,5084,3394,4336],"./content/chapters/PartialFractionExplainerQ3.jsx":[4336,9,5084,3394,4336],"./content/chapters/PartialFractionExplainerQ4":[61055,9,5084,3394,1055],"./content/chapters/PartialFractionExplainerQ4.jsx":[61055,9,5084,3394,1055],"./content/chapters/PendulumExplainer":[20197,9,5084,3394,197],"./content/chapters/PendulumExplainer.jsx":[20197,9,5084,3394,197],"./content/chapters/PolarToCartesianExplainer":[95142,9,5084,3394,5142],"./content/chapters/PolarToCartesianExplainer.jsx":[95142,9,5084,3394,5142],"./content/chapters/PredatorPreyExplainer":[51116,9,5084,3394,1116],"./content/chapters/PredatorPreyExplainer.jsx":[51116,9,5084,3394,1116],"./content/chapters/RiceVacuumExplainer":[9313,9,5084,3394,9313],"./content/chapters/RiceVacuumExplainer.jsx":[9313,9,5084,3394,9313],"./content/chapters/SIRModelExplainer":[66800,9,5084,3394,6800],"./content/chapters/SIRModelExplainer.jsx":[66800,9,5084,3394,6800],"./content/chapters/calculus3/StoketsTheormProblems365_367":[73390,9,5084,3394,3390],"./content/chapters/calculus3/StoketsTheormProblems365_367.jsx":[73390,9,5084,3394,3390],"./content/continuity_gravitational":[48e3,9,5084,119,4393,8e3],"./content/continuity_gravitational.jsx":[48e3,9,5084,119,4393,8e3],"./content/dotproduct":[81037,9,5084,119,4393,3418],"./content/dotproduct.jsx":[81037,9,5084,119,4393,3418],"./content/eigen_vector":[38294,9,5084,119,4393,8294],"./content/eigen_vector.jsx":[38294,9,5084,119,4393,8294],"./content/federal_provincial_taxes":[79311,9,5084,119,4393,9311],"./content/federal_provincial_taxes.jsx":[79311,9,5084,119,4393,9311],"./content/ferris_wheel_height":[54109,9,5084,119,4393,4109],"./content/ferris_wheel_height.jsx":[54109,9,5084,119,4393,4109],"./content/formula_one_tangents":[50440,9,5084,119,4393,440],"./content/formula_one_tangents.jsx":[50440,9,5084,119,4393,440],"./content/garden_warm_bird":[91733,9,5084,3394,119,4393,1733],"./content/garden_warm_bird.jsx":[91733,9,5084,3394,119,4393,1733],"./content/general/ConditionalEntropy":[43128,9,5084,3394,119,4393,3128],"./content/general/ConditionalEntropy.jsx":[43128,9,5084,3394,119,4393,3128],"./content/general/ConditionalEntropyLesson":[90820,9,5084,3394,820],"./content/general/ConditionalEntropyLesson.jsx":[90820,9,5084,3394,820],"./content/general/EntropyLesson":[59132,9,5084,3394,9132],"./content/general/EntropyLesson.jsx":[59132,9,5084,3394,9132],"./content/lhospital":[18712,9,5084,3394,119,4393,7238,7788,2063,8712],"./content/lhospital.jsx":[18712,9,5084,3394,119,4393,7238,7788,2063,8712],"./content/line_integral_rice":[33079,9,5084,3394,119,4393,3079],"./content/line_integral_rice.jsx":[33079,9,5084,3394,119,4393,3079],"./content/magnetic_field_vectors-2":[31219,9,5084,3394,119,4393,1219],"./content/magnetic_field_vectors-2.jsx":[31219,9,5084,3394,119,4393,1219],"./content/magnetic_field_vectors_1":[30082,9,5084,119,4393,82],"./content/magnetic_field_vectors_1.jsx":[30082,9,5084,119,4393,82],"./content/multivariate_gaussian":[49071,9,5084,119,4393,9071],"./content/multivariate_gaussian.jsx":[49071,9,5084,119,4393,9071],"./content/newtonraphson":[29144,9,5084,3394,119,4393,9144],"./content/newtonraphson.jsx":[29144,9,5084,3394,119,4393,9144],"./content/ode":[86820,9,5084,3394,119,4393,6820],"./content/ode.jsx":[86820,9,5084,3394,119,4393,6820],"./content/pde":[17771,9,5084,3394,119,4393,7771],"./content/pde.jsx":[17771,9,5084,3394,119,4393,7771],"./content/pendulum_taylor_approx":[4507,9,5084,3394,119,4393,4507],"./content/pendulum_taylor_approx.jsx":[4507,9,5084,3394,119,4393,4507],"./content/permutations_combinations_basics":[76184,9,5084,119,4393,6184],"./content/permutations_combinations_basics.jsx":[76184,9,5084,119,4393,6184],"./content/playground_cubic":[20124,9,5084,119,4393,124],"./content/playground_cubic.jsx":[20124,9,5084,119,4393,124],"./content/polar_coordinates_area":[61944,9,5084,3394,119,4393,1944],"./content/polar_coordinates_area.jsx":[61944,9,5084,3394,119,4393,1944],"./content/predator_prey":[29646,9,5084,3394,119,4393,9646],"./content/predator_prey.jsx":[29646,9,5084,3394,119,4393,9646],"./content/probability_girls_boys":[5089,9,5084,119,4393,4584,5089],"./content/probability_girls_boys.jsx":[5089,9,5084,119,4393,4584,5089],"./content/puddle_growth":[49836,9,5084,3394,119,4393,9836],"./content/puddle_growth.jsx":[49836,9,5084,3394,119,4393,9836],"./content/quadratic":[84912,9,5084,3394,119,4393,4912],"./content/quadratic.jsx":[84912,9,5084,3394,119,4393,4912],"./content/si_modelling_infections":[729,9,5084,3394,119,4393,729],"./content/si_modelling_infections.jsx":[729,9,5084,3394,119,4393,729],"./content/speed":[28715,9,5084,119,4393,8715],"./content/speed.jsx":[28715,9,5084,119,4393,8715],"./content/tstats":[7233,9,5084,119,4393,7233],"./content/tstats.jsx":[7233,9,5084,119,4393,7233],"./content/tsunami_tan":[75287,9,5084,119,4393,5287],"./content/tsunami_tan.jsx":[75287,9,5084,119,4393,5287],"./content/vector_fields_slope_fields":[85717,9,5084,119,4393,5717],"./content/vector_fields_slope_fields.jsx":[85717,9,5084,119,4393,5717],"./content/ytm_spotrates":[43174,9,5084,119,4393,3174],"./content/ytm_spotrates.jsx":[43174,9,5084,119,4393,3174],"./data/lessonDataCalls":[20683,3,683],"./data/lessonDataCalls.json":[20683,3,683],"./data/lessonDataPuts":[14088,3,4088],"./data/lessonDataPuts.json":[14088,3,4088],"./data/projectors":[86680,9,6680],"./data/projectors.js":[86680,9,6680],"./data/voices.txt":[70968,1,968],"./firebaseConfig":[39657,9],"./firebaseConfig.js":[39657,9],"./index":[89708,9],"./index.css":[59555,9],"./index.js":[89708,9],"./keys.md":[98469,1,8469],"./logo.svg":[69445,1,9445],"./reportWebVitals":[4743,9],"./reportWebVitals.js":[4743,9],"./setupTests":[3936,9,7788,9349,5821,5581],"./setupTests.js":[3936,9,7788,9349,5821,5581],"./utils/lessonCopyUtils":[39692,9],"./utils/lessonCopyUtils.js":[39692,9],"./utils/progressTracker":[83099,9,3099],"./utils/progressTracker.js":[83099,9,3099]};function i(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return Promise.all(t.slice(2).map(n.e)).then((()=>n.t(i,16|t[1])))}i.keys=()=>Object.keys(r),i.id=28969,e.exports=i},94634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}
2e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},24994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},54893:e=>{e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},77387:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(63662);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.A)(e,t)}},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},63662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},39160:(e,t,n)=>{"use strict";n.d(t,{MF:()=>ue,j6:()=>se,xZ:()=>ae,om:()=>ie,Sx:()=>he,Wp:()=>de,KO:()=>fe});var r=n(83598),i=n(71549),s=n(13540);const a=(e,t)=>t.some((t=>e instanceof t));let o,l;const c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,f=new WeakMap;let p={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return u.get(e);if("objectStoreNames"===t)return e.objectStoreNames||d.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return y(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function m(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(l||(l=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(v(this),n),y(c.get(this))}:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y(e.apply(v(this),n))}:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];const s=e.call(v(this),t,...r);return d.set(s,t.sort?t.sort():[t]),y(s)}}function g(e){return"function"===typeof e?m(e):(e instanceof IDBTransaction&&function(e){if(u.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{t(),r()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)}));u.set(e,t)}(e),a(e,o||(o=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,p):e)}function y(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{t(y(e.result)),r()},s=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",s)}));return t.then((t=>{t instanceof IDBCursor&&c.set(t,e)})).catch((()=>{})),f.set(t,e),t}(e);if(h.has(e))return h.get(e);const t=g(e);return t!==e&&(h.set(e,t),f.set(t,e)),t}const v=e=>f.get(e);const b=["get","getKey","getAll","getAllKeys","count"],w=["put","add","delete","clear"],x=new Map;function _(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(x.get(t))return x.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=w.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!b.includes(n))return;const s=async function(e){const t=this.transaction(e,i?"readwrite":"readonly");let s=t.store;for(var a=arguments.length,o=new Array(a>1?a-1:0),l=1;l<a;l++)o[l-1]=arguments[l];return r&&(s=s.index(o.shift())),(await Promise.all([s[n](...o),i&&t.done]))[0]};return x.set(t,s),s}p=(e=>({...e,get:(t,n,r)=>_(t,n)||e.get(t,n,r),has:(t,n)=>!!_(t,n)||e.has(t,n)}))(p);class S{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}const E="@firebase/app",k="0.10.8",C=new i.Vy("@firebase/app"),A="@firebase/app-compat",T="@firebase/analytics-compat",I="@firebase/analytics",P="@firebase/app-check-compat",j="@firebase/app-check",N="@firebase/auth",O="@firebase/auth-compat",R="@firebase/database",L="@firebase/database-compat",D="@firebase/functions",M="@firebase/functions-compat",F="@firebase/installations",U="@firebase/installations-compat",V="@firebase/messaging",B="@firebase/messaging-compat",z="@firebase/performance",$="@firebase/performance-compat",H="@firebase/remote-config",q="@firebase/remote-config-compat",W="@firebase/storage",K="@firebase/storage-compat",G="@firebase/firestore",Q="@firebase/vertexai-preview",X="@firebase/firestore-compat",Y="firebase",J="[DEFAULT]",Z={[E]:"fire-core",[A]:"fire-core-compat",[I]:"fire-analytics",[T]:"fire-analytics-compat",[j]:"fire-app-check",[P]:"fire-app-check-compat",[N]:"fire-auth",[O]:"fire-auth-compat",[R]:"fire-rtdb",[L]:"fire-rtdb-compat",[D]:"fire-fn",[M]:"fire-fn-compat",[F]:"fire-iid",[U]:"fire-iid-compat",[V]:"fire-fcm",[B]:"fire-fcm-compat",[z]:"fire-perf",[$]:"fire-perf-compat",[H]:"fire-rc",[q]:"fire-rc-compat",[W]:"fire-g
2cs",[K]:"fire-gcs-compat",[G]:"fire-fst",[X]:"fire-fst-compat",[Q]:"fire-vertex","fire-js":"fire-js",[Y]:"fire-js-all"},ee=new Map,te=new Map,ne=new Map;function re(e,t){try{e.container.addComponent(t)}catch(n){C.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function ie(e){const t=e.name;if(ne.has(t))return C.debug(`There were multiple attempts to register component ${t}.`),!1;ne.set(t,e);for(const n of ee.values())re(n,e);for(const n of te.values())re(n,e);return!0}function se(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function ae(e){return void 0!==e.settings}const oe={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
2d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},le=new s.FA("app","Firebase",oe);class ce{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new r.uA("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 le.create("app-deleted",{appName:this._name})}}const ue="10.12.5";function de(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if("object"!==typeof t){t={name:t}}const i=Object.assign({name:J,automaticDataCollectionEnabled:!1},t),a=i.name;if("string"!==typeof a||!a)throw le.create("bad-app-name",{appName:String(a)});if(n||(n=(0,s.T9)()),!n)throw le.create("no-options");const o=ee.get(a);if(o){if((0,s.bD)(n,o.options)&&(0,s.bD)(i,o.config))return o;throw le.create("duplicate-app",{appName:a})}const l=new r.h1(a);for(const r of ne.values())l.addComponent(r);const c=new ce(n,i,l);return ee.set(a,c),c}function he(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J;const t=ee.get(e);if(!t&&e===J&&(0,s.T9)())return de();if(!t)throw le.create("no-app",{appName:e});return t}function fe(e,t,n){var i;let s=null!==(i=Z[e])&&void 0!==i?i:e;n&&(s+=`-${n}`);const a=s.match(/\s|\//),o=t.match(/\s|\//);if(a||o){const e=[`Unable to register library "${s}" with version "${t}":`];return a&&e.push(`library name "${s}" contains illegal characters (whitespace or "/")`),a&&o&&e.push("and"),o&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void C.warn(e.join(" "))}ie(new r.uA(`${s}-version`,(()=>({library:s,version:t})),"VERSION"))}const pe="firebase-heartbeat-database",me=1,ge="firebase-heartbeat-store";let ye=null;function ve(){return ye||(ye=function(e,t){let{blocked:n,upgrade:r,blocking:i,terminated:s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=indexedDB.open(e,t),o=y(a);return r&&a.addEventListener("upgradeneeded",(e=>{r(y(a.result),e.oldVersion,e.newVersion,y(a.transaction),e)})),n&&a.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),o.then((e=>{s&&e.addEventListener("close",(()=>s())),i&&e.addEventListener("versionchange",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),o}(pe,me,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(ge)}catch(n){console.warn(n)}}}).catch((e=>{throw le.create("idb-open",{originalErrorMessage:e.message})}))),ye}async function be(e,t){try{const n=(await ve()).transaction(ge,"readwrite"),r=n.objectStore(ge);await r.put(t,we(e)),await n.done}catch(n){if(n instanceof s.g)C.warn(n.message);else{const e=le.create("idb-set",{originalErrorMessage:null===n||void 0===n?void 0:n.message});C.warn(e.message)}}}function we(e){return`${e.name}!${e.options.appId}`}class xe{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new Se(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){var e,t;const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=_e();if((null!=(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||(this._heartbeatsCache=await this._heartbeatsCachePromise,null!=(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)))&&this._heartbeatsCache.lastSentHeartbeatDate!==r&&!this._heartbeatsCache.heartbeats.some((e=>e.date===r)))return this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((e=>{const t=new Date(e.date).valueOf();return Date.now()-t<=2592e6})),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){var e;if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||0===this._heartbeatsCache.heartbeats.length)return"";const t=_e(),{heartbeatsToSend:n,unsentEntries:r}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1024;const n=[];let r=e.slice();for(const i of e){const e=n.find((e=>e.agent===i.agent));if(e){if(e.dates.push(i.date),Ee(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),Ee(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),i=(0,s.Uj)(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}}function _e(){return(new Date).toISOString().substring(0,10)}class Se{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,s.zW)()&&(0,s.eX)().then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){const e=await async function(e){try{const t=(await ve()).transaction(ge),n=await t.objectStore(ge).get(we(e));return await t.done,n}catch(t){if(t instanceof s.g)C.warn(t.message);else{const e=le.create("idb-get",{originalErrorMessage:null===t||void 0===t?void 0:t.message});C.warn(e.message)}}}(this.app);return(null===e||void 0===e?void 0:e.heartbeats)?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return be(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return be(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function Ee(e){return(0,s.Uj)(JSON.stringify({version:2,heartbeats:e})).length}var ke;ke="",ie(new r.uA("platform-logger",(e=>new S(e)),"PRIVATE")),ie(new r.uA("heartbeat",(e=>new xe(e)),"PRIVATE")),fe(E,k,ke),fe(E,k,"esm2017"),fe("fire-js","")}
2,83598:(e,t,n)=>{"use strict";n.d(t,{h1:()=>o,uA:()=>i});var r=n(13540);class i{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const s="[DEFAULT]";class a{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new r.cY;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(n){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(null===e||void 0===e?void 0:e.identifier),r=null!==(t=null===e||void 0===e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(i){if(r)return null;throw i}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:s})}catch(t){}for(const[e,n]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:r});n.resolve(e)}catch(t){}}}}clearInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter((e=>"INTERNAL"in e)).map((e=>e.INTERNAL.delete())),...e.filter((e=>"_delete"in e)).map((e=>e._delete()))])}isComponentSet(){return null!=this.component}isInitialized(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return this.instances.has(e)}getOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return this.instancesOptions.get(e)||{}}initialize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[i,s]of this.instancesDeferred.entries()){n===this.normalizeInstanceIdentifier(i)&&s.resolve(r)}return r}onInit(e,t){var n;const r=this.normalizeInstanceIdentifier(t),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);const s=this.instances.get(r);return s&&e(s,r),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const i of n)try{i(e,t)}catch(r){}}getOrInitializeService(e){let{instanceIdentifier:t,options:n={}}=e,r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:(i=t,i===s?void 0:i),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch(a){}var i;return r||null}normalizeInstanceIdentifier(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return this.component?this.component.multipleInstances?e:s:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class o{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new a(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}}
2,71549:(e,t,n)=>{"use strict";n.d(t,{$b:()=>i,Vy:()=>c});const r=[];var i;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(i||(i={}));const s={debug:i.DEBUG,verbose:i.VERBOSE,info:i.INFO,warn:i.WARN,error:i.ERROR,silent:i.SILENT},a=i.INFO,o={[i.DEBUG]:"log",[i.VERBOSE]:"log",[i.INFO]:"info",[i.WARN]:"warn",[i.ERROR]:"error"},l=function(e,t){if(t<e.logLevel)return;const n=(new Date).toISOString(),r=o[t];if(!r)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);for(var i=arguments.length,s=new Array(i>2?i-2:0),a=2;a<i;a++)s[a-2]=arguments[a];console[r](`[${n}] ${e.name}:`,...s)};class c{constructor(e){this.name=e,this._logLevel=a,this._logHandler=l,this._userLogHandler=null,r.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in i))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"===typeof e?s[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!==typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,i.DEBUG,...t),this._logHandler(this,i.DEBUG,...t)}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,i.VERBOSE,...t),this._logHandler(this,i.VERBOSE,...t)}info(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,i.INFO,...t),this._logHandler(this,i.INFO,...t)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,i.WARN,...t),this._logHandler(this,i.WARN,...t)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,i.ERROR,...t),this._logHandler(this,i.ERROR,...t)}}},90094:(e,t,n)=>{"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}n.d(t,{A:()=>i});const i=function(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}},78985:(e,t,n)=>{"use strict";n.d(t,{HF:()=>We,eJ:()=>at,xI:()=>Nn,Pj:()=>lt,hg:()=>ut,MN:()=>ot,hK:()=>ct,df:()=>$t,CI:()=>dt});var r=n(39160),i=n(13540),s=n(71549);function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError;var o=n(83598);function l(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const c=l,u=new i.FA("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),d=new s.Vy("@firebase/auth");function h(e){if(d.logLevel<=s.$b.ERROR){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];d.error(`Auth (${r.MF}): ${e}`,...n)}}function f(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw v(e,...n)}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return v(e,...n)}function m(e,t,n){const r=Object.assign(Object.assign({},c()),{[t]:n});
2return new i.FA("auth","Firebase",r).create(t,{appName:e.name})}function g(e){return m(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function y(e,t,n){if(!(t instanceof n))throw n.name!==t.constructor.name&&f(e,"argument-error"),m(e,"argument-error",`Type of ${t.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function v(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("string"!==typeof e){const t=n[0],r=[...n.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(t,...r)}return u.create(e,...n)}function b(e,t){if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];throw v(t,...r)}}function w(e){const t="INTERNAL ASSERTION FAILED: "+e;throw h(t),new Error(t)}function x(e,t){e||w(t)}function _(){var e;return"undefined"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.href)||""}function S(){return"http:"===E()||"https:"===E()}function E(){var e;return"undefined"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.protocol)||null}class k{constructor(e,t){this.shortDelay=e,this.longDelay=t,x(t>e,"Short delay should be less than long delay!"),this.isMobile=(0,i.jZ)()||(0,i.lV)()}get(){return"undefined"!==typeof navigator&&navigator&&"onLine"in navigator&&"boolean"===typeof navigator.onLine&&(S()||(0,i.sr)()||"connection"in navigator)&&!navigator.onLine?Math.min(5e3,this.shortDelay):this.isMobile?this.longDelay:this.shortDelay}}function C(e,t){x(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?`${n}${t.startsWith("/")?t.slice(1):t}`:n}class A{static initialize(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!==typeof self&&"fetch"in self?self.fetch:"undefined"!==typeof globalThis&&globalThis.fetch?globalThis.fetch:"undefined"!==typeof fetch?fetch:void w("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!==typeof self&&"Headers"in self?self.Headers:"undefined"!==typeof globalThis&&globalThis.Headers?globalThis.Headers:"undefined"!==typeof Headers?Headers:void w("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!==typeof self&&"Response"in self?self.Response:"undefined"!==typeof globalThis&&globalThis.Response?globalThis.Response:"undefined"!==typeof Response?Response:void w("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const T={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-rec
2aptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},I=new k(3e4,6e4);function P(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function j(e,t,n,r){return N(e,arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},(async()=>{let s={},a={};r&&("GET"===t?a=r:s={body:JSON.stringify(r)});const o=(0,i.Am)(Object.assign({key:e.config.apiKey},a)).slice(1),l=await e._getAdditionalHeaders();return l["Content-Type"]="application/json",e.languageCode&&(l["X-Firebase-Locale"]=e.languageCode),A.fetch()(R(e,e.config.apiHost,n,o),Object.assign({method:t,headers:l,referrerPolicy:"no-referrer"},s))}))}async function N(e,t,n){e._canInitEmulator=!1;const r=Object.assign(Object.assign({},T),t);try{const t=new D(e),i=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();const s=await i.json();if("needConfirmation"in s)throw M(e,"account-exists-with-different-credential",s);if(i.ok&&!("errorMessage"in s))return s;{const t=i.ok?s.errorMessage:s.error.message,[n,a]=t.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===n)throw M(e,"credential-already-in-use",s);if("EMAIL_EXISTS"===n)throw M(e,"email-already-in-use",s);if("USER_DISABLED"===n)throw M(e,"user-disabled",s);const o=r[n]||n.toLowerCase().replace(/[_\s]+/g,"-");if(a)throw m(e,o,a);f(e,o)}}catch(s){if(s instanceof i.g)throw s;f(e,"network-request-failed",{message:String(s)})}}async function O(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const s=await j(e,t,n,r,i);return"mfaPendingCredential"in s&&f(e,"multi-factor-auth-required",{_serverResponse:s}),s}function R(e,t,n,r){const i=`${t}${n}?${r}`;return e.config.emulator?C(e.config,i):`${e.config.apiScheme}://${i}`}function L(e){switch(e){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class D{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise(((e,t)=>{this.timer=setTimeout((()=>t(p(this.auth,"network-request-failed"))),I.get())}))}clearNetworkTimeout(){clearTimeout(this.timer)}}function M(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=p(e,t,r);return i.customData._tokenResponse=n,i}function F(e){return void 0!==e&&void 0!==e.enterprise}class U{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===e.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const t of this.recaptchaEnforcementState)if(t.provider&&t.provider===e)return L(t.enforcementState);return null}isProviderEnabled(e){return"ENFORCE"===this.getProviderEnforcementState(e)||"AUDIT"===this.getProviderEnforcementState(e)}}async function V(e,t){return j(e,"GET","/v2/recaptchaConfig",P(e,t))}async function B(e,t){return j(e,"POST","/v1/accounts:lookup",t)}function z(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(t){}}function $(e){return 1e3*Number(e)}function H(e){const[t,n,r]=e.split(".");if(void 0===t||void 0===n||void 0===r)return h("JWT malformed, contained fewer than 3 sections"),null;try{const e=(0,i.u)(n);return e?JSON.parse(e):(h("Failed to decode base64 JWT payload"),null)}catch(s){return h("Caught error parsing JWT payload as JSON",null===s||void 0===s?void 0:s.toString()),null}}function q(e){const t=H(e);return b(t,"internal-error"),b("undefined"!==typeof t.exp,"internal-error"),b("undefined"!==typeof t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}async function W(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2])return t;try{return await t}
2catch(n){throw n instanceof i.g&&function(e){let{code:t}=e;return"auth/user-disabled"===t||"auth/user-token-expired"===t}(n)&&e.auth.currentUser===e&&await e.auth.signOut(),n}}class K{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){var t;if(e){const e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}{this.errorBackoff=3e4;const e=(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5;return Math.max(0,e)}}schedule(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isRunning)return;const t=this.getInterval(e);this.timerId=setTimeout((async()=>{await this.iteration()}),t)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){return void("auth/network-request-failed"===(null===e||void 0===e?void 0:e.code)&&this.schedule(!0))}this.schedule()}}class G{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=z(this.lastLoginAt),this.creationTime=z(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}async function Q(e){var t;const n=e.auth,r=await e.getIdToken(),i=await W(e,B(n,{idToken:r}));b(null===i||void 0===i?void 0:i.users.length,n,"internal-error");const s=i.users[0];e._notifyReloadListener(s);const a=(null===(t=s.providerUserInfo)||void 0===t?void 0:t.length)?X(s.providerUserInfo):[],o=(l=e.providerData,c=a,[...l.filter((e=>!c.some((t=>t.providerId===e.providerId)))),...c]);var l,c;const u=e.isAnonymous,d=!(e.email&&s.passwordHash)&&!(null===o||void 0===o?void 0:o.length),h=!!u&&d,f={uid:s.localId,displayName:s.displayName||null,photoURL:s.photoUrl||null,email:s.email||null,emailVerified:s.emailVerified||!1,phoneNumber:s.phoneNumber||null,tenantId:s.tenantId||null,providerData:o,metadata:new G(s.createdAt,s.lastLoginAt),isAnonymous:h};Object.assign(e,f)}function X(e){return e.map((e=>{var{providerId:t}=e,n=a(e,["providerId"]);return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}}))}class Y{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){b(e.idToken,"internal-error"),b("undefined"!==typeof e.idToken,"internal-error"),b("undefined"!==typeof e.refreshToken,"internal-error");const t="expiresIn"in e&&"undefined"!==typeof e.expiresIn?Number(e.expiresIn):q(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){b(0!==e.length,"internal-error");const t=q(e);this.updateTokensAndExpiration(e,null,t)}async getToken(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]||!this.accessToken||this.isExpired?(b(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null):this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){const{accessToken:n,refreshToken:r,expiresIn:s}=await async function(e,t){const n=await N(e,{},(async()=>{const n=(0,i.Am)({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:r,apiKey:s}=e.config,a=R(e,r,"/v1/token",`key=${s}`),o=await e._getAdditionalHeaders();return o["Content-Type"]="application/x-www-form-urlencoded",A.fetch()(a,{method:"POST",headers:o,body:n})}));return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}(e,t);this.updateTokensAndExpiration(n,r,Number(s))}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}static fromJSON(e,t){const{refreshToken:n,accessToken:r,expirationTime:i}=t,s=new Y;return n&&(b("string"===typeof n,"internal-error",{appName:e}),s.refreshToken=n),r&&(b("string"===typeof r,"internal-error",{appName:e}),s.accessToken=r),i&&(b("number"===typeof i,"internal-error",{appName:e}),s.expirationTime=i),s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Y,this.toJSON())}_performRefresh(){return w("not implemented")}}function J(e,t){b("string"===typeof e||"undefined"===typeof e,"internal-error",{appName:t})}class Z{constructor(e){var{uid:t,auth:n,stsTokenManager:r}=e,i=a(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new K(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new G(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){const t=await W(this,this.stsTokenManager.getToken(this.auth,e));return b(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(0,i.Ku)(e),r=await n.getIdToken(t),s=H(r);b(s&&s.exp&&s.auth_time&&s.iat,n.auth,"internal-error");const a="object"===typeof s.firebase?s.firebase:void 0,o=null===a||void 0===a?void 0:a.sign_in_provider;return{claims:s,token:r,authTime:z($(s.auth_time)),issuedAtTime:z($(s.iat)),expirationTime:z($(s.exp)),signInProvider:o||null,signInSecondFactor:(null===a||void 0===a?void 0:a.sign_in_second_factor)||null}}(this,e)}reload(){return async function(e){const t=(0,i.Ku)(e);await Q(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}(this)}_assign(e){this!==e&&(b(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.ph
vendor: 6,578 bytes, line 2
2otoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map((e=>Object.assign({},e))),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const t=new Z(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){b(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await Q(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){if((0,r.xZ)(this.auth.app))return Promise.reject(g(this.auth));const e=await this.getIdToken();return await W(this,async function(e,t){return j(e,"POST","/v1/accounts:delete",t)}(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map((e=>Object.assign({},e))),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){var n,r,i,s,a,o,l,c;const u=null!==(n=t.displayName)&&void 0!==n?n:void 0,d=null!==(r=t.email)&&void 0!==r?r:void 0,h=null!==(i=t.phoneNumber)&&void 0!==i?i:void 0,f=null!==(s=t.photoURL)&&void 0!==s?s:void 0,p=null!==(a=t.tenantId)&&void 0!==a?a:void 0,m=null!==(o=t._redirectEventId)&&void 0!==o?o:void 0,g=null!==(l=t.createdAt)&&void 0!==l?l:void 0,y=null!==(c=t.lastLoginAt)&&void 0!==c?c:void 0,{uid:v,emailVerified:w,isAnonymous:x,providerData:_,stsTokenManager:S}=t;b(v&&S,e,"internal-error");const E=Y.fromJSON(this.name,S);b("string"===typeof v,e,"internal-error"),J(u,e.name),J(d,e.name),b("boolean"===typeof w,e,"internal-error"),b("boolean"===typeof x,e,"internal-error"),J(h,e.name),J(f,e.name),J(p,e.name),J(m,e.name),J(g,e.name),J(y,e.name);const k=new Z({uid:v,auth:e,email:d,emailVerified:w,displayName:u,isAnonymous:x,photoURL:f,phoneNumber:h,tenantId:p,stsTokenManager:E,createdAt:g,lastLoginAt:y});return _&&Array.isArray(_)&&(k.providerData=_.map((e=>Object.assign({},e)))),m&&(k._redirectEventId=m),k}static async _fromIdTokenResponse(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=new Y;r.updateFromServerResponse(t);const i=new Z({uid:t.localId,auth:e,stsTokenManager:r,isAnonymous:n});return await Q(i),i}static async _fromGetAccountInfoResponse(e,t,n){const r=t.users[0];b(void 0!==r.localId,"internal-error");const i=void 0!==r.providerUserInfo?X(r.providerUserInfo):[],s=!(r.email&&r.passwordHash)&&!(null===i||void 0===i?void 0:i.length),a=new Y;a.updateFromIdToken(n);const o=new Z({uid:r.localId,auth:e,stsTokenManager:a,isAnonymous:s}),l={uid:r.localId,displayName:r.displayName||null,photoURL:r.photoUrl||null,email:r.email||null,emailVerified:r.emailVerified||!1,phoneNumber:r.phoneNumber||null,tenantId:r.tenantId||null,providerData:i,metadata:new G(r.createdAt,r.lastLoginAt),isAnonymous:!(r.email&&r.passwordHash)&&!(null===i||void 0===i?void 0:i.length)};return Object.assign(o,l),o}}const ee=new Map;function te(e){x(e instanceof Function,"Expected a class definition");let t=ee.get(e);return t?(x(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,ee.set(e,t),t)}class ne{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){const t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}ne.type="NONE";const re=ne;function ie(e,t,n){return`firebase:${e}:${t}:${n}`}class se{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;const{config:r,name:i}=this.auth;this.fullUserKey=ie(this.userKey,r.apiKey,i),this.fullPersistenceKey=ie("persistence",r.apiKey,i),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);return e?Z._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const t=await this.getCurrentUser();return await this.removeCurrentUser(),this.persistence=e,t?this.setCurrentUser(t):void 0}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"authUser";if(!t.length)return new se(te(re),e,n);const r=(await Promise.all(t.map((async e=>{if(await e._isAvailable())return e})))).filter((e=>e));let i=r[0]||te(re);const s=ie(n,e.config.apiKey,e.name);let a=null;for(const c of t)try{const t=await c._get(s);if(t){const n=Z._fromJSON(e,t);c!==i&&(a=n),i=c;break}}catch(l){}const o=r.filter((e=>e._shouldAllowMigration));return i._shouldAllowMigration&&o.length?(i=o[0],a&&await i._set(s,a.toJSON()),await Promise.all(t.map((async e=>{if(e!==i)try{await e._remove(s)}catch(l){}}))),new se(i,e,n)):new se(i,e,n)}}function ae(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(ue(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(oe(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(he(t))return"Blackberry";if(fe(t))return"Webos";if(le(t))return"Safari";if((t.includes("chrome/")||ce(t))&&!t.includes("edge/"))return"Chrome";
2if(de(t))return"Android";{const t=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,n=e.match(t);if(2===(null===n||void 0===n?void 0:n.length))return n[1]}return"Other"}function oe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.ZQ)();return/firefox\//i.test(e)}function le(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.ZQ)()).toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function ce(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.ZQ)();return/crios\//i.test(e)}function ue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.ZQ)();return/iemobile/i.test(e)}function de(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.ZQ)();return/android/i.test(e)}function he(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.ZQ)();return/blackberry/i.test(e)}function fe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.ZQ)();return/webos/i.test(e)}function pe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.ZQ)();return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function me(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.ZQ)();return pe(e)||de(e)||fe(e)||he(e)||/windows phone/i.test(e)||ue(e)}function ge(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];switch(e){case"Browser":t=ae((0,i.ZQ)());break;case"Worker":t=`${ae((0,i.ZQ)())}-${e}`;break;default:t=e}const s=n.length?n.join(","):"FirebaseCore-web";return`${t}/JsCore/${r.MF}/${s}`}class ye{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const n=t=>new Promise(((n,r)=>{try{n(e(t))}catch(i){r(i)}}));n.onAbort=t,this.queue.push(n);const r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const t=[];try{for(const n of this.queue)await n(e),n.onAbort&&t.push(n.onAbort)}catch(n){t.reverse();for(const e of t)try{e()}catch(r){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null===n||void 0===n?void 0:n.message})}}}class ve{constructor(e){var t,n,r,i;const s=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(t=s.minPasswordLength)&&void 0!==t?t:6,s.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=s.maxPasswordLength),void 0!==s.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=s.containsLowercaseCharacter),void 0!==s.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=s.containsUppercaseCharacter),void 0!==s.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=s.containsNumericCharacter),void 0!==s.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=s.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(r=null===(n=e.allowedNonAlphanumericCharacters)||void 0===n?void 0:n.join(""))&&void 0!==r?r:"",this.forceUpgradeOnSignin=null!==(i=e.forceUpgradeOnSignin)&&void 0!==i&&i,this.schemaVersion=e.schemaVersion}validatePassword(e){var t,n,r,i,s,a;const o={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,o),this.validatePasswordCharacterOptions(e,o),o.isValid&&(o.isValid=null===(t=o.meetsMinPasswordLength)||void 0===t||t),o.isValid&&(o.isValid=null===(n=o.meetsMaxPasswordLength)||void 0===n||n),o.isValid&&(o.isValid=null===(r=o.containsLowercaseLetter)||void 0===r||r),o.isValid&&(o.isValid=null===(i=o.containsUppercaseLetter)||void 0===i||i),o.isValid&&(o.isValid=null===(s=o.containsNumericCharacter)||void 0===s||s),o.isValid&&(o.isValid=null===(a=o.containsNonAlphanumericCharacter)||void 0===a||a),o}validatePasswordLengthOptions(e,t){const n=this.customStrengthOptions.minPasswordLength,r=this.customStrengthOptions.maxPasswordLength;n&&(t.meetsMinPasswordLength=e.length>=n),r&&(t.meetsMaxPasswordLength=e.length<=r)}validatePasswordCharacterOptions(e,t){let n;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let r=0;r<e.length;r++)n=e.charAt(r),this.updatePasswordCharacterOptionsStatuses(t,n>="a"&&n<="z",n>="A"&&n<="Z",n>="0"&&n<="9",this.allowedNonAlphanumericCharacters.includes(n))}updatePasswordCharacterOptionsStatuses(e,t,n,r,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=n)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=r)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}class be{constructor(e,t,n,r){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new xe(this),this.idTokenSubscription=new xe(this),this.beforeStateQueue=new ye(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=u,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=te(t)),this._initializationPromise=this.queue((async()=>{var n,r;if(!this._deleted&&(this.persistenceManager=await se.create(this,e),!this._deleted)){if
2(null===(n=this._popupRedirectResolver)||void 0===n?void 0:n._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(i){}await this.initializeCurrentUser(t),this.lastNotifiedUid=(null===(r=this.currentUser)||void 0===r?void 0:r.uid)||null,this._deleted||(this._isInitialized=!0)}})),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();return this.currentUser||e?this.currentUser&&e&&this.currentUser.uid===e.uid?(this._currentUser._assign(e),void await this.currentUser.getIdToken()):void await this._updateCurrentUser(e,!0):void 0}async initializeCurrentUserFromIdToken(e){try{const t=await B(this,{idToken:e}),n=await Z._fromGetAccountInfoResponse(this,t,e);await this.directlySetCurrentUser(n)}catch(t){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",t),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){var t;if((0,r.xZ)(this.app)){const e=this.app.settings.authIdToken;return e?new Promise((t=>{setTimeout((()=>this.initializeCurrentUserFromIdToken(e).then(t,t)))})):this.directlySetCurrentUser(null)}const n=await this.assertedPersistence.getCurrentUser();let i=n,s=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const n=null===(t=this.redirectUser)||void 0===t?void 0:t._redirectEventId,r=null===i||void 0===i?void 0:i._redirectEventId,a=await this.tryRedirectSignIn(e);n&&n!==r||!(null===a||void 0===a?void 0:a.user)||(i=a.user,s=!0)}if(!i)return this.directlySetCurrentUser(null);if(!i._redirectEventId){if(s)try{await this.beforeStateQueue.runMiddleware(i)}catch(a){i=n,this._popupRedirectResolver._overrideRedirectResult(this,(()=>Promise.reject(a)))}return i?this.reloadAndSetCurrentUserOrClear(i):this.directlySetCurrentUser(null)}return b(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===i._redirectEventId?this.directlySetCurrentUser(i):this.reloadAndSetCurrentUserOrClear(i)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(n){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await Q(e)}catch(t){if("auth/network-request-failed"!==(null===t||void 0===t?void 0:t.code))return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=function(){if("undefined"===typeof navigator)return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if((0,r.xZ)(this.app))return Promise.reject(g(this));const t=e?(0,i.Ku)(e):null;return t&&b(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._deleted)return e&&b(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue((async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()}))}async signOut(){return(0,r.xZ)(this.app)?Promise.reject(g(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return(0,r.xZ)(this.app)?Promise.reject(g(this)):this.queue((async()=>{await this.assertedPersistence.setPersistence(te(e))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):t.validatePassword(e)}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await async function(e){return j(e,"GET","/v2/passwordPolicy",P(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}(this),t=new ve(e);null===this.tenantId?this._projectPasswordPolicy=t:this._tenantPasswordPolicies[this.tenantId]=t}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new i.FA("auth","Firebase",e())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}authStateReady(){return new Promise(((e,t)=>{if(this.currentUser)e();else{const n=this.onAuthStateChanged((()=>{n(),e()}),t)}}))}async revokeAccessToken(e){if(this.currentUser){const t={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:await this.currentUser.getIdToken()};null!=this.tenantId&&(t.tenantId=this.tenantId),await async function(e,t){return j(e,"POST","/v2/accounts:revokeToken",P(e,t))}(this,t)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}async _setRedirectUser(e,t){const n=await this.getOrInitRedirectPersistenceManager(t);return null===e?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const t=e&&te(e)||this._popupRedirectResolver;b(t,this,"argument-error"),this.redirectPersistenceManager=await se.create(this,[te(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,n;return this._isInitialized&&await this.queue((async()=>{})),(null===(t=this._currentUser)||void 0===t?void 0:t._redirectEventId)===e?this._currentUser:(null===(n=this.redirectUser)||void 0===n?void 0:n._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue((async()=>this.directlySetCurrentUser(e)))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const n=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,n,r){if(this._deleted)return()=>{};const i="function"===typeof t?t:t.next.bind(t);let s=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(b(a,this,"internal-error"),a.then((()=>{s||i(this.currentUser)})),"function"===typeof t){const i=e.addObserver(t,n,r);return()=>{s=!0,i()}}{const n=e.addObserver(t);return()=>{s=!0,n()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return b(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=ge(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);const n=await(null===(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getHeartbeatsHeader());n&&(t["X-Firebase-Client"]=n);const r=await this._getAppCheckToken();return r&&(t["X-Firebase-AppCheck"]=r),t}async _getAppCheckToken(){var e;const t=await(null===(e=this.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getToken());return(null===t||void 0===t?void 0:t.error)&&function(e){if(d.logLevel<=s.$b.WARN){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];d.warn(`Auth (${r.MF}): ${e}`,...n)}}(`Error while retrieving App Check token: ${t.error}`),null===t||void 0===t?void 0:t.token}}function we(e){return(0,i.Ku)(e)}class xe{constructor(e){this.auth=e,this.observer=null,this.addObserver=(0,i.tD)((e=>this.observer=e))}get next(){return b(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let _e={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Se(e){return _e.loadJS(e)}function Ee(e){return`__${e}${Math.floor(1e6*Math.random())}`}class ke{constructor(e){this.type="recaptcha-enterprise",this.auth=we(e)}async verify(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"verify",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(t,n,r){const i=window.grecaptcha;F(i)?i.enterprise.ready((()=>{i.enterprise.execute(t,{action:e}).then((e=>{n(e)})).catch((()=>{n("NO_RECAPTCHA")}))})):r(Error("No reCAPTCHA enterprise script loaded."))}return new Promise(((e,r)=>{(async function(e){if(!t){if(null==e.tenantId&&null!=e._agentRecaptchaConfig)return e._agentRecaptchaConfig.siteKey;if(null!=e.tenantId&&void 0!==e._tenantRecaptchaConfigs[e.tenantId])return e._tenantRecaptchaConfigs[e.tenantId].siteKey}return new Promise((async(t,n)=>
2{V(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then((r=>{if(void 0!==r.recaptchaKey){const n=new U(r);return null==e.tenantId?e._agentRecaptchaConfig=n:e._tenantRecaptchaConfigs[e.tenantId]=n,t(n.siteKey)}n(new Error("recaptcha Enterprise site key undefined"))})).catch((e=>{n(e)}))}))})(this.auth).then((i=>{if(!t&&F(window.grecaptcha))n(i,e,r);else{if("undefined"===typeof window)return void r(new Error("RecaptchaVerifier is only supported in browser"));let t=_e.recaptchaEnterpriseScript;0!==t.length&&(t+=i),Se(t).then((()=>{n(i,e,r)})).catch((e=>{r(e)}))}})).catch((e=>{r(e)}))}))}}async function Ce(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=new ke(e);let s;try{s=await i.verify(n)}catch(o){s=await i.verify(n,!0)}const a=Object.assign({},t);return r?Object.assign(a,{captchaResp:s}):Object.assign(a,{captchaResponse:s}),Object.assign(a,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(a,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),a}async function Ae(e,t,n,r){var i;if(null===(i=e._getRecaptchaConfig())||void 0===i?void 0:i.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const i=await Ce(e,t,n,"getOobCode"===n);return r(e,i)}return r(e,t).catch((async i=>{if("auth/missing-recaptcha-token"===i.code){console.log(`${n} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const i=await Ce(e,t,n,"getOobCode"===n);return r(e,i)}return Promise.reject(i)}))}function Te(e,t,n){const r=we(e);b(r._canInitEmulator,r,"emulator-config-failed"),b(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const i=!!(null===n||void 0===n?void 0:n.disableWarnings),s=Ie(t),{host:a,port:o}=function(e){const t=Ie(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){const e=i[1];return{host:e,port:Pe(r.substr(e.length+1))}}{const[e,t]=r.split(":");return{host:e,port:Pe(t)}}}(t),l=null===o?"":`:${o}`;r.config.emulator={url:`${s}//${a}${l}/`},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:a,port:o,protocol:s.replace(":",""),options:Object.freeze({disableWarnings:i})}),i||function(){function e(){const e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}"undefined"!==typeof console&&"function"===typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials.");"undefined"!==typeof window&&"undefined"!==typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}()}function Ie(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function Pe(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}class je{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return w("not implemented")}_getIdTokenResponse(e){return w("not implemented")}_linkToIdToken(e,t){return w("not implemented")}_getReauthenticationResolver(e){return w("not implemented")}}async function Ne(e,t){return j(e,"POST","/v1/accounts:signUp",t)}async function Oe(e,t){return O(e,"POST","/v1/accounts:signInWithPassword",P(e,t))}async function Re(e,t){return j(e,"POST","/v1/accounts:sendOobCode",P(e,t))}async function Le(e,t){return Re(e,t)}class De extends je{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;super("password",n),this._email=e,this._password=t,this._tenantId=r}static _fromEmailAndPassword(e,t){return new De(e,t,"password")}static _fromEmailAndCode(e,t){return new De(e,t,"emailLink",arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e;if((null===t||void 0===t?void 0:t.email)&&(null===t||void 0===t?void 0:t.password)){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":return Ae(e,{returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",Oe);case"emailLink":return async function(e,t){return O(e,"POST","/v1/accounts:signInWithEmailLink",P(e,t))}(e,{email:this._email,oobCode:this._password});default:f(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":return Ae(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Ne);case"emailLink":return async function(e,t){return O(e,"POST","/v1/accounts:signInWithEmailLink",P(e,t))}(e,{idToken:t,email:this._email,oobCode:this._password});default:f(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}async function Me(e,t){return O(e,"POST","/v1/accounts:signInWithIdp",P(e,t))}class Fe extends je{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const t=new Fe(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&
2(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):f("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e,{providerId:n,signInMethod:r}=t,i=a(t,["providerId","signInMethod"]);if(!n||!r)return null;const s=new Fe(n,r);return s.idToken=i.idToken||void 0,s.accessToken=i.accessToken||void 0,s.secret=i.secret,s.nonce=i.nonce,s.pendingToken=i.pendingToken||null,s}_getIdTokenResponse(e){return Me(e,this.buildRequest())}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,Me(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,Me(e,t)}buildRequest(){const e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=(0,i.Am)(t)}return e}}const Ue={USER_NOT_FOUND:"user-not-found"};class Ve extends je{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new Ve({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new Ve({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return async function(e,t){return O(e,"POST","/v1/accounts:signInWithPhoneNumber",P(e,t))}(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return async function(e,t){const n=await O(e,"POST","/v1/accounts:signInWithPhoneNumber",P(e,t));if(n.temporaryProof)throw M(e,"account-exists-with-different-credential",n);return n}(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return async function(e,t){return O(e,"POST","/v1/accounts:signInWithPhoneNumber",P(e,Object.assign(Object.assign({},t),{operation:"REAUTH"})),Ue)}(e,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:e,phoneNumber:t,verificationId:n,verificationCode:r}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:n,code:r}}toJSON(){const e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"===typeof e&&(e=JSON.parse(e));const{verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}=e;return n||t||r||i?new Ve({verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}):null}}class Be{constructor(e){var t,n,r,s,a,o;const l=(0,i.I9)((0,i.hp)(e)),c=null!==(t=l.apiKey)&&void 0!==t?t:null,u=null!==(n=l.oobCode)&&void 0!==n?n:null,d=function(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(r=l.mode)&&void 0!==r?r:null);b(c&&u&&d,"argument-error"),this.apiKey=c,this.operation=d,this.code=u,this.continueUrl=null!==(s=l.continueUrl)&&void 0!==s?s:null,this.languageCode=null!==(a=l.languageCode)&&void 0!==a?a:null,this.tenantId=null!==(o=l.tenantId)&&void 0!==o?o:null}static parseLink(e){const t=function(e){const t=(0,i.I9)((0,i.hp)(e)).link,n=t?(0,i.I9)((0,i.hp)(t)).deep_link_id:null,r=(0,i.I9)((0,i.hp)(e)).deep_link_id;return(r?(0,i.I9)((0,i.hp)(r)).link:null)||r||n||t||e}(e);try{return new Be(t)}catch(n){return null}}}class ze{constructor(){this.providerId=ze.PROVIDER_ID}static credential(e,t){return De._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){const n=Be.parseLink(t);return b(n,"argument-error"),De._fromEmailAndCode(e,n.code,n.tenantId)}}ze.PROVIDER_ID="password",ze.EMAIL_PASSWORD_SIGN_IN_METHOD="password",ze.EMAIL_LINK_SIGN_IN_METHOD="emailLink";class $e{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}class He extends $e{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class qe extends He{constructor(){super("facebook.com")}static credential(e){return Fe._fromParams({providerId:qe.PROVIDER_ID,signInMethod:qe.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return qe.credentialFromTaggedObject(e)}static credentialFromError(e){return qe.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return qe.credential(t.oauthAccessToken)}catch(n){return null}}}qe.FACEBOOK_SIGN_IN_METHOD="facebook.com",qe.PROVIDER_ID="facebook.com";class We extends He{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return Fe._fromParams({providerId:We.PROVIDER_ID,signInMethod:We.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return We.credentialFromTaggedObject(e)}static credentialFromError(e){return We.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r}=t;if(!n&&!r)return null;try{return We.credential(n,r)}catch(i){return null}}}We.GOOGLE_SIGN_IN_METHOD="google.com",We.PROVIDER_ID="google.com";class Ke extends He{constructor(){super("github.com")}static credential(e){return Fe._fromParams({providerId:Ke.PROVIDER_ID,signInMethod:Ke.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Ke.credentialFromTaggedObject(e)}static credentialFromError(e){return Ke.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return Ke.credential(t.oauthAccessToken)}catch(n){return null}}}Ke.GITHUB_SIGN_IN_METHOD="github.com",Ke.PROVIDER_ID="github.com";class Ge extends He{constructor(){super("twitter.com")}
2static credential(e,t){return Fe._fromParams({providerId:Ge.PROVIDER_ID,signInMethod:Ge.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return Ge.credentialFromTaggedObject(e)}static credentialFromError(e){return Ge.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=t;if(!n||!r)return null;try{return Ge.credential(n,r)}catch(i){return null}}}async function Qe(e,t){return O(e,"POST","/v1/accounts:signUp",P(e,t))}Ge.TWITTER_SIGN_IN_METHOD="twitter.com",Ge.PROVIDER_ID="twitter.com";class Xe{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=await Z._fromIdTokenResponse(e,n,r),s=Ye(n);return new Xe({user:i,providerId:s,_tokenResponse:n,operationType:t})}static async _forOperation(e,t,n){await e._updateTokensIfNecessary(n,!0);const r=Ye(n);return new Xe({user:e,providerId:r,_tokenResponse:n,operationType:t})}}function Ye(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}class Je extends i.g{constructor(e,t,n,r){var i;super(t.code,t.message),this.operationType=n,this.user=r,Object.setPrototypeOf(this,Je.prototype),this.customData={appName:e.name,tenantId:null!==(i=e.tenantId)&&void 0!==i?i:void 0,_serverResponse:t.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,t,n,r){return new Je(e,t,n,r)}}function Ze(e,t,n,r){return("reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch((n=>{if("auth/multi-factor-auth-required"===n.code)throw Je._fromErrorAndOperation(e,n,t,r);throw n}))}async function et(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=await W(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return Xe._forOperation(e,"link",r)}async function tt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{auth:i}=e;if((0,r.xZ)(i.app))return Promise.reject(g(i));const s="reauthenticate";try{const r=await W(e,Ze(i,s,t,e),n);b(r.idToken,i,"internal-error");const a=H(r.idToken);b(a,i,"internal-error");const{sub:o}=a;return b(e.uid===o,i,"user-mismatch"),Xe._forOperation(e,s,r)}catch(a){throw"auth/user-not-found"===(null===a||void 0===a?void 0:a.code)&&f(i,"user-mismatch"),a}}async function nt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((0,r.xZ)(e.app))return Promise.reject(g(e));const i="signIn",s=await Ze(e,i,t),a=await Xe._fromIdTokenResponse(e,i,s);return n||await e._updateCurrentUser(a.user),a}async function rt(e,t){return nt(we(e),t)}function it(e,t,n){var r;b((null===(r=n.url)||void 0===r?void 0:r.length)>0,e,"invalid-continue-uri"),b("undefined"===typeof n.dynamicLinkDomain||n.dynamicLinkDomain.length>0,e,"invalid-dynamic-link-domain"),t.continueUrl=n.url,t.dynamicLinkDomain=n.dynamicLinkDomain,t.canHandleCodeInApp=n.handleCodeInApp,n.iOS&&(b(n.iOS.bundleId.length>0,e,"missing-ios-bundle-id"),t.iOSBundleId=n.iOS.bundleId),n.android&&(b(n.android.packageName.length>0,e,"missing-android-pkg-name"),t.androidInstallApp=n.android.installApp,t.androidMinimumVersionCode=n.android.minimumVersion,t.androidPackageName=n.android.packageName)}async function st(e){const t=we(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}async function at(e,t,n){if((0,r.xZ)(e.app))return Promise.reject(g(e));const i=we(e),s=Ae(i,{returnSecureToken:!0,email:t,password:n,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Qe),a=await s.catch((t=>{throw"auth/password-does-not-meet-requirements"===t.code&&st(e),t})),o=await Xe._fromIdTokenResponse(i,"signIn",a);return await i._updateCurrentUser(o.user),o}async function ot(e,t,n){const r=we(e),i={requestType:"EMAIL_SIGNIN",email:t,clientType:"CLIENT_TYPE_WEB"};!function(e,t){b(t.handleCodeInApp,r,"argument-error"),t&&it(r,e,t)}(i,n),await Ae(r,i,"getOobCode",Le)}function lt(e,t){const n=Be.parseLink(t);return"EMAIL_SIGNIN"===(null===n||void 0===n?void 0:n.operation)}async function ct(e,t,n){if((0,r.xZ)(e.app))return Promise.reject(g(e));const s=(0,i.Ku)(e),a=ze.credentialWithLink(t,n||_());return b(a._tenantId===(s.tenantId||null),s,"tenant-id-mismatch"),rt(s,a)}function ut(e,t,n,r){return(0,i.Ku)(e).onAuthStateChanged(t,n,r)}function dt(e){return(0,i.Ku)(e).signOut()}new WeakMap;const ht="__sak";class ft{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem(ht,"1"),this.storage.removeItem(ht),Promise.resolve(!0)):Promise.resolve(!1)}catch(e){return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){const t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}class pt extends ft{constructor(){super((()=>window.localStorage),"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function(){const e=(0,i.ZQ)();return le(e)||pe(e)}()&&function(){try{return!(!window||window===window.top)}catch(e){return!1}}(),this.fallbackToPolling=me(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const t of Object.keys(this.listeners)){const n=this.storage.getItem(t),r=this.localCache[t];n!==r&&e(t,r,n)}}onStorageEvent(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];
vendor: 9,460 bytes, line 2
2if(!e.key)return void this.forAllChangedKeys(((e,t,n)=>{this.notifyListeners(e,n)}));const n=e.key;if(t?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const r=this.storage.getItem(n);if(e.newValue!==r)null!==e.newValue?this.storage.setItem(n,e.newValue):this.storage.removeItem(n);else if(this.localCache[n]===e.newValue&&!t)return}const r=()=>{const e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)},s=this.storage.getItem(n);(0,i.lT)()&&10===document.documentMode&&s!==e.newValue&&e.newValue!==e.oldValue?setTimeout(r,10):r()}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval((()=>{this.forAllChangedKeys(((e,t,n)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:t,newValue:n}),!0)}))}),1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){const t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}pt.type="LOCAL";const mt=pt;class gt extends ft{constructor(){super((()=>window.sessionStorage),"SESSION")}_addListener(e,t){}_removeListener(e,t){}}gt.type="SESSION";const yt=gt;class vt{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const t=this.receivers.find((t=>t.isListeningto(e)));if(t)return t;const n=new vt(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const t=e,{eventId:n,eventType:r,data:i}=t.data,s=this.handlersMap[r];if(!(null===s||void 0===s?void 0:s.size))return;t.ports[0].postMessage({status:"ack",eventId:n,eventType:r});const a=Array.from(s).map((async e=>e(t.origin,i))),o=await function(e){return Promise.all(e.map((async e=>{try{return{fulfilled:!0,value:await e}}catch(t){return{fulfilled:!1,reason:t}}})))}(a);t.ports[0].postMessage({status:"done",eventId:n,eventType:r,response:o})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}function bt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n="";for(let r=0;r<t;r++)n+=Math.floor(10*Math.random());return e+n}vt.receivers=[];class wt{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50;const r="undefined"!==typeof MessageChannel?new MessageChannel:null;if(!r)throw new Error("connection_unavailable");let i,s;return new Promise(((a,o)=>{const l=bt("",20);r.port1.start();const c=setTimeout((()=>{o(new Error("unsupported_event"))}),n);s={messageChannel:r,onMessage(e){const t=e;if(t.data.eventId===l)switch(t.data.status){case"ack":clearTimeout(c),i=setTimeout((()=>{o(new Error("timeout"))}),3e3);break;case"done":clearTimeout(i),a(t.data.response);break;default:clearTimeout(c),clearTimeout(i),o(new Error("invalid_response"))}}},this.handlers.add(s),r.port1.addEventListener("message",s.onMessage),this.target.postMessage({eventType:e,eventId:l,data:t},[r.port2])})).finally((()=>{s&&this.removeMessageHandler(s)}))}}function xt(){return window}function _t(){return"undefined"!==typeof xt().WorkerGlobalScope&&"function"===typeof xt().importScripts}const St="firebaseLocalStorageDb",Et="firebaseLocalStorage",kt="fbase_key";class Ct{constructor(e){this.request=e}toPromise(){return new Promise(((e,t)=>{this.request.addEventListener("success",(()=>{e(this.request.result)})),this.request.addEventListener("error",(()=>{t(this.request.error)}))}))}}function At(e,t){return e.transaction([Et],t?"readwrite":"readonly").objectStore(Et)}function Tt(){const e=indexedDB.open(St,1);return new Promise(((t,n)=>{e.addEventListener("error",(()=>{n(e.error)})),e.addEventListener("upgradeneeded",(()=>{const t=e.result;try{t.createObjectStore(Et,{keyPath:kt})}catch(r){n(r)}})),e.addEventListener("success",(async()=>{const n=e.result;n.objectStoreNames.contains(Et)?t(n):(n.close(),await function(){const e=indexedDB.deleteDatabase(St);return new Ct(e).toPromise()}(),t(await Tt()))}))}))}async function It(e,t,n){const r=At(e,!0).put({[kt]:t,value:n});return new Ct(r).toPromise()}function Pt(e,t){const n=At(e,!0).delete(t);return new Ct(n).toPromise()}class jt{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then((()=>{}),(()=>{}))}async _openDb(){return this.db||(this.db=await Tt()),this.db}async _withRetries(e){let t=0;for(;;)try{const t=await this._openDb();return await e(t)}catch(n){if(t++>3)throw n;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return _t()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=vt._getInstance(_t()?self:null),this.receiver._subscribe("keyChanged",(async(e,t)=>({keyProcessed:(await this._poll()).includes(t.key)}))),this.receiver._subscribe("ping",(async(e,t)=>["keyChanged"]))}async initializeSender(){var e,t;if(this.activeServiceWorker=await async function(){if(!(null===navigator||void 0===navigator?void 0:navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch(e){return null}}(),!this.activeServiceWorker)return;this.sender=new wt(this.activeServiceWorker);const n=await this.sender._send("ping",{},800);n&&(null===(e=n[0])||void 0===e?void 0:e.fulfilled)&&(null===(t=n[0])||void 0===t?void 0:t.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(this.sender&&this.activeServiceWorker&&function(){var e;return(null===(e=null===navigator||void 0===navigator?void 0:navigator.serviceWorker)||void 0===e?void 0:e.controller)||null}()===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(t){}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await Tt();return await It(e,ht,"1"),await Pt(e,ht),!0}catch(e){}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite((async()=>(await this._withRetries((n=>It(n,e,t))),this.localCache[e]=t,this.notifyServiceWorker(e))))}async _get(e){const t=await this._withRetries((t=>async function(e,t){const n=At(e,!1).get(t),r=await new Ct(n).toPromise();return void 0===r?null:r.value}(t,e)));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite((async()=>(await this._withRetries((t=>Pt(t,e))),delete this.localCache[e],this.notifyServiceWorker(e))))}async _poll(){const e=await this._withRetries((e=>{const t=At(e,!1).getAll();return new Ct(t).toPromise()}));if(!e)return[];if(0!==this.pendingWrites)return[];const t=[],n=new Set;if(0!==e.length)for(const{fbase_key:r,value:i}of e)n.add(r),JSON.stringify(this.localCache[r])!==JSON.stringify(i)&&(this.notifyListeners(r,i),t.push(r));for(const r of Object.keys(this.localCache))this.localCache[r]&&!n.has(r)&&(this.notifyListeners(r,null),t.push(r));return t}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval((async()=>this._poll()),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}jt.type="LOCAL";const Nt=jt;Ee("rcb"),new k(3e4,6e4);const Ot="recaptcha";async function Rt(e,t,n){var r;const i=await n.verify();try{let s;if(b("string"===typeof i,e,"argument-error"),b(n.type===Ot,e,"argument-error"),s="string"===typeof t?{phoneNumber:t}
2:t,"session"in s){const t=s.session;if("phoneNumber"in s){b("enroll"===t.type,e,"internal-error");const n=await function(e,t){return j(e,"POST","/v2/accounts/mfaEnrollment:start",P(e,t))}(e,{idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:s.phoneNumber,recaptchaToken:i}});return n.phoneSessionInfo.sessionInfo}{b("signin"===t.type,e,"internal-error");const n=(null===(r=s.multiFactorHint)||void 0===r?void 0:r.uid)||s.multiFactorUid;b(n,e,"missing-multi-factor-info");const a=await function(e,t){return j(e,"POST","/v2/accounts/mfaSignIn:start",P(e,t))}(e,{mfaPendingCredential:t.credential,mfaEnrollmentId:n,phoneSignInInfo:{recaptchaToken:i}});return a.phoneResponseInfo.sessionInfo}}{const{sessionInfo:t}=await async function(e,t){return j(e,"POST","/v1/accounts:sendVerificationCode",P(e,t))}(e,{phoneNumber:s.phoneNumber,recaptchaToken:i});return t}}finally{n._reset()}}class Lt{constructor(e){this.providerId=Lt.PROVIDER_ID,this.auth=we(e)}verifyPhoneNumber(e,t){return Rt(this.auth,e,(0,i.Ku)(t))}static credential(e,t){return Ve._fromVerification(e,t)}static credentialFromResult(e){const t=e;return Lt.credentialFromTaggedObject(t)}static credentialFromError(e){return Lt.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{phoneNumber:n,temporaryProof:r}=t;return n&&r?Ve._fromTokenResponse(n,r):null}}function Dt(e,t){return t?te(t):(b(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}Lt.PROVIDER_ID="phone",Lt.PHONE_SIGN_IN_METHOD="phone";class Mt extends je{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return Me(e,this._buildIdpRequest())}_linkToIdToken(e,t){return Me(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return Me(e,this._buildIdpRequest())}_buildIdpRequest(e){const t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}function Ft(e){return nt(e.auth,new Mt(e),e.bypassAuthState)}function Ut(e){const{auth:t,user:n}=e;return b(n,t,"internal-error"),tt(n,new Mt(e),e.bypassAuthState)}async function Vt(e){const{auth:t,user:n}=e;return b(n,t,"internal-error"),et(n,new Mt(e),e.bypassAuthState)}class Bt{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this.auth=e,this.resolver=n,this.user=r,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise((async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(n){this.reject(n)}}))}async onAuthEvent(e){const{urlResponse:t,sessionId:n,postBody:r,tenantId:i,error:s,type:a}=e;if(s)return void this.reject(s);const o={auth:this.auth,requestUri:t,sessionId:n,tenantId:i||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(o))}catch(l){this.reject(l)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return Ft;case"linkViaPopup":case"linkViaRedirect":return Vt;case"reauthViaPopup":case"reauthViaRedirect":return Ut;default:f(this.auth,"internal-error")}}resolve(e){x(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){x(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const zt=new k(2e3,1e4);async function $t(e,t,n){if((0,r.xZ)(e.app))return Promise.reject(p(e,"operation-not-supported-in-this-environment"));const i=we(e);y(e,t,$e);const s=Dt(i,n);return new Ht(i,"signInViaPopup",t,s).executeNotNull()}class Ht extends Bt{constructor(e,t,n,r,i){super(e,t,r,i),this.provider=n,this.authWindow=null,this.pollId=null,Ht.currentPopupAction&&Ht.currentPopupAction.cancel(),Ht.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return b(e,this.auth,"internal-error"),e}async onExecution(){x(1===this.filter.length,"Popup operations only handle one event");const e=bt();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch((e=>{this.reject(e)})),this.resolver._isIframeWebStorageSupported(this.auth,(e=>{e||this.reject(p(this.auth,"web-storage-unsupported"))})),this.pollUserCancellation()}get eventId(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}cancel(){this.reject(p(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Ht.currentPopupAction=null}pollUserCancellation(){const e=()=>{var t,n;(null===(n=null===(t=this.authWindow)||void 0===t?void 0:t.window)||void 0===n?void 0:n.closed)?this.pollId=window.setTimeout((()=>{this.pollId=null,this.reject(p(this.auth,"popup-closed-by-user"))}),8e3):this.pollId=window.setTimeout(e,zt.get())};e()}}Ht.currentPopupAction=null;const qt="pendingRedirect",Wt=new Map;class Kt extends Bt{constructor(e,t){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,arguments.length>2&&void 0!==arguments[2]&&arguments[2]),this.eventId=null}async execute(){let e=Wt.get(this.auth._key());if(!e){try{const t=await async function(e,t){const n=Xt(t),r=Qt(e);
2if(!await r._isAvailable())return!1;const i="true"===await r._get(n);return await r._remove(n),i}(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(t)}catch(t){e=()=>Promise.reject(t)}Wt.set(this.auth._key(),e)}return this.bypassAuthState||Wt.set(this.auth._key(),(()=>Promise.resolve(null))),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);if("unknown"!==e.type){if(e.eventId){const t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}else this.resolve(null)}async onExecution(){}cleanUp(){}}function Gt(e,t){Wt.set(e._key(),t)}function Qt(e){return te(e._redirectPersistence)}function Xt(e){return ie(qt,e.config.apiKey,e.name)}async function Yt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((0,r.xZ)(e.app))return Promise.reject(g(e));const i=we(e),s=Dt(i,t),a=new Kt(i,s,n),o=await a.execute();return o&&!n&&(delete o.user._redirectEventId,await i._persistUserIfCurrent(o.user),await i._setRedirectUser(null,t)),o}class Jt{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach((n=>{this.isEventForConsumer(e,n)&&(t=!0,this.sendToConsumer(e,n),this.saveEventToCache(e))})),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return en(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){var n;if(e.error&&!en(e)){const r=(null===(n=e.error.code)||void 0===n?void 0:n.split("auth/")[1])||"internal-error";t.onError(p(this.auth,r))}else t.onAuthEvent(e)}isEventForConsumer(e,t){const n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(Zt(e))}saveEventToCache(e){this.cachedEventUids.add(Zt(e)),this.lastProcessedEventTime=Date.now()}}function Zt(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter((e=>e)).join("-")}function en(e){let{type:t,error:n}=e;return"unknown"===t&&"auth/no-auth-event"===(null===n||void 0===n?void 0:n.code)}const tn=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,nn=/^https?/;async function rn(e){if(e.config.emulator)return;const{authorizedDomains:t}=await async function(e){return j(e,"GET","/v1/projects",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}(e);for(const r of t)try{if(sn(r))return}catch(n){}f(e,"unauthorized-domain")}function sn(e){const t=_(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const i=new URL(e);return""===i.hostname&&""===r?"chrome-extension:"===n&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===n&&i.hostname===r}if(!nn.test(n))return!1;if(tn.test(e))return r===e;const i=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(r)}const an=new k(3e4,6e4);function on(){const e=xt().___jsl;if(null===e||void 0===e?void 0:e.H)for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let n=0;n<e.CP.length;n++)e.CP[n]=null}function ln(e){return new Promise(((t,n)=>{var r,i,s;function a(){on(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{on(),n(p(e,"network-request-failed"))},timeout:an.get()})}if(null===(i=null===(r=xt().gapi)||void 0===r?void 0:r.iframes)||void 0===i?void 0:i.Iframe)t(gapi.iframes.getContext());else{if(!(null===(s=xt().gapi)||void 0===s?void 0:s.load)){const t=Ee("iframefcb");return xt()[t]=()=>{gapi.load?a():n(p(e,"network-request-failed"))},Se(`${_e.gapiScript}?onload=${t}`).catch((e=>n(e)))}a()}})).catch((e=>{throw cn=null,e}))}let cn=null;const un=new k(5e3,15e3),dn="__/auth/iframe",hn="emulator/auth/iframe",fn={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},pn=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function mn(e){const t=e.config;b(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?C(t,hn):`https://${e.config.authDomain}/${dn}
2`,s={apiKey:t.apiKey,appName:e.name,v:r.MF},a=pn.get(e.config.apiHost);a&&(s.eid=a);const o=e._getFrameworks();return o.length&&(s.fw=o.join(",")),`${n}?${(0,i.Am)(s).slice(1)}`}async function gn(e){const t=await function(e){return cn=cn||ln(e),cn}(e),n=xt().gapi;return b(n,e,"internal-error"),t.open({where:document.body,url:mn(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:fn,dontclear:!0},(t=>new Promise((async(n,r)=>{await t.restyle({setHideOnLeave:!1});const i=p(e,"network-request-failed"),s=xt().setTimeout((()=>{r(i)}),un.get());function a(){xt().clearTimeout(s),n(t)}t.ping(a).then(a,(()=>{r(i)}))}))))}const yn={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class vn{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}function bn(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:600;const a=Math.max((window.screen.availHeight-s)/2,0).toString(),o=Math.max((window.screen.availWidth-r)/2,0).toString();let l="";const c=Object.assign(Object.assign({},yn),{width:r.toString(),height:s.toString(),top:a,left:o}),u=(0,i.ZQ)().toLowerCase();n&&(l=ce(u)?"_blank":n),oe(u)&&(t=t||"http://localhost",c.scrollbars="yes");const d=Object.entries(c).reduce(((e,t)=>{let[n,r]=t;return`${e}${n}=${r},`}),"");if(function(){var e;return pe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.ZQ)())&&!!(null===(e=window.navigator)||void 0===e?void 0:e.standalone)}(u)&&"_self"!==l)return function(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}(t||"",l),new vn(null);const h=window.open(t||"",l,d);b(h,e,"popup-blocked");try{h.focus()}catch(f){}return new vn(h)}const wn="__/auth/handler",xn="emulator/auth/handler",_n=encodeURIComponent("fac");async function Sn(e,t,n,s,a,o){b(e.config.authDomain,e,"auth-domain-config-required"),b(e.config.apiKey,e,"invalid-api-key");const l={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:s,v:r.MF,eventId:a};if(t instanceof $e){t.setDefaultLanguage(e.languageCode),l.providerId=t.providerId||"",(0,i.Im)(t.getCustomParameters())||(l.customParameters=JSON.stringify(t.getCustomParameters()));for(const[e,t]of Object.entries(o||{}))l[e]=t}if(t instanceof He){const e=t.getScopes().filter((e=>""!==e));e.length>0&&(l.scopes=e.join(","))}e.tenantId&&(l.tid=e.tenantId);const c=l;for(const r of Object.keys(c))void 0===c[r]&&delete c[r];const u=await e._getAppCheckToken(),d=u?`#${_n}=${encodeURIComponent(u)}`:"";return`${function(e){let{config:t}=e;if(!t.emulator)return`https://${t.authDomain}/${wn}`;return C(t,xn)}(e)}?${(0,i.Am)(c).slice(1)}${d}`}const En="webStorageSupport";const kn=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=yt,this._completeRedirectFn=Yt,this._overrideRedirectResult=Gt}async _openPopup(e,t,n,r){var i;x(null===(i=this.eventManagers[e._key()])||void 0===i?void 0:i.manager,"_initialize() not called before _openPopup()");return bn(e,await Sn(e,t,n,_(),r),bt())}async _openRedirect(e,t,n,r){await this._originValidation(e);return function(e){xt().location.href=e}(await Sn(e,t,n,_(),r)),new Promise((()=>{}))}_initialize(e){const t=e._key();if(this.eventManagers[t]){const{manager:e,promise:n}=this.eventManagers[t];return e?Promise.resolve(e):(x(n,"If manager is not set, promise should be"),n)}const n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch((()=>{delete this.eventManagers[t]})),n}async initAndGetManager(e){const t=await gn(e),n=new Jt(e);return t.register("authEvent",(t=>{b(null===t||void 0===t?void 0:t.authEvent,e,"invalid-auth-event");return{status:n.onEvent(t.authEvent)?"ACK":"ERROR"}}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=t,n}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(En,{type:En},(n=>{var r;const i=null===(r=null===n||void 0===n?void 0:n[0])||void 0===r?void 0:r[En];void 0!==i&&t(!!i),f(e,"internal-error")}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=rn(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return me()||le()||pe()}};var Cn="@firebase/auth",An="1.7.6";class Tn{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}async getToken(e){if(this.assertAuthConfigured(),await this.auth._initializationPromise,!this.auth.currentUser)return null;return{accessToken:await this.auth.currentUser.getIdToken(e)}}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const t=this.auth.onIdTokenChanged((t=>{e((null===t||void 0===t?void 0:t.stsTokenManager.accessToken)||null)}));this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){b(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const In=(0,i.XA)("authIdTokenMaxAge")||300;let Pn=null;const jn=e=>async t=>{const n=t&&await t.getIdTokenResult(),r=n&&((new Date).getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>In)return;const i=null===n||void 0===n?void 0:n.token;Pn!==i&&(Pn=i,await fetch(e,{method:i?"POST":"DELETE",headers:i?{Authorization:`Bearer ${i}`}:{}}))};function Nn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.Sx)();const t=(0,r.j6)(e,"auth");if(t.isInitialized())return t.getImmediate();const n=function(e,t){const n=(0,r.j6)(e,"auth");if(n.isInitialized()){const e=n.getImmediate(),r=n.getOptions();if((0,i.bD)(r,null!==t&&void 0!==t?t:{}))return e;f(e,"already-initialized")}return n.initialize({options:t})}(e,{popupRedirectResolver:kn,persistence:[Nt,mt,yt]}),s=(0,i.XA)("authTokenSyncURL");if(s&&"boolean"===typeof isSecureContext&&isSecureContext){const e=new URL(s,location.origin);if(location.origin===e.origin){const t=jn(e.toString());!function(e,t,n){(0,i.Ku)(e).beforeAuthStateChanged(t,n)}(n,t,(()=>t(n.currentUser))),function(e,t,n,r){(0,i.Ku)(e).onIdTokenChanged(t,n,r)}(n,(e=>t(e)))}}const a=(0,i.Tj)("auth");return a&&Te(n,`http://${a}`),n}var On;_e={loadJS:e=>
2new Promise(((t,n)=>{const r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=e=>{const t=p("internal-error");t.customData=e,n(t)},r.type="text/javascript",r.charset="UTF-8",function(){var e,t;return null!==(t=null===(e=document.getElementsByTagName("head"))||void 0===e?void 0:e[0])&&void 0!==t?t:document}().appendChild(r)})),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="},On="Browser",(0,r.om)(new o.uA("auth",((e,t)=>{let{options:n}=t;const r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),s=e.getProvider("app-check-internal"),{apiKey:a,authDomain:o}=r.options;b(a&&!a.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:a,authDomain:o,clientPlatform:On,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:ge(On)},c=new be(r,i,s,l);return function(e,t){const n=(null===t||void 0===t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(te);(null===t||void 0===t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,null===t||void 0===t?void 0:t.popupRedirectResolver)}(c,n),c}),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback(((e,t,n)=>{e.getProvider("auth-internal").initialize()}))),(0,r.om)(new o.uA("auth-internal",(e=>(e=>new Tn(e))(we(e.getProvider("auth").getImmediate()))),"PRIVATE").setInstantiationMode("EXPLICIT")),(0,r.KO)(Cn,An,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(On)),(0,r.KO)(Cn,An,"esm2017")},15821:(e,t,n)=>{"use strict";n.d(t,{gS:()=>To,rJ:()=>Ra,H9:()=>La,x7:()=>So,GG:()=>ko,aU:()=>Fa,BN:()=>Co,mZ:()=>Ao});var r,i,s=n(39160),a=n(83598),o=n(71549),l=n(13540),c="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},u={};(function(){var e;function t(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}function n(e,t,n){n||(n=0);var r=Array(16);if("string"===typeof t)for(var i=0;16>i;++i)r[i]=t.charCodeAt(n++)|t.charCodeAt(n++)<<8|t.charCodeAt(n++)<<16|t.charCodeAt(n++)<<24;else for(i=0;16>i;++i)r[i]=t[n++]|t[n++]<<8|t[n++]<<16|t[n++]<<24;t=e.g[0],n=e.g[1],i=e.g[2];var s=e.g[3],a=t+(s^n&(i^s))+r[0]+3614090360&4294967295;a=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=n+(a<<7&4294967295|a>>>25))+((a=s+(i^t&(n^i))+r[1]+3905402710&4294967295)<<12&4294967295|a>>>20))+((a=i+(n^s&(t^n))+r[2]+606105819&4294967295)<<17&4294967295|a>>>15))+((a=n+(t^i&(s^t))+r[3]+3250441966&4294967295)<<22&4294967295|a>>>10))+((a=t+(s^n&(i^s))+r[4]+4118548399&4294967295)<<7&4294967295|a>>>25))+((a=s+(i^t&(n^i))+r[5]+1200080426&4294967295)<<12&4294967295|a>>>20))+((a=i+(n^s&(t^n))+r[6]+2821735955&4294967295)<<17&4294967295|a>>>15))+((a=n+(t^i&(s^t))+r[7]+4249261313&4294967295)<<22&4294967295|a>>>10))+((a=t+(s^n&(i^s))+r[8]+1770035416&4294967295)<<7&4294967295|a>>>25))+((a=s+(i^t&(n^i))+r[9]+2336552879&4294967295)<<12&4294967295|a>>>20))+((a=i+(n^s&(t^n))+r[10]+4294925233&4294967295)<<17&4294967295|a>>>15))+((a=n+(t^i&(s^t))+r[11]+2304563134&4294967295)<<22&4294967295|a>>>10))+((a=t+(s^n&(i^s))+r[12]+1804603682&4294967295)<<7&4294967295|a>>>25))+((a=s+(i^t&(n^i))+r[13]+4254626195&4294967295)<<12&4294967295|a>>>20))+((a=i+(n^s&(t^n))+r[14]+2792965006&4294967295)<<17&4294967295|a>>>15))+((a=n+(t^i&(s^t))+r[15]+1236535329&4294967295)<<22&4294967295|a>>>10))+((a=t+(i^s&(n^i))+r[1]+4129170786&4294967295)<<5&4294967295|a>>>27))+((a=s+(n^i&(t^n))+r[6]+3225465664&4294967295)<<9&4294967295|a>>>23))+((a=i+(t^n&(s^t))+r[11]+643717713&4294967295)<<14&4294967295|a>>>18))+((a=n+(s^t&(i^s))+r[0]+3921069994&4294967295)<<20&4294967295|a>>>12))+((a=t+(i^s&(n^i))+r[5]+3593408605&4294967295)<<5&4294967295|a>>>27))+((a=s+(n^i&(t^n))+r[10]+38016083&4294967295)<<9&4294967295|a>>>23))+((a=i+(t^n&(s^t))+r[15]+3634488961&4294967295)<<14&4294967295|a>>>18))+((a=n+(s^t&(i^s))+r[4]+3889429448&4294967295)<<20&4294967295|a>>>12))+((a=t+(i^s&(n^i))+r[9]+568446438&4294967295)<<5&4294967295|a>>>27))+((a=s+(n^i&(t^n))+r[14]+3275163606&4294967295)<<9&4294967295|a>>>23))+((a=i+(t^n&(s^t))+r[3]+4107603335&4294967295)<<14&4294967295|a>>>18))+((a=n+(s^t&(i^s))+r[8]+1163531501&4294967295)<<20&4294967295|a>>>12))+((a=t+(i^s&(n^i))+r[13]+2850285829&4294967295)<<5&4294967295|a>>>27))+((a=s+(n^i&(t^n))+r[2]+4243563512&4294967295)<<9&4294967295|a>>>23))+((a=i+(t^n&(s^t))+r[7]+1735328473&4294967295)<<14&4294967295|a>>>18))+((a=n+(s^t&(i^s))+r[12]+2368359562&4294967295)<<20&4294967295|a>>>12))+((a=t+(n^i^s)+r[5]+4294588738&4294967295)<<4&4294967295|a>>>28))+((a=s+(t^n^i)+r[8]+2272392833&4294967295)<<11&4294967295|a>>>21))+((a=i+(s^t^n)+r[11]+1839030562&4294967295)<<16&4294967295|a>>>16))+((a=n+(i^s^t)+r[14]+4259657740&4294967295)<<23&4294967295|a>>>9))+((a=t+(n^i^s)+r[1]+2763975236&4294967295)<<4&4294967295|a>>>28))+((a=s+(t^n^i)+r[4]+1272893353&4294967295)<<11&4294967295|a>>>21))+((a=i+(s^t^n)+r[7]+4139469664&4294967295)<<16&4294967295|a>>>16))+((a=n+(i^s^t)+r[10]+3200236656&4294967295)<<23&4294967295|a>>>9))+((a=t+(n^i^s)+r[13]+681279174&4294967295)<<4&4294967295|a>>>28))+((a=s+(t^n^i)+r[0]+3936430074&4294967295)<<11&4294967295|a>>>21))+((a=i+(s^t^n)+r[3]+3572445317&4294967295)<<16&4294967295|a>>>16))+((a=n+(i^s^t)+r[6]+76029189&4294967295)<<23&4294967295|a>>>9))+((a=t+(n^i^s)+r[9]+3654602809&4294967295)<<4&4294967295|a>>>28))+((a=s+(t^n^i)+r[12]+3873151461&4294967295)<<11&4294967295|a>>>21))+((a=i+(s^t^n)+r[15]+530742520&4294967295)<<16&4294967295|a>>>16))+((a=n+(i^s^t)+r[2]+3299628645&4294967295)<<23&4294967295|a>>>9))+((a=t+(i^(n|~s))+r[0]+4096336452&4294967295)<<6&4294967295|a>>>26))+((a=s+(n^(t|~i))+r[7]+1126891415&4294967295)<<10&4294967295|a>>>22))+((a=i+(t^(s|~n))+r[14]+2878612391&4294967295)<<15&4294967295|a>>>17))+((a=n+(s^(i|~t))+r[5]+4237533241&4294967295)<<21&4294967295|a>>>11))+((a=t+(i^(n|~s))+r[12]+1700485571&4294967295)<<6&4294967295|a>>>26))+((a=s+(n^(t|~i))+r[3]+2399980690&4294967295)<<10&4294967295|a>>>22))+((a=i+(t^(s|~n))+r[10]+4293915773&4294967295)<<15&4294967295|a>>>17))+((a=n+(s^(i|~t))+r[1]+2240044497&4294967295)<<21&4294967295|a>>>11))+((a=t+(i^(n|~s))+r[8]+1873313359&4294967295)<<6&4294967295|a>>>26))+((a=s+(n^(t|~i))+r[15]+4264355552&4294967295)<<10&4294967295|a>>>22))+((a=i+(t^(s|~n))+r[6]+2734768916&4294967295)<<15&4294967295|a>>>17))+((a=n+(s^(i|~t))+r[13]+1309151649&4294967295)<<21&4294967295|a>>>
211))+((s=(t=n+((a=t+(i^(n|~s))+r[4]+4149444226&4294967295)<<6&4294967295|a>>>26))+((a=s+(n^(t|~i))+r[11]+3174756917&4294967295)<<10&4294967295|a>>>22))^((i=s+((a=i+(t^(s|~n))+r[2]+718787259&4294967295)<<15&4294967295|a>>>17))|~t))+r[9]+3951481745&4294967295,e.g[0]=e.g[0]+t&4294967295,e.g[1]=e.g[1]+(i+(a<<21&4294967295|a>>>11))&4294967295,e.g[2]=e.g[2]+i&4294967295,e.g[3]=e.g[3]+s&4294967295}function s(e,t){this.h=t;for(var n=[],r=!0,i=e.length-1;0<=i;i--){var s=0|e[i];r&&s==t||(n[i]=s,r=!1)}this.g=n}!function(e,t){function n(){}n.prototype=t.prototype,e.D=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.C=function(e,n,r){for(var i=Array(arguments.length-2),s=2;s<arguments.length;s++)i[s-2]=arguments[s];return t.prototype[n].apply(e,i)}}(t,(function(){this.blockSize=-1})),t.prototype.s=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0},t.prototype.u=function(e,t){void 0===t&&(t=e.length);for(var r=t-this.blockSize,i=this.B,s=this.h,a=0;a<t;){if(0==s)for(;a<=r;)n(this,e,a),a+=this.blockSize;if("string"===typeof e){for(;a<t;)if(i[s++]=e.charCodeAt(a++),s==this.blockSize){n(this,i),s=0;break}}else for(;a<t;)if(i[s++]=e[a++],s==this.blockSize){n(this,i),s=0;break}}this.h=s,this.o+=t},t.prototype.v=function(){var e=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);e[0]=128;for(var t=1;t<e.length-8;++t)e[t]=0;var n=8*this.o;for(t=e.length-8;t<e.length;++t)e[t]=255&n,n/=256;for(this.u(e),e=Array(16),t=n=0;4>t;++t)for(var r=0;32>r;r+=8)e[n++]=this.g[t]>>>r&255;return e};var a={};function o(e){return-128<=e&&128>e?function(e,t){var n=a;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,(function(e){return new s([0|e],0>e?-1:0)})):new s([0|e],0>e?-1:0)}function l(e){if(isNaN(e)||!isFinite(e))return c;if(0>e)return m(l(-e));for(var t=[],n=1,r=0;e>=n;r++)t[r]=e/n|0,n*=4294967296;return new s(t,0)}var c=o(0),d=o(1),h=o(16777216);function f(e){if(0!=e.h)return!1;for(var t=0;t<e.g.length;t++)if(0!=e.g[t])return!1;return!0}function p(e){return-1==e.h}function m(e){for(var t=e.g.length,n=[],r=0;r<t;r++)n[r]=~e.g[r];return new s(n,~e.h).add(d)}function g(e,t){return e.add(m(t))}function y(e,t){for(;(65535&e[t])!=e[t];)e[t+1]+=e[t]>>>16,e[t]&=65535,t++}function v(e,t){this.g=e,this.h=t}function b(e,t){if(f(t))throw Error("division by zero");if(f(e))return new v(c,c);if(p(e))return t=b(m(e),t),new v(m(t.g),m(t.h));if(p(t))return t=b(e,m(t)),new v(m(t.g),t.h);if(30<e.g.length){if(p(e)||p(t))throw Error("slowDivide_ only works with positive integers.");for(var n=d,r=t;0>=r.l(e);)n=w(n),r=w(r);var i=x(n,1),s=x(r,1);for(r=x(r,2),n=x(n,2);!f(r);){var a=s.add(r);0>=a.l(e)&&(i=i.add(n),s=a),r=x(r,1),n=x(n,1)}return t=g(e,i.j(t)),new v(i,t)}for(i=c;0<=e.l(t);){for(n=Math.max(1,Math.floor(e.m()/t.m())),r=48>=(r=Math.ceil(Math.log(n)/Math.LN2))?1:Math.pow(2,r-48),a=(s=l(n)).j(t);p(a)||0<a.l(e);)a=(s=l(n-=r)).j(t);f(s)&&(s=d),i=i.add(s),e=g(e,a)}return new v(i,e)}function w(e){for(var t=e.g.length+1,n=[],r=0;r<t;r++)n[r]=e.i(r)<<1|e.i(r-1)>>>31;return new s(n,e.h)}function x(e,t){var n=t>>5;t%=32;for(var r=e.g.length-n,i=[],a=0;a<r;a++)i[a]=0<t?e.i(a+n)>>>t|e.i(a+n+1)<<32-t:e.i(a+n);return new s(i,e.h)}(e=s.prototype).m=function(){if(p(this))return-m(this).m();for(var e=0,t=1,n=0;n<this.g.length;n++){var r=this.i(n);e+=(0<=r?r:4294967296+r)*t,t*=4294967296}return e},e.toString=function(e){if(2>(e=e||10)||36<e)throw Error("radix out of range: "+e);if(f(this))return"0";if(p(this))return"-"+m(this).toString(e);for(var t=l(Math.pow(e,6)),n=this,r="";;){var i=b(n,t).g,s=((0<(n=g(n,i.j(t))).g.length?n.g[0]:n.h)>>>0).toString(e);if(f(n=i))return s+r;for(;6>s.length;)s="0"+s;r=s+r}},e.i=function(e){return 0>e?0:e<this.g.length?this.g[e]:this.h},e.l=function(e){return p(e=g(this,e))?-1:f(e)?0:1},e.abs=function(){return p(this)?m(this):this},e.add=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0,i=0;i<=t;i++){var a=r+(65535&this.i(i))+(65535&e.i(i)),o=(a>>>16)+(this.i(i)>>>16)+(e.i(i)>>>16);r=o>>>16,a&=65535,o&=65535,n[i]=o<<16|a}return new s(n,-2147483648&n[n.length-1]?-1:0)},e.j=function(e){if(f(this)||f(e))return c;if(p(this))return p(e)?m(this).j(m(e)):m(m(this).j(e));if(p(e))return m(this.j(m(e)));if(0>this.l(h)&&0>e.l(h))return l(this.m()*e.m());for(var t=this.g.length+e.g.length,n=[],r=0;r<2*t;r++)n[r]=0;for(r=0;r<this.g.length;r++)for(var i=0;i<e.g.length;i++){var a=this.i(r)>>>16,o=65535&this.i(r),u=e.i(i)>>>16,d=65535&e.i(i);n[2*r+2*i]+=o*d,y(n,2*r+2*i),n[2*r+2*i+1]+=a*d,y(n,2*r+2*i+1),n[2*r+2*i+1]+=o*u,y(n,2*r+2*i+1),n[2*r+2*i+2]+=a*u,y(n,2*r+2*i+2)}for(r=0;r<t;r++)n[r]=n[2*r+1]<<16|n[2*r];for(r=t;r<2*t;r++)n[r]=0;return new s(n,0)},e.A=function(e){return b(this,e).h},e.and=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.i(r)&e.i(r);return new s(n,this.h&e.h)},e.or=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.i(r)|e.i(r);return new s(n,this.h|e.h)},e.xor=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.i(r)^e.i(r);return new s(n,this.h^e.h)},t.prototype.digest=t.prototype.v,t.prototype.reset=t.prototype.s,t.prototype.update=t.prototype.u,i=u.Md5=t,s.prototype.add=s.prototype.add,s.prototype.multiply=s.prototype.j,s.prototype.modulo=s.prototype.A,s.prototype.compare=s.prototype.l,s.prototype.toNumber=s.prototype.m,s.prototype.toString=s.prototype.toString,s.prototype.getBits=s.prototype.i,s.fromNumber=l,s.fromString=function e(t,n){if(0==t.length)throw Error("number format error: empty string");if(2>(n=n||10)||36<n)throw Error("radix out of range: "+n);
2if("-"==t.charAt(0))return m(e(t.substring(1),n));if(0<=t.indexOf("-"))throw Error('number format error: interior "-" character');for(var r=l(Math.pow(n,8)),i=c,s=0;s<t.length;s+=8){var a=Math.min(8,t.length-s),o=parseInt(t.substring(s,s+a),n);8>a?(a=l(Math.pow(n,a)),i=i.j(a).add(l(o))):i=(i=i.j(r)).add(l(o))}return i},r=u.Integer=s}).apply("undefined"!==typeof c?c:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{});var d,h,f,p,m,g,y,v,b,w="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},x={};(function(){var e,t="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e};var n=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof w&&w];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}(this);!function(e,r){if(r)e:{var i=n;e=e.split(".");for(var s=0;s<e.length-1;s++){var a=e[s];if(!(a in i))break e;i=i[a]}(r=r(s=i[e=e[e.length-1]]))!=s&&null!=r&&t(i,e,{configurable:!0,writable:!0,value:r})}}("Array.prototype.values",(function(e){return e||function(){return function(e,t){e instanceof String&&(e+="");var n=0,r=!1,i={next:function(){if(!r&&n<e.length){var i=n++;return{value:t(i,e[i]),done:!1}}return r=!0,{done:!0,value:void 0}}};return i[Symbol.iterator]=function(){return i},i}(this,(function(e,t){return t}))}}));var r=r||{},i=this||self;function s(e){var t=typeof e;return"array"==(t="object"!=t?t:e?Array.isArray(e)?"array":t:"null")||"object"==t&&"number"==typeof e.length}function a(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function o(e,t,n){return e.call.apply(e.bind,arguments)}function l(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function c(e,t,n){return(c=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?o:l).apply(null,arguments)}function u(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function _(e,t){function n(){}n.prototype=t.prototype,e.aa=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.Qb=function(e,n,r){for(var i=Array(arguments.length-2),s=2;s<arguments.length;s++)i[s-2]=arguments[s];return t.prototype[n].apply(e,i)}}function S(e){const t=e.length;if(0<t){const n=Array(t);for(let r=0;r<t;r++)n[r]=e[r];return n}return[]}function k(e,t){for(let n=1;n<arguments.length;n++){const t=arguments[n];if(s(t)){const n=e.length||0,r=t.length||0;e.length=n+r;for(let i=0;i<r;i++)e[n+i]=t[i]}else e.push(t)}}function C(e){return/^[\s\xa0]*$/.test(e)}function A(){var e=i.navigator;return e&&(e=e.userAgent)?e:""}function T(e){return T[" "](e),e}T[" "]=function(){};var I=-1!=A().indexOf("Gecko")&&!(-1!=A().toLowerCase().indexOf("webkit")&&-1==A().indexOf("Edge"))&&!(-1!=A().indexOf("Trident")||-1!=A().indexOf("MSIE"))&&-1==A().indexOf("Edge");function P(e,t,n){for(const r in e)t.call(n,e[r],r,e)}function j(e){const t={};for(const n in e)t[n]=e[n];return t}const N="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function O(e,t){let n,r;for(let i=1;i<arguments.length;i++){for(n in r=arguments[i],r)e[n]=r[n];for(let t=0;t<N.length;t++)n=N[t],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function R(e){var t=1;e=e.split(":");const n=[];for(;0<t&&e.length;)n.push(e.shift()),t--;return e.length&&n.push(e.join(":")),n}function L(e){i.setTimeout((()=>{throw e}),0)}function D(){var e=B;let t=null;return e.g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),t}var M=new class{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}((()=>new F),(e=>e.reset()));class F{constructor(){this.next=this.g=this.h=null}set(e,t){this.h=e,this.g=t,this.next=null}reset(){this.next=this.g=this.h=null}}let U,V=!1,B=new class{constructor(){this.h=this.g=null}add(e,t){const n=M.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n}},z=()=>{const e=i.Promise.resolve(void 0);U=()=>{e.then($)}};var $=()=>{for(var e;e=D();){try{e.h.call(e.g)}catch(n){L(n)}var t=M;t.j(e),100>t.h&&(t.h++,e.next=t.g,t.g=e)}V=!1};function H(){this.s=this.s,this.C=this.C}function q(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}H.prototype.s=!1,H.prototype.ma=function(){this.s||(this.s=!0,this.N())},H.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},q.prototype.h=function(){this.defaultPrevented=!0};var W=function(){if(!i.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{const e=()=>{};i.addEventListener("test",e,t),i.removeEventListener("test",e,t)}catch(n){}return e}();function K(e,t){if(q.call(this,e?e.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.g=t,t=e.relatedTarget){if(I
vendor: 5,548 bytes, line 2
2){e:{try{T(t.nodeName);var i=!0;break e}catch(s){}i=!1}i||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"===typeof e.pointerType?e.pointerType:G[e.pointerType]||"",this.state=e.state,this.i=e,e.defaultPrevented&&K.aa.h.call(this)}}_(K,q);var G={2:"touch",3:"pen",4:"mouse"};K.prototype.h=function(){K.aa.h.call(this);var e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var Q="closure_listenable_"+(1e6*Math.random()|0),X=0;function Y(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.ha=i,this.key=++X,this.da=this.fa=!1}function J(e){e.da=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function Z(e){this.src=e,this.g={},this.h=0}function ee(e,t){var n=t.type;if(n in e.g){var r,i=e.g[n],s=Array.prototype.indexOf.call(i,t,void 0);(r=0<=s)&&Array.prototype.splice.call(i,s,1),r&&(J(t),0==e.g[n].length&&(delete e.g[n],e.h--))}}function te(e,t,n,r){for(var i=0;i<e.length;++i){var s=e[i];if(!s.da&&s.listener==t&&s.capture==!!n&&s.ha==r)return i}return-1}Z.prototype.add=function(e,t,n,r,i){var s=e.toString();(e=this.g[s])||(e=this.g[s]=[],this.h++);var a=te(e,t,r,i);return-1<a?(t=e[a],n||(t.fa=!1)):((t=new Y(t,this.src,s,!!r,i)).fa=n,e.push(t)),t};var ne="closure_lm_"+(1e6*Math.random()|0),re={};function ie(e,t,n,r,i){if(r&&r.once)return ae(e,t,n,r,i);if(Array.isArray(t)){for(var s=0;s<t.length;s++)ie(e,t[s],n,r,i);return null}return n=fe(n),e&&e[Q]?e.K(t,n,a(r)?!!r.capture:!!r,i):se(e,t,n,!1,r,i)}function se(e,t,n,r,i,s){if(!t)throw Error("Invalid event type");var o=a(i)?!!i.capture:!!i,l=de(e);if(l||(e[ne]=l=new Z(e)),(n=l.add(t,n,r,o,s)).proxy)return n;if(r=function(){function e(n){return t.call(e.src,e.listener,n)}const t=ue;return e}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)W||(i=o),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(ce(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return n}function ae(e,t,n,r,i){if(Array.isArray(t)){for(var s=0;s<t.length;s++)ae(e,t[s],n,r,i);return null}return n=fe(n),e&&e[Q]?e.L(t,n,a(r)?!!r.capture:!!r,i):se(e,t,n,!0,r,i)}function oe(e,t,n,r,i){if(Array.isArray(t))for(var s=0;s<t.length;s++)oe(e,t[s],n,r,i);else r=a(r)?!!r.capture:!!r,n=fe(n),e&&e[Q]?(e=e.i,(t=String(t).toString())in e.g&&(-1<(n=te(s=e.g[t],n,r,i))&&(J(s[n]),Array.prototype.splice.call(s,n,1),0==s.length&&(delete e.g[t],e.h--)))):e&&(e=de(e))&&(t=e.g[t.toString()],e=-1,t&&(e=te(t,n,r,i)),(n=-1<e?t[e]:null)&&le(n))}function le(e){if("number"!==typeof e&&e&&!e.da){var t=e.src;if(t&&t[Q])ee(t.i,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(ce(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=de(t))?(ee(n,e),0==n.h&&(n.src=null,t[ne]=null)):J(e)}}}function ce(e){return e in re?re[e]:re[e]="on"+e}function ue(e,t){if(e.da)e=!0;else{t=new K(t,this);var n=e.listener,r=e.ha||e.src;e.fa&&le(e),e=n.call(r,t)}return e}function de(e){return(e=e[ne])instanceof Z?e:null}var he="__closure_events_fn_"+(1e9*Math.random()>>>0);function fe(e){return"function"===typeof e?e:(e[he]||(e[he]=function(t){return e.handleEvent(t)}),e[he])}function pe(){H.call(this),this.i=new Z(this),this.M=this,this.F=null}function me(e,t){var n,r=e.F;if(r)for(n=[];r;r=r.F)n.push(r);if(e=e.M,r=t.type||t,"string"===typeof t)t=new q(t,e);else if(t instanceof q)t.target=t.target||e;else{var i=t;O(t=new q(r,e),i)}if(i=!0,n)for(var s=n.length-1;0<=s;s--){var a=t.g=n[s];i=ge(a,r,!0,t)&&i}if(i=ge(a=t.g=e,r,!0,t)&&i,i=ge(a,r,!1,t)&&i,n)for(s=0;s<n.length;s++)i=ge(a=t.g=n[s],r,!1,t)&&i}function ge(e,t,n,r){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();for(var i=!0,s=0;s<t.length;++s){var a=t[s];if(a&&!a.da&&a.capture==n){var o=a.listener,l=a.ha||a.src;a.fa&&ee(e.i,a),i=!1!==o.call(l,r)&&i}}return i&&!r.defaultPrevented}function ye(e,t,n){if("function"===typeof e)n&&(e=c(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=c(e.handleEvent,e)}return 2147483647<Number(t)?-1:i.setTimeout(e,t||0)}function ve(e){e.g=ye((()=>{e.g=null,e.i&&(e.i=!1,ve(e))}),e.l);const t=e.h;e.h=null,e.m.apply(null,t)}_(pe,H),pe.prototype[Q]=!0,pe.prototype.removeEventListener=function(e,t,n,r){oe(this,e,t,n,r)},pe.prototype.N=function(){if(pe.aa.N.call(this),this.i){var e,t=this.i;for(e in t.g){for(var n=t.g[e],r=0;r<n.length;r++)J(n[r]);delete t.g[e],t.h--}}this.F=null},pe.prototype.K=function(e,t,n,r){return this.i.add(String(e),t,!1,n,r)},pe.prototype.L=function(e,t,n,r){return this.i.add(String(e),t,!0,n,r)};class be extends H{constructor(e,t){super(),this.m=e,this.l=t,this.h=null,this.i=!1,this.g=null}j(e){this.h=arguments,this.g?this.i=!0:ve(this)}N(){super.N(),this.g&&(i.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function we(e){H.call(this),this.h=e,this.g={}}_(we,H);var xe=[];function _e(e){P(e.g,(function(e,t){this.g.hasOwnProperty(t)&&le(e)}
2),e),e.g={}}we.prototype.N=function(){we.aa.N.call(this),_e(this)},we.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Se=i.JSON.stringify,Ee=i.JSON.parse,ke=class{stringify(e){return i.JSON.stringify(e,void 0)}parse(e){return i.JSON.parse(e,void 0)}};function Ce(){}function Ae(e){return e.h||(e.h=e.i())}function Te(){}Ce.prototype.h=null;var Ie={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function Pe(){q.call(this,"d")}function je(){q.call(this,"c")}_(Pe,q),_(je,q);var Ne={},Oe=null;function Re(){return Oe=Oe||new pe}function Le(e){q.call(this,Ne.La,e)}function De(e){const t=Re();me(t,new Le(t))}function Me(e,t){q.call(this,Ne.STAT_EVENT,e),this.stat=t}function Fe(e){const t=Re();me(t,new Me(t,e))}function Ue(e,t){q.call(this,Ne.Ma,e),this.size=t}function Ve(e,t){if("function"!==typeof e)throw Error("Fn must not be null and must be a function");return i.setTimeout((function(){e()}),t)}function Be(){this.g=!0}function ze(e,t,n,r){e.info((function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.g)return t;if(!t)return null;try{var n=JSON.parse(t);if(n)for(e=0;e<n.length;e++)if(Array.isArray(n[e])){var r=n[e];if(!(2>r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var s=i[0];if("noop"!=s&&"stop"!=s&&"close"!=s)for(var a=1;a<i.length;a++)i[a]=""}}}return Se(n)}catch(o){return t}}(e,n)+(r?" "+r:"")}))}Ne.La="serverreachability",_(Le,q),Ne.STAT_EVENT="statevent",_(Me,q),Ne.Ma="timingevent",_(Ue,q),Be.prototype.xa=function(){this.g=!1},Be.prototype.info=function(){};var $e,He={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},qe={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"};function We(){}function Ke(e,t,n,r){this.j=e,this.i=t,this.l=n,this.R=r||1,this.U=new we(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new Ge}function Ge(){this.i=null,this.g="",this.h=!1}_(We,Ce),We.prototype.g=function(){return new XMLHttpRequest},We.prototype.i=function(){return{}},$e=new We;var Qe={},Xe={};function Ye(e,t,n){e.L=1,e.v=St(vt(t)),e.m=n,e.P=!0,Je(e,null)}function Je(e,t){e.F=Date.now(),tt(e),e.A=vt(e.v);var n=e.A,r=e.R;Array.isArray(r)||(r=[String(r)]),Mt(n.i,"t",r),e.C=0,n=e.j.J,e.h=new Ge,e.g=kn(e.j,n?t:null,!e.m),0<e.O&&(e.M=new be(c(e.Y,e,e.g),e.O)),t=e.U,n=e.g,r=e.ca;var i="readystatechange";Array.isArray(i)||(i&&(xe[0]=i.toString()),i=xe);for(var s=0;s<i.length;s++){var a=ie(n,i[s],r||t.handleEvent,!1,t.h||t);if(!a)break;t.g[a.key]=a}t=e.H?j(e.H):{},e.m?(e.u||(e.u="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.A,e.u,e.m,t)):(e.u="GET",e.g.ea(e.A,e.u,null,t)),De(),function(e,t,n,r,i,s){e.info((function(){if(e.g)if(s)for(var a="",o=s.split("&"),l=0;l<o.length;l++){var c=o[l].split("=");if(1<c.length){var u=c[0];c=c[1];var d=u.split("_");a=2<=d.length&&"type"==d[1]?a+(u+"=")+c+"&":a+(u+"=redacted&")}}else a=null;else a=s;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+t+"\n"+n+"\n"+a}))}(e.i,e.u,e.A,e.l,e.R,e.m)}function Ze(e){return!!e.g&&("GET"==e.u&&2!=e.L&&e.j.Ca)}function et(e,t){var n=e.C,r=t.indexOf("\n",n);return-1==r?Xe:(n=Number(t.substring(n,r)),isNaN(n)?Qe:(r+=1)+n>t.length?Xe:(t=t.slice(r,r+n),e.C=r+n,t))}function tt(e){e.S=Date.now()+e.I,nt(e,e.I)}function nt(e,t){if(null!=e.B)throw Error("WatchDog timer not null");e.B=Ve(c(e.ba,e),t)}function rt(e){e.B&&(i.clearTimeout(e.B),e.B=null)}function it(e){0==e.j.G||e.J||wn(e.j,e)}function st(e){rt(e);var t=e.M;t&&"function"==typeof t.ma&&t.ma(),e.M=null,_e(e.U),e.g&&(t=e.g,e.g=null,t.abort(),t.ma())}function at(e,t){try{var n=e.j;if(0!=n.G&&(n.g==e||dt(n.h,e)))if(!e.K&&dt(n.h,e)&&3==n.G){try{var r=n.Da.g.parse(t)}catch(u){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){e:if(!n.u){if(n.g){if(!(n.g.F+3e3<e.F))break e;bn(n),cn(n)}gn(n),Fe(18)}}else n.za=i[1],0<n.za-n.T&&37500>i[2]&&n.F&&0==n.v&&!n.C&&(n.C=Ve(c(n.Za,n),6e3));if(1>=ut(n.h)&&n.ca){try{n.ca()}catch(u){}n.ca=void 0}}else _n(n,11)}else if((e.K||n.g==e)&&bn(n),!C(t))for(i=n.Da.g.parse(t),t=0;t<i.length;t++){let c=i[t];if(n.T=c[0],c=c[1],2==n.G)if("c"==c[0]){n.K=c[1],n.ia=c[2];const t=c[3];null!=t&&(n.la=t,n.j.info("VER="+n.la));const i=c[4];null!=i&&(n.Aa=i,n.j.info("SVER="+n.Aa));const u=c[5];null!=u&&"number"===typeof u&&0<u&&(r=1.5*u,n.L=r,n.j.info("backChannelRequestTimeoutMs_="+r)),r=n;const d=e.g;if(d){const e=d.g?d.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(e){var s=r.h;s.g||-1==e.indexOf("spdy")&&-1==e.indexOf("quic")&&-1==e.indexOf("h2")||(s.j=s.l,s.g=new Set,s.h&&(ht(s,s.h),s.h=null))}if(r.D){const e=d.g?d.g.getResponseHeader("X-HTTP-Session-Id"):null;e&&(r.ya=e,_t(r.I,r.D,e))}}n.G=3,n.l&&n.l.ua(),n.ba&&(n.R=Date.now()-e.F,n.j.info("Handshake RTT: "+n.R+"ms"));var a=e;if((r=n).qa=En(r,r.J?r.ia:null,r.W),a.K){ft(r.h,a);var o=a,l=r.L;l&&(o.I=l),o.B&&(rt(o),tt(o)),r.g=a}else mn(r);0<n.i.length&&dn(n)}else"stop"!=c[0]&&"close"!=c[0]||_n(n,7);else 3==n.G&&("stop"==c[0]||"close"==c[0]?"stop"==c[0]?_n(n,7):ln(n):"noop"!=c[0]&&n.l&&n.l.ta(c),n.v=0)}De()}catch(u){}}Ke.prototype.ca=function(e){e=e.target;const t=this.M;t&&3==rn(e)?t.j():this.Y(e)},Ke.prototype.Y=function(e){try{if(e==this.g)e:{const h=rn(this.g);var t=this.g.Ba();this.g.Z();if(!(3>h)&&(3!=h||this.g&&(this.h.h||this.g.oa()||sn(this.g)))){this.J||4!=h||7==t||De(),rt(this);var n=this.g.Z();this.X=n;t:if(Ze(this)){var r=sn(this.g);e="";var s=r.length,a=4==rn(this.g);if(!this.h.i){if("undefined"===typeof TextDecoder){st(this),it(this);var o="";break t}this.h.i=new i.TextDecoder}for(t=0;t<s;t++)this.h.h=!0,e+=this.h.i.decode(r[t],{stream:!(a&&t==s-1)});r.length=0,this.h.g+=e,this.C=0,o=this.h.g}else o=this.g.oa();if(this.o=200==n,function(e,t,n,r,i,s,a){e.info((function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+t+"\n"+n+"\n"+s+" "+a}))}(this.i,this.u,this.A,this.l,this.R,h,n),this.o){if(this.T&&!this.K){t:{if(this.g){var l,c=this.g;if((l=c.g?c.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!C(l)){var u=l;break t}}u=null}if(!(n=u)){this.o=!1,this.s=3,Fe(12),st(this),it(this);break e}ze(this.i,this.l,n,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,at(this,n)}if(this.P){let e;for(n=!0;!this.J&&this.C<o.length;){if(e=et(this,o),e==Xe){4==h&&(this.s=4,Fe(14),n=!1),ze(this.i,this.l,null,"[Incomplete Response]");break}if(e==Qe){this.s=4,Fe(15),ze(this.i,this.l,o,"[Invalid Chunk]"),n=!1;break}ze(this.i,this.l,e,null),at(this,e)}if(Ze(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=h||0!=o.length||this.h.h||(this.s=1,Fe(16),n=!1),this.o=this.o&&n,n){if(0<o.length&&!this.W){this.W=!0;var d=this.j;d.g==this&&d.ba&&!d.M&&(d.j.info("Great, no buffering proxy detected. Bytes received: "+o.length),yn(d),d.M=!0,Fe(11))}}else ze(this.i,this.l,o,"[Invalid Chunked Response]"),st(this),it(this)}else ze(this.i,this.l,o,null),at(this,o);4==h&&st(this),this.o&&!this.J&&(4==h?wn(this.j,this):(this.o=!1,tt(this)))}else(function(e){const t={};e=(e.g&&2<=rn(e)&&e.g.getAllResponseHeaders()||"").split("\r\n");for(let r=0;r<e.length;r++){if(C(e[r]))continue;var n=R(e[r]);const i=n[0];if("string"!==typeof(n=n[1]))continue;n=n.trim();const s=t[i]||[];t[i]=s,s.push(n)}!function(e,t){for(const n in e)t.call(void 0,e[n],n,e)}(t,(function(e){return e.join(", ")}))})(this.g),400==n&&0<o.indexOf("Unknown SID")?(this.s=3,Fe(12)):(this.s=0,Fe(13)),st(this),it(this)}}}catch(h){}},Ke.prototype.cancel=function(){this.J=!0,st(this)},Ke.prototype.ba=function(){this.B=null;const e=Date.now();0<=e-this.S?(function(e,t){e.info((function(){return"TIMEOUT: "+t}))}(this.i,this.A),2!=this.L&&(De(),Fe(17)),st(this),this.s=2,it(this)):nt(this,this.S-e)};var ot=class{constructor(e,t){this.g=e,this.map=t}};function lt(e){this.l=e||10,i.PerformanceNavigationTiming?e=0<(e=i.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(i.chrome&&i.chrome.loadTimes&&i.chrome.loadTimes()&&i.chrome.loadTimes().wasFetchedViaSpdy),this.j=e?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function ct(e){return!!e.h||!!e.g&&e.g.size>=e.j}function ut(e){return e.h?1:e.g?e.g.size:0}function dt(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function ht(e,t){e.g?e.g.add(t):e.h=t}function ft(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function pt(e){if(null!=e.h)return e.i.concat(e.h.D);if(null!=e.g&&0!==e.g.size){let t=e.i;for(const n of e.g.values())t=t.concat(n.D);return t}return S(e.i)}function mt(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(s(e)||"string"===typeof e)Array.prototype.forEach.call(e,t,void 0);else for(var n=function(e){if(e.na&&"function"==typeof e.na)return e.na();if(!e.V||"function"!=typeof e.V){if("undefined"!==typeof Map&&e instanceof Map)return Array.from(e.keys());if(!("undefined"!==typeof Set&&e instanceof Set)){if(s(e)||"string"===typeof e){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}t=[],n=0;for(const r in e)t[n++]=r;return t}}}(e),r=function(e){if(e.V&&"function"==typeof e.V)return e.V();if("undefined"!==typeof Map&&e instanceof Map||"undefined"!==typeof Set&&e instanceof Set)return Array.from(e.values());if("string"===typeof e)return e.split("");
2if(s(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}(e),i=r.length,a=0;a<i;a++)t.call(void 0,r[a],n&&n[a],e)}lt.prototype.cancel=function(){if(this.i=pt(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const e of this.g.values())e.cancel();this.g.clear()}};var gt=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function yt(e){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,e instanceof yt){this.h=e.h,bt(this,e.j),this.o=e.o,this.g=e.g,wt(this,e.s),this.l=e.l;var t=e.i,n=new Ot;n.i=t.i,t.g&&(n.g=new Map(t.g),n.h=t.h),xt(this,n),this.m=e.m}else e&&(t=String(e).match(gt))?(this.h=!1,bt(this,t[1]||"",!0),this.o=Et(t[2]||""),this.g=Et(t[3]||"",!0),wt(this,t[4]),this.l=Et(t[5]||"",!0),xt(this,t[6]||"",!0),this.m=Et(t[7]||"")):(this.h=!1,this.i=new Ot(null,this.h))}function vt(e){return new yt(e)}function bt(e,t,n){e.j=n?Et(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function wt(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.s=t}else e.s=null}function xt(e,t,n){t instanceof Ot?(e.i=t,function(e,t){t&&!e.j&&(Rt(e),e.i=null,e.g.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(Lt(this,t),Mt(this,n,e))}),e)),e.j=t}(e.i,e.h)):(n||(t=kt(t,jt)),e.i=new Ot(t,e.h))}function _t(e,t,n){e.i.set(t,n)}function St(e){return _t(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function Et(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function kt(e,t,n){return"string"===typeof e?(e=encodeURI(e).replace(t,Ct),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Ct(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}yt.prototype.toString=function(){var e=[],t=this.j;t&&e.push(kt(t,Tt,!0),":");var n=this.g;return(n||"file"==t)&&(e.push("//"),(t=this.o)&&e.push(kt(t,Tt,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.s)&&e.push(":",String(n))),(n=this.l)&&(this.g&&"/"!=n.charAt(0)&&e.push("/"),e.push(kt(n,"/"==n.charAt(0)?Pt:It,!0))),(n=this.i.toString())&&e.push("?",n),(n=this.m)&&e.push("#",kt(n,Nt)),e.join("")};var At,Tt=/[#\/\?@]/g,It=/[#\?:]/g,Pt=/[#\?]/g,jt=/[#\?@]/g,Nt=/#/g;function Ot(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function Rt(e){e.g||(e.g=new Map,e.h=0,e.i&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var s=e[n].substring(0,r);i=e[n].substring(r+1)}else s=e[n];t(s,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.i,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function Lt(e,t){Rt(e),t=Ft(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function Dt(e,t){return Rt(e),t=Ft(e,t),e.g.has(t)}function Mt(e,t,n){Lt(e,t),0<n.length&&(e.i=null,e.g.set(Ft(e,t),S(n)),e.h+=n.length)}function Ft(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}function Ut(e,t,n,r,i){try{i&&(i.onload=null,i.onerror=null,i.onabort=null,i.ontimeout=null),r(n)}catch(s){}}function Vt(){this.g=new ke}function Bt(e,t,n){const r=n||"";try{mt(e,(function(e,n){let i=e;a(e)&&(i=Se(e)),t.push(r+n+"="+encodeURIComponent(i))}))}catch(i){throw t.push(r+"type="+encodeURIComponent("_badmap")),i}}function zt(e){this.l=e.Ub||null,this.j=e.eb||!1}function $t(e,t){pe.call(this),this.D=e,this.o=t,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.u=new Headers,this.h=null,this.B="GET",this.A="",this.g=!1,this.v=this.j=this.l=null}function Ht(e){e.j.read().then(e.Pa.bind(e)).catch(e.ga.bind(e))}function qt(e){e.readyState=4,e.l=null,e.j=null,e.v=null,Wt(e)}function Wt(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function Kt(e){let t="";return P(e,(function(e,n){t+=n,t+=":",t+=e,t+="\r\n"})),t}function Gt(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}r||(n=Kt(n),"string"===typeof e?null!=n&&encodeURIComponent(String(n)):_t(e,t,n))}function Qt(e){pe.call(this),this.headers=new Map,this.o=e||null,this.h=!1,this.v=this.g=null,this.D="",this.m=0,this.l="",this.j=this.B=this.u=this.A=!1,this.I=null,this.H="",this.J=!1}(e=Ot.prototype).add=function(e,t){Rt(this),this.i=null,e=Ft(this,e);var n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this},e.forEach=function(e,t){Rt(this),this.g.forEach((function(n,r){n.forEac
2h((function(n){e.call(t,n,r,this)}),this)}),this)},e.na=function(){Rt(this);const e=Array.from(this.g.values()),t=Array.from(this.g.keys()),n=[];for(let r=0;r<t.length;r++){const i=e[r];for(let e=0;e<i.length;e++)n.push(t[r])}return n},e.V=function(e){Rt(this);let t=[];if("string"===typeof e)Dt(this,e)&&(t=t.concat(this.g.get(Ft(this,e))));else{e=Array.from(this.g.values());for(let n=0;n<e.length;n++)t=t.concat(e[n])}return t},e.set=function(e,t){return Rt(this),this.i=null,Dt(this,e=Ft(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},e.get=function(e,t){return e&&0<(e=this.V(e)).length?String(e[0]):t},e.toString=function(){if(this.i)return this.i;if(!this.g)return"";const e=[],t=Array.from(this.g.keys());for(var n=0;n<t.length;n++){var r=t[n];const s=encodeURIComponent(String(r)),a=this.V(r);for(r=0;r<a.length;r++){var i=s;""!==a[r]&&(i+="="+encodeURIComponent(String(a[r]))),e.push(i)}}return this.i=e.join("&")},_(zt,Ce),zt.prototype.g=function(){return new $t(this.l,this.j)},zt.prototype.i=(At={},function(){return At}),_($t,pe),(e=$t.prototype).open=function(e,t){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.B=e,this.A=t,this.readyState=1,Wt(this)},e.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;const t={headers:this.u,method:this.B,credentials:this.m,cache:void 0};e&&(t.body=e),(this.D||i).fetch(new Request(this.A,t)).then(this.Sa.bind(this),this.ga.bind(this))},e.abort=function(){this.response=this.responseText="",this.u=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch((()=>{})),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,qt(this)),this.readyState=0},e.Sa=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,Wt(this)),this.g&&(this.readyState=3,Wt(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if("undefined"!==typeof i.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;Ht(this)}else e.text().then(this.Ra.bind(this),this.ga.bind(this))},e.Pa=function(e){if(this.g){if(this.o&&e.value)this.response.push(e.value);else if(!this.o){var t=e.value?e.value:new Uint8Array(0);(t=this.v.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?qt(this):Wt(this),3==this.readyState&&Ht(this)}},e.Ra=function(e){this.g&&(this.response=this.responseText=e,qt(this))},e.Qa=function(e){this.g&&(this.response=e,qt(this))},e.ga=function(){this.g&&qt(this)},e.setRequestHeader=function(e,t){this.u.append(e,t)},e.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},e.getAllResponseHeaders=function(){if(!this.h)return"";const e=[],t=this.h.entries();for(var n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},Object.defineProperty($t.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}}),_(Qt,pe);var Xt=/^https?$/i,Yt=["POST","PUT"];function Jt(e,t){e.h=!1,e.g&&(e.j=!0,e.g.abort(),e.j=!1),e.l=t,e.m=5,Zt(e),tn(e)}function Zt(e){e.A||(e.A=!0,me(e,"complete"),me(e,"error"))}function en(e){if(e.h&&"undefined"!=typeof r&&(!e.v[1]||4!=rn(e)||2!=e.Z()))if(e.u&&4==rn(e))ye(e.Ea,0,e);else if(me(e,"readystatechange"),4==rn(e)){e.h=!1;try{const r=e.Z();e:switch(r){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var t=!0;break e;default:t=!1}var n;if(!(n=t)){var s;if(s=0===r){var a=String(e.D).match(gt)[1]||null;!a&&i.self&&i.self.location&&(a=i.self.location.protocol.slice(0,-1)),s=!Xt.test(a?a.toLowerCase():"")}n=s}if(n)me(e,"complete"),me(e,"success");else{e.m=6;try{var o=2<rn(e)?e.g.statusText:""}catch(l){o=""}e.l=o+" ["+e.Z()+"]",Zt(e)}}finally{tn(e)}}}function tn(e,t){if(e.g){nn(e);const r=e.g,i=e.v[0]?()=>{}:null;e.g=null,e.v=null,t||me(e,"ready");try{r.onreadystatechange=i}catch(n){}}}function nn(e){e.I&&(i.clearTimeout(e.I),e.I=null)}function rn(e){return e.g?e.g.readyState:0}function sn(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.H){case"":case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(E){return null}}
2function an(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function on(e){this.Aa=0,this.i=[],this.j=new Be,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=an("failFast",!1,e),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=an("baseRetryDelayMs",5e3,e),this.cb=an("retryDelaySeedMs",1e4,e),this.Wa=an("forwardChannelMaxRetries",2,e),this.wa=an("forwardChannelRequestTimeoutMs",2e4,e),this.pa=e&&e.xmlHttpFactory||void 0,this.Xa=e&&e.Tb||void 0,this.Ca=e&&e.useFetchStreams||!1,this.L=void 0,this.J=e&&e.supportsCrossDomainXhr||!1,this.K="",this.h=new lt(e&&e.concurrentRequestLimit),this.Da=new Vt,this.P=e&&e.fastHandshake||!1,this.O=e&&e.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=e&&e.Rb||!1,e&&e.xa&&this.j.xa(),e&&e.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&e&&e.detectBufferingProxy||!1,this.ja=void 0,e&&e.longPollingTimeout&&0<e.longPollingTimeout&&(this.ja=e.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}function ln(e){if(un(e),3==e.G){var t=e.U++,n=vt(e.I);if(_t(n,"SID",e.K),_t(n,"RID",t),_t(n,"TYPE","terminate"),fn(e,n),(t=new Ke(e,e.j,t)).L=2,t.v=St(vt(n)),n=!1,i.navigator&&i.navigator.sendBeacon)try{n=i.navigator.sendBeacon(t.v.toString(),"")}catch(r){}!n&&i.Image&&((new Image).src=t.v,n=!0),n||(t.g=kn(t.j,null),t.g.ea(t.v)),t.F=Date.now(),tt(t)}Sn(e)}function cn(e){e.g&&(yn(e),e.g.cancel(),e.g=null)}function un(e){cn(e),e.u&&(i.clearTimeout(e.u),e.u=null),bn(e),e.h.cancel(),e.s&&("number"===typeof e.s&&i.clearTimeout(e.s),e.s=null)}function dn(e){if(!ct(e.h)&&!e.s){e.s=!0;var t=e.Ga;U||z(),V||(U(),V=!0),B.add(t,e),e.B=0}}function hn(e,t){var n;n=t?t.l:e.U++;const r=vt(e.I);_t(r,"SID",e.K),_t(r,"RID",n),_t(r,"AID",e.T),fn(e,r),e.m&&e.o&&Gt(r,e.m,e.o),n=new Ke(e,e.j,n,e.B+1),null===e.m&&(n.H=e.o),t&&(e.i=t.D.concat(e.i)),t=pn(e,n,1e3),n.I=Math.round(.5*e.wa)+Math.round(.5*e.wa*Math.random()),ht(e.h,n),Ye(n,r,t)}function fn(e,t){e.H&&P(e.H,(function(e,n){_t(t,n,e)})),e.l&&mt({},(function(e,n){_t(t,n,e)}))}function pn(e,t,n){n=Math.min(e.i.length,n);var r=e.l?c(e.l.Na,e.l,e):null;e:{var i=e.i;let t=-1;for(;;){const e=["count="+n];-1==t?0<n?(t=i[0].g,e.push("ofs="+t)):t=0:e.push("ofs="+t);let a=!0;for(let o=0;o<n;o++){let n=i[o].g;const l=i[o].map;if(n-=t,0>n)t=Math.max(0,i[o].g-100),a=!1;else try{Bt(l,e,"req"+n+"_")}catch(s){r&&r(l)}}if(a){r=e.join("&");break e}}}return e=e.i.splice(0,n),t.D=e,r}function mn(e){if(!e.g&&!e.u){e.Y=1;var t=e.Fa;U||z(),V||(U(),V=!0),B.add(t,e),e.v=0}}function gn(e){return!(e.g||e.u||3<=e.v)&&(e.Y++,e.u=Ve(c(e.Fa,e),xn(e,e.v)),e.v++,!0)}function yn(e){null!=e.A&&(i.clearTimeout(e.A),e.A=null)}function vn(e){e.g=new Ke(e,e.j,"rpc",e.Y),null===e.m&&(e.g.H=e.o),e.g.O=0;var t=vt(e.qa);_t(t,"RID","rpc"),_t(t,"SID",e.K),_t(t,"AID",e.T),_t(t,"CI",e.F?"0":"1"),!e.F&&e.ja&&_t(t,"TO",e.ja),_t(t,"TYPE","xmlhttp"),fn(e,t),e.m&&e.o&&Gt(t,e.m,e.o),e.L&&(e.g.I=e.L);var n=e.g;e=e.ia,n.L=1,n.v=St(vt(t)),n.m=null,n.P=!0,Je(n,e)}function bn(e){null!=e.C&&(i.clearTimeout(e.C),e.C=null)}function wn(e,t){var n=null;if(e.g==t){bn(e),yn(e),e.g=null;var r=2}else{if(!dt(e.h,t))return;n=t.D,ft(e.h,t),r=1}if(0!=e.G)if(t.o)if(1==r){n=t.m?t.m.length:0,t=Date.now()-t.F;var i=e.B;me(r=Re(),new Ue(r,n)),dn(e)}else mn(e);else if(3==(i=t.s)||0==i&&0<t.X||!(1==r&&function(e,t){return!(ut(e.h)>=e.h.j-(e.s?1:0))&&(e.s?(e.i=t.D.concat(e.i),!0):!(1==e.G||2==e.G||e.B>=(e.Va?0:e.Wa))&&(e.s=Ve(c(e.Ga,e,t),xn(e,e.B)),e.B++,!0))}(e,t)||2==r&&gn(e)))switch(n&&0<n.length&&(t=e.h,t.i=t.i.concat(n)),i){case 1:_n(e,5);break;case 4:_n(e,10);break;case 3:_n(e,6);break;default:_n(e,2)}}function xn(e,t){let n=e.Ta+Math.floor(Math.random()*e.cb);return e.isActive()||(n*=2),n*t}function _n(e,t){if(e.j.info("Error code "+t),2==t){var n=c(e.fb,e),r=e.Xa;const t=!r;r=new yt(r||"//www.google.com/images/cleardot.gif"),i.location&&"http"==i.location.protocol||bt(r,"https"),St(r),t?function(e,t){const n=new Be;if(i.Image){const r=new Image;r.onload=u(Ut,n,"TestLoadImage: loaded",!0,t,r),r.onerror=u(Ut,n,"TestLoadImage: error",!1,t,r),r.onabort=u(Ut,n,"TestLoadImage: abort",!1,t,r),r.ontimeout=u(Ut,n,"TestLoadImage: timeout",!1,t,r),i.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=e}else t(!1)}(r.toString(),n):function(e,t){new Be;const n=new AbortController,r=setTimeout((()=>{n.abort(),Ut(0,0,!1,t)}),1e4);fetch(e,{signal:n.signal}).then((e=>{clearTimeout(r),e.ok?Ut(0,0,!0,t):Ut(0,0,!1,t)})).catch((()=>{clearTimeout(r),Ut(0,0,!1,t)}))}(r.toString(),n)}else Fe(2);e.G=0,e.l&&e.l.sa(t),Sn(e),un(e)}function Sn(e){if(e.G=0,e.ka=[],e.l){const t=pt(e.h);
20==t.length&&0==e.i.length||(k(e.ka,t),k(e.ka,e.i),e.h.i.length=0,S(e.i),e.i.length=0),e.l.ra()}}function En(e,t,n){var r=n instanceof yt?vt(n):new yt(n);if(""!=r.g)t&&(r.g=t+"."+r.g),wt(r,r.s);else{var s=i.location;r=s.protocol,t=t?t+"."+s.hostname:s.hostname,s=+s.port;var a=new yt(null);r&&bt(a,r),t&&(a.g=t),s&&wt(a,s),n&&(a.l=n),r=a}return n=e.D,t=e.ya,n&&t&&_t(r,n,t),_t(r,"VER",e.la),fn(e,r),r}function kn(e,t,n){if(t&&!e.J)throw Error("Can't create secondary domain capable XhrIo object.");return(t=e.Ca&&!e.pa?new Qt(new zt({eb:n})):new Qt(e.pa)).Ha(e.J),t}function Cn(){}function An(){}function Tn(e,t){pe.call(this),this.g=new on(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.o=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.va&&(e?e["X-WebChannel-Client-Profile"]=t.va:e={"X-WebChannel-Client-Profile":t.va}),this.g.S=e,(e=t&&t.Sb)&&!C(e)&&(this.g.m=e),this.v=t&&t.supportsCrossDomainXhr||!1,this.u=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!C(t)&&(this.g.D=t,null!==(e=this.h)&&t in e&&(t in(e=this.h)&&delete e[t])),this.j=new jn(this)}function In(e){Pe.call(this),e.__headers__&&(this.headers=e.__headers__,this.statusCode=e.__status__,delete e.__headers__,delete e.__status__);var t=e.__sm__;if(t){e:{for(const n in t){e=n;break e}e=void 0}(this.i=e)&&(e=this.i,t=null!==t&&e in t?t[e]:void 0),this.data=t}else this.data=e}function Pn(){je.call(this),this.status=1}function jn(e){this.g=e}(e=Qt.prototype).Ha=function(e){this.J=e},e.ea=function(e,t,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+e);t=t?t.toUpperCase():"GET",this.D=e,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():$e.g(),this.v=this.o?Ae(this.o):Ae($e),this.g.onreadystatechange=c(this.Ea,this);try{this.B=!0,this.g.open(t,String(e),!0),this.B=!1}catch(a){return void Jt(this,a)}if(e=n||"",n=new Map(this.headers),r)if(Object.getPrototypeOf(r)===Object.prototype)for(var s in r)n.set(s,r[s]);else{if("function"!==typeof r.keys||"function"!==typeof r.get)throw Error("Unknown input type for opt_headers: "+String(r));for(const e of r.keys())n.set(e,r.get(e))}r=Array.from(n.keys()).find((e=>"content-type"==e.toLowerCase())),s=i.FormData&&e instanceof i.FormData,!(0<=Array.prototype.indexOf.call(Yt,t,void 0))||r||s||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[i,o]of n)this.g.setRequestHeader(i,o);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{nn(this),this.u=!0,this.g.send(e),this.u=!1}catch(a){Jt(this,a)}},e.abort=function(e){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=e||7,me(this,"complete"),me(this,"abort"),tn(this))},e.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),tn(this,!0)),Qt.aa.N.call(this)},e.Ea=function(){this.s||(this.B||this.u||this.j?en(this):this.bb())},e.bb=function(){en(this)},e.isActive=function(){return!!this.g},e.Z=function(){try{return 2<rn(this)?this.g.status:-1}catch(At){return-1}},e.oa=function(){try{return this.g?this.g.responseText:""}catch(At){return""}},e.Oa=function(e){if(this.g){var t=this.g.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),Ee(t)}},e.Ba=function(){return this.m},e.Ka=function(){return"string"===typeof this.l?this.l:String(this.l)},(e=on.prototype).la=8,e.G=1,e.connect=function(e,t,n,r){Fe(0),this.W=e,this.H=t||{},n&&void 0!==r&&(this.H.OSID=n,this.H.OAID=r),this.F=this.X,this.I=En(this,null,this.W),dn(this)},e.Ga=function(e){if(this.s)if(this.s=null,1==this.G){if(!e){this.U=Math.floor(1e5*Math.random()),e=this.U++;const i=new Ke(this,this.j,e);let s=this.o;if(this.S&&(s?(s=j(s),O(s,this.S)):s=this.S),null!==this.m||this.O||(i.H=s,s=null),this.P)e:{for(var t=0,n=0;n<this.i.length;n++){var r=this.i[n];if(void 0===(r="__data__"in r.map&&"string"===typeof(r=r.map.__data__)?r.length:void 0))break;if(4096<(t+=r)){t=n;break e}if(4096===t||n===this.i.length-1){t=n+1;break e}}t=1e3}else t=1e3;
2t=pn(this,i,t),_t(n=vt(this.I),"RID",e),_t(n,"CVER",22),this.D&&_t(n,"X-HTTP-Session-Id",this.D),fn(this,n),s&&(this.O?t="headers="+encodeURIComponent(String(Kt(s)))+"&"+t:this.m&&Gt(n,this.m,s)),ht(this.h,i),this.Ua&&_t(n,"TYPE","init"),this.P?(_t(n,"$req",t),_t(n,"SID","null"),i.T=!0,Ye(i,n,null)):Ye(i,n,t),this.G=2}}else 3==this.G&&(e?hn(this,e):0==this.i.length||ct(this.h)||hn(this))},e.Fa=function(){if(this.u=null,vn(this),this.ba&&!(this.M||null==this.g||0>=this.R)){var e=2*this.R;this.j.info("BP detection timer enabled: "+e),this.A=Ve(c(this.ab,this),e)}},e.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,Fe(10),cn(this),vn(this))},e.Za=function(){null!=this.C&&(this.C=null,cn(this),gn(this),Fe(19))},e.fb=function(e){e?(this.j.info("Successfully pinged google.com"),Fe(2)):(this.j.info("Failed to ping google.com"),Fe(1))},e.isActive=function(){return!!this.l&&this.l.isActive(this)},(e=Cn.prototype).ua=function(){},e.ta=function(){},e.sa=function(){},e.ra=function(){},e.isActive=function(){return!0},e.Na=function(){},An.prototype.g=function(e,t){return new Tn(e,t)},_(Tn,pe),Tn.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},Tn.prototype.close=function(){ln(this.g)},Tn.prototype.o=function(e){var t=this.g;if("string"===typeof e){var n={};n.__data__=e,e=n}else this.u&&((n={}).__data__=Se(e),e=n);t.i.push(new ot(t.Ya++,e)),3==t.G&&dn(t)},Tn.prototype.N=function(){this.g.l=null,delete this.j,ln(this.g),delete this.g,Tn.aa.N.call(this)},_(In,Pe),_(Pn,je),_(jn,Cn),jn.prototype.ua=function(){me(this.g,"a")},jn.prototype.ta=function(e){me(this.g,new In(e))},jn.prototype.sa=function(e){me(this.g,new Pn)},jn.prototype.ra=function(){me(this.g,"b")},An.prototype.createWebChannel=An.prototype.g,Tn.prototype.send=Tn.prototype.o,Tn.prototype.open=Tn.prototype.m,Tn.prototype.close=Tn.prototype.close,b=x.createWebChannelTransport=function(){return new An},v=x.getStatEventTarget=function(){return Re()},y=x.Event=Ne,g=x.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},He.NO_ERROR=0,He.TIMEOUT=8,He.HTTP_ERROR=6,m=x.ErrorCode=He,qe.COMPLETE="complete",p=x.EventType=qe,Te.EventType=Ie,Ie.OPEN="a",Ie.CLOSE="b",Ie.ERROR="c",Ie.MESSAGE="d",pe.prototype.listen=pe.prototype.K,f=x.WebChannel=Te,h=x.FetchXmlHttpFactory=zt,Qt.prototype.listenOnce=Qt.prototype.L,Qt.prototype.getLastError=Qt.prototype.Ka,Qt.prototype.getLastErrorCode=Qt.prototype.Ba,Qt.prototype.getStatus=Qt.prototype.Z,Qt.prototype.getResponseJson=Qt.prototype.Oa,Qt.prototype.getResponseText=Qt.prototype.oa,Qt.prototype.send=Qt.prototype.ea,Qt.prototype.setWithCredentials=Qt.prototype.Ha,d=x.XhrIo=Qt}).apply("undefined"!==typeof w?w:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{});const _="@firebase/firestore";class S{constructor(e){this.uid=e}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}S.UNAUTHENTICATED=new S(null),S.GOOGLE_CREDENTIALS=new S("google-credentials-uid"),S.FIRST_PARTY=new S("first-party-uid"),S.MOCK_USER=new S("mock-user");let E="10.12.5";const k=new o.Vy("@firebase/firestore");function C(){return k.logLevel}function A(e){if(k.logLevel<=o.$b.DEBUG){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=n.map(P);k.debug(`Firestore (${E}): ${e}`,...i)}}function T(e){if(k.logLevel<=o.$b.ERROR){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=n.map(P);k.error(`Firestore (${E}): ${e}`,...i)}}function I(e){if(k.logLevel<=o.$b.WARN){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=n.map(P);k.warn(`Firestore (${E}): ${e}`,...i)}}function P(e){if("string"==typeof e)return e;try{return function(e){return JSON.stringify(e)}(e)}catch(t){return e}}function j(){const e=`FIRESTORE (${E}) INTERNAL ASSERTION FAILED: `+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unexpected state");throw T(e),new Error(e)}function N(e,t){e||j()}function O(e,t){return e}const R={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENT
2ED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class L extends l.g{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class D{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}class M{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class F{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable((()=>t(S.UNAUTHENTICATED)))}shutdown(){}}class U{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,t){this.changeListener=t,e.enqueueRetryable((()=>t(this.token.user)))}shutdown(){this.changeListener=null}}class V{constructor(e){this.t=e,this.currentUser=S.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){let n=this.i;const r=e=>this.i!==n?(n=this.i,t(e)):Promise.resolve();let i=new D;this.o=()=>{this.i++,this.currentUser=this.u(),i.resolve(),i=new D,e.enqueueRetryable((()=>r(this.currentUser)))};const s=()=>{const t=i;e.enqueueRetryable((async()=>{await t.promise,await r(this.currentUser)}))},a=e=>{A("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=e,this.auth.addAuthTokenListener(this.o),s()};this.t.onInit((e=>a(e))),setTimeout((()=>{if(!this.auth){const e=this.t.getImmediate({optional:!0});e?a(e):(A("FirebaseAuthCredentialsProvider","Auth not yet detected"),i.resolve(),i=new D)}}),0),s()}getToken(){const e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then((t=>this.i!==e?(A("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):t?(N("string"==typeof t.accessToken),new M(t.accessToken,this.currentUser)):null)):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const e=this.auth&&this.auth.getUid();return N(null===e||"string"==typeof e),new S(e)}}class B{constructor(e,t,n){this.l=e,this.h=t,this.P=n,this.type="FirstParty",this.user=S.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const e=this.T();return e&&this.I.set("Authorization",e),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class z{constructor(e,t,n){this.l=e,this.h=t,this.P=n}getToken(){return Promise.resolve(new B(this.l,this.h,this.P))}start(e,t){e.enqueueRetryable((()=>t(S.FIRST_PARTY)))}shutdown(){}invalidateToken(){}}class ${constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class H{constructor(e){this.A=e,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(e,t){const n=e=>{null!=e.error&&A("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${e.error.message}`);const n=e.token!==this.R;return this.R=e.token,A("FirebaseAppCheckTokenProvider",`Received ${n?"new":"existing"} token.`),n?t(e.token):Promise.resolve()};this.o=t=>{e.enqueueRetryable((()=>n(t)))};const r=e=>{A("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=e,this.appCheck.addTokenListener(this.o)};this.A.onInit((e=>r(e))),setTimeout((()=>{if(!this.appCheck){const e=this.A.getImmediate({optional:!0});e?r(e):A("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}}),0)}getToken(){const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then((e=>e?(N("string"==typeof e.token),this.R=e.token,new $(e.token)):null)):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function q(e){const t="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(e);if(t&&"function"==typeof t.getRandomValues)t.getRandomValues(n);else for(let r=0;r<e;r++)n[r]=Math.floor(256*Math.random());return n}class W{static newId(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=62*Math.floor(256/62);let n="";for(;n.length<20;){const r=q(40);for(let i=0;i<r.length;++i)n.length<20&&r[i]<t&&(n+=e.charAt(r[i]%62))}return n}}function K(e,t){return e<t?-1:e>t?1:0}function G(e,t,n){return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))}class Q{constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new L(R.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new L(R.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800)throw new L(R.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new L(R.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}static now(){return Q.fromMillis(Date.now())}static fromDate(e){return Q.fromMillis(e.getTime())}static fromMillis(e){const t=Math.floor(e/1e3),n=Math.floor(1e6*(e-1e3*t));return new Q(t,n)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?K(this.nanoseconds,e.nanoseconds):K(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){const e=this.seconds- -62135596800;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}
2}class X{constructor(e){this.timestamp=e}static fromTimestamp(e){return new X(e)}static min(){return new X(new Q(0,0))}static max(){return new X(new Q(253402300799,999999999))}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}class Y{constructor(e,t,n){void 0===t?t=0:t>e.length&&j(),void 0===n?n=e.length-t:n>e.length-t&&j(),this.segments=e,this.offset=t,this.len=n}get length(){return this.len}isEqual(e){return 0===Y.comparator(this,e)}child(e){const t=this.segments.slice(this.offset,this.limit());return e instanceof Y?e.forEach((e=>{t.push(e)})):t.push(e),this.construct(t)}limit(){return this.offset+this.length}popFirst(e){return e=void 0===e?1:e,this.construct(this.segments,this.offset+e,this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return 0===this.length}isPrefixOf(e){if(e.length<this.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}forEach(e){for(let t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){const n=e.get(r),i=t.get(r);if(n<i)return-1;if(n>i)return 1}return e.length<t.length?-1:e.length>t.length?1:0}}class J extends Y{construct(e,t,n){return new J(e,t,n)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(){const e=[];for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const i of n){if(i.indexOf("//")>=0)throw new L(R.INVALID_ARGUMENT,`Invalid segment (${i}). Paths must not contain // in them.`);e.push(...i.split("/").filter((e=>e.length>0)))}return new J(e)}static emptyPath(){return new J([])}}const Z=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class ee extends Y{construct(e,t,n){return new ee(e,t,n)}static isValidIdentifier(e){return Z.test(e)}canonicalString(){return this.toArray().map((e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),ee.isValidIdentifier(e)||(e="`"+e+"`"),e))).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new ee(["__name__"])}static fromServerFormat(e){const t=[];let n="",r=0;const i=()=>{if(0===n.length)throw new L(R.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);t.push(n),n=""};let s=!1;for(;r<e.length;){const t=e[r];if("\\"===t){if(r+1===e.length)throw new L(R.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const t=e[r+1];if("\\"!==t&&"."!==t&&"`"!==t)throw new L(R.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);n+=t,r+=2}else"`"===t?(s=!s,r++):"."!==t||s?(n+=t,r++):(i(),r++)}if(i(),s)throw new L(R.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new ee(t)}static emptyPath(){return new ee([])}}class te{constructor(e){this.path=e}static fromPath(e){return new te(J.fromString(e))}static fromName(e){return new te(J.fromString(e).popFirst(5))}static empty(){return new te(J.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return null!==e&&0===J.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,t){return J.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new te(new J(e.slice()))}}class ne{constructor(e,t,n,r){this.indexId=e,this.collectionGroup=t,this.fields=n,this.indexState=r}}ne.UNKNOWN_ID=-1;function re(e,t){const n=e.toTimestamp().seconds,r=e.toTimestamp().nanoseconds+1,i=X.fromTimestamp(1e9===r?new Q(n+1,0):new Q(n,r));return new se(i,te.empty(),t)}function ie(e){return new se(e.readTime,e.key,-1)}class se{constructor(e,t,n){this.readTime=e,this.documentKey=t,this.largestBatchId=n}static min(){return new se(X.min(),te.empty(),-1)}static max(){return new se(X.max(),te.empty(),-1)}}function ae(e,t){let n=e.readTime.compareTo(t.readTime);return 0!==n?n:(n=te.comparator(e.documentKey,t.documentKey),0!==n?n:K(e.largestBatchId,t.largestBatchId))}const oe="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class le{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}
vendor: 5,480 bytes, line 2
2raiseOnCommittedEvent(){this.onCommittedListeners.forEach((e=>e()))}}async function ce(e){if(e.code!==R.FAILED_PRECONDITION||e.message!==oe)throw e;A("LocalStore","Unexpectedly lost primary lease")}class ue{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e((e=>{this.isDone=!0,this.result=e,this.nextCallback&&this.nextCallback(e)}),(e=>{this.isDone=!0,this.error=e,this.catchCallback&&this.catchCallback(e)}))}catch(e){return this.next(void 0,e)}next(e,t){return this.callbackAttached&&j(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(t,this.error):this.wrapSuccess(e,this.result):new ue(((n,r)=>{this.nextCallback=t=>{this.wrapSuccess(e,t).next(n,r)},this.catchCallback=e=>{this.wrapFailure(t,e).next(n,r)}}))}toPromise(){return new Promise(((e,t)=>{this.next(e,t)}))}wrapUserFunction(e){try{const t=e();return t instanceof ue?t:ue.resolve(t)}catch(e){return ue.reject(e)}}wrapSuccess(e,t){return e?this.wrapUserFunction((()=>e(t))):ue.resolve(t)}wrapFailure(e,t){return e?this.wrapUserFunction((()=>e(t))):ue.reject(t)}static resolve(e){return new ue(((t,n)=>{t(e)}))}static reject(e){return new ue(((t,n)=>{n(e)}))}static waitFor(e){return new ue(((t,n)=>{let r=0,i=0,s=!1;e.forEach((e=>{++r,e.next((()=>{++i,s&&i===r&&t()}),(e=>n(e)))})),s=!0,i===r&&t()}))}static or(e){let t=ue.resolve(!1);for(const n of e)t=t.next((e=>e?ue.resolve(e):n()));return t}static forEach(e,t){const n=[];return e.forEach(((e,r)=>{n.push(t.call(this,e,r))})),this.waitFor(n)}static mapArray(e,t){return new ue(((n,r)=>{const i=e.length,s=new Array(i);let a=0;for(let o=0;o<i;o++){const l=o;t(e[l]).next((e=>{s[l]=e,++a,a===i&&n(s)}),(e=>r(e)))}}))}static doWhile(e,t){return new ue(((n,r)=>{const i=()=>{!0===e()?t().next((()=>{i()}),r):n()};i()}))}}function de(e){const t=e.match(/Android ([\d.]+)/i),n=t?t[1].split(".").slice(0,2).join("."):"-1";return Number(n)}function he(e){return"IndexedDbTransactionError"===e.name}class fe{constructor(e,t){this.previousValue=e,t&&(t.sequenceNumberHandler=e=>this.ie(e),this.se=e=>t.writeSequenceNumber(e))}ie(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this.se&&this.se(e),e}}function pe(e){return null==e}function me(e){return 0===e&&1/e==-1/0}function ge(e){return"number"==typeof e&&Number.isInteger(e)&&!me(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER}fe.oe=-1;const ye=["mutationQueues","mutations","documentMutations","remoteDocuments","targets","owner","targetGlobal","targetDocuments","clientMetadata","remoteDocumentGlobal","collectionParents","bundles","namedQueries"],ve=["mutationQueues","mutations","documentMutations","remoteDocumentsV14","targets","owner","targetGlobal","targetDocuments","clientMetadata","remoteDocumentGlobal","collectionParents","bundles","namedQueries","documentOverlays"],be=ve,we=[...be,"indexConfiguration","indexState","indexEntries"];function xe(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function _e(e,t){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function Se(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}class Ee{constructor(e,t){this.comparator=e,this.root=t||Ce.EMPTY}insert(e,t){return new Ee(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,Ce.BLACK,null,null))}remove(e){return new Ee(this.comparator,this.root.remove(e,this.comparator).copy(null,null,Ce.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){const n=this.comparator(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null}indexOf(e){let t=0,n=this.root;for(;!n.isEmpty();){const r=this.comparator(e,n.key);if(0===r)return t+n.left.size;r<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal(((t,n)=>(e(t,n),!1)))}toString(){const e=[];return this.inorderTraversal(((t,n)=>(e.push(`${t}:${n}`),!1))),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new ke(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new ke(this.root,e,this.comparator,!1)}getReverseIterator(){return new ke(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new ke(this.root,e,this.comparator,!0)}}class ke{constructor(e,t,n,r){this.isReverse=r,this.nodeStack=[];let i=1;for(;!e.isEmpty();)if(i=t?n(e.key,t):1,t&&r&&(i*=-1),i<0)e=this.isReverse?e.left:e.right;else{if(0===i){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class Ce{constructor(e,t,n,r,i){this.key=e,this.value=t,this.color=null!=n?n:Ce.RED,this.left=null!=r?r:Ce.EMPTY,this.right=null!=i?i:Ce.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,n,r,i){return new Ce(null!=e?e:this.key,null!=t?t:this.value,
vendor: 4,421 bytes, line 2
2null!=n?n:this.color,null!=r?r:this.left,null!=i?i:this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,n){let r=this;const i=n(e,r.key);return r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n)),r.fixUp()}removeMin(){if(this.left.isEmpty())return Ce.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,t){let n,r=this;if(t(e,r.key)<0)r.left.isEmpty()||r.left.isRed()||r.left.left.isRed()||(r=r.moveRedLeft()),r=r.copy(null,null,null,r.left.remove(e,t),null);else{if(r.left.isRed()&&(r=r.rotateRight()),r.right.isEmpty()||r.right.isRed()||r.right.left.isRed()||(r=r.moveRedRight()),0===t(e,r.key)){if(r.right.isEmpty())return Ce.EMPTY;n=r.right.min(),r=r.copy(n.key,n.value,null,null,r.right.removeMin())}r=r.copy(null,null,null,null,r.right.remove(e,t))}return r.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,Ce.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,Ce.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed())throw j();if(this.right.isRed())throw j();const e=this.left.check();if(e!==this.right.check())throw j();return e+(this.isRed()?0:1)}}Ce.EMPTY=null,Ce.RED=!0,Ce.BLACK=!1,Ce.EMPTY=new class{constructor(){this.size=0}get key(){throw j()}get value(){throw j()}get color(){throw j()}get left(){throw j()}get right(){throw j()}copy(e,t,n,r,i){return this}insert(e,t,n){return new Ce(e,t)}remove(e,t){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class Ae{constructor(e){this.comparator=e,this.data=new Ee(this.comparator)}has(e){return null!==this.data.get(e)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal(((t,n)=>(e(t),!1)))}forEachInRange(e,t){const n=this.data.getIteratorFrom(e[0]);for(;n.hasNext();){const r=n.getNext();if(this.comparator(r.key,e[1])>=0)return;t(r.key)}}forEachWhile(e,t){let n;for(n=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();)if(!e(n.getNext().key))return}firstAfterOrEqual(e){const t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new Te(this.data.getIterator())}getIteratorFrom(e){return new Te(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let t=this;return t.size<e.size&&(t=e,e=this),e.forEach((e=>{t=t.add(e)})),t}isEqual(e){if(!(e instanceof Ae))return!1;if(this.size!==e.size)return!1;const t=this.data.getIterator(),n=e.data.getIterator();for(;t.hasNext();){const e=t.getNext().key,r=n.getNext().key;if(0!==this.comparator(e,r))return!1}return!0}toArray(){const e=[];return this.forEach((t=>{e.push(t)})),e}toString(){const e=[];return this.forEach((t=>e.push(t))),"SortedSet("+e.toString()+")"}copy(e){const t=new Ae(this.comparator);return t.data=e,t}}
2class Te{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class Ie{constructor(e){this.fields=e,e.sort(ee.comparator)}static empty(){return new Ie([])}unionWith(e){let t=new Ae(ee.comparator);for(const n of this.fields)t=t.add(n);for(const n of e)t=t.add(n);return new Ie(t.toArray())}covers(e){for(const t of this.fields)if(t.isPrefixOf(e))return!0;return!1}isEqual(e){return G(this.fields,e.fields,((e,t)=>e.isEqual(t)))}}class Pe extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class je{constructor(e){this.binaryString=e}static fromBase64String(e){const t=function(e){try{return atob(e)}catch(e){throw"undefined"!=typeof DOMException&&e instanceof DOMException?new Pe("Invalid base64 string: "+e):e}}(e);return new je(t)}static fromUint8Array(e){const t=function(e){let t="";for(let n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t}(e);return new je(t)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return e=this.binaryString,btoa(e);var e}toUint8Array(){return function(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return K(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}je.EMPTY_BYTE_STRING=new je("");const Ne=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Oe(e){if(N(!!e),"string"==typeof e){let t=0;const n=Ne.exec(e);if(N(!!n),n[1]){let e=n[1];e=(e+"000000000").substr(0,9),t=Number(e)}const r=new Date(e);return{seconds:Math.floor(r.getTime()/1e3),nanos:t}}return{seconds:Re(e.seconds),nanos:Re(e.nanos)}}function Re(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function Le(e){return"string"==typeof e?je.fromBase64String(e):je.fromUint8Array(e)}function De(e){var t,n;return"server_timestamp"===(null===(n=((null===(t=null==e?void 0:e.mapValue)||void 0===t?void 0:t.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function Me(e){const t=e.mapValue.fields.__previous_value__;return De(t)?Me(t):t}function Fe(e){const t=Oe(e.mapValue.fields.__local_write_time__.timestampValue);return new Q(t.seconds,t.nanos)}class Ue{constructor(e,t,n,r,i,s,a,o,l){this.databaseId=e,this.appId=t,this.persistenceKey=n,this.host=r,this.ssl=i,this.forceLongPolling=s,this.autoDetectLongPolling=a,this.longPollingOptions=o,this.useFetchStreams=l}}class Ve{constructor(e,t){this.projectId=e,this.database=t||"(default)"}static empty(){return new Ve("","")}get isDefaultDatabase(){return"(default)"===this.database}isEqual(e){return e instanceof Ve&&e.projectId===this.projectId&&e.database===this.database}}const Be={mapValue:{fields:{__type__:{stringValue:"__max__"}}}};function ze(e){return"nullValue"in e?0:"booleanValue"in e?1:"integerValue"in e||"doubleValue"in e?2:"timestampValue"in e?3:"stringValue"in e?5:"bytesValue"in e?6:"referenceValue"in e?7:"geoPointValue"in e?8:"arrayValue"in e?9:"mapValue"in e?De(e)?4:tt(e)?9007199254740991:10:j()}function $e(e,t){if(e===t)return!0;const n=ze(e);if(n!==ze(t))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return Fe(e).isEqual(Fe(t));case 3:return function(e,t){if("string"==typeof e.timestampValue&&"string"==typeof t.timestampValue&&e.timestampValue.length===t.timestampValue.length)return e.timestampValue===t.timestampValue;const n=Oe(e.timestampValue),r=Oe(t.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(e,t);case 5:return e.stringValue===t.stringValue;case 6:return function(e,t){return Le(e.bytesValue).isEqual(Le(t.bytesValue))}(e,t);case 7:return e.referenceValue===t.referenceValue;case 8:return function(e,t){return Re(e.geoPointValue.latitude)===Re(t.geoPointValue.latitude)&&Re(e.geoPointValue.longitude)===Re(t.geoPointValue.longitude)}(e,t);case 2:return function(e,t){if("integerValue"in e&&"integerValue"in t)return Re(e.integerValue)===Re(t.integerValue);if("doubleValue"in e&&"doubleValue"in t){const n=Re(e.doubleValue),r=
2Re(t.doubleValue);return n===r?me(n)===me(r):isNaN(n)&&isNaN(r)}return!1}(e,t);case 9:return G(e.arrayValue.values||[],t.arrayValue.values||[],$e);case 10:return function(e,t){const n=e.mapValue.fields||{},r=t.mapValue.fields||{};if(xe(n)!==xe(r))return!1;for(const i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!$e(n[i],r[i])))return!1;return!0}(e,t);default:return j()}}function He(e,t){return void 0!==(e.values||[]).find((e=>$e(e,t)))}function qe(e,t){if(e===t)return 0;const n=ze(e),r=ze(t);if(n!==r)return K(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return K(e.booleanValue,t.booleanValue);case 2:return function(e,t){const n=Re(e.integerValue||e.doubleValue),r=Re(t.integerValue||t.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(e,t);case 3:return We(e.timestampValue,t.timestampValue);case 4:return We(Fe(e),Fe(t));case 5:return K(e.stringValue,t.stringValue);case 6:return function(e,t){const n=Le(e),r=Le(t);return n.compareTo(r)}(e.bytesValue,t.bytesValue);case 7:return function(e,t){const n=e.split("/"),r=t.split("/");for(let i=0;i<n.length&&i<r.length;i++){const e=K(n[i],r[i]);if(0!==e)return e}return K(n.length,r.length)}(e.referenceValue,t.referenceValue);case 8:return function(e,t){const n=K(Re(e.latitude),Re(t.latitude));return 0!==n?n:K(Re(e.longitude),Re(t.longitude))}(e.geoPointValue,t.geoPointValue);case 9:return function(e,t){const n=e.values||[],r=t.values||[];for(let i=0;i<n.length&&i<r.length;++i){const e=qe(n[i],r[i]);if(e)return e}return K(n.length,r.length)}(e.arrayValue,t.arrayValue);case 10:return function(e,t){if(e===Be.mapValue&&t===Be.mapValue)return 0;if(e===Be.mapValue)return 1;if(t===Be.mapValue)return-1;const n=e.fields||{},r=Object.keys(n),i=t.fields||{},s=Object.keys(i);r.sort(),s.sort();for(let a=0;a<r.length&&a<s.length;++a){const e=K(r[a],s[a]);if(0!==e)return e;const t=qe(n[r[a]],i[s[a]]);if(0!==t)return t}return K(r.length,s.length)}(e.mapValue,t.mapValue);default:throw j()}}function We(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return K(e,t);const n=Oe(e),r=Oe(t),i=K(n.seconds,r.seconds);return 0!==i?i:K(n.nanos,r.nanos)}function Ke(e){return Ge(e)}function Ge(e){return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?function(e){const t=Oe(e);return`time(${t.seconds},${t.nanos})`}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?function(e){return Le(e).toBase64()}(e.bytesValue):"referenceValue"in e?function(e){return te.fromName(e).toString()}(e.referenceValue):"geoPointValue"in e?function(e){return`geo(${e.latitude},${e.longitude})`}(e.geoPointValue):"arrayValue"in e?function(e){let t="[",n=!0;for(const r of e.values||[])n?n=!1:t+=",",t+=Ge(r);return t+"]"}(e.arrayValue):"mapValue"in e?function(e){const t=Object.keys(e.fields||{}).sort();let n="{",r=!0;for(const i of t)r?r=!1:n+=",",n+=`${i}:${Ge(e.fields[i])}`;return n+"}"}(e.mapValue):j()}function Qe(e){return!!e&&"integerValue"in e}function Xe(e){return!!e&&"arrayValue"in e}function Ye(e){return!!e&&"nullValue"in e}function Je(e){return!!e&&"doubleValue"in e&&isNaN(Number(e.doubleValue))}function Ze(e){return!!e&&"mapValue"in e}function et(e){if(e.geoPointValue)return{geoPointValue:Object.assign({},e.geoPointValue)};if(e.timestampValue&&"object"==typeof e.timestampValue)return{timestampValue:Object.assign({},e.timestampValue)};if(e.mapValue){const t={mapValue:{fields:{}}};return _e(e.mapValue.fields,((e,n)=>t.mapValue.fields[e]=et(n))),t}if(e.arrayValue){const t={arrayValue:{values:[]}};for(let n=0;n<(e.arrayValue.values||[]).length;++n)t.arrayValue.values[n]=et(e.arrayValue.values[n]);return t}return Object.assign({},e)}function tt(e){return"__max__"===(((e.mapValue||{}).fields||{}).__type__||{}).stringValue}class nt{constructor(e){this.value=e}static empty(){return new nt({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let t=this.value;for(let n=0;n<e.length-1;++n)if(t=(t.mapValue.fields||{})[e.get(n)],!Ze(t))return null;return t=(t.mapValue.fields||{})[e.lastSegment()],t||null}}set(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=et(t)}setAll(e){let t=ee.emptyPath(),n={},r=[];e.forEach(((e,i)=>{if(!t.isImmediateParentOf(i)){const e=this.getFieldsMap(t);this.applyChanges(e,n,r),n={},r=[],t=i.popLast()}e?n[i.lastSegment()]=et(e):r.push(i.lastSegment())}
vendor: 5,172 bytes, line 2
2));const i=this.getFieldsMap(t);this.applyChanges(i,n,r)}delete(e){const t=this.field(e.popLast());Ze(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}isEqual(e){return $e(this.value,e.value)}getFieldsMap(e){let t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(let n=0;n<e.length;++n){let r=t.mapValue.fields[e.get(n)];Ze(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},t.mapValue.fields[e.get(n)]=r),t=r}return t.mapValue.fields}applyChanges(e,t,n){_e(t,((t,n)=>e[t]=n));for(const r of n)delete e[r]}clone(){return new nt(et(this.value))}}function rt(e){const t=[];return _e(e.fields,((e,n)=>{const r=new ee([e]);if(Ze(n)){const e=rt(n.mapValue).fields;if(0===e.length)t.push(r);else for(const n of e)t.push(r.child(n))}else t.push(r)})),new Ie(t)}class it{constructor(e,t,n,r,i,s,a){this.key=e,this.documentType=t,this.version=n,this.readTime=r,this.createTime=i,this.data=s,this.documentState=a}static newInvalidDocument(e){return new it(e,0,X.min(),X.min(),X.min(),nt.empty(),0)}static newFoundDocument(e,t,n,r){return new it(e,1,t,X.min(),n,r,0)}static newNoDocument(e,t){return new it(e,2,t,X.min(),X.min(),nt.empty(),0)}static newUnknownDocument(e,t){return new it(e,3,t,X.min(),X.min(),nt.empty(),2)}convertToFoundDocument(e,t){return!this.createTime.isEqual(X.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=e),this.version=e,this.documentType=1,this.data=t,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=nt.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=nt.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=X.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(e){return e instanceof it&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)}mutableCopy(){return new it(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}class st{constructor(e,t){this.position=e,this.inclusive=t}}function at(e,t,n){let r=0;for(let i=0;i<e.position.length;i++){const s=t[i],a=e.position[i];if(r=s.field.isKeyField()?te.comparator(te.fromName(a.referenceValue),n.key):qe(a,n.data.field(s.field)),"desc"===s.dir&&(r*=-1),0!==r)break}return r}function ot(e,t){if(null===e)return null===t;if(null===t)return!1;if(e.inclusive!==t.inclusive||e.position.length!==t.position.length)return!1;for(let n=0;n<e.position.length;n++)if(!$e(e.position[n],t.position[n]))return!1;return!0}class lt{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc";this.field=e,this.dir=t}}function ct(e,t){return e.dir===t.dir&&e.field.isEqual(t.field)}class ut{}class dt extends ut{constructor(e,t,n){super(),this.field=e,this.op=t,this.value=n}static create(e,t,n){return e.isKeyField()?"in"===t||"not-in"===t?this.createKeyFieldInFilter(e,t,n):new bt(e,t,n):"array-contains"===t?new St(e,n):"in"===t?new Et(e,n):"not-in"===t?new kt(e,n):"array-contains-any"===t?new Ct(e,n):new dt(e,t,n)}static createKeyFieldInFilter(e,t,n){return"in"===t?new wt(e,n):new xt(e,n)}matches(e){const t=e.data.field(this.field);return"!="===this.op?null!==t&&this.matchesComparison(qe(t,this.value)):null!==t&&ze(this.value)===ze(t)&&this.matchesComparison(qe(t,this.value))}matchesComparison(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return 0===e;case"!=":return 0!==e;case">":return e>0;case">=":return e>=0;default:return j()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class ht extends ut{constructor(e,t){super(),this.filters=e,this.op=t,this.ae=null}static create(e,t){return new ht(e,t)}matches(e){return ft(this)?void 0===this.filters.find((t=>!t.matches(e))):void 0!==this.filters.find((t=>t.matches(e)))}getFlattenedFilters(){return null!==this.ae||(this.ae=this.filters.reduce(((e,t)=>e.concat(t.getFlattenedFilters())),[])),this.ae}getFilters(){return Object.assign([],this.filters)}}function ft(e){return"and"===e.op}function pt(e){return mt(e)&&ft(e)}function mt(e){for(const t of e.filters)if(t instanceof ht)return!1;return!0}function gt(e){if(e instanceof dt)return e.field.canonicalString()+e.op.toString()+Ke(e.value);if(pt(e))return e.filters.map((e=>gt(e))).join(",");{const t=e.filters.map((e=>gt(e))).join(",");
2return`${e.op}(${t})`}}function yt(e,t){return e instanceof dt?function(e,t){return t instanceof dt&&e.op===t.op&&e.field.isEqual(t.field)&&$e(e.value,t.value)}(e,t):e instanceof ht?function(e,t){return t instanceof ht&&e.op===t.op&&e.filters.length===t.filters.length&&e.filters.reduce(((e,n,r)=>e&&yt(n,t.filters[r])),!0)}(e,t):void j()}function vt(e){return e instanceof dt?function(e){return`${e.field.canonicalString()} ${e.op} ${Ke(e.value)}`}(e):e instanceof ht?function(e){return e.op.toString()+" {"+e.getFilters().map(vt).join(" ,")+"}"}(e):"Filter"}class bt extends dt{constructor(e,t,n){super(e,t,n),this.key=te.fromName(n.referenceValue)}matches(e){const t=te.comparator(e.key,this.key);return this.matchesComparison(t)}}class wt extends dt{constructor(e,t){super(e,"in",t),this.keys=_t("in",t)}matches(e){return this.keys.some((t=>t.isEqual(e.key)))}}class xt extends dt{constructor(e,t){super(e,"not-in",t),this.keys=_t("not-in",t)}matches(e){return!this.keys.some((t=>t.isEqual(e.key)))}}function _t(e,t){var n;return((null===(n=t.arrayValue)||void 0===n?void 0:n.values)||[]).map((e=>te.fromName(e.referenceValue)))}class St extends dt{constructor(e,t){super(e,"array-contains",t)}matches(e){const t=e.data.field(this.field);return Xe(t)&&He(t.arrayValue,this.value)}}class Et extends dt{constructor(e,t){super(e,"in",t)}matches(e){const t=e.data.field(this.field);return null!==t&&He(this.value.arrayValue,t)}}class kt extends dt{constructor(e,t){super(e,"not-in",t)}matches(e){if(He(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const t=e.data.field(this.field);return null!==t&&!He(this.value.arrayValue,t)}}class Ct extends dt{constructor(e,t){super(e,"array-contains-any",t)}matches(e){const t=e.data.field(this.field);return!(!Xe(t)||!t.arrayValue.values)&&t.arrayValue.values.some((e=>He(this.value.arrayValue,e)))}}class At{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;this.path=e,this.collectionGroup=t,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=s,this.endAt=a,this.ue=null}}function Tt(e){return new At(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,arguments.length>6&&void 0!==arguments[6]?arguments[6]:null)}function It(e){const t=O(e);if(null===t.ue){let e=t.path.canonicalString();null!==t.collectionGroup&&(e+="|cg:"+t.collectionGroup),e+="|f:",e+=t.filters.map((e=>gt(e))).join(","),e+="|ob:",e+=t.orderBy.map((e=>function(e){return e.field.canonicalString()+e.dir}(e))).join(","),pe(t.limit)||(e+="|l:",e+=t.limit),t.startAt&&(e+="|lb:",e+=t.startAt.inclusive?"b:":"a:",e+=t.startAt.position.map((e=>Ke(e))).join(",")),t.endAt&&(e+="|ub:",e+=t.endAt.inclusive?"a:":"b:",e+=t.endAt.position.map((e=>Ke(e))).join(",")),t.ue=e}return t.ue}function Pt(e,t){if(e.limit!==t.limit)return!1;if(e.orderBy.length!==t.orderBy.length)return!1;for(let n=0;n<e.orderBy.length;n++)if(!ct(e.orderBy[n],t.orderBy[n]))return!1;if(e.filters.length!==t.filters.length)return!1;for(let n=0;n<e.filters.length;n++)if(!yt(e.filters[n],t.filters[n]))return!1;return e.collectionGroup===t.collectionGroup&&!!e.path.isEqual(t.path)&&!!ot(e.startAt,t.startAt)&&ot(e.endAt,t.endAt)}function jt(e){return te.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}class Nt{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"F",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;this.path=e,this.collectionGroup=t,this.explicitOrderBy=n,this.filters=r,this.limit=i,this.limitType=s,this.startAt=a,this.endAt=o,this.ce=null,this.le=null,this.he=null,this.startAt,this.endAt}}function Ot(e,t,n,r,i,s,a,o){return new Nt(e,t,n,r,i,s,a,o)}function Rt(e){return new Nt(e)}function Lt(e){return 0===e.filters.length&&null===e.limit&&null==e.startAt&&null==e.endAt&&(0===e.explicitOrderBy.length||1===e.explicitOrderBy.length&&e.explicitOrderBy[0].field.isKeyField())}function Dt(e){return null!==e.collectionGroup}function Mt(e){const t=O(e);if(null===t.ce){t.ce=[];const e=new Set;for(const i of t.explicitOrderBy)t.ce.push(i),e.add(i.field.canonicalString());const n=t.explicitOrderBy.length>0?t.explicitOrderBy[t.explicitOrderBy.length-1].dir:"asc",r=function(e){let t=new Ae(ee.comparator);
2return e.filters.forEach((e=>{e.getFlattenedFilters().forEach((e=>{e.isInequality()&&(t=t.add(e.field))}))})),t}(t);r.forEach((r=>{e.has(r.canonicalString())||r.isKeyField()||t.ce.push(new lt(r,n))})),e.has(ee.keyField().canonicalString())||t.ce.push(new lt(ee.keyField(),n))}return t.ce}function Ft(e){const t=O(e);return t.le||(t.le=Ut(t,Mt(e))),t.le}function Ut(e,t){if("F"===e.limitType)return Tt(e.path,e.collectionGroup,t,e.filters,e.limit,e.startAt,e.endAt);{t=t.map((e=>{const t="desc"===e.dir?"asc":"desc";return new lt(e.field,t)}));const n=e.endAt?new st(e.endAt.position,e.endAt.inclusive):null,r=e.startAt?new st(e.startAt.position,e.startAt.inclusive):null;return Tt(e.path,e.collectionGroup,t,e.filters,e.limit,n,r)}}function Vt(e,t,n){return new Nt(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),t,n,e.startAt,e.endAt)}function Bt(e,t){return Pt(Ft(e),Ft(t))&&e.limitType===t.limitType}function zt(e){return`${It(Ft(e))}|lt:${e.limitType}`}function $t(e){return`Query(target=${function(e){let t=e.path.canonicalString();return null!==e.collectionGroup&&(t+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(t+=`, filters: [${e.filters.map((e=>vt(e))).join(", ")}]`),pe(e.limit)||(t+=", limit: "+e.limit),e.orderBy.length>0&&(t+=`, orderBy: [${e.orderBy.map((e=>function(e){return`${e.field.canonicalString()} (${e.dir})`}(e))).join(", ")}]`),e.startAt&&(t+=", startAt: ",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map((e=>Ke(e))).join(",")),e.endAt&&(t+=", endAt: ",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map((e=>Ke(e))).join(",")),`Target(${t})`}(Ft(e))}; limitType=${e.limitType})`}function Ht(e,t){return t.isFoundDocument()&&function(e,t){const n=t.key.path;return null!==e.collectionGroup?t.key.hasCollectionId(e.collectionGroup)&&e.path.isPrefixOf(n):te.isDocumentKey(e.path)?e.path.isEqual(n):e.path.isImmediateParentOf(n)}(e,t)&&function(e,t){for(const n of Mt(e))if(!n.field.isKeyField()&&null===t.data.field(n.field))return!1;return!0}(e,t)&&function(e,t){for(const n of e.filters)if(!n.matches(t))return!1;return!0}(e,t)&&function(e,t){return!(e.startAt&&!function(e,t,n){const r=at(e,t,n);return e.inclusive?r<=0:r<0}(e.startAt,Mt(e),t))&&!(e.endAt&&!function(e,t,n){const r=at(e,t,n);return e.inclusive?r>=0:r>0}(e.endAt,Mt(e),t))}(e,t)}function qt(e){return e.collectionGroup||(e.path.length%2==1?e.path.lastSegment():e.path.get(e.path.length-2))}function Wt(e){return(t,n)=>{let r=!1;for(const i of Mt(e)){const e=Kt(i,t,n);if(0!==e)return e;r=r||i.field.isKeyField()}return 0}}function Kt(e,t,n){const r=e.field.isKeyField()?te.comparator(t.key,n.key):function(e,t,n){const r=t.data.field(e),i=n.data.field(e);return null!==r&&null!==i?qe(r,i):j()}(e.field,t,n);switch(e.dir){case"asc":return r;case"desc":return-1*r;default:return j()}}class Gt{constructor(e,t){this.mapKeyFn=e,this.equalsFn=t,this.inner={},this.innerSize=0}get(e){const t=this.mapKeyFn(e),n=this.inner[t];if(void 0!==n)for(const[r,i]of n)if(this.equalsFn(r,e))return i}has(e){return void 0!==this.get(e)}set(e,t){const n=this.mapKeyFn(e),r=this.inner[n];if(void 0===r)return this.inner[n]=[[e,t]],void this.innerSize++;for(let i=0;i<r.length;i++)if(this.equalsFn(r[i][0],e))return void(r[i]=[e,t]);r.push([e,t]),this.innerSize++}delete(e){const t=this.mapKeyFn(e),n=this.inner[t];if(void 0===n)return!1;for(let r=0;r<n.length;r++)if(this.equalsFn(n[r][0],e))return 1===n.length?delete this.inner[t]:n.splice(r,1),this.innerSize--,!0;return!1}forEach(e){_e(this.inner,((t,n)=>{for(const[r,i]of n)e(r,i)}))}isEmpty(){return Se(this.inner)}size(){return this.innerSize}}const Qt=new Ee(te.comparator);function Xt(){return Qt}const Yt=new Ee(te.comparator);function Jt(){let e=Yt;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const i of n)e=e.insert(i.key,i);return e}function Zt(e){let t=Yt;return e.forEach(((e,n)=>t=t.insert(e,n.overlayedDocument))),t}function en(){return nn()}function tn(){return nn()}function nn(){return new Gt((e=>e.toString()),((e,t)=>e.isEqual(t)))}const rn=new Ee(te.comparator),sn=new Ae(te.comparator);function an(){let e=sn;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const i of n)e=e.add(i);return e}const on=new Ae(K);function ln(){return on}function cn(e,t){if(e.useProto3Json){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:me(t)?"-0":t}}function un(e){return{integerValue:""+e}}function dn(e,t){return ge(t)?un(t):cn(e,t)}class hn{constructor(){this._=void 0}}function fn(e,t,n){return e instanceof gn?function(e,t){const n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:e.seconds,nanos:e.nanoseconds}}}};return t&&De(t)&&(t=Me(t)),t&&(n.fields.__previous_value__=t),{mapValue:n}}(n,t):e instanceof yn?vn(e,t):e instanceof bn?wn(e,t):function(e,t){const n=mn(e,t),r=_n(n)+_n(e.Pe);return Qe(n)&&Qe(e.Pe)?un(r):cn(e.serializer,r)}(e,t)}function pn(e,t,n){return e instanceof yn?vn(e,t):e instanceof bn?wn(e,t):n}function mn(e,t){return e instanceof xn?function(e){return Qe(e)||function(e){return!!e&&"doubleValue"in e}(e)}(t)?t:{integerValue:0}:null}class gn extends hn{}class yn extends hn{constructor(e){super(),this.elements=e}}function vn(e,t){const n=Sn(t);for(const r of e.elements)n.some((e=>$e(e,r)))||n.push(r);return{arrayValue:{values:n}}}class bn extends hn{constructor(e){super(),this.elements=e}}function wn(e,t){let n=Sn(t);for(const r of e.elements)n=n.filter((e=>!$e(e,r)));return{arrayValue:{values:n}}}
2class xn extends hn{constructor(e,t){super(),this.serializer=e,this.Pe=t}}function _n(e){return Re(e.integerValue||e.doubleValue)}function Sn(e){return Xe(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}class En{constructor(e,t){this.version=e,this.transformResults=t}}class kn{constructor(e,t){this.updateTime=e,this.exists=t}static none(){return new kn}static exists(e){return new kn(void 0,e)}static updateTime(e){return new kn(e)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function Cn(e,t){return void 0!==e.updateTime?t.isFoundDocument()&&t.version.isEqual(e.updateTime):void 0===e.exists||e.exists===t.isFoundDocument()}class An{}function Tn(e,t){if(!e.hasLocalMutations||t&&0===t.fields.length)return null;if(null===t)return e.isNoDocument()?new Fn(e.key,kn.none()):new On(e.key,e.data,kn.none());{const n=e.data,r=nt.empty();let i=new Ae(ee.comparator);for(let e of t.fields)if(!i.has(e)){let t=n.field(e);null===t&&e.length>1&&(e=e.popLast(),t=n.field(e)),null===t?r.delete(e):r.set(e,t),i=i.add(e)}return new Rn(e.key,r,new Ie(i.toArray()),kn.none())}}function In(e,t,n){e instanceof On?function(e,t,n){const r=e.value.clone(),i=Dn(e.fieldTransforms,t,n.transformResults);r.setAll(i),t.convertToFoundDocument(n.version,r).setHasCommittedMutations()}(e,t,n):e instanceof Rn?function(e,t,n){if(!Cn(e.precondition,t))return void t.convertToUnknownDocument(n.version);const r=Dn(e.fieldTransforms,t,n.transformResults),i=t.data;i.setAll(Ln(e)),i.setAll(r),t.convertToFoundDocument(n.version,i).setHasCommittedMutations()}(e,t,n):function(e,t,n){t.convertToNoDocument(n.version).setHasCommittedMutations()}(0,t,n)}function Pn(e,t,n,r){return e instanceof On?function(e,t,n,r){if(!Cn(e.precondition,t))return n;const i=e.value.clone(),s=Mn(e.fieldTransforms,r,t);return i.setAll(s),t.convertToFoundDocument(t.version,i).setHasLocalMutations(),null}(e,t,n,r):e instanceof Rn?function(e,t,n,r){if(!Cn(e.precondition,t))return n;const i=Mn(e.fieldTransforms,r,t),s=t.data;return s.setAll(Ln(e)),s.setAll(i),t.convertToFoundDocument(t.version,s).setHasLocalMutations(),null===n?null:n.unionWith(e.fieldMask.fields).unionWith(e.fieldTransforms.map((e=>e.field)))}(e,t,n,r):function(e,t,n){return Cn(e.precondition,t)?(t.convertToNoDocument(t.version).setHasLocalMutations(),null):n}(e,t,n)}function jn(e,t){let n=null;for(const r of e.fieldTransforms){const e=t.data.field(r.field),i=mn(r.transform,e||null);null!=i&&(null===n&&(n=nt.empty()),n.set(r.field,i))}return n||null}function Nn(e,t){return e.type===t.type&&!!e.key.isEqual(t.key)&&!!e.precondition.isEqual(t.precondition)&&!!function(e,t){return void 0===e&&void 0===t||!(!e||!t)&&G(e,t,((e,t)=>function(e,t){return e.field.isEqual(t.field)&&function(e,t){return e instanceof yn&&t instanceof yn||e instanceof bn&&t instanceof bn?G(e.elements,t.elements,$e):e instanceof xn&&t instanceof xn?$e(e.Pe,t.Pe):e instanceof gn&&t instanceof gn}(e.transform,t.transform)}(e,t)))}(e.fieldTransforms,t.fieldTransforms)&&(0===e.type?e.value.isEqual(t.value):1!==e.type||e.data.isEqual(t.data)&&e.fieldMask.isEqual(t.fieldMask))}class On extends An{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];super(),this.key=e,this.value=t,this.precondition=n,this.fieldTransforms=r,this.type=0}getFieldMask(){return null}}class Rn extends An{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];super(),this.key=e,this.data=t,this.fieldMask=n,this.precondition=r,this.fieldTransforms=i,this.type=1}getFieldMask(){return this.fieldMask}}function Ln(e){const t=new Map;return e.fieldMask.fields.forEach((n=>{if(!n.isEmpty()){const r=e.data.field(n);t.set(n,r)}})),t}function Dn(e,t,n){const r=new Map;N(e.length===n.length);for(let i=0;i<n.length;i++){const s=e[i],a=s.transform,o=t.data.field(s.field);r.set(s.field,pn(a,o,n[i]))}return r}function Mn(e,t,n){const r=new Map;for(const i of e){const e=i.transform,s=n.data.field(i.field);r.set(i.field,fn(e,s,t))}return r}class Fn extends An{constructor(e,t){super(),this.key=e,this.prec
vendor: 4,863 bytes, line 2
2ondition=t,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class Un extends An{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}class Vn{constructor(e,t,n,r){this.batchId=e,this.localWriteTime=t,this.baseMutations=n,this.mutations=r}applyToRemoteDocument(e,t){const n=t.mutationResults;for(let r=0;r<this.mutations.length;r++){const t=this.mutations[r];t.key.isEqual(e.key)&&In(t,e,n[r])}}applyToLocalView(e,t){for(const n of this.baseMutations)n.key.isEqual(e.key)&&(t=Pn(n,e,t,this.localWriteTime));for(const n of this.mutations)n.key.isEqual(e.key)&&(t=Pn(n,e,t,this.localWriteTime));return t}applyToLocalDocumentSet(e,t){const n=tn();return this.mutations.forEach((r=>{const i=e.get(r.key),s=i.overlayedDocument;let a=this.applyToLocalView(s,i.mutatedFields);a=t.has(r.key)?null:a;const o=Tn(s,a);null!==o&&n.set(r.key,o),s.isValidDocument()||s.convertToNoDocument(X.min())})),n}keys(){return this.mutations.reduce(((e,t)=>e.add(t.key)),an())}isEqual(e){return this.batchId===e.batchId&&G(this.mutations,e.mutations,((e,t)=>Nn(e,t)))&&G(this.baseMutations,e.baseMutations,((e,t)=>Nn(e,t)))}}class Bn{constructor(e,t,n,r){this.batch=e,this.commitVersion=t,this.mutationResults=n,this.docVersions=r}static from(e,t,n){N(e.mutations.length===n.length);let r=rn;const i=e.mutations;for(let s=0;s<i.length;s++)r=r.insert(i[s].key,n[s].version);return new Bn(e,t,n,r)}}class zn{constructor(e,t){this.largestBatchId=e,this.mutation=t}getKey(){return this.mutation.key}isEqual(e){return null!==e&&this.mutation===e.mutation}toString(){return`Overlay{\n largestBatchId: ${this.largestBatchId},\n mutation: ${this.mutation.toString()}\n }`}}class $n{constructor(e,t){this.count=e,this.unchangedNames=t}}var Hn,qn;function Wn(e){switch(e){default:return j();case R.CANCELLED:case R.UNKNOWN:case R.DEADLINE_EXCEEDED:case R.RESOURCE_EXHAUSTED:case R.INTERNAL:case R.UNAVAILABLE:case R.UNAUTHENTICATED:return!1;case R.INVALID_ARGUMENT:case R.NOT_FOUND:case R.ALREADY_EXISTS:case R.PERMISSION_DENIED:case R.FAILED_PRECONDITION:case R.ABORTED:case R.OUT_OF_RANGE:case R.UNIMPLEMENTED:case R.DATA_LOSS:return!0}}function Kn(e){if(void 0===e)return T("GRPC error has no .code"),R.UNKNOWN;switch(e){case Hn.OK:return R.OK;case Hn.CANCELLED:return R.CANCELLED;case Hn.UNKNOWN:return R.UNKNOWN;case Hn.DEADLINE_EXCEEDED:return R.DEADLINE_EXCEEDED;case Hn.RESOURCE_EXHAUSTED:return R.RESOURCE_EXHAUSTED;case Hn.INTERNAL:return R.INTERNAL;case Hn.UNAVAILABLE:return R.UNAVAILABLE;case Hn.UNAUTHENTICATED:return R.UNAUTHENTICATED;case Hn.INVALID_ARGUMENT:return R.INVALID_ARGUMENT;case Hn.NOT_FOUND:return R.NOT_FOUND;case Hn.ALREADY_EXISTS:return R.ALREADY_EXISTS;case Hn.PERMISSION_DENIED:return R.PERMISSION_DENIED;case Hn.FAILED_PRECONDITION:return R.FAILED_PRECONDITION;case Hn.ABORTED:return R.ABORTED;case Hn.OUT_OF_RANGE:return R.OUT_OF_RANGE;case Hn.UNIMPLEMENTED:return R.UNIMPLEMENTED;case Hn.DATA_LOSS:return R.DATA_LOSS;default:return j()}}(qn=Hn||(Hn={}))[qn.OK=0]="OK",qn[qn.CANCELLED=1]="CANCELLED",qn[qn.UNKNOWN=2]="UNKNOWN",qn[qn.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",qn[qn.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",qn[qn.NOT_FOUND=5]="NOT_FOUND",qn[qn.ALREADY_EXISTS=6]="ALREADY_EXISTS",qn[qn.PERMISSION_DENIED=7]="PERMISSION_DENIED",qn[qn.UNAUTHENTICATED=16]="UNAUTHENTICATED",qn[qn.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",qn[qn.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",qn[qn.ABORTED=10]="ABORTED",qn[qn.OUT_OF_RANGE=11]="OUT_OF_RANGE",qn[qn.UNIMPLEMENTED=12]="UNIMPLEMENTED",qn[qn.INTERNAL=13]="INTERNAL",qn[qn.UNAVAILABLE=14]="UNAVAILABLE",qn[qn.DATA_LOSS=15]="DATA_LOSS";let Gn=null;function Qn(){return new TextEncoder}const Xn=new r([4294967295,4294967295],0);function Yn(e){const t=Qn().encode(e),n=new i;return n.update(t),new Uint8Array(n.digest())}function Jn(e){const t=new DataView(e.buffer),n=t.getUint32(0,!0),i=t.getUint32(4,!0),s=t.getUint32(8,!0),a=t.getUint32(12,!0);return[new r([n,i],0),new r([s,a],0)]}class Zn{constructor(e,t,n){if(this.bitmap=e,this.padding=t,this.hashCount=n,t<0||t>=8)throw new er(`Invalid padding: ${t}`);if(n<0)throw new er(`Invalid hash count: ${n}`);if(e.length>0&&0===this.hashCount)throw new er(`Invalid hash count: ${n}`);if(0===e.length&&0!==t)throw new er(`Invalid padding when bitmap length is 0: ${t}`);this.Ie=8*e.length-t,this.Te=r.fromNumber(this.Ie)}Ee(e,t,n){let i=e.add(t.multiply(r.fromNumber(n)));return 1===i.compare(Xn)&&(i=new r([i.getBits(0),i.getBits(1)],0)),i.modulo(this.Te).toNumber()}de(e){return 0!=(this.bitmap[Math.floor(e/8)]&1<<e%8)}mightContain(e){if(0===this.Ie)return!1;const t=Yn(e),[n,r]=Jn(t);for(let i=0;i<this.hashCount;i++){const e=this.Ee(n,r,i);if(!this.de(e))return!1}return!0}static create(e,t,n){const r=e%8==0?0:8-e%8,i=new Uint8Array(Math.ceil(e/8)),s=new Zn(i,r,t);
2return n.forEach((e=>s.insert(e))),s}insert(e){if(0===this.Ie)return;const t=Yn(e),[n,r]=Jn(t);for(let i=0;i<this.hashCount;i++){const e=this.Ee(n,r,i);this.Ae(e)}}Ae(e){const t=Math.floor(e/8),n=e%8;this.bitmap[t]|=1<<n}}class er extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}class tr{constructor(e,t,n,r,i){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=n,this.documentUpdates=r,this.resolvedLimboDocuments=i}static createSynthesizedRemoteEventForCurrentChange(e,t,n){const r=new Map;return r.set(e,nr.createSynthesizedTargetChangeForCurrentChange(e,t,n)),new tr(X.min(),r,new Ee(K),Xt(),an())}}class nr{constructor(e,t,n,r,i){this.resumeToken=e,this.current=t,this.addedDocuments=n,this.modifiedDocuments=r,this.removedDocuments=i}static createSynthesizedTargetChangeForCurrentChange(e,t,n){return new nr(n,t,an(),an(),an())}}class rr{constructor(e,t,n,r){this.Re=e,this.removedTargetIds=t,this.key=n,this.Ve=r}}class ir{constructor(e,t){this.targetId=e,this.me=t}}class sr{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:je.EMPTY_BYTE_STRING,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=r}}class ar{constructor(){this.fe=0,this.ge=cr(),this.pe=je.EMPTY_BYTE_STRING,this.ye=!1,this.we=!0}get current(){return this.ye}get resumeToken(){return this.pe}get Se(){return 0!==this.fe}get be(){return this.we}De(e){e.approximateByteSize()>0&&(this.we=!0,this.pe=e)}Ce(){let e=an(),t=an(),n=an();return this.ge.forEach(((r,i)=>{switch(i){case 0:e=e.add(r);break;case 2:t=t.add(r);break;case 1:n=n.add(r);break;default:j()}})),new nr(this.pe,this.ye,e,t,n)}ve(){this.we=!1,this.ge=cr()}Fe(e,t){this.we=!0,this.ge=this.ge.insert(e,t)}Me(e){this.we=!0,this.ge=this.ge.remove(e)}xe(){this.fe+=1}Oe(){this.fe-=1,N(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class or{constructor(e){this.Le=e,this.Be=new Map,this.ke=Xt(),this.qe=lr(),this.Qe=new Ee(K)}Ke(e){for(const t of e.Re)e.Ve&&e.Ve.isFoundDocument()?this.$e(t,e.Ve):this.Ue(t,e.key,e.Ve);for(const t of e.removedTargetIds)this.Ue(t,e.key,e.Ve)}We(e){this.forEachTarget(e,(t=>{const n=this.Ge(t);switch(e.state){case 0:this.ze(t)&&n.De(e.resumeToken);break;case 1:n.Oe(),n.Se||n.ve(),n.De(e.resumeToken);break;case 2:n.Oe(),n.Se||this.removeTarget(t);break;case 3:this.ze(t)&&(n.Ne(),n.De(e.resumeToken));break;case 4:this.ze(t)&&(this.je(t),n.De(e.resumeToken));break;default:j()}}))}forEachTarget(e,t){e.targetIds.length>0?e.targetIds.forEach(t):this.Be.forEach(((e,n)=>{this.ze(n)&&t(n)}))}He(e){const t=e.targetId,n=e.me.count,r=this.Je(t);if(r){const i=r.target;if(jt(i))if(0===n){const e=new te(i.path);this.Ue(t,e,it.newNoDocument(e,X.min()))}else N(1===n);else{const r=this.Ye(t);if(r!==n){const n=this.Ze(e),i=n?this.Xe(n,e,r):1;if(0!==i){this.je(t);const e=2===i?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.Qe=this.Qe.insert(t,e)}null==Gn||Gn.et(function(e,t,n,r,i){var s,a,o,l,c,u;const d={localCacheCount:e,existenceFilterCount:t.count,databaseId:n.database,projectId:n.projectId},h=t.unchangedNames;return h&&(d.bloomFilter={applied:0===i,hashCount:null!==(s=null==h?void 0:h.hashCount)&&void 0!==s?s:0,bitmapLength:null!==(l=null===(o=null===(a=null==h?void 0:h.bits)||void 0===a?void 0:a.bitmap)||void 0===o?void 0:o.length)&&void 0!==l?l:0,padding:null!==(u=null===(c=null==h?void 0:h.bits)||void 0===c?void 0:c.padding)&&void 0!==u?u:0,mightContain:e=>{var t;return null!==(t=null==r?void 0:r.mightContain(e))&&void 0!==t&&t}}),d}(r,e.me,this.Le.tt(),n,i))}}}}Ze(e){const t=e.me.unchangedNames;if(!t||!t.bits)return null;const{bits:{bitmap:n="",padding:r=0},hashCount:i=0}=t;let s,a;try{s=Le(n).toUint8Array()}catch(e){if(e instanceof Pe)return I("Decoding the base64 bloom filter in existence filter failed ("+e.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw e}try{a=new Zn(s,r,i)}catch(e){return I(e instanceof er?"BloomFilter error: ":"Applying bloom filter failed: ",e),null}return 0===a.Ie?null:a}Xe(e,t,n){return t.me.count===n-this.nt(e,t.targetId)?0:2}nt(e,t){const n=this.Le.getRemoteKeysForTarget(t);let r=0;
2return n.forEach((n=>{const i=this.Le.tt(),s=`projects/${i.projectId}/databases/${i.database}/documents/${n.path.canonicalString()}`;e.mightContain(s)||(this.Ue(t,n,null),r++)})),r}rt(e){const t=new Map;this.Be.forEach(((n,r)=>{const i=this.Je(r);if(i){if(n.current&&jt(i.target)){const t=new te(i.target.path);null!==this.ke.get(t)||this.it(r,t)||this.Ue(r,t,it.newNoDocument(t,e))}n.be&&(t.set(r,n.Ce()),n.ve())}}));let n=an();this.qe.forEach(((e,t)=>{let r=!0;t.forEachWhile((e=>{const t=this.Je(e);return!t||"TargetPurposeLimboResolution"===t.purpose||(r=!1,!1)})),r&&(n=n.add(e))})),this.ke.forEach(((t,n)=>n.setReadTime(e)));const r=new tr(e,t,this.Qe,this.ke,n);return this.ke=Xt(),this.qe=lr(),this.Qe=new Ee(K),r}$e(e,t){if(!this.ze(e))return;const n=this.it(e,t.key)?2:0;this.Ge(e).Fe(t.key,n),this.ke=this.ke.insert(t.key,t),this.qe=this.qe.insert(t.key,this.st(t.key).add(e))}Ue(e,t,n){if(!this.ze(e))return;const r=this.Ge(e);this.it(e,t)?r.Fe(t,1):r.Me(t),this.qe=this.qe.insert(t,this.st(t).delete(e)),n&&(this.ke=this.ke.insert(t,n))}removeTarget(e){this.Be.delete(e)}Ye(e){const t=this.Ge(e).Ce();return this.Le.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size}xe(e){this.Ge(e).xe()}Ge(e){let t=this.Be.get(e);return t||(t=new ar,this.Be.set(e,t)),t}st(e){let t=this.qe.get(e);return t||(t=new Ae(K),this.qe=this.qe.insert(e,t)),t}ze(e){const t=null!==this.Je(e);return t||A("WatchChangeAggregator","Detected inactive target",e),t}Je(e){const t=this.Be.get(e);return t&&t.Se?null:this.Le.ot(e)}je(e){this.Be.set(e,new ar),this.Le.getRemoteKeysForTarget(e).forEach((t=>{this.Ue(e,t,null)}))}it(e,t){return this.Le.getRemoteKeysForTarget(e).has(t)}}function lr(){return new Ee(te.comparator)}function cr(){return new Ee(te.comparator)}const ur={asc:"ASCENDING",desc:"DESCENDING"},dr={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},hr={and:"AND",or:"OR"};class fr{constructor(e,t){this.databaseId=e,this.useProto3Json=t}}function pr(e,t){return e.useProto3Json||pe(t)?t:{value:t}}function mr(e,t){return e.useProto3Json?`${new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+t.nanoseconds).slice(-9)}Z`:{seconds:""+t.seconds,nanos:t.nanoseconds}}function gr(e,t){return e.useProto3Json?t.toBase64():t.toUint8Array()}function yr(e,t){return mr(e,t.toTimestamp())}function vr(e){return N(!!e),X.fromTimestamp(function(e){const t=Oe(e);return new Q(t.seconds,t.nanos)}(e))}function br(e,t){return wr(e,t).canonicalString()}function wr(e,t){const n=function(e){return new J(["projects",e.projectId,"databases",e.database])}(e).child("documents");return void 0===t?n:n.child(t)}function xr(e){const t=J.fromString(e);return N(Br(t)),t}function _r(e,t){return br(e.databaseId,t.path)}function Sr(e,t){const n=xr(t);if(n.get(1)!==e.databaseId.projectId)throw new L(R.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+e.databaseId.projectId);if(n.get(3)!==e.databaseId.database)throw new L(R.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+e.databaseId.database);return new te(Ar(n))}function Er(e,t){return br(e.databaseId,t)}function kr(e){const t=xr(e);return 4===t.length?J.emptyPath():Ar(t)}function Cr(e){return new J(["projects",e.databaseId.projectId,"databases",e.databaseId.database]).canonicalString()}function Ar(e){return N(e.length>4&&"documents"===e.get(4)),e.popFirst(5)}function Tr(e,t,n){return{name:_r(e,t),fields:n.value.mapValue.fields}}function Ir(e,t){let n;if(t instanceof On)n={update:Tr(e,t.key,t.value)};else if(t instanceof Fn)n={delete:_r(e,t.key)};else if(t instanceof Rn)n={update:Tr(e,t.key,t.data),updateMask:Vr(t.fieldMask)};else{if(!(t instanceof Un))return j();n={verify:_r(e,t.key)}}return t.fieldTransforms.length>0&&(n.updateTransforms=t.fieldTransforms.map((e=>function(e,t){const n=t.transform;if(n instanceof gn)return{fieldPath:t.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof yn)return{fieldPath:t.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof bn)return{fieldPath:t.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof xn)return{fieldPath:t.field.canonicalString(),increment:n.Pe};throw j()}(0,e)))),t.precondition.isNone||(n.currentDocument=function(e,t){return void 0!==t.updateTime?{updateTime:yr(e,t.updateTime)}:void 0!==t.exists?{exists:t.exists}:j()}(e,t.precondition)),n}function Pr(e,t){return{documents:[Er(e,t.path)]}}function jr(e,t){const n={structuredQuery:{}},r=t.path;let i;null!==t.collectionGroup?(i=r,n.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(i=r.popLast(),n.structuredQuery.from=[{collectionId:r.lastSegment()}]),n.parent=Er(e,i);const s=function(e){if(0!==e.length)return Ur(ht.create(e,"and"))}(t.filters);s&&(n.structuredQuery.where=s);const a=function(e){if(0!==e.length)return e.map((e=>function(e){return{field:Mr(e.field),direction:Rr(e.dir)}}(e)))}(t.orderBy);a&&(n.structuredQuery.orderBy=a);const o=pr(e,t.limit);return null!==o&&(n.structuredQuery.limit=o),t.startAt&&(n.structuredQuery.startAt=function(e){return{before:e.inclusive,values:e.position}}(t.startAt)),t.endAt&&(n.structuredQuery.endAt=function(e){return{before:!e.inclusive,values:e.position}}(t.endAt)),{_t:n,parent:i}}function Nr(e){let t=kr(e.parent);
2const n=e.structuredQuery,r=n.from?n.from.length:0;let i=null;if(r>0){N(1===r);const e=n.from[0];e.allDescendants?i=e.collectionId:t=t.child(e.collectionId)}let s=[];n.where&&(s=function(e){const t=Or(e);return t instanceof ht&&pt(t)?t.getFilters():[t]}(n.where));let a=[];n.orderBy&&(a=function(e){return e.map((e=>function(e){return new lt(Fr(e.field),function(e){switch(e){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction))}(e)))}(n.orderBy));let o=null;n.limit&&(o=function(e){let t;return t="object"==typeof e?e.value:e,pe(t)?null:t}(n.limit));let l=null;n.startAt&&(l=function(e){const t=!!e.before,n=e.values||[];return new st(n,t)}(n.startAt));let c=null;return n.endAt&&(c=function(e){const t=!e.before,n=e.values||[];return new st(n,t)}(n.endAt)),Ot(t,i,a,s,o,"F",l,c)}function Or(e){return void 0!==e.unaryFilter?function(e){switch(e.unaryFilter.op){case"IS_NAN":const t=Fr(e.unaryFilter.field);return dt.create(t,"==",{doubleValue:NaN});case"IS_NULL":const n=Fr(e.unaryFilter.field);return dt.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const r=Fr(e.unaryFilter.field);return dt.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const i=Fr(e.unaryFilter.field);return dt.create(i,"!=",{nullValue:"NULL_VALUE"});default:return j()}}(e):void 0!==e.fieldFilter?function(e){return dt.create(Fr(e.fieldFilter.field),function(e){switch(e){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return j()}}(e.fieldFilter.op),e.fieldFilter.value)}(e):void 0!==e.compositeFilter?function(e){return ht.create(e.compositeFilter.filters.map((e=>Or(e))),function(e){switch(e){case"AND":return"and";case"OR":return"or";default:return j()}}(e.compositeFilter.op))}(e):j()}function Rr(e){return ur[e]}function Lr(e){return dr[e]}function Dr(e){return hr[e]}function Mr(e){return{fieldPath:e.canonicalString()}}function Fr(e){return ee.fromServerFormat(e.fieldPath)}function Ur(e){return e instanceof dt?function(e){if("=="===e.op){if(Je(e.value))return{unaryFilter:{field:Mr(e.field),op:"IS_NAN"}};if(Ye(e.value))return{unaryFilter:{field:Mr(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(Je(e.value))return{unaryFilter:{field:Mr(e.field),op:"IS_NOT_NAN"}};if(Ye(e.value))return{unaryFilter:{field:Mr(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Mr(e.field),op:Lr(e.op),value:e.value}}}(e):e instanceof ht?function(e){const t=e.getFilters().map((e=>Ur(e)));return 1===t.length?t[0]:{compositeFilter:{op:Dr(e.op),filters:t}}}(e):j()}function Vr(e){const t=[];return e.fields.forEach((e=>t.push(e.canonicalString()))),{fieldPaths:t}}function Br(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)}class zr{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:X.min(),s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:X.min(),a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:je.EMPTY_BYTE_STRING,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;this.target=e,this.targetId=t,this.purpose=n,this.sequenceNumber=r,this.snapshotVersion=i,this.lastLimboFreeSnapshotVersion=s,this.resumeToken=a,this.expectedCount=o}withSequenceNumber(e){return new zr(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,t){return new zr(this.target,this.targetId,this.purpose,this.sequenceNumber,t,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new zr(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new zr(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}class $r{constructor(e){this.ct=e}}function Hr(e){const t=Nr({parent:e.parent,structuredQuery:e.structuredQuery});return"LAST"===e.limitType?Vt(t,t.limit,"L"):t}class qr{constructor(){}
vendor: 4,418 bytes, line 2
2It(e,t){this.Tt(e,t),t.Et()}Tt(e,t){if("nullValue"in e)this.dt(t,5);else if("booleanValue"in e)this.dt(t,10),t.At(e.booleanValue?1:0);else if("integerValue"in e)this.dt(t,15),t.At(Re(e.integerValue));else if("doubleValue"in e){const n=Re(e.doubleValue);isNaN(n)?this.dt(t,13):(this.dt(t,15),me(n)?t.At(0):t.At(n))}else if("timestampValue"in e){let n=e.timestampValue;this.dt(t,20),"string"==typeof n&&(n=Oe(n)),t.Rt(`${n.seconds||""}`),t.At(n.nanos||0)}else if("stringValue"in e)this.Vt(e.stringValue,t),this.ft(t);else if("bytesValue"in e)this.dt(t,30),t.gt(Le(e.bytesValue)),this.ft(t);else if("referenceValue"in e)this.yt(e.referenceValue,t);else if("geoPointValue"in e){const n=e.geoPointValue;this.dt(t,45),t.At(n.latitude||0),t.At(n.longitude||0)}else"mapValue"in e?tt(e)?this.dt(t,Number.MAX_SAFE_INTEGER):(this.wt(e.mapValue,t),this.ft(t)):"arrayValue"in e?(this.St(e.arrayValue,t),this.ft(t)):j()}Vt(e,t){this.dt(t,25),this.bt(e,t)}bt(e,t){t.Rt(e)}wt(e,t){const n=e.fields||{};this.dt(t,55);for(const r of Object.keys(n))this.Vt(r,t),this.Tt(n[r],t)}St(e,t){const n=e.values||[];this.dt(t,50);for(const r of n)this.Tt(r,t)}yt(e,t){this.dt(t,37),te.fromName(e).path.forEach((e=>{this.dt(t,60),this.bt(e,t)}))}dt(e,t){e.At(t)}ft(e){e.At(2)}}qr.Dt=new qr;class Wr{constructor(){this.an=new Kr}addToCollectionParentIndex(e,t){return this.an.add(t),ue.resolve()}getCollectionParents(e,t){return ue.resolve(this.an.getEntries(t))}addFieldIndex(e,t){return ue.resolve()}deleteFieldIndex(e,t){return ue.resolve()}deleteAllFieldIndexes(e){return ue.resolve()}createTargetIndexes(e,t){return ue.resolve()}getDocumentsMatchingTarget(e,t){return ue.resolve(null)}getIndexType(e,t){return ue.resolve(0)}getFieldIndexes(e,t){return ue.resolve([])}getNextCollectionGroupToUpdate(e){return ue.resolve(null)}getMinOffset(e,t){return ue.resolve(se.min())}getMinOffsetFromCollectionGroup(e,t){return ue.resolve(se.min())}updateCollectionGroup(e,t,n){return ue.resolve()}updateIndexEntries(e,t){return ue.resolve()}}class Kr{constructor(){this.index={}}add(e){const t=e.lastSegment(),n=e.popLast(),r=this.index[t]||new Ae(J.comparator),i=!r.has(n);return this.index[t]=r.add(n),i}has(e){const t=e.lastSegment(),n=e.popLast(),r=this.index[t];return r&&r.has(n)}getEntries(e){return(this.index[e]||new Ae(J.comparator)).toArray()}}new Uint8Array(0);class Gr{constructor(e,t,n){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=n}static withCacheSize(e){return new Gr(e,Gr.DEFAULT_COLLECTION_PERCENTILE,Gr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}Gr.DEFAULT_COLLECTION_PERCENTILE=10,Gr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Gr.DEFAULT=new Gr(41943040,Gr.DEFAULT_COLLECTION_PERCENTILE,Gr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Gr.DISABLED=new Gr(-1,0,0);class Qr{constructor(e){this.Nn=e}next(){return this.Nn+=2,this.Nn}static Ln(){return new Qr(0)}static Bn(){return new Qr(-1)}}class Xr{constructor(){this.changes=new Gt((e=>e.toString()),((e,t)=>e.isEqual(t))),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,t){this.assertNotApplied(),this.changes.set(e,it.newInvalidDocument(e).setReadTime(t))}getEntry(e,t){this.assertNotApplied();const n=this.changes.get(t);return void 0!==n?ue.resolve(n):this.getFromCache(e,t)}getEntries(e,t){return this.getAllFromCache(e,t)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}}class Yr{constructor(e,t){this.overlayedDocument=e,this.mutatedFields=t}}class Jr{constructor(e,t,n,r){this.remoteDocumentCache=e,this.mutationQueue=t,this.documentOverlayCache=n,this.indexManager=r}getDocument(e,t){let n=null;return this.documentOverlayCache.getOverlay(e,t).next((r=>(n=r,this.remoteDocumentCache.getEntry(e,t)))).next((e=>(null!==n&&Pn(n.mutation,e,Ie.empty(),Q.now()),e)))}getDocuments(e,t){return this.remoteDocumentCache.getEntries(e,t).next((t=>this.getLocalViewOfDocuments(e,t,an()).next((()=>t))))}getLocalViewOfDocuments(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:an();const r=en();return this.populateOverlays(e,r,t).next((()=>this.computeViews(e,t,r,n).next((e=>{let t=Jt();return e.forEach(((e,n)=>{t=t.insert(e,n.overlayedDocument)})),t}))))}getOverlayedDocuments(e,t){const n=en();return this.populateOverlays(e,n,t).next((()=>this.computeViews(e,t,n,an())))}populateOverlays(e,t,n){const r=[];
vendor: 6,517 bytes, line 2
2return n.forEach((e=>{t.has(e)||r.push(e)})),this.documentOverlayCache.getOverlays(e,r).next((e=>{e.forEach(((e,n)=>{t.set(e,n)}))}))}computeViews(e,t,n,r){let i=Xt();const s=nn(),a=nn();return t.forEach(((e,t)=>{const a=n.get(t.key);r.has(t.key)&&(void 0===a||a.mutation instanceof Rn)?i=i.insert(t.key,t):void 0!==a?(s.set(t.key,a.mutation.getFieldMask()),Pn(a.mutation,t,a.mutation.getFieldMask(),Q.now())):s.set(t.key,Ie.empty())})),this.recalculateAndSaveOverlays(e,i).next((e=>(e.forEach(((e,t)=>s.set(e,t))),t.forEach(((e,t)=>{var n;return a.set(e,new Yr(t,null!==(n=s.get(e))&&void 0!==n?n:null))})),a)))}recalculateAndSaveOverlays(e,t){const n=nn();let r=new Ee(((e,t)=>e-t)),i=an();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,t).next((e=>{for(const i of e)i.keys().forEach((e=>{const s=t.get(e);if(null===s)return;let a=n.get(e)||Ie.empty();a=i.applyToLocalView(s,a),n.set(e,a);const o=(r.get(i.batchId)||an()).add(e);r=r.insert(i.batchId,o)}))})).next((()=>{const s=[],a=r.getReverseIterator();for(;a.hasNext();){const r=a.getNext(),o=r.key,l=r.value,c=tn();l.forEach((e=>{if(!i.has(e)){const r=Tn(t.get(e),n.get(e));null!==r&&c.set(e,r),i=i.add(e)}})),s.push(this.documentOverlayCache.saveOverlays(e,o,c))}return ue.waitFor(s)})).next((()=>n))}recalculateAndSaveOverlaysForDocumentKeys(e,t){return this.remoteDocumentCache.getEntries(e,t).next((t=>this.recalculateAndSaveOverlays(e,t)))}getDocumentsMatchingQuery(e,t,n,r){return function(e){return te.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}(t)?this.getDocumentsMatchingDocumentQuery(e,t.path):Dt(t)?this.getDocumentsMatchingCollectionGroupQuery(e,t,n,r):this.getDocumentsMatchingCollectionQuery(e,t,n,r)}getNextDocuments(e,t,n,r){return this.remoteDocumentCache.getAllFromCollectionGroup(e,t,n,r).next((i=>{const s=r-i.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,t,n.largestBatchId,r-i.size):ue.resolve(en());let a=-1,o=i;return s.next((t=>ue.forEach(t,((t,n)=>(a<n.largestBatchId&&(a=n.largestBatchId),i.get(t)?ue.resolve():this.remoteDocumentCache.getEntry(e,t).next((e=>{o=o.insert(t,e)}))))).next((()=>this.populateOverlays(e,t,i))).next((()=>this.computeViews(e,o,t,an()))).next((e=>({batchId:a,changes:Zt(e)})))))}))}getDocumentsMatchingDocumentQuery(e,t){return this.getDocument(e,new te(t)).next((e=>{let t=Jt();return e.isFoundDocument()&&(t=t.insert(e.key,e)),t}))}getDocumentsMatchingCollectionGroupQuery(e,t,n,r){const i=t.collectionGroup;let s=Jt();return this.indexManager.getCollectionParents(e,i).next((a=>ue.forEach(a,(a=>{const o=function(e,t){return new Nt(t,null,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(t,a.child(i));return this.getDocumentsMatchingCollectionQuery(e,o,n,r).next((e=>{e.forEach(((e,t)=>{s=s.insert(e,t)}))}))})).next((()=>s))))}getDocumentsMatchingCollectionQuery(e,t,n,r){let i;return this.documentOverlayCache.getOverlaysForCollection(e,t.path,n.largestBatchId).next((s=>(i=s,this.remoteDocumentCache.getDocumentsMatchingQuery(e,t,n,i,r)))).next((e=>{i.forEach(((t,n)=>{const r=n.getKey();null===e.get(r)&&(e=e.insert(r,it.newInvalidDocument(r)))}));let n=Jt();return e.forEach(((e,r)=>{const s=i.get(e);void 0!==s&&Pn(s.mutation,r,Ie.empty(),Q.now()),Ht(t,r)&&(n=n.insert(e,r))})),n}))}}class Zr{constructor(e){this.serializer=e,this.lr=new Map,this.hr=new Map}getBundleMetadata(e,t){return ue.resolve(this.lr.get(t))}saveBundleMetadata(e,t){return this.lr.set(t.id,function(e){return{id:e.id,version:e.version,createTime:vr(e.createTime)}}(t)),ue.resolve()}getNamedQuery(e,t){return ue.resolve(this.hr.get(t))}saveNamedQuery(e,t){return this.hr.set(t.name,function(e){return{name:e.name,query:Hr(e.bundledQuery),readTime:vr(e.readTime)}}(t)),ue.resolve()}}class ei{constructor(){this.overlays=new Ee(te.comparator),this.Pr=new Map}getOverlay(e,t){return ue.resolve(this.overlays.get(t))}getOverlays(e,t){const n=en();return ue.forEach(t,(t=>this.getOverlay(e,t).next((e=>{null!==e&&n.set(t,e)})))).next((()=>n))}saveOverlays(e,t,n){return n.forEach(((n,r)=>{this.ht(e,t,r)})),ue.resolve()}removeOverlaysForBatchId(e,t,n){const r=this.Pr.get(n);return void 0!==r&&(r.forEach((e=>this.overlays=this.overlays.remove(e))),this.Pr.delete(n)),ue.resolve()}getOverlaysForCollection(e,t,n){const r=en(),i=t.length+1,s=new te(t.child("")),a=this.overlays.getIteratorFrom(s);for(;a.hasNext();){const e=a.getNext().value,s=e.getKey();if(!t.isPrefixOf(s.path))break;s.path.length===i&&e.largestBatchId>n&&r.set(e.getKey(),e)}return ue.resolve(r)}getOverlaysForCollectionGroup(e,t,n,r){let i=new Ee(((e,t)=>e-t));const s=this.overlays.getIterator();for(;s.hasNext();){const e=s.getNext().value;if(e.getKey().getCollectionGroup()===t&&e.largestBatchId>n){let t=i.get(e.largestBatchId);null===t&&(t=en(),i=i.insert(e.largestBatchId,t)),t.set(e.getKey(),e)}}const a=en(),o=i.getIterator();for(;o.hasNext()&&(o.getNext().value.forEach(((e,t)=>a.set(e,t))),!(a.size()>=r)););return ue.resolve(a)}ht(e,t,n){const r=this.overlays.get(n.key);if(null!==r){const e=this.Pr.get(r.largestBatchId).delete(n.key);this.Pr.set(r.largestBatchId,e)}this.overlays=this.overlays.insert(n.key,new zn(t,n));let i=this.Pr.get(t);void 0===i&&(i=an(),this.Pr.set(t,i)),this.Pr.set(t,i.add(n.key))}}class ti{constructor(){this.sessionToken=je.EMPTY_BYTE_STRING}getSessionToken(e){return ue.resolve(this.sessionToken)}setSessionToken(e,t){return this.sessionToken=t,ue.resolve()}}class ni{constructor(){this.Ir=new Ae(ri.Tr),this.Er=new Ae(ri.dr)}isEmpty(){return this.Ir.isEmpty()}addReference(e,t){const n=new ri(e,t);this.Ir=this.Ir.add(n),this.Er=this.Er.add(n)}Ar(e,t){e.forEach((e=>this.addReference(e,t)))}removeReference(e,t){this.Rr(new ri(e,t))}Vr(e,t){e.forEach((e=>this.removeReference(e,t)))}mr(e){const t=new te(new J([])),n=new ri(t,e),r=new ri(t,e+1),i=[];return this.Er.forEachInRange([n,r],(e=>{this.Rr(e),i.push(e.key)})),i}gr(){this.Ir.forEach((e=>this.Rr(e)))}Rr(e){this.Ir=this.Ir.delete(e),this.Er=this.Er.delete(e)}pr(e){const t=new te(new J([])),n=new ri(t,e),r=new ri(t,e+1);let i=an();return this.Er.forEachInRange([n,r],(e=>{i=i.add(e.key)})),i}containsKey(e){const t=new ri(e,0),n=this.Ir.firstAfterOrEqual(t);return null!==n&&e.isEqual(n.key)}}class ri{constructor(e,t){this.key=e,this.yr=t}static Tr(e,t){return te.comparator(e.key,t.key)||K(e.yr,t.yr)}static dr(e,t){return K(e.yr,t.yr)||te.comparator(e.key,t.key)}}class ii{constructor(e,t){this.indexManager=e,this.referenceDelegate=t,this.mutation
vendor: 8,760 bytes, line 2
2Queue=[],this.wr=1,this.Sr=new Ae(ri.Tr)}checkEmpty(e){return ue.resolve(0===this.mutationQueue.length)}addMutationBatch(e,t,n,r){const i=this.wr;this.wr++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const s=new Vn(i,t,n,r);this.mutationQueue.push(s);for(const a of r)this.Sr=this.Sr.add(new ri(a.key,i)),this.indexManager.addToCollectionParentIndex(e,a.key.path.popLast());return ue.resolve(s)}lookupMutationBatch(e,t){return ue.resolve(this.br(t))}getNextMutationBatchAfterBatchId(e,t){const n=t+1,r=this.Dr(n),i=r<0?0:r;return ue.resolve(this.mutationQueue.length>i?this.mutationQueue[i]:null)}getHighestUnacknowledgedBatchId(){return ue.resolve(0===this.mutationQueue.length?-1:this.wr-1)}getAllMutationBatches(e){return ue.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,t){const n=new ri(t,0),r=new ri(t,Number.POSITIVE_INFINITY),i=[];return this.Sr.forEachInRange([n,r],(e=>{const t=this.br(e.yr);i.push(t)})),ue.resolve(i)}getAllMutationBatchesAffectingDocumentKeys(e,t){let n=new Ae(K);return t.forEach((e=>{const t=new ri(e,0),r=new ri(e,Number.POSITIVE_INFINITY);this.Sr.forEachInRange([t,r],(e=>{n=n.add(e.yr)}))})),ue.resolve(this.Cr(n))}getAllMutationBatchesAffectingQuery(e,t){const n=t.path,r=n.length+1;let i=n;te.isDocumentKey(i)||(i=i.child(""));const s=new ri(new te(i),0);let a=new Ae(K);return this.Sr.forEachWhile((e=>{const t=e.key.path;return!!n.isPrefixOf(t)&&(t.length===r&&(a=a.add(e.yr)),!0)}),s),ue.resolve(this.Cr(a))}Cr(e){const t=[];return e.forEach((e=>{const n=this.br(e);null!==n&&t.push(n)})),t}removeMutationBatch(e,t){N(0===this.vr(t.batchId,"removed")),this.mutationQueue.shift();let n=this.Sr;return ue.forEach(t.mutations,(r=>{const i=new ri(r.key,t.batchId);return n=n.delete(i),this.referenceDelegate.markPotentiallyOrphaned(e,r.key)})).next((()=>{this.Sr=n}))}xn(e){}containsKey(e,t){const n=new ri(t,0),r=this.Sr.firstAfterOrEqual(n);return ue.resolve(t.isEqual(r&&r.key))}performConsistencyCheck(e){return this.mutationQueue.length,ue.resolve()}vr(e,t){return this.Dr(e)}Dr(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId}br(e){const t=this.Dr(e);return t<0||t>=this.mutationQueue.length?null:this.mutationQueue[t]}}class si{constructor(e){this.Fr=e,this.docs=new Ee(te.comparator),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,t){const n=t.key,r=this.docs.get(n),i=r?r.size:0,s=this.Fr(t);return this.docs=this.docs.insert(n,{document:t.mutableCopy(),size:s}),this.size+=s-i,this.indexManager.addToCollectionParentIndex(e,n.path.popLast())}removeEntry(e){const t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)}getEntry(e,t){const n=this.docs.get(t);return ue.resolve(n?n.document.mutableCopy():it.newInvalidDocument(t))}getEntries(e,t){let n=Xt();return t.forEach((e=>{const t=this.docs.get(e);n=n.insert(e,t?t.document.mutableCopy():it.newInvalidDocument(e))})),ue.resolve(n)}getDocumentsMatchingQuery(e,t,n,r){let i=Xt();const s=t.path,a=new te(s.child("")),o=this.docs.getIteratorFrom(a);for(;o.hasNext();){const{key:e,value:{document:a}}=o.getNext();if(!s.isPrefixOf(e.path))break;e.path.length>s.length+1||ae(ie(a),n)<=0||(r.has(a.key)||Ht(t,a))&&(i=i.insert(a.key,a.mutableCopy()))}return ue.resolve(i)}getAllFromCollectionGroup(e,t,n,r){j()}Mr(e,t){return ue.forEach(this.docs,(e=>t(e)))}newChangeBuffer(e){return new ai(this)}getSize(e){return ue.resolve(this.size)}}class ai extends Xr{constructor(e){super(),this.ur=e}applyChanges(e){const t=[];return this.changes.forEach(((n,r)=>{r.isValidDocument()?t.push(this.ur.addEntry(e,r)):this.ur.removeEntry(n)})),ue.waitFor(t)}getFromCache(e,t){return this.ur.getEntry(e,t)}getAllFromCache(e,t){return this.ur.getEntries(e,t)}}class oi{constructor(e){this.persistence=e,this.Or=new Gt((e=>It(e)),Pt),this.lastRemoteSnapshotVersion=X.min(),this.highestTargetId=0,this.Nr=0,this.Lr=new ni,this.targetCount=0,this.Br=Qr.Ln()}forEachTarget(e,t){return this.Or.forEach(((e,n)=>t(n))),ue.resolve()}getLastRemoteSnapshotVersion(e){return ue.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return ue.resolve(this.Nr)}allocateTargetId(e){return this.highestTargetId=this.Br.next(),ue.resolve(this.highestTargetId)}setTargetsMetadata(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.Nr&&(this.Nr=t),ue.resolve()}Qn(e){this.Or.set(e.target,e);const t=e.targetId;t>this.highestTargetId&&(this.Br=new Qr(t),this.highestTargetId=t),e.sequenceNumber>this.Nr&&(this.Nr=e.sequenceNumber)}addTargetData(e,t){return this.Qn(t),this.targetCount+=1,ue.resolve()}updateTargetData(e,t){return this.Qn(t),ue.resolve()}removeTargetData(e,t){return this.Or.delete(t.target),this.Lr.mr(t.targetId),this.targetCount-=1,ue.resolve()}removeTargets(e,t,n){let r=0;const i=[];return this.Or.forEach(((s,a)=>{a.sequenceNumber<=t&&null===n.get(a.targetId)&&(this.Or.delete(s),i.push(this.removeMatchingKeysForTargetId(e,a.targetId)),r++)})),ue.waitFor(i).next((()=>r))}getTargetCount(e){return ue.resolve(this.targetCount)}getTargetData(e,t){const n=this.Or.get(t)||null;return ue.resolve(n)}addMatchingKeys(e,t,n){return this.Lr.Ar(t,n),ue.resolve()}removeMatchingKeys(e,t,n){this.Lr.Vr(t,n);const r=this.persistence.referenceDelegate,i=[];return r&&t.forEach((t=>{i.push(r.markPotentiallyOrphaned(e,t))})),ue.waitFor(i)}removeMatchingKeysForTargetId(e,t){return this.Lr.mr(t),ue.resolve()}getMatchingKeysForTargetId(e,t){const n=this.Lr.pr(t);return ue.resolve(n)}containsKey(e,t){return ue.resolve(this.Lr.containsKey(t))}}class li{constructor(e,t){this.kr={},this.overlays={},this.qr=new fe(0),this.Qr=!1,this.Qr=!0,this.Kr=new ti,this.referenceDelegate=e(this),this.$r=new oi(this),this.indexManager=new Wr,this.remoteDocumentCache=function(e){return new si(e)}((e=>this.referenceDelegate.Ur(e))),this.serializer=new $r(t),this.Wr=new Zr(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.Qr=!1,Promise.resolve()}get started(){return this.Qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let t=this.overlays[e.toKey()];return t||(t=new ei,this.overlays[e.toKey()]=t),t}getMutationQueue(e,t){let n=this.kr[e.toKey()];return n||(n=new ii(t,this.referenceDelegate),this.kr[e.toKey()]=n),n}getGlobalsCache(){return this.Kr}getTargetCache(){return this.$r}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.Wr}runTransaction(e,t,n){A("MemoryPersistence","Starting transaction:",e);const r=new ci(this.qr.next());return this.referenceDelegate.Gr(),n(r).next((e=>this.referenceDelegate.zr(r).next((()=>e)))).toPromise().then((e=>(r.raiseOnCommittedEvent(),e)))}jr(e,t){return ue.or(Object.values(this.kr).map((n=>()=>n.containsKey(e,t))))}}class ci extends le{constructor(e){super(),this.currentSequenceNumber=e}}class ui{constructor(e){this.persistence=e,this.Hr=new ni,this.Jr=null}static Yr(e){return new ui(e)}get Zr(){if(this.Jr)return this.Jr;throw j()}addReference(e,t,n){return this.Hr.addReference(n,t),this.Zr.delete(n.toString()),ue.resolve()}removeReference(e,t,n){return this.Hr.removeReference(n,t),this.Zr.add(n.toString()),ue.resolve()}markPotentiallyOrphaned(e,t){return this.Zr.add(t.toString()),ue.resolve()}removeTarget(e,t){this.Hr.mr(t.targetId).forEach((e=>this.Zr.add(e.toString())));const n=this.persistence.getTargetCache();return n.getMatchingKeysForTargetId(e,t.targetId).next((e=>{e.forEach((e=>this.Zr.add(e.toString())))})).next((()=>n.removeTargetData(e,t)))}Gr(){this.Jr=new Set}zr(e){const t=this.persistence.getRemoteDocumentCache().newChangeBuffer();return ue.forEach(this.Zr,(n=>{const r=te.fromPath(n);return this.Xr(e,r).next((e=>{e||t.removeEntry(r,X.min())}))})).next((()=>(this.Jr=null,t.apply(e))))}updateLimboDocument(e,t){return this.Xr(e,t).next((e=>{e?this.Zr.delete(t.toString()):this.Zr.add(t.toString())}))}Ur(e){return 0}Xr(e,t){return ue.or([()=>ue.resolve(this.Hr.containsKey(t)),()=>this.persistence.getTargetCache().containsKey(e,t),()=>this.persistence.jr(e,t)])}}class di{constructor(e,t,n,r){this.targetId=e,this.fromCache=t,this.Ki=n,this.$i=r}static Ui(e,t){let n=an(),r=an();for(const i of t.docChanges)switch(i.type){case 0:n=n.add(i.doc.key);break;case 1:r=r.add(i.doc.key)}return new di(e,t.fromCache,n,r)}}class hi{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}class fi{constructor(){this.Wi=!1,this.Gi=!1,this.zi=100,this.ji=(0,l.nr)()?8:de((0,l.ZQ)())>0?6:4}initialize(e,t){this.Hi=e,this.indexManager=t,this.Wi=!0}getDocumentsMatchingQuery(e,t,n,r){const i={result:null};return this.Ji(e,t).next((e=>{i.result=e})).next((()=>
2{if(!i.result)return this.Yi(e,t,r,n).next((e=>{i.result=e}))})).next((()=>{if(i.result)return;const n=new hi;return this.Zi(e,t,n).next((r=>{if(i.result=r,this.Gi)return this.Xi(e,t,n,r.size)}))})).next((()=>i.result))}Xi(e,t,n,r){return n.documentReadCount<this.zi?(C()<=o.$b.DEBUG&&A("QueryEngine","SDK will not create cache indexes for query:",$t(t),"since it only creates cache indexes for collection contains","more than or equal to",this.zi,"documents"),ue.resolve()):(C()<=o.$b.DEBUG&&A("QueryEngine","Query:",$t(t),"scans",n.documentReadCount,"local documents and returns",r,"documents as results."),n.documentReadCount>this.ji*r?(C()<=o.$b.DEBUG&&A("QueryEngine","The SDK decides to create cache indexes for query:",$t(t),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,Ft(t))):ue.resolve())}Ji(e,t){if(Lt(t))return ue.resolve(null);let n=Ft(t);return this.indexManager.getIndexType(e,n).next((r=>0===r?null:(null!==t.limit&&1===r&&(t=Vt(t,null,"F"),n=Ft(t)),this.indexManager.getDocumentsMatchingTarget(e,n).next((r=>{const i=an(...r);return this.Hi.getDocuments(e,i).next((r=>this.indexManager.getMinOffset(e,n).next((n=>{const s=this.es(t,r);return this.ts(t,s,i,n.readTime)?this.Ji(e,Vt(t,null,"F")):this.ns(e,s,t,n)}))))})))))}Yi(e,t,n,r){return Lt(t)||r.isEqual(X.min())?ue.resolve(null):this.Hi.getDocuments(e,n).next((i=>{const s=this.es(t,i);return this.ts(t,s,n,r)?ue.resolve(null):(C()<=o.$b.DEBUG&&A("QueryEngine","Re-using previous result from %s to execute query: %s",r.toString(),$t(t)),this.ns(e,s,t,re(r,-1)).next((e=>e)))}))}es(e,t){let n=new Ae(Wt(e));return t.forEach(((t,r)=>{Ht(e,r)&&(n=n.add(r))})),n}ts(e,t,n,r){if(null===e.limit)return!1;if(n.size!==t.size)return!0;const i="F"===e.limitType?t.last():t.first();return!!i&&(i.hasPendingWrites||i.version.compareTo(r)>0)}Zi(e,t,n){return C()<=o.$b.DEBUG&&A("QueryEngine","Using full collection scan to execute query:",$t(t)),this.Hi.getDocumentsMatchingQuery(e,t,se.min(),n)}ns(e,t,n,r){return this.Hi.getDocumentsMatchingQuery(e,n,r).next((e=>(t.forEach((t=>{e=e.insert(t.key,t)})),e)))}}class pi{constructor(e,t,n,r){this.persistence=e,this.rs=t,this.serializer=r,this.ss=new Ee(K),this.os=new Gt((e=>It(e)),Pt),this._s=new Map,this.us=e.getRemoteDocumentCache(),this.$r=e.getTargetCache(),this.Wr=e.getBundleCache(),this.cs(n)}cs(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new Jr(this.us,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.us.setIndexManager(this.indexManager),this.rs.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",(t=>e.collect(t,this.ss)))}}function mi(e,t,n,r){return new pi(e,t,n,r)}async function gi(e,t){const n=O(e);return await n.persistence.runTransaction("Handle user change","readonly",(e=>{let r;
2return n.mutationQueue.getAllMutationBatches(e).next((i=>(r=i,n.cs(t),n.mutationQueue.getAllMutationBatches(e)))).next((t=>{const i=[],s=[];let a=an();for(const e of r){i.push(e.batchId);for(const t of e.mutations)a=a.add(t.key)}for(const e of t){s.push(e.batchId);for(const t of e.mutations)a=a.add(t.key)}return n.localDocuments.getDocuments(e,a).next((e=>({ls:e,removedBatchIds:i,addedBatchIds:s})))}))}))}function yi(e){const t=O(e);return t.persistence.runTransaction("Get last remote snapshot version","readonly",(e=>t.$r.getLastRemoteSnapshotVersion(e)))}function vi(e,t,n){let r=an(),i=an();return n.forEach((e=>r=r.add(e))),t.getEntries(e,r).next((e=>{let r=Xt();return n.forEach(((n,s)=>{const a=e.get(n);s.isFoundDocument()!==a.isFoundDocument()&&(i=i.add(n)),s.isNoDocument()&&s.version.isEqual(X.min())?(t.removeEntry(n,s.readTime),r=r.insert(n,s)):!a.isValidDocument()||s.version.compareTo(a.version)>0||0===s.version.compareTo(a.version)&&a.hasPendingWrites?(t.addEntry(s),r=r.insert(n,s)):A("LocalStore","Ignoring outdated watch update for ",n,". Current version:",a.version," Watch version:",s.version)})),{hs:r,Ps:i}}))}function bi(e,t){const n=O(e);return n.persistence.runTransaction("Get next mutation batch","readonly",(e=>(void 0===t&&(t=-1),n.mutationQueue.getNextMutationBatchAfterBatchId(e,t))))}function wi(e,t){const n=O(e);return n.persistence.runTransaction("Allocate target","readwrite",(e=>{let r;return n.$r.getTargetData(e,t).next((i=>i?(r=i,ue.resolve(r)):n.$r.allocateTargetId(e).next((i=>(r=new zr(t,i,"TargetPurposeListen",e.currentSequenceNumber),n.$r.addTargetData(e,r).next((()=>r)))))))})).then((e=>{const r=n.ss.get(e.targetId);return(null===r||e.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.ss=n.ss.insert(e.targetId,e),n.os.set(t,e.targetId)),e}))}async function xi(e,t,n){const r=O(e),i=r.ss.get(t),s=n?"readwrite":"readwrite-primary";try{n||await r.persistence.runTransaction("Release target",s,(e=>r.persistence.referenceDelegate.removeTarget(e,i)))}catch(e){if(!he(e))throw e;A("LocalStore",`Failed to update sequence numbers for target ${t}: ${e}`)}r.ss=r.ss.remove(t),r.os.delete(i.target)}function _i(e,t,n){const r=O(e);let i=X.min(),s=an();return r.persistence.runTransaction("Execute query","readwrite",(e=>function(e,t,n){const r=O(e),i=r.os.get(n);return void 0!==i?ue.resolve(r.ss.get(i)):r.$r.getTargetData(t,n)}(r,e,Ft(t)).next((t=>{if(t)return i=t.lastLimboFreeSnapshotVersion,r.$r.getMatchingKeysForTargetId(e,t.targetId).next((e=>{s=e}))})).next((()=>r.rs.getDocumentsMatchingQuery(e,t,n?i:X.min(),n?s:an()))).next((e=>(Si(r,qt(t),e),{documents:e,Is:s})))))}function Si(e,t,n){let r=e._s.get(t)||X.min();n.forEach(((e,t)=>{t.readTime.compareTo(r)>0&&(r=t.readTime)})),e._s.set(t,r)}class Ei{constructor(){this.activeTargetIds=ln()}Vs(e){this.activeTargetIds=this.activeTargetIds.add(e)}fs(e){this.activeTargetIds=this.activeTargetIds.delete(e)}Rs(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class ki{constructor(){this.io=new Ei,this.so={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,t,n){}addLocalQueryTarget(e){return this.io.Vs(e),this.so[e]||"not-current"}updateQueryState(e,t,n){this.so[e]=t}removeLocalQueryTarget(e){this.io.fs(e)}isLocalQueryTarget(e){return this.io.activeTargetIds.has(e)}clearQueryState(e){delete this.so[e]}getAllActiveQueryTargets(){return this.io.activeTargetIds}isActiveQueryTarget(e){return this.io.activeTargetIds.has(e)}start(){return this.io=new Ei,Promise.resolve()}handleUserChange(e,t,n){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}class Ci{oo(e){}shutdown(){}}class Ai{constructor(){this._o=()=>this.ao(),this.uo=()=>this.co(),this.lo=[],this.ho()}oo(e){this.lo.push(e)}shutdown(){window.removeEventListener("online",this._o),window.removeEventListener("offline",this.uo)}ho(){window.addEventListener("online",this._o),window.addEventListener("offline",this.uo)}ao(){A("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const e of this.lo)e(0)}co(){A("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const e of this.lo)e(1)}static D(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let Ti=null;function Ii(){return null===Ti?Ti=268435456+Math.round(2147483648*Math.random()):Ti++,"0x"+Ti.toString(16)}const Pi={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregation
2Query:"runAggregationQuery"};class ji{constructor(e){this.Po=e.Po,this.Io=e.Io}To(e){this.Eo=e}Ao(e){this.Ro=e}Vo(e){this.mo=e}onMessage(e){this.fo=e}close(){this.Io()}send(e){this.Po(e)}po(){this.Eo()}yo(){this.Ro()}wo(e){this.mo(e)}So(e){this.fo(e)}}const Ni="WebChannelConnection";class Oi extends class{constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;const t=e.ssl?"https":"http",n=encodeURIComponent(this.databaseId.projectId),r=encodeURIComponent(this.databaseId.database);this.bo=t+"://"+e.host,this.Do=`projects/${n}/databases/${r}`,this.Co="(default)"===this.databaseId.database?`project_id=${n}`:`project_id=${n}&database_id=${r}`}get vo(){return!1}Fo(e,t,n,r,i){const s=Ii(),a=this.Mo(e,t.toUriEncodedString());A("RestConnection",`Sending RPC '${e}' ${s}:`,a,n);const o={"google-cloud-resource-prefix":this.Do,"x-goog-request-params":this.Co};return this.xo(o,r,i),this.Oo(e,a,o,n).then((t=>(A("RestConnection",`Received RPC '${e}' ${s}: `,t),t)),(t=>{throw I("RestConnection",`RPC '${e}' ${s} failed with error: `,t,"url: ",a,"request:",n),t}))}No(e,t,n,r,i,s){return this.Fo(e,t,n,r,i)}xo(e,t,n){e["X-Goog-Api-Client"]="gl-js/ fire/"+E,e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t&&t.headers.forEach(((t,n)=>e[n]=t)),n&&n.headers.forEach(((t,n)=>e[n]=t))}Mo(e,t){const n=Pi[e];return`${this.bo}/v1/${t}:${n}`}terminate(){}}{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}Oo(e,t,n,r){const i=Ii();return new Promise(((s,a)=>{const o=new d;o.setWithCredentials(!0),o.listenOnce(p.COMPLETE,(()=>{try{switch(o.getLastErrorCode()){case m.NO_ERROR:const t=o.getResponseJson();A(Ni,`XHR for RPC '${e}' ${i} received:`,JSON.stringify(t)),s(t);break;case m.TIMEOUT:A(Ni,`RPC '${e}' ${i} timed out`),a(new L(R.DEADLINE_EXCEEDED,"Request time out"));break;case m.HTTP_ERROR:const n=o.getStatus();if(A(Ni,`RPC '${e}' ${i} failed with status:`,n,"response text:",o.getResponseText()),n>0){let e=o.getResponseJson();Array.isArray(e)&&(e=e[0]);const t=null==e?void 0:e.error;if(t&&t.status&&t.message){const e=function(e){const t=e.toLowerCase().replace(/_/g,"-");return Object.values(R).indexOf(t)>=0?t:R.UNKNOWN}(t.status);a(new L(e,t.message))}else a(new L(R.UNKNOWN,"Server responded with status "+o.getStatus()))}else a(new L(R.UNAVAILABLE,"Connection failed."));break;default:j()}}finally{A(Ni,`RPC '${e}' ${i} completed.`)}}));const l=JSON.stringify(r);A(Ni,`RPC '${e}' ${i} sending request:`,r),o.send(t,"POST",l,n,15)}))}Lo(e,t,n){const r=Ii(),i=[this.bo,"/","google.firestore.v1.Firestore","/",e,"/channel"],s=b(),a=v(),o={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},l=this.longPollingOptions.timeoutSeconds;void 0!==l&&(o.longPollingTimeout=Math.round(1e3*l)),this.useFetchStreams&&(o.xmlHttpFactory=new h({})),this.xo(o.initMessageHeaders,t,n),o.encodeInitMessageHeaders=!0;const c=i.join("");A(Ni,`Creating RPC '${e}' stream ${r}: ${c}`,o);const u=s.createWebChannel(c,o);let d=!1,p=!1;const m=new ji({Po:t=>{p?A(Ni,`Not sending because RPC '${e}' stream ${r} is closed:`,t):(d||(A(Ni,`Opening RPC '${e}' stream ${r} transport.`),u.open(),d=!0),A(Ni,`RPC '${e}' stream ${r} sending:`,t),u.send(t))},Io:()=>u.close()}),w=(e,t,n)=>{e.listen(t,(e=>{try{n(e)}catch(e){setTimeout((()=>{throw e}),0)}}))};return w(u,f.EventType.OPEN,(()=>{p||(A(Ni,`RPC '${e}' stream ${r} transport opened.`),m.po())})),w(u,f.EventType.CLOSE,(()=>{p||(p=!0,A(Ni,`RPC '${e}' stream ${r} transport closed`),m.wo())})),w(u,f.EventType.ERROR,(t=>{p||(p=!0,I(Ni,`RPC '${e}' stream ${r} transport errored:`,t),m.wo(new L(R.UNAVAILABLE,"The operation could not be completed")))})),w(u,f.EventType.MESSAGE,(t=>{var n;if(!p){const i=t.data[0];N(!!i);const s=i,a=s.error||(null===(n=s[0])||void 0===n?void 0:n.error);if(a){A(Ni,`RPC '${e}' stream ${r} received error:`,a);const t=a.status;let n=function(e){const t=Hn[e];if(void 0!==t)return Kn(t)}(t),i=a.message;void 0===n&&(n=R.INTERNAL,i="Unknown error status: "+t+" with message "+a.message),p=!0,m.wo(new L(n,i)),u.close()}else A(Ni,`RPC '${e}' stream ${r} received:`,i),m.So(i)}})),w(a,y.STAT_EVENT,(t=>{t.stat===g.PROXY?A(Ni,`RPC '${e}' stream ${r} detected buffering proxy`):t.stat===g.NOPROXY&&A(Ni,`RPC '${e}' stream ${r} detected no buffering proxy`)})),setTimeout((()=>{m.yo()}),0),m}}function Ri(){return"undefined"!=typeof document?document:null}function Li(e){return new fr(e,!0)}class Di{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1.5,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:6e4;this.ai=e,this.timerId=t,this.Bo=n,this.ko=r,this.qo=i,this.Qo=0,this.Ko=null,this.$o=Date.now(),this.reset()}reset(){this.Qo=0}Uo(){this.Qo=this.qo}Wo(e){this.cancel();const t=Math.floor(this.Qo+this.Go()),n=Math.max(0,Date.now()-this.$o),r=Math.max(0,t-n);r>0&&A("ExponentialBackoff",`Backing off for ${r} ms (base delay: ${this.Qo}
2 ms, delay with jitter: ${t} ms, last attempt: ${n} ms ago)`),this.Ko=this.ai.enqueueAfterDelay(this.timerId,r,(()=>(this.$o=Date.now(),e()))),this.Qo*=this.ko,this.Qo<this.Bo&&(this.Qo=this.Bo),this.Qo>this.qo&&(this.Qo=this.qo)}zo(){null!==this.Ko&&(this.Ko.skipDelay(),this.Ko=null)}cancel(){null!==this.Ko&&(this.Ko.cancel(),this.Ko=null)}Go(){return(Math.random()-.5)*this.Qo}}class Mi{constructor(e,t,n,r,i,s,a,o){this.ai=e,this.jo=n,this.Ho=r,this.connection=i,this.authCredentialsProvider=s,this.appCheckCredentialsProvider=a,this.listener=o,this.state=0,this.Jo=0,this.Yo=null,this.Zo=null,this.stream=null,this.Xo=0,this.e_=new Di(e,t)}t_(){return 1===this.state||5===this.state||this.n_()}n_(){return 2===this.state||3===this.state}start(){this.Xo=0,4!==this.state?this.auth():this.r_()}async stop(){this.t_()&&await this.close(0)}i_(){this.state=0,this.e_.reset()}s_(){this.n_()&&null===this.Yo&&(this.Yo=this.ai.enqueueAfterDelay(this.jo,6e4,(()=>this.o_())))}__(e){this.a_(),this.stream.send(e)}async o_(){if(this.n_())return this.close(0)}a_(){this.Yo&&(this.Yo.cancel(),this.Yo=null)}u_(){this.Zo&&(this.Zo.cancel(),this.Zo=null)}async close(e,t){this.a_(),this.u_(),this.e_.cancel(),this.Jo++,4!==e?this.e_.reset():t&&t.code===R.RESOURCE_EXHAUSTED?(T(t.toString()),T("Using maximum backoff delay to prevent overloading the backend."),this.e_.Uo()):t&&t.code===R.UNAUTHENTICATED&&3!==this.state&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),null!==this.stream&&(this.c_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.Vo(t)}c_(){}auth(){this.state=1;const e=this.l_(this.Jo),t=this.Jo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then((e=>{let[n,r]=e;this.Jo===t&&this.h_(n,r)}),(t=>{e((()=>{const e=new L(R.UNKNOWN,"Fetching auth token failed: "+t.message);return this.P_(e)}))}))}h_(e,t){const n=this.l_(this.Jo);this.stream=this.I_(e,t),this.stream.To((()=>{n((()=>this.listener.To()))})),this.stream.Ao((()=>{n((()=>(this.state=2,this.Zo=this.ai.enqueueAfterDelay(this.Ho,1e4,(()=>(this.n_()&&(this.state=3),Promise.resolve()))),this.listener.Ao())))})),this.stream.Vo((e=>{n((()=>this.P_(e)))})),this.stream.onMessage((e=>{n((()=>1==++this.Xo?this.T_(e):this.onNext(e)))}))}r_(){this.state=5,this.e_.Wo((async()=>{this.state=0,this.start()}))}P_(e){return A("PersistentStream",`close with error: ${e}`),this.stream=null,this.close(4,e)}l_(e){return t=>{this.ai.enqueueAndForget((()=>this.Jo===e?t():(A("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())))}}}class Fi extends Mi{constructor(e,t,n,r,i,s){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",t,n,r,s),this.serializer=i}I_(e,t){return this.connection.Lo("Listen",e,t)}T_(e){return this.onNext(e)}onNext(e){this.e_.reset();const t=function(e,t){let n;if("targetChange"in t){t.targetChange;const r=function(e){return"NO_CHANGE"===e?0:"ADD"===e?1:"REMOVE"===e?2:"CURRENT"===e?3:"RESET"===e?4:j()}(t.targetChange.targetChangeType||"NO_CHANGE"),i=t.targetChange.targetIds||[],s=function(e,t){return e.useProto3Json?(N(void 0===t||"string"==typeof t),je.fromBase64String(t||"")):(N(void 0===t||t instanceof Buffer||t instanceof Uint8Array),je.fromUint8Array(t||new Uint8Array))}(e,t.targetChange.resumeToken),a=t.targetChange.cause,o=a&&function(e){const t=void 0===e.code?R.UNKNOWN:Kn(e.code);return new L(t,e.message||"")}(a);n=new sr(r,i,s,o||null)}else if("documentChange"in t){t.documentChange;const r=t.documentChange;r.document,r.document.name,r.document.updateTime;const i=Sr(e,r.document.name),s=vr(r.document.updateTime),a=r.document.createTime?vr(r.document.createTime):X.min(),o=new nt({mapValue:{fields:r.document.fields}}),l=it.newFoundDocument(i,s,a,o),c=r.targetIds||[],u=r.removedTargetIds||[];n=new rr(c,u,l.key,l)}else if("documentDelete"in t){t.documentDelete;const r=t.documentDelete;r.document;const i=Sr(e,r.document),s=r.readTime?vr(r.readTime):X.min(),a=it.newNoDocument(i,s),o=r.removedTargetIds||[];n=new rr([],o,a.key,a)}else if("documentRemove"in t){t.documentRemove;const r=t.documentRemove;r.document;const i=Sr(e,r.document),s=r.removedTargetIds||[];n=new rr([],s,i,null)}else{if(!("filter"in t))return j();{t.filter;const e=t.filter;e.targetId;const{count:r=0,unchangedNames:i}=e,s=new $n(r,i),a=e.targetId;n=new ir(a,s)}}return n}(this.serializer,e),n=function(e){if(!("targetChange"in e))return X.min();const t=e.targetChange;return t.targetIds&&t.targetIds.length?X.min():t.readTime?vr(t.readTime):X.min()}(e);return this.listener.E_(t,n)}d_(e){const t={};t.database=Cr(this.serializer),t.addTarget=function(e,t){let n;const r=t.target;if(n=jt(r)?{documents:Pr(e,r)}:{query:jr(e,r)._t},n.targetId=t.targetId,t.resumeToken.approximateByteSize()>0){n.resumeToken=gr(e,t.resumeToken);const r=pr(e,t.expectedCount);null!==r&&(n.expectedCount=r)}else if(t.snapshotVersion.compareTo(X.min())>0){n.readTime=mr(e,t.snapshotVersion.toTimestamp());const r=pr(e,t.expectedCount);null!==r&&(n.expectedCount=r)}return n}(this.serializer,e);const n=function(e,t){const n=function(e){switch(e){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return j()}}(t.purpose);return null==n?null:{"goog-listen-tags":n}}(this.serializer,e);n&&(t.labels=n),this.__(t)}A_(e){const t={};t.database=Cr(this.serializer),t.removeTarget=e,this.__(t)}}class Ui extends Mi{constructor(e,t,n,r,i,s){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",t,n,r,s
2),this.serializer=i}get R_(){return this.Xo>0}start(){this.lastStreamToken=void 0,super.start()}c_(){this.R_&&this.V_([])}I_(e,t){return this.connection.Lo("Write",e,t)}T_(e){return N(!!e.streamToken),this.lastStreamToken=e.streamToken,N(!e.writeResults||0===e.writeResults.length),this.listener.m_()}onNext(e){N(!!e.streamToken),this.lastStreamToken=e.streamToken,this.e_.reset();const t=function(e,t){return e&&e.length>0?(N(void 0!==t),e.map((e=>function(e,t){let n=e.updateTime?vr(e.updateTime):vr(t);return n.isEqual(X.min())&&(n=vr(t)),new En(n,e.transformResults||[])}(e,t)))):[]}(e.writeResults,e.commitTime),n=vr(e.commitTime);return this.listener.f_(n,t)}g_(){const e={};e.database=Cr(this.serializer),this.__(e)}V_(e){const t={streamToken:this.lastStreamToken,writes:e.map((e=>Ir(this.serializer,e)))};this.__(t)}}class Vi extends class{}{constructor(e,t,n,r){super(),this.authCredentials=e,this.appCheckCredentials=t,this.connection=n,this.serializer=r,this.p_=!1}y_(){if(this.p_)throw new L(R.FAILED_PRECONDITION,"The client has already been terminated.")}Fo(e,t,n,r){return this.y_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((i=>{let[s,a]=i;return this.connection.Fo(e,wr(t,n),r,s,a)})).catch((e=>{throw"FirebaseError"===e.name?(e.code===R.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new L(R.UNKNOWN,e.toString())}))}No(e,t,n,r,i){return this.y_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((s=>{let[a,o]=s;return this.connection.No(e,wr(t,n),r,a,o,i)})).catch((e=>{throw"FirebaseError"===e.name?(e.code===R.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new L(R.UNKNOWN,e.toString())}))}terminate(){this.p_=!0,this.connection.terminate()}}class Bi{constructor(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state="Unknown",this.w_=0,this.S_=null,this.b_=!0}D_(){0===this.w_&&(this.C_("Unknown"),this.S_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,(()=>(this.S_=null,this.v_("Backend didn't respond within 10 seconds."),this.C_("Offline"),Promise.resolve()))))}F_(e){"Online"===this.state?this.C_("Unknown"):(this.w_++,this.w_>=1&&(this.M_(),this.v_(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.C_("Offline")))}set(e){this.M_(),this.w_=0,"Online"===e&&(this.b_=!1),this.C_(e)}C_(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}v_(e){const t=`Could not reach Cloud Firestore backend. ${e}\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.b_?(T(t),this.b_=!1):A("OnlineStateTracker",t)}M_(){null!==this.S_&&(this.S_.cancel(),this.S_=null)}}class zi{constructor(e,t,n,r,i){this.localStore=e,this.datastore=t,this.asyncQueue=n,this.remoteSyncer={},this.x_=[],this.O_=new Map,this.N_=new Set,this.L_=[],this.B_=i,this.B_.oo((e=>{n.enqueueAndForget((async()=>{Yi(this)&&(A("RemoteStore","Restarting streams for network reachability change."),await async function(e){const t=O(e);t.N_.add(4),await Hi(t),t.k_.set("Unknown"),t.N_.delete(4),await $i(t)}(this))}))})),this.k_=new Bi(n,r)}}async function $i(e){if(Yi(e))for(const t of e.L_)await t(!0)}async function Hi(e){for(const t of e.L_)await t(!1)}function qi(e,t){const n=O(e);n.O_.has(t.targetId)||(n.O_.set(t.targetId,t),Xi(n)?Qi(n):gs(n).n_()&&Ki(n,t))}function Wi(e,t){const n=O(e),r=gs(n);n.O_.delete(t),r.n_()&&Gi(n,t),0===n.O_.size&&(r.n_()?r.s_():Yi(n)&&n.k_.set("Unknown"))}function Ki(e,t){if(e.q_.xe(t.targetId),t.resumeToken.approximateByteSize()>0||t.snapshotVersion.compareTo(X.min())>0){const n=e.remoteSyncer.getRemoteKeysForTarget(t.targetId).size;t=t.withExpectedCount(n)}gs(e).d_(t)}function Gi(e,t){e.q_.xe(t),gs(e).A_(t)}function Qi(e){e.q_=new or({getRemoteKeysForTarget:t=>e.remoteSyncer.getRemoteKeysForTarget(t),ot:t=>e.O_.get(t)||null,tt:()=>e.datastore.serializer.databaseId}),gs(e).start(),e.k_.D_()}function Xi(e){return Yi(e)&&!gs(e).t_()&&e.O_.size>0}function Yi(e){return 0===O(e).N_.size}function Ji(e){e.q_=void 0}async function Zi(e){e.k_.set("Online")}async function es(e){e.O_.forEach(((t,n)=>{Ki(e,t)}))}async function ts(e,t){Ji(e),Xi(e)?(e.k_.F_(t),Qi(e)):e.k_.set("Unknown")}async function ns(e,t,n){if(e.k_.set("Online"),t instanceof sr&&2===t.state&&t.cause)try{await async function(e,t){const n=t.cause;for(const r of t.targetIds)e.O_.has(r)&&(await e.remoteSyncer.rejectListen(r,n),e.O_.delete(r),e.q_.removeTarget(r))}(e,t)}catch(n){A("RemoteStore","Failed to remove targets %s: %s ",t.targetIds.join(","),n),await rs(e,n)}else if(t instanceof rr?e.q_.Ke(t):t instanceof ir?e.q_.He(t):e.q_.We(t),!n.isEqual(X.min()))try{const t=await yi(e.localStore);n.compareTo(t)>=0&&await function(e,t){const n=e.q_.rt(t);
vendor: 7,639 bytes, line 2
2return n.targetChanges.forEach(((n,r)=>{if(n.resumeToken.approximateByteSize()>0){const i=e.O_.get(r);i&&e.O_.set(r,i.withResumeToken(n.resumeToken,t))}})),n.targetMismatches.forEach(((t,n)=>{const r=e.O_.get(t);if(!r)return;e.O_.set(t,r.withResumeToken(je.EMPTY_BYTE_STRING,r.snapshotVersion)),Gi(e,t);const i=new zr(r.target,t,n,r.sequenceNumber);Ki(e,i)})),e.remoteSyncer.applyRemoteEvent(n)}(e,n)}catch(t){A("RemoteStore","Failed to raise snapshot:",t),await rs(e,t)}}async function rs(e,t,n){if(!he(t))throw t;e.N_.add(1),await Hi(e),e.k_.set("Offline"),n||(n=()=>yi(e.localStore)),e.asyncQueue.enqueueRetryable((async()=>{A("RemoteStore","Retrying IndexedDB access"),await n(),e.N_.delete(1),await $i(e)}))}function is(e,t){return t().catch((n=>rs(e,n,t)))}async function ss(e){const t=O(e),n=ys(t);let r=t.x_.length>0?t.x_[t.x_.length-1].batchId:-1;for(;as(t);)try{const e=await bi(t.localStore,r);if(null===e){0===t.x_.length&&n.s_();break}r=e.batchId,os(t,e)}catch(e){await rs(t,e)}ls(t)&&cs(t)}function as(e){return Yi(e)&&e.x_.length<10}function os(e,t){e.x_.push(t);const n=ys(e);n.n_()&&n.R_&&n.V_(t.mutations)}function ls(e){return Yi(e)&&!ys(e).t_()&&e.x_.length>0}function cs(e){ys(e).start()}async function us(e){ys(e).g_()}async function ds(e){const t=ys(e);for(const n of e.x_)t.V_(n.mutations)}async function hs(e,t,n){const r=e.x_.shift(),i=Bn.from(r,t,n);await is(e,(()=>e.remoteSyncer.applySuccessfulWrite(i))),await ss(e)}async function fs(e,t){t&&ys(e).R_&&await async function(e,t){if(function(e){return Wn(e)&&e!==R.ABORTED}(t.code)){const n=e.x_.shift();ys(e).i_(),await is(e,(()=>e.remoteSyncer.rejectFailedWrite(n.batchId,t))),await ss(e)}}(e,t),ls(e)&&cs(e)}async function ps(e,t){const n=O(e);n.asyncQueue.verifyOperationInProgress(),A("RemoteStore","RemoteStore received new credentials");const r=Yi(n);n.N_.add(3),await Hi(n),r&&n.k_.set("Unknown"),await n.remoteSyncer.handleCredentialChange(t),n.N_.delete(3),await $i(n)}async function ms(e,t){const n=O(e);t?(n.N_.delete(2),await $i(n)):t||(n.N_.add(2),await Hi(n),n.k_.set("Unknown"))}function gs(e){return e.Q_||(e.Q_=function(e,t,n){const r=O(e);return r.y_(),new Fi(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)}(e.datastore,e.asyncQueue,{To:Zi.bind(null,e),Ao:es.bind(null,e),Vo:ts.bind(null,e),E_:ns.bind(null,e)}),e.L_.push((async t=>{t?(e.Q_.i_(),Xi(e)?Qi(e):e.k_.set("Unknown")):(await e.Q_.stop(),Ji(e))}))),e.Q_}function ys(e){return e.K_||(e.K_=function(e,t,n){const r=O(e);return r.y_(),new Ui(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)}(e.datastore,e.asyncQueue,{To:()=>Promise.resolve(),Ao:us.bind(null,e),Vo:fs.bind(null,e),m_:ds.bind(null,e),f_:hs.bind(null,e)}),e.L_.push((async t=>{t?(e.K_.i_(),await ss(e)):(await e.K_.stop(),e.x_.length>0&&(A("RemoteStore",`Stopping write stream with ${e.x_.length} pending writes`),e.x_=[]))}))),e.K_}class vs{constructor(e,t,n,r,i){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=n,this.op=r,this.removalCallback=i,this.deferred=new D,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch((e=>{}))}get promise(){return this.deferred.promise}static createAndSchedule(e,t,n,r,i){const s=Date.now()+n,a=new vs(e,t,s,r,i);return a.start(n),a}start(e){this.timerHandle=setTimeout((()=>this.handleDelayElapsed()),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new L(R.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget((()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then((e=>this.deferred.resolve(e)))):Promise.resolve()))}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function bs(e,t){if(T("AsyncQueue",`${t}: ${e}`),he(e))return new L(R.UNAVAILABLE,`${t}: ${e}`);throw e}class ws{constructor(e){this.comparator=e?(t,n)=>e(t,n)||te.comparator(t.key,n.key):(e,t)=>te.comparator(e.key,t.key),this.keyedMap=Jt(),this.sortedSet=new Ee(this.comparator)}static emptySet(e){return new ws(e.comparator)}has(e){return null!=this.keyedMap.get(e)}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){const t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal(((t,n)=>(e(t),!1)))}add(e){const t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))}delete(e){const t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this}isEqual(e){if(!(e instanceof ws))return!1;if(this.size!==e.size)return!1;const t=this.sortedSet.getIterator(),n=e.sortedSet.getIterator();for(;t.hasNext();){const e=t.getNext().key,r=n.getNext().key;if(!e.isEqual(r))return!1}return!0}toString(){const e=[];return this.forEach((t=>{e.push(t.toString())})),0===e.length?"DocumentSet ()":"DocumentSet (\n "+e.join(" \n")+"\n)"}copy(e,t){const n=new ws;return n.comparator=this.comparator,n.keyedMap=e,n.sortedSet=t,n}}class xs{constructor(){this.U_=new Ee(te.comparator)}track(e){const t=e.doc.key,n=this.U_.get(t);n?0!==e.type&&3===n.type?this.U_=this.U_.insert(t,e):3===e.type&&1!==n.type?this.U_=this.U_.insert(t,{type:n.type,doc:e.doc}):2===e.type&&2===n.type?this.U_=this.U_.insert(t,{type:2,doc:e.doc}):2===e.type&&0===n.type?this.U_=this.U_.insert(t,{type:0,doc:e.doc}):1===e.type&&0===n.type?this.U_=this.U_.remove(t):1===e.type&&2===n.type?this.U_=this.U_.insert(t,{type:1,doc:n.doc}):0===e.type&&1===n.type?this.U_=this.U_.insert(t,{type:2,doc:e.doc}):j():this.U_=this.U_.insert(t,e)}W_(){const e=[];return this.U_.inorderTraversal(((t,n)=>{e.push(n)})),e}}class _s{constructor(e,t,n,r,i,s,a,o,l){this.query=e,this.docs=t,this.oldDocs=n,this.docChanges=r,this.mutatedKeys=i,this.fromCache=s,this.syncStateChanged=a,this.excludesMetadataChanges=o,this.hasCachedResults=l}static fromInitialDocuments(e,t,n,r,i){const s=[];return t.forEach((e=>{s.push({type:0,doc:e})})),new _s(e,t,ws.emptySet(t),s,n,r,!0,!1,i)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&Bt(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(let r=0;r<t.length;r++)if(t[r].type!==n[r].type||!t[r].doc.isEqual(n[r].doc))return!1;return!0}}class Ss{constructor(){this.G_=void 0,this.z_=[]}j_(){return this.z_.some((e=>e.H_()))}}class Es{constructor(){this.queries=ks(),this.onlineState="Unknown",this.J_=new Set}terminate(){!function(e,t){const n=O(e),r=n.queries;n.queries=ks(),r.forEach(((e,n)=>{for(const r of n.z_)r.onError(t)}))}(this,new L(R.ABORTED,"Firestore shutting down"))}}function ks(){return new Gt((e=>zt(e)),Bt)}async function Cs(e,t){const n=O(e);let r=3;const i=t.query;let s=n.queries.get(i);s?!s.j_()&&t.H_()&&(r=2):(s=new Ss,r=t.H_()?0:1);try{switch(r){case 0:s.G_=await n.onListen(i,!0);break;case 1:s.G_=await n.onListen(i,!1);break;case 2:await n.onFirstRemoteStoreListen(i)}}catch(e){const n=bs(e,`Initialization of query '${$t(t.query)}' failed`);return void t.onError(n)}n.queries.set(i,s),s.z_.push(t),t.Y_(n.onlineState),s.G_&&t.Z_(s.G_)&&Ps(n)}async function As(e,t){const n=O(e),r=t.query;let i=3;const s=n.queries.get(r);if(s){const e=s.z_.indexOf(t);e>
2=0&&(s.z_.splice(e,1),0===s.z_.length?i=t.H_()?0:1:!s.j_()&&t.H_()&&(i=2))}switch(i){case 0:return n.queries.delete(r),n.onUnlisten(r,!0);case 1:return n.queries.delete(r),n.onUnlisten(r,!1);case 2:return n.onLastRemoteStoreUnlisten(r);default:return}}function Ts(e,t){const n=O(e);let r=!1;for(const i of t){const e=i.query,t=n.queries.get(e);if(t){for(const e of t.z_)e.Z_(i)&&(r=!0);t.G_=i}}r&&Ps(n)}function Is(e,t,n){const r=O(e),i=r.queries.get(t);if(i)for(const s of i.z_)s.onError(n);r.queries.delete(t)}function Ps(e){e.J_.forEach((e=>{e.next()}))}var js,Ns;(Ns=js||(js={})).X_="default",Ns.Cache="cache";class Os{constructor(e,t,n){this.query=e,this.ea=t,this.ta=!1,this.na=null,this.onlineState="Unknown",this.options=n||{}}Z_(e){if(!this.options.includeMetadataChanges){const t=[];for(const n of e.docChanges)3!==n.type&&t.push(n);e=new _s(e.query,e.docs,e.oldDocs,t,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let t=!1;return this.ta?this.ra(e)&&(this.ea.next(e),t=!0):this.ia(e,this.onlineState)&&(this.sa(e),t=!0),this.na=e,t}onError(e){this.ea.error(e)}Y_(e){this.onlineState=e;let t=!1;return this.na&&!this.ta&&this.ia(this.na,e)&&(this.sa(this.na),t=!0),t}ia(e,t){if(!e.fromCache)return!0;if(!this.H_())return!0;const n="Offline"!==t;return(!this.options.oa||!n)&&(!e.docs.isEmpty()||e.hasCachedResults||"Offline"===t)}ra(e){if(e.docChanges.length>0)return!0;const t=this.na&&this.na.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&!0===this.options.includeMetadataChanges}sa(e){e=_s.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.ta=!0,this.ea.next(e)}H_(){return this.options.source!==js.Cache}}class Rs{constructor(e){this.key=e}}class Ls{constructor(e){this.key=e}}class Ds{constructor(e,t){this.query=e,this.Ia=t,this.Ta=null,this.hasCachedResults=!1,this.current=!1,this.Ea=an(),this.mutatedKeys=an(),this.da=Wt(e),this.Aa=new ws(this.da)}get Ra(){return this.Ia}Va(e,t){const n=t?t.ma:new xs,r=t?t.Aa:this.Aa;let i=t?t.mutatedKeys:this.mutatedKeys,s=r,a=!1;const o="F"===this.query.limitType&&r.size===this.query.limit?r.last():null,l="L"===this.query.limitType&&r.size===this.query.limit?r.first():null;if(e.inorderTraversal(((e,t)=>{const c=r.get(e),u=Ht(this.query,t)?t:null,d=!!c&&this.mutatedKeys.has(c.key),h=!!u&&(u.hasLocalMutations||this.mutatedKeys.has(u.key)&&u.hasCommittedMutations);let f=!1;c&&u?c.data.isEqual(u.data)?d!==h&&(n.track({type:3,doc:u}),f=!0):this.fa(c,u)||(n.track({type:2,doc:u}),f=!0,(o&&this.da(u,o)>0||l&&this.da(u,l)<0)&&(a=!0)):!c&&u?(n.track({type:0,doc:u}),f=!0):c&&!u&&(n.track({type:1,doc:c}),f=!0,(o||l)&&(a=!0)),f&&(u?(s=s.add(u),i=h?i.add(e):i.delete(e)):(s=s.delete(e),i=i.delete(e)))})),null!==this.query.limit)for(;s.size>this.query.limit;){const e="F"===this.query.limitType?s.last():s.first();s=s.delete(e.key),i=i.delete(e.key),n.track({type:1,doc:e})}return{Aa:s,ma:n,ts:a,mutatedKeys:i}}fa(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}applyChanges(e,t,n,r){const i=this.Aa;this.Aa=e.Aa,this.mutatedKeys=e.mutatedKeys;const s=e.ma.W_();s.sort(((e,t)=>function(e,t){const n=e=>{switch(e){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return j()}};return n(e)-n(t)}(e.type,t.type)||this.da(e.doc,t.doc))),this.ga(n),r=null!=r&&r;const a=t&&!r?this.pa():[],o=0===this.Ea.size&&this.current&&!r?1:0,l=o!==this.Ta;return this.Ta=o,0!==s.length||l?{snapshot:new _s(this.query,e.Aa,i,s,e.mutatedKeys,0===o,l,!1,!!n&&n.resumeToken.approximateByteSize()>0),ya:a}:{ya:a}}Y_(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({Aa:this.Aa,ma:new xs,mutatedKeys:this.mutatedKeys,ts:!1},!1)):{ya:[]}}wa(e){return!this.Ia.has(e)&&!!this.Aa.has(e)&&!this.Aa.get(e).hasLocalMutations}ga(e){e&&(e.addedDocuments.forEach((e=>this.Ia=this.Ia.add(e))),e.modifiedDocuments.forEach((e=>{})),e.removedDocuments.forEach((e=>this.Ia=this.Ia.delete(e))),this.current=e.current)}pa(){if(!this.current)return[];const e=this.Ea;this.Ea=an(),this.Aa.forEach((e=>{this.wa(e.key)&&(this.Ea=this.Ea.add(e.key))}
2));const t=[];return e.forEach((e=>{this.Ea.has(e)||t.push(new Ls(e))})),this.Ea.forEach((n=>{e.has(n)||t.push(new Rs(n))})),t}Sa(e){this.Ia=e.Is,this.Ea=an();const t=this.Va(e.documents);return this.applyChanges(t,!0)}ba(){return _s.fromInitialDocuments(this.query,this.Aa,this.mutatedKeys,0===this.Ta,this.hasCachedResults)}}class Ms{constructor(e,t,n){this.query=e,this.targetId=t,this.view=n}}class Fs{constructor(e){this.key=e,this.Da=!1}}class Us{constructor(e,t,n,r,i,s){this.localStore=e,this.remoteStore=t,this.eventManager=n,this.sharedClientState=r,this.currentUser=i,this.maxConcurrentLimboResolutions=s,this.Ca={},this.va=new Gt((e=>zt(e)),Bt),this.Fa=new Map,this.Ma=new Set,this.xa=new Ee(te.comparator),this.Oa=new Map,this.Na=new ni,this.La={},this.Ba=new Map,this.ka=Qr.Bn(),this.onlineState="Unknown",this.qa=void 0}get isPrimaryClient(){return!0===this.qa}}async function Vs(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=oa(e);let i;const s=r.va.get(t);return s?(r.sharedClientState.addLocalQueryTarget(s.targetId),i=s.view.ba()):i=await zs(r,t,n,!0),i}async function Bs(e,t){const n=oa(e);await zs(n,t,!0,!1)}async function zs(e,t,n,r){const i=await wi(e.localStore,Ft(t)),s=i.targetId,a=n?e.sharedClientState.addLocalQueryTarget(s):"not-current";let o;return r&&(o=await $s(e,t,s,"current"===a,i.resumeToken)),e.isPrimaryClient&&n&&qi(e.remoteStore,i),o}async function $s(e,t,n,r,i){e.Qa=(t,n,r)=>async function(e,t,n,r){let i=t.view.Va(n);i.ts&&(i=await _i(e.localStore,t.query,!1).then((e=>{let{documents:n}=e;return t.view.Va(n,i)})));const s=r&&r.targetChanges.get(t.targetId),a=r&&null!=r.targetMismatches.get(t.targetId),o=t.view.applyChanges(i,e.isPrimaryClient,s,a);return ta(e,t.targetId,o.ya),o.snapshot}(e,t,n,r);const s=await _i(e.localStore,t,!0),a=new Ds(t,s.Is),o=a.Va(s.documents),l=nr.createSynthesizedTargetChangeForCurrentChange(n,r&&"Offline"!==e.onlineState,i),c=a.applyChanges(o,e.isPrimaryClient,l);ta(e,n,c.ya);const u=new Ms(t,n,a);return e.va.set(t,u),e.Fa.has(n)?e.Fa.get(n).push(t):e.Fa.set(n,[t]),c.snapshot}async function Hs(e,t,n){const r=O(e),i=r.va.get(t),s=r.Fa.get(i.targetId);if(s.length>1)return r.Fa.set(i.targetId,s.filter((e=>!Bt(e,t)))),void r.va.delete(t);r.isPrimaryClient?(r.sharedClientState.removeLocalQueryTarget(i.targetId),r.sharedCl
2ientState.isActiveQueryTarget(i.targetId)||await xi(r.localStore,i.targetId,!1).then((()=>{r.sharedClientState.clearQueryState(i.targetId),n&&Wi(r.remoteStore,i.targetId),Zs(r,i.targetId)})).catch(ce)):(Zs(r,i.targetId),await xi(r.localStore,i.targetId,!0))}async function qs(e,t){const n=O(e),r=n.va.get(t),i=n.Fa.get(r.targetId);n.isPrimaryClient&&1===i.length&&(n.sharedClientState.removeLocalQueryTarget(r.targetId),Wi(n.remoteStore,r.targetId))}async function Ws(e,t){const n=O(e);try{const e=await function(e,t){const n=O(e),r=t.snapshotVersion;let i=n.ss;return n.persistence.runTransaction("Apply remote event","readwrite-primary",(e=>{const s=n.us.newChangeBuffer({trackRemovals:!0});i=n.ss;const a=[];t.targetChanges.forEach(((s,o)=>{const l=i.get(o);if(!l)return;a.push(n.$r.removeMatchingKeys(e,s.removedDocuments,o).next((()=>n.$r.addMatchingKeys(e,s.addedDocuments,o))));let c=l.withSequenceNumber(e.currentSequenceNumber);null!==t.targetMismatches.get(o)?c=c.withResumeToken(je.EMPTY_BYTE_STRING,X.min()).withLastLimboFreeSnapshotVersion(X.min()):s.resumeToken.approximateByteSize()>0&&(c=c.withResumeToken(s.resumeToken,r)),i=i.insert(o,c),function(e,t,n){return 0===e.resumeToken.approximateByteSize()||t.snapshotVersion.toMicroseconds()-e.snapshotVersion.toMicroseconds()>=3e8||n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0}(l,c,s)&&a.push(n.$r.updateTargetData(e,c))}));let o=Xt(),l=an();if(t.documentUpdates.forEach((r=>{t.resolvedLimboDocuments.has(r)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(e,r))})),a.push(vi(e,s,t.documentUpdates).next((e=>{o=e.hs,l=e.Ps}))),!r.isEqual(X.min())){const t=n.$r.getLastRemoteSnapshotVersion(e).next((t=>n.$r.setTargetsMetadata(e,e.currentSequenceNumber,r)));a.push(t)}return ue.waitFor(a).next((()=>s.apply(e))).next((()=>n.localDocuments.getLocalViewOfDocuments(e,o,l))).next((()=>o))})).then((e=>(n.ss=i,e)))}(n.localStore,t);
2t.targetChanges.forEach(((e,t)=>{const r=n.Oa.get(t);r&&(N(e.addedDocuments.size+e.modifiedDocuments.size+e.removedDocuments.size<=1),e.addedDocuments.size>0?r.Da=!0:e.modifiedDocuments.size>0?N(r.Da):e.removedDocuments.size>0&&(N(r.Da),r.Da=!1))})),await ia(n,e,t)}catch(e){await ce(e)}}function Ks(e,t,n){const r=O(e);if(r.isPrimaryClient&&0===n||!r.isPrimaryClient&&1===n){const e=[];r.va.forEach(((n,r)=>{const i=r.view.Y_(t);i.snapshot&&e.push(i.snapshot)})),function(e,t){const n=O(e);n.onlineState=t;let r=!1;n.queries.forEach(((e,n)=>{for(const i of n.z_)i.Y_(t)&&(r=!0)})),r&&Ps(n)}(r.eventManager,t),e.length&&r.Ca.E_(e),r.onlineState=t,r.isPrimaryClient&&r.sharedClientState.setOnlineState(t)}}async function Gs(e,t,n){const r=O(e);r.sharedClientState.updateQueryState(t,"rejected",n);const i=r.Oa.get(t),s=i&&i.key;if(s){let e=new Ee(te.comparator);e=e.insert(s,it.newNoDocument(s,X.min()));const n=an().add(s),i=new tr(X.min(),new Map,new Ee(K),e,n);await Ws(r,i),r.xa=r.xa.remove(s),r.Oa.delete(t),ra(r)}else await xi(r.localStore,t,!1).then((()=>Zs(r,t,n))).catch(ce)}async function Qs(e,t){const n=O(e),r=t.batch.batchId;try{const e=await function(e,t){const n=O(e);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",(e=>{const r=t.batch.keys(),i=n.us.newChangeBuffer({trackRemovals:!0});return function(e,t,n,r){const i=n.batch,s=i.keys();let a=ue.resolve();return s.forEach((e=>{a=a.next((()=>r.getEntry(t,e))).next((t=>{const s=n.docVersions.get(e);N(null!==s),t.version.compareTo(s)<0&&(i.applyToRemoteDocument(t,n),t.isValidDocument()&&(t.setReadTime(n.commitVersion),r.addEntry(t)))}))})),a.next((()=>e.mutationQueue.removeMutationBatch(t,i)))}(n,e,t,i).next((()=>i.apply(e))).next((()=>n.mutationQueue.performConsistencyCheck(e))).next((()=>n.documentOverlayCache.removeOverlaysForBatchId(e,r,t.batch.batchId))).next((()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,function(e){let t=an();for(let n=0;n<e.mutationResults.length;++n)e.mutationResults[n].transformResults.length>0&&(t=t.add(e.batch.mutations[n].key));return t}(t)))).next((()=>n.localDocuments.getDocuments(e,r)))}))}(n.localStore,t);Js(n,r,null),Ys(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),await ia(n,e)}catch(e){await ce(e)}}async function Xs(e,t,n){const r=O(e);try{const e=await function(e,t){const n=O(e);return n.persistence.runTransaction("Reject batch","readwrite-primary",(e=>{let r;
2return n.mutationQueue.lookupMutationBatch(e,t).next((t=>(N(null!==t),r=t.keys(),n.mutationQueue.removeMutationBatch(e,t)))).next((()=>n.mutationQueue.performConsistencyCheck(e))).next((()=>n.documentOverlayCache.removeOverlaysForBatchId(e,r,t))).next((()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,r))).next((()=>n.localDocuments.getDocuments(e,r)))}))}(r.localStore,t);Js(r,t,n),Ys(r,t),r.sharedClientState.updateMutationState(t,"rejected",n),await ia(r,e)}catch(n){await ce(n)}}function Ys(e,t){(e.Ba.get(t)||[]).forEach((e=>{e.resolve()})),e.Ba.delete(t)}function Js(e,t,n){const r=O(e);let i=r.La[r.currentUser.toKey()];if(i){const e=i.get(t);e&&(n?e.reject(n):e.resolve(),i=i.remove(t)),r.La[r.currentUser.toKey()]=i}}function Zs(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e.sharedClientState.removeLocalQueryTarget(t);for(const r of e.Fa.get(t))e.va.delete(r),n&&e.Ca.Ka(r,n);e.Fa.delete(t),e.isPrimaryClient&&e.Na.mr(t).forEach((t=>{e.Na.containsKey(t)||ea(e,t)}))}function ea(e,t){e.Ma.delete(t.path.canonicalString());const n=e.xa.get(t);null!==n&&(Wi(e.remoteStore,n),e.xa=e.xa.remove(t),e.Oa.delete(n),ra(e))}function ta(e,t,n){for(const r of n)r instanceof Rs?(e.Na.addReference(r.key,t),na(e,r)):r instanceof Ls?(A("SyncEngine","Document no longer in limbo: "+r.key),e.Na.removeReference(r.key,t),e.Na.containsKey(r.key)||ea(e,r.key)):j()}function na(e,t){const n=t.key,r=n.path.canonicalString();e.xa.get(n)||e.Ma.has(r)||(A("SyncEngine","New document in limbo: "+n),e.Ma.add(r),ra(e))}function ra(e){for(;e.Ma.size>0&&e.xa.size<e.maxConcurrentLimboResolutions;){const t=e.Ma.values().next().value;e.Ma.delete(t);const n=new te(J.fromString(t)),r=e.ka.next();e.Oa.set(r,new Fs(n)),e.xa=e.xa.insert(n,r),qi(e.remoteStore,new zr(Ft(Rt(n.path)),r,"TargetPurposeLimboResolution",fe.oe))}}async function ia(e,t,n){const r=O(e),i=[],s=[],a=[];r.va.isEmpty()||(r.va.forEach(((e,o)=>{a.push(r.Qa(o,t,n).then((e=>{var t;if((e||n)&&r.isPrimaryClient){const i=e?!e.fromCache:null===(t=null==n?void 0:n.targetChanges.get(o.targetId))||void 0===t?void 0:t.current;
2r.sharedClientState.updateQueryState(o.targetId,i?"current":"not-current")}if(e){i.push(e);const t=di.Ui(o.targetId,e);s.push(t)}})))})),await Promise.all(a),r.Ca.E_(i),await async function(e,t){const n=O(e);try{await n.persistence.runTransaction("notifyLocalViewChanges","readwrite",(e=>ue.forEach(t,(t=>ue.forEach(t.Ki,(r=>n.persistence.referenceDelegate.addReference(e,t.targetId,r))).next((()=>ue.forEach(t.$i,(r=>n.persistence.referenceDelegate.removeReference(e,t.targetId,r)))))))))}catch(e){if(!he(e))throw e;A("LocalStore","Failed to update sequence numbers: "+e)}for(const r of t){const e=r.targetId;if(!r.fromCache){const t=n.ss.get(e),r=t.snapshotVersion,i=t.withLastLimboFreeSnapshotVersion(r);n.ss=n.ss.insert(e,i)}}}(r.localStore,s))}async function sa(e,t){const n=O(e);if(!n.currentUser.isEqual(t)){A("SyncEngine","User change. New user:",t.toKey());const e=await gi(n.localStore,t);n.currentUser=t,function(e,t){e.Ba.forEach((e=>{e.forEach((e=>{e.reject(new L(R.CANCELLED,t))}))})),e.Ba.clear()}(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(t,e.removedBatchIds,e.addedBatchIds),await ia(n,e.ls)}}function aa(e,t){const n=O(e),r=n.Oa.get(t);if(r&&r.Da)return an().add(r.key);{let e=an();const r=n.Fa.get(t);if(!r)return e;for(const t of r){const r=n.va.get(t);e=e.unionWith(r.view.Ra)}return e}}function oa(e){const t=O(e);return t.remoteStore.remoteSyncer.applyRemoteEvent=Ws.bind(null,t),t.remoteStore.remoteSyncer.getRemoteKeysForTarget=aa.bind(null,t),t.remoteStore.remoteSyncer.rejectListen=Gs.bind(null,t),t.Ca.E_=Ts.bind(null,t.eventManager),t.Ca.Ka=Is.bind(null,t.eventManager),t}function la(e){const t=O(e);return t.remoteStore.remoteSyncer.applySuccessfulWrite=Qs.bind(null,t),t.remoteStore.remoteSyncer.rejectFailedWrite=Xs.bind(null,t),t}class ca{constructor(){this.synchronizeTabs=!1}async initialize(e){this.serializer=Li(e.databaseInfo.databaseId),this.sharedClientState=this.createSharedClientState(e),this.persistence=this.createPersistence(e),await this.persistence.start(),this.localStore=this.createLocalStore(e),this.gcScheduler=this.createGarbageCollectionScheduler(e,this.localStore),this.indexBackfillerScheduler=this.createIndexBackfillerScheduler(e,this.localStore)}createGarbageCollectionScheduler(e,t){return null}createIndexBackfillerScheduler(e,t){return null}createLocalStore(e){return mi(this.persistence,new fi,e.initialUser,this.serializer)}createPersistence(e){return new li(ui.Yr,this.serializer)}createSharedClientState(e){return new ki}async terminate(){var e,t;null===(e=this.gcScheduler)||void 0===e||e.stop(),null===(t=this.indexBackfillerScheduler)||void 0===t||t.stop(),this.sharedClientState.shutdown(),await this.persistence.shutdown()}}class ua{async initialize(e,t){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(t),this.remoteStore=this.createRemoteStore(t),this.eventManager=this.createEventManager(t),this.syncEngine=this.createSyncEngine(t,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=e=>Ks(this.syncEngine,e,1),this.remoteStore.remoteSyncer.handleCredentialChange=sa.bind(null,this.syncEngine),await ms(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return new Es}createDatastore(e){const t=Li(e.databaseInfo.databaseId),n=function(e){return new Oi(e)}(e.databaseInfo);return function(e,t,n,r){return new Vi(e,t,n,r)}(e.authCredentials,e.appCheckCredentials,n,t)}createRemoteStore(e){return function(e,t,n,r,i){return new zi(e,t,n,r,i)}(this.localStore,this.datastore,e.asyncQueue,(e=>Ks(this.syncEngine,e,0)),Ai.D()?new Ai:new Ci)}createSyncEngine(e,t){return function(e,t,n,r,i,s,a){const o=new Us(e,t,n,r,i,s);return a&&(o.qa=!0),o}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,t)}async terminate(){var e,t;await async function(e){const t=O(e);A("RemoteStore","RemoteStore shutting down."),t.N_.add(5),await Hi(t),t.B_.shutdown(),t.k_.set("Unknown")}(this.remoteStore),null===(e=this.datastore)||void 0===e||e.terminate(),null===(t=this.eventManager)||void 0===t||t.terminate()}}class da{constructor(e){this.observer=e,this.muted=!1}next(e){this.observer.next&&this.Wa(this.observer.next,e)}error(e){this.observer.error?this.Wa(this.observer.error,e):T("Uncaught Error in snapshot listener:",e.toString())}Ga(){this.muted=!0}
2Wa(e,t){this.muted||setTimeout((()=>{this.muted||e(t)}),0)}}class ha{constructor(e,t,n,r){this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=n,this.databaseInfo=r,this.user=S.UNAUTHENTICATED,this.clientId=W.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(n,(async e=>{A("FirestoreClient","Received user=",e.uid),await this.authCredentialListener(e),this.user=e})),this.appCheckCredentials.start(n,(e=>(A("FirestoreClient","Received new app check token=",e),this.appCheckCredentialListener(e,this.user))))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new L(R.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){this.asyncQueue.enterRestrictedMode();const e=new D;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((async()=>{try{this._onlineComponents&&await this._onlineComponents.terminate(),this._offlineComponents&&await this._offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(t){const n=bs(t,"Failed to shutdown persistence");e.reject(n)}})),e.promise}}async function fa(e,t){e.asyncQueue.verifyOperationInProgress(),A("FirestoreClient","Initializing OfflineComponentProvider");const n=e.configuration;await t.initialize(n);let r=n.initialUser;e.setCredentialChangeListener((async e=>{r.isEqual(e)||(await gi(t.localStore,e),r=e)})),t.persistence.setDatabaseDeletedListener((()=>e.terminate())),e._offlineComponents=t}async function pa(e,t){e.asyncQueue.verifyOperationInProgress();const n=await ga(e);A("FirestoreClient","Initializing OnlineComponentProvider"),await t.initialize(n,e.configuration),e.setCredentialChangeListener((e=>ps(t.remoteStore,e))),e.setAppCheckTokenChangeListener(((e,n)=>ps(t.remoteStore,n))),e._onlineComponents=t}function ma(e){return"FirebaseError"===e.name?e.code===R.FAILED_PRECONDITION||e.code===R.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&e instanceof DOMException)||22===e.code||20===e.code||11===e.code}async function ga(e){if(!e._offlineComponents)if(e._uninitializedComponentsProvider){A("FirestoreClient","Using user provided OfflineComponentProvider");try{await fa(e,e._uninitializedComponentsProvider._offline)}catch(t){const n=t;if(!ma(n))throw n;I("Error using user provided cache. Falling back to memory cache: "+n),await fa(e,new ca)}}else A("FirestoreClient","Using default OfflineComponentProvider"),await fa(e,new ca);return e._offlineComponents}async function ya(e){return e._onlineComponents||(e._uninitializedComponentsProvider?(A("FirestoreClient","Using user provided OnlineComponentProvider"),await pa(e,e._uninitializedComponentsProvider._online)):(A("FirestoreClient","Using default OnlineComponentProvider"),await pa(e,new ua))),e._onlineComponents}function va(e){return ya(e).then((e=>e.syncEngine))}async function ba(e){const t=await ya(e),n=t.eventManager;return n.onListen=Vs.bind(null,t.syncEngine),n.onUnlisten=Hs.bind(null,t.syncEngine),n.onFirstRemoteStoreListen=Bs.bind(null,t.syncEngine),n.onLastRemoteStoreUnlisten=qs.bind(null,t.syncEngine),n}function wa(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new D;return e.asyncQueue.enqueueAndForget((async()=>function(e,t,n,r,i){const s=new da({next:s=>{t.enqueueAndForget((()=>As(e,a)));const o=s.docs.has(n);!o&&s.fromCache?i.reject(new L(R.UNAVAILABLE,"Failed to get document because the client is offline.")):o&&s.fromCache&&r&&"server"===r.source?i.reject(new L(R.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):i.resolve(s)},error:e=>i.reject(e)}),a=new Os(Rt(n.path),s,{includeMetadataChanges:!0,oa:!0});return Cs(e,a)}(await ba(e),e.asyncQueue,t,n,r))),r.promise}function xa(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new D;return e.asyncQueue.enqueueAndForget((async()=>function(e,t,n,r,i){const s=new da({next:n=>{t.enqueueAndForget((()=>As(e,a))),n.fromCache&&"server"===r.source?i.reject(new L(R.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):i.resolve(n)},error:e=>i.reject(e)}),a=new Os(n,s,{includeMetadataChanges:!0,oa:!0});return Cs(e,a)}(await ba(e),e.asyncQueue,t,n,r))),r.promise}function _a(e){const t={};return void 0!==e.timeoutSeconds&&(t.timeoutSeconds=e.timeoutSeconds),t}const Sa=new Map;function Ea(e,t,n){if(!n)throw new L(R.INVALID_ARGUMENT,`Function ${e}() cannot be called with an empty ${t}.`)}
2function ka(e){if(!te.isDocumentKey(e))throw new L(R.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${e} has ${e.length}.`)}function Ca(e){if(te.isDocumentKey(e))throw new L(R.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${e} has ${e.length}.`)}function Aa(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e=`${e.substring(0,20)}...`),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";{const t=function(e){return e.constructor?e.constructor.name:null}(e);return t?`a custom ${t} object`:"an object"}}return"function"==typeof e?"a function":j()}function Ta(e,t){if("_delegate"in e&&(e=e._delegate),!(e instanceof t)){if(t.name===e.constructor.name)throw new L(R.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=Aa(e);throw new L(R.INVALID_ARGUMENT,`Expected type '${t.name}', but it was: ${n}`)}}return e}class Ia{constructor(e){var t,n;if(void 0===e.host){if(void 0!==e.ssl)throw new L(R.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=e.host,this.ssl=null===(t=e.ssl)||void 0===t||t;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,void 0===e.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<1048576)throw new L(R.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}(function(e,t,n,r){if(!0===t&&!0===r)throw new L(R.INVALID_ARGUMENT,`${e} and ${n} cannot be used together.`)})("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:void 0===e.experimentalAutoDetectLongPolling?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=_a(null!==(n=e.experimentalLongPollingOptions)&&void 0!==n?n:{}),function(e){if(void 0!==e.timeoutSeconds){if(isNaN(e.timeoutSeconds))throw new L(R.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (must not be NaN)`);if(e.timeoutSeconds<5)throw new L(R.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (minimum allowed value is 5)`);if(e.timeoutSeconds>30)throw new L(R.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&function(e,t){return e.timeoutSeconds===t.timeoutSeconds}(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class Pa{constructor(e,t,n,r){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=n,this._app=r,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Ia({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new L(R.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(e){if(this._settingsFrozen)throw new L(R.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Ia(e),void 0!==e.credentials&&(this._authCredentials=function(e){if(!e)return new F;switch(e.type){case"firstParty":return new z(e.sessionIndex||"0",e.iamToken||null,e.authTokenFactory||null);case"provider":return e.client;default:throw new L(R.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invali
2d credential type")}}(e.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(e){const t=Sa.get(e);t&&(A("ComponentProvider","Removing Datastore"),Sa.delete(e),t.terminate())}(this),Promise.resolve()}}class ja{constructor(e,t,n){this.converter=t,this._query=n,this.type="query",this.firestore=e}withConverter(e){return new ja(this.firestore,e,this._query)}}class Na{constructor(e,t,n){this.converter=t,this._key=n,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new Oa(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new Na(this.firestore,e,this._key)}}class Oa extends ja{constructor(e,t,n){super(e,t,Rt(n)),this._path=n,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new Na(this.firestore,null,new te(e))}withConverter(e){return new Oa(this.firestore,e,this._path)}}function Ra(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(e=(0,l.Ku)(e),Ea("collection","path",t),e instanceof Pa){const n=J.fromString(t,...r);return Ca(n),new Oa(e,null,n)}{if(!(e instanceof Na||e instanceof Oa))throw new L(R.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const n=e._path.child(J.fromString(t,...r));return Ca(n),new Oa(e.firestore,null,n)}}function La(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(e=(0,l.Ku)(e),1===arguments.length&&(t=W.newId()),Ea("doc","path",t),e instanceof Pa){const n=J.fromString(t,...r);return ka(n),new Na(e,null,new te(n))}{if(!(e instanceof Na||e instanceof Oa))throw new L(R.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const n=e._path.child(J.fromString(t,...r));return ka(n),new Na(e.firestore,e instanceof Oa?e.converter:null,new te(n))}}class Da{constructor(){this._u=Promise.resolve(),this.au=[],this.uu=!1,this.cu=[],this.lu=null,this.hu=!1,this.Pu=!1,this.Iu=[],this.e_=new Di(this,"async_queue_retry"),this.Tu=()=>{const e=Ri();e&&A("AsyncQueue","Visibility state changed to "+e.visibilityState),this.e_.zo()};const e=Ri();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.Tu)}get isShuttingDown(){return this.uu}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.Eu(),this.du(e)}enterRestrictedMode(e){if(!this.uu){this.uu=!0,this.Pu=e||!1;const t=Ri();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.Tu)}}enqueue(e){if(this.Eu(),this.uu)return new Promise((()=>{}));const t=new D;return this.du((()=>this.uu&&this.Pu?Promise.resolve():(e().then(t.resolve,t.reject),t.promise))).then((()=>t.promise))}enqueueRetryable(e){this.enqueueAndForget((()=>(this.au.push(e),this.Au())))}async Au(){if(0!==this.au.length){try{await this.au[0](),this.au.shift(),this.e_.reset()}catch(e){if(!he(e))throw e;A("AsyncQueue","Operation failed with retryable error: "+e)}this.au.length>0&&this.e_.Wo((()=>this.Au()))}}du(e){const t=this._u.then((()=>(this.hu=!0,e().catch((e=>{this.lu=e,this.hu=!1;const t=function(e){let t=e.message||"";return e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+"\n"+e.stack),t}(e);throw T("INTERNAL UNHANDLED ERROR: ",t),e})).then((e=>(this.hu=!1,e))))));return this._u=t,t}enqueueAfterDelay(e,t,n){this.Eu(),this.Iu.indexOf(e)>-1&&(t=0);const r=vs.createAndSchedule(this,e,t,n,(e=>this.Ru(e)));return this.cu.push(r),r}Eu(){this.lu&&j()}verifyOperationInProgress(){}async Vu(){let e;do{e=this._u,await e}while(e!==this._u)}mu(e){for(const t of this.cu)if(t.timerId===e)return!0;return!1}fu(e){return this.Vu().then((()=>{this.cu.sort(((e,t)=>e.targetTimeMs-t.targetTimeMs));for(const t of this.cu)if(t.skipDelay(),"all"!==e&&t.timerId===e)break;return this.Vu()}))}gu(e){this.Iu.push(e)}Ru(e){const t=this.cu.indexOf(e);this.cu.splice(t,1)}}class Ma extends Pa{constructor(e,t,n,r){super(e,t,n,r),this.type="firestore",this._queue=new Da,this._persistenceKey=(null==r?void 0:r.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||Va(this),this._firestoreClient.terminate()}}function Fa(e,t){const n="object"==typeof e?e:(0,s.Sx)(),r="string"==typeof e?e:t||"(default)",i=(0,s.j6)(n,"firestore").getImmediate({identifier:r});if(!i._initialized){const e=(0,l.yU)("firestore");e&&function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var i;const s=(e=Ta(e,Pa))._getSettings(),a=`${t}:${n}`;if("firestore.googleapis.com"!==s.host&&s.host!==a&&I("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),e._setSettings(Object.assign(Object.assign({},s),{host:a,ssl:!1})),r.mockUserToken){let t,n;if("string"==typeof r.mockUserToken)t=r.mockUserToken,n=S.MOCK_USER;else{t=(0,l.Fy)(r.mockUserToken,null===(i=e._app)||void 0===i?void 0:i.options.projectId);const s=r.mockUserToken.sub||r.mockUserToken.user_id;if(!s)throw new L(R.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");n=new S(s)}e._authCredentials=new U(new M(t,n))}}(i,...e)}return i}function Ua(e){return e._firestoreClient||Va(e),e._firestoreClient.verifyNotTerminated(),e._firestoreClient}function Va(e){var t,n,r;const i=e._freezeSettings(),s=function(e,t,n,r){return new Ue(e,t,n,r.host,r.ssl,r.experimentalForceLongPolling,r.experimentalAutoDetectLongPolling,_a(r.experimentalLongPollingOptions),r.useFetchStreams)}(e._databaseId,(null===(t=e._app)||void 0===t?void 0:t.options.appId)||"",e._persistenceKey,i);e._firestoreClient=new ha(e._authCredentials,e._appCheckCredentials,e._queue,s),(null===(n=i.localCache)||void 0===n?void 0:n._offlineComponentProvider)&&(null===(r=i.localCache)||void 0===r?void 0:r._onlineComponentProvider)&&(e._firestoreClient._uninitializedComponentsProvider={_offlineKind:i.localCache.kind,_offline:i.localCache._offlineComponentProvider,_online:i.localCache._onlineComponentProvider})}class Ba{constructor(e){this._byteString=e}static fromBase64String(e){try{return new Ba(je.fromBase64String(e))}catch(e){throw new L(R.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+e)}}static fromUint8Array(e){return new Ba(je.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}}class za{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let r=0;r<t.length;++r)if(0===t[r].length)throw new L(R.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new ee(t)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}class $a{constructor(e){this._methodName=e}}class Ha{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new L(R.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new L(R.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(e){return K(this._lat,e._lat)||K(this._long,e._long)}}const qa=/^__.*__$/;class Wa{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return null!==this.fieldMask?new Rn(e,this.data,this.fieldMask,t,this.fieldTransforms):new On(e,this.data,t,this.fieldTransforms)}}class Ka{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return new Rn(e,this.data,this.fieldMask,t,this.fieldTransforms)}}function Ga(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw j()}}class Qa{constructor(e,t,n,r,i,s){this.settings=e,this.databaseId=t,this.serializer
2=n,this.ignoreUndefinedProperties=r,void 0===i&&this.pu(),this.fieldTransforms=i||[],this.fieldMask=s||[]}get path(){return this.settings.path}get yu(){return this.settings.yu}wu(e){return new Qa(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}Su(e){var t;const n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.wu({path:n,bu:!1});return r.Du(e),r}Cu(e){var t;const n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.wu({path:n,bu:!1});return r.pu(),r}vu(e){return this.wu({path:void 0,bu:!0})}Fu(e){return co(e,this.settings.methodName,this.settings.Mu||!1,this.path,this.settings.xu)}contains(e){return void 0!==this.fieldMask.find((t=>e.isPrefixOf(t)))||void 0!==this.fieldTransforms.find((t=>e.isPrefixOf(t.field)))}pu(){if(this.path)for(let e=0;e<this.path.length;e++)this.Du(this.path.get(e))}Du(e){if(0===e.length)throw this.Fu("Document fields must not be empty");if(Ga(this.yu)&&qa.test(e))throw this.Fu('Document fields cannot begin and end with "__"')}}class Xa{constructor(e,t,n){this.databaseId=e,this.ignoreUndefinedProperties=t,this.serializer=n||Li(e)}Ou(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return new Qa({yu:e,methodName:t,xu:n,path:ee.emptyPath(),bu:!1,Mu:r},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function Ya(e){const t=e._freezeSettings(),n=Li(e._databaseId);return new Xa(e._databaseId,!!t.ignoreUndefinedProperties,n)}function Ja(e,t,n,r,i){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const a=e.Ou(s.merge||s.mergeFields?2:0,t,n,i);so("Data must be an object, but it was:",a,r);const o=ro(r,a);let l,c;if(s.merge)l=new Ie(a.fieldMask),c=a.fieldTransforms;else if(s.mergeFields){const e=[];for(const r of s.mergeFields){const i=ao(t,r,n);if(!a.contains(i))throw new L(R.INVALID_ARGUMENT,`Field '${i}' is specified in your field mask but missing from your input data.`);uo(e,i)||e.push(i)}l=new Ie(e),c=a.fieldTransforms.filter((e=>l.covers(e.field)))}else l=null,c=a.fieldTransforms;return new Wa(new nt(o),l,c)}class Za extends $a{_toFieldTransform(e){if(2!==e.yu)throw 1===e.yu?e.Fu(`${this._methodName}() can only appear at the top level of your update data`):e.Fu(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return e.fieldMask.push(e.path),null}isEqual(e){return e instanceof Za}}function eo(e,t,n,r){const i=e.Ou(1,t,n);so("Data must be an object, but it was:",i,r);const s=[],a=nt.empty();_e(r,((e,r)=>{const o=lo(t,e,n);r=(0,l.Ku)(r);const c=i.Cu(o);if(r instanceof Za)s.push(o);else{const e=no(r,c);null!=e&&(s.push(o),a.set(o,e))}}));const o=new Ie(s);return new Ka(a,o,i.fieldTransforms)}function to(e,t,n,r,i,s){const a=e.Ou(1,t,n),o=[ao(t,r,n)],c=[i];if(s.length%2!=0)throw new L(R.INVALID_ARGUMENT,`Function ${t}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let l=0;l<s.length;l+=2)o.push(ao(t,s[l])),c.push(s[l+1]);const u=[],d=nt.empty();for(let f=o.length-1;f>=0;--f)if(!uo(u,o[f])){const e=o[f];let t=c[f];t=(0,l.Ku)(t);const n=a.Cu(e);if(t instanceof Za)u.push(e);else{const r=no(t,n);null!=r&&(u.push(e),d.set(e,r))}}const h=new Ie(u);return new Ka(d,h,a.fieldTransforms)}function no(e,t){if(io(e=(0,l.Ku)(e)))return so("Unsupported field value:",t,e),ro(e,t);if(e instanceof $a)return function(e,t){if(!Ga(t.yu))throw t.Fu(`${e._methodName}() can only be used with update() and set()`);if(!t.path)throw t.Fu(`${e._methodName}() is not currently supported inside arrays`);const n=e._toFieldTransform(t);n&&t.fieldTransforms.push(n)}(e,t),null;if(void 0===e&&t.ignoreUndefinedProperties)return null;if(t.path&&t.fieldMask.push(t.path),e instanceof Array){if(t.settings.bu&&4!==t.yu)throw t.Fu("Nested arrays are not supported");return function(e,t){const n=[];let r=0;for(const i of e){let e=no(i,t.vu(r));null==e&&(e={nullValue:"NULL_VALUE"}),n.push(e),r++}return{arrayValue:{values:n}}}(e,t)}return function(e,t){if(null===(e=(0,l.Ku)(e)))return{nullValue:"NULL_VALUE"};if("number"==typeof e)return dn(t.serializer,e);if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){const n=Q.fromDate(e);return{timestampValue:mr(t.serializer,n)}}if(e instanceof Q){const n=new Q(e.seconds,1e3*Math.floor(e.nanoseconds/1e3));return{timestampValue:mr(t.serializer,n)}}if(e instanceof Ha)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof Ba)return{bytesValue:gr(t.serializer,e._byteString)};if(e instanceof Na){const n=t.databaseId,r=e.firestore._databaseId;if(!r.isEqual(n))throw t.Fu(`Document reference is for database ${r.projectId}/${r.database} but should be for database ${n.projectId}/${n.database}`);return{referenceValue:br(e.firestore._databaseId||t.databaseId,e._key.path)}}throw t.Fu(`Unsupported field value: ${Aa(e)}`)}(e,t)}function ro(e,t){const n={};return Se(e)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):_e(e,((e,r)=>{const i=no(r,t.Su(e));null!=i&&(n[e]=i)})),{mapValue:{fields:n}}}function io(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof Q||e instanceof Ha||e instanceof Ba||e instanceof Na||e instanceof $a)}function so(e,t,n){if(!io(n)||!function(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}(n)){const r=Aa(n);throw"an object"===r?t.Fu(e+" a custom object"):t.Fu(e+" "+r)}}
2function ao(e,t,n){if((t=(0,l.Ku)(t))instanceof za)return t._internalPath;if("string"==typeof t)return lo(e,t);throw co("Field path arguments must be of type string or ",e,!1,void 0,n)}const oo=new RegExp("[~\\*/\\[\\]]");function lo(e,t,n){if(t.search(oo)>=0)throw co(`Invalid field path (${t}). Paths must not contain '~', '*', '/', '[', or ']'`,e,!1,void 0,n);try{return new za(...t.split("."))._internalPath}catch(r){throw co(`Invalid field path (${t}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,e,!1,void 0,n)}}function co(e,t,n,r,i){const s=r&&!r.isEmpty(),a=void 0!==i;let o=`Function ${t}() called with invalid data`;n&&(o+=" (via `toFirestore()`)"),o+=". ";let l="";return(s||a)&&(l+=" (found",s&&(l+=` in field ${r}`),a&&(l+=` in document ${i}`),l+=")"),new L(R.INVALID_ARGUMENT,o+e+l)}function uo(e,t){return e.some((e=>e.isEqual(t)))}class ho{constructor(e,t,n,r,i){this._firestore=e,this._userDataWriter=t,this._key=n,this._document=r,this._converter=i}get id(){return this._key.path.lastSegment()}get ref(){return new Na(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const e=new fo(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}get(e){if(this._document){const t=this._document.data.field(po("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}class fo extends ho{data(){return super.data()}}function po(e,t){return"string"==typeof t?lo(e,t):t instanceof za?t._internalPath:t._delegate._internalPath}function mo(e){if("L"===e.limitType&&0===e.explicitOrderBy.length)throw new L(R.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class go{convertValue(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";switch(ze(e)){case 0:return null;case 1:return e.booleanValue;case 2:return Re(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,t);case 5:return e.stringValue;case 6:return this.convertBytes(Le(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,t);case 10:return this.convertObject(e.mapValue,t);default:throw j()}}convertObject(e,t){return this.convertObjectMap(e.fields,t)}convertObjectMap(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";const n={};return _e(e,((e,r)=>{n[e]=this.convertValue(r,t)})),n}convertGeoPoint(e){return new Ha(Re(e.latitude),Re(e.longitude))}convertArray(e,t){return(e.values||[]).map((e=>this.convertValue(e,t)))}convertServerTimestamp(e,t){switch(t){case"previous":const n=Me(e);return null==n?null:this.convertValue(n,t);case"estimate":return this.convertTimestamp(Fe(e));default:return null}}convertTimestamp(e){const t=Oe(e);return new Q(t.seconds,t.nanos)}convertDocumentKey(e,t){const n=J.fromString(e);N(Br(n));const r=new Ve(n.get(1),n.get(3)),i=new te(n.popFirst(5));return r.isEqual(t)||T(`Document ${i} contains a document reference within a different database (${r.projectId}/${r.database}) which is not supported. It will be treated as a reference in the current database (${t.projectId}/${t.database}) instead.`),i}}function yo(e,t,n){let r;return r=e?n&&(n.merge||n.mergeFields)?e.toFirestore(t,n):e.toFirestore(t):t,r}class vo{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class bo extends ho{constructor(e,t,n,r,i,s){super(e,t,n,r,s),this._firestore=e,this._firestoreImpl=e,this.metadata=i}exists(){return super.exists()}data(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._document){if(this._converter){const t=new wo(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._document){const n=this._document.data.field(po("DocumentSnapshot.get",e));if(null!==n)return this._userDataWriter.convertValue(n,t.serverTimestamps)}}}class wo extends bo{data(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.data(e)}}class xo{constructor(e,t,n,r){this._firestore=e,this._userDataWriter=t,this._snapshot=r,this.metadata=new vo(r.hasPendingWrites,r.fromCache),this.query=n}get docs(){const e=[];return this.forEach((t=>e.push(t))),e}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(e,t){this._snapshot.docs.forEach((n=>{e.call(t,new wo(this._firestore,this._userDataWriter,n.key,n,new vo(this._snapshot.mutatedKeys.has(n.key),this._snapshot.fromCache),this.query.converter))}))}docChanges(){const e=!!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).includeMetadataChanges;if(e&&this._snapshot.excludesMetadataChanges)throw new L(R.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===e||(this._cachedChanges=function(e,t){if(e._snapshot.oldDocs.isEmpty()){let t=0;return e._snapshot.docChanges.map((n=>{const r=new wo(e._firestore,e._userDataWriter,n.doc.key,n.doc,new vo(e._snapshot.mutatedKeys.has(n.doc.key),e._snapshot.fromCache),e.query.converter);return n.doc,{type:"added",doc:r,oldIndex:-1,newIndex:t++}}))}{let n=e._snapshot.oldDocs;return e._snapshot.docChanges.filter((e=>t||3!==e.type)).map((t=>{const r=new wo(e._firestore,e._userDataWriter,t.doc.key,t.doc,new vo(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter);let i=-1,s=-1;return 0!==t.type&&(i=n.indexOf(t.doc.key),n=n.delete(t.doc.key)),1!==t.type&&(n=n.add(t.doc),s=n.indexOf(t.doc.key)),{type:_o(t.type),doc:r,oldIndex:i,newIndex:s}}))}}(this,e),this._cachedChangesIncludeMetadataChanges=e),this._cachedChanges}}function _o(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return j()}}function So(e){e=Ta(e,Na);const t=Ta(e.firestore,Ma);return wa(Ua(t),e._key).then((n=>Po(t,e,n)))}class Eo extends go{constructor(e){super(),this.firestore=e}convertBytes(e){return new Ba(e)}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);
2return new Na(this.firestore,null,t)}}function ko(e){e=Ta(e,ja);const t=Ta(e.firestore,Ma),n=Ua(t),r=new Eo(t);return mo(e._query),xa(n,e._query).then((n=>new xo(t,r,e,n)))}function Co(e,t,n){e=Ta(e,Na);const r=Ta(e.firestore,Ma),i=yo(e.converter,t,n);return Io(r,[Ja(Ya(r),"setDoc",e._key,i,null!==e.converter,n).toMutation(e._key,kn.none())])}function Ao(e,t,n){e=Ta(e,Na);const r=Ta(e.firestore,Ma),i=Ya(r);let s;for(var a=arguments.length,o=new Array(a>3?a-3:0),c=3;c<a;c++)o[c-3]=arguments[c];return s="string"==typeof(t=(0,l.Ku)(t))||t instanceof za?to(i,"updateDoc",e._key,t,n,o):eo(i,"updateDoc",e._key,t),Io(r,[s.toMutation(e._key,kn.exists(!0))])}function To(e,t){const n=Ta(e.firestore,Ma),r=La(e),i=yo(e.converter,t);return Io(n,[Ja(Ya(e.firestore),"addDoc",r._key,i,null!==e.converter,{}).toMutation(r._key,kn.exists(!1))]).then((()=>r))}function Io(e,t){return function(e,t){const n=new D;return e.asyncQueue.enqueueAndForget((async()=>async function(e,t,n){const r=la(e);try{const e=await function(e,t){const n=O(e),r=Q.now(),i=t.reduce(((e,t)=>e.add(t.key)),an());let s,a;return n.persistence.runTransaction("Locally write mutations","readwrite",(e=>{let o=Xt(),l=an();return n.us.getEntries(e,i).next((e=>{o=e,o.forEach(((e,t)=>{t.isValidDocument()||(l=l.add(e))}))})).next((()=>n.localDocuments.getOverlayedDocuments(e,o))).next((i=>{s=i;const a=[];for(const e of t){const t=jn(e,s.get(e.key).overlayedDocument);null!=t&&a.push(new Rn(e.key,t,rt(t.value.mapValue),kn.exists(!0)))}
2return n.mutationQueue.addMutationBatch(e,r,a,t)})).next((t=>{a=t;const r=t.applyToLocalDocumentSet(s,l);return n.documentOverlayCache.saveOverlays(e,t.batchId,r)}))})).then((()=>({batchId:a.batchId,changes:Zt(s)})))}(r.localStore,t);r.sharedClientState.addPendingMutation(e.batchId),function(e,t,n){let r=e.La[e.currentUser.toKey()];r||(r=new Ee(K)),r=r.insert(t,n),e.La[e.currentUser.toKey()]=r}(r,e.batchId,n),await ia(r,e.changes),await ss(r.remoteStore)}catch(e){const t=bs(e,"Failed to persist write");n.reject(t)}}(await va(e),t,n))),n.promise}(Ua(e),t)}function Po(e,t,n){const r=n.docs.get(t._key),i=new Eo(e);return new bo(e,i,t._key,r,new vo(n.hasPendingWrites,n.fromCache),t.converter)}new WeakMap;!function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!function(e){E=e}(s.MF),(0,s.om)(new a.uA("firestore",((e,n)=>{let{instanceIdentifier:r,options:i}=n;const s=e.getProvider("app").getImmediate(),a=new Ma(new V(e.getProvider("auth-internal")),new H(e.getProvider("app-check-internal")),function(e,t){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new L(R.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Ve(e.options.projectId,t)}(s,r),s);return i=Object.assign({useFetchStreams:t},i),a._setSettings(i),a}),"PUBLIC").setMultipleInstances(!0)),(0,s.KO)(_,"4.6.5",e),(0,s.KO)(_,"4.6.5","esm2017")}()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var s=Object.create(null);n.r(s);var a={};e=e||[null,t({}),t([]),t(t)];for(var o=2&i&&r;"object"==typeof o&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(s,a),s}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+({2042:"reactPlayerTwitch",2723:"reactPlayerMux",3392:"reactPlayerVidyard",6173:"reactPlayerVimeo",6328:"reactPlayerDailyMotion",6353:"reactPlayerPreview",6463:"reactPlayerKaltura",6887:"reactPlayerFacebook",7458:"reactPlayerFilePlayer",7570:"reactPlayerMixcloud",7627:"reactPlayerStreamable",8446:"reactPlayerYouTube",9340:"reactPlayerWistia",9979:"reactPlayerSoundCloud"}[e]||e)+"."+{82:"59c7d8c0",102:"e127436d",119:"bc290a92",124:"4559c65c",126:"9ab305d3",142:"7b236a63",153:"dd51b4ed",155:"df35599d",172:"a7fe5648",197:"25476377",240:"a748bfae",272:"177fcd86",285:"b31fc86e",291:"65cd4039",302:"de55047e",321:"cafc2e9d",366:"007c545d",368:"70e27ad4",374:"4a47cfc7",429:"226865b1",440:"117fe133",441:"3fd34a2a",443:"8c24c210",500:"007a2dad",501:"41a7363e",511:"2e984f8a",539:"bb8d19b6",573:"b5c18482",612:"7ab394e1",645:"b17ad514",683:"3a0a5e35",726:"9991d7ad",729:"74e30207",739:"4e29983e",773:"fa25a2f4",783:"73ed28e0",803:"76659db7",820:"f3a7348d",825:"1852869f",830:"773c8885",841:"4137a182",967:"e6a9a313",968:"d4875b97",975:"1a94e5fa",1009:"298253ed",1038:"d1ba2809",1043:"b23b1513",1055:"580aae01",1084:"b0551292",1092:"c4c83225",1094:"b31de646",1107:"7729b683",1116:"4f18b833",1167:"53eb97c4",1168:"d4055fbd",1187:"7019f22f",1206:"ec2aae79",1219:"58749c38",1226:"ab627338",1234:"4f18485d",1257:"6795fa6b",1266:"5ed7e4da",1288:"d16e5f51",1291:"72281a0a",1315:"3cccf854",1424:"6c613624",1438:"a0e30294",1469:"df0472e7",1541:"7de90ac8",1548:"beb10562",1648:"81d40e55",1655:"0d0d7e1a",1688:"d1b6125a",1710:"05800c90",1711:"fae54a64",1727:"02dc5c97",1733:"39eaef91",1747:"4861271d",1798:"b41bab37",1803:"dbeda3a7",1815:"18fd4f6d",1841:"1de05817",1843:"bef6850c",1844:"9c5ec595",1898:"895d0d0c",1903:"5a65e030",1908:"0203be7f",1929:"9947cac9",1944:"09192585",1963:"34732777",1967:"990855ab",1975:"454a2df9",1988:"25835ebd",2006:"4fa819b9",2042:"8b658322",2063:"c9e3ecb9",2155:"d06134cd",2163:"864a7daa",2165:"23247e3f",2173:"8639bcd3",2180:"bb4a634d",2181:"75387e68",2322:"fc41e92b",2327:"38f18569",2369:"3768fb2d",2436:"e87c6f42",2455:"4d1e353a",2458:"83cd3901",2464:"d4259750",2490:"6615d812",2585:"ac57580f",2593:"40b9cc36",2594:"2d722f87",2604:"4fc252ae",2611:"0
2a5e77bb",2675:"6e09a3ef",2682:"2e668f77",2703:"6c176c19",2708:"c6ccd474",2723:"95b9a063",2727:"bfab0026",2732:"d9b9277e",2810:"20ab9eea",2851:"ea626d15",2857:"6dfaf359",2858:"ba4180ba",2867:"df42abb8",3028:"0620615a",3058:"f53d6ef3",3079:"2d6a1acb",3099:"52adc326",3124:"e69cfb53",3128:"1a9977de",3145:"bf6e5ea0",3162:"ed0ff256",3174:"a8f0798f",3250:"7a8a0568",3298:"b85ca93d",3328:"a0419fa8",3333:"6a527cbb",3337:"5797d971",3344:"7b759345",3348:"0d0a65ed",3373:"12aad46e",3390:"846b414d",3392:"e17252de",3394:"adffb9fc",3418:"210c724b",3483:"128beac8",3492:"cd507444",3541:"6162fd36",3614:"bc30ea7e",3625:"097c1941",3627:"78dd08c4",3640:"04eaf054",3664:"21fa3502",3798:"3435efe1",3882:"923ee0cf",3885:"69dca16f",3902:"5101aa33",3907:"73b84dbf",3919:"ae44b8dc",3945:"72922169",3953:"343a5190",3968:"5a4f8b53",4049:"0e35b0bb",4052:"f787da21",4070:"79a61d0b",4088:"38da0df5",4099:"6ff48a75",4109:"8ff4c844",4130:"dd2aa830",4169:"3d6b128a",4215:"3128d40c",4217:"60ca60bb",4234:"04c8bfab",4240:"26f3b090",4241:"69d23115",4284:"48c8be41",4292:"15b0d610",4312:"c004871c",4318:"bd53eb1f",4336:"1d7df807",4344:"befca81c",4381:"97d79c2f",4393:"69541c1d",4410:"99e645c4",4414:"b683c54e",4429:"39d5714a",4507:"1e060adc",4523:"68df323b",4540:"5537eeb6",4563:"769d5113",4577:"ffe89874",4584:"54102e2f",4613:"248130b2",4644:"c91bdbc4",4662:"7556c7b8",4784:"63d884b8",4811:"7e90cc21",4813:"aa8cae0d",4828:"162dc3f2",4908:"8dcc1b47",4912:"5bed956f",4916:"6f6ad842",4945:"35a6cb30",4963:"516fd6aa",5050:"1de2c256",5064:"71ff5538",5084:"32efe4ad",5089:"cf607dcb",5093:"677500c1",5108:"a56799fb",5121:"dde3ed81",5142:"a4b11163",5178:"5af4cd31",5188:"c2b2446c",5218:"7225cb14",5248:"640d4a5b",5277:"39d1698d",5287:"9a1938ed",5351:"caeca6a6",5355:"fdfec061",5407:"a3e45ec6",5416:"d79b638c",5422:"d853553a",5425:"5f7bb57c",5430:"183cd20d",5467:"23a19e93",5482:"360ff4f0",5496:"81fb5982",5506:"0b23c88f",5568:"eff7cf39",5572:"da07b2de",5574:"c1c036f9",5581:"ea3ed7d6",5598:"1673bc78",5665:"a5c3d5b9",5671:"bb6c9631",5717:"53c73a6b",5725:"22c4daf7",5736:"f6ed2958",5817:"48059290",5821:"e9a5418b",5892:"08eb085c",5925:"72b510fc",5944:"1fec6b32",6013:"dc05d70f",6030:"126873e4",6069:"26112a6f",6082:"7d72c49f",6087:"307a5972",6173:"1c389e90",6184:"02a24562",6193:"c5b726a1",6236:"e0a35792",6246:"853d5ab2",6249:"4a7d82a2",6328:"804ff2f7",6330:"616cdb7d",6339:"c58d4122",6345:"23f525ab",6353:"7d2c929d",6401:"5e69be1d",6415:"7c088e99",6443:"60cdc5d2",6463:"b9e0a6a3",6489:"be73ac9f",6501:"48b866be",6507:"76f6ea2e",6519:"d4ccde31",6532:"3e85fa73",6625:"fb4c9324",6629:"9799c0c7",6631:"ec8d5c5f",6667:"cdfa67c7",6680:"6bc72b3f",6699:"1a36db30",6760:"04e2d580",6771:"253c688b",6797:"275e5b9a",6800:"029df079",6820:"e8ae980d",6887:"e2244b6d",6928:"b6d0bd6c",6936:"0be5e0ca",6986:"e6d036b3",6992:"4abe6c3a",7062:"c32dbefe",7080:"bf005807",7086:"f0c7deab",7103:"ebdb9553",7118:"69be2b2c",7141:"afef1315",7157:"cb4d4879",7183:"78ea77d7",7189:"7ac357e6",7233:"42971af1",7238:"d1eb7272",7294:"4db0129a",7301:"0b926398",7311:"f7af3e84",7315:"01765b03",7324:"a03ab6c5",7331:"3bb1a26d",7409:"c73f4f3b",7428:"762ce689",7433:"c7abe8a6",7447:"19ddec7e",7458:"cd292532",7460:"52d1d166",7462:"3c7995d9",7469:"d7ff2a22",7570:"ae6ddf44",7610:"7417a718",7624:"79538a39",7627:"34b06670",7669:"333569d6",7705:"128115db",7706:"20863ee9",7751:"4431c68e",7759:"c81a5711",7769:"24b74ed1",7771:"905b3ec4",7788:"82380333",7835:"09dd8382",7883:"c555a986",7891:"c8621c61",7900:"acac7f38",7926:"06efe8bc",7951:"21695ee6",7956:"5e9b2bbf",8e3:"347aacec",8010:"1680215d",8023:"63614c9d",8049:"e20b8d5a",8055:"892fa285",8108:"65928411",8140:"d69d80ad",8145:"8f83de28",8167:"1d786f37",8186:"91261db5",8188:"b6b78d2b",8207:"cc1f2d0f",8218:"e4cad8e7",8225:"3727a305",8231:"623b896f",8243:"48de1098",8276:"7bec4192",8282:"7b1c7237",8294:"74c3947c",8297:"c33f547c",8333:"bbe57d42",8336:"3d2d55e2",8341:"bbfa5e48",8353:"9a2ef23a",8357:"9
26c03fb2",8378:"22c42def",8381:"aa63fdcd",8446:"ffef3281",8469:"1a267bc2",8496:"101c683f",8540:"17a0eccd",8574:"d1a57e27",8590:"d94ba6f9",8600:"a793f626",8615:"922c7071",8630:"5ea0e16d",8650:"12c38def",8689:"4c3f096a",8692:"ac578848",8710:"b0d1539c",8712:"47434322",8715:"ba000132",8719:"91c11de7",8730:"e50d27fc",8749:"94cec429",8782:"3a6ba98c",8785:"0bf901bc",8835:"b32a4a4d",8865:"6705bd96",8901:"d7ce95e1",8913:"edea0781",8932:"a4cb01d3",8933:"5a840fbb",8952:"a88ae7a1",8954:"6a42f5b0",9028:"fb22d5a2",9043:"7f1a48fe",9064:"a95e0ac6",9071:"b1e3f7a3",9132:"fb9ec1c1",9144:"58dd5947",9219:"1dbb18e8",9251:"b917d7a2",9278:"0fb53d65",9281:"8d4e9ba4",9311:"0871d18e",9313:"f4945fda",9323:"828105ec",9339:"d23e9243",9340:"39c5071a",9349:"3d72603d",9353:"e1d37685",9432:"80b78923",9436:"dabbfbb4",9445:"534a9e04",9452:"a736cb63",9455:"98aa2afb",9466:"f6545db4",9471:"831f7617",9480:"44ba978c",9503:"8b6ca6dd",9504:"96d7d53c",9527:"0701732e",9529:"e498259f",9555:"d3c2d081",9557:"000591d8",9579:"35ae495b",9607:"d2ec0675",9633:"86c70f67",9646:"76d803bf",9648:"c343dfcb",9669:"c8f1c1ef",9684:"040a44db",9687:"2b8fc1ec",9689:"c0e36d42",9691:"f273b4f4",9744:"32d59557",9782:"2da86770",9836:"dcef82d5",9845:"1bc87efa",9846:"06e07f2d",9874:"36e84785",9962:"081792b3",9976:"9c32906f",9979:"01768651",9995:"ffc70872"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+"."+{82:"3be8cf1c",124:"bae98cb9",126:"3be8cf1c",155:"3be8cf1c",240:"3be8cf1c",272:"3be8cf1c",366:"3be8cf1c",440:"bae98cb9",441:"3be8cf1c",500:"3be8cf1c",511:"3be8cf1c",729:"3be8cf1c",773:"3be8cf1c",783:"3be8cf1c",975:"3be8cf1c",1038:"7c20ff71",1043:"3be8cf1c",1167:"3be8cf1c",1219:"3be8cf1c",1226:"3be8cf1c",1234:"3be8cf1c",1266:"3be8cf1c",1291:"3be8cf1c",1315:"3be8cf1c",1438:"3be8cf1c",1541:"7c20ff71",1688:"bae98cb9",1733:"bae98cb9",1798:"3be8cf1c",1844:"3be8cf1c",1898:"3be8cf1c",1929:"3be8cf1c",1944:"3be8cf1c",1963:"3be8cf1c",1967:"3be8cf1c",1975:"3be8cf1c",2163:"3be8cf1c",2165:"bae98cb9",2173:"3be8cf1c",2180:"3be8cf1c",2181:"3be8cf1c",2322:"bae98cb9",2327:"3be8cf1c",2369:"3be8cf1c",2436:"3be8cf1c",2585:"3be8cf1c",2604:"3be8cf1c",2611:"3be8cf1c",2703:"3be8cf1c",2851:"3be8cf1c",2857:"3be8cf1c",2867:"3be8cf1c",3079:"3be8cf1c",3128:"bae98cb9",3145:"3be8cf1c",3162:"bae98cb9",3174:"bae98cb9",3250:"3be8cf1c",3328:"3be8cf1c",3337:"3be8cf1c",3418:"bae98cb9",3492:"3be8cf1c",3541:"3be8cf1c",3614:"3be8cf1c",3625:"3be8cf1c",3919:"3be8cf1c",3945:"3be8cf1c",3953:"3be8cf1c",4109:"bae98cb9",4215:"3be8cf1c",4234:"3be8cf1c",4240:"3be8cf1c",4318:"3be8cf1c",4410:"3be8cf1c",4507:"3be8cf1c",4540:"3be8cf1c",4613:"d05cc7b3",4644:"3be8cf1c",4813:"3be8cf1c",4912:"bae98cb9",4945:"3be8cf1c",5050:"3be8cf1c",5064:"1890f478",5084:"da4cfa27",5089:"bae98cb9",5218:"3be8cf1c",5248:"3be8cf1c",5287:"bae98cb9",5416:"3be8cf1c",5422:"3be8cf1c",5425:"3be8cf1c",5430:"3be8cf1c",5598:"3be8cf1c",5671:"3be8cf1c",5717:"bae98cb9",6013:"3be8cf1c",6030:"d05cc7b3",6082:"3be8cf1c",6087:"3be8cf1c",6184:"bae98cb9",6236:"3be8cf1c",6246:"3be8cf1c",6249:"3be8cf1c",6415:"3be8cf1c",6507:"3be8cf1c",6629:"bae98cb9",6699:"3be8cf1c",6771:"3be8cf1c",6820:"3be8cf1c",6936:"3be8cf1c",7080:"3be8cf1c",7141:"3be8cf1c",7233:"bae98cb9",7311:"bae98cb9",7315:"8ac0a38a",7324:"3be8cf1c",7428:"3be8cf1c",7462:"3be8cf1c",7669:"3be8cf1c",7705:"3be8cf1c",7751:"3be8cf1c",7771:"bae98cb9",7835:"3be8cf1c",7883:"3be8cf1c",7891:"3be8cf1c",7900:"bae98cb9",7926:"13815e16",7951:"bae98cb9",8e3:"3be8cf1c",8049:"3be8cf1c",8108:"3be8cf1c",8207:"3be8cf1c",8218:"3be8cf1c",8225:"3be8cf1c",8231:"3be8cf1c",8294:"bae98cb9",8341:"3be8cf1c",8378:"3be8cf1c",8381:"3be8cf1c",8574:"3be8cf1c",8650:"8ac0a38a",8689:"3be8cf1c",8712:"bae98cb9",8715:"bae98cb9",8719:"3be8cf1c",8835:"3be8cf1c",8901:"3be8cf1c",8952:"3be8cf1c",8954:"3be8cf1c",9028:"3be8cf1c",9064:"3be8cf1c",9071:"bae98cb9",9144:"bae98cb9",9219:"3be8cf1c",9281:"3be8cf1c",9311:"bae98cb9",9339:"3be8cf1c",9432:"3be8cf1c",9452:"3be8cf1c",9455:"d05cc7b3",9480:"3be8cf1c",9504:"bae98cb9",9557:"3be8cf1c",9579:"3be8cf1c",9607:"3be8cf1c",9646:"3be8cf1c",9684:"3be8cf1c",9691:"bae98cb9",9744:"13815e16",9836:"bae98cb9",9846:"3be8cf1c"}[e]+".chunk.css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}
2}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="magic-link-auth:";n.l=(r,i,s,a)=>{if(e[r])e[r].push(i);else{var o,l;if(void 0!==s)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+s){o=d;break}}o||(l=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,n.nc&&o.setAttribute("nonce",n.nc),o.setAttribute("data-webpack",t+s),o.src=r),e[r]=[i];var h=(t,n)=>{o.onerror=o.onload=null,clearTimeout(f);var i=e[r];if(delete e[r],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach((e=>e(n))),t)return t(n)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=h.bind(null,o.onerror),o.onload=h.bind(null,o.onload),l&&document.head.appendChild(o)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="/",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,r)=>{var i=n.miniCssF(e),s=n.p+i;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var i=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(i===e||i===t))return a}var s=document.getElementsByTagName("style");for(r=0;r<s.length;r++){var a;if((i=(a=s[r]).getAttribute("data-href"))===e||i===t)return a}})(i,s))return t();((e,t,r,i,s)=>{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",n.nc&&(a.nonce=n.nc),a.onerror=a.onload=n=>{if(a.onerror=a.onload=null,"load"===n.type)i();else{var r=n&&n.type,o=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+o+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=r,l.request=o,a.parentNode&&a.parentNode.removeChild(a),s(l)}},a.href=t,r?r.parentNode.insertBefore(a,r.nextSibling):document.head.appendChild(a)})(e,s,null,t,r)})),t={8792:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{82:1,124:1,126:1,155:1,240:1,272:1,366:1,440:1,441:1,500:1,511:1,729:1,773:1,783:1,975:1,1038:1,1043:1,1167:1,1219:1,1226:1,1234:1,1266:1,1291:1,1315:1,1438:1,1541:1,1688:1,1733:1,1798:1,1844:1,1898:1,1929:1,1944:1,1963:1,1967:1,1975:1,2163:1,2165:1,2173:1,2180:1,2181:1,2322:1,2327:1,2369:1,2436:1,2585:1,2604:1,2611:1,2703:1,2851:1,2857:1,2867:1,3079:1,3128:1,3145:1,3162:1,3174:1,3250:1,3328:1,3337:1,3418:1,3492:1,3541:1,3614:1,3625:1,3919:1,3945:1,3953:1,4109:1,4215:1,4234:1,4240:1,4318:1,4410:1,4507:1,4540:1,4613:1,4644:1,4813:1,4912:1,4945:1,5050:1,5064:1,5084:1,5089:1,5218:1,5248:1,5287:1,5416:1,5422:1,5425:1,5430:1,5598:1,5671:1,5717:1,6013:1,6030:1,6082:1,6087:1,6184:1,6236:1,6246:1,6249:1,6415:1,6507:1,6629:1,6699:1,6771:1,6820:1,6936:1,7080:1,7141:1,7233:1,7311:1,7315:1,7324:1,7428:1,7462:1,7669:1,7705:1,7751:1,7771:1,7835:1,7883:1,7891:1,7900:1,7926:1,7951:1,8e3:1,8049:1,8108:1,8207:1,8218:1,8225:1,8231:1,8294:1,8341:1,8378:1,8381:1,8574:1,8650:1,8689:1,8712:1,8715:1,8719:1,8835:1,8901:1,8952:1,8954:1,9028:1,9064:1,9071:1,9144:1,9219:1,9281:1,9311:1,9339:1,9432:1,9452:1,9455:1,9480:1,9504:1,9557:1,9579:1,9607:1,9646:1,9684:1,9691:1,9744:1,9836:1,9846:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={8792:0};n.f.j=(t,r)=>{var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else if(5084!=t){var s=new Promise(((n,r)=>i=e[t]=[n,r]));r.push(i[2]=s);var a=n.p+n.u(t),o=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var s=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;o.message="Loading chunk "+t+" failed.\n("+s+": "+a+")",o.name="ChunkLoadError",o.type=s,o.request=a,i[1](o)}}),"chunk-"+t,t)}else e[t]=0};var t=(t,r)=>{var i,s,a=r[0],o=r[1],l=r[2],c=0;if(a.some((t=>0!==e[t]))){for(i in o)n.o(o,i)&&(n.m[i]=o[i]);if(l)l(n)}for(t&&t(r);c<a.length;c++)s=a[c],n.o(e,s)&&e[s]&&e[s][0](),e[s]=0},r=self.webpackChunkmagic_link_auth=self.webpackChunkmagic_link_auth||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),n.nc=void 0;n(89708)})(); 3//# sourceMappingURL=main.a2f6c129.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.