1/*! For license information please see main.d8833980.js.LICENSE.txt */ 2(()=>{var e={5349:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});n(72791);const r=n.p+"static/media/wave_02.2d0ec87363a31b1352b51ae35dfcbdd1.svg"},38936:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});n(72791);const r=n.p+"static/media/wave_03.00dd287208963927448e7b39f73f5415.svg"},49530:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});const r=Object.freeze({_COMPANY:"company",_FEATURES:"features",_PRICING:"pricing",_PAYWALL:"paywall",_CHECKOUT_SUCCESS:"checkout-success",_CHECKOUT_CANCEL:"checkout-cancel",_BOOKMARKS:"bookmarks",_COLLECTIONS:"collections",_COLLECTION:"collection",_GET_YOUR_SURFER_BUDDY:"get-your-surfer-buddy",_GET_MOBILE_APP:"get-the-mobile-app",_DOWNLOAD:"download",_PERSONAL_WORKSPACE:"personal-workspace",_RECIPES:"recipes",_REFERRAL:"referral",_SHARED:"shared",_TAGS:"tags",_TRYFORFREE:"tryforfree",_ORGANIZE:"organize",_CREDITS:"credits",_AUTH:"auth",_SETTINGS:"settings",_SUPPORT:"support",_TERMS_AND_PRIVACY:"terms-and-privacy",_COOKIE_POLICY:"cookie-policy",_CONTACTS:"contacts",_FIREBASE_ACTION:"firebase-action",_DOCUMENTS:"documents",_PRODUCTS_PAGE:"sign-up",_ENTERPRISE_SIGNUP:"enterprise-signup",_APPLY_PAGE:"apply-page",_ABOUT_US:"about",_USE_CASES:"use-cases",_PRODUCTS:"products",get COMPANY(){return"/".concat(this._COMPANY)},get CONTACTS(){return"/".concat(this._CONTACTS)},get FEATURES(){return"/".concat(this._FEATURES)},get SUPPORT(){return"/".concat(this._SUPPORT)},get PRICING(){return"/".concat(this._PRICING)},get PAYWALL(){return"/".concat(this._PAYWALL)},get CHECKOUT_SUCCESS(){return"/".concat(this._CHECKOUT_SUCCESS)},get CHECKOUT_CANCEL(){return"/".concat(this._CHECKOUT_CANCEL)},get BOOKMARKS(){return"/".concat(this._BOOKMARKS)},get COLLECTIONS(){return"/".concat(this._COLLECTIONS)},get COLLECTION_TEMPLATE(){return"/".concat(this._COLLECTION,"/:collectionId")},get GET_YOUR_SURFER_BUDDY(){return"/".concat(this._GET_YOUR_SURFER_BUDDY)},get GET_MOBILE_APP(){return"/".concat(this._GET_MOBILE_APP)},get DOWNLOAD(){return"/".concat(this._DOWNLOAD)},get PERSONAL_WORKSPACE(){return"/".concat(this._PERSONAL_WORKSPACE)},get RECIPES(){return"/".concat(this._RECIPES)},get REFERRAL(){return"/".concat(this._REFERRAL)},COLLECTION(e){return"/".concat(this._COLLECTION,"/").concat(e)},get COLLECTION_PAGE_TEMPLATE(){return"/".concat(this._COLLECTION,"/:collectionId/:pageId")},COLLECTION_PAGE(e,t){return"/".concat(this._COLLECTION,"/").concat(e,"/").concat(t)},get SHARED_TEMPLATE(){return"/".concat(this._SHARED,"/:sharingUid/:collectionId")},SHARED(e,t){return"/".concat(this._SHARED,"/").concat(e,"/").concat(t)},get TAGS(){return"/".concat(this._TAGS)},get TRYFORFREE(){return"/".concat(this._TRYFORFREE)},get ORGANIZE(){return"/".concat(this._ORGANIZE)},get CREDITS(){return"/".concat(this._CREDITS)},get AUTH_TEMPLATE(){return"/".concat(this._AUTH,"/:type")},AUTH(e){return"/".concat(this._AUTH,"/").concat(e)},get SETTINGS_TEMPLATE(){return"/".concat(this._SETTINGS,"/:section")},SETTINGS(e){return"/".concat(this._SETTINGS,"/").concat(e)},get TERMS_AND_PRIVACY(){return"/".concat(this._TERMS_AND_PRIVACY)},get COOKIE_POLICY(){return"/".concat(this._COOKIE_POLICY)},get FIREBASE_ACTION(){return"/".concat(this._FIREBASE_ACTION)},get DOCUMENTS_TEMPLATE(){return"/".concat(this._DOCUMENTS,"/:collectionId")},DOCUMENTS(e){return"/".concat(this._DOCUMENTS,"/").concat(e)},get PRODUCTS_PAGE(){return"/".concat(this._PRODUCTS_PAGE)},get ENTERPRISE_SIGNUP(){return"/".concat(this._ENTERPRISE_SIGNUP)},get APPLY_PAGE(){return"/".concat(this._APPLY_PAGE)},get ABOUT_US(){return"/".concat(this._ABOUT_US)},get USE_CASES(){return"/".concat(this._USE_CASES)},get USE_CASES_DETAIL_TEMPLATE(){return"/".concat(this._USE_CASES,"/:slug")},USE_CASES_DETAIL(e){const t=String(e).replace(/^\/+|\/+$/g,"");return"/".concat(this._USE_CASES,"/").concat(t)},get PRODUCTS(){return"/".concat(this._PRODUCTS)}})},83706:(e,t,n)=>{"use strict";n.d(t,{Z:()=>O});var r=n(61889),o=n(20890),i=n(49530),a=n(89050),s=n(93571),l=n(45240),c=n(72791),u=n(72129),d=n(94294),h=n(50533),f=n(96517),p=n(97645),m=n(88026),g=n(12054),y=n(3051),v=n(31899),b=n(13624),w=n(16641),x=n(80184);const k=(0,f.v0)(g.H),S=e=>{const t=(0,a.tv)(),[,n]=(0,p.KO)(m.zH),[r,s]=(0,c.useState)(null),[l,f]=(0,c.useState)(!1),g=()=>{t.push(e.afterAuthPath),n(!0)},S={signup:i.y.PRODUCTS_PAGE,signin:i.y.AUTH("signin")};return(0,x.jsxs)(x.Fragment,{children:[r&&(0,x.jsx)(w.Z,{formAlert:r,user:k.user,isResendEmail:!0}),e.isModal&&["signup","signin"].includes(e.type)&&e.providers&&e.providers.length&&(l?(0,x.jsx)(v.Z,{type:e.type,buttonAction:e.buttonAction,isForgotPasswordLink:e.isForgotPasswordLink,onAuth:g,onFormAlert:s,handleClose:e.handleClose}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(b.Z,{buttonAction:e.buttonAction,providers:e.providers,handleClose:e.handleClose,showLastUsed:!0,onAuth:g,onError:e=>{s({type:"error",message:e})}}),(0,x.jsx)(y.Z,{}),(0,x.jsx)(d.Z,{variant:"outlined",color:"primary",size:"large",type:"button",fullWidth:!0,to:S[e.type],onClick:e.handleClose,component:a.rU,startIcon:(0,x.jsx)(u.Z,{}),sx:{fontWeight:"bold",mb:2},children:(0,x.jsx)("span",{children:"Continue with Email"})}),(0,x.jsx)(d.Z,{variant:"contained",color:"primary",size:"large",type:"submit",fullWidth:!0,onClick:()=>f(!0),children:(0,x.jsx)("span",{children:e.buttonAction})})]})),!e.isModal&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(v.Z,{type:e.type,buttonAction:e.buttonAction,isForgotPasswordLink:e.isForgotPasswordLink,onAuth:g,onFormAlert:s,handleClose:e.handleClose}),(0,x.jsx)(y.Z,{}),(0,x.jsx)(b.Z,{buttonAction:e.buttonAction,providers:e.providers,handleClose:e.handleClose,showLastUsed:!0,onAuth:g,onError:e=>{s({type:"error",message:e})}})]}),"signin"===e.type&&(0,x.jsxs)(o.Z,{textAlign:"center",pt:2,children:["I have forgot my"," ",(0,x.jsx)(h.Z,{component:a.rU,to:i.y.AUTH("forgotpass"),underline:"none",onClick:()=>{e.isModal&&e.handleClose()},children:"Password"})]})]})};const E=(0,n(66934).ZP)(h.Z,{shouldForwardProp:e=>"color"!==e&&"textDecoration"!==e})((e=>{let{color:t,textDecoration:n}=e;return{color:t,textDecoration:n}}));var C=n(1413);const _=function(e){return(0,x.jsxs)("svg",(0,C.Z)((0,C.Z)({id:"picker_logo_tag_B_02_svg__Layer_1",xmlns:"http://www.w3.org/2000/svg",x:0,y:0,viewBox:"0 0 479.9 241.9",xmlSpace:"preserve"},e),{},{children:[(0,x.jsx)("style",{children:".picker_logo_tag_B_02_svg__st3{fill:#c30}"}),(0,x.jsx)("circle",{cx:141.6,cy:83.8,r:68.9,fill:"#69c"}),(0,x.jsx)("circle",{cx:141.8,cy:83.8,r:50.1,fill:"#f93"}),(0,x.jsx)("circle",{cx:141.9,cy:84,r:31.3,fill:"#fff"}),(0,x.jsx)("circle",{className:"picker_logo_tag_B_02_svg__st3",cx:141.9,cy:84,r:12.5}),(0,x.jsx)("path",{fill:e.fill,d:"M113.9 150.1c0 10.8-3.1 19.8-9.2 27-6.1 7.2-13.8 10.8-23 10.8-7 0-12.6-2.8-16.8-8.3v35.7c0 3 .2 4.8.5 5.6.3.8 1 1.3 2.1 1.5 1.1.2 3.9.4 8.4.5 1.2 0 1.7.5 1.7 1.5 0 .8-.7 1.2-2.1 1.2h-40c-2.3 0-3.5-.4-3.5-1.3 0-.7 1.9-1.1 5.7-1.1 3.2 0 5-.3 5.3-1 .4-.6.6-2.7.6-6V136v-2.2-5.8c.1-2.2-.7-3.6-2.5-4.1-.8-.3-2.7-.5-5.4-.5h-3c-.8 0-1.3-.3-1.3-1 0-.8.6-1.2 1.9-1 11.2-.3 21.1-2.4 29.6-6.4.4.6.7 1.5.8 2.5l.3 4 .2 2.7c2.9-3.5 5.7-6 8.4-7.3 2.8-1.3 6.3-2 10.7-2 8.8 0 16.1 3.3 22 9.9 5.7 6.9 8.6 15.3 8.6 25.3zm-23.3-.6c0-20.2-4.5-30.3-13.6-30.3-4 0-7.4 1.9-10.1 5.7-1.3 1.8-1.9 4.8-1.9 9v31.3c0 6.8.8 11.4 2.5 13.8 2.4 3.6 5.7 5.4 9.8 5.4 8.8 0 13.3-11.6 13.3-34.9zM163.7 184.9c0 .7-.5 1.1-1.4 1.1H122.2c-1.3 0-1.9-.3-1.9-1 0-.5 1.2-.8 3.7-.9 3.6-.1 5.7-.5 6.4-1.2.6-.7 1-2.8 1-6.3v-45.9c0-4.1-.3-6.5-1-7.3-.7-.8-2.8-1.2-6.3-1.2-2.2 0-3.5-.1-3.9-.2-.4-.1-.6-.5-.6-1.1 0-.7.8-1.1 2.4-1.1 11.7-.1 21.6-1.9 29.9-5.4.2 1.3.5 4.8.8 10.5V175c0 4.3.4 6.9 1.2 7.6.8.7 3.5 1.1 8.2 1.1 1.1.1 1.6.4 1.6 1.2zM152.6 84c0 3-1 5.5-3.1 7.6-2.1 2.1-4.6 3.2-7.5 3.2-3 0-5.6-1-7.6-3-2.1-2-3.1-4.6-3.1-7.6s1-5.4 3.1-7.3c2.1-1.9 4.7-2.9 8-2.9 2.9 0 5.4 1 7.3 2.9 1.9 1.9 2.9 4.3 2.9 7.1zM228.5 131.4c0 2.5-.7 4.6-2.2 6.2-1.5 1.6-3.4 2.4-5.7 2.4-5.6 0-8.4-2.5-8.4-7.5 0-1.3.3-2.8 1-4.5.7-1.8 1-3 1-3.7 0-2-.8-3.7-2.3-5.2-1.5-1.4-3.4-2.1-5.6-2.1-9.7 0-14.5 10.8-14.5 32.3 0 12.3 2.1 21.1 6.4 26.4 3.3 4 7.3 6 12.1 6 5 0 10.1-3.2 15.3-9.7.6-.8 1.2-1.3 1.7-1.3.4 0 .6.3.6 1 0 2-1.9 4.8-5.7 8.4-5.5 5.2-12.1 7.8-19.9 7.8-9.5 0-17.7-3.4-24.4-10.3-6.7-6.8-10.1-15.1-10.1-24.9 0-10.6 3.6-19.5 10.7-26.8 7.1-7.3 15.9-10.9 26.2-10.9 6.7 0 12.3 1.6 16.9 4.8 4.6 3.2 6.9 7.1 6.9 11.6zM316.9 184.9c0 .7-2 1.1-5.9 1.1H277c-1.5 0-2.2-.4-2.2-1.1 0-.7 1.4-1.2 4.3-1.3 1.8-.1 2.7-.7 2.7-1.8s-2.2-5.2-6.7-12.4c-1.3-1.9-3.1-4.9-5.6-8.9-1.7-3-4-6.8-7.2-11.6v23.4c0 5.6.2 8.9.5 9.8.4 1 1.5 1.4 3.5 1.4h2.8c1 0 1.6.4 1.6 1.2 0 .8-.6 1.2-1.8 1.2H231.9c-1.2 0-1.8-.4-1.8-1.1 0-.7 1.4-1.2 4.1-1.3 3.5-.1 5.5-.4 6-.9s.7-3.2.7-7.9V91c0-4.1-.5-6.7-1.4-7.6-.9-1-3.4-1.4-7.3-1.3-2 0-3.1-.4-3.1-1.2 0-.7.2-1.1.6-1.2.4-.1 2-.2 4.6-.3 10.7-.4 18.2-1.8 22.6-4.1 1.5-.8 2.8-1.3 3.8-1.4.4 1.5.7 4.4.8 8.6l.6 17v47.2c1.7-1.4 4.4-4.2 8.2-8.5 1.6-1.8 3.9-4.6 7.1-8.2 5.1-5.8 7.6-8.9 7.6-9.3 0-.5-.3-.9-1-1-.6-.1-2.8-.2-6.4-.3-2.4 0-3.7-.4-3.7-1.3 0-.7.6-1.1 1.9-1.1h24.5c1.9 0 2.9.3 2.9 1s-2.2 1.1-6.5 1.3c-2.9.1-5.2 1.1-7 2.9-3.3 3.2-7.5 7.6-12.6 13.4l18.3 27.7c1 1.6 2.5 4 4.6 7.1.3.4 1.1 1.6 2.4 3.5l2.6 3.9 1.3 1.9c1.2 1.8 2.1 2.9 2.9 3.4.7.5 2.2.7 4.2.7s3.5.2 3.5 1.1zM378.8 166.4c0 2.3-1.4 5.4-4.1 9.2-5.9 8.2-13.7 12.2-23.2 12.2-10.7 0-19.5-3.4-26.4-10.2-6.9-6.8-10.3-15.5-10.3-26.1 0-10.4 3.3-19.1 10-26 6.7-6.9 15-10.4 25-10.4 6.8 0 12.6 1.5 17.3 4.5 5.3 3.3 8.7 8 10.3 14.2.4 1.9.7 4.2 1 6.8-2.4.3-12.2.5-29.4.6-2.7 0-6 .1-10 .3-.3 3.8-.5 7-.5 9.7 0 12.4 2.6 21.1 7.8 26.3 3.1 3.1 6.8 4.6 11.3 4.6 3.7 0 7.3-1.3 10.7-3.8 3.4-2.5 6.1-5.8 7.9-9.9.8-2 1.5-3 2.1-3 .3.1.5.4.5 1zm-20-27.8c.1-8.1-.5-13.7-1.8-16.9-1.3-3.2-3.5-4.7-6.7-4.7-6.5 0-10.2 7.2-11.1 21.6h19.6zM443.5 127c0 3.1-.9 5.6-2.7 7.6-1.8 2-4.1 2.9-7 2.9-5.7 0-8.6-2.6-8.6-8 0-1.8.7-3.6 2.1-5.4.3-.4.5-.8.5-1.1 0-1-.7-1.4-2-1.4-3.6 0-6.3 2.8-8.2 8.4-1 3.2-1.6 10.9-1.6 23.3v25.6c0 2.9 1.4 4.4 4.3 4.6 1.7.1 3.7.2 6 .2 1.2.1 1.8.5 1.8 1.1 0 .8-.5 1.3-1.4 1.3h-17H385c-1.2 0-1.8-.3-1.8-1s.7-1 2.2-1c4.3-.1 7-.6 7.9-1.3.9-.8 1.4-3.1 1.4-7.1l-.2
2-42.8c0-3.6-.5-6.1-1.5-7.5-1-1.4-3.3-2.2-6.8-2.5-2.8-.2-4.3-.3-4.7-.4-.4-.1-.6-.4-.6-1s.4-.9 1.3-.9h5.9c8.2 0 17-1.7 26.4-5.1.5 2.1.8 4.6.8 7.3v6.7c2-5.1 4.2-8.8 6.6-10.9 2.4-2.1 5.5-3.1 9.3-3.1 3.6 0 6.5 1.1 8.8 3.3 2.4 2 3.5 4.8 3.5 8.2z"}),(0,x.jsx)("circle",{className:"picker_logo_tag_B_02_svg__st3",cx:142.1,cy:84.2,r:11.4}),(0,x.jsx)("path",{fill:"none",d:"M0 0h479.9v241.9H0z"}),(0,x.jsx)("text",{transform:"translate(93.95 217.201)",fontSize:23,fontFamily:"HelveticaNeue",fill:e.fill,children:"Power-up your everyday browsing"})]}))},T={signup:{title:"Sign up to start using Picker",buttonAction:"Continue",showFooter:!0,text:"Already have an account?",linkText:"Log in here",signinAction:"Sign in",contextPath:i.y.AUTH("signin"),showAgreement:!0,termsPath:i.y.TERMS_AND_PRIVACY,privacyPolicyPath:i.y.TERMS_AND_PRIVACY},signin:{title:"Log in to continue using Picker",buttonAction:"Log in",showFooter:!0,text:"Don't have an account?",linkText:"Sign up for picker",signupAction:"Create an account",contextPath:i.y.PRODUCTS_PAGE,forgotPassAction:"Forgot Password?",forgotPassPath:i.y.AUTH("forgotpass")},forgotpass:{title:"Get a new password",buttonAction:"Reset password",showFooter:!0,signinText:"Remember it after all?",signinAction:"Sign in",signinPath:i.y.AUTH("signin")},changepass:{title:"Choose a new password",buttonAction:"Change password"}},O=e=>{const t=(0,s.v)(),n=T[e.type]?e.type:"signup",c=T[n];return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(l.Z,{title:e.title?e.title:c.title,textColor:"mainPage",caption:e.caption?e.caption:"",size:5,textAlign:"center"}),(0,x.jsx)(S,{type:n,buttonAction:c.buttonAction,afterAuthPath:e.afterAuthPath,handleClose:e.handleClose,providers:e.providers,isModal:e.isModal},n),(0,x.jsxs)(r.ZP,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",children:[(0,x.jsx)("br",{}),(e.isTryForFree||!e.isModal)&&"forgotpass"!==n&&(0,x.jsx)(r.ZP,{item:!0,children:(0,x.jsxs)(o.Z,{component:"p",variant:"subtitle",mb:3,children:[c.text," ",(0,x.jsx)(E,{component:a.rU,to:c.contextPath,onClick:e.handleClose,children:c.linkText})]})}),(0,x.jsx)("br",{}),(0,x.jsxs)(r.ZP,{item:!0,children:[!e.isModal&&(0,x.jsx)(_,{width:"300px",fill:t.value?"#f2f2f2":"#000"}),"signup"===n&&(0,x.jsxs)(o.Z,{color:"grey",component:"p",variant:"subtitle2",children:["By creating an account, you accept our"," ",(0,x.jsx)(E,{component:a.rU,to:i.y.TERMS_AND_PRIVACY,onClick:e.handleClose,color:"mainPage",target:"_blank",underline:"none",children:"terms"})]})]})]})]})}},3051:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(64554),o=n(20890);const i=(0,n(66934).ZP)("div")({height:"1px",backgroundColor:"black",border:"none",width:"100%"});var a=n(80184);const s=()=>(0,a.jsxs)(r.Z,{display:"flex",alignItems:"center",my:2,children:[(0,a.jsx)(i,{}),(0,a.jsx)(o.Z,{px:1,children:"OR"}),(0,a.jsx)(i,{})]})},16641:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(64554),o=n(19658),i=n(94294),a=n(30838),s=n(96517),l=n(72791);var c=n(80184);const u=e=>{let{formAlert:t,user:n,isResendEmail:u}=e;const{countDown:d,init:h}=(e=>{const[t,n]=(0,l.useState)(0);return(0,l.useEffect)((()=>{const e=localStorage.getItem("unblockResend");if(e){const t=Math.round((new Date).getTime()/1e3);n(e-t)}}),[]),(0,l.useEffect)((()=>{const e=setInterval((()=>{if(t>1){const e=Math.round((new Date).getTime()/1e3);n(localStorage.getItem("unblockResend")-e)}else n(0),localStorage.removeItem("unblockResend"),clearInterval(e)}),1e3);return()=>{clearInterval(e)}}),[t]),{countDown:t,init:()=>{const t=Math.round((new Date).getTime()/1e3);localStorage.setItem("unblockResend",t+e),n(e)}}})(a.GA);return(0,c.jsxs)(r.Z,{mb:3,children:[(0,c.jsx)(o.Z,{severity:t.type,children:t.message}),401===t.code&&u&&(0,c.jsx)(r.Z,{textAlign:"center",children:(0,c.jsx)(i.Z,{margin:"0 auto",onClick:()=>{n&&(0,s.w$)(n).then((()=>{const e=Math.round((new Date).getTime()/1e3);localStorage.setItem("unblockResend",e+a.GA),h()}))},disabled:0!==d,children:0!==d?"Wait ".concat(d," ").concat(1===d?"second":"seconds"):"Resend email verification"})})]})}},31899:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(1413),o=n(72791),i=n(61134),a=n(61889),s=n(27391),l=n(94294),c=n(13239),u=n(97645),d=n(88026),h=n(14916),f=n(80184);const p=e=>{const[,t]=(0,u.KO)(d.lc),[n,p]=(0,u.KO)(d.wY),m=(0,h.aC)(),[g,y]=(0,o.useState)(!1),{handleSubmit:v,register:b,getValues:w,formState:{errors:x}}
2=(0,i.cI)(),k={signin:t=>{let{email:n,pass:r}=t;return m.signin(n,r).then((t=>{y(!1),e.handleClose&&e.handleClose(),e.onAuth&&e.onAuth(t)}))},signup:n=>{let{email:r,pass:o}=n;return m.signup(r,o).then((n=>{t(!0),e.handleClose&&e.handleClose()}))},forgotpass:t=>{let{email:n}=t;return m.sendPasswordResetEmail(n).then((()=>{y(!1),e.onFormAlert({type:"success",message:"Password reset email sent"})}))},changepass:t=>{let{pass:n}=t;return m.confirmPasswordReset(n).then((()=>{y(!1),e.onFormAlert({type:"success",message:"Your password has been changed"})}))},enterprise:t=>{let{email:n,pass:r,licenseKey:o}=t;return m.enterprise(n,r,o).then((t=>{y(!1),e.handleClose&&e.handleClose(),e.onAuth&&e.onAuth(t)}))}};return(0,f.jsx)("form",{onSubmit:v((t=>{let{email:n,pass:r,licenseKey:o}=t;y(!0),k[e.type]({email:n,pass:r,licenseKey:o}).catch((t=>{y(!1),e.onFormAlert({type:"error",message:t.message,code:t.code})}))})),children:(0,f.jsxs)(a.ZP,{container:!0,spacing:2,justifyContent:"center",children:[["signup","signin","forgotpass","enterprise"].includes(e.type)&&(0,f.jsx)(a.ZP,{item:!0,xs:12,children:(0,f.jsx)(s.Z,(0,r.Z)({variant:"outlined",type:"email",label:"Email",autoComplete:"email",placeholder:"[email protected]",error:!!x.email,helperText:x.email&&x.email.message,defaultValue:n,fullWidth:!0},b("email",{required:"Please enter your email",onChange:e=>{p(e.target.value)}})))}),["signup","signin","changepass","enterprise"].includes(e.type)&&(0,f.jsx)(a.ZP,{item:!0,xs:12,children:(0,f.jsx)(s.Z,(0,r.Z)({variant:"outlined",type:"password",autoComplete:"current-password",label:"Password",error:!!x.pass,helperText:x.pass&&x.pass.message,fullWidth:!0},b("pass",{required:"Please enter a password"})))}),["signup","changepass","enterprise"].includes(e.type)&&(0,f.jsx)(a.ZP,{item:!0,xs:12,children:(0,f.jsx)(s.Z,(0,r.Z)({variant:"outlined",type:"password",autoComplete:"current-password",label:"Confirm Password",error:!!x.confirmPass,helperText:x.confirmPass&&x.confirmPass.message,fullWidth:!0},b("confirmPass",{required:"Please enter your password again",validate:e=>e===w("pass")||"This doesn't match your password"})))}),["enterprise"].includes(e.type)&&(0,f.jsx)(a.ZP,{item:!0,xs:12,children:(0,f.jsx)(s.Z,(0,r.Z)({variant:"outlined",type:"licenseKey",autoComplete:"licenseKey",label:"License Key",error:!!x.licenseKey,helperText:x.licenseKey&&x.licenseKey.message,fullWidth:!0},b("licenseKey",{required:"Please enter your license",validate:e=>e===w("licenseKey")||"Please enter your license"})))}),(0,f.jsx)(a.ZP,{item:!0,xs:12,children:(0,f.jsx)(l.Z,{variant:"contained",color:"primary",size:"large",type:"submit",disabled:g,fullWidth:!0,children:g?(0,f.jsx)(c.Z,{size:28}):(0,f.jsx)("span",{children:e.buttonAction})})})]})})}},13624:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(72791),o=n(43091),i=n(13239),a=n(14916),s=n(94294),l=n(66934);const c=(0,l.ZP)(s.Z)((e=>{let{theme:t}=e;return{position:"relative","&:not(:last-child)":{marginBottom:t.spacing(1)}}})),u=(0,l.ZP)("div")({position:"absolute",alignItems:"center",display:"inline-flex",justifyContent:"center",width:"1.5em",height:"1.5em",left:"0.5em","& > img":{display:"block",width:"100%"}}),d=(0,l.ZP)("div")((e=>{let{theme:t}=e;return{position:"absolute",top:"-6px",right:"-6px",fontSize:"13px",lineHeight:1,textTransform:"initial",padding:"3px 5px",borderRadius:"7px",color:"white",backgroundColor:t.palette.warning.main,opacity:.8}}));const h=n.p+"static/media/googleIcon.2ddfeda2dd52fb0d911bff2d73c29186.svg";var f=n(80184);const p={google:"Google",apple:"Apple"},m=e=>{const t=(0,a.aC)(),[n,s]=(0,r.useState)(null),[l,m]=(0,r.useState)(null);return(0,r.useEffect)((()=>{if(e.showLastUsed){const e=window.localStorage.getItem("lastUsedAuthProvider");e&&m(e)}}),[e.showLastUsed]),(0,f.jsx)("div",{children:e.providers.map((r=>(0,f.jsxs)(c,{variant:"outlined",size:"large",type:"submit",disabled:n===r,fullWidth:!0,onClick:()=>{(n=>{s(n),t.signinWithProvider(n).then((t=>{localStorage.setItem("lastUsedAuthProvider",n),e.handleClose&&e.handleClose(),e.onAuth&&e.onAuth(t)})).catch((t=>{s(null),e.onError(t.message)}))})(r)},children:[(0,f.jsxs)(u,{children:["apple"===r&&(0,f.jsx)(o.Z,{}),"google"===r&&(0,f.jsx)("img",{src:h,alt:p[r]})]}),n===r?(0,f.jsx)(i.Z,{size:28}):(0,f.jsxs)("span",{children:[e.buttonAction," with ",p[r]]}),r===l&&(0,f.jsx)(d,{children:"Last used"})]},r)))})}},47555:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});n(72791);var r=n(89164),o=n(64554),i=n(13239),a=n(6120),s=n(80184);const l=e=>{let{height:t=350,children:n}=e;return(0,s.jsx)(a.Z,{bgColor:"default",children:(0,s.jsx)(r.Z,{children:(0,s.jsx)(o.Z,{display:"flex",justifyContent:"center",alignItems:"center",height:t,children:n||(0,s.jsx)(i.Z,{size:32})})})})}},6120:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(1413),o=n(45987),i=(n(72791),n(64554)),a=n(66934),s=n(12065);const l=(0,a.ZP)(i.Z,{shouldForwardProp:e=>"bgcolor"!==e&&"isNotPrintable"!==e})((e=>{let{theme:t,bgcolor:n,isNotPrintable:o}=e;const i={default:t.palette.background.default,light:(0,s._4)(t.palette.background.default,.03),primary:t.palette.primary.main,secondary:t.palette.secondary.main,bgcolor:t.palette.modalsBackgroun
2d,mainPage:t.palette.mainPage};return(0,r.Z)((0,r.Z)((0,r.Z)({position:"relative","& > .MuiContainer-root":{position:"relative"},color:i[n]?t.palette.getContrastText(i[n]):"",backgroundColor:i[n]?i[n]:""},"inherit"===n||"transparent"===n&&{color:"inherit"}),"transparent"===n&&{backgroundColor:"transparent"}),{},{"& + &":{borderTop:"1px solid ".concat(i[n]?(0,s._4)(i[n],.09):"")},"@media print":{display:o&&"none"}})})),c=(0,a.ZP)("div")((e=>{let{image:t,opacity:n,bgPosition:r,bgSize:o,bgAttachment:i}=e;return{backgroundImage:t?"url(".concat(t,")"):void 0,opacity:n,content:'""',backgroundPosition:r||"center",backgroundSize:o||"contain",backgroundAttachment:i,backgroundRepeat:"no-repeat",top:0,left:0,bottom:0,right:0,position:"absolute",zIndex:0}})),u=(0,a.ZP)("div")((e=>{let{gradient:t,opacity:n}=e;return{backgroundImage:t||void 0,opacity:n,content:'""',backgroundPosition:"center center",backgroundSize:"cover",top:0,left:0,bottom:0,right:0,position:"absolute",zIndex:0}}));var d=n(80184);const h=["bgColor","bgImage","bgImageOpacity","bgGradient","size","className","children","bgPosition","bgSize","bgAttachment"],f={normal:{xs:6},medium:{xs:6,sm:10},large:{xs:6,sm:20},auto:0},p=e=>{const{bgColor:t="default",bgImage:n,bgImageOpacity:i,bgGradient:a,size:s="normal",className:p,children:m,bgPosition:g,bgSize:y,bgAttachment:v}=e,b=(0,o.Z)(e,h),w=f[s];return(0,d.jsxs)(l,(0,r.Z)((0,r.Z)({component:"section",bgcolor:t,py:w},b),{},{children:[n&&(0,d.jsx)(c,{image:n,opacity:i,bgPosition:g,bgSize:y,bgAttachment:v}),a&&(0,d.jsx)(u,{gradient:a,opacity:i}),e.children]}))}},45240:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(1413),o=n(45987),i=(n(72791),n(64554)),a=n(20890),s=n(80184);const l=["subtitle","title","titleAlign","caption","size","subtitleSize","textColor","className"],c=e=>{let{subtitle:t,title:n,titleAlign:c="center",caption:u,size:d,subtitleSize:h,textColor:f,className:p}=e,m=(0,o.Z)(e,l);return n||t?(0,s.jsxs)(i.Z,(0,r.Z)((0,r.Z)({sx:{"&:not(:last-child)":{marginBottom:"2rem"}}},m),{},{children:[u&&(0,s.jsx)(a.Z,{fontWeight:"bold",variant:"h".concat(d+1),color:f,gutterBottom:!!t,children:u}),n&&Array.isArray(n)?n.map(((e,n)=>(0,s.jsx)(a.Z,{fontWeight:0===n&&"bold",variant:"h".concat(d),component:"h3",color:f,gutterBottom:!!t,textAlign:c,children:e},n))):(0,s.jsx)(a.Z,{variant:"h".concat(d),component:"h3",color:f,gutterBottom:!!t,textAlign:c,children:n}),t&&(0,s.jsx)(a.Z,{variant:"subtitle1",fontSize:h&&"".concat(h,"px"),display:"inline-block",color:"primary",maxWidth:"700px",children:t})]})):null}},30838:(e,t,n)=>{"use strict";n.d(t,{TG:()=>A,yx:()=>O,q1:()=>P,O_:()=>I,qy:()=>G,GA:()=>T,Mu:()=>Y,Me:()=>X,tZ:()=>Z,fn:()=>$,R1:()=>H,jG:()=>R,kX:()=>Q,_I:()=>N,BK:()=>D,ai:()=>U,g_:()=>j,yN:()=>q,Pb:()=>K,mx:()=>L,FB:()=>M,jC:()=>F,Mc:()=>B,O$:()=>z,nP:()=>W,TX:()=>V});var r=n(49530);const o=n.p+"static/media/A_Home.5d43cd0b4d13cdc06325.png",i=n.p+"static/media/Best_2_Worlds.3897e149d52db03d557e.png";var a=n(72871);const s=n.p+"static/media/feature_card.4d29b8efc4789f85f129.png",l=n.p+"static/media/feature_chat.96df5948e542abc1b37d.png",c=n.p+"static/media/feature_collection.60beef53e0f0e6065ea1.png",u=n.p+"static/media/feature_freeze.72f9bded91d3d11392ed.png",d=n.p+"static/media/feature_mobile.52223c74634a7b54efcb.png",h=n.p+"static/media/feature_picker.38411c05318729e80f0b.png",f=n.p+"static/media/feature_report.c89b4e9159e649694aa5.png",p=n.p+"static/media/highlighter.7eeaeac583a17a404fc3.png",m=n.p+"static/media/Integ_AIchat.082ca3b7131dd35cd03d.png",g=n.p+"static/media/powered_ai.987c9ec3922900de0210.png",y=n.p+"static/media/PWS.7caaab491bc93f57fc01.png",v=n.p+"static/media/SB_01.c88dcbbb3217062575d4.png",b=n.p+"static/media/stickynotes.71eebfd3496d0edb1a82.png",w=n.p+"static/media/system_ow_01.59c4020c99778b61aba5.png",x=n.p+"static/media/tags_recipes.d9f1caf26860c350f572.png",k=n.p+"static/media/timefreeze.ba19588c4049e8a17f1f.png";var S=n(5349),E=n(38936);n(72791);const C=n.p+"static/media/wave_04.6ed27b5228ff37a109cfda9b81df1cc8.svg",_=n.p+"static/media/workspace.5acfa21169912d8cb1cc.png",T=120,O=9e5,I="https://play.google.com/store/apps/details?id=net.mypicker.mobile",A="https://apps.apple.com/us/app/picker-work-smarter/id6475775966",P="https://chromewebstore.google.com/detail/picker/ehmncfpmldonfdpcialnplmdjpecfiho",R=[{value:"Arvo",label:"Arvo"},{value:"Crimson",label:"CrimsonText"},{value:"Literata",label:"Literata"},{value:"Merriweather",label:"Merriweather"},{value:"Karla",label:"Karla"},{value:"Montserrat",label:"Montserrat"},{value:"OpenSans",label:"OpenSans"},{value:"Roboto",label:"Roboto"},{value:"EBGaramond",label:"EBGaramond"}],N=e=>({danger:"black",dangerLight:"pink",neutral0:e.palette.background.paper,neutral5:"var(--neutral-5)",neutral10:e.palette.reactselect.select,neutral20:"var(--neutral-20)",neutral30:"var(--neutral-30)",neutral40:"var(--neutral-40)",neutral50:"var(--neutral-50)",neutral60:"var(--neutral-60)",neutral70:"var(--neutral-70)",neutral80:"var(--neutral-80)",neutral90:"var(--neutral-90)",primary:"var(--primary)",primary25:e.palette.reactselect.primary,primary50:e.palette.reactselect.primary75,primary75:"var(--primary-75)"}),D=[{title:"Getting started",text:[{header:"Welcome to Picker!"},"Say goodbye to digital clutter and hello to a sleek and organized digital workspace. We can't wait for you to try it out and discover how Picker can \n help you be more productivity.","So come on and let's get started!",{header:"First, Sign up"},"You can sign up for Picker with a Google or Apple account our just using your email.","1. Tap on the Log In button.","2. Select how you want to sign-up, if you choose email - enter your email and create a password.","3. Click the button \u201cSign up\u201d once you have filled
2in the required information.","4. You will receive a confirmation email from Picker to verify your account, so just follow the instructions.",{header:"Then, Add extension (Your Surfer Buddy)"},"1. Click on \u201cGet Picker for Chrome\u201d","2. You will be redirected to a Download page on Chrome Web Store","3. Click download and follow the instructions",'4. Once the extension is installed you can also "pin it" to the extension section in the upper right corner of your chrome browser.',"Now Picker is installed and you can start using both the Surfer Buddy and access your Private Workspace on mypicker.net.",{header:"Lastly, the Mobile app"},"Your Mobile version is available for download on both Apple App Store and Google Play Store.","1. Go to App Store (for iOS devices) or Google Play Store for Android devices) on your mobile.",'2. Search for "Picker \u2013 work smarter" in the App section of the store.',"3. Then click \u201cDownload\u201d and follow the instructions","4. Use the same Log-in as you used when you signed up for Picker.","Now you\u2019re all set and can also use Picker on the go and benefit from its features and tools directly from your mobile!"],tutorialUrl:"https://www.youtube.com/embed/8OPE--YbDsg?si=mpTlMIe73xTX-aEe&autoplay=0"},{title:"Using Picker",text:["Welcome to Picker, a great way to level up your productivity, it\u2019s designed to enhance\nyour internet experience and make it easy to interact with pages across the web.\nPicker is a productivity app that assists users to keep track of ideas, documents, and\npictures in a personal workplace. It also offers features like collaboration, and\nsearch capabilities to help users stay structured.\nThe key values of Picker lies in its abilities to improve efficiency, streamline workflow,\nand provide a central place for content that matters, making it a useful tool for both personal and\nprofessional use.\nPicker allows users to create collections, highlight important information, and add\ntags to keep everything organized and easy to find. In addition, Picker even has unique capabilities\nsuch as Time Freeze, were you can save a webpage frozen in time, and Read Mode.\nPicker is designed to appeal to people from all walks of life and backgrounds.\nWhether you're a college student looking for a great study tool or a foodie gathering recipes\nfor a big birthday party or a TV producer planning the episode for your upcoming TV series.\nPicker has all the features you need to make the most out of every moment. Get ready to take your\nsurfing game to the next level with Picker.",{header:"Surfer Buddy"},"Meet your Surfer Buddy! The Surfer Buddy tool is designed to make your life easier\nand more efficient when interacting with webpages. With its user-friendly interface and practical\ndesign you can easily move the Surfer Buddy around and position it wherever you want with just a\nsimple Drag & Drop. This allows you to have full control over where the tool is placed, making it\nconvenient for you to access at all times.",{header:"Buddy Mode"},"By default, your extension will be tucked away in the upper left corner of your Chrome\nbrowser in Buddy Mode, with its tools contracted. You can also hide it by holding down Alt and\nclicking, and bring it back by Alt-clicking again.\nSimply click on it to switch to Work Mode and access all picker tools.\nYou can also customize the appearance of your Surfer Buddy by going to Settings (the last circle\nwhen you are in work mode) and change the Surfer Buddy symbol to any images of your choosing.",{header:"Work Mode"},"Work Mode makes the process of gathering and managing information easy.\nYou have instant access to the most necessary tools for streamlining your workflow,\nwith AI chat, create and save to Collections, Sticky Notes, Highlighters, Tags and Read Mode.\nAll your interactions will be saved and stored at your Personal workspace on mypicker.net",{header:"My Personal workspace"},"Your personal workspace on mypicker.net is where all your picks and interactions are saved and\nstored. A place reserved for the things that hold meaning and importance to you. This is the home for\nall your collections, work related collections surrounded by collections that bring you joy and\ninspiration.\nThe Personal workspace is exclusively yours, complete with a\nd
2ashboard layout for efficiently organizing, storing, and utilizing all of your\nselected items. This dashboard-style setup provides you with a convenient and\npersonalized way to manage all the pages and info you are collecting.\nEach of your chosen items is presented as a Page card within its\n\ndesignated collection, with quick-view you can access all key info from each page.\nWith Live Collection you can share an entire collection in real time with all your notes, highlights\nand sources \u2013 by just flicking a switch on the Collection card. The people you have shared the\nCollection with can then follow your work with that Collection.",{header:"Picker on the go!"},"The Picker mobile app is also connected to your Personal workspace and allows you to\nalso use your phone to create collections, save and interact with content on webpages,\nmaking it a versatile tool for note-taking and productivity."]},{title:"Account & Billing",text:["This section is not a part of the BETA test."]},{title:"Enterprise or Educational Institution",text:["This section is not a part of the BETA test."]},{title:"FAQ",text:[{header:"What is Picker?"},"With the constant flow of information and distractions, it's easy to become overwhelmed and\nlose focus. This is where Picker comes in. It\u2019s a three-part real-time system made to make it\neasy for people to be more productive and to stay inspired, informed and organized.","The first part is our Surfer Buddy, a small but powerful browser extension designed to\nenhance your surfing experience by allowing you to seamlessly save, categorize, AI chat,\nmanage and interact with pages across the web.","The second part is your Personal workspace on mypicker.net. where you can organize, create\ncollections and reports, store and share your findings. Here you also have quick and easy\nacces to our AI chat. In a nutshell \u2013 This is a place for everything that really matters to you.","The third part is the Mobile app that makes it easy for you to pick things that interest you on\nthe go. It also syncs up in real-time with your personal workspace so you can work\nseamlessly between your devices.","Our users are at the heart of everything we do, and we want to make it easy for people to be\nmore productive so they can free up time and spend it on what truly matters to them.",{header:"Why should I use Picker?"},"We understand that time is precious, so in a fast-paced world where productivity is key, Picker is your\nultimate productivity companion. With its easy-to-use interface, seamlessly integrated AI, and the\nability to help you stay informed, inspired, and organized, Picker empowers you to achieve your goals\nlike never before. Maximize your efficiency, save time, and prioritize what truly matters.","It\u2019s great for Students, Knowledge workers and of course People with passions and hobbies.",{header:"Why did you create Picker?"},"Picker was born from a real need. In an era of increasing digital clutter, gathering information,\nprocessing, and saving it to be able to access it quickly when you need it, can be a real nightmare.\nAfter years of small and sometimes big frustrations, using different methods and apps, often too\ncomplicated or too simple, we realized it was not our way of working \u2013 at all.","When talking to friends and colleagues we realized there were a lot of people sharing our frustrations\nand need, so we developed Picker \u2013 your Surfer Buddy, to make it easy to become more productive.",{header:"Who uses Picker?"},"It is used by Students, Knowledge workers and of course People with passions and hobbies.","For Students it will make the study-process easier and provide a more personalized experience.","For Knowledge workers it\u2019s an indispensable tool for saving time, improving productivity, and\nempowering them to focus on high-value tasks.","For people with a hobby or passion it\u2019s an easy way to stay inspired, informed and organized \u2013 and\nsaving the things you really care about in one place.",{header:"Why is Picker great for Students?"},"College and University students often face numerous academic tasks, including assignments,\nprojects, exams, and extracurricular activities. These tasks can be over
2whelming, leading to\nstress and disorganization. Picker is tailored to the specific needs of college and university\nstudents and can help them becoming more effective when studying and maintain a better\nwork-life balance.",{header:"Why is Picker great for Knowledge workers?"},"Knowledge workers already rely heavily on technology to streamline their work and enhance\nproductivity. They are accustomed to using various digital tools and platforms to manage\ntheir tasks, communication, and project collaboration. Picker\u2019s ability to reduce pain points in\nexisting workflows and help to improve productivity and free up time to spent on more high-\nvalue tasks.",{header:"Why is Picker great for People with hobbies & passions?"},"Hobbies are often fueled by inspiration and creativity. Picker helps users to capture ideas, and\nresources related to specific hobbies, find inspiration, explore new techniques or trends, and\nkeep their creative juices flowing. Picker unique user-interface and seamlessly integrated AI\nwill make it a valuable companion for individuals pursuing their passions and hobbies.","Picker offers unique opportunities for this diverse user base, addressing needs related to\norganization and time management, fostering inspiration and creativity, facilitating\ncommunity and collaboration, and developing personal growth.",{header:"What makes Picker unique?"},"What sets Picker apart is our innovative user-interface combined with the seamless integration of AI\nchat to all parts of Picker.","The floating \u201cSurfer-Buddy\u201d provides quick and easy access to the most necessary tools including for\ninteracting with webpages. Making it easy to become more efficient, save time, and prioritize what\ntruly matters.","The three-part real time system makes it a great way for the many people to level up their productivity\n\u2013 especially Students, Knowledge workers and people working with volumes of information can\nreally streamline their work processes and get more done.",{header:"Is Picker complicated to use?"},"We sure hope it\u2019s not. We spent an enormous amount and focus of just making the user exeprinces\nas smooth and intuitive as possible. Our goal has been to make it as easy as possible to onboard,\nunderstand and to use. It should take 1 minute to learn and 5 to master.",{header:"Who is behind Picker?"}
2,"Picker was born in Sweden and raised in the US. Today we\u2019re a lean start-up with our 100% remote\nteam spread over US, Asia, and Europe. Our focus is to develop easy to use solutions and new\ninnovations for the many people \u2013 empowering people and organizations to work smarter, level up\ntheir productivity and free up time.",{header:"What is Time Freeze?"},"From Read mode, when we have cleaned up and sanitized the content on the webpage from annoying\nSidebars and disturbing ads you will have the option to Freeze the page in time. No matter if it\u2019s\nupdated, edited or deleted you will still have access to it. It\u2019s basically a way to Super-save a cleaned\nup webpage.",{header:"What is a Live Collection?"},"It\u2019s a way for you to share an entire Collection in real-time with all your Notes, Highlights, and Tags.\nWhenever you make edits, add or remove things within the Collection the people you have shared it\nwith will see what you are doing in real time.",{header:"Will Picker send me content suggestion?"},"No, we do not suggest or pitch content to you. We have no predictive algorithms feeding you curated\ncontent based on how you are interacting with web content.",{header:"Is Picker a Social Network or Social tool?"},"No, we no social ambitions. No likes, thumbs up or down. No profile pages.\nNo public boards or story flows.",{header:"ACCOUNT"},{header:"Do I need to create an account to use the app?"},"Yes. Under the category \u201cGetting Started\u201d you can find detailed information on how to download the\napp on computer and mobile devices.",{header:"Is Picker free?"},"Yes and no. Yes, you can test Picker for a period of 60 days and really take it for a spin and\nsee if it meets your expectations. And no, after the 60 days you can then eithet walk away or\nstart a subscription for $ 2.95 per month when payed annually \u2013 or as we say for less the price\nof Tall Latte you can level up your productivity.","Your subscription fee will cover the costs of servers, hosting, AI chat and of course also gives\nus resources to continue our development of Picker and make it even better and versatile for\neach update and new version. We\u2019re not in it for a sprint but for the long run.",{header:"Can I use the app without an internet connection?"},"No, offline mode is not available for the moment. Although it is a function we wish to implement in\nthe future.",{header:"How do I get a new password?"},"To obtain a new password, simply click on the \u201cLog In\u201dbutton. Then, select the \u201cPassword\u201d button.\nThis will lead you to a new page where you must enter your email address. Soon after, you will\nreceive an email with instructions for creating a new password. If you can\u2019t find your reset email in\nyour mail inbox it might be in your junk-mail.",{header:"Can I delete my account?"},"Yes, please note that this action cannot be undone, and once your data is deleted, it cannot be\nrecovered. To permanently delete your Pocket account and all associated data follow these steps:","1. Log in to your picker account.","2. Click on your profile icon/avatar in the top right corner\nof the screen.",'3. Select "Settings" from the dropdown menu.','4. In the "Account" tab, scroll down to find the "Delete\nAccount" section. Click on the "Delete Account" button.',"5. You will be asked to confirm the account deletion.","6. Read the information provided and understand that\ndeleting your account is permanent and cannot be\nundone.","7. Enter your password to confirm the deletion.",'8. Click on the "Delete Account" or "Confirm" button.',"9. Your picker account will be permanently deleted.",{header:"Where can I provide feedback?"},"We value your feedback and suggestions. You can contact us on [email protected]",{header:"What are the requirements for using Picker?"},"To use Picker, you need to have a Google Chrome browser version 90 or later running on a Windows,\nMac OS X, or Linux operating system. This ensures that you have the atest security updates and\nfeatures to protect your data while using the app.",{header:"Can I sync my data with other devices or platforms?"},"Yes, you can sync your data with other devices or platforms as long as they support Google Chrome\nbrowser version 90 or later. You can sign in to your account on different devices and access all your\nsaved links and articles seamlessly.",{header:"Can I share content with my friends and family?"},"Yes, you can share an entire collection by using the \u201cLive Collections\u201d sharing function on\nmypicker.net. However, it is important to note that each user's data is stored separately, and they will\nnot have access to your content or personal information.",{header:"SECURITY"},{header:"Is my personal information secure while using the app?"},"Yes, at Picker, we understand the importance of protecting your personal information. That is
2why we\ntake several measures to ensure the security of your data. Firstly, all data transmitted through the app\nis encrypted, making it difficult for anyone to intercept or steal your information.",{header:"What measures does Picker take to ensure the security of my data?"},"Picker utilizes several security features to protect user's data. This includes encrypting data in transit\nand at rest, as well as regular security audits.. Additionally, Picker uses secureservers and follows\nindustry-standard protocols to prevent unauthorized access.",{header:"Can anyone access my notes without my permission?"},"No, your notes are private and are only accessible by you. Picker uses encryption to protect your data\nfrom unauthorized access. Moreover, you can also enable two-way factor authentication to your\naccount.",{header:"Does Picker sell or share my data with any third parties?"},"No, your data is just that \u2013 your data. Picker does not sell or share your data with third parties. Your\ndata is stored on secure servers and is only visible to you and those with whom you choose to share\nyour notes.",{header:"Is Picker safe and secure?"},"Yes, we are following the highest industry standard for authentication, authorization, and data\nvalidation. Your data is encrypted and stored in the cloud with 24/7 access.","DARK MODE",{header:"What is dark mode and why is it important?"},"Dark mode, also known as night mode or dark theme, is a setting that changes the color palette of an\napp from light to dark. It essentially inverts the colors, making the background darker and the text and\nimages lighter. This feature is important because it can reduce eye strain, especially in low light\nconditions. It also conserves battery life\u2019s darker colors require less energy for display.",{header:"Does dark mode improve readability?"},"This question is often raised by users who are used to reading black text on a white background.\nWhile some users find dark mode easier to read, others may prefer the traditional light mode. It\nultimately depends on personal preference and the lighting conditions in which the app is being used.\nSome studies have shown that dark mode mayebe more beneficial for reading long blocks of text, as it\nreduces the contrast between the background and text, making it less straining on the eyes.",{header:"Can dark mode help with night-time usage?"},"Yes, dark mode can be very beneficial for night-time usage. The bright, white backgrounds of apps\ncan be harsh on the eyes, especially in a dark environment. Dark mode can mitigate this issue by\nreducing the amount of light emitted from the screen. This can also help with better sleep, as the\nbright light from screens can disrupt our natural sleep patterns."],tutorialUrl:"https://www.youtube.com/embed/8OPE--YbDsg?si=mpTlMIe73xTX-aEe&autoplay=0"},{title:"Subscription Information",text:[{header:"Cancel your Subscription"},"To discontinue your Premium subscription, you just have to stop the automatic renewal of your plan. Uninstalling\n the app won't cancel your subscription. This can be accomplished by turning your subscription off through the\n payment method you used:",{header:"- App Store (iOS)"},"App Store subscriptions renew automatically, meaning you have to cancel them yourself. To do this, go to your\n Apple ID in iTunes or the App Store, and choose 'Subscriptions' to find the option to cancel the auto-renewal of\n your Picker subscription.",{header:"- Google Play Store (Android)"},"On your Android device, go to Google Play subscriptions, choose the Picker subscription you want to cancel, tap\n 'Cancel subscription,' and then follow the instructions. "]}],M=(S.Z,S.Z,function(){let e="</br>";return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(e=""),[{img:w,text:"<strong>Born from the family cookbook idea</strong> with recipes collected over time and sticky notes falling out. Scribbles on every page to remember tweaks and adjusting measurements to <strong>make the recipe yours.</strong> We added AI chat so you can get instant access to invaluable help.<br/><br/><strong>A new home for all your recipes.<strong/>",imgTitle:"Turn online recipes into your own digital cookbook",underText:"All recipes you collect with our chrome extension and/
2or apps are instantly saved to your private collections on mypicker.net"},{img:p,title:"Great highlighters",text:"Navigate the recipe easier with highlights.".concat(e," \n Mark what\u2019s important in the recipe.").concat(e," \n Choose from 4 colors and color co-ordinate").concat(e," \n with your sticky notes."),bgImg:a},{img:b,title:"The Stickiest Notes",text:"Use sticky notes to remember tweaks to measurements, swapping of ingredients and jot down comments - make each dish yours.",textColor:"mainPage"},{img:g,title:"Powered up with AI chat",text:"Our integrated AI is a foodie's little helper.".concat(e," \n Chat, ask questions without leaving the page,").concat(e," \n get ideas for sides that complement your").concat(e," \n main dish. Ask for wine and beverage pairings.").concat(e," \n Ask AI where you can buy specialty ingredients").concat(e," \n in your region or what local produce is in season").concat(e," \n for you right now."),bgImg:a},{img:x,title:"Tags",text:"Quickly locate saved items by tagging them.".concat(e," \n As your digital cookbook expands, you can").concat(e," \n categorize recipes with tags and organize it").concat(e," \n your way. Whether you choose labels like").concat(e," \n Delicious, Slow Cooker, typ of Cuisine, Meal,").concat(e," \n or Main ingredient the choice is yours.")},{img:k,title:"Super Save with Time Freeze",text:"Never lose a recipe - save it with time freeze and you\u2019ll always have access to it even if it\u2019s changed or removed. As a bonus, this also helps you get rid of annoying ads and disruptive sidebars.",bgImg:a}]}),L=[{title:"No ads",text:["For subscribes - Picker is ad free"]},{title:"No pitching or curating",text:["We do not suggest or pitch content to you.","No predective algorithms feeding you currated content."]},{title:"No social ambitions",text:["No likes, no thumbs up or down. No profile pages.","No public boards or story flows."]},{title:"Your data is yours",text:["We do not share, sell or claim ownership of any of your data.","You decide and control what you want to share and with whom."]},{title:"Safe and secure",text:["Highest industry standard for authentication, authorization and data validation. Your data is encrypted and stored on the cloud with 24/7 access."]},{title:"Price",text:["For less than the price of a \u201dTall Latte\u201d $4.99 per month, you can level up your productivity"]}],Z=[{title:"What is Picker?",text:["Picker makes it easy for you to Pick info you find online and save it to one place so you can stay inspired, informed and organized.","Picker has three parts.","1) your personal workspace - a place where you can create your own Collections and work with all your online picks.","2) Your Surfer Buddy a productivity Companion (Google Chrome extension) that neatly floats on top of basically all webpages. You use it to process information by asking questions to AI, highlighting important information and jotting down thoughts on sticky notes. This is where most of our \u201cold school\u201d tools exist. The ones you\u2019ve used in school. Just don't go highlighter happy, or do!","3) Lastly, our mobile app which allows you to ask questions to our AI, take notes and add webpages to your collections. A butterfly net, you use to Pick things on the go.","At its core Picker is a productivity tool to make research easy but it's applicable to many scenarios. Continue reading to find out how you can use Picker."]},{title:"Who uses Picker?",text:["Picker is awesome for everyone.","It really doesn't matter what you do online. It\u2019s an amazing time saver and very practical for students, or content creators, market researchers and journalists but it\u2019s very useful for everyone. If you\u2019re into traveling you can create a collection for what you want to do on your trip. You can create shopping lists or wedding inspiration. You can save tutorials on new skills you are trying to master. Create your own cookbook with the recipes you find online. You can save news articles and have them easily accessible. Save all your favorite properties when house hunting. The possibilities are endless!","We like to say Picker is great for students, knowledge workers and people with passions & hobbies."]},{title:"What makes Picker unique?",text:["A few things actually!","-".concat(" ","Our floating Surfer Buddy"),"-".concat(" ","Real-time sharing with \u201cLive Collection\u201d"),"-".concat(" ","Integrated AI that allows you to save your answers to collections"),"
2-".concat(" ","Floating sticky notes that stick to the page"),"-".concat(" ","Readability mode, choose font, its color and size, and change the background color"),"-".concat(" ","Extract key info, compiles all your notes, highlights and sources within a collection into a practical pdf"),"-".concat(" ","Time freeze, save the information on a page as it is, so if it changes later you still have the same version"),"-".concat(" ","Personalization, change collection images, page images, select your own Surfer Buddy icon, color on sticky notes & highlights")]},{title:"Is Picker free?",text:["For your first 60 days, yes!","After your 60 day test spin you will be asked if you want to continue using Picker for a sum of $4.99 per month or $49.90 for a yearly subscription. So for less than the price of a tall latte you get a full month of Picker.","The subscription fee goes to cover server costs, hosting, AI chat and developing to make sure Picker stays the best online productivity tool, in our opinion at least."]},{title:"Is Picker safe and secure?",text:["Yes, we follow the highest industry standards for authentication, authorization and data validation. Your data is encrypted and stored in the cloud with 24/7 access."]}],j=[{title:"Try for free \u2013 60 days",desciption:"No bank or credit card required"},{title:"Cancel at any time",desciption:"Just stop using Picker. No strings attached."},{title:"After your 60 days free trial",desciption:"You can then choose a monthly ($4.99) or yearly ($49.90) plan."}],F=[{title:"A butterfly net",description:"Pick info easily",isMobile:!0,isDesktop:!1},{title:"Surfer Buddy",description:"Floating tool-kit",isDesktop:!0},{title:"AI chat",description:"Fully integrated",isMobile:!0,isDesktop:!0},{title:"Save AI answers",description:"to Collections",isMobile:!0,isDesktop:!0},{title:"Live Collections",description:"Real time sharing",isMobile:!0,isDesktop:!0},{title:"Read mode",description:"No distractions",isDesktop:!0},{title:"Highlighters",description:"Best there is",isDesktop:!0},{title:"Time freeze",description:"Super save it",isDesktop:!0},{title:"Sticky Notes",description:"Stays on pages",isMobile:!0,isDesktop:!0},{title:"Extract Key info",description:"Info into pdf",isMobile:!0,isDesktop:!0}],z=[{name:"Greg",testimonial:"This not only great for the writers and producers.It can be used for everything You find online and want to keep.",company:"Filmmaker"},{name:"Jane",testimonial:"I use it every day both for my studies and probably more for my personal interests. I also used it when I helped my parents with their kitchen make- over",company:"Student"},{name:"Ivan",testimonial:"I save on average 50% of my time when gathering and processing info for my research when I\u2019m doing market and competitive analysis.",company:"Market researcher"}],U=[{title:"Collections",text:["Once you have the correct app downloaded you can access all your collections and create new ones."]},{title:"Sharing",text:["You can turn on \u201clive collection\u201d and share your collection. Similar to your Personal Workspace."]},{title:"Quick view and Notes",text:["When you access a collection you can get a quick view of your tags, sticky notes and highlights by clicking on the icons. Add a note to a page by clicking on the sticky note icon and then plus sign that is located to the right."]},{title:"Adding a page",text:["To add a page to a collection on the go, then click share and find the Picker app (The first few times it might be further down on the list of apps you have)."]},{title:"AI - chat",text:["Quick and easy access to your AI - chat also from the mobile app. It is integrated in the same way as in your Surfer Buddy and your Personal workspace. It works in the same way, once you type in your question, just click \u201csend\u201d. To save an answer, select or create a new collection at the bottom of the window. Then click \u201cSave answer\u201d at the bottom of the answer.Then continue to chat or press \u201cStart a new chat\u201d."]},{title:"Live Collections",text:["Similar to your Personal Workspace you can view the \u201cLive Collections\u201d that have been shared with you. "]},{title:"Account setting",text:["Lastly you can access account settings. Edit your profile, change password and watch the mobile users guide among other things."]}],B=[{title:"2. Working with your Surfer Buddy",text:["Great! Now that you have your Surfer Buddy installed it should appear when you go to a new page.","Here is a short instructional video on how to use your Surfer Buddy or read about it below."],hints:[{title:"AI - chat",text:["After downloading The Surfer Buddy from your Desktop.","Start by moving your Surfer Buddy around, it's easy, just click and drag.","Place it where you want, then click on it to access your tools.","At the top you have the integrated AI-chat. Once you t
2ype in your question, just click \u201csend\u201d.\n To save an answer, select or create a new collection at the bottom of the window. Then click\n \u201cSave answer\u201d at the bottom of the answer. Then continue to chat or press \u201cStart a new chat\u201d."]},{title:"Collection",text:["If you have not created a collection your Picks will per default be saved to \u201cUnsorted\u201d.","To create a collection start by typing the name you want for your collection and pressing the drop down button that displays below. When you have multiple collections this is also where you choose which you want to work with.","Remember, it is important to have the correct collection selected when working with your Surfer Buddy.","To work with your Picks within a collection go to your personal workspace on mypicker.net"]},{title:"Sticky Notes",text:["To create a sticky note click the icon. At the top of the note you then choose from four colors, the option to minimize its size or to delete the sticky note. Click on the writing area to start writing. You can move your note around by dragging and dropping, they will stay there until you move them again."]},{title:"Highlight",text:["To highlight click the icon and pick the color you want. Then select the portion of the text you want to highlight. Make sure to click on the tool first and not after you have selected the text. To remove the highlight just repeat the same process and go over the same text again."]},{title:"Tags",text:["Create one or several tags for your Picks, so it is easier to find and organize them later. make it easier for you to find and s
2ort relevant information.You can easily classify, Label, mark identification and belonging."]},{title:"Read mode",text:["Use this to get rid of distractions, annoying ads and sidebars. You can change the font, font size and background color on the page. Here you can also choose to save a page as \u201cTime Freeze\u201d which conserves the text website, so if the author makes any changes you will still have access to the version that you were working with. Note you can not put sticky notes or highlight when you are in readability mode."]},{title:"Settings",text:["Here you can personalize your Surfer Buddy and also manage your Blocked list. The pages you don\u2019t wany your Surfer Buddy to be present on."]}],bgImage:a,iframeId:"6ARyWMYSjk4"},{title:"3. Your Personal workspace",text:["Now back to your Personal Workspace! This is the main page where you can see And work with all your Picks and Collections.","Here is a short instructional video on how to use your Personal workspace or you can read more about it below"],hints:[{title:"Collections",text:["You can choose to display them as most recently worked with or in alphabetical order. To the right you can see a small plus button, click the plus to create a new collection. The image you see is the default collection image and this will change when you make your first Pick or select a Collection image.Below that you see the collection name and how many pages are in that collection."]},{title:"Sharing",text:["By flipping the switch in the bottom left of a collection card you activate \u201cLive collection\u201d. This lets that specific collection be shared in real time with whomever you want. When you add a new note or make a change to your collection - the people you have shared it with will se your changes instantly.","Press the share button next to the switch and select how you would like to share your Live Collection. If you ever change your mind and want to stop your collection from being live just flip the switch back to turn sharing off."]},{title:"Extract Key info",text:["This function compiles all your sources, highlights and notes from an entire Collection and packages it into a PDF. This is a time saver for when you are working with online information for work or school and you want quick access only to the information you already have processed."]},{title:"Pages",text:["By clicking on a collection you will see all the pages that are collected in it.","Just like with the collection page you can view pages by most recent or in alphabetical order. Here you can also select to only see time freeze mode. The pictures are the page images. In the sources-circle you see the logo of the page which it derives from and the name of the page. Underneath that you have the quick view option. Just mouse over the icons to see what tags, sticky notes, and highlights you have on that specific page. In the three dot menu you can change the page title or delete the page."]},{title:"Organize",text:["With drag and drop you can move pages from one collection to another, or copy a page over so that it exists in both collections. Similarly if you want to copy a page over you option click on Mac and Alt click on PC. Next to the search bar you can select whether you want to work with page images or without. "]},{title:"Tags",text:["Here you can use the Tags that you created with your Surfer Buddy to find pages with similar topics even though they may reside in different collections. Select the tag or tags, and see which web pages you have saved."]},{title:"Live Collections",text:["This is the home for the Live Collections people have shared with you. Similar to Collections and Pages you can view by most recent or alphabetically. The three dot menu also lets you update the title or delete the live collection if you no longer want it. "]},{title:"AI - chat",text:["Quick and easy access to your AI - chat also from here. It is integrated in the same way as in your Surfer Buddy and Mobile app.and works in the same way.Once you typed in your question, just click \u201csend\u201d.","To save an answer, select or create a new collection at the bottom of the window. Then click \u201cSave answer\u201d at the bottom of the answer.Then continue to chat or press \u201cStart a new chat\u201d."]}],iframeId:"NtU6BsW8Z-s"},{title:"4. Picker and personalization",text:["Make your Surfer Buddy more personal. Pick images to your saved Pages and Collections.","Here is a short instructional video on how make Picker more personal or read about it below."],hints:[{title:"Collection image",text:["You can change the collection image by finding an image you\u2019d like to use. With the correct collection selected, right click on the image and click set page image."]},{title:"Page image",text:["Setting the page image is a little different. Here you can only choose from most of the images on the page. However, the process is the same."]},{title:"Surfer Buddy",text:["Make your Surfer Buddy more - You! Change the image on your Surfer Buddy from the Picker icon by going into settings and click select image then upload the image you like instead (300x300px)."]},{title:"Blocked list",text:["If you don\u2019t want your Surfer Buddy to appear on a specific website you can easily choose to block your Surfer Buddy from appearing by flipping the block switch in while in the settings function of your Surfer Buddy when you are on the page you wish to block. Here you can also open and view the Blocked List and of course also remove a
2website from your Blocked list."]}],bgImage:a,iframeId:"NtU6BsW8Z-s"}],V=[{title:"Collections",text:["You can choose to display them as most recently worked with or in alphabetical order. To the right you can see a small plus button, click the plus to create a new collection. The image you see is the default collection image and this will change when you make your first Pick or select a Collection image.Below that you see the collection name and how many pages are in that collection."]},{title:"Sharing - Live Collection",text:["By flipping the switch in the bottom left of a collection card you activate \u201cLive collection\u201d. This lets that specific collection be shared in real time with whomever you want. When you add a new note or make a change to your collection - the people you have shared it with will se your changes instantly.","Press the share button next to the switch and select how you would like to share your Live Collection. If you ever change your mind and want to stop your collection from being live just flip the switch back to turn sharing off."]},{title:"Extract key info",text:["This function compiles all your sources, highlights and notes from an entire Collection and packages it into a PDF. This is a time saver for when you are working with online information for work or school and you want quick access only to the information you already have processed."]},{title:"Pages",text:["By clicking on a collection you will see all the pages that are collected in it. Just like with the collection page you can view pages by most recent or in alphabetical order.Here you can also select to only see time freeze mode.The pictures are the page images.In the sources- circle you see the logo of the page which it derives from and the name of the page.Underneath that you have the quick view option.Just mouse over the icons to see what tags, sticky notes, and highlights you have on that specific page.In the three dot menu you can change the page title or delete the page."]},{title:"Organize",text:["With drag and drop you can move pages from one collection to another, or copy a page over so that it exists in both collections. Similarly if you want to copy a page over you option click on Mac and Alt click on PC. Next to the search bar you can select whether you want to work with page images or without."]},{title:"Tags",text:["Here you can use the Tags that you created with your Surfer Buddy to find pages with similar topics even though they may reside in different collections. Select the tag or tags, and see which web pages you have saved."]},{title:"Live Collections shared with you",text:["This is the home for the Live Collections people have shared with you. Similar to Collections and Pages you can view by most recent or alphabetically. The three dot menu also lets you update the title or delete the live collection if you no longer want it."]},{title:"AI chat",text:["Quick and easy access to your AI - chat also from here. It is integrated in the same way as in your Surfer Buddy and Mobile app.and works in the same way.Once you typed in your question, just click \u201csend\u201d.","To save an answer, select or create a new collection at the bottom of the window. Then click \u201cSave answer\u201d at the bottom of the answer.Then continue to chat or press \u201cStart a new chat\u201d."]}],H=[{title:"The Surfer Buddy",subtitle:"a great productivity companion",description:["Picker makes it easy to quickly collect and work with information on pages across the web."],img:h},{title:"A personal workspace",subtitle:"one place for everything that really matters",description:["Create and organize your Collections with drag & drop.","Real time sharing with Live Collections."],bgImg:E.Z,img:_,bgPosition:"0 230px"},{title:"Your Pick = Page card",subtitle:"all key info at your finger tips",description:["Each of your Picks is presented as a Page card within a collection with all key info quickly visible."],img:s,bgPosition:"0 250px"},{title:"Picker mobile app",subtitle:"pick things that interests you on the go",description:["AI chat, add notes, tag, create collections and save to your personal workspace on mypicker.net"],img:d,bgPosition:"0 200px"},{title:"AI chat made easy",subtitle:"quick access to answers",description:["Conviniently integrated in the Surfer Buddy, your Personal workspace on mypicker.net and in Picker mobile apps."],bgImg:C,img:l,bgPosition:"0 270px"},{title:"Live collection",subtitle:"real time sharing",description:["Share an entire Collection with all Notes, Highlights and Tags."],img:c}
2,{title:"Time freeze",subtitle:"freezes a webpage in time",description:["In today's constant stream of updates, changes and deletions, being able to save a page frozen in time can be invaluable."],img:u,bgPosition:"0 200px"},{title:"Extract Key Info",subtitle:"turn a Collection into a report",description:["Compile all your Pages, Notes, Highlights and sources into a pdf."],bgImg:S.Z,img:f}],W=[{title:"Surfer Buddy",subtitle:"Tool-kit (on/off)"},{title:"Live Collections",subtitle:"Real time sharing"},{title:"AI as an integrated Tool",subtitle:"Surfer Buddy, workspace, mobile"},{title:"Save AI answers",subtitle:"direct to collections"},{title:"Extract Key Info",subtitle:"from Collections"},{title:"Highlighters"},{title:"Floating Sticky Notes"},{title:"Readability mode"},{title:"Time-Freeze - Save",subtitle:"webpages \u201cfrozen\u201d in time"},{title:"Personal workspace"},{title:"Mobile App IOS/Android"}],q=[{name:"Free",features:["Perfect for Students and Private users"],planType:"free"},{name:"Professional",features:["Powerful AI","Elevates your work and saves you tons of time"],planType:"professional"},{name:"Enterprise",features:["In testing now"],planType:"enterprise"}],G=[{path:r.y.PRODUCTS,name:"Products"},{path:r.y.ABOUT_US,name:"About Picker"},{path:r.y.USE_CASES,name:"Use cases"}],K={free:r.y.AUTH("signup"),professional:r.y.AUTH("signup"),enterprise:r.y.ENTERPRISE_SIGNUP,apply:r.y.APPLY_PAGE},Q=[{path:r.y.SUPPORT,name:"Help & Support"},{path:r.y.TERMS_AND_PRIVACY,name:"Terms & Privacy"},{path:r.y.CONTACTS,name:"Contact us"}],Y=[{id:1,text:"Untangle project and\n company data"},{id:2,text:"Quickly collect and \n extract info"},{id:3,text:"Uncover new insights with",below:"One-click Private AI"},{id:4,text:"Quick prompts and AI chat"}],$=[{id:1,title:"Intuitive tools to collect info faster.",subtitle:"Introducing the Surfer Buddy \u2013 a Google chrome extension",infotitleParts:[{text:"Our "},{text:"productivity companion",bold:!0},{text:" makes it easy to quickly collect and work"},{type:"break"},{text:" with information on pages across the web."}],image:v,alt:"Screenshot of Surfer Buddy extension in action",featureList:["Quick save","AI Chat / Private AI","Quick prompts","Sticky notes","Highlighters","Tags","Read mode","Screen capture","Settings"]},{id:2,title:"Your personal workspace, powered with Private AI.",subtitle:"Research deeper, review faster, plan smarter \u2013 free up time to be more creative.",infotitleParts:[{text:"A "},{text:"personal workspace",bold:!0},{text:" - one place for everything that really matters."},{type:"break"},{text:" Create, organize and work with your info using Private AI and AI chat."}],image:y,alt:"Screenshot of Picker personal workspace with collections"}],X=[{name:"INHOUSE MARKETING",features:["Fresh Ideas, full carts, revving up Grocery Sales with Picker..."],readMoreUrl:"/use-cases/Inhouse-marketing"},{name:"AD AGENCY",features:["Unlocking Gen Z.","A Playbook for new Campaigns..."],readMoreUrl:"/use-cases/Ad-agency"},{name:"NEWSROOM",features:["Dig deeper, connect faster and get the story first..."],readMoreUrl:"/use-cases/Newsroom"}]},48970:(e,t,n)=>{"use strict";n.d(t,{Z:()=>V});var r=n(72791);function o(e){var t=Object.entries(e).filter((function(e){var t=e[1];return void 0!==t&&null!==t})).map((function(e){var t=e[0],n=e[1];return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(String(n)))}));return t.length>0?"?".concat(t.join("&")):""}var i=n(53834),a=n.n(i),s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)}
2,c=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},u=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},d=function(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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.openShareDialog=function(e){var n,r,o=t.props,i=o.onShareWindowClose,a=o.windowHeight,s=void 0===a?400:a,c=o.windowPosition,u=void 0===c?"windowCenter":c,h=o.windowWidth,f=void 0===h?550:h;!function(e,t,n){var r=t.height,o=t.width,i=d(t,["height","width"]),a=l({height:r,width:o,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"},i),s=window.open(e,"",Object.keys(a).map((function(e){return"".concat(e,"=").concat(a[e])})).join(", "));if(n)var c=window.setInterval((function(){try{(null===s||s.closed)&&(window.clearInterval(c),n(s))}catch(e){console.error(e)}}),1e3)}(e,l({height:s,width:f},"windowCenter"===u?(n=f,r=s,{left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-n/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-r/2}):function(e,t){return{top:(window.screen.height-t)/2,left:(window.screen.width-e)/2}}(f,s)),i)},t.handleClick=function(e){return c(t,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,c,d;return u(this,(function(u){switch(u.label){case 0:return t=this.props,n=t.beforeOnClick,r=t.disabled,o=t.networkLink,i=t.onClick,a=t.url,s=t.openShareDialogOnClick,l=t.opts,c=o(a,l),r?[2]:(e.preventDefault(),n?(d=n(),!(h=d)||"object"!==typeof h&&"function"!==typeof h||"function"!==typeof h.then?[3,2]:[4,d]):[3,2]);case 1:u.sent(),u.label=2;case 2:return s&&this.openShareDialog(c),i&&i(e,c),[2]}var h}))}))},t}return s(t,e),t.prototype.render=function(){var e=this.props,t=(e.beforeOnClick,e.children),n=e.className,o=e.disabled,i=e.disabledStyle,s=e.forwardedRef,c=(e.networkLink,e.networkName),u=(e.onShareWindowClose,e.openShareDialogOnClick,e.opts,e.resetButtonStyle),h=e.style,f=(e.url,e.windowHeight,e.windowPosition,e.windowWidth,d(e,["beforeOnClick","children","className","disabled","disabledStyle","forwardedRef","networkLink","networkName","onShareWindowClose","openShareDialogOnClick","opts","resetButtonStyle","style","url","windowHeight","windowPosition","windowWidth"])),p=a()("react-share__ShareButton",{"react-share__ShareButton--disabled":!!o,disabled:!!o},n),m=l(l(u?{backgroundColor:"transparent",border:"none",padding:0,font:"inherit",color:"inherit",cursor:"pointer"}:{},h),o&&i);return r.createElement("button",l({},f,{"aria-label":f["aria-label"]||c,className:p,onClick:this.handleClick,ref:s,style:m}),t)},t.defaultProps={disabledStyle:{opacity:.6},openShareDialogOnClick:!0,resetButtonStyle:!0},t}(r.Component);var f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)};const p=function(e,t,n,o){function i(i,a){var s=n(i),l=f({},i);
2return Object.keys(s).forEach((function(e){delete l[e]})),r.createElement(h,f({},o,l,{forwardedRef:a,networkName:e,networkLink:t,opts:n(i)}))}return i.displayName="ShareButton-".concat(e),(0,r.forwardRef)(i)};const m=p("email",(function(e,t){var n=t.subject,r=t.body,i=t.separator;return"mailto:"+o({subject:n,body:r?r+i+e:e})}),(function(e){return{subject:e.subject,body:e.body,separator:e.separator||" "}}),{openShareDialogOnClick:!1,onClick:function(e,t){window.location.href=t}});var g=function(){return g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)},y=function(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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function v(e){var t=function(t){var n=t.bgStyle,o=t.borderRadius,i=t.iconFillColor,a=t.round,s=t.size,l=y(t,["bgStyle","borderRadius","iconFillColor","round","size"]);return r.createElement("svg",g({viewBox:"0 0 64 64",width:s,height:s},l),a?r.createElement("circle",{cx:"32",cy:"32",r:"31",fill:e.color,style:n}):r.createElement("rect",{width:"64",height:"64",rx:o,ry:o,fill:e.color,style:n}),r.createElement("path",{d:e.path,fill:i}))};return t.defaultProps={bgStyle:{},borderRadius:0,iconFillColor:"white",size:64},t}const b=v({color:"#7f7f7f",networkName:"email",path:"M17,22v20h30V22H17z M41.1,25L32,32.1L22.9,25H41.1z M20,39V26.6l12,9.3l12-9.3V39H20z"});var w=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),x=function(e){function t(t){var n=e.call(this,t)||this;return n.name="AssertionError",n}return w(t,e),t}(Error);function k(e,t){if(!e)throw new x(t)}const S=p("whatsapp",(function(e,t){var n=t.title,r=t.separator;return k(e,"whatsapp.url"),"https://"+(/(android|iphone|ipad|mobile)/i.test(navigator.userAgent)?"api":"web")+".whatsapp.com/send"+o({text:n?n+r+e:e})}),(function(e){return{title:e.title,separator:e.separator||" "}}),{windowWidth:550,windowHeight:400});const E=v({color:"#25D366",networkName:"whatsapp",path:"m42.32286,33.93287c-0.5178,-0.2589 -3.04726,-1.49644 -3.52105,-1.66732c-0.4712,-0.17346 -0.81554,-0.2589 -1.15987,0.2589c-0.34175,0.51004 -1.33075,1.66474 -1.63108,2.00648c-0.30032,0.33658 -0.60064,0.36247 -1.11327,
20.12945c-0.5178,-0.2589 -2.17994,-0.80259 -4.14759,-2.56312c-1.53269,-1.37217 -2.56312,-3.05503 -2.86603,-3.57283c-0.30033,-0.5178 -0.03366,-0.80259 0.22524,-1.06149c0.23301,-0.23301 0.5178,-0.59547 0.7767,-0.90616c0.25372,-0.31068 0.33657,-0.5178 0.51262,-0.85437c0.17088,-0.36246 0.08544,-0.64725 -0.04402,-0.90615c-0.12945,-0.2589 -1.15987,-2.79613 -1.58964,-3.80584c-0.41424,-1.00971 -0.84142,-0.88027 -1.15987,-0.88027c-0.29773,-0.02588 -0.64208,-0.02588 -0.98382,-0.02588c-0.34693,0 -0.90616,0.12945 -1.37736,0.62136c-0.4712,0.5178 -1.80194,1.76053 -1.80194,4.27186c0,2.51134 1.84596,4.945 2.10227,5.30747c0.2589,0.33657 3.63497,5.51458 8.80262,7.74113c1.23237,0.5178 2.1903,0.82848 2.94111,1.08738c1.23237,0.38836 2.35599,0.33657 3.24402,0.20712c0.99159,-0.15534 3.04985,-1.24272 3.47963,-2.45956c0.44013,-1.21683 0.44013,-2.22654 0.31068,-2.45955c-0.12945,-0.23301 -0.46601,-0.36247 -0.98382,-0.59548m-9.40068,12.84407l-0.02589,0c-3.05503,0 -6.08417,-0.82849 -8.72495,-2.38189l-0.62136,-0.37023l-6.47252,1.68286l1.73463,-6.29129l-0.41424,-0.64725c-1.70875,-2.71846 -2.6149,-5.85116 -2.6149,-9.07706c0,-9.39809 7.68934,-17.06155 17.15993,-17.06155c4.58253,0 8.88029,1.78642 12.11655,5.02268c3.23625,3.21036 5.02267,7.50812 5.02267,12.06476c-0.0078,9.3981 -7.69712,17.06155 -17.14699,17.06155m14.58906,-31.58846c-3.93529,-3.80584 -9.1133,-5.95471 -14.62789,-5.95471c-11.36055,0 -20.60848,9.2065 -20.61625,20.52564c0,3.61684 0.94757,7.14565 2.75211,10.26282l-2.92557,10.63564l10.93337,-2.85309c3.0136,1.63108 6.4052,2.4958 9.85634,2.49839l0.01037,0c11.36574,0 20.61884,-9.2091 20.62403,-20.53082c0,-5.48093 -2.14111,-10.64081 -6.03239,-14.51915"});const C=p("facebook",(function(e,t){var n=t.quote,r=t.hashtag;return k(e,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+o({u:e,quote:n,hashtag:r})}),(function(e){return{quote:e.quote,hashtag:e.hashtag}}),{windowWidth:550,windowHeight:400});const _=v({color:"#3b5998",networkName:"facebook",path:"M34.1,47V33.3h4.6l0.7-5.3h-5.3v-3.4c0-1.5,0.4-2.6,2.6-2.6l2.8,0v-4.8c-0.5-0.1-2.2-0.2-4.1-0.2 c-4.1,0-6.9,2.5-6.9,7V28H24v5.3h4.6V47H34.1z"});const T=p("twitter",(function(e,t){var n=t.title,r=t.via,i=t.hashtags,a=void 0===i?[]:i,s=t.related,l=void 0===s?[]:s;return k(e,"twitter.url"),k(Array.isArray(a),"twitter.hashtags is not an array"),k(Array.isArray(l),"twitter.related is not an array"),"https://twitter.com/share"+o({url:e,text:n,via:r,hashtags:a.length>0?a.join(","):void 0,related:l.length>0?l.join(","):void 0})}),(function(e){return{hashtags:e.hashtags,title:e.title,via:e.via,related:e.related}}),{windowWidth:550,windowHeight:400});const O=p("linkedin",(function(e,t){var n=t.title,r=t.summary,i=t.source;return k(e,"linkedin.url"),"https://linkedin.com/shareArticle"+o({url:e,mini:"true",title:n,summary:r,source:i})}),(function(e){return{title:e.title,summary:e.summary,source:e.source}}),{windowWidth:750,windowHeight:600});const I=v({color:"#007fb1",networkName:"linkedin",path:"M20.4,44h5.4V26.6h-5.4V44z M23.1,18c-1.7,0-3.1,1.4-3.1,3.1c0,1.7,1.4,3.1,3.1,3.1 c1.7,0,3.1-1.4,3.1-3.1C26.2,19.4,24.8,18,23.1,18z M39.5,26.2c-2.6,0-4.4,1.4-5.1,2.8h-0.1v-2.4h-5.2V44h5.4v-8.6 c0-2.3,0.4-4.5,3.2-4.5c2.8,0,2.8,2.6,2.8,4.6V44H46v-9.5C46,29.8,45,26.2,39.5,26.2z"});var A=n(53893),P=n(5289),R=n(65661),N=n(39157),D=n(20890),M=n(97123),L=n(36314),Z=n(13400),j=n(13967);const F=n.p+"static/media/xIcon.161f2af0011beb8f4cc4c2a07259caaa.svg";var z=n(80184);const U="Check out Picker!",B="Save time, become more efficient and get more done \u2013 work smarter! Try Picker with integrated AI chat for free for 2 months.";const V=function(e){let{onDone:t,title:n,shareData:r,sharedUrl:o}=e;const i=(0,j.Z)();return(0,z.jsxs)(P.Z,{open:!0,onClose:t,maxWidth:"sm",children:[(0,z.jsxs)(R.Z,{color:i.palette.link,children:["Share Collection: ",n]}),(0,z.jsx)(N.Z,{children:(0,z.jsxs)(D.Z,{children:["Choose from below or copy the link:"," ",(0,z.jsx)(Z.Z,{"aria-label":"share",size:"medium",onClick:()=>{navigator.clipboard.writeText(o.href)},children:(0,z.jsx)(A.Z,{})})," "]})}),(0,z.jsx)(M.Z,{sx:{justifyContent:"center"},children:(0,z.jsxs)(L.Z,{direction:"row",spacing:3,children:[(0,z.jsx)("div",{children:(0,z.jsx)(m,{url:o,subject:(null===r||void 0===r?void 0:r.email.title)||U,body:(null===r||void 0===r?void 0:r.email.text)||B,onShareWindowClose:t,children:(0,z.jsx)(b,{size:32,round:!0})})}),(0,z.jsx)("div",{children:(0,z.jsx)(S,{windowWidth:660,windowHeight:460,url:o,title:(null===r||void 0===r?void 0:r.whatsApp.title)||U,children:(0,z.jsx)(E,{size:32,round:!0})})}),(0,z.jsx)("div",{children:(0,z.jsx)(C,{windowWidth:660,windowHeight:460,url:o,children:(0,z.jsx)(_,{size:32,round:!0})})}),(0,z.jsx)("div",{children:(0,z.jsx)(T,{windowWidth:660,windowHeight:460,title:(null===r||void 0===r?void 0:r.xTwitter.title)||U,url:o,children:(0,z.jsx)("img",{src:F,alt:"x-twitter"})})}),(0,z.jsx)("div",{children:(0,z.jsx)(O,{url:o,windowWidth:660,windowHeight:460,children:(0,z.jsx)(I,{size:32,round:!0})})})]})})]})}}
2,79338:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(5289),o=n(65661),i=n(39157),a=n(97123),s=n(94294),l=n(80184);const c=e=>{let{open:t,reason:n,onClose:c}=e;return(0,l.jsxs)(r.Z,{open:t,onClose:c,children:[(0,l.jsx)(o.Z,{children:"Subscription Limit Reached"}),(0,l.jsx)(i.Z,{children:n}),(0,l.jsx)(a.Z,{children:(0,l.jsx)(s.Z,{onClick:c,children:"OK"})})]})}},88026:(e,t,n)=>{"use strict";n.d(t,{E5:()=>a,M0:()=>d,YS:()=>f,di:()=>p,f9:()=>m,jt:()=>c,lc:()=>l,qS:()=>u,uM:()=>o,wY:()=>h,yk:()=>i,zH:()=>s});var r=n(1330);const o=(0,r.cn)([]),i=((0,r.cn)([]),(0,r.cn)(!0)),a=(0,r.cn)(),s=(0,r.cn)(!1),l=(0,r.cn)(!1),c=(0,r.cn)(!1),u=(0,r.cn)(!1),d=(0,r.cn)(0),h=(0,r.cn)(""),f=((0,r.cn)({}),(0,r.cn)(!1)),p=(0,r.cn)({}),m=(0,r.cn)("")},55375:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var r=n(1413),o=n(87462),i=n(63366),a=n(72791),s=n(63733),l=n(94419),c=n(66934),u=n(31402),d=n(14036),h=n(75878),f=n(21217);function p(e){return(0,f.Z)("MuiIcon",e)}(0,h.Z)("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var m=n(80184);const g=["baseClassName","className","color","component","fontSize"],y=(0,c.ZP)("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t["color".concat((0,d.Z)(n.color))],t["fontSize".concat((0,d.Z)(n.fontSize))]]}})((e=>{let{theme:t,ownerState:n}=e;return{userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:t.typography.pxToRem(20),medium:t.typography.pxToRem(24),large:t.typography.pxToRem(36)}[n.fontSize],color:{primary:(t.vars||t).palette.primary.main,secondary:(t.vars||t).palette.secondary.main,info:(t.vars||t).palette.info.main,success:(t.vars||t).palette.success.main,warning:(t.vars||t).palette.warning.main,action:(t.vars||t).palette.action.active,error:(t.vars||t).palette.error.main,disabled:(t.vars||t).palette.action.disabled,inherit:void 0}[n.color]}})),v=a.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:a,color:c="inherit",component:h="span",fontSize:f="medium"}=n,v=(0,i.Z)(n,g),b=(0,o.Z)({},n,{baseClassName:r,color:c,component:h,fontSize:f}),w=(e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root","inherit"!==t&&"color".concat((0,d.Z)(t)),"fontSize".concat((0,d.Z)(n))]};return(0,l.Z)(o,p,r)})(b);return(0,m.jsx)(y,(0,o.Z)({as:h,className:(0,s.Z)(r,"notranslate",w.root,a),ownerState:b,"aria-hidden":!0,ref:t},v))}));v.muiName="Icon";const b=v;var w=n(30838),x=n(52747),k=n(94294);const S=(0,c.ZP)(k.Z,{shouldForwardProp:e=>"margin"!==e&&"width"!==e})((e=>{let{margin:t,width:n}=e;return{borderRadius:"30px",color:"white",padding:"10px 20px",backgroundColor:"#09006e",margin:t,width:n,"& .MuiIcon-root":{display:"flex"},"&:hover":{backgroundColor:"#1300d6"}}}));const E=n.p+"static/media/chrome_logo.21d95024f4db641ae2edf465c00c4a0c.svg",C=e=>(0,m.jsx)(S,(0,r.Z)((0,r.Z)({variant:"contained",href:w.q1,target:"_blank",onClick:x.Jj,startIcon:(0,m.jsx)(b,{children:(0,m.jsx)("img",{src:E,alt:"goggle"})})},e),{},{children:"Get Picker for Chrome"}))},29374:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(1413),o=n(45987),i=n(50225),a=n(94294);const s=(0,i.Z)(a.Z,{shouldForwardProp:e=>"margin"!==e&&"bgColor"!==e&&"color"!==e&&"width"!==e&&"bgHoverColor"!==e})((e=>{let{margin:t,bgColor:n,color:r,width:o,bgHoverColor:i,fontsize:a,height:s}=e;return{width:o,margin:t,color:r,fontsize:a,height:s,backgroundColor:n,display:"flex",fontWeight:"bold","&:hover":{backgroundColor:i}}}));var l=n(80184);const c=["margin","width","fontSize","bgColor","color","bgHoverColor","children","height"],u=e=>{const{margin:t=(e.customMargin?e.customMargin:"24px auto 0"),width:n="200px",fontSize:i=18,bgColor:a,color:u,bgHoverColor:d,children:h,height:f}=e,p=(0,o.Z)(e,c);return(0,l.jsx)(s,(0,r.Z)((0,r.Z)({bgColor:a,bgHoverColor:d,color:u,width:n,height:f,margin:t,fontSize:i},p),{},{children:h}))}},96288:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>$t});var a={},s="https://www.googletagmanager.com/gtag/js",l={debug_mode:!1,send_page_view:!1,anonymize_ip:!1,allow_google_signals:!0,allow_ad_personalization_signals:!0,cookie_flags:""},c={gtagName:"gtag",dataLayerName:"ga4DataLayer",measurementIds:[],gtagConfig:l};function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=0,n=d(e.measurementIds),r=o(o({},c),e);return{name:"google-analytics",config:r,initialize:function(e){var t=e.config,r=e.instance,i=t.dataLayerName,c=t.customScriptSrc,u=t.gtagName,d=t.gtagConfig,h=t.debug,p=i?"&l=".concat(i):"",m=c||"".concat(s,"?id=").concat(n[0]).concat(p);if(!f(m)){var g=document.createElement("script");g.async=!0,g.src=m,document.body.appendChild(g)}window[i]||(window[i]=window[i]||[]),window[u]||(window[u]=function(){window[i].push(arguments)}),window[u]("js",new Date);var y=o(o({},l),d||{});!0===h?y.debug_mode=!0:delete y.debug_mode;var v=(r.user()||{}).traits||{};Object.keys(v).length&&window[u]("set","user_properties",v);for(var b=0;b<n.length;b++)a[n[b]]||(window[u]("config",n[b],y),a[n[b]]=!0)},identify:function(e){var t=e.payload,r=e.config.gtagName;window[r]&&n.length&&(t.userId&&window[r]("set",{user_id:t.userId}),Object.keys(t.traits).length&&window[r]("set","user_properties",t.traits))},page:function(e){var r=e.payload,i=e.config,a=e.instance,s=i.gtagName,l=i.gtagConfig;if(window[s]&&n.length){var c=r.properties,u=c.send_to,d=a.getState("context.campaign"),f={page_title:c.title,page_location:c.url,page_path:c.path||document.location.pathname,page_hash:c.hash,page_search:c.page_search,page_referrer:c.referrer},p=h(d),m=a.user("userId"),g=o(o(o(o({},u?{send_to:u}:{}),f),p),m?{user_id:m}:{});l&&l.send_page_view&&0===t||window[s]("event","page_view",g),t++}},track:function(e){var t=e.payload,r=e.config,i=e.instance,a=t.properties,s=t.event,l=i.getState("context.campaign"),c=r.gtagName;if(window[c]&&n.length){var u=h(l),d=i.user("userId"),f=o(o(o({},a),u),d?{user_id:d}:{});window[c]("event",s,f)}},loaded:function(){var e=r.dataLayerName,t=r.customScriptSrc,n=e&&window[e]&&Array.prototype.push===window[e].push;return f(t||s)&&n},methods:{addTag:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};window[r.gtagName]&&(window[r.gtagName]("config",e,t),n&&!n.includes(e)&&(n=n.concat(e)))},disable:function(e){for(var t=e?d(e):n,r=0;r<n.length;r++){var o=n[r];t.includes(o)&&(window["ga-disable-".concat(o)]=!0)}},enable:function(e){for(var t=e?d(e):n,r=0;r<n.length;r++){var o=n[r];t.includes(o)&&(window["ga-disable-".concat(o)]=!1)}}}}}function d(e){if(!e)throw new Error("No GA Measurement ID defined");if(Array.isArray(e))return e;if("string"===typeof e)return[e];throw new Error("GA Measurement ID must be string or array of strings")}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={},n=e.id,r=e.name,o=e.source,i=e.medium,a=e.content,s=e.keyword;return n&&(t.campaignId=n),r&&(t.campaignName=r),o&&(t.campaignSource=o),i&&(t.campaignMedium=i),a&&(t.campaignContent=a),s&&(t.campaignKeyword=s),t}function f(e){var t=document.querySelectorAll("script[src]"),n=new RegExp("^".concat(e));return Boolean(Object.values(t).filter((function(e){return n.test(e.src)})).length)}var p=u,m=n(35157),g=n.n(m),y="undefined",v="object",b="any",w="*",x="undefined"!=typeof process?process:{},k=(x.env&&x.env.NODE_ENV,"undefined"!=typeof document);k&&window.location.hostname,null!=x.versions&&x.versions.node,"undefined"!=typeof Deno&&Deno.core,"object"==typeof self&&self.constructor&&self.constructor.name,k&&"nodejs"===window.name||"undefined"!=typeof navigator&&void 0!==navigator.userAgent&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function S(e,t){return t.charAt(0)[e]()+t.slice(1)}var E=S.bind(null,"toUpperCase"),C=S.bind(null,"toLowerCase");function _(e){return N(e)?E("null"):"object"==typeof e?function(e){return I(e.constructor)?e.constructor.name:null}(e):Object.prototype.toString.call(e).slice(8,-1)}function T(e,t){void 0===t&&(t=!0);var n=_(e);return t?C(n):n}function O(e,t){return typeof t===e}var I=O.bind(null,"function"),A=O.bind(null,"string"),P=O.bind(null,"undefined");var R=O.bind(null,"boolean");O.bind(null,"symbol");function N(e){return null===e}function D(e){return"number"===T(e)&&!isNaN(e)}function M(e){return"array"===T(e)}function L(e){if(!Z(e))return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Z(e){return e&&("object"==typeof e||null!==e)}function j(e,t){if("object"!=typeof t||N(t))return!1;if(t instanceof e)return!0;var n=T(new e(""));if(function(e){return e instanceof Error||A(e.message)&&e.constructor&&D(e.constructor.stackTraceLimit)}(t))for(;t;){if(T(t)===n)return!0;t=Object.getPrototypeOf(t)}return!1}j.bind(null,TypeError),j.bind(null,SyntaxError);function F(e,t){var n=e instanceof Element||e instanceof HTMLDocument;return n&&t?function(e,t){return void 0===t&&(t=""),e&&e.nodeName===t.toUpperCase()}(e,t):n}
vendor: 27,229 bytes, line 2
2function z(e){var t=[].slice.call(arguments,1);return function(){return e.apply(void 0,[].slice.call(arguments).concat(t))}}z(F,"form"),z(F,"button"),z(F,"input"),z(F,"select");function U(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function B(e){return function(e){for(var t,n=Object.create(null),r=/([^&=]+)=?([^&]*)/g;t=r.exec(e);){var o=U(t[1]),i=U(t[2]);"[]"===o.substring(o.length-2)?(n[o=o.substring(0,o.length-2)]||(n[o]=[])).push(i):n[o]=""===i||i}for(var a in n){var s=a.split("[");s.length>1&&(V(n,s.map((function(e){return e.replace(/[?[\]\\ ]/g,"")})),n[a]),delete n[a])}return n}(function(e){if(e){var t=e.match(/\?(.*)/);return t&&t[1]?t[1].split("#")[0]:""}return k&&window.location.search.substring(1)}(e))}function V(e,t,n){for(var r=t.length-1,o=0;o<r;++o){var i=t[o];if("__proto__"===i||"constructor"===i)break;i in e||(e[i]={}),e=e[i]}e[t[r]]=n}function H(){for(var e="",t=0,n=4294967295*Math.random()|0;t++<36;){var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[t-1],o=15&n;e+="-"==r||"4"==r?r:("x"==r?o:3&o|8).toString(16),n=t%8==0?4294967295*Math.random()|0:n>>4}return e}var W="global",q="__global__",G=typeof self===v&&self.self===self&&self||typeof n.g===v&&n.g.global===n.g&&n.g||void 0;function K(e){return G[q][e]}function Q(e,t){return G[q][e]=t}function Y(e){delete G[q][e]}function $(e,t,n){var r;try{if(J(e)){var o=window[e];r=o[t].bind(o)}}catch(e){}return r||n}G[q]||(G[q]={});var X={};function J(e){if(typeof X[e]!==y)return X[e];try{var t=window[e];t.setItem(y,y),t.removeItem(y)}catch(t){return X[e]=!1}return X[e]=!0}function ee(){return ee=Object.assign||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},ee.apply(this,arguments)}var te="function",ne="undefined",re="@@redux/"+Math.random().toString(36),oe=function(){return typeof Symbol===te&&Symbol.observable||"@@observable"}(),ie=" != "+te;function ae(e,t,n){var r;if(typeof t===te&&typeof n===ne&&(n=t,t=void 0),typeof n!==ne){if(typeof n!==te)throw new Error("enhancer"+ie);return n(ae)(e,t)}if(typeof e!==te)throw new Error("reducer"+ie);var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){return i}function d(e){if(typeof e!==te)throw new Error("Listener"+ie);var t=!0;return c(),s.push(e),function(){if(t){t=!1,c();var n=s.indexOf(e);s.splice(n,1)}}}function h(e){if(!L(e))throw new Error("Act != obj");if(typeof e.type===ne)throw new Error("ActType "+ne);if(l)throw new Error("Dispatch in reducer");try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++)(0,t[n])();return e}return h({type:"@@redux/INIT"}),(r={dispatch:h,subscribe:d,getState:u,replaceReducer:function(e){if(typeof e!==te)throw new Error("next reducer"+ie);o=e,h({type:"@@redux/INIT"})}})[oe]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e)throw new TypeError("Observer != obj");function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[oe]=function(){return this},e},r}function se(e,t){var n=t&&t.type;return"action "+(n&&n.toString()||"?")+"reducer "+e+" returns "+ne}function le(){var e=[].slice.call(arguments);return 0===e.length?function(e){return e}:1===e.length?e[0]:e.reduce((function(e,t){return function(){return e(t.apply(void 0,[].slice.call(arguments)))}}))}function ce(){var e=arguments;return function(t){return function(n,r,o){var i,a=t(n,r,o),s=a.dispatch,l={getState:a.getState,dispatch:function(e){return s(e)}};return i=[].slice.call(e).map((function(e){return e(l)})),ee({},a,{dispatch:s=le.apply(void 0,i)(a.dispatch)})}}}var ue="__anon_id",de="__user_id",he="__user_traits",fe="userId",pe="anonymousId",me=["bootstrap","params","campaign","initializeStart","initialize","initializeEnd","ready","resetStart","reset","resetEnd","pageStart","page","pageEnd","pageAborted","trackStart","track","trackEnd","trackAborted","identifyStart","identify","identifyEnd","identifyAborted","userIdChanged","registerPlugins","enablePlugin","disablePlugin","online","offline","setItemStart","setItem","setItemEnd","setItemAborted","removeItemStart","removeItem","removeItemEnd","removeItemAborted"],ge=["name","EVENTS","config","loaded"],ye=me.reduce((function(e,t){return e[t]=t,e}),{registerPluginType:function(e){return"registerPlugin:"+e},pluginReadyType:function(e){return"ready:"+e}}),ve=/^utm_/,be=/^an_prop_/,we=/^an_trait_/;function xe(e){var t=e.storage.setItem;return function(n){return function(r){return function(o){if(o.type===ye.bootstrap){var i=o.params,a=o.user,s=o.persistedUser,l=o.initialUser,c=s.userId===a.userId;s.anonymousId!==a.anonymousId&&t(ue,a.anonymousId),c||t(de,a.userId),l.traits&&t(he,ee({},c&&s.traits?s.traits:{},l.traits));var u=Object.keys(o.params);if(u.length){var d=i.an_uid,h=i.an_event,f=u.reduce((function(e,t){if(t.match(ve)||t.match(/^(d|g)clid/)){var n=t.replace(ve,"");e.campaign["campaign"===n?"name":n]=i[t]}return t.match(be)&&(e.props[t.replace(be,"")]=i[t]),t.match(we)&&(e.traits[t.replace(we,"")]=i[t]),e}),{campaign:{},props:{},traits:{}});n.dispatch(ee({type:ye.params,raw:i},f,d?{userId:d}:{})),d&&setTimeout((function(){return e.identify(d,f.traits)}),0),h&&setTimeout((function(){return e.track(h,f.props)}),0),Object.keys(f.campaign).length&&n.dispatch({type:ye.campaign,campaign:f.campaign})}}return r(o)}}}}function ke(e){return function(t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),n.type===ye.setItemEnd){if(n.key===ue)return ee({},t,{anonymousId:n.value});if(n.key===de)return ee({},t,{userId:n.value})}switch(n.type){case ye.identify:return Object.assign({},t,{userId:n.userId,traits:ee({},t.traits,n.traits)});case ye.reset:return[de,ue,he].forEach((function(t){e.removeItem(t)})),Object.assign({},t,{userId:null,anonymousId:null,traits:{}});default:return t}}}function Se(e){return{userId:e.getItem(de),anonymousId:e.getItem(ue),traits:e.getItem(he)}}var Ee=function(e){return"__TEMP__"+e};function Ce(e){var t=e.storage,n=t.setItem,r=t.removeItem,o=t.getItem;return function(e){return function(t){return function(i){var a=i.userId,s=i.traits,l=i.options;if(i.type===ye.reset&&([de,he,ue].forEach((function(e){r(e)})),[fe,pe,"traits"].forEach((function(e){Y(Ee(e))}))),i.type===ye.identify){o(ue)||n(ue,H());var c=o(de),u=o(he)||{};c&&c!==a&&e.dispatch({type:ye.userIdChanged,old:{userId:c,traits:u},new:{userId:a,traits:s},options:l}),a&&n(de,a),s&&n(he,ee({},u,s))}return t(i)}}}}var _e={};function Te(e,t){_e[e]&&I(_e[e])&&(_e[e](t),delete _e[e])}function Oe(e,t,n){return new Promise((function(r,o){return t()?r(e):n<1?o(ee({},e,{queue:!0})):new Promise((function(e){return setTimeout(e,10)})).then((function(i){return Oe(e,t,n-10).then(r,o)}))}))}function Ie(e,t,n){var r=t(),o=e.getState(),i=o.plugins,a=o.queue,s=o.user;if(!o.context.offline&&a&&a.actions&&a.actions.length){var l=a.actions.reduce((function(e,t,n){return i[t.plugin].loaded?(e.process.push(t),e.processIndex.push(n)):(e.requeue.push(t),e.requeueIndex.push(n)),e}),{processIndex:[],process:[],requeue:[],requeueIndex:[]});if(l.processIndex&&l.processIndex.length){l.processIndex.forEach((function(t){var o=a.actions[t],l=o.plugin,c=o.payload.type,u=r[l][c];if(u&&I(u)){var d=function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),[fe,pe].reduce((function(n,r){return e.hasOwnProperty(r)&&t[r]&&t[r]!==e[r]&&(n[r]=t[r]),n}),e)}(o.payload,s);u({payload:d,config:i[l].config,instance:n});var h=c+":"+l;e.dispatch(ee({},d,{type:h,_:{called:h,from:"queueDrain"}}))}}));var c=a.actions.filter((function(e,t){return!~l.processIndex.indexOf(t)}));a.actions=c}}}var Ae=function(e){var t=e.data,n=e.action,r=e.instance,o=e.state,i=e.allPlugins,a=e.allMatches,s=e.store,l=e.EVENTS;try{var c=o.plugins,u=o.context,d=n.type,h=d.match(Pe),f=t.exact.map((function(e){return e.pluginName}));h&&(f=a.during.map((function(e){return e.pluginName})));var p=function(e,t){return function(n,r,o){var i=r.config,a=r.name,s=a+"."+n.type;o&&(s=o.event);var l=n.type.match(Pe)?function(e,t,n,r,o){return function(i,a){var s=r?r.name:e,l=a&&ze(a)?a:n;if(r&&(!(l=a&&ze(a)?a:[e]).includes(e)||1!==l.length))throw new Error("Method "+t+" can only abort "+e+" plugin. "+JSON.stringify(l)+" input valid");return ee({},o,{abort:{reason:i,plugins:l,caller:t,_:s}})}}(a,s,t,o,n):function(e,t){return function(){throw new Error(e.type+" action not cancellable. Remove abort in "+t)}}(n,s);return{payload:Ve(n),instance:e,config:i||{},abort:l}}}(r,f),m=t.exact.reduce((function(e,t){var n=t.pluginName,r=t.methodName,o=!1;return r.match(/^initialize/)||r.match(/^reset/)||(o=!c[n].loaded),u.offline&&r.match(/^(page|track|identify)/)&&(o=!0),e[""+n]=o,e}),{});return Promise.resolve(t.exact.reduce((function(e,o,a){try{var s=o.pluginName;return Promise.resolve(e).then((function(e){function o(){return Promise.resolve(e)}var a=function(){if(t.namespaced&&t.namespaced[s])return Promise.resolve(t.namespaced[s].reduce((function(e,t,n){try{return Promise.resolve(e).then((function(e){return t.method&&I(t.method)?(function(e,t){var n=Be(e);if(n&&n.name===t){var r=Be(n.method);throw new Error([t+" plugin is calling method "+e,"Plugins cant call self","Use "+n.method+" "+(r?"or "+r.method:"")+" in "+t+" plugin insteadof "+e].join("\n"))}}(t.methodName,t.pluginName),Promise.resolve(t.method({payload:e,instance:r,abort:(n=e,o=s,a=t.pluginName,function(e,t){return ee({},n,{abort:{reason:e,plugins:t||[o],caller:d,from:a||o}})}),config:Me(t.pluginName,c,i),plugins:c})).then((function(t){var n=L(t)?t:{};return Promise.resolve(ee({},e,n))}))):e;var n,o,a}))}catch(e){return Promise.reject(e)}}),Promise.resolve(n))).then((function(t){e[s]=t}));e[s]=n}();return a&&a.then?a.then(o):o()}))}catch(e){return Promise.reject(e)}}),Promise.resolve({}))).then((function(e){return Promise.resolve(t.exact.reduce((function(n,o,a){try{var l=t.exact.length===a+1,u=o.pluginName,f=i[u];return Promise.resolve(n).then((function(t){var n=e[u]?e[u]:{};if(h&&(n=t),je(n,u))return De({data:n,method:d,instance:r,pluginName:u,store:s}),Promise.resolve(t);if(je(t,u))return l&&De({data:t,method:d,instance:r,store:s}),Promise.resolve(t);if(m.hasOwnProperty(u)&&!0===m[u])return s.dispatch({type:"queue",plugin:u,payload:n,_:{called:"queue",from:"queueMechanism"}}),Promise.resolve(t);var o=p(e[u],i[u]);return Promise.resolve(f[d]({abort:o.abort,payload:n,instance:r,config:Me(u,c,i),plugins:c})).then((function(o){var i=L(o)?o:{},a=ee({},t,i),l=e[u];if(je(l,u))De({data:l,method:d,instance:r,pluginName:u,store:s});else{var c=d+":"+u;(c.match(/:/g)||[]).length<2&&!d.match(Re)&&!d.match(Ne)&&r.dispatch(ee({},h?a:n,{type:c,_:{called:c,from:"submethod"}}))}return Promise.resolve(a)}))}))}catch(e){return Promise.reject(e)}}),Promise.resolve(n))).then((function(e){if(!(d.match(Pe)||d.match(/^registerPlugin/)||d.match(Ne)||d.match(Re)||d.match(/^params/)||d.match(/^userIdChanged/))){if(l.plugins.includes(d),e._&&e._.originalAction===d)return e;var n=ee({},e,{_:{originalAction:e.type,called:e.type,from:"engineEnd"}});Fe(e,t.exact.length)&&!d.match(/End$/)&&(n=ee({},n,{type:e.type+"Aborted"})),s.dispatch(n)}return e}))}))}catch(e){return Promise.reject(e)}},Pe=/Start$/,Re=/^bootstrap/,Ne=/^ready/;function De(e){var t=e.pluginName,n=e.method+"Aborted"+(t?":"+t:"");e.store.dispatch(ee({},e.data,{type:n,_:{called:n,from:"abort"}}))}function Me(e,t,n){var r=t[e]||n[e];return r&&r.config?r.config:{}}function Le(e,t){return t.reduce((function(t,n){return n[e]?t.concat({methodName:e,pluginName:n.name,method:n[e]}):t}),[])}function Ze(e,t){var n=e.replace(Pe,""),r=t?":"+t:"";return[""+e+r,""+n+r,n+"End"+r]}function je(e,t){var n=e.abort;return!!n&&(!0===n||Ue(n,t)||n&&Ue(n.plugins,t))}function Fe(e,t){var n=e.abort;if(!n)return!1;if(!0===n||A(n))return!0;var r=n.plugins;return ze(n)&&n.length===t||ze(r)&&r.length===t}function ze(e){return Array.isArray(e)}function Ue(e,t){return!(!e||!ze(e))&&e.includes(t)}function Be(e){var t=e.match(/(.*):(.*)/);return!!t&&{method:t[1],name:t[2]}}function Ve(e){return Object.keys(e).reduce((function(t,n){return"type"===n||(t[n]=L(e[n])?Object.assign({},e[n]):e[n]),t}),{})}function He(e,t,n){var r={};return function(o){return function(i){return function(a){try{var s,l=function(e){return s?e:i(d)},c=a.type,u=a.plugins,d=a;if(a.abort)return Promise.resolve(i(a));if(c===ye.enablePlugin&&o.dispatch({type:ye.initializeStart,plugins:u,disabled:[],fromEnable:!0,meta:a.meta}),c===ye.disablePlugin&&setTimeout((function(){return Te(a.meta.rid,{payload:a})}),0),c===ye.initializeEnd){var h=t(),f=Object.keys(h),p=f.filter((function(e){return u.includes(e)})).map((function(e){return h[e]})),m=[],g=[],y=a.disabled,v=p.map((function(e){var t=e.loaded,n=e.name,i=e.config;return Oe(e,(function(){return t({config:i})}),1e4).then((function(t){return r[n]||(o.dispatch({type:ye.pluginReadyType(n),name:n,events:Object.keys(e).filter((function(e){return!ge.includes(e)}))}),r[n]=!0),m=m.concat(n),e})).catch((function(e){if(e instanceof Error)throw new Error(e);return g=g.concat(e.name),e}))}));Promise.all(v).then((function(e){var t={plugins:m,failed:g,disabled:y};setTimeout((function(){f.length===v.length+y.length&&o.dispatch(ee({},{type:ye.ready},t))}),0)}))}var b=function(){if(c!==ye.bootstrap)return/^ready:([^:]*)$/.test(c)&&setTimeout((function(){return Ie(o,t,e)}),0),Promise.resolve(function(e,t,n,r,o){try{var i=I(t)?t():t,a=e.type,s=a.replace(Pe,"");if(e._&&e._.called)return Promise.resolve(e);var l=n.getState(),c=(h=i,void 0===(f=l.plugins)&&(f={}),void 0===(p=e.options)&&(p={}),Object.keys(h).filter((function(e){var t=p.plugins||{};return R(t[e])?t[e]:!1!==t.all&&(!f[e]||!1!==f[e].enabled)})).map((function(e){return h[e]})));a===ye.initializeStart&&e.fromEnable&&(c=Object.keys(l.plugins).filter((function(t){var n=l.plugins[t];return e.plugins.includes(t)&&!n.initialized})).map((function(e){return i[e]})));var u=c.map((function(e){return e.name})),d=function(e,t,n){var r=Ze(e).map((function(e){return Le(e,t)}));return t.reduce((function(n,r){var o=r.name,i=Ze(e,o).map((function(e){return Le(e,t)})),a=i[0],s=i[1],l=i[2];return a.length&&(n.beforeNS[o]=a),s.length&&(n.duringNS[o]=s),l.length&&(n.afterNS[o]=l),n}),{before:r[0],beforeNS:{},during:r[1],duringNS:{},after:r[2],afterNS:{}})}(a,c);return Promise.resolve(Ae({action:e,data:{exact:d.before,namespaced:d.beforeNS},state:l,allPlugins:i,allMatches:d,instance:n,store:r,EVENTS:o})).then((function(e){function t(){var t=function(){if(a.match(Pe))return Promise.resolve(Ae({action:ee({},c,{type:s+"End"}),data:{exact:d.after,namespaced:d.afterNS},state:l,allPlugins:i,allMatches:d,instance:n,store:r,EVENTS:o})).then((function(e){e.meta&&e.meta.hasCallback&&Te(e.meta.rid,{payload:e})}))}();return t&&t.then?t.then((function(){return e})):e}if(Fe(e,u.length))return e;var c,h=function(){if(a!==s)return Promise.resolve(Ae({action:ee({},e,{type:s}),data:{exact:d.during,namespaced:d.duringNS},state:l,allPlugins:i,allMatches:d,instance:n,store:r,EVENTS:o})).then((function(e){c=e}));c=e}();return h&&h.then?h.then(t):t()}))}catch(e){return Promise.reject(e)}var h,f,p}(a,t,e,o,n)).then((function(e){return s=1,i(e)}))}();return Promise.resolve(b&&b.then?b.then(l):l(b))}catch(e){return Promise.reject(e)}}}}}function We(e){return function(t){return function(t){return function(n){var r=n.type,o=n.key,i=n.value,a=n.options;if(r===ye.setItem||r===ye.removeItem){if(n.abort)return t(n);r===ye.setItem?e.setItem(o,i,a):e.removeItem(o,a)}return t(n)}}}}var qe=function(){var e=this;this.before=[],this.after=[],this.addMiddleware=function(t,n){e[n]=e[n].concat(t)},this.removeMiddleware=function(t,n){var r=e[n].findIndex((function(e){return e===t}));-1!==r&&(e[n]=[].concat(e[n].slice(0,r),e[n].slice(r+1)))},this.dynamicMiddlewares=function(t){return function(n){return function(r){return function(o){var i={getState:n.getState,dispatch:function(e){return n.dispatch(e)}},a=e[t].map((function(e){return e(i)}));return le.apply(void 0,a)(r)(o)}}}}};function Ge(e){return function(t,n){void 0===t&&(t={});var r={};if("initialize:aborted"===n.type)return t;if(/^registerPlugin:([^:]*)$/.test(n.type)){var o=Ke(n.type,"registerPlugin"),i=e()[o];if(!i||!o)return t;var a=n.enabled,s=i.config;return r[o]={enabled:a,initialized:!!a&&Boolean(!i.initialize),loaded:!!a&&Boolean(i.loaded({config:s})),config:s},ee({},t,r)}if(/^initialize:([^:]*)$/.test(n.type)){var l=Ke(n.type,ye.initialize),c=e()[l];return c&&l?(r[l]=ee({},t[l],{initialized:!0,loaded:Boolean(c.loaded({config:c.config}))}),ee({},t,r)):t}if(/^ready:([^:]*)$/.test(n.type))return r[n.name]=ee({},t[n.name],{loaded:!0}),ee({},t,r);switch(n.type){case ye.disablePlugin:return ee({},t,Qe(n.plugins,!1,t));case ye.enablePlugin:return ee({},t,Qe(n.plugins,!0,t));default:return t}}}function Ke(e,t){return e.substring(t.length+1,e.length)}function Qe(e,t,n){return e.reduce((function(e,r){return e[r]=ee({},n[r],{enabled:t}),e}),n)}function Ye(e){try{return JSON.parse(JSON.stringify(e))}catch(e){}return e}var $e={last:{},history:[]};function Xe(e,t){void 0===e&&(e=$e);var n=t.options,r=t.meta;if(t.type===ye.track){var o=Ye(ee({event:t.event,properties:t.properties},Object.keys(n).length&&{options:n},{meta:r}));return ee({},e,{last:o,history:e.history.concat(o)})}return e}var Je={actions:[]};function et(e,t){void 0===e&&(e=Je);var n=t.payload;switch(t.type){case"queue":var r;return r=n&&n.type&&n.type===ye.identify?[t].concat(e.actions):e.actions.concat(t),ee({},e,{actions:r});case"dequeue":return[];default:return e}}var tt=/#.*$/;function nt(e){var t=/(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g.exec(e);return"/"+(t&&t[3]?t[3].split("?")[0].replace(tt,""):"")}var rt,ot,it,at,st=function(e){if(void 0===e&&(e={}),!k)return e;var t=document,n=t.title,r=t.referrer,o=window,i=o.location,a=o.innerWidth,s=o.innerHeight,l=i.hash,c=i.search,u=function(e){var t=function(){if(k)for(var e,t=document.getElementsByTagName("link"),n=0;e=t[n];n++)if("canonical"===e.getAttribute("rel"))return e.getAttribute("href")}();return t?t.match(/\?/)?t:t+e:window.location.href.replace(tt,"")}(c),d={title:n,url:u,path:nt(u),hash:l,search:c,width:a,height:s};return r&&""!==r&&(d.referrer=r),ee({},d,e)},lt={last:{},history:[]};function ct(e,t){void 0===e&&(e=lt);var n=t.options;if(t.type===ye.page){var r=Ye(ee({properties:t.properties,meta:t.meta},Object.keys(n).length&&{options:n}));return ee({},e,{last:r,history:e.history.concat(r)})}return e}rt=function(){if(!k)return!1;var e=navigator.appVersion;return~e.indexOf("Win")?"Windows":~e.indexOf("Mac")?"MacOS":~e.indexOf("X11")?"UNIX":~e.indexOf("Linux")?"Linux":"Unknown OS"}(),ot=k?document.referrer:null,it=function(){if(k){var e=navigator,t=e.languages;return e.userLanguage||(t&&t.length?t[0]:e.language)}}(),at=function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}}();var ut={initialized:!1,sessionId:H(),app:null,version:null,debug:!1,offline:!!k&&!navigator.onLine,os:{name:rt},userAgent:k?navigator.userAgent:"node",library:{name:"analytics",version:"0.12.5"},timezone:at,locale:it,campaign:{},referrer:ot};function dt(e,t){void 0===e&&(e=ut);var n=e.initialized,r=t.campaign;switch(t.type){case ye.campaign:return ee({},e,{campaign:r});case ye.offline:return ee({},e,{offline:!0});case ye.online:return ee({},e,{offline:!1});default:return n?e:ee({},ut,e,{initialized:!0})}}var ht=["plugins","reducers","storage"];function ft(e,t,n){if(k){var r=window[(n?"add":"remove")+"EventListener"];e.split(" ").forEach((function(e){r(e,t)}))}}function pt(e){var t=ft.bind(null,"online offline",(function(t){return Promise.resolve(!navigator.onLine).then(e)}));return t(!0),function(e){return t(!1)}}function mt(){return Q("analytics",[]),function(e){return function(t,n,r){var o=e(t,n,r),i=o.dispatch;return Object.assign(o,{dispatch:function(e){return G[q].analytics.push(e.action||e),i(e)}})}}}function gt(e){return function(){return le(le.apply(null,arguments),mt())}}function yt(e){return e?M(e)?e:[e]:[]}function vt(e,t,n){void 0===e&&(e={});var r,o,i=H();return t&&(_e[i]=(r=t,o=function(e){for(var t,n=e||Array.prototype.slice.call(arguments),r=0;r<n.length;r++)if(I(n[r])){t=n[r];break}return t}(n),function(e){o&&o(e),r(e)})),ee({},e,{rid:i,ts:(new Date).getTime()},t?{hasCallback:!0}:{})}function bt(e){void 0===e&&(e={});var t=e.reducers||{},n=e.initialUser||{},r=(e.plugins||[]).reduce((function(e,t){if(I(t))return e.middlewares=e.middlewares.concat(t),e;if(t.NAMESPACE&&(t.name=t.NAMESPACE),!t.name)throw new Error("https://lytics.dev/errors/1");t.config||(t.config={});var n=t.EVENTS?Object.keys(t.EVENTS).map((function(e){return t.EVENTS[e]})):[];e.pluginEnabled[t.name]=!(!1===t.enabled||!1===t.config.enabled),delete t.enabled,t.methods&&(e.methods[t.name]=Object.keys(t.methods).reduce((function(e,n){var r;return e[n]=(r=t.methods[n],function(){for(var e=Array.prototype.slice.call(arguments),t=new Array(r.length),n=0;n<e.length;n++)t[n]=e[n];return t[t.length]=S,r.apply({instance:S},t)}),e}),{}),delete t.methods);var r=Object.keys(t).concat(n),o=new Set(e.events.concat(r));if(e.events=Array.from(o),e.pluginsArray=e.pluginsArray.concat(t),e.plugins[t.name])throw new Error(t.name+"AlreadyLoaded");return e.plugins[t.name]=t,e.plugins[t.name].loaded||(e.plugins[t.name].loaded=function(){return!0}),e}),{plugins:{},pluginEnabled:{},methods:{},pluginsArray:[],middlewares:[],events:[]}),o=e.storage?e.storage:{getItem:K,setItem:Q,removeItem:Y},i=function(e){return function(t,n,r){return n.getState("user")[t]||(r&&L(r)&&r[t]?r[t]:Se(e)[t]||K(Ee(t))||null)}}(o),a=r.plugins,s=r.events.filter((function(e){return!ge.includes(e)})).sort(),l=new Set(s.concat(me).filter((function(e){return!ge.includes(e)}))),c=Array.from(l).sort(),u=function(){return a},d=new qe,h=d.addMiddleware,f=d.removeMiddleware,p=d.dynamicMiddlewares,m=function(){throw new Error("Abort disabled inListener")},y=B(),v=Se(o),b=ee({},v,n,y.an_uid?{userId:y.an_uid}:{},y.an_aid?{anonymousId:y.an_aid}:{});b.anonymousId||(b.anonymousId=H());var w=ee({enable:function(e,t){return new Promise((function(n){M.dispatch({type:ye.enablePlugin,plugins:yt(e),_:{originalAction:ye.enablePlugin}},n,[t])}))},disable:function(e,t){return new Promise((function(n){M.dispatch({type:ye.disablePlugin,plugins:yt(e),_:{originalAction:ye.disablePlugin}},n,[t])}))}},r.methods),x=!1,S={identify:function(e,t,n,r){try{var o=A(e)?e:null,a=L(e)?e:t,s=n||{},l=S.user();Q(Ee(fe),o);var c=o||a.userId||i(fe,S,a);return Promise.resolve(new Promise((function(e){M.dispatch(ee({type:ye.identifyStart,userId:c,traits:a||{},options:s,anonymousId:l.anonymousId},l.id&&l.id!==o&&{previousId:l.id}),e,[t,n,r])})))}catch(e){return Promise.reject(e)}},track:function(e,t,n,r){try{var o=L(e)?e.event:e;if(!o||!A(o))throw new Error("EventMissing");var a=L(e)?e:t||{},s=L(n)?n:{};return Promise.resolve(new Promise((function(e){M.dispatch({type:ye.trackStart,event:o,properties:a,options:s,userId:i(fe,S,t),anonymousId:i(pe,S,t)},e,[t,n,r])})))}catch(e){return Promise.reject(e)}},page:function(e,t,n){try{var r=L(e)?e:{},o=L(t)?t:{};return Promise.resolve(new Promise((function(a){M.dispatch({type:ye.pageStart,properties:st(r),options:o,userId:i(fe,S,r),anonymousId:i(pe,S,r)},a,[e,t,n])})))}catch(e){return Promise.reject(e)}},user:function(e){if(e===fe||"id"===e)return i(fe,S);if(e===pe||"anonId"===e)return i(pe,S);var t=S.getState("user");return e?g()(t,e):t},reset:function(e){return new Promise((function(t){M.dispatch({type:ye.resetStart},t,e)}))},ready:function(e){return x&&e({plugins:w,instance:S}),S.on(ye.ready,(function(t){e(t),x=!0}))},on:function(e,t){if(!e||!I(t))return!1;if(e===ye.bootstrap)throw new Error(".on disabled for "+e);var n=/Start$|Start:/;if("*"===e){var r=function(e){return function(e){return function(r){return r.type.match(n)&&t({payload:r,instance:S,plugins:a}),e(r)}}},o=function(e){return function(e){return function(r){return r.type.match(n)||t({payload:r,instance:S,plugins:a}),e(r)}}};return h(r,wt),h(o,xt),function(){f(r,wt),f(o,xt)}}var i=e.match(n)?wt:xt,s=function(n){return function(n){return function(r){return r.type===e&&t({payload:r,instance:S,plugins:a,abort:m}),n(r)}}};return h(s,i),function(){return f(s,i)}},once:function(e,t){if(!e||!I(t))return!1;if(e===ye.bootstrap)throw new Error(".once disabled for "+e);var n=S.on(e,(function(e){t({payload:e.payload,instance:S,plugins:a,abort:m}),n()}));return n},getState:function(e){var t=M.getState();return e?g()(t,e):Object.assign({},t)},dispatch:function(e){var t=A(e)?{type:e}:e;if(me.includes(t.type))throw new Error("reserved action "+t.type);var n=ee({},t,{_:ee({originalAction:t.type},e._||{})});M.dispatch(n)},enablePlugin:w.enable,disablePlugin:w.disable,plugins:w,storage:{getItem:o.getItem,setItem:function(e,t,n){M.dispatch({type:ye.setItemStart,key:e,value:t,options:n})},removeItem:function(e,t){M.dispatch({type:ye.removeItemStart,key:e,options:t})}},setAnonymousId:function(e,t){S.storage.setItem(ue,e,t)},events:{core:me,plugins:s}},E=r.middlewares.concat([function(e){return function(e){return function(t){return t.meta||(t.meta=vt()),e(t)}}},p(wt),He(S,u,{all:c,plugins:s}),We(o),xe(S),Ce(S),p(xt)]),C={context:dt,user:ke(o),page:ct,track:Xe,plugins:Ge(u),queue:et},_=le,T=le;if(k&&e.debug){var O=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;O&&(_=O({trace:!0,traceLimit:25})),T=function(){return 0===arguments.length?mt():L(typeof arguments[0])?gt():gt().apply(null,arguments)}}var P,R=function(e){return Object.keys(e).reduce((function(t,n){return ht.includes(n)||(t[n]=e[n]),t}),{})}(e),N=r.pluginsArray.reduce((function(e,t){var n=t.name,o=t.config,i=t.loaded,a=r.pluginEnabled[n];return e[n]={enabled:a,initialized:!!a&&Boolean(!t.initialize),loaded:Boolean(i({config:o})),config:o},e}),{}),D={context:R,user:b,plugins:N},M=ae(function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];typeof e[o]===te&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(typeof n(void 0,{type:"@@redux/INIT"})===ne||typeof n(void 0,{type:re})===ne)throw new Error("reducer "+t+" "+ne)}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var l=a[s],c=e[l],u=(0,n[l])(c,t);if(typeof u===ne){var d=se(l,t);throw new Error(d)}o[l]=u,r=r||u!==c}return r?o:e}}(ee({},C,t)),D,T(_(ce.apply(void 0,E))));M.dispatch=(P=M.dispatch,function(e,t,n){var r=ee({},e,{meta:vt(e.meta,t,yt(n))});return P.apply(null,[r])});var Z=Object.keys(a);M.dispatch({type:ye.bootstrap,plugins:Z,config:R,params:y,user:b,initialUser:n,persistedUser:v});var j=Z.filter((function(e){return r.pluginEnabled[e]})),F=Z.filter((function(e){return!r.pluginEnabled[e]}));return M.dispatch({type:ye.registerPlugins,plugins:Z,enabled:r.pluginEnabled}),r.pluginsArray.map((function(e,t){var n=e.bootstrap,o=e.config,i=e.name;n&&I(n)&&n({instance:S,config:o,payload:e}),M.dispatch({type:ye.registerPluginType(i),name:i,enabled:r.pluginEnabled[i],plugin:e}),r.pluginsArray.length===t+1&&M.dispatch({type:ye.initializeStart,plugins:j,disabled:F})})),pt((function(e){M.dispatch({type:e?ye.offline:ye.online})})),function(e,t,n){setInterval((function(){return Ie(e,t,n)}),3e3)}(M,u,S),S}var wt="before",xt="after",kt="cookie",St=Tt(),Et=Ot,Ct=Ot;function _t(e){return St?Ot(e,"",-1):Y(e)}
2function Tt(){if(void 0!==St)return St;var e="cookiecookie";try{Ot(e,e),St=-1!==document.cookie.indexOf(e),_t(e)}catch(e){St=!1}return St}function Ot(e,t,n,r,o,i){if("undefined"!=typeof window){var a=arguments.length>1;return!1===St&&(a?Q(e,t):K(e)),a?document.cookie=e+"="+encodeURIComponent(t)+(n?"; expires="+new Date(+new Date+1e3*n).toUTCString()+(r?"; path="+r:"")+(o?"; domain="+o:"")+(i?"; secure":""):""):decodeURIComponent((("; "+document.cookie).split("; "+e+"=")[1]||"").split(";")[0])}}var It="localStorage",At=J.bind(null,"localStorage"),Pt=($("localStorage","getItem",K),$("localStorage","setItem",Q),$("localStorage","removeItem",Y),"sessionStorage"),Rt=J.bind(null,"sessionStorage");$("sessionStorage","getItem",K),$("sessionStorage","setItem",Q),$("sessionStorage","removeItem",Y);function Nt(e){var t=e;try{if("true"===(t=JSON.parse(e)))return!0;if("false"===t)return!1;if(L(t))return t;parseFloat(t)===t&&(t=parseFloat(t))}catch(e){}if(null!==t&&""!==t)return t}var Dt=At(),Mt=Rt(),Lt=Tt();function Zt(e,t){if(e){var n=jt(t),r=!Bt(n),o=Ft(n)?Nt(localStorage.getItem(e)):void 0;if(r&&!P(o))return o;var i=zt(n)?Nt(Et(e)):void 0;if(r&&i)return i;var a=Ut(n)?Nt(sessionStorage.getItem(e)):void 0;if(r&&a)return a;var s=K(e);return r?s:{localStorage:o,sessionStorage:a,cookie:i,global:s}}}function jt(e){return e?A(e)?e:e.storage:b}function Ft(e){return Dt&&Vt(e,It)}function zt(e){return Lt&&Vt(e,kt)}function Ut(e){return Mt&&Vt(e,Pt)}function Bt(e){return e===w||"all"===e}function Vt(e,t){return e===b||e===t||Bt(e)}function Ht(e,t,n){return{location:e,current:t,previous:n}}var Wt={setItem:function(e,t,n){if(e&&!P(t)){var r={},o=jt(n),i=JSON.stringify(t),a=!Bt(o);return Ft(o)&&(r[It]=Ht(It,t,Nt(localStorage.getItem(e))),localStorage.setItem(e,i),a)?r[It]:zt(o)&&(r[kt]=Ht(kt,t,Nt(Et(e))),Ct(e,i),a)?r[kt]:Ut(o)&&(r[Pt]=Ht(Pt,t,Nt(sessionStorage.getItem(e))),sessionStorage.setItem(e,i),a)?r[Pt]:(r[W]=Ht(W,t,K(e)),Q(e,t),a?r[W]:r)}},getItem:Zt,removeItem:function(e,t){if(e){var n=jt(t),r=Zt(e,w),o={};return!P(r.localStorage)&&Ft(n)&&(localStorage.removeItem(e),o[It]=r.localStorage),!P(r.cookie)&&zt(n)&&(_t(e),o[kt]=r.cookie),!P(r.sessionStorage)&&Ut(n)&&(sessionStorage.removeItem(e),o[Pt]=r.sessionStorage),!P(r.global)&&Vt(n,W)&&(Y(e),o[W]=r.global),o}}};function qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach((function(t){qt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qt=n(89050);const Yt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return bt(Kt(Kt({},{storage:Wt}),e))}({debug:!1,plugins:[p({measurementIds:["G-52BGQJPVLX"]})]});"undefined"!==typeof window&&Yt.page(),Qt.m8.listen((()=>{Yt.page()}));const $t=Yt},52747:(e,t,n)=>{"use strict";n.d(t,{Jj:()=>o,NH:()=>a,qA:()=>l,qW:()=>s,xS:()=>i});var r=n(96288);const o=()=>{r.Z.track("download_extension_click")},i=()=>{r.Z.track("try_for_free_click")},a=()=>{r.Z.track("instagram_link_click")},s=()=>{r.Z.track("linked_in_click")},l=()=>{r.Z.track("ai_bot_request_track")}},14916:(e,t,n)=>{"use strict";n.d(t,{Ho:()=>I,Ue:()=>D,I1:()=>M,mk:()=>P,eP:()=>R,oY:()=>N,aC:()=>O});var r=n(1413),o=n(72791),i=n(80542),a=n(49530),s=n(96517),l=n(30838),c=n(97645),u=n(88026),d=n(14217);const h=e=>{const[,t]=(0,c.KO)(u.di),n=(0,o.useRef)(null);(0,o.useEffect)((()=>{if(e){const r=async()=>{try{const e=await(0,d.iV)();return e.data&&e.data.success?(t({entitlement:e.data.entitlement,maxCollections:e.data.maxCollections,maxQuestions:e.data.maxQuestions,maxQuestionsResetTime:e.data.maxQuestionsResetTime,usedCollections:e.data.usedCollections,usedQuestions:e.data.usedQuestions}),e.data):(console.warn("Failed to retrieve user limits and usage."),null)}catch(e){return console.error("Error fetching user limits and usage:",e),t(null),null}};(async()=>
2{if(null===await r())return console.warn("Failed to retrieve user limits and usage on initial load. Stopping subscription checks."),void clearInterval(n.current);n.current=setInterval((async()=>{if(e){await r()||clearInterval(n.current)}else clearInterval(n.current),t(null)}),l.yx)})()}else t(null),clearInterval(n.current);return()=>{t(null),clearInterval(n.current)}}),[e,t])};n(79338);var f=n(4245),p=n(47555),m=n(96288);const g=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=(0,r.Z)({path:"/"},n),n.expires instanceof Date&&(n.expires=n.expires.toUTCString());let o=encodeURIComponent(e)+"="+encodeURIComponent(t);for(let r in n){o+="; "+r;let e=n[r];!0!==e&&(o+="="+e)}document.cookie=o},y=e=>{g(e,"",{"max-age":-1})};var v=n(96400),b=n(12054),w=n(89050),x=n(10394),k=n(80184);const S=!0,E=!0,C=!0,_=(0,s.v0)(b.H),T=(0,o.createContext)(),O=()=>(0,o.useContext)(T);function I(e){let{children:t}=e;const n=A();return(0,k.jsx)(T.Provider,{value:n,children:t})}function A(){const[,e]=(0,c.KO)(u.zH),[,t]=(0,c.KO)(u.di),[n,i]=(0,o.useState)(null);let l=function(e,t){let{enabled:n}=t;const{data:i,status:a,error:s}=(0,v.aF)(n&&e&&e.uid);return(0,o.useMemo)((()=>{if(!n||!e)return e;switch(a){case"success":return null===i?null:(0,r.Z)((0,r.Z)({},e),i);case"error":throw new Error("\n Error: ".concat(s.message,"\n This happened while attempting to fetch extra user data from the database\n to include with the authenticated user. Make sure the database is setup or\n disable merging extra user data by setting MERGE_DB_USER to false.\n "));default:return null}}),[e,n,i,a,s])}(n,{enabled:S});l=function(e){return(0,o.useMemo)((()=>{if(!e)return e;const t=e.providerData.map((e=>{let{providerId:t}=e;return L.find((e=>e.id===t)).name}));return(0,r.Z)((0,r.Z)({},e),{},{name:e.displayName,picture:e.photoURL,providers:t,planIsActive:["active","trialing"].includes(e.stripeSubscriptionStatus)})}),[e])}(l),h(n),function(e,t){let{enabled:n}=t;(0,o.useEffect)((()=>{n&&e&&m.Z.identify(e.uid)}),[e,n])}(l,{enabled:C});const f=async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{user:o}=e,{isNewUser:a}=(0,s.gK)(e);return await Z(o.uid),a&&(await(0,v.r4)(o.uid,(0,r.Z)({email:o.email},o.photoURL&&{photo_url:o.photoURL})),await(0,v.S5)({owner:o.uid,title:"Unsorted"},"Unsorted"),!E||t||n||(0,s.w$)(_.currentUser)),i(o),o};return(0,o.useEffect)((()=>{const e=(0,s.Aj)(_,(async e=>{if(e){i(e);const t=await(0,d.V3)(e.uid);g("auth_token",t.data,{SameSite:"Strict"})}else i(!1),t(null)}));return()=>e()}),[]),{user:l,signup:(e,t)=>(0,s.Xb)(_,e,t).then((async e=>(localStorage.setItem("isBannerOpen",!0),await f(e),e.user))),signin:(e,t)=>(0,s.e5)(_,e,t).then((e=>{if(e.user.emailVerified)return e;{const e="Your email address is not verified";throw new x.sH(401,e)}})),signinWithProvider:e=>{const t=L.find((t=>t.name===e)).get();return(0,s.rh)(_,t).then((async t=>(await f(t,e),t)))},signout:()=>(e(!1),localStorage.clear(),y("auth_token"),w.m8.replace(a.y.AUTH("signin")),(0,s.w7)(_)),enterprise:async(e,n,o)=>{if(!e||!n||!o)throw console.warn("Missing email, password, or licenseKey"),new x.sH(400,"Missing required fields (email, password, licenseKey)");try{const l=await(0,d.CL)({licenseKey:o});if(!l.data||!l.data.isValid)throw new x.sH(401,"Invalid license key");let c;try{c=await(0,s.Xb)(_,e,n),localStorage.setItem("isBannerOpen",!0),await f(c,!1,!0)}catch(i){throw new x.sH(500,"Failed to create user account",i)}m.Z.track("Enterprise Signup",{licenseKey:o}),await(0,d.NH)({licenseKey:o}),await(0,d.hg)({licenseKey:o});try{const e=await(0,d.iV)();null!==e&&void 0!==e&&e.data?t((t=>(0,r.Z)((0,r.Z)({},t),{},{entitlement:e.data.entitlement,maxCollections:e.data.maxCollections,maxQuestions:e.data.maxQuestions,maxQuestionsResetTime:e.data.maxQuestionsResetTime,success:e.data.success,usedCollections:e.data.usedCollections,usedQuestions:e.data.usedQuestions}))):console.warn("No limits data returned from getUserLimitsAndUsage on initial auth")}catch(a){console.error("Error fetching user limits and usage on initial auth:",a)}return c.user}catch(a){if(!(a instanceof x.sH))throw new x.sH(500,a);throw a}},sendPasswordResetEmail:e=>(0,s.LS)(_,e),confirmPasswordReset:(e,t)=>{const n=t||j("oobCode");return(0,s.LG)(_,n,e)},updatePassword:e=>(0,s.gQ)(_.currentUser,e),updateProfile:async e=>{const{email:t,name:r,picture:o}=e;if(t&&await(0,s.s)(_.currentUser,t),r||o){let e={};
2r&&(e.displayName=r),o&&(e.photoURL=o),await(0,s.ck)(_.currentUser,e)}await(0,v.Nq)(n.uid,e),i(_.currentUser)},handleReload:async()=>{i(null),await _.currentUser.reload(),i(_.currentUser)}}}const P=e=>function(t){const n=O();return(0,o.useEffect)((()=>{!1===n.user&&w.m8.replace(a.y.AUTH("signin"))}),[n]),n.user?(0,k.jsx)(e,(0,r.Z)({},t)):(0,k.jsx)(p.Z,{})},R=e=>function(t){const n=O();return null===n.user?(0,k.jsx)(p.Z,{}):n.user?(0,k.jsx)(i.l_,{to:a.y.COLLECTIONS}):(0,k.jsx)(e,(0,r.Z)({},t))},N=e=>function(t){const n=O(),[i]=(0,c.KO)(u.di);return(0,o.useEffect)((()=>{if(!n.user)return;if(!i)return;const{entitlement:e,maxCollections:t,usedCollections:r,maxQuestions:o,usedQuestions:a}=i}),[n.user,i,w.m8]),n.user&&i?(0,k.jsx)(e,(0,r.Z)({},t)):(0,k.jsx)(p.Z,{})},D=async e=>{const t=await(0,s.bX)(_,e);return await(0,s.iA)(_,e),await(0,s.LS)(_,t.data.email),t.data.email},M=e=>(0,s.iA)(_,e),L=[{id:"apple.com",name:"apple",get:()=>new s.O4("apple.com")},{id:"password",name:"password"},{id:"google.com",name:"google",get:()=>new s.hJ},{id:"facebook.com",name:"facebook",get:()=>{const e=new s._O;return e.setCustomParameters({display:"popup"}),e}},{id:"twitter.com",name:"twitter",get:()=>new s.c4},{id:"github.com",name:"github",get:()=>new s.GH}],Z=e=>new Promise((t=>{const n=(0,s.Aj)(_,(r=>{r&&r.uid===e&&(t(r),n())}))})),j=e=>f.parse(window.location.search)[e]},96400:(e,t,n)=>{"use strict";n.d(t,{aH:()=>Cf,GI:()=>Of,Ws:()=>gf,Ug:()=>Tf,Lx:()=>df,r:()=>Kh,S5:()=>Qh,L5:()=>_f,r4:()=>Uh,Tc:()=>pf,dT:()=>Wh,rM:()=>xf,g4:()=>Vh,eh:()=>ef,PR:()=>zh,Go:()=>vf,CO:()=>Hh,Xi:()=>af,Os:()=>lf,sS:()=>ff,Pz:()=>$h,lC:()=>wf,ql:()=>nf,Nq:()=>Bh,a2:()=>Yh,Xd:()=>Gh,sg:()=>bf,zn:()=>yf,Wt:()=>Jh,E9:()=>tf,oq:()=>of,Vb:()=>mf,NG:()=>hf,ZA:()=>uf,yv:()=>cf,eb:()=>rf,HQ:()=>Xh,aF:()=>Fh});var r=n(1413),o=n(91933),i=Uint8Array,a=Uint16Array,s=Uint32Array,l=new i([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),c=new i([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),u=new i([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),d=function(e,t){for(var n=new a(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var o=new s(n[30]);for(r=1;r<30;++r)for(var i=n[r];i<n[r+1];++i)o[i]=i-n[r]<<5|r;return[n,o]},h=d(l,2),f=h[0],p=h[1];f[28]=258,p[258]=28;for(var m=d(c,0),g=m[0],y=(m[1],new a(32768)),v=0;v<32768;++v){var b=(43690&v)>>>1|(21845&v)<<1;b=(61680&(b=(52428&b)>>>2|(13107&b)<<2))>>>4|(3855&b)<<4,y[v]=((65280&b)>>>8|(255&b)<<8)>>>1}var w=function(e,t,n){for(var r=e.length,o=0,i=new a(t);o<r;++o)e[o]&&++i[e[o]-1];var s,l=new a(t);for(o=0;o<t;
2++o)l[o]=l[o-1]+i[o-1]<<1;if(n){s=new a(1<<t);var c=15-t;for(o=0;o<r;++o)if(e[o])for(var u=o<<4|e[o],d=t-e[o],h=l[e[o]-1]++<<d,f=h|(1<<d)-1;h<=f;++h)s[y[h]>>>c]=u}else for(s=new a(r),o=0;o<r;++o)e[o]&&(s[o]=y[l[e[o]-1]++]>>>15-e[o]);return s},x=new i(288);for(v=0;v<144;++v)x[v]=8;for(v=144;v<256;++v)x[v]=9;for(v=256;v<280;++v)x[v]=7;for(v=280;v<288;++v)x[v]=8;var k=new i(32);for(v=0;v<32;++v)k[v]=5;var S=w(x,9,1),E=w(k,5,1),C=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},_=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},T=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},O=function(e){return(e+7)/8|0},I=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var r=new(2==e.BYTES_PER_ELEMENT?a:4==e.BYTES_PER_ELEMENT?s:i)(n-t);return r.set(e.subarray(t,n)),r},A=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],P=function(e,t,n){var r=new Error(t||A[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,P),!n)throw r;return r},R=function(e,t,n){var r=e.length;if(!r||n&&n.f&&!n.l)return t||new i(0);var o=!t||n,a=!n||n.i;n||(n={}),t||(t=new i(3*r));var s=function(e){var n=t.length;if(e>n){var r=new i(Math.max(2*n,e));r.set(t),t=r}},d=n.f||0,h=n.p||0,p=n.b||0,m=n.l,y=n.d,v=n.m,b=n.n,x=8*r;do{if(!m){d=_(e,h,1);var k=_(e,h+1,3);if(h+=3,!k){var A=e[(B=O(h)+4)-4]|e[B-3]<<8,R=B+A;if(R>r){a&&P(0);break}o&&s(p+A),t.set(e.subarray(B,R),p),n.b=p+=A,n.p=h=8*R,n.f=d;continue}if(1==k)m=S,y=E,v=9,b=5;else if(2==k){var N=_(e,h,31)+257,D=_(e,h+10,15)+4,M=N+_(e,h+5,31)+1;h+=14;for(var L=new i(M),Z=new i(19),j=0;j<D;++j)Z[u[j]]=_(e,h+3*j,7);h+=3*D;var F=C(Z),z=(1<<F)-1,U=w(Z,F,1);for(j=0;j<M;){var B,V=U[_(e,h,z)];if(h+=15&V,(B=V>>>4)<16)L[j++]=B;else{var H=0,W=0;for(16==B?(W=3+_(e,h,3),h+=2,H=L[j-1]):17==B?(W=3+_(e,h,7),h+=3):18==B&&(W=11+_(e,h,127),h+=7);W--;)L[j++]=H}}var q=L.subarray(0,N),G=L.subarray(N);v=C(q),b=C(G),m=w(q,v,1),y=w(G,b,1)}else P(1);if(h>x){a&&P(0);break}}o&&s(p+131072);for(var K=(1<<v)-1,Q=(1<<b)-1,Y=h;;Y=h){var $=(H=m[T(e,h)&K])>>>4;if((h+=15&H)>x){a&&P(0);break}if(H||P(2),$<256)t[p++]=$;else{if(256==$){Y=h,m=null;break}var X=$-254;if($>264){var J=l[j=$-257];X=_(e,h,(1<<J)-1)+f[j],h+=J}var ee=y[T(e,h)&Q],te=ee>>>4;ee||P(3),h+=15ⅇG=g[te];if(te>3){J=c[te];G+=T(e,h)&(1<<J)-1,h+=J}if(h>x){a&&P(0);break}o&&s(p+131072);for(var ne=p+X;p<ne;p+=4)t[p]=t[p-G],t[p+1]=t[p+1-G],t[p+2]=t[p+2-G],t[p+3]=t[p+3-G];p=ne}}n.l=m,n.p=Y,n.b=p,n.f=d,m&&(d=1,n.m=v,n.d=y,n.n=b)}while(!d);return p==t.length?t:I(t,0,p)},N=new i(0),D=function(e){31==e[0]&&139==e[1]&&8==e[2]||P(6,"invalid gzip data");var t=e[3],n=10;4&t&&(n+=e[10]|2+(e[11]<<8));for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(2&t)},M=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},L=function(e){(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)&&P(6,"invalid zlib data"),32&e[1]&&P(6,"invalid zlib data: preset dictionaries not supported")};function Z(e,t){return R(e,t)}function j(e,t){return R(e.subarray(D(e),-8),t||new i(M(e)))}function F(e,t){return R((L(e),e.subarray(2,-4)),t)}var z="undefined"!=typeof TextDecoder&&new TextDecoder;try{z.decode(N,{stream:!0}),1}catch(If){}var U=function(e){for(var t="",n=0;;){var r=e[n++],o=(r>127)+(r>223)+(r>239);if(n+o>e.length)return[t,I(e,n-1)];o?3==o?(r=((15&r)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536,t+=String.fromCharCode(55296|r>>10,56320|1023&r)):t+=1&o?String.fromCharCode((31&r)<<6|63&e[n++]):String.fromCharCode((15&r)<<12|(63&e[n++])<<6|63&e[n++]):t+=String.fromCharCode(r)}};function B(e,t){if(t){for(var n="",r=0;r<e.length;r+=16384)n+=String.fromCharCode.apply(null,e.subarray(r,r+16384));return n}if(z)return z.decode(e);var o=U(e),i=o[0];return o[1].length&&P(8),i}"function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout&&setTimeout;var V,H=n(67825),W=n(23258),q=n(6781),G=n(85854),K="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},Q={},Y=Y||{},$=K||self;function X(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 J(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var ee="closure_uid_"+(1e9*Math.random()>>>0),te=0;function ne(e,t,n){return e.call.apply(e.bind,arguments)}function re(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 oe(e,t,n){return(oe=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ne:re).apply(null,arguments)}
2function ie(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 ae(e,t){function n(){}n.prototype=t.prototype,e.$=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.ac=function(e,n,r){for(var o=Array(arguments.length-2),i=2;i<arguments.length;i++)o[i-2]=arguments[i];return t.prototype[n].apply(e,o)}}function se(){this.s=this.s,this.o=this.o}se.prototype.s=!1,se.prototype.sa=function(){var e;!this.s&&(this.s=!0,this.N(),0)&&(e=this,Object.prototype.hasOwnProperty.call(e,ee)&&e[ee]||(e[ee]=++te))},se.prototype.N=function(){if(this.o)for(;this.o.length;)this.o.shift()()};const le=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"===typeof e)return"string"!==typeof t||1!=t.length?-1:e.indexOf(t,0);for(let n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1};function ce(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 ue(e,t){for(let n=1;n<arguments.length;n++){const t=arguments[n];if(X(t)){const n=e.length||0,r=t.length||0;e.length=n+r;for(let o=0;o<r;o++)e[n+o]=t[o]}else e.push(t)}}function de(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}de.prototype.h=function(){this.defaultPrevented=!0};var he=function(){if(!$.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{$.addEventListener("test",(()=>{}),t),$.removeEventListener("test",(()=>{}),t)}catch(n){}return e}();function fe(e){return/^[\s\xa0]*$/.test(e)}function pe(){var e=$.navigator;return e&&(e=e.userAgent)?e:""}function me(e){return-1!=pe().indexOf(e)}function ge(e){return ge[" "](e),e}ge[" "]=function(){};var ye,ve,be=me("Opera"),we=me("Trident")||me("MSIE"),xe=me("Edge"),ke=xe||we,Se=me("Gecko")&&!(-1!=pe().toLowerCase().indexOf("webkit")&&!me("Edge"))&&!(me("Trident")||me("MSIE"))&&!me("Edge"),Ee=-1!=pe().toLowerCase().indexOf("webkit")&&!me("Edge");function Ce(){var e=$.document;return e?e.documentMode:void 0}e:{var _e="",Te=function(){var e=pe();return Se?/rv:([^\);]+)(\)|;)/.exec(e):xe?/Edge\/([\d\.]+)/.exec(e):we?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):Ee?/WebKit\/(\S+)/.exec(e):be?/(?:Version)[ \/]?(\S+)/.exec(e):void 0}();if(Te&&(_e=Te?Te[1]:""),we){var Oe=Ce();if(null!=Oe&&Oe>parseFloat(_e)){ye=String(Oe);break e}}ye=_e}if($.document&&we){var Ie=Ce();ve=Ie||(parseInt(ye,10)||void 0)}else ve=void 0;var Ae=ve;function Pe(e,t){if(de.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(Se){e:{try{ge(t.nodeName);var o=!0;break e}catch(i){}o=!1}o||(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:Re[e.pointerType]||"",this.state=e.state,this.i=e,e.defaultPrevented&&Pe.$.h.call(this)}}ae(Pe,de);var Re={2:"touch",3:"pen",4:"mouse"};Pe.prototype.h=function(){Pe.$.h.call(this);var e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var Ne="closure_listenable_"+(1e6*Math.random()|0),De=0;function Me(e,t,n,r,o){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.la=o,this.key=++De,this.fa=this.ia=!1}function Le(e){e.fa=!0,e.listener=null,e.proxy=null,e.src=null,e.la=null}function Ze(e,t,n){for(const r in e)t.call(n,e[r],r,e)}function je(e){const t={};for(const n in e)t[n]=e[n];return t}const Fe="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
2ing toString valueOf".split(" ");function ze(e,t){let n,r;for(let o=1;o<arguments.length;o++){for(n in r=arguments[o],r)e[n]=r[n];for(let t=0;t<Fe.length;t++)n=Fe[t],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function Ue(e){this.src=e,this.g={},this.h=0}function Be(e,t){var n=t.type;if(n in e.g){var r,o=e.g[n],i=le(o,t);(r=0<=i)&&Array.prototype.splice.call(o,i,1),r&&(Le(t),0==e.g[n].length&&(delete e.g[n],e.h--))}}function Ve(e,t,n,r){for(var o=0;o<e.length;++o){var i=e[o];if(!i.fa&&i.listener==t&&i.capture==!!n&&i.la==r)return o}return-1}Ue.prototype.add=function(e,t,n,r,o){var i=e.toString();(e=this.g[i])||(e=this.g[i]=[],this.h++);var a=Ve(e,t,r,o);return-1<a?(t=e[a],n||(t.ia=!1)):((t=new Me(t,this.src,i,!!r,o)).ia=n,e.push(t)),t};var He="closure_lm_"+(1e6*Math.random()|0),We={};function qe(e,t,n,r,o){if(r&&r.once)return Ke(e,t,n,r,o);if(Array.isArray(t)){for(var i=0;i<t.length;i++)qe(e,t[i],n,r,o);return null}return n=tt(n),e&&e[Ne]?e.O(t,n,J(r)?!!r.capture:!!r,o):Ge(e,t,n,!1,r,o)}function Ge(e,t,n,r,o,i){if(!t)throw Error("Invalid event type");var a=J(o)?!!o.capture:!!o,s=Je(e);if(s||(e[He]=s=new Ue(e)),(n=s.add(t,n,r,a,i)).proxy)return n;if(r=function(){function e(n){return t.call(e.src,e.listener,n)}const t=Xe;return e}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)he||(o=a),void 0===o&&(o=!1),e.addEventListener(t.toString(),r,o);else if(e.attachEvent)e.attachEvent($e(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return n}function Ke(e,t,n,r,o){if(Array.isArray(t)){for(var i=0;i<t.length;i++)Ke(e,t[i],n,r,o);return null}return n=tt(n),e&&e[Ne]?e.P(t,n,J(r)?!!r.capture:!!r,o):Ge(e,t,n,!0,r,o)}function Qe(e,t,n,r,o){if(Array.isArray(t))for(var i=0;i<t.length;i++)Qe(e,t[i],n,r,o);else r=J(r)?!!r.capture:!!r,n=tt(n),e&&e[Ne]?(e=e.i,(t=String(t).toString())in e.g&&(-1<(n=Ve(i=e.g[t],n,r,o))&&(Le(i[n]),Array.prototype.splice.call(i,n,1),0==i.length&&(delete e.g[t],e.h--)))):e&&(e=Je(e))&&(t=e.g[t.toString()],e=-1,t&&(e=Ve(t,n,r,o)),(n=-1<e?t[e]:null)&&Ye(n))}function Ye(e){if("number"!==typeof e&&e&&!e.fa){var t=e.src;if(t&&t[Ne])Be(t.i,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent($e(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=Je(t))?(Be(n,e),0==n.h&&(n.src=null,t[He]=null)):Le(e)}}}function $e(e){return e in We?We[e]:We[e]="on"+e}function Xe(e,t){if(e.fa)e=!0;else{t=new Pe(t,this);var n=e.listener,r=e.la||e.src;e.ia&&Ye(e),e=n.call(r,t)}return e}function Je(e){return(e=e[He])instanceof Ue?e:null}var et="__closure_events_fn_"+(1e9*Math.random()>>>0);function tt(e){return"function"===typeof e?e:(e[et]||(e[et]=function(t){return e.handleEvent(t)}),e[et])}function nt(){se.call(this),this.i=new Ue(this),this.S=this,this.J=null}function rt(e,t){var n,r=e.J;if(r)for(n=[];r;r=r.J)n.push(r);if(e=e.S,r=t.type||t,"string"===typeof t)t=new de(t,e);else if(t instanceof de)t.target=t.target||e;else{var o=t;ze(t=new de(r,e),o)}if(o=!0,n)for(var i=n.length-1;0<=i;i--){var a=t.g=n[i];o=ot(a,r,!0,t)&&o}if(o=ot(a=t.g=e,r,!0,t)&&o,o=ot(a,r,!1,t)&&o,n)for(i=0;i<n.length;i++)o=ot(a=t.g=n[i],r,!1,t)&&o}function ot(e,t,n,r){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();for(var o=!0,i=0;i<t.length;++i){var a=t[i];if(a&&!a.fa&&a.capture==n){var s=a.listener,l=a.la||a.src;a.ia&&Be(e.i,a),o=!1!==s.call(l,r)&&o}}return o&&!r.defaultPrevented}ae(nt,se),nt.prototype[Ne]=!0,nt.prototype.removeEventListener=function(e,t,n,r){Qe(this,e,t,n,r)},nt.prototype.N=function(){if(nt.$.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++)Le(n[r]);delete t.g[e],t.h--}}this.J=null},nt.prototype.O=function(e,t,n,r){return this.i.add(String(e),t,!1,n,r)},nt.prototype.P=function(e,t,n,r){return this.i.add(String(e),t,!0,n,r)};var it=$.JSON.stringify;function at(){var e=ft;let t=null;return e.g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),t}var st=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}}((()=>
2new lt),(e=>e.reset()));class lt{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}}function ct(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 ut(e){$.setTimeout((()=>{throw e}),0)}let dt,ht=!1,ft=new class{constructor(){this.h=this.g=null}add(e,t){const n=st.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n}},pt=()=>{const e=$.Promise.resolve(void 0);dt=()=>{e.then(mt)}};var mt=()=>{for(var e;e=at();){try{e.h.call(e.g)}catch(n){ut(n)}var t=st;t.j(e),100>t.h&&(t.h++,e.next=t.g,t.g=e)}ht=!1};function gt(e,t){nt.call(this),this.h=e||1,this.g=t||$,this.j=oe(this.qb,this),this.l=Date.now()}function yt(e){e.ga=!1,e.T&&(e.g.clearTimeout(e.T),e.T=null)}function vt(e,t,n){if("function"===typeof e)n&&(e=oe(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=oe(e.handleEvent,e)}return 2147483647<Number(t)?-1:$.setTimeout(e,t||0)}function bt(e){e.g=vt((()=>{e.g=null,e.i&&(e.i=!1,bt(e))}),e.j);const t=e.h;e.h=null,e.m.apply(null,t)}ae(gt,nt),(V=gt.prototype).ga=!1,V.T=null,V.qb=function(){if(this.ga){var e=Date.now()-this.l;0<e&&e<.8*this.h?this.T=this.g.setTimeout(this.j,this.h-e):(this.T&&(this.g.clearTimeout(this.T),this.T=null),rt(this,"tick"),this.ga&&(yt(this),this.start()))}},V.start=function(){this.ga=!0,this.T||(this.T=this.g.setTimeout(this.j,this.h),this.l=Date.now())},V.N=function(){gt.$.N.call(this),yt(this),delete this.g};class wt extends se{constructor(e,t){super(),this.m=e,this.j=t,this.h=null,this.i=!1,this.g=null}l(e){this.h=arguments,this.g?this.i=!0:bt(this)}N(){super.N(),this.g&&($.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function xt(e){se.call(this),this.h=e,this.g={}}ae(xt,se);var kt=[];function St(e,t,n,r){Array.isArray(n)||(n&&(kt[0]=n.toString()),n=kt);for(var o=0;o<n.length;o++){var i=qe(t,n[o],r||e.handleEvent,!1,e.h||e);if(!i)break;e.g[i.key]=i}}function Et(e){Ze(e.g,(function(e,t){this.g.hasOwnProperty(t)&&Ye(e)}),e),e.g={}}function Ct(){this.g=!0}function _t(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 o=r[1];if(Array.isArray(o)&&!(1>o.length)){var i=o[0];if("noop"!=i&&"stop"!=i&&"close"!=i)for(var a=1;a<o.length;a++)o[a]=""}}}return it(n)}catch(s){return t}}(e,n)+(r?" "+r:"")}))}xt.prototype.N=function(){xt.$.N.call(this),Et(this)},xt.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},Ct.prototype.Ea=function(){this.g=!1},Ct.prototype.info=function(){};var Tt={},Ot=null;function It(){return Ot=Ot||new nt}function At(e){de.call(this,Tt.Ta,e)}function Pt(e){const t=It();rt(t,new At(t))}function Rt(e,t){de.call(this,Tt.STAT_EVENT,e),this.stat=t}function Nt(e){const t=It();rt(t,new Rt(t,e))}function Dt(e,t){de.call(this,Tt.Ua,e),this.size=t}function Mt(e,t){if("function"!==typeof e)throw Error("Fn must not be null and must be a function");return $.setTimeout((function(){e()}),t)}Tt.Ta="serverreachability",ae(At,de),Tt.STAT_EVENT="statevent",ae(Rt,de),Tt.Ua="timingevent",ae(Dt,de);var Lt={NO_ERROR:0,rb:1,Eb:2,Db:3,yb:4,Cb:5,Fb:6,Qa:7,TIMEOUT:8,Ib:9},Zt={wb:"complete",Sb:"success",Ra:"error",Qa:"abort",Kb:"ready",Lb:"readystatechange",TIMEOUT:"timeout",Gb:"incrementaldata",Jb:"progress",zb:"downloadprogress",$b:"uploadprogress"};function jt(){}function Ft(e){return e.h||(e.h=e.i())}function zt(){}jt.prototype.h=null;var Ut,Bt={OPEN:"a",vb:"b",Ra:"c",Hb:"d"};function Vt(){de.call(this,"d")}function Ht(){de.call(this,"c")}function Wt(){}function qt(e,t,n,r){this.l=e,this.j=t,this.m=n,this.W=r||1,this.U=new xt(this),this.P=Kt,e=ke?125:void 0,this.V=new gt(e),this.I=null,this.i=!1,this.s=this.A=this.v=this.L=this.G=this.Y=this.B=null,this.F=[],this.g=null,this.C=0,this.o=this.u=null,this.ca=-1,this.J=!1,this.O=0,this.M=null,this.ba=this.K=this.aa=this.S=!1,this.h=new Gt}function Gt(){this.i=null,this.g="",this.h=!1}ae(Vt,de),ae(Ht,de),ae(Wt,jt),Wt.prototype.g=function(){return new XMLHttpRequest},Wt.prototype.i=function(){return{}},Ut=new Wt;var Kt=45e3,Qt={},Yt={};function $t(e,t,n){e.L=1,e.v=yn(hn(t)),e.s=n,e.S=!0,Xt(e,null)}function Xt(e,t){e.G=Date.now(),nn(e),e.A=hn(e.v);var n=e.A,r=e.W;Array.isArray(r)||(r=[String(r)]),An(n.i,"t",r),e.C=0,n=e.l.J,e.h=new Gt,e.g=Pr(e.l,n?t:null,!e.s),0<e.O&&(e.M=new wt(oe(e.Pa,e,e.g),e.O)),St(e.U,e.g,"readystatechange",e.nb),t=e.I?je(e.I):{},e.s?(e.u||(e.u="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ha(e.A,e.u,e.s,t)):(e.u="GET",e.g.ha(e.A,e.u,null,t)),Pt(),function(e,t,n,r,o,i){e.info((function(){if(e.g)if(i)for(var a="",s=i.split("&"),l=0;l<s.length;l++){var c=s[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=i;return"XMLHTTP REQ ("+r+") [attempt "+o+"]: "+t+"\n"+n+"\n"+a}))}(e.j,e.u,e.A,e.m,e.W,e.s)}function Jt(e){return!!e.g&&("GET"==e.u&&2!=e.L&&e.l.Ha)}
2function en(e,t,n){let r,o=!0;for(;!e.J&&e.C<n.length;){if(r=tn(e,n),r==Yt){4==t&&(e.o=4,Nt(14),o=!1),_t(e.j,e.m,null,"[Incomplete Response]");break}if(r==Qt){e.o=4,Nt(15),_t(e.j,e.m,n,"[Invalid Chunk]"),o=!1;break}_t(e.j,e.m,r,null),ln(e,r)}Jt(e)&&r!=Yt&&r!=Qt&&(e.h.g="",e.C=0),4!=t||0!=n.length||e.h.h||(e.o=1,Nt(16),o=!1),e.i=e.i&&o,o?0<n.length&&!e.ba&&(e.ba=!0,(t=e.l).g==e&&t.ca&&!t.M&&(t.l.info("Great, no buffering proxy detected. Bytes received: "+n.length),Sr(t),t.M=!0,Nt(11))):(_t(e.j,e.m,n,"[Invalid Chunked Response]"),sn(e),an(e))}function tn(e,t){var n=e.C,r=t.indexOf("\n",n);return-1==r?Yt:(n=Number(t.substring(n,r)),isNaN(n)?Qt:(r+=1)+n>t.length?Yt:(t=t.slice(r,r+n),e.C=r+n,t))}function nn(e){e.Y=Date.now()+e.P,rn(e,e.P)}function rn(e,t){if(null!=e.B)throw Error("WatchDog timer not null");e.B=Mt(oe(e.lb,e),t)}function on(e){e.B&&($.clearTimeout(e.B),e.B=null)}function an(e){0==e.l.H||e.J||_r(e.l,e)}function sn(e){on(e);var t=e.M;t&&"function"==typeof t.sa&&t.sa(),e.M=null,yt(e.V),Et(e.U),e.g&&(t=e.g,e.g=null,t.abort(),t.sa())}function ln(e,t){try{var n=e.l;if(0!=n.H&&(n.g==e||Zn(n.i,e)))if(!e.K&&Zn(n.i,e)&&3==n.H){try{var r=n.Ja.g.parse(t)}catch(c){r=null}if(Array.isArray(r)&&3==r.length){var o=r;if(0==o[0]){e:if(!n.u){if(n.g){if(!(n.g.G+3e3<e.G))break e;Cr(n),mr(n)}kr(n),Nt(18)}}else n.Fa=o[1],0<n.Fa-n.V&&37500>o[2]&&n.G&&0==n.A&&!n.v&&(n.v=Mt(oe(n.ib,n),6e3));if(1>=Ln(n.i)&&n.oa){try{n.oa()}catch(c){}n.oa=void 0}}else Or(n,11)}else if((e.K||n.g==e)&&Cr(n),!fe(t))for(o=n.Ja.g.parse(t),t=0;t<o.length;t++){let c=o[t];if(n.V=c[0],c=c[1],2==n.H)if("c"==c[0]){n.K=c[1],n.pa=c[2];const t=c[3];null!=t&&(n.ra=t,n.l.info("VER="+n.ra));const o=c[4];null!=o&&(n.Ga=o,n.l.info("SVER="+n.Ga));const u=c[5];null!=u&&"number"===typeof u&&0<u&&(r=1.5*u,n.L=r,n.l.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 i=r.i;i.g||-1==e.indexOf("spdy")&&-1==e.indexOf("quic")&&-1==e.indexOf("h2")||(i.j=i.l,i.g=new Set,i.h&&(jn(i,i.h),i.h=null))}if(r.F){const e=d.g?d.g.getResponseHeader("X-HTTP-Session-Id"):null;e&&(r.Da=e,gn(r.I,r.F,e))}}n.H=3,n.h&&n.h.Ba(),n.ca&&(n.S=Date.now()-e.G,n.l.info("Handshake RTT: "+n.S+"ms"));var a=e;if((r=n).wa=Ar(r,r.J?r.pa:null,r.Y),a.K){Fn(r.i,a);var s=a,l=r.L;l&&s.setTimeout(l),s.B&&(on(s),nn(s)),r.g=a}else xr(r);0<n.j.length&&yr(n)}else"stop"!=c[0]&&"close"!=c[0]||Or(n,7);else 3==n.H&&("stop"==c[0]||"close"==c[0]?"stop"==c[0]?Or(n,7):pr(n):"noop"!=c[0]&&n.h&&n.h.Aa(c),n.A=0)}Pt()}catch(c){}}function cn(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(X(e)||"string"===typeof e)Array.prototype.forEach.call(e,t,void 0);else for(var n=function(e){if(e.ta&&"function"==typeof e.ta)return e.ta();if(!e.Z||"function"!=typeof e.Z){if("undefined"!==typeof Map&&e instanceof Map)return Array.from(e.keys());if(!("undefined"!==typeof Set&&e instanceof Set)){if(X(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.Z&&"function"==typeof e.Z)return e.Z();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("");if(X(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),o=r.length,i=0;i<o;i++)t.call(void 0,r[i],n&&n[i],e)}(V=qt.prototype).setTimeout=function(e){this.P=e},V.nb=function(e){e=e.target;const t=this.M;t&&3==lr(e)?t.l():this.Pa(e)},V.Pa=function(e){try{if(e==this.g)e:{const u=lr(this.g);var t=this.g.Ia();this.g.da();if(!(3>u)&&(3!=u||ke||this.g&&(this.h.h||this.g.ja()||cr(this.g)))){this.J||4!=u||7==t||Pt(),on(this);var n=this.g.da();this.ca=n;t:if(Jt(this)){var r=cr(this.g);e="";var o=r.length,i=4==lr(this.g);if(!this.h.i){if("undefined"===typeof TextDecoder){sn(this),an(this);var a="";break t}this.h.i=new $.TextDecoder}for(t=0;t<o;t++)this.h.h=!0,e+=this.h.i.decode(r[t],{stream:i&&t==o-1});r.splice(0,o),this.h.g+=e,this.C=0,a=this.h.g}else a=this.g.ja();if(this.i=200==n,function(e,t,n,r,o,i,a){e.info((function(){return"XMLHTTP RESP ("+r+") [ attempt "+o+"]: "+t+"\n"+n+"\n"+i+" "+a}))}
2(this.j,this.u,this.A,this.m,this.W,u,n),this.i){if(this.aa&&!this.K){t:{if(this.g){var s,l=this.g;if((s=l.g?l.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!fe(s)){var c=s;break t}}c=null}if(!(n=c)){this.i=!1,this.o=3,Nt(12),sn(this),an(this);break e}_t(this.j,this.m,n,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,ln(this,n)}this.S?(en(this,u,a),ke&&this.i&&3==u&&(St(this.U,this.V,"tick",this.mb),this.V.start())):(_t(this.j,this.m,a,null),ln(this,a)),4==u&&sn(this),this.i&&!this.J&&(4==u?_r(this.l,this):(this.i=!1,nn(this)))}else(function(e){const t={};e=(e.g&&2<=lr(e)&&e.g.getAllResponseHeaders()||"").split("\r\n");for(let r=0;r<e.length;r++){if(fe(e[r]))continue;var n=ct(e[r]);const o=n[0];if("string"!==typeof(n=n[1]))continue;n=n.trim();const i=t[o]||[];t[o]=i,i.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<a.indexOf("Unknown SID")?(this.o=3,Nt(12)):(this.o=0,Nt(13)),sn(this),an(this)}}}catch(u){}},V.mb=function(){if(this.g){var e=lr(this.g),t=this.g.ja();this.C<t.length&&(on(this),en(this,e,t),this.i&&4!=e&&nn(this))}},V.cancel=function(){this.J=!0,sn(this)},V.lb=function(){this.B=null;const e=Date.now();0<=e-this.Y?(function(e,t){e.info((function(){return"TIMEOUT: "+t}))}(this.j,this.A),2!=this.L&&(Pt(),Nt(17)),sn(this),this.o=2,an(this)):rn(this,this.Y-e)};var un=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function dn(e){if(this.g=this.s=this.j="",this.m=null,this.o=this.l="",this.h=!1,e instanceof dn){this.h=e.h,fn(this,e.j),this.s=e.s,this.g=e.g,pn(this,e.m),this.l=e.l;var t=e.i,n=new _n;n.i=t.i,t.g&&(n.g=new Map(t.g),n.h=t.h),mn(this,n),this.o=e.o}else e&&(t=String(e).match(un))?(this.h=!1,fn(this,t[1]||"",!0),this.s=vn(t[2]||""),this.g=vn(t[3]||"",!0),pn(this,t[4]),this.l=vn(t[5]||"",!0),mn(this,t[6]||"",!0),this.o=vn(t[7]||"")):(this.h=!1,this.i=new _n(null,this.h))}function hn(e){return new dn(e)}function fn(e,t,n){e.j=n?vn(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function pn(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.m=t}else e.m=null}function mn(e,t,n){t instanceof _n?(e.i=t,function(e,t){t&&!e.j&&(Tn(e),e.i=null,e.g.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(On(this,t),An(this,n,e))}),e)),e.j=t}(e.i,e.h)):(n||(t=bn(t,En)),e.i=new _n(t,e.h))}function gn(e,t,n){e.i.set(t,n)}function yn(e){return gn(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function vn(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function bn(e,t,n){return"string"===typeof e?(e=encodeURI(e).replace(t,wn),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function wn(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}dn.prototype.toString=function(){var e=[],t=this.j;t&&e.push(bn(t,xn,!0),":");var n=this.g;return(n||"file"==t)&&(e.push("//"),(t=this.s)&&e.push(bn(t,xn,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.m)&&e.push(":",String(n))),(n=this.l)&&(this.g&&"/"!=n.charAt(0)&&e.push("/"),e.push(bn(n,"/"==n.charAt(0)?Sn:kn,!0))),(n=this.i.toString())&&e.push("?",n),(n=this.o)&&e.push("#",bn(n,Cn)),e.join("")};var xn=/[#\/\?@]/g,kn=/[#\?:]/g,Sn=/[#\?]/g,En=/[#\?@]/g,Cn=/#/g;function _n(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function Tn(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("="),o=null;if(0<=r){var i=e[n].substring(0,r);o=e[n].substring(r+1)}else i=e[n];t(i,o?decodeURIComponent(o.replace(/\+/g," ")):"")}}}(e.i,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function On(e,t){Tn(e),t=Pn(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function In(e,t){return Tn(e),t=Pn(e,t),e.g.has(t)}function An(e,t,n){On(e,t),0<n.length&&(e.i=null,e.g.set(Pn(e,t),ce(n)),e.h+=n.length)}function Pn(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}(V=_n.prototype).add=function(e,t){Tn(this),this.i=null,e=Pn(this,e);var n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this}
2,V.forEach=function(e,t){Tn(this),this.g.forEach((function(n,r){n.forEach((function(n){e.call(t,n,r,this)}),this)}),this)},V.ta=function(){Tn(this);const e=Array.from(this.g.values()),t=Array.from(this.g.keys()),n=[];for(let r=0;r<t.length;r++){const o=e[r];for(let e=0;e<o.length;e++)n.push(t[r])}return n},V.Z=function(e){Tn(this);let t=[];if("string"===typeof e)In(this,e)&&(t=t.concat(this.g.get(Pn(this,e))));else{e=Array.from(this.g.values());for(let n=0;n<e.length;n++)t=t.concat(e[n])}return t},V.set=function(e,t){return Tn(this),this.i=null,In(this,e=Pn(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},V.get=function(e,t){return e&&0<(e=this.Z(e)).length?String(e[0]):t},V.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 i=encodeURIComponent(String(r)),a=this.Z(r);for(r=0;r<a.length;r++){var o=i;""!==a[r]&&(o+="="+encodeURIComponent(String(a[r]))),e.push(o)}}return this.i=e.join("&")};var Rn=class{constructor(e,t){this.g=e,this.map=t}};function Nn(e){this.l=e||Dn,$.PerformanceNavigationTiming?e=0<(e=$.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!($.g&&$.g.Ka&&$.g.Ka()&&$.g.Ka().dc),this.j=e?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}var Dn=10;function Mn(e){return!!e.h||!!e.g&&e.g.size>=e.j}function Ln(e){return e.h?1:e.g?e.g.size:0}function Zn(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function jn(e,t){e.g?e.g.add(t):e.h=t}function Fn(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function zn(e){if(null!=e.h)return e.i.concat(e.h.F);if(null!=e.g&&0!==e.g.size){let t=e.i;for(const n of e.g.values())t=t.concat(n.F);return t}return ce(e.i)}Nn.prototype.cancel=function(){if(this.i=zn(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 Un,Bn=class{stringify(e){return $.JSON.stringify(e,void 0)}parse(e){return $.JSON.parse(e,void 0)}};function Vn(){this.g=new Bn}function Hn(e,t,n){const r=n||"";try{cn(e,(function(e,n){let o=e;J(e)&&(o=it(e)),t.push(r+n+"="+encodeURIComponent(o))}))}catch(If){throw t.push(r+"type="+encodeURIComponent("_badmap")),If}}function Wn(e,t,n,r,o){try{t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null,o(r)}catch(i){}}function qn(e){this.l=e.ec||null,this.j=e.ob||!1}function Gn(e,t){nt.call(this),this.F=e,this.u=t,this.m=void 0,this.readyState=Kn,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}ae(qn,jt),qn.prototype.g=function(){return new Gn(this.l,this.j)},qn.prototype.i=(Un={},function(){return Un}),ae(Gn,nt);var Kn=0;function Qn(e){e.j.read().then(e.Xa.bind(e)).catch(e.ka.bind(e))}function Yn(e){e.readyState=4,e.l=null,e.j=null,e.A=null,$n(e)}function $n(e){e.onreadystatechange&&e.onreadystatechange.call(e)}(V=Gn.prototype).open=function(e,t){if(this.readyState!=Kn)throw this.abort(),Error("Error reopening a connection");this.C=e,this.B=t,this.readyState=1,$n(this)},V.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;const t={headers:this.v,method:this.C,credentials:this.m,cache:void 0};e&&(t.body=e),(this.F||$).fetch(new Request(this.B,t)).then(this.$a.bind(this),this.ka.bind(this))},V.abort=function(){this.response=this.responseText="",this.v=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,Yn(this)),this.readyState=Kn},V.$a=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,$n(this)),this.g&&(this.readyState=3,$n(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Ya.bind(this),this.ka.bind(this));else if("undefined"!==typeof $.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;Qn(this)}else e.text().then(this.Za.bind(this),this.ka.bind(this))},V.Xa=function(e){if(this.g){if(this.u&&e.value)this.response.push(e.value);else if(!this.u){var t=e.value?e.value:new Uint8Array(0);(t=this.A.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?Yn(this):$n(this),3==this.readyState&&Qn(this)}},V.Za=function(e){this.g&&(this.response=this.responseText=e,Yn(this))},V.Ya=function(e){this.g&&(this.response=e,Yn(this))},V.ka=function(){this.g&&Yn(this)},V.setRequestHeader=function(e,t){this.v.append(e,t)},V.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},V.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(Gn.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}});var Xn=$.JSON.parse;function Jn(e){nt.call(this),this.headers=new Map,this.u=e||null,this.h=!1,this.C=this.g=null,this.I="",this.m=0,this.j="",this.l=this.G=this.v=this.F=!1,this.B=0,this.A=null,this.K=er,this.L=this.M=!1}ae(Jn,nt);var er="",tr=/^https?$/i,nr=["POST","PUT"];function rr(e,t){e.h=!1,e.g&&(e.l=!0,e.g.abort(),e.l=!1),e.j=t,e.m=5,or(e),ar(e)}function or(e){e.F||(e.F=!0,rt(e,"complete"),rt(e,"error"))}function ir(e){if(e.h&&"undefined"!=typeof Y&&(!e.C[1]||4!=lr(e)||2!=e.da()))if(e.v&&4==lr(e))vt(e.L
2a,0,e);else if(rt(e,"readystatechange"),4==lr(e)){e.h=!1;try{const s=e.da();e:switch(s){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 r;if(r=0===s){var o=String(e.I).match(un)[1]||null;!o&&$.self&&$.self.location&&(o=$.self.location.protocol.slice(0,-1)),r=!tr.test(o?o.toLowerCase():"")}n=r}if(n)rt(e,"complete"),rt(e,"success");else{e.m=6;try{var i=2<lr(e)?e.g.statusText:""}catch(a){i=""}e.j=i+" ["+e.da()+"]",or(e)}}finally{ar(e)}}}function ar(e,t){if(e.g){sr(e);const n=e.g,r=e.C[0]?()=>{}:null;e.g=null,e.C=null,t||rt(e,"ready");try{n.onreadystatechange=r}catch(If){}}}function sr(e){e.g&&e.L&&(e.g.ontimeout=null),e.A&&($.clearTimeout(e.A),e.A=null)}function lr(e){return e.g?e.g.readyState:0}function cr(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.K){case er:case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(yo){return null}}function ur(e){let t="";return Ze(e,(function(e,n){t+=n,t+=":",t+=e,t+="\r\n"})),t}function dr(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}r||(n=ur(n),"string"===typeof e?null!=n&&encodeURIComponent(String(n)):gn(e,t,n))}function hr(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function fr(e){this.Ga=0,this.j=[],this.l=new Ct,this.pa=this.wa=this.I=this.Y=this.g=this.Da=this.F=this.na=this.o=this.U=this.s=null,this.fb=this.W=0,this.cb=hr("failFast",!1,e),this.G=this.v=this.u=this.m=this.h=null,this.aa=!0,this.Fa=this.V=-1,this.ba=this.A=this.C=0,this.ab=hr("baseRetryDelayMs",5e3,e),this.hb=hr("retryDelaySeedMs",1e4,e),this.eb=hr("forwardChannelMaxRetries",2,e),this.xa=hr("forwardChannelRequestTimeoutMs",2e4,e),this.va=e&&e.xmlHttpFactory||void 0,this.Ha=e&&e.useFetchStreams||!1,this.L=void 0,this.J=e&&e.supportsCrossDomainXhr||!1,this.K="",this.i=new Nn(e&&e.concurrentRequestLimit),this.Ja=new Vn,this.P=e&&e.fastHandshake||!1,this.O=e&&e.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.bb=e&&e.bc||!1,e&&e.Ea&&this.l.Ea(),e&&e.forceLongPolling&&(this.aa=!1),this.ca=!this.P&&this.aa&&e&&e.detectBufferingProxy||!1,this.qa=void 0,e&&e.longPollingTimeout&&0<e.longPollingTimeout&&(this.qa=e.longPollingTimeout),this.oa=void 0,this.S=0,this.M=!1,this.ma=this.B=null}function pr(e){if(gr(e),3==e.H){var t=e.W++,n=hn(e.I);if(gn(n,"SID",e.K),gn(n,"RID",t),gn(n,"TYPE","terminate"),br(e,n),(t=new qt(e,e.l,t)).L=2,t.v=yn(hn(n)),n=!1,$.navigator&&$.navigator.sendBeacon)try{n=$.navigator.sendBeacon(t.v.toString(),"")}catch(r){}!n&&$.Image&&((new Image).src=t.v,n=!0),n||(t.g=Pr(t.l,null),t.g.ha(t.v)),t.G=Date.now(),nn(t)}Ir(e)}function mr(e){e.g&&(Sr(e),e.g.cancel(),e.g=null)}function gr(e){mr(e),e.u&&($.clearTimeout(e.u),e.u=null),Cr(e),e.i.cancel(),e.m&&("number"===typeof e.m&&$.clearTimeout(e.m),e.m=null)}function yr(e){if(!Mn(e.i)&&!e.m){e.m=!0;var t=e.Na;dt||pt(),ht||(dt(),ht=!0),ft.add(t,e),e.C=0}}function vr(e,t){var n;n=t?t.m:e.W++;const r=hn(e.I);gn(r,"SID",e.K),gn(r,"RID",n),gn(r,"AID",e.V),br(e,r),e.o&&e.s&&dr(r,e.o,e.s),n=new qt(e,e.l,n,e.C+1),null===e.o&&(n.I=e.s),t&&(e.j=t.F.concat(e.j)),t=wr(e,n,1e3),n.setTimeout(Math.round(.5*e.xa)+Math.round(.5*e.xa*Math.random())),jn(e.i,n),$t(n,r,t)}function br(e,t){e.na&&Ze(e.na,(function(e,n){gn(t,n,e)})),e.h&&cn({},(function(e,n){gn(t,n,e)}))}function wr(e,t,n){n=Math.min(e.j.length,n);var r=e.h?oe(e.h.Va,e.h,e):null;e:{var o=e.j;let t=-1;for(;;){const e=["count="+n];-1==t?0<n?(t=o[0].g,e.push("ofs="+t)):t=0:e.push("ofs="+t);let a=!0;for(let s=0;s<n;s++){let n=o[s].g;const l=o[s].map;if(n-=t,0>n)t=Math.max(0,o[s].g-100),a=!1;else try{Hn(l,e,"req"+n+"_")}catch(i){r&&r(l)}}if(a){r=e.join("&");break e}}}return e=e.j.splice(0,n),t.F=e,r}function xr(e){if(!e.g&&!e.u){e.ba=1;var t=e.Ma;dt||pt(),ht||(dt(),ht=!0),ft.add(t,e),e.A=0}}function kr(e){return!(e.g||e.u||3<=e.A)&&(e.ba++,e.u=Mt(oe(e.Ma,e),Tr(e,e.A)),e.A++,!0)}function Sr(e){null!=e.B&&($.clearTimeout(e.B),e.B=null)}function Er(e){e.g=new qt(e,e.l,"rpc",e.ba),null===e.o&&(e.g.I=e.s),e.g.O=0;var t=hn(e.wa);gn(t,"RID","rpc"),gn(t,"SID",e.K),gn(t,"AID",e.V),gn(t,"CI",e.G?"0":"1"),!e.G&&e.qa&&gn(t,"TO",e.qa),gn(t,"TYPE","xmlhttp"),br(e,t),e.o&&e.s&&dr(t,e.o,e.s),e.L&&e.g.setTimeout(e.L);var n=e.g;e=e.pa,n.L=1,n.v=yn(hn(t)),n.s=null,n.S=!0,Xt(n,e)}function Cr(e){null!=e.v&&($.clearTimeout(e.v),e.v=null)}function _r(e,t){var n=null;if(e.g==t){Cr(e),Sr(e),e.g=null;var r=2}else{if(!Zn(e.i,t))return;n=t.F,Fn(e.i,t),r=1}if(0!=e.H)if(t.i)if(1==r){n=t.s?t.s.length:0,t=Date.now()-t.G;var o=e.C;rt(r=It(),new Dt(r,n)),yr(e)}else xr(e);else if(3==(o=t.o)||0==o&&0<t.ca||!(1==r&&function(e,t){return!(Ln(e.i)>=e.i.j-(e.m?1:0))&&(e.m?(e.j=t.F.concat(e.j),!0):!(1==e.H||2==e.H||e.C>=(e.cb?0:e.eb))&&(e.m=Mt(oe(e.Na,e,t),Tr(e,e.C)),e.C++,!0))}(e,t)||2==r&&kr(e)))switch(n&&0<n.length&&(t=e.i,t.i=t.i.concat(n)),o){case 1:Or(e,5);break;case 4:Or(e,10);break;case 3:Or(e,6);break;default:Or(e,2)}}function Tr(e,t){let n=e.ab+Math.floor(Math.random()*e.hb);return e.isActive()||(n*=2),n*t}function Or(e,t){if(e.l.info("Error code "+t),2==t){var n=null;e.h&&(n=null);var r=oe(e.pb,e);n||(n=new dn("//www.google.com/images/cleardot.gif"),$.location&&"http"==$.location.protocol||fn(n,"https"),yn(n)),function(e,t){const n=new Ct;if($.Image){const r=new Image;r.onload=ie(Wn,n,r,"TestLoadImage: loaded",!0,t),r.onerror=ie(Wn,n,r,"TestLoadImage: error",!1,t),r.onabort=ie(Wn,n,r,"TestLoadImage: abort",!1,t),r.ontimeout=ie(Wn,n,r,"TestLoadImage: timeout",!1,t),$.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=e}else t(!1)}(n.toString(),r)}else Nt(2);e.H=0,e.h&&e.h.za(t),Ir(e),gr(e)}function Ir(e){if(e.H=0,e.ma=[],e.h){const t=zn(e.i);0==t.length&&0==e.j.length||(ue(e.ma,t),ue(e.ma,e.j),e.i.i.length=0,ce(e.j),e.j.length=0),e.h.ya()}}function Ar(e,t,n){var r=n instanceof dn?hn(n):new dn(n);if(""!=r.g)t&&(r.g=t+"."+r.g),pn(r,r.m);else{var o=$.location;r=o.protocol,t=t?t+"."+o.hostname:o.hostname,o=+o.port;var i=new dn(null);r&&fn(i,r),t&&(i.g=t),o&&pn(i,o),n&&(i.l=n),r=i}return n=e.F,t=e.Da,n&&t&&gn(r,n,t),gn(r,"VER",e.ra),br(e,r),r}function Pr(e,t,n){if(t&&!e.J)throw Error("Can't create secondary domain capable XhrIo object.");return(t=n&&e.Ha&&!e.va?new Jn(new qn({ob:!0})):new Jn(e.va)).Oa(e.J),t}function Rr(){}function Nr(){if(we&&!(10<=Number(Ae)))throw Error("Environmental error: no available transport.")}function Dr(e,t){nt.call(this),this.g=new fr(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.s=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.Ca&&(e?e["X-WebChannel-Client-Profile"]=t.Ca:e={"X-WebChannel-Client-Profile":t.Ca}),this.g.U=e,(e=t&&t.cc)&&!fe(e)&&(this.g.o=e),this.A=t&&t.supportsCrossDomainXhr||!1,this.v=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!fe(t)&&(this.g.F=t,null!==(e=this.h)&&t in e&&(t in(e=this.h)&&delete e[t])),this.j=new Zr(this)}function Mr(e){Vt.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 Lr(){Ht.call(this),this.status=1}function Zr(e){this.g=e}function jr(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.m=Array(this.blockSize),this.i=this.h=0,this.reset()}function Fr(e,t,n){n||(n=0);var r=Array(16);if("string"===typeof t)for(var o=0;16>o;++o)r[o]=t.charCodeAt(n++)|t.charCodeAt(n++)<<8|t.charCodeAt(n++)<<16|t.charCodeAt(n++)<<24;else for(o=0;16>o;++o)r[o]=t[n++]|t[n++]<<8|t[n++]<<16|t[n++]<<24;t=e.g[0],n=e.g[1],o=e.g[2];var i=e.g[3],a=t+(i^n&(o^i))+r[0]+3614090360&4294967295;a=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=n+(a<<7&4294967295|a>>>25))+((a=i+(o^t&(n^o))+r[1]+3905402710&4294967295)<<12&4294967295|a>>>20))+((a=o+(n^i&(t^n))+r[2]+606105819&4294967295)<<17&4294967295|a>>>15))+((a=n+(t^o&(i^t))+r[3]+3250441966&4294967295)<<22&4294967295|a>>>10))+((a=t+(i^n&(o^i))+r[4]+4118548399&4294967295)<<7&4294967295|a>>>25))+((a=i+(o^t&(n^o))+r[5]+1200080426&4294967295)<<12&4294967295|a>>>20))+((a=o+(n^i&(t^n))+r[6]+2821735955&4294967295)<<17&4294967295|a>>>15))+((a=n+(t^o&(i^t))+r[7]+4249261313&4294967295)<<22&4294967295|a>>>10))+((a=t+(i^n&(o^i))+r[8]+1770035416&4294967295)<<7&4294967295|a>>>25))+((a=i+(o^t&(n^o))+r[9]+2336552879&4294967295)<<12&4294967295|a>>>20))+((a=o+(n^i&(t^n))+r[10]+4294925233&4294967295)<<17&4294967295|a>>>15))+((a=n+(t^o&(i^t))+r[11]+2304563134&4294967295)<<22&4294967295|a>>>10))+((a=t+(i^n&(o^i))+r[12]+1804603682&4294967295)<<7&4294967295|a>>>25))+((a=i+(o^t&(n^o))+r[13]+4254626195&4294967295)<<12&4294967295|a>>>20))+((a=o+(n^i&(t^n))+r[14]+2792965006&4294967295)<<17&4294967295|a>>>15))+((a=n+(t^o&(i^t))+r[15]+1236535329&4294967295)<<22&4294967295|a>>>10))+((a=t+(o^i&(n^o))+r[1]+4129170786&4294967295)<<5&4294967295|a>>>27))+((a=i+(n^o&(t^n))+r[6]+3225465664&4294967295)<<9&4294967295|a>>>23))+((a=o+(t^n&(i^t))+r[11]+643717713&4294967295)<<14&4294967295|a>>>18))+((a=n+(i^t&(o^i))+r[0]+3921069994&4294967295)<<20&4294967295|a>>>12))+((a=t+(o^i&(n^o))+r[5]+3593408605&4294967295)<<5&4294967295|a>>>27))+((a=i+(n^o&(t^n))+r[10]+38016083&4294967295)<<9&4294967295|a>>>23))+((a=o+(t^n&(i^t))+r[15]+3634488961&4294967295)<<14&4294967295|a>>>18))+((a=n+(i^t&(o^i))+r[4]+3889429448&4294967295)<<20&4294967295|a>>>12))+((a=t+(o^i&(n^o))+r[9]+568446438&4294967295)<<5&4294967295|a>>>27))+((a=i+(n^o&(t^n))+r[14]+3275163606&4294967295)<<9&4294967295|a>>>23))+((a=o+(t^n&(i^t))+r[3]+4107603335&4294967295)<<14&4294967295|a>>>18))+((a=n+(i^t&(o^i))+r[8]+1163531501&4294967295)<<20&4294967295|a>>>12))+((a=t+(o^i&(n^o))+r[13]+2850285829&4294967295)<<5&4294967295|a>>>27))+((a=i+(n^o&(t^n))+r[2]+4243563512&4294967295)<<9&4294967295|a>>>23))+((a=o+(t^n&(i^t))+r[7]+1735328473&4294967295)<<14&4294967295|a>>>18))+((a=n+(i^t&(o^i))+r[12]+2368359562&4294967295)<<20&4294967295|a>>>12))+((a=t+(n^o^i)+r[5]+4294588738&4294967295)<<4&4294967295|a>>>28))+((a=i+(t^n^o)+r[8]+2272392833&4294967295)<<11&4294967295|a>>>21))+((a=o+(i^t^n)+r[11]+1839030562&4294967295)<<16&4294967295|a>>>16))+((a=n+(o^i^t)+r[14]+4259657740&4294967295)<<23&4294967295|a>>>9))+((a=t+(n^o^i)+r[1]+2763975236&4294967295)<<4&4294967295|a>>>28))+((a=i+(t^n^o)+r[4]+1272893353&4294967295)<<11&4294967295|a>>>21))+((a=o+(i^t^n)+r[7]+4139469664&4294967295)<<16&4294967295|a>>>16))+((a=n+(o^i^t)+r[10]+3200236656&4294967295)<<23&4294967295|a>>>9))+((a=t+(n^o^i)+r[13]+681279174&4294967295)<<4&4294967295|a>>>28))+((a=i+(t^n^o)+r[0]+3936430074&4294967295)<<11&4294967295|a>>>21))+((a=o+(i^t^n)+r[3]+3572445317&4294967295)<<16&4294967295|a>>>16))+((a=n+(o^i^t)+r[6]+76029189&4294967295)<<23&4294967295|a>>>9))+((a=t+(n^o^i)+r[9]+3654602809&4294967295)<<4&4294967295|a>>>28))+((a=i+(t^n^o)+r[12]+3873151461&4294967295)<<11&4294967295|a>>>21))+((a=o+(i^t^n)+r[15]+530742520&4294967295)<<16&4294967295|a>>>16))+((a=n+(o^i^t)+r[2]+3299628645&4294967295)<<23&4294967295|a>>>9))+((a=t+(o^(n|~i))+r[0]+4096336452&4294967295)<<6&4294967295|a>>>26))+((a=i+(n^(t|~o))+r[7]+1126891415&4294967295)<<10&4294967295|a>>>22))+((a=o+(t^(i|~n))+r[14]+2878612391&4294967295)<<15&4294967295|a>>>17))+((a=n+(i^(o|~t))+r[5]+4237533241&4294967295)<<21&4294967295|a>>>11))+((a=t+(o^(n|~i))+r[12]+1700485571&4294967295)<<6&4294967295|a>>>26))+((a=i+(n^(t|~o))+r[3]+2399980690&4294967295)<<10&4294967295|a>>>22))+((a=o+(t^(i|~n))+r[10]+4293915773&4294967295)<<15&4294967295|a>>>17))+((a=n+(i^(o|~t))+r[1]+2240044497&4294967295)<<21&4294967295|a>>>11))+((a=t+(o^(n|~i))+r[8]+1873313359&4294967295)<<6&4294967295|a>>>26))+((a=i+(n^(t|~o))+r[15]+4264355552&4294967295)<<10&4294967295|a>>>22))+((a=o+(t^(i|~n))+r[6]+2734768916&4294967295)<<15&4294967295|a>>>17))+((a=n+(i^(o|~t))+r[13]+1309151649&4294967295)<<21&4294967295|a>>>
211))+((i=(t=n+((a=t+(o^(n|~i))+r[4]+4149444226&4294967295)<<6&4294967295|a>>>26))+((a=i+(n^(t|~o))+r[11]+3174756917&4294967295)<<10&4294967295|a>>>22))^((o=i+((a=o+(t^(i|~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]+(o+(a<<21&4294967295|a>>>11))&4294967295,e.g[2]=e.g[2]+o&4294967295,e.g[3]=e.g[3]+i&4294967295}function zr(e,t){this.h=t;for(var n=[],r=!0,o=e.length-1;0<=o;o--){var i=0|e[o];r&&i==t||(n[o]=i,r=!1)}this.g=n}(V=Jn.prototype).Oa=function(e){this.M=e},V.ha=function(e,t,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.I+"; newUri="+e);t=t?t.toUpperCase():"GET",this.I=e,this.j="",this.m=0,this.F=!1,this.h=!0,this.g=this.u?this.u.g():Ut.g(),this.C=this.u?Ft(this.u):Ft(Ut),this.g.onreadystatechange=oe(this.La,this);try{this.G=!0,this.g.open(t,String(e),!0),this.G=!1}catch(i){return void rr(this,i)}if(e=n||"",n=new Map(this.headers),r)if(Object.getPrototypeOf(r)===Object.prototype)for(var o in r)n.set(o,r[o]);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())),o=$.FormData&&e instanceof $.FormData,!(0<=le(nr,t))||r||o||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[a,s]of n)this.g.setRequestHeader(a,s);this.K&&(this.g.responseType=this.K),"withCredentials"in this.g&&this.g.withCredentials!==this.M&&(this.g.withCredentials=this.M);try{sr(this),0<this.B&&((this.L=function(e){return we&&"number"===typeof e.timeout&&void 0!==e.ontimeout}(this.g))?(this.g.timeout=this.B,this.g.ontimeout=oe(this.ua,this)):this.A=vt(this.ua,this.B,this)),this.v=!0,this.g.send(e),this.v=!1}catch(i){rr(this,i)}},V.ua=function(){"undefined"!=typeof Y&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,rt(this,"timeout"),this.abort(8))},V.abort=function(e){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=e||7,rt(this,"complete"),rt(this,"abort"),ar(this))},V.N=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),ar(this,!0)),Jn.$.N.call(this)},V.La=function(){this.s||(this.G||this.v||this.l?ir(this):this.kb())},V.kb=function(){ir(this)},V.isActive=function(){return!!this.g},V.da=function(){try{return 2<lr(this)?this.g.status:-1}catch(Un){return-1}},V.ja=function(){try{return this.g?this.g.responseText:""}catch(Un){return""}},V.Wa=function(e){if(this.g){var t=this.g.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),Xn(t)}},V.Ia=function(){return this.m},V.Sa=function(){return"string"===typeof this.j?this.j:String(this.j)},(V=fr.prototype).ra=8,V.H=1,V.Na=function(e){if(this.m)if(this.m=null,1==this.H){if(!e){this.W=Math.floor(1e5*Math.random()),e=this.W++;const o=new qt(this,this.l,e);let i=this.s;if(this.U&&(i?(i=je(i),ze(i,this.U)):i=this.U),null!==this.o||this.O||(o.I=i,i=null),this.P)e:{for(var t=0,n=0;n<this.j.length;n++){var r=this.j[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.j.length-1){t=n+1;break e}}t=1e3}else t=1e3;t=wr(this,o,t),gn(n=hn(this.I),"RID",e),gn(n,"CVER",22),this.F&&gn(n,"X-HTTP-Session-Id",this.F),br(this,n),i&&(this.O?t="headers="+encodeURIComponent(String(ur(i)))+"&"+t:this.o&&dr(n,this.o,i)),jn(this.i,o),this.bb&&gn(n,"TYPE","init"),this.P?(gn(n,"$req",t),gn(n,"SID","null"),o.aa=!0,$t(o,n,null)):$t(o,n,t),this.H=2}}else 3==this.H&&(e?vr(this,e):0==this.j.length||Mn(this.i)||vr(this))},V.Ma=function(){if(this.u=null,Er(this),this.ca&&!(this.M||null==this.g||0>=this.S)){var e=2*this.S;this.l.info("BP detection timer enabled: "+e),this.B=Mt(oe(this.jb,this),e)}},V.jb=function(){this.B&&(this.B=null,this.l.info("BP detection timeout reached."),this.l.info("Buffering proxy detected and switch to long-polling!"),this.G=!1,this.M=!0,Nt(10),mr(this),Er(this))},V.ib=function(){null!=this.v&&(this.v=null,mr(this),kr(this),Nt(19))},V.pb=function(e){e?(this.l.info("Successfully pinged google.com"),Nt(2)):(this.l.info("Failed to ping google.com"),Nt(1))},V.isActive=function(){return!!this.h&&this.h.isActive(this)},(V=Rr.prototype).Ba=function(){},V.Aa=function(){},V.za=function(){},V.ya=function(){},V.isActive=function(){return!0},V.Va=function(){},Nr.prototype.g=function(e,t){return new Dr(e,t)},ae(Dr,nt),Dr.prototype.m=function(){this.g.h=this.j,this.A&&(this.g.J=!0);var e=this.g,t=this.l,n=this.h||void 0;Nt(0),e.Y=t,e.na=n||{},e.G=e.aa,e.I=Ar(e,null,e.Y),yr(e)},Dr.prototype.close=function(){pr(this.g)},Dr.prototype.u=function(e){var t=this.g;if("string"===typeof e){var n={};n.__data__=e,e=n}else this.v&&((n={}).__data__=it(e),e=n);t.j.push(new Rn(t.fb++,e)),3==t.H&&yr(t)},Dr.prototype.N=function(){this.g.h=null,delete this.j,pr(this.g),delete this.g,Dr.$.N.call(this)},ae(Mr,Vt),ae(Lr,Ht),ae(Zr,Rr),Zr.prototype.Ba=function(){rt(this.g,"a")},Zr.prototype.Aa=function(e){rt(this.g,new Mr(e))},Zr.prototype.za=function(e){rt(this.g,new Lr)},Zr.prototype.ya=function(){rt(this.g,"b")},ae(jr,(function(){this.blockSize=-1})),jr.prototype.reset=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.i=this.h=0},jr.prototype.j=function(e,t){void 0===t&&(t=e.length);for(var n=t-this.blockSize,r=this.m,o=this.h,i=0;i<t;){if(0==o)for(;i<=n;)Fr(this,e,i),i+=this.blockSize;if("string"===typeof e){for(;i<t;)if(r[o++]=e.charCodeAt(i++),o==this.blockSize){Fr(this,r),o=0;break}}else for(;i<t;)if(r[o++]=e[i++],o==this.blockSize){Fr(this,r),o=0;break}}this.h=o,this.i+=t},jr.prototype.l=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.i;for(t=e.length-8;t<e.length;++t)e[t]=255&n,n/=256;for(this.j(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 Ur={};function Br(e){return-128<=e&&128>e?function(e,t){var n=Ur;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,(function(e){return new zr([0|e],0>e?-1:0)})):new zr([0|e],0>e?-1:0)}function Vr(e){if(isNaN(e)||!isFinite(e))return Wr;if(0>e)return Yr(Vr(-e));for(var t=[],n=1,r=0;e>=n;r++)t[r]=e/n|0,n*=Hr;return new zr(t,0)}var Hr=4294967296,Wr=Br(0),qr=Br(1),Gr=Br(16777216);function Kr(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 Qr(e){return-1==e.h}function Yr(e){for(var t=e.g.length,n=[],r=0;r<t;r++)n[r]=~e.g[r];return new zr(n,~e.h).add(qr)}function $r(e,t){return e.add(Yr(t))}function Xr(e,t){for(;(65535&e[t])!=e[t];)e[t+1]+=e[t]>>>16,e[t]&=65535,t++}function Jr(e,t){this.g=e,this.h=t}function eo(e,t){if(Kr(t))throw Error("division by zero");if(Kr(e))return new Jr(Wr,Wr);
2if(Qr(e))return t=eo(Yr(e),t),new Jr(Yr(t.g),Yr(t.h));if(Qr(t))return t=eo(e,Yr(t)),new Jr(Yr(t.g),t.h);if(30<e.g.length){if(Qr(e)||Qr(t))throw Error("slowDivide_ only works with positive integers.");for(var n=qr,r=t;0>=r.X(e);)n=to(n),r=to(r);var o=no(n,1),i=no(r,1);for(r=no(r,2),n=no(n,2);!Kr(r);){var a=i.add(r);0>=a.X(e)&&(o=o.add(n),i=a),r=no(r,1),n=no(n,1)}return t=$r(e,o.R(t)),new Jr(o,t)}for(o=Wr;0<=e.X(t);){for(n=Math.max(1,Math.floor(e.ea()/t.ea())),r=48>=(r=Math.ceil(Math.log(n)/Math.LN2))?1:Math.pow(2,r-48),a=(i=Vr(n)).R(t);Qr(a)||0<a.X(e);)a=(i=Vr(n-=r)).R(t);Kr(i)&&(i=qr),o=o.add(i),e=$r(e,a)}return new Jr(o,e)}function to(e){for(var t=e.g.length+1,n=[],r=0;r<t;r++)n[r]=e.D(r)<<1|e.D(r-1)>>>31;return new zr(n,e.h)}function no(e,t){var n=t>>5;t%=32;for(var r=e.g.length-n,o=[],i=0;i<r;i++)o[i]=0<t?e.D(i+n)>>>t|e.D(i+n+1)<<32-t:e.D(i+n);return new zr(o,e.h)}(V=zr.prototype).ea=function(){if(Qr(this))return-Yr(this).ea();for(var e=0,t=1,n=0;n<this.g.length;n++){var r=this.D(n);e+=(0<=r?r:Hr+r)*t,t*=Hr}return e},V.toString=function(e){if(2>(e=e||10)||36<e)throw Error("radix out of range: "+e);if(Kr(this))return"0";if(Qr(this))return"-"+Yr(this).toString(e);for(var t=Vr(Math.pow(e,6)),n=this,r="";;){var o=eo(n,t).g,i=((0<(n=$r(n,o.R(t))).g.length?n.g[0]:n.h)>>>0).toString(e);if(Kr(n=o))return i+r;for(;6>i.length;)i="0"+i;r=i+r}},V.D=function(e){return 0>e?0:e<this.g.length?this.g[e]:this.h},V.X=function(e){return Qr(e=$r(this,e))?-1:Kr(e)?0:1},V.abs=function(){return Qr(this)?Yr(this):this},V.add=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0,o=0;o<=t;o++){var i=r+(65535&this.D(o))+(65535&e.D(o)),a=(i>>>16)+(this.D(o)>>>16)+(e.D(o)>>>16);r=a>>>16,i&=65535,a&=65535,n[o]=a<<16|i}return new zr(n,-2147483648&n[n.length-1]?-1:0)},V.R=function(e){if(Kr(this)||Kr(e))return Wr;if(Qr(this))return Qr(e)?Yr(this).R(Yr(e)):Yr(Yr(this).R(e));if(Qr(e))return Yr(this.R(Yr(e)));if(0>this.X(Gr)&&0>e.X(Gr))return Vr(this.ea()*e.ea());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 o=0;o<e.g.length;o++){var i=this.D(r)>>>16,a=65535&this.D(r),s=e.D(o)>>>16,l=65535&e.D(o);n[2*r+2*o]+=a*l,Xr(n,2*r+2*o),n[2*r+2*o+1]+=i*l,Xr(n,2*r+2*o+1),n[2*r+2*o+1]+=a*s,Xr(n,2*r+2*o+1),n[2*r+2*o+2]+=i*s,Xr(n,2*r+2*o+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 zr(n,0)},V.gb=function(e){return eo(this,e).h},V.and=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.D(r)&e.D(r);return new zr(n,this.h&e.h)},V.or=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.D(r)|e.D(r);return new zr(n,this.h|e.h)},V.xor=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.D(r)^e.D(r);return new zr(n,this.h^e.h)},Nr.prototype.createWebChannel=Nr.prototype.g,Dr.prototype.send=Dr.prototype.u,Dr.prototype.open=Dr.prototype.m,Dr.prototype.close=Dr.prototype.close,Lt.NO_ERROR=0,Lt.TIMEOUT=8,Lt.HTTP_ERROR=6,Zt.COMPLETE="complete",zt.EventType=Bt,Bt.OPEN="a",Bt.CLOSE="b",Bt.ERROR="c",Bt.MESSAGE="d",nt.prototype.listen=nt.prototype.O,Jn.prototype.listenOnce=Jn.prototype.P,Jn.prototype.getLastError=Jn.prototype.Sa,Jn.prototype.getLastErrorCode=Jn.prototype.Ia,Jn.prototype.getStatus=Jn.prototype.da,Jn.prototype.getResponseJson=Jn.prototype.Wa,Jn.prototype.getResponseText=Jn.prototype.ja,Jn.prototype.send=Jn.prototype.ha,Jn.prototype.setWithCredentials=Jn.prototype.Oa,jr.prototype.digest=jr.prototype.l,jr.prototype.reset=jr.prototype.reset,jr.prototype.update=jr.prototype.j,zr.prototype.add=zr.prototype.add,zr.prototype.multiply=zr.prototype.R,zr.prototype.modulo=zr.prototype.gb,zr.prototype.compare=zr.prototype.X,zr.prototype.toNumber=zr.prototype.ea,zr.prototype.toString=zr.prototype.toString,zr.prototype.getBits=zr.prototype.D,zr.fromNumber=Vr,zr.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);if("-"==t.charAt(0))return Yr(e(t.substring(1),n));if(0<=t.indexOf("-"))throw Error('number format error: interior "-" character');for(var r=Vr(Math.pow(n,8)),o=Wr,i=0;i<t.length;i+=8){var a=Math.min(8,t.length-i),s=parseInt(t.substring(i,i+a),n);8>a?(a=Vr(Math.pow(n,a)),o=o.R(a).add(Vr(s))):o=(o=o.R(r)).add(Vr(s))}return o};var ro=Q.createWebChannelTransport=function(){return new Nr},oo=Q.getStatEventTarget=function(){return It()},io=Q.ErrorCode=Lt,ao=Q.EventType=Zt,so=Q.Event=Tt,lo=Q.Stat={xb:0,Ab:1,Bb:2,Ub:3,Zb:4,Wb:5,Xb:6,Vb:7,Tb:8,Yb:9,PROXY:10,NOPROXY:11,Rb:12,Nb:13,Ob:14,Mb:15,Pb:16,Qb:17,tb:18,sb:19,ub:20},co=Q.FetchXmlHttpFactory=qn,uo=Q.WebChannel=zt,ho=Q.XhrIo=Jn,fo=Q.Md5=jr,po=Q.Integer=zr;const mo="@firebase/firestore";class go{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}}go.UNAUTHENTICATED=new go(null),go.GOOGLE_CREDENTIALS=new go("google-credentials-uid"),go.FIRST_PARTY=new go("first-party-uid"),go.MOCK_USER=new go("mock-user");let yo="10.5.2";const vo=new q.Yd("@firebase/firestore");function bo(){return vo.logLevel}function wo(e){if(vo.logLevel<=q.in.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 o=n.map(So);vo.debug("Firestore (".concat(yo,"): ").concat(e),...o)}}function xo(e){if(vo.logLevel<=q.in.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 o=n.map(So);vo.error("Firestore (".concat(yo,"): ").concat(e),...o)}}function ko(e){if(vo.logLevel<=q.in.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 o=n.map(So);vo.warn("Firestore (".concat(yo,"): ").concat(e),...o)}}function So(e){if("string"==typeof e)return e;try{return function(e){return JSON.stringify(e)}(e)}catch(t){return e}}function Eo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unexpected state";const t="FIRESTORE (".concat(yo,") INTERNAL ASSERTION FAILED: ")+e;throw xo(t),new Error(t)}function Co(e,t){e||Eo()}function _o(e,t){return e}const To={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 Oo extends G.ZR{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>"".concat(this.name,": [code=").concat(this.code,"]: ").concat(this.message)}}class Io{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}class Ao{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization","Bearer ".concat(e))}}class Po{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable((()=>t(go.UNAUTHENTICATED)))}shutdown(){}}class Ro{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 No{constructor(e){this.t=e,this.currentUser=go.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 o=new Io;this.o=()=>{this.i++,this.currentUser=this.u(),o.resolve(),o=new Io,e.enqueueRetryable((()=>r(this.currentUser)))};const i=()=>{const t=o;e.enqueueRetryable((async()=>{await t.promise,await r(this.currentUser)}))},a=e=>{wo("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=e,this.auth.addAuthTokenListener(this.o),i()};this.t.onInit((e=>a(e))),setTimeout((()=>{if(!this.auth){const e=this.t.getImmediate({optional:!0});e?a(e):(wo("FirebaseAuthCredentialsProvider","Auth not yet detected"),o.resolve(),o=new Io)}}),0),i()}getToken(){const e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then((t=>this.i!==e?(wo("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):t?(Co("string"==typeof t.accessToken),new Ao(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 Co(null===e||"string"==typeof e),new go(e)}}class Do{constructor(e,t,n){this.l=e,this.h=t,this.P=n,this.type="FirstParty",this.user=go.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 Mo{constructor(e,t,n){this.l=e,this.h=t,this.P=n}getToken(){return Promise.resolve(new Do(this.l,this.h,this.P))}start(e,t){e.enqueueRetryable((()=>t(go.FIRST_PARTY)))}shutdown(){}invalidateToken(){}}class Lo{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 Zo{constructor(e){this.A=e,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(e,t){const n=e=>{null!=e.error&&wo("FirebaseAppCheckTokenProvider","Error getting App Check token; using placeholder token instead. Error: ".concat(e.error.message));const n=e.token!==this.R;return this.R=e.token,wo("FirebaseAppCheckTokenProvider","Received ".concat(n?"new":"existing"," token.")),n?t(e.token):Promise.resolve()};this.o=t=>{e.enqueueRetryable((()=>n(t)))};const r=e=>{wo("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):wo("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}}),0)}getToken(){const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then((e=>e?(Co("string"==typeof e.token),this.R=e.token,new Lo(e.token)):null)):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function jo(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;
2r++)n[r]=Math.floor(256*Math.random());return n}class Fo{static newId(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=62*Math.floor(256/62);let n="";for(;n.length<20;){const r=jo(40);for(let o=0;o<r.length;++o)n.length<20&&r[o]<t&&(n+=e.charAt(r[o]%62))}return n}}function zo(e,t){return e<t?-1:e>t?1:0}function Uo(e,t,n){return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))}class Bo{constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new Oo(To.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new Oo(To.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800)throw new Oo(To.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new Oo(To.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}static now(){return Bo.fromMillis(Date.now())}static fromDate(e){return Bo.fromMillis(e.getTime())}static fromMillis(e){const t=Math.floor(e/1e3),n=Math.floor(1e6*(e-1e3*t));return new Bo(t,n)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?zo(this.nanoseconds,e.nanoseconds):zo(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")}}class Vo{constructor(e){this.timestamp=e}static fromTimestamp(e){return new Vo(e)}static min(){return new Vo(new Bo(0,0))}static max(){return new Vo(new Bo(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 Ho{constructor(e,t,n){void 0===t?t=0:t>e.length&&Eo(),void 0===n?n=e.length-t:n>e.length-t&&Eo(),this.segments=e,this.offset=t,this.len=n}get length(){return this.len}isEqual(e){return 0===Ho.comparator(this,e)}child(e){const t=this.segments.slice(this.offset,this.limit());return e instanceof Ho?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),o=t.get(r);if(n<o)return-1;if(n>o)return 1}return e.length<t.length?-1:e.length>t.length?1:0}}class Wo extends Ho{construct(e,t,n){return new Wo(e,t,n)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}static fromString(){const e=[];for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const o of n){if(o.indexOf("//")>=0)throw new Oo(To.INVALID_ARGUMENT,"Invalid segment (".concat(o,"). Paths must not contain // in them."));e.push(...o.split("/").filter((e=>e.length>0)))}return new Wo(e)}static emptyPath(){return new Wo([])}}const qo=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class Go extends Ho{construct(e,t,n){return new Go(e,t,n)}static isValidIdentifier(e){return qo.test(e)}canonicalString(){return this.toArray().map((e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Go.isValidIdentifier(e)||(e="`"+e+"`"),e))).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new Go(["__name__"])}static fromServerFormat(e){const t=[];let n="",r=0;const o=()=>
vendor: 10,076 bytes, line 2
2{if(0===n.length)throw new Oo(To.INVALID_ARGUMENT,"Invalid field path (".concat(e,"). Paths must not be empty, begin with '.', end with '.', or contain '..'"));t.push(n),n=""};let i=!1;for(;r<e.length;){const t=e[r];if("\\"===t){if(r+1===e.length)throw new Oo(To.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const t=e[r+1];if("\\"!==t&&"."!==t&&"`"!==t)throw new Oo(To.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);n+=t,r+=2}else"`"===t?(i=!i,r++):"."!==t||i?(n+=t,r++):(o(),r++)}if(o(),i)throw new Oo(To.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new Go(t)}static emptyPath(){return new Go([])}}class Ko{constructor(e){this.path=e}static fromPath(e){return new Ko(Wo.fromString(e))}static fromName(e){return new Ko(Wo.fromString(e).popFirst(5))}static empty(){return new Ko(Wo.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===Wo.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,t){return Wo.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new Ko(new Wo(e.slice()))}}class Qo{constructor(e,t,n,r){this.indexId=e,this.collectionGroup=t,this.fields=n,this.indexState=r}}Qo.UNKNOWN_ID=-1;function Yo(e,t){const n=e.toTimestamp().seconds,r=e.toTimestamp().nanoseconds+1,o=Vo.fromTimestamp(1e9===r?new Bo(n+1,0):new Bo(n,r));return new Xo(o,Ko.empty(),t)}function $o(e){return new Xo(e.readTime,e.key,-1)}class Xo{constructor(e,t,n){this.readTime=e,this.documentKey=t,this.largestBatchId=n}static min(){return new Xo(Vo.min(),Ko.empty(),-1)}static max(){return new Xo(Vo.max(),Ko.empty(),-1)}}function Jo(e,t){let n=e.readTime.compareTo(t.readTime);return 0!==n?n:(n=Ko.comparator(e.documentKey,t.documentKey),0!==n?n:zo(e.largestBatchId,t.largestBatchId))}const ei="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class ti{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach((e=>e()))}}async function ni(e){if(e.code!==To.FAILED_PRECONDITION||e.message!==ei)throw e;wo("LocalStore","Unexpectedly lost primary lease")}class ri{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&&Eo(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(t,this.error):this.wrapSuccess(e,this.result):new ri(((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 ri?t:ri.resolve(t)}catch(e){return ri.reject(e)}}wrapSuccess(e,t){return e?this.wrapUserFunction((()=>e(t))):ri.resolve(t)}wrapFailure(e,t){return e?this.wrapUserFunction((()=>e(t))):ri.reject(t)}static resolve(e){return new ri(((t,n)=>{t(e)}))}static reject(e){return new ri(((t,n)=>{n(e)}))}static waitFor(e){return new ri(((t,n)=>{let r=0,o=0,i=!1;e.forEach((e=>{++r,e.next((()=>{++o,i&&o===r&&t()}),(e=>n(e)))})),i=!0,o===r&&t()}))}static or(e){let t=ri.resolve(!1);for(const n of e)t=t.next((e=>e?ri.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 ri(((n,r)=>{const o=e.length,i=new Array(o);let a=0;for(let s=0;s<o;s++){const l=s;t(e[l]).next((e=>{i[l]=e,++a,a===o&&n(i)}),(e=>r(e)))}}))}static doWhile(e,t){return new ri(((n,r)=>{const o=()=>{!0===e()?t().next((()=>{o()}),r):n()};o()}))}}function oi(e){return"IndexedDbTransactionError"===e.name}class ii{constructor(e,t){this.previousValue=e,t&&(t.sequenceNumberHandler=e=>this.se(e),this.oe=e=>t.writeSequenceNumber(e))}se(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this.oe&&this.oe(e),e}}function ai(e){return null==e}function si(e){return 0===e&&1/e==-1/0}function li(e){return"number"==typeof e&&Number.isInteger(e)&&!si(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER}ii._e=-1;const ci=["mutationQueues","mutations","documentMutations","remoteDocuments","targets","owner","targetGlobal","targetDocuments","clientMetadata","remoteDocumentGlobal","collectionParents","bundles","namedQueries"],ui=["mutationQueues","mutations","documentMutations","remoteDocumentsV14","targets","owner","targetGlobal","targetDocuments","clientMetadata","remoteDocumentGlobal","collectionParents","bundles","namedQueries","documentOverlays"],di=ui;function hi(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function fi(e,t){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function pi(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}class mi{constructor(e,t){this.comparator=e,this.root=t||yi.EMPTY}insert(e,t){return new mi(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,yi.BLACK,null,null))}remove(e){return new mi(this.comparator,this.root.remove(e,this.comparator).copy(null,null,yi.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("".concat(t,":").concat(n)),!1))),"{".concat(e.join(", "),"}")}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new gi(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new gi(this.root,e,this.comparator,!1)}getReverseIterator(){return new gi(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new gi(this.root,e,this.comparator,!0)}}class gi{constructor(e,t,n,r){this.isReverse=r,this.nodeStack=[];let o=1;for(;!e.isEmpty();)if(o=t?n(e.key,t):1,t&&r&&(o*=-1),o<0)e=this.isReverse?e.left:e.right;else{if(0===o){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 yi{constructor(e,t,n,r,o){this.key=e,this.value=t,this.color=null!=n?n:yi.RED,this.left=null!=r?r:yi.EMPTY,this.right=null!=o?o:yi.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,n,r,o){return new yi(null!=e?e:this.key,null!=t?t:this.value,null!=n?n:this.color,null!=r?r:this.left,null!=o?o: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 o=n(e,r.key);return r=o<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===o?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 yi.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 yi.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,yi.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,yi.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 Eo();if(this.right.isRed())throw Eo();const e=this.left.check();if(e!==this.right.check())throw Eo();return e+(this.isRed()?0:1)}}
2yi.EMPTY=null,yi.RED=!0,yi.BLACK=!1,yi.EMPTY=new class{constructor(){this.size=0}get key(){throw Eo()}get value(){throw Eo()}get color(){throw Eo()}get left(){throw Eo()}get right(){throw Eo()}copy(e,t,n,r,o){return this}insert(e,t,n){return new yi(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 vi{constructor(e){this.comparator=e,this.data=new mi(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 bi(this.data.getIterator())}getIteratorFrom(e){return new bi(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 vi))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 vi(this.comparator);return t.data=e,t}}class bi{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class wi{constructor(e){this.fields=e,e.sort(Go.comparator)}static empty(){return new wi([])}unionWith(e){let t=new vi(Go.comparator);for(const n of this.fields)t=t.add(n);for(const n of e)t=t.add(n);return new wi(t.toArray())}covers(e){for(const t of this.fields)if(t.isPrefixOf(e))return!0;return!1}isEqual(e){return Uo(this.fields,e.fields,((e,t)=>e.isEqual(t)))}}class xi extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class ki{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 xi("Invalid base64 string: "+e):e}}(e);return new ki(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 ki(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 function(e){return btoa(e)}(this.binaryString)}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 zo(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}ki.EMPTY_BYTE_STRING=new ki("");const Si=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Ei(e){if(Co(!!e),"string"==typeof e){let t=0;const n=Si.exec(e);if(Co(!!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:Ci(e.seconds),nanos:Ci(e.nanos)}}function Ci(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function _i(e){return"string"==typeof e?ki.fromBase64String(e):ki.fromUint8Array(e)}function Ti(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 Oi(e){const t=e.mapValue.fields.__previous_value__;return Ti(t)?Oi(t):t}function Ii(e){const t=Ei(e.mapValue.fields.__local_write_time__.timestampValue);return new Bo(t.seconds,t.nanos)}class Ai{constructor(e,t,n,r,o,i,a,s,l){this.databaseId=e,this.appId=t,this.persistenceKey=n,this.host=r,this.ssl=o,this.forceLongPolling=i,this.autoDetectLongPolling=a,this.longPollingOptions=s,this.useFetchStreams=l}}class Pi{constructor(e,t){this.projectId=e,this.database=t||"(default)"}static empty(){return new Pi("","")}get isDefaultDatabase(){return"(default)"===this.database}isEqual(e){return e instanceof Pi&&e.projectId===this.projectId&&e.database===this.database}}const Ri={mapValue:{fields:{__type__:{stringValue:"__max__"}}}};function Ni(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?Ti(e)?4:Gi(e)?9007199254740991:10:Eo()}function Di(e,t){if(e===t)return!0;const n=Ni(e);if(n!==Ni(t))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return Ii(e).isEqual(Ii(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=Ei(e.timestampValue),r=Ei(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 _i(e.bytesValue).isEqual(_i(t.bytesValue))}(e,t);case 7:return e.referenceValue===t.referenceValue;case 8:return function(e,t){return Ci(e.geoPointValue.latitude)===Ci(t.geoPointValue.latitude)&&Ci(e.geoPointValue.longitude)===Ci(t.geoPointValue.longitude)}(e,t);case 2:return function(e,t){if("integerValue"in e&&"integerValue"in t)return Ci(e.integerValue)===Ci(t.integerValue);if("doubleValue"in e&&"doubleValue"in t){const n=Ci(e.doubleValue),r=Ci(t.doubleValue);return n===r?si(n)===si(r):isNaN(n)&&isNaN(r)}return!1}(e,t);case 9:return Uo(e.arrayValue.values||[],t.arrayValue.values||[],Di);case 10:return function(e,t){const n=e.mapValue.fields||{},r=t.mapValue.fields||{};if(hi(n)!==hi(r))return!1;for(const o in n)if(n.hasOwnProperty(o)&&(void 0===r[o]||!Di(n[o],r[o])))return!1;return!0}(e,t);default:return Eo()}}function Mi(e,t){return void 0!==(e.values||[]).find((e=>Di(e,t)))}function Li(e,t){if(e===t)return 0;const n=Ni(e),r=Ni(t);if(n!==r)return zo(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return zo(e.booleanValue,t.booleanValue);case 2:return function(e,t){const n=Ci(e.integerValue||e.doubleValue),r=Ci(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 Zi(e.timestampValue,t.timestampValue);case 4:return Zi(Ii(e),Ii(t));case 5:return zo(e.stringValue,t.stringValue);case 6:return function(e,t){const n=_i(e),r=_i(t);return n.compareTo(r)}(e.bytesValue,t.bytesValue);case 7:return function(e,t){const n=e.split("/"),r=t.split("/");for(let o=0;o<n.length&&o<r.length;o++){const e=zo(n[o],r[o]);if(0!==e)return e}return zo(n.length,r.length)}(e.referenceValue,t.referenceValue);case 8:return function(e,t){const n=zo(Ci(e.latitude),Ci(t.latitude));return 0!==n?n:zo(Ci(e.longitude),Ci(t.longitude))}(e.geoPointValue,t.geoPointValue);case 9:return function(e,t){const n=e.values||[],r=t.values||[];for(let o=0;o<n.length&&o<r.length;++o){const e=Li(n[o],r[o]);if(e)return e}return zo(n.length,r.length)}(e.arrayValue,t.arrayValue);case 10:return function(e,t){if(e===Ri.mapValue&&t===Ri.mapValue)return 0;if(e===Ri.mapValue)return 1;if(t===Ri.mapValue)return-1;const n=e.fields||{},r=Object.keys(n),o=t.fields||{},i=Object.keys(o);r.sort(),i.sort();for(let a=0;a<r.length&&a<i.length;++a){const e=zo(r[a],i[a]);if(0!==e)return e;const t=Li(n[r[a]],o[i[a]]);if(0!==t)return t}return zo(r.length,i.length)}(e.mapValue,t.mapValue);default:throw Eo()}}function Zi(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return zo(e,t);const n=Ei(e),r=Ei(t),o=zo(n.seconds,r.seconds);return 0!==o?o:zo(n.nanos,r.nanos)}function ji(e){return Fi(e)}function Fi(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=Ei(e);return"time(".concat(t.seconds,",").concat(t.nanos,")")}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?function(e){return _i(e).toBase64()}(e.bytesValue):"referenceValue"in e?function(e){return Ko.fromName(e).toString()}(e.referenceValue):"geoPointValue"in e?function(e){return"geo(".concat(e.latitude,",").concat(e.longitude,")")}(e.geoPointValue):"arrayValue"in e?function(e){let t="[",n=!0;for(const r of e.values||[])n?n=!1:t+=",",t+=Fi(r);return t+"]"}(e.arrayValue):"mapValue"in e?function(e){const t=Object.keys(e.fields||{}).sort();let n="{",r=!0;for(const o of t)r?r=!1:n+=",",n+="".concat(o,":").concat(Fi(e.f
2ields[o]));return n+"}"}(e.mapValue):Eo()}function zi(e,t){return{referenceValue:"projects/".concat(e.projectId,"/databases/").concat(e.database,"/documents/").concat(t.path.canonicalString())}}function Ui(e){return!!e&&"integerValue"in e}function Bi(e){return!!e&&"arrayValue"in e}function Vi(e){return!!e&&"nullValue"in e}function Hi(e){return!!e&&"doubleValue"in e&&isNaN(Number(e.doubleValue))}function Wi(e){return!!e&&"mapValue"in e}function qi(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 fi(e.mapValue.fields,((e,n)=>t.mapValue.fields[e]=qi(n))),t}if(e.arrayValue){const t={arrayValue:{values:[]}};for(let n=0;n<(e.arrayValue.values||[]).length;++n)t.arrayValue.values[n]=qi(e.arrayValue.values[n]);return t}return Object.assign({},e)}function Gi(e){return"__max__"===(((e.mapValue||{}).fields||{}).__type__||{}).stringValue}class Ki{constructor(e){this.value=e}static empty(){return new Ki({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)],!Wi(t))return null;return t=(t.mapValue.fields||{})[e.lastSegment()],t||null}}set(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=qi(t)}setAll(e){let t=Go.emptyPath(),n={},r=[];e.forEach(((e,o)=>{if(!t.isImmediateParentOf(o)){const e=this.getFieldsMap(t);this.applyChanges(e,n,r),n={},r=[],t=o.popLast()}e?n[o.lastSegment()]=qi(e):r.push(o.lastSegment())}));const o=this.getFieldsMap(t);this.applyChanges(o,n,r)}delete(e){const t=this.field(e.popLast());Wi(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}isEqual(e){return Di(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)];Wi(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},t.mapValue.fields[e.get(n)]=r),t=r}return t.mapValue.fields}applyChanges(e,t,n){fi(t,((t,n)=>e[t]=n));for(const r of n)delete e[r]}clone(){return new Ki(qi(this.value))}}function Qi(e){const t=[];return fi(e.fields,((e,n)=>{const r=new Go([e]);if(Wi(n)){const e=Qi(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 wi(t)}class Yi{constructor(e,t,n,r,o,i,a){this.key=e,this.documentType=t,this.version=n,this.readTime=r,this.createTime=o,this.data=i,this.documentState=a}static newInvalidDocument(e){return new Yi(e,0,Vo.min(),Vo.min(),Vo.min(),Ki.empty(),0)}static newFoundDocument(e,t,n,r){return new Yi(e,1,t,Vo.min(),n,r,0)}static newNoDocument(e,t){return new Yi(e,2,t,Vo.min(),Vo.min(),Ki.empty(),0)}static newUnknownDocument(e,t){return new Yi(e,3,t,Vo.min(),Vo.min(),Ki.empty(),2)}convertToFoundDocument(e,t){return!this.createTime.isEqual(Vo.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=Ki.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=Ki.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=Vo.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 Yi&&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 Yi(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return"Document(".concat(this.key,", ").concat(this.version,", ").concat(JSON.stringify(this.data.value),", {createTime: ").concat(this.createTime,"}), {documentType: ").concat(this.documentType,"}), {documentState: ").concat(this.documentState,"})")}}class $i{constructor(e,t){this.position=e,this.inclusive=t}}function Xi(e,t,n){let r=0;for(let o=0;o<e.position.length;o++){const i=t[o],a=e.position[o];if(r=i.field.isKeyField()?Ko.comparator(Ko.fromName(a.referenceValue),n.key):Li(a,n.data.field(i.field)),"desc"===i.dir&&(r*=-1),0!==r)break}return r}function Ji(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(!Di(e.position[n],t.position[n]))return!1;return!0}class ea{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc";this.field=e,this.dir=t}}function ta(e,t){return e.dir===t.dir&&e.field.isEqual(t.field)}class na{}class ra extends na{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 da(e,t,n
2):"array-contains"===t?new ma(e,n):"in"===t?new ga(e,n):"not-in"===t?new ya(e,n):"array-contains-any"===t?new va(e,n):new ra(e,t,n)}static createKeyFieldInFilter(e,t,n){return"in"===t?new ha(e,n):new fa(e,n)}matches(e){const t=e.data.field(this.field);return"!="===this.op?null!==t&&this.matchesComparison(Li(t,this.value)):null!==t&&Ni(this.value)===Ni(t)&&this.matchesComparison(Li(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 Eo()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class oa extends na{constructor(e,t){super(),this.filters=e,this.op=t,this.ue=null}static create(e,t){return new oa(e,t)}matches(e){return ia(this)?void 0===this.filters.find((t=>!t.matches(e))):void 0!==this.filters.find((t=>t.matches(e)))}getFlattenedFilters(){return null!==this.ue||(this.ue=this.filters.reduce(((e,t)=>e.concat(t.getFlattenedFilters())),[])),this.ue}getFilters(){return Object.assign([],this.filters)}}function ia(e){return"and"===e.op}function aa(e){return sa(e)&&ia(e)}function sa(e){for(const t of e.filters)if(t instanceof oa)return!1;return!0}function la(e){if(e instanceof ra)return e.field.canonicalString()+e.op.toString()+ji(e.value);if(aa(e))return e.filters.map((e=>la(e))).join(",");{const t=e.filters.map((e=>la(e))).join(",");return"".concat(e.op,"(").concat(t,")")}}function ca(e,t){return e instanceof ra?function(e,t){return t instanceof ra&&e.op===t.op&&e.field.isEqual(t.field)&&Di(e.value,t.value)}(e,t):e instanceof oa?function(e,t){return t instanceof oa&&e.op===t.op&&e.filters.length===t.filters.length&&e.filters.reduce(((e,n,r)=>e&&ca(n,t.filters[r])),!0)}(e,t):void Eo()}function ua(e){return e instanceof ra?function(e){return"".concat(e.field.canonicalString()," ").concat(e.op," ").concat(ji(e.value))}(e):e instanceof oa?function(e){return e.op.toString()+" {"+e.getFilters().map(ua).join(" ,")+"}"}(e):"Filter"}class da extends ra{constructor(e,t,n){super(e,t,n),this.key=Ko.fromName(n.referenceValue)}matches(e){const t=Ko.comparator(e.key,this.key);return this.matchesComparison(t)}}class ha extends ra{constructor(e,t){super(e,"in",t),this.keys=pa("in",t)}matches(e){return this.keys.some((t=>t.isEqual(e.key)))}}class fa extends ra{constructor(e,t){super(e,"not-in",t),this.keys=pa("not-in",t)}matches(e){return!this.keys.some((t=>t.isEqual(e.key)))}}function pa(e,t){var n;return((null===(n=t.arrayValue)||void 0===n?void 0:n.values)||[]).map((e=>Ko.fromName(e.referenceValue)))}class ma extends ra{constructor(e,t){super(e,"array-contains",t)}matches(e){const t=e.data.field(this.field);return Bi(t)&&Mi(t.arrayValue,this.value)}}class ga extends ra{constructor(e,t){super(e,"in",t)}matches(e){const t=e.data.field(this.field);return null!==t&&Mi(this.value.arrayValue,t)}}class ya extends ra{constructor(e,t){super(e,"not-in",t)}matches(e){if(Mi(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const t=e.data.field(this.field);return null!==t&&!Mi(this.value.arrayValue,t)}}class va extends ra{constructor(e,t){super(e,"array-contains-any",t)}matches(e){const t=e.data.field(this.field);return!(!Bi(t)||!t.arrayValue.values)&&t.arrayValue.values.some((e=>Mi(this.value.arrayValue,e)))}}class ba{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]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=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=o,this.startAt=i,this.endAt=a,this.ce=null}}function wa(e){return new ba(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 xa(e){const t=_o(e);if(null===t.ce){let e=t.path.canonicalString();null!==t.collectionGroup&&(e+="|cg:"+t.collectionGroup),e+="|f:",e+=t.filters.map((e=>la(e))).join(","),e+="|ob:",e+=t.orderBy.map((e=>function(e){return e.field.canonicalString()+e.dir}(e))).join(","),ai(t.limit)||(e+="|l:",e+=t.limit),t.startAt&&(e+="|lb:",e+=t.startAt.inclusive?"b:":"a:",e+=t.startAt.position.map((e=>ji(e))).join(",")),t.endAt&&(e+="|ub:",e+=t.endAt.inclusive?"a:":"b:",e+=t.endAt.position.map((e=>ji(e))).join(",")),t.ce=e}return t.ce}function ka(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(!ta(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(!ca(e.filters[n],t.filters[n]))return!1;return e.collectionGroup===t.collectionGroup&&!!e.path.isEqual(t.path)&&!!Ji(e.startAt,t.startAt)&&Ji(e.endAt,t.endAt)}function Sa(e){return Ko.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}class Ea{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]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"F",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;this.path=e,this.collectionGroup=t,this.explicitOrderBy=n,this.filters=r,this.limit=o,this.limitType=i,this.startAt=a,this.endAt=s,this.le=null,this.he=null,this.Pe=null,this.startAt,this.endAt}}function Ca(e,t,n,r,o,i,a,s){return new Ea(e,t,n,r,o,i,a,s)}function _a(e){return new Ea(e)}function Ta(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 Oa(e){return null!==e.collectionGroup}function Ia(e){const t=_o(e);if(null===t.le){t.le=[];const e=new Set;for(const o of t.explicitOrderBy)t.le.push(o),e.add(o.field.canonicalString());const n=t.explicitOrderBy.length>0?t.explicitOrderBy[t.explicitOrderBy.length-1].dir:"asc",r=function(e){let t=new vi(Go.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.le.push(new ea(r,n))})),e.has(Go.keyField().canonicalString())||t.le.push(new ea(Go.keyField(),n))}return t.le}function Aa(e){const t=_o(e);return t.he||(t.he=Pa(t,Ia(e))),t.he}function Pa(e,t){if("F"===e.limitType)return wa(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 ea(e.field,t)}));const n=e.endAt?new $i(e.endAt.position,e.endAt.inclusive):null,r=e.startAt?new $i(e.startAt.position,e.startAt.inclusive):null;return wa(e.path,e.collectionGroup,t,e.filters,e.limit,n,r)}}function Ra(e,t){const n=e.filters.concat([t]);return new Ea(e.path,e.collectionGroup,e.explicitOrderBy.slice(),n,e.limit,e.limitType,e.startAt,e.endAt)}function Na(e,t,n){return new Ea(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),t,n,e.startAt,e.endAt)}function Da(e,t){return ka(Aa(e),Aa(t))&&e.limitType===t.limitType}function Ma(e){return"".concat(xa(Aa(e)),"|lt:").concat(e.limitType)}function La(e){return"Query(target=".concat(function(e){let t=e.path.canonicalString();return null!==e.collectionGroup&&(t+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(t+=", filters: [".concat(e.filters.map((e=>ua(e))).join(", "),"]")),ai(e.limit)||(t+=", limit: "+e.limit),e.orderBy.length>0&&(t+=", orderBy: [".concat(e.orderBy.map((e=>function(e){return"".concat(e.field.canonicalString()," (").concat(e.dir,")")}(e))).join(", "),"]")),e.startAt&&(t+=", startAt: ",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map((e=>ji(e))).join(",")),e.endAt&&(t+=", endAt: ",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map((e=>ji(e))).join(",")),"Target(".concat(t,")")}(Aa(e)),"; limitType=").concat(e.limitType,")")}function Za(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):Ko.isDocumentKey(e.path)?e.path.isEqual(n):e.path.isImmediateParentOf(n)}(e,t)&&function(e,t){for(const n of Ia(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=Xi(e,t,n);return e.inclusive?r<=0:r<0}(e.startAt,Ia(e),t))&&!(e.endAt&&!function(e,t,n){const r=Xi(e,t,n);return e.inclusive?r>=0:r>0}(e.endAt,Ia(e),t))}(e,t)}function ja(e){return e.collectionGroup||(e.path.length%2==1?e.path.lastSegment():e.path.get(e.path.length-2))}function Fa(e){return(t,n)=>{let r=!1;for(const o of Ia(e)){const e=za(o,t,n);if(0!==e)return e;r=r||o.field.isKeyField()}return 0}}function za(e,t,n){const r=e.field.isKeyField()?Ko.comparator(t.key,n.key):function(e,t,n){const r=t.data.field(e),o=n.data.field(e);return null!==r&&null!==o?Li(r,o):Eo()}(e.field,t,n);switch(e.dir){case"asc":return r;case"desc":return-1*r;default:return Eo()}}class Ua{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,o]of n)if(this.equalsFn(r,e))return o}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 o=0;o<r.length;o++)if(this.equalsFn(r[o][0],e))return void(r[o]=[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){fi(this.inner,((t,n)=>{for(const[r,o]of n)e(r,o)}))}isEmpty(){return pi(this.inner)}size(){return this.innerSize}}const Ba=new mi(Ko.comparator);function Va(){return Ba}const Ha=new mi(Ko.comparator);function Wa(){let e=Ha;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const o of n)e=e.insert(o.key,o);return e}function qa(e){let t=Ha;return e.forEach(((e,n)=>t=t.insert(e,n.overlayedDocument))),t}function Ga(){return Qa()}function Ka(){return Qa()}function Qa(){return new Ua((e=>e.toString()),((e,t)=>e.isEqual(t)))}const Ya=new mi(Ko.comparator),$a=new vi(Ko.comparator);function Xa(){let e=$a;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const o of n)e=e.add(o);return e}const Ja=new vi(zo);function es(){return Ja}function ts(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:si(t)?"-0":t}}function ns(e){return{integerValue:""+e}}function rs(e,t){return li(t)?ns(t):ts(e,t)}class os{constructor(){this._=void 0}}function is(e,t,n){return e instanceof ls?function(e,t){const n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:e.seconds,nanos:e.nanoseconds}}}};return t&&Ti(t)&&(t=Oi(t)),t&&(n.fields.__previous_value__=t),{mapValue:n}}(n,t):e instanceof cs?us(e,t):e instanceof ds?hs(e,t):function(e,t){const n=ss(e,t),r=ps(n)+ps(e.Ie);return Ui(n)&&Ui(e.Ie)?ns(r):ts(e.serializer,r)}(e,t)}function as(e,t,n){return e instanceof cs?us(e,t):e instanceof ds?hs(e,t):n}function ss(e,t){return e instanceof fs?function(e){return Ui(e)||function(e){return!!e&&"doubleValue"in e}(e)}(t)?t:{integerValue:0}:null}class ls extends os{}class cs extends os{constructor(e){super(),this.elements=e}}function us(e,t){const n=ms(t);for(const r of e.elements)n.some((e=>Di(e,r)))||n.push(r);return{arrayValue:{values:n}}}class ds extends os{constructor(e){super(),this.elements=e}}function hs(e,t){let n=ms(t);for(const r of e.elements)n=n.filter((e=>!Di(e,r)));return{arrayValue:{values:n}}}
2class fs extends os{constructor(e,t){super(),this.serializer=e,this.Ie=t}}function ps(e){return Ci(e.integerValue||e.doubleValue)}function ms(e){return Bi(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}class gs{constructor(e,t){this.field=e,this.transform=t}}class ys{constructor(e,t){this.version=e,this.transformResults=t}}class vs{constructor(e,t){this.updateTime=e,this.exists=t}static none(){return new vs}static exists(e){return new vs(void 0,e)}static updateTime(e){return new vs(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 bs(e,t){return void 0!==e.updateTime?t.isFoundDocument()&&t.version.isEqual(e.updateTime):void 0===e.exists||e.exists===t.isFoundDocument()}class ws{}function xs(e,t){if(!e.hasLocalMutations||t&&0===t.fields.length)return null;if(null===t)return e.isNoDocument()?new Ps(e.key,vs.none()):new _s(e.key,e.data,vs.none());{const n=e.data,r=Ki.empty();let o=new vi(Go.comparator);for(let e of t.fields)if(!o.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),o=o.add(e)}return new Ts(e.key,r,new wi(o.toArray()),vs.none())}}function ks(e,t,n){e instanceof _s?function(e,t,n){const r=e.value.clone(),o=Is(e.fieldTransforms,t,n.transformResults);r.setAll(o),t.convertToFoundDocument(n.version,r).setHasCommittedMutations()}(e,t,n):e instanceof Ts?function(e,t,n){if(!bs(e.precondition,t))return void t.convertToUnknownDocument(n.version);const r=Is(e.fieldTransforms,t,n.transformResults),o=t.data;o.setAll(Os(e)),o.setAll(r),t.convertToFoundDocument(n.version,o).setHasCommittedMutations()}(e,t,n):function(e,t,n){t.convertToNoDocument(n.version).setHasCommittedMutations()}(0,t,n)}function Ss(e,t,n,r){return e instanceof _s?function(e,t,n,r){if(!bs(e.precondition,t))return n;const o=e.value.clone(),i=As(e.fieldTransforms,r,t);return o.setAll(i),t.convertToFoundDocument(t.version,o).setHasLocalMutations(),null}(e,t,n,r):e instanceof Ts?function(e,t,n,r){if(!bs(e.precondition,t))return n;const o=As(e.fieldTransforms,r,t),i=t.data;return i.setAll(Os(e)),i.setAll(o),t.convertToFoundDocument(t.version,i).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 bs(e.precondition,t)?(t.convertToNoDocument(t.version).setHasLocalMutations(),null):n}(e,t,n)}function Es(e,t){let n=null;for(const r of e.fieldTransforms){const e=t.data.field(r.field),o=ss(r.transform,e||null);null!=o&&(null===n&&(n=Ki.empty()),n.set(r.field,o))}return n||null}function Cs(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)&&Uo(e,t,((e,t)=>function(e,t){return e.field.isEqual(t.field)&&function(e,t){return e instanceof cs&&t instanceof cs||e instanceof ds&&t instanceof ds?Uo(e.elements,t.elements,Di):e instanceof fs&&t instanceof fs?Di(e.Ie,t.Ie):e instanceof ls&&t instanceof ls}(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 _s extends ws{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 Ts extends ws{constructor(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];super(),this.key=e,this.data=t,this.fieldMask=n,this.precondition=r,this.fieldTransforms=o,this.type=1}getFieldMask(){return this.fieldMask}}function Os(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 Is(e,t,n){const r=new Map;Co(e.length===n.length);for(let o=0;o<n.length;o++){const i=e[o],a=i.transform,s=t.data.field(i.field);r.set(i.field,as(a,s,n[o]))}return r}function As(e,t,n){const r=new Map;for(const o of e){const e=o.transform,i=n.data.field(o.field);r.set(o.field,is(e,i,t))}return r}class Ps extends ws{constructor(e,t){super(),this.key=e,this.prec
2ondition=t,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class Rs extends ws{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}class Ns{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)&&ks(t,e,n[r])}}applyToLocalView(e,t){for(const n of this.baseMutations)n.key.isEqual(e.key)&&(t=Ss(n,e,t,this.localWriteTime));for(const n of this.mutations)n.key.isEqual(e.key)&&(t=Ss(n,e,t,this.localWriteTime));return t}applyToLocalDocumentSet(e,t){const n=Ka();return this.mutations.forEach((r=>{const o=e.get(r.key),i=o.overlayedDocument;let a=this.applyToLocalView(i,o.mutatedFields);a=t.has(r.key)?null:a;const s=xs(i,a);null!==s&&n.set(r.key,s),i.isValidDocument()||i.convertToNoDocument(Vo.min())})),n}keys(){return this.mutations.reduce(((e,t)=>e.add(t.key)),Xa())}isEqual(e){return this.batchId===e.batchId&&Uo(this.mutations,e.mutations,((e,t)=>Cs(e,t)))&&Uo(this.baseMutations,e.baseMutations,((e,t)=>Cs(e,t)))}}class Ds{constructor(e,t,n,r){this.batch=e,this.commitVersion=t,this.mutationResults=n,this.docVersions=r}static from(e,t,n){Co(e.mutations.length===n.length);let r=Ya;const o=e.mutations;for(let i=0;i<o.length;i++)r=r.insert(o[i].key,n[i].version);return new Ds(e,t,n,r)}}class Ms{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: ".concat(this.largestBatchId,",\n mutation: ").concat(this.mutation.toString(),"\n }")}}class Ls{constructor(e,t){this.count=e,this.unchangedNames=t}}var Zs,js;function Fs(e){switch(e){default:return Eo();case To.CANCELLED:case To.UNKNOWN:case To.DEADLINE_EXCEEDED:case To.RESOURCE_EXHAUSTED:case To.INTERNAL:case To.UNAVAILABLE:case To.UNAUTHENTICATED:return!1;case To.INVALID_ARGUMENT:case To.NOT_FOUND:case To.ALREADY_EXISTS:case To.PERMISSION_DENIED:case To.FAILED_PRECONDITION:case To.ABORTED:case To.OUT_OF_RANGE:case To.UNIMPLEMENTED:case To.DATA_LOSS:return!0}}function zs(e){if(void 0===e)return xo("GRPC error has no .code"),To.UNKNOWN;switch(e){case Zs.OK:return To.OK;case Zs.CANCELLED:return To.CANCELLED;case Zs.UNKNOWN:return To.UNKNOWN;case Zs.DEADLINE_EXCEEDED:return To.DEADLINE_EXCEEDED;case Zs.RESOURCE_EXHAUSTED:return To.RESOURCE_EXHAUSTED;case Zs.INTERNAL:return To.INTERNAL;case Zs.UNAVAILABLE:return To.UNAVAILABLE;case Zs.UNAUTHENTICATED:return To.UNAUTHENTICATED;case Zs.INVALID_ARGUMENT:return To.INVALID_ARGUMENT;case Zs.NOT_FOUND:return To.NOT_FOUND;case Zs.ALREADY_EXISTS:return To.ALREADY_EXISTS;case Zs.PERMISSION_DENIED:return To.PERMISSION_DENIED;case Zs.FAILED_PRECONDITION:return To.FAILED_PRECONDITION;case Zs.ABORTED:return To.ABORTED;case Zs.OUT_OF_RANGE:return To.OUT_OF_RANGE;case Zs.UNIMPLEMENTED:return To.UNIMPLEMENTED;case Zs.DATA_LOSS:return To.DATA_LOSS;default:return Eo()}}(js=Zs||(Zs={}))[js.OK=0]="OK",js[js.CANCELLED=1]="CANCELLED",js[js.UNKNOWN=2]="UNKNOWN",js[js.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",js[js.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",js[js.NOT_FOUND=5]="NOT_FOUND",js[js.ALREADY_EXISTS=6]="ALREADY_EXISTS",js[js.PERMISSION_DENIED=7]="PERMISSION_DENIED",js[js.UNAUTHENTICATED=16]="UNAUTHENTICATED",js[js.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",js[js.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",js[js.ABORTED=10]="ABORTED",js[js.OUT_OF_RANGE=11]="OUT_OF_RANGE",js[js.UNIMPLEMENTED=12]="UNIMPLEMENTED",js[js.INTERNAL=13]="INTERNAL",js[js.UNAVAILABLE=14]="UNAVAILABLE",js[js.DATA_LOSS=15]="DATA_LOSS";let Us=null;function Bs(){return new TextEncoder}const Vs=new po([4294967295,4294967295],0);function Hs(e){const t=Bs().encode(e),n=new fo;return n.update(t),new Uint8Array(n.digest())}function Ws(e){const t=new DataView(e.buffer),n=t.getUint32(0,!0),r=t.getUint32(4,!0),o=t.getUint32(8,!0),i=t.getUint32(12,!0);return[new po([n,r],0),new po([o,i],0)]}class qs{constructor(e,t,n){if(this.bitmap=e,this.padding=t,this.hashCount=n,t<0||t>=8)throw new Gs("Invalid padding: ".concat(t));if(n<0)throw new Gs("Invalid hash count: ".concat(n));if(e.length>0&&0===this.hashCount)throw new Gs("Invalid hash count: ".concat(n));if(0===e.length&&0!==t)throw new Gs("Invalid padding when bitmap length is 0: ".concat(t));this.Te=8*e.length-t,this.Ee=po.fromNumber(this.Te)}
2de(e,t,n){let r=e.add(t.multiply(po.fromNumber(n)));return 1===r.compare(Vs)&&(r=new po([r.getBits(0),r.getBits(1)],0)),r.modulo(this.Ee).toNumber()}Ae(e){return 0!=(this.bitmap[Math.floor(e/8)]&1<<e%8)}mightContain(e){if(0===this.Te)return!1;const t=Hs(e),[n,r]=Ws(t);for(let o=0;o<this.hashCount;o++){const e=this.de(n,r,o);if(!this.Ae(e))return!1}return!0}static create(e,t,n){const r=e%8==0?0:8-e%8,o=new Uint8Array(Math.ceil(e/8)),i=new qs(o,r,t);return n.forEach((e=>i.insert(e))),i}insert(e){if(0===this.Te)return;const t=Hs(e),[n,r]=Ws(t);for(let o=0;o<this.hashCount;o++){const e=this.de(n,r,o);this.Re(e)}}Re(e){const t=Math.floor(e/8),n=e%8;this.bitmap[t]|=1<<n}}class Gs extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}class Ks{constructor(e,t,n,r,o){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=n,this.documentUpdates=r,this.resolvedLimboDocuments=o}static createSynthesizedRemoteEventForCurrentChange(e,t,n){const r=new Map;return r.set(e,Qs.createSynthesizedTargetChangeForCurrentChange(e,t,n)),new Ks(Vo.min(),r,new mi(zo),Va(),Xa())}}class Qs{constructor(e,t,n,r,o){this.resumeToken=e,this.current=t,this.addedDocuments=n,this.modifiedDocuments=r,this.removedDocuments=o}static createSynthesizedTargetChangeForCurrentChange(e,t,n){return new Qs(n,t,Xa(),Xa(),Xa())}}class Ys{constructor(e,t,n,r){this.Ve=e,this.removedTargetIds=t,this.key=n,this.me=r}}class $s{constructor(e,t){this.targetId=e,this.fe=t}}class Xs{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ki.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 Js{constructor(){this.ge=0,this.pe=nl(),this.ye=ki.EMPTY_BYTE_STRING,this.we=!1,this.Se=!0}get current(){return this.we}get resumeToken(){return this.ye}get be(){return 0!==this.ge}get De(){return this.Se}Ce(e){e.approximateByteSize()>0&&(this.Se=!0,this.ye=e)}ve(){let e=Xa(),t=Xa(),n=Xa();return this.pe.forEach(((r,o)=>{switch(o){case 0:e=e.add(r);break;case 2:t=t.add(r);break;case 1:n=n.add(r);break;default:Eo()}})),new Qs(this.ye,this.we,e,t,n)}Fe(){this.Se=!1,this.pe=nl()}Me(e,t){this.Se=!0,this.pe=this.pe.insert(e,t)}xe(e){this.Se=!0,this.pe=this.pe.remove(e)}Oe(){this.ge+=1}Ne(){this.ge-=1}Be(){this.Se=!0,this.we=!0}}
2class el{constructor(e){this.Le=e,this.ke=new Map,this.qe=Va(),this.Qe=tl(),this.Ke=new mi(zo)}$e(e){for(const t of e.Ve)e.me&&e.me.isFoundDocument()?this.Ue(t,e.me):this.We(t,e.key,e.me);for(const t of e.removedTargetIds)this.We(t,e.key,e.me)}Ge(e){this.forEachTarget(e,(t=>{const n=this.ze(t);switch(e.state){case 0:this.je(t)&&n.Ce(e.resumeToken);break;case 1:n.Ne(),n.be||n.Fe(),n.Ce(e.resumeToken);break;case 2:n.Ne(),n.be||this.removeTarget(t);break;case 3:this.je(t)&&(n.Be(),n.Ce(e.resumeToken));break;case 4:this.je(t)&&(this.He(t),n.Ce(e.resumeToken));break;default:Eo()}}))}forEachTarget(e,t){e.targetIds.length>0?e.targetIds.forEach(t):this.ke.forEach(((e,n)=>{this.je(n)&&t(n)}))}Je(e){const t=e.targetId,n=e.fe.count,r=this.Ye(t);if(r){const o=r.target;if(Sa(o))if(0===n){const e=new Ko(o.path);this.We(t,e,Yi.newNoDocument(e,Vo.min()))}else Co(1===n);else{const r=this.Ze(t);if(r!==n){const n=this.Xe(e),o=n?this.et(n,e,r):1;if(0!==o){this.He(t);const e=2===o?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.Ke=this.Ke.insert(t,e)}null==Us||Us.tt(function(e,t,n,r,o){var i,a,s,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===o,hashCount:null!==(i=null==h?void 0:h.hashCount)&&void 0!==i?i:0,bitmapLength:null!==(l=null===(s=null===(a=null==h?void 0:h.bits)||void 0===a?void 0:a.bitmap)||void 0===s?void 0:s.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.fe,this.Le.nt(),n,o))}}}}Xe(e){const t=e.fe.unchangedNames;if(!t||!t.bits)return null;const{bits:{bitmap:n="",padding:r=0},hashCount:o=0}=t;let i,a;try{i=_i(n).toUint8Array()}catch(e){if(e instanceof xi)return ko("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 qs(i,r,o)}catch(e){return ko(e instanceof Gs?"BloomFilter error: ":"Applying bloom filter failed: ",e),null}return 0===a.Te?null:a}et(e,t,n){return t.fe.count===n-this.rt(e,t.targetId)?0:2}rt(e,t){const n=this.Le.getRemoteKeysForTarget(t);let r=0;return n.forEach((n=>{const o=this.Le.nt(),i="projects/".concat(o.projectId,"/databases/").concat(o.database,"/documents/").concat(n.path.canonicalString());e.mightContain(i)||(this.We(t,n,null),r++)})),r}it(e){const t=new Map;this.ke.forEach(((n,r)=>{const o=this.Ye(r);if(o){if(n.current&&Sa(o.target)){const t=new Ko(o.target.path);null!==this.qe.get(t)||this.st(r,t)||this.We(r,t,Yi.newNoDocument(t,e))}n.De&&(t.set(r,n.ve()),n.Fe())}}));let n=Xa();this.Qe.forEach(((e,t)=>{let r=!0;t.forEachWhile((e=>{const t=this.Ye(e);return!t||"TargetPurposeLimboResolution"===t.purpose||(r=!1,!1)})),r&&(n=n.add(e))})),this.qe.forEach(((t,n)=>n.setReadTime(e)));const r=new Ks(e,t,this.Ke,this.qe,n);return this.qe=Va(),this.Qe=tl(),this.Ke=new mi(zo),r}Ue(e,t){if(!this.je(e))return;const n=this.st(e,t.key)?2:0;this.ze(e).Me(t.key,n),this.qe=this.qe.insert(t.key,t),this.Qe=this.Qe.insert(t.key,this.ot(t.key).add(e))}We(e,t,n){if(!this.je(e))return;const r=this.ze(e);this.st(e,t)?r.Me(t,1):r.xe(t),this.Qe=this.Qe.insert(t,this.ot(t).delete(e)),n&&(this.qe=this.qe.insert(t,n))}removeTarget(e){this.ke.delete(e)}Ze(e){const t=this.ze(e).ve();return this.Le.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size}Oe(e){this.ze(e).Oe()}ze(e){let t=this.ke.get(e);return t||(t=new Js,this.ke.set(e,t)),t}ot(e){let t=this.Qe.get(e);return t||(t=new vi(zo),this.Qe=this.Qe.insert(e,t)),t}je(e){const t=null!==this.Ye(e);return t||wo("WatchChangeAggregator","Detected inactive target",e),t}Ye(e){const t=this.ke.get(e);return t&&t.be?null:this.Le._t(e)}He(e){this.ke.set(e,new Js),this.Le.getRemoteKeysForTarget(e).forEach((t=>{this.We(e,t,null)}))}st(e,t){return this.Le.getRemoteKeysForTarget(e).has(t)}}function tl(){return new mi(Ko.comparator)}function nl(){return new mi(Ko.comparator)}const rl={asc:"ASCENDING",desc:"DESCENDING"},ol={"<":"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"},il={and:"AND",or:"OR"};class al{constructor(e,t){this.databaseId=e,this.useProto3Json=t}}function sl(e,t){return e.useProto3Json||ai(t)?t:{value:t}}function ll(e,t){return e.useProto3Json?"".concat(new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z",""),".").concat(("000000000"+t.nanoseconds).slice(-9),"Z"):{seconds:""+t.seconds,nanos:t.nanoseconds}}function cl(e,t){return e.useProto3Json?t.toBase64():t.toUint8Array()}function ul(e,t){return ll(e,t.toTimestamp())}function dl(e){return Co(!!e),Vo.fromTimestamp(function(e){const t=Ei(e);return new Bo(t.seconds,t.nanos)}(e))}function hl(e,t){return function(e){return new Wo(["projects",e.projectId,"databases",e.database])}(e).child("documents").child(t).canonicalString()}function fl(e){const t=Wo.fromString(e);return Co(Nl(t)),t}function pl(e,t){return hl(e.databaseId,t.path)}function ml(e,t){const n=fl(t);if(n.get(1)!==e.databaseId.projectId)throw new Oo(To.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 Oo(To.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+e.databaseId.database);return new Ko(bl(n))}function gl(e,t){return hl(e.databaseId,t)}function yl(e){const t=fl(e);return 4===t.length?Wo.emptyPath():bl(t)}
2function vl(e){return new Wo(["projects",e.databaseId.projectId,"databases",e.databaseId.database]).canonicalString()}function bl(e){return Co(e.length>4&&"documents"===e.get(4)),e.popFirst(5)}function wl(e,t,n){return{name:pl(e,t),fields:n.value.mapValue.fields}}function xl(e,t){let n;if(t instanceof _s)n={update:wl(e,t.key,t.value)};else if(t instanceof Ps)n={delete:pl(e,t.key)};else if(t instanceof Ts)n={update:wl(e,t.key,t.data),updateMask:Rl(t.fieldMask)};else{if(!(t instanceof Rs))return Eo();n={verify:pl(e,t.key)}}return t.fieldTransforms.length>0&&(n.updateTransforms=t.fieldTransforms.map((e=>function(e,t){const n=t.transform;if(n instanceof ls)return{fieldPath:t.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof cs)return{fieldPath:t.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof ds)return{fieldPath:t.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof fs)return{fieldPath:t.field.canonicalString(),increment:n.Ie};throw Eo()}(0,e)))),t.precondition.isNone||(n.currentDocument=function(e,t){return void 0!==t.updateTime?{updateTime:ul(e,t.updateTime)}:void 0!==t.exists?{exists:t.exists}:Eo()}(e,t.precondition)),n}function kl(e,t){return{documents:[gl(e,t.path)]}}function Sl(e,t){const n={structuredQuery:{}},r=t.path;null!==t.collectionGroup?(n.parent=gl(e,r),n.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(n.parent=gl(e,r.popLast()),n.structuredQuery.from=[{collectionId:r.lastSegment()}]);const o=function(e){if(0!==e.length)return Pl(oa.create(e,"and"))}(t.filters);o&&(n.structuredQuery.where=o);const i=function(e){if(0!==e.length)return e.map((e=>function(e){return{field:Il(e.field),direction:_l(e.dir)}}(e)))}(t.orderBy);i&&(n.structuredQuery.orderBy=i);const a=sl(e,t.limit);return null!==a&&(n.structuredQuery.limit=a),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)),n}function El(e){let t=yl(e.parent);const n=e.structuredQuery,r=n.from?n.from.length:0;let o=null;if(r>0){Co(1===r);const e=n.from[0];e.allDescendants?o=e.collectionId:t=t.child(e.collectionId)}let i=[];n.where&&(i=function(e){const t=Cl(e);return t instanceof oa&&aa(t)?t.getFilters():[t]}(n.where));let a=[];n.orderBy&&(a=function(e){return e.map((e=>function(e){return new ea(Al(e.field),function(e){switch(e){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction))}(e)))}(n.orderBy));let s=null;n.limit&&(s=function(e){let t;return t="object"==typeof e?e.value:e,ai(t)?null:t}(n.limit));let l=null;n.startAt&&(l=function(e){const t=!!e.before,n=e.values||[];return new $i(n,t)}(n.startAt));let c=null;return n.endAt&&(c=function(e){const t=!e.before,n=e.values||[];return new $i(n,t)}(n.endAt)),Ca(t,o,a,i,s,"F",l,c)}function Cl(e){return void 0!==e.unaryFilter?function(e){switch(e.unaryFilter.op){case"IS_NAN":const t=Al(e.unaryFilter.field);return ra.create(t,"==",{doubleValue:NaN});case"IS_NULL":const n=Al(e.unaryFilter.field);return ra.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const r=Al(e.unaryFilter.field);return ra.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const o=Al(e.unaryFilter.field);return ra.create(o,"!=",{nullValue:"NULL_VALUE"});default:return Eo()}}(e):void 0!==e.fieldFilter?function(e){return ra.create(Al(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 Eo()}}(e.fieldFilter.op),e.fieldFilter.value)}(e):void 0!==e.compositeFilter?function(e){return oa.create(e.compositeFilter.filters.map((e=>Cl(e))),function(e){switch(e){case"AND":return"and";case"OR":return"or";default:return Eo()}}(e.compositeFilter.op))}(e):Eo()}function _l(e){return rl[e]}function Tl(e){return ol[e]}function Ol(e){return il[e]}function Il(e){return{fieldPath:e.canonicalString()}}function Al(e){return Go.fromServerFormat(e.fieldPath)}function Pl(e){return e instanceof ra?function(e){if("=="===e.op){if(Hi(e.value))return{unaryFilter:{field:Il(e.field),op:"IS_NAN"}};if(Vi(e.value))return{unaryFilter:{field:Il(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(Hi(e.value))return{unaryFilter:{field:Il(e.field),op:"IS_NOT_NA
2N"}};if(Vi(e.value))return{unaryFilter:{field:Il(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Il(e.field),op:Tl(e.op),value:e.value}}}(e):e instanceof oa?function(e){const t=e.getFilters().map((e=>Pl(e)));return 1===t.length?t[0]:{compositeFilter:{op:Ol(e.op),filters:t}}}(e):Eo()}function Rl(e){const t=[];return e.fields.forEach((e=>t.push(e.canonicalString()))),{fieldPaths:t}}function Nl(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)}class Dl{constructor(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Vo.min(),i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Vo.min(),a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:ki.EMPTY_BYTE_STRING,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;this.target=e,this.targetId=t,this.purpose=n,this.sequenceNumber=r,this.snapshotVersion=o,this.lastLimboFreeSnapshotVersion=i,this.resumeToken=a,this.expectedCount=s}withSequenceNumber(e){return new Dl(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,t){return new Dl(this.target,this.targetId,this.purpose,this.sequenceNumber,t,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new Dl(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new Dl(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}class Ml{constructor(e){this.ut=e}}function Ll(e){const t=El({parent:e.parent,structuredQuery:e.structuredQuery});return"LAST"===e.limitType?Na(t,t.limit,"L"):t}class Zl{constructor(){}ht(e,t){this.Pt(e,t),t.It()}Pt(e,t){if("nullValue"in e)this.Tt(t,5);else if("booleanValue"in e)this.Tt(t,10),t.Et(e.booleanValue?1:0);else if("integerValue"in e)this.Tt(t,15),t.Et(Ci(e.integerValue));else if("doubleValue"in e){const n=Ci(e.doubleValue);isNaN(n)?this.Tt(t,13):(this.Tt(t,15),si(n)?t.Et(0):t.Et(n))}else if("timestampValue"in e){const n=e.timestampValue;this.Tt(t,20),"string"==typeof n?t.dt(n):(t.dt("".concat(n.seconds||"")),t.Et(n.nanos||0))}else if("stringValue"in e)this.At(e.stringValue,t),this.Rt(t);else if("bytesValue"in e)this.Tt(t,30),t.Vt(_i(e.bytesValue)),this.Rt(t);else if("referenceValue"in e)this.ft(e.referenceValue,t);else if("geoPointValue"in e){const n=e.geoPointValue;this.Tt(t,45),t.Et(n.latitude||0),t.Et(n.longitude||0)}else"mapValue"in e?Gi(e)?this.Tt(t,Number.MAX_SAFE_INTEGER):(this.gt(e.mapValue,t),this.Rt(t)):"arrayValue"in e?(this.yt(e.arrayValue,t),this.Rt(t)):Eo()}At(e,t){this.Tt(t,25),this.wt(e,t)}wt(e,t){t.dt(e)}gt(e,t){const n=e.fields||{};this.Tt(t,55);for(const r of Object.keys(n))this.At(r,t),this.Pt(n[r],t)}yt(e,t){const n=e.values||[];this.Tt(t,50);for(const r of n)this.Pt(r,t)}ft(e,t){this.Tt(t,37),Ko.fromName(e).path.forEach((e=>{this.Tt(t,60),this.wt(e,t)}))}Tt(e,t){e.Et(t)}Rt(e){e.Et(2)}}Zl.St=new Zl;class jl{constructor(){this.on=new Fl}addToCollectionParentIndex(e,t){return this.on.add(t),ri.resolve()}getCollectionParents(e,t){return ri.resolve(this.on.getEntries(t))}addFieldIndex(e,t){return ri.resolve()}deleteFieldIndex(e,t){return ri.resolve()}deleteAllFieldIndexes(e){return ri.resolve()}createTargetIndexes(e,t){return ri.resolve()}getDocumentsMatchingTarget(e,t){return ri.resolve(null)}getIndexType(e,t){return ri.resolve(0)}getFieldIndexes(e,t){return ri.resolve([])}getNextCollectionGroupToUpdate(e){return ri.resolve(null)}getMinOffset(e,t){return ri.resolve(Xo.min())}getMinOffsetFromCollectionGroup(e,t){return ri.resolve(Xo.min())}updateCollectionGroup(e,t,n){return ri.resolve()}updateIndexEntries(e,t){return ri.resolve()}}class Fl{constructor(){this.index={}}add(e){const t=e.lastSegment(),n=e.popLast(),r=this.index[t]||new vi(Wo.comparator),o=!r.has(n);return this.index[t]=r.add(n),o}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 vi(Wo.comparator)).toArray()}}new Uint8Array(0);class zl{constructor(e,t,n){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=n}static withCacheSize(e){return new zl(e,zl.DEFAULT_COLLECTION_PE
2RCENTILE,zl.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}zl.DEFAULT_COLLECTION_PERCENTILE=10,zl.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,zl.DEFAULT=new zl(41943040,zl.DEFAULT_COLLECTION_PERCENTILE,zl.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),zl.DISABLED=new zl(-1,0,0);class Ul{constructor(e){this.xn=e}next(){return this.xn+=2,this.xn}static On(){return new Ul(0)}static Nn(){return new Ul(-1)}}class Bl{constructor(){this.changes=new Ua((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,Yi.newInvalidDocument(e).setReadTime(t))}getEntry(e,t){this.assertNotApplied();const n=this.changes.get(t);return void 0!==n?ri.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 Vl{constructor(e,t){this.overlayedDocument=e,this.mutatedFields=t}}class Hl{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&&Ss(n.mutation,e,wi.empty(),Bo.now()),e)))}getDocuments(e,t){return this.remoteDocumentCache.getEntries(e,t).next((t=>this.getLocalViewOfDocuments(e,t,Xa()).next((()=>t))))}getLocalViewOfDocuments(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Xa();const r=Ga();return this.populateOverlays(e,r,t).next((()=>this.computeViews(e,t,r,n).next((e=>{let t=Wa();return e.forEach(((e,n)=>{t=t.insert(e,n.overlayedDocument)})),t}))))}getOverlayedDocuments(e,t){const n=Ga();return this.populateOverlays(e,n,t).next((()=>this.computeViews(e,t,n,Xa())))}populateOverlays(e,t,n){const r=[];return 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 o=Va();const i=Qa(),a=Qa();return t.forEach(((e,t)=>{const a=n.get(t.key);r.has(t.key)&&(void 0===a||a.mutation instanceof Ts)?o=o.insert(t.key,t):void 0!==a?(i.set(t.key,a.mutation.getFieldMask()),Ss(a.mutation,t,a.mutation.getFieldMask(),Bo.now())):i.set(t.key,wi.empty())})),this.recalculateAndSaveOverlays(e,o).next((e=>(e.forEach(((e,t)=>i.set(e,t))),t.forEach(((e,t)=>{var n;return a.set(e,new Vl(t,null!==(n=i.get(e))&&void 0!==n?n:null))})),a)))}recalculateAndSaveOverlays(e,t){const n=Qa();let r=new mi(((e,t)=>e-t)),o=Xa();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,t).next((e=>{for(const o of e)o.keys().forEach((e=>{const i=t.get(e);if(null===i)return;let a=n.get(e)||wi.empty();a=o.applyToLocalView(i,a),n.set(e,a);const s=(r.get(o.batchId)||Xa()).add(e);r=r.insert(o.batchId,s)}))})).next((()=>{const i=[],a=r.getReverseIterator();for(;a.hasNext();){const r=a.getNext(),s=r.key,l=r.value,c=Ka();l.forEach((e=>{if(!o.has(e)){const r=xs(t.get(e),n.get(e));null!==r&&c.set(e,r),o=o.add(e)}})),i.push(this.documentOverlayCache.saveOverlays(e,s,c))}return ri.waitFor(i)})).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 Ko.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}(t)?this.getDocumentsMatchingDocumentQuery(e,t.path):Oa(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((o=>{const i=r-o.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,t,n.largestBatchId,r-o.size):ri.resolve(Ga());let a=-1,s=o;return i.next((t=>ri.forEach(t,((t,n)=>(a<n.largestBatchId&&(a=n.largestBatchId),o.get(t)?ri.resolve():this.remoteDocumentCache.getEntry(e,t).next((e=>{s=s.insert(t,e)}))))).next((()=>this.populateOverlays(e,t,o))).next((()=>this.computeViews(e,s,t,Xa()))).next((e=>({batchId:a,changes:qa(e)})))))}))}getDocumentsMatchingDocumentQuery(e,t){return this.getDocument(e,new Ko(t)).next((e=>{let t=Wa();
vendor: 12,669 bytes, line 2
2return e.isFoundDocument()&&(t=t.insert(e.key,e)),t}))}getDocumentsMatchingCollectionGroupQuery(e,t,n,r){const o=t.collectionGroup;let i=Wa();return this.indexManager.getCollectionParents(e,o).next((a=>ri.forEach(a,(a=>{const s=function(e,t){return new Ea(t,null,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(t,a.child(o));return this.getDocumentsMatchingCollectionQuery(e,s,n,r).next((e=>{e.forEach(((e,t)=>{i=i.insert(e,t)}))}))})).next((()=>i))))}getDocumentsMatchingCollectionQuery(e,t,n,r){let o;return this.documentOverlayCache.getOverlaysForCollection(e,t.path,n.largestBatchId).next((i=>(o=i,this.remoteDocumentCache.getDocumentsMatchingQuery(e,t,n,o,r)))).next((e=>{o.forEach(((t,n)=>{const r=n.getKey();null===e.get(r)&&(e=e.insert(r,Yi.newInvalidDocument(r)))}));let n=Wa();return e.forEach(((e,r)=>{const i=o.get(e);void 0!==i&&Ss(i.mutation,r,wi.empty(),Bo.now()),Za(t,r)&&(n=n.insert(e,r))})),n}))}}class Wl{constructor(e){this.serializer=e,this.ur=new Map,this.cr=new Map}getBundleMetadata(e,t){return ri.resolve(this.ur.get(t))}saveBundleMetadata(e,t){return this.ur.set(t.id,function(e){return{id:e.id,version:e.version,createTime:dl(e.createTime)}}(t)),ri.resolve()}getNamedQuery(e,t){return ri.resolve(this.cr.get(t))}saveNamedQuery(e,t){return this.cr.set(t.name,function(e){return{name:e.name,query:Ll(e.bundledQuery),readTime:dl(e.readTime)}}(t)),ri.resolve()}}class ql{constructor(){this.overlays=new mi(Ko.comparator),this.lr=new Map}getOverlay(e,t){return ri.resolve(this.overlays.get(t))}getOverlays(e,t){const n=Ga();return ri.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.lt(e,t,r)})),ri.resolve()}removeOverlaysForBatchId(e,t,n){const r=this.lr.get(n);return void 0!==r&&(r.forEach((e=>this.overlays=this.overlays.remove(e))),this.lr.delete(n)),ri.resolve()}getOverlaysForCollection(e,t,n){const r=Ga(),o=t.length+1,i=new Ko(t.child("")),a=this.overlays.getIteratorFrom(i);for(;a.hasNext();){const e=a.getNext().value,i=e.getKey();if(!t.isPrefixOf(i.path))break;i.path.length===o&&e.largestBatchId>n&&r.set(e.getKey(),e)}return ri.resolve(r)}getOverlaysForCollectionGroup(e,t,n,r){let o=new mi(((e,t)=>e-t));const i=this.overlays.getIterator();for(;i.hasNext();){const e=i.getNext().value;if(e.getKey().getCollectionGroup()===t&&e.largestBatchId>n){let t=o.get(e.largestBatchId);null===t&&(t=Ga(),o=o.insert(e.largestBatchId,t)),t.set(e.getKey(),e)}}const a=Ga(),s=o.getIterator();for(;s.hasNext()&&(s.getNext().value.forEach(((e,t)=>a.set(e,t))),!(a.size()>=r)););return ri.resolve(a)}lt(e,t,n){const r=this.overlays.get(n.key);if(null!==r){const e=this.lr.get(r.largestBatchId).delete(n.key);this.lr.set(r.largestBatchId,e)}this.overlays=this.overlays.insert(n.key,new Ms(t,n));let o=this.lr.get(t);void 0===o&&(o=Xa(),this.lr.set(t,o)),this.lr.set(t,o.add(n.key))}}class Gl{constructor(){this.hr=new vi(Kl.Pr),this.Ir=new vi(Kl.Tr)}isEmpty(){return this.hr.isEmpty()}addReference(e,t){const n=new Kl(e,t);this.hr=this.hr.add(n),this.Ir=this.Ir.add(n)}Er(e,t){e.forEach((e=>this.addReference(e,t)))}removeReference(e,t){this.dr(new Kl(e,t))}Ar(e,t){e.forEach((e=>this.removeReference(e,t)))}Rr(e){const t=new Ko(new Wo([])),n=new Kl(t,e),r=new Kl(t,e+1),o=[];return this.Ir.forEachInRange([n,r],(e=>{this.dr(e),o.push(e.key)})),o}Vr(){this.hr.forEach((e=>this.dr(e)))}dr(e){this.hr=this.hr.delete(e),this.Ir=this.Ir.delete(e)}mr(e){const t=new Ko(new Wo([])),n=new Kl(t,e),r=new Kl(t,e+1);let o=Xa();return this.Ir.forEachInRange([n,r],(e=>{o=o.add(e.key)})),o}containsKey(e){const t=new Kl(e,0),n=this.hr.firstAfterOrEqual(t);return null!==n&&e.isEqual(n.key)}}class Kl{constructor(e,t){this.key=e,this.gr=t}static Pr(e,t){return Ko.comparator(e.key,t.key)||zo(e.gr,t.gr)}static Tr(e,t){return zo(e.gr,t.gr)||Ko.comparator(e.key,t.key)}}class Ql{constructor(e,t){this.indexManager=e,this.referenceDelegate=t,this.mutationQueue=[],this.pr=1,this.yr=new vi(Kl.Pr)}checkEmpty(e){return ri.resolve(0===this.mutationQueue.length)}addMutationBatch(e,t,n,r){const o=this.pr;this.pr++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const i=new Ns(o,t,n,r);this.mutationQueue.push(i);for(const a of r)this.yr=this.yr.add(new Kl(a.key,o)),this.indexManager.addToCollectionParentIndex(e,a.key.path.popLast());return ri.resolve(i)}lookupMutationBatch(e,t){return ri.resolve(this.wr(t))}getNextMutationBatchAfterBatchId(e,t){const n=t+1,r=this.Sr(n),o=r<0?0:r;return ri.resolve(this.mutationQueue.length>o?this.mutationQueue[o]:null)}getHighestUnacknowledgedBatchId(){return ri.resolve(0===this.mutationQueue.length?-1:this.pr-1)}getAllMutationBatches(e){return ri.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,t){const n=new Kl(t,0),r=new Kl(t,Number.POSITIVE_INFINITY),o=[];return this.yr.forEachInRange([n,r],(e=>{const t=this.wr(e.gr);o.push(t)})),ri.resolve(o)}getAllMutationBatchesAffectingDocumentKeys(e,t){let n=new vi(zo);return t.forEach((e=>{const t=new Kl(e,0),r=new Kl(e,Number.POSITIVE_INFINITY);this.yr.forEachInRange([t,r],(e=>{n=n.add(e.gr)}))})),ri.resolve(this.br(n))}getAllMutationBatchesAffectingQuery(e,t){const n=t.path,r=n.length+1;let o=n;Ko.isDocumentKey(o)||(o=o.child(""));const i=new Kl(new Ko(o),0);let a=new vi(zo);return this.yr.forEachWhile((e=>{const t=e.key.path;return!!n.isPrefixOf(t)&&(t.length===r&&(a=a.add(e.gr)),!0)}),i),ri.resolve(this.br(a))}br(e){const t=[];return e.forEach((e=>{const n=this.wr(e);null!==n&&t.push(n)})),t}removeMutationBatch(e,t){Co(0===this.Dr(t.batchId,"removed")),this.mutationQueue.shift();let n=this.yr;return ri.forEach(t.mutations,(r=>{const o=new Kl(r.key,t.batchId);return n=n.delete(o),this.referenceDelegate.markPotentiallyOrphaned(e,r.key)})).next((()=>{this.yr=n}))}Fn(e){}containsKey(e,t){const n=new Kl(t,0),r=this.yr.firstAfterOrEqual(n);return ri.resolve(t.isEqual(r&&r.key))}performConsistencyCheck(e){return this.mutationQueue.length,ri.resolve()}Dr(e,t){return this.Sr(e)}Sr(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId}wr(e){const t=this.Sr(e);return t<0||t>=this.mutationQueue.length?null:this.mutationQueue[t]}}class Yl{constructor(e){this.Cr=e,this.docs=new mi(Ko.comparator),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,t){const n=t.key,r=this.docs.get(n),o=r?r.size:0,i=this.Cr(t);return this.docs=this.docs.insert(n,{document:t.mutableCopy(),size:i}),this.size+=i-o,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 ri.resolve(n?n.document.mutableCopy():Yi.newInvalidDocument(t))}getEntries(e,t){let n=Va();return t.forEach((e=>{const t=this.docs.get(e);n=n.insert(e,t?t.document.mutableCopy():Yi.newInvalidDocument(e))})),ri.resolve(n)}getDocumentsMatchingQuery(e,t,n,r){let o=Va();const i=t.path,a=new Ko(i.child("")),s=this.docs.getIteratorFrom(a);for(;s.hasNext();){const{key:e,value:{document:a}}=s.getNext();if(!i.isPrefixOf(e.path))break;e.path.length>i.length+1||Jo($o(a),n)<=0||(r.has(a.key)||Za(t,a))&&(o=o.insert(a.key,a.mutableCopy()))}return ri.resolve(o)}getAllFromCollectionGroup(e,t,n,r){Eo()}vr(e,t){return ri.forEach(this.docs,(e=>t(e)))}newChangeBuffer(e){return new $l(this)}getSize(e){return ri.resolve(this.size)}}class $l extends Bl{constructor(e){super(),this._r=e}applyChanges(e){const t=[];return this.changes.forEach(((n,r)=>{r.isValidDocument()?t.push(this._r.addEntry(e,r)):this._r.removeEntry(n)})),ri.waitFor(t)}getFromCache(e,t){return this._r.getEntry(e,t)}getAllFromCache(e,t){return this._r.getEntries(e,t)}}class Xl{constructor(e){this.persistence=e,this.Fr=new Ua((e=>xa(e)),ka),this.lastRemoteSnapshotVersion=Vo.min(),this.highestTargetId=0,this.Mr=0,this.Or=new Gl,this.targetCount=0,this.Nr=Ul.On()}forEachTarget(e,t){return this.Fr.forEach(((e,n)=>t(n))),ri.resolve()}getLastRemoteSnapshotVersion(e){return ri.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return ri.resolve(this.Mr)}allocateTargetId(e){return this.highestTargetId=this.Nr.next(),ri.resolve(this.highestTargetId)}setTargetsMetadata(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.Mr&&(this.Mr=t),ri.resolve()}kn(e){this.Fr.set(e.target,e);const t=e.targetId;t>this.highestTargetId&&(this.Nr=new Ul(t),this.highestTargetId=t),e.sequenceNumber>this.Mr&&(this.Mr=e.sequenceNumber)}addTargetData(e,t){return this.kn(t),this.targetCount+=1,ri.resolve()}updateTargetData(e,t){return this.kn(t),ri.resolve()}removeTargetData(e,t){return this.Fr.delete(t.target),this.Or.Rr(t.targetId),this.targetCount-=1,ri.resolve()}removeTargets(e,t,n){let r=0;const o=[];return this.Fr.forEach(((i,a)=>{a.sequenceNumber<=t&&null===n.get(a.targetId)&&(this.Fr.delete(i),o.push(this.removeMatchingKeysForTargetId(e,a.targetId)),r++)})),ri.waitFor(o).next((()=>r))}getTargetCount(e){return ri.resolve(this.targetCount)}getTargetData(e,t){const n=this.Fr.get(t)||null;return ri.resolve(n)}addMatchingKeys(e,t,n){return this.Or.Er(t,n),ri.resolve()}removeMatchingKeys(e,t,n){this.Or.Ar(t,n);const r=this.persistence.referenceDelegate,o=[];return r&&t.forEach((t=>{o.push(r.markPotentiallyOrphaned(e,t))})),ri.waitFor(o)}removeMatchingKeysForTargetId(e,t){return this.Or.Rr(t),ri.resolve()}getMatchingKeysForTargetId(e,t){const n=this.Or.mr(t);return ri.resolve(n)}containsKey(e,t){return ri.resolve(this.Or.containsKey(t))}}class Jl{constructor(e,t){this.Br={},this.overlays={},this.Lr=new ii(0),this.kr=!1,this.kr=!0,this.referenceDelegate=e(this),this.qr=new Xl(this),this.indexManager=new jl,this.remoteDocumentCache=function(e){return new Yl(e)}((e=>this.referenceDelegate.Qr(e))),this.serializer=new Ml(t),this.Kr=new Wl(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.kr=!1,Promise.resolve()}get started(){return this.kr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let t=this.overlays[e.toKey()];return t||(t=new ql,this.overlays[e.toKey()]=t),t}getMutationQueue(e,t){let n=this.Br[e.toKey()];return n||(n=new Ql(t,this.referenceDelegate),this.Br[e.toKey()]=n),n}getTargetCache(){return this.qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.Kr}runTransaction(e,t,n){wo("MemoryPersistence","Starting transaction:",e);const r=new ec(this.Lr.next());return this.referenceDelegate.$r(),n(r).next((e=>this.referenceDelegate.Ur(r).next((()=>e)))).toPromise().then((e=>(r.raiseOnCommittedEvent(),e)))}Wr(e,t){return ri.or(Object.values(this.Br).map((n=>()=>n.containsKey(e,t))))}}class ec extends ti{constructor(e){super(),this.currentSequenceNumber=e}}class tc{constructor(e){this.persistence=e,this.Gr=new Gl,this.zr=null}static jr(e){return new tc(e)}get Hr(){if(this.zr)return this.zr;throw Eo()}addReference(e,t,n){return this.Gr.addReference(n,t),this.Hr.delete(n.toString()),ri.resolve()}removeReference(e,t,n){return this.Gr.removeReference(n,t),this.Hr.add(n.toString()),ri.resolve()}markPotentiallyOrphaned(e,t){return this.Hr.add(t.toString()),ri.resolve()}removeTarget(e,t){this.Gr.Rr(t.targetId).forEach((e=>this.Hr.add(e.toString())));const n=this.persistence.getTargetCache();return n.getMatchingKeysForTargetId(e,t.targetId).next((e=>{e.forEach((e=>this.Hr.add(e.toString())))})).next((()=>n.removeTargetData(e,t)))}$r(){this.zr=new Set}Ur(e){const t=this.persistence.getRemoteDocumentCache().newChangeBuffer();return ri.forEach(this.Hr,(n=>{const r=Ko.fromPath(n);return this.Jr(e,r).next((e=>{e||t.removeEntry(r,Vo.min())}))})).next((()=>(this.zr=null,t.apply(e))))}updateLimboDocument(e,t){return this.Jr(e,t).next((e=>{e?this.Hr.delete(t.toString()):this.Hr.add(t.toString())}))}Qr(e){return 0}Jr(e,t){return ri.or([()=>ri.resolve(this.Gr.containsKey(t)),()=>this.persistence.getTargetCache().containsKey(e,t),()=>this.persistence.Wr(e,t)])}}class nc{constructor(e,t,n,r){this.targetId=e,this.fromCache=t,this.ki=n,this.qi=r}static Qi(e,t){let n=Xa(),r=Xa();for(const o of t.docChanges)switch(o.type){case 0:n=n.add(o.doc.key);break;case 1:r=r.add(o.doc.key)}return new nc(e,t.fromCache,n,r)}}class rc{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}class oc{constructor(){this.Ki=!1,this.$i=!1,this.Ui=100,this.Wi=8}initialize(e,t){this.Gi=e,this.indexManager=t,this.Ki=!0}getDocumentsMatchingQuery(e,t,n,r){const o={result:null};return this.zi(e,t).next((e=>{o.result=e})).next((()=>
2{if(!o.result)return this.ji(e,t,r,n).next((e=>{o.result=e}))})).next((()=>{if(o.result)return;const n=new rc;return this.Hi(e,t,n).next((r=>{if(o.result=r,this.$i)return this.Ji(e,t,n,r.size)}))})).next((()=>o.result))}Ji(e,t,n,r){return n.documentReadCount<this.Ui?(bo()<=q.in.DEBUG&&wo("QueryEngine","SDK will not create cache indexes for query:",La(t),"since it only creates cache indexes for collection contains","more than or equal to",this.Ui,"documents"),ri.resolve()):(bo()<=q.in.DEBUG&&wo("QueryEngine","Query:",La(t),"scans",n.documentReadCount,"local documents and returns",r,"documents as results."),n.documentReadCount>this.Wi*r?(bo()<=q.in.DEBUG&&wo("QueryEngine","The SDK decides to create cache indexes for query:",La(t),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,Aa(t))):ri.resolve())}zi(e,t){if(Ta(t))return ri.resolve(null);let n=Aa(t);return this.indexManager.getIndexType(e,n).next((r=>0===r?null:(null!==t.limit&&1===r&&(t=Na(t,null,"F"),n=Aa(t)),this.indexManager.getDocumentsMatchingTarget(e,n).next((r=>{const o=Xa(...r);return this.Gi.getDocuments(e,o).next((r=>this.indexManager.getMinOffset(e,n).next((n=>{const i=this.Yi(t,r);return this.Zi(t,i,o,n.readTime)?this.zi(e,Na(t,null,"F")):this.Xi(e,i,t,n)}))))})))))}ji(e,t,n,r){return Ta(t)||r.isEqual(Vo.min())?ri.resolve(null):this.Gi.getDocuments(e,n).next((o=>{const i=this.Yi(t,o);return this.Zi(t,i,n,r)?ri.resolve(null):(bo()<=q.in.DEBUG&&wo("QueryEngine","Re-using previous result from %s to execute query: %s",r.toString(),La(t)),this.Xi(e,i,t,Yo(r,-1)).next((e=>e)))}))}Yi(e,t){let n=new vi(Fa(e));return t.forEach(((t,r)=>{Za(e,r)&&(n=n.add(r))})),n}Zi(e,t,n,r){if(null===e.limit)return!1;if(n.size!==t.size)return!0;const o="F"===e.limitType?t.last():t.first();return!!o&&(o.hasPendingWrites||o.version.compareTo(r)>0)}Hi(e,t,n){return bo()<=q.in.DEBUG&&wo("QueryEngine","Using full collection scan to execute query:",La(t)),this.Gi.getDocumentsMatchingQuery(e,t,Xo.min(),n)}Xi(e,t,n,r){return this.Gi.getDocumentsMatchingQuery(e,n,r).next((e=>(t.forEach((t=>{e=e.insert(t.key,t)})),e)))}}class ic{constructor(e,t,n,r){this.persistence=e,this.es=t,this.serializer=r,this.ts=new mi(zo),this.ns=new Ua((e=>xa(e)),ka),this.rs=new Map,this.ss=e.getRemoteDocumentCache(),this.qr=e.getTargetCache(),this.Kr=e.getBundleCache(),this.os(n)}os(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new Hl(this.ss,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.ss.setIndexManager(this.indexManager),this.es.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",(t=>e.collect(t,this.ts)))}}function ac(e,t,n,r){return new ic(e,t,n,r)}async function sc(e,t){const n=_o(e);return await n.persistence.runTransaction("Handle user change","readonly",(e=>{let r;
2return n.mutationQueue.getAllMutationBatches(e).next((o=>(r=o,n.os(t),n.mutationQueue.getAllMutationBatches(e)))).next((t=>{const o=[],i=[];let a=Xa();for(const e of r){o.push(e.batchId);for(const t of e.mutations)a=a.add(t.key)}for(const e of t){i.push(e.batchId);for(const t of e.mutations)a=a.add(t.key)}return n.localDocuments.getDocuments(e,a).next((e=>({_s:e,removedBatchIds:o,addedBatchIds:i})))}))}))}function lc(e){const t=_o(e);return t.persistence.runTransaction("Get last remote snapshot version","readonly",(e=>t.qr.getLastRemoteSnapshotVersion(e)))}function cc(e,t,n){let r=Xa(),o=Xa();return n.forEach((e=>r=r.add(e))),t.getEntries(e,r).next((e=>{let r=Va();return n.forEach(((n,i)=>{const a=e.get(n);i.isFoundDocument()!==a.isFoundDocument()&&(o=o.add(n)),i.isNoDocument()&&i.version.isEqual(Vo.min())?(t.removeEntry(n,i.readTime),r=r.insert(n,i)):!a.isValidDocument()||i.version.compareTo(a.version)>0||0===i.version.compareTo(a.version)&&a.hasPendingWrites?(t.addEntry(i),r=r.insert(n,i)):wo("LocalStore","Ignoring outdated watch update for ",n,". Current version:",a.version," Watch version:",i.version)})),{us:r,cs:o}}))}function uc(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 dc(e,t){const n=_o(e);return n.persistence.runTransaction("Allocate target","readwrite",(e=>{let r;return n.qr.getTargetData(e,t).next((o=>o?(r=o,ri.resolve(r)):n.qr.allocateTargetId(e).next((o=>(r=new Dl(t,o,"TargetPurposeListen",e.currentSequenceNumber),n.qr.addTargetData(e,r).next((()=>r)))))))})).then((e=>{const r=n.ts.get(e.targetId);return(null===r||e.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.ts=n.ts.insert(e.targetId,e),n.ns.set(t,e.targetId)),e}))}async function hc(e,t,n){const r=_o(e),o=r.ts.get(t),i=n?"readwrite":"readwrite-primary";try{n||await r.persistence.runTransaction("Release target",i,(e=>r.persistence.referenceDelegate.removeTarget(e,o)))}catch(e){if(!oi(e))throw e;wo("LocalStore","Failed to update sequence numbers for target ".concat(t,": ").concat(e))}r.ts=r.ts.remove(t),r.ns.delete(o.target)}function fc(e,t,n){const r=_o(e);let o=Vo.min(),i=Xa();return r.persistence.runTransaction("Execute query","readwrite",(e=>function(e,t,n){const r=_o(e),o=r.ns.get(n);return void 0!==o?ri.resolve(r.ts.get(o)):r.qr.getTargetData(t,n)}(r,e,Aa(t)).next((t=>{if(t)return o=t.lastLimboFreeSnapshotVersion,r.qr.getMatchingKeysForTargetId(e,t.targetId).next((e=>{i=e}))})).next((()=>r.es.getDocumentsMatchingQuery(e,t,n?o:Vo.min(),n?i:Xa()))).next((e=>(pc(r,ja(t),e),{documents:e,ls:i})))))}function pc(e,t,n){let r=e.rs.get(t)||Vo.min();n.forEach(((e,t)=>{t.readTime.compareTo(r)>0&&(r=t.readTime)})),e.rs.set(t,r)}class mc{constructor(){this.activeTargetIds=es()}ds(e){this.activeTargetIds=this.activeTargetIds.add(e)}As(e){this.activeTargetIds=this.activeTargetIds.delete(e)}Es(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class gc{constructor(){this.eo=new mc,this.no={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,t,n){}addLocalQueryTarget(e){return this.eo.ds(e),this.no[e]||"not-current"}updateQueryState(e,t,n){this.no[e]=t}removeLocalQueryTarget(e){this.eo.As(e)}isLocalQueryTarget(e){return this.eo.activeTargetIds.has(e)}clearQueryState(e){delete this.no[e]}getAllActiveQueryTargets(){return this.eo.activeTargetIds}isActiveQueryTarget(e){return this.eo.activeTargetIds.has(e)}start(){return this.eo=new mc,Promise.resolve()}handleUserChange(e,t,n){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}class yc{ro(e){}shutdown(){}}class vc{constructor(){this.io=()=>this.so(),this.oo=()=>this._o(),this.ao=[],this.uo()}ro(e){this.ao.push(e)}shutdown(){window.removeEventListener("online",this.io),window.removeEventListener("offline",this.oo)}uo(){window.addEventListener("online",this.io),window.addEventListener("offline",this.oo)}so(){wo("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const e of this.ao)e(0)}_o(){wo("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const e of this.ao)e(1)}static D(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let bc=null;function wc(){return null===bc?bc=268435456+Math.round(2147483648*Math.random()):bc++,"0x"+bc.toString(16)}const xc={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregation
2Query:"runAggregationQuery"};class kc{constructor(e){this.co=e.co,this.lo=e.lo}ho(e){this.Po=e}Io(e){this.To=e}onMessage(e){this.Eo=e}close(){this.lo()}send(e){this.co(e)}Ao(){this.Po()}Ro(e){this.To(e)}Vo(e){this.Eo(e)}}const Sc="WebChannelConnection";class Ec 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.mo=t+"://"+e.host,this.fo="projects/".concat(n,"/databases/").concat(r),this.po="(default)"===this.databaseId.database?"project_id=".concat(n):"project_id=".concat(n,"&database_id=").concat(r)}get yo(){return!1}wo(e,t,n,r,o){const i=wc(),a=this.So(e,t);wo("RestConnection","Sending RPC '".concat(e,"' ").concat(i,":"),a,n);const s={"google-cloud-resource-prefix":this.fo,"x-goog-request-params":this.po};return this.bo(s,r,o),this.Do(e,a,s,n).then((t=>(wo("RestConnection","Received RPC '".concat(e,"' ").concat(i,": "),t),t)),(t=>{throw ko("RestConnection","RPC '".concat(e,"' ").concat(i," failed with error: "),t,"url: ",a,"request:",n),t}))}Co(e,t,n,r,o,i){return this.wo(e,t,n,r,o)}bo(e,t,n){e["X-Goog-Api-Client"]="gl-js/ fire/"+yo,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))}So(e,t){const n=xc[e];return"".concat(this.mo,"/v1/").concat(t,":").concat(n)}}{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}Do(e,t,n,r){const o=wc();return new Promise(((i,a)=>{const s=new ho;s.setWithCredentials(!0),s.listenOnce(ao.COMPLETE,(()=>{try{switch(s.getLastErrorCode()){case io.NO_ERROR:const t=s.getResponseJson();wo(Sc,"XHR for RPC '".concat(e,"' ").concat(o," received:"),JSON.stringify(t)),i(t);break;case io.TIMEOUT:wo(Sc,"RPC '".concat(e,"' ").concat(o," timed out")),a(new Oo(To.DEADLINE_EXCEEDED,"Request time out"));break;case io.HTTP_ERROR:const n=s.getStatus();if(wo(Sc,"RPC '".concat(e,"' ").concat(o," failed with status:"),n,"response text:",s.getResponseText()),n>0){let e=s.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(To).indexOf(t)>=0?t:To.UNKNOWN}(t.status);a(new Oo(e,t.message))}else a(new Oo(To.UNKNOWN,"Server responded with status "+s.getStatus()))}else a(new Oo(To.UNAVAILABLE,"Connection failed."));break;default:Eo()}}finally{wo(Sc,"RPC '".concat(e,"' ").concat(o," completed."))}}));const l=JSON.stringify(r);wo(Sc,"RPC '".concat(e,"' ").concat(o," sending request:"),r),s.send(t,"POST",l,n,15)}))}vo(e,t,n){const r=wc(),o=[this.mo,"/","google.firestore.v1.Firestore","/",e,"/channel"],i=ro(),a=oo(),s={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/".concat(this.databaseId.projectId,"/databases/").concat(this.databaseId.database)},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},l=this.longPollingOptions.timeoutSeconds;void 0!==l&&(s.longPollingTimeout=Math.round(1e3*l)),this.useFetchStreams&&(s.xmlHttpFactory=new co({})),this.bo(s.initMessageHeaders,t,n),s.encodeInitMessageHeaders=!0;const c=o.join("");wo(Sc,"Creating RPC '".concat(e,"' stream ").concat(r,": ").concat(c),s);const u=i.createWebChannel(c,s);let d=!1,h=!1;const f=new kc({co:t=>{h?wo(Sc,"Not sending because RPC '".concat(e,"' stream ").concat(r," is closed:"),t):(d||(wo(Sc,"Opening RPC '".concat(e,"' stream ").concat(r," transport.")),u.open(),d=!0),wo(Sc,"RPC '".concat(e,"' stream ").concat(r," sending:"),t),u.send(t))},lo:()=>u.close()}),p=(e,t,n)=>{e.listen(t,(e=>{try{n(e)}catch(e){setTimeout((()=>{throw e}),0)}}))};return p(u,uo.EventType.OPEN,(()=>{h||wo(Sc,"RPC '".concat(e,"' stream ").concat(r," transport opened."))})),p(u,uo.EventType.CLOSE,(()=>{h||(h=!0,wo(Sc,"RPC '".concat(e,"' stream ").concat(r," transport closed")),f.Ro())}
2)),p(u,uo.EventType.ERROR,(t=>{h||(h=!0,ko(Sc,"RPC '".concat(e,"' stream ").concat(r," transport errored:"),t),f.Ro(new Oo(To.UNAVAILABLE,"The operation could not be completed")))})),p(u,uo.EventType.MESSAGE,(t=>{var n;if(!h){const o=t.data[0];Co(!!o);const i=o,a=i.error||(null===(n=i[0])||void 0===n?void 0:n.error);if(a){wo(Sc,"RPC '".concat(e,"' stream ").concat(r," received error:"),a);const t=a.status;let n=function(e){const t=Zs[e];if(void 0!==t)return zs(t)}(t),o=a.message;void 0===n&&(n=To.INTERNAL,o="Unknown error status: "+t+" with message "+a.message),h=!0,f.Ro(new Oo(n,o)),u.close()}else wo(Sc,"RPC '".concat(e,"' stream ").concat(r," received:"),o),f.Vo(o)}})),p(a,so.STAT_EVENT,(t=>{t.stat===lo.PROXY?wo(Sc,"RPC '".concat(e,"' stream ").concat(r," detected buffering proxy")):t.stat===lo.NOPROXY&&wo(Sc,"RPC '".concat(e,"' stream ").concat(r," detected no buffering proxy"))})),setTimeout((()=>{f.Ao()}),0),f}}function Cc(){return"undefined"!=typeof document?document:null}function _c(e){return new al(e,!0)}class Tc{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,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:6e4;this.si=e,this.timerId=t,this.Fo=n,this.Mo=r,this.xo=o,this.Oo=0,this.No=null,this.Bo=Date.now(),this.reset()}reset(){this.Oo=0}Lo(){this.Oo=this.xo}ko(e){this.cancel();const t=Math.floor(this.Oo+this.qo()),n=Math.max(0,Date.now()-this.Bo),r=Math.max(0,t-n);r>0&&wo("ExponentialBackoff","Backing off for ".concat(r," ms (base delay: ").concat(this.Oo," ms, delay with jitter: ").concat(t," ms, last attempt: ").concat(n," ms ago)")),this.No=this.si.enqueueAfterDelay(this.timerId,r,(()=>(this.Bo=Date.now(),e()))),this.Oo*=this.Mo,this.Oo<this.Fo&&(this.Oo=this.Fo),this.Oo>this.xo&&(this.Oo=this.xo)}Qo(){null!==this.No&&(this.No.skipDelay(),this.No=null)}cancel(){null!==this.No&&(this.No.cancel(),this.No=null)}qo(){return(Math.random()-.5)*this.Oo}}class Oc{constructor(e,t,n,r,o,i,a,s){this.si=e,this.Ko=n,this.$o=r,this.connection=o,this.authCredentialsProvider=i,this.appCheckCredentialsProvider=a,this.listener=s,this.state=0,this.Uo=0,this.Wo=null,this.Go=null,this.stream=null,this.zo=new Tc(e,t)}jo(){return 1===this.state||5===this.state||this.Ho()}Ho(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.Jo()}async stop(){this.jo()&&await this.close(0)}Yo(){this.state=0,this.zo.reset()}Zo(){this.Ho()&&null===this.Wo&&(this.Wo=this.si.enqueueAfterDelay(this.Ko,6e4,(()=>this.Xo())))}e_(e){this.t_(),this.stream.send(e)}async Xo(){if(this.Ho())return this.close(0)}t_(){this.Wo&&(this.Wo.cancel(),this.Wo=null)}
2n_(){this.Go&&(this.Go.cancel(),this.Go=null)}async close(e,t){this.t_(),this.n_(),this.zo.cancel(),this.Uo++,4!==e?this.zo.reset():t&&t.code===To.RESOURCE_EXHAUSTED?(xo(t.toString()),xo("Using maximum backoff delay to prevent overloading the backend."),this.zo.Lo()):t&&t.code===To.UNAUTHENTICATED&&3!==this.state&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),null!==this.stream&&(this.r_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.Io(t)}r_(){}auth(){this.state=1;const e=this.i_(this.Uo),t=this.Uo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then((e=>{let[n,r]=e;this.Uo===t&&this.s_(n,r)}),(t=>{e((()=>{const e=new Oo(To.UNKNOWN,"Fetching auth token failed: "+t.message);return this.o_(e)}))}))}s_(e,t){const n=this.i_(this.Uo);this.stream=this.__(e,t),this.stream.ho((()=>{n((()=>(this.state=2,this.Go=this.si.enqueueAfterDelay(this.$o,1e4,(()=>(this.Ho()&&(this.state=3),Promise.resolve()))),this.listener.ho())))})),this.stream.Io((e=>{n((()=>this.o_(e)))})),this.stream.onMessage((e=>{n((()=>this.onMessage(e)))}))}Jo(){this.state=5,this.zo.ko((async()=>{this.state=0,this.start()}))}o_(e){return wo("PersistentStream","close with error: ".concat(e)),this.stream=null,this.close(4,e)}i_(e){return t=>{this.si.enqueueAndForget((()=>this.Uo===e?t():(wo("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())))}}}class Ic extends Oc{constructor(e,t,n,r,o,i){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",t,n,r,i),this.serializer=o}__(e,t){return this.connection.vo("Listen",e,t)}onMessage(e){this.zo.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:Eo()}(t.targetChange.targetChangeType||"NO_CHANGE"),o=t.targetChange.targetIds||[],i=function(e,t){return e.useProto3Json?(Co(void 0===t||"string"==typeof t),ki.fromBase64String(t||"")):(Co(void 0===t||t instanceof Uint8Array),ki.fromUint8Array(t||new Uint8Array))}(e,t.targetChange.resumeToken),a=t.targetChange.cause,s=a&&function(e){const t=void 0===e.code?To.UNKNOWN:zs(e.code);return new Oo(t,e.message||"")}(a);n=new Xs(r,o,i,s||null)}else if("documentChange"in t){t.documentChange;const r=t.documentChange;r.document,r.document.name,r.document.updateTime;const o=ml(e,r.document.name),i=dl(r.document.updateTime),a=r.document.createTime?dl(r.document.createTime):Vo.min(),s=new Ki({mapValue:{fields:r.document.fields}}),l=Yi.newFoundDocument(o,i,a,s),c=r.targetIds||[],u=r.removedTargetIds||[];n=new Ys(c,u,l.key,l)}else if("documentDelete"in t){t.documentDelete;const r=t.documentDelete;r.document;const o=ml(e,r.document),i=r.readTime?dl(r.readTime):Vo.min(),a=Yi.newNoDocument(o,i),s=r.removedTargetIds||[];n=new Ys([],s,a.key,a)}else if("documentRemove"in t){t.documentRemove;const r=t.documentRemove;r.document;const o=ml(e,r.document),i=r.removedTargetIds||[];n=new Ys([],i,o,null)}else{if(!("filter"in t))return Eo();{t.filter;const e=t.filter;e.targetId;const{count:r=0,unchangedNames:o}=e,i=new Ls(r,o),a=e.targetId;n=new $s(a,i)}}return n}(this.serializer,e),n=function(e){if(!("targetChange"in e))return Vo.min();const t=e.targetChange;return t.targetIds&&t.targetIds.length?Vo.min():t.readTime?dl(t.readTime):Vo.min()}(e);return this.listener.a_(t,n)}u_(e){const t={};t.database=vl(this.serializer),t.addTarget=function(e,t){let n;const r=t.target;if(n=Sa(r)?{documents:kl(e,r)}:{query:Sl(e,r)},n.targetId=t.targetId,t.resumeToken.approximateByteSize()>0){n.resumeToken=cl(e,t.resumeToken);const r=sl(e,t.expectedCount);null!==r&&(n.expectedCount=r)}else if(t.snapshotVersion.compareTo(Vo.min())>0){n.readTime=ll(e,t.snapshotVersion.toTimestamp());const r=sl(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 Eo()}}(t.purpose);return null==n?null:{"goog-listen-tags":n}}(this.serializer,e);n&&(t.labels=n),this.e_(t)}c_(e){const t={};t.database=vl(this.serializer),t.removeTarget=e,this.e_(t)}}class Ac extends Oc{constructor(e,t,n,r,o,i){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",t,n,r,i),this.serializer
2=o,this.l_=!1}get h_(){return this.l_}start(){this.l_=!1,this.lastStreamToken=void 0,super.start()}r_(){this.l_&&this.P_([])}__(e,t){return this.connection.vo("Write",e,t)}onMessage(e){if(Co(!!e.streamToken),this.lastStreamToken=e.streamToken,this.l_){this.zo.reset();const t=function(e,t){return e&&e.length>0?(Co(void 0!==t),e.map((e=>function(e,t){let n=e.updateTime?dl(e.updateTime):dl(t);return n.isEqual(Vo.min())&&(n=dl(t)),new ys(n,e.transformResults||[])}(e,t)))):[]}(e.writeResults,e.commitTime),n=dl(e.commitTime);return this.listener.I_(n,t)}return Co(!e.writeResults||0===e.writeResults.length),this.l_=!0,this.listener.T_()}E_(){const e={};e.database=vl(this.serializer),this.e_(e)}P_(e){const t={streamToken:this.lastStreamToken,writes:e.map((e=>xl(this.serializer,e)))};this.e_(t)}}class Pc extends class{}{constructor(e,t,n,r){super(),this.authCredentials=e,this.appCheckCredentials=t,this.connection=n,this.serializer=r,this.d_=!1}A_(){if(this.d_)throw new Oo(To.FAILED_PRECONDITION,"The client has already been terminated.")}wo(e,t,n){return this.A_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((r=>{let[o,i]=r;return this.connection.wo(e,t,n,o,i)})).catch((e=>{throw"FirebaseError"===e.name?(e.code===To.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new Oo(To.UNKNOWN,e.toString())}))}Co(e,t,n,r){return this.A_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((o=>{let[i,a]=o;return this.connection.Co(e,t,n,i,a,r)})).catch((e=>{throw"FirebaseError"===e.name?(e.code===To.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new Oo(To.UNKNOWN,e.toString())}))}terminate(){this.d_=!0}}class Rc{constructor(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state="Unknown",this.V_=0,this.m_=null,this.f_=!0}g_(){0===this.V_&&(this.p_("Unknown"),this.m_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,(()=>(this.m_=null,this.y_("Backend didn't respond within 10 seconds."),this.p_("Offline"),Promise.resolve()))))}w_(e){"Online"===this.state?this.p_("Unknown"):(this.V_++,this.V_>=1&&(this.S_(),this.y_("Connection failed 1 times. Most recent error: ".concat(e.toString())),this.p_("Offline")))}set(e){this.S_(),this.V_=0,"Online"===e&&(this.f_=!1),this.p_(e)}p_(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}y_(e){const t="Could not reach Cloud Firestore backend. ".concat(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.f_?(xo(t),this.f_=!1):wo("OnlineStateTracker",t)}S_(){null!==this.m_&&(this.m_.cancel(),this.m_=null)}}class Nc{constructor(e,t,n,r,o){this.localStore=e,this.datastore=t,this.asyncQueue=n,this.remoteSyncer={},this.b_=[],this.D_=new Map,this.C_=new Set,this.v_=[],this.F_=o,this.F_.ro((e=>{n.enqueueAndForget((async()=>{Bc(this)&&(wo("RemoteStore","Restarting streams for network reachability change."),await async function(e){const t=_o(e);t.C_.add(4),await Mc(t),t.M_.set("Unknown"),t.C_.delete(4),await Dc(t)}(this))}))})),this.M_=new Rc(n,r)}}async function Dc(e){if(Bc(e))for(const t of e.v_)await t(!0)}async function Mc(e){for(const t of e.v_)await t(!1)}function Lc(e,t){const n=_o(e);n.D_.has(t.targetId)||(n.D_.set(t.targetId,t),Uc(n)?zc(n):au(n).Ho()&&jc(n,t))}function Zc(e,t){const n=_o(e),r=au(n);n.D_.delete(t),r.Ho()&&Fc(n,t),0===n.D_.size&&(r.Ho()?r.Zo():Bc(n)&&n.M_.set("Unknown"))}function jc(e,t){if(e.x_.Oe(t.targetId),t.resumeToken.approximateByteSize()>0||t.snapshotVersion.compareTo(Vo.min())>0){const n=e.remoteSyncer.getRemoteKeysForTarget(t.targetId).size;t=t.withExpectedCount(n)}au(e).u_(t)}function Fc(e,t){e.x_.Oe(t),au(e).c_(t)}function zc(e){e.x_=new el({getRemoteKeysForTarget:t=>e.remoteSyncer.getRemoteKeysForTarget(t),_t:t=>e.D_.get(t)||null,nt:()=>e.datastore.serializer.databaseId}),au(e).start(),e.M_.g_()}function Uc(e){return Bc(e)&&!au(e).jo()&&e.D_.size>0}function Bc(e){return 0===_o(e).C_.size}function Vc(e){e.x_=void 0}async function Hc(e){e.D_.forEach(((t,n)=>{jc(e,t)}))}async function Wc(e,t){Vc(e),Uc(e)?(e.M_.w_(t),zc(e)):e.M_.set("Unknown")}async function qc(e,t,n){if(e.M_.set("Online"),t instanceof Xs&&2===t.state&&t.cause)try{await async function(e,t){const n=t.cause;for(const r of t.targetIds)e.D_.has(r)&&(await e.remoteSyncer.rejectListen(r,n),e.D_.delete(r),e.x_.removeTarget(r))}(e,t)}catch(n){wo("RemoteStore","Failed to remove targets %s: %s ",t.targetIds.join(","),n),await Gc(e,n)}else if(t instanceof Ys?e.x_.$e(t):t instanceof $s?e.x_.Je(t):e.x_.Ge(t),!n.isEqual(Vo.min()))try{const t=await lc(e.localStore);n.compareTo(t)>=0&&await function(e,t){const n=e.x_.it(t);
vendor: 8,787 bytes, line 2
2return n.targetChanges.forEach(((n,r)=>{if(n.resumeToken.approximateByteSize()>0){const o=e.D_.get(r);o&&e.D_.set(r,o.withResumeToken(n.resumeToken,t))}})),n.targetMismatches.forEach(((t,n)=>{const r=e.D_.get(t);if(!r)return;e.D_.set(t,r.withResumeToken(ki.EMPTY_BYTE_STRING,r.snapshotVersion)),Fc(e,t);const o=new Dl(r.target,t,n,r.sequenceNumber);jc(e,o)})),e.remoteSyncer.applyRemoteEvent(n)}(e,n)}catch(t){wo("RemoteStore","Failed to raise snapshot:",t),await Gc(e,t)}}async function Gc(e,t,n){if(!oi(t))throw t;e.C_.add(1),await Mc(e),e.M_.set("Offline"),n||(n=()=>lc(e.localStore)),e.asyncQueue.enqueueRetryable((async()=>{wo("RemoteStore","Retrying IndexedDB access"),await n(),e.C_.delete(1),await Dc(e)}))}function Kc(e,t){return t().catch((n=>Gc(e,n,t)))}async function Qc(e){const t=_o(e),n=su(t);let r=t.b_.length>0?t.b_[t.b_.length-1].batchId:-1;for(;Yc(t);)try{const e=await uc(t.localStore,r);if(null===e){0===t.b_.length&&n.Zo();break}r=e.batchId,$c(t,e)}catch(e){await Gc(t,e)}Xc(t)&&Jc(t)}function Yc(e){return Bc(e)&&e.b_.length<10}function $c(e,t){e.b_.push(t);const n=su(e);n.Ho()&&n.h_&&n.P_(t.mutations)}function Xc(e){return Bc(e)&&!su(e).jo()&&e.b_.length>0}function Jc(e){su(e).start()}async function eu(e){su(e).E_()}async function tu(e){const t=su(e);for(const n of e.b_)t.P_(n.mutations)}async function nu(e,t,n){const r=e.b_.shift(),o=Ds.from(r,t,n);await Kc(e,(()=>e.remoteSyncer.applySuccessfulWrite(o))),await Qc(e)}async function ru(e,t){t&&su(e).h_&&await async function(e,t){if(function(e){return Fs(e)&&e!==To.ABORTED}(t.code)){const n=e.b_.shift();su(e).Yo(),await Kc(e,(()=>e.remoteSyncer.rejectFailedWrite(n.batchId,t))),await Qc(e)}}(e,t),Xc(e)&&Jc(e)}async function ou(e,t){const n=_o(e);n.asyncQueue.verifyOperationInProgress(),wo("RemoteStore","RemoteStore received new credentials");const r=Bc(n);n.C_.add(3),await Mc(n),r&&n.M_.set("Unknown"),await n.remoteSyncer.handleCredentialChange(t),n.C_.delete(3),await Dc(n)}async function iu(e,t){const n=_o(e);t?(n.C_.delete(2),await Dc(n)):t||(n.C_.add(2),await Mc(n),n.M_.set("Unknown"))}function au(e){return e.O_||(e.O_=function(e,t,n){const r=_o(e);return r.A_(),new Ic(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)}(e.datastore,e.asyncQueue,{ho:Hc.bind(null,e),Io:Wc.bind(null,e),a_:qc.bind(null,e)}),e.v_.push((async t=>{t?(e.O_.Yo(),Uc(e)?zc(e):e.M_.set("Unknown")):(await e.O_.stop(),Vc(e))}))),e.O_}function su(e){return e.N_||(e.N_=function(e,t,n){const r=_o(e);return r.A_(),new Ac(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)}(e.datastore,e.asyncQueue,{ho:eu.bind(null,e),Io:ru.bind(null,e),T_:tu.bind(null,e),I_:nu.bind(null,e)}),e.v_.push((async t=>{t?(e.N_.Yo(),await Qc(e)):(await e.N_.stop(),e.b_.length>0&&(wo("RemoteStore","Stopping write stream with ".concat(e.b_.length," pending writes")),e.b_=[]))}))),e.N_}class lu{constructor(e,t,n,r,o){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=n,this.op=r,this.removalCallback=o,this.deferred=new Io,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,o){const i=Date.now()+n,a=new lu(e,t,i,r,o);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 Oo(To.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 cu(e,t){if(xo("AsyncQueue","".concat(t,": ").concat(e)),oi(e))return new Oo(To.UNAVAILABLE,"".concat(t,": ").concat(e));throw e}class uu{constructor(e){this.comparator=e?(t,n)=>e(t,n)||Ko.comparator(t.key,n.key):(e,t)=>Ko.comparator(e.key,t.key),this.keyedMap=Wa(),this.sortedSet=new mi(this.comparator)}static emptySet(e){return new uu(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 uu))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 uu;return n.comparator=this.comparator,n.keyedMap=e,n.sortedSet=t,n}}class du{constructor(){this.B_=new mi(Ko.comparator)}track(e){const t=e.doc.key,n=this.B_.get(t);n?0!==e.type&&3===n.type?this.B_=this.B_.insert(t,e):3===e.type&&1!==n.type?this.B_=this.B_.insert(t,{type:n.type,doc:e.doc}):2===e.type&&2===n.type?this.B_=this.B_.insert(t,{type:2,doc:e.doc}):2===e.type&&0===n.type?this.B_=this.B_.insert(t,{type:0,doc:e.doc}):1===e.type&&0===n.type?this.B_=this.B_.remove(t):1===e.type&&2===n.type?this.B_=this.B_.insert(t,{type:1,doc:n.doc}):0===e.type&&1===n.type?this.B_=this.B_.insert(t,{type:2,doc:e.doc}):Eo():this.B_=this.B_.insert(t,e)}L_(){const e=[];return this.B_.inorderTraversal(((t,n)=>{e.push(n)})),e}}class hu{constructor(e,t,n,r,o,i,a,s,l){this.query=e,this.docs=t,this.oldDocs=n,this.docChanges=r,this.mutatedKeys=o,this.fromCache=i,this.syncStateChanged=a,this.excludesMetadataChanges=s,this.hasCachedResults=l}static fromInitialDocuments(e,t,n,r,o){const i=[];return t.forEach((e=>{i.push({type:0,doc:e})})),new hu(e,t,uu.emptySet(t),i,n,r,!0,!1,o)}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)&&Da(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 fu{constructor(){this.k_=void 0,this.listeners=[]}}class pu{constructor(){this.queries=new Ua((e=>Ma(e)),Da),this.onlineState="Unknown",this.q_=new Set}}async function mu(e,t){const n=_o(e),r=t.query;let o=!1,i=n.queries.get(r);if(i||(o=!0,i=new fu),o)try{i.k_=await n.onListen(r)}catch(e){const n=cu(e,"Initialization of query '".concat(La(t.query),"' failed"));return void t.onError(n)}n.queries.set(r,i),i.listeners.push(t),t.Q_(n.onlineState),i.k_&&t.K_(i.k_)&&bu(n)}async function gu(e,t){const n=_o(e),r=t.query;let o=!1;const i=n.queries.get(r);if(i){const e=i.listeners.indexOf(t);e>=0&&(i.listeners.splice(e,1),o=0===i.listeners.length)}if(o)return n.queries.delete(r),n.onUnlisten(r)}function yu(e,t){const n=_o(e);let r=!1;for(const o of t){const e=o.query,t=n.queries.get(e);if(t){for(const e of t.listeners)e.K_(o)&&(r=!0);t.k_=o}}r&&bu(n)}function vu(e,t,n){const r=_o(e),o=r.queries.get(t);if(o)for(const i of o.listeners)i.onError(n);r.queries.delete(t)}function bu(e){e.q_.forEach((e=>{e.next()}))}class wu{constructor(e,t,n){this.query=e,this.U_=t,this.W_=!1,this.G_=null,this.onlineState="Unknown",this.options=n||{}}K_(e){if(!this.options.includeMetadataChanges){const t=[];for(const n of e.docChanges)3!==n.type&&t.push(n);e=new hu(e.query,e.docs,e.oldDocs,t,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let t=!1;return this.W_?this.z_(e)&&(this.U_.next(e),t=!0):this.j_(e,this.onlineState)&&(this.H_(e),t=!0),this.G_=e,t}onError(e){this.U_.error(e)}Q_(e){this.onlineState=e;let t=!1;return this.G_&&!this.W_&&this.j_(this.G_,e)&&(this.H_(this.G_),t=!0),t}j_(e,t){if(!e.fromCache)return!0;const n="Offline"!==t;return(!this.options.J_||!n)&&(!e.docs.isEmpty()||e.hasCachedResults||"Offline"===t)}z_(e){if(e.docChanges.length>0)return!0;const t=this.G_&&this.G_.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&!0===this.options.includeMetadataChanges}H_(e){e=hu.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.W_=!0,this.U_.next(e)}}class xu{constructor(e){this.key=e}}
2class ku{constructor(e){this.key=e}}class Su{constructor(e,t){this.query=e,this.ia=t,this.sa=null,this.hasCachedResults=!1,this.current=!1,this.oa=Xa(),this.mutatedKeys=Xa(),this._a=Fa(e),this.aa=new uu(this._a)}get ua(){return this.ia}ca(e,t){const n=t?t.la:new du,r=t?t.aa:this.aa;let o=t?t.mutatedKeys:this.mutatedKeys,i=r,a=!1;const s="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=Za(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.ha(c,u)||(n.track({type:2,doc:u}),f=!0,(s&&this._a(u,s)>0||l&&this._a(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,(s||l)&&(a=!0)),f&&(u?(i=i.add(u),o=h?o.add(e):o.delete(e)):(i=i.delete(e),o=o.delete(e)))})),null!==this.query.limit)for(;i.size>this.query.limit;){const e="F"===this.query.limitType?i.last():i.first();i=i.delete(e.key),o=o.delete(e.key),n.track({type:1,doc:e})}return{aa:i,la:n,Zi:a,mutatedKeys:o}}ha(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}applyChanges(e,t,n){const r=this.aa;this.aa=e.aa,this.mutatedKeys=e.mutatedKeys;const o=e.la.L_();o.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 Eo()}};return n(e)-n(t)}(e.type,t.type)||this._a(e.doc,t.doc))),this.Pa(n);const i=t?this.Ia():[],a=0===this.oa.size&&this.current?1:0,s=a!==this.sa;return this.sa=a,0!==o.length||s?{snapshot:new hu(this.query,e.aa,r,o,e.mutatedKeys,0===a,s,!1,!!n&&n.resumeToken.approximateByteSize()>0),Ta:i}:{Ta:i}}Q_(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({aa:this.aa,la:new du,mutatedKeys:this.mutatedKeys,Zi:!1},!1)):{Ta:[]}}Ea(e){return!this.ia.has(e)&&!!this.aa.has(e)&&!this.aa.get(e).hasLocalMutations}Pa(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)}
2Ia(){if(!this.current)return[];const e=this.oa;this.oa=Xa(),this.aa.forEach((e=>{this.Ea(e.key)&&(this.oa=this.oa.add(e.key))}));const t=[];return e.forEach((e=>{this.oa.has(e)||t.push(new ku(e))})),this.oa.forEach((n=>{e.has(n)||t.push(new xu(n))})),t}da(e){this.ia=e.ls,this.oa=Xa();const t=this.ca(e.documents);return this.applyChanges(t,!0)}Aa(){return hu.fromInitialDocuments(this.query,this.aa,this.mutatedKeys,0===this.sa,this.hasCachedResults)}}class Eu{constructor(e,t,n){this.query=e,this.targetId=t,this.view=n}}class Cu{constructor(e){this.key=e,this.Ra=!1}}class _u{constructor(e,t,n,r,o,i){this.localStore=e,this.remoteStore=t,this.eventManager=n,this.sharedClientState=r,this.currentUser=o,this.maxConcurrentLimboResolutions=i,this.Va={},this.ma=new Ua((e=>Ma(e)),Da),this.fa=new Map,this.ga=new Set,this.pa=new mi(Ko.comparator),this.ya=new Map,this.wa=new Gl,this.Sa={},this.ba=new Map,this.Da=Ul.Nn(),this.onlineState="Unknown",this.Ca=void 0}get isPrimaryClient(){return!0===this.Ca}}async function Tu(e,t){const n=Wu(e);let r,o;const i=n.ma.get(t);if(i)r=i.targetId,n.sharedClientState.addLocalQueryTarget(r),o=i.view.Aa();else{const e=await dc(n.localStore,Aa(t)),i=n.sharedClientState.addLocalQueryTarget(e.targetId);r=e.targetId,o=await Ou(n,t,r,"current"===i,e.resumeToken),n.isPrimaryClient&&Lc(n.remoteStore,e)}return o}async function Ou(e,t,n,r,o){e.va=(t,n,r)=>async function(e,t,n,r){let o=t.view.ca(n);o.Zi&&(o=await fc(e.localStore,t.query,!1).then((e=>{let{documents:n}=e;return t.view.ca(n,o)})));const i=r&&r.targetChanges.get(t.targetId),a=t.view.applyChanges(o,e.isPrimaryClient,i);return Fu(e,t.targetId,a.Ta),a.snapshot}(e,t,n,r);const i=await fc(e.localStore,t,!0),a=new Su(t,i.ls),s=a.ca(i.documents),l=Qs.createSynthesizedTargetChangeForCurrentChange(n,r&&"Offline"!==e.onlineState,o),c=a.applyChanges(s,e.isPrimaryClient,l);Fu(e,n,c.Ta);const u=new Eu(t,n,a);return e.ma.set(t,u),e.fa.has(n)?e.fa.get(n).push(t):e.fa.set(n,[t]),c.snapshot}async function Iu(e,t){const n=_o(e),r=n.ma.get(t),o=n.fa.get(r.targetId);if(o.length>1)return n.fa.set(r.targetId,o.filter((e=>!Da(e,t)))),void n.ma.delete(t);n.isPrimaryClient?(n.sharedClientState.removeLocalQueryTarget(r.targetId),n.sharedClientState.isActiveQueryTarget(r.targetId)||await hc(n.localStore,r.targetId,!1).then((()=>{n.sharedClientState.clearQueryState(r.targetId),Zc(n.remoteStore,r.targetId),Zu(n,r.targetId)})).catch(ni)):(Zu(n,r.targetId),await hc(n.localStore,r.targetId,!0))}async function Au(e,t){const n=_o(e);try{const e=await function(e,t){const n=_o(e),r=t.snapshotVersion;let o=n.ts;return n.persistence.runTransaction("Apply remote event","readwrite-primary",(e=>{const i=n.ss.newChangeBuffer({trackRemovals:!0});o=n.ts;const a=[];
2t.targetChanges.forEach(((i,s)=>{const l=o.get(s);if(!l)return;a.push(n.qr.removeMatchingKeys(e,i.removedDocuments,s).next((()=>n.qr.addMatchingKeys(e,i.addedDocuments,s))));let c=l.withSequenceNumber(e.currentSequenceNumber);null!==t.targetMismatches.get(s)?c=c.withResumeToken(ki.EMPTY_BYTE_STRING,Vo.min()).withLastLimboFreeSnapshotVersion(Vo.min()):i.resumeToken.approximateByteSize()>0&&(c=c.withResumeToken(i.resumeToken,r)),o=o.insert(s,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,i)&&a.push(n.qr.updateTargetData(e,c))}));let s=Va(),l=Xa();if(t.documentUpdates.forEach((r=>{t.resolvedLimboDocuments.has(r)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(e,r))})),a.push(cc(e,i,t.documentUpdates).next((e=>{s=e.us,l=e.cs}))),!r.isEqual(Vo.min())){const t=n.qr.getLastRemoteSnapshotVersion(e).next((t=>n.qr.setTargetsMetadata(e,e.currentSequenceNumber,r)));a.push(t)}return ri.waitFor(a).next((()=>i.apply(e))).next((()=>n.localDocuments.getLocalViewOfDocuments(e,s,l))).next((()=>s))})).then((e=>(n.ts=o,e)))}(n.localStore,t);
2t.targetChanges.forEach(((e,t)=>{const r=n.ya.get(t);r&&(Co(e.addedDocuments.size+e.modifiedDocuments.size+e.removedDocuments.size<=1),e.addedDocuments.size>0?r.Ra=!0:e.modifiedDocuments.size>0?Co(r.Ra):e.removedDocuments.size>0&&(Co(r.Ra),r.Ra=!1))})),await Bu(n,e,t)}catch(e){await ni(e)}}function Pu(e,t,n){const r=_o(e);if(r.isPrimaryClient&&0===n||!r.isPrimaryClient&&1===n){const e=[];r.ma.forEach(((n,r)=>{const o=r.view.Q_(t);o.snapshot&&e.push(o.snapshot)})),function(e,t){const n=_o(e);n.onlineState=t;let r=!1;n.queries.forEach(((e,n)=>{for(const o of n.listeners)o.Q_(t)&&(r=!0)})),r&&bu(n)}(r.eventManager,t),e.length&&r.Va.a_(e),r.onlineState=t,r.isPrimaryClient&&r.sharedClientState.setOnlineState(t)}}async function Ru(e,t,n){const r=_o(e);r.sharedClientState.updateQueryState(t,"rejected",n);const o=r.ya.get(t),i=o&&o.key;if(i){let e=new mi(Ko.comparator);e=e.insert(i,Yi.newNoDocument(i,Vo.min()));const n=Xa().add(i),o=new Ks(Vo.min(),new Map,new mi(zo),e,n);await Au(r,o),r.pa=r.pa.remove(i),r.ya.delete(t),Uu(r)}else await hc(r.localStore,t,!1).then((()=>Zu(r,t,n))).catch(ni)}async function Nu(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(),o=n.ss.newChangeBuffer({trackRemovals:!0});return function(e,t,n,r){const o=n.batch,i=o.keys();let a=ri.resolve();return i.forEach((e=>{a=a.next((()=>r.getEntry(t,e))).next((t=>{const i=n.docVersions.get(e);Co(null!==i),t.version.compareTo(i)<0&&(o.applyToRemoteDocument(t,n),t.isValidDocument()&&(t.setReadTime(n.commitVersion),r.addEntry(t)))}))})),a.next((()=>e.mutationQueue.removeMutationBatch(t,o)))}(n,e,t,o).next((()=>o.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=Xa();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);Lu(n,r,null),Mu(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),await Bu(n,e)}catch(e){await ni(e)}}async function Du(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=>(Co(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);Lu(r,t,n),Mu(r,t),r.sharedClientState.updateMutationState(t,"rejected",n),await Bu(r,e)}catch(n){await ni(n)}}function Mu(e,t){(e.ba.get(t)||[]).forEach((e=>{e.resolve()})),e.ba.delete(t)}function Lu(e,t,n){const r=_o(e);let o=r.Sa[r.currentUser.toKey()];if(o){const e=o.get(t);e&&(n?e.reject(n):e.resolve(),o=o.remove(t)),r.Sa[r.currentUser.toKey()]=o}}function Zu(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.ma.delete(r),n&&e.Va.Fa(r,n);e.fa.delete(t),e.isPrimaryClient&&e.wa.Rr(t).forEach((t=>{e.wa.containsKey(t)||ju(e,t)}))}function ju(e,t){e.ga.delete(t.path.canonicalString());const n=e.pa.get(t);null!==n&&(Zc(e.remoteStore,n),e.pa=e.pa.remove(t),e.ya.delete(n),Uu(e))}function Fu(e,t,n){for(const r of n)r instanceof xu?(e.wa.addReference(r.key,t),zu(e,r)):r instanceof ku?(wo("SyncEngine","Document no longer in limbo: "+r.key),e.wa.removeReference(r.key,t),e.wa.containsKey(r.key)||ju(e,r.key)):Eo()}function zu(e,t){const n=t.key,r=n.path.canonicalString();e.pa.get(n)||e.ga.has(r)||(wo("SyncEngine","New document in limbo: "+n),e.ga.add(r),Uu(e))}function Uu(e){for(;e.ga.size>0&&e.pa.size<e.maxConcurrentLimboResolutions;){const t=e.ga.values().next().value;e.ga.delete(t);const n=new Ko(Wo.fromString(t)),r=e.Da.next();e.ya.set(r,new Cu(n)),e.pa=e.pa.insert(n,r),Lc(e.remoteStore,new Dl(Aa(_a(n.path)),r,"TargetPurposeLimboResolution",ii._e))}}async function Bu(e,t,n){const r=_o(e),o=[],i=[],a=[];r.ma.isEmpty()||(r.ma.forEach(((e,s)=>{a.push(r.va(s,t,n).then((e=>
2{if((e||n)&&r.isPrimaryClient&&r.sharedClientState.updateQueryState(s.targetId,(null==e?void 0:e.fromCache)?"not-current":"current"),e){o.push(e);const t=nc.Qi(s.targetId,e);i.push(t)}})))})),await Promise.all(a),r.Va.a_(o),await async function(e,t){const n=_o(e);try{await n.persistence.runTransaction("notifyLocalViewChanges","readwrite",(e=>ri.forEach(t,(t=>ri.forEach(t.ki,(r=>n.persistence.referenceDelegate.addReference(e,t.targetId,r))).next((()=>ri.forEach(t.qi,(r=>n.persistence.referenceDelegate.removeReference(e,t.targetId,r)))))))))}catch(e){if(!oi(e))throw e;wo("LocalStore","Failed to update sequence numbers: "+e)}for(const r of t){const e=r.targetId;if(!r.fromCache){const t=n.ts.get(e),r=t.snapshotVersion,o=t.withLastLimboFreeSnapshotVersion(r);n.ts=n.ts.insert(e,o)}}}(r.localStore,i))}async function Vu(e,t){const n=_o(e);if(!n.currentUser.isEqual(t)){wo("SyncEngine","User change. New user:",t.toKey());const e=await sc(n.localStore,t);n.currentUser=t,function(e,t){e.ba.forEach((e=>{e.forEach((e=>{e.reject(new Oo(To.CANCELLED,t))}))})),e.ba.clear()}(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(t,e.removedBatchIds,e.addedBatchIds),await Bu(n,e._s)}}function Hu(e,t){const n=_o(e),r=n.ya.get(t);if(r&&r.Ra)return Xa().add(r.key);{let e=Xa();const r=n.fa.get(t);if(!r)return e;for(const t of r){const r=n.ma.get(t);e=e.unionWith(r.view.ua)}return e}}function Wu(e){const t=_o(e);return t.remoteStore.remoteSyncer.applyRemoteEvent=Au.bind(null,t),t.remoteStore.remoteSyncer.getRemoteKeysForTarget=Hu.bind(null,t),t.remoteStore.remoteSyncer.rejectListen=Ru.bind(null,t),t.Va.a_=yu.bind(null,t.eventManager),t.Va.Fa=vu.bind(null,t.eventManager),t}function qu(e){const t=_o(e);return t.remoteStore.remoteSyncer.applySuccessfulWrite=Nu.bind(null,t),t.remoteStore.remoteSyncer.rejectFailedWrite=Du.bind(null,t),t}class Gu{constructor(){this.synchronizeTabs=!1}async initialize(e){this.serializer=_c(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 ac(this.persistence,new oc,e.initialUser,this.serializer)}createPersistence(e){return new Jl(tc.jr,this.serializer)}createSharedClientState(e){return new gc}async terminate(){this.gcScheduler&&this.gcScheduler.stop(),await this.sharedClientState.shutdown(),await this.persistence.shutdown()}}class Ku{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=>Pu(this.syncEngine,e,1),this.remoteStore.remoteSyncer.handleCredentialChange=Vu.bind(null,this.syncEngine),await iu(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return new pu}createDatastore(e){const t=_c(e.databaseInfo.databaseId),n=function(e){return new Ec(e)}(e.databaseInfo);return function(e,t,n,r){return new Pc(e,t,n,r)}(e.authCredentials,e.appCheckCredentials,n,t)}createRemoteStore(e){return function(e,t,n,r,o){return new Nc(e,t,n,r,o)}(this.localStore,this.datastore,e.asyncQueue,(e=>Pu(this.syncEngine,e,0)),vc.D()?new vc:new yc)}createSyncEngine(e,t){return function(e,t,n,r,o,i,a){const s=new _u(e,t,n,r,o,i);return a&&(s.Ca=!0),s}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,t)}terminate(){return async function(e){const t=_o(e);wo("RemoteStore","RemoteStore shutting down."),t.C_.add(5),await Mc(t),t.F_.shutdown(),t.M_.set("Unknown")}(this.remoteStore)}}class Qu{constructor(e){this.observer=e,this.muted=!1}next(e){this.observer.next&&this.Oa(this.observer.next,e)}error(e){this.observer.error?this.Oa(this.observer.error,e):xo("Uncaught Error in snapshot listener:",e.toString())}Na(){this.muted=!0}
2Oa(e,t){this.muted||setTimeout((()=>{this.muted||e(t)}),0)}}class Yu{constructor(e,t,n,r){this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=n,this.databaseInfo=r,this.user=go.UNAUTHENTICATED,this.clientId=Fo.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(n,(async e=>{wo("FirestoreClient","Received user=",e.uid),await this.authCredentialListener(e),this.user=e})),this.appCheckCredentials.start(n,(e=>(wo("FirestoreClient","Received new app check token=",e),this.appCheckCredentialListener(e,this.user))))}async getConfiguration(){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 Oo(To.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){this.asyncQueue.enterRestrictedMode();const e=new Io;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=cu(t,"Failed to shutdown persistence");e.reject(n)}})),e.promise}}async function $u(e,t){e.asyncQueue.verifyOperationInProgress(),wo("FirestoreClient","Initializing OfflineComponentProvider");const n=await e.getConfiguration();await t.initialize(n);let r=n.initialUser;e.setCredentialChangeListener((async e=>{r.isEqual(e)||(await sc(t.localStore,e),r=e)})),t.persistence.setDatabaseDeletedListener((()=>e.terminate())),e._offlineComponents=t}async function Xu(e,t){e.asyncQueue.verifyOperationInProgress();const n=await ed(e);wo("FirestoreClient","Initializing OnlineComponentProvider");const r=await e.getConfiguration();await t.initialize(n,r),e.setCredentialChangeListener((e=>ou(t.remoteStore,e))),e.setAppCheckTokenChangeListener(((e,n)=>ou(t.remoteStore,n))),e._onlineComponents=t}function Ju(e){return"FirebaseError"===e.name?e.code===To.FAILED_PRECONDITION||e.code===To.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&e instanceof DOMException)||22===e.code||20===e.code||11===e.code}async function ed(e){if(!e._offlineComponents)if(e._uninitializedComponentsProvider){wo("FirestoreClient","Using user provided OfflineComponentProvider");try{await $u(e,e._uninitializedComponentsProvider._offline)}catch(t){const n=t;if(!Ju(n))throw n;ko("Error using user provided cache. Falling back to memory cache: "+n),await $u(e,new Gu)}}else wo("FirestoreClient","Using default OfflineComponentProvider"),await $u(e,new Gu);return e._offlineComponents}async function td(e){return e._onlineComponents||(e._uninitializedComponentsProvider?(wo("FirestoreClient","Using user provided OnlineComponentProvider"),await Xu(e,e._uninitializedComponentsProvider._online)):(wo("FirestoreClient","Using default OnlineComponentProvider"),await Xu(e,new Ku))),e._onlineComponents}function nd(e){return td(e).then((e=>e.syncEngine))}async function rd(e){const t=await td(e),n=t.eventManager;return n.onListen=Tu.bind(null,t.syncEngine),n.onUnlisten=Iu.bind(null,t.syncEngine),n}function od(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new Io;return e.asyncQueue.enqueueAndForget((async()=>function(e,t,n,r,o){const i=new Qu({next:i=>{t.enqueueAndForget((()=>gu(e,a)));const s=i.docs.has(n);!s&&i.fromCache?o.reject(new Oo(To.UNAVAILABLE,"Failed to get document because the client is offline.")):s&&i.fromCache&&r&&"server"===r.source?o.reject(new Oo(To.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.)')):o.resolve(i)},error:e=>o.reject(e)}),a=new wu(_a(n.path),i,{includeMetadataChanges:!0,J_:!0});return mu(e,a)}(await rd(e),e.asyncQueue,t,n,r))),r.promise}function id(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new Io;return e.asyncQueue.enqueueAndForget((async()=>function(e,t,n,r,o){const i=new Qu({next:n=>{t.enqueueAndForget((()=>gu(e,a))),n.fromCache&&"server"===r.source?o.reject(new Oo(To.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.)')):o.resolve(n)},error:e=>o.reject(e)}),a=new wu(n,i,{includeMetadataChanges:!0,J_:!0});return mu(e,a)}(await rd(e),e.asyncQueue,t,n,r))),r.promise}function ad(e){const t={};return void 0!==e.timeoutSeconds&&(t.timeoutSeconds=e.timeoutSeconds),t}const sd=new Map;function ld(e,t,n){if(!n)throw new Oo(To.INVALID_ARGUMENT,"Function ".concat(e,"() cannot be called with an empty ").concat(t,"."))}function cd(e){if(!Ko.isDocumentKey(e))throw new Oo(To.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but ".concat(e," has ").concat(e.length,"."))}function ud(e){if(Ko.isDocumentKey(e))throw new Oo(To.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but ".concat(e," has ").concat(e.length,"."))}function dd(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e="".concat(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 ".concat(t," object"):"an object"}}return"function"==typeof e?"a function":Eo()}function hd(e,t){if("_delegate"in e&&(e=e._delegate),!(e instanceof t)){if(t.name===e.constructor.name)throw new Oo(To.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=dd(e);throw new Oo(To.INVALID_ARGUMENT,"Expected type '".concat(t.name,"', but it was: ").concat(n))}}return e}class fd{constructor(e){var t,n;if(void 0===e.host){if(void 0!==e.ssl)throw new Oo(To.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 Oo(To.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}(function(e,t,n,r){if(!0===t&&!0===r)throw new Oo(To.INVALID_ARGUMENT,"".concat(e," and ").concat(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=ad(null!==(n=e.experimentalLongPollingOptions)&&void 0!==n?n:{}),function(e){if(void 0!==e.timeoutSeconds){if(isNaN(e.timeoutSeconds))throw new Oo(To.INVALID_ARGUMENT,"invali
2d long polling timeout: ".concat(e.timeoutSeconds," (must not be NaN)"));if(e.timeoutSeconds<5)throw new Oo(To.INVALID_ARGUMENT,"invalid long polling timeout: ".concat(e.timeoutSeconds," (minimum allowed value is 5)"));if(e.timeoutSeconds>30)throw new Oo(To.INVALID_ARGUMENT,"invalid long polling timeout: ".concat(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 pd{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 fd({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new Oo(To.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 Oo(To.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 fd(e),void 0!==e.credentials&&(this._authCredentials=function(e){if(!e)return new Po;switch(e.type){case"firstParty":return new Mo(e.sessionIndex||"0",e.iamToken||null,e.authTokenFactory||null);case"provider":return e.client;default:throw new Oo(To.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(e.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(e){const t=sd.get(e);t&&(wo("ComponentProvider","Removing Datastore"),sd.delete(e),t.terminate())}(this),Promise.resolve()}}class md{constructor(e,t,n){this.converter=t,this._query=n,this.type="query",this.firestore=e}withConverter(e){return new md(this.firestore,e,this._query)}}class gd{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 yd(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new gd(this.firestore,e,this._key)}}class yd extends md{constructor(e,t,n){super(e,t,_a(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 gd(this.firestore,null,new Ko(e))}withConverter(e){return new yd(this.firestore,e,this._path)}}function vd(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(e=(0,G.m9)(e),ld("collection","path",t),e instanceof pd){const n=Wo.fromString(t,...r);return ud(n),new yd(e,null,n)}{if(!(e instanceof gd||e instanceof yd))throw new Oo(To.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const n=e._path.child(Wo.fromString(t,...r));return ud(n),new yd(e.firestore,null,n)}}function bd(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(e=(0,G.m9)(e),1===arguments.length&&(t=Fo.newId()),ld("doc","path",t),e instanceof pd){const n=Wo.fromString(t,...r);return cd(n),new gd(e,null,new Ko(n))}{if(!(e instanceof gd||e instanceof yd))throw new Oo(To.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const n=e._path.child(Wo.fromString(t,...r));return cd(n),new gd(e.firestore,e instanceof yd?e.converter:null,new Ko(n))}}class wd{constructor(){this.Ja=Promise.resolve(),this.Ya=[],this.Za=!1,this.Xa=[],this.eu=null,this.tu=!1,this.nu=!1,this.ru=[],this.zo=new Tc(this,"async_queue_retry"),this.iu=()=>{const e=Cc();e&&wo("AsyncQueue","Visibility state changed to "+e.visibilityState),this.zo.Qo()};const e=Cc();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.iu)}get isShuttingDown(){return this.Za}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.su(),this.ou(e)}enterRestrictedMode(e){if(!this.Za){this.Za=!0,this.nu=e||!1;const t=Cc();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.iu)}}enqueue(e){if(this.su(),this.Za)return new Promise((()=>{}));const t=new Io;return this.ou((()=>this.Za&&this.nu?Promise.resolve():(e().then(t.resolve,t.reject),t.promise))).then((()=>t.promise))}enqueueRetryable(e){this.enqueueAndForget((()=>(this.Ya.push(e),this._u())))}async _u(){if(0!==this.Ya.length){try{await this.Ya[0](),this.Ya.shift(),this.zo.reset()}catch(If){if(!oi(If))throw If;wo("AsyncQueue","Operation failed with retryable error: "+If)}this.Ya.length>0&&this.zo.ko((()=>this._u()))}}ou(e){const t=this.Ja.then((()=>(this.tu=!0,e().catch((e=>{this.eu=e,this.tu=!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 xo("INTERNAL UNHANDLED ERROR: ",t),e})).then((e=>(this.tu=!1,e))))));return this.Ja=t,t}enqueueAfterDelay(e,t,n){this.su(),this.ru.indexOf(e)>-1&&(t=0);const r=lu.createAndSchedule(this,e,t,n,(e=>this.au(e)));return this.Xa.push(r),r}su(){this.eu&&Eo()}verifyOperationInProgress(){}async uu(){let e;do{e=this.Ja,await e}while(e!==this.Ja)}cu(e){for(const t of this.Xa)if(t.timerId===e)return!0;return!1}lu(e){return this.uu().then((()=>{this.Xa.sort(((e,t)=>e.targetTimeMs-t.targetTimeMs));for(const t of this.Xa)if(t.skipDelay(),"all"!==e&&t.timerId===e)break;return this.uu()}))}hu(e){this.ru.push(e)}au(e){const t=this.Xa.indexOf(e);this.Xa.splice(t,1)}}function xd(e){return function(e,t){if("object"!=typeof e||null===e)return!1;const n=e;for(const r of t)if(r in n&&"function"==typeof n[r])return!0;return!1}(e,["next","error","complete"])}class kd extends pd{constructor(e,t,n,r){super(e,t,n,r),this.type="firestore",this._queue=new wd,this._persistenceKey=(null==r?void 0:r.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||Ed(this),this._firestoreClient.terminate()}}function Sd(e){return e._firestoreClient||Ed(e),e._firestoreClient.verifyNotTerminated(),e._firestoreClient}function Ed(e){var t,n,r;const o=e._freezeSettings(),i=function(e,t,n,r){return new Ai(e,t,n,r.host,r.ssl,r.experimentalForceLongPolling,r.experimentalAutoDetectLongPolling,ad(r.experimentalLongPollingOptions),r.useFetchStreams)}(e._databaseId,(null===(t=e._app)||void 0===t?void 0:t.options.appId)||"",e._persistenceKey,o);e._firestoreClient=new Yu(e._authCredentials,e._appCheckCredentials,e._queue,i),(null===(n=o.localCache)||void 0===n?void 0:n._offlineComponentProvider)&&(null===(r=o.localCache)||void 0===r?void 0:r._onlineComponentProvider)&&(e._firestoreClient._uninitializedComponentsProvider={_offlineKind:o.localCache.kind,_offline:o.localCache._offlineComponentProvider,_online:o.localCache._onlineComponentProvider})}class Cd{constructor(e){this._byteString=e}static fromBase64String(e){try{return new Cd(ki.fromBase64String(e))}catch(e){throw new Oo(To.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+e)}}static fromUint8Array(e){return new Cd(ki.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 _d{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 Oo(To.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new Go(t)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}class Td{constructor(e){this._methodName=e}}class Od{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new Oo(To.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new Oo(To.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 zo(this._lat,e._lat)||zo(this._long,e._long)}}const Id=/^__.*__$/;class Ad{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return null!==this.fieldMask?new Ts(e,this.data,this.fieldMask,t,this.fieldTransforms):new _s(e,this.data,t,this.fieldTransforms)}}class Pd{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return new Ts(e,this.data,this.fieldMask,t,this.fieldTransforms)}}function Rd(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Eo()}}class Nd{constructor(e,t,n,r,o,i){this.settings=e,this.databaseId=t,this.serializer
2=n,this.ignoreUndefinedProperties=r,void 0===o&&this.Pu(),this.fieldTransforms=o||[],this.fieldMask=i||[]}get path(){return this.settings.path}get Iu(){return this.settings.Iu}Tu(e){return new Nd(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}Eu(e){var t;const n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.Tu({path:n,du:!1});return r.Au(e),r}Ru(e){var t;const n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.Tu({path:n,du:!1});return r.Pu(),r}Vu(e){return this.Tu({path:void 0,du:!0})}mu(e){return $d(e,this.settings.methodName,this.settings.fu||!1,this.path,this.settings.gu)}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.Au(this.path.get(e))}Au(e){if(0===e.length)throw this.mu("Document fields must not be empty");if(Rd(this.Iu)&&Id.test(e))throw this.mu('Document fields cannot begin and end with "__"')}}class Dd{constructor(e,t,n){this.databaseId=e,this.ignoreUndefinedProperties=t,this.serializer=n||_c(e)}pu(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return new Nd({Iu:e,methodName:t,gu:n,path:Go.emptyPath(),du:!1,fu:r},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function Md(e){const t=e._freezeSettings(),n=_c(e._databaseId);return new Dd(e._databaseId,!!t.ignoreUndefinedProperties,n)}function Ld(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const a=e.pu(i.merge||i.mergeFields?2:0,t,n,o);Gd("Data must be an object, but it was:",a,r);const s=Wd(r,a);let l,c;if(i.merge)l=new wi(a.fieldMask),c=a.fieldTransforms;else if(i.mergeFields){const e=[];for(const r of i.mergeFields){const o=Kd(t,r,n);if(!a.contains(o))throw new Oo(To.INVALID_ARGUMENT,"Field '".concat(o,"' is specified in your field mask but missing from your input data."));Xd(e,o)||e.push(o)}l=new wi(e),c=a.fieldTransforms.filter((e=>l.covers(e.field)))}else l=null,c=a.fieldTransforms;return new Ad(new Ki(s),l,c)}class Zd extends Td{_toFieldTransform(e){if(2!==e.Iu)throw 1===e.Iu?e.mu("".concat(this._methodName,"() can only appear at the top level of your update data")):e.mu("".concat(this._methodName,"() cannot be used with set() unless you pass {merge:true}"));return e.fieldMask.push(e.path),null}isEqual(e){return e instanceof Zd}}function jd(e,t,n){return new Nd({Iu:3,gu:t.settings.gu,methodName:e._methodName,du:n},t.databaseId,t.serializer,t.ignoreUndefinedProperties)}class Fd extends Td{_toFieldTransform(e){return new gs(e.path,new ls)}isEqual(e){return e instanceof Fd}}class zd extends Td{constructor(e,t){super(e),this.yu=t}_toFieldTransform(e){const t=jd(this,e,!0),n=this.yu.map((e=>Hd(e,t))),r=new ds(n);return new gs(e.path,r)}isEqual(e){return this===e}}function Ud(e,t,n,r){const o=e.pu(1,t,n);Gd("Data must be an object, but it was:",o,r);const i=[],a=Ki.empty();fi(r,((e,r)=>{const s=Yd(t,e,n);r=(0,G.m9)(r);const l=o.Ru(s);if(r instanceof Zd)i.push(s);else{const e=Hd(r,l);null!=e&&(i.push(s),a.set(s,e))}}));const s=new wi(i);return new Pd(a,s,o.fieldTransforms)}function Bd(e,t,n,r,o,i){const a=e.pu(1,t,n),s=[Kd(t,r,n)],l=[o];if(i.length%2!=0)throw new Oo(To.INVALID_ARGUMENT,"Function ".concat(t,"() needs to be called with an even number of arguments that alternate between field names and values."));for(let h=0;h<i.length;h+=2)s.push(Kd(t,i[h])),l.push(i[h+1]);const c=[],u=Ki.empty();for(let h=s.length-1;h>=0;--h)if(!Xd(c,s[h])){const e=s[h];let t=l[h];t=(0,G.m9)(t);const n=a.Ru(e);if(t instanceof Zd)c.push(e);else{const r=Hd(t,n);null!=r&&(c.push(e),u.set(e,r))}}const d=new wi(c);return new Pd(u,d,a.fieldTransforms)}function Vd(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Hd(n,e.pu(r?4:3,t))}function Hd(e,t){if(qd(e=(0,G.m9)(e)))return Gd("Unsupported field value:",t,e),Wd(e,t);if(e instanceof Td)return function(e,t){if(!Rd(t.Iu))throw t.mu("".concat(e._methodName,"() can only be used with update(
2) and set()"));if(!t.path)throw t.mu("".concat(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.du&&4!==t.Iu)throw t.mu("Nested arrays are not supported");return function(e,t){const n=[];let r=0;for(const o of e){let e=Hd(o,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,G.m9)(e)))return{nullValue:"NULL_VALUE"};if("number"==typeof e)return rs(t.serializer,e);if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){const n=Bo.fromDate(e);return{timestampValue:ll(t.serializer,n)}}if(e instanceof Bo){const n=new Bo(e.seconds,1e3*Math.floor(e.nanoseconds/1e3));return{timestampValue:ll(t.serializer,n)}}if(e instanceof Od)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof Cd)return{bytesValue:cl(t.serializer,e._byteString)};if(e instanceof gd){const n=t.databaseId,r=e.firestore._databaseId;if(!r.isEqual(n))throw t.mu("Document reference is for database ".concat(r.projectId,"/").concat(r.database," but should be for database ").concat(n.projectId,"/").concat(n.database));return{referenceValue:hl(e.firestore._databaseId||t.databaseId,e._key.path)}}throw t.mu("Unsupported field value: ".concat(dd(e)))}(e,t)}function Wd(e,t){const n={};return pi(e)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):fi(e,((e,r)=>{const o=Hd(r,t.Eu(e));null!=o&&(n[e]=o)})),{mapValue:{fields:n}}}function qd(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof Bo||e instanceof Od||e instanceof Cd||e instanceof gd||e instanceof Td)}function Gd(e,t,n){if(!qd(n)||!function(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}(n)){const r=dd(n);throw"an object"===r?t.mu(e+" a custom object"):t.mu(e+" "+r)}}function Kd(e,t,n){if((t=(0,G.m9)(t))instanceof _d)return t._internalPath;if("string"==typeof t)return Yd(e,t);throw $d("Field path arguments must be of type string or ",e,!1,void 0,n)}const Qd=new RegExp("[~\\*/\\[\\]]");function Yd(e,t,n){if(t.search(Qd)>=0)throw $d("Invalid field path (".concat(t,"). Paths must not contain '~', '*', '/', '[', or ']'"),e,!1,void 0,n);try{return new _d(...t.split("."))._internalPath}catch(ae){throw $d("Invalid field path (".concat(t,"). Paths must not be empty, begin with '.', end with '.', or contain '..'"),e,!1,void 0,n)}}function $d(e,t,n,r,o){const i=r&&!r.isEmpty(),a=void 0!==o;let s="Function ".concat(t,"() called with invalid data");n&&(s+=" (via `toFirestore()`)"),s+=". ";let l="";return(i||a)&&(l+=" (found",i&&(l+=" in field ".concat(r)),a&&(l+=" in document ".concat(o)),l+=")"),new Oo(To.INVALID_ARGUMENT,s+e+l)}function Xd(e,t){return e.some((e=>e.isEqual(t)))}class Jd{constructor(e,t,n,r,o){this._firestore=e,this._userDataWriter=t,this._key=n,this._document=r,this._converter=o}get id(){return this._key.path.lastSegment()}get ref(){return new gd(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const e=new eh(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(th("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}class eh extends Jd{data(){return super.data()}}function th(e,t){return"string"==typeof t?Yd(e,t):t instanceof _d?t._internalPath:t._delegate._internalPath}function nh(e){if("L"===e.limitType&&0===e.explicitOrderBy.length)throw new Oo(To.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class rh{}class oh extends rh{}function ih(e,t){let n=[];for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];t instanceof rh&&n.push(t),n=n.concat(o),function(e){const t=e.filter((e=>e instanceof lh)).length,n=e.filter((e=>e instanceof ah)).length;if(t>1||t>0&&n>0)throw new Oo(To.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}(n);for(const a of n)e=a._apply(e);return e}class ah extends oh{constructor(e,t,n){super(),this._field=e,this._op=t,this._value=n,this.type="where"}static _create(e,t,n){return new ah(e,t,n)}_apply(e){const t=this._parse(e);return fh(e._query,t),new md(e.firestore,e.converter,Ra(e._query,t))}_parse(e){const t=Md(e.firestore),n=function(e,t,n,r,o,i,a){let s;
2if(o.isKeyField()){if("array-contains"===i||"array-contains-any"===i)throw new Oo(To.INVALID_ARGUMENT,"Invalid Query. You can't perform '".concat(i,"' queries on documentId()."));if("in"===i||"not-in"===i){hh(a,i);const t=[];for(const n of a)t.push(dh(r,e,n));s={arrayValue:{values:t}}}else s=dh(r,e,a)}else"in"!==i&&"not-in"!==i&&"array-contains-any"!==i||hh(a,i),s=Vd(n,t,a,"in"===i||"not-in"===i);return ra.create(o,i,s)}(e._query,"where",t,e.firestore._databaseId,this._field,this._op,this._value);return n}}function sh(e,t,n){const r=t,o=th("where",e);return ah._create(o,r,n)}class lh extends rh{constructor(e,t){super(),this.type=e,this._queryConstraints=t}static _create(e,t){return new lh(e,t)}_parse(e){const t=this._queryConstraints.map((t=>t._parse(e))).filter((e=>e.getFilters().length>0));return 1===t.length?t[0]:oa.create(t,this._getOperator())}_apply(e){const t=this._parse(e);return 0===t.getFilters().length?e:(function(e,t){let n=e;const r=t.getFlattenedFilters();for(const o of r)fh(n,o),n=Ra(n,o)}(e._query,t),new md(e.firestore,e.converter,Ra(e._query,t)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return"and"===this.type?"and":"or"}}class ch extends oh{constructor(e,t){super(),this._field=e,this._direction=t,this.type="orderBy"}static _create(e,t){return new ch(e,t)}_apply(e){const t=function(e,t,n){if(null!==e.startAt)throw new Oo(To.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==e.endAt)throw new Oo(To.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new ea(t,n)}(e._query,this._field,this._direction);return new md(e.firestore,e.converter,function(e,t){const n=e.explicitOrderBy.concat([t]);return new Ea(e.path,e.collectionGroup,n,e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(e._query,t))}}function uh(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc",n=th("orderBy",e);return ch._create(n,t)}function dh(e,t,n){if("string"==typeof(n=(0,G.m9)(n))){if(""===n)throw new Oo(To.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!Oa(t)&&-1!==n.indexOf("/"))throw new Oo(To.INVALID_ARGUMENT,"Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '".concat(n,"' contains a '/' character."));const r=t.path.child(Wo.fromString(n));if(!Ko.isDocumentKey(r))throw new Oo(To.INVALID_ARGUMENT,"Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '".concat(r,"' is not because it has an odd number of segments (").concat(r.length,")."));return zi(e,new Ko(r))}if(n instanceof gd)return zi(e,n._key);throw new Oo(To.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ".concat(dd(n),"."))}function hh(e,t){if(!Array.isArray(e)||0===e.length)throw new Oo(To.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '".concat(t.toString(),"' filters."))}function fh(e,t){const n=function(e,t){for(const n of e)for(const e of n.getFlattenedFilters())if(t.indexOf(e.op)>=0)return e.op;return null}(e.filters,function(e){switch(e){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}}(t.op));if(null!==n)throw n===t.op?new Oo(To.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '".concat(t.op.toString(),"' filter.")):new Oo(To.INVALID_ARGUMENT,"Invalid query. You cannot use '".concat(t.op.toString(),"' filters with '").concat(n.toString(),"' filters."))}class ph{convertValue(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";switch(Ni(e)){case 0:return null;case 1:return e.booleanValue;case 2:return Ci(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(_i(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 Eo()}}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 fi(e,((e,r)=>{n[e]=this.convertValue(r,t)})),n}convertGeoPoint(e){return new Od(Ci(e.latitude),Ci(e.longitude))}convertArray(e,t){return(e.values||[]).map((e=>this.convertValue(e,t)))}convertServerTimestamp(e,t){switch(t){case"previous":const n=Oi(e);return null==n?null:this.convertValue(n,t);case"estimate":return this.convertTimestamp(Ii(e));default:return null}}convertTimestamp(e){const t=Ei(e);return new Bo(t.seconds,t.nanos)}convertDocumentKey(e,t){const n=Wo.fromString(e);Co(Nl(n));const r=new Pi(n.get(1),n.get(3)),o=new Ko(n.popFirst(5));return r.isEqual(t)||xo("Document ".concat(o," contains a document reference within a different database (").concat(r.projectId,"/").concat(r.database,") which is not supported. It will be treated as a reference in the current database (").concat(t.projectId,"/").concat(t.database,") instead.")),o}}function mh(e,t,n){let r;return r=e?n&&(n.merge||n.mergeFields)?e.toFirestore(t,n):e.toFirestore(t):t,r}class gh{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class yh extends Jd{constructor(e,t,n,r,o,i){super(e,t,n,r,i),this._firestore=e,this._firestoreImpl=e,this.metadata=o}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 vh(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(th("DocumentSnapshot.get",e));if(null!==n)return this._userDataWriter.convertValue(n,t.serverTimestamps)}}}class vh extends yh{data(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.data(e)}}class bh{constructor(e,t,n,r){this._firestore=e,this._userDataWriter=t,this._snapshot=r,this.metadata=new gh(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 vh(this._firestore,this._userDataWriter,n.key,n,new gh(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 Oo(To.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 vh(e._firestore,e._userDataWriter,n.doc.key,n.doc,new gh(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 vh(e._firestore,e._userDataWriter,t.doc.key,t.doc,new gh(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter);let o=-1,i=-1;return 0!==t.type&&(o=n.indexOf(t.doc.key),n=n.delete(t.doc.key)),1!==t.type&&(n=n.add(t.doc),i=n.indexOf(t.doc.key)),{type:wh(t.type),doc:r,oldIndex:o,newIndex:i}}))}}(this,e),this._cachedChangesIncludeMetadataChanges=e),this._cachedChanges}}function wh(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Eo()}}function xh(e){e=hd(e,gd);const t=hd(e.firestore,kd);return od(Sd(t),e._key).then((n=>Oh(t,e,n)))}class kh extends ph{constructor(e){super(),this.firestore=e}convertBytes(e){return new Cd(e)}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);
2return new gd(this.firestore,null,t)}}function Sh(e){e=hd(e,md);const t=hd(e.firestore,kd),n=Sd(t),r=new kh(t);return nh(e._query),id(n,e._query).then((n=>new bh(t,r,e,n)))}function Eh(e,t,n){e=hd(e,gd);const r=hd(e.firestore,kd),o=mh(e.converter,t,n);return Th(r,[Ld(Md(r),"setDoc",e._key,o,null!==e.converter,n).toMutation(e._key,vs.none())])}function Ch(e,t,n){e=hd(e,gd);const r=hd(e.firestore,kd),o=Md(r);let i;for(var a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];return i="string"==typeof(t=(0,G.m9)(t))||t instanceof _d?Bd(o,"updateDoc",e._key,t,n,s):Ud(o,"updateDoc",e._key,t),Th(r,[i.toMutation(e._key,vs.exists(!0))])}function _h(e,t){const n=hd(e.firestore,kd),r=bd(e),o=mh(e.converter,t);return Th(n,[Ld(Md(e.firestore),"addDoc",r._key,o,null!==e.converter,{}).toMutation(r._key,vs.exists(!1))]).then((()=>r))}function Th(e,t){return function(e,t){const n=new Io;return e.asyncQueue.enqueueAndForget((async()=>async function(e,t,n){const r=qu(e);try{const e=await function(e,t){const n=_o(e),r=Bo.now(),o=t.reduce(((e,t)=>e.add(t.key)),Xa());let i,a;return n.persistence.runTransaction("Locally write mutations","readwrite",(e=>{let s=Va(),l=Xa();return n.ss.getEntries(e,o).next((e=>{s=e,s.forEach(((e,t)=>{t.isValidDocument()||(l=l.add(e))}))})).next((()=>n.localDocuments.getOverlayedDocuments(e,s))).next((o=>{i=o;const a=[];for(const e of t){const t=Es(e,i.get(e.key).overlayedDocument);null!=t&&a.push(new Ts(e.key,t,Qi(t.value.mapValue),vs.exists(!0)))}
2return n.mutationQueue.addMutationBatch(e,r,a,t)})).next((t=>{a=t;const r=t.applyToLocalDocumentSet(i,l);return n.documentOverlayCache.saveOverlays(e,t.batchId,r)}))})).then((()=>({batchId:a.batchId,changes:qa(i)})))}(r.localStore,t);r.sharedClientState.addPendingMutation(e.batchId),function(e,t,n){let r=e.Sa[e.currentUser.toKey()];r||(r=new mi(zo)),r=r.insert(t,n),e.Sa[e.currentUser.toKey()]=r}(r,e.batchId,n),await Bu(r,e.changes),await Qc(r.remoteStore)}catch(e){const t=cu(e,"Failed to persist write");n.reject(t)}}(await nd(e),t,n))),n.promise}(Sd(e),t)}function Oh(e,t,n){const r=n.docs.get(t._key),o=new kh(e);return new yh(e,o,t._key,r,new gh(n.hasPendingWrites,n.fromCache),t.converter)}class Ih{constructor(e,t){this._firestore=e,this._commitHandler=t,this._mutations=[],this._committed=!1,this._dataReader=Md(e)}set(e,t,n){this._verifyNotCommitted();const r=Ah(e,this._firestore),o=mh(r.converter,t,n),i=Ld(this._dataReader,"WriteBatch.set",r._key,o,null!==r.converter,n);return this._mutations.push(i.toMutation(r._key,vs.none())),this}update(e,t,n){this._verifyNotCommitted();const r=Ah(e,this._firestore);let o;for(var i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return o="string"==typeof(t=(0,G.m9)(t))||t instanceof _d?Bd(this._dataReader,"WriteBatch.update",r._key,t,n,a):Ud(this._dataReader,"WriteBatch.update",r._key,t),this._mutations.push(o.toMutation(r._key,vs.exists(!0))),this}delete(e){this._verifyNotCommitted();const t=Ah(e,this._firestore);return this._mutations=this._mutations.concat(new Ps(t._key,vs.none())),this}commit(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()}_verifyNotCommitted(){if(this._committed)throw new Oo(To.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")}}function Ah(e,t){if((e=(0,G.m9)(e)).firestore!==t)throw new Oo(To.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}function Ph(){return new Fd("serverTimestamp")}function Rh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new zd("arrayRemove",t)}new WeakMap;!function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!function(e){yo=e}(H.Jn),(0,H.Xd)(new W.wA("firestore",((e,n)=>{let{instanceIdentifier:r,options:o}=n;const i=e.getProvider("app").getImmediate(),a=new kd(new No(e.getProvider("auth-internal")),new Zo(e.getProvider("app-check-internal")),function(e,t){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new Oo(To.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Pi(e.options.projectId,t)}(i,r),i);return o=Object.assign({useFetchStreams:t},o),a._setSettings(o),a}),"PUBLIC").setMultipleInstances(!0)),(0,H.KN)(mo,"4.3.2",e),(0,H.KN)(mo,"4.3.2","esm2017")}();var Nh=n(13118),Dh=n(12054),Mh=n(14217),Lh=n(80184);const Zh=function(e,t){const n="object"==typeof e?e:(0,H.Mq)(),r="string"==typeof e?e:t||"(default)",o=(0,H.qX)(n,"firestore").getImmediate({identifier:r});if(!o._initialized){const e=(0,G.P0)("firestore");e&&function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var o;const i=(e=hd(e,pd))._getSettings(),a="".concat(t,":").concat(n);if("firestore.googleapis.com"!==i.host&&i.host!==a&&ko("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),e._setSettings(Object.assign(Object.assign({},i),{host:a,ssl:!1})),r.mockUserToken){let t,n;if("string"==typeof r.mockUserToken)t=r.mockUserToken,n=go.MOCK_USER;else{t=(0,G.Sg)(r.mockUserToken,null===(o=e._app)||void 0===o?void 0:o.options.projectId);const i=r.mockUserToken.sub||r.mockUserToken.user_id;if(!i)throw new Oo(To.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");n=new go(i)}e._authCredentials=new Ro(new Ao(t,n))}}(o,...e)}return o}(Dh.H),jh=new o.QueryClient;function Fh(e){return(0,o.useQuery)(["user",{uid:e}],Sf((()=>bd(Zh,"users",e))),{enabled:!!e})}function zh(e){return xh(bd(Zh,"users",e)).then(Ef)}function Uh(e,t){return Eh(bd(Zh,"users",e),t,{merge:!0})}function Bh(e,t){return Ch(bd(Zh,"users",e),(0,r.Z)((0,r.Z)({},t),{},{updatedAt:Ph()}))}async function Vh(){return await xh(bd(Zh,"images","noPicOffCenter")).then(Ef)}async function Hh(e){Eh(bd(Zh,"users",e.owner,"urls",e.urlId),{timestamp:Ph()},{merge:!0})}
2async function Wh(e){const t=function(e){return Sd(e=hd(e,kd)),new Ih(e,(t=>Th(e,t)))}(Zh),n=e.collections;for(let r of n){t.set(bd(Zh,"users",e.owner,"collections",r),{owner:e.owner,timestamp:Ph(),urls:Rh(e.urlId)},{merge:!0});!await qh(e.owner,r)&&e.screenshotName&&await(0,Nh.ff)(e.owner,r,e.screenshotName)}t.delete(bd(Zh,"users",e.owner,"urls",e.urlId)),e.aiResponse&&t.delete(bd(Zh,"users",e.owner,"aiResponses",e.aiResponse)),await(0,Nh.xD)("offlinePages/".concat(e.owner,"/").concat(e.urlId)),await t.commit()}async function qh(e,t){try{var n;const r=null===(n=(await xh(bd(Zh,"users",e,"collections",t))).data())||void 0===n?void 0:n.cover;return"firebasestorage.googleapis.com"===new URL(r).host}catch(r){return{status:"error",code:r.code}}}function Gh(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,o.useQuery)([{a_z:t},"orderedCollections",{owner:e}],Sf((()=>ih(vd(Zh,"users",e,"collections"),t?uh("title"):uh("timestamp","desc")))),{enabled:!!e})}function Kh(e){return _h(vd(Zh,"users",e.owner,"collections"),(0,r.Z)((0,r.Z)({},e),{},{timestamp:Ph()}))}function Qh(e,t){return Eh(bd(vd(Zh,"users",e.owner,"collections"),t),(0,r.Z)((0,r.Z)({},e),{},{timestamp:Ph()}))}function Yh(e,t){return(0,o.useQuery)(["collection",{id:t}],Sf((()=>bd(Zh,"users",e,"collections",t))),{enabled:!!t})}function $h(e,t,n,o,i){return Eh(bd(Zh,"users",e,"extSubscription","collections"),{changedCollection:{value:t,shared:n,label:o},owner:e},{merge:!0}),Ch(bd(Zh,"users",e,"collections",t),(0,r.Z)((0,r.Z)({},i),{},{updatedAt:Ph()}))}function Xh(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,o.useQuery)([{filter:n},{a_z:r},{owner:e},{id:t}],Sf((()=>ih(vd(Zh,"users",e,"urls"),sh("collections","array-contains",t),n?sh("offline","==",n):r?uh("title"):uh("timestamp","desc")))),{enabled:!!e})}function Jh(e,t){return(0,o.useQuery)(["offline",{id:t}],(()=>xh(bd(Zh,"users",e,"offlinePages",t)).then((e=>{const t=Ef(e);var n,r;return t.article_text=B(31==(n=null===t||void 0===t?void 0:t.article_text.toUint8Array())[0]&&139==n[1]&&8==n[2]?j(n,r):8!=(15&n[0])||n[0]>>4>7||(n[0]<<8|n[1])%31?Z(n,r):F(n,r)),t}))),{enabled:!!t})}function ef(e,t){return xh(bd(Zh,"users",e,"urls",t)).then(Ef)}function tf(e,t){return(0,o.useQuery)(["page",{id:t}],Sf((()=>bd(Zh,"users",e,"urls",t))),{enabled:!!t})}function nf(e,t,n){return Ch(bd(Zh,"users",e,"urls",t),(0,r.Z)((0,r.Z)({},n),{},{updatedAt:Ph()}))}function rf(e){return(0,o.useQuery)(["tags2",{owner:e}],Sf((()=>ih(vd(Zh,"users",e,"tags")))),{enabled:!!e})}function of(e,t){return(0,o.useQuery)([{tags:t},{owner:e}],Sf((()=>ih(vd(Zh,"users",e,"urls"),sh("tagLabels","array-contains-any",t)))),{enabled:!!e})}async function af(e){try{await Ch(bd(Zh,"users",e.owner,"collections",e.id),{shared:!0,updatedAt:Ph()});const t=bd(Zh,"users",e.owner,"extSubscription","collections");Eh(t,{changedCollection:{value:e.id,shared:!0,label:e.title},owner:e.owner},{merge:!0});const n=ih(vd(Zh,"users",e.owner,"urls"),sh("collections","array-contains",e.id));return(await Sh(n)).forEach((e=>{Ch(e.ref,{shared:!0,updatedAt:Ph()})})),"success"}catch(t){return{status:"error",code:t.code}}}async function sf(e){const t=await(async(e,t)=>{for(let n of e)if(await t(n))return!0;return!1})(e.collectionArray,(async t=>{const n=bd(Zh,"users",e.owner,"collections",t),r=await xh(n);if(r.exists())return!0===r.data().shared}));!1===t&&Ch(e.documentRef,{shared:!1,updatedAt:Ph()})}async function lf(e){try{await Ch(bd(Zh,"users",e.owner,"collections",e.id),{shared:!1,updatedAt:Ph()});const t=bd(Zh,"users",e.owner,"extSubscription","collections");Eh(t,{changedCollection:{value:e.id,shared:!1,label:e.title},owner:e.owner},{merge:!0});const n=ih(vd(Zh,"users",e.owner,"urls"),sh("collections","array-contains",e.id));return(await Sh(n)).forEach((t=>{if(1===t.data().collections.length)Ch(t.ref,{shared:!1,updatedAt:Ph()});else{const n=t.data().collections.filter((t=>t!==e.id));n.length>0&&sf({collectionArray:n,documentRef:t.ref,owner:e.owner})}})),"success"}catch(t){return{status:"error",code:t.code}}}function cf(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,o.useQuery)([{a_z:n},t,{sharingUid:e}],Sf((()=>ih(vd(Zh,"users",e,"urls"),sh("shared","==",!0),sh("collections","array-contains",t),n?uh("title"):uh("timestamp","desc")))),{enabled:!!e})}function uf(e,t,n){return(0,o.useQuery)(["sharedDocuments",e,t,n],(async()=>
2{if(!n||0===n.length)return[];const t=[];for(const i of n)try{const n=bd(Zh,"users",e,"documents",i),o=await xh(n);o.exists()?t.push((0,r.Z)({id:o.id},o.data())):console.warn("Document with ID ".concat(i," not found."))}catch(o){console.error("Error fetching document with ID ".concat(i,":"),o)}return t}),{enabled:!!e&&!!n})}async function df(e,t){const n=bd(Zh,"users",e,"bookmarkedShares",e+t);return!!(await xh(n)).data()}function hf(e,t){const n=bd(Zh,"users",e,"collections",t);return(0,o.useQuery)(["sharedcollection",{sharingUid:e}],Sf((()=>ih(n)),sh("shared","==",!0)),{enabled:!!e})}async function ff(e,t,n){return Ch(bd(Zh,"users",e,"bookmarkedShares",e+t),(0,r.Z)((0,r.Z)({},n),{},{updatedAt:Ph()}))}function pf(e){return function(e){return Th(hd(e.firestore,kd),[new Ps(e._key,vs.none())])}(bd(Zh,"users",e.owner,"bookmarkedShares",e.owner+e.id))}function mf(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,o.useQuery)([{a_z:t},"bookmarkedShares",{owner:e}],Sf((()=>ih(vd(Zh,"users",e,"bookmarkedShares"),t?uh("title"):uh("timestamp","desc")))),{enabled:!!e})}async function gf(e){try{let t;t=e.isAiResponse?"".concat("https://api.mypicker.net","/render/").concat(e.owner):e.url;const n={collectionId:e.collectionId,ownerId:e.owner,url:t,title:e.urlTitle.slice(0,200),image:e.image,articleText:(0,Nh.c8)(e.text),isAiResponse:e.isAiResponse,runAsync:!0};return await(0,Mh.oo)(n)}catch(t){return{status:"error",code:t.code}}}function yf(e){return(0,o.useQuery)(["notifications",{uid:e}],Sf((()=>ih(vd(Zh,"users",e,"notifications"),uh("timestamp","desc")))),{enabled:!!e})}function vf(e,t){return Ch(bd(Zh,"users",e,"notifications",t),{isRead:!0})}function bf(e){return(0,o.useQuery)(["documents",{uid:e}],Sf((()=>ih(vd(Zh,"users",e,"documents"),uh("timestamp","desc")))),{enabled:!!e})}function wf(e){return Ch(bd(Zh,"users",e.uid,"documents",e.documentId),{name:e.documentName})}async function xf(e){var t;const n=bd(Zh,"users",e.uid,"collections",e.collectionId);return null===(t=(await xh(n)).data())||void 0===t?void 0:t.brainId}const kf={};function Sf(e){return async t=>{let n,{queryKey:r}=t,i=!0;const a=await new Promise(((t,o)=>{n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o,i,a;e=(0,G.m9)(e);let s={includeMetadataChanges:!1},l=0;"object"!=typeof n[l]||xd(n[l])||(s=n[l],l++);const c={includeMetadataChanges:s.includeMetadataChanges};if(xd(n[l])){const e=n[l];n[l]=null===(o=e.next)||void 0===o?void 0:o.bind(e),n[l+1]=null===(i=e.error)||void 0===i?void 0:i.bind(e),n[l+2]=null===(a=e.complete)||void 0===a?void 0:a.bind(e)}let u,d,h;if(e instanceof gd)d=hd(e.firestore,kd),h=_a(e._key.path),u={next:t=>{n[l]&&n[l](Oh(d,e,t))},error:n[l+1],complete:n[l+2]};else{const t=hd(e,md);d=hd(t.firestore,kd),h=t._query;const r=new kh(d);u={next:e=>{n[l]&&n[l](new bh(d,r,t,e))},error:n[l+1],complete:n[l+2]},nh(e._query)}return function(e,t,n,r){const o=new Qu(r),i=new wu(t,o,n);return e.asyncQueue.enqueueAndForget((async()=>mu(await rd(e),i))),()=>{o.Na(),e.asyncQueue.enqueueAndForget((async()=>gu(await rd(e),i)))}}(Sd(d),h,c,u)}(e(),(e=>{const n=Ef(e);i?(i=!1,t(n)):jh.setQueryData(r,n)}),(e=>{i?(i=!1,o(e)):jh.invalidateQueries(r)}))})),s=(0,o.hashQueryKey)(r);return kf[s]&&kf[s](),kf[s]=n,a}}function Ef(e){const t=e=>(0,r.Z)({id:e.id},e.data());return e.docs?e.docs.map(t):e.exists()?t(e):null}function Cf(e){return(0,Lh.jsx)(o.QueryClientProvider,{client:jh,children:e.children})}async function _f(e){const t=bd(vd(Zh,"Pilot2025")),n=t.id;let o;if(e.file){const n=e.token,{downloadTokens:r}=await(0,Nh._X)(e.file,"users/".concat(e.owner,"/Pilot2025/").concat(t.id),e.fileName,n);o=r}await Eh(t,(0,r.Z)((0,r.Z)({uuid:n,url:e.url,feedback:e.feedback,category:e.category,owner:e.owner,email:e.email},e.file&&{image:"https://firebasestorage.googleapis.com/v0/b/".concat("ideoo-1aa3b.appspot.com","/o/users%2F").concat(e.owner,"%2FPilot2025%2F").concat(n,"%2F").concat(e.fileName,"?alt=media&token=").concat(o)}),{},{timestamp:Ph()})),await(0,Mh.sP)((0,r.Z)({email:e.email,type:e.category,url:e.url,feedback:e.feedback},e.file&&{image:"https://firebasestorage.googleapis.com/v0/b/".concat("ideoo-1aa3b.appspot.com","/o/users%2F").concat(e.owner,"%2FPilot2025%2F").concat(n,"%2F").concat(e.fileName,"?alt=media&token=").concat(o)}))}function Tf(e){return _h(vd(Zh,"WaitingList"),(0,r.Z)((0,r.Z)({},e),{},{timestamp:Ph()}))}function Of(e){return _h(vd(Zh,"InfoRequests"),(0,r.Z)((0,r.Z)({},e),{},{timestamp:Ph()}))}jh.queryCache.subscribe((e=>{let{type:t,query:n}=e;"observerRemoved"===t&&0===n.getObserversCount()&&kf[n.queryHash]&&(kf[n.queryHash](),delete kf[n.queryHash])}))},13118:(e,t,n)=>{"use strict";n.d(t,{xD:()=>Ko,ff:()=>Qo,i$:()=>ei,Zk:()=>qo,LP:()=>ti,Q4:()=>Yo,Zq:()=>$o,c8:()=>Jo,Av:()=>Xo,_X:()=>Go});var r={};n.r(r),n.d(r,{attentionMarkers:()=>yt,contentInitial:()=>dt,disable:()=>vt,document:()=>ut,flow:()=>ft,flowInitial:()=>ht,insideSpan:()=>gt,string:()=>pt,text:()=>mt});var o={};n.r(o),n.d(o,{boolean:()=>fn,booleanish:()=>pn,commaOrSpaceSeparated:()=>bn,commaSeparated:()=>vn,number:()=>gn,overloadedBoolean:()=>mn,spaceSeparated:()=>yn});var i=n(58340),a=n(1413),s=n(72791),l=n(25586);function c(e){return e&&"object"===typeof e?"position"in e||"type"in e?d(e.position):"start"in e||"end"in e?d(e):"line"in e||"column"in e?u(e):"":""}function u(e){return h(e&&e.line)+":"+h(e&&e.column)}function d(e){return u(e&&e.start)+"-"+u(e&&e.end)}function h(e){return e&&"number"===typeof e?e:1}
2class f extends Error{constructor(e,t,n){const r=[null,null];let o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"===typeof t&&(n=t,t=void 0),"string"===typeof n){const e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(o=t.position):"start"in t||"end"in t?o=t:("line"in t||"column"in t)&&(o.start=t)),this.name=c(t)||"1:1",this.message="object"===typeof e?e.message:e,this.stack="","object"===typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.position=o,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}f.prototype.file="",f.prototype.name="",f.prototype.reason="",f.prototype.message="",f.prototype.stack="",f.prototype.fatal=null,f.prototype.column=null,f.prototype.line=null,f.prototype.source=null,f.prototype.ruleId=null,f.prototype.position=null;const p={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');m(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(o=i):(s=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(m(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){m(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const s=e.charCodeAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(){let e,t=-1;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(;++t<r.length;)m(r[t]),r[t]&&(e=void 0===e?r[t]:e+"/"+r[t]);return void 0===e?".":function(e){m(e);const t=47===e.charCodeAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.charCodeAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(o.length<2||2!==i||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=l,s=0;continue}}else if(o.length>0){o="",i=0,a=l,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,l):o=e.slice(a+1,l),i=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function m(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const g={cwd:function(){return"/"}};function y(e){return null!==e&&"object"===typeof e&&e.href&&e.origin}function v(e){if("string"===typeof e)e=new URL(e);else if(!y(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.charCodeAt(n)&&50===t.charCodeAt(n+1)){const e=t.charCodeAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const b=["history","path","basename","stem","extname","dirname"];class w{constructor(e){let t;t=e?"string"===typeof e||function(e){return l(e)}(e)?{value:e}:y(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=g.cwd(),this.value,this.stored,this.result,this.map;let n,r=-1;for(;++r<b.length;){const e=b[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)b.includes(n)||(this[n]=t[n])}get path(){return this.history[this.history.length-1]}set path(e){y(e)&&(e=v(e)),k(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"===typeof this.path?p.dirname(this.path):void 0}set dirname(e){S(this.basename,"dirname"),this.path=p.join(e||"",this.basename)}get basename(){return"string"===typeof this.path?p.basename(this.path):void 0}
2set basename(e){k(e,"basename"),x(e,"basename"),this.path=p.join(this.dirname||"",e)}get extname(){return"string"===typeof this.path?p.extname(this.path):void 0}set extname(e){if(x(e,"extname"),S(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=p.join(this.dirname,this.stem+(e||""))}get stem(){return"string"===typeof this.path?p.basename(this.path,this.extname):void 0}set stem(e){k(e,"stem"),x(e,"stem"),this.path=p.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,t,n){const r=new f(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=null,r}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}}function x(e,t){if(e&&e.includes(p.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+p.sep+"`")}function k(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function S(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function E(e){if(e)throw e}var C=n(11132);function _(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 T(){const e=[],t={run:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=-1;const i=n.pop();if("function"!==typeof i)throw new TypeError("Expected function as last argument, not "+i);!function t(r){const a=e[++o];let s=-1;if(r)i(r);else{for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];for(;++s<n.length;)null!==c[s]&&void 0!==c[s]||(c[s]=n[s]);n=c,a?function(e,t){let n;return o;function o(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];const l=e.length>o.length;let c;l&&o.push(i);try{c=e.apply(this,o)}catch(r){if(l&&n)throw r;return i(r)}l||(c&&c.then&&"function"===typeof c.then?c.then(a,i):c instanceof Error?i(c):a(c))}function i(e){if(!n){n=!0;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];t(e,...o)}}function a(e){i(null,e)}}(a,t)(...c):i(null,...c)}}(null,...n)},use:function(n){if("function"!==typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const O=function e(){const t=T(),n=[];let r,o={},i=-1;return a.data=function(e,t){if("string"===typeof e)return 2===arguments.length?(N("data",r),o[e]=t,a):I.call(o,e)&&o[e]||null;if(e)return N("data",r),o=e,a;return o},a.Parser=void 0,a.Compiler=void 0,a.freeze=function(){if(r)return a;for(;++i<n.length;){const[e,...r]=n[i];if(!1===r[0])continue;!0===r[0]&&(r[0]=void 0);const o=e.call(a,...r);"function"===typeof o&&t.use(o)}return r=!0,i=Number.POSITIVE_INFINITY,a},a.attachers=n,a.use=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];let l;if(N("use",r),null===e||void 0===e);else if("function"===typeof e)h(e,...i);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?d(e):u(e)}l&&(o.settings=Object.assign(o.settings||{},l));return a;function c(e){if("function"===typeof e)h(e);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;h(t,...n)}else u(e)}}function u(e){d(e.plugins),e.settings&&(l=Object.assign(l||{},e.settings))}function d(e){let t=-1;if(null===e||void 0===e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){c(e[t])}}}function h(e,t){let r,o=-1;for(;++o<n.length;)if(n[o][0]===e){r=n[o];break}r?(_(r[1])&&_(t)&&(t=C(!0,r[1],t)),r[1]=t):n.push([...arguments])}},a.parse=function(e){a.freeze();const t=L(e),n=a.Parser;if(P("parse",n),A(n,"parse"))return new n(String(t),t).parse();return n(String(t),t)},a.stringify=function(e,t){a.freeze();const n=L(t),r=a.Compiler;if(R("stringify",r),D(e),A(r,"compile"))return new r(e,n).compile();return r(e,n)},a.run=function(e,n,r){D(e),a.freeze(),r||"function"!==typeof n||(r=n,n=void 0);if(!r)return new Promise(o);function o(o,i){function a(t,n,a){n=n||e,t?i(t):o?o(n):r(null,n,a)}t.run(e,L(n),a)}o(null,r)},a.runSync=function(e,t){let n,r;return a.run(e,t,o),M("runSync","run",r),n;function o(e,t){E(e),n=t,r=!0}},a.process=function(e,t){if(a.freeze(),P("process",a.Parser),R("process",a.Compiler),!t)return new Promise(n);function n(n,r){const o=L(e);function i(e,o){e||!o?r(e):n?n(o):t(null,o)}a.run(a.parse(o),o,((e,t,n)=>{if(!e&&t&&n){const o=a.stringify(t,n);void 0===o||null===o||("string"===typeof(r=o)||l(r)?n.value=o:n.result=o),i(e,n)}else i(e);var r}))}n(null,t)},a.processSync=function(e){let t;a.freeze(),P("processSync",a.Parser),R("processSync",a.Compiler);const n=L(e);return a.process(n,r),M("processSync","process",t),n;function r(e){t=!0,E(e)}},a;function a(){const t=e();let r=-1;for(;++r<n.length;)t.use(...n[r]);return t.data(C(!0,{},o)),t}}().freeze(),I={}.hasOwnProperty;function A(e,t){return"function"===typeof e&&e.prototype&&(function(e){let t;for(t in e)if(I.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function P(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function R(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function N(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function D(e){if(!_(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function M(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function L(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new w(e)}const Z={};function j(e,t,n){if(function(e){return Boolean(e&&"object"===typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return F(e.children,t,n)}return Array.isArray(e)?F(e,t,n):""}function F(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=j(e[o],t,n);return r.join("")}function z(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function U(e,t){return e.length>0?(z(e,e.length,0,t),e):t}const B={}.hasOwnProperty;function V(e){const t={};let n=-1;for(;++n<e.length;)H(t,e[n]);return t}function H(e,t){let n;for(n in t){const r=(B.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){B.call(r,i)||(r[i]=[]);const e=o[i];W(r[i],Array.isArray(e)?e:e?[e]:[])}}}function W(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);z(e,0,0,r)}const q=oe(/[A-Za-z]/),G=oe(/[\dA-Za-z]/),K=oe(/[#-'*+\--9=?A-Z^-~]/);function Q(e){return null!==e&&(e<32||127===e)}const Y=oe(/\d/),$=oe(/[\dA-Fa-f]/),X=oe(/[!-/:-@[-`{-~]/);function J(e){return null!==e&&e<-2}function ee(e){return null!==e&&(e<0||32===e)}function te(e){return-2===e||-1===e||32===e}const ne=oe(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),re=oe(/\s/);function oe(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function ie(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(te(r))return e.enter(n),a(r);return t(r)};function a(r){return te(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const ae={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ie(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):J(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const se={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return s;function s(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,l,c)(r)}return c(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}y(a);let s=n;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},o),s++;return z(t.events,i+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(o){if(a===n.length){if(!r)return h(o);if(r.currentConstruct&&r.currentConstruct.concrete)return p(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(le,u,d)(o)}function u(e){return r&&v(),y(a),h(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,p(e)}function h(n){return t.containerState={},e.attempt(le,f,p)(n)}function f(e){return a++,n.push([t.currentConstruct,t.containerState]),h(e)}function p(n){return null===n?(r&&v(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:r}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):J(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),m)}function g(e,n){const s=t.sliceStream(e);
vendor: 4,088 bytes, line 2
2if(n&&s.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){s=t.events[l][1].end;break}o=!0}for(y(a),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;z(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},le={tokenize:function(e,t,n){return ie(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const ce={tokenize:function(e,t,n){return function(t){return te(t)?ie(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||J(e)?t(e):n(e)}},partial:!0};function ue(e){const t={};let n,r,o,i,a,s,l,c=-1;for(;++c<e.length;){for(;c in t;)c=t[c];if(n=e[c],c&&"chunkFlow"===n[1].type&&"listItemPrefix"===e[c-1][1].type&&(s=n[1]._tokenizer.events,o=0,o<s.length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,de(e,c)),c=t[c],l=!0);else if(n[1]._container){for(o=c,r=void 0;o--&&(i=e[o],"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type);)"enter"===i[0]&&(r&&(e[r][1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);r&&(n[1].end=Object.assign({},e[r][1].start),a=e.slice(r,c),a.unshift(n),z(e,r,c-r+1,a))}}return!l}function de(e,t){const n=e[t][1],r=e[t][2];let o=t-1;const i=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],c={};let u,d,h=-1,f=n,p=0,m=0;const g=[m];for(;f;){for(;e[++o][1]!==f;);i.push(o),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),d&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++h<s.length;)"exit"===s[h][0]&&"enter"===s[h-1][0]&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(m=h+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),h=g.length;h--;){const t=s.slice(g[h],g[h+1]),n=i.pop();l.unshift([n,n+t.length-1]),z(e,n,2,t)}for(h=-1;++h<l.length;)c[p+l[h][0]]=p+l[h][1],p+=l[h][1]-l[h][0]-1;return c}const he={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):J(t)?e.check(fe,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return ue(e),e}},fe={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ie(e,o,"linePrefix")};function o(o){if(null===o||J(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0};const pe={tokenize:function(e){const t=this,n=e.attempt(ce,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,ie(e,e.attempt(this.parser.constructs.flow,r,e.attempt(he,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};
2const me={resolveAll:be()},ge=ve("string"),ye=ve("text");function ve(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return l(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:be("text"===e?we:void 0)}}function be(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function we(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,s=-1,l=0;for(;a--;){const e=o[a];if("string"===typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)i=!0,l++;else if(-1!==e){a++;break}}if(l){const o={type:n===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+a,_bufferIndex:a?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},o.start),r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}function xe(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}function ke(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const o={},i=[];let a=[],s=[],l=!0;const c={consume:function(e){J(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,w()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));u.previous=e,l=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),u.events.push(["enter",n,u]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=p(),u.events.push(["exit",t,u]),t},attempt:v((function(e,t){b(e,t.from)})),check:v(y),interrupt:v(y,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:f,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if("string"===typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(f(e),t)},now:p,defineSkip:function(e){o[e.line]=e.column,w()},write:function(e){if(a=U(a,e),m(),null!==a[a.length-1])return[];return b(t,0),u.events=xe(i,u.events,u),u.events}};let d,h=t.tokenize.call(u,c);return t.resolveAll&&i.push(t),u;function f(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"===typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function p(){const{line:e,column:t,offset:n,_index:o,_bufferIndex:i}=r;return{line:e,column:t,offset:n,_index:o,_bufferIndex:i}}function m(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"===typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}function g(e){l=void 0,d=e,h=h(e)}function y(e,t){t.restore()}function v(e,t){return function(n,o,i){let a,d,h,f;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return m([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function m(e){return a=e,d=0,0===e.length?i:g(e[d])}function g(e){return function(n){f=function(){const e=p(),t=u.previous,n=u.currentConstruct,o=u.events.length,i=Array.from(s);return{restore:a,from:o};function a(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=o,s=i,w()}}(),h=e,e.partial||(u.currentConstruct=e);if(e.name&&u.parser.constructs.disable.null.includes(e.name))return v(n);return e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,y,v)(n)}}function y(t){return l=!0,e(h,f),o}
vendor: 1,703 bytes, line 2
2function v(e){return l=!0,f.restore(),++d<a.length?g(a[d]):i}}}function b(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&z(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function w(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const Se={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||J(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),te(t)?ie(e,i,"whitespace")(t):i(t))}}};const Ee={name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:Y(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(Se,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return Y(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(ce,r.interrupt?n:c,e.attempt(Ce,d,u))}
vendor: 10,979 bytes, line 2
2function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return te(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(ce,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ie(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!te(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(_e,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ie(e,e.attempt(Ee,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},Ce={tokenize:function(e,t,n){const r=this;return ie(e,(function(e){const o=r.events[r.events.length-1];return!te(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},_e={tokenize:function(e,t,n){const r=this;return ie(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const Te={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return te(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(te(t))return ie(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(Te,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function Oe(e,t,n,r,o,i,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||Q(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),p(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(n))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||J(t)?n(t):(e.consume(t),92===t?f:h)}function f(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function p(o){return u||null!==o&&41!==o&&!ee(o)?u<c&&40===o?(e.consume(o),u++,p):41===o?(e.consume(o),u--,p):null===o||32===o||40===o||Q(o)?n(o):(e.consume(o),92===o?m:p):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function Ie(e,t,n,r,o,i){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):J(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||J(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!te(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function Ae(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,s;return n(t)};function s(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===a?(e.exit(i),s(a)):null===t?n(t):J(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ie(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||J(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function Pe(e,t){let n;return function r(o){if(J(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(te(o))return ie(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}function Re(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ne={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Ie.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=Re(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return ee(t)?Pe(e,s)(t):s(t)}function s(t){return Oe(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(De,c,c)(t)}function c(t){return te(t)?ie(e,u,"whitespace")(t):u(t)}function u(i){return null===i||J(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},De={tokenize:function(e,t,n){return function(t){return ee(t)?Pe(e,r)(t):n(t)};function r(t){return Ae(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return te(t)?ie(e,i,"whitespace")(t):i(t)}function i(e){return null===e||J(e)?t(e):n(e)}},partial:!0};const Me={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),ie(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?s(t):J(t)?e.attempt(Le,i,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||J(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},Le={tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):J(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):ie(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):J(e)?o(e):n(e)}},partial:!0};const Ze={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||ee(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||J(n)?(e.exit("atxHeading"),t(n)):te(n)?ie(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||ee(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}},resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},z(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const je={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let o;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),te(t)?ie(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||J(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};const Fe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ze=["pre","script","style","textarea"],Ue={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let o,i,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,f):63===s?(e.consume(s),o=3,r.interrupt?t:D):q(s)?(e.consume(s),a=String.fromCharCode(s),p):n(s)}function u(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,s=0,h):q(i)?(e.consume(i),o=4,r.interrupt?t:D):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:D):n(o)}function h(o){const i="CDATA[";return o===i.charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:_:h):n(o)}function f(t){return q(t)?(e.consume(t),a=String.fromCharCode(t),p):n(t)}function p(s){if(null===s||47===s||62===s||ee(s)){const l=47===s,c=a.toLowerCase();return l||i||!ze.includes(c)?Fe.includes(a.toLowerCase())?(o=6,l?(e.consume(s),m):r.interrupt?t(s):_(s)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?g(s):y(s)):(o=1,r.interrupt?t(s):_(s))}return 45===s||G(s)?(e.consume(s),a+=String.fromCharCode(s),p):n(s)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:_):n(o)}function g(t){return te(t)?(e.consume(t),g):E(t)}function y(t){return 47===t?(e.consume(t),E):58===t||95===t||q(t)?(e.consume(t),v):te(t)?(e.consume(t),y):E(t)}function v(t){return 45===t||46===t||58===t||95===t||G(t)?(e.consume(t),v):b(t)}
vendor: 4,352 bytes, line 2
2function b(t){return 61===t?(e.consume(t),w):te(t)?(e.consume(t),b):y(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):te(t)?(e.consume(t),w):k(t)}function x(t){return t===l?(e.consume(t),l=null,S):null===t||J(t)?n(t):(e.consume(t),x)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||ee(t)?b(t):(e.consume(t),k)}function S(e){return 47===e||62===e||te(e)?y(e):n(e)}function E(t){return 62===t?(e.consume(t),C):n(t)}function C(t){return null===t||J(t)?_(t):te(t)?(e.consume(t),C):n(t)}function _(t){return 45===t&&2===o?(e.consume(t),A):60===t&&1===o?(e.consume(t),P):62===t&&4===o?(e.consume(t),M):63===t&&3===o?(e.consume(t),D):93===t&&5===o?(e.consume(t),N):!J(t)||6!==o&&7!==o?null===t||J(t)?(e.exit("htmlFlowData"),T(t)):(e.consume(t),_):(e.exit("htmlFlowData"),e.check(Be,L,T)(t))}function T(t){return e.check(Ve,O,L)(t)}function O(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||J(t)?T(t):(e.enter("htmlFlowData"),_(t))}function A(t){return 45===t?(e.consume(t),D):_(t)}function P(t){return 47===t?(e.consume(t),a="",R):_(t)}function R(t){if(62===t){const n=a.toLowerCase();return ze.includes(n)?(e.consume(t),M):_(t)}return q(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),R):_(t)}function N(t){return 93===t?(e.consume(t),D):_(t)}function D(t){return 62===t?(e.consume(t),M):45===t&&2===o?(e.consume(t),D):_(t)}function M(t){return null===t||J(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),M)}function L(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},Be={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(ce,t,n)}},partial:!0},Ve={tokenize:function(e,t,n){const r=this;return function(t){if(J(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};const He={tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},We={name:"codeFenced",tokenize:function(e,t,n){const r=this,o={tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),te(t)?ie(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=s?(e.exit("codeFencedFenceSequence"),te(t)?ie(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||J(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let i,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),te(t)?ie(e,c,"whitespace")(t):c(t))}function c(n){return null===n||J(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(He,f,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||J(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):te(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ie(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||J(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(t))}function h(t){return null===t||J(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),h)}function f(t){return e.attempt(o,v,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&te(t)?ie(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||J(t)?e.check(He,f,v)(t):(e.enter("co
2deFlowValue"),y(t))}function y(t){return null===t||J(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function v(n){return e.exit("codeFenced"),t(n)}},concrete:!0};const qe=document.createElement("i");function Ge(e){const t="&"+e+";";qe.innerHTML=t;const n=qe.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const Ke={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,i=G,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=$,c):(e.enter("characterReferenceValue"),o=7,i=Y,c(t))}function c(s){if(59===s&&a){const o=e.exit("characterReferenceValue");return i!==G||Ge(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++<o?(e.consume(s),c):n(s)}}};const Qe={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return X(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const Ye={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ie(e,t,"linePrefix")}}};const $e={name:"labelEnd",tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){if(!o)return n(t);if(o._inactive)return u(t);return i=r.parser.defined.includes(Re(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(Xe,c,i?c:u)(t):91===t?e.attempt(Je,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(et,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,o,i,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(o=a);const l={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[o][1].end)},u={type:"labelText",start:Object.assign({},e[r+s+2][1].end),end:Object.assign({},e[o-2][1].start)};return i=[["enter",l,t],["enter",c,t]],i=U(i,e.slice(r+1,r+s+3)),i=U(i,[["enter",u,t]]),i=U(i,xe(t.parser.constructs.insideSpan.null,e.slice(r+s+4,o-3),t)),i=U(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=U(i,e.slice(o+1)),i=U(i,[["exit",l,t]]),z(e,r,e.length,i),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const n=e[t][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},Xe={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return ee(t)?Pe(e,o)(t):o(t)}function o(t){return 41===t?c(t):Oe(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return ee(t)?Pe(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?Ae(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return ee(t)?Pe(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Je={tokenize:function(e,t,n){const r=this;return function(t){return Ie.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(Re(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},et={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const tt={name:"labelStartImage",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:$e.resolveAll};function nt(e){return null===e||ee(e)||re(e)?1:ne(e)?2:void 0}const rt={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=nt(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===i)return e.consume(s),a;const l=e.exit("attentionSequence"),c=nt(s),u=!c||2===c&&o||n.includes(s),d=!o||2===o&&c||n.includes(r);return l._open=Boolean(42===i?u:u&&(o||!d)),l._close=Boolean(42===i?d:d&&(c||!u)),t(s)}},resolveAll:function(e,t){let n,r,o,i,a,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
vendor: 5,529 bytes, line 2
2n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d=Object.assign({},e[n][1].end),h=Object.assign({},e[u][1].start);ot(d,-s),ot(h,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:h},o={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},i.start),e[u][1].start=Object.assign({},a.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=U(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=U(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),l=U(l,xe(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=U(l,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=U(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,z(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function ot(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const it={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return q(t)?(e.consume(t),i):l(t)}function i(e){return 43===e||45===e||46===e||G(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||G(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Q(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):K(t)?(e.consume(t),l):n(t)}function c(e){return G(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||G(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const at={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),w):63===t?(e.consume(t),v):q(t)?(e.consume(t),S):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,f):q(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),h):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):J(t)?(a=u,R(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),h):u(t)}function h(e){return 62===e?P(e):45===e?d(e):u(e)}function f(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?p:f):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),m):J(t)?(a=p,R(t)):(e.consume(t),p)}function m(t){return 93===t?(e.consume(t),g):p(t)}function g(t){return 62===t?P(t):93===t?(e.consume(t),g):p(t)}function y(t){return null===t||62===t?P(t):J(t)?(a=y,R(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):J(t)?(a=v,R(t)):(e.consume(t),v)}function b(e){return 62===e?P(e):v(e)}function w(t){return q(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||G(t)?(e.consume(t),x):k(t)}function k(t){return J(t)?(a=k,R(t)):te(t)?(e.consume(t),k):P(t)}function S(t){return 45===t||G(t)?(e.consume(t),S):47===t||62===t||ee(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),P):58===t||95===t||q(t)?(e.consume(t),C):J(t)?(a=E,R(t)):te(t)?(e.consume(t),E):P(t)}function C(t){return 45===t||46===t||58===t||95===t||G(t)?(e.consume(t),C):_(t)}function _(t){return 61===t?(e.consume(t),T):J(t)?(a=_,R(t)):te(t)?(e.consume(t),_):E(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,O):J(t)?(a=T,R(t)):te(t)?(e.consume(t),T):(e.consume(t),I)}function O(t){return t===o?(e.consume(t),o=void 0,A):null===t?n(t):J(t)?(a=O,R(t)):(e.consume(t),O)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||ee(t)?E(t):(e.consume(t),I)}function A(e){return 47===e||62===e||ee(e)?E(e):n(e)}function P(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return te(t)?ie(e,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):D(t)}function D(t){return e.enter("htmlTextData"),a(t)}}};const st={name:"labelStartLink",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:$e.resolveAll};const lt={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return J(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const ct={name:"codeText",tokenize:function(e,t,n){let r,o,i=0;
2return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):J(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||J(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",l(n))}},resolve:function(e){let t,n,r=e.length-4,o=3;if(("lineEnding"===e[o][1].type||"space"===e[o][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};const ut={42:Ee,43:Ee,45:Ee,48:Ee,49:Ee,50:Ee,51:Ee,52:Ee,53:Ee,54:Ee,55:Ee,56:Ee,57:Ee,62:Te},dt={91:Ne},ht={[-2]:Me,[-1]:Me,32:Me},ft={35:Ze,42:Se,45:[je,Se],60:Ue,61:je,95:Se,96:We,126:We},pt={38:Ke,92:Qe},mt={[-5]:Ye,[-4]:Ye,[-3]:Ye,33:tt,38:Ke,42:rt,60:[it,at],91:st,92:[lt,Qe],93:$e,95:rt,96:ct},gt={null:[rt,me]},yt={null:[42,95]},vt={null:[]};const bt=/[\0\t\n\r]/g;function wt(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCharCode(n)}const xt=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function kt(e){return e.replace(xt,St)}function St(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return wt(n.slice(t?2:1),t?16:10)}return Ge(n)||e}const Et={}.hasOwnProperty,Ct=function(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ie),autolinkProtocol:O,autolinkEmail:O,atxHeading:s(te),blockQuote:s(Y),characterEscape:O,characterReference:O,codeFenced:s($),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s($,l),codeText:s(X,l),codeTextData:O,data:O,codeFlowValue:O,definition:s(J),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(ee),hardBreakEscape:s(ne),hardBreakTrailing:s(ne),htmlFlow:s(re,l),htmlFlowData:O,htmlText:s(re,l),htmlTextData:O,image:s(oe),label:l,link:s(ie),listItem:s(se),listItemValue:m,listOrdered:s(ae,p),listUnordered:s(ae),paragraph:s(le),reference:H,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(te),strong:s(ce),thematicBreak:s(de)},exit:{atxHeading:d(),atxHeadingSequence:E,autolink:d(),autolinkEmail:Q,autolinkProtocol:K,blockQuote:d(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:q,characterReferenceMarkerNumeric:q,characterReferenceValue:G,codeFenced:d(b),codeFencedFence:v,codeFencedFenceInfo:g,codeFencedFenceMeta:y,codeFlowValue:I,codeIndented:d(w),codeText:d(D),codeTextData:I,data:I,definition:d(),definitionDestinationString:S,definitionLabelString:x,definitionTitleString:k,emphasis:d(),hardBreakEscape:d(P),hardBreakTrailing:d(P),htmlFlow:d(R),htmlFlowData:I,htmlText:d(N),htmlTextData:I,image:d(L),label:z,labelText:F,lineEnding:A,link:d(M),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:W,resourceDestinationString:U,resourceTitleString:B,resource:V,setextHeading:d(T),setextHeadingLineSequence:_,setextHeadingText:C,strong:d(),thematicBreak:d()}};Tt(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let n={type:"root",children:[]};const r={stack:[n],tokenStack:[],config:t,enter:u,exit:h,buffer:l,resume:f,setData:i,getData:a},s=[];let c=-1;for(;++c<e.length;)if("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)if("enter"===e[c][0])s.push(c);else{c=o(e,s.pop(),c)}for(c=-1;++c<e.length;){const n=t[e[c][0]];Et.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},r),e[c][1])}if(r.tokenStack.length>0){const e=r.tokenStack[r.tokenStack.length-1];(e[1]||It).call(r,void 0,e[0])}for(n.position={start:_t(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:_t(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)n=t.transforms[c](n)||n;return n}function o(e,t,n){let r,o,i,a,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?l++:l--,a=void 0):"lineEndingBlank"===t[1].type?"enter"
vendor: 6,900 bytes, line 2
2===t[0]&&(!r||a||l||i||(i=s),a=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(a=void 0),!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||s,0,["exit",r,t[2]]),s++,n++}"listItemPrefix"===t[1].type&&(r={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0},e.splice(s,0,["enter",r,t[2]]),s++,n++,i=void 0,a=!0)}}return e[t][1]._spread=c,n}function i(e,t){n[e]=t}function a(e){return n[e]}function s(e,t){return n;function n(n){u.call(this,e(n),n),t&&t.call(this,n)}}function l(){this.stack.push({type:"fragment",children:[]})}function u(e,t,n){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:_t(t.start)},e}function d(e){return t;function t(t){e&&e.call(this,t),h.call(this,t)}}function h(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+c({start:e.start,end:e.end})+"): it\u2019s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||It).call(this,e,r[0])}return n.position.end=_t(e.end),n}function f(){return function(e,t){const n=t||Z;return j(e,"boolean"!==typeof n.includeImageAlt||n.includeImageAlt,"boolean"!==typeof n.includeHtml||n.includeHtml)}(this.stack.pop())}function p(){i("expectingFirstListItemValue",!0)}function m(e){if(a("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),i("expectingFirstListItemValue")}}function g(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function y(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function v(){a("flowCodeInside")||(this.buffer(),i("flowCodeInside",!0))}function b(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),i("flowCodeInside")}function w(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function x(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Re(this.sliceSerialize(e)).toLowerCase()}function k(){const e=this.resume();this.stack[this.stack.length-1].title=e}function S(){const e=this.resume();this.stack[this.stack.length-1].url=e}function E(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function C(){i("setextHeadingSlurpLineEnding",!0)}function _(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function T(){i("setextHeadingSlurpLineEnding")}function O(e){const t=this.stack[this.stack.length-1];let n=t.children[t.children.length-1];n&&"text"===n.type||(n=ue(),n.position={start:_t(e.start)},t.children.push(n)),this.stack.push(n)}function I(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=_t(e.end)}function A(e){const n=this.stack[this.stack.length-1];if(a("atHardBreak")){return n.children[n.children.length-1].position.end=_t(e.end),void i("atHardBreak")}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(n.type)&&(O.call(this,e),I.call(this,e))}function P(){i("atHardBreak",!0)}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function D(){const e=this.resume();this.stack[this.stack.length-1].value=e}function M(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;i("referenceType")}function L(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;i("referenceType")}function F(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=kt(t),n.identifier=Re(t).toLowerCase()}function z(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(i("inReference",!0),"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function U(){const e=this.resume();this.stack[this.stack.length-1].url=e}function B(){const e=this.resume();this.stack[this.stack.length-1].title=e}function V(){i("inReference")}function H(){i("referenceType","collapsed")}function W(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Re(this.sliceSerialize(e)).toLowerCase(),i("referenceType","full")}function q(e){i("characterReferenceType",e.type)}function G(e){const t=this.sliceSerialize(e),n=a("characterReferenceType");let r;if(n)r=wt(t,"characterReferenceMarkerNumeric"===n?10:16),i("characterReferenceType");else{r=Ge(t)}const o=this.stack.pop();o.value+=r,o.position.end=_t(e.end)}function K(e){I.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function Q(e){I.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function Y(){return{type:"blockquote",children:[]}}function $(){return{type:"code",lang:null,meta:null,value:""}}function X(){return{type:"inlineCode",value:""}}function J(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ee(){return{type:"emphasis",children:[]}}function te(){return{type:"heading",depth:void 0,children:[]}}function ne(){return{type:"break"}}function re(){return{type:"html",value:""}}function oe(){return{type:"image",title:null,url:"",alt:null}}function ie(){return{type:"link",title:null,url:"",children:[]}}function ae(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function se(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function le(){return{type:"paragraph",children:[]}}function ce(){return{type:"strong",children:[]}}function ue(){return{type:"text",value:""}}function de(){return{type:"thematicBreak"}}}(n)(function(e){for(;!ue(e););return e}(function(e){const t={defined:[],lazy:{},constructs:V([r,...(e||{}).extensions||[]]),content:n(ae),document:n(se),flow:n(pe),string:n(ge),text:n(ye)};return t;function n(e){return function(n){return ke(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const s=[];let l,c,u,d,h;
2for(o=n+o.toString(i),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(bt.lastIndex=u,l=bt.exec(o),d=l&&void 0!==l.index?l.index:o.length,h=o.charCodeAt(d),!l){n=o.slice(u);break}if(10===h&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(o.slice(u,d)),t+=d-u),h){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))};function _t(e){return{line:e.line,column:e.column,offset:e.offset}}function Tt(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Tt(e,r):Ot(e,r)}}function Ot(e,t){let n;for(n in t)if(Et.call(t,n))if("canContainEols"===n){const r=t[n];r&&e[n].push(...r)}else if("transforms"===n){const r=t[n];r&&e[n].push(...r)}else if("enter"===n||"exit"===n){const r=t[n];r&&Object.assign(e[n],r)}}function It(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+c({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+c({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+c({start:t.start,end:t.end})+") is still open")}function At(e){Object.assign(this,{Parser:t=>{const n=this.data("settings");return Ct(t,Object.assign({},n,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function Pt(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&G(e.charCodeAt(n+1))&&G(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="\ufffd"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}const Rt=function(e){if(void 0===e||null===e)return Dt;if("string"===typeof e)return function(e){return Nt(t);function t(t){return t&&t.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Rt(e[n]);return Nt(r);function r(){let e=-1;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(;++e<t.length;)if(t[e].call(this,...r))return!0;return!1}}(e):function(e){return Nt(t);function t(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(e);if("function"===typeof e)return Nt(e);throw new Error("Expected function, string, or object as test")};function Nt(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Boolean(t&&"object"===typeof t&&"type"in t&&Boolean(e.call(this,t,...r)))}}function Dt(){return!0}const Mt=function(e,t,n,r){"function"===typeof t&&"function"!==typeof n&&(r=n,n=t,t=null);const o=Rt(t),i=r?-1:1;!function e(a,s,l){const c=a&&"object"===typeof a?a:{};if("string"===typeof c.type){const e="string"===typeof c.tagName?c.tagName:"string"===typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,h=[];if((!t||o(a,s,l[l.length-1]||null))&&(h=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(n(a,l)),false===h[0]))return h;if(a.children&&"skip"!==h[0])for(u=(r?a.children.length:-1)+i,d=l.concat(a);u>-1&&u<a.children.length;){if(c=e(a.children[u],u,d)(),false===c[0])return c;u="number"===typeof c[1]?c[1]:u+i}return h}}(e,void 0,[])()};const Lt=function(e,t,n,r){"function"===typeof t&&"function"!==typeof n&&(r=n,n=t,t=null),Mt(e,t,(function(e,t){const r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)}
2),r)},Zt=Ft("start"),jt=Ft("end");function Ft(e){return function(t){const n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}const zt={}.hasOwnProperty;function Ut(e){return String(e||"").toUpperCase()}function Bt(e,t){const n=String(t.identifier).toUpperCase(),r=Pt(n.toLowerCase()),o=e.footnoteOrder.indexOf(n);let i;-1===o?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,i=e.footnoteOrder.length):(e.footnoteCounts[n]++,i=o+1);const a=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function Vt(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function Ht(e){const t=e.spread;return void 0===t||null===t?e.children.length>1:t}const Wt=9,qt=32;function Gt(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(Kt(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(Kt(t.slice(o),o>0,!1)),i.join("")}function Kt(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;t===Wt||t===qt;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;t===Wt||t===qt;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Qt={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,o={};r&&(o.className=["language-"+r]);let i={type:"element",tagName:"code",properties:o,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:Bt,footnote:function(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const o=String(r);return n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},Bt(e,{type:"footnoteReference",identifier:o,position:t.position})},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){const n=e.definition(t.identifier);if(!n)return Vt(e,t);const r={src:Pt(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:Pt(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=e.definition(t.identifier);if(!n)return Vt(e,t);const r={href:Pt(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:Pt(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ht(n[r])}return t}(n):Ht(t),i={},a=[];if("boolean"===typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const l=r[r.length-1];l&&(o||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"===typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;
2){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=Zt(t.children[1]),a=jt(t.children[t.children.length-1]);i.line&&a.line&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let s=-1;const l=[];for(;++s<a;){const n=t.children[s],r={},a=i?i[s]:void 0;a&&(r.align=a);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(t,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:Gt(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Yt,yaml:Yt,definition:Yt,footnoteDefinition:Yt};function Yt(){return null}const $t={}.hasOwnProperty;function Xt(e,t){const n=t||{},r=n.allowDangerousHtml||!1,o={};return s.dangerous=r,s.clobberPrefix=void 0===n.clobberPrefix||null===n.clobberPrefix?"user-content-":n.clobberPrefix,s.footnoteLabel=n.footnoteLabel||"Footnotes",s.footnoteLabelTagName=n.footnoteLabelTagName||"h2",s.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},s.footnoteBackLabel=n.footnoteBackLabel||"Back to content",s.unknownHandler=n.unknownHandler,s.passThrough=n.passThrough,s.handlers=(0,a.Z)((0,a.Z)({},Qt),n.handlers),s.definition=function(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return Lt(e,"definition",(e=>{const n=Ut(e.identifier);n&&!zt.call(t,n)&&(t[n]=e)})),function(e){const n=Ut(e);return n&&zt.call(t,n)?t[n]:null}}(e),s.footnoteById=o,s.footnoteOrder=[],s.footnoteCounts={},s.patch=Jt,s.applyData=en,s.one=function(e,t){return tn(s,e,t)},s.all=function(e){return nn(s,e)},s.wrap=rn,s.augment=i,Lt(e,"footnoteDefinition",(e=>{const t=String(e.identifier).toUpperCase();$t.call(o,t)||(o[t]=e)})),s;function i(e,t){if(e&&"data"in e&&e.data){const n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties=(0,a.Z)((0,a.Z)({},t.properties),n.hProperties)),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){const n="type"in e?e:{position:e};(function(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column})(n)||(t.position={start:Zt(n),end:jt(n)})}return t}function s(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),i(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}function Jt(e,t){e.position&&(t.position=function(e){return{start:Zt(e),end:jt(e)}}(e))}function en(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"===typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:[]}),"element"===n.type&&o&&(n.properties=(0,a.Z)((0,a.Z)({},n.properties),o)),"children"in n&&n.children&&null!==r&&void 0!==r&&(n.children=r)}return n}function tn(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return $t.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?(0,a.Z)((0,a.Z)({},t),{},{children:nn(e,t)}):t:e.unknownHandler?e.unknownHandler(e,t,n):function(e,t){const n=t.data||{},r=!("value"in t)||$t.call(n,"hProperties")||$t.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:nn(e,t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}(e,t)}function nn(e,t){const n=[];if("children"in t){const r=t.children;let o=-1;for(;++o<r.length;){const i=tn(e,r[o],t);if(i){if(o&&"break"===r[o-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=i.value.replace(/^\s+/,"")),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(i)?n.push(...i):n.push(i)}}}return n}function rn(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function on(e,t){const n=Xt(e,t),r=n.one(e,null),o=function(e){const t=[];let n=-1;for(;++n<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;const o=e.all(r),i=String(r.identifier).toUpperCase(),a=Pt(i.toLowerCase());let s=0;const l=[];for(;++s<=e.footnoteCounts[i];){const t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"\u21a9"}]};s>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(t)}const c=o[o.length-1];if(c&&"element"===c.type&&"p"===c.tagName){const e=c.children[c.children.length-1];e&&"text"===e.type?e.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...l)}else o.push(...l);const u={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(o,!0)};e.patch(r,u),t.push(u)}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:(0,a.Z)((0,a.Z)({},JSON.parse(JSON.stringify(e.footnoteLabelProperties))),{},{id:"footnote-label"}),children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return o&&r.children.push({type:"text",value:"\n"},o),Array.isArray(r)?{type:"root",children:r}:r}const an=function(e,t){return e&&"run"in e?function(e,t){return(n,r,o)=>{e.run(on(n,t),r,(e=>{o(e)}))}}(e,t):function(e){return t=>on(t,e)}(e||t)};var sn=n(52007);class ln{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function cn(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new ln(n,r,t)}function un(e){return e.toLowerCase()}ln.prototype.property={},ln.prototype.normal={},ln.prototype.space=null;class dn{constructor(e,t){this.property=e,this.attribute=t}}dn.prototype.space=null,dn.prototype.boolean=!1,dn.prototype.booleanish=!1,dn.prototype.overloadedBoolean=!1,dn.prototype.number=!1,dn.prototype.commaSeparated=!1,dn.prototype.spaceSeparated=!1,dn.prototype.commaOrSpaceSeparated=!1,dn.prototype.mustUseProperty=!1,dn.prototype.defined=!1;let hn=0;const fn=wn(),pn=wn(),mn=wn(),gn=wn(),yn=wn(),vn=wn(),bn=wn();function wn(){return 2**++hn}const xn=Object.keys(o);class kn extends dn{constructor(e,t,n,r){let i=-1;
vendor: 4,772 bytes, line 2
2if(super(e,t),Sn(this,"space",r),"number"===typeof n)for(;++i<xn.length;){const e=xn[i];Sn(this,xn[i],(n&o[e])===o[e])}}}function Sn(e,t,n){n&&(e[t]=n)}kn.prototype.defined=!0;const En={}.hasOwnProperty;function Cn(e){const t={},n={};let r;for(r in e.properties)if(En.call(e.properties,r)){const o=e.properties[r],i=new kn(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[un(r)]=r,n[un(i.attribute)]=r}return new ln(t,n,e.space)}const _n=Cn({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Tn=Cn({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function On(e,t){return t in e?e[t]:t}function In(e,t){return On(e,t.toLowerCase())}const An=Cn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:In,properties:{xmlns:null,xmlnsXLink:null}}),Pn=Cn({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:pn,ariaAutoComplete:null,ariaBusy:pn,ariaChecked:pn,ariaColCount:gn,ariaColIndex:gn,ariaColSpan:gn,ariaControls:yn,ariaCurrent:null,ariaDescribedBy:yn,ariaDetails:null,ariaDisabled:pn,ariaDropEffect:yn,ariaErrorMessage:null,ariaExpanded:pn,ariaFlowTo:yn,ariaGrabbed:pn,ariaHasPopup:null,ariaHidden:pn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:yn,ariaLevel:gn,ariaLive:null,ariaModal:pn,ariaMultiLine:pn,ariaMultiSelectable:pn,ariaOrientation:null,ariaOwns:yn,ariaPlaceholder:null,ariaPosInSet:gn,ariaPressed:pn,ariaReadOnly:pn,ariaRelevant:null,ariaRequired:pn,ariaRoleDescription:yn,ariaRowCount:gn,ariaRowIndex:gn,ariaRowSpan:gn,ariaSelected:pn,ariaSetSize:gn,ariaSort:null,ariaValueMax:gn,ariaValueMin:gn,ariaValueNow:gn,ariaValueText:null,role:null}}),Rn=Cn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:In,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:vn,acceptCharset:yn,accessKey:yn,action:null,allow:null,allowFullScreen:fn,allowPaymentRequest:fn,allowUserMedia:fn,alt:null,as:null,async:fn,autoCapitalize:null,autoComplete:yn,autoFocus:fn,autoPlay:fn,blocking:yn,capture:null,charSet:null,checked:fn,cite:null,className:yn,cols:gn,colSpan:null,content:null,contentEditable:pn,controls:fn,controlsList:yn,coords:gn|vn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:fn,defer:fn,dir:null,dirName:null,disabled:fn,download:mn,draggable:pn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:fn,formTarget:null,headers:yn,height:gn,hidden:fn,high:gn,href:null,hrefLang:null,htmlFor:yn,httpEquiv:yn,id:null,imageSizes:null,imageSrcSet:null,inert:fn,inputMode:null,integrity:null,is:null,isMap:fn,itemId:null,itemProp:yn,itemRef:yn,itemScope:fn,itemType:yn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:fn,low:gn,manifest:null,max:null,maxLength:gn,media:null,method:null,min:null,minLength:gn,multiple:fn,muted:fn,name:null,nonce:null,noModule:fn,noValidate:fn,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:fn,optimum:gn,pattern:null,ping:yn,placeholder:null,playsInl
2ine:fn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:fn,referrerPolicy:null,rel:yn,required:fn,reversed:fn,rows:gn,rowSpan:gn,sandbox:yn,scope:null,scoped:fn,seamless:fn,selected:fn,shadowRootClonable:fn,shadowRootDelegatesFocus:fn,shadowRootMode:null,shape:null,size:gn,sizes:null,slot:null,span:gn,spellCheck:pn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:gn,step:null,style:null,tabIndex:gn,target:null,title:null,translate:null,type:null,typeMustMatch:fn,useMap:null,value:pn,width:gn,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:yn,axis:null,background:null,bgColor:null,border:gn,borderColor:null,bottomMargin:gn,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:fn,declare:fn,event:null,face:null,frame:null,frameBorder:null,hSpace:gn,leftMargin:gn,link:null,longDesc:null,lowSrc:null,marginHeight:gn,marginWidth:gn,noResize:fn,noHref:fn,noShade:fn,noWrap:fn,object:null,profile:null,prompt:null,rev:null,rightMargin:gn,rules:null,scheme:null,scrolling:pn,standby:null,summary:null,text:null,topMargin:gn,valueType:null,version:null,vAlign:null,vLink:null,vSpace:gn,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:fn,disableRemotePlayback:fn,prefix:null,property:null,results:gn,security:null,unselectable:null}}),Nn=Cn({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
2-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:On,properties:{about:bn,accentHeight:gn,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:gn,amplitude:gn,arabicForm:null,ascent:gn,attributeName:null,attributeType:null,azimuth:gn,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:gn,by:null,calcMode:null,capHeight:gn,className:yn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:gn,diffuseConstant:gn,direction:null,display:null,dur:null,divisor:gn,dominantBaseline:null,download:fn,dx:null,dy:null,edgeMode:null,editable:null,elevation:gn,enableBackground:null,end:null,event:null,exponent:gn,externalResourcesRequired:null,fill:null,fillOpacity:gn,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:vn,g2:vn,glyphName:vn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:gn,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:gn,horizOriginX:gn,horizOriginY:gn,id:null,ideographic:gn,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:gn,k:gn,k1:gn,k2:gn,k3:gn,k4:gn,kernelMatrix:bn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:gn,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:gn,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
2Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:gn,overlineThickness:gn,paintOrder:null,panose1:null,path:null,pathLength:gn,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:yn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:gn,pointsAtY:gn,pointsAtZ:gn,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:bn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:bn,rev:bn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:bn,requiredFeatures:bn,requiredFonts:bn,requiredFormats:bn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:gn,specularExponent:gn,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:gn,strikethroughThickness:gn,string:null,stroke:null,strokeDashArray:bn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:gn,strokeOpacity:gn,strokeWidth:null,style:null,surfaceScale:gn,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:bn,tabIndex:gn,tableValues:null,target:null,targetX:gn,targetY:gn,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:bn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:gn,underlineThickness:gn,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:gn,values:null,vAlphabetic:gn,vMathematical:gn,vectorEffect:null,vHanging:gn,vIdeographic:gn,version:null,vertAdvY:gn,vertOriginX:gn,vertOriginY:gn,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:gn,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Dn=cn([Tn,_n,An,Pn,Rn],"html"),Mn=cn([Tn,_n,An,Pn,Nn],"svg");function Ln(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{Lt(t,"element",((t,n,r)=>{const o=r;let i;if(e.allowedElements?i=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(t.tagName)),!i&&e.allowElement&&"number"===typeof n&&(i=!e.allowElement(t,n,o)),i&&"number"===typeof n)return e.unwrapDisallowed&&t.children?o.children.splice(n,1,...t.children):o.children.splice(n,1),n}))}}var Zn=n(57441);function jn(e){const t=e&&"object"===typeof e&&"text"===e.type?e.value||"":e;return"string"===typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}const Fn=/^data[-\w.:]+$/i,zn=/-[a-z]/g,Un=/[A-Z]/g;function Bn(e){return"-"+e.toLowerCase()}function Vn(e){return e.charAt(1).toUpperCase()}const Hn={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};const Wn=n(46426),qn=["http","https","mailto","tel"];function Gn(e){const t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;const r=t.indexOf(":");if(-1===r)return t;let o=-1;for(;++o<qn.length;){const e=qn[o];if(r===e.length&&t.slice(0,e.length).toLowerCase()===e)return t}return o=t.indexOf("?"),-1!==o&&r>o?t:(o=t.indexOf("#"),-1!==o&&r>o?t:"javascript:void(0)")}const Kn={}.hasOwnProperty,Qn=new Set(["table","thead","tbody","tfoot","tr"]);function Yn(e,t){const n=[];let r,o=-1;for(;++o<t.children.length;)r=t.children[o],"element"===r.type?n.push($n(e,r,o,t)):"text"===r.type?"element"===t.type&&Qn.has(t.tagName)&&jn(r)||n.push(r.value):"raw"!==r.type||e.options.skipHtml||n.push(r.value);return n}function $n(e,t,n,r){const o=e.options,i=void 0===o.transformLinkUri?G
2n:o.transformLinkUri,a=e.schema,l=t.tagName,c={};let u,d=a;if("html"===a.space&&"svg"===l&&(d=Mn,e.schema=d),t.properties)for(u in t.properties)Kn.call(t.properties,u)&&Jn(c,u,t.properties[u],e);"ol"!==l&&"ul"!==l||e.listDepth++;const h=Yn(e,t);"ol"!==l&&"ul"!==l||e.listDepth--,e.schema=a;const f=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},p=o.components&&Kn.call(o.components,l)?o.components[l]:l,m="string"===typeof p||p===s.Fragment;if(!Zn.isValidElementType(p))throw new TypeError("Component for name `".concat(l,"` not defined or is not renderable"));if(c.key=[l,f.start.line,f.start.column,n].join("-"),"a"===l&&o.linkTarget&&(c.target="function"===typeof o.linkTarget?o.linkTarget(String(c.href||""),t.children,"string"===typeof c.title?c.title:null):o.linkTarget),"a"===l&&i&&(c.href=i(String(c.href||""),t.children,"string"===typeof c.title?c.title:null)),m||"code"!==l||"element"!==r.type||"pre"===r.tagName||(c.inline=!0),m||"h1"!==l&&"h2"!==l&&"h3"!==l&&"h4"!==l&&"h5"!==l&&"h6"!==l||(c.level=Number.parseInt(l.charAt(1),10)),"img"===l&&o.transformImageUri&&(c.src=o.transformImageUri(String(c.src||""),String(c.alt||""),"string"===typeof c.title?c.title:null)),!m&&"li"===l&&"element"===r.type){const e=function(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(t);c.checked=e&&e.properties?Boolean(e.properties.checked):null,c.index=Xn(r,t),c.ordered="ol"===r.tagName}var g;return m||"ol"!==l&&"ul"!==l||(c.ordered="ol"===l,c.depth=e.listDepth),"td"!==l&&"th"!==l||(c.align&&(c.style||(c.style={}),c.style.textAlign=c.align,delete c.align),m||(c.isHeader="th"===l)),m||"tr"!==l||"element"!==r.type||(c.isHeader=Boolean("thead"===r.tagName)),o.sourcePos&&(c["data-sourcepos"]=[(g=f).start.line,":",g.start.column,"-",g.end.line,":",g.end.column].map(String).join("")),!m&&o.rawSourcePos&&(c.sourcePosition=t.position),!m&&o.includeElementIndex&&(c.index=Xn(r,t),c.siblingCount=Xn(r)),m||(c.node=t),h.length>0?s.createElement(p,c,h):s.createElement(p,c)}function Xn(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&r++;return r}function Jn(e,t,n,r){const o=function(e,t){const n=un(t);let r=t,o=dn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Fn.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(zn,Vn);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!zn.test(e)){let n=e.replace(Un,Bn);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=kn}return new o(r,t)}(r.schema,t);let i=n;null!==i&&void 0!==i&&i===i&&(Array.isArray(i)&&(i=o.commaSeparated?function(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(i):i.join(" ").trim()),"style"===o.property&&"string"===typeof i&&(i=function(e){const t={};try{Wn(e,n)}catch(r){}return t;function n(e,n){const r="-ms-"===e.slice(0,4)?"ms-".concat(e.slice(4)):e;t[r.replace(/-([a-z])/g,er)]=n}}(i)),o.space&&o.property?e[Kn.call(Hn,o.property)?Hn[o.property]:o.property]=i:o.attribute&&(e[o.attribute]=i))}function er(e,t){return t.toUpperCase()}const tr={}.hasOwnProperty,nr={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function rr(e){for(const i in nr)if(tr.call(nr,i)&&tr.call(e,i)){const e=nr[i];console.warn("[react-markdown] Warning: please ".concat(e.to?"use `".concat(e.to,"` instead of"):"remove"," `").concat(i,"` (see <").concat("https://github.com/remarkjs/react-markdown/blob/main/changelog.md","#").concat(e.id,"> for more info)")),delete nr[i]}const t=O().use(At).use(e.remarkPlugins||[]).use(an,(0,a.Z)((0,a.Z)({},e.remarkRehypeOptions),{},{allowDangerousHtml:!0})).use(e.rehypePlugins||[]).use(Ln,e),n=new w;"string"===typeof e.children?n.value=e.children:void 0!==e.children&&null!==e.children&&console.warn("[react-markdown] Warning: please pass a string as `children` (not: `".concat(e.children,"`)"));const r=t.runSync(t.parse(n),n);if("root"!==r.type)throw new TypeError("Expected a `root` node");let o=s.createElement(s.Fragment,{},Yn({options:e,schema:Dn,listDepth:0},r));return e.className&&(o=s.createElement("div",{className:e.className},o)),o}rr.propTypes={children:sn.string,className:sn.string,allowElement:sn.func,allowedElements:sn.arrayOf(sn.string),disallowedElements:sn.arrayOf(sn.string),unwrapDisallowed:sn.bool,remarkPlugins:sn.arrayOf(sn.oneOfType([sn.object,sn.func,sn.arrayOf(sn.oneOfType([sn.bool,sn.string,
vendor: 4,749 bytes, line 2
2sn.object,sn.func,sn.arrayOf(sn.any)]))])),rehypePlugins:sn.arrayOf(sn.oneOfType([sn.object,sn.func,sn.arrayOf(sn.oneOfType([sn.bool,sn.string,sn.object,sn.func,sn.arrayOf(sn.any)]))])),sourcePos:sn.bool,rawSourcePos:sn.bool,skipHtml:sn.bool,includeElementIndex:sn.bool,transformLinkUri:sn.oneOfType([sn.func,sn.bool]),linkTarget:sn.oneOfType([sn.func,sn.string]),transformImageUri:sn.func,components:sn.object};var or=n(62236),ir=n(39568),ar=n(29421),sr=n(89885),lr=n(11814),cr=n(45047),ur=n(78703),dr=n.n(ur),hr=n(30276);const fr={tokenize:function(e,t,n){let r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,e.consume(i),t;if(46===i&&3===r)return e.consume(i),o;return n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},pr={tokenize:function(e,t,n){let r,o,i;return a;function a(t){return 46===t||95===t?e.check(gr,l,s)(t):null===t||ee(t)||re(t)||45!==t&&ne(t)?l(t):(i=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),a}function l(e){return o||r||!i?n(e):t(e)}},partial:!0},mr={tokenize:function(e,t){let n=0,r=0;return o;function o(a){return 40===a?(n++,e.consume(a),o):41===a&&r<n?i(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(gr,t,i)(a):null===a||ee(a)||re(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},gr={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),i):93===a?(e.consume(a),o):60===a||null===a||ee(a)||re(a)?t(a):n(a)}function o(e){return null===e||40===e||91===e||ee(e)||re(e)?t(e):r(e)}function i(e){return q(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):q(t)?(e.consume(t),a):n(t)}},partial:!0},yr={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return G(e)?n(e):t(e)}},partial:!0},vr={tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!Er.call(r,r.previous)||Or(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(fr,e.attempt(pr,e.attempt(mr,o),n),n)(t)};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Er},br={tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){if((72===t||104===t)&&Cr.call(r,r.previous)&&!Or(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a;return n(t)};function a(t){if(q(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),i?l:(i=!0,s)):n(t)}function l(t){return null===t||Q(t)||ee(t)||re(t)||ne(t)?n(t):e.attempt(pr,e.attempt(mr,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Cr},wr={tokenize:function(e,t,n){const r=this;let o,i;return function(t){if(!Tr(t)||!_r.call(r,r.previous)||Or(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return Tr(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(yr,c,l)(t):45===t||95===t||G(t)?(i=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),o=!0,s}function c(a){return i&&o&&q(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:_r},xr={},kr={text:xr};let Sr=48;for(;Sr<123;)xr[Sr]=wr,Sr++,58===Sr?Sr=65:91===Sr&&(Sr=97);function Er(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||ee(e)}function Cr(e){return!q(e)}function _r(e){return!(47===e||Tr(e))}function Tr(e){return 43===e||45===e||46===e||95===e||G(e)}function Or(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}xr[43]=wr,xr[45]=wr,xr[46]=wr,xr[95]=wr,xr[72]=[wr,br],xr[104]=[wr,br],xr[87]=[wr,vr],xr[119]=[wr,vr];const Ir={tokenize:function(e,t,n){const r=this;return ie(e,(function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function Ar(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}
vendor: 4,607 bytes, line 2
2return function(o){if(!a||!a._balanced)return n(o);const s=Re(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==s.codePointAt(0)||!i.includes(s.slice(1)))return n(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function Pr(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...l),e}function Rr(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(a>999||93===s&&!i||null===s||91===s||ee(s))return n(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(Re(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return ee(s)||(i=!0),a++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function Nr(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!a||null===t||91===t||ee(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=Re(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return ee(t)||(a=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),ie(e,h,"gfmFootnoteDefinitionWhitespace")):n(t)}function h(e){return t(e)}}function Dr(e,t,n){return e.check(ce,t,e.attempt(Ir,t,n))}function Mr(e){e.exit("gfmFootnoteDefinition")}function Lr(e){let t=(e||{}).singleTilde;const n={tokenize:function(e,n,r){const o=this.previous,i=this.events;let a=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(i){const l=nt(o);if(126===i)return a>1?r(i):(e.consume(i),a++,s);if(a<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=nt(i);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],s=t.parser.constructs.insideSpan.null;s&&z(a,a.length,0,xe(s,e.slice(r+1,n),t)),z(a,a.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]
vendor: 11,101 bytes, line 2
2),z(e,r-1,n-r+3,a),n=r+a.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null!==t&&void 0!==t||(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class Zr{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0===n&&0===r.length)return;for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=n,void e.map[o][2].push(...r);o+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort(((e,t)=>e[0]-t[0])),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1])),n.push(this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function jr(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}const Fr={flow:{null:{tokenize:function(e,t,n){const r=this;let o,i=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?w:s;if(i===w&&r.parser.lazy[r.now().line])return n(e);return i(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return o=!0,a+=1,l(e)}(t)}function l(t){return null===t?n(t):J(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):te(t)?ie(e,l,"whitespace")(t):(a+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||ee(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,te(t)?ie(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):h(t))}function h(t){return 45===t||58===t?p(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):b(t)}function f(t){return te(t)?ie(e,p,"whitespace")(t):p(t)}function p(t){return 58===t?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||J(t)?v(t):b(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):b(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return te(t)?ie(e,v,"whitespace")(t):v(t)}function v(n){return 124===n?h(n):(null===n||J(n))&&o&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function w(t){return e.enter("tableRow"),x(t)}function x(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),x):null===n||J(n)?(e.exit("tableRow"),t(n)):te(n)?ie(e,x,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||ee(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?S:k)}function S(t){return 92===t||124===t?(e.consume(t),k):k(t)}},resolveAll:function(e,t){let n,r,o,i=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const h=new Zr;for(;++i<e.length;){const f=e[i],p=f[1];"enter"===f[0]?"tableHead"===p.type?(u=!1,0!==d&&(Ur(h,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},h.add(i,0,[["enter",n,t]])):"tableRow"===p.type||"tableDelimiterRow"===p.type?(a=!0,o=void 0,l=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},h.add(i,0,[["enter",r,t]])),s="tableDelimiterRow"===p.type?2:r?3:1):!s||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type?"tableCellDivider"===p.type&&(a?a=!1:(0!==l[1]&&(c[0]=c[1],o=zr(h,t,l,s,void 0,o)),l=c,c=[l[1],i,0,0])):(a=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],o=zr(h,t,l,s,void 0,o),l=[0,0,0,0]),c[2]=i)):"tableHead"===p.type?(u=!0,d=i):"tableRow"===p.type||"tableDelimiterRow"===p.type?(d=i,0!==l[1]?(c[0]=c[1],o=zr(h,t,l,s,i,o)):0!==c[1]&&(o=zr(h,t,c,s,i,o)),s=0):!s||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type||(c[3]=i)}0!==d&&Ur(h,t,d,n,r);h.consume(t.events),i=-1;for(;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=jr(t.events,i))}return e}}}};function zr(e,t,n,r,o,i){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},Br(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const s=Br(t.events,n[1]);if(i={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const o=Br(t.events,n[2]),i=Br(t.events,n[3]),a={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==o&&(i.end=Object.assign({},Br(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function Ur(e,t,n,r,o){const i=[],a=Br(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function Br(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Vr={tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return ee(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return J(r)?t(r):te(r)?e.check({tokenize:Wr},t,n)(r):n(r)}}},Hr={text:{91:Vr}};function Wr(e,t,n){return ie(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}function qr(e,t){const n=String(e);if("string"!==typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}const Gr={}.hasOwnProperty,Kr=function(e,t,n,r){let o,i;"string"===typeof t||t instanceof RegExp?(i=[[t,n]],o=r):(i=t,o=n),o||(o={});const a=Rt(o.ignore||[]),s=function(e){const t=[];if("object"!==typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n<e.length;)t.push([Qr(e[n][0]),Yr(e[n][1])])}else{let n;for(n in e)Gr.call(e,n)&&t.push([Qr(n),Yr(e[n])])}return t}(i);let l=-1;for(;++l<s.length;)Mt(e,"text",c);return e;function c(e,t){let n,r=-1;for(;++r<t.length;){const e=t[r];if(a(e,n?n.children.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=s[l][0],o=s[l][1];let i=0;const a=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,a={index:d.index,input:d.input,stack:[...t,e]};let s=o(...d,a);if("string"===typeof s&&(s=s.length>0?{type:"text",value:s}:void 0),!1!==s&&(i!==n&&u.push({type:"text",value:e.value.slice(i,n)}),Array.isArray(s)?u.push(...s):s&&u.push(s),i=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(i<e.value.length&&u.push({type:"text",value:e.value.slice(i)}),n.children.splice(a,1,...u)):u=[e];return a+u.length}(e,t)}};function Qr(e){return"string"===typeof e?new RegExp(function(e){if("string"!==typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function Yr(e){return"function"===typeof e?e:()=>e}const $r="phrasing",Xr=["autolink","link","image","label"],Jr={transforms:[function(e){Kr(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,no],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,ro]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:to,literalAutolinkHttp:to,literalAutolinkWww:to},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}}},eo={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:$r,notInConstruct:Xr},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:$r,notInConstruct:Xr},{character:":",before:"[ps]",after:"\\/",inConstruct:$r,notInConstruct:Xr}]};function to(e){this.config.enter.autolinkProtocol.call(this,e)}function no(e,t,n,r,o){let i="";if(!oo(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=qr(e,"(");let i=qr(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function ro(e,t,n,r){return!(!oo(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function oo(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||re(n)||ne(n))&&(!t||47!==n)}function io(e){return e.label||!e.identifier?e.label||"":kt(e.identifier)}function ao(e,t,n,r){let o=r.join.length;for(;o--;){const i=r.join[o](e,t,n,r);if(!0===i||1===i)break;if("number"===typeof i)return"\n".repeat(1+i);if(!1===i)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const so=/\r?\n|\r/g;function lo(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function co(e,t){return uo(e,t.inConstruct,!0)&&!uo(e,t.notInConstruct,!1)}function uo(e,t,n){if("string"===typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}
2function ho(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),o=[],i=[],a={};let s=-1;for(;++s<e.unsafe.length;){const t=e.unsafe[s];if(!co(e.stack,t))continue;const n=lo(t);let i;for(;i=n.exec(r);){const e="before"in t||Boolean(t.atBreak),n="after"in t,r=i.index+(e?i[1].length:0);o.includes(r)?(a[r].before&&!e&&(a[r].before=!1),a[r].after&&!n&&(a[r].after=!1)):(o.push(r),a[r]={before:e,after:n})}}o.sort(fo);let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(s=-1;++s<o.length;){const e=o[s];e<l||e>=c||(e+1<c&&o[s+1]===e+1&&a[e].after&&!a[e+1].before&&!a[e+1].after||o[s-1]===e-1&&a[e].before&&!a[e-1].before&&!a[e-1].after||(l!==e&&i.push(po(r.slice(l,e),"\\")),l=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(i.push("&#x"+r.charCodeAt(e).toString(16).toUpperCase()+";"),l++):i.push("\\")))}return i.push(po(r.slice(l,c),n.after)),i.join("")}function fo(e,t){return e-t}function po(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],o=[],i=e+t;let a,s=-1,l=0;for(;a=n.exec(i);)r.push(a.index);for(;++s<r.length;)l!==r[s]&&o.push(e.slice(l,r[s])),o.push("\\"),l=r[s];return o.push(e.slice(l)),o.join("")}function mo(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,o=n.line||1,i=n.column||1;return{move:function(e){const t=e||"",n=t.split(/\r?\n|\r/g),a=n[n.length-1];return o+=n.length-1,i=1===n.length?i+a.length:1+a.length+r,t},current:function(){return{now:{line:o,column:i},lineShift:r}},shift:function(e){r+=e}}}function go(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function yo(){this.buffer()}function vo(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Re(this.sliceSerialize(e)).toLowerCase()}function bo(e){this.exit(e)}function wo(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function xo(){this.buffer()}function ko(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Re(this.sliceSerialize(e)).toLowerCase()}function So(e){this.exit(e)}function Eo(e,t,n,r){const o=mo(r);let i=o.move("[^");const s=n.enter("footnoteReference"),l=n.enter("reference");return i+=o.move(ho(n,io(e),(0,a.Z)((0,a.Z)({},o.current()),{},{before:i,after:"]"}))),l(),s(),i+=o.move("]"),i}function Co(e,t,n,r){const o=mo(r);let i=o.move("[^");const s=n.enter("footnoteDefinition"),l=n.enter("label");return i+=o.move(ho(n,io(e),(0,a.Z)((0,a.Z)({},o.current()),{},{before:i,after:"]"}))),l(),i+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),i+=o.move(function(e,t){const n=[];let r,o=0,i=0;for(;r=so.exec(e);)a(e.slice(o,r.index)),n.push(r[0]),o=r.index+r[0].length,i++;return a(e.slice(o)),n.join("");function a(e){n.push(t(e,i,!e))}}(function(e,t,n){const r=t.indexStack,o=e.children||[],i=t.createTracker(n),s=[];let l=-1;for(r.push(-1);++l<o.length;){const n=o[l];r[r.length-1]=l,s.push(i.move(t.handle(n,e,t,(0,a.Z)({before:"\n",after:"\n"},i.current())))),"list"!==n.type&&(t.bulletLastUsed=void 0),l<o.length-1&&s.push(i.move(ao(n,o[l+1],e,t)))}return r.pop(),s.join("")}(e,n,o.current()),_o)),s(),i}function _o(e,t,n){return 0===t?e:(n?"":" ")+e}function To(e,t,n){const r=t.indexStack,o=e.children||[],i=[];let s=-1,l=n.before;r.push(-1);let c=t.createTracker(n);for(;++s<o.length;){const u=o[s];let d;if(r[r.length-1]=s,s+1<o.length){let n=t.handle.handlers[o[s+1].type];n&&n.peek&&(n=n.peek),d=n?n(o[s+1],e,t,(0,a.Z)({before:"",after:""},c.current())).charAt(0):""}else d=n.after;i.length>0&&("\r"===l||"\n"===l)&&"html"===u.type&&(i[i.length-1]=i[i.length-1].replace(/(\r?\n|\r)$/," "),l=" ",c=t.createTracker(n),c.move(i.join(""))),i.push(c.move(t.handle(u,e,t,(0,a.Z)((0,a.Z)({},c.current()),{},{before:l,after:d})))),l=i[i.length-1].slice(-1)}return r.pop(),i.join("")}Eo.peek=function(){return"["};Ao.peek=function(){return"~"};const Oo={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},Io={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:Ao}};function Ao(e,t,n,r){const o=mo(r),i=n.enter("strikethrough");let s=o.move("~~");return s+=To(e,n,(0,a.Z)((0,a.Z)({},o.current()),{},{before:s,after:"~"})),s+=o.move("~~"),i(),s}function Po(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=lo(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function Ro(e){return e.length}function No(e){const t="string"===typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}Po.peek=function(){return"`"};const Do={enter:{table:function(e){const t=e._align;this.enter({type:"table",align:t.map((e=>"none"===e?null:e)),children:[]},e),this.setData("inTable",!0)},tableData:Lo,tableHeader:Lo,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,Zo));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:Mo,tableHeader:Mo,tableRow:Mo}};function Mo(e){this.exit(e)}function Lo(e){this.enter({type:"tableCell",children:[]},e)}function Zo(e,t){return"|"===t?t:e}function jo(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,n,r){return l(function(e,t,n){const r=e.children;let o=-1;const i=[],a=t.enter("table");for(;++o<r.length;)i[o]=c(r[o],t,n);return a(),i}(e,n,r),e.align)},tableRow:function(e,t,n,r){const o=c(e,n,r),i=l([o]);return i.slice(0,i.indexOf("\n"))},tableCell:s,inlineCode:function(e,t,n){let r=Po(e,0,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r}}};function s(e,t,n,r){const o=n.enter("tableCell"),s=n.enter("phrasing"),l=To(e,n,(0,a.Z)((0,a.Z)({},r),{},{before:i,after:i}));return s(),o(),l}function l(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||Ro,i=[],a=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let i=-1;for(e[u].length>c&&(c=e[u].length);++i<e[u].length;){const a=null===(d=e[u][i])||void 0===d?"":String(d);if(!1!==n.alignDelimiters){const e=o(a);r[i]=e,(void 0===l[i]||e>l[i])&&(l[i]=e)}t.push(a)}
2a[u]=t,s[u]=r}var d;let h=-1;if("object"===typeof r&&"length"in r)for(;++h<c;)i[h]=No(r[h]);else{const e=No(r);for(;++h<c;)i[h]=e}h=-1;const f=[],p=[];for(;++h<c;){const e=i[h];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,l[h]-t.length-r.length);const a=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>l[h]&&(l[h]=o),p[h]=o),f[h]=a}a.splice(1,0,f),s.splice(1,0,p),u=-1;const m=[];for(;++u<a.length;){const e=a[u],t=s[u];h=-1;const r=[];for(;++h<c;){const o=e[h]||"";let a="",s="";if(!1!==n.alignDelimiters){const e=l[h]-(t[h]||0),n=i[h];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),s=a):s=" ".repeat(e)}!1===n.delimiterStart||h||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!h||r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(o),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&h===c-1||r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function c(e,t,n){const r=e.children;let o=-1;const i=[],a=t.enter("tableRow");for(;++o<r.length;)i[o]=s(r[o],0,t,n);return a(),i}}function Fo(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"tab";if(1===t||"1"===t)return"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||function(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(i=("number"===typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(i+" ".repeat(a-i.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?i:i+" ".repeat(a-i.length))+e}));return l(),c}const zo={exit:{taskListCheckValueChecked:Bo,taskListCheckValueUnchecked:Bo,paragraph:function(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"===typeof t.checked){const e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"===typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}}},Uo={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:function(e,t,n,r){const o=e.children[0],i="boolean"===typeof e.checked&&o&&"paragraph"===o.type,s="["+(e.checked?"x":" ")+"] ",l=mo(r);i&&l.move(s);let c=Fo(e,t,n,(0,a.Z)((0,a.Z)({},r),l.current()));i&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+s})));return c}}};function Bo(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function Vo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.data();function n(e,n){(t[e]?t[e]:t[e]=[]).push(n)}n("micromarkExtensions",function(e){return V([kr,{document:{91:{tokenize:Nr,continuation:{tokenize:Dr},exit:Mr}},text:{91:{tokenize:Rr},93:{add:"after",tokenize:Ar,resolveTo:Pr}}},Lr(e),Fr,Hr])}(e)),n("fromMarkdownExtensions",[Jr,{enter:{gfmFootnoteDefinition:go,gfmFootnoteDefinitionLabelString:yo,gfmFootnoteCall:wo,gfmFootnoteCallString:xo},exit:{gfmFootnoteDefinition:bo,gfmFootnoteDefinitionLabelString:vo,gfmFootnoteCall:So,gfmFootnoteCallString:ko}},Oo,Do,zo]),n("toMarkdownExtensions",function(e){return{extensions:[eo,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Co,footnoteReference:Eo}},Io,jo(e),Uo]}}(e))}var Ho=n(80184);const Wo=(0,hr.cF)(),qo=e=>new Promise((t=>{let n=new FileReader;n.onload=()=>t(n.result),n.readAsDataURL(e)})),Go=async(e,t,n,r)=>{try{const i=(e=>{try{const t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),o=new Uint8Array(r);for(let e=0;e<t.length;e++)o[e]=t.charCodeAt(e);return new Blob([r],{type:n})}catch(t){console.warn(t)}})(e),a=await fetch("https://firebasestorage.googleapis.com/v0/b/".concat("ideoo-1aa3b.appspot.com","/o?name=").concat(t,"/").concat(n),{body:i,method:"POST",headers:{Authorization:"Bearer ".concat(r)}});try{return await a.json()}catch(o){throw new Error("Error while parsing as JSON: ".concat(o))}}catch(o){return{status:"error",code:o.code}}},Ko=async e=>{const t=(0,hr.iH)(Wo,e),n=await(0,hr.aF)(t),r=[];for(let o of n.items)r.push((0,hr.oq)(o));return await Promise.all(r)},Qo=async(e,t,n)=>{const r=(0,hr.iH)(Wo,"users/".concat(e,"/collections/").concat(t,"/screenshots/").concat(n));if(!r)return;return await(0,hr.oq)(r)},Yo=(e,t)=>{const n=t?t.charAt(0).toUpperCase():"?";let r;return r=e[n]?e[n]:e.UFO,r},$o=e=>{const t=new Image;return t.src=e,new Promise((e=>{t.onload=()=>e(!0),t.onerror=()=>e(!1)}))},Xo=(e,t)=>{const n=new DOMParser,r=n.parseFromString(e,"text/html"),o=n.parseFromString(t,"text/html").body,i=new or.Readability(r,{
2keepClasses:!0,serializer:e=>e}).parse(),a={};o.querySelectorAll("img").forEach((e=>{const t=new URL(e.src);e.removeAttribute("onerror"),a[t.pathname]=e})),i.content.querySelectorAll("img").forEach((e=>{const t=new URL(e.src);a[t.pathname]&&(e.src=a[t.pathname].src,e.removeAttribute("srcset"))}));const s=dr().sanitize(i&&i.content);return{offlineContent:o.innerHTML,textContent:s}},Jo=e=>(0,i.renderToStaticMarkup)((0,Ho.jsx)(rr,{children:e,remarkPlugins:[Vo]}),document.body),ei=e=>{if(!e)return"";const t=e.toDate(),n=String(t.getDate()).padStart(2,"0"),r=String(t.getMonth()+1).padStart(2,"0"),o=t.getFullYear(),i=String(t.getHours()).padStart(2,"0"),a=String(t.getMinutes()).padStart(2,"0");return"".concat(n,"/").concat(r,"/").concat(o," ").concat(i,":").concat(a)},ti=e=>{var t;if(!e)return(0,Ho.jsx)(sr.Z,{});switch(null===(t=e.split(".").pop())||void 0===t?void 0:t.toLowerCase()){case"pdf":return(0,Ho.jsx)(lr.Z,{});case"doc":case"docx":return(0,Ho.jsx)(ir.Z,{});case"txt":return(0,Ho.jsx)(cr.Z,{});case"xls":case"xlsx":return(0,Ho.jsx)(ar.Z,{});default:return(0,Ho.jsx)(sr.Z,{})}}},12054:(e,t,n)=>{"use strict";n.d(t,{H:()=>i});var r=n(67825);let o;(0,r.KN)("firebase","10.6.0","app"),o=0===(0,r.C6)().length?(0,r.ZF)({apiKey:"AIzaSyAWn228uS7CofUWiHq4-2s3CiQv_cCDoXg",authDomain:"ideoo-1aa3b.firebaseapp.com",projectId:"ideoo-1aa3b",storageBucket:"ideoo-1aa3b.appspot.com"}):(0,r.Mq)();const i=o},14217:(e,t,n)=>{"use strict";n.d(t,{Ds:()=>G,hg:()=>B,CL:()=>U,O0:()=>M,oo:()=>W,R:()=>R,Uw:()=>N,V3:()=>D,P4:()=>K,VQ:()=>Z,G6:()=>j,Ww:()=>q,sP:()=>T,Mg:()=>L,hL:()=>_,SZ:()=>A,pP:()=>P,iV:()=>z,s:()=>I,OO:()=>O,bY:()=>H,Ti:()=>F,NH:()=>V});var r=n(67825),o=n(85854),i=n(23258);const a="type.googleapis.com/google.protobuf.Int64Value",s="type.googleapis.com/google.protobuf.UInt64Value";function l(e,t){const n={};for(const r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r]));return n}function c(e){if(null==e)return null;if(e instanceof Number&&(e=e.valueOf()),"number"===typeof e&&isFinite(e))return e;if(!0===e||!1===e)return e;if("[object String]"===Object.prototype.toString.call(e))return e;if(e instanceof Date)return e.toISOString();if(Array.isArray(e))return e.map((e=>c(e)));if("function"===typeof e||"object"===typeof e)return l(e,(e=>c(e)));throw new Error("Data cannot be encoded in JSON: "+e)}function u(e){if(null==e)return e;if(e["@type"])switch(e["@type"]){case a:case s:{const t=Number(e.value);if(isNaN(t))throw new Error("Data cannot be decoded from JSON: "+e);return t}default:throw new Error("Data cannot be decoded from JSON: "+e)}return Array.isArray(e)?e.map((e=>u(e))):"function"===typeof e||"object"===typeof e?l(e,(e=>u(e))):e}const d="functions",h={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class f extends o.ZR{constructor(e,t,n){super("".concat(d,"/").concat(e),t||""),this.details=n}}class p{constructor(e,t,n){this.auth=null,this.messaging=null,this.appCheck=null,this.auth=e.getImmediate({optional:!0}),this.messaging=t.getImmediate({optional:!0}),this.auth||e.get().then((e=>this.auth=e),(()=>{})),this.messaging||t.get().then((e=>this.messaging=e),(()=>{})),this.appCheck||n.get().then((e=>this.appCheck=e),(()=>{}))}async getAuthToken(){if(this.auth)try{const e=await this.auth.getToken();return null===e||void 0===e?void 0:e.accessToken}catch(e){return}}async getMessagingToken(){if(this.messaging&&"Notification"in self&&"granted"===Notification.permission)try{return await this.messaging.getToken()}catch(e){return}}async getAppCheckToken(e){if(this.appCheck){const t=e?await this.appCheck.getLimitedUseToken():await this.appCheck.getToken();return t.error?null:t.token}return null}async getContext(e){return{authToken:await this.getAuthToken(),messagingToken:await this.getMessagingToken(),appCheckToken:await this.getAppCheckToken(e)}}}const m="us-central1";class g{constructor(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:m,i=arguments.length>5?arguments[5]:void 0;this.app=e,this.fetchImpl=i,this.emulatorOrigin=null,this.contextProvider=new p(t,n,r),this.cancelAllRequests=new Promise((e=>{this.deleteService=()=>Promise.resolve(e())}));try{const e=new URL(o);this.customDomain=e.origin,this.region=m}catch(a){this.customDomain=null,this.region=o}}_delete(){return this.deleteService()}_url(e){const t=this.app.options.projectId;if(null!==this.emulatorOrigin){const n=this.emulatorOrigin;return"".concat(n,"/").concat(t,"/").concat(this.region,"/").concat(e)}return null!==this.customDomain?"".concat(this.customDomain,"/").concat(e):"https://".concat(this.region,"-").concat(t,".cloudfunctions.net/").concat(e)}}function y(e,t,n){return r=>function(e,t,n,r){const o=e._url(t);return b(e,o,n,r)}(e,t,r,n||{})}async function v(e,t,n,r){let o;n["Content-Type"]="application/json";try{o=await r(e,{method:"POST",body:JSON.stringify(t),headers:n})}catch(a){return{status:0,json:null}}let i=null;try{i=await o.json()}catch(a){}return{status:o.status,json:i}}async function b(e,t,n,r){const o={data:n=c(n)},i={},a=await e.contextProvider.getContext(r.limitedUseAppCheckTokens);a.authToken&&(i.Authorization="Bearer "+a.authToken),a.messagingToken&&
2(i["Firebase-Instance-ID-Token"]=a.messagingToken),null!==a.appCheckToken&&(i["X-Firebase-AppCheck"]=a.appCheckToken);const s=function(e){let t=null;return{promise:new Promise(((n,r)=>{t=setTimeout((()=>{r(new f("deadline-exceeded","deadline-exceeded"))}),e)})),cancel:()=>{t&&clearTimeout(t)}}}(r.timeout||7e4),l=await Promise.race([v(t,o,i,e.fetchImpl),s.promise,e.cancelAllRequests]);if(s.cancel(),!l)throw new f("cancelled","Firebase Functions instance was deleted.");const d=function(e,t){let n,r=function(e){if(e>=200&&e<300)return"ok";switch(e){case 0:case 500:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}(e),o=r;try{const e=t&&t.error;if(e){const t=e.status;if("string"===typeof t){if(!h[t])return new f("internal","internal");r=h[t],o=t}const i=e.message;"string"===typeof i&&(o=i),n=e.details,void 0!==n&&(n=u(n))}}catch(i){}return"ok"===r?null:new f(r,o,n)}(l.status,l.json);if(d)throw d;if(!l.json)throw new f("internal","Response is not valid JSON object.");let p=l.json.data;if("undefined"===typeof p&&(p=l.json.result),"undefined"===typeof p)throw new f("internal","Response is missing data field.");return{data:u(p)}}const w="@firebase/functions",x="0.10.0";function k(e,t,n){return y((0,o.m9)(e),t,n)}var S,E;S=fetch.bind(self),(0,r.Xd)(new i.wA(d,((e,t)=>{let{instanceIdentifier:n}=t;const r=e.getProvider("app").getImmediate(),o=e.getProvider("auth-internal"),i=e.getProvider("messaging-internal"),a=e.getProvider("app-check-internal");return new g(r,o,i,a,n,S)}),"PUBLIC").setMultipleInstances(!0)),(0,r.KN)(w,x,E),(0,r.KN)(w,x,"esm2017");n(30276);const C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.Mq)(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;const n=(0,r.qX)((0,o.m9)(e),d).getImmediate({identifier:t}),i=(0,o.P0)("functions");return i&&function(e,t,n){!function(e,t,n){e.emulatorOrigin="http://".concat(t,":").concat(n)}((0,o.m9)(e),t,n)}(n,...i),n}(n(12054).H),_=k(C,"getPdfUrl"),T=k(C,"emailSender"),O=k(C,"sendWaitingListEmail"),I=k(C,"sendContactUsEmail"),A=(k(C,"getRCOffering"),k(C,"getRCCustomer")),P=(k(C,"getValidReferralCode"),k(C,"getStripeProducts")),R=k(C,"createStripeCheckoutSession"),N=k(C,"createStripeCustomerPortalSession"),D=k(C,"createToken"),M=(k(C,"queryOpenAICollectionBrainStream"),k(C,"createCollectionBrain")),L=k(C,"getBrainEnabledCollections"),Z=k(C,"deleteCollectionBrain"),j=k(C,"deleteCollectionDocument"),F=k(C,"toggleCollectionDocumentBrainIndex"),z=k(C,"getUserLimitsAndUsage"),U=k(C,"checkLicenseKey"),B=k(C,"checkAndAssignLicenseSeat"),V=k(C,"verifyUserEmail"),H=k(C,"subscribeToSharedCollection"),W=k(C,"createCollectionUrl"),q=k(C,"deleteCollectionUrl"),G=k(C,"applyForInvitation"),K=k(C,"deleteCollection")},89050:(e,t,n)=>{"use strict";n.d(t,{AW:()=>i.Route,F0:()=>d,UO:()=>i.useParams,m8:()=>u,rU:()=>c.rU,rs:()=>i.Switch,tv:()=>h});var r=n(1413),o=n(72791),i=n(64880),a=n(12610),s=n(4245),l=n(80184),c=n(91523);const u=(0,a.createBrowserHistory)();function d(e){let{children:t}=e;return(0,l.jsxs)(i.Router,{history:u,children:[(0,l.jsx)(f,{}),t]})}function h(){const e=(0,i.useParams)(),t=(0,i.useLocation)(),n=(0,i.useHistory)(),a=(0,i.useRouteMatch)();return(0,o.useMemo)((()=>({params:e,location:t,history:n,match:a,push:n.push,replace:n.replace,pathname:t.pathname,query:(0,r.Z)((0,r.Z)({},s.parse(t.search)),e)})),[e,a,t,n])}function f(){const e=(0,i.useLocation)();return(0,o.useEffect)((()=>{window.scrollTo(0,0)}),[e.pathname]),null}},93571:(e,t,n)=>{"use strict";n.d(t,{f:()=>P,v:()=>R});var r=n(1413),o=n(72791),i=n(50427),a=n(5519);const s={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};var l=n(4708),c=n(12065),u=n(90282),d=n(62564),h=n(83361),f=n(80184);let p;function m(e){const{injectFirst:t,children:n}=e;
2return t&&p?(0,f.jsx)(d.C,{value:p,children:n}):n}"object"===typeof document&&(p=(0,h.Z)({key:"css",prepend:!0}));var g=n(87462),y=n(63366);const v=o.createContext(null);function b(){return o.useContext(v)}const w="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";const x=function(e){const{children:t,theme:n}=e,r=b(),i=o.useMemo((()=>{const e=null===r?n:function(e,t){if("function"===typeof t)return t(e);return(0,g.Z)({},e,t)}(r,n);return null!=e&&(e[w]=null!==r),e}),[n,r]);return(0,f.jsx)(v.Provider,{value:i,children:t})};var k=n(69120);const S={};function E(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return o.useMemo((()=>{const o=e&&t[e]||t;if("function"===typeof n){const i=n(o),a=e?(0,g.Z)({},t,{[e]:i}):i;return r?()=>a:a}return e?(0,g.Z)({},t,{[e]:n}):(0,g.Z)({},t,n)}),[e,t,n,r])}const C=function(e){const{children:t,theme:n,themeId:r}=e,o=(0,k.Z)(S),i=b()||S,a=E(r,o,n),s=E(r,i,n,!0);return(0,f.jsx)(x,{theme:s,children:(0,f.jsx)(d.T.Provider,{value:a,children:t})})};var _=n(988);const T=["theme"];function O(e){let{theme:t}=e,n=(0,y.Z)(e,T);const r=t[_.Z];return(0,f.jsx)(C,(0,g.Z)({},n,{themeId:r?_.Z:void 0,theme:r||t}))}var I=n(13967);const A={light:{palette:{mode:"light",primary:{main:"#2e99f7",contrastText:"#ffffff",title:"#6b6b6b",titleShadow:"#6b6b6bb5",secondaryTextColor:"#545454",accentColor:"#00aaff"},reactselect:{primary:i.Z[50],primary75:i.Z[100],select:a.Z[200]},uiElements:"#414141",secondary:{main:s[500]},background:{default:"#fff",paper:"#fff"},modalsBackground:"#fff",mainPage:"#2e99f7",link:"#2e99f7"}},dark:{palette:{mode:"dark",primary:{main:"#1A73E8"},reactselect:{primary:i.Z[500],primary75:i.Z[800],select:a.Z[700]},uiElements:"#fff",secondary:{main:s[500]},background:{default:a.Z[900],paper:(0,c.Fq)(a.Z[800],.7)},modalsBackground:a.Z[800],mainPage:"#1A73E8",link:"#ffffff"}},common:{typography:{fontSize:14,fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',button:{textTransform:"none"}},breakpoints:{values:{xs:0,sm:600,md:960,lg:1200,xl:1920}},overrides:{MuiCssBaseline:{"@global":{"#root":{minHeight:"100vh",display:"flex",flexDirection:"column","& > *":{flexShrink:0}}}}}}};const P=e=>{const t=(n="light",(0,u.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},A[n]),A.common),{},{overrides:(0,r.Z)((0,r.Z)({},A[n]&&A[n].overrides),A.common&&A.common.overrides)})));var n;return(0,f.jsx)(m,{injectFirst:!0,children:(0,f.jsxs)(O,{theme:t,children:[(0,f.jsx)(l.ZP,{}),e.children]})})};function R(){const e=(0,I.Z)();return{value:"dark"===e.palette.mode,toggle:e.palette.toggle}}},10394:(e,t,n)=>{"use strict";n.d(t,{O1:()=>a,sH:()=>i});n(72791);var r=n(96517),o=n(12054);(0,r.v0)(o.H);function i(e,t){const n=new Error(t);return n.code=e,n}function a(){const{protocol:e,hostname:t,port:n}=window.location,r=t.split(".");let o;return o="localhost"===t?t:2===r.length?"".concat("share",".").concat(t):["share",...r.slice(1)].join("."),"".concat(e,"//").concat(o).concat(n?":".concat(n):"")}},83361:(e,t,n)=>{"use strict";n.d(t,{Z:()=>oe});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){0}}else t.appendChild(document.createTextNode(e));this.ctr++}
vendor: 5,072 bytes, line 2
2,t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,a=Object.assign;function s(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,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:m,column:g,length:a,return:""}}function k(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 C(){return u(w,v)}function _(){return v}function T(e,t){return d(w,e,t)}function O(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 A(e){return w="",e}function P(e){return s(T(v-1,D(91===e?e+2:40===e?e+1:e)))}function R(e){for(;(b=C())&&b<33;)E();return O(e)>2||O(b)>3?"":" "}function N(e,t){for(;--t&&E()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return T(e,_()+(t<6&&32==C()&&32==E()))}function D(e){for(;E();)switch(b){case e:return v;case 34:case 39:34!==e&&39!==e&&D(b);break;case 40:41===e&&D(e);break;case 92:E()}return v}function M(e,t){for(;E()&&e+b!==57&&(e+b!==84||47!==C()););return"/*"+T(t,v-1)+"*"+i(47===e?e:E())}function L(e){for(;!O(C());)E();return T(e,v)}var Z="-ms-",j="-moz-",F="-webkit-",z="comm",U="rule",B="decl",V="@keyframes";function H(e,t){for(var n="",r=f(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function W(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case B:return e.return=e.return||e.value;case z:return"";case V:return e.return=e.value+"{"+H(e.children,r)+"}";case U:e.value=e.props.join(",")}return h(n=H(e.children,r))?e.return=e.value+"{"+n+"}":""}function q(e){return A(G("",null,null,null,[""],e=I(e),0,[0],e))}function G(e,t,n,r,o,a,s,d,f){for(var m=0,g=0,y=s,v=0,b=0,w=0,x=1,k=1,T=1,O=0,I="",A=o,D=a,Z=r,j=I;k;)switch(w=O,O=E()){case 40:if(108!=w&&58==u(j,y-1)){-1!=c(j+=l(P(O),"&","&\f"),"&\f")&&(T=-1);break}case 34:case 39:case 91:j+=P(O);break;case 9:case 10:case 13:case 32:j+=R(w);break;case 92:j+=N(_()-1,7);continue;case 47:switch(C()){case 42:case 47:p(Q(M(E(),_()),t,n),f);break;default:j+="/"}break;case 123*x:d[m++]=h(j)*T;case 125*x:case 59:case 0:switch(O){case 0:case 125:k=0;case 59+g:-1==T&&(j=l(j,/\f/g,"")),b>0&&h(j)-y&&p(b>32?Y(j+";",r,n,y-1):Y(l(j," ","")+";",r,n,y-2),f);break;case 59:j+=";";default:if(p(Z=K(j,t,n,m,g,o,d,I,A=[],D=[],y),a),123===O)if(0===g)G(j,t,Z,Z,A,a,y,d,D);else switch(99===v&&110===u(j,3)?100:v){case 100:case 108:case 109:case 115:G(e,Z,Z,r&&p(K(e,Z,Z,0,0,o,d,I,o,A=[],y),D),o,D,y,d,r?A:D);break;default:G(j,Z,Z,Z,[""],D,0,d,D)}}m=g=b=0,x=T=1,I=j="",y=s;break;case 58:y=1+h(j),b=w;default:if(x<1)if(123==O)--x;else if(125==O&&0==x++&&125==S())continue;switch(j+=i(O),O*x){case 38:T=g>0?1:(j+="\f",-1);break;case 44:d[m++]=(h(j)-1)*T,T=1;break;case 64:45===C()&&(j+=P(E())),v=C(),g=y=h(I=j+=L(_())),O++;break;case 45:45===w&&2==h(j)&&(x=0)}}return a}function K(e,t,n,r,i,a,c,u,h,p,m){for(var g=i-1,y=0===i?a:[""],v=f(y),b=0,w=0,k=0;b<r;++b)for(var S=0,E=d(e,g+1,g=o(w=c[b])),C=e;S<v;++S)(C=s(w>0?y[S]+" "+E:l(E,/&\f/g,y[S])))&&(h[k++]=C);return x(e,t,n,0===i?U:u,h,p,m)}function Q(e,t,n){return x(e,t,n,z,i(b),d(e,2,-2),0)}function Y(e,t,n,r){return x(e,t,n,B,d(e,0,r),d(e,r+1,-1),r)}var $=function(e,t,n){for(var r=0,o=0;r=o,o=C(),38===r&&12===o&&(t[n]=1),!O(o);)E();return T(e,v)},X=function(e,t){return A(function(e,t){var n=-1,r=44;do{switch(O(r)){case 0:38===r&&12===C()&&(t[n]=1),e[n]+=$(v-1,t,n);break;case 2:e[n]+=P(r);break;case 4:if(44===r){e[++n]=58===C()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=E());return e}(I(e),t))},J=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)||J.get(n))&&!r){J.set(e,!0);for(var o=[],i=X(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},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 F+"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 F+e+e;
2case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+j+e+Z+e+e;case 6828:case 4268:return F+e+Z+e+e;case 6165:return F+e+Z+"flex-"+e+e;case 5187:return F+e+l(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+Z+"flex-$1$2")+e;case 5443:return F+e+Z+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return F+e+Z+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return F+e+Z+l(e,"shrink","negative")+e;case 5292:return F+e+Z+l(e,"basis","preferred-size")+e;case 6060:return F+"box-"+l(e,"-grow","")+F+e+Z+l(e,"grow","positive")+e;case 4554:return F+l(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+Z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,F+"$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"+F+"$2-$3$1"+j+(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,":",":"+F)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(45===u(e,14)?"inline-":"")+"box$3$1"+F+"$2$3$1"+Z+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return F+e+Z+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+Z+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+Z+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+Z+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case B:e.return=ne(e.value,e.length);break;case V:return H([k(e,{value:l(e.value,"@","@"+F)})],r);case U: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([k(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return H([k(e,{props:[l(t,/:(plac\w+)/,":"+F+"input-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,Z+"input-$1")]})],r)}return""}))}}],oe=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 o=e.stylisPlugins||re;var i,a,s={},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++)s[t[n]]=!0;l.push(e)}));var c,u,d=[W,(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,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([ee,te].concat(o,d));a=function(e,t,n,r){c=n,H(q(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:s,registered:{},insert:a};return p.sheet.hydrate(l),p}},49797:(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,{Z:()=>r})},62564:(e,t,n)=>{"use strict";n.d(t,{C:()=>d,E:()=>y,T:()=>f,c:()=>m,h:()=>c,i:()=>l,w:()=>h});var r=n(72791),o=n(83361),i=n(95438),a=n(9140),s=n(82561),l=!0,c={}.hasOwnProperty,u=r.createContext("undefined"!==typeof HTMLElement?(0,o.Z)({key:"css"}):null);var d=u.Provider,h=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(u);return e(t,o,n)}))};l||(h=function(e){return function(t){var n=(0,r.useContext)(u);return null===n?(n=(0,o.Z)({key:"css"}),r.createElement(u.Provider,{value:n},e(t,n))):e(t,n)}});var f=r.createContext({});var p="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",m=function(e,t){var n={};for(var r in t)c.call(t,r)&&(n[r]=t[r]);return n[p]=e,n},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,i.hC)(t,n,r),(0,s.L)((function(){return(0,i.My)(t,n,r)})),null};var y=h((function(e,t,n){var o=e.css;"string"===typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var s=e[p],l=[o],u="";"string"===typeof e.className?u=(0,i.fp)(t.registered,l,e.className):null!=e.className&&(u=e.className+" ");var d=(0,a.O)(l,void 0,r.useContext(f));u+=t.key+"-"+d.name;var h={};for(var m in e)c.call(e,m)&&"css"!==m&&m!==p&&(h[m]=e[m]);return h.ref=n,h.className=u,r.createElement(r.Fragment,null,r.createElement(g,{cache:t,serialized:d,isStringTag:"string"===typeof s}),r.createElement(s,h))}))}
vendor: 5,810 bytes, line 2
2,52554:(e,t,n)=>{"use strict";n.d(t,{F4:()=>d,iv:()=>u,tZ:()=>l,xB:()=>c});var r=n(62564),o=n(72791),i=n(95438),a=n(82561),s=n(9140),l=(n(83361),n(62110),function(e,t){var n=arguments;if(null==t||!r.h.call(t,"css"))return o.createElement.apply(void 0,n);var i=n.length,a=new Array(i);a[0]=r.E,a[1]=(0,r.c)(e,t);for(var s=2;s<i;s++)a[s]=n[s];return o.createElement.apply(null,a)}),c=(0,r.w)((function(e,t){var n=e.styles,l=(0,s.O)([n],void 0,o.useContext(r.T));if(!r.i){for(var c,u=l.name,d=l.styles,h=l.next;void 0!==h;)u+=" "+h.name,d+=h.styles,h=h.next;var f=!0===t.compat,p=t.insert("",{name:u,styles:d},t.sheet,f);return f?null:o.createElement("style",((c={})["data-emotion"]=t.key+"-global "+u,c.dangerouslySetInnerHTML={__html:p},c.nonce=t.sheet.nonce,c))}var m=o.useRef();return(0,a.j)((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,o=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(r=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),m.current=[n,r],function(){n.flush()}}),[t]),(0,a.j)((function(){var e=m.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,i.My)(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,s.O)(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_"}}}},9140:(e,t,n)=>{"use strict";n.d(t,{O:()=>p});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,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},o=n(49797),i=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!==typeof e},c=(0,o.Z)((function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(a,(function(e,t,n){return h={name:t,styles:n,next:h},t}))}return 1===r[e]||s(e)||"number"!==typeof t||0===t?t:t+"px"};function d(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return h={name:n.name,styles:n.styles,next:h},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)h={name:r.name,styles:r.styles,next:h},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=d(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!==typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":l(a)&&(r+=c(i)+":"+u(i,a)+";");else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=d(e,t,a);switch(i){case"animation":case"animationName":r+=c(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var h=0;h<a.length;h++)l(a[h])&&(r+=c(i)+":"+u(i,a[h])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=h,i=n(e);return h=o,d(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var h,f=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var p=function(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,o="";h=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=d(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=d(n,t,e[a]),r&&(o+=i[a]);f.lastIndex=0;for(var s,l="";null!==(s=f.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=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(o){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)}(o)+l;return{name:c,styles:o,next:h}}},50225:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(87462),o=n(72791),i=n(49797),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|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|playsInl
2ine|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|colorRendering|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)-.*))$/,s=(0,i.Z)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(62564),c=n(95438),u=n(9140),d=n(82561),h=s,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 o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}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.hC)(t,n,r),(0,d.L)((function(){return(0,c.My)(t,n,r)})),null},y=function e(t,n){var i,a,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(i=n.label,a=n.target);var h=m(t,n,s),f=h||p(d),y=!f("as");return function(){var v=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&b.push("label:"+i+";"),null==v[0]||void 0===v[0].raw)b.push.apply(b,v);else{0,b.push(v[0][0]);for(var w=v.length,x=1;x<w;x++)b.push(v[x],v[0][x])}var k=(0,l.w)((function(e,t,n){var r=y&&e.as||d,i="",s=[],m=e;if(null==e.theme){for(var v in m={},e)m[v]=e[v];m.theme=o.useContext(l.T)}"string"===typeof e.className?i=(0,c.fp)(t.registered,s,e.className):null!=e.className&&(i=e.className+" ");var w=(0,u.O)(b.concat(s),t.registered,m);i+=t.key+"-"+w.name,void 0!==a&&(i+=" "+a);var x=y&&void 0===h?p(r):f,k={};for(var S in e)y&&"as"===S||x(S)&&(k[S]=e[S]);return k.className=i,k.ref=n,o.createElement(o.Fragment,null,o.createElement(g,{cache:t,serialized:w,isStringTag:"string"===typeof r}),o.createElement(r,k))}));return k.displayName=void 0!==i?i:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",k.defaultProps=t.defaultProps,k.__emotion_real=k,k.__emotion_base=d,k.__emotion_styles=b,k.__emotion_forwardProp=h,Object.defineProperty(k,"toString",{value:function(){return"."+a}}),k.withComponent=function(t,o){return e(t,(0,r.Z)({},n,o,{shouldForwardProp:m(k,o,!0)})).apply(void 0,b)},k}}.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)}))},82561:(e,t,n)=>{"use strict";var r;n.d(t,{L:()=>a,j:()=>s});var o=n(72791),i=!!(r||(r=n.t(o,2))).useInsertionEffect&&(r||(r=n.t(o,2))).useInsertionEffect,a=i||function(e){return e()},s=i||o.useLayoutEffect}
2,95438:(e,t,n)=>{"use strict";n.d(t,{My:()=>i,fp:()=>r,hC:()=>o});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},85854:(e,t,n)=>{"use strict";n.d(t,{BH:()=>p,L:()=>a,LL:()=>E,P0:()=>d,Pz:()=>f,Sg:()=>m,ZR:()=>S,aH:()=>h,b$:()=>b,eu:()=>k,hl:()=>x,m9:()=>M,ne:()=>R,pd:()=>P,q4:()=>u,ru:()=>v,tV:()=>s,uI:()=>y,vZ:()=>T,w1:()=>w,xO:()=>I,xb:()=>_,z$:()=>g,zd:()=>A});const r=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);o<128?t[n++]=o:o<2048?(t[n++]=o>>6|192,t[n++]=63&o|128):55296===(64512&o)&&r+1<e.length&&56320===(64512&e.charCodeAt(r+1))?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++r)),t[n++]=o>>18|240,t[n++]=o>>12&63|128,t[n++]=o>>6&63|128,t[n++]=63&o|128):(t[n++]=o>>12|224,t[n++]=o>>6&63|128,t[n++]=63&o|128)}return t},o={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 o=0;o<e.length;o+=3){const t=e[o],i=o+1<e.length,a=i?e[o+1]:0,s=o+2<e.length,l=s?e[o+2]:0,c=t>>2,u=(3&t)<<4|a>>4;let d=(15&a)<<2|l>>6,h=63&l;s||(h=64,i||(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 o=e[n++];if(o<128)t[r++]=String.fromCharCode(o);else if(o>191&&o<224){const i=e[n++];t[r++]=String.fromCharCode((31&o)<<6|63&i)}else if(o>239&&o<365){const i=((7&o)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(i>>10)),t[r++]=String.fromCharCode(56320+(1023&i))}else{const i=e[n++],a=e[n++];t[r++]=String.fromCharCode((15&o)<<12|(63&i)<<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 o=0;o<e.length;){const t=n[e.charAt(o++)],a=o<e.length?n[e.charAt(o)]:0;++o;const s=o<e.length?n[e.charAt(o)]:64;++o;const l=o<e.length?n[e.charAt(o)]:64;if(++o,null==t||null==a||null==s||null==l)throw new i;const c=t<<2|a>>4;if(r.push(c),64!==s){const e=a<<4&240|s>>2;if(r.push(e),64!==l){const e=s<<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 i extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const a=function(e){return function(e){const t=r(e);return o.encodeByteArray(t,!0)}(e).replace(/\./g,"")},s=function(e){try{return o.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:"https://mypicker.net",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FIREBASE_STORAGE_BUCKET:"ideoo-1aa3b.appspot.com",REACT_APP_FIREBASE_API_KEY:"AIzaSyAWn228uS7CofUWiHq4-2s3CiQv_cCDoXg",REACT_APP_FIREBASE_AUTH_DOMAIN:"ideoo-1aa3b.firebaseapp.com",REACT_APP_FIREBASE_PROJECT_ID:"ideoo-1aa3b",REACT_APP_GA_MEASUREMENT_ID:"G-52BGQJPVLX",REACT_APP_SHEETS_ENDPOINT:"https://v1.nocodeapi.com/2b1kenobi/google_sheets/yffDuHfFixHfuiQC",REACT_APP_SHEETS_TAB_ID:"Blad1",REACT_APP_STRIPE_PUBLISHABLE_KEY:"pk_live_51P1RSiJGElL0U9hF3iKhseH2VA9Jf9jL1VTdvGTTYZeS6Bv1R1Lm2ex2EeOA8Hw8WavRiJObl7fu2PcYvhIUO9im00dQrexp2J",REACT_APP_SHARE_SUBDOMAIN:"share",REACT_APP_PICKER_API_URL:"https://api.mypicker.net",REACT_APP_META_PIXEL_ID:"458608213400904",REACT_APP_REWARDFUL_ID:"8649ba"}.__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&&s(e[1]);return t&&JSON.parse(t)})()}catch(e){return void console.info("Unable to get __FIREBASE_DEFAULTS__ due to: ".concat(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 ".concat(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["_".concat(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,o=e.sub||e.user_id;if(!o)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const i=Object.assign({iss:"https://securetoken.google.com/".concat(n),aud:n,iat:r,exp:r+3600,auth_time:r,sub:o,user_id:o,firebase:{sign_in_provider:"custom",identities:{}}},e);return[a(JSON.stringify({alg:"none",type:"JWT"})),a(JSON.stringify(i)),""].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(){try{return"object"===typeof indexedDB}catch(e){return!1}}function k(){return new Promise(((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",o=self.indexedDB.open(r);o.onsuccess=()=>{o.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},o.onupgradeneeded=()=>{n=!1},o.onerror=()=>{var e;t((null===(e=o.error)||void 0===e?void 0:e.message)||"")}}catch(n){t(n)}}))}class S extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,S.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,E.prototype.create)}}class E{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="".concat(this.service,"/").concat(e),r=this.errors[e],o=r?function(e,t){return e.replace(C,((e,n)=>{const r=t[n];return null!=r?String(r):"<".concat(n,"?>")}))}(r,t):"Error",i="".concat(this.serviceName,": ").concat(o," (").concat(n,").");return new S(n,i,t)}}const C=/\{\$([^}]+)}/g;function _(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 o of n){if(!r.includes(o))return!1;const n=e[o],i=t[o];if(O(n)&&O(i)){if(!T(n,i))return!1}else if(n!==i)return!1}for(const o of r)if(!n.includes(o))return!1;return!0}function O(e){return null!==e&&"object"===typeof e}function I(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 A(e){const t={};return e.replace(/^\?/,"").split("&").forEach((e=>{if(e){const[n,r]=e.split("=");
2t[decodeURIComponent(n)]=decodeURIComponent(r)}})),t}function P(e){const t=e.indexOf("?");if(!t)return"";const n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}function R(e,t){const n=new N(e,t);return n.subscribe.bind(n)}class N{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=D),void 0===r.error&&(r.error=D),void 0===r.complete&&(r.complete=D);const o=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),o}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 D(){}function M(e){return e&&e._delegate?e._delegate:e}},68866:e=>{var t={unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i};function n(e){return(!e.style||"none"!=e.style.display)&&!e.hasAttribute("hidden")&&(!e.hasAttribute("aria-hidden")||"true"!=e.getAttribute("aria-hidden")||e.className&&e.className.indexOf&&-1!==e.className.indexOf("fallback-image"))}e.exports=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"function"==typeof r&&(r={visibilityChecker:r});var o={minScore:20,minContentLength:140,visibilityChecker:n};r=Object.assign(o,r);var i=e.querySelectorAll("p, pre, article"),a=e.querySelectorAll("div > br");if(a.length){var s=new Set(i);[].forEach.call(a,(function(e){s.add(e.parentNode)})),i=Array.from(s)}var l=0;return[].some.call(i,(function(e){if(!r.visibilityChecker(e))return!1;var n=e.className+" "+e.id;if(t.unlikelyCandidates.test(n)&&!t.okMaybeItsACandidate.test(n))return!1;if(e.matches("li p"))return!1;var o=e.textContent.trim().length;return!(o<r.minContentLength)&&(l+=Math.sqrt(o-r.minContentLength))>r.minScore}))}},87085:e=>{function t(e,t){if(t&&t.documentElement)e=t,t=arguments[2];else if(!e||!e.documentElement)throw new Error("First argument to Readability constructor should be a document object.");if(t=t||{},this._doc=e,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!t.debug,this._maxElemsToParse=t.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=t.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=t.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(t.classesToPreserve||[]),this._keepClasses=!!t.keepClasses,this._serializer=t.serializer||function(e){return e.innerHTML},this._disableJSONLD=!!t.disableJSONLD,this._allowedVideoRegex=t.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){let e=function(e){if(e.nodeType==e.TEXT_NODE)return"".concat(e.nodeName,' ("').concat(e.textContent,'")');let t=Array.from(e.attributes||[],(function(e){return"".concat(e.name,'="').concat(e.value,'"')})).join(" ");return"<".concat(e.localName," ").concat(t,">")};this.log=function(){if("undefined"!==typeof console){let t=Array.from(arguments,(t=>t&&t.nodeType==this.ELEMENT_NODE?e(t):t));t.unshift("Reader: (Readability)"),console.log.apply(console,t)}else if("undefined"!==typeof dump){var t=Array.prototype.map.call(arguments,(function(t){return t&&t.nodeName?e(t):t})).join(" ");dump("Reader: (Readability) "+t+"\n")}}}else this.log=function(){}}t.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"section,h2,h3,h4,h5,h6,p,td,pre".toUpperCase().split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|\xbb([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|\xab)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|Backgroun
2dNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(e){this._fixRelativeUris(e),this._simplifyNestedElements(e),this._keepClasses||this._cleanClasses(e)},_removeNodes:function(e,t){if(this._docJSDOMParser&&e._isLiveNodeList)throw new Error("Do not pass live node lists to _removeNodes");for(var n=e.length-1;n>=0;n--){var r=e[n],o=r.parentNode;o&&(t&&!t.call(this,r,n,e)||o.removeChild(r))}},_replaceNodeTags:function(e,t){if(this._docJSDOMParser&&e._isLiveNodeList)throw new Error("Do not pass live node lists to _replaceNodeTags");for(const n of e)this._setNodeTag(n,t)},_forEachNode:function(e,t){Array.prototype.forEach.call(e,t,this)},_findNode:function(e,t){return Array.prototype.find.call(e,t,this)},_someNode:function(e,t){return Array.prototype.some.call(e,t,this)},_everyNode:function(e,t){return Array.prototype.every.call(e,t,this)},_concatNodeLists:function(){var e=Array.prototype.slice,t=e.call(arguments).map((function(t){return e.call(t)}));return Array.prototype.concat.apply([],t)},_getAllNodesWithTag:function(e,t){return e.querySelectorAll?e.querySelectorAll(t.join(",")):[].concat.apply([],t.map((function(t){var n=e.getElementsByTagName(t);return Array.isArray(n)?n:Array.from(n)})))},_cleanClasses:function(e){var t=this._classesToPreserve,n=(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return-1!=t.indexOf(e)})).join(" ");for(n?e.setAttribute("class",n):e.removeAttribute("class"),e=e.firstElementChild;e;e=e.nextElementSibling)this._cleanClasses(e)},_fixRelativeUris:function(e){var t=this._doc.baseURI,n=this._doc.documentURI;function r(e){if(t==n&&"#"==e.charAt(0))return e;try{return new URL(e,t).href}catch(r){}return e}var o=this._getAllNodesWithTag(e,["a"]);this._forEachNode(o,(function(e){var t=e.getAttribute("href");if(t)if(0===t.indexOf("javascript:"))if(1===e.childNodes.length&&e.childNodes[0].nodeType===this.TEXT_NODE){var n=this._doc.createTextNode(e.textContent);e.parentNode.replaceChild(n,e)}else{for(var o=this._doc.createElement("span");e.firstChild;)o.appendChild(e.firstChild);e.parentNode.replaceChild(o,e)}else e.setAttribute("href",r(t))}));var i=this._getAllNodesWithTag(e,["img","picture","figure","video","audio","source"]);this._forEachNode(i,(function(e){var t=e.getAttribute("src"),n=e.getAttribute("poster"),o=e.getAttribute("srcset");if(t&&e.setAttribute("src",r(t)),n&&e.setAttribute("poster",r(n)),o){var i=o.replace(this.REGEXPS.srcsetUrl,(function(e,t,n,o){return r(t)+(n||"")+o}));e.setAttribute("srcset",i)}}))},_simplifyNestedElements:function(e){for(var t=e;t;){if(t.parentNode&&["DIV","SECTION"].includes(t.tagName)&&(!t.id||!t.id.startsWith("readability"))){if(this._isElementWithoutContent(t)){t=this._removeAndGetNext(t);continue}if(this._hasSingleTagInsideElement(t,"DIV")||this._hasSingleTagInsideElement(t,"SECTION")){for(var n=t.children[0],r=0;r<t.attributes.length;r++)n.setAttribute(t.attributes[r].name,t.attributes[r].value);t.parentNode.replaceChild(n,t),t=n;continue}}t=this._getNextNode(t)}},_getArticleTitle:function(){var e=this._doc,t="",n="";try{"string"!==typeof(t=n=e.title.trim())&&(t=n=this._getInnerText(e.getElementsByTagName("title")[0]))}catch(c){}var r=!1;function o(e){return e.split(/\s+/).length}if(/ [\|\-\\\/>\xbb] /.test(t))r=/ [\\\/>\xbb] /.test(t),o(t=n.replace(/(.*)[\|\-\\\/>\xbb] .*/gi,"$1"))<3&&(t=n.replace(/[^\|\-\\\/>\xbb]*[\|\-\\\/>\xbb](.*)/gi,"$1"));else if(-1!==t.indexOf(": ")){var i=this._concatNodeLists(e.getElementsByTagName("h1"),e.getElementsByTagName("h2")),a=t.trim();this._someNode(i,(function(e){return e.textContent.trim()===a}))||(o(t=n.substring(n.lastIndexOf(":")+1))<3?t=n.substring(n.indexOf(":")+1):o(n.substr(0,n.indexOf(":")))>5&&(t=n))}else if(t.length>150||t.length<15){var s=e.getElementsByTagName("h1");1===s.length&&(t=this._getInnerText(s[0]))}var l=o(t=t.trim().replace(this.REGEXPS.normalize," "));return l<=4&&(!r||l!=o(n.replace(/[\|\-\\\/>\xbb]+/g,""))-1)&&(t=n),t},_prepDocument:function(){var e=this._doc;this._removeNodes(this._getAllNodesWithTag(e,["style"])),e.body&&this._replaceBrs(e.body),this._replaceNodeTags(this._getAllNodesWithTag(e,["font"]),"SPAN")},_nextNode:function(e){for(var t=e;t&&t.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(t.textContent);
2)t=t.nextSibling;return t},_replaceBrs:function(e){this._forEachNode(this._getAllNodesWithTag(e,["br"]),(function(e){for(var t=e.nextSibling,n=!1;(t=this._nextNode(t))&&"BR"==t.tagName;){n=!0;var r=t.nextSibling;t.parentNode.removeChild(t),t=r}if(n){var o=this._doc.createElement("p");for(e.parentNode.replaceChild(o,e),t=o.nextSibling;t;){if("BR"==t.tagName){var i=this._nextNode(t.nextSibling);if(i&&"BR"==i.tagName)break}if(!this._isPhrasingContent(t))break;var a=t.nextSibling;o.appendChild(t),t=a}for(;o.lastChild&&this._isWhitespace(o.lastChild);)o.removeChild(o.lastChild);"P"===o.parentNode.tagName&&this._setNodeTag(o.parentNode,"DIV")}}))},_setNodeTag:function(e,t){if(this.log("_setNodeTag",e,t),this._docJSDOMParser)return e.localName=t.toLowerCase(),e.tagName=t.toUpperCase(),e;for(var n=e.ownerDocument.createElement(t);e.firstChild;)n.appendChild(e.firstChild);e.parentNode.replaceChild(n,e),e.readability&&(n.readability=e.readability);for(var r=0;r<e.attributes.length;r++)try{n.setAttribute(e.attributes[r].name,e.attributes[r].value)}catch(o){}return n},_prepArticle:function(e){this._cleanStyles(e),this._markDataTables(e),this._fixLazyImages(e),this._cleanConditionally(e,"form"),this._cleanConditionally(e,"fieldset"),this._clean(e,"object"),this._clean(e,"embed"),this._clean(e,"footer"),this._clean(e,"link"),this._clean(e,"aside");var t=this.DEFAULT_CHAR_THRESHOLD;this._forEachNode(e.children,(function(e){this._cleanMatchedNodes(e,(function(e,n){return this.REGEXPS.shareElements.test(n)&&e.textContent.length<t}))})),this._clean(e,"iframe"),this._clean(e,"input"),this._clean(e,"textarea"),this._clean(e,"select"),this._clean(e,"button"),this._cleanHeaders(e),this._cleanConditionally(e,"table"),this._cleanConditionally(e,"ul"),this._cleanConditionally(e,"div"),this._replaceNodeTags(this._getAllNodesWithTag(e,["h1"]),"h2"),this._removeNodes(this._getAllNodesWithTag(e,["p"]),(function(e){return 0===e.getElementsByTagName("img").length+e.getElementsByTagName("embed").length+e.getElementsByTagName("object").length+e.getElementsByTagName("iframe").length&&!this._getInnerText(e,!1)})),this._forEachNode(this._getAllNodesWithTag(e,["br"]),(function(e){var t=this._nextNode(e.nextSibling);t&&"P"==t.tagName&&e.parentNode.removeChild(e)})),this._forEachNode(this._getAllNodesWithTag(e,["table"]),(function(e){var t=this._hasSingleTagInsideElement(e,"TBODY")?e.firstElementChild:e;if(this._hasSingleTagInsideElement(t,"TR")){var n=t.firstElementChild;if(this._hasSingleTagInsideElement(n,"TD")){var r=n.firstElementChild;r=this._setNodeTag(r,this._everyNode(r.childNodes,this._isPhrasingContent)?"P":"DIV"),e.parentNode.replaceChild(r,e)}}}))},_initializeNode:function(e){switch(e.readability={contentScore:0},e.tagName){case"DIV":e.readability.contentScore+=5;break;case"PRE":case"TD":case"BLOCKQUOTE":e.readability.contentScore+=3;break;case"ADDRESS":case"OL":case"UL":case"DL":case"DD":case"DT":case"LI":case"FORM":e.readability.contentScore-=3;break;case"H1":case"H2":case"H3":case"H4":case"H5":case"H6":case"TH":e.readability.contentScore-=5}e.readability.contentScore+=this._getClassWeight(e)},_removeAndGetNext:function(e){var t=this._getNextNode(e,!0);return e.parentNode.removeChild(e),t},_getNextNode:function(e,t){if(!t&&e.firstElementChild)return e.firstElementChild;if(e.nextElementSibling)return e.nextElementSibling;do{e=e.parentNode}while(e&&!e.nextElementSibling);return e&&e.nextElementSibling},_textSimilarity:function(e,t){var n=e.toLowerCase().split(this.REGEXPS.tokenize).filter(Boolean),r=t.toLowerCase().split(this.REGEXPS.tokenize).filter(Boolean);return n.length&&r.length?1-r.filter((e=>!n.includes(e))).join(" ").length/r.join(" ").length:0},_checkByline:function(e,t){if(this._articleByline)return!1;if(void 0!==e.getAttribute)var n=e.getAttribute("rel"),r=e.getAttribute("itemprop");return!(!("author"===n||r&&-1!==r.indexOf("author")||this.REGEXPS.byline.test(t))||!this._isValidByline(e.textContent))&&(this._articleByline=e.textContent.trim(),!0)},_getNodeAncestors:function(e,t){t=t||0;for(var n=0,r=[];e.parentNode&&(r.push(e.parentNode),!t||++n!==t);)e=e.parentNode;return r},_grabArticle:function(e){this.log("**** grabArticle ****");var t=this._doc,n=null!==e;if(!(e=e||this._doc.body))return this.log("No body found in document. Abort."),null;for(var r=e.innerHTML;;){this.log("Starting grabArticle loop");var o=this._flagIsActive(this.FLAG_STRIP_UNLIKELYS),i=[],a=this._doc.documentElement;let W=!0;for(;a;){"HTML"===a.tagName&&(this._articleLang=a.getAttribute("lang"));var s=a.className+" "+a.id;if(this._isProbablyVisible(a))if("true"!=a.getAttribute("aria-modal")||"dialog"!=a.getAttribute("role"))if(this._checkByline(a,s))a=this._removeAndGetNext(a);else if(W&&this._headerDuplicatesTitle(a))this.log("Removing header: ",a.textContent.trim(),this._articleTitle.trim()),W=!1,a=this._removeAndGetNext(a);else{if(o){if(this.REGEXPS.unlikelyCandidates.test(s)&&!this.REGEXPS.okMaybeItsACandidate.test(s)&&!this._hasA
2ncestorTag(a,"table")&&!this._hasAncestorTag(a,"code")&&"BODY"!==a.tagName&&"A"!==a.tagName){this.log("Removing unlikely candidate - "+s),a=this._removeAndGetNext(a);continue}if(this.UNLIKELY_ROLES.includes(a.getAttribute("role"))){this.log("Removing content with role "+a.getAttribute("role")+" - "+s),a=this._removeAndGetNext(a);continue}}if("DIV"!==a.tagName&&"SECTION"!==a.tagName&&"HEADER"!==a.tagName&&"H1"!==a.tagName&&"H2"!==a.tagName&&"H3"!==a.tagName&&"H4"!==a.tagName&&"H5"!==a.tagName&&"H6"!==a.tagName||!this._isElementWithoutContent(a)){if(-1!==this.DEFAULT_TAGS_TO_SCORE.indexOf(a.tagName)&&i.push(a),"DIV"===a.tagName){for(var l=null,c=a.firstChild;c;){var u=c.nextSibling;if(this._isPhrasingContent(c))null!==l?l.appendChild(c):this._isWhitespace(c)||(l=t.createElement("p"),a.replaceChild(l,c),l.appendChild(c));else if(null!==l){for(;l.lastChild&&this._isWhitespace(l.lastChild);)l.removeChild(l.lastChild);l=null}c=u}if(this._hasSingleTagInsideElement(a,"P")&&this._getLinkDensity(a)<.25){var d=a.children[0];a.parentNode.replaceChild(d,a),a=d,i.push(a)}else this._hasChildBlockElement(a)||(a=this._setNodeTag(a,"P"),i.push(a))}a=this._getNextNode(a)}else a=this._removeAndGetNext(a)}else a=this._removeAndGetNext(a);else this.log("Removing hidden node - "+s),a=this._removeAndGetNext(a)}var h=[];this._forEachNode(i,(function(e){if(e.parentNode&&"undefined"!==typeof e.parentNode.tagName){var t=this._getInnerText(e);if(!(t.length<25)){var n=this._getNodeAncestors(e,5);if(0!==n.length){var r=0;r+=1,r+=t.split(",").length,r+=Math.min(Math.floor(t.length/100),3),this._forEachNode(n,(function(e,t){if(e.tagName&&e.parentNode&&"undefined"!==typeof e.parentNode.tagName){if("undefined"===typeof e.readability&&(this._initializeNode(e),h.push(e)),0===t)var n=1;else n=1===t?2:3*t;e.readability.contentScore+=r/n}}))}}}}));for(var f=[],p=0,m=h.length;p<m;p+=1){var g=h[p],y=g.readability.contentScore*(1-this._getLinkDensity(g));g.readability.contentScore=y,this.log("Candidate:",g,"with score "+y);for(var v=0;v<this._nbTopCandidates;v++){var b=f[v];if(!b||y>b.readability.contentScore){f.splice(v,0,g),f.length>this._nbTopCandidates&&f.pop();break}}}var w,x=f[0]||null,k=!1;if(null===x||"BODY"===x.tagName){for(x=t.createElement("DIV"),k=!0;e.firstChild;)this.log("Moving child out:",e.firstChild),x.appendChild(e.firstChild);e.appendChild(x),this._initializeNode(x)}else if(x){for(var S=[],E=1;E<f.length;E++)f[E].readability.contentScore/x.readability.contentScore>=.75&&S.push(this._getNodeAncestors(f[E]));if(S.length>=3)for(w=x.parentNode;"BODY"!==w.tagName;){for(var C=0,_=0;_<S.length&&C<3;_++)C+=Number(S[_].includes(w));if(C>=3){x=w;break}w=w.parentNode}x.readability||this._initializeNode(x),w=x.parentNode;for(var T=x.readability.contentScore,O=T/3;"BODY"!==w.tagName;)if(w.readability){var I=w.readability.contentScore;if(I<O)break;if(I>T){x=w;break}T=w.readability.contentScore,w=w.parentNode}else w=w.parentNode;for(w=x.parentNode;"BODY"!=w.tagName&&1==w.children.length;)w=(x=w).parentNode;x.readability||this._initializeNode(x)}var A=t.createElement("DIV");n&&(A.id="readability-content");for(var P=Math.max(10,.2*x.readability.contentScore),R=(w=x.parentNode).children,N=0,D=R.length;N<D;N++){var M=R[N],L=!1;if(this.log("Looking at sibling node:",M,M.readability?"with score "+M.readability.contentScore:""),this.log("Sibling has score",M.readability?M.readability.contentScore:"Unknown"),M===x)L=!0;else{var Z=0;if(M.className===x.className&&""!==x.className&&(Z+=.2*x.readability.contentScore),M.readability&&M.readability.contentScore+Z>=P)L=!0;else if("P"===M.nodeName){var j=this._getLinkDensity(M),F=this._getInnerText(M),z=F.length;(z>80&&j<.25||z<80&&z>0&&0===j&&-1!==F.search(/\.( |$)/))&&(L=!0)}}L&&(this.log("Appending node:",M),-1===this.ALTER_TO_DIV_EXCEPTIONS.indexOf(M.nodeName)&&(this.log("Altering sibling:",M,"to div."),M=this._setNodeTag(M,"DIV")),A.appendChild(M),R=w.children,N-=1,D-=1)}if(this._debug&&this.log("Article content pre-prep: "+A.innerHTML),this._prepArticle(A),this._debug&&this.log("Article content post-prep: "+A.innerHTML),k)x.id="readability-page-1",x.className="page";else{var U=t.createElement("DIV");for(U.id="readability-page-1",U.className="page";A.firstChild;)U.appendChild(A.firstChild);A.appendChild(U)}this._debug&&this.log("Article content after paging: "+A.innerHTML);var B=!0,V=this._getInnerText(A,!0).length;if(V<this._charThreshold)if(B=!1,e.innerHTML=r,this._flagIsActive(this.FLAG_STRIP_UNLIKELYS))this._removeFlag(this.FLAG_STRIP_UNLIKELYS),this._attempts.push({articleContent:A,textLength:V});else if(this._flagIsActive(this.FLAG_WEIGHT_CLASSES))this._removeFlag(this.FLAG_WEIGHT_CLASSES),this._attempts.push({articleContent:A,textLength:V});else if(this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY))this._removeFlag(this.FLAG_CLEAN_CONDITIONALLY),this._attempts.push({articleContent:A,textLength:V});else{if(this._attempts.push({articleContent:A,textLength:V}),this._attempts.sort((function(e,t){return t.textLength-e.textLength})),!this._attempts[0].textLength)return null;A=this._attempts[0].articleContent,B=!0}if(B){var H=[w,x].concat(this._getNodeAncestors(w));return this._someNode(H,(function(e){if(!e.tagName)return!1;var t=e.getAttribute("dir");return!!t&&(this._articleDir=t,!0)})),A}}},_isValidByline:function(e){return("string"==typeof e||e instanceof String)&&((e=e.trim()).length>0&&e.length<100)},_unescapeHtmlEntities:function(e){if(!e)return e;var t=this.HTML_ESCAPE_MAP;return e.replace(/&(quot|amp|apos|lt|gt);/g,(function(e,n){return t[n]})).replace(/&#(?:x([0-9a-z]{1,4})|([0-9]{1,4}));/gi,(function(e,t,n){var r=parseInt(t||n,t?16:10);return String.fromCharCode(r)}))},_getJSONLD:function(e){var t,n=this._getAllNodesWithTag(e,["script"]);
2return this._forEachNode(n,(function(e){if(!t&&"application/ld+json"===e.getAttribute("type"))try{var n=e.textContent.replace(/^\s*<!\[CDATA\[|\]\]>\s*$/g,""),r=JSON.parse(n);if(!r["@context"]||!r["@context"].match(/^https?\:\/\/schema\.org$/))return;if(!r["@type"]&&Array.isArray(r["@graph"])&&(r=r["@graph"].find((function(e){return(e["@type"]||"").match(this.REGEXPS.jsonLdArticleTypes)}))),!r||!r["@type"]||!r["@type"].match(this.REGEXPS.jsonLdArticleTypes))return;if(t={},"string"===typeof r.name&&"string"===typeof r.headline&&r.name!==r.headline){var o=this._getArticleTitle(),i=this._textSimilarity(r.name,o)>.75,a=this._textSimilarity(r.headline,o)>.75;t.title=a&&!i?r.headline:r.name}else"string"===typeof r.name?t.title=r.name.trim():"string"===typeof r.headline&&(t.title=r.headline.trim());return r.author&&("string"===typeof r.author.name?t.byline=r.author.name.trim():Array.isArray(r.author)&&r.author[0]&&"string"===typeof r.author[0].name&&(t.byline=r.author.filter((function(e){return e&&"string"===typeof e.name})).map((function(e){return e.name.trim()})).join(", "))),"string"===typeof r.description&&(t.excerpt=r.description.trim()),void(r.publisher&&"string"===typeof r.publisher.name&&(t.siteName=r.publisher.name.trim()))}catch(s){this.log(s.message)}})),t||{}},_getArticleMetadata:function(e){var t={},n={},r=this._doc.getElementsByTagName("meta"),o=/\s*(dc|dcterm|og|twitter)\s*:\s*(author|creator|description|title|site_name)\s*/gi,i=/^\s*(?:(dc|dcterm|og|twitter|weibo:(article|webpage))\s*[\.:]\s*)?(author|creator|description|title|site_name)\s*$/i;return this._forEachNode(r,(function(e){var t=e.getAttribute("name"),r=e.getAttribute("property"),a=e.getAttribute("content");if(a){var s=null,l=null;r&&(s=r.match(o))&&(l=s[0].toLowerCase().replace(/\s/g,""),n[l]=a.trim()),!s&&t&&i.test(t)&&(l=t,a&&(l=l.toLowerCase().replace(/\s/g,"").replace(/\./g,":"),n[l]=a.trim()))}})),t.title=e.title||n["dc:title"]||n["dcterm:title"]||n["og:title"]||n["weibo:article:title"]||n["weibo:webpage:title"]||n.title||n["twitter:title"],t.title||(t.title=this._getArticleTitle()),t.byline=e.byline||n["dc:creator"]||n["dcterm:creator"]||n.author,t.excerpt=e.excerpt||n["dc:description"]||n["dcterm:description"]||n["og:description"]||n["weibo:article:description"]||n["weibo:webpage:description"]||n.description||n["twitter:description"],t.siteName=e.siteName||n["og:site_name"],t.title=this._unescapeHtmlEntities(t.title),t.byline=this._unescapeHtmlEntities(t.byline),t.excerpt=this._unescapeHtmlEntities(t.excerpt),t.siteName=this._unescapeHtmlEntities(t.siteName),t},_isSingleImage:function(e){return"IMG"===e.tagName||1===e.children.length&&""===e.textContent.trim()&&this._isSingleImage(e.children[0])},_unwrapNoscriptImages:function(e){var t=Array.from(e.getElementsByTagName("img"));this._forEachNode(t,(function(e){for(var t=0;t<e.attributes.length;t++){var n=e.attributes[t];switch(n.name){case"src":case"srcset":case"data-src":case"data-srcset":return}if(/\.(jpg|jpeg|png|webp)/i.test(n.value))return}e.parentNode.removeChild(e)}));var n=Array.from(e.getElementsByTagName("noscript"));this._forEachNode(n,(function(t){var n=e.createElement("div");if(n.innerHTML=t.innerHTML,this._isSingleImage(n)){var r=t.previousElementSibling;if(r&&this._isSingleImage(r)){var o=r;"IMG"!==o.tagName&&(o=r.getElementsByTagName("img")[0]);for(var i=n.getElementsByTagName("img")[0],a=0;a<o.attributes.length;a++){var s=o.attributes[a];if(""!==s.value&&("src"===s.name||"srcset"===s.name||/\.(jpg|jpeg|png|webp)/i.test(s.value))){if(i.getAttribute(s.name)===s.value)continue;var l=s.name;i.hasAttribute(l)&&(l="data-old-"+l),i.setAttribute(l,s.value)}}t.parentNode.replaceChild(n.firstElementChild,r)}}}))},_removeScripts:function(e){this._removeNodes(this._getAllNodesWithTag(e,["script","noscript"]))},_hasSingleTagInsideElement:function(e,t){return 1==e.children.length&&e.children[0].tagName===t&&!this._someNode(e.childNodes,(function(e){return e.nodeType===this.TEXT_NODE&&this.REGEXPS.hasContent.test(e.textContent)}))},_isElementWithoutContent:function(e){return e.nodeType===this.ELEMENT_NODE&&
20==e.textContent.trim().length&&(0==e.children.length||e.children.length==e.getElementsByTagName("br").length+e.getElementsByTagName("hr").length)},_hasChildBlockElement:function(e){return this._someNode(e.childNodes,(function(e){return this.DIV_TO_P_ELEMS.has(e.tagName)||this._hasChildBlockElement(e)}))},_isPhrasingContent:function(e){return e.nodeType===this.TEXT_NODE||-1!==this.PHRASING_ELEMS.indexOf(e.tagName)||("A"===e.tagName||"DEL"===e.tagName||"INS"===e.tagName)&&this._everyNode(e.childNodes,this._isPhrasingContent)},_isWhitespace:function(e){return e.nodeType===this.TEXT_NODE&&0===e.textContent.trim().length||e.nodeType===this.ELEMENT_NODE&&"BR"===e.tagName},_getInnerText:function(e,t){t="undefined"===typeof t||t;var n=e.textContent.trim();return t?n.replace(this.REGEXPS.normalize," "):n},_getCharCount:function(e,t){return t=t||",",this._getInnerText(e).split(t).length-1},_cleanStyles:function(e){if(e&&"svg"!==e.tagName.toLowerCase()){for(var t=0;t<this.PRESENTATIONAL_ATTRIBUTES.length;t++)e.removeAttribute(this.PRESENTATIONAL_ATTRIBUTES[t]);-1!==this.DEPRECATED_SIZE_ATTRIBUTE_ELEMS.indexOf(e.tagName)&&(e.removeAttribute("width"),e.removeAttribute("height"));for(var n=e.firstElementChild;null!==n;)this._cleanStyles(n),n=n.nextElementSibling}},_getLinkDensity:function(e){var t=this._getInnerText(e).length;if(0===t)return 0;var n=0;return this._forEachNode(e.getElementsByTagName("a"),(function(e){var t=e.getAttribute("href"),r=t&&this.REGEXPS.hashUrl.test(t)?.3:1;n+=this._getInnerText(e).length*r})),n/t},_getClassWeight:function(e){if(!this._flagIsActive(this.FLAG_WEIGHT_CLASSES))return 0;var t=0;return"string"===typeof e.className&&""!==e.className&&(this.REGEXPS.negative.test(e.className)&&(t-=25),this.REGEXPS.positive.test(e.className)&&(t+=25)),"string"===typeof e.id&&""!==e.id&&(this.REGEXPS.negative.test(e.id)&&(t-=25),this.REGEXPS.positive.test(e.id)&&(t+=25)),t},_clean:function(e,t){var n=-1!==["object","embed","iframe"].indexOf(t);this._removeNodes(this._getAllNodesWithTag(e,[t]),(function(e){if(n){for(var t=0;t<e.attributes.length;t++)if(this._allowedVideoRegex.test(e.attributes[t].value))return!1;if("object"===e.tagName&&this._allowedVideoRegex.test(e.innerHTML))return!1}return!0}))},_hasAncestorTag:function(e,t,n,r){n=n||3,t=t.toUpperCase();for(var o=0;e.parentNode;){if(n>0&&o>n)return!1;if(e.parentNode.tagName===t&&(!r||r(e.parentNode)))return!0;e=e.parentNode,o++}return!1},_getRowAndColumnCount:function(e){for(var t=0,n=0,r=e.getElementsByTagName("tr"),o=0;o<r.length;o++){var i=r[o].getAttribute("rowspan")||0;i&&(i=parseInt(i,10)),t+=i||1;for(var a=0,s=r[o].getElementsByTagName("td"),l=0;l<s.length;l++){var c=s[l].getAttribute("colspan")||0;c&&(c=parseInt(c,10)),a+=c||1}n=Math.max(n,a)}return{rows:t,columns:n}},_markDataTables:function(e){for(var t=e.getElementsByTagName("table"),n=0;n<t.length;n++){var r=t[n];if("presentation"!=r.getAttribute("role"))if("0"!=r.getAttribute("datatable"))if(r.getAttribute("summary"))r._readabilityDataTable=!0;else{var o=r.getElementsByTagName("caption")[0];if(o&&o.childNodes.length>0)r._readabilityDataTable=!0;else{if(["col","colgroup","tfoot","thead","th"].some((function(e){return!!r.getElementsByTagName(e)[0]})))this.log("Data table because found data-y descendant"),r._readabilityDataTable=!0;else if(r.getElementsByTagName("table")[0])r._readabilityDataTable=!1;else{var i=this._getRowAndColumnCount(r);i.rows>=10||i.columns>4?r._readabilityDataTable=!0:r._readabilityDataTable=i.rows*i.columns>10}}}else r._readabilityDataTable=!1;else r._readabilityDataTable=!1}},_fixLazyImages:function(e){this._forEachNode(this._getAllNodesWithTag(e,["img","picture","figure"]),(function(e){if(e.src&&this.REGEXPS.b64DataUrl.test(e.src)){if("image/svg+xml"===this.REGEXPS.b64DataUrl.exec(e.src)[1])return;for(var t=!1,n=0;n<e.attributes.length;n++){var r=e.attributes[n];if("src"!==r.name&&/\.(jpg|jpeg|png|webp)/i.test(r.value)){t=!0;break}}if(t){var o=e.src.search(/base64\s*/i)+7;e.src.length-o<133&&e.removeAttribute("src")}}if(!(e.src||e.srcset&&"null"!=e.srcset)||-1!==e.className.toLowerCase().indexOf("lazy"))for(var i=0;i<e.attributes.length;i++)if("src"!==(r=e.attributes[i]).name&&"srcset"!==r.name&&"alt"!==r.name){var a=null;if(/\.(jpg|jpeg|png|webp)\s+\d/.test(r.value)?a="srcset":/^\s*\S+\.(jpg|jpeg|png|webp)\S*\s*$/.test(r.value)&&(a="src"),a)if("IMG"===e.tagName||"PICTURE"===e.tagName)e.setAttribute(a,r.value);else if("FIGURE"===e.tagName&&!this._getAllNodesWithTag(e,["img","picture"]).length){var s=this._doc.createElement("img");s.setAttribute(a,r.value),e.appendChild(s)}}}))},_getTextDensity:function(e,t){var n=this._getInnerText(e,!0).length;if(0===n)return 0;var r=0,o=this._getAllNodesWithTag(e,t);
2return this._forEachNode(o,(e=>r+=this._getInnerText(e,!0).length)),r/n},_cleanConditionally:function(e,t){this._flagIsActive(this.FLAG_CLEAN_CONDITIONALLY)&&this._removeNodes(this._getAllNodesWithTag(e,[t]),(function(e){var n=function(e){return e._readabilityDataTable},r="ul"===t||"ol"===t;if(!r){var o=0,i=this._getAllNodesWithTag(e,["ul","ol"]);this._forEachNode(i,(e=>o+=this._getInnerText(e).length)),r=o/this._getInnerText(e).length>.9}if("table"===t&&n(e))return!1;if(this._hasAncestorTag(e,"table",-1,n))return!1;if(this._hasAncestorTag(e,"code"))return!1;var a=this._getClassWeight(e);this.log("Cleaning Conditionally",e);if(a+0<0)return!0;if(this._getCharCount(e,",")<10){for(var s=e.getElementsByTagName("p").length,l=e.getElementsByTagName("img").length,c=e.getElementsByTagName("li").length-100,u=e.getElementsByTagName("input").length,d=this._getTextDensity(e,["h1","h2","h3","h4","h5","h6"]),h=0,f=this._getAllNodesWithTag(e,["object","embed","iframe"]),p=0;p<f.length;p++){for(var m=0;m<f[p].attributes.length;m++)if(this._allowedVideoRegex.test(f[p].attributes[m].value))return!1;if("object"===f[p].tagName&&this._allowedVideoRegex.test(f[p].innerHTML))return!1;h++}var g=this._getLinkDensity(e),y=this._getInnerText(e).length,v=l>1&&s/l<.5&&!this._hasAncestorTag(e,"figure")||!r&&c>s||u>Math.floor(s/3)||!r&&d<.9&&y<25&&(0===l||l>2)&&!this._hasAncestorTag(e,"figure")||!r&&a<25&&g>.2||a>=25&&g>.5||1===h&&y<75||h>1;if(r&&v){for(var b=0;b<e.children.length;b++){if(e.children[b].children.length>1)return v}if(l==e.getElementsByTagName("li").length)return!1}return v}return!1}))},_cleanMatchedNodes:function(e,t){for(var n=this._getNextNode(e,!0),r=this._getNextNode(e);r&&r!=n;)r=t.call(this,r,r.className+" "+r.id)?this._removeAndGetNext(r):this._getNextNode(r)},_cleanHeaders:function(e){let t=this._getAllNodesWithTag(e,["h1","h2"]);this._removeNodes(t,(function(e){let t=this._getClassWeight(e)<0;return t&&this.log("Removing header with low class weight:",e),t}))},_headerDuplicatesTitle:function(e){if("H1"!=e.tagName&&"H2"!=e.tagName)return!1;var t=this._getInnerText(e,!1);return this.log("Evaluating similarity of header:",t,this._articleTitle),this._textSimilarity(this._articleTitle,t)>.75},_flagIsActive:function(e){return(this._flags&e)>0},_removeFlag:function(e){this._flags=this._flags&~e},_isProbablyVisible:function(e){return(!e.style||"none"!=e.style.display)&&!e.hasAttribute("hidden")&&(!e.hasAttribute("aria-hidden")||"true"!=e.getAttribute("aria-hidden")||e.className&&e.className.indexOf&&-1!==e.className.indexOf("fallback-image"))},parse:function(){if(this._maxElemsToParse>0){var e=this._doc.getElementsByTagName("*").length;if(e>this._maxElemsToParse)throw new Error("Aborting parsing document; "+e+" elements found")}this._unwrapNoscriptImages(this._doc);var t=this._disableJSONLD?{}:this._getJSONLD(this._doc);this._removeScripts(this._doc),this._prepDocument();var n=this._getArticleMetadata(t);this._articleTitle=n.title;var r=this._grabArticle();if(!r)return null;if(this.log("Grabbed: "+r.innerHTML),this._postProcessContent(r),!n.excerpt){var o=r.getElementsByTagName("p");o.length>0&&(n.excerpt=o[0].textContent.trim())}var i=r.textContent;return{title:this._articleTitle,byline:n.byline||this._articleByline,dir:this._articleDir,lang:this._articleLang,content:this._serializer(r),textContent:i,length:i.length,excerpt:n.excerpt,siteName:n.siteName||this._articleSiteName}}},e.exports=t},62236:(e,t,n)=>{var r=n(87085),o=n(68866);e.exports={Readability:r,isProbablyReaderable:o}},96174:(e,t,n)=>{"use strict";n.d(t,{h:()=>c});var r=n(72791),o=n(54164),i=n(6117),a=n(62876),s=n(62971),l=n(80184);const c=r.forwardRef((function(e,t){const{children:n,container:c,disablePortal:u=!1}=e,[d,h]=r.useState(null),f=(0,i.Z)(r.isValidElement(n)?n.ref:null,t);if((0,a.Z)((()=>{u||h(function(e){return"function"===typeof e?e():e}(c)||document.body)}),[c,u]),(0,a.Z)((()=>{if(d&&!u)return(0,s.Z)(t,d),()=>{(0,s.Z)(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?o.createPortal(n,d):d})}))}
2,90183:(e,t,n)=>{"use strict";n.d(t,{$:()=>i});var r=n(87462),o=n(20627);function i(e,t,n){return void 0===e||(0,o.X)(e)?t:(0,r.Z)({},t,{ownerState:(0,r.Z)({},t.ownerState,n)})}},22086:(e,t,n)=>{"use strict";function r(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}n.d(t,{_:()=>r})},20627:(e,t,n)=>{"use strict";function r(e){return"string"===typeof e}n.d(t,{X:()=>r})},41107:(e,t,n)=>{"use strict";n.d(t,{y:()=>d});var r=n(87462),o=n(63366),i=n(6117),a=n(90183),s=n(63733),l=n(22086);function c(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"===typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const u=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function d(e){var t;const{elementType:n,externalSlotProps:d,ownerState:h,skipResolvingSlotProps:f=!1}=e,p=(0,o.Z)(e,u),m=f?{}:function(e,t,n){return"function"===typeof e?e(t,n):e}(d,h),{props:g,internalRef:y}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:i,className:a}=e;if(!t){const e=(0,s.Z)(null==n?void 0:n.className,a,null==i?void 0:i.className,null==o?void 0:o.className),t=(0,r.Z)({},null==n?void 0:n.style,null==i?void 0:i.style,null==o?void 0:o.style),l=(0,r.Z)({},n,i,o);return e.length>0&&(l.className=e),Object.keys(t).length>0&&(l.style=t),{props:l,internalRef:void 0}}const u=(0,l._)((0,r.Z)({},i,o)),d=c(o),h=c(i),f=t(u),p=(0,s.Z)(null==f?void 0:f.className,null==n?void 0:n.className,a,null==i?void 0:i.className,null==o?void 0:o.className),m=(0,r.Z)({},null==f?void 0:f.style,null==n?void 0:n.style,null==i?void 0:i.style,null==o?void 0:o.style),g=(0,r.Z)({},f,n,h,d);return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:f.ref}}((0,r.Z)({},p,{externalSlotProps:m})),v=(0,i.Z)(y,null==m?void 0:m.ref,null==(t=e.additionalProps)?void 0:t.ref);return(0,a.$)(n,(0,r.Z)({},g,{ref:v}),h)}},53893:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=r(n(45649)),i=n(80184),a=(0,o.default)((0,i.jsx)("path",{d:"M8 11h8v2H8v-2zm12.1 1H22c0-2.76-2.24-5-5-5h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1zM3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM19 12h-2v3h-3v2h3v3h2v-3h3v-2h-3v-3z"}),"AddLinkOutlined");t.Z=a},43091:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;!function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}r.default=e,n&&n.set(e,r)}(n(72791));var o=r(n(45649)),i=n(80184);function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}var s=(0,o.default)((0,i.jsx)("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"}),"Apple");t.Z=s},31009:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=r(n(45649)),i=n(80184),a=(0,o.default)((0,i.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");t.Z=a},38996:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=r(n(45649)),i=n(80184),a=(0,o.default)((0,i.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");t.Z=a},29823:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=r(n(45649)),i=n(80184),a=(0,o.default)((0,i.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.Z=a}
2,73452:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=r(n(45649)),i=n(80184),a=(0,o.default)((0,i.jsx)("path",{d:"M22 3.41 16.71 8.7 20 12h-8V4l3.29 3.29L20.59 2 22 3.41zM3.41 22l5.29-5.29L12 20v-8H4l3.29 3.29L2 20.59 3.41 22z"}),"CloseFullscreen");t.Z=a},99309:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=r(n(45649)),i=n(80184),a=(0,o.default)((0,i.jsx)("path",{d:"M19 5v2h-4V5h4M9 5v6H5V5h4m10 8v6h-4v-6h4M9 17v2H5v-2h4M21 3h-8v6h8V3zM11 3H3v10h8V3zm10 8h-8v10h8V11zm-10 4H3v6h8v-6z"}),"DashboardOutlined");t.Z=a},39568:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=r(n(45649)),i=n(80184),a=(0,o.default)((0,i.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"}),"Description");t.Z=a},73518:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=r(n(45649)),i=n(80184),a=(0,o.default)((0,i.jsx)("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}),"Download");t.Z=a},29388:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=r(n(45649)),i=n(80184),a=(0,o.default)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}),"Error");t.Z=a},81131:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=r(n(45649)),i=n(80184),a=(0,o.default)((0,i.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.Z=a},85029:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=r(n(45649)),i=n(80184),a=(0,o.default)((0,i.jsx)("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}),"Fullscreen");t.Z=a},29421:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=r(n(45649)),i=n(80184),a=(0,o.default)((0,i.jsx)("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4z"}),"GridOnOutlined");t.Z=a},89885:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=r(n(45649)),i=n(80184),a=(0,o.default)((0,i.jsx)("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"}),"InsertDriveFile");t.Z=a},1210:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=r(n(45649)),i=n(80184),a=(0,o.default)([(0,i.jsx)("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42zM13 20.01 4 11V4h7v-.01l9 9-7 7.02z"},"0"),(0,i.jsx)("circle",{cx:"6.5",cy:"6.5",r:"1.5"},"1")],"LocalOfferOutlined");t.Z=a},72129:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=r(n(45649)),i=n(80184),a=(0,o.default)((0,i.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z"}),"MailOutline");t.Z=a},98008:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=r(n(45649)),i=n(80184),a=(0,o.default)((0,i.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");t.Z=a},2094:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=r(n(45649)),i=n(80184),a=(0,o.default)((0,i.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");t.Z=a},11814:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=r(n(45649)),i=n(80184),a=(0,o.default)((0,i.jsx)("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5v3zm4-3H19v1h1.5V11H19v2h-1.5V7h3v1.5zM9 9.5h1v-1H9v1zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm10 5.5h1v-3h-1v3z"}),"PictureAsPdf");t.Z=a},21686:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=r(n(45649)),i=n(80184),a=(0,o.default)((0,i.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");t.Z=a},45047:(e,t,n)=>{"use strict";var r=n(64836);t.Z=void 0;var o=r(n(45649)),i=n(80184),a=(0,o.default)((0,i.jsx)("path",{d:"m20.41 8.41-4.83-4.83c-.37-.37-.88-.58-1.41-.58H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.42zM7 7h7v2H7V7zm10 10H7v-2h10v2zm0-4H7v-2h10v2z"}),"TextSnippet");t.Z=a}
2,45649:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(28610)},19658:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var r=n(63366),o=n(87462),i=n(72791),a=n(63733),s=n(94419),l=n(12065),c=n(66934),u=n(31402),d=n(14036),h=n(35527),f=n(75878),p=n(21217);function m(e){return(0,p.Z)("MuiAlert",e)}const g=(0,f.Z)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var y=n(13400),v=n(76189),b=n(80184);const w=(0,v.Z)((0,b.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),x=(0,v.Z)((0,b.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),k=(0,v.Z)((0,b.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),S=(0,v.Z)((0,b.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),E=(0,v.Z)((0,b.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),C=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],_=(0,c.ZP)(h.Z,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,d.Z)(n.color||n.severity))]]}})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?l._j:l.$n,i="light"===t.palette.mode?l.$n:l._j,a=n.color||n.severity;return(0,o.Z)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},a&&"standard"===n.variant&&{color:t.vars?t.vars.palette.Alert["".concat(a,"Color")]:r(t.palette[a].light,.6),backgroundColor:t.vars?t.vars.palette.Alert["".concat(a,"StandardBg")]:i(t.palette[a].light,.9),["& .".concat(g.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(a,"IconColor")]}:{color:t.palette[a].main}},a&&"outlined"===n.variant&&{color:t.vars?t.vars.palette.Alert["".concat(a,"Color")]:r(t.palette[a].light,.6),border:"1px solid ".concat((t.vars||t).palette[a].light),["& .".concat(g.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(a,"IconColor")]}:{color:t.palette[a].main}},a&&"filled"===n.variant&&(0,o.Z)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert["".concat(a,"FilledColor")],backgroundColor:t.vars.palette.Alert["".concat(a,"FilledBg")]}:{backgroundColor:"dark"===t.palette.mode?t.palette[a].dark:t.palette[a].main,color:t.palette.getContrastText(t.palette[a].main)}))})),T=(0,c.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),O=(0,c.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),I=(0,c.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),A={success:(0,b.jsx)(w,{fontSize:"inherit"}),warning:(0,b.jsx)(x,{fontSize:"inherit"}),error:(0,b.jsx)(k,{fontSize:"inherit"}),info:(0,b.jsx)(S,{fontSize:"inherit"})},P=i.forwardRef((function(e,t){var n,i,l,c,h,f;const p=(0,u.Z)({props:e,name:"MuiAlert"}),{action:g,children:v,className:w,closeText:x="Close",color:k,components:S={},componentsProps:P={},icon:R,iconMapping:N=A,onClose:D,role:M="alert",severity:L="success",slotProps:Z={},slots:j={},variant:F="standard"}
2=p,z=(0,r.Z)(p,C),U=(0,o.Z)({},p,{color:k,severity:L,variant:F}),B=(e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root","".concat(t).concat((0,d.Z)(n||r)),"".concat(t)],icon:["icon"],message:["message"],action:["action"]};return(0,s.Z)(i,m,o)})(U),V=null!=(n=null!=(i=j.closeButton)?i:S.CloseButton)?n:y.Z,H=null!=(l=null!=(c=j.closeIcon)?c:S.CloseIcon)?l:E,W=null!=(h=Z.closeButton)?h:P.closeButton,q=null!=(f=Z.closeIcon)?f:P.closeIcon;return(0,b.jsxs)(_,(0,o.Z)({role:M,elevation:0,ownerState:U,className:(0,a.Z)(B.root,w),ref:t},z,{children:[!1!==R?(0,b.jsx)(T,{ownerState:U,className:B.icon,children:R||N[L]||A[L]}):null,(0,b.jsx)(O,{ownerState:U,className:B.message,children:v}),null!=g?(0,b.jsx)(I,{ownerState:U,className:B.action,children:g}):null,null==g&&D?(0,b.jsx)(I,{ownerState:U,className:B.action,children:(0,b.jsx)(V,(0,o.Z)({size:"small","aria-label":x,title:x,color:"inherit",onClick:D},W,{children:(0,b.jsx)(H,(0,o.Z)({fontSize:"small"},q))}))}):null]}))}))},52739:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(63366),o=n(87462),i=n(72791),a=n(63733),s=n(94419),l=n(66934),c=n(31402),u=n(60627),d=n(75878),h=n(21217);function f(e){return(0,h.Z)("MuiBackdrop",e)}(0,d.Z)("MuiBackdrop",["root","invisible"]);var p=n(80184);const m=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],g=(0,l.ZP)("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,o.Z)({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"})})),y=i.forwardRef((function(e,t){var n,i,l;const d=(0,c.Z)({props:e,name:"MuiBackdrop"}),{children:h,className:y,component:v="div",components:b={},componentsProps:w={},invisible:x=!1,open:k,slotProps:S={},slots:E={},TransitionComponent:C=u.Z,transitionDuration:_}=d,T=(0,r.Z)(d,m),O=(0,o.Z)({},d,{component:v,invisible:x}),I=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,s.Z)(r,f,t)})(O),A=null!=(n=S.root)?n:w.root;return(0,p.jsx)(C,(0,o.Z)({in:k,timeout:_},T,{children:(0,p.jsx)(g,(0,o.Z)({"aria-hidden":!0},A,{as:null!=(i=null!=(l=E.root)?l:b.Root)?i:v,className:(0,a.Z)(I.root,y,null==A?void 0:A.className),ownerState:(0,o.Z)({},O,null==A?void 0:A.ownerState),classes:I,ref:t,children:h}))}))}))},64554:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(87462),o=n(63366),i=n(72791),a=n(63733),s=n(65917),l=n(60104),c=n(78519),u=n(30418),d=n(80184);const h=["className","component"];var f=n(55902),p=n(90282),m=n(988);const g=(0,p.Z)(),y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n,defaultClassName:f="MuiBox-root",generateClassName:p}=e,m=(0,s.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z);return i.forwardRef((function(e,i){const s=(0,u.Z)(n),l=(0,c.Z)(e),{className:g,component:y="div"}=l,v=(0,o.Z)(l,h);return(0,d.jsx)(m,(0,r.Z)({as:y,ref:i,className:(0,a.Z)(g,p?p(f):f),theme:t&&s[t]||s},v))}))}({themeId:m.Z,defaultTheme:g,defaultClassName:"MuiBox-root",generateClassName:f.Z.generate}),v=y},94294:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(63366),o=n(87462),i=n(72791),a=n(63733),s=n(35735),l=n(94419),c=n(12065),u=n(66934),d=n(31402),h=n(23701),f=n(14036),p=n(75878),m=n(21217);function g(e){return(0,m.Z)("MuiButton",e)}const y=(0,p.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const v=i.createContext({});const b=i.createContext(void 0);var w=n(80184);const x=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],k=e=>(0,o.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),S=(0,u.ZP)(h.Z,{shouldForwardProp:e=>(0,u.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,f.Z)(n.color))],t["size".concat((0,f.Z)(n.size))],t["".concat(n.variant,"Size").concat((0,f.Z)(n.size))],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:n}=e;var r,i;const a="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],s="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return(0,o.Z)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,o.Z)({textDecoration:"none",backgroundColor:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===n.variant&&"inherit"!==n.color&&{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainCh
2annel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===n.variant&&"inherit"!==n.color&&{border:"1px solid ".concat((t.vars||t).palette[n.color].main),backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===n.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===n.variant&&"inherit"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}),"&:active":(0,o.Z)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[8]}),["&.".concat(y.focusVisible)]:(0,o.Z)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[6]}),["&.".concat(y.disabled)]:(0,o.Z)({color:(t.vars||t).palette.action.disabled},"outlined"===n.variant&&{border:"1px solid ".concat((t.vars||t).palette.action.disabledBackground)},"contained"===n.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===n.variant&&{padding:"6px 8px"},"text"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main},"outlined"===n.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:t.vars?"1px solid rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.5)"):"1px solid ".concat((0,c.Fq)(t.palette[n.color].main,.5))},"contained"===n.variant&&{color:t.vars?t.vars.palette.text.primary:null==(r=(i=t.palette).getContrastText)?void 0:r.call(i,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:a,boxShadow:(t.vars||t).shadows[2]},"contained"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main},"inherit"===n.color&&{color:"inherit",borderColor:"currentColor"},"small"===n.size&&"text"===n.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"text"===n.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"outlined"===n.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"outlined"===n.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"contained"===n.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"contained"===n.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&.".concat(y.focusVisible)]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&.".concat(y.disabled)]:{boxShadow:"none"}}})),E=(0,u.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t["iconSize".concat((0,f.Z)(n.size))]]}})((e=>{let{ownerState:t}=e;return(0,o.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},k(t))})),C=(0,u.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t["iconSize".concat((0,f.Z)(n.size))]]}})((e=>{let{ownerState:t}=e;return(0,o.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},k(t))})),_=i.forwardRef((function(e,t){const n=i.useContext(v),c=i.useContext(b),u=(0,s.Z)(n,e),h=(0,d.Z)({props:u,name:"MuiButton"}),{children:p,color:m="primary",component:y="button",className:k,disabled:_=!1,disableElevation:T=!1,disableFocusRipple:O=!1,endIcon:I,focusVisibleClassName:A,fullWidth:P=!1,size:R="medium",startIcon:N,type:D,variant:M="text"}=h,L=(0,r.Z)(h,x),Z=(0,o.Z)({},h,{color:m,component:y,disabled:_,disableElevation:T,disableFocusRipple:O,fullWidth:P,size:R,type:D,variant:M}),j=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=e,c={root:["root",a,"".concat(a).concat((0,f.Z)(t)),"size".concat((0,f.Z)(i)),"".concat(a,"Size").concat((0,f.Z)(i)),"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat((0,f.Z)(i))],endIcon:["endIcon","iconSize".concat((0,f.Z)(i))]},u=(0,l.Z)(c,g,s);return(0,o.Z)({},s,u)})(Z),F=N&&(0,w.jsx)(E,{className:j.startIcon,ownerState:Z,children:N}),z=I&&(0,w.jsx)(C,{className:j.endIcon,ownerState:Z,children:I}),U=c||"";return(0,w.jsxs)(S,(0,o.Z)({ownerState:Z,className:(0,a.Z)(n.className,j.root,k,U),component:y,disabled:_,focu
vendor: 1,875 bytes, line 2
2sRipple:!O,focusVisibleClassName:(0,a.Z)(j.focusVisible,A),ref:t,type:D},L,{classes:j,children:[F,p,z]}))}))},23701:(e,t,n)=>{"use strict";n.d(t,{Z:()=>K});var r=n(87462),o=n(63366),i=n(72791),a=n(63733),s=n(94419),l=n(66934),c=n(31402),u=n(42071),d=n(89683),h=n(68221),f=n(30168),p=n(97326),m=n(94578),g=n(95545);function y(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function v(e,t,n){return null!=n[t]?n[t]:e.props[t]}function b(e,t,n){var r=y(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(a){var s=o[a];if((0,i.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,i.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,i.isValidElement)(u)&&(o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:v(s,"exit",e),enter:v(s,"enter",e)})):o[a]=(0,i.cloneElement)(s,{in:!1}):o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:v(s,"exit",e),enter:v(s,"enter",e)})}})),o}var w=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},x=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,p.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,m.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;
2return{children:t.firstRender?(n=e,r=a,y(n.children,(function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:v(e,"appear",n),enter:v(e,"enter",n),exit:v(e,"exit",n)})}))):b(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=y(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,r.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,o.Z)(e,["component","childFactory"]),a=this.state.contextValue,s=w(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.createElement(g.Z.Provider,{value:a},s):i.createElement(g.Z.Provider,{value:a},i.createElement(t,r,s))},t}(i.Component);x.propTypes={},x.defaultProps={component:"div",childFactory:function(e){return e}};const k=x;var S=n(52554),E=n(80184);const C=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:l,in:c,onExited:u,timeout:d}=e,[h,f]=i.useState(!1),p=(0,a.Z)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:l,height:l,top:-l/2+s,left:-l/2+o},g=(0,a.Z)(n.child,h&&n.childLeaving,r&&n.childPulsate);return c||h||f(!0),i.useEffect((()=>{if(!c&&null!=u){const e=setTimeout(u,d);return()=>{clearTimeout(e)}}}),[u,c,d]),(0,E.jsx)("span",{className:p,style:m,children:(0,E.jsx)("span",{className:g})})};var _=n(75878);const T=(0,_.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);var O,I,A,P;const R=["center","classes","className"];let N,D,M,L;const Z=(0,S.F4)(N||(N=O||(O=(0,f.Z)(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])))),j=(0,S.F4)(D||(D=I||(I=(0,f.Z)(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"])))),F=(0,S.F4)(M||(M=A||(A=(0,f.Z)(["\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n"])))),z=(0,l.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),U=(0,l.ZP)(C,{name:"MuiTouchRipple",slot:"Ripple"})(L||(L=P||(P=(0,f.Z)(["\n opacity: 0;\n position: absolute;\n\n &."," {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n &."," {\n animation-duration: ","ms;\n }\n\n & ."," {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & ."," {\n opacity: 0;\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n & ."," {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ",";\n animation-duration: 2500ms;\n animation-timing-function: ",";\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n"]))),T.rippleVisible,Z,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),T.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),T.child,T.childLeaving,j,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),T.childPulsate,F,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),B=i.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:l={},className:u}=n,d=(0,o.Z)(n,R),[h,f]=i.useState([]),p=i.useRef(0),m=i.useRef(null);i.useEffect((()=>{m.current&&(m.current(),m.current=null)}),[h]);const g=i.useRef(!1),y=i.useRef(0),v=i.useRef(null),b=i.useRef(null);i.useEffect((()=>()=>{y.current&&clearTimeout(y.current)}),[]);const w=i.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:i}=e;f((e=>[...e,(0,E.jsx)(U,{classes:{ripple:(0,a.Z)(l.ripple,T.ripple),rippleVisible:(0,a.Z)(l.rippleVisible,T.rippleVisible),ripplePulsate:(0,a.Z)(l.ripplePulsate,T.ripplePulsate),child:(0,a.Z)(l.child,T.child),childLeaving:(0,a.Z)(l.childLeaving,T.childLeaving),childPulsate:(0,a.Z)(l.childPulsate,T.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},p.current)])),p.current+=1,m.current=i}),[l]),x=i.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:r=!1,center:o=s||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&g.current)return void(g.current=!1);"touchstart"===(null==e?void 0:e.type)&&(g.current=!0);const a=i?null:b.current,l=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(o)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2===0&&(d+=1);
vendor: 4,847 bytes, line 2
2else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===v.current&&(v.current=()=>{w({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})},y.current=setTimeout((()=>{v.current&&(v.current(),v.current=null)}),80)):w({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[s,w]),S=i.useCallback((()=>{x({},{pulsate:!0})}),[x]),C=i.useCallback(((e,t)=>{if(clearTimeout(y.current),"touchend"===(null==e?void 0:e.type)&&v.current)return v.current(),v.current=null,void(y.current=setTimeout((()=>{C(e,t)})));v.current=null,f((e=>e.length>0?e.slice(1):e)),m.current=t}),[]);return i.useImperativeHandle(t,(()=>({pulsate:S,start:x,stop:C})),[S,x,C]),(0,E.jsx)(z,(0,r.Z)({className:(0,a.Z)(T.root,l.root,u),ref:b},d,{children:(0,E.jsx)(k,{component:null,exit:!0,children:h})}))}));var V=n(21217);function H(e){return(0,V.Z)("MuiButtonBase",e)}const W=(0,_.Z)("MuiButtonBase",["root","disabled","focusVisible"]),q=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],G=(0,l.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(W.disabled)]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),K=i.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiButtonBase"}),{action:l,centerRipple:f=!1,children:p,className:m,component:g="button",disabled:y=!1,disableRipple:v=!1,disableTouchRipple:b=!1,focusRipple:w=!1,LinkComponent:x="a",onBlur:k,onClick:S,onContextMenu:C,onDragLeave:_,onFocus:T,onFocusVisible:O,onKeyDown:I,onKeyUp:A,onMouseDown:P,onMouseLeave:R,onMouseUp:N,onTouchEnd:D,onTouchMove:M,onTouchStart:L,tabIndex:Z=0,TouchRippleProps:j,touchRippleRef:F,type:z}=n,U=(0,o.Z)(n,q),V=i.useRef(null),W=i.useRef(null),K=(0,u.Z)(W,F),{isFocusVisibleRef:Q,onFocus:Y,onBlur:$,ref:X}=(0,h.Z)(),[J,ee]=i.useState(!1);y&&J&&ee(!1),i.useImperativeHandle(l,(()=>({focusVisible:()=>{ee(!0),V.current.focus()}})),[]);const[te,ne]=i.useState(!1);i.useEffect((()=>{ne(!0)}),[]);const re=te&&!v&&!y;function oe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b;return(0,d.Z)((r=>{t&&t(r);return!n&&W.current&&W.current[e](r),!0}))}i.useEffect((()=>{J&&w&&!v&&te&&W.current.pulsate()}),[v,w,J,te]);const ie=oe("start",P),ae=oe("stop",C),se=oe("stop",_),le=oe("stop",N),ce=oe("stop",(e=>{J&&e.preventDefault(),R&&R(e)})),ue=oe("start",L),de=oe("stop",D),he=oe("stop",M),fe=oe("stop",(e=>{$(e),!1===Q.current&&ee(!1),k&&k(e)}),!1),pe=(0,d.Z)((e=>{V.current||(V.current=e.currentTarget),Y(e),!0===Q.current&&(ee(!0),O&&O(e)),T&&T(e)})),me=()=>{const e=V.current;return g&&"button"!==g&&!("A"===e.tagName&&e.href)},ge=i.useRef(!1),ye=(0,d.Z)((e=>{w&&!ge.current&&J&&W.current&&" "===e.key&&(ge.current=!0,W.current.stop(e,(()=>{W.current.start(e)}))),e.target===e.currentTarget&&me()&&" "===e.key&&e.preventDefault(),I&&I(e),e.target===e.currentTarget&&me()&&"Enter"===e.key&&!y&&(e.preventDefault(),S&&S(e))})),ve=(0,d.Z)((e=>{w&&" "===e.key&&W.current&&J&&!e.defaultPrevented&&(ge.current=!1,W.current.stop(e,(()=>{W.current.pulsate(e)}))),A&&A(e),S&&e.target===e.currentTarget&&me()&&" "===e.key&&!e.defaultPrevented&&S(e)}));let be=g;"button"===be&&(U.href||U.to)&&(be=x);const we={};"button"===be?(we.type=void 0===z?"button":z,we.disabled=y):(U.href||U.to||(we.role="button"),y&&(we["aria-disabled"]=y));const xe=(0,u.Z)(t,X,V);const ke=(0,r.Z)({},n,{centerRipple:f,component:g,disabled:y,disableRipple:v,disableTouchRipple:b,focusRipple:w,tabIndex:Z,focusVisible:J}),Se=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,s.Z)(i,H,o);return n&&r&&(a.root+=" ".concat(r)),a})(ke);return(0,E.jsxs)(G,(0,r.Z)({as:be,className:(0,a.Z)(Se.root,m),ownerState:ke,onBlur:fe,onClick:S,onContextMenu:ae,onFocus:pe,onKeyDown:ye,onKeyUp:ve,onMouseDown:ie,onMouseLeave:ce,onMouseUp:le,onDragLeave:se,onTouchEnd:de,onTouchMove:he,onTouchStart:ue,ref:xe,tabIndex:y?-1:Z,type:z},we,U,{children:[p,re?(0,E.jsx)(B,(0,r.Z)({ref:K,center:f},j)):null]}))}))}
2,13239:(e,t,n)=>{"use strict";n.d(t,{Z:()=>R});var r=n(30168),o=n(63366),i=n(87462),a=n(72791),s=n(63733),l=n(94419),c=n(52554),u=n(14036),d=n(31402),h=n(66934),f=n(75878),p=n(21217);function m(e){return(0,p.Z)("MuiCircularProgress",e)}(0,f.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var g,y,v,b,w=n(80184);const x=["className","color","disableShrink","size","style","thickness","value","variant"];let k,S,E,C;const _=44,T=(0,c.F4)(k||(k=g||(g=(0,r.Z)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),O=(0,c.F4)(S||(S=y||(y=(0,r.Z)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),I=(0,h.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["color".concat((0,u.Z)(n.color))]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,i.Z)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,c.iv)(E||(E=v||(v=(0,r.Z)(["\n animation: "," 1.4s linear infinite;\n "]))),T)})),A=(0,h.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),P=(0,h.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t["circle".concat((0,u.Z)(n.variant))],n.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:n}=e;return(0,i.Z)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,c.iv)(C||(C=b||(b=(0,r.Z)(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),O)})),R=a.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiCircularProgress"}),{className:r,color:a="primary",disableShrink:c=!1,size:h=40,style:f,thickness:p=3.6,value:g=0,variant:y="indeterminate"}=n,v=(0,o.Z)(n,x),b=(0,i.Z)({},n,{color:a,disableShrink:c,size:h,thickness:p,value:g,variant:y}),k=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,"color".concat((0,u.Z)(r))],svg:["svg"],circle:["circle","circle".concat((0,u.Z)(n)),o&&"circleDisableShrink"]};return(0,l.Z)(i,m,t)})(b),S={},E={},C={};if("determinate"===y){const e=2*Math.PI*((_-p)/2);S.strokeDasharray=e.toFixed(3),C["aria-valuenow"]=Math.round(g),S.strokeDashoffset="".concat(((100-g)/100*e).toFixed(3),"px"),E.transform="rotate(-90deg)"}return(0,w.jsx)(I,(0,i.Z)({className:(0,s.Z)(k.root,r),style:(0,i.Z)({width:h,height:h},E,f),ownerState:b,ref:t,role:"progressbar"},C,v,{children:(0,w.jsx)(A,{className:k.svg,ownerState:b,viewBox:"".concat(22," ").concat(22," ").concat(_," ").concat(_),children:(0,w.jsx)(P,{className:k.circle,style:S,ownerState:b,cx:_,cy:_,r:(_-p)/2,fill:"none",strokeWidth:p})})}))}))},89164:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var r=n(63366),o=n(87462),i=n(72791),a=n(63733),s=n(31122),l=n(21217),c=n(94419),u=n(86083),d=n(93457),h=n(85080),f=n(80184);const p=["className","component","disableGutters","fixed","maxWidth","classes"],m=(0,h.Z)(),g=(0,d.Z)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["maxWidth".concat((0,s.Z)(String(n.maxWidth)))],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),y=e=>(0,u.Z)({props:e,name:"MuiContainer",defaultTheme:m});var v=n(14036),b=n(66934),w=n(31402);const x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=g,useThemeProps:n=y,componentName:u="MuiContainer"}=e,d=t((e=>{let{theme:t,ownerState:n}=e;return(0,o.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!n.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}})}),(e=>{let{theme:t,ownerState:n}=e;return n.fixed&&Object.keys(t.breakpoints.values).reduce(((e,n)=>{const r=n,o=t.breakpoints.values[r];return 0!==o&&(e[t.breakpoints.up(r)]={maxWidth:"".concat(o).concat(t.breakpoints.unit)}),e}),{})}),(e=>{let{theme:t,ownerState:n}=e;return(0,o.Z)({},"xs"===n.maxWidth&&{[t.breakpoints.up("xs")]:{maxWidth:Math.max(t.breakpoints.values.xs,444)}},n.maxWidth&&"xs"!==n.maxWidth&&{[t.breakpoints.up(n.maxWidth)]:{maxWidth:"".concat(t.breakpoints.values[n.maxWidth]).concat(t.breakpoints.unit)}})})),h=i.forwardRef((function(e,t){const i=n(e),{className:h,component:m="div",disableGutters:g=!1,fixed:y=!1,maxWidth:v="lg"}=i,b=(0,r.Z)(i,p),w=(0,o.Z)({},i,{component:m,disableGutters:g,fixed:y,maxWidth:v}),x=((e,t)=>{const{classes:n,fixed:r,disableGutters:o,maxWidth:i}=e,a={root:["root",i&&"maxWidth".concat((0,s.Z)(String(i))),r&&"fixed",o&&"disableGutters"]};return(0,c.Z)(a,(e=>(0,l.Z)(t,e)),n)})(w,u);return(0,f.jsx)(d,(0,o.Z)({as:m,ownerState:w,className:(0,a.Z)(x.root,h),ref:t},b))}));return h}({createStyledComponent:(0,b.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["maxWidth".concat((0,v.Z)(String(n.maxWidth)))],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,w.Z)({props:e,name:"MuiContainer"})}),k=x},4708:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>u});var r=n(87462),o=n(72791),i=n(31402),a=n(6199),s=n(80184);const l=(e,t)=>
2(0,r.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),c=e=>(0,r.Z)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});const u=function(e){const t=(0,i.Z)({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:u=!1}=t;return(0,s.jsxs)(o.Fragment,{children:[(0,s.jsx)(a.Z,{styles:e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;const o={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((t=>{let[n,r]=t;var i;o[e.getColorSchemeSelector(n).replace(/\s*&/,"")]={colorScheme:null==(i=r.palette)?void 0:i.mode}}));let i=(0,r.Z)({html:l(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,r.Z)({margin:0},c(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},o);const a=null==(n=e.components)||null==(n=n.MuiCssBaseline)?void 0:n.styleOverrides;return a&&(i=[i,a]),i}(e,u)}),n]})}}
2,5289:(e,t,n)=>{"use strict";n.d(t,{Z:()=>O});var r=n(63366),o=n(87462),i=n(72791),a=n(63733),s=n(94419),l=n(18252),c=n(14036),u=n(19095),d=n(60627),h=n(35527),f=n(31402),p=n(66934),m=n(75878),g=n(21217);function y(e){return(0,g.Z)("MuiDialog",e)}const v=(0,m.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var b=n(85090),w=n(52739),x=n(13967),k=n(80184);const S=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],E=(0,p.ZP)(w.Z,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),C=(0,p.ZP)(u.Z,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),_=(0,p.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t["scroll".concat((0,c.Z)(n.scroll))]]}})((e=>{let{ownerState:t}=e;return(0,o.Z)({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"}})})),T=(0,p.ZP)(h.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t["scrollPaper".concat((0,c.Z)(n.scroll))],t["paperWidth".concat((0,c.Z)(String(n.maxWidth)))],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.Z)({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(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)"),["&.".concat(v.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},n.maxWidth&&"xs"!==n.maxWidth&&{maxWidth:"".concat(t.breakpoints.values[n.maxWidth]).concat(t.breakpoints.unit),["&.".concat(v.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,["&.".concat(v.paperScrollBody)]:{margin:0,maxWidth:"100%"}})})),O=i.forwardRef((function(e,t){const n=(0,f.Z)({props:e,name:"MuiDialog"}),u=(0,x.Z)(),p={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},{"aria-describedby":m,"aria-labelledby":g,BackdropComponent:v,BackdropProps:w,children:O,className:I,disableEscapeKeyDown:A=!1,fullScreen:P=!1,fullWidth:R=!1,maxWidth:N="sm",onBackdropClick:D,onClose:M,open:L,PaperComponent:Z=h.Z,PaperProps:j={},scroll:F="paper",TransitionComponent:z=d.Z,transitionDuration:U=p,TransitionProps:B}=n,V=(0,r.Z)(n,S),H=(0,o.Z)({},n,{disableEscapeKeyDown:A,fullScreen:P,fullWidth:R,maxWidth:N,scroll:F}),W=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container","scroll".concat((0,c.Z)(n))],paper:["paper","paperScroll".concat((0,c.Z)(n)),"paperWidth".concat((0,c.Z)(String(r))),o&&"paperFullWidth",i&&"paperFullScreen"]};return(0,s.Z)(a,y,t)})(H),q=i.useRef(),G=(0,l.Z)(g),K=i.useMemo((()=>({titleId:G})),[G]);return(0,k.jsx)(C,(0,o.Z)({className:(0,a.Z)(W.root,I),closeAfterTransition:!0,components:{Backdrop:E},componentsProps:{backdrop:(0,o.Z)({transitionDuration:U,as:v},w)},disableEscapeKeyDown:A,onClose:M,open:L,ref:t,onClick:e=>{q.current&&(q.current=null,D&&D(e),M&&M(e,"backdropClick"))},ownerState:H},V,{children:(0,k.jsx)(z,(0,o.Z)({appear:!0,in:L,timeout:U,role:"presentation"},B,{children:(0,k.jsx)(_,{className:(0,a.Z)(W.container),onMouseDown:e=>{q.current=e.target===e.currentTarget},ownerState:H,children:(0,k.jsx)(T,(0,o.Z)({as:Z,elevation:24,role:"dialog","aria-describedby":m,"aria-labelledby":G},j,{className:(0,a.Z)(W.paper,j.className),ownerState:H,children:(0,k.jsx)(b.Z.Provider,{value:K,children:O})}))})}))}))}))},85090:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(72791).createContext({})}
2,97123:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(63366),o=n(87462),i=n(72791),a=n(63733),s=n(94419),l=n(66934),c=n(31402),u=n(75878),d=n(21217);function h(e){return(0,d.Z)("MuiDialogActions",e)}(0,u.Z)("MuiDialogActions",["root","spacing"]);var f=n(80184);const p=["className","disableSpacing"],m=(0,l.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,o.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),g=i.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiDialogActions"}),{className:i,disableSpacing:l=!1}=n,u=(0,r.Z)(n,p),d=(0,o.Z)({},n,{disableSpacing:l}),g=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,s.Z)(r,h,t)})(d);return(0,f.jsx)(m,(0,o.Z)({className:(0,a.Z)(g.root,i),ownerState:d,ref:t},u))}))},39157:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(63366),o=n(87462),i=n(72791),a=n(63733),s=n(94419),l=n(66934),c=n(31402),u=n(75878),d=n(21217);function h(e){return(0,d.Z)("MuiDialogContent",e)}(0,u.Z)("MuiDialogContent",["root","dividers"]);var f=n(17673),p=n(80184);const m=["className","dividers"],g=(0,l.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},n.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:{[".".concat(f.Z.root," + &")]:{paddingTop:0}})})),y=i.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiDialogContent"}),{className:i,dividers:l=!1}=n,u=(0,r.Z)(n,m),d=(0,o.Z)({},n,{dividers:l}),f=(e=>{const{classes:t,dividers:n}=e,r={root:["root",n&&"dividers"]};return(0,s.Z)(r,h,t)})(d);return(0,p.jsx)(g,(0,o.Z)({className:(0,a.Z)(f.root,i),ownerState:d,ref:t},u))}))},65661:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(87462),o=n(63366),i=n(72791),a=n(63733),s=n(94419),l=n(20890),c=n(66934),u=n(31402),d=n(17673),h=n(85090),f=n(80184);const p=["className","id"],m=(0,c.ZP)(l.Z,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),g=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiDialogTitle"}),{className:l,id:c}=n,g=(0,o.Z)(n,p),y=n,v=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"]},d.a,t)})(y),{titleId:b=c}=i.useContext(h.Z);return(0,f.jsx)(m,(0,r.Z)({component:"h2",className:(0,a.Z)(v.root,l),ownerState:y,ref:t,variant:"h6",id:null!=c?c:b},g))}))},17673:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a,a:()=>i});var r=n(75878),o=n(21217);function i(e){return(0,o.Z)("MuiDialogTitle",e)}const a=(0,r.Z)("MuiDialogTitle",["root"])},94721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(63366),o=n(87462),i=n(72791),a=n(63733),s=n(94419),l=n(12065),c=n(66934),u=n(31402),d=n(90133),h=n(80184);const f=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],p=(0,c.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},n.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},n.light&&{borderColor:t.vars?"rgba(".concat(t.vars.palette.dividerChannel," / 0.08)"):(0,l.Fq)(t.palette.divider,.08)},"inset"===n.variant&&{marginLeft:72},"middle"===n.variant&&"horizontal"===n.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===n.variant&&"vertical"===n.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===n.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},n.flexItem&&{alignSelf:"stretch",height:"auto"})}),(e=>{let{ownerState:t}=e;return(0,o.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,o.Z)({},n.children&&"vertical"!==n.orientation&&{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider)}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,o.Z)({},n.children&&"vertical"===n.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((t.vars||t).palette.divider)}})}),(e=>{let{ownerState:t}=e;return(0,o.Z)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),m=(0,c.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.Z)({display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)")},"vertical"===n.orientation&&{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")})})),g=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiDivider"}),{absolute:i=!1,children:l,className:c,component:g=(l?"div":"hr"),flexItem:y=!1,light:v=!1,orientation:b="horizontal",role:w=("hr"!==g?"separator":void 0),textAlign:x="center",variant:k="fullWidth"}=n,S=(0,r.Z)(n,f),E=(0,o.Z)({},n,{absolute:i,component:g,flexItem:y,light:v,orientation:b,role:w,textAlign:x,variant:k}),C=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:c}=e,u={root:["root",t&&"absolute",c,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,s.Z)(u,d.V,r)})(E);return(0,h.jsx)(p,(0,o.Z)({as:g,className:(0,a.Z)(C.root,c),role:w,ref:t,ownerState:E},S,{children:l?(0,h.jsx)(m,{className:C.wrapper,ownerState:E,children:l}):null}))}));g.muiSkipListHighlight=!0;const y=g}
2,90133:(e,t,n)=>{"use strict";n.d(t,{V:()=>i,Z:()=>a});var r=n(75878),o=n(21217);function i(e){return(0,o.Z)("MuiDivider",e)}const a=(0,r.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"])},60627:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(87462),o=n(63366),i=n(72791),a=n(26752),s=n(13967),l=n(4999),c=n(42071),u=n(80184);const d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],h={entering:{opacity:1},entered:{opacity:1}},f=i.forwardRef((function(e,t){const n=(0,s.Z)(),f={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:p,appear:m=!0,children:g,easing:y,in:v,onEnter:b,onEntered:w,onEntering:x,onExit:k,onExited:S,onExiting:E,style:C,timeout:_=f,TransitionComponent:T=a.ZP}=e,O=(0,o.Z)(e,d),I=i.useRef(null),A=(0,c.Z)(I,g.ref,t),P=e=>t=>{if(e){const n=I.current;void 0===t?e(n):e(n,t)}},R=P(x),N=P(((e,t)=>{(0,l.n)(e);const r=(0,l.C)({style:C,timeout:_,easing:y},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),b&&b(e,t)})),D=P(w),M=P(E),L=P((e=>{const t=(0,l.C)({style:C,timeout:_,easing:y},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),k&&k(e)})),Z=P(S);return(0,u.jsx)(T,(0,r.Z)({appear:m,in:v,nodeRef:I,onEnter:N,onEntered:D,onEntering:R,onExit:L,onExited:Z,onExiting:M,addEndListener:e=>{p&&p(I.current,e)},timeout:_},O,{children:(e,t)=>i.cloneElement(g,(0,r.Z)({style:(0,r.Z)({opacity:0,visibility:"exited"!==e||v?void 0:"hidden"},h[e],C,g.props.style),ref:A},t))}))}))},14527:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(63366),o=n(87462),i=n(72791),a=n(82466),s=n(94419),l=n(4834),c=n(66934),u=n(31402),d=n(75878),h=n(21217),f=n(55891);function p(e){return(0,h.Z)("MuiFilledInput",e)}const m=(0,o.Z)({},f.Z,(0,d.Z)("MuiFilledInput",["root","underline","input"]));var g=n(80184);const y=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],v=(0,c.ZP)(l.Ej,{shouldForwardProp:e=>(0,c.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...(0,l.Gx)(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;var r;const i="light"===t.palette.mode,a=i?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=i?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=i?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",c=i?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,o.Z)({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s}},["&.".concat(m.focused)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s},["&.".concat(m.disabled)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:c}},!n.disableUnderline&&{"&:after":{borderBottom:"2px solid ".concat(null==(r=(t.vars||t).palette[n.color||"primary"])?void 0:r.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(m.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(m.error)]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&:before":{borderBottom:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")"):a),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(m.disabled,", .").concat(m.error,"):before")]:{borderBottom:"1px solid ".concat((t.vars||t).palette.text.primary)},["&.".concat(m.disabled,":before")]:{borderBottomStyle:"dotted"}},n.startAdornment&&{paddingLeft:12},n.endAdornment&&{paddingRight:12},n.multiline&&(0,o.Z)({padding:"25px 12px 8px"},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9}))})),b=(0,c.ZP)(l.rA,{name:"MuiFilledInput",slot:"Input",overridesResolver:l._o}
2)((e=>{let{theme:t,ownerState:n}=e;return(0,o.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9},n.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})})),w=i.forwardRef((function(e,t){var n,i,c,d;const h=(0,u.Z)({props:e,name:"MuiFilledInput"}),{components:f={},componentsProps:m,fullWidth:w=!1,inputComponent:x="input",multiline:k=!1,slotProps:S,slots:E={},type:C="text"}=h,_=(0,r.Z)(h,y),T=(0,o.Z)({},h,{fullWidth:w,inputComponent:x,multiline:k,type:C}),O=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},i=(0,s.Z)(r,p,t);return(0,o.Z)({},t,i)})(h),I={root:{ownerState:T},input:{ownerState:T}},A=(null!=S?S:m)?(0,a.Z)(null!=S?S:m,I):I,P=null!=(n=null!=(i=E.root)?i:f.Root)?n:v,R=null!=(c=null!=(d=E.input)?d:f.Input)?c:b;return(0,g.jsx)(l.ZP,(0,o.Z)({slots:{root:P,input:R},componentsProps:A,fullWidth:w,inputComponent:x,multiline:k,ref:t,type:C},_,{classes:O}))}));w.muiName="Input";const x=w},68096:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r=n(63366),o=n(87462),i=n(72791),a=n(63733),s=n(94419),l=n(31402),c=n(66934),u=n(35470),d=n(14036),h=n(19103),f=n(93840),p=n(75878),m=n(21217);function g(e){return(0,m.Z)("MuiFormControl",e)}(0,p.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var y=n(80184);const v=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],b=(0,c.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,o.Z)({},t.root,t["margin".concat((0,d.Z)(n.margin))],n.fullWidth&&t.fullWidth)}})((e=>{let{ownerState:t}=e;return(0,o.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),w=i.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiFormControl"}),{children:c,className:p,color:m="primary",component:w="div",disabled:x=!1,error:k=!1,focused:S,fullWidth:E=!1,hiddenLabel:C=!1,margin:_="none",required:T=!1,size:O="medium",variant:I="outlined"}=n,A=(0,r.Z)(n,v),P=(0,o.Z)({},n,{color:m,component:w,disabled:x,error:k,fullWidth:E,hiddenLabel:C,margin:_,required:T,size:O,variant:I}),R=(e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root","none"!==n&&"margin".concat((0,d.Z)(n)),r&&"fullWidth"]};return(0,s.Z)(o,g,t)})(P),[N,D]=i.useState((()=>{let e=!1;return c&&i.Children.forEach(c,(t=>{if(!(0,h.Z)(t,["Input","Select"]))return;const n=(0,h.Z)(t,["Select"])?t.props.input:t;n&&(0,u.B7)(n.props)&&(e=!0)})),e})),[M,L]=i.useState((()=>{let e=!1;return c&&i.Children.forEach(c,(t=>{(0,h.Z)(t,["Input","Select"])&&((0,u.vd)(t.props,!0)||(0,u.vd)(t.props.inputProps,!0))&&(e=!0)})),e})),[Z,j]=i.useState(!1);x&&Z&&j(!1);const F=void 0===S||x?Z:S;let z;const U=i.useMemo((()=>({adornedStart:N,setAdornedStart:D,color:m,disabled:x,error:k,filled:M,focused:F,fullWidth:E,hiddenLabel:C,size:O,onBlur:()=>{j(!1)},onEmpty:()=>{L(!1)},onFilled:()=>{L(!0)},onFocus:()=>{j(!0)},registerEffect:z,required:T,variant:I})),[N,m,x,k,M,F,E,C,z,T,O,I]);return(0,y.jsx)(f.Z.Provider,{value:U,children:(0,y.jsx)(b,(0,o.Z)({as:w,ownerState:P,className:(0,a.Z)(R.root,p),ref:t},A,{children:c}))})}))},93840:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(72791).createContext(void 0)},76147:(e,t,n)=>{"use strict";function r(e){let{props:t,states:n,muiFormControl:r}=e;return n.reduce(((e,n)=>(e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e)),{})}n.d(t,{Z:()=>r})},52930:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(72791),o=n(93840);function i(){return r.useContext(o.Z)}}
2,6199:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(87462),o=(n(72791),n(52554)),i=n(80184);function a(e){const{styles:t,defaultTheme:n={}}=e,r="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)(o.xB,{styles:r})}var s=n(30418);const l=function(e){let{styles:t,themeId:n,defaultTheme:r={}}=e;const o=(0,s.Z)(r),l="function"===typeof t?t(n&&o[n]||o):t;return(0,i.jsx)(a,{styles:l})};var c=n(36482),u=n(988);const d=function(e){return(0,i.jsx)(l,(0,r.Z)({},e,{defaultTheme:c.Z,themeId:u.Z}))}},61889:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>_});var r=n(63366),o=n(87462),i=n(72791),a=n(63733),s=n(51184),l=n(78519),c=n(94419),u=n(66934),d=n(31402),h=n(13967);const f=i.createContext();var p=n(75878),m=n(21217);function g(e){return(0,m.Z)("MuiGrid",e)}const y=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],v=(0,p.Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>"spacing-xs-".concat(e))),...["column-reverse","column","row-reverse","row"].map((e=>"direction-xs-".concat(e))),...["nowrap","wrap-reverse","wrap"].map((e=>"wrap-xs-".concat(e))),...y.map((e=>"grid-xs-".concat(e))),...y.map((e=>"grid-sm-".concat(e))),...y.map((e=>"grid-md-".concat(e))),...y.map((e=>"grid-lg-".concat(e))),...y.map((e=>"grid-xl-".concat(e)))]);var b=n(80184);const w=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function x(e){const t=parseFloat(e);return"".concat(t).concat(String(e).replace(String(t),"")||"px")}function k(e){let{breakpoints:t,values:n}=e,r="";Object.keys(n).forEach((e=>{""===r&&0!==n[e]&&(r=e)}));const o=Object.keys(t).sort(((e,n)=>t[e]-t[n]));return o.slice(0,o.indexOf(r))}const S=(0,u.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[n["spacing-xs-".concat(String(e))]];const r=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&r.push(n["spacing-".concat(t,"-").concat(String(o))])})),r}(a,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t["grid-".concat(e,"-").concat(String(r))])})),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...u,"row"!==o&&t["direction-xs-".concat(String(o))],"wrap"!==s&&t["wrap-xs-".concat(String(s))],...d]}})((e=>{let{ownerState:t}=e;return(0,o.Z)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){let{theme:t,ownerState:n}=e;const r=(0,s.P$)({values:n.direction,breakpoints:t.breakpoints.values});return(0,s.k9)({theme:t},r,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > .".concat(v.item)]={maxWidth:"none"}),t}))}),(function(e){let{theme:t,ownerState:n}=e;const{container:r,rowSpacing:o}=n;let i={};if(r&&0!==o){const e=(0,s.P$)({values:o,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=k({breakpoints:t.breakpoints.values,values:e})),i=(0,s.k9)({theme:t},e,((e,r)=>{var o;const i=t.spacing(e);return"0px"!==i?{marginTop:"-".concat(x(i)),["& > .".concat(v.item)]:{paddingTop:x(i)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,["& > .".concat(v.item)]:{paddingTop:0}}}))}return i}),(function(e){let{theme:t,ownerState:n}=e;const{container:r,columnSpacing:o}=n;let i={};if(r&&0!==o){const e=(0,s.P$)({values:o,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=k({breakpoints:t.breakpoints.values,values:e})),i=(0,s.k9)({theme:t},e,((e,r)=>{var o;const i=t.spacing(e);return"0px"!==i?{width:"calc(100% + ".concat(x(i),")"),marginLeft:"-".concat(x(i)),["& > .".concat(v.item)]:{paddingLeft:x(i)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,["& > .".concat(v.item)]:{paddingLeft:0}}}))}return i}),(function(e){let t,{theme:n,ownerState:r}=e;return n.breakpoints.keys.reduce(((e,i)=>{let a={};if(r[i]&&(t=r[i]),!t)return e;if(!0===t)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const l=(0,s.P$)({values:r.columns,breakpoints:n.breakpoints.values}),c="object"===typeof l?l[i]:l;if(void 0===c||null===c)return e;const u="".concat(Math.round(t/c*1e8)/1e6,"%");let d={};if(r.container&&r.item&&0!==r.columnSpacing){const e=n.spacing(r.columnSpacing);if("0px"!==e){const t="calc(".concat(u," + ").concat(x(e),")");d={flexBasis:t,maxWidth:t}}}a=(0,o.Z)({flexBasis:u,flexGrow:0,maxWidth:u},d)}return 0===n.breakpoints.values[i]?Object.assign(e,a):e[n.breakpoints.up(i)]=a,e}),{})}));const E=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=function(e,t){if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return["spacing-xs-".concat(String(e))];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e="spacing-".concat(t,"-").concat(String(r));n.push(e)}})),n}(i,l));const d=[];l.forEach((t=>{const n=e[t];n&&d.push("grid-".concat(t,"-").concat(String(n)))}));const h={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...u,"row"!==r&&"direction-xs-".concat(String(r)),"wrap"!==a&&"wrap-xs-".concat(String(a)),...d]};return(0,c.Z)(h,g,t)},C=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiGrid"}),{breakpoints:s}=(0,h.Z)(),c=(0,l.Z)(n),{className:u,columns:p,columnSpacing:m,component:g="div",container:y=!1,direction:v="row",item:x=!1,rowSpacing:k,spacing:C=0,wrap:_="wrap",zeroMinWidth:T=!1}=c,O=(0,r.Z)(c,w),I=k||C,A=m||C,P=i.useContext(f),R=y?p||12:P,N={},D=(0,o.Z)({},O);s.keys.forEach((e=>{null!=O[e]&&(N[e]=O[e],delete D[e])}));const M=(0,o.Z)({},c,{columns:R,container:y,direction:v,item:x,rowSpacing:I,columnSpacing:A,wrap:_,zeroMinWidth:T,spacing:C},N,{breakpoints:s.keys}),L=E(M);return(0,b.jsx)(f.Provider,{value:R,children:(0,b.jsx)(S,(0,o.Z)({ownerState:M,className:(0,a.Z)(L.root,u),as:g,ref:t},D))})}));const _=C},13208:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});
2var r=n(87462),o=n(63366),i=n(72791),a=n(26752),s=n(13967),l=n(4999),c=n(42071),u=n(80184);const d=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function h(e){return"scale(".concat(e,", ").concat(e**2,")")}const f={entering:{opacity:1,transform:h(1)},entered:{opacity:1,transform:"none"}},p="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),m=i.forwardRef((function(e,t){const{addEndListener:n,appear:m=!0,children:g,easing:y,in:v,onEnter:b,onEntered:w,onEntering:x,onExit:k,onExited:S,onExiting:E,style:C,timeout:_="auto",TransitionComponent:T=a.ZP}=e,O=(0,o.Z)(e,d),I=i.useRef(),A=i.useRef(),P=(0,s.Z)(),R=i.useRef(null),N=(0,c.Z)(R,g.ref,t),D=e=>t=>{if(e){const n=R.current;void 0===t?e(n):e(n,t)}},M=D(x),L=D(((e,t)=>{(0,l.n)(e);const{duration:n,delay:r,easing:o}=(0,l.C)({style:C,timeout:_,easing:y},{mode:"enter"});let i;"auto"===_?(i=P.transitions.getAutoHeightDuration(e.clientHeight),A.current=i):i=n,e.style.transition=[P.transitions.create("opacity",{duration:i,delay:r}),P.transitions.create("transform",{duration:p?i:.666*i,delay:r,easing:o})].join(","),b&&b(e,t)})),Z=D(w),j=D(E),F=D((e=>{const{duration:t,delay:n,easing:r}=(0,l.C)({style:C,timeout:_,easing:y},{mode:"exit"});let o;"auto"===_?(o=P.transitions.getAutoHeightDuration(e.clientHeight),A.current=o):o=t,e.style.transition=[P.transitions.create("opacity",{duration:o,delay:n}),P.transitions.create("transform",{duration:p?o:.666*o,delay:p?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=h(.75),k&&k(e)})),z=D(S);return i.useEffect((()=>()=>{clearTimeout(I.current)}),[]),(0,u.jsx)(T,(0,r.Z)({appear:m,in:v,nodeRef:R,onEnter:L,onEntered:Z,onEntering:M,onExit:F,onExited:z,onExiting:j,addEndListener:e=>{"auto"===_&&(I.current=setTimeout(e,A.current||0)),n&&n(R.current,e)},timeout:"auto"===_?null:_},O,{children:(e,t)=>i.cloneElement(g,(0,r.Z)({style:(0,r.Z)({opacity:0,transform:h(.75),visibility:"exited"!==e||v?void 0:"hidden"},f[e],C,g.props.style),ref:N},t))}))}));m.muiSupportAuto=!0;const g=m},13400:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r=n(63366),o=n(87462),i=n(72791),a=n(63733),s=n(94419),l=n(12065),c=n(66934),u=n(31402),d=n(23701),h=n(14036),f=n(75878),p=n(21217);function m(e){return(0,p.Z)("MuiIconButton",e)}const g=(0,f.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);var y=n(80184);const v=["edge","children","className","color","disabled","disableFocusRipple","size"],b=(0,c.ZP)(d.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t["color".concat((0,h.Z)(n.color))],n.edge&&t["edge".concat((0,h.Z)(n.edge))],t["size".concat((0,h.Z)(n.size))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.Z)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(e=>{let{theme:t,ownerState:n}=e;var r;const i=null==(r=(t.vars||t).palette)?void 0:r[n.color];return(0,o.Z)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,o.Z)({color:null==i?void 0:i.main},!n.disableRipple&&{"&:hover":(0,o.Z)({},i&&{backgroundColor:t.vars?"rgba(".concat(i.mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,l.Fq)(i.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===n.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{["&.".concat(g.disabled)]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})})),w=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiIconButton"}),{edge:i=!1,children:l,className:c,color:d="default",disabled:f=!1,disableFocusRipple:p=!1,size:g="medium"}=n,w=(0,r.Z)(n,v),x=(0,o.Z)({},n,{edge:i,color:d,disabled:f,disableFocusRipple:p,size:g}),k=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled","default"!==r&&"color".concat((0,h.Z)(r)),o&&"edge".concat((0,h.Z)(o)),"size".concat((0,h.Z)(i))]};return(0,s.Z)(a,m,t)})(x);return(0,y.jsx)(b,(0,o.Z)({className:(0,a.Z)(k.root,c),centerRipple:!0,focusRipple:!p,disabled:f,ref:t,ownerState:x},w,{children:l}))}))},37078:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(63366),o=n(87462),i=n(72791),a=n(94419),s=n(82466),l=n(4834),c=n(66934),u=n(31402),d=n(75878),h=n(21217),f=n(55891);function p(e){return(0,h.Z)("MuiInput",e)}const m=(0,o.Z)({},f.Z,(0,d.Z)("MuiInput",["root","underline","input"]));var g=n(80184);const y=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","
2slots","type"],v=(0,c.ZP)(l.Ej,{shouldForwardProp:e=>(0,c.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...(0,l.Gx)(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;let r="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r="rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")")),(0,o.Z)({position:"relative"},n.formControl&&{"label + &":{marginTop:16}},!n.disableUnderline&&{"&:after":{borderBottom:"2px solid ".concat((t.vars||t).palette[n.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(m.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(m.error)]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&:before":{borderBottom:"1px solid ".concat(r),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(m.disabled,", .").concat(m.error,"):before")]:{borderBottom:"2px solid ".concat((t.vars||t).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(r)}},["&.".concat(m.disabled,":before")]:{borderBottomStyle:"dotted"}})})),b=(0,c.ZP)(l.rA,{name:"MuiInput",slot:"Input",overridesResolver:l._o})({}),w=i.forwardRef((function(e,t){var n,i,c,d;const h=(0,u.Z)({props:e,name:"MuiInput"}),{disableUnderline:f,components:m={},componentsProps:w,fullWidth:x=!1,inputComponent:k="input",multiline:S=!1,slotProps:E,slots:C={},type:_="text"}=h,T=(0,r.Z)(h,y),O=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},i=(0,a.Z)(r,p,t);return(0,o.Z)({},t,i)})(h),I={root:{ownerState:{disableUnderline:f}}},A=(null!=E?E:w)?(0,s.Z)(null!=E?E:w,I):I,P=null!=(n=null!=(i=C.root)?i:m.Root)?n:v,R=null!=(c=null!=(d=C.input)?d:m.Input)?c:b;return(0,g.jsx)(l.ZP,(0,o.Z)({slots:{root:P,input:R},slotProps:A,fullWidth:x,inputComponent:k,multiline:S,ref:t,type:_},T,{classes:O}))}));w.muiName="Input";const x=w},4834:(e,t,n)=>{"use strict";n.d(t,{rA:()=>L,Ej:()=>M,ZP:()=>j,_o:()=>D,Gx:()=>N});var r=n(63366),o=n(87462),i=n(46189),a=n(72791),s=n(63733),l=n(94419),c=n(54164),u=n(6117),d=n(65202),h=n(62876),f=n(82254),p=n(80184);const m=["onChange","maxRows","minRows","style","value"];function g(e){return parseInt(e,10)||0}const y={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function v(e){return void 0===e||null===e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const b=a.forwardRef((function(e,t){const{onChange:n,maxRows:i,minRows:s=1,style:l,value:b}=e,w=(0,r.Z)(e,m),{current:x}=a.useRef(null!=b),k=a.useRef(null),S=(0,u.Z)(t,k),E=a.useRef(null),C=a.useRef(0),[_,T]=a.useState({outerHeightStyle:0}),O=a.useCallback((()=>{const t=k.current,n=(0,d.Z)(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const r=E.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const o=n.boxSizing,a=g(n.paddingBottom)+g(n.paddingTop),l=g(n.borderBottomWidth)+g(n.borderTopWidth),c=r.scrollHeight;r.value="x";const u=r.scrollHeight;let h=c;s&&(h=Math.max(Number(s)*u,h)),i&&(h=Math.min(Number(i)*u,h)),h=Math.max(h,u);return{outerHeightStyle:h+("border-box"===o?a+l:0),overflow:Math.abs(h-c)<=1}}),[i,s,e.placeholder]),I=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return C.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(C.current+=1,{overflow:r,outerHeightStyle:n}):e},A=a.useCallback((()=>{const e=O();v(e)||T((t=>I(t,e)))}),[O]);(0,h.Z)((()=>{const e=()=>{C.current=0,(()=>{const e=O();v(e)||c.flushSync((()=>{T((t=>I(t,e)))}))})()};let t;const n=(0,f.Z)(e),r=k.current,o=(0,d.Z)(r);let i;return o.addEventListener("resize",n),"undefined"!==typeof ResizeObserver&&(i=new ResizeObserver(e),i.observe(r)),()=>{n.clear(),cancelAnimationFrame(t),o.removeEventListener("resize",n),i&&i.disconnect()}}),[O]),(0,h.Z)((()=>{A()})),a.useEffect((()=>{C.current=0}),[b]);return(0,p.jsxs)(a.Fragment,{children:[(0,p.jsx)("textarea",(0,o.Z)({value:b,onChange:e=>{C.current=0,x||A(),n&&n(e)}
2,ref:S,rows:s,style:(0,o.Z)({height:_.outerHeightStyle,overflow:_.overflow?"hidden":void 0},l)},w)),(0,p.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:E,tabIndex:-1,style:(0,o.Z)({},y,l,{paddingTop:0,paddingBottom:0})})]})}));var w=n(20627),x=n(76147),k=n(93840),S=n(52930),E=n(66934),C=n(31402),_=n(14036),T=n(42071),O=n(40162),I=n(6199),A=n(35470),P=n(55891);const R=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],N=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat((0,_.Z)(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},D=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},M=(0,E.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:N})((e=>{let{theme:t,ownerState:n}=e;return(0,o.Z)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&.".concat(P.Z.disabled)]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},n.multiline&&(0,o.Z)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),L=(0,E.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:D})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode,i=(0,o.Z)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),a={opacity:"0 !important"},s=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return(0,o.Z)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},["label[data-shrink=false] + .".concat(P.Z.formControl," &")]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},["&.".concat(P.Z.disabled)]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})})),Z=(0,p.jsx)(I.Z,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),j=a.forwardRef((function(e,t){var n;const c=(0,C.Z)({props:e,name:"MuiInputBase"}),{"aria-describedby":u,autoComplete:d,autoFocus:h,className:f,components:m={},componentsProps:g={},defaultValue:y,disabled:v,disableInjectingGlobalStyles:E,endAdornment:I,fullWidth:N=!1,id:D,inputComponent:j="input",inputProps:F={},inputRef:z,maxRows:U,minRows:B,multiline:V=!1,name:H,onBlur:W,onChange:q,onClick:G,onFocus:K,onKeyDown:Q,onKeyUp:Y,placeholder:$,readOnly:X,renderSuffix:J,rows:ee,slotProps:te={},slots:ne={},startAdornment:re,type:oe="text",value:ie}=c,ae=(0,r.Z)(c,R),se=null!=F.value?F.value:ie,{current:le}=a.useRef(null!=se),ce=a.useRef(),ue=a.useCallback((e=>{0}
2),[]),de=(0,T.Z)(ce,z,F.ref,ue),[he,fe]=a.useState(!1),pe=(0,S.Z)();const me=(0,x.Z)({props:c,muiFormControl:pe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});me.focused=pe?pe.focused:he,a.useEffect((()=>{!pe&&v&&he&&(fe(!1),W&&W())}),[pe,v,he,W]);const ge=pe&&pe.onFilled,ye=pe&&pe.onEmpty,ve=a.useCallback((e=>{(0,A.vd)(e)?ge&&ge():ye&&ye()}),[ge,ye]);(0,O.Z)((()=>{le&&ve({value:se})}),[se,ve,le]);a.useEffect((()=>{ve(ce.current)}),[]);let be=j,we=F;V&&"input"===be&&(we=ee?(0,o.Z)({type:void 0,minRows:ee,maxRows:ee},we):(0,o.Z)({type:void 0,maxRows:U,minRows:B},we),be=b);a.useEffect((()=>{pe&&pe.setAdornedStart(Boolean(re))}),[pe,re]);const xe=(0,o.Z)({},c,{color:me.color||"primary",disabled:me.disabled,endAdornment:I,error:me.error,focused:me.focused,formControl:pe,fullWidth:N,hiddenLabel:me.hiddenLabel,multiline:V,size:me.size,startAdornment:re,type:oe}),ke=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:h,size:f,startAdornment:p,type:m}=e,g={root:["root","color".concat((0,_.Z)(n)),r&&"disabled",o&&"error",c&&"fullWidth",a&&"focused",s&&"formControl",f&&"medium"!==f&&"size".concat((0,_.Z)(f)),d&&"multiline",p&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",d&&"inputMultiline","small"===f&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return(0,l.Z)(g,P.u,t)})(xe),Se=ne.root||m.Root||M,Ee=te.root||g.root||{},Ce=ne.input||m.Input||L;return we=(0,o.Z)({},we,null!=(n=te.input)?n:g.input),(0,p.jsxs)(a.Fragment,{children:[!E&&Z,(0,p.jsxs)(Se,(0,o.Z)({},Ee,!(0,w.X)(Se)&&{ownerState:(0,o.Z)({},xe,Ee.ownerState)},{ref:t,onClick:e=>{ce.current&&e.currentTarget===e.target&&ce.current.focus(),G&&G(e)}},ae,{className:(0,s.Z)(ke.root,Ee.className,f,X&&"MuiInputBase-readOnly"),children:[re,(0,p.jsx)(k.Z.Provider,{value:null,children:(0,p.jsx)(Ce,(0,o.Z)({ownerState:xe,"aria-invalid":me.error,"aria-describedby":u,autoComplete:d,autoFocus:h,defaultValue:y,disabled:me.disabled,id:D,onAnimationStart:e=>{ve("mui-auto-fill-cancel"===e.animationName?ce.current:{value:"x"})},name:H,placeholder:$,readOnly:X,required:me.required,rows:ee,value:se,onKeyDown:Q,onKeyUp:Y,type:oe},we,!(0,w.X)(Ce)&&{as:be,ownerState:(0,o.Z)({},xe,we.ownerState)},{ref:de,className:(0,s.Z)(ke.input,we.className,X&&"MuiInputBase-readOnly"),onBlur:e=>{W&&W(e),F.onBlur&&F.onBlur(e),pe&&pe.onBlur?pe.onBlur(e):fe(!1)},onChange:function(e){if(!le){const t=e.target||ce.current;if(null==t)throw new Error((0,i.Z)(1));ve({value:t.value})}for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];F.onChange&&F.onChange(e,...n),q&&q(e,...n)},onFocus:e=>{me.disabled?e.stopPropagation():(K&&K(e),F.onFocus&&F.onFocus(e),pe&&pe.onFocus?pe.onFocus(e):fe(!0))}}))}),I,J?J((0,o.Z)({},me,{startAdornment:re})):null]}))]})}))},55891:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a,u:()=>i});var r=n(75878),o=n(21217);function i(e){return(0,o.Z)("MuiInputBase",e)}const a=(0,r.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"])},35470:(e,t,n)=>{"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function o(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}n.d(t,{B7:()=>i,vd:()=>o})},94925:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var r=n(63366),o=n(87462),i=n(72791),a=n(94419),s=n(63733),l=n(76147),c=n(52930),u=n(14036),d=n(31402),h=n(66934),f=n(75878),p=n(21217);function m(e){return(0,p.Z)("MuiFormLabel",e)}const g=(0,f.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);var y=n(80184);const v=["children","className","color","component","disabled","error","filled","focused","required"],b=(0,h.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,o.Z)({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.Z)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&.".concat(g.focused)]:{color:(t.vars||t).palette[n.color].main},["&.".concat(g.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(g.error)]:{color:(t.vars||t).palette.error.main}})})),w=(0,h.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{["&.".concat(g.error)]:{color:(t.vars||t).palette.error.main}}})),x=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiFormLabel"}),{children:i,className:h,component:f="label"}=n,p=(0,r.Z)(n,v),g=(0,c.Z)(),x=(0,l.Z)({props:n,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),k=(0,o.Z)({},n,{color:x.color||"primary",component:f,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required}),S=(e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:s,required:l}=e,c={root:["root","color".concat((0,u.Z)(n)),o&&"disabled",i&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return(0,a.Z)(c,m,t)})(k);return(0,y.jsxs)(b,(0,o.Z)({as:f,ownerState:k,className:(0,s.Z)(S.root,h),ref:t},p,{children:[i,x.required&&(0,y.jsxs)(w,{ownerState:k,"aria-hidden":!0,
2className:S.asterisk,children:["\u2009","*"]})]}))}));function k(e){return(0,p.Z)("MuiInputLabel",e)}(0,f.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const S=["disableAnimation","margin","shrink","variant","className"],E=(0,h.ZP)(x,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(g.asterisk)]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&(0,o.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&(0,o.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&(0,o.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),C=i.forwardRef((function(e,t){const n=(0,d.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,shrink:h,className:f}=n,p=(0,r.Z)(n,S),m=(0,c.Z)();let g=h;"undefined"===typeof g&&m&&(g=m.filled||m.focused||m.adornedStart);const v=(0,l.Z)({props:n,muiFormControl:m,states:["size","variant","required","focused"]}),b=(0,o.Z)({},n,{disableAnimation:i,formControl:m,shrink:g,size:v.size,variant:v.variant,required:v.required,focused:v.focused}),w=(e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:s,variant:l,required:c}=e,d={root:["root",n&&"formControl",!s&&"animated",i&&"shrink",r&&"normal"!==r&&"size".concat((0,u.Z)(r)),l],asterisk:[c&&"asterisk"]},h=(0,a.Z)(d,k,t);return(0,o.Z)({},t,h)})(b);return(0,y.jsx)(E,(0,o.Z)({"data-shrink":g,ownerState:b,ref:t,className:(0,s.Z)(w.root,f)},p,{classes:w}))}))},50533:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var r=n(63366),o=n(87462),i=n(72791),a=n(63733),s=n(94419),l=n(14036),c=n(66934),u=n(31402),d=n(68221),h=n(42071),f=n(20890),p=n(75878),m=n(21217);function g(e){return(0,m.Z)("MuiLink",e)}const y=(0,p.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var v=n(18529),b=n(12065);const w={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x=e=>{let{theme:t,ownerState:n}=e;const r=(e=>w[e]||e)(n.color),o=(0,v.DW)(t,"palette.".concat(r),!1)||n.color,i=(0,v.DW)(t,"palette.".concat(r,"Channel"));return"vars"in t&&i?"rgba(".concat(i," / 0.4)"):(0,b.Fq)(o,.4)};var k=n(80184);const S=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],E=(0,c.ZP)(f.Z,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["underline".concat((0,l.Z)(n.underline))],"button"===n.component&&t.button]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.Z)({},"none"===n.underline&&{textDecoration:"none"},"hover"===n.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===n.underline&&(0,o.Z)({textDecoration:"underline"},"inherit"!==n.color&&{textDecorationColor:x({theme:t,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(y.focusVisible)]:{outline:"auto"}})})),C=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiLink"}),{className:c,color:f="primary",component:p="a",onBlur:m,onFocus:y,TypographyClasses:v,underline:b="always",variant:x="inherit",sx:C}=n,_=(0,r.Z)(n,S),{isFocusVisibleRef:T,onBlur:O,onFocus:I,ref:A}=(0,d.Z)(),[P,R]=i.useState(!1),N=(0,h.Z)(t,A),D=(0,o.Z)({},n,{color:f,component:p,focusVisible:P,underline:b,variant:x}),M=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}
2=e,i={root:["root","underline".concat((0,l.Z)(o)),"button"===n&&"button",r&&"focusVisible"]};return(0,s.Z)(i,g,t)})(D);return(0,k.jsx)(E,(0,o.Z)({color:f,className:(0,a.Z)(M.root,c),classes:v,component:p,onBlur:e=>{O(e),!1===T.current&&R(!1),m&&m(e)},onFocus:e=>{I(e),!0===T.current&&R(!0),y&&y(e)},ref:N,ownerState:D,variant:x,sx:[...Object.keys(w).includes(f)?[]:[{color:f}],...Array.isArray(C)?C:[C]]},_))}))},90493:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(63366),o=n(87462),i=n(72791),a=n(63733),s=n(94419),l=n(66934),c=n(31402),u=n(66199),d=n(75878),h=n(21217);function f(e){return(0,h.Z)("MuiList",e)}(0,d.Z)("MuiList",["root","padding","dense","subheader"]);var p=n(80184);const m=["children","className","component","dense","disablePadding","subheader"],g=(0,l.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((e=>{let{ownerState:t}=e;return(0,o.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),y=i.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiList"}),{children:l,className:d,component:h="ul",dense:y=!1,disablePadding:v=!1,subheader:b}=n,w=(0,r.Z)(n,m),x=i.useMemo((()=>({dense:y})),[y]),k=(0,o.Z)({},n,{component:h,dense:y,disablePadding:v}),S=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e,i={root:["root",!n&&"padding",r&&"dense",o&&"subheader"]};return(0,s.Z)(i,f,t)})(k);return(0,p.jsx)(u.Z.Provider,{value:x,children:(0,p.jsxs)(g,(0,o.Z)({as:h,className:(0,a.Z)(S.root,d),ref:t,ownerState:k},w,{children:[b,l]}))})}))},66199:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(72791).createContext({})},84852:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>R});var r=n(63366),o=n(87462),i=n(72791),a=n(63733),s=n(94419),l=n(20627),c=n(12065),u=n(66934),d=n(31402),h=n(23701),f=n(19103),p=n(40162),m=n(42071),g=n(66199),y=n(75878),v=n(21217);function b(e){return(0,v.Z)("MuiListItem",e)}const w=(0,y.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);const x=(0,y.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function k(e){return(0,v.Z)("MuiListItemSecondaryAction",e)}(0,y.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);var S=n(80184);const E=["className"],C=(0,u.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((e=>{let{ownerState:t}=e;return(0,o.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})})),_=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiListItemSecondaryAction"}),{className:l}=n,c=(0,r.Z)(n,E),u=i.useContext(g.Z),h=(0,o.Z)({},n,{disableGutters:u.disableGutters}),f=(e=>{const{disableGutters:t,classes:n}=e,r={root:["root",t&&"disableGutters"]};return(0,s.Z)(r,k,n)})(h);return(0,S.jsx)(C,(0,o.Z)({className:(0,a.Z)(f.root,l),ownerState:h,ref:t},c))}));_.muiName="ListItemSecondaryAction";const T=_,O=["className"],I=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],A=(0,u.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!n.disablePadding&&(0,o.Z)({paddingTop:8,paddingBottom:8},n.dense&&{paddingTop:4,paddingBottom:4},!n.disableGutters&&{paddingLeft:16,paddingRight:16},!!n.secondaryAction&&{paddingRight:48}),!!n.secondaryAction&&{["& > .".concat(x.root)]:{paddingRight:48}},{["&.".concat(w.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(w.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(w.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,c.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(w.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===n.alignItems&&{alignItems:"flex-start"},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},n.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(w.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,c.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},n.hasSecondaryAction&&{paddingRight:48})})),P=(0,u.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),R=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiListItem"}),{alignItems:c="center",autoFocus:u=!1,button:y=!1,children:v,className:x,component:k,components:E={},componentsProps:C={},ContainerComponent:_="li",ContainerProps:{className:R}={},dense:N=!1,disabled:D=!1,disableGutters:M=!1,disablePadding:L=!1,divider:Z=!1,focusVisibleClassName:j,secondaryAction:F,selected:z=!1,slotProps:U={},slots:B={}}=n,V=(0,r.Z)(n.ContainerProps,O),H=(0,r.Z)(n,I),W=i.useContext(g.Z),q=i.useMemo((()=>({dense:N||W.dense||!1,alignItems:c,disableGutters:M})),[c,W.dense,N,M]),G=i.useRef(null);(0,p.Z)((()=>{u&&G.current&&G.current.focus()}),[u]);const K=i.Children.toArray(v),Q=K.length&&(0,f.Z)(K[K.length-1],["ListItemSecondaryAction"]),Y=(0,o.Z)({},n,{alignItems:c,autoFocus:u,button:y,dense:q.dense,disabled:D,disableGutters:M,disablePadding:L,divider:Z,hasSecondaryAction:Q,selected:z}),$=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:l,divider:c,hasSecondaryAction:u,selected:d}=e,h={root:["root",o&&"dense",!a&&"gutters",!l&&"padding",c&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]};return(0,s.Z)(h,b,r)})(Y),X=(0,m.Z)(G,t),J=B.root||E.Root||A,ee=U.root||C.root||{},te=(0,o.Z)({className:(0,a.Z)($.root,ee.className,x),disabled:D},H);let ne=k||"li";return y&&(te.component=k||"div",te.focusVisibleClassName=(0,a.Z)(w.focusVisible,j),ne=h.Z),Q?(ne=te.component||k?ne:"div","li"===_&&("li"===ne?ne="div":"li"===te.component&&(te.component="div")),(0,S.jsx)(g.Z.Provider,{value:q,children:(0,S.jsxs)(P,(0,o.Z)({as:_,className:(0,a.Z)($.container,R),ref:X,ownerState:Y},V,{children:[(0,S.jsx)(J,(0,o.Z)({},ee,!(0,l.X)(J)&&{as:ne,ownerState:(0,o.Z)({},Y,ee.ownerState)},te,{children:K})),K.pop()]}))})):(0,S.jsx)(g.Z.Provider,{value:q,children:(0,S.jsxs)(J,(0,o.Z)({},ee,{as:ne,ref:X},!(0,l.X)(J)&&{ownerState:(0,o.Z)({},Y,ee.ownerState)},te,{children:[K,F&&(0,S.jsx)(T,{children:F})]}))})}))}
2,29849:(e,t,n)=>{"use strict";n.d(t,{L:()=>i,Z:()=>a});var r=n(75878),o=n(21217);function i(e){return(0,o.Z)("MuiListItemText",e)}const a=(0,r.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"])},80911:(e,t,n)=>{"use strict";n.d(t,{Z:()=>$});var r=n(87462),o=n(63366),i=n(72791),a=(n(57441),n(63733)),s=n(94419),l=n(41107),c=n(98301),u=n(90493);const d=n(57137).Z;var h=n(42071),f=n(40162),p=n(80184);const m=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function g(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function y(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function v(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function b(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&v(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const w=i.forwardRef((function(e,t){const{actions:n,autoFocus:a=!1,autoFocusItem:s=!1,children:l,className:w,disabledItemsFocusable:x=!1,disableListWrap:k=!1,onKeyDown:S,variant:E="selectedMenu"}=e,C=(0,o.Z)(e,m),_=i.useRef(null),T=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,f.Z)((()=>{a&&_.current.focus()}),[a]),i.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!_.current.style.width;if(e.clientHeight<_.current.clientHeight&&n){const n="".concat(d((0,c.Z)(e)),"px");_.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,_.current.style.width="calc(100% + ".concat(n,")")}return _.current}})),[]);const O=(0,h.Z)(_,t);let I=-1;i.Children.forEach(l,((e,t)=>{i.isValidElement(e)?(e.props.disabled||("selectedMenu"===E&&e.props.selected||-1===I)&&(I=t),I===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(I+=1,I>=l.length&&(I=-1))):I===t&&(I+=1,I>=l.length&&(I=-1))}));const A=i.Children.map(l,((e,t)=>{if(t===I){const t={};return s&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===E&&(t.tabIndex=0),i.cloneElement(e,t)}return e}));return(0,p.jsx)(u.Z,(0,r.Z)({role:"menu",ref:O,className:w,onKeyDown:e=>{const t=_.current,n=e.key,r=(0,c.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),b(t,r,k,x,g);else if("ArrowUp"===n)e.preventDefault(),b(t,r,k,x,y);else if("Home"===n)e.preventDefault(),b(t,null,k,x,g);else if("End"===n)e.preventDefault(),b(t,null,k,x,y);else if(1===n.length){const o=T.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&v(r,o);o.previousKeyMatched&&(s||b(t,r,!1,x,g,o))?e.preventDefault():o.previousKeyMatched=!1}S&&S(e)},tabIndex:a?0:-1},C,{children:A}))}));var x=n(20627),k=n(66934),S=n(31402),E=n(83199),C=n(17602),_=n(13208),T=n(19095),O=n(35527),I=n(75878),A=n(21217);function P(e){return(0,A.Z)("MuiPopover",e)}(0,I.Z)("MuiPopover",["root","paper"]);const R=["onEntering"],N=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],D=["slotProps"];function M(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function L(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Z(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?"".concat(e,"px"):e)).join(" ")}function j(e){return"function"===typeof e?e():e}const F=(0,k.ZP)(T.Z,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),z=(0,k.ZP)(O.Z,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),U=i.forwardRef((function(e,t){var n,u,d;const f=(0,S.Z)({props:e,name:"MuiPopover"}),{action:m,anchorEl:g,anchorOrigin:y={vertical:"top",horizontal:"left"},anchorPosition:v,anchorReference:b="anchorEl",children:w,className:k,container:T,elevation:O=8,marginThreshold:I=16,open:A,PaperProps:U={},slots:B,slotProps:V,transformOrigin:H={vertical:"top",horizontal:"left"},TransitionComponent:W=_.Z,transitionDuration:q="auto",TransitionProps:{onEntering:G}={},disableScrollLock:K=!1}=f,Q=(0,o.Z)(f.TransitionProps,R),Y=(0,o.Z)(f,N),$=null!=(n=null==V?void 0:V.paper)?n:U,X=i.useRef(),J=(0,h.Z)(X,$.ref),ee=(0,r.Z)({},f,{anchorOrigin:y,anchorReference:b,elevation:O,marginThreshold:I,externalPaperSlotProps:$,transformOrigin:H,TransitionComponent:W,transitionDuration:q,TransitionProps:Q}),te=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"],paper:["paper"]},P,t)})(ee),ne=i.useCallback((()=>
vendor: 4,473 bytes, line 2
2{if("anchorPosition"===b)return v;const e=j(g),t=(e&&1===e.nodeType?e:(0,c.Z)(X.current).body).getBoundingClientRect();return{top:t.top+M(t,y.vertical),left:t.left+L(t,y.horizontal)}}),[g,y.horizontal,y.vertical,v,b]),re=i.useCallback((e=>({vertical:M(e,H.vertical),horizontal:L(e,H.horizontal)})),[H.horizontal,H.vertical]),oe=i.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=re(t);if("none"===b)return{top:null,left:null,transformOrigin:Z(n)};const r=ne();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,l=(0,C.Z)(j(g)),c=l.innerHeight-I,u=l.innerWidth-I;if(null!==I&&o<I){const e=o-I;o-=e,n.vertical+=e}else if(null!==I&&a>c){const e=a-c;o-=e,n.vertical+=e}if(null!==I&&i<I){const e=i-I;i-=e,n.horizontal+=e}else if(s>u){const e=s-u;i-=e,n.horizontal+=e}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(i),"px"),transformOrigin:Z(n)}}),[g,b,ne,re,I]),[ie,ae]=i.useState(A),se=i.useCallback((()=>{const e=X.current;if(!e)return;const t=oe(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,ae(!0)}),[oe]);i.useEffect((()=>(K&&window.addEventListener("scroll",se),()=>window.removeEventListener("scroll",se))),[g,K,se]);i.useEffect((()=>{A&&se()})),i.useImperativeHandle(m,(()=>A?{updatePosition:()=>{se()}}:null),[A,se]),i.useEffect((()=>{if(!A)return;const e=(0,E.Z)((()=>{se()})),t=(0,C.Z)(g);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[g,A,se]);let le=q;"auto"!==q||W.muiSupportAuto||(le=void 0);const ce=T||(g?(0,c.Z)(j(g)).body:void 0),ue=null!=(u=null==B?void 0:B.root)?u:F,de=null!=(d=null==B?void 0:B.paper)?d:z,he=(0,l.y)({elementType:de,externalSlotProps:(0,r.Z)({},$,{style:ie?$.style:(0,r.Z)({},$.style,{opacity:0})}),additionalProps:{elevation:O,ref:J},ownerState:ee,className:(0,a.Z)(te.paper,null==$?void 0:$.className)}),fe=(0,l.y)({elementType:ue,externalSlotProps:(null==V?void 0:V.root)||{},externalForwardedProps:Y,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:ce,open:A},ownerState:ee,className:(0,a.Z)(te.root,k)}),{slotProps:pe}=fe,me=(0,o.Z)(fe,D);return(0,p.jsx)(ue,(0,r.Z)({},me,!(0,x.X)(ue)&&{slotProps:pe,disableScrollLock:K},{children:(0,p.jsx)(W,(0,r.Z)({appear:!0,in:A,onEntering:(e,t)=>{G&&G(e,t),se()},onExited:()=>{ae(!1)},timeout:le},Q,{children:(0,p.jsx)(de,(0,r.Z)({},he,{children:w}))}))}))}));var B=n(13967);function V(e){return(0,A.Z)("MuiMenu",e)}(0,I.Z)("MuiMenu",["root","paper","list"]);const H=["onEntering"],W=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],q={vertical:"top",horizontal:"right"},G={vertical:"top",horizontal:"left"},K=(0,k.ZP)(U,{shouldForwardProp:e=>(0,k.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Q=(0,k.ZP)(z,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Y=(0,k.ZP)(w,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),$=i.forwardRef((function(e,t){var n,c;const u=(0,S.Z)({props:e,name:"MuiMenu"}),{autoFocus:d=!0,children:h,className:f,disableAutoFocusItem:m=!1,MenuListProps:g={},onClose:y,open:v,PaperProps:b={},PopoverClasses:w,transitionDuration:x="auto",TransitionProps:{onEntering:k}={},variant:E="selectedMenu",slots:C={},slotProps:_={}}=u,T=(0,o.Z)(u.TransitionProps,H),O=(0,o.Z)(u,W),I=(0,B.Z)(),A="rtl"===I.direction,P=(0,r.Z)({},u,{autoFocus:d,disableAutoFocusItem:m,MenuListProps:g,onEntering:k,PaperProps:b,transitionDuration:x,TransitionProps:T,variant:E}),R=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"],paper:["paper"],list:["list"]},V,t)})(P),N=d&&!m&&v,D=i.useRef(null);let M=-1;i.Children.map(h,((e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===E&&e.props.selected||-1===M)&&(M=t))}));const L=null!=(n=C.paper)?n:Q,Z=null!=(c=_.paper)?c:b,j=(0,l.y)({elementType:C.root,externalSlotProps:_.root,ownerState:P,className:[R.root,f]}),F=(0,l.y)({elementType:L,externalSlotProps:Z,ownerState:P,className:R.paper});return(0,p.jsx)(K,(0,r.Z)({onClose:y,anchorOrigin:{vertical:"bottom",horizontal:A?"right":"left"},transformOrigin:A?q:G,slots:{paper:L,root:C.root},slotProps:{root:j,paper:F},open:v,ref:t,transitionDuration:x,TransitionProps:(0,r.Z)({onEntering:(e,t)=>
2{D.current&&D.current.adjustStyleForScrollbar(e,I),k&&k(e,t)}},T),ownerState:P},O,{classes:w,children:(0,p.jsx)(Y,(0,r.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),y&&y(e,"tabKeyDown"))},actions:D,autoFocus:d&&(-1===M||m),autoFocusItem:N,variant:E},g,{className:(0,a.Z)(R.list,g.className),children:h}))}))}))},5022:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var r=n(63366),o=n(87462),i=n(72791),a=n(63733),s=n(94419),l=n(12065),c=n(66934),u=n(31402),d=n(66199),h=n(23701),f=n(40162),p=n(42071),m=n(90133),g=n(75878);const y=(0,g.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);var v=n(29849),b=n(21217);function w(e){return(0,b.Z)("MuiMenuItem",e)}const x=(0,g.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var k=n(80184);const S=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],E=(0,c.ZP)(h.Z,{shouldForwardProp:e=>(0,c.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.Z)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(x.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(x.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(x.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(x.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(x.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(m.Z.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(m.Z.inset)]:{marginLeft:52},["& .".concat(v.Z.root)]:{marginTop:0,marginBottom:0},["& .".concat(v.Z.inset)]:{paddingLeft:36},["& .".concat(y.root)]:{minWidth:36}},!n.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},n.dense&&(0,o.Z)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(y.root," svg")]:{fontSize:"1.25rem"}}))})),C=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:l=!1,component:c="li",dense:h=!1,divider:m=!1,disableGutters:g=!1,focusVisibleClassName:y,role:v="menuitem",tabIndex:b,className:x}=n,C=(0,r.Z)(n,S),_=i.useContext(d.Z),T=i.useMemo((()=>({dense:h||_.dense||!1,disableGutters:g})),[_.dense,h,g]),O=i.useRef(null);(0,f.Z)((()=>{l&&O.current&&O.current.focus()}),[l]);const I=(0,o.Z)({},n,{dense:T.dense,divider:m,disableGutters:g}),A=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:l}=e,c={root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},u=(0,s.Z)(c,w,l);return(0,o.Z)({},l,u)})(n),P=(0,p.Z)(O,t);let R;return n.disabled||(R=void 0!==b?b:-1),(0,k.jsx)(d.Z.Provider,{value:T,children:(0,k.jsx)(E,(0,o.Z)({ref:P,role:v,tabIndex:R,component:c,focusVisibleClassName:(0,a.Z)(A.focusVisible,y),className:(0,a.Z)(A.root,x)},C,{ownerState:I,classes:A}))})}))},19095:(e,t,n)=>{"use strict";n.d(t,{Z:()=>j});var r=n(63366),o=n(87462),i=n(72791),a=n(63733),s=n(41107),l=n(6117),c=n(84913),u=n(97054),d=n(78949),h=n(22086),f=n(65202),p=n(57137);function m(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function g(e){return parseInt((0,f.Z)(e).getComputedStyle(e).paddingRight,10)||0}function y(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.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&&m(e,o)}))}function v(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function b(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,c.Z)(e);return t.body===e?(0,f.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=(0,p.Z)((0,c.Z)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight="".concat(g(r)+e,"px");const t=(0,c.Z)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight="".concat(g(t)+e,"px")}))}let e;if(r.parentNode instanceof DocumentFragment)e=(0,c.Z)(r).body;else{const t=r.parentElement,n=(0,f.Z)(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()=>
2{n.forEach((e=>{let{value:t,el:n,property:r}=e;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}const w=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&&m(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);y(t,e.mount,e.modalRef,r,!0);const o=v(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=v(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=b(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=v(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&m(e.modalRef,t),y(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&m(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function x(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:a=w,closeAfterTransition:s=!1,onTransitionEnter:f,onTransitionExited:p,children:g,onClose:y,open:v,rootRef:b}=e,x=i.useRef({}),k=i.useRef(null),S=i.useRef(null),E=(0,l.Z)(S,b),[C,_]=i.useState(!v),T=function(e){return!!e&&e.props.hasOwnProperty("in")}(g);let O=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(O=!1);const I=()=>(x.current.modalRef=S.current,x.current.mount=k.current,x.current),A=()=>{a.mount(I(),{disableScrollLock:r}),S.current&&(S.current.scrollTop=0)},P=(0,u.Z)((()=>{const e=function(e){return"function"===typeof e?e():e}(t)||(0,c.Z)(k.current).body;a.add(I(),e),S.current&&A()})),R=i.useCallback((()=>a.isTopModal(I())),[a]),N=(0,u.Z)((e=>{k.current=e,e&&(v&&R()?A():S.current&&m(S.current,O))})),D=i.useCallback((()=>{a.remove(I(),O)}),[O,a]);i.useEffect((()=>()=>{D()}),[D]),i.useEffect((()=>{v?P():T&&s||D()}),[v,D,T,s,P]);const M=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&R()&&(n||(t.stopPropagation(),y&&y(t,"escapeKeyDown")))},L=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&y&&y(t,"backdropClick")};return{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=(0,h._)(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=(0,o.Z)({},n,t);return(0,o.Z)({role:"presentation"},r,{onKeyDown:M(r),ref:E})},getBackdropProps:function(){const e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.Z)({"aria-hidden":!0},e,{onClick:L(e),open:v})},getTransitionProps:()=>({onEnter:(0,d.Z)((()=>{_(!1),f&&f()}),null==g?void 0:g.props.onEnter),onExited:(0,d.Z)((()=>{_(!0),p&&p(),s&&D()}),null==g?void 0:g.props.onExited)}),rootRef:E,portalRef:N,isTopModal:R,exited:C,hasTransition:T}}var k=n(94419),S=n(80184);const E=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function C(e){const t=[],n=[];return Array.from(e.querySelectorAll(E)).forEach(((e,r)=>{const o=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!==o&&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"]'.concat(t));let n=t('[name="'.concat(e.name,'"]:checked'));return n||(n=t('[name="'.concat(e.name,'"]'))),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,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 _(){return!0}function T(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=C,isEnabled:s=_,open:u}=e,d=i.useRef(!1),h=i.useRef(null),f=i.useRef(null),p=i.useRef(null),m=i.useRef(null),g=i.useRef(!1),y=i.useRef(null),v=(0,l.Z)(t.ref,y),b=i.useRef(null);i.useEffect((()=>{u&&y.current&&(g.current=!n)}),[n,u]),i.useEffect((()=>
vendor: 4,929 bytes, line 2
2{if(!u||!y.current)return;const e=(0,c.Z)(y.current);return y.current.contains(e.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),g.current&&y.current.focus()),()=>{o||(p.current&&p.current.focus&&(d.current=!0,p.current.focus()),p.current=null)}}),[u]),i.useEffect((()=>{if(!u||!y.current)return;const e=(0,c.Z)(y.current),t=t=>{b.current=t,!r&&s()&&"Tab"===t.key&&e.activeElement===y.current&&t.shiftKey&&(d.current=!0,f.current&&f.current.focus())},n=()=>{const t=y.current;if(null===t)return;if(!e.hasFocus()||!s()||d.current)return void(d.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==h.current&&e.activeElement!==f.current)return;if(e.activeElement!==m.current)m.current=null;else if(null!==m.current)return;if(!g.current)return;let n=[];if(e.activeElement!==h.current&&e.activeElement!==f.current||(n=a(y.current)),n.length>0){var o,i;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(i=b.current)?void 0:i.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 o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,s,u,a]);const w=e=>{null===p.current&&(p.current=e.relatedTarget),g.current=!0};return(0,S.jsxs)(i.Fragment,{children:[(0,S.jsx)("div",{tabIndex:u?0:-1,onFocus:w,ref:h,"data-testid":"sentinelStart"}),i.cloneElement(t,{ref:v,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),g.current=!0,m.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,S.jsx)("div",{tabIndex:u?0:-1,onFocus:w,ref:f,"data-testid":"sentinelEnd"})]})}var O=n(96174),I=n(66934),A=n(31402),P=n(52739),R=n(75878),N=n(21217);function D(e){return(0,N.Z)("MuiModal",e)}(0,R.Z)("MuiModal",["root","hidden","backdrop"]);const M=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],L=(0,I.ZP)("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,o.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),Z=(0,I.ZP)(P.Z,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),j=i.forwardRef((function(e,t){var n,l,c,u,d,h;const f=(0,A.Z)({name:"MuiModal",props:e}),{BackdropComponent:p=Z,BackdropProps:m,className:g,closeAfterTransition:y=!1,children:v,container:b,component:w,components:E={},componentsProps:C={},disableAutoFocus:_=!1,disableEnforceFocus:I=!1,disableEscapeKeyDown:P=!1,disablePortal:R=!1,disableRestoreFocus:N=!1,disableScrollLock:j=!1,hideBackdrop:F=!1,keepMounted:z=!1,onBackdropClick:U,open:B,slotProps:V,slots:H}=f,W=(0,r.Z)(f,M),q=(0,o.Z)({},f,{closeAfterTransition:y,disableAutoFocus:_,disableEnforceFocus:I,disableEscapeKeyDown:P,disablePortal:R,disableRestoreFocus:N,disableScrollLock:j,hideBackdrop:F,keepMounted:z}),{getRootProps:G,getBackdropProps:K,getTransitionProps:Q,portalRef:Y,isTopModal:$,exited:X,hasTransition:J}=x((0,o.Z)({},q,{rootRef:t})),ee=(0,o.Z)({},q,{exited:X}),te=(e=>{const{open:t,exited:n,classes:r}=e,o={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,k.Z)(o,D,r)})(ee),ne={};if(void 0===v.props.tabIndex&&(ne.tabIndex="-1"),J){const{onEnter:e,onExited:t}=Q();ne.onEnter=e,ne.onExited=t}const re=null!=(n=null!=(l=null==H?void 0:H.root)?l:E.Root)?n:L,oe=null!=(c=null!=(u=null==H?void 0:H.backdrop)?u:E.Backdrop)?c:p,ie=null!=(d=null==V?void 0:V.root)?d:C.root,ae=null!=(h=null==V?void 0:V.backdrop)?h:C.backdrop,se=(0,s.y)({elementType:re,externalSlotProps:ie,externalForwardedProps:W,getSlotProps:G,additionalProps:{ref:t,as:w},ownerState:ee,className:(0,a.Z)(g,null==ie?void 0:ie.className,null==te?void 0:te.root,!ee.open&&ee.exited&&(null==te?void 0:te.hidden))}),le=(0,s.y)({elementType:oe,externalSlotProps:ae,additionalProps:m,getSlotProps:e=>K((0,o.Z)({},e,{onClick:t=>{U&&U(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,a.Z)(null==ae?void 0:ae.className,null==m?void 0:m.className,null==te?void 0:te.backdrop),ownerState:ee});return z||B||J&&!X?(0,S.jsx)(O.h,{ref:Y,container:b,disablePortal:R,children:(0,S.jsxs)(re,(0,o.Z)({},se,{children:[!F&&p?(0,S.jsx)(oe,(0,o.Z)({},le)):null,(0,S.jsx)(T,{disableEnforceFocus:I,disableAutoFocus:_,disableRestoreFocus:N,isEnabled:$,open:B,children:i.cloneElement(v,ne)})]}))}):null}))}
2,28029:(e,t,n)=>{"use strict";n.d(t,{Z:()=>T});var r,o=n(63366),i=n(87462),a=n(72791),s=n(94419),l=n(66934),c=n(80184);const u=["children","classes","className","label","notched"],d=(0,l.ZP)("fieldset",{shouldForwardProp:l.FO})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),h=(0,l.ZP)("legend",{shouldForwardProp:l.FO})((e=>{let{ownerState:t,theme:n}=e;return(0,i.Z)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},t.withLabel&&(0,i.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));var f=n(52930),p=n(76147),m=n(75878),g=n(21217),y=n(55891);function v(e){return(0,g.Z)("MuiOutlinedInput",e)}const b=(0,i.Z)({},y.Z,(0,m.Z)("MuiOutlinedInput",["root","notchedOutline","input"]));var w=n(4834),x=n(31402);const k=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],S=(0,l.ZP)(w.Ej,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:w.Gx})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,i.Z)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,["&:hover .".concat(b.notchedOutline)]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{["&:hover .".concat(b.notchedOutline)]:{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):r}},["&.".concat(b.focused," .").concat(b.notchedOutline)]:{borderColor:(t.vars||t).palette[n.color].main,borderWidth:2},["&.".concat(b.error," .").concat(b.notchedOutline)]:{borderColor:(t.vars||t).palette.error.main},["&.".concat(b.disabled," .").concat(b.notchedOutline)]:{borderColor:(t.vars||t).palette.action.disabled}},n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&(0,i.Z)({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),E=(0,l.ZP)((function(e){const{className:t,label:n,notched:a}=e,s=(0,o.Z)(e,u),l=null!=n&&""!==n,f=(0,i.Z)({},e,{notched:a,withLabel:l});return(0,c.jsx)(d,(0,i.Z)({"aria-hidden":!0,className:t,ownerState:f},s,{children:(0,c.jsx)(h,{ownerState:f,children:l?(0,c.jsx)("span",{children:n}):r||(r=(0,c.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}})),C=(0,l.ZP)(w.rA,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:w._o})((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),_=a.forwardRef((function(e,t){var n,r,l,u,d;const h=(0,x.Z)({props:e,name:"MuiOutlinedInput"}),{components:m={},fullWidth:g=!1,inputComponent:y="input",label:b,multiline:_=!1,notched:T,slots:O={},type:I="text"}=h,A=(0,o.Z)(h,k),P=(e=>{const{classes:t}=e,n=(0,s.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},v,t);return(0,i.Z)({},t,n)})(h),R=(0,f.Z)(),N=(0,p.Z)({props:h,muiFormControl:R,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),D=(0,i.Z)({},h,{color:N.color||"primary",disabled:N.disabled,error:N.error,focused:N.focused,formControl:R,fullWidth:g,hiddenLabel:N.hiddenLabel,multiline:_,size:N.size,type:I}),M=null!=(n=null!=(r=O.root)?r:m.Root)?n:S,L=null!=(l=null!=(u=O.input)?u:m.Input)?l:C;
2return(0,c.jsx)(w.ZP,(0,i.Z)({slots:{root:M,input:L},renderSuffix:e=>(0,c.jsx)(E,{ownerState:D,className:P.notchedOutline,label:null!=b&&""!==b&&N.required?d||(d=(0,c.jsxs)(a.Fragment,{children:[b,"\u2009","*"]})):b,notched:"undefined"!==typeof T?T:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:g,inputComponent:y,multiline:_,ref:t,type:I},A,{classes:(0,i.Z)({},P,{notchedOutline:null})}))}));_.muiName="Input";const T=_},35527:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(63366),o=n(87462),i=n(72791),a=n(63733),s=n(94419),l=n(12065),c=n(66934);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(31402),h=n(75878),f=n(21217);function p(e){return(0,f.Z)("MuiPaper",e)}(0,h.Z)("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(80184);const g=["className","component","elevation","square","variant"],y=(0,c.ZP)("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".concat(n.elevation)]]}})((e=>{let{theme:t,ownerState:n}=e;var r;return(0,o.Z)({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 ".concat((t.vars||t).palette.divider)},"elevation"===n.variant&&(0,o.Z)({boxShadow:(t.vars||t).shadows[n.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,l.Fq)("#fff",u(n.elevation)),", ").concat((0,l.Fq)("#fff",u(n.elevation)),")")},t.vars&&{backgroundImage:null==(r=t.vars.overlays)?void 0:r[n.elevation]}))})),v=i.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiPaper"}),{className:i,component:l="div",elevation:c=1,square:u=!1,variant:h="elevation"}=n,f=(0,r.Z)(n,g),v=(0,o.Z)({},n,{component:l,elevation:c,square:u,variant:h}),b=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded","elevation"===r&&"elevation".concat(n)]};return(0,s.Z)(i,p,o)})(v);return(0,m.jsx)(y,(0,o.Z)({as:l,ownerState:v,className:(0,a.Z)(b.root,i),ref:t},f))}))},99321:(e,t,n)=>{"use strict";n.d(t,{Z:()=>J});var r=n(87462),o=n(63366),i=n(72791),a=n(63733),s=n(82466),l=n(46189),c=(n(57441),n(94419)),u=n(18252),d=n(98301),h=n(14036),f=n(80911),p=n(75878),m=n(21217);function g(e){return(0,m.Z)("MuiNativeSelect",e)}const y=(0,p.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var v=n(66934),b=n(80184);const w=["className","disabled","error","IconComponent","inputRef","variant"],x=e=>{let{ownerState:t,theme:n}=e;return(0,r.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,r.Z)({},n.vars?{backgroundColor:"rgba(".concat(n.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===n.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},["&.".concat(y.disabled)]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(n.vars||n).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(n.vars||n).shape.borderRadius,"&:focus":{borderRadius:(n.vars||n).shape.borderRadius},"&&&":{paddingRight:32}})},k=(0,v.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:v.FO,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{["&.".concat(y.multiple)]:t.multiple}]}})(x),S=e=>{let{ownerState:t,theme:n}=e;return(0,r.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(n.vars||n).palette.action.active,["&.".concat(y.disabled)]:{color:(n.vars||n).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},E=(0,v.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t["icon".concat((0,h.Z)(n.variant))],n.open&&t.iconOpen]}})(S),C=i.forwardRef((function(e,t){const{className:n,disabled:s,error:l,IconComponent:u,inputRef:d,variant:f="standard"}=e,p=(0,o.Z)(e,w),m=(0,r.Z)({},e,{disabled:s,variant:f,error:l}),y=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon","icon".concat((0,h.Z)(n)),i&&"iconOpen",r&&"disabled"]};return(0,c.Z)(s,g,t)})(m);return(0,b.jsxs)(i.Fragment,{children:[(0,b.jsx)(k,(0,r.Z)({ownerState:m,className:(0,a.Z)(y.select,n),disabled:s,ref:d||t},p)),e.multiple?null:(0,b.jsx)(E,{as:u,ownerState:m,className:y.icon})]})}));var _=n(35470),T=n(42071),O=n(98278);function I(e){return(0,m.Z)("MuiSelect",e)}const A=(0,p.Z)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var P;
2const R=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],N=(0,v.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["&.".concat(A.select)]:t.select},{["&.".concat(A.select)]:t[n.variant]},{["&.".concat(A.error)]:t.error},{["&.".concat(A.multiple)]:t.multiple}]}})(x,{["&.".concat(A.select)]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),D=(0,v.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t["icon".concat((0,h.Z)(n.variant))],n.open&&t.iconOpen]}})(S),M=(0,v.ZP)("input",{shouldForwardProp:e=>(0,v.Dz)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function L(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function Z(e){return null==e||"string"===typeof e&&!e.trim()}const j=i.forwardRef((function(e,t){var n;const{"aria-describedby":s,"aria-label":p,autoFocus:m,autoWidth:g,children:y,className:v,defaultOpen:w,defaultValue:x,disabled:k,displayEmpty:S,error:E=!1,IconComponent:C,inputRef:A,labelId:j,MenuProps:F={},multiple:z,name:U,onBlur:B,onChange:V,onClose:H,onFocus:W,onOpen:q,open:G,readOnly:K,renderValue:Q,SelectDisplayProps:Y={},tabIndex:$,value:X,variant:J="standard"}=e,ee=(0,o.Z)(e,R),[te,ne]=(0,O.Z)({controlled:X,default:x,name:"Select"}),[re,oe]=(0,O.Z)({controlled:G,default:w,name:"Select"}),ie=i.useRef(null),ae=i.useRef(null),[se,le]=i.useState(null),{current:ce}=i.useRef(null!=G),[ue,de]=i.useState(),he=(0,T.Z)(t,A),fe=i.useCallback((e=>{ae.current=e,e&&le(e)}),[]),pe=null==se?void 0:se.parentNode;i.useImperativeHandle(he,(()=>({focus:()=>{ae.current.focus()},node:ie.current,value:te})),[te]),i.useEffect((()=>{w&&re&&se&&!ce&&(de(g?null:pe.clientWidth),ae.current.focus())}),[se,g]),i.useEffect((()=>{m&&ae.current.focus()}),[m]),i.useEffect((()=>{if(!j)return;const e=(0,d.Z)(ae.current).getElementById(j);if(e){const t=()=>{getSelection().isCollapsed&&ae.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[j]);const me=(e,t)=>{e?q&&q(t):H&&H(t),ce||(de(g?null:pe.clientWidth),oe(e))},ge=i.Children.toArray(y),ye=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(z){n=Array.isArray(te)?te.slice():[];const t=te.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),te!==n&&(ne(n),V)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:U}}),V(o,e)}z||me(!1,t)}},ve=null!==se&&re;let be,we;delete ee["aria-invalid"];const xe=[];let ke=!1,Se=!1;((0,_.vd)({value:te})||S)&&(Q?be=Q(te):ke=!0);const Ee=ge.map((e=>{if(!i.isValidElement(e))return null;let t;if(z){if(!Array.isArray(te))throw new Error((0,l.Z)(2));t=te.some((t=>L(t,e.props.value))),t&&ke&&xe.push(e.props.children)}else t=L(te,e.props.value),t&&ke&&(we=e.props.children);return t&&(Se=!0),i.cloneElement(e,{"aria-selected":t?"true":"false",onClick:ye(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ke&&(be=z?0===xe.length?null:xe.reduce(((e,t,n)=>(e.push(t),n<xe.length-1&&e.push(", "),e)),[]):we);let Ce,_e=ue;!g&&ce&&se&&(_e=pe.clientWidth),Ce="undefined"!==typeof $?$:k?null:0;const Te=Y.id||(U?"mui-component-select-".concat(U):void 0),Oe=(0,r.Z)({},e,{variant:J,value:te,open:ve,error:E}),Ie=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon","icon".concat((0,h.Z)(n)),i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,c.Z)(s,I,t)})(Oe),Ae=(0,r.Z)({},F.PaperProps,null==(n=F.slotProps)?void 0:n.paper),Pe=(0,u.Z)();return(0,b.jsxs)(i.Fragment,{children:[(0,b.jsx)(N,(0,r.Z)({ref:fe,tabIndex:Ce,role:"combobox","aria-controls":Pe,"aria-disabled":k?"true":void 0,"aria-expanded":ve?"true":"false","aria-haspopup":"listbox","aria-label":p,"aria-labelledby":[j,Te].filter(
2Boolean).join(" ")||void 0,"aria-describedby":s,onKeyDown:e=>{if(!K){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),me(!0,e))}},onMouseDown:k||K?null:e=>{0===e.button&&(e.preventDefault(),ae.current.focus(),me(!0,e))},onBlur:e=>{!ve&&B&&(Object.defineProperty(e,"target",{writable:!0,value:{value:te,name:U}}),B(e))},onFocus:W},Y,{ownerState:Oe,className:(0,a.Z)(Y.className,Ie.select,v),id:Te,children:Z(be)?P||(P=(0,b.jsx)("span",{className:"notranslate",children:"\u200b"})):be})),(0,b.jsx)(M,(0,r.Z)({"aria-invalid":E,value:Array.isArray(te)?te.join(","):te,name:U,ref:ie,"aria-hidden":!0,onChange:e=>{const t=ge.find((t=>t.props.value===e.target.value));void 0!==t&&(ne(t.props.value),V&&V(e,t))},tabIndex:-1,disabled:k,className:Ie.nativeInput,autoFocus:m,ownerState:Oe},ee)),(0,b.jsx)(D,{as:C,className:Ie.icon,ownerState:Oe}),(0,b.jsx)(f.Z,(0,r.Z)({id:"menu-".concat(U||""),anchorEl:pe,open:ve,onClose:e=>{me(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},F,{MenuListProps:(0,r.Z)({"aria-labelledby":j,role:"listbox","aria-multiselectable":z?"true":void 0,disableListWrap:!0,id:Pe},F.MenuListProps),slotProps:(0,r.Z)({},F.slotProps,{paper:(0,r.Z)({},Ae,{style:(0,r.Z)({minWidth:_e},null!=Ae?Ae.style:null)})}),children:Ee}))]})}));var F=n(76147),z=n(52930);const U=(0,n(76189).Z)((0,b.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var B=n(37078),V=n(14527),H=n(28029),W=n(31402);const q=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],G=["root"],K={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,v.FO)(e)&&"variant"!==e,slot:"Root"},Q=(0,v.ZP)(B.Z,K)(""),Y=(0,v.ZP)(H.Z,K)(""),$=(0,v.ZP)(V.Z,K)(""),X=i.forwardRef((function(e,t){const n=(0,W.Z)({name:"MuiSelect",props:e}),{autoWidth:l=!1,children:c,classes:u={},className:d,defaultOpen:h=!1,displayEmpty:f=!1,IconComponent:p=U,id:m,input:g,inputProps:y,label:v,labelId:w,MenuProps:x,multiple:k=!1,native:S=!1,onClose:E,onOpen:_,open:O,renderValue:I,SelectDisplayProps:A,variant:P="outlined"}=n,R=(0,o.Z)(n,q),N=S?C:j,D=(0,z.Z)(),M=(0,F.Z)({props:n,muiFormControl:D,states:["variant","error"]}),L=M.variant||P,Z=(0,r.Z)({},n,{variant:L,classes:u}),B=(e=>{const{classes:t}=e;return t})(Z),V=(0,o.Z)(B,G),H=g||{standard:(0,b.jsx)(Q,{ownerState:Z}),outlined:(0,b.jsx)(Y,{label:v,ownerState:Z}),filled:(0,b.jsx)($,{ownerState:Z})}[L],K=(0,T.Z)(t,H.ref);return(0,b.jsx)(i.Fragment,{children:i.cloneElement(H,(0,r.Z)({inputComponent:N,inputProps:(0,r.Z)({children:c,error:M.error,IconComponent:p,variant:L,type:void 0,multiple:k},S?{id:m}:{autoWidth:l,defaultOpen:h,displayEmpty:f,labelId:w,MenuProps:x,onClose:E,onOpen:_,open:O,renderValue:I,SelectDisplayProps:(0,r.Z)({id:m},A)},y,{classes:y?(0,s.Z)(V,y.classes):V},g?g.props.inputProps:{})},k&&S&&"outlined"===L?{notched:!0}:{},{ref:K,className:(0,a.Z)(H.props.className,d,B.root)},!g&&{variant:L},R))})}));X.muiName="Select";const J=X},36314:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(63366),o=n(87462),i=n(72791),a=n(63733),s=n(82466),l=n(94419),c=n(21217),u=n(93457),d=n(86083),h=n(78519),f=n(85080),p=n(51184),m=n(45682),g=n(80184);const y=["component","direction","spacing","divider","children","className","useFlexGap"],v=(0,f.Z)(),b=(0,u.Z)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function w(e){return(0,d.Z)({props:e,name:"MuiStack",defaultTheme:v})}function x(e,t){const n=i.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(i.cloneElement(t,{key:"separator-".concat(o)})),e)),[])}const k=e=>{let{ownerState:t,theme:n}=e,r=(0,o.Z)({display:"flex",flexDirection:"column"},(0,p.k9)({theme:n},(0,p.P$)({values:t.direction,breakpoints:n.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){const e=(0,m.hB)(n),o=Object.keys(n.breakpoints.values).reduce(((e,n)=>(("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e)),{}),i=(0,p.P$)({values:t.direction,base:o}),a=(0,p.P$)({values:t.spacing,base:o});
2"object"===typeof i&&Object.keys(i).forEach(((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}}));const l=(n,r)=>{return t.useFlexGap?{gap:(0,m.NA)(e,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{["margin".concat((o=r?i[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]))]:(0,m.NA)(e,n)}};var o};r=(0,s.Z)(r,(0,p.k9)({theme:n},a,l))}return r=(0,p.dt)(n.breakpoints,r),r};var S=n(66934),E=n(31402);const C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=b,useThemeProps:n=w,componentName:s="MuiStack"}=e,u=t(k),d=i.forwardRef((function(e,t){const i=n(e),d=(0,h.Z)(i),{component:f="div",direction:p="column",spacing:m=0,divider:v,children:b,className:w,useFlexGap:k=!1}=d,S=(0,r.Z)(d,y),E={direction:p,spacing:m,useFlexGap:k},C=(0,l.Z)({root:["root"]},(e=>(0,c.Z)(s,e)),{});return(0,g.jsx)(u,(0,o.Z)({as:f,ownerState:E,ref:t,className:(0,a.Z)(C.root,w)},S,{children:v?x(b,v):b}))}));return d}({createStyledComponent:(0,S.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,E.Z)({props:e,name:"MuiStack"})}),_=C},27391:(e,t,n)=>{"use strict";n.d(t,{Z:()=>N});var r=n(87462),o=n(63366),i=n(72791),a=n(63733),s=n(94419),l=n(18252),c=n(66934),u=n(31402),d=n(37078),h=n(14527),f=n(28029),p=n(94925),m=n(68096),g=n(76147),y=n(52930),v=n(14036),b=n(75878),w=n(21217);function x(e){return(0,w.Z)("MuiFormHelperText",e)}const k=(0,b.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var S,E=n(80184);const C=["children","className","component","disabled","error","filled","focused","margin","required","variant"],_=(0,c.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t["size".concat((0,v.Z)(n.size))],n.contained&&t.contained,n.filled&&t.filled]}})((e=>{let{theme:t,ownerState:n}=e;return(0,r.Z)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(k.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(k.error)]:{color:(t.vars||t).palette.error.main}},"small"===n.size&&{marginTop:4},n.contained&&{marginLeft:14,marginRight:14})})),T=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiFormHelperText"}),{children:i,className:l,component:c="p"}=n,d=(0,o.Z)(n,C),h=(0,y.Z)(),f=(0,g.Z)({props:n,muiFormControl:h,states:["variant","size","disabled","error","filled","focused","required"]}),p=(0,r.Z)({},n,{component:c,contained:"filled"===f.variant||"outlined"===f.variant,variant:f.variant,size:f.size,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required}),m=(e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:l,required:c}=e,u={root:["root",o&&"disabled",i&&"error",r&&"size".concat((0,v.Z)(r)),n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return(0,s.Z)(u,x,t)})(p);return(0,E.jsx)(_,(0,r.Z)({as:c,ownerState:p,className:(0,a.Z)(m.root,l),ref:t},d,{children:" "===i?S||(S=(0,E.jsx)("span",{className:"notranslate",children:"\u200b"})):i}))}));var O=n(99321);function I(e){return(0,w.Z)("MuiTextField",e)}(0,b.Z)("MuiTextField",["root"]);const A=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],P={standard:d.Z,filled:h.Z,outlined:f.Z},R=(0,c.ZP)(m.Z,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),N=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiTextField"}),{autoComplete:i,autoFocus:c=!1,children:d,className:h,color:f="primary",defaultValue:m,disabled:g=!1,error:y=!1,FormHelperTextProps:v,fullWidth:b=!1,helperText:w,id:x,InputLabelProps:k,inputProps:S,InputProps:C,inputRef:_,label:N,maxRows:D,minRows:M,multiline:L=!1,name:Z,onBlur:j,onChange:F,onFocus:z,placeholder:U,required:B=!1,rows:V,select:H=!1,SelectProps:W,type:q,value:G,variant:K="outlined"}=n,Q=(0,o.Z)(n,A),Y=(0,r.Z)({},n,{autoFocus:c,color:f,disabled:g,error:y,fullWidth:b,multiline:L,required:B,select:H,variant:K}),$=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"]},I,t)})(Y);const X={};"outlined"===K&&(k&&"undefined"!==typeof k.shrink&&(X.notched=k.shrink),X.label=N),H&&(W&&W.n
2ative||(X.id=void 0),X["aria-describedby"]=void 0);const J=(0,l.Z)(x),ee=w&&J?"".concat(J,"-helper-text"):void 0,te=N&&J?"".concat(J,"-label"):void 0,ne=P[K],re=(0,E.jsx)(ne,(0,r.Z)({"aria-describedby":ee,autoComplete:i,autoFocus:c,defaultValue:m,fullWidth:b,multiline:L,name:Z,rows:V,maxRows:D,minRows:M,type:q,value:G,id:J,inputRef:_,onBlur:j,onChange:F,onFocus:z,placeholder:U,inputProps:S},X,C));return(0,E.jsxs)(R,(0,r.Z)({className:(0,a.Z)($.root,h),disabled:g,error:y,fullWidth:b,ref:t,required:B,color:f,variant:K,ownerState:Y},Q,{children:[null!=N&&""!==N&&(0,E.jsx)(p.Z,(0,r.Z)({htmlFor:J,id:te},k,{children:N})),H?(0,E.jsx)(O.Z,(0,r.Z)({"aria-describedby":ee,id:J,labelId:te,value:G,input:re},W,{children:d})):re,w&&(0,E.jsx)(T,(0,r.Z)({id:ee},v,{children:w}))]}))}))},20890:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r=n(63366),o=n(87462),i=n(72791),a=n(63733),s=n(78519),l=n(94419),c=n(66934),u=n(31402),d=n(14036),h=n(75878),f=n(21217);function p(e){return(0,f.Z)("MuiTypography",e)}(0,h.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var m=n(80184);const g=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],y=(0,c.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t["align".concat((0,d.Z)(n.align))],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.Z)({margin:0},"inherit"===n.variant&&{font:"inherit"},"inherit"!==n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})})),v={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},w=i.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiTypography"}),i=(e=>b[e]||e)(n.color),c=(0,s.Z)((0,o.Z)({},n,{color:i})),{align:h="inherit",className:f,component:w,gutterBottom:x=!1,noWrap:k=!1,paragraph:S=!1,variant:E="body1",variantMapping:C=v}=c,_=(0,r.Z)(c,g),T=(0,o.Z)({},c,{align:h,color:i,className:f,component:w,gutterBottom:x,noWrap:k,paragraph:S,variant:E,variantMapping:C}),O=w||(S?"p":C[E]||v[E])||"span",I=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,"inherit"!==e.align&&"align".concat((0,d.Z)(t)),n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,l.Z)(s,p,a)})(T);return(0,m.jsx)(y,(0,o.Z)({as:O,ref:t,ownerState:T,className:(0,a.Z)(I.root,f)},_))}))},50427:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={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"}},5519:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={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"}},90282:(e,t,n)=>{"use strict";n.d(t,{Z:()=>D});var r=n(87462),o=n(63366),i=n(46189),a=n(82466),s=n(85080),l=n(87416),c=n(60104);var u=n(12065);const d={black:"#000",white:"#fff"};var h=n(5519);const 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"};var g=n(50427);const 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)",disabledBackgroun
2d:"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 k(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.$n)(e.main,o):"dark"===t&&(e.dark=(0,u._j)(e.main,i)))}function S(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,o.Z)(e,b),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g.Z[200],light:g.Z[50],dark:g.Z[400]}:{main:g.Z[700],light:g.Z[400],dark:g.Z[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]}:{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),C=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),_=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),T=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 O(e){return(0,u.mi)(e,x.text.primary)>=n?x.text.primary:w.text.primary}const I=e=>{let{color:t,name:n,mainShade:o=500,lightShade:a=300,darkShade:l=700}=e;if(t=(0,r.Z)({},t),!t.main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error((0,i.Z)(11,n?" (".concat(n,")"):"",o));if("string"!==typeof t.main)throw new Error((0,i.Z)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return k(t,"light",a,s),k(t,"dark",l,s),t.contrastText||(t.contrastText=O(t.main)),t},A={dark:x,light:w};return(0,a.Z)((0,r.Z)({common:(0,r.Z)({},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:T,name:"warning"}),info:I({color:C,name:"info"}),success:I({color:_,name:"success"}),grey:h.Z,contrastThreshold:n,getContrastText:O,augmentColor:I,tonalOffset:s},A[t]),l)}const E=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const C={textTransform:"uppercase"},_='"Roboto", "Helvetica", "Arial", sans-serif';function T(e,t){const n="function"===typeof t?t(e):t,{fontFamily:i=_,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:f,pxToRem:p}=n,m=(0,o.Z)(n,E);const g=s/14,y=p||(e=>"".concat(e/h*g,"rem")),v=(e,t,n,o,a)=>{return(0,r.Z)({fontFamily:i,fontWeight:e,fontSize:y(t),lineHeight:n},i===_?{letterSpacing:"".concat((s=o/t,Math.round(1e5*s)/1e5),"em")}:{},a,f);var s},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,C),caption:v(c,12,1.66,.4),overline:v(c,12,2.66,1,C),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.Z)((0,r.Z)({htmlFontSize:h,pxToRem:y,fontFamily:i,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},b),m,{clone:!1})}function O(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const I=["none",O(0,2,1,-1,0,1,1,0,0,1,3,0),O(0,3,1,-2,0,2,2,0,0,1,5,0),O(0,3,3,-2,0,3,4,0,0,1,8,0),O(0,2,4,-1,0,4,5,0,0,1,10,0),O(0,3,5,-1,0,5,8,0,0,1,14,0),O(0,3,5,-1,0,6,10,0,0,1,18,0),O(0,4,5,-2,0,7,10,1,0,2,16,1),O(0,5,5,-3,0,8,10,1,0,3,14,2),O(0,5,6,-3,0,9,12,1,0,3,16,2),O(0,6,6,-3,0,10,14,1,0,4,18,3),O(0,6,7,-4,0,11,15,1,0,4,20,3),O(0,7,8,-4,0,12,17,2,0,5,22,4),O(0,7,8,-4,0,13,19,2,0,5,24,4),O(0,7,9,-4,0,14,21,2,0,5,26,4),O(0,8,9,-5,0,15,22,2,0,6,28,5),O(0,8,10,-5,0,16,24,2,0,6,30,5),O(0,8,11,-5,0,17,26,2,0,6,32,5),O(0,9,11,-5,0,18,28,2,0,7,34,6),O(0,9,12,-6,0,19,29,2,0,7,36,6
2),O(0,10,13,-6,0,20,31,3,0,8,38,7),O(0,10,13,-6,0,21,33,3,0,8,40,7),O(0,10,14,-6,0,22,35,3,0,8,42,7),O(0,11,14,-7,0,23,36,3,0,9,44,8),O(0,11,15,-7,0,24,38,3,0,9,46,8)];var A=n(81314);const P={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},R=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function N(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:n={},transitions:u={},typography:d={}}=e,h=(0,o.Z)(e,R);if(e.vars)throw new Error((0,i.Z)(18));const f=S(n),p=(0,s.Z)(e);let m=(0,a.Z)(p,{mixins:(g=p.breakpoints,y=t,(0,r.Z)({toolbar:{minHeight:56,[g.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[g.up("sm")]:{minHeight:64}}},y)),palette:f,shadows:I.slice(),typography:T(f,d),transitions:(0,A.ZP)(u),zIndex:(0,r.Z)({},P)});var g,y;m=(0,a.Z)(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.Z)(e,t)),m),m.unstable_sxConfig=(0,r.Z)({},l.Z,null==h?void 0:h.unstable_sxConfig),m.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},m}const D=N},81314:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>u,x9:()=>s});var r=n(63366),o=n(87462);const i=["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)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return"".concat(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,o.Z)({},a,e.easing),n=(0,o.Z)({},s,e.duration);return(0,o.Z)({getAutoHeightDuration:c,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:a=n.standard,easing:s=t.easeInOut,delay:c=0}=o;(0,r.Z)(o,i);return(Array.isArray(e)?e:[e]).map((e=>"".concat(e," ").concat("string"===typeof a?a:l(a)," ").concat(s," ").concat("string"===typeof c?c:l(c)))).join(",")}},e,{easing:t,duration:n})}},36482:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(90282).Z)()},988:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="$$material"},66934:(e,t,n)=>{"use strict";n.d(t,{Dz:()=>s,FO:()=>a,ZP:()=>l});var r=n(44046),o=n(36482),i=n(988);const a=e=>(0,r.x9)(e)&&"classes"!==e,s=r.x9,l=(0,r.ZP)({themeId:i.Z,defaultTheme:o.Z,rootShouldForwardProp:a})},13967:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});n(72791);var r=n(30418),o=n(36482),i=n(988);function a(){const e=(0,r.Z)(o.Z);return e[i.Z]||e}},31402:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(86083),o=n(36482),i=n(988);function a(e){let{props:t,name:n}=e;return(0,r.Z)({props:t,name:n,defaultTheme:o.Z,themeId:i.Z})}},4999:(e,t,n)=>{"use strict";n.d(t,{C:()=>o,n:()=>r});const r=e=>e.scrollTop;function o(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"===typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"===typeof i?i[t.mode]:i,delay:a.transitionDelay}}},95193:(e,t,n)=>{"use strict";var r;n.d(t,{Z:()=>d});var o=n(72791),i=n(69120),a=n(33073),s=n(40162);function l(e,t,n,r,i){const[a,l]=o.useState((()=>i&&n?n(e).matches:r?r(e).matches:t));return(0,s.Z)((()=>{let t=!0;if(!n)return;const r=n(e),o=()=>{t&&l(r.matches)};return o(),r.addListener(o),()=>{t=!1,r.removeListener(o)}}),[e,n]),a}const c=(r||(r=n.t(o,2))).useSyncExternalStore;function u(e,t,n,r,i){const a=o.useCallback((()=>t),[t]),s=o.useMemo((()=>{if(i&&n)return()=>n(e).matches;if(null!==r){const{matches:t}=r(e);return()=>t}return a}),[a,e,r,i,n]),[l,u]=o.useMemo((()=>{if(null===n)return[a,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[a,n,e]);return c(u,l,s)}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,i.Z)(),r="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,{defaultMatches:o=!1,matchMedia:s=(r?window.matchMedia:null),ssrMatchMedia:d=null,noSsr:h=!1}=(0,a.Z)({name:"MuiUseMediaQuery",props:t,theme:n});let f="function"===typeof e?e(n):e;f=f.replace(/^@media( ?)/m,"");return(void 0!==c?u:l)(f,o,s,d,h)}},14036:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(31122).Z},31260:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(78949).Z}
2,76189:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r=n(87462),o=n(72791),i=n(63366),a=n(63733),s=n(94419),l=n(14036),c=n(31402),u=n(66934),d=n(75878),h=n(21217);function f(e){return(0,h.Z)("MuiSvgIcon",e)}(0,d.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var p=n(80184);const m=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=(0,u.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t["color".concat((0,l.Z)(n.color))],t["fontSize".concat((0,l.Z)(n.fontSize))]]}})((e=>{let{theme:t,ownerState:n}=e;var r,o,i,a,s,l,c,u,d,h,f,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:n.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=t.transitions)||null==(o=r.create)?void 0:o.call(r,"fill",{duration:null==(i=t.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=t.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=t.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=t.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[n.fontSize],color:null!=(h=null==(f=(t.vars||t).palette)||null==(f=f[n.color])?void 0:f.main)?h:{action:null==(p=(t.vars||t).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(m=(t.vars||t).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[n.color]}})),y=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiSvgIcon"}),{children:u,className:d,color:h="inherit",component:y="svg",fontSize:v="medium",htmlColor:b,inheritViewBox:w=!1,titleAccess:x,viewBox:k="0 0 24 24"}=n,S=(0,i.Z)(n,m),E=o.isValidElement(u)&&"svg"===u.type,C=(0,r.Z)({},n,{color:h,component:y,fontSize:v,instanceFontSize:e.fontSize,inheritViewBox:w,viewBox:k,hasSvgAsChild:E}),_={};w||(_.viewBox=k);const T=(e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root","inherit"!==t&&"color".concat((0,l.Z)(t)),"fontSize".concat((0,l.Z)(n))]};return(0,s.Z)(o,f,r)})(C);return(0,p.jsxs)(g,(0,r.Z)({as:y,className:(0,a.Z)(T.root,d),focusable:"false",color:b,"aria-hidden":!x||void 0,role:x?"img":void 0,ref:t},_,S,E&&u.props,{ownerState:C,children:[E?u.props.children:u,x?(0,p.jsx)("title",{children:x}):null]}))}));y.muiName="SvgIcon";const v=y;function b(e,t){function n(n,o){return(0,p.jsx)(v,(0,r.Z)({"data-testid":"".concat(t,"Icon"),ref:o},n,{children:e}))}return n.muiName=v.muiName,o.memo(o.forwardRef(n))}},83199:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(82254).Z},28610:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>o.Z,createChainedFunction:()=>i.Z,createSvgIcon:()=>a.Z,debounce:()=>s.Z,deprecatedPropType:()=>l,isMuiElement:()=>c.Z,ownerDocument:()=>u.Z,ownerWindow:()=>d.Z,requirePropFactory:()=>h,setRef:()=>f,unstable_ClassNameGenerator:()=>x,unstable_useEnhancedEffect:()=>p.Z,unstable_useId:()=>m.Z,unsupportedProp:()=>g,useControlled:()=>y.Z,useEventCallback:()=>v.Z,useForkRef:()=>b.Z,useIsFocusVisible:()=>w.Z});var r=n(55902),o=n(14036),i=n(31260),a=n(76189),s=n(83199);const l=function(e,t){return()=>null};var c=n(19103),u=n(98301),d=n(17602);n(87462);const h=function(e,t){return()=>null};const f=n(62971).Z;var p=n(40162),m=n(67384);const g=function(e,t,n,r,o){return null};var y=n(98278),v=n(89683),b=n(42071),w=n(68221);const x={configure:e=>{r.Z.configure(e)}}},19103:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(72791);const o=function(e,t){var n,o;return r.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(o=e.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}},98301:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(84913).Z},17602:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(65202).Z},98278:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(88637).Z},40162:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(62876).Z},89683:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(97054).Z},42071:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(6117).Z},67384:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(18252).Z},68221:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(45372).Z},65917:(e,t,n)=>{"use strict";n.d(t,{Co:()=>i,ZP:()=>
2o});var r=n(50225);function o(e,t){return(0,r.Z)(e,t)}const i=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},51184:(e,t,n)=>{"use strict";n.d(t,{L7:()=>l,P$:()=>u,VO:()=>o,W8:()=>s,dt:()=>c,k9:()=>a});var r=n(82466);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>"@media (min-width:".concat(o[e],"px)")};function a(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||i;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"===typeof t){const e=r.breakpoints||i;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||o).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function s(){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=s(e);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];const a=[t,...o].reduce(((e,t)=>(0,r.Z)(e,t)),{});return l(Object.keys(t),a)}function u(e){let{values:t,breakpoints:n,base:r}=e;const o=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),i=Object.keys(o);if(0===i.length)return t;let a;return i.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)),{})}},12065:(e,t,n)=>{"use strict";n.d(t,{$n:()=>d,Fq:()=>c,_4:()=>h,_j:()=>u,mi:()=>l});var r=n(46189);function o(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 Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);const t=new RegExp(".{1,".concat(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".concat(4===n.length?"a":"","(").concat(n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", "),")"):""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));let o,a=e.substring(t+1,e.length-1);if("color"===n){if(a=a.split(" "),o=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error((0,r.Z)(10,o))}else a=a.split(",");return a=a.map((e=>parseFloat(e))),{type:n,values:a,colorSpace:o}}function a(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]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function s(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-s*Math.max(Math.min(t-3,9-t,1),-1)};let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),a({type:c,values:u})}(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 l(e,t){const n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,a(e)}function u(e,t){if(e=i(e),t=o(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 a(e)}function d(e,t){if(e=i(e),t=o(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 a(e)}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return s(e)>.5?u(e,t):d(e,t)}},44046:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>C,x9:()=>b});var r=n(63366),o=n(87462),i=n(65917),a=n(82466),s=n(85080),l=n(31122);const c=["variant"];function u(e){return 0===e.length}function d(e){const{variant:t}=e,n=(0,r.Z)(e,c);let o=t||"";
2return Object.keys(n).sort().forEach((t=>{o+="color"===t?u(o)?e[t]:(0,l.Z)(e[t]):"".concat(u(o)?t:(0,l.Z)(t)).concat((0,l.Z)(e[t].toString()))})),o}var h=n(60104);const f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const p=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,m=e=>{const t={};return e&&e.forEach((e=>{const n=d(e.props);t[n]=e.style})),t},g=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),m(n)},y=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach((n=>{let i=!0;Object.keys(n.props).forEach((t=>{r[t]!==n.props[t]&&e[t]!==n.props[t]&&(i=!1)})),i&&o.push(t[d(n.props)])})),o},v=(e,t,n,r)=>{var o;const i=null==n||null==(o=n.components)||null==(o=o[r])?void 0:o.variants;return y(e,t,i)};function b(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const w=(0,s.Z)(),x=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function k(e){let{defaultTheme:t,theme:n,themeId:r}=e;return o=n,0===Object.keys(o).length?t:n[r]||n;var o}function S(e){return e?(t,n)=>n[e]:null}const E=e=>{let{styledArg:t,props:n,defaultTheme:r,themeId:i}=e;const a=t((0,o.Z)({},n,{theme:k((0,o.Z)({},n,{defaultTheme:r,themeId:i}))}));let s;if(a&&a.variants&&(s=a.variants,delete a.variants),s){return[a,...y(n,m(s),s)]}return a};function C(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=w,rootShouldForwardProp:s=b,slotShouldForwardProp:l=b}=e,c=e=>(0,h.Z)((0,o.Z)({},e,{theme:k((0,o.Z)({},e,{defaultTheme:n,themeId:t}))}));return c.__mui_systemSx=!0,function(e){let u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.Co)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:h,skipVariantsResolver:w,skipSx:C,overridesResolver:_=S(x(h))}=u,T=(0,r.Z)(u,f),O=void 0!==w?w:h&&"Root"!==h&&"root"!==h||!1,I=C||!1;let A=b;"Root"===h||"root"===h?A=s:h?A=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(A=void 0);const P=(0,i.ZP)(e,(0,o.Z)({shouldForwardProp:A,label:undefined},T)),R=function(r){for(var i=arguments.length,s=new Array(i>1?i-1:0),l=1;l<i;l++)s[l-1]=arguments[l];const u=s?s.map((e=>{if("function"===typeof e&&e.__emotion_real!==e)return r=>E({styledArg:e,props:r,defaultTheme:n,themeId:t});if((0,a.P)(e)){let t,n=e;return e&&e.variants&&(t=e.variants,delete n.variants,n=n=>{let r=e;return y(n,m(t),t).forEach((e=>{r=(0,a.Z)(r,e)})),r}),n}return e})):[];let h=r;if((0,a.P)(r)){let e;r&&r.variants&&(e=r.variants,delete h.variants,h=t=>{let n=r;return y(t,m(e),e).forEach((e=>{n=(0,a.Z)(n,e)})),n})}else"function"===typeof r&&r.__emotion_real!==r&&(h=e=>E({styledArg:r,props:e,defaultTheme:n,themeId:t}));d&&_&&u.push((e=>{const r=k((0,o.Z)({},e,{defaultTheme:n,themeId:t})),i=p(d,r);if(i){const t={};return Object.entries(i).forEach((n=>{let[i,a]=n;t[i]="function"===typeof a?a((0,o.Z)({},e,{theme:r})):a})),_(e,t)}return null})),d&&!O&&u.push((e=>{const r=k((0,o.Z)({},e,{defaultTheme:n,themeId:t}));return v(e,g(d,r),r,d)})),I||u.push(c);const f=u.length-s.length;if(Array.isArray(r)&&f>0){const e=new Array(f).fill("");h=[...r,...e],h.raw=[...r.raw,...e]}const b=P(h,...u);return e.muiName&&(b.muiName=e.muiName),b};return P.withConfig&&(R.withConfig=P.withConfig),R}}},85080:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(87462),o=n(63366),i=n(82466);const a=["values","unit","step"],s=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,r.Z)({},e,{[t.key]:t.val})),{})};const l={borderRadius:4};var c=n(45682);var u=n(60104),d=n(87416);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,o.Z)(e,h),g=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5}=e,l=(0,o.Z)(e,a),c=s(t),u=Object.keys(c);function d(e){const r="number"===typeof t[e]?t[e]:e;return"@media (min-width:".concat(r).concat(n,")")}function h(e){const r="number"===typeof t[e]?t[e]:e;return"@media (max-width:".concat(r-i/100).concat(n,")")}function f(e,r){const o=u.indexOf(r);return"@media (min-width:".concat("number"===typeof t[e]?t[e]:e).concat(n,") and ")+"(max-width:".concat((-1!==o&&"number"===typeof t[u[o]]?t[u[o]]:r)-i/100).concat(n,")")}return(0,r.Z)({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)}(t),y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,c.hB)({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?"".concat(n,"px"):n})).join(" ")};return n.mui=!0,n}(f);let v=(0,i.Z)({breakpoints:g,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},n),spacing:y,shape:(0,r.Z)({},l,p)},m);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,i.Z)(e,t)),v),v.unstable_sxConfig=(0,r.Z)({},d.Z,null==m?void 0:m.unstable_sxConfig),v.unstable_sx=function(e){return(0,u.Z)({sx:e,theme:this})},v}},98247:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(82466);const o=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},45682:(e,t,n)=>{"use strict";n.d(t,{hB:()=>p,eI:()=>f,NA:()=>m,e6:()=>v,o3:()=>b});var r=n(51184),o=n(18529),i=n(98247);const a={m:"margin",p:"padding"},s={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],o=s[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),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 i;const a=null!=(i=(0,o.DW)(e,t,!1))?i: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:"-".concat(n)}function g(e,t,n,o){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=m(t,n),e)),{})}(c(n),o),a=e[n];return(0,r.k9)(e,a,i)}function y(e,t){const n=p(e.theme);return Object.keys(e).map((r=>g(e,t,r,n))).reduce(i.Z,{})}function v(e){return y(e,u)}function b(e){return y(e,d)}function w(e){return y(e,h)}
2v.propTypes={},v.filterProps=u,b.propTypes={},b.filterProps=d,w.propTypes={},w.filterProps=h},18529:(e,t,n)=>{"use strict";n.d(t,{DW:()=>i,Jq:()=>a,ZP:()=>s});var r=n(31122),o=n(51184);function i(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.".concat(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,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||o:i(e,n)||o,t&&(r=t(r,o,e)),r}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=i(e.theme,s)||{};return(0,o.k9)(e,c,(e=>{let o=a(u,l,e);return e===o&&"string"===typeof e&&(o=a(u,l,"".concat(t).concat("default"===e?"":(0,r.Z)(e)),e)),!1===n?o:{[n]:o}}))};return c.propTypes={},c.filterProps=[t],c}},87416:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var r=n(45682),o=n(18529),i=n(98247);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)),{}),o=e=>Object.keys(e).reduce(((t,n)=>r[n]?(0,i.Z)(t,r[n](e)):t),{});return o.propTypes={},o.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),o};var s=n(51184);function l(e){return"number"!==typeof e?e:"".concat(e,"px solid")}const c=(0,o.ZP)({prop:"border",themeKey:"borders",transform:l}),u=(0,o.ZP)({prop:"borderTop",themeKey:"borders",transform:l}),d=(0,o.ZP)({prop:"borderRight",themeKey:"borders",transform:l}),h=(0,o.ZP)({prop:"borderBottom",themeKey:"borders",transform:l}),f=(0,o.ZP)({prop:"borderLeft",themeKey:"borders",transform:l}),p=(0,o.ZP)({prop:"borderColor",themeKey:"palette"}),m=(0,o.ZP)({prop:"borderTopColor",themeKey:"palette"}),g=(0,o.ZP)({prop:"borderRightColor",themeKey:"palette"}),y=(0,o.ZP)({prop:"borderBottomColor",themeKey:"palette"}),v=(0,o.ZP)({prop:"borderLeftColor",themeKey:"palette"}),b=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.eI)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r.NA)(t,e)});return(0,s.k9)(e,e.borderRadius,n)}return null};b.propTypes={},b.filterProps=["borderRadius"];a(c,u,d,h,f,p,m,g,y,v,b);const w=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.eI)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r.NA)(t,e)});return(0,s.k9)(e,e.gap,n)}return null};w.propTypes={},w.filterProps=["gap"];const x=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.eI)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r.NA)(t,e)});return(0,s.k9)(e,e.columnGap,n)}return null};x.propTypes={},x.filterProps=["columnGap"];const k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.eI)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r.NA)(t,e)});return(0,s.k9)(e,e.rowGap,n)}return null};k.propTypes={},k.filterProps=["rowGap"];a(w,x,k,(0,o.ZP)({prop:"gridColumn"}),(0,o.ZP)({prop:"gridRow"}),(0,o.ZP)({prop:"gridAutoFlow"}),(0,o.ZP)({prop:"gridAutoColumns"}),(0,o.ZP)({prop:"gridAutoRows"}),(0,o.ZP)({prop:"gridTemplateColumns"}),(0,o.ZP)({prop:"gridTemplateRows"}),(0,o.ZP)({prop:"gridTemplateAreas"}),(0,o.ZP)({prop:"gridArea"}));function S(e,t){return"grey"===t?t:e}a((0,o.ZP)({prop:"color",themeKey:"palette",transform:S}),(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:S}),(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:S}));function E(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}const C=(0,o.ZP)({prop:"width",transform:E}),_=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.VO[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:"".concat(o).concat(e.theme.breakpoints.unit)}:{maxWidth:o}:{maxWidth:E(t)}};return(0,s.k9)(e,e.maxWidth,t)}return null};_.filterProps=["maxWidth"];const T=(0,o.ZP)({prop:"minWidth",transform:E}),O=(0,o.ZP)({prop:"height",transform:E}),I=(0,o.ZP)({prop:"maxHeight",transform:E}),A=(0,o.ZP)({prop:"minHeight",transform:E}),P=((0,o.ZP)({prop:"size",cssProperty:"width",transform:E}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:E}),a(C,_,T,O,I,A,(0,o.ZP)({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"},borderRadius:{themeKey:"shape.borderRadius",style:b},color:{themeKey:"palette",transform:S},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:S},backgroundColor:{themeKey:"palette",transform:S},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3}
2,paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},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:w},rowGap:{style:k},columnGap:{style:x},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:E},maxWidth:{style:_},minWidth:{transform:E},height:{transform:E},maxHeight:{transform:E},minHeight:{transform:E},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},78519:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(87462),o=n(63366),i=n(82466),a=n(87416);const s=["sx"],l=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:a.Z;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function c(e){const{sx:t}=e,n=(0,o.Z)(e,s),{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,i.P)(e)?(0,r.Z)({},a,e):a}:(0,r.Z)({},a,t),(0,r.Z)({},c,{sx:u})}},60104:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(31122),o=n(98247),i=n(18529),a=n(51184),s=n(87416);const l=function(){function e(e,t,n,o){const s={[e]:t,theme:n},l=o[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,i.DW)(n,u)||{};if(h)return h(s);return(0,a.k9)(s,t,(t=>{let n=(0,i.Jq)(f,d,t);return t===n&&"string"===typeof t&&(n=(0,i.Jq)(f,d,"".concat(e).concat("default"===t?"":(0,r.Z)(t)),t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:i,theme:l={}}=n||{};if(!i)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.Z;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 i=(0,a.W8)(l.breakpoints),s=Object.keys(i);let u=i;return Object.keys(r).forEach((n=>{const i=(s=r[n],d=l,"function"===typeof s?s(d):s);var s,d;if(null!==i&&void 0!==i)if("object"===typeof i)if(c[n])u=(0,o.Z)(u,e(n,i,l,c));else{const e=(0,a.k9)({theme:l},i,(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))),[]),o=new Set(r);return t.every((e=>o.size===Object.keys(e).length))}(e,i)?u=(0,o.Z)(u,e):u[n]=t({sx:i,theme:l})}else u=(0,o.Z)(u,e(n,i,l,c))})),(0,a.L7)(s,u)}return Array.isArray(i)?i.map(u):u(i)}}();l.filterProps=["sx"];const c=l},93457:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(44046).ZP)()},30418:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(85080),o=n(69120);const i=(0,r.Z)();const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return(0,o.Z)(e)}},33073:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(35735);function o(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,o):o}}
2,86083:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(33073),o=n(30418);function i(e){let{props:t,name:n,defaultTheme:i,themeId:a}=e,s=(0,o.Z)(i);a&&(s=s[a]||s);return(0,r.Z)({theme:s,name:n,props:t})}},69120:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(72791),o=n(62564);const i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=r.useContext(o.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},55902:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const r=e=>e,o=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},31122:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(46189);function o(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},94419:(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((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{Z:()=>r})},78949:(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),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}),(()=>{}))}n.d(t,{Z:()=>r})},82254:(e,t,n)=>{"use strict";function r(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];clearTimeout(t),t=setTimeout((()=>{e.apply(this,o)}),n)}return r.clear=()=>{clearTimeout(t)},r}n.d(t,{Z:()=>r})},82466:(e,t,n)=>{"use strict";n.d(t,{P:()=>o,Z:()=>a});var r=n(87462);function o(e){return null!==e&&"object"===typeof e&&e.constructor===Object}function i(e){if(!o(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=i(e[n])})),t}function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const s=n.clone?(0,r.Z)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(o(t[r])&&r in e&&o(e[r])?s[r]=a(e[r],t[r],n):n.clone?s[r]=o(t[r])?i(t[r]):t[r]:s[r]=t[r])})),s}},46189:(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,{Z:()=>r})},21217:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(55902);const o={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 i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const i=o[t];return i?"".concat(n,"-").concat(i):"".concat(r.Z.generate(e),"-").concat(t)}},75878:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(21217);function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const o={};return t.forEach((t=>{o[t]=(0,r.Z)(e,t,n)})),o}},57137:(e,t,n)=>{"use strict";function r(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}n.d(t,{Z:()=>r})},84913:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:()=>r})},65202:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(84913);function o(e){return(0,r.Z)(e).defaultView||window}},35735:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(87462);function o(e,t){const n=(0,r.Z)({},t);return Object.keys(e).forEach((i=>{if(i.toString().match(/^(components|slots)$/))n[i]=(0,r.Z)({},e[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const a=e[i]||{},s=t[i];n[i]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[i]=(0,r.Z)({},s),Object.keys(a).forEach((e=>{n[i][e]=o(a[e],s[e])}))):n[i]=s:n[i]=a}else void 0===n[i]&&(n[i]=e[i])})),n}},62971:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:()=>r})},88637:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(72791);
2function o(e){let{controlled:t,default:n,name:o,state:i="value"}=e;const{current:a}=r.useRef(void 0!==t),[s,l]=r.useState(n);return[a?t:s,r.useCallback((e=>{a||l(e)}),[])]}},62876:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(72791);const o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect},97054:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(72791),o=n(62876);const i=function(e){const t=r.useRef(e);return(0,o.Z)((()=>{t.current=e})),r.useRef((function(){return(0,t.current)(...arguments)})).current}},6117:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(72791),o=n(62971);function i(){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,o.Z)(t,e)}))}),t)}},18252:(e,t,n)=>{"use strict";var r;n.d(t,{Z:()=>s});var o=n(72791);let i=0;const a=(r||(r=n.t(o,2)))["useId".toString()];function s(e){if(void 0!==a){const t=a();return null!=e?e:t}return function(e){const[t,n]=o.useState(e),r=e||t;return o.useEffect((()=>{null==t&&(i+=1,n("mui-".concat(i)))}),[t]),r}(e)}},45372:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(72791);let o,i=!0,a=!1;const s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function c(){i=!1}function u(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return i||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!s[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function h(){const e=r.useCallback((e=>{null!=e&&function(e){e.addEventListener("keydown",l,!0),e.addEventListener("mousedown",c,!0),e.addEventListener("pointerdown",c,!0),e.addEventListener("touchstart",c,!0),e.addEventListener("visibilitychange",u,!0)}(e.ownerDocument)}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!d(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,window.clearTimeout(o),o=window.setTimeout((()=>{a=!1}),100),t.current=!1,!0)},ref:e}}},81694:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n))e.push(o.apply(null,n));else if("object"===i)for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}e.exports?e.exports=o:void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},59412:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(i){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(n)||[],r=1;r<t.length;r++)t=(e=o(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!==typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var n={"%FE%FF":"\ufffd\ufffd","%FF%FE":"\ufffd\ufffd"},o=r.exec(e);o;){try{n[o[0]]=decodeURIComponent(o[0])}catch(t){var a=i(o[0]);a!==o[0]&&(n[o[0]]=a)}o=r.exec(e)}n["%C2"]="\ufffd";for(var s=Object.keys(n),l=0;l<s.length;l++){var c=s[l];e=e.replace(new RegExp(c,"g"),n[c])}return e}(e)}}},35157:function(e){e.exports=function(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:o;return e===o?n:e}},78703:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,o,i){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&t(i,r.prototype),i},r.apply(null,arguments)}function o(e){return i(e)||a(e)||s(e)||c()}function i(e){if(Array.isArray(e))return l(e)}function a(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e,t){if(e){if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}
2var u=Object.hasOwnProperty,d=Object.setPrototypeOf,h=Object.isFrozen,f=Object.getPrototypeOf,p=Object.getOwnPropertyDescriptor,m=Object.freeze,g=Object.seal,y=Object.create,v="undefined"!==typeof Reflect&&Reflect,b=v.apply,w=v.construct;b||(b=function(e,t,n){return e.apply(t,n)}),m||(m=function(e){return e}),g||(g=function(e){return e}),w||(w=function(e,t){return r(e,o(t))});var x=R(Array.prototype.forEach),k=R(Array.prototype.pop),S=R(Array.prototype.push),E=R(String.prototype.toLowerCase),C=R(String.prototype.toString),_=R(String.prototype.match),T=R(String.prototype.replace),O=R(String.prototype.indexOf),I=R(String.prototype.trim),A=R(RegExp.prototype.test),P=N(TypeError);function R(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return b(e,t,r)}}function N(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return w(e,n)}}function D(e,t,n){var r;n=null!==(r=n)&&void 0!==r?r:E,d&&d(e,null);for(var o=t.length;o--;){var i=t[o];if("string"===typeof i){var a=n(i);a!==i&&(h(t)||(t[o]=a),i=a)}e[i]=!0}return e}function M(e){var t,n=y(null);for(t in e)!0===b(u,e,[t])&&(n[t]=e[t]);return n}function L(e,t){for(;null!==e;){var n=p(e,t);if(n){if(n.get)return R(n.get);if("function"===typeof n.value)return R(n.value)}e=f(e)}function r(e){return console.warn("fallback value for",e),null}return r}var Z=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),j=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),F=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),z=m(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),U=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),B=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),V=m(["#text"]),H=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
2spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),W=m(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),q=m(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),G=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),K=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Q=g(/<%[\w\W]*|[\w\W]*%>/gm),Y=g(/\${[\w\W]*}/gm),$=g(/^data-[\-\w.\u00B7-\uFFFF]+$/),X=g(/^aria-[\-\w]+$/),J=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ee=g(/^(?:\w+script|data):/i),te=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ne=g(/^html$/i),re=g(/^[a-z][.\w]*(-[.\w]+)+$/i),oe=function(){return"undefined"===typeof window?null:window},ie=function(t,n){if("object"!==e(t)||"function"!==typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(a){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function ae(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe(),n=function(e){return ae(e)};if(n.version="2.5.8",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,i=t.document,a=t.DocumentFragment,s=t.HTMLTemplateElement,l=t.Node,c=t.Element,u=t.NodeFilter,d=t.NamedNodeMap,h=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,f=t.HTMLFormElement,p=t.DOMParser,g=t.trustedTypes,y=c.prototype,v=L(y,"cloneNode"),b=L(y,"nextSibling"),w=L(y,"childNodes"),R=L(y,"parentNode");if("function"===typeof s){var N=i.createElement("template");N.content&&N.content.ownerDocument&&(i=N.content.ownerDocument)}var se=ie(g,r),le=se?se.createHTML(""):"",ce=i,ue=ce.implementation,de=ce.createNodeIterator,he=ce.createDocumentFragment,fe=ce.getElementsByTagName,pe=r.importNode,me={};try{me=M(i).documentMode?i.documentMode:{}}catch(Lt){}var ge={};n.isSupported="function"===typeof R&&ue&&void 0!==ue.createHTMLDocument&&9!==me;var ye,ve,be=K,we=Q,xe=Y,ke=$,Se=X,Ee=ee,Ce=te,_e=re,Te=J,Oe=null,Ie=D({},[].concat(o(Z),o(j),o(F),o(U),o(V))),Ae=null,Pe=D({},[].concat(o(H),o(W),o(q),o(G))),Re=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ne=null,De=null,Me=!0,Le=!0,Ze=!1,je=!0,Fe=!1,ze=!0,Ue=!1,Be=!1,Ve=!1,He=!1,We=!1,qe=!1,Ge=!0,Ke=!1,Qe="user-content-",Ye=!0,$e=!1,Xe={},Je=null,et=D({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),tt=null,nt=D({},["audio","video","img","source","image","track"]),rt=null,ot=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),it="http://www.w3.org/1998/Math/MathML",at="http://www.w3.org/2000/svg",st="http://www.w3.org/1999/xhtml",lt=st,ct=!1,ut=null,dt=D({},[it,at,st],C),ht=["application/xhtml+xml","text/html"],ft="text/html",pt=null,mt=i.createElement("form"),gt=function(e){return e instanceof RegExp||e instanceof Function},yt=function(t){pt&&pt===t||(t&&"object"===e(t)||(t={}
vendor: 4,359 bytes, line 2
2),t=M(t),ye=ye=-1===ht.indexOf(t.PARSER_MEDIA_TYPE)?ft:t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===ye?C:E,Oe="ALLOWED_TAGS"in t?D({},t.ALLOWED_TAGS,ve):Ie,Ae="ALLOWED_ATTR"in t?D({},t.ALLOWED_ATTR,ve):Pe,ut="ALLOWED_NAMESPACES"in t?D({},t.ALLOWED_NAMESPACES,C):dt,rt="ADD_URI_SAFE_ATTR"in t?D(M(ot),t.ADD_URI_SAFE_ATTR,ve):ot,tt="ADD_DATA_URI_TAGS"in t?D(M(nt),t.ADD_DATA_URI_TAGS,ve):nt,Je="FORBID_CONTENTS"in t?D({},t.FORBID_CONTENTS,ve):et,Ne="FORBID_TAGS"in t?D({},t.FORBID_TAGS,ve):{},De="FORBID_ATTR"in t?D({},t.FORBID_ATTR,ve):{},Xe="USE_PROFILES"in t&&t.USE_PROFILES,Me=!1!==t.ALLOW_ARIA_ATTR,Le=!1!==t.ALLOW_DATA_ATTR,Ze=t.ALLOW_UNKNOWN_PROTOCOLS||!1,je=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Fe=t.SAFE_FOR_TEMPLATES||!1,ze=!1!==t.SAFE_FOR_XML,Ue=t.WHOLE_DOCUMENT||!1,He=t.RETURN_DOM||!1,We=t.RETURN_DOM_FRAGMENT||!1,qe=t.RETURN_TRUSTED_TYPE||!1,Ve=t.FORCE_BODY||!1,Ge=!1!==t.SANITIZE_DOM,Ke=t.SANITIZE_NAMED_PROPS||!1,Ye=!1!==t.KEEP_CONTENT,$e=t.IN_PLACE||!1,Te=t.ALLOWED_URI_REGEXP||Te,lt=t.NAMESPACE||st,Re=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&>(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Re.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&>(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Re.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Re.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Fe&&(Le=!1),We&&(He=!0),Xe&&(Oe=D({},o(V)),Ae=[],!0===Xe.html&&(D(Oe,Z),D(Ae,H)),!0===Xe.svg&&(D(Oe,j),D(Ae,W),D(Ae,G)),!0===Xe.svgFilters&&(D(Oe,F),D(Ae,W),D(Ae,G)),!0===Xe.mathMl&&(D(Oe,U),D(Ae,q),D(Ae,G))),t.ADD_TAGS&&(Oe===Ie&&(Oe=M(Oe)),D(Oe,t.ADD_TAGS,ve)),t.ADD_ATTR&&(Ae===Pe&&(Ae=M(Ae)),D(Ae,t.ADD_ATTR,ve)),t.ADD_URI_SAFE_ATTR&&D(rt,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(Je===et&&(Je=M(Je)),D(Je,t.FORBID_CONTENTS,ve)),Ye&&(Oe["#text"]=!0),Ue&&D(Oe,["html","head","body"]),Oe.table&&(D(Oe,["tbody"]),delete Ne.tbody),m&&m(t),pt=t)},vt=D({},["mi","mo","mn","ms","mtext"]),bt=D({},["annotation-xml"]),wt=D({},["title","style","font","a","script"]),xt=D({},j);D(xt,F),D(xt,z);var kt=D({},U);D(kt,B);var St=function(e){var t=R(e);t&&t.tagName||(t={namespaceURI:lt,tagName:"template"});var n=E(e.tagName),r=E(t.tagName);return!!ut[e.namespaceURI]&&(e.namespaceURI===at?t.namespaceURI===st?"svg"===n:t.namespaceURI===it?"svg"===n&&("annotation-xml"===r||vt[r]):Boolean(xt[n]):e.namespaceURI===it?t.namespaceURI===st?"math"===n:t.namespaceURI===at?"math"===n&&bt[r]:Boolean(kt[n]):e.namespaceURI===st?!(t.namespaceURI===at&&!bt[r])&&!(t.namespaceURI===it&&!vt[r])&&!kt[n]&&(wt[n]||!xt[n]):!("application/xhtml+xml"!==ye||!ut[e.namespaceURI]))},Et=function(e){S(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(Lt){try{e.outerHTML=le}catch(Lt){e.remove()}}},Ct=function(e,t){try{S(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(Lt){S(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ae[e])if(He||We)try{Et(t)}catch(Lt){}else try{t.setAttribute(e,"")}catch(Lt){}},_t=function(e){var t,n;if(Ve)e="<remove></remove>"+e;else{var r=_(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ye&<===st&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=se?se.createHTML(e):e;if(lt===st)try{t=(new p).parseFromString(o,ye)}catch(Lt){}if(!t||!t.documentElement){t=ue.createDocument(lt,"template",null);try{t.documentElement.innerHTML=ct?le:o}catch(Lt){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),lt===st?fe.call(t,Ue?"html":"body")[0]:Ue?t.documentElement:a},Tt=function(e){return de.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null,!1)},Ot=function(e){return e instanceof f&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof h)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},It=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"===typeof t.nodeType&&"string"===typeof t.nodeName}
2,At=function(e,t,r){ge[e]&&x(ge[e],(function(e){e.call(n,t,r,pt)}))},Pt=function(e){var t;if(At("beforeSanitizeElements",e,null),Ot(e))return Et(e),!0;if(A(/[\u0080-\uFFFF]/,e.nodeName))return Et(e),!0;var r=ve(e.nodeName);if(At("uponSanitizeElement",e,{tagName:r,allowedTags:Oe}),e.hasChildNodes()&&!It(e.firstElementChild)&&(!It(e.content)||!It(e.content.firstElementChild))&&A(/<[/\w]/g,e.innerHTML)&&A(/<[/\w]/g,e.textContent))return Et(e),!0;if("select"===r&&A(/<template/i,e.innerHTML))return Et(e),!0;if(7===e.nodeType)return Et(e),!0;if(ze&&8===e.nodeType&&A(/<[/\w]/g,e.data))return Et(e),!0;if(!Oe[r]||Ne[r]){if(!Ne[r]&&Nt(r)){if(Re.tagNameCheck instanceof RegExp&&A(Re.tagNameCheck,r))return!1;if(Re.tagNameCheck instanceof Function&&Re.tagNameCheck(r))return!1}if(Ye&&!Je[r]){var o=R(e)||e.parentNode,i=w(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a){var s=v(i[a],!0);s.__removalCount=(e.__removalCount||0)+1,o.insertBefore(s,b(e))}}return Et(e),!0}return e instanceof c&&!St(e)?(Et(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!A(/<\/no(script|embed|frames)/i,e.innerHTML)?(Fe&&3===e.nodeType&&(t=e.textContent,t=T(t,be," "),t=T(t,we," "),t=T(t,xe," "),e.textContent!==t&&(S(n.removed,{element:e.cloneNode()}),e.textContent=t)),At("afterSanitizeElements",e,null),!1):(Et(e),!0)},Rt=function(e,t,n){if(Ge&&("id"===t||"name"===t)&&(n in i||n in mt))return!1;if(Le&&!De[t]&&A(ke,t));else if(Me&&A(Se,t));else if(!Ae[t]||De[t]){if(!(Nt(e)&&(Re.tagNameCheck instanceof RegExp&&A(Re.tagNameCheck,e)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(e))&&(Re.attributeNameCheck instanceof RegExp&&A(Re.attributeNameCheck,t)||Re.attributeNameCheck instanceof Function&&Re.attributeNameCheck(t))||"is"===t&&Re.allowCustomizedBuiltInElements&&(Re.tagNameCheck instanceof RegExp&&A(Re.tagNameCheck,n)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(n))))return!1}else if(rt[t]);else if(A(Te,T(n,Ce,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==O(n,"data:")||!tt[e])if(Ze&&!A(Ee,T(n,Ce,"")));else if(n)return!1;return!0},Nt=function(e){return"annotation-xml"!==e&&_(e,_e)},Dt=function(t){var r,o,i,a;At("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s&&!Ot(t)){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ae};for(a=s.length;a--;){var c=r=s[a],u=c.name,d=c.namespaceURI;if(o="value"===u?r.value:I(r.value),i=ve(u),l.attrName=i,l.attrValue=o,l.keepAttr=!0,l.forceKeepAttr=void 0,At("uponSanitizeAttribute",t,l),o=l.attrValue,!l.forceKeepAttr&&(Ct(u,t),l.keepAttr))if(je||!A(/\/>/i,o)){Fe&&(o=T(o,be," "),o=T(o,we," "),o=T(o,xe," "));var h=ve(t.nodeName);if(Rt(h,i,o))if(!Ke||"id"!==i&&"name"!==i||(Ct(u,t),o=Qe+o),ze&&A(/((--!?|])>)|<\/(style|title)/i,o))Ct(u,t);else{if(se&&"object"===e(g)&&"function"===typeof g.getAttributeType)if(d);else switch(g.getAttributeType(h,i)){case"TrustedHTML":o=se.createHTML(o);break;case"TrustedScriptURL":o=se.createScriptURL(o)}try{d?t.setAttributeNS(d,u,o):t.setAttribute(u,o),Ot(t)?Et(t):k(n.removed)}catch(Lt){}}}else Ct(u,t)}At("afterSanitizeAttributes",t,null)}},Mt=function e(t){var n,r=Tt(t);for(At("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)At("uponSanitizeShadowNode",n,null),Pt(n),Dt(n),n.content instanceof a&&e(n.content);At("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(o){var i,s,c,u,d,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ct=!o)&&(o="\x3c!--\x3e"),"string"!==typeof o&&!It(o)){if("function"!==typeof o.toString)throw P("toString is not a function");if("string"!==typeof(o=o.toString()))throw P("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"===typeof t.toStaticHTML){if("string"===typeof o)return t.toStaticHTML(o);if(It(o))return t.toStaticHTML(o.outerHTML)}return o}if(Be||yt(h),n.removed=[],"string"===typeof o&&($e=!1),$e){if(o.nodeName){var f=ve(o.nodeName);if(!Oe[f]||Ne[f])throw P("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof l)1===(s=(i=_t("\x3c!----\x3e")).ownerDocument.importNode(o,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?i=s:i.appendChild(s);else{if(!He&&!Fe&&!Ue&&-1===o.indexOf("<"))return se&&qe?se.createHTML(o):o;if(!(i=_t(o)))return He?null:qe?le:""}i&&Ve&&Et(i.firstChild);for(var p=Tt($e?o:i);c=p.nextNode();)3===c.nodeType&&c===u||(Pt(c),Dt(c),c.content instanceof a&&Mt(c.content),u=c);if(u=null,$e)return o;if(He){if(We)for(d=he.call(i.ownerDocument);i.firstChild;)d.appendChild(i.firstChild);else d=i;return(Ae.shadowroot||Ae.shadowrootmod)&&(d=pe.call(r,d,!0)),d}var m=Ue?i.outerHTML:i.innerHTML;return Ue&&Oe["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&A(ne,i.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+m),Fe&&(m=T(m,be," "),m=T(m,we," "),m=T(m,xe," ")),se&&qe?se.createHTML(m):m},n.setConfig=function(e){yt(e),Be=!0},n.clearConfig=function(){pt=null,Be=!1},n.isValidAttribute=function(e,t,n){pt||yt({});var r=ve(e),o=ve(t);return Rt(r,o,n)},n.addHook=function(e,t){"function"===typeof t&&(ge[e]=ge[e]||[],S(ge[e],t))},n.removeHook=function(e){if(ge[e])return k(ge[e])},n.removeHooks=function(e){ge[e]&&(ge[e]=[])},n.removeAllHooks=function(){ge={}},n}return ae()}()},11132:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return"undefined"===typeof r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,c,u,d=arguments[0],h=1,f=arguments.length,p=!1;for("boolean"===typeof d&&(p=d,d=arguments[1]||{},h=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});h<f;++h)if(null!=(t=arguments[h]))for(n in t)r=l(d,n),d!==(o=l(t,n))&&(p&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,o)})):"undefined"!==typeof o&&s(d,{name:n,newValue:o}));return d}},12610:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createBrowserHistory:()=>E,createHashHistory:()=>A,createLocation:()=>g,createMemoryHistory:()=>R,createPath:()=>m,locationsAreEqual:()=>y,parsePath:()=>p});var r=n(87462);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&o(e),l=t&&o(t),c=s||l;if(e&&o(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,h=a.length;h>=0;h--){var f=a[h];"."===f?i(a,h):".."===f?(i(a,h),d++):d&&(i(a,h),d--)}if(!c)for(;d--;d)a.unshift("..");!c||""===a[0]||a[0]&&o(a[0])||a.unshift("");var p=a.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,n){if(t===n)return!0;
vendor: 6,352 bytes, line 2
2if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),o=s(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var c=n(44554);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function h(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function f(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function p(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}function m(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function g(e,t,n,o){var i;"string"===typeof e?(i=p(e)).state=t:(void 0===(i=(0,r.Z)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function y(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var b=!("undefined"===typeof window||!window.document||!window.document.createElement);function w(e,t){t(window.confirm(e))}var x="popstate",k="hashchange";function S(){try{return window.history.state||{}}catch(e){return{}}}function E(e){void 0===e&&(e={}),b||(0,c.Z)(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,s=void 0!==a&&a,l=i.getUserConfirmation,d=void 0===l?w:l,p=i.keyLength,y=void 0===p?6:p,E=e.basename?f(u(e.basename)):"";function C(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return E&&(i=h(i,E)),g(i,r,n)}function _(){return Math.random().toString(36).substr(2,y)}var T=v();function O(e){(0,r.Z)(z,e),z.length=t.length,T.notifyListeners(z.location,z.action)}function I(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||R(C(e.state))}function A(){R(C(S()))}var P=!1;function R(e){if(P)P=!1,O();else{T.confirmTransitionTo(e,"POP",d,(function(t){t?O({action:"POP",location:e}):function(e){var t=z.location,n=D.indexOf(t.key);-1===n&&(n=0);var r=D.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(P=!0,L(o))}(e)}))}}var N=C(S()),D=[N.key];function M(e){return E+m(e)}function L(e){t.go(e)}var Z=0;function j(e){1===(Z+=e)&&1===e?(window.addEventListener(x,I),o&&window.addEventListener(k,A)):0===Z&&(window.removeEventListener(x,I),o&&window.removeEventListener(k,A))}var F=!1;var z={length:t.length,action:"POP",location:N,createHref:M,push:function(e,r){var o="PUSH",i=g(e,r,_(),z.location);T.confirmTransitionTo(i,o,d,(function(e){if(e){var r=M(i),a=i.key,l=i.state;if(n)if(t.pushState({key:a,state:l},null,r),s)window.location.href=r;else{var c=D.indexOf(z.location.key),u=D.slice(0,c+1);u.push(i.key),D=u,O({action:o,location:i})}else window.location.href=r}}))},replace:function(e,r){var o="REPLACE",i=g(e,r,_(),z.location);T.confirmTransitionTo(i,o,d,(function(e){if(e){var r=M(i),a=i.key,l=i.state;if(n)if(t.replaceState({key:a,state:l},null,r),s)window.location.replace(r);else{var c=D.indexOf(z.location.key);-1!==c&&(D[c]=i.key),O({action:o,location:i})}else window.location.replace(r)}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&(e=!1);var t=T.setPrompt(e);return F||(j(1),F=!0),function(){return F&&(F=!1,j(-1)),t()}},listen:function(e){var t=T.appendListener(e);return j(1),function(){j(-1),t()}}};return z}var C="hashchange",_={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:u},slash:{encodePath:u,decodePath:u}};function T(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function O(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function I(e){window.location.replace(T(window.location.href)+"#"+e)}function A(e){void 0===e&&(e={}),b||(0,c.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,i=void 0===o?w:o,a=n.hashType,s=void 0===a?"slash":a,l=e.basename?f(u(e.basename)):"",d=_[s],p=d.encodePath,y=d.decodePath;function x(){var e=y(O());return l&&(e=h(e,l)),g(e)}var k=v();function S(e){(0,r.Z)(z,e),z.length=t.length,k.notifyListeners(z.location,z.action)}var E=!1,A=null;function P(){var e,t,n=O(),r=p(n);if(n!==r)I(r);else{var o=x(),a=z.location;if(!E&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===m(o))return;A=null,function(e){if(E)E=!1,S();else{var t="POP";k.confirmTransitionTo(e,t,i,(function(n){n?S({action:t,location:e}):function(e){var t=z.location,n=M.lastIndexOf(m(t));-1===n&&(n=0);var r=M.lastIndexOf(m(e));-1===r&&(r=0);var o=n-r;o&&(E=!0,L(o))}(e)}))}}(o)}}var R=O(),N=p(R);R!==N&&I(N);
2var D=x(),M=[m(D)];function L(e){t.go(e)}var Z=0;function j(e){1===(Z+=e)&&1===e?window.addEventListener(C,P):0===Z&&window.removeEventListener(C,P)}var F=!1;var z={length:t.length,action:"POP",location:D,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=T(window.location.href)),n+"#"+p(l+m(e))},push:function(e,t){var n="PUSH",r=g(e,void 0,void 0,z.location);k.confirmTransitionTo(r,n,i,(function(e){if(e){var t=m(r),o=p(l+t);if(O()!==o){A=t,function(e){window.location.hash=e}(o);var i=M.lastIndexOf(m(z.location)),a=M.slice(0,i+1);a.push(t),M=a,S({action:n,location:r})}else S()}}))},replace:function(e,t){var n="REPLACE",r=g(e,void 0,void 0,z.location);k.confirmTransitionTo(r,n,i,(function(e){if(e){var t=m(r),o=p(l+t);O()!==o&&(A=t,I(o));var i=M.indexOf(m(z.location));-1!==i&&(M[i]=t),S({action:n,location:r})}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&(e=!1);var t=k.setPrompt(e);return F||(j(1),F=!0),function(){return F&&(F=!1,j(-1)),t()}},listen:function(e){var t=k.appendListener(e);return j(1),function(){j(-1),t()}}};return z}function P(e,t,n){return Math.min(Math.max(e,t),n)}function R(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,a=t.initialIndex,s=void 0===a?0:a,l=t.keyLength,c=void 0===l?6:l,u=v();function d(e){(0,r.Z)(w,e),w.length=w.entries.length,u.notifyListeners(w.location,w.action)}function h(){return Math.random().toString(36).substr(2,c)}var f=P(s,0,i.length-1),p=i.map((function(e){return g(e,void 0,"string"===typeof e?h():e.key||h())})),y=m;function b(e){var t=P(w.index+e,0,w.entries.length-1),r=w.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var w={length:p.length,action:"POP",location:p[f],index:f,entries:p,createHref:y,push:function(e,t){var r="PUSH",o=g(e,t,h(),w.location);u.confirmTransitionTo(o,r,n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),d({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=g(e,t,h(),w.location);u.confirmTransitionTo(o,r,n,(function(e){e&&(w.entries[w.index]=o,d({action:r,location:o}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return w}},62110:(e,t,n)=>{"use strict";var r=n(48309),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={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},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[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 o=f(n);o&&o!==p&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var y=a[g];if(!i[y]&&(!r||!r[y])&&(!m||!m[y])&&(!s||!s[y])){var v=h(n,y);try{c(t,y,v)}catch(b){}}}}return t}},746:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=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 i:case s: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 o:return t}}}function k(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=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||x(e)===u},t.isConcurrentMode=k,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)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},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===i||e===d||e===s||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},48309:(e,t,n)=>{"use strict";e.exports=n(746)},11065:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;
2\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,h=1;function f(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");h=~r?e.length-r:h+e.length}function p(){var e={line:d,column:h};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:h},this.source=l.source}m.prototype.content=e;var g=[];function y(t){var n=new Error(l.source+":"+d+":"+h+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=h,n.source=e,!l.silent)throw n;g.push(n)}function v(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function b(){v(r)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return h+=2,f(r),e=e.slice(n),h+=2,t({type:"comment",comment:r})}}function k(){var e=p(),n=v(o);if(n){if(x(),!v(i))return y("property missing ':'");var r=v(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return v(s),l}}return b(),function(){var e,t=[];for(w(t);e=k();)!1!==e&&(t.push(e),w(t));return t}()}},25586:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},87357:(e,t,n)=>{var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Function]",s="[object GeneratorFunction]",l="[object Symbol]",c=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,d="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,h="object"==typeof self&&self&&self.Object===Object&&self,f=d||h||Function("return this")();function p(e,t){return!!(e?e.length:0)&&function(e,t,n){if(t!==t)return function(e,t,n,r){var o=e.length,i=n+(r?1:-1);for(;r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}(e,v,n);var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,0)>-1}function m(e,t,n){for(var r=-1,o=e?e.length:0;++r<o;)if(n(t,e[r]))return!0;return!1}function g(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function y(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function v(e){return e!==e}function b(e,t){return e.has(t)}function w(e,t){return function(n){return e(t(n))}}var x=Array.prototype,k=Function.prototype,S=Object.prototype,E=f["__core-js_shared__"],C=function(){var e=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),_=k.toString,T=S.hasOwnProperty,O=S.toString,I=RegExp("^"+_.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),A=f.Symbol,P=w(Object.getPrototypeOf,Object),R=S.propertyIsEnumerable,N=x.splice,D=A?A.isConcatSpreadable:void 0,M=Object.getOwnPropertySymbols,L=Math.max,Z=Y(f,"Map"),j=Y(Object,"create");function F(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function z(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function U(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function B(e){var t=-1,n=e?e.length:0;for(this.__data__=new U;++t<n;)this.add(e[t])}function V(e,t){var n=re(e)||ne(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!T.call(e,i)||o&&("length"==i||ee(i,r))||n.push(i);return n}function H(e,t){for(var n,r,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!==n&&r!==r)return o;return-1}function W(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=J),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?W(s,t-1,n,r,o):y(o,s):r||(o[o.length]=s)}return o}function q(e){if(!ae(e)||(t=e,C&&C in t))return!1;var t,n=ie(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?I:c;return n.test(function(e){if(null!=e){try{return _.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function G(e){if(!ae(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=function(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||S;return e===n}(e),n=[];
2for(var r in e)("constructor"!=r||!t&&T.call(e,r))&&n.push(r);return n}function K(e){return function(e,t,n){var r=t(e);return re(e)?r:y(r,n(e))}(e,le,X)}function Q(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Y(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return q(n)?n:void 0}F.prototype.clear=function(){this.__data__=j?j(null):{}},F.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},F.prototype.get=function(e){var t=this.__data__;if(j){var n=t[e];return n===r?void 0:n}return T.call(t,e)?t[e]:void 0},F.prototype.has=function(e){var t=this.__data__;return j?void 0!==t[e]:T.call(t,e)},F.prototype.set=function(e,t){return this.__data__[e]=j&&void 0===t?r:t,this},z.prototype.clear=function(){this.__data__=[]},z.prototype.delete=function(e){var t=this.__data__,n=H(t,e);return!(n<0)&&(n==t.length-1?t.pop():N.call(t,n,1),!0)},z.prototype.get=function(e){var t=this.__data__,n=H(t,e);return n<0?void 0:t[n][1]},z.prototype.has=function(e){return H(this.__data__,e)>-1},z.prototype.set=function(e,t){var n=this.__data__,r=H(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},U.prototype.clear=function(){this.__data__={hash:new F,map:new(Z||z),string:new F}},U.prototype.delete=function(e){return Q(this,e).delete(e)},U.prototype.get=function(e){return Q(this,e).get(e)},U.prototype.has=function(e){return Q(this,e).has(e)},U.prototype.set=function(e,t){return Q(this,e).set(e,t),this},B.prototype.add=B.prototype.push=function(e){return this.__data__.set(e,r),this},B.prototype.has=function(e){return this.__data__.has(e)};var $=M?w(M,Object):he,X=M?function(e){for(var t=[];e;)y(t,$(e)),e=P(e);return t}:he;function J(e){return re(e)||ne(e)||!!(D&&e&&e[D])}function ee(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||u.test(e))&&e>-1&&e%1==0&&e<t}function te(e){if("string"==typeof e||function(e){return"symbol"==typeof e||se(e)&&O.call(e)==l}(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}function ne(e){return function(e){return se(e)&&oe(e)}(e)&&T.call(e,"callee")&&(!R.call(e,"callee")||O.call(e)==i)}var re=Array.isArray;function oe(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!ie(e)}function ie(e){var t=ae(e)?O.call(e):"";return t==a||t==s}function ae(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function se(e){return!!e&&"object"==typeof e}function le(e){return oe(e)?V(e,!0):G(e)}var ce,ue,de=(ce=function(e,t){return null==e?{}:(t=g(W(t,1),te),function(e,t){return function(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=e[a];n(s,a)&&(i[a]=s)}return i}(e=Object(e),t,(function(t,n){return n in e}))}(e,function(e,t,n,r){var o,i=-1,a=p,s=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=g(t,(o=n,function(e){return o(e)}))),r?(a=m,s=!1):t.length>=200&&(a=b,s=!1,t=new B(t));e:for(;++i<l;){var d=e[i],h=n?n(d):d;if(d=r||0!==d?d:0,s&&h===h){for(var f=u;f--;)if(t[f]===h)continue e;c.push(d)}else a(t,h,r)||c.push(d)}return c}(K(e),t)))},ue=L(void 0===ue?ce.length-1:ue,0),function(){for(var e=arguments,t=-1,n=L(e.length-ue,0),r=Array(n);++t<n;)r[t]=e[ue+t];t=-1;for(var o=Array(ue+1);++t<ue;)o[t]=e[t];return o[ue]=r,function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(ce,this,o)});function he(){return[]}e.exports=de},31725:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,o){for(var i,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))n.call(i,c)&&(s[c]=i[c]);if(t){a=t(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s}},53912:function(e,t,n){var r;e=n.nmd(e),function(){"use strict";var o={function:!0,object:!0},i=o[typeof window]&&window||this,a=o[typeof t]&&t,s=o.object&&e&&!e.nodeType&&e,l=a&&s&&"object"==typeof n.g&&n.g;!l||l.global!==l&&l.window!==l&&l.self!==l||(i=l);var c=Math.pow(2,53)-1,u=/\bOpera/,d=Object.prototype,h=d.hasOwnProperty,f=d.toString;function p(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function m(e){return e=w(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:p(e)}function g(e,t){for(var n in e)h.call(e,n)&&t(e[n],n,e)}function y(e){return null==e?p(e):f.call(e).slice(8,-1)}function v(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function b(e,t){var n=null;return function(e,t){var n=-1,r=e?e.length:0;if("number"==typeof r&&r>-1&&r<=c)for(;++n<r;)t(e[n],n,e);else g(e,t)}(e,(function(r,o){n=t(n,r,o,e)})),n}function w(e){return String(e).replace(/^ +| +$/g,"")}var x=function e(t){var n=i,r=t&&"object"==typeof t&&"String"!=y(t);r&&(n=t,t=null);var o=n.navigator||{},a=o.userAgent||"";t||(t=a);var s,l,c=r?!!o.likeChrome:/\bChrome\b/.test(t)&&!/internal|\n/i.test(f.toString()),d="Object",h=r?d:"ScriptBridgingProxyObject",p=r?d:"Environment",x=r&&n.java?"JavaPackage":y(n.java),k=r?d:"RuntimeObject",S=/\bJava/.test(x)&&n.java,E=S&&y(n.environment)==p,C=S?"a":"\u03b1",_=S?"b":"\u03b2",T=n.document||{},O=n.operamini||n.opera,I=u.test(I=r&&O?O["[[Class]]"]:y(O))?I:O=null,A=t,P=[],R=null,N=t==a,D=N&&O&&"function"==typeof O.version&&O.version(),M=b([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],(function(e,n){return e||RegExp("\\b"+(n.pattern||v(n))+"\\b","i").exec(t)&&(n.label||n)})),L=function(e){return b(e,(function(e,n){return e||RegExp("\\b"+(n.pattern||v(n))+"\\b","i").exec(t)&&(n.label||n)}))}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","Green
2Browser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Z=z([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),j=function(e){return b(e,(function(e,n,r){return e||(n[Z]||n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Z)]||RegExp("\\b"+v(r)+"(?:\\b|\\w*\\d)","i").exec(t))&&r}))}({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),F=function(e){return b(e,(function(e,n){var r=n.pattern||v(n);return!e&&(e=RegExp("\\b"+r+"(?:/[\\d.]+|[ \\w.]*)","i").exec(t))&&(e=function(e,t,n){var r={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&n&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(r=r[/[\d.]+$/.exec(e)])&&(e="Windows "+r),e=String(e),t&&n&&(e=e.replace(RegExp(t,"i"),n)),m(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}(e,r,n.label||n)),e}))}(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function z(e){return b(e,(function(e,n){var r=n.pattern||v(n);return!e&&(e=RegExp("\\b"+r+" *\\d+[.\\w_]*","i").exec(t)||RegExp("\\b"+r+" *\\w+-[\\w]*","i").exec(t)||RegExp("\\b"+r+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(t))&&((e=String(n.label&&!RegExp(r,"i").test(n.label)?n.label:e).split("/"))[1]&&!/[\d.]+/.test(e[0])&&(e[0]+=" "+e[1]),n=n.label||n,e=m(e[0].replace(RegExp(r,"i"),n).replace(RegExp("; *(?:"+n+"[_-])?","i")," ").replace(RegExp("("+n+")[-_.]?(\\w)","i"),"$1 $2"))),e}))}function U(e){return b(e,(function(e,n){return e||(RegExp(n+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(t)||0)[1]||null}))}if(M&&(M=[M]),/\bAndroid\b/.test(F)&&!Z&&(s=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(t))&&(Z=w(s[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),j&&!Z?Z=z([j]):j&&Z&&(Z=Z.replace(RegExp("^("+v(j)+")[-_.\\s]","i"),j+" ").replace(RegExp("^("+v(j)+")[-_.]?(\\w)","i"),j+" $2")),(s=/\bGoogle TV\b/.exec(Z))&&(Z=s[0]),/\bSimulator\b/i.test(t)&&(Z=(Z?Z+" ":"")+"Simulator"),"Opera Mini"==L&&/\bOPiOS\b/.test(t)&&P.push("running in Turbo/Uncompressed mode"),"IE"==L&&/\blike iPhone OS\b/.test(t)?(j=(s=e(t.replace(/like iPhone OS/,""))).manufacturer,Z=s.product):/^iP/.test(Z)?(L||(L="Safari"),F="iOS"+((s=/ OS ([\d_]+)/i.exec(t))?" "+s[1].replace(/_/g,"."):"")):"Konqueror"==L&&/^Linux\b/i.test(F)?F="Kubuntu":j&&"Google"!=j&&(/Chrome/.test(L)&&!/\bMobile Safari\b/i.test(t)||/\bVita\b/.test(Z))||/\bAndroid\b/.test(F)&&/^Chrome/.test(L)&&/\bVersion\//i.test(t)?(L="Android Browser",F=/\bAndroid\b/.test(F)?F:"Android"):"Silk"==L?(/\bMobi/i.test(t)||(F="Android",P.unshift("desktop mode")),/Accelerated *= *true/i.test(t)&&P.unshift("accelerated")):"UC Browser"==L&&/\bUCWEB\b/.test(t)?P.push("speed mode"):"PaleMoon"==L&&(s=/\bFirefox\/([\d.]+)\b/.exec(t))?P.push("identifying as Firefox "+s[1]):"Firefox"==L&&(s=/\b(Mobile|Tablet|TV)\b/i.exec(t))?(F||(F="Firefox OS"),Z||(Z=s[1])):!L||(s=!/\bMinefield\b/i.test(t)&&/\b(?:Firefox|Safari)\b/.exec(L))?(L&&!Z&&/[\/,]|^[^(]+?\)/.test(t.slice(t.indexOf(s+"/")+8))&&(L=null),(s=Z||j||F)&&(Z||j||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(F))&&(L=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(F)?F:s)+" Browser")):"Electron"==L&&(s=(/\bChrome\/([\d.]+)\b/.exec(t)||0)[1])&&P.push("Chromium "+s),D||(D=U(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",v(L),"(?:Firefox|Minefield|NetFront)"])),(s=("iCab"==M&&parseFloat(D)>3?"WebKit":/\bOpera\b/.test(L)&&(/\bOPR\b/.test(t)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(M)&&"WebKit"||!M&&/\bMSIE\b/i.test(t)&&("Mac OS"==F?"Tasman":"Trident")||"WebKit"==M&&/\bPlayStation\b(?! Vita\b)/i.test(L)&&"NetFront")&&(M=[s]),"IE"==L&&(s=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(L+=" Mobile",F="Windows Phone "+(/\+$/.test(s)?s:s+".x"),P.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(L="IE Mobile",F="Windows Phone 8.x",P.unshift("desktop mode"),D||(D=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=L&&"Trident"==M&&(s=/\brv:([\d.]+)/.exec(t))&&(L&&P.push("identifying as "+L+(D?" "+D:"")),L="IE",D=s[1]),N){if(function(e,t){var n=null!=e?typeof e[t]:"number";return!/^(?:boolean|number|string|undefined)$/.test(n)&&("object"!=n||!!e[t])}(n,"global"))if(S&&(A=(s=S.lang.System).getProperty("os.arch"),F=F||s.getProperty("os.name")+" "+s.getProperty("os.version")),E){try{D=n.require("ringo/engine").version.join("."),L="RingoJS"}catch(V){(s=n.system)&&s.global.system==n.system&&(L="Narwhal",F||(F=s[0].os||null))}L||(L="Rhino")}
vendor: 4,240 bytes, line 2
2else"object"==typeof n.process&&!n.process.browser&&(s=n.process)&&("object"==typeof s.versions&&("string"==typeof s.versions.electron?(P.push("Node "+s.versions.node),L="Electron",D=s.versions.electron):"string"==typeof s.versions.nw&&(P.push("Chromium "+D,"Node "+s.versions.node),L="NW.js",D=s.versions.nw)),L||(L="Node.js",A=s.arch,F=s.platform,D=(D=/[\d.]+/.exec(s.version))?D[0]:null));else y(s=n.runtime)==h?(L="Adobe AIR",F=s.flash.system.Capabilities.os):y(s=n.phantom)==k?(L="PhantomJS",D=(s=s.version||null)&&s.major+"."+s.minor+"."+s.patch):"number"==typeof T.documentMode&&(s=/\bTrident\/(\d+)/i.exec(t))?(D=[D,T.documentMode],(s=+s[1]+4)!=D[1]&&(P.push("IE "+D[1]+" mode"),M&&(M[1]=""),D[1]=s),D="IE"==L?String(D[1].toFixed(1)):D[0]):"number"==typeof T.documentMode&&/^(?:Chrome|Firefox)\b/.test(L)&&(P.push("masking as "+L+" "+D),L="IE",D="11.0",M=["Trident"],F="Windows");F=F&&m(F)}if(D&&(s=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(D)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(N&&o.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(R=/b/i.test(s)?"beta":"alpha",D=D.replace(RegExp(s+"\\+?$"),"")+("beta"==R?_:C)+(/\d+\+?/.exec(s)||"")),"Fennec"==L||"Firefox"==L&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(F))L="Firefox Mobile";else if("Maxthon"==L&&D)D=D.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Z))"Xbox 360"==Z&&(F=null),"Xbox 360"==Z&&/\bIEMobile\b/.test(t)&&P.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(L)&&(!L||Z||/Browser|Mobi/.test(L))||"Windows CE"!=F&&!/Mobi/i.test(t))if("IE"==L&&N)try{null===n.external&&P.unshift("platform preview")}catch(V){P.unshift("embedded")}else(/\bBlackBerry\b/.test(Z)||/\bBB10\b/.test(t))&&(s=(RegExp(Z.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||D)?(F=((s=[s,/BB10/.test(t)])[1]?(Z=null,j="BlackBerry"):"Device Software")+" "+s[0],D=null):this!=g&&"Wii"!=Z&&(N&&O||/Opera/.test(L)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==L&&/\bOS X (?:\d+\.){2,}/.test(F)||"IE"==L&&(F&&!/^Win/.test(F)&&D>5.5||/\bWindows XP\b/.test(F)&&D>8||8==D&&!/\bTrident\b/.test(t)))&&!u.test(s=e.call(g,t.replace(u,"")+";"))&&s.name&&(s="ing as "+s.name+((s=s.version)?" "+s:""),u.test(L)?(/\bIE\b/.test(s)&&"Mac OS"==F&&(F=null),s="identify"+s):(s="mask"+s,L=I?m(I.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(s)&&(F=null),N||(D=null)),M=["Presto"],P.push(s));else L+=" Mobile";(s=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(s=[parseFloat(s.replace(/\.(\d)$/,".0$1")),s],"Safari"==L&&"+"==s[1].slice(-1)?(L="WebKit Nightly",R="alpha",D=s[1].slice(0,-1)):D!=s[1]&&D!=(s[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(D=null),s[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(t)||0)[1],537.36==s[0]&&537.36==s[2]&&parseFloat(s[1])>=28&&"WebKit"==M&&(M=["Blink"]),N&&(c||s[1])?(M&&(M[1]="like Chrome"),s=s[1]||((s=s[0])<530?1:s<532?2:s<532.05?3:s<533?4:s<534.03?5:s<534.07?6:s<534.1?7:s<534.13?8:s<534.16?9:s<534.24?10:s<534.3?11:s<535.01?12:s<535.02?"13+":s<535.07?15:s<535.11?16:s<535.19?17:s<536.05?18:s<536.1?19:s<537.01?20:s<537.11?"21+":s<537.13?23:s<537.18?24:s<537.24?25:s<537.36?26:"Blink"!=M?"27":"28")):(M&&(M[1]="like Safari"),s=(s=s[0])<400?1:s<500?2:s<526?3:s<533?4:s<534?"4+":s<535?5:s<537?6:s<538?7:s<601?8:s<602?9:s<604?10:s<606?11:s<608?12:"12"),M&&(M[1]+=" "+(s+="number"==typeof s?".x":/[.+]/.test(s)?"":"+")),"Safari"==L&&(!D||parseInt(D)>45)?D=s:"Chrome"==L&&/\bHeadlessChrome/i.test(t)&&P.unshift("headless")),"Opera"==L&&(s=/\bzbov|zvav$/.exec(F))?(L+=" ",P.unshift("desktop mode"),"zvav"==s?(L+="Mini",D=null):L+="Mobile",F=F.replace(RegExp(" *"+s+"$"),"")):"Safari"==L&&/\bChrome\b/.exec(M&&M[1])?(P.unshift("desktop mode"),L="Chrome Mobile",D=null,/\bOS X\b/.test(F)?(j="Apple",F="iOS 4.3+"):F=null):/\bSRWare Iron\b/.test(L)&&!D&&(D=U("Chrome")),D&&0==D.indexOf(s=/[\d.]+$/.exec(F))&&t.indexOf("/"+s+"-")>-1&&(F=w(F.replace(s,""))),F&&-1!=F.indexOf(L)&&!RegExp(L+" OS").test(F)&&(F=F.replace(RegExp(" *"+v(L)+" *"),"")),M&&!/\b(?:Avant|Nook)\b/.test(L)&&(/Browser|Lunascape|Maxthon/.test(L)||"Safari"!=L&&/^iOS/.test(F)&&/\bSafari\b/.test(M[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(L)&&M[1])&&(s=M[M.length-1])&&P.push(s),P.length&&(P=["("+P.join(";
2 ")+")"]),j&&Z&&Z.indexOf(j)<0&&P.push("on "+j),Z&&P.push((/^on /.test(P[P.length-1])?"":"on ")+Z),F&&(s=/ ([\d.+]+)$/.exec(F),l=s&&"/"==F.charAt(F.length-s[0].length-1),F={architecture:32,family:s&&!l?F.replace(s[0],""):F,version:s?s[1]:null,toString:function(){var e=this.version;return this.family+(e&&!l?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(s=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(A))&&!/\bi686\b/i.test(A)?(F&&(F.architecture=64,F.family=F.family.replace(RegExp(" *"+s),"")),L&&(/\bWOW64\b/i.test(t)||N&&/\w(?:86|32)$/.test(o.cpuClass||o.platform)&&!/\bWin64; x64\b/i.test(t))&&P.unshift("32-bit")):F&&/^OS X/.test(F.family)&&"Chrome"==L&&parseFloat(D)>=39&&(F.architecture=64),t||(t=null);var B={};return B.description=t,B.layout=M&&M[0],B.manufacturer=j,B.name=L,B.prerelease=R,B.product=Z,B.ua=t,B.version=L&&D,B.os=F||{architecture:null,family:null,version:null,toString:function(){return"null"}},B.parse=e,B.toString=function(){return this.description||""},B.version&&P.unshift(D),B.name&&P.unshift(L),F&&L&&(F!=String(F).split(" ")[0]||F!=L.split(" ")[0]&&!Z)&&P.push(Z?"("+F+")":"on "+F),P.length&&(B.description=P.join(" ")),B}();i.platform=x,void 0===(r=function(){return x}.call(t,n,t,e))||(e.exports=r)}.call(this)},80888:(e,t,n)=>{"use strict";var r=n(79047);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}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:i,resetWarningCache:o};return n.PropTypes=n,n}},52007:(e,t,n)=>{e.exports=n(80888)()},79047:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4245:(e,t,n)=>{"use strict";const r=n(40499),o=n(59412),i=n(70845);function a(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function s(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function l(e,t){return t.decode?o(e):e}function c(e){return Array.isArray(e)?e.sort():"object"===typeof e?c(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function u(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function d(e){const t=(e=u(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function h(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function f(e,t){a((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"===typeof n&&n.includes(e.arrayFormatSeparator),i="string"===typeof n&&!o&&l(n,e).includes(e.arrayFormatSeparator);n=i?l(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map((t=>l(t,e))):null===n?n:l(n,e);r[t]=a};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!==typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){let[e,a]=i(t.decode?o.replace(/\+/g," "):o,"=");a=void 0===a?null:["comma","separator"].includes(t.arrayFormat)?a:l(a,t),n(l(e,t),a,r)}for(const o of Object.keys(r)){const e=r[o];if("object"===typeof e&&null!==e)for(const n of Object.keys(e))e[n]=h(e[n],t);else r[o]=h(e,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=c(n):e[t]=n,e}),Object.create(null))}t.extract=d,t.parse=f,t.stringify=(e,t)=>{if(!e)return"";a((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>{return t.skipNull&&(null===(r=e[n])||void 0===r)||t.skipEmptyString&&""===e[n];var r},r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[s(t,e),"[",o,"]"].join("")]:[...n,[s(t,e),"[",s(o,e),"]=",s(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[s(t,e),"[]"].join("")]:[...n,[s(t,e),"[]=",s(r,e)].join("")];case"comma":case"separator":return t=>(n,r)=>null===r||void 0===r||0===r.length?n:0===n.length?[[s(t,e),"=",s(r,e)].join("")]:[[n,s(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,s(t,e)]:[...n,[s(t,e),"=",s(r,e)].join("")]}}(t),o={};for(const a of Object.keys(e))n(a)||(o[a]=e[a]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?s(n,t):Array.isArray(o)?o.reduce(r(n),[]).join("&"):s(n,t)+"="+s(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>
2{t=Object.assign({decode:!0},t);const[n,r]=i(e,"#");return Object.assign({url:n.split("?")[0]||"",query:f(d(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:l(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=u(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),a=Object.assign(i,e.query);let l=t.stringify(a,n);l&&(l="?".concat(l));let c=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(c="#".concat(s(e.fragmentIdentifier,n))),"".concat(r).concat(l).concat(c)}},94424:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i=this&&this.__rest||function(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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};t.__esModule=!0;var a=n(72791),s=n(52007),l=n(87357),c=n(81694),u=n(1341);t.propTypes={message:s.string,onAccept:s.func.isRequired,link:s.element,buttonMessage:s.string,closeIcon:s.string,disableStyle:s.bool,styles:s.object,className:s.string,dismissOnClick:s.bool};var d=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.getStyle=function(e){var n=t.props,r=n.disableStyle,i=n.styles,a=void 0===i?{}:i;if(!r)return o({},u.getStyle(e),a[e])},t.templateCloseIcon=function(e,t,n){return a.createElement("button",o({},{onClick:t,style:n}),a.createElement("i",o({},{className:e})))},t.templateCloseButton=function(e,t,n){return a.createElement("button",o({className:"button-close"},{onClick:t,style:n}),e)},t.templateLink=function(e,t){return a.cloneElement(e,e.props.style?void 0:{style:t})},t.bannerClicked=function(){t.props.dismissOnClick&&t.props.onAccept()},t}return r(n,e),n.prototype.render=function(){var e=this.getStyle,n=this.props,r=n.onAccept,s=n.className,u=n.message,d=n.closeIcon,h=n.link,f=n.buttonMessage,p=void 0===f?"Got it":f,m=i(n,["onAccept","className","message","closeIcon","link","buttonMessage"]),g=e("message"),y=o({},l(m,Object.keys(t.propTypes)),{className:c("react-cookie-banner",s),style:e("banner")});return a.createElement("div",o({},y,{onClick:this.bannerClicked}),a.createElement("span",{className:"cookie-message",style:g},u,h&&this.templateLink(h,e("link"))),!d&&this.templateCloseButton(p,r,e("button")),!!d&&this.templateCloseIcon(d,r,e("icon")))},n.propTypes=t.propTypes,n}(a.Component);t.default=d},49637:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i=this&&this.__rest||function(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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n};t.__esModule=!0;var a=n(72791),s=n(52007),l=n(87357),c=n(32222),u=n(94424),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={listeningScroll:!1},t.addOnScrollListener=function(e){var n=e||t.props;t.state.listeningScroll||t.hasAcceptedCookies()||!n.dismissOnScroll||(window.attachEvent?window.attachEvent("onscroll",t.onScroll):window.addEventListener&&window.addEventListener("scroll",t.onScroll,!1),t.setState({listeningScroll:!0}))},t.removeOnScrollListener=function(){t.state.listeningScroll&&(window.detachEvent?window.detachEvent("onscroll",t.onScroll):window.removeEventListener&&window.removeEventListener("scroll",t.onScroll,!1),t.setState({listeningScroll:!1}))},t.onScroll=function(){var e=t.props.dismissOnScrollThreshold;window.pageYOffset>e&&t.onAccept()},t.getSecondsSinceExpiration=function(e){if("number"===typeof e)return e;var t=o({years:0,days:0,hours:0},e);
2return 31536e3*t.years+86400*t.days+3600*t.hours},t.onAccept=function(){var e=t.props,n=e.cookies,r=e.cookie,o=e.cookieExpiration,i=e.cookiePath,a=e.onAccept;n.set(r,!0,{path:i,expires:new Date(Date.now()+1e3*t.getSecondsSinceExpiration(o))}),a({cookie:r}),t.state.listeningScroll?t.removeOnScrollListener():t.forceUpdate()},t}return r(t,e),t.prototype.componentDidMount=function(){this.addOnScrollListener()},t.prototype.hasAcceptedCookies=function(){var e=this.props,t=e.cookies,n=e.cookie;return t.get(n)},t.prototype.templateChildren=function(e,t){return"function"===typeof e?e(t):e},t.prototype.render=function(){var e=this.onAccept,n=this.props,r=n.message,s=n.link,c=n.buttonMessage,d=n.closeIcon,h=n.disableStyle,f=n.styles,p=n.className,m=n.children,g=n.dismissOnClick,y=i(n,["message","link","buttonMessage","closeIcon","disableStyle","styles","className","children","dismissOnClick"]),v=this.hasAcceptedCookies(),b=o({},l(y,Object.keys(t.propTypes)),{message:r,onAccept:e,link:s,buttonMessage:c,closeIcon:d,disableStyle:h,styles:f,className:p,dismissOnClick:g});return v?null:m?this.templateChildren(m,e):a.createElement(u.default,o({},b))},t.prototype.componentDidUpdate=function(){var e=this.props;e.dismissOnScroll?this.addOnScrollListener(e):this.removeOnScrollListener()},t.prototype.componentWillUnmount=function(){this.removeOnScrollListener()},t.propTypes=o({},u.propTypes,{children:s.oneOfType([s.node,s.func]),onAccept:s.func,cookies:s.instanceOf(c.Cookies),cookie:s.string,cookieExpiration:s.oneOfType([s.number,s.shape({years:s.number,days:s.number,hours:s.number})]),cookiePath:s.string,dismissOnScroll:s.bool,dismissOnScrollThreshold:s.number}),t.defaultProps={onAccept:function(){},dismissOnScroll:!0,cookies:new c.Cookies,cookie:"accepts-cookies",cookieExpiration:{years:1},buttonMessage:"Got it",dismissOnScrollThreshold:0,styles:{}},t}(a.Component);t.default=d},30829:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(32222),o=n(49637);t.default=r.withCookies(o.default)},70286:(e,t,n)=>{"use strict";var r=n(49637);n(30829).default,n(94424).default,t.ZP=r.default;var o=n(32222);o.Cookies,o.CookiesProvider},1341:(e,t)=>{"use strict";t.__esModule=!0;var n={icon:{background:"none",border:"none",boxShadow:"none",padding:"0",position:"absolute",fontSize:"1em",top:"50%",marginTop:"-0.5em",right:"1em",color:"white",cursor:"pointer"},link:{color:"#F0F0F0",textDecoration:"underline",marginLeft:"10px"},button:{position:"absolute",top:"50%",right:"35px",lineHeight:"24px",marginTop:"-12px",padding:"0 8px",backgroundColor:"rgba(255, 255, 255, 0.6)",border:"none",borderRadius:"3px",boxShadow:"none",fontSize:"12px",fontWeight:"500",color:"#242424",cursor:"pointer"},message:{lineHeight:"45px",fontWeight:500,color:"#F0F0F0"},banner:{position:"relative",textAlign:"center",backgroundColor:"#484848",width:"100%",height:"45px",zIndex:"10000"}};t.getStyle=function(e){return n[e]}},5581:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(1653),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default,e.exports=t.default},86457:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(72791),a=n(52007),s=n(1653),l=(r=s)&&r.__esModule?r:{default:r};var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e.cookies?n.cookies=e.cookies:n.cookies=new l.default,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"getChildContext",value:function(){return{cookies:this.cookies}}},{key:"render",value:function(){return this.props.children}}]),t}(i.Component);c.propTypes={children:a.node,cookies:(0,a.instanceOf)(l.default)},c.childContextTypes={cookies:(0,a.instanceOf)(l.default).isRequired},t.default=c,e.exports=t.default},32222:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=n(5581);Object.defineProperty(t,"Cookies",{enumerable:!0,get:function(){return a(r).default}});var o=n(86457);Object.defineProperty(t,"CookiesProvider",{enumerable:!0,get:function(){return a(o).default}});var i=n(783);function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"withCookies",{enumerable:!0,get:function(){return a(i).default}})},783:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=function(e){var t=function(t){function n(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return r.onChange=function(){r.forceUpdate()},t.cookies.addChangeListener(r.onChange),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),o(n,[{key:"componentWillUnmount",value:function(){this.context.cookies.removeChangeListener(this.onChange)}},{key:"render",value:function(){var t=this.props,n=t.wrappedComponentRef,o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["wrappedComponentRef"]),i=this.context.cookies.getAll();return a.default.createElement(e,r({},o,{cookies:this.context.cookies,allCookies:i,ref:n}))}}]),n}(i.Component);return t.displayName="withCookies("+(i.Component.displayName||i.Component.name)+")",t.WrapperComponent=e,t.propTypes={wrappedComponentRef:s.func},t.contextTypes={cookies:(0,s.instanceOf)(l.default).isRequired},(0,c.default)(t,e,{WrappedComponent:!0})};var i=n(72791),a=u(i),s=n(52007),l=u(n(1653)),c=u(n(69935));function u(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},69935:e=>{"use strict";var t={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r=Object.defineProperty,o=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,a=Object.getOwnPropertyDescriptor,s=Object.getPrototypeOf,l=s&&s(Object);e.exports=function e(c,u,d){if("string"!==typeof u){if(l){var h=s(u);h&&h!==l&&e(c,h,d)}var f=o(u);i&&(f=f.concat(i(u)));for(var p=0;p<f.length;++p){var m=f[p];if(!t[m]&&!n[m]&&(!d||!d[m])){var g=a(u,m);try{r(c,m,g)}catch(y){}}}return c}return c}},84424:(e,t,n)=>{"use strict";var r=n(31725),o=n(72791);function i(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=60106,s=60107,l=60108,c=60114,u=60109,d=60110,h=60112,f=60113,p=60120,m=60115,g=60116,y=60121,v=60117,b=60119,w=60129,x=60131;if("function"===typeof Symbol&&Symbol.for){var k=Symbol.for;a=k("react.portal"),s=k("react.fragment"),l=k("react.strict_mode"),c=k("react.profiler"),u=k("react.provider"),d=k("react.context"),h=k("react.forward_ref"),f=k("react.suspense"),p=k("react.suspense_list"),m=k("react.memo"),g=k("react.lazy"),y=k("react.block"),v=k("react.fundamental"),b=k("react.scope"),w=k("react.debug_trace_mode"),x=k("react.legacy_hidden")}function S(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 a:return"Portal";case c:return"Profiler";case l:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case d:return(e.displayName||"Context")+".Consumer";case u:return(e._context.displayName||"Context")+".Provider";case h:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case m:return S(e.type);case y:return S(e._render);case g:t=e._payload,e=e._init;try{return S(e(t))}catch(n){}}return null}
vendor: 9,125 bytes, line 2
2var E=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C={};function _(e,t){for(var n=0|e._threadCount;n<=t;n++)e[n]=e._currentValue2,e._threadCount=n+1}for(var T=new Uint16Array(16),O=0;15>O;O++)T[O]=O+1;T[15]=0;var I=/^[: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]*$/,A=Object.prototype.hasOwnProperty,P={},R={};function N(e){return!!A.call(R,e)||!A.call(P,e)&&(I.test(e)?R[e]=!0:(P[e]=!0,!1))}function D(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){M[e]=new D(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];M[t]=new D(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){M[e]=new D(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){M[e]=new D(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){M[e]=new D(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){M[e]=new D(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){M[e]=new D(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){M[e]=new D(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){M[e]=new D(e,5,!1,e.toLowerCase(),null,!1,!1)}));var L=/[\-:]([a-z])/g;function Z(e){return e[1].toUpperCase()}"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-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(L,Z);M[t]=new D(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(L,Z);M[t]=new D(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(L,Z);M[t]=new D(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){M[e]=new D(e,1,!1,e.toLowerCase(),null,!1,!1)})),M.xlinkHref=new D("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){M[e]=new D(e,1,!1,e.toLowerCase(),null,!0,!0)}));var j=/["'&<>]/;function F(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=j.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}function z(e,t){var n,r=M.hasOwnProperty(e)?M[e]:null;return(n="style"!==e)&&(n=null!==r?0===r.type:2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])),n||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}(e,t,r,!1)?"":null!==r?(e=r.attributeName,3===(n=r.type)||4===n&&!0===t?e+'=""':(r.sanitizeURL&&(t=""+t),e+'="'+F(t)+'"')):N(e)?e+'="'+F(t)+'"':""}var U="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},B=null,V=null,H=null,W=!1,q=!1,G=null,K=0;function Q(){if(null===B)throw Error(i(321));return B}function Y(){if(0<K)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function $(){return null===H?null===V?(W=!1,V=H=Y()):(W=!0,H=V):null===H.next?(W=!1,H=H.next=Y()):(W=!0,H=H.next),H}function X(e,t,n,r){for(;q;)q=!1,K+=1,H=null,n=e(t,r);return J(),n}function J(){B=null,q=!1,V=null,K=0,H=G=null}function ee(e,t){return"function"===typeof t?t(e):t}function te(e,t,n){if(B=Q(),H=$(),W){var r=H.queue;if(t=r.dispatch,null!==G&&void 0!==(n=G.get(r))){G.delete(r),r=H.memoizedState;do{r=e(r,n.action),n=n.next}while(null!==n);return H.memoizedState=r,[r,t]}return[H.memoizedState,t]}return e=e===ee?"function"===typeof t?t():t:void 0!==n?n(t):t,H.memoizedState=e,e=(e=H.queue={last:null,dispatch:null}).dispatch=re.bind(null,B,e),[H.memoizedState,e]}function ne(e,t){if(B=Q(),t=void 0===t?null:t,null!==(H=$())){var n=H.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!U(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),H.memoizedState=[e,t],e}function re(e,t,n){if(!(25>K))throw Error(i(301));if(e===B)if(q=!0,e={action:n,next:null},null===G&&(G=new Map),void 0===(n=G.get(t)))G.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function oe(){}var ie=null,ae={readContext:function(e){var t=ie.threadID;return _(e,t),e[t]},useContext:function(e){Q();var t=ie.threadID;return _(e,t),e[t]},useMemo:ne,useReducer:te,useRef:function(e){B=Q();var t=(H=$()).memoizedState;return null===t?(e={current:e},H.memoizedState=e):t},useState:function(e){return te(ee,e)},useLayoutEffect:function(){},useCallback:function(e,t){return ne((function(){return e}),t)},useImperativeHandle:oe,useEffect:oe,useDebugValue:oe,useDeferredValue:function(e){return Q(),e},useTransition:function(){return Q(),[function(e){e()},!1]},useOpaqueIdentifier:function(){return(ie.identifierPrefix||"")+"R:"+(ie.uniqueID++).toString(36)},useMutableSource:function(e,t){return Q(),t(e._source)}},se="http://www.w3.org/1999/xhtml";function le(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"}}var ce={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},ue=r({menuitem:!0},ce),de={animationIterationCount:!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},he=["Webkit","ms","Moz","O"];Object.keys(de).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]}))}));var fe=/([A-Z])/g,pe=/^ms-/,me=o.Children.toArray,ge=E.ReactCurrentDispatcher,ye={listing:!0,pre:!0,textarea:!0},ve=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,be={},we={};var xe=Object.prototype.hasOwnProperty,ke={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Se(e,t){if(void 0===e)throw Error(i(152,S(t)||"Component"))}function Ee(e,t,n){function a(o,a){var s=a.prototype&&a.prototype.isReactComponent,l=function(e,t,n,r){if(r&&"object"===typeof(r=e.contextType)&&null!==r)return _(r,n),r[n];if(e=e.contextTypes){for(var o in n={}
2,e)n[o]=t[o];t=n}else t=C;return t}(a,t,n,s),c=[],u=!1,d={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===c)return null},enqueueReplaceState:function(e,t){u=!0,c=[t]},enqueueSetState:function(e,t){if(null===c)return null;c.push(t)}};if(s){if(s=new a(o.props,l,d),"function"===typeof a.getDerivedStateFromProps){var h=a.getDerivedStateFromProps.call(null,o.props,s.state);null!=h&&(s.state=r({},s.state,h))}}else if(B={},s=a(o.props,l,d),null==(s=X(a,o.props,s,l))||null==s.render)return void Se(e=s,a);if(s.props=o.props,s.context=l,s.updater=d,void 0===(d=s.state)&&(s.state=d=null),"function"===typeof s.UNSAFE_componentWillMount||"function"===typeof s.componentWillMount)if("function"===typeof s.componentWillMount&&"function"!==typeof a.getDerivedStateFromProps&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&"function"!==typeof a.getDerivedStateFromProps&&s.UNSAFE_componentWillMount(),c.length){d=c;var f=u;if(c=null,u=!1,f&&1===d.length)s.state=d[0];else{h=f?d[0]:s.state;var p=!0;for(f=f?1:0;f<d.length;f++){var m=d[f];null!=(m="function"===typeof m?m.call(s,h,o.props,l):m)&&(p?(p=!1,h=r({},h,m)):r(h,m))}s.state=h}}else c=null;if(Se(e=s.render(),a),"function"===typeof s.getChildContext&&"object"===typeof(o=a.childContextTypes)){var g=s.getChildContext();for(var y in g)if(!(y in o))throw Error(i(108,S(a)||"Unknown",y))}g&&(t=r({},t,g))}for(;o.isValidElement(e);){var s=e,l=s.type;if("function"!==typeof l)break;a(s,l)}return{child:e,context:t}}var Ce=function(){function e(e,t,n){o.isValidElement(e)?e.type!==s?e=[e]:(e=e.props.children,e=o.isValidElement(e)?[e]:me(e)):e=me(e),e={type:null,domNamespace:se,children:e,childIndex:0,context:C,footer:""};var r=T[0];if(0===r){var a=T,l=2*(r=a.length);if(!(65536>=l))throw Error(i(304));var c=new Uint16Array(l);for(c.set(a),(T=c)[0]=r+1,a=r;a<l-1;a++)T[a]=a+1;T[l-1]=0}else T[0]=T[r];this.threadID=r,this.stack=[e],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=t,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[],this.uniqueID=0,this.identifierPrefix=n&&n.identifierPrefix||""}var t=e.prototype;return t.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var e=this.threadID;T[e]=T[0],T[0]=e}},t.pushProvider=function(e){var t=++this.contextIndex,n=e.type._
vendor: 10,753 bytes, line 2
2context,r=this.threadID;_(n,r);var o=n[r];this.contextStack[t]=n,this.contextValueStack[t]=o,n[r]=e.props.value},t.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],n=this.contextValueStack[e];this.contextStack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=n},t.clearProviders=function(){for(var e=this.contextIndex;0<=e;e--)this.contextStack[e][this.threadID]=this.contextValueStack[e]},t.read=function(e){if(this.exhausted)return null;var t=ie;ie=this;var n=ge.current;ge.current=ae;try{for(var r=[""],o=!1;r[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var a=this.threadID;T[a]=T[0],T[0]=a;break}var s=this.stack[this.stack.length-1];if(o||s.childIndex>=s.children.length){var l=s.footer;if(""!==l&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===u)this.popProvider(s.type);else if(s.type===f){this.suspenseDepth--;var c=r.pop();if(o){o=!1;var d=s.fallbackFrame;if(!d)throw Error(i(303));this.stack.push(d),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=c}r[this.suspenseDepth]+=l}else{var h=s.children[s.childIndex++],p="";try{p+=this.render(h,s.context,s.domNamespace)}catch(m){if(null!=m&&"function"===typeof m.then)throw Error(i(294));throw m}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=p}}return r[0]}finally{ge.current=n,ie=t,J()}},t.render=function(e,t,n){if("string"===typeof e||"number"===typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?F(n):this.previousWasTextNode?"\x3c!-- --\x3e"+F(n):(this.previousWasTextNode=!0,F(n));if(e=(t=Ee(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!o.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$$typeof)===a)throw Error(i(257));throw Error(i(258,n.toString()))}return e=me(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var y=e.type;if("string"===typeof y)return this.renderDOM(e,t,n);switch(y){case x:case w:case l:case c:case p:case s:return e=me(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case f:throw Error(i(294));case b:throw Error(i(343))}if("object"===typeof y&&null!==y)switch(y.$$typeof){case h:B={};var k=y.render(e.props,e.ref);return k=X(y.render,e.props,k,e.ref),k=me(k),this.stack.push({type:null,domNamespace:n,children:k,childIndex:0,context:t,footer:""}),"";case m:return e=[o.createElement(y.type,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case u:return n={type:e,domNamespace:n,children:y=me(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case d:y=e.type,k=e.props;var S=this.threadID;return _(y,S),y=me(k.children(y[S])),this.stack.push({type:e,domNamespace:n,children:y,childIndex:0,context:t,footer:""}),"";case v:throw Error(i(338));case g:return y=(k=(y=e.type)._init)(y._payload),e=[o.createElement(y,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}throw Error(i(130,null==y?y:typeof y,""))},t.renderDOM=function(e,t,n){var a=e.type.toLowerCase();if(n===se&&le(a),!be.hasOwnProperty(a)){if(!ve.test(a))throw Error(i(65,a));be[a]=!0}var s=e.props;if("input"===a)s=r({type:void 0},s,{defaultChecked:void 0,defaultValue:void 0,value:null!=s.value?s.value:s.defaultValue,checked:null!=s.checked?s.checked:s.defaultChecked});else if("textarea"===a){var l=s.value;if(null==l){l=s.defaultValue;var c=s.children;if(null!=c){if(null!=l)throw Error(i(92));if(Array.isArray(c)){if(!(1>=c.length))throw Error(i(93));c=c[0]}l=""+c}null==l&&(l="")}s=r({},s,{value:void 0,children:""+l})}else if("select"===a)this.currentSelectValue=null!=s.value?s.value:s.defaultValue,s=r({},s,{value:void 0});else if("option"===a){c=this.currentSelectValue;var u=function(e){if(void 0===e||null===e)return e;var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(s.children);if(null!=c){var d=null!=s.value?s.value+"":u;if(l=!1,Array.isArray(c)){for(var h=0;h<c.length;h++)if(""+c[h]===d){l=!0;break}}else l=""+c===d;s=r({selected:void 0,children:void 0},s,{selected:l,children:u})}}if(l=s){if(ue[a]&&(null!=l.children||null!=l.dangerouslySetInnerHTML))throw Error(i(137,a));if(null!=l.dangerouslySetInnerHTML){if(null!=l.children)throw Error(i(60));if("object"!==typeof l.dangerouslySetInnerHTML||!("__html"in l.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=l.style&&"object"!==typeof l.style)throw Error(i(62))}l=s,c=this.makeStaticMarkup,u=1===this.stack.length,d="<"+e.type;e:if(-1===a.indexOf("-"))h="string"===typeof l.is;else switch(a){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":h=!1;break e;default:h=!0}for(x in l)if(xe.call(l,x)){var f=l[x];if(null!=f){if("style"===x){var p=void 0,m="",g="";for(p in f)if(f.hasOwnProperty(p)){var y=0===p.indexOf("--"),v=f[p];if(null!=v){if(y)var b=p;else if(b=p,we.hasOwnProperty(b))b=we[b];else{var w=b.replace(fe,"-$1").toLowerCase().replace(pe,"-ms-");b=we[b]=w}m+=g+b+":",g=p,m+=y=null==v||"boolean"===typeof v||""===v?"":y||"number"!==typeof v||0===v||de.hasOwnProperty(g)&&de[g]?(""+v).trim():v+"px",g=";"}}f=m||null}p=null,h?ke.hasOwnProperty(x)||(p=N(p=x)&&null!=f?p+'="'+F(f)+'"':""):p=z(x,f),p&&(d+=" "+p)}}c||u&&(d+=' data-reactroot=""');var x=d;l="",ce.hasOwnProperty(a)?x+="/>":(x+=">",l="</"+e.type+">");e:{if(null!=(c=s.dangerouslySetInnerHTML)){if(null!=c.__html){c=c.__html;break e}}else if("string"===typeof(c=s.children)||"number"===typeof c){c=F(c);break e}c=null}return null!=c?(s=[],ye.hasOwnProperty(a)&&"\n"===c.charAt(0)&&(x+="\n"),x+=c):s=me(s.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?le(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:a,children:s,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,x},e}();t.renderToStaticMarkup=function(e,t){e=new Ce(e,!0,t);try{return e.read(1/0)}finally{e.destroy()}}},34463:(e,t,n)=>{"use strict";var r=n(72791),o=n(31725),i=n(45296);function a(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."}if(!r)throw Error(a(227));var s=new Set,l={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),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=Object.prototype.hasOwnProperty,p={},m={};function g(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new g(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){y[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var o=y.hasOwnProperty(t)?y[t]:null;(null!==o?0===o.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,o,r)&&(n=null),r||null===o?function(e){return!!f.call(m,e)||!f.call(p,e)&&(h.test(e)?m[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!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(v,b);y[t]=new g(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(v,b);y[t]=new g(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(v,b);y[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,S=60106,E=60107,C=60108,_=60114,T=60109,O=60110,I=60112,A=60113,P=60120,R=60115,N=60116,D=60121,M=60128,L=60129,Z=60130,j=60131;if("function"===typeof Symbol&&Symbol.for){var F=Symbol.for;k=F("react.element"),S=F("react.portal"),E=F("react.fragment"),C=F("react.strict_mode"),_=F("react.profiler"),T=F("react.provider"),O=F("react.context"),I=F("react.forward_ref"),A=F("react.suspense"),P=F("react.suspense_list"),R=F("react.memo"),N=F("react.lazy"),D=F("react.block"),F("react.scope"),M=F("react.opaque.id"),L=F("react.debug_trace_mode"),Z=F("react.offscreen"),j=F("react.legacy_hidden")}var z,U="function"===typeof Symbol&&Symbol.iterator;function B(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=U&&e[U]||e["@@iterator"])?e:null}function V(e){if(void 0===z)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var H=!1;function W(e,t){if(!e||H)return"";H=!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(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var o=l.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?V(e):""}function q(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1);case 11:return e=W(e.type.render,!1);case 22:return e=W(e.type._render,!1);case 1:return e=W(e.type,!0);default:return""}}function G(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 E:return"Fragment";case S:return"Portal";case _:return"Profiler";case C:return"StrictMode";case A:return"Suspense";case P:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case I:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case R:return G(e.type);case D:return G(e._render);case N:t=e._payload,e=e._init;try{return G(e(t))}catch(n){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.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 $(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 X(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 J(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(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 te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(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")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(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 oe(e,t,n){"number"===t&&X(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";
vendor: 4,173 bytes, line 2
2return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+K(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:K(n)}}function ce(e,t){var n=K(t.value),r=K(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 ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function he(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 fe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var pe,me,ge=(me=function(e,t){if(e.namespaceURI!==de.svg||"innerHTML"in e)e.innerHTML=t;else{for((pe=pe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=pe.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 me(e,t)}))}:me);function ye(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 ve={animationIterationCount:!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},be=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||ve.hasOwnProperty(e)&&ve[e]?(""+t).trim():t+"px"}function xe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ve).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ve[t]=ve[e]}))}));var ke=o({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 Se(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function Ee(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}}function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.n
vendor: 3,897 bytes, line 2
2odeType?e.parentNode:e}var _e=null,Te=null,Oe=null;function Ie(e){if(e=no(e)){if("function"!==typeof _e)throw Error(a(280));var t=e.stateNode;t&&(t=oo(t),_e(e.stateNode,e.type,t))}}function Ae(e){Te?Oe?Oe.push(e):Oe=[e]:Te=e}function Pe(){if(Te){var e=Te,t=Oe;if(Oe=Te=null,Ie(e),t)for(e=0;e<t.length;e++)Ie(t[e])}}function Re(e,t){return e(t)}function Ne(e,t,n,r,o){return e(t,n,r,o)}function De(){}var Me=Re,Le=!1,Ze=!1;function je(){null===Te&&null===Oe||(De(),Pe())}function Fe(e,t){var n=e.stateNode;if(null===n)return null;var r=oo(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(a(231,t,typeof n));return n}var ze=!1;if(d)try{var Ue={};Object.defineProperty(Ue,"passive",{get:function(){ze=!0}}),window.addEventListener("test",Ue,Ue),window.removeEventListener("test",Ue,Ue)}catch(me){ze=!1}function Be(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Ve=!1,He=null,We=!1,qe=null,Ge={onError:function(e){Ve=!0,He=e}};function Ke(e,t,n,r,o,i,a,s,l){Ve=!1,He=null,Be.apply(Ge,arguments)}function Qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ye(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 $e(e){if(Qe(e)!==e)throw Error(a(188))}function Xe(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return $e(o),e;if(i===r)return $e(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Je(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,ot=!1,it=[],at=null,st=null,lt=null,ct=new Map,ut=new Map,dt=[],ht="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 ft(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function pt(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ut.delete(t.pointerId)}}function mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=ft(t,n,r,o,i),null!==t&&(null!==(t=no(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function gt(e){var t=to(e.target);if(null!==t){var n=Qe(t);
vendor: 5,574 bytes, line 2
2if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ye(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=no(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function vt(e,t,n){yt(e)&&n.delete(t)}function bt(){for(ot=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=no(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&it.shift()}null!==at&&yt(at)&&(at=null),null!==st&&yt(st)&&(st=null),null!==lt&&yt(lt)&&(lt=null),ct.forEach(vt),ut.forEach(vt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,bt)))}function xt(e){function t(t){return wt(t,e)}if(0<it.length){wt(it[0],e);for(var n=1;n<it.length;n++){var r=it[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&wt(at,e),null!==st&&wt(st,e),null!==lt&&wt(lt,e),ct.forEach(t),ut.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)gt(n),null===n.blockedOn&&dt.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var St={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},Et={},Ct={};function _t(e){if(Et[e])return Et[e];if(!St[e])return e;var t,n=St[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ct)return Et[e]=n[t];return e}d&&(Ct=document.createElement("div").style,"AnimationEvent"in window||(delete St.animationend.animation,delete St.animationiteration.animation,delete St.animationstart.animation),"TransitionEvent"in window||delete St.transitionend.transition);var Tt=_t("animationend"),Ot=_t("animationiteration"),It=_t("animationstart"),At=_t("transitionend"),Pt=new Map,Rt=new Map,Nt=["abort","abort",Tt,"animationEnd",Ot,"animationIteration",It,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",At,"transitionEnd","waiting","waiting"];function Dt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),Rt.set(r,t),Pt.set(r,o),c(o,[r])}}(0,i.unstable_now)();var Mt=8;function Lt(e){if(0!==(1&e))return Mt=15,1;if(0!==(2&e))return Mt=14,2;if(0!==(4&e))return Mt=13,4;var t=24&e;return 0!==t?(Mt=12,t):0!==(32&e)?(Mt=11,32):0!==(t=192&e)?(Mt=10,t):0!==(256&e)?(Mt=9,256):0!==(t=3584&e)?(Mt=8,t):0!==(4096&e)?(Mt=7,4096):0!==(t=4186112&e)?(Mt=6,t):0!==(t=62914560&e)?(Mt=5,t):67108864&e?(Mt=4,67108864):0!==(134217728&e)?(Mt=3,134217728):0!==(t=805306368&e)?(Mt=2,t):0!==(1073741824&e)?(Mt=1,1073741824):(Mt=8,e)}function Zt(e,t){var n=e.pendingLanes;if(0===n)return Mt=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==i)r=i,o=Mt=15;else if(0!==(i=134217727&n)){var l=i&~a;0!==l?(r=Lt(l),o=Mt):0!==(s&=i)&&(r=Lt(s),o=Mt)}else 0!==(i=n&~a)?(r=Lt(i),o=Mt):0!==s&&(r=Lt(s),o=Mt);if(0===r)return 0;if(r=n&((0>(r=31-Vt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&a)){if(Lt(t),o<=Mt)return t;Mt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Vt(t)),r|=e[n],t&=~o;return r}function jt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ft(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=zt(24&~t))?Ft(10,t):e;case 10:return 0===(e=zt(192&~t))?Ft(8,t):e;case 8:return 0===(e=zt(3584&~t))&&(0===(e=zt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=zt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function zt(e){return e&-e}function Ut(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Bt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Vt(t)]=n}var Vt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ht(e)/Wt|0)|0},Ht=Math.log,Wt=Math.LN2;var qt=i.unstable_UserBlockingPriority,Gt=i.unstable_runWithPriority,Kt=!0;function Qt(e,t,n,r){Le||De();var o=$t,i=Le;Le=!0;try{Ne(o,e,t,n,r)}finally{(Le=i)||je()}}function Yt(e,t,n,r){Gt(qt,$t.bind(null,e,t,n,r))}function $t(e,t,n,r){var o;if(Kt)if((o=0===(4&t))&&0<it.length&&-1<ht.indexOf(e))e=ft(null,e,t,n,r),it.push(e);else{var i=Xt(e,t,n,r);if(null===i)o&&pt(e,r);else{if(o){if(-1<ht.indexOf(e))return e=ft(i,e,t,n,r),void it.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return at=mt(at,e,t,n,r,o),!0;case"dragenter":return st=mt(st,e,t,n,r,o),!0;case"mouseover":return lt=mt(lt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ct.set(i,mt(ct.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ut.set(i,mt(ut.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;pt(e,r)}Dr(e,t,r,null,n)}}}function Xt(e,t,n,r){var o=Ce(r);
vendor: 10,882 bytes, line 2
2if(null!==(o=to(o))){var i=Qe(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Ye(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Dr(e,t,r,o,n),null}var Jt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,o="value"in Jt?Jt.value:Jt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return tn=o.slice(e,1<t?1-t:void 0)}function rn(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 on(){return!0}function an(){return!1}function sn(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?on:an,this.isPropagationStopped=an,this}return o(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=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var ln,cn,un,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hn=sn(dn),fn=o({},dn,{view:0,detail:0}),pn=sn(fn),mn=o({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,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!==un&&(un&&"mousemove"===e.type?(ln=e.screenX-un.screenX,cn=e.screenY-un.screenY):cn=ln=0,un=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),gn=sn(mn),yn=sn(o({},mn,{dataTransfer:0})),vn=sn(o({},fn,{relatedTarget:0})),bn=sn(o({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=o({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xn=sn(wn),kn=sn(o({},dn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={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"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function Tn(){return _n}var On=o({},fn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),In=sn(On),An=sn(o({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=sn(o({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Rn=sn(o({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=o({},mn,{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}),Dn=sn(Nn),Mn=[9,13,27,32],Ln=d&&"CompositionEvent"in window,Zn=null;d&&"documentMode"in document&&(Zn=document.documentMode);var jn=d&&"TextEvent"in window&&!Zn,Fn=d&&(!Ln||Zn&&8<Zn&&11>=Zn),zn=String.fromCharCode(32),Un=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Wn={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 qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Gn(e,t,n,r){Ae(r),0<(t=Lr(t,"onChange")).length&&(n=new hn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Qn=null;function Yn(e){Or(e,0)}function $n(e){if($(ro(e)))return e}function Xn(e,t){if("change"===e)return t}var Jn=!1;if(d){var er;if(d){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"===typeof nr.oninput}er=tr}else er=!1;Jn=er&&(!document.documentMode||9<document.documentMode)}function rr(){Kn&&(Kn.detachEvent("onpropertychange",or),Qn=Kn=null)}function or(e){if("value"===e.propertyName&&$n(Qn)){var t=[];if(Gn(t,Qn,e,Ce(e)),e=Yn,Le)e(t);else{Le=!0;try{Re(e,t)}finally{Le=!1,je()}}}}function ir(e,t,n){"focusin"===e?(rr(),Qn=n,(Kn=t).attachEvent("onpropertychange",or)):"focusout"===e&&rr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(Qn)}function sr(e,t){if("click"===e)return $n(t)}function lr(e,t){if("input"===e||"change"===e)return $n(t)}var cr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},ur=Object.prototype.hasOwnProperty;function dr(e,t){if(cr(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++)if(!ur.call(t,n[r])||!cr(e[n[r]],t[n[r]]))return!1;return!0}function hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(e,t){var n,r=hr(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=hr(r)}}function pr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mr(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=X((e=t.contentWindow).document)}return t}function gr(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)}var yr=d&&"documentMode"in document&&11>=document.documentMode,vr=null,br=null,wr=null,xr=!1;function kr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;xr||null==vr||vr!==X(r)||("selectionStart"in(r=vr)&&gr(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},wr&&dr(wr,r)||(wr=r,0<(r=Lr(br,"onSelect")).length&&(t=new hn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}Dt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Dt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Dt(Nt,2);for(var Sr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Er=0;Er<Sr.length;Er++)Rt.set(Sr[Er],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_r=new Set("cancel close invalid load scroll toggle".split(" ").concat(Cr));function Tr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,s,l,c){if(Ke.apply(this,arguments),Ve){if(!Ve)throw Error(a(198));var u=He;Ve=!1,He=null,We||(We=!0,qe=u)}}(r,t,void 0,e),e.currentTarget=null}function Or(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Tr(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Tr(o,s,c),i=l}}}if(We)throw e=qe,We=!1,qe=null,e}function Ir(e,t){var n=io(t),r=e+"__bubble";n.has(r)||(Nr(t,e,2,!1),n.add(r))}var Ar="_reactListening"+Math.random().toString(36).slice(2);
vendor: 4,823 bytes, line 2
2function Pr(e){e[Ar]||(e[Ar]=!0,s.forEach((function(t){_r.has(t)||Rr(t,!1,e,null),Rr(t,!0,e,null)})))}function Rr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&_r.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=io(i),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(o|=4),Nr(i,e,o,t),a.add(s))}function Nr(e,t,n,r){var o=Rt.get(t);switch(void 0===o?2:o){case 0:o=Qt;break;case 1:o=Yt;break;default:o=$t}n=o.bind(null,t,n,e),o=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Dr(e,t,n,r,o){var i=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 s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=to(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Ze)return e(t,n);Ze=!0;try{return Me(e,t,n)}finally{Ze=!1,je()}}((function(){var r=i,o=Ce(n),a=[];e:{var s=Pt.get(e);if(void 0!==s){var l=hn,c=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":l=In;break;case"focusin":c="focus",l=vn;break;case"focusout":c="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;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=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pn;break;case Tt:case Ot:case It:l=bn;break;case At:l=Rn;break;case"scroll":l=pn;break;case"wheel":l=Dn;break;case"copy":case"cut":case"paste":l=xn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=An}var u=0!==(4&t),d=!u&&"scroll"===e,h=u?null!==s?s+"Capture":null:s;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=Fe(p,h))&&u.push(Mr(p,m,f)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(c=n.relatedTarget||n.fromElement)||!to(c)&&!c[Jr])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?to(c):null)&&(c!==(d=Qe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=gn,m="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=An,m="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==l?s:ro(l),f=null==c?s:ro(c),(s=new u(m,p+"leave",l,n,o)).target=d,s.relatedTarget=f,m=null,to(o)===r&&((u=new u(h,p+"enter",c,n,o)).target=f,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(h=c,p=0,f=u=l;f;f=Zr(f))p++;for(f=0,m=h;m;m=Zr(m))f++;for(;0<p-f;)u=Zr(u),p--;for(;0<f-p;)h=Zr(h),f--;for(;p--;){if(u===h||null!==h&&u===h.alternate)break e;u=Zr(u),h=Zr(h)}u=null}else u=null;null!==l&&jr(a,s,l,u,!1),null!==c&&null!==d&&jr(a,d,c,u,!0)}if("select"===(l=(s=r?ro(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Xn;else if(qn(s))if(Jn)g=lr;else{g=ar;var y=ir}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=sr);switch(g&&(g=g(e,r))?Gn(a,g,n,o):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&oe(s,"number",s.value)),y=r?ro(r):window,e){case"focusin":(qn(y)||"true"===y.contentEditable)&&(vr=y,br=r,wr=null);break;case"focusout":wr=br=vr=null;break;case"mousedown":xr=!0;break;case"contextmenu":case"mouseup":case"dragend":xr=!1,kr(a,n,o);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":kr(a,n,o)}var v;if(Ln)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 Hn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(v=nn()):(en="value"in(Jt=o)?Jt.value:Jt.textContent,Hn=!0)),0<(y=Lr(r,b)).length&&(b=new kn(b,e,null,n,o),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=Vn(n))&&(b.data=v))),(v=jn?function(e,t){switch(e){case"compositionend":return Vn(t);
vendor: 20,691 bytes, line 2
2case"keypress":return 32!==t.which?null:(Un=!0,zn);case"textInput":return(e=t.data)===zn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Ln&&Bn(e,t)?(e=nn(),tn=en=Jt=null,Hn=!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;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Lr(r,"onBeforeInput")).length&&(o=new kn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=v))}Or(a,t)}))}function Mr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Fe(e,n))&&r.unshift(Mr(e,i,o)),null!=(i=Fe(e,t))&&r.push(Mr(e,i,o))),e=e.return}return r}function Zr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function jr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Fe(n,i))&&a.unshift(Mr(n,l,s)):o||null!=(l=Fe(n,i))&&a.push(Mr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Fr(){}var zr=null,Ur=null;function Br(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Vr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Hr="function"===typeof setTimeout?setTimeout:void 0,Wr="function"===typeof clearTimeout?clearTimeout:void 0;function qr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Gr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Kr(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 Qr=0;var Yr=Math.random().toString(36).slice(2),$r="__reactFiber$"+Yr,Xr="__reactProps$"+Yr,Jr="__reactContainer$"+Yr,eo="__reactEvents$"+Yr;function to(e){var t=e[$r];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Jr]||n[$r]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Kr(e);null!==e;){if(n=e[$r])return n;e=Kr(e)}return t}n=(e=n).parentNode}return null}function no(e){return!(e=e[$r]||e[Jr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ro(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function oo(e){return e[Xr]||null}function io(e){var t=e[eo];return void 0===t&&(t=e[eo]=new Set),t}var ao=[],so=-1;function lo(e){return{current:e}}function co(e){0>so||(e.current=ao[so],ao[so]=null,so--)}function uo(e,t){so++,ao[so]=e.current,e.current=t}var ho={},fo=lo(ho),po=lo(!1),mo=ho;function go(e,t){var n=e.type.contextTypes;if(!n)return ho;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function yo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function vo(){co(po),co(fo)}function bo(e,t,n){if(fo.current!==ho)throw Error(a(168));uo(fo,t),uo(po,n)}function wo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,G(t)||"Unknown",i));return o({},n,r)}function xo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ho,mo=fo.current,uo(fo,e),uo(po,po.current),!0}function ko(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=wo(e,t,mo),r.__reactInternalMemoizedMergedChildContext=e,co(po),co(fo),uo(fo,e)):co(po),uo(po,n)}var So=null,Eo=null,Co=i.unstable_runWithPriority,_o=i.unstable_scheduleCallback,To=i.unstable_cancelCallback,Oo=i.unstable_shouldYield,Io=i.unstable_requestPaint,Ao=i.unstable_now,Po=i.unstable_getCurrentPriorityLevel,Ro=i.unstable_ImmediatePriority,No=i.unstable_UserBlockingPriority,Do=i.unstable_NormalPriority,Mo=i.unstable_LowPriority,Lo=i.unstable_IdlePriority,Zo={},jo=void 0!==Io?Io:function(){},Fo=null,zo=null,Uo=!1,Bo=Ao(),Vo=1e4>Bo?Ao:function(){return Ao()-Bo};function Ho(){switch(Po()){case Ro:return 99;case No:return 98;case Do:return 97;case Mo:return 96;case Lo:return 95;default:throw Error(a(332))}}function Wo(e){switch(e){case 99:return Ro;case 98:return No;case 97:return Do;case 96:return Mo;case 95:return Lo;default:throw Error(a(332))}}function qo(e,t){return e=Wo(e),Co(e,t)}function Go(e,t,n){return e=Wo(e),_o(e,t,n)}function Ko(){if(null!==zo){var e=zo;zo=null,To(e)}Qo()}function Qo(){if(!Uo&&null!==Fo){Uo=!0;var e=0;try{var t=Fo;qo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Fo=null}catch(n){throw null!==Fo&&(Fo=Fo.slice(e+1)),_o(Ro,Ko),n}finally{Uo=!1}}}var Yo=x.ReactCurrentBatchConfig;function $o(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Xo=lo(null),Jo=null,ei=null,ti=null;function ni(){ti=ei=Jo=null}function ri(e){var t=Xo.current;co(Xo),e.type._context._currentValue=t}function oi(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ii(e,t){Jo=e,ti=ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(La=!0),e.firstContext=null)}function ai(e,t){if(ti!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(ti=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ei){if(null===Jo)throw Error(a(308));ei=t,Jo.dependencies={lanes:0,firstContext:t,responders:null}}else ei=ei.next=t;return e._currentValue}var si=!1;function li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ci(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 ui(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function di(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function hi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=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===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fi(e,t,n,r){var i=e.updateQueue;si=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var c=l,u=c.next;c.next=null,null===s?a=u:s.next=u,s=c;var d=e.alternate;if(null!==d){var h=(d=d.updateQueue).lastBaseUpdate;h!==s&&(null===h?d.firstBaseUpdate=u:h.next=u,d.lastBaseUpdate=c)}}if(null!==a){for(h=i.baseState,s=0,d=u=c=null;;){l=a.lane;var f=a.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,m=a;switch(l=t,f=n,m.tag){case 1:if("function"===typeof(p=m.payload)){h=p.call(f,h,l);break e}h=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null===(l="function"===typeof(p=m.payload)?p.call(f,h,l):p)||void 0===l)break e;h=o({},h,l);break e;case 2:si=!0}}null!==a.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[a]:l.push(a))}else f={eventTime:f,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(u=d=f,c=h):d=d.next=f,s|=l;if(null===(a=a.next)){if(null===(l=i.shared.pending))break;a=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}null===d&&(c=h),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,Us|=s,e.lanes=s,e.memoizedState=h}}function pi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(a(191,o));o.call(r)}}}var mi=(new r.Component).refs;function gi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var yi={isMounted:function(e){return!!(e=e._reactInternals)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=hl(),o=fl(e),i=ui(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),di(e,i),pl(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=hl(),o=fl(e),i=ui(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),di(e,i),pl(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=hl(),r=fl(e),o=ui(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),di(e,o),pl(e,r,n)}};function vi(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!dr(n,r)||!dr(o,i))}function bi(e,t,n){var r=!1,o=ho,i=t.contextType;return"object"===typeof i&&null!==i?i=ai(i):(o=yo(t)?mo:fo.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?go(e,o):ho),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function wi(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&&yi.enqueueReplaceState(t,t.state,null)}function xi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=mi,li(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=ai(i):(i=yo(t)?mo:fo.current,o.context=go(e,i)),fi(e,n,o,r),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(gi(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&yi.enqueueReplaceState(o,o.state,null),fi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4)}var ki=Array.isArray;function Si(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(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===mi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ei(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ci(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}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 o(e,t){return(e=ql(e,t)).index=0,e.sibling=null,e}function i(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):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Yl(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Si(e,t,n),r.return=e,r):((r=Gl(n.type,n.key,n.props,null,e.mode,r)).ref=Si(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=$l(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Kl(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function h(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Yl(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Gl(t.type,t.key,t.props,null,e.mode,n)).ref=Si(e,null,t),n.return=e,n;case S:return(t=$l(t,e.mode,n)).return=e,t}if(ki(t)||B(t))return(t=Kl(t,e.mode,n,null)).return=e,t;Ei(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===o?n.type===E?d(e,t,n.props.children,r,o):c(e,t,n,r):null;case S:return n.key===o?u(e,t,n,r):null}if(ki(n)||B(n))return null!==o?null:d(e,t,n,r,null);Ei(e,n)}return null}function p(e,t,n,r,o){if("string"===typeof r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===E?d(t,e,r.props.children,o,r.key):c(t,e,r,o);case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(ki(r)||B(r))return d(t,e=e.get(n)||null,r,o,null);Ei(t,r)}return null}function m(o,a,s,l){for(var c=null,u=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var y=f(o,d,s[m],l);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(o,d),a=i(y,a,m),null===u?c=y:u.sibling=y,u=y,d=g}if(m===s.length)return n(o,d),c;if(null===d){for(;m<s.length;m++)null!==(d=h(o,s[m],l))&&(a=i(d,a,m),null===u?c=d:u.sibling=d,u=d);return c}for(d=r(o,d);m<s.length;m++)null!==(g=p(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),c}function g(o,s,l,c){var u=B(l);if("function"!==typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,m=s,g=s=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(o,m,v.value,c);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(o,m),s=i(b,s,g),null===d?u=b:d.sibling=b,d=b,m=y}if(v.done)return n(o,m),u;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=h(o,v.value,c))&&(s=i(v,s,g),null===d?u=v:d.sibling=v,d=v);return u}for(m=r(o,m);!v.done;g++,v=l.next())null!==(v=p(m,o,g,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=i(v,s,g),null===d?u=v:d.sibling=v,d=v);return e&&m.forEach((function(e){return t(o,e)})),u}return function(e,r,i,l){var c="object"===typeof i&&null!==i&&i.type===E&&null===i.key;c&&(i=i.props.children);var u="object"===typeof i&&null!==i;if(u)switch(i.$$typeof){case k:e:{for(u=i.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(i.type===E){n(e,c.sibling),(r=o(c,i.props.children)).return=e,e=r;break e}}else if(c.elementType===i.type){n(e,c.sibling),(r=o(c,i.props)).ref=Si(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===E?((r=Kl(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=Gl(i.type,i.key,i.props,null,e.mode,l)).ref=Si(e,r,i),l.return=e,e=l)}return s(e);case S:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=$l(i,e.mode,l)).return=e,e=r}return s(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Yl(i,e.mode,l)).return=e,e=r),s(e);if(ki(i))return m(e,r,i,l);if(B(i))return g(e,r,i,l);if(u&&Ei(e,i),"undefined"===typeof i&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,G(e.type)||"Component"))}return n(e,r)}}var _i=Ci(!0),Ti=Ci(!1),Oi={},Ii=lo(Oi),Ai=lo(Oi),Pi=lo(Oi);function Ri(e){if(e===Oi)throw Error(a(174));return e}function Ni(e,t){switch(uo(Pi,t),uo(Ai,e),uo(Ii,Oi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fe(null,"");break;default:t=fe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}co(Ii),uo(Ii,t)}function Di(){co(Ii),co(Ai),co(Pi)}function Mi(e){Ri(Pi.current);var t=Ri(Ii.current),n=fe(t,e.type);t!==n&&(uo(Ai,e),uo(Ii,n))}function Li(e){Ai.current===e&&(co(Ii),co(Ai))}var Zi=lo(0);function ji(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!==(64&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 Fi=null,zi=null,Ui=!1;function Bi(e,t){var n=Hl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Vi(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,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Hi(e){if(Ui){var t=zi;if(t){var n=t;if(!Vi(e,t)){if(!(t=Gr(n.nextSibling))||!Vi(e,t))return e.flags=-1025&e.flags|2,Ui=!1,void(Fi=e);Bi(Fi,n)}Fi=e,zi=Gr(t.firstChild)}else e.flags=-1025&e.flags|2,Ui=!1,Fi=e}}function Wi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Fi=e}function qi(e){if(e!==Fi)return!1;if(!Ui)return Wi(e),Ui=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Vr(t,e.memoizedProps))for(t=zi;t;)Bi(e,t),t=Gr(t.nextSibling);if(Wi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){zi=Gr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}zi=null}}else zi=Fi?Gr(e.stateNode.nextSibling):null;return!0}function Gi(){zi=Fi=null,Ui=!1}var Ki=[];function Qi(){for(var e=0;e<Ki.length;e++)Ki[e]._workInProgressVersionPrimary=null;Ki.length=0}var Yi=x.ReactCurrentDispatcher,$i=x.ReactCurrentBatchConfig,Xi=0,Ji=null,ea=null,ta=null,na=!1,ra=!1;function oa(){throw Error(a(321))}function ia(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cr(e[n],t[n]))return!1;return!0}function aa(e,t,n,r,o,i){if(Xi=i,Ji=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yi.current=null===e||null===e.memoizedState?Ra:Na,e=n(r,o),ra){i=0;do{if(ra=!1,!(25>i))throw Error(a(301));i+=1,ta=ea=null,t.updateQueue=null,Yi.current=Da,e=n(r,o)}while(ra)}if(Yi.current=Pa,t=null!==ea&&null!==ea.next,Xi=0,ta=ea=Ji=null,na=!1,t)throw Error(a(300));return e}function sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ta?Ji.memoizedState=ta=e:ta=ta.next=e,ta}function la(){if(null===ea){var e=Ji.alternate;e=null!==e?e.memoizedState:null}else e=ea.next;var t=null===ta?Ji.memoizedState:ta.next;if(null!==t)ta=t,ea=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ea=e).memoizedState,baseState:ea.baseState,baseQueue:ea.baseQueue,queue:ea.queue,next:null},null===ta?Ji.memoizedState=ta=e:ta=ta.next=e}return ta}function ca(e,t){return"function"===typeof t?t(e):t}function ua(e){var t=la(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ea,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=s=i=null,c=o;do{var u=c.lane;if((Xi&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,i=r):l=l.next=d,Ji.lanes|=u,Us|=u}c=c.next}while(null!==c&&c!==o);
vendor: 6,224 bytes, line 2
2null===l?i=r:l.next=s,cr(r,t.memoizedState)||(La=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function da(e){var t=la(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);cr(i,t.memoizedState)||(La=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ha(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Xi&e)===e)&&(t._workInProgressVersionPrimary=r,Ki.push(t))),e)return n(t._source);throw Ki.push(t),Error(a(350))}function fa(e,t,n,r){var o=Ns;if(null===o)throw Error(a(349));var i=t._getVersion,s=i(t._source),l=Yi.current,c=l.useState((function(){return ha(o,t,n)})),u=c[1],d=c[0];c=ta;var h=e.memoizedState,f=h.refs,p=f.getSnapshot,m=h.source;h=h.subscribe;var g=Ji;return e.memoizedState={refs:f,source:t,subscribe:r},l.useEffect((function(){f.getSnapshot=n,f.setSnapshot=u;var e=i(t._source);if(!cr(s,e)){e=n(t._source),cr(d,e)||(u(e),e=fl(g),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var l=31-Vt(a),c=1<<l;r[l]|=e,a&=~c}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=f.getSnapshot,n=f.setSnapshot;try{n(e(t._source));var r=fl(g);o.mutableReadLanes|=r&o.pendingLanes}catch(i){n((function(){throw i}))}}))}),[t,r]),cr(p,n)&&cr(m,t)&&cr(h,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ca,lastRenderedState:d}).dispatch=u=Aa.bind(null,Ji,e),c.queue=e,c.baseQueue=null,d=ha(o,t,n),c.memoizedState=c.baseState=d),d}function pa(e,t,n){return fa(la(),e,t,n)}function ma(e){var t=sa();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ca,lastRenderedState:e}).dispatch=Aa.bind(null,Ji,e),[t.memoizedState,e]}function ga(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ji.updateQueue)?(t={lastEffect:null},Ji.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 ya(e){return e={current:e},sa().memoizedState=e}function va(){return la().memoizedState}function ba(e,t,n,r){var o=sa();Ji.flags|=e,o.memoizedState=ga(1|t,n,void 0,void 0===r?null:r)}function wa(e,t,n,r){var o=la();r=void 0===r?null:r;var i=void 0;if(null!==ea){var a=ea.memoizedState;if(i=a.destroy,null!==r&&ia(r,a.deps))return void ga(t,n,i,r)}Ji.flags|=e,o.memoizedState=ga(1|t,n,i,r)}function xa(e,t){return ba(516,4,e,t)}function ka(e,t){return wa(516,4,e,t)}function Sa(e,t){return wa(4,2,e,t)}function Ea(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 Ca(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,wa(4,2,Ea.bind(null,t,e),n)}function _a(){}function Ta(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ia(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Oa(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ia(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ia(e,t){var n=Ho();qo(98>n?98:n,(function(){e(!0)})),qo(97<n?97:n,(function(){var n=$i.transition;$i.transition=1;try{e(!1),t()}finally{$i.transition=n}}))}function Aa(e,t,n){var r=hl(),o=fl(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===Ji||null!==a&&a===Ji)ra=na=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(i.eagerReducer=a,i.eagerState=l,cr(l,s))return}catch(c){}pl(e,o,r)}}var Pa={readContext:ai,useCallback:oa,useContext:oa,useEffect:oa,useImperativeHandle:oa,useLayoutEffect:oa,useMemo:oa,useReducer:oa,useRef:oa,useState:oa,useDebugValue:oa,useDeferredValue:oa,useTransition:oa,useMutableSource:oa,useOpaqueIdentifier:oa,unstable_isNewReconciler:!1},Ra={readContext:ai,useCallback:function(e,t){return sa().memoizedState=[e,void 0===t?null:t],e},useContext:ai,useEffect:xa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ba(4,2,Ea.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ba(4,2,e,t)},useMemo:function(e,t){var n=sa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Aa.bind(null,Ji,e),[r.memoizedState,e]},useRef:ya,useState:ma,useDebugValue:_a,useDeferredValue:function(e){var t=ma(e),n=t[0],r=t[1];return xa((function(){var t=$i.transition;$i.transition=1;try{r(e)}finally{$i.transition=t}}),[e]),n},useTransition:function(){var e=ma(!1),t=e[0];return ya(e=Ia.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=sa();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},fa(r,e,t,n)},useOpaqueIdentifier:function(){if(Ui){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Qr++).toString(36))),Error(a(355))})),n=ma(t)[1];return 0===(2&Ji.mode)&&(Ji.flags|=516,ga(5,(function(){n("r:"+(Qr++).toString(36))}),void 0,null)),t}return ma(t="r:"+(Qr++).toString(36)),t},unstable_isNewReconciler:!1},Na={readContext:ai,useCallback:Ta,useContext:ai,useEffect:ka,useImperativeHandle:Ca,useLayoutEffect:Sa,useMemo:Oa,useReducer:ua,useRef:va,useState:function(){return ua(ca)},useDebugValue:_a,useDeferredValue:function(e){var t=ua(ca),n=t[0],r=t[1];return ka((function(){var t=$i.transition;$i.transition=1;try{r(e)}finally{$i.transition=t}}),[e]),n},useTransition:function(){var e=ua(ca)[0];return[va().current,e]},useMutableSource:pa,useOpaqueIdentifier:function(){return ua(ca)[0]},unstable_isNewReconciler:!1},Da={readContext:ai,useCallback:Ta,useContext:ai,useEffect:ka,useImperativeHandle:Ca,useLayoutEffect:Sa,useMemo:Oa,useReducer:da,useRef
2:va,useState:function(){return da(ca)},useDebugValue:_a,useDeferredValue:function(e){var t=da(ca),n=t[0],r=t[1];return ka((function(){var t=$i.transition;$i.transition=1;try{r(e)}finally{$i.transition=t}}),[e]),n},useTransition:function(){var e=da(ca)[0];return[va().current,e]},useMutableSource:pa,useOpaqueIdentifier:function(){return da(ca)[0]},unstable_isNewReconciler:!1},Ma=x.ReactCurrentOwner,La=!1;function Za(e,t,n,r){t.child=null===e?Ti(t,null,n,r):_i(t,e.child,n,r)}function ja(e,t,n,r,o){n=n.render;var i=t.ref;return ii(t,o),r=aa(e,t,n,r,i,o),null===e||La?(t.flags|=1,Za(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,is(e,t,o))}function Fa(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!==typeof a||Wl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Gl(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,za(e,t,a,r,o,i))}return a=e.child,0===(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:dr)(o,r)&&e.ref===t.ref)?is(e,t,i):(t.flags|=1,(e=ql(a,r)).ref=t.ref,e.return=t,t.child=e)}function za(e,t,n,r,o,i){if(null!==e&&dr(e.memoizedProps,r)&&e.ref===t.ref){if(La=!1,0===(i&o))return t.lanes=e.lanes,is(e,t,i);0!==(16384&e.flags)&&(La=!0)}return Va(e,t,n,r,i)}function Ua(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},kl(t,n);else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},kl(t,e),null;t.memoizedState={baseLanes:0},kl(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,kl(t,r);return Za(e,t,o,n),t.child}function Ba(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Va(e,t,n,r,o){var i=yo(n)?mo:fo.current;return i=go(t,i),ii(t,o),n=aa(e,t,n,r,i,o),null===e||La?(t.flags|=1,Za(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,is(e,t,o))}function Ha(e,t,n,r,o){if(yo(n)){var i=!0;xo(t)}else i=!1;if(ii(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),bi(t,n,r),xi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=ai(c):c=go(t,c=yo(n)?mo:fo.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&wi(t,a,r,c),si=!1;var h=t.memoizedState;a.state=h,fi(t,r,a,o),l=t.memoizedState,s!==r||h!==l||po.current||si?("function"===typeof u&&(gi(t,n,u,r),l=t.memoizedState),(s=si||vi(t,n,s,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|=4)):("function"===typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,ci(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:$o(t.type,s),a.props=c,d=t.pendingProps,h=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=ai(l):l=go(t,l=yo(n)?mo:fo.current);var f=n.getDerivedStateFromProps;(u="function"===typeof f||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||h!==l)&&wi(t,a,r,l),si=!1,h=t.memoizedState,a.state=h,fi(t,r,a,o);var p=t.memoizedState;s!==d||h!==p||po.current||si?("function"===typeof f&&(gi(t,n,f,r),p=t.memoizedState),(c=si||vi(t,n,c,r,h,p,l))?(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|=256)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),r=!1)}return Wa(e,t,n,r,i,o)}function Wa(e,t,n,r,o,i){Ba(e,t);var a=0!==(64&t.flags);if(!r&&!a)return o&&ko(t,n,!1),is(e,t,i);r=t.stateNode,Ma.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=_i(t,e.child,null,i),t.child=_i(t,null,s,i)):Za(e,t,s,i),t.memoizedState=r.state,o&&ko(t,n,!0),t.child}function qa(e){var t=e.stateNode;t.pendingContext?bo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bo(0,t.context,!1),Ni(e,t.containerInfo)}var Ga,Ka,Qa,Ya,$a={dehydrated:null,retryLane:0};function Xa(e,t,n){var r,o=t.pendingProps,i=Zi.current,a=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),uo(Zi,1&i),null===e?(void 0!==o.fallback&&Hi(t),e=o.children,i=o.fallback,a?(e=Ja(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$a,e):"number"===typeof o.unstable_expectedLoadTime?(e=Ja(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$a,t.lanes=33554432,e):((n=Ql({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=ts(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=$a,o):(n=es(e,t,o.children,n),t.memoizedState=null,n))}function Ja(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0===(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Ql(t,o,0,null),n=Kl(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function es(e,t,n,r){var o=e.child;return e=o.sibling,n=ql(o,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ts(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0===(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=ql(a,s),null!==e?r=ql(e,r):(r=Kl(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function ns(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),oi(e.return,t)}function rs(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function os(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Za(e,t,r.children,n),0!==(2&(r=Zi.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ns(e,n);else if(19===e.tag)ns(e,n);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(uo(Zi,r),0===(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ji(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),rs(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ji(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}rs(t,!0,n,null,i,t.lastEffect);break;case"together":rs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function is(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Us|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=ql(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;
2)e=e.sibling,(n=n.sibling=ql(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function as(e,t){if(!Ui)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 ss(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return yo(t.type)&&vo(),null;case 3:return Di(),co(po),co(fo),Qi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(qi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Ka(t),null;case 5:Li(t);var i=Ri(Pi.current);if(n=t.type,null!==e&&null!=t.stateNode)Qa(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ri(Ii.current),qi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[$r]=t,r[Xr]=s,n){case"dialog":Ir("cancel",r),Ir("close",r);break;case"iframe":case"object":case"embed":Ir("load",r);break;case"video":case"audio":for(e=0;e<Cr.length;e++)Ir(Cr[e],r);break;case"source":Ir("error",r);break;case"img":case"image":case"link":Ir("error",r),Ir("load",r);break;case"details":Ir("toggle",r);break;case"input":ee(r,s),Ir("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Ir("invalid",r);break;case"textarea":le(r,s),Ir("invalid",r)}for(var c in Se(n,s),e=null,s)s.hasOwnProperty(c)&&(i=s[c],"children"===c?"string"===typeof i?r.textContent!==i&&(e=["children",i]):"number"===typeof i&&r.textContent!==""+i&&(e=["children",""+i]):l.hasOwnProperty(c)&&null!=i&&"onScroll"===c&&Ir("scroll",r));switch(n){case"input":Y(r),re(r,s,!0);break;case"textarea":Y(r),ue(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=Fr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===i.nodeType?i:i.ownerDocument,e===de.html&&(e=he(n)),e===de.html?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[$r]=t,e[Xr]=r,Ga(e,t,!1,!1),t.stateNode=e,c=Ee(n,r),n){case"dialog":Ir("cancel",e),Ir("close",e),i=r;break;case"iframe":case"object":case"embed":Ir("load",e),i=r;break;case"video":case"audio":for(i=0;i<Cr.length;i++)Ir(Cr[i],e);i=r;break;case"source":Ir("error",e),i=r;break;case"img":case"image":case"link":Ir("error",e),Ir("load",e),i=r;break;case"details":Ir("toggle",e),i=r;break;case"input":ee(e,r),i=J(e,r),Ir("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Ir("invalid",e);break;case"textarea":le(e,r),i=se(e,r),Ir("invalid",e);break;default:i=r}Se(n,i);var u=i;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?xe(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&ge(e,d):"children"===s?"string"===typeof d?("textarea"!==n||""!==d)&&ye(e,d):"number"===typeof d&&ye(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Ir("scroll",e):null!=d&&w(e,s,d,c))}switch(n){case"input":Y(e),re(e,r,!1);break;case"textarea":Y(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+K(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Fr)}Br(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ya(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Ri(Pi.current),Ri(Ii.current),qi(t)?(r=t.stateNode,n=t.memoizedProps,r[$r]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[$r]=t,t.stateNode=r)}return null;case 13:return co(Zi),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&qi(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Zi.current)?0===js&&(js=3):(0!==js&&3!==js||(js=4),null===Ns||0===(134217727&Us)&&0===(134217727&Bs)||vl(Ns,Ms))
vendor: 10,480 bytes, line 2
2),(r||n)&&(t.flags|=4),null);case 4:return Di(),Ka(t),null===e&&Pr(t.stateNode.containerInfo),null;case 10:return ri(t),null;case 19:if(co(Zi),null===(r=t.memoizedState))return null;if(s=0!==(64&t.flags),null===(c=r.rendering))if(s)as(r,!1);else{if(0!==js||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=ji(e))){for(t.flags|=64,as(r,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return uo(Zi,1&Zi.current|2),t.child}e=e.sibling}null!==r.tail&&Vo()>qs&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=ji(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),as(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Ui)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Vo()-r.renderingStartTime>qs&&1073741824!==n&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Vo(),n.sibling=null,t=Zi.current,uo(Zi,s?1&t|2:1&t),n):null;case 23:case 24:return Sl(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function ls(e){switch(e.tag){case 1:yo(e.type)&&vo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Di(),co(po),co(fo),Qi(),0!==(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Li(e),null;case 13:return co(Zi),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return co(Zi),null;case 4:return Di(),null;case 10:return ri(e),null;case 23:case 24:return Sl(),null;default:return null}}function cs(e,t){try{var n="",r=t;do{n+=q(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o}}function us(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Ga=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}},Ka=function(){},Qa=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ri(Ii.current);var a,s=null;switch(n){case"input":i=J(e,i),r=J(e,r),s=[];break;case"option":i=ie(e,i),r=ie(e,r),s=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),s=[];break;case"textarea":i=se(e,i),r=se(e,r),s=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Fr)}for(d in Se(n,r),n=null,i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&null!=i[d])if("style"===d){var c=i[d];for(a in c)c.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(c=null!=i?i[d]:void 0,r.hasOwnProperty(d)&&u!==c&&(null!=u||null!=c))if("style"===d)if(c){for(a in c)!c.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&c[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(d,n)),n=u;else"dangerouslySetInnerHTML"===d?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(s=s||[]).push(d,u)):"children"===d?"string"!==typeof u&&"number"!==typeof u||(s=s||[]).push(d,""+u):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=u&&"onScroll"===d&&Ir("scroll",e),s||c===u||(s=[])):"object"===typeof u&&null!==u&&u.$$typeof===M?u.toString():(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Ya=function(e,t,n,r){n!==r&&(t.flags|=4)};var ds="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=ui(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ys||(Ys=!0,$s=r),us(0,t)},n}function fs(e,t,n){(n=ui(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return us(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Xs?Xs=new Set([this]):Xs.add(this),us(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ps="function"===typeof WeakSet?WeakSet:Set;function ms(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){zl(e,n)}else t.current=null}function gs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:$o(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qr(t.stateNode.containerInfo))}throw Error(a(163))}function ys(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!==(4&(o=o.tag))&&0!==(1&o)&&(Zl(n,e),Ll(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:$o(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&pi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}pi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Br(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&xt(n)))))}throw Error(a(163))}function vs(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=void 0!==o&&null!==o&&o.hasOwnProperty("display")?o.display:null,r.style.display=we("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function bs(e,t){if(Eo&&"function"===typeof Eo.onCommitFiberUnmount)try{Eo.onCommitFiberUnmount(So,t)}catch(i){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!==(4&r))Zl(t,n);else{r=t;try{o()}catch(i){zl(r,i)}}n=n.next}while(n!==e)}break;case 1:if(ms(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){zl(t,i)}break;case 5:ms(t);break;case 4:Cs(e,t)}}function ws(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function xs(e){return 5===e.tag||3===e.tag||4===e.tag}function ks(e){e:{for(var t=e.return;null!==t;){if(xs(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||xs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Ss(e,n,t):Es(e,n,t)}function Ss(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,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=Fr));else if(4!==r&&null!==(e=e.child))for(Ss(e,t,n),e=e.sibling;null!==e;)Ss(e,t,n),e=e.sibling}function Es(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Es(e,t,n),e=e.sibling;null!==e;)Es(e,t,n),e=e.sibling}function Cs(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var s=e,l=o,c=l;;)if(bs(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,l=o.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(bs(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function _s(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}
vendor: 5,033 bytes, line 2
2while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Xr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Ee(e,o),t=Ee(e,r),o=0;o<i.length;o+=2){var s=i[o],l=i[o+1];"style"===s?xe(n,l):"dangerouslySetInnerHTML"===s?ge(n,l):"children"===s?ye(n,l):w(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,xt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Ws=Vo(),vs(t.child,!0)),void Ts(t);case 19:return void Ts(t);case 23:case 24:return void vs(t,null!==t.memoizedState)}throw Error(a(163))}function Ts(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ps),t.forEach((function(t){var r=Bl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Os(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Is=Math.ceil,As=x.ReactCurrentDispatcher,Ps=x.ReactCurrentOwner,Rs=0,Ns=null,Ds=null,Ms=0,Ls=0,Zs=lo(0),js=0,Fs=null,zs=0,Us=0,Bs=0,Vs=0,Hs=null,Ws=0,qs=1/0;function Gs(){qs=Vo()+500}var Ks,Qs=null,Ys=!1,$s=null,Xs=null,Js=!1,el=null,tl=90,nl=[],rl=[],ol=null,il=0,al=null,sl=-1,ll=0,cl=0,ul=null,dl=!1;function hl(){return 0!==(48&Rs)?Vo():-1!==sl?sl:sl=Vo()}function fl(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Ho()?1:2;if(0===ll&&(ll=zs),0!==Yo.transition){0!==cl&&(cl=null!==Hs?Hs.pendingLanes:0),e=ll;var t=4186112&~cl;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Ho(),0!==(4&Rs)&&98===e?e=Ft(12,ll):e=Ft(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ll),e}function pl(e,t,n){if(50<il)throw il=0,al=null,Error(a(185));if(null===(e=ml(e,t)))return null;Bt(e,t,n),e===Ns&&(Bs|=t,4===js&&vl(e,Ms));var r=Ho();1===t?0!==(8&Rs)&&0===(48&Rs)?bl(e):(gl(e,n),0===Rs&&(Gs(),Ko())):(0===(4&Rs)||98!==r&&99!==r||(null===ol?ol=new Set([e]):ol.add(e)),gl(e,n)),Hs=e}function ml(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}function gl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Vt(s),c=1<<l,u=i[l];if(-1===u){if(0===(c&r)||0!==(c&o)){u=t,Lt(c);var d=Mt;i[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);s&=~c}if(r=Zt(e,e===Ns?Ms:0),t=Mt,0===r)null!==n&&(n!==Zo&&To(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Zo&&To(n)}15===t?(n=bl.bind(null,e),null===Fo?(Fo=[n],zo=_o(Ro,Qo)):Fo.push(n),n=Zo):14===t?n=Go(99,bl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),n=Go(n,yl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function yl(e){if(sl=-1,cl=ll=0,0!==(48&Rs))throw Error(a(327));var t=e.callbackNode;if(Ml()&&e.callbackNode!==t)return null;var n=Zt(e,e===Ns?Ms:0);if(0===n)return null;var r=n,o=Rs;Rs|=16;var i=_l();for(Ns===e&&Ms===r||(Gs(),El(e,r));;)try{Il();break}catch(l){Cl(e,l)}if(ni(),As.current=i,Rs=o,null!==Ds?r=0:(Ns=null,Ms=0,r=js),0!==(zs&Bs))El(e,0);else if(0!==r){if(2===r&&(Rs|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(n=jt(e))&&(r=Tl(e,n))),1===r)throw t=Fs,El(e,0),vl(e,n),gl(e,Vo()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Rl(e);break;case 3:if(vl(e,n),(62914560&n)===n&&10<(r=Ws+500-Vo())){if(0!==Zt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){hl(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Hr(Rl.bind(null,e),r);break}Rl(e);break;case 4:if(vl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var s=31-Vt(n);i=1<<s,(s=r[s])>o&&(o=s),n&=~i}if(n=o,10<(n=(120>(n=Vo()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Is(n/1960))-n)){e.timeoutHandle=Hr(Rl.bind(null,e),n);break}Rl(e);break;default:throw Error(a(329))}}return gl(e,Vo()),e.callbackNode===t?yl.bind(null,e):null}function vl(e,t){for(t&=~Vs,t&=~Bs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Vt(t),r=1<<n;e[n]=-1,t&=~r}}function bl(e){if(0!==(48&Rs))throw Error(a(327));if(Ml(),e===Ns&&0!==(e.expiredLanes&Ms)){var t=Ms,n=Tl(e,t);0!==(zs&Bs)&&(n=Tl(e,t=Zt(e,t)))}
vendor: 7,130 bytes, line 2
2else n=Tl(e,t=Zt(e,0));if(0!==e.tag&&2===n&&(Rs|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(t=jt(e))&&(n=Tl(e,t))),1===n)throw n=Fs,El(e,0),vl(e,t),gl(e,Vo()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Rl(e),gl(e,Vo()),null}function wl(e,t){var n=Rs;Rs|=1;try{return e(t)}finally{0===(Rs=n)&&(Gs(),Ko())}}function xl(e,t){var n=Rs;Rs&=-2,Rs|=8;try{return e(t)}finally{0===(Rs=n)&&(Gs(),Ko())}}function kl(e,t){uo(Zs,Ls),Ls|=t,zs|=t}function Sl(){Ls=Zs.current,co(Zs)}function El(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Wr(n)),null!==Ds)for(n=Ds.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&vo();break;case 3:Di(),co(po),co(fo),Qi();break;case 5:Li(r);break;case 4:Di();break;case 13:case 19:co(Zi);break;case 10:ri(r);break;case 23:case 24:Sl()}n=n.return}Ns=e,Ds=ql(e.current,null),Ms=Ls=zs=t,js=0,Fs=null,Vs=Bs=Us=0}function Cl(e,t){for(;;){var n=Ds;try{if(ni(),Yi.current=Pa,na){for(var r=Ji.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}na=!1}if(Xi=0,ta=ea=Ji=null,ra=!1,Ps.current=null,null===n||null===n.return){js=1,Fs=t,Ds=null;break}e:{var i=e,a=n.return,s=n,l=t;if(t=Ms,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"===typeof l&&"function"===typeof l.then){var c=l;if(0===(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!==(1&Zi.current),h=a;do{var f;if(f=13===h.tag){var p=h.memoizedState;if(null!==p)f=null!==p.dehydrated;else{var m=h.memoizedProps;f=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(f){var g=h.updateQueue;if(null===g){var y=new Set;y.add(c),h.updateQueue=y}else g.add(c);if(0===(2&h.mode)){if(h.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var v=ui(-1,1);v.tag=2,di(s,v)}s.lanes|=1;break e}l=void 0,s=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new ds,l=new Set,b.set(c,l)):void 0===(l=b.get(c))&&(l=new Set,b.set(c,l)),!l.has(s)){l.add(s);var w=Ul.bind(null,i,c,s);c.then(w,w)}h.flags|=4096,h.lanes=t;break e}h=h.return}while(null!==h);l=Error((G(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==js&&(js=2),l=cs(l,s),h=a;do{switch(h.tag){case 3:i=l,h.flags|=4096,t&=-t,h.lanes|=t,hi(h,hs(0,i,t));break e;case 1:i=l;var x=h.type,k=h.stateNode;if(0===(64&h.flags)&&("function"===typeof x.getDerivedStateFromError||null!==k&&"function"===typeof k.componentDidCatch&&(null===Xs||!Xs.has(k)))){h.flags|=4096,t&=-t,h.lanes|=t,hi(h,fs(h,i,t));break e}}h=h.return}while(null!==h)}Pl(n)}catch(S){t=S,Ds===n&&null!==n&&(Ds=n=n.return);continue}break}}function _l(){var e=As.current;return As.current=Pa,null===e?Pa:e}function Tl(e,t){var n=Rs;Rs|=16;var r=_l();for(Ns===e&&Ms===t||El(e,t);;)try{Ol();break}catch(o){Cl(e,o)}if(ni(),Rs=n,As.current=r,null!==Ds)throw Error(a(261));return Ns=null,Ms=0,js}function Ol(){for(;null!==Ds;)Al(Ds)}function Il(){for(;null!==Ds&&!Oo();)Al(Ds)}function Al(e){var t=Ks(e.alternate,e,Ls);e.memoizedProps=e.pendingProps,null===t?Pl(e):Ds=t,Ps.current=null}function Pl(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=ss(n,t,Ls)))return void(Ds=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Ls)||0===(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ls(t)))return n.flags&=2047,void(Ds=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ds=t);Ds=t=e}while(null!==t);0===js&&(js=5)}function Rl(e){var t=Ho();return qo(99,Nl.bind(null,e,t)),null}function Nl(e,t){do{Ml()}while(null!==el);if(0!==(48&Rs))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<i;){var c=31-Vt(i),u=1<<c;o[c]=0,s[c]=-1,l[c]=-1,i&=~u}if(null!==ol&&0===(24&r)&&ol.has(e)&&ol.delete(e),e===Ns&&(Ds=Ns=null,Ms=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Rs,Rs|=32,Ps.current=null,zr=Kt,gr(s=mr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,i=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(_){l=null;break e}var d=0,h=-1,f=-1,p=0,m=0,g=s,y=null;t:for(;;){for(var v;g!==l||0!==i&&3!==g.nodeType||(h=d+i),g!==c||0!==u&&3!==g.nodeType||(f=d+u),3===g.nodeType&&(d+=g.nodeValue.length),null!==(v=g.firstChild);)y=g,g=v;for(;;){if(g===s)break t;if(y===l&&++p===i&&(h=d),y===c&&++m===u&&(f=d),null!==(v=g.nextSibling))break;y=(g=y).parentNode}g=v}l=-1===h||-1===f?null:{start:h,end:f}}else l=null;l=l||{start:0,end:0}}else l=null;Ur={focusedElem:s,selectionRange:l},Kt=!1,ul=null,dl=!1,Qs=r;do{try{Dl()}catch(_){if(null===Qs)throw Error(a(330));zl(Qs,_),Qs=Qs.nextEffect}}while(null!==Qs);ul=null,Qs=r;do{try{for(s=e;null!==Qs;){var b=Qs.flags;if(16&b&&ye(Qs.stateNode,""),128&b){var w=Qs.alternate;if(null!==w){var x=w.ref;null!==x&&("function"===typeof x?x(null):x.current=null)}}switch(1038&b){case 2:ks(Qs),Qs.flags&=-3;break;case 6:ks(Qs),Qs.flags&=-3,_s(Qs.alternate,Qs);break;case 1024:Qs.flags&=-1025;break;case 1028:Qs.flags&=-1025,_s(Qs.alternate,Qs);break;case 4:_s(Qs.alternate,Qs);break;case 8:Cs(s,l=Qs);var k=l.alternate;ws(l),null!==k&&ws(k)}Qs=Qs.nextEffect}}catch(_){if(null===Qs)throw Error(a(330));zl(Qs,_),Qs=Qs.nextEffect}}while(null!==Qs);if(x=Ur,w=mr(),b=x.focusedElem,s=x.selectionRange,w!==b&&b&&b.ownerDocument&&pr(b.ownerDocument.documentElement,b)){null!==s&&gr(b)&&(w=s.start,void 0===(x=s.end)&&(x=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(x,b.value.length)):(x=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),l=b.textContent.length,k=Math.min(s.start,l),s=void 0===s.end?k:Math.min(s.end,l),!x.extend&&k>s&&(l=s,s=k,k=l),l=fr(b,k),i=fr(b,s),l&&i&&(1!==x.rangeCount||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==i.node||x.focusOffset!==i.offset)&&((w=w.createRange()).setStart(l.node,l.offset),x.removeAllRanges(),k>s?(x.addRange(w),x.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;
vendor: 6,449 bytes, line 2
2)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<w.length;b++)(x=w[b]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Kt=!!zr,Ur=zr=null,e.current=n,Qs=r;do{try{for(b=e;null!==Qs;){var S=Qs.flags;if(36&S&&ys(b,Qs.alternate,Qs),128&S){w=void 0;var E=Qs.ref;if(null!==E){var C=Qs.stateNode;Qs.tag,w=C,"function"===typeof E?E(w):E.current=w}}Qs=Qs.nextEffect}}catch(_){if(null===Qs)throw Error(a(330));zl(Qs,_),Qs=Qs.nextEffect}}while(null!==Qs);Qs=null,jo(),Rs=o}else e.current=n;if(Js)Js=!1,el=e,tl=t;else for(Qs=r;null!==Qs;)t=Qs.nextEffect,Qs.nextEffect=null,8&Qs.flags&&((S=Qs).sibling=null,S.stateNode=null),Qs=t;if(0===(r=e.pendingLanes)&&(Xs=null),1===r?e===al?il++:(il=0,al=e):il=0,n=n.stateNode,Eo&&"function"===typeof Eo.onCommitFiberRoot)try{Eo.onCommitFiberRoot(So,n,void 0,64===(64&n.current.flags))}catch(_){}if(gl(e,Vo()),Ys)throw Ys=!1,e=$s,$s=null,e;return 0!==(8&Rs)||Ko(),null}function Dl(){for(;null!==Qs;){var e=Qs.alternate;dl||null===ul||(0!==(8&Qs.flags)?Je(Qs,ul)&&(dl=!0):13===Qs.tag&&Os(e,Qs)&&Je(Qs,ul)&&(dl=!0));var t=Qs.flags;0!==(256&t)&&gs(e,Qs),0===(512&t)||Js||(Js=!0,Go(97,(function(){return Ml(),null}))),Qs=Qs.nextEffect}}function Ml(){if(90!==tl){var e=97<tl?97:tl;return tl=90,qo(e,jl)}return!1}function Ll(e,t){nl.push(t,e),Js||(Js=!0,Go(97,(function(){return Ml(),null})))}function Zl(e,t){rl.push(t,e),Js||(Js=!0,Go(97,(function(){return Ml(),null})))}function jl(){if(null===el)return!1;var e=el;if(el=null,0!==(48&Rs))throw Error(a(331));var t=Rs;Rs|=32;var n=rl;rl=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],s=o.destroy;if(o.destroy=void 0,"function"===typeof s)try{s()}catch(c){if(null===i)throw Error(a(330));zl(i,c)}}for(n=nl,nl=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var l=o.create;o.destroy=l()}catch(c){if(null===i)throw Error(a(330));zl(i,c)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Rs=t,Ko(),!0}function Fl(e,t,n){di(e,t=hs(0,t=cs(n,t),1)),t=hl(),null!==(e=ml(e,1))&&(Bt(e,1,t),gl(e,t))}function zl(e,t){if(3===e.tag)Fl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Fl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Xs||!Xs.has(r))){var o=fs(n,e=cs(t,e),1);if(di(n,o),o=hl(),null!==(n=ml(n,1)))Bt(n,1,o),gl(n,o);else if("function"===typeof r.componentDidCatch&&(null===Xs||!Xs.has(r)))try{r.componentDidCatch(t,e)}catch(i){}break}}n=n.return}}function Ul(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=hl(),e.pingedLanes|=e.suspendedLanes&n,Ns===e&&(Ms&n)===n&&(4===js||3===js&&(62914560&Ms)===Ms&&500>Vo()-Ws?El(e,0):Vs|=n),gl(e,t)}function Bl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Ho()?1:2:(0===ll&&(ll=zs),0===(t=zt(62914560&~ll))&&(t=4194304))),n=hl(),null!==(e=ml(e,t))&&(Bt(e,t,n),gl(e,n))}function Vl(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.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Hl(e,t,n,r){return new Vl(e,t,n,r)}function Wl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ql(e,t){var n=e.alternate;return null===n?((n=Hl(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.nextEffect=null,n.firstEffect=null,n.lastEffect=null),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 Gl(e,t,n,r,o,i){var s=2;if(r=e,"function"===typeof e)Wl(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case E:return Kl(n.children,o,i,t);case L:s=8,o|=16;break;case C:s=8,o|=1;break;case _:return(e=Hl(12,n,t,8|o)).elementType=_,e.type=_,e.lanes=i,e;case A:return(e=Hl(13,n,t,o)).type=A,e.elementType=A,e.lanes=i,e;case P:return(e=Hl(19,n,t,o)).elementType=P,e.lanes=i,e;case Z:return Ql(n,o,i,t);case j:return(e=Hl(24,n,t,o)).elementType=j,e.lanes=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case O:s=9;break e;case I:s=11;break e;case R:s=14;break e;case N:s=16,r=null;break e;case D:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Hl(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Kl(e,t,n,r){return(e=Hl(7,e,r,t)).lanes=n,e}function Ql(e,t,n,r){return(e=Hl(23,e,r,t)).elementType=Z,e.lanes=n,e}function Yl(e,t,n){return(e=Hl(6,e,null,t)).lanes=n,e}function $l(e,t,n){return(t=Hl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ut(0),this.expirationTimes=Ut(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ut(0),this.mutableSourceEagerHydrationData=null}function Jl(e,t,n,r){var o=t.current,i=hl(),s=fl(o);e:if(n){t:{if(Qe(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(yo(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var c=n.type;if(yo(c)){n=wo(n,c,l);break e}}n=l}else n=ho;return null===t.context?t.context=n:t.pendingContext=n,(t=ui(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),di(o,t),pl(o,s,i),s}function ec(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function tc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function nc(e,t){tc(e,t),(e=e.alternate)&&tc(e,t)}
vendor: 4,866 bytes, line 2
2function rc(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Xl(e,t,null!=n&&!0===n.hydrate),t=Hl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,li(t),e[Jr]=n.current,Pr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function oc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ic(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"===typeof o){var s=o;o=function(){var e=ec(a);s.call(e)}}Jl(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new rc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"===typeof o){var l=o;o=function(){var e=ec(a);l.call(e)}}xl((function(){Jl(t,a,e,o)}))}return ec(a)}function ac(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!oc(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Ks=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||po.current)La=!0;else{if(0===(n&r)){switch(La=!1,t.tag){case 3:qa(t),Gi();break;case 5:Mi(t);break;case 1:yo(t.type)&&xo(t);break;case 4:Ni(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;uo(Xo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Xa(e,t,n):(uo(Zi,1&Zi.current),null!==(t=is(e,t,n))?t.sibling:null);uo(Zi,1&Zi.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return os(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),uo(Zi,Zi.current),r)break;return null;case 23:case 24:return t.lanes=0,Ua(e,t,n)}return is(e,t,n)}La=0!==(16384&e.flags)}else La=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=go(t,fo.current),ii(t,n),o=aa(null,t,r,e,o,n),t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,yo(r)){var i=!0;xo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,li(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&gi(t,r,s,e),o.updater=yi,t.stateNode=o,o._reactInternals=t,xi(t,r,e,n),t=Wa(null,t,r,!0,i,n)}else t.tag=0,Za(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"===typeof e)return Wl(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===I)return 11;if(e===R)return 14}return 2}(o),e=$o(o,e),i){case 0:t=Va(null,t,o,e,n);break e;case 1:t=Ha(null,t,o,e,n);break e;case 11:t=ja(null,t,o,e,n);break e;case 14:t=Fa(null,t,o,$o(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Va(e,t,r,o=t.elementType===r?o:$o(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ha(e,t,r,o=t.elementType===r?o:$o(r,o),n);case 3:if(qa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ci(e,t),fi(t,r,null,n),(r=t.memoizedState.element)===o)Gi(),t=is(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(zi=Gr(t.stateNode.containerInfo.firstChild),Fi=t,i=Ui=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],Ki.push(i);for(n=Ti(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Za(e,t,r,n),Gi();t=t.child}return t;case 5:return Mi(t),null===e&&Hi(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,Vr(r,o)?s=null:null!==i&&Vr(r,i)&&(t.flags|=16),Ba(e,t),Za(e,t,s,n),t.child;case 6:return null===e&&Hi(t),null;case 13:return Xa(e,t,n);case 4:return Ni(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_i(t,null,r,n):Za(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,ja(e,t,r,o=t.elementType===r?o:$o(r,o),n);case 7:return Za(e,t,t.pendingProps,n),t.child;case 8:case 12:return Za(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value;var l=t.type._context;if(uo(Xo,l._currentValue),l._currentValue=i,null!==s)if(l=s.value,0===(i=cr(l,i)?0:0|("function"===typeof r._calculateChangedBits?r._
vendor: 4,436 bytes, line 2
2calculateChangedBits(l,i):1073741823))){if(s.children===o.children&&!po.current){t=is(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!==(u.observedBits&i)){1===l.tag&&((u=ui(-1,n&-n)).tag=2,di(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),oi(l.return,n),c.lanes|=n;break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Za(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ii(t,n),r=r(o=ai(o,i.unstable_observedBits)),t.flags|=1,Za(e,t,r,n),t.child;case 14:return i=$o(o=t.type,t.pendingProps),Fa(e,t,o,i=$o(o.type,i),r,n);case 15:return za(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$o(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,yo(r)?(e=!0,xo(t)):e=!1,ii(t,n),bi(t,r,o),xi(t,r,o,n),Wa(null,t,r,!0,e,n);case 19:return os(e,t,n);case 23:case 24:return Ua(e,t,n)}throw Error(a(156,t.tag))},rc.prototype.render=function(e){Jl(e,this._internalRoot,null,null)},rc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Jl(null,e,null,(function(){t[Jr]=null}))},et=function(e){13===e.tag&&(pl(e,4,hl()),nc(e,4))},tt=function(e){13===e.tag&&(pl(e,67108864,hl()),nc(e,67108864))},nt=function(e){if(13===e.tag){var t=hl(),n=fl(e);pl(e,n,t),nc(e,n)}},rt=function(e,t){return t()},_e=function(e,t,n){switch(t){case"input":if(ne(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 o=oo(r);if(!o)throw Error(a(90));$(r),ne(r,o)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Re=wl,Ne=function(e,t,n,r,o){var i=Rs;Rs|=4;try{return qo(98,e.bind(null,t,n,r,o))}finally{0===(Rs=i)&&(Gs(),Ko())}},De=function(){0===(49&Rs)&&(function(){if(null!==ol){var e=ol;ol=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,gl(e,Vo())}))}Ko()}(),Ml())},Me=function(e,t){var n=Rs;Rs|=2;try{return e(t)}finally{0===(Rs=n)&&(Gs(),Ko())}};var sc={Events:[no,ro,oo,Ae,Pe,Ml,{current:!1}]},lc={findFiberByHostInstance:to,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},cc={bundleType:lc.bundleType,version:lc.version,rendererPackageName:lc.rendererPackageName,rendererConfig:lc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Xe(e))?null:e.stateNode},findFiberByHostInstance:lc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{So=uc.inject(cc),Eo=uc}catch(me){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sc,t.createPortal=ac,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(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Xe(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Rs;if(0!==(48&n))return e(t);Rs|=1;try{if(e)return qo(99,e.bind(null,t))}finally{Rs=n,Ko()}},t.hydrate=function(e,t,n){if(!oc(t))throw Error(a(200));return ic(null,e,t,!0,n)},t.render=function(e,t,n){if(!oc(t))throw Error(a(200));return ic(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!oc(e))throw Error(a(40));return!!e._reactRootContainer&&(xl((function(){ic(null,null,e,!1,(function(){e._reactRootContainer=null,e[Jr]=null}))})),!0)},t.unstable_batchedUpdates=wl,t.unstable_createPortal=function(e,t){return ac(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!oc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ic(e,t,n,!1,r)},t.version="17.0.2"}
2,54164:(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(34463)},58340:(e,t,n)=>{"use strict";e.exports=n(84424)},80037:(e,t,n)=>{"use strict";var r=n(70215).default,o=n(42122).default;const i=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return f.default}}),t.default=void 0;var 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=g(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(72791)),s=m(n(52007)),l=m(n(54164)),c=m(n(80742)),u=n(12280),d=n(20580),h=n(92693),f=m(n(88091)),p=m(n(81655));function m(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function y(){return y=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},y.apply(this,arguments)}function v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class b extends a.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,p.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:o({},n)})}constructor(e){super(e),v(this,"onDragStart",((e,t)=>{(0,p.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,d.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),v(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,p.default)("Draggable: onDrag: %j",t);const n=(0,d.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[o,i]=(0,d.getBoundPosition)(this,r.x,r.y);r.x=o,r.y=i,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)})),v(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,d.createDraggableData)(this,t)))return!1;(0,p.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:o({},e.position),slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){"undefined"!==typeof window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:l.default.findDOMNode(this)}render(){const e=this.props,{axis:t,bounds:n,children:s,defaultPosition:l,defaultClassName:h,defaultClassNameDragging:p,defaultClassNameDragged:m,position:g,positionOffset:v,scale:b}=e,w=r(e,i);let x={},k=null;const S=!Boolean(g)||this.state.dragging,E=g||l,C={x:(0,d.canDragX)(this)&&S?this.state.x:E.x,y:(0,d.canDragY)(this)&&S?this.state.y:E.y};this.state.isElementSVG?k=(0,u.createSVGTransform)(C,v):x=(0,u.createCSSTransform)(C,v);const _=(0,c.default)(s.props.className||"",h,{[p]:this.state.dragging,[m]:this.state.dragged});return a.createElement(f.default,y({},w,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),a.cloneElement(a.Children.only(s),{className:_,style:o(o({},s.props.style),x),transform:k}))}}t.default=b,v(b,"displayName","Draggable"),v(b,"propTypes",o(o({}
2,f.default.propTypes),{},{axis:s.default.oneOf(["both","x","y","none"]),bounds:s.default.oneOfType([s.default.shape({left:s.default.number,right:s.default.number,top:s.default.number,bottom:s.default.number}),s.default.string,s.default.oneOf([!1])]),defaultClassName:s.default.string,defaultClassNameDragging:s.default.string,defaultClassNameDragged:s.default.string,defaultPosition:s.default.shape({x:s.default.number,y:s.default.number}),positionOffset:s.default.shape({x:s.default.oneOfType([s.default.number,s.default.string]),y:s.default.oneOfType([s.default.number,s.default.string])}),position:s.default.shape({x:s.default.number,y:s.default.number}),className:h.dontSetMe,style:h.dontSetMe,transform:h.dontSetMe})),v(b,"defaultProps",o(o({},f.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},88091:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(72791)),o=u(n(52007)),i=u(n(54164)),a=n(12280),s=n(20580),l=n(92693),c=u(n(81655));function u(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f={start:"touchstart",move:"touchmove",stop:"touchend"},p={start:"mousedown",move:"mousemove",stop:"mouseup"};let m=p;class g extends r.Component{constructor(){super(...arguments),h(this,"dragging",!1),h(this,"lastX",NaN),h(this,"lastY",NaN),h(this,"touchIdentifier",null),h(this,"mounted",!1),h(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"===typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,a.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,a.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"===e.type&&e.preventDefault();const r=(0,a.getTouchIdentifier)(e);this.touchIdentifier=r;const o=(0,s.getControlPosition)(e,r,this);if(null==o)return;const{x:i,y:l}=o,u=(0,s.createCoreData)(this,i,l);(0,c.default)("DraggableCore: handleDragStart: %j",u),(0,c.default)("calling",this.props.onStart);!1!==this.props.onStart(e,u)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,a.addUserSelectStyles)(n),this.dragging=!0,this.lastX=i,this.lastY=l,(0,a.addEvent)(n,m.move,this.handleDrag),(0,a.addEvent)(n,m.stop,this.handleDragStop))})),h(this,"handleDrag",(e=>{const t=(0,s.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,s.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,s.createCoreData)(this,n,r);(0,c.default)("DraggableCore: handleDrag: %j",o);if(!1!==this.props.onDrag(e,o)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(i){const e=document.createEvent("MouseEvents");
vendor: 4,161 bytes, line 2
2e.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}})),h(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,s.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=(0,s.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}const o=(0,s.createCoreData)(this,n,r);if(!1===this.props.onStop(e,o)||!1===this.mounted)return!1;const i=this.findDOMNode();i&&this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(i.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",o),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,i&&((0,c.default)("DraggableCore: Removing handlers"),(0,a.removeEvent)(i.ownerDocument,m.move,this.handleDrag),(0,a.removeEvent)(i.ownerDocument,m.stop,this.handleDragStop))})),h(this,"onMouseDown",(e=>(m=p,this.handleDragStart(e)))),h(this,"onMouseUp",(e=>(m=p,this.handleDragStop(e)))),h(this,"onTouchStart",(e=>(m=f,this.handleDragStart(e)))),h(this,"onTouchEnd",(e=>(m=f,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,a.addEvent)(e,f.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,a.removeEvent)(t,p.move,this.handleDrag),(0,a.removeEvent)(t,f.move,this.handleDrag),(0,a.removeEvent)(t,p.stop,this.handleDragStop),(0,a.removeEvent)(t,f.stop,this.handleDragStop),(0,a.removeEvent)(e,f.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:i.default.findDOMNode(this)}render(){return r.cloneElement(r.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}t.default=g,h(g,"displayName","DraggableCore"),h(g,"propTypes",{allowAnyClick:o.default.bool,children:o.default.node.isRequired,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:o.default.arrayOf(o.default.number),handle:o.default.string,cancel:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number,className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),h(g,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},59962:(e,t,n)=>{"use strict";const{default:r,DraggableCore:o}=n(80037);e.exports=r,e.exports.default=r,e.exports.DraggableCore=o},12280:(e,t,n)=>{"use strict";var r=n(42122).default;Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=u,t.addEvent=function(e,t,n,o){if(!e)return;const i=r({capture:!0},o);e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&u(e.body,"react-draggable-transparent-selection")},t.createCSSTransform=function(e,t){const n=c(e,t,"px");return{[(0,i.browserPrefixToKey)("transform",i.default)]:n}},t.createSVGTransform=function(e,t){return c(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,o.findInArray)(e.targetTouches,(e=>t===e.identifier))||e.changedTouches&&(0,o.findInArray)(e.changedTouches,(e=>t===e.identifier))},t.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}
2,t.getTranslation=c,t.innerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(n.paddingTop),t-=(0,o.int)(n.paddingBottom),t},t.innerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(n.paddingLeft),t-=(0,o.int)(n.paddingRight),t},t.matchesSelector=l,t.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(l(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-r.left)/n,i=(e.clientY+t.scrollTop-r.top)/n;return{x:o,y:i}},t.outerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(n.borderTopWidth),t+=(0,o.int)(n.borderBottomWidth),t},t.outerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(n.borderLeftWidth),t+=(0,o.int)(n.borderRightWidth),t},t.removeClassName=d,t.removeEvent=function(e,t,n,o){if(!e)return;const i=r({capture:!0},o);e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&d(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(t){}};var o=n(92693),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(34021));function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}let s="";function l(e,t){return s||(s=(0,o.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,o.isFunction)(e[t])}))),!!(0,o.isFunction)(e[s])&&e[s](t)}function c(e,t,n){let{x:r,y:o}=e,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){const e="".concat("string"===typeof t.x?t.x:t.x+n),r="".concat("string"===typeof t.y?t.y:t.y+n);i="translate(".concat(e,", ").concat(r,")")+i}return i}function u(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function d(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},34021:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0,t.getPrefix=r;const n=["Moz","Webkit","O","ms"];function r(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"===typeof window)return"";const r=null===(e=window.document)||void 0===e||null===(e=e.documentElement)||void 0===e?void 0:e.style;if(!r)return"";if(t in r)return"";for(let i=0;i<n.length;i++)if(o(t,n[i])in r)return n[i];return""}function o(e,t){return t?"".concat(t).concat(function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}t.default=r()},81655:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){0}},20580:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.createCoreData=function(e,t,n){const o=!(0,r.isNum)(e.lastX),a=i(e);return o?{node:a,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:a,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}},t.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},t.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:a}=e.props;a="string"===typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);const s=i(e);if("string"===typeof a){const{ownerDocument:e}=s,t=e.defaultView;let n;if(n="parent"===a?s.parentNode:e.querySelector(a),!(n instanceof t.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const i=n,l=t.getComputedStyle(s),c=t.getComputedStyle(i);a={left:-s.offsetLeft+(0,r.int)(c.paddingLeft)+(0,r.int)(l.marginLeft),top:-s.offsetTop+(0,r.int)(c.paddingTop)+(0,r.int)(l.marginTop),right:(0,o.innerWidth)(i)-(0,o.outerWidth)(s)-s.offsetLeft+(0,r.int)(c.paddingRight)-(0,r.int)(l.marginRight),bottom:(0,o.innerHeight)(i)-(0,o.outerHeight)(s)-s.offsetTop+(0,r.int)(c.paddingBottom)-(0,r.int)(l.marginBottom)}}(0,r.isNum)(a.right)&&(t=Math.min(t,a.right));(0,r.isNum)(a.bottom)&&(n=Math.min(n,a.bottom));(0,r.isNum)(a.left)&&(t=Math.max(t,a.left));(0,r.isNum)(a.top)&&(n=Math.max(n,a.top));return[t,n]},t.getControlPosition=function(e,t,n){const r="number"===typeof t?(0,o.getTouch)(e,t):null;if("number"===typeof t&&!r)return null;const a=i(n),s=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,o.offsetXYFromParent)(r||e,s,n.props.scale)}
2,t.snapToGrid=function(e,t,n){const r=Math.round(t/e[0])*e[0],o=Math.round(n/e[1])*e[1];return[r,o]};var r=n(92693),o=n(12280);function i(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},92693:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},t.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},t.int=function(e){return parseInt(e,10)},t.isFunction=function(e){return"function"===typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"===typeof e&&!isNaN(e)}},80742:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}n.r(t),n.d(t,{clsx:()=>o,default:()=>i});const i=o},50077:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!i(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(!i(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(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;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((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!i(e[c[l]],a[c[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},54270:(e,t,n)=>{"use strict";n.d(t,{q:()=>le});var r=n(52007),o=n.n(r),i=n(39475),a=n.n(i),s=n(50077),l=n.n(s),c=n(72791),u=n(31725),d=n.n(u),h="bodyAttributes",f="htmlAttributes",p="titleAttributes",m={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},g=(Object.keys(m).map((function(e){return m[e]})),"charset"),y="cssText",v="href",b="http-equiv",w="innerHTML",x="itemprop",k="name",S="property",E="rel",C="src",_="target",T={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},O="defaultTitle",I="defer",A="encodeSpecialCharacters",P="onChangeClientState",R="titleTemplate",N=Object.keys(T).reduce((function(e,t){return e[T[t]]=t,e}),{}),D=[m.NOSCRIPT,m.SCRIPT,m.STYLE],M="data-react-helmet",L="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),j=Object.assign||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},F=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},z=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},U=function(e){var t=q(e,m.TITLE),n=q(e,R);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=q(e,O);return t||r||void 0},B=function(e){return q(e,P)||function(){}},V=function(e,t){return t.filter((function(t){return"undefined"!==typeof t[e]}
2)).map((function(t){return t[e]})).reduce((function(e,t){return j({},e,t)}),{})},H=function(e,t){return t.filter((function(e){return"undefined"!==typeof e[m.BASE]})).map((function(e){return e[m.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},W=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&$("Helmet: "+e+' should be of type "Array". Instead found type "'+L(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],l=s.toLowerCase();-1===t.indexOf(l)||n===E&&"canonical"===e[n].toLowerCase()||l===E&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||s!==w&&s!==y&&s!==x||(n=s)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][c]&&(o[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var s=i[a],l=d()({},r[s],o[s]);r[s]=l}return e}),[]).reverse()},q=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},G=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout((function(){G(t)}),0)}}(),K=function(e){return clearTimeout(e)},Q="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||G:n.g.requestAnimationFrame||G,Y="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||K:n.g.cancelAnimationFrame||K,$=function(e){return console&&"function"===typeof console.warn&&console.warn(e)},X=null,J=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,d=e.title,h=e.titleAttributes;ne(m.BODY,r),ne(m.HTML,o),te(d,h);var f={baseTag:re(m.BASE,n),linkTags:re(m.LINK,i),metaTags:re(m.META,a),noscriptTags:re(m.NOSCRIPT,s),scriptTags:re(m.SCRIPT,c),styleTags:re(m.STYLE,u)},p={},g={};Object.keys(f).forEach((function(e){var t=f[e],n=t.newTags,r=t.oldTags;n.length&&(p[e]=n),r.length&&(g[e]=f[e].oldTags)})),t&&t(),l(e,p,g)},ee=function(e){return Array.isArray(e)?e.join(""):e},te=function(e,t){"undefined"!==typeof e&&document.title!==e&&(document.title=ee(e)),ne(m.TITLE,t)},ne=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(M),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s++){var l=a[s],c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),-1===o.indexOf(l)&&o.push(l);var u=i.indexOf(l);-1!==u&&i.splice(u,1)}for(var d=i.length-1;d>=0;d--)n.removeAttribute(i[d]);o.length===i.length?n.removeAttribute(M):n.getAttribute(M)!==a.join(",")&&n.setAttribute(M,a.join(","))}},re=function(e,t){var n=document.head||document.querySelector(m.HEAD),r=n.querySelectorAll(e+"["+M+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===w)n.innerHTML=t.innerHTML;else if(r===y)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s="undefined"===typeof t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(M,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},oe=function(e){return Object.keys(e).reduce((function(t,n){var r="undefined"!==typeof e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[T[n]||n]=e[n],t}),t)},ae=function(e,t,n){switch(e){case m.TITLE:return{toComponent:function(){return function(e,t,n){var r,o=((r={key:t})[M]=!0,r),i=ie(n,o);return[c.createElement(m.TITLE,i,t)]}(0,t.title,t.titleAttributes)},toString:function(){return function(e,t,n,r){var o=oe(n),i=ee(t);return o?"<"+e+" "+M+'="true" '+o+">"+z(i,r)+"</"+e+">":"<"+e+" "+M+'="true">'+z(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case h:case f:return{toComponent:function(){return ie(t)},toString:function(){return oe(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[M]=!0,r);return Object.keys(t).forEach((function(e){var n=T[e]||e;if(n===w||n===y){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),c.createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===w||e===y)})).reduce((function(e,t){var o="undefined"===typeof r[t]?t:t+'="'+z(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===D.indexOf(e);return t+"<"+e+" "+M+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},se=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.scriptTags,c=e.styleTags,u=e.title,d=void 0===u?"":u,p=e.titleAttributes;return{base:ae(m.BASE,t,r),bodyAttributes:ae(h,n,r),htmlAttributes:ae(f,o,r),link:ae(m.LINK,i,r),meta:ae(m.META,a,r),noscript:ae(m.NOSCRIPT,s,r),script:ae(m.SCRIPT,l,r),style:ae(m.STYLE,c,r),title:ae(m.TITLE,{title:d,titleAttributes:p},r)}},le=function(e){var t,n;return n=t=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.shouldComponentUpdate=function(e){return!l()(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case m.SCRIPT:case m.NOSCRIPT:return{innerHTML:t};case m.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return j({},r,((t={})[n.type]=[].concat(r[n.type]||[],[j({},o,this.mapNestedChildrenToProps(n,i))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case m.TITLE:return j({},o,((t={})[r.type]=a,t.titleAttributes=j({},i),t));case m.BODY:return j({},o,{bodyAttributes:j({},i)});case m.HTML:return j({},o,{htmlAttributes:j({},i)})}return j({},o,((n={})[r.type]=j({},i),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=j({},t);return Object.keys(e).forEach((function(t){var r;n=j({},n,((r={})[t]=e[t],r))})),n}
2,n.prototype.warnOnInvalidChildren=function(e,t){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return c.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[N[n]||n]=e[n],t}),t)}(F(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case m.LINK:case m.META:case m.NOSCRIPT:case m.SCRIPT:case m.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=F(t,["children"]),o=j({},r);return n&&(o=this.mapChildrenToProps(n,o)),c.createElement(e,o)},Z(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(c.Component),t.propTypes={base:o().object,bodyAttributes:o().object,children:o().oneOfType([o().arrayOf(o().node),o().node]),defaultTitle:o().string,defer:o().bool,encodeSpecialCharacters:o().bool,htmlAttributes:o().object,link:o().arrayOf(o().object),meta:o().arrayOf(o().object),noscript:o().arrayOf(o().object),onChangeClientState:o().func,script:o().arrayOf(o().object),style:o().arrayOf(o().object),title:o().string,titleAttributes:o().object,titleTemplate:o().string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=se({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n}(a()((function(e){return{baseTag:H([v,_],e),bodyAttributes:V(h,e),defer:q(e,I),encode:q(e,A),htmlAttributes:V(f,e),linkTags:W(m.LINK,[E,v],e),metaTags:W(m.META,[k,g,b,S,x],e),noscriptTags:W(m.NOSCRIPT,[w],e),onChangeClientState:B(e),scriptTags:W(m.SCRIPT,[C,w],e),styleTags:W(m.STYLE,[y],e),title:U(e),titleAttributes:V(p,e)}}),(function(e){X&&Y(X),e.defer?X=Q((function(){J(e,(function(){X=null}))})):(J(e),X=null)}),se)((function(){return null})));
2le.renderStatic=le.rewind},11372:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=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 i:case s: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 o:return t}}}n=Symbol.for("react.module.reference"),t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=m,t.Memo=p,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.SuspenseList=f,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return y(e)===c},t.isContextProvider=function(e){return y(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return y(e)===d},t.isFragment=function(e){return y(e)===i},t.isLazy=function(e){return y(e)===m},t.isMemo=function(e){return y(e)===p},t.isPortal=function(e){return y(e)===o},t.isProfiler=function(e){return y(e)===s},t.isStrictMode=function(e){return y(e)===a},t.isSuspense=function(e){return y(e)===h},t.isSuspenseList=function(e){return y(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===s||e===a||e===h||e===f||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=y},57441:(e,t,n)=>{"use strict";e.exports=n(11372)},25590:(e,t,n)=>{"use strict";n.d(t,{j:()=>a});var r=n(94578),o=n(88846),i=n(91985),a=new(function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.removeEventListener||this.setDefaultEventListener()},n.setEventListener=function(e){var t=this;this.removeEventListener&&this.removeEventListener(),this.removeEventListener=e((function(e){"boolean"===typeof e?t.setFocused(e):t.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},n.setDefaultEventListener=function(){var e;!i.sk&&(null==(e=window)?void 0:e.addEventListener)&&this.setEventListener((function(e){var t=function(){return e()};return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),function(){window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}))},t}(o.l))},95708:(e,t,n)=>{"use strict";n.d(t,{QueryClient:()=>r.S,hashQueryKey:()=>o.yF});var r=n(37161),o=n(91985),i=n(45044);n.o(i,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return i.QueryClientProvider}}),n.o(i,"useMutation")&&n.d(t,{useMutation:function(){return i.useMutation}}),n.o(i,"useQuery")&&n.d(t,{useQuery:function(){return i.useQuery}}),n.o(i,"useQueryClient")&&n.d(t,{useQueryClient:function(){return i.useQueryClient}})},209:(e,t,n)=>{"use strict";n.d(t,{E:()=>a,j:()=>i});var r=n(91985),o=console||{error:r.ZT,warn:r.ZT,log:r.ZT};function i(){return o}function a(e){o=e}},51909:(e,t,n)=>{"use strict";n.d(t,{R:()=>c,m:()=>l});var r=n(87462),o=n(209),i=n(82363),a=n(96350),s=n(91985),l=function(){function e(e){this.options=(0,r.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||c()}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(s.ZT).catch(s.ZT)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)}
2)).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),r.then((function(){return t.executeMutation()})).then((function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,o.j)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new a.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,r.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"loading":return(0,r.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,r.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,r.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,r.Z)({},e,t.state);default:return e}}(this.state,e),i.V.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();function c(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},82363:(e,t,n)=>{"use strict";n.d(t,{V:()=>o});var r=n(91985),o=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){this.transactions++;var t=e();return this.transactions--,this.transactions||this.flush(),t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,r.A4)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t.schedule((function(){e.apply(void 0,r)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,r.A4)((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}())},4463:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var r=n(94578),o=n(88846),i=n(91985),a=new(function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.removeEventListener||this.setDefaultEventListener()},n.setEventListener=function(e){var t=this;this.removeEventListener&&this.removeEventListener(),this.removeEventListener=e((function(e){"boolean"===typeof e?t.setOnline(e):t.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine},n.setDefaultEventListener=function(){var e;!i.sk&&(null==(e=window)?void 0:e.addEventListener)&&this.setEventListener((function(e){var t=function(){return e()};return window.addEventListener("online",t,!1),window.addEventListener("offline",t,!1),function(){window.removeEventListener("online",t),window.removeEventListener("offline",t)}}))},t}(o.l))},37161:(e,t,n)=>{"use strict";n.d(t,{S:()=>v});var r=n(87462),o=n(91985),i=n(94578),a=n(82363),s=n(209),l=n(96350),c=function(){function e(e){this.abort
2SignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,r.Z)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,o.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){clearTimeout(this.gcTimeout),this.gcTimeout=void 0},t.optionalRemove=function(){this.observers.length||this.state.isFetching||this.cache.remove(this)},t.setData=function(e,t){var n,r,i=this.state.data,a=(0,o.SE)(e,i);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,i,a))?a=i:!1!==this.options.structuralSharing&&(a=(0,o.Q$)(i,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(o.ZT).catch(o.ZT):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,o.Kp)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,i,a=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise)return this.promise;if(e&&this.setOptions(e),!this.options.queryFn){var c=this.observers.find((function(e){return e.options.queryFn}));c&&this.setOptions(c.options)}var u=(0,o.mc)(this.queryKey),d=(0,o.G9)(),h={queryKey:u,pageParam:void 0,meta:this.meta};Object.defineProperty(h,"signal",{enumerable:!0,get:function(){if(d)return a.abortSignalConsumed=!0,d.signal}});var f,p,m={fetchOptions:t,options:this.options,queryKey:u,state:this.state,fetchFn:function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(h)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(f=this.options.behavior)||f.onFetch(m));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=m.fetchOptions)?void 0:r.meta))||this.dispatch({type:"fetch",meta:null==(p=m.fetchOptions)?void 0:p.meta});return this.retryer=new l.m4({fn:m.fetchFn,abort:null==d||null==(i=d.abort)?void 0:i.bind(d),onSuccess:function(e){a.setData(e),null==a.cache.config.onSuccess||a.cache.config.onSuccess(e,a),0===a.cacheTime&&a.optionalRemove()},onError:function(e){(0,l.DV)(e)&&e.silent||a.dispatch({type:"error",error:e}),(0,l.DV)(e)||(null==a.cache.config.onError||a.cache.config.onError(e,a),(0,s.j)().error(e)),0===a.cacheTime&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),a.V.batch((function(){t.observers.forEac
2h((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"===typeof e.initialData?e.initialData():e.initialData,n="undefined"!==typeof e.initialData?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r="undefined"!==typeof t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,o;switch(t.type){case"failed":return(0,r.Z)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"fetch":return(0,r.Z)({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1,status:e.dataUpdatedAt?e.status:"loading"});case"success":return(0,r.Z)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(o=t.dataUpdatedAt)?o:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var i=t.error;return(0,l.DV)(i)&&i.revert&&this.revertState?(0,r.Z)({},this.revertState):(0,r.Z)({},e,{error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,r.Z)({},e,{isInvalidated:!0});case"setState":return(0,r.Z)({},e,t.state);default:return e}},e}(),u=n(88846),d=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}(0,i.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,i=t.queryKey,a=null!=(r=t.queryHash)?r:(0,o.Rm)(i,t),s=this.get(a);return s||(s=new c({cache:this,queryKey:i,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i),meta:t.meta}),this.add(s)),s},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=(0,o.I6)(e,t)[0];return"undefined"===typeof n.exact&&(n.exact=!0),this.queries.find((function(e){return(0,o._x)(n,e)}))},n.findAll=function(e,t){var n=(0,o.I6)(e,t)[0];return n?this.queries.filter((function(e){return(0,o._x)(n,e)})):this.queries},n.notify=function(e){var t=this;a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},n.onOnline=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(u.l),h=n(51909),f=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}(0,i.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new h.m({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},n.clear=function(){var e=this;a.V.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},n.getAll=function(){return this.mutations},n.find=function(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find((function(t){return(0,o.X7)(e,t)}))},n.findAll=function(e){return this.mutations.filter((function(t){return(0,o.X7)(e,t)}))},n.notify=function(e){var t=this;
2a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return a.V.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(o.ZT)}))}),Promise.resolve())}))},t}(u.l),p=n(25590),m=n(4463);function g(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function y(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}var v=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new d,this.mutationCache=e.mutationCache||new f,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=p.j.subscribe((function(){p.j.isFocused()&&m.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=m.N.subscribe((function(){p.j.isFocused()&&m.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=(0,o.I6)(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll((0,r.Z)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,n){var r=(0,o._v)(e),i=this.defaultQueryOptions(r);return this.queryCache.build(this,i).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return a.V.batch((function(){return r.getQueryCache().findAll(e).map((function(e){var o=e.queryKey;return[o,r.setQueryData(o,t,n)]}))}))},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=(0,o.I6)(e,t)[0],r=this.queryCache;a.V.batch((function(){r.findAll(n).forEach((function(e){r.remove(e)}))}))},t.resetQueries=function(e,t,n){var i=this,s=(0,o.I6)(e,t,n),l=s[0],c=s[1],u=this.queryCache,d=(0,r.Z)({},l,{active:!0});return a.V.batch((function(){return u.findAll(l).forEach((function(e){e.reset()})),i.refetchQueries(d,c)}))},t.cancelQueries=function(e,t,n){var r=this,i=(0,o.I6)(e,t,n),s=i[0],l=i[1],c=void 0===l?{}:l;"undefined"===typeof c.revert&&(c.revert=!0);var u=a.V.batch((function(){return r.queryCache.findAll(s).map((function(e){return e.cancel(c)}))}));return Promise.all(u).then(o.ZT).catch(o.ZT)},t.invalidateQueries=function(e,t,n){var i,s,l,c=this,u=(0,o.I6)(e,t,n),d=u[0],h=u[1],f=(0,r.Z)({},d,{active:null==(i=null!=(s=d.refetchActive)?s:d.active)||i,inactive:null!=(l=d.refetchInactive)&&l});return a.V.batch((function(){return c.queryCache.findAll(d).forEach((function(e){e.invalidate()})),c.refetchQueries(f,h)}))},t.refetchQueries=function(e,t,n){var i=this,s=(0,o.I6)(e,t,n),l=s[0],c=s[1],u=a.V.batch((function(){return i.queryCache.findAll(l).map((function(e){return e.fetch(void 0,(0,r.Z)({},c,{meta:{refetchPage:null==l?void 0:l.refetchPage}}))}))})),d=Promise.all(u).then(o.ZT);return(null==c?void 0:c.throwOnError)||(d=d.catch(o.ZT)),d},t.fetchQuery=function(e,t,n){var r=(0,o._v)(e,t,n),i=this.defaultQueryOptions(r);"undefined"===typeof i.retry&&(i.retry=!1);var a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(o.ZT).catch(o.ZT)},t.fetchInfiniteQuery=function(e,t,n){var r=(0,o._v)(e,t,n);return r.behavior={onFetch:function(e){e.fetchFn=function(){var t,n,r,i,a,s,c,u=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,d=null==(r=e.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,h=null==d?void 0:d.pageParam,f="forward"===(null==d?void 0:d.direction),p="backward"===(null==d?void 0:d.direction),m=(null==(a=e.state.data)?void 0:a.pages)||[],v=(null==(s=e.state.data)?void 0:s.pageParams)||[],b=(0,o.G9)(),w=null==b?void 0:b.signal,x=v,k=!1,S=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},E=function(e,t,n,r){return x=r?[t].concat(x):[].concat(x,[t]),r?[n].concat(e):[].concat(e,[n])},C=function(t,n,r,o){if(k)return Promise.reject("Cancelled");if("undefined"===typeof r&&!n&&t.length)return Promise.resolve(t);var i={queryKey:e.queryKey,signal:w,pageParam:r,meta:e.meta},a=S(i),s=Promise.resolve(a).then((function(e){return E(t,r,e,o)}));return(0,l.LE)(a)&&(s.cancel=a.cancel),s};if(m.length)if(f){var _="undefined"!==typeof h,T=_?h:g(e.options,m);c=C(m,_,T)}
2else if(p){var O="undefined"!==typeof h,I=O?h:y(e.options,m);c=C(m,O,I,!0)}else!function(){x=[];var t="undefined"===typeof e.options.getNextPageParam,n=!u||!m[0]||u(m[0],0,m);c=n?C([],t,v[0]):Promise.resolve(E([],v[0],m[0]));for(var r=function(n){c=c.then((function(r){if(!u||!m[n]||u(m[n],n,m)){var o=t?v[n]:g(e.options,r);return C(r,t,o)}return Promise.resolve(E(r,v[n],m[n]))}))},o=1;o<m.length;o++)r(o)}();else c=C([]);var A=c.then((function(e){return{pages:e,pageParams:x}}));return A.cancel=function(){k=!0,null==b||b.abort(),(0,l.LE)(c)&&c.cancel()},A}}},this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(o.ZT).catch(o.ZT)},t.cancelMutations=function(){var e=this,t=a.V.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(o.ZT).catch(o.ZT)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find((function(t){return(0,o.yF)(e)===(0,o.yF)(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return(0,o.to)(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find((function(t){return(0,o.yF)(e)===(0,o.yF)(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return(0,o.to)(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,r.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,o.Rm)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,r.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},96350:(e,t,n)=>{"use strict";n.d(t,{DV:()=>c,LE:()=>s,m4:()=>u});var r=n(25590),o=n(4463),i=n(91985);function a(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"===typeof(null==e?void 0:e.cancel)}var l=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function c(e){return e instanceof l}var u=function(e){var t,n,c,u,d=this,h=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){h=!0},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){c=e,u=t}));var f=function(t){d.isResolved||(d.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),c(t))},p=function(t){d.isResolved||(d.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),u(t))};!function c(){if(!d.isResolved){var u;try{u=e.fn()}catch(m){u=Promise.reject(m)}t=function(e){if(!d.isResolved&&(p(new l(e)),null==d.abort||d.abort(),s(u)))try{u.cancel()}catch(t){}},d.isTransportCancelable=s(u),Promise.resolve(u).then(f).catch((function(t){var s,l;if(!d.isResolved){var u=null!=(s=e.retry)?s:3,f=null!=(l=e.retryDelay)?l:a,m="function"===typeof f?f(d.failureCount,t):f,g=!0===u||"number"===typeof u&&d.failureCount<u||"function"===typeof u&&u(d.failureCount,t);!h&&g?(d.failureCount++,null==e.onFail||e.onFail(d.failureCount,t),(0,i.Gh)(m).then((function(){if(!r.j.isFocused()||!o.N.isOnline())return new Promise((function(t){n=t,d.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){n=void 0,d.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){h?p(t):c()}))):p(t)}}))}}()}},88846:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var r=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},45044:()=>{},91985:(e,t,n)=>{"use strict";n.d(t,{A4:()=>C,G9:()=>_,Gh:()=>E,I6:()=>h,Kp:()=>c,PN:()=>s,Q$:()=>b,Rm:()=>m,SE:()=>a,VS:()=>w,X7:()=>p,ZT:()=>i,_v:()=>u,_x:()=>f,lV:()=>d,mc:()=>l,sk:()=>o,to:()=>y,yF:()=>g});var r=n(87462),o="undefined"===typeof window;function i(){}function a(e,t){return"function"===typeof e?e(t):e}function s(e){return"number"===typeof e&&e>=0&&e!==1/0}function l(e){return Array.isArray(e)?e:[e]}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t,n){return S(e)?"function"===typeof t?(0,r.Z)({},n,{queryKey:e,queryFn:t}):(0,r.Z)({},t,{queryKey:e}):e}function d(e,t,n){return S(e)?"function"===typeof t?(0,r.Z)({},n,{mutationKey:e,mutationFn:t}):(0,r.Z)({},t,{mutationKey:e}):"function"===typeof e?(0,r.Z)({},t,{mutationFn:e}):(0,r.Z)({},e)}function h(e,t,n){return S(e)?[(0,r.Z)({},t,{queryKey:e}),n]:[e||{},t]}function f(e,t){var n=e.active,r=e.exact,o=e.fetching,i=e.inactive,a=e.predicate,s=e.queryKey,l=e.stale;if(S(s))if(r){if(t.queryHash!==m(s,t.options))return!1}else if(!y(t.queryKey,s))return!1;var c=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(n,i);if("none"===c)return!1;if("all"!==c){var u=t.isActive();if("active"===c&&!u)return!1;if("inactive"===c&&u)return!1}return("boolean"!==typeof l||t.isStale()===l)&&(("boolean"!==typeof o||t.isFetching()===o)&&!(a&&!a(t)))}function p(e,t){var n=e.exact,r=e.fetching,o=e.predicate,i=e.mutationKey;if(S(i)){if(!t.options.mutationKey)return!1;if(n){if(g(t.options.mutationKey)!==g(i))return!1}else if(!y(t.options.mutationKey,i))return!1}return("boolean"!==typeof r||"loading"===t.state.status===r)&&!(o&&!o(t))}function m(e,t){return((null==t?void 0:t.queryKeyHashFn)||g)(e)}function g(e){var t,n=l(e);return t=n,JSON.stringify(t,(function(e,t){return x(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function y(e,t){return v(l(e),l(t))}function v(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((function(n){return!v(e[n],t[n])})))}function b(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||x(e)&&x(t)){for(var r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{},s=0,l=0;l<i;l++){var c=n?l:o[l];a[c]=b(e[c],t[c]),a[c]===e[c]&&s++}return r===i&&s===r?e:a}return t}function w(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function x(e){if(!k(e))return!1;var t=e.constructor;if("undefined"===typeof t)return!0;var n=t.prototype;return!!k(n)&&!!n.hasOwnProperty("isPrototypeOf")}function k(e){return"[object Object]"===Object.prototype.toString.call(e)}function S(e){return"string"===typeof e||Array.isArray(e)}function E(e){return new Promise((function(t){setTimeout(t,e)}))}function C(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function _(){if("function"===typeof AbortController)return new AbortController}}
2,91933:(e,t,n)=>{"use strict";n.d(t,{QueryClient:()=>r.QueryClient,QueryClientProvider:()=>o.QueryClientProvider,hashQueryKey:()=>r.hashQueryKey,useMutation:()=>o.useMutation,useQuery:()=>o.useQuery,useQueryClient:()=>o.useQueryClient});var r=n(95708);n.o(r,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return r.QueryClientProvider}}),n.o(r,"useMutation")&&n.d(t,{useMutation:function(){return r.useMutation}}),n.o(r,"useQuery")&&n.d(t,{useQuery:function(){return r.useQuery}}),n.o(r,"useQueryClient")&&n.d(t,{useQueryClient:function(){return r.useQueryClient}});var o=n(75704)},75704:(e,t,n)=>{"use strict";n.d(t,{QueryClientProvider:()=>h,useMutation:()=>w,useQuery:()=>A,useQueryClient:()=>d});var r=n(82363),o=n(54164).unstable_batchedUpdates;r.V.setBatchNotifyFunction(o);var i=n(209),a=console;(0,i.E)(a);var s=n(72791),l=s.createContext(void 0),c=s.createContext(!1);function u(e){return e&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=l),window.ReactQueryClientContext):l}var d=function(){var e=s.useContext(u(s.useContext(c)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},h=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,o=e.children;s.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var i=u(r);return s.createElement(c.Provider,{value:r},s.createElement(i.Provider,{value:t},o))},f=n(87462),p=n(91985),m=n(94578),g=n(51909),y=n(88846),v=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.setOptions(n),r.bindMethods(),r.updateResult(),r}(0,m.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,f.Z)({},this.options,{variables:"undefined"!==typeof e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:(0,g.R)(),t=(0,f.Z)({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},n.notify=function(e){var t=this;r.V.batch((function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)}))}))},t}(y.l);function b(e,t,n){return"function"===typeof t?t(n):"boolean"===typeof t?t:!!e}function w(e,t,n){var o=s.useRef(!1),i=s.useState(0)[1],a=(0,p.lV)(e,t,n),l=d(),c=s.useRef();c.current?c.current.setOptions(a):c.current=new v(l,a);var u=c.current.getCurrentResult();s.useEffect((function(){o.current=!0;var e=c.current.subscribe(r.V.batchCalls((function(){o.current&&i((function(e){return e+1}))})));return function(){o.current=!1,e()}}),[]);var h=s.useCallback((function(e,t){c.current.mutate(e,t).catch(p.ZT)}),[]);if(u.error&&b(void 0,c.current.options.useErrorBoundary,u.error))throw u.error;return(0,f.Z)({},u,{mutate:h,mutateAsync:u.mutate})}var x=n(25590),k=n(96350),S=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.previousSelectError=null,r.bindMethods(),r.setOptions(n),r}(0,m.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),E(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return function(e,t){return!1!==t.enabled&&("always"===t.refetchOnReconnect||!1!==t.refetchOnReconnect&&_(e,t))}(this.currentQuery,this.options)},n.shouldFetchOnWindowFocus=function(){return function(e,t){return!1!==t.enabled&&("always"===t.refetchOnWindowFocus||!1!==t.refetchOnWindowFocus&&_(e,t))}(this.currentQuery,this.options)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),"undefined"!==typeof this.options.enabled&&"boolean"!==typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var o=this.hasListeners();o&&C(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var i=this.computeRefetchInterval();!o||this.currentQuery===r&&this.options.enabled===n.enabled&&i===this.currentRefetchInterval||this.updateRefetchInterval(i)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e){var t=this,n={};return Object.keys(e).forEach((function(r){Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:function(){var n=r;return t.trackedProps.includes(n)||t.trackedProps.push(n),e[n]}})})),n},n.getNextResult=function(e){var t=this;return new Promise((function(n,r){var o=t.subscribe((function(t){t.isFetching||(o(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch((0,f.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then((function(){return t.createResult(r,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(p.ZT)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!p.sk&&!this.currentResult.isStale&&(0,p.PN)(this.options.staleTime)){var t=(0,p.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},n.computeRefetchInterval=function(){var e;return"function"===typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!p.sk&&!1!==this.options.enabled&&(0,p.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackgroun
2d||x.j.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0},n.clearRefetchInterval=function(){clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0},n.createResult=function(e,t){var n,r=this.currentQuery,o=this.options,a=this.currentResult,s=this.currentResultState,l=this.currentResultOptions,c=e!==r,u=c?e.state:this.currentQueryInitialState,d=c?this.currentResult:this.previousQueryResult,h=e.state,f=h.dataUpdatedAt,m=h.error,g=h.errorUpdatedAt,y=h.isFetching,v=h.status,b=!1,w=!1;if(t.optimisticResults){var x=this.hasListeners(),k=!x&&E(e,t),S=x&&C(e,r,t,o);(k||S)&&(y=!0,f||(v="loading"))}if(t.keepPreviousData&&!h.dataUpdateCount&&(null==d?void 0:d.isSuccess)&&"error"!==v)n=d.data,f=d.dataUpdatedAt,v=d.status,b=!0;else if(t.select&&"undefined"!==typeof h.data)if(a&&h.data===(null==s?void 0:s.data)&&t.select===(null==l?void 0:l.select)&&!this.previousSelectError)n=a.data;else try{n=t.select(h.data),!1!==t.structuralSharing&&(n=(0,p.Q$)(null==a?void 0:a.data,n)),this.previousSelectError=null}catch(O){(0,i.j)().error(O),m=O,this.previousSelectError=O,g=Date.now(),v="error"}else n=h.data;if("undefined"!==typeof t.placeholderData&&"undefined"===typeof n&&("loading"===v||"idle"===v)){var T;if((null==a?void 0:a.isPlaceholderData)&&t.placeholderData===(null==l?void 0:l.placeholderData))T=a.data;else if(T="function"===typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&"undefined"!==typeof T)try{T=t.select(T),!1!==t.structuralSharing&&(T=(0,p.Q$)(null==a?void 0:a.data,T)),this.previousSelectError=null}catch(O){(0,i.j)().error(O),m=O,this.previousSelectError=O,g=Date.now(),v="error"}"undefined"!==typeof T&&(v="success",n=T,w=!0)}return{status:v,isLoading:"loading"===v,isSuccess:"success"===v,isError:"error"===v,isIdle:"idle"===v,data:n,dataUpdatedAt:f,error:m,errorUpdatedAt:g,failureCount:h.fetchFailureCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&"loading"!==v,isLoadingError:"error"===v&&0===h.dataUpdatedAt,isPlaceholderData:w,isPreviousData:b,isRefetchError:"error"===v&&0!==h.dataUpdatedAt,isStale:_(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;if(e===t)return!1;var n=this.options,r=n.notifyOnChangeProps,o=n.notifyOnChangePropsExclusions;if(!r&&!o)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var i="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,a=e[r]!==t[r],s=null==i?void 0:i.some((function(e){return e===n})),l=null==o?void 0:o.some((function(e){return e===n}));return a&&!l&&(!i||s)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,p.VS)(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify((0,f.Z)({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,k.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;r.V.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEac
2h((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(y.l);function E(e,t){return function(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||function(e,t){return!1!==t.enabled&&e.state.dataUpdatedAt>0&&("always"===t.refetchOnMount||!1!==t.refetchOnMount&&_(e,t))}(e,t)}function C(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status||!1===r.enabled)&&_(e,n)}function _(e,t){return e.isStaleByTime(t.staleTime)}function T(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var O=s.createContext(T()),I=function(){return s.useContext(O)};function A(e,t,n){return function(e,t){var n=s.useRef(!1),o=s.useState(0)[1],i=d(),a=I(),l=i.defaultQueryObserverOptions(e);l.optimisticResults=!0,l.onError&&(l.onError=r.V.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=r.V.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=r.V.batchCalls(l.onSettled)),l.suspense&&("number"!==typeof l.staleTime&&(l.staleTime=1e3),0===l.cacheTime&&(l.cacheTime=1)),(l.suspense||l.useErrorBoundary)&&(a.isReset()||(l.retryOnMount=!1));var c=s.useState((function(){return new t(i,l)}))[0],u=c.getOptimisticResult(l);if(s.useEffect((function(){n.current=!0,a.clearReset();var e=c.subscribe(r.V.batchCalls((function(){n.current&&o((function(e){return e+1}))})));return c.updateResult(),function(){n.current=!1,e()}}),[a,c]),s.useEffect((function(){c.setOptions(l,{listeners:!1})}),[l,c]),l.suspense&&u.isLoading)throw c.fetchOptimistic(l).then((function(e){var t=e.data;null==l.onSuccess||l.onSuccess(t),null==l.onSettled||l.onSettled(t,null)})).catch((function(e){a.clearReset(),null==l.onError||l.onError(e),null==l.onSettled||l.onSettled(void 0,e)}));if(u.isError&&!u.isFetching&&b(l.suspense,l.useErrorBoundary,u.error))throw u.error;return"tracked"===l.notifyOnChangeProps&&(u=c.trackResult(u)),u}((0,p._v)(e,t,n),S)}},60506:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(72791)),o=n(59962),i=n(6549),a=n(33788),s=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}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){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p=function(e){var t,n;function a(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleRefs={},t.lastHandleRect=null,t.slack=null,t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,f(t,n);var l=a.prototype;return l.componentWillUnmount=function(){this.resetData()},l.resetData=function(){this.lastHandleRect=this.slack=null},l.runConstraints=function(e,t){var n=this.props,r=n.minConstraints,o=n.maxConstraints,i=n.lockA
2spectRatio;if(!r&&!o&&!i)return[e,t];if(i){var a=this.props.width/this.props.height,s=e-this.props.width,l=t-this.props.height;Math.abs(s)>Math.abs(l*a)?t=e/a:e=t*a}var c=e,u=t,d=this.slack||[0,0],h=d[0],f=d[1];return e+=h,t+=f,r&&(e=Math.max(r[0],e),t=Math.max(r[1],t)),o&&(e=Math.min(o[0],e),t=Math.min(o[1],t)),this.slack=[h+(c-e),f+(u-t)],[e,t]},l.resizeHandler=function(e,t){var n=this;return function(r,o){var i=o.node,a=o.deltaX,s=o.deltaY;"onResizeStart"===e&&n.resetData();var l=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==t&&"s"!==t,c=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==t&&"w"!==t;if(l||c){var u=t[0],d=t[t.length-1],h=i.getBoundingClientRect();if(null!=n.lastHandleRect){if("w"===d)a+=h.left-n.lastHandleRect.left;if("n"===u)s+=h.top-n.lastHandleRect.top}n.lastHandleRect=h,"w"===d&&(a=-a),"n"===u&&(s=-s);var f=n.props.width+(l?a/n.props.transformScale:0),p=n.props.height+(c?s/n.props.transformScale:0),m=n.runConstraints(f,p);f=m[0],p=m[1];var g=f!==n.props.width||p!==n.props.height,y="function"===typeof n.props[e]?n.props[e]:null;y&&!("onResize"===e&&!g)&&(null==r.persist||r.persist(),y(r,{node:i,size:{width:f,height:p},handle:t})),"onResizeStop"===e&&n.resetData()}}},l.renderResizeHandle=function(e,t){var n=this.props.handle;if(!n)return r.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+e,ref:t});if("function"===typeof n)return n(e,t);var o=d({ref:t},"string"===typeof n.type?{}:{handleAxis:e});return r.cloneElement(n,o)},l.render=function(){var e=this,t=this.props,n=t.children,a=t.className,l=t.draggableOpts,u=(t.width,t.height,t.handle,t.handleSize,t.lockAspectRatio,t.axis,t.minConstraints,t.maxConstraints,t.onResize,t.onResizeStop,t.onResizeStart,t.resizeHandles),h=(t.transformScale,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,s));return(0,i.cloneElement)(n,d(d({},h),{},{className:(a?a+" ":"")+"react-resizable",children:[].concat(n.props.children,u.map((function(t){var n,i=null!=(n=e.handleRefs[t])?n:e.handleRefs[t]=r.createRef();return r.createElement(o.DraggableCore,c({},l,{nodeRef:i,key:"resizableHandle-"+t,onStop:e.resizeHandler("onResizeStop",t),onStart:e.resizeHandler("onResizeStart",t),onDrag:e.resizeHandler("onResize",t)}),e.renderResizeHandle(t,i))})))}))},a}(r.Component);t.default=p,p.propTypes=a.resizableProps,p.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}},81391:(e,t,n)=>{"use strict";t.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(72791)),o=l(n(52007)),i=l(n(60506)),a=n(33788),s=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function u(){return u=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},u.apply(this,arguments)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEac
2h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var m=function(e){var t,n;function o(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={width:t.props.width,height:t.props.height,propsWidth:t.props.width,propsHeight:t.props.height},t.onResize=function(e,n){var r=n.size;t.props.onResize?(null==e.persist||e.persist(),t.setState(r,(function(){return t.props.onResize&&t.props.onResize(e,n)}))):t.setState(r)},t}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,p(t,n),o.getDerivedStateFromProps=function(e,t){return t.propsWidth!==e.width||t.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null},o.prototype.render=function(){var e=this.props,t=e.handle,n=e.handleSize,o=(e.onResize,e.onResizeStart),a=e.onResizeStop,l=e.draggableOpts,c=e.minConstraints,d=e.maxConstraints,f=e.lockAspectRatio,p=e.axis,m=(e.width,e.height,e.resizeHandles),g=e.style,y=e.transformScale,v=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,s);return r.createElement(i.default,{axis:p,draggableOpts:l,handle:t,handleSize:n,height:this.state.height,lockAspectRatio:f,maxConstraints:d,minConstraints:c,onResizeStart:o,onResize:this.onResize,onResizeStop:a,resizeHandles:m,transformScale:y,width:this.state.width},r.createElement("div",u({},v,{style:h(h({},g),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},o}(r.Component);t.default=m,m.propTypes=h(h({},a.resizableProps),{},{children:o.default.element})},33788:(e,t,n)=>{"use strict";t.__esModule=!0,t.resizableProps=void 0;var r,o=(r=n(52007))&&r.__esModule?r:{default:r};n(59962);var i={axis:o.default.oneOf(["both","x","y","none"]),className:o.default.string,children:o.default.element.isRequired,draggableOpts:o.default.shape({allowAnyClick:o.default.bool,cancel:o.default.string,children:o.default.node,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:o.default.node,grid:o.default.arrayOf(o.default.number),handle:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number}),height:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=t[0];return"both"===i.axis||"y"===i.axis?(r=o.default.number).isRequired.apply(r,t):o.default.number.apply(o.default,t)},handle:o.default.oneOfType([o.default.node,o.default.func]),handleSize:o.default.arrayOf(o.default.number),lockAspectRatio:o.default.bool,maxConstraints:o.default.arrayOf(o.default.number),minConstraints:o.default.arrayOf(o.default.number),onResizeStop:o.default.func,onResizeStart:o.default.func,onResize:o.default.func,resizeHandles:o.default.arrayOf(o.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:o.default.number,width:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=t[0];return"both"===i.axis||"x"===i.axis?(r=o.default.number).isRequired.apply(r,t):o.default.number.apply(o.default,t)}};t.resizableProps=i}
2,6549:(e,t,n)=>{"use strict";t.__esModule=!0,t.cloneElement=function(e,t){t.style&&e.props.style&&(t.style=a(a({},e.props.style),t.style));t.className&&e.props.className&&(t.className=e.props.className+" "+t.className);return o.default.cloneElement(e,t)};var r,o=(r=n(72791))&&r.__esModule?r:{default:r};function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},72639:(e,t,n)=>{"use strict";e.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},e.exports.Resizable=n(60506).default,e.exports.ResizableBox=n(81391).default},80542:(e,t,n)=>{"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=n(64880),i=r(n(72791)),a=n(12610);n(52007),n(15501);var s=r(n(20090));function l(){return(l=Object.assign||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}).apply(this,arguments)}function c(e,t){e.prototype=Object.create(t.prototype),u(e.prototype.constructor=e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}var h=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=a.createBrowserHistory(t.props),t}return c(t,e),t.prototype.render=function(){return i.createElement(o.Router,{history:this.history,children:this.props.children})},t}(i.Component),f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=a.createHashHistory(t.props),t}return c(t,e),t.prototype.render=function(){return i.createElement(o.Router,{history:this.history,children:this.props.children})},t}(i.Component),p=function(e,t){return"function"==typeof e?e(t):e},m=function(e,t){return"string"==typeof e?a.createLocation(e,null,null,t):e},g=function(e){return e},y=i.forwardRef;void 0===y&&(y=g);var v=y((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,a=d(e,["innerRef","navigate","onClick"]),s=a.target,c=l({},a,{onClick:function(t){try{o&&o(t)}catch(e){throw t.preventDefault(),e}t.defaultPrevented||0!==t.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t)||(t.preventDefault(),r())}});return c.ref=g!==y&&t||n,i.createElement("a",c)})),b=y((function(e,t){var n=e.component,r=void 0===n?v:n,c=e.replace,u=e.to,h=e.innerRef,f=d(e,["component","replace","to","innerRef"]);return i.createElement(o.__RouterContext.Consumer,null,(function(e){e||s(!1);var n=e.history,o=m(p(u,e.location),e.location),d=o?n.createHref(o):"",v=l({},f,{href:d,navigate:function(){var t=p(u,e.location),r=a.createPath(e.location)===a.createPath(m(t));(c||r?n.replace:n.push)(t)}});return g!==y?v.ref=t||h:v.innerRef=h,i.createElement(r,v)}))})),w=function(e){return e},x=i.forwardRef;void 0===x&&(x=w);var k=x((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,a=e.activeClassName,c=void 0===a?"active":a,u=e.activeStyle,h=e.className,f=e.exact,g=e.isActive,y=e.location,v=e.sensitive,k=e.strict,S=e.style,E=e.to,C=e.innerRef,_=d(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return i.createElement(o.__RouterContext.Consumer,null,(function(e){e||s(!1);var n=y||e.location,a=m(p(E,n),n),d=a.pathname,T=d&&d.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),O=T?o.matchPath(n.pathname,{path:T,exact:f,sensitive:v,strict:k}):null,I=!!(g?g(O,n):O),A="function"==typeof h?h(I):h,P="function"==typeof S?S(I):S;I&&(A=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(A,c),P=l({},P,u));var R=l({"aria-current":I&&r||null,className:A,style:P,to:a},_);return w!==x?R.ref=t||C:R.innerRef=C,i.createElement(b,R)}))}));Object.defineProperty(t,"l_",{enumerable:!0,get:function(){return o.Redirect}})}
2,91523:(e,t,n)=>{"use strict";n.d(t,{OL:()=>v,rU:()=>m});var r=n(64880),o=n(94578),i=n(72791),a=n(12610),s=n(87462),l=n(63366),c=n(44554);i.Component;i.Component;var u=function(e,t){return"function"===typeof e?e(t):e},d=function(e,t){return"string"===typeof e?(0,a.createLocation)(e,null,null,t):e},h=function(e){return e},f=i.forwardRef;"undefined"===typeof f&&(f=h);var p=f((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,a=(0,l.Z)(e,["innerRef","navigate","onClick"]),c=a.target,u=(0,s.Z)({},a,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=h!==f&&t||n,i.createElement("a",u)}));var m=f((function(e,t){var n=e.component,o=void 0===n?p:n,m=e.replace,g=e.to,y=e.innerRef,v=(0,l.Z)(e,["component","replace","to","innerRef"]);return i.createElement(r.__RouterContext.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=e.history,r=d(u(g,e.location),e.location),l=r?n.createHref(r):"",p=(0,s.Z)({},v,{href:l,navigate:function(){var t=u(g,e.location),r=(0,a.createPath)(e.location)===(0,a.createPath)(d(t));(m||r?n.replace:n.push)(t)}});return h!==f?p.ref=t||y:p.innerRef=y,i.createElement(o,p)}))})),g=function(e){return e},y=i.forwardRef;"undefined"===typeof y&&(y=g);var v=y((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,a=e.activeClassName,h=void 0===a?"active":a,f=e.activeStyle,p=e.className,v=e.exact,b=e.isActive,w=e.location,x=e.sensitive,k=e.strict,S=e.style,E=e.to,C=e.innerRef,_=(0,l.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return i.createElement(r.__RouterContext.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=w||e.location,a=d(u(E,n),n),l=a.pathname,T=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),O=T?(0,r.matchPath)(n.pathname,{path:T,exact:v,sensitive:x,strict:k}):null,I=!!(b?b(O,n):O),A="function"===typeof p?p(I):p,P="function"===typeof S?S(I):S;I&&(A=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(A,h),P=(0,s.Z)({},P,f));var R=(0,s.Z)({"aria-current":I&&o||null,className:A,style:P,to:a},_);return g!==y?R.ref=t||C:R.innerRef=C,i.createElement(m,R)}))}))},64880:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MemoryRouter:()=>k,Prompt:()=>E,Redirect:()=>I,Route:()=>D,Router:()=>x,StaticRouter:()=>z,Switch:()=>U,__HistoryContext:()=>b,__RouterContext:()=>w,generatePath:()=>O,matchPath:()=>N,useHistory:()=>H,useLocation:()=>W,useParams:()=>q,useRouteMatch:()=>G,withRouter:()=>B});var r=n(94578),o=n(72791),i=n(52007),a=n.n(i),s=n(12610),l=n(44554),c=n(87462),u=n(53813),d=n.n(u),h=(n(28228),n(63366)),f=n(62110),p=n.n(f),m=1073741823,g="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{};var y=o.createContext||function(e,t){var n,i,s="__create-react-context-"+function(){var e="__global_unique_id__";return g[e]=(g[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(t.props.value),t}(0,r.Z)(n,e);var o=n.prototype;return o.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},o.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i===1/a:i!==i&&a!==a)?n=0:(n="function"===typeof t?t(r,o):m,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},o.render=function(){return this.props.children},n}(o.Component);l.childContextTypes=((n={})[s]=a().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.Z)(n,t);var o=n.prototype;return o.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?m:t},o.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?m:e},o.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},o.getValue=function(){return this.context[s]?this.context[s].get():e},o.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(o.Component);return c.contextTypes=((i={})[s]=a().object,i),{Provider:l,Consumer:c}},v=function(e){var t=y();return t.displayName=e,t},b=v("Router-History"),w=v("Router"),x=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}
2))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return o.createElement(w.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.createElement(b.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.Component);var k=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,s.createMemoryHistory)(t.props),t}return(0,r.Z)(t,e),t.prototype.render=function(){return o.createElement(x,{history:this.history,children:this.props.children})},t}(o.Component);var S=function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o.Component);function E(e){var t=e.message,n=e.when,r=void 0===n||n;return o.createElement(w.Consumer,null,(function(e){if(e||(0,l.Z)(!1),!r||e.staticContext)return null;var n=e.history.block;return o.createElement(S,{onMount:function(e){e.release=n(t)},onUpdate:function(e,r){r.message!==t&&(e.release(),e.release=n(t))},onUnmount:function(e){e.release()},message:t})}))}var C={},_=1e4,T=0;function O(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(C[e])return C[e];var t=d().compile(e);return T<_&&(C[e]=t,T++),t}(e)(t,{pretty:!0})}function I(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return o.createElement(w.Consumer,null,(function(e){e||(0,l.Z)(!1);var r=e.history,a=e.staticContext,u=i?r.push:r.replace,d=(0,s.createLocation)(t?"string"===typeof n?O(n,t.params):(0,c.Z)({},n,{pathname:O(n.pathname,t.params)}):n);return a?(u(d),null):o.createElement(S,{onMount:function(){u(d)},onUpdate:function(e,t){var n=(0,s.createLocation)(t.to);(0,s.locationsAreEqual)(n,(0,c.Z)({},d,{key:n.key}))||u(d)},to:n})}))}var A={},P=1e4,R=0;function N(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=A[n]||(A[n]={});if(r[e])return r[e];var o=[],i={regexp:d()(e,o,t),keys:o};return R<P&&(r[e]=i,R++),i}(n,{end:i,strict:s,sensitive:c}),o=r.regexp,a=r.keys,l=o.exec(e);if(!l)return null;var u=l[0],h=l.slice(1),f=e===u;return i&&!f?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:f,params:a.reduce((function(e,t,n){return e[t.name]=h[n],e}),{})}}),null)}var D=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return o.createElement(w.Consumer,null,(function(t){t||(0,l.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?N(n.pathname,e.props):t.match,i=(0,c.Z)({},t,{location:n,match:r}),a=e.props,s=a.children,u=a.component,d=a.render;return Array.isArray(s)&&function(e){return 0===o.Children.count(e)}(s)&&(s=null),o.createElement(w.Provider,{value:i},i.match?s?"function"===typeof s?s(i):s:u?o.createElement(u,i):d?d(i):null:"function"===typeof s?s(i):null)}))},t}(o.Component);function M(e){return"/"===e.charAt(0)?e:"/"+e}function L(e,t){if(!e)return t;var n=M(e);return 0!==t.pathname.indexOf(n)?t:(0,c.Z)({},t,{pathname:t.pathname.substr(n.length)})}function Z(e){return"string"===typeof e?e:(0,s.createPath)(e)}function j(e){return function(){(0,l.Z)(!1)}}function F(){}var z=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handlePush=function(e){return t.navigateTo(e,"PUSH")},t.handleReplace=function(e){return t.navigateTo(e,"REPLACE")},t.handleListen=function(){return F},t.handleBlock=function(){return F},t}(0,r.Z)(t,e);var n=t.prototype;return n.navigateTo=function(e,t){var n=this.props,r=n.basename,o=void 0===r?"":r,i=n.context,a=void 0===i?{}:i;a.action=t,a.location=function(e,t){return e?(0,c.Z)({},t,{pathname:M(e)+t.pathname}):t}(o,(0,s.createLocation)(e)),a.url=Z(a.location)},n.render=function(){var e=this.props,t=e.basename,n=void 0===t?"":t,r=e.context,i=void 0===r?{}:r,a=e.location,l=void 0===a?"/":a,u=(0,h.Z)(e,["basename","context","location"]),d={createHref:function(e){return M(n+Z(e))},action:"POP",location:L(n,(0,s.createLocation)(l)),push:this.handlePush,replace:this.handleReplace,go:j(),goBack:j(),goForward:j(),listen:this.handleListen,block:this.handleBlock};return o.createElement(x,(0,c.Z)({},u,{history:d,staticContext:i}))},t}(o.Component);var U=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return o.createElement(w.Consumer,null,(function(t){t||(0,l.Z)(!1);var n,r,i=e.props.location||t.location;
2return o.Children.forEach(e.props.children,(function(e){if(null==r&&o.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?N(i.pathname,(0,c.Z)({},e.props,{path:a})):t.match}})),r?o.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o.Component);function B(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=(0,h.Z)(t,["wrappedComponentRef"]);return o.createElement(w.Consumer,null,(function(t){return t||(0,l.Z)(!1),o.createElement(e,(0,c.Z)({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,p()(n,e)}var V=o.useContext;function H(){return V(b)}function W(){return V(w).location}function q(){var e=V(w).match;return e?e.params:{}}function G(e){var t=W(),n=V(w).match;return e?N(t.pathname,e):n}},73381:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},53813:(e,t,n)=>{var r=n(73381);e.exports=f,e.exports.parse=i,e.exports.compile=function(e,t){return s(i(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=h;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,s="",u=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],h=n[1],f=n.index;if(s+=e.slice(a,f),a=f+d.length,h)s+=h[1];else{var p=e[a],m=n[2],g=n[3],y=n[4],v=n[5],b=n[6],w=n[7];s&&(r.push(s),s="");var x=null!=m&&null!=p&&p!==m,k="+"===b||"*"===b,S="?"===b||"*"===b,E=n[2]||u,C=y||v;r.push({name:g||i++,prefix:m||"",delimiter:E,optional:S,repeat:k,partial:x,asterisk:!!w,pattern:C?c(C):w?".*":"[^"+l(E)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"===typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",d(t)));return function(t,o){for(var i="",s=t||{},l=(o||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var d,h=s[u.name];if(null==h){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(h)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<h.length;f++){if(d=l(h[f]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");i+=(0===f?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(h).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(h),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');i+=u.prefix+d}}else i+=u}return i}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function h(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",s=0;s<e.length;s++){var c=e[s];if("string"===typeof c)a+=l(c);else{var h=l(c.prefix),f="(?:"+c.pattern+")";t.push(c),c.repeat&&(f+="(?:"+h+f+")*"),a+=f=c.optional?c.partial?h+"("+f+")?":"(?:"+h+"("+f+"))?":h+"("+f+")"}}var p=l(n.delimiter||"/"),m=a.slice(-p.length)===p;return o||(a=(m?a.slice(0,-p.length):a)+"(?:"+p+"(?=$))?"),a+=i?"$":o&&m?"":"(?="+p+"|$)",u(new RegExp("^"+a,d(n)),t)}function f(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(f(e[o],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return h(i(e,n),t,n)}(e,t,n)}},29195:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=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 i:case s: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 o:return t}}}function k(e){return x(e)===d}}
2,28228:(e,t,n)=>{"use strict";n(29195)},14647:(e,t,n)=>{"use strict";n.d(t,{S:()=>ve,b:()=>J,g:()=>ee});var r=n(87462),o=n(1413);var i=n(49142);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,i.Z)(r.key),r)}}var s=n(89611);function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}var c=n(71002),u=n(97326);function d(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===(0,c.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,u.Z)(e)}(this,n)}}var h=n(42982),f=n(72791),p=n(94572),m=n(52554),g=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function y(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||g(r)&&g(o)))return!1;var r,o;return!0}var v=n(45987);for(var b={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},w=function(e){return(0,m.tZ)("span",(0,r.Z)({css:b},e))},x={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d=s?" disabled":"",h="".concat(l?" selected":"").concat(d);return"".concat(i).concat(h,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},k=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,a=e.isFocused,s=e.selectValue,l=e.selectProps,c=e.id,u=e.isAppleDevice,d=l.ariaLiveMessages,h=l.getOptionLabel,p=l.inputValue,g=l.isMulti,y=l.isOptionDisabled,v=l.isSearchable,b=l.menuIsOpen,k=l.options,S=l.screenReaderStatus,E=l.tabSelectsValue,C=l.isLoading,_=l["aria-label"],T=l["aria-live"],O=(0,f.useMemo)((function(){return(0,o.Z)((0,o.Z)({},x),d||{})}),[d]),I=(0,f.useMemo)((function(){var e,n="";if(t&&O.onChange){var r=t.option,i=t.options,a=t.removedValue,l=t.removedValues,c=t.value,u=a||r||(e=c,Array.isArray(e)?null:e),d=u?h(u):"",f=i||l||void 0,p=f?f.map(h):[],m=(0,o.Z)({isDisabled:u&&y(u,s),label:d,labels:p},t);n=O.onChange(m)}return n}),[t,O,y,s,h]),A=(0,f.useMemo)((function(){var e="",t=n||r,o=!!(n&&s&&s.includes(n));if(t&&O.onFocus){var a={focused:t,label:h(t),isDisabled:y(t,s),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:s,isAppleDevice:u};
vendor: 3,981 bytes, line 2
2e=O.onFocus(a)}return e}),[n,r,h,y,O,i,s,u]),P=(0,f.useMemo)((function(){var e="";if(b&&k.length&&!C&&O.onFilter){var t=S({count:i.length});e=O.onFilter({inputValue:p,resultsMessage:t})}return e}),[i,p,b,O,k,S,C]),R="initial-input-focus"===(null===t||void 0===t?void 0:t.action),N=(0,f.useMemo)((function(){var e="";if(O.guidance){var t=r?"value":b?"menu":"input";e=O.guidance({"aria-label":_,context:t,isDisabled:n&&y(n,s),isMulti:g,isSearchable:v,tabSelectsValue:E,isInitialFocus:R})}return e}),[_,n,r,g,y,v,b,O,s,E,R]),D=(0,m.tZ)(f.Fragment,null,(0,m.tZ)("span",{id:"aria-selection"},I),(0,m.tZ)("span",{id:"aria-focused"},A),(0,m.tZ)("span",{id:"aria-results"},P),(0,m.tZ)("span",{id:"aria-guidance"},N));return(0,m.tZ)(f.Fragment,null,(0,m.tZ)(w,{id:c},R&&D),(0,m.tZ)(w,{"aria-live":T,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!R&&D))},S=[{base:"A",letters:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{base:"AA",letters:"\ua732"},{base:"AE",letters:"\xc6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},{base:"E",letters:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"}
vendor: 4,259 bytes, line 2
2,{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{base:"aa",letters:"\ua733"},{base:"ae",letters:"\xe6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",letters:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],E=new RegExp("["+S.map((function(e){return e.letters})).join("")+"]","g"),C={},_=0;_<S.length;_++)for(var T=S[_],O=0;O<T.letters.length;O++)C[T.letters[O]]=T.base;var I=function(e){return e.replace(E,(function(e){return C[e]}))},A=function(e,t){void 0===t&&(t=y);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(I),P=function(e){return e.replace(/^\s+|\s+$/g,"")},R=function(e){return"".concat(e.label," ").concat(e.value)},N=["innerRef"];
vendor: 3,753 bytes, line 2
2function D(e){var t=e.innerRef,n=(0,v.Z)(e,N),o=(0,p.r)(n,"onExited","in","enter","exit","appear");return(0,m.tZ)("input",(0,r.Z)({ref:t},o,{css:(0,m.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var M=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var L=["boxSizing","height","overflow","paddingRight","position"],Z={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function j(e){e.preventDefault()}function F(e){e.stopPropagation()}function z(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function U(){return"ontouchstart"in window||navigator.maxTouchPoints}var B=!("undefined"===typeof window||!window.document||!window.document.createElement),V=0,H={capture:!1,passive:!1};var W=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},q={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function G(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,f.useRef)(!1),s=(0,f.useRef)(!1),l=(0,f.useRef)(0),c=(0,f.useRef)(null),u=(0,f.useCallback)((function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,d=l.scrollHeight,h=l.clientHeight,f=c.current,p=t>0,m=d-h-u,g=!1;m>t&&a.current&&(r&&r(e),a.current=!1),p&&s.current&&(i&&i(e),s.current=!1),p&&t>m?(n&&!a.current&&n(e),f.scrollTop=d,g=!0,a.current=!0):!p&&-t>u&&(o&&!s.current&&o(e),f.scrollTop=0,g=!0,s.current=!0),g&&M(e)}}),[n,r,o,i]),d=(0,f.useCallback)((function(e){u(e,e.deltaY)}),[u]),h=(0,f.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),m=(0,f.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;u(e,t)}),[u]),g=(0,f.useCallback)((function(e){if(e){var t=!!p.s&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",m,t)}}),[m,h,d]),y=(0,f.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",m,!1))}),[m,h,d]);return(0,f.useEffect)((function(){if(t){var e=c.current;return g(e),function(){y(e)}}}),[t,g,y]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,f.useRef)({}),i=(0,f.useRef)(null),a=(0,f.useCallback)((function(e){if(B){var t=document.body,n=t&&t.style;if(r&&L.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&V<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(Z).forEach((function(e){var t=Z[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&U()&&(t.addEventListener("touchmove",j,H),e&&(e.addEventListener("touchstart",z,H),e.addEventListener("touchmove",F,H))),V+=1}}),[r]),s=(0,f.useCallback)((function(e){if(B){var t=document.body,n=t&&t.style;V=Math.max(V-1,0),r&&V<1&&L.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&U()&&(t.removeEventListener("touchmove",j,H),e&&(e.removeEventListener("touchstart",z,H),e.removeEventListener("touchmove",F,H)))}}),[r]);return(0,f.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return(0,m.tZ)(f.Fragment,null,n&&(0,m.tZ)("div",{onClick:W,css:q}),t((function(e){o(e),i(e)})))}
vendor: 26,269 bytes, line 2
2var K={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Q=function(e){var t=e.name,n=e.onFocus;return(0,m.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:K,value:"",onChange:function(){}})};function Y(e){var t;return"undefined"!==typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function $(){return Y(/^Mac/i)}function X(){return Y(/^iPhone/i)||Y(/^iPad/i)||$()&&navigator.maxTouchPoints>1}var J=function(e){return e.label},ee=function(e){return e.value},te={clearIndicator:p.a,container:p.b,control:p.d,dropdownIndicator:p.e,group:p.g,groupHeading:p.f,indicatorsContainer:p.i,indicatorSeparator:p.h,input:p.j,loadingIndicator:p.l,loadingMessage:p.k,menu:p.m,menuList:p.n,menuPortal:p.o,multiValue:p.p,multiValueLabel:p.q,multiValueRemove:p.t,noOptionsMessage:p.u,option:p.v,placeholder:p.w,singleValue:p.x,valueContainer:p.y};var ne,re={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},oe={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,p.z)(),captureMenuScroll:!(0,p.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,o.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:R,trim:!0,matchFrom:"any"},ne),r=n.ignoreCase,i=n.ignoreAccents,a=n.stringify,s=n.trim,l=n.matchFrom,c=s?P(t):t,u=s?P(a(e)):a(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),i&&(c=A(c),u=I(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:J,getOptionValue:ee,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,p.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ie(e,t,n,r){return{type:"option",data:t,isDisabled:fe(e,t,n),isSelected:pe(e,t,n),label:de(e,t),value:he(e,t),index:r}}function ae(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return ie(e,n,t,r)})).filter((function(t){return ce(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=ie(e,n,t,r);return ce(e,i)?i:void 0})).filter(p.K)}function se(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,(0,h.Z)(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function le(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,(0,h.Z)(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function ce(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!ge(e)||!i)&&me(e,{label:a,value:s,data:o},r)}var ue=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},de=function(e,t){return e.getOptionLabel(t)},he=function(e,t){return e.getOptionValue(t)};function fe(e,t,n){return"function"===typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function pe(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"===typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=he(e,t);return n.some((function(t){return he(e,t)===r}))}function me(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ge=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ye=1,ve=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,s.Z)(e,t)}(c,e);var t,n,i,l=d(c);function c(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=l.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=$()||X(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=t.state.selectValue,s=o&&t.isOptionSelected(e,a),l=t.isOptionDisabled(e,a);if(s){var c=t.getOptionValue(e);t.setValue((0,p.B)(a.filter((function(e){return t.getOptionValue(e)!==c}))),"deselect-option",e)}else{if(l)return void t.ariaOnChange((0,p.C)(e),{action:"select-option",option:e,name:i});o?t.setValue((0,p.B)([].concat((0,h.Z)(a),[e])),"select-option",e):t.setValue((0,p.C)(e),"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=(0,p.D)(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange((0,p.D)(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),i=(0,p.D)(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return ue(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return le(ae(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return p.E.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return de(t.props,e)},t.getOptionValue=function(e){return he(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=te[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return(0,p.F)(t.props)},t.buildCategorizedOptions=function(){return ae(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return se(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,o.Z)({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!t.props.isDisabled){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"===typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,p.G)(e.target)&&t.props.onMenuClose():"function"===typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return ge(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,l=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,h=n.openMenuOnFocus,f=t.state,p=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!l&&("function"!==typeof u||(u(e),!e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!d||!p||h&&t.isOptionSelected(p,g))return;t.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(c){if(!p)return;if(t.isComposing)return;t.selectOption(p);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!c){t.openMenu("first");break}if(!p)return;t.selectOption(p);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++ye),t.state.selectValue=(0,p.H)(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),i=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[i],t.state.focusedOptionId=ue(n,r[i])}return t}return t=c,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,p.I)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,p.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(re):(0,o.Z)((0,o.Z)({},re),this.props.theme):re}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return fe(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return pe(this.props,e,t)}},{key:"filterOption",value:function(e,t){return me(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"===typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,i=e.inputId,a=e.inputValue,s=e.tabIndex,l=e.form,c=e.menuIsOpen,u=e.required,d=this.getComponents().Input,h=this.state,m=h.inputIsHidden,g=h.ariaSelection,y=this.commonProps,v=i||this.getElementId("input"),b=(0,o.Z)((0,o.Z)((0,o.Z)({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null===g||void 0===g?void 0:g.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?f.createElement(d,(0,r.Z)({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:t,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:l,type:"text",value:a},b)):f.createElement(D,(0,r.Z)({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:p.J,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:l,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,h=u.isDisabled,p=u.isMulti,m=u.inputValue,g=u.placeholder,y=this.state,v=y.selectValue,b=y.focusedValue,w=y.isFocused;if(!this.hasValue()||!d)return m?null:f.createElement(l,(0,r.Z)({},c,{key:"placeholder",isDisabled:h,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),g);if(p)return v.map((function(t,s){var l=t===b,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return f.createElement(n,(0,r.Z)({},c,{components:{Container:o,Label:i,Remove:a},isFocused:l,isDisabled:h,key:u,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var x=v[0];return f.createElement(s,(0,r.Z)({},c,{data:x,isDisabled:h}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return f.createElement(e,(0,r.Z)({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;return e&&i?f.createElement(e,(0,r.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return f.createElement(n,(0,r.Z)({},o,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return f.createElement(e,(0,r.Z)({},t,{innerProps:i,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,h=this.state.focusedOption,m=this.props,g=m.captureMenuScroll,y=m.inputValue,v=m.isLoading,b=m.loadingMessage,w=m.minMenuHeight,x=m.maxMenuHeight,k=m.menuIsOpen,S=m.menuPlacement,E=m.menuPosition,C=m.menuPortalTarget,_=m.menuShouldBlockScroll,T=m.menuShouldScrollIntoView,O=m.noOptionsMessage,I=m.onMenuScrollToTop,A=m.onMenuScrollToBottom;if(!k)return null;var P,R=function(t,n){var o=t.type,i=t.data,a=t.isDisabled,s=t.isSelected,l=t.label,c=t.value,p=h===i,m=a?void 0:function(){return e.onOptionHover(i)},g=a?void 0:function(){return e.selectOption(i)},y="".concat(e.getElementId("option"),"-").concat(n),v={id:y,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:s};return f.createElement(u,(0,r.Z)({},d,{innerProps:v,data:i,isDisabled:a,isSelected:s,key:y,label:l,type:o,value:c,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return f.createElement(n,(0,r.Z)({},d,{key:l,data:i,options:a,Heading:o,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return R(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return R(t,"".concat(t.index))}));else if(v){var N=b({inputValue:y});if(null===N)return null;P=f.createElement(l,d,N)}else{var D=O({inputValue:y});if(null===D)return null;P=f.createElement(c,d,D)}var M={minMenuHeight:w,maxMenuHeight:x,menuPlacement:S,menuPosition:E,menuShouldScrollIntoView:T},L=f.createElement(p.M,(0,r.Z)({},d,M),(function(t){var n=t.ref,o=t.placerProps,s=o.placement,l=o.maxHeight;return f.createElement(i,(0,r.Z)({},d,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:s}),f.createElement(G,{captureEnabled:g,onTopArrive:I,onBottomArrive:A,lockEnabled:_},(function(t){return f.createElement(a,(0,r.Z)({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:v,maxHeight:l,focusedOption:h}),P)})))}));return C||"fixed"===E?f.createElement(s,(0,r.Z)({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:S,menuPosition:E}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return f.createElement(Q,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var l=s.map((function(t){return e.getOptionValue(t)})).join(n);return f.createElement("input",{name:i,type:"hidden",value:l})}var c=s.length>0?s.map((function(t,n){return f.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):f.createElement("input",{name:i,type:"hidden",value:""});return f.createElement("div",null,c)}var u=s[0]?this.getOptionValue(s[0]):"";return f.createElement("input",{name:i,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,i=t.focusedValue,a=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return f.createElement(k,(0,r.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.
vendor: 4,684 bytes, line 2
2SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,l=a.id,c=a.isDisabled,u=a.menuIsOpen,d=this.state.isFocused,h=this.commonProps=this.getCommonProps();return f.createElement(o,(0,r.Z)({},h,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),f.createElement(t,(0,r.Z)({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),f.createElement(i,(0,r.Z)({},h,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),f.createElement(n,(0,r.Z)({},h,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,s=t.isFocused,l=t.prevWasFocused,c=t.instancePrefix,u=e.options,d=e.value,h=e.menuIsOpen,f=e.inputValue,m=e.isMulti,g=(0,p.H)(d),y={};if(n&&(d!==n.value||u!==n.options||h!==n.menuIsOpen||f!==n.inputValue)){var v=h?function(e,t){return se(ae(e,t))}(e,g):[],b=h?le(ae(e,g),"".concat(c,"-option")):[],w=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,g):null,x=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);y={selectValue:g,focusedOption:x,focusedOptionId:ue(b,x),focusableOptionsWithIds:b,focusedValue:w,clearFocusValueOnUpdate:!1}}var k=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},S=a,E=s&&l;return s&&!E&&(S={value:(0,p.D)(m,g,g[0]||null),options:g,action:"initial-input-focus"},E=!l),"initial-input-focus"===(null===a||void 0===a?void 0:a.action)&&(S=null),(0,o.Z)((0,o.Z)((0,o.Z)({},y),k),{},{prevProps:e,ariaSelection:S,prevWasFocused:E})}}],n&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),c}(f.Component);ve.defaultProps=oe},94572:(e,t,n)=>{"use strict";n.d(t,{A:()=>ee,B:()=>le,C:()=>se,D:()=>ae,E:()=>H,F:()=>at,G:()=>K,H:()=>W,I:()=>X,J:()=>B,K:()=>ie,M:()=>ye,a:()=>Me,b:()=>Ee,c:()=>it,d:()=>ze,e:()=>De,f:()=>He,g:()=>Ve,h:()=>Le,i:()=>_e,j:()=>Ge,k:()=>ke,l:()=>je,m:()=>me,n:()=>be,o:()=>Se,p:()=>$e,q:()=>Xe,r:()=>ce,s:()=>oe,t:()=>Je,u:()=>xe,v:()=>nt,w:()=>rt,x:()=>ot,y:()=>Ce,z:()=>J});var r=n(1413),o=n(87462),i=n(52554),a=n(70885),s=n(45987),l=n(71002),c=n(30168),u=n(4942),d=n(72791),h=n(54164);const f=Math.min,p=Math.max,m=Math.round,g=Math.floor,y=e=>({x:e,y:e});function v(e){return(0,r.Z)((0,r.Z)({},e),{},{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function b(e){return k(e)?(e.nodeName||"").toLowerCase():"#document"}function w(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function x(e){var t;return null==(t=(k(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function k(e){return e instanceof Node||e instanceof w(e).Node}function S(e){return e instanceof Element||e instanceof w(e).Element}function E(e){return e instanceof HTMLElement||e instanceof w(e).HTMLElement}function C(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof w(e).ShadowRoot)}function _(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=I(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function T(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function O(e){return["html","body","#document"].includes(b(e))}function I(e){return w(e).getComputedStyle(e)}function A(e){if("html"===b(e))return e;const t=e.assignedSlot||e.parentNode||C(e)&&e.host||x(e);return C(t)?t.host:t}function P(e){const t=A(e);return O(t)?e.ownerDocument?e.ownerDocument.body:e.body:E(t)&&_(t)?t:P(t)}function R(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=P(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=w(o);return i?t.concat(a,a.visualViewport||[],_(o)?o:[],a.frameElement&&n?R(a.frameElement):[]):t.concat(o,R(o,[],n))}function N(e){const t=I(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=E(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=m(n)!==i||m(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function D(e){return S(e)?e:e.contextElement}function M(e){const t=D(e);if(!E(t))return y(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=N(t);let a=(i?m(n.width):n.width)/r,s=(i?m(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const L=y(0);function Z(e){const t=w(e);
2return T()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:L}function j(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=D(e);let a=y(1);t&&(r?S(r)&&(a=M(r)):a=M(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==w(e))&&t}(i,n,r)?Z(i):y(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=w(i),t=r&&S(r)?w(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=M(n),t=n.getBoundingClientRect(),r=I(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=w(n).frameElement}}return v({width:u,height:d,x:l,y:c})}function F(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s="function"===typeof ResizeObserver,layoutShift:l="function"===typeof IntersectionObserver,animationFrame:c=!1}=o,u=D(e),d=i||a?[...u?R(u):[],...R(t)]:[];d.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const h=u&&l?function(e,t){let n,o=null;const i=x(e);function a(){clearTimeout(n),o&&o.disconnect(),o=null}return function s(l,c){void 0===l&&(l=!1),void 0===c&&(c=1),a();const{left:u,top:d,width:h,height:m}=e.getBoundingClientRect();if(l||t(),!h||!m)return;const y={rootMargin:-g(d)+"px "+-g(i.clientWidth-(u+h))+"px "+-g(i.clientHeight-(d+m))+"px "+-g(u)+"px",threshold:p(0,f(1,c))||1};let v=!0;function b(e){const t=e[0].intersectionRatio;if(t!==c){if(!v)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),100)}v=!1}try{o=new IntersectionObserver(b,(0,r.Z)((0,r.Z)({},y),{},{root:i.ownerDocument}))}catch(w){o=new IntersectionObserver(b,y)}o.observe(e)}(!0),a}(u,n):null;let m,y=-1,v=null;s&&(v=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{v&&v.observe(t)}))),n()})),u&&!c&&v.observe(u),v.observe(t));let b=c?j(e):null;return c&&function t(){const r=j(e);!b||r.x===b.x&&r.y===b.y&&r.width===b.width&&r.height===b.height||n();b=r,m=requestAnimationFrame(t)}(),n(),()=>{d.forEach((e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),h&&h(),v&&v.disconnect(),v=null,c&&cancelAnimationFrame(m)}}var z=n(51672),U=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],B=function(){};function V(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function H(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(V(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var W=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,l.Z)(e)&&null!==e?[e]:[];var t},q=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=(0,s.Z)(e,U);return(0,r.Z)({},t)},G=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!==n&&void 0!==n?n:{},i(t,e),a)}};function K(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Q(e){return K(e)?window.pageYOffset:e.scrollTop}function Y(e,t){K(e)?window.scrollTo(0,t):e.scrollTop=t}function $(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:B,o=Q(e),i=t-o,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);Y(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function X(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Y(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Y(e,Math.max(t.offsetTop-o,0))}function J(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function ee(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}
vendor: 12,592 bytes, line 2
2var te=!1,ne={get passive(){return te=!0}},re="undefined"!==typeof window?window:{};re.addEventListener&&re.removeEventListener&&(re.addEventListener("p",B,ne),re.removeEventListener("p",B,!1));var oe=te;function ie(e){return null!=e}function ae(e,t,n){return e?t:n}function se(e){return e}function le(e){return e}var ce=function(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 Object.entries(e).filter((function(e){var t=(0,a.Z)(e,1)[0];return!n.includes(t)})).reduce((function(e,t){var n=(0,a.Z)(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})},ue=["children","innerProps"],de=["children","innerProps"];function he(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,h=n.getBoundingClientRect(),f=h.bottom,p=h.height,m=h.top,g=n.offsetParent.getBoundingClientRect().top,y=a?window.innerHeight:K(u=l)?window.innerHeight:u.clientHeight,v=Q(l),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),x=g-w,k=y-m,S=x+v,E=d-v-m,C=f-y+v+b,_=v+m-w,T=160;switch(o){case"auto":case"bottom":if(k>=p)return{placement:"bottom",maxHeight:t};if(E>=p&&!a)return i&&$(l,C,T),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&k>=r)return i&&$(l,C,T),{placement:"bottom",maxHeight:a?k-b:E-b};if("auto"===o||a){var O=t,I=a?x:S;return I>=r&&(O=Math.min(I-b-s,t)),{placement:"top",maxHeight:O}}if("bottom"===o)return i&&Y(l,C),{placement:"bottom",maxHeight:t};break;case"top":if(x>=p)return{placement:"top",maxHeight:t};if(S>=p&&!a)return i&&$(l,_,T),{placement:"top",maxHeight:t};if(!a&&S>=r||a&&x>=r){var A=t;return(!a&&S>=r||a&&x>=r)&&(A=a?x-w:S-w),i&&$(l,_,T),{placement:"top",maxHeight:A}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var fe,pe=function(e){return"auto"===e?"bottom":e},me=function(e,t){var n,o=e.placement,i=e.theme,a=i.borderRadius,s=i.spacing,l=i.colors;return(0,r.Z)((n={label:"menu"},(0,u.Z)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),(0,u.Z)(n,"position","absolute"),(0,u.Z)(n,"width","100%"),(0,u.Z)(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},ge=(0,d.createContext)(null),ye=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,s=e.menuPosition,l=e.menuShouldScrollIntoView,c=e.theme,u=((0,d.useContext)(ge)||{}).setPortalPlacement,h=(0,d.useRef)(null),f=(0,d.useState)(o),p=(0,a.Z)(f,2),m=p[0],g=p[1],y=(0,d.useState)(null),v=(0,a.Z)(y,2),b=v[0],w=v[1],x=c.spacing.controlHeight;return(0,z.Z)((function(){var e=h.current;if(e){var t="fixed"===s,r=he({maxHeight:o,menuEl:e,minHeight:n,placement:i,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:x});g(r.maxHeight),w(r.placement),null===u||void 0===u||u(r.placement)}}),[o,i,s,l,n,u,x]),t({ref:h,placerProps:(0,r.Z)((0,r.Z)({},e),{},{placement:b||pe(i),maxHeight:m})})},ve=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({},G(e,"menu",{menu:!0}),{ref:n},r),t)},be=function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return(0,r.Z)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},we=function(e,t){var n=e.theme,o=n.spacing.baseUnit,i=n.colors;return(0,r.Z)({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},xe=we,ke=we,Se=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},Ee=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},Ce=function(e,t){var n=e.theme.spacing,o=e.isMulti,i=e.hasValue,a=e.selectProps.controlShouldRenderValue;return(0,r.Z)({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})},_e=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Te=["size"],Oe=["innerProps","isRtl","size"];var Ie={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Ae=function(e){var t=e.size,n=(0,s.Z)(e,Te);return(0,i.tZ)("svg",(0,o.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ie},n))},Pe=function(e){return(0,i.tZ)(Ae,(0,o.Z)({size:20},e),(0,i.tZ)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Re=function(e){return(0,i.tZ)(Ae,(0,o.Z)({size:20},e),(0,i.tZ)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Ne=function(e,t){var n=e.isFocused,o=e.theme,i=o.spacing.baseUnit,a=o.colors;return(0,r.Z)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i,":hover":{color:n?a.neutral80:a.neutral40}})},De=Ne,Me=Ne,Le=function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing.baseUnit,a=o.colors;return(0,r.Z)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*i,marginTop:2*i})},Ze=(0,i.F4)(fe||(fe=(0,c.Z)(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),je=function(e,t){var n=e.isFocused,o=e.size,i=e.theme,a=i.colors,s=i.spacing.baseUnit;return(0,r.Z)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*s})},Fe=function(e){var t=e.delay,n=e.offset;return(0,i.tZ)("span",{css:(0,i.iv)({animation:"".concat(Ze," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ze=function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.theme,a=i.colors,s=i.borderRadius,l=i.spacing;return(0,r.Z)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},Ue=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,a=e.innerRef,s=e.innerProps,l=e.menuIsOpen;return(0,i.tZ)("div",(0,o.Z)({ref:a},G(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":l}),s,{"aria-disabled":n||void 0}),t)},Be=["data"],Ve=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},He=function(e,t){var n=e.theme,o=n.colors,i=n.spacing;return(0,r.Z)({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},We=function(e){var t=e.children,n=e.cx,r=e.getStyles,a=e.getClassNames,s=e.Heading,l=e.headingProps,c=e.innerProps,u=e.label,d=e.theme,h=e.selectProps;return(0,i.tZ)("div",(0,o.Z)({},G(e,"group",{group:!0}),c),(0,i.tZ)(s,(0,o.Z)({},l,{selectProps:h,theme:d,getStyles:r,getClassNames:a,cx:n}),u),(0,i.tZ)("div",null,t))},qe=["innerRef","isDisabled","isHidden","inputClassName"],Ge=function(e,t){var n=e.isDisabled,o=e.value,i=e.theme,a=i.spacing,s=i.colors;return(0,r.Z)((0,r.Z)({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},Qe),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},Ke={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Qe={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,r.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ke)},Ye=function(e){return(0,r.Z)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ke)},$e=function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,a=n.colors;return(0,r.Z)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},Xe=function(e,t){var n=e.theme,o=n.borderRadius,i=n.colors,a=e.cropWithEllipsis;return(0,r.Z)({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Je=function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,a=n.colors,s=e.isFocused;return(0,r.Z)({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},et=function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",n,t)};var tt=function(e){var t=e.children,n=e.components,o=e.data,a=e.innerProps,s=e.isDisabled,l=e.removeProps,c=e.selectProps,u=n.Container,d=n.Label,h=n.Remove;return(0,i.tZ)(u,{data:o,innerProps:(0,r.Z)((0,r.Z)({},G(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),a),selectProps:c},(0,i.tZ)(d,{data:o,innerProps:(0,r.Z)({},G(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},t),(0,i.tZ)(h,{data:o,innerProps:(0,r.Z)((0,r.Z)({},G(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},l),selectProps:c}))},nt=function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.isSelected,a=e.theme,s=a.spacing,l=a.colors;return(0,r.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?l.primary:o?l.primary25:"transparent",color:n?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?l.primary:l.primary50}})},rt=function(e,t){var n=e.theme,o=n.spacing,i=n.colors;return(0,r.Z)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},ot=function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing,a=o.colors;return(0,r.Z)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},it={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({},G(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,i.tZ)(Pe,null))},Control:Ue,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({},G(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,i.tZ)(Re,null))},DownChevron:Re,CrossIcon:Pe,Group:We,GroupHeading:function(e){var t=q(e);t.data;var n=(0,s.Z)(t,Be);return(0,i.tZ)("div",(0,o.Z)({},G(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({},G(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,i.tZ)("span",(0,o.Z)({},t,G(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=q(e),a=r.innerRef,l=r.isDisabled,c=r.isHidden,u=r.
vendor: 3,029 bytes, line 2
2inputClassName,d=(0,s.Z)(r,qe);return(0,i.tZ)("div",(0,o.Z)({},G(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,i.tZ)("input",(0,o.Z)({className:t({input:!0},u),ref:a,style:Ye(c),disabled:l},d)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,a=e.size,l=void 0===a?4:a,c=(0,s.Z)(e,Oe);return(0,i.tZ)("div",(0,o.Z)({},G((0,r.Z)((0,r.Z)({},c),{},{innerProps:t,isRtl:n,size:l}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,i.tZ)(Fe,{delay:0,offset:n}),(0,i.tZ)(Fe,{delay:160,offset:!0}),(0,i.tZ)(Fe,{delay:320,offset:!n}))},Menu:ve,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,a=e.isMulti;return(0,i.tZ)("div",(0,o.Z)({},G(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,s=e.controlElement,l=e.innerProps,c=e.menuPlacement,u=e.menuPosition,f=(0,d.useRef)(null),p=(0,d.useRef)(null),m=(0,d.useState)(pe(c)),g=(0,a.Z)(m,2),y=g[0],v=g[1],b=(0,d.useMemo)((function(){return{setPortalPlacement:v}}),[]),w=(0,d.useState)(null),x=(0,a.Z)(w,2),k=x[0],S=x[1],E=(0,d.useCallback)((function(){if(s){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(s),t="fixed"===u?0:window.pageYOffset,n=e[y]+t;n===(null===k||void 0===k?void 0:k.offset)&&e.left===(null===k||void 0===k?void 0:k.rect.left)&&e.width===(null===k||void 0===k?void 0:k.rect.width)||S({offset:n,rect:e})}}),[s,u,y,null===k||void 0===k?void 0:k.offset,null===k||void 0===k?void 0:k.rect.left,null===k||void 0===k?void 0:k.rect.width]);(0,z.Z)((function(){E()}),[E]);var C=(0,d.useCallback)((function(){"function"===typeof p.current&&(p.current(),p.current=null),s&&f.current&&(p.current=F(s,f.current,E,{elementResize:"ResizeObserver"in window}))}),[s,E]);(0,z.Z)((function(){C()}),[C]);var _=(0,d.useCallback)((function(e){f.current=e,C()}),[C]);if(!t&&"fixed"!==u||!k)return null;var T=(0,i.tZ)("div",(0,o.Z)({ref:_},G((0,r.Z)((0,r.Z)({},e),{},{offset:k.offset,position:u,rect:k.rect}),"menuPortal",{"menu-portal":!0}),l),n);return(0,i.tZ)(ge.Provider,{value:b},t?(0,h.createPortal)(T,t):T)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,a=e.innerProps,l=(0,s.Z)(e,de);return(0,i.tZ)("div",(0,o.Z)({},G((0,r.Z)((0,r.Z)({},l),{},{children:n,innerProps:a}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),a),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,a=e.innerProps,l=(0,s.Z)(e,ue);return(0,i.tZ)("div",(0,o.Z)({},G((0,r.Z)((0,r.Z)({},l),{},{children:n,innerProps:a}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),a),n)},MultiValue:tt,MultiValueContainer:et,MultiValueLabel:et,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({role:"button"},n),t||(0,i.tZ)(Pe,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,a=e.isSelected,s=e.innerRef,l=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({}
2,G(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":a}),{ref:s,"aria-disabled":n},l),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({},G(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,a=e.isRtl;return(0,i.tZ)("div",(0,o.Z)({},G(e,"container",{"--is-disabled":r,"--is-rtl":a}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return(0,i.tZ)("div",(0,o.Z)({},G(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,a=e.hasValue;return(0,i.tZ)("div",(0,o.Z)({},G(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":a}),n),t)}},at=function(e){return(0,r.Z)((0,r.Z)({},it),e.components)}},18622:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>s});var r=n(8003),o=n(87462),i=n(72791),a=n(14647),s=(n(83361),n(54164),n(51672),(0,i.forwardRef)((function(e,t){var n=(0,r.u)(e);return i.createElement(a.S,(0,o.Z)({ref:t},n))})))},8003:(e,t,n)=>{"use strict";n.d(t,{u:()=>l});var r=n(1413),o=n(70885),i=n(45987),a=n(72791),s=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function l(e){var t=e.defaultInputValue,n=void 0===t?"":t,l=e.defaultMenuIsOpen,c=void 0!==l&&l,u=e.defaultValue,d=void 0===u?null:u,h=e.inputValue,f=e.menuIsOpen,p=e.onChange,m=e.onInputChange,g=e.onMenuClose,y=e.onMenuOpen,v=e.value,b=(0,i.Z)(e,s),w=(0,a.useState)(void 0!==h?h:n),x=(0,o.Z)(w,2),k=x[0],S=x[1],E=(0,a.useState)(void 0!==f?f:c),C=(0,o.Z)(E,2),_=C[0],T=C[1],O=(0,a.useState)(void 0!==v?v:d),I=(0,o.Z)(O,2),A=I[0],P=I[1],R=(0,a.useCallback)((function(e,t){"function"===typeof p&&p(e,t),P(e)}),[p]),N=(0,a.useCallback)((function(e,t){var n;"function"===typeof m&&(n=m(e,t)),S(void 0!==n?n:e)}),[m]),D=(0,a.useCallback)((function(){"function"===typeof y&&y(),T(!0)}),[y]),M=(0,a.useCallback)((function(){"function"===typeof g&&g(),T(!1)}),[g]),L=void 0!==h?h:k,Z=void 0!==f?f:_,j=void 0!==v?v:A;return(0,r.Z)((0,r.Z)({},b),{},{inputValue:L,menuIsOpen:Z,onChange:R,onInputChange:N,onMenuClose:M,onMenuOpen:D,value:j})}},53834:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},39475:(e,t,n)=>{"use strict";var r,o=n(72791),i=(r=o)&&"object"===typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!==typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!==typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if("undefined"!==typeof n&&"function"!==typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!==typeof r)throw new Error("Expected WrappedComponent to be a React component.");var l,c=[];function u(){l=e(c.map((function(e){return e.props}))),d.canUseDOM?t(l):n&&(l=n(l))}var d=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.peek=function(){return l},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=l;return l=void 0,c=[],e};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){c.push(this),u()},a.componentDidUpdate=function(){u()},a.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),u()},a.render=function(){return i.createElement(r,this.props)},o}
2(o.PureComponent);return a(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(d,"canUseDOM",s),d}}},26752:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>g});var r=n(63366),o=n(94578),i=n(72791),a=n(54164);const s=!1;var l=n(95545),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 o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=u,r.appearStatus=d):o=h:o=t.unmountOnExit||t.mountOnEnter?c:u,r.state={status:o},r.nextCallback=null,r}(0,o.Z)(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,o=this.props.nodeRef?[r]:[a.findDOMNode(this),r],i=o[0],l=o[1],c=this.getTimeouts(),u=r?c.appear:c.enter;!e&&!n||s?this.safeSetState({status:h},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,l),this.safeSetState({status:d},(function(){t.props.onEntering(i,l),t.onTransitionEnd(u,(function(){t.safeSetState({status:h},(function(){t.props.onEntered(i,l)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!s?(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 o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}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,o=(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.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(l.Z.Provider,{value:null},"function"===typeof n?n(e,o):i.cloneElement(i.Children.only(n),o))},t}(i.Component);function m(){}p.contextType=l.Z,p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!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},95545:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(72791).createContext(null)}
2,66374:(e,t,n)=>{"use strict";n(31725);var r=n(72791),o=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},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)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},59117:(e,t,n)=>{"use strict";var r=n(31725),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;o=d("react.element"),i=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),a=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),u=d("react.lazy")}var h="function"===typeof Symbol&&Symbol.iterator;function f(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 p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(f(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var b=v.prototype=new y;b.constructor=v,r(b,g.prototype),b.isPureReactComponent=!0;var w={current:null},x=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,r)&&!k.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:w.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var C=/\/+/g;function _(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 T(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case i:l=!0}}if(l)return a=a(l=e),e=""===r?"."+_(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(C,"$&/")+"/"),T(a,t,n,"",(function(e){return e}))):null!=a&&(E(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+_(s=e[c],c);l+=T(s,t,n,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=T(s=s.value,t,n,u=r+_(s,c++),a);else if("object"===s)throw t=""+e,Error(f(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function O(e,t,n){if(null==e)return e;var r=[],o=0;return T(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function I(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var A={current:null};function P(){var e=A.current;if(null===e)throw Error(f(321));return e}var R={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error(f(143));return e}}
vendor: 4,563 bytes, line 2
2,t.Component=g,t.PureComponent=v,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(f(267,e));var i=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)x.call(t,u)&&!k.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];i.children=c}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return P().useCallback(e,t)},t.useContext=function(e,t){return P().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return P().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return P().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return P().useLayoutEffect(e,t)},t.useMemo=function(e,t){return P().useMemo(e,t)},t.useReducer=function(e,t,n){return P().useReducer(e,t,n)},t.useRef=function(e){return P().useRef(e)},t.useState=function(e){return P().useState(e)},t.version="17.0.2"},72791:(e,t,n)=>{"use strict";e.exports=n(59117)},80184:(e,t,n)=>{"use strict";e.exports=n(66374)},36813:(e,t)=>{"use strict";var n,r,o,i;if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,u=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(n){throw setTimeout(d,0),n}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(d,0))},r=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,f=window.clearTimeout;if("undefined"!==typeof console){var p=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof p&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,g=null,y=-1,v=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},i=function(){},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"):v=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,x=w.port2;w.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();b=e+v;try{g(!0,e)?x.postMessage(null):(m=!1,g=null)}catch(n){throw x.postMessage(null),n}}else m=!1},n=function(e){g=e,m||(m=!0,x.postMessage(null))},r=function(e,n){y=h((function(){e(t.unstable_now())}),n)},o=function(){f(y),y=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<C(o,t)))break e;e[r]=t,e[n]=o,n=r}}function S(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,l=e[s];if(void 0!==a&&0>C(a,n))void 0!==l&&0>C(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==l&&0>C(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var _=[],T=[],O=1,I=null,A=3,P=!1,R=!1,N=!1;function D(e){for(var t=S(T);null!==t;){if(null===t.callback)E(T);else{if(!(t.startTime<=e))break;E(T),t.sortIndex=t.expirationTime,k(_,t)}t=S(T)}}function M(e){if(N=!1,D(e),!R)if(null!==S(_))R=!0,n(L);else{var t=S(T);null!==t&&r(M,t.startTime-e)}}function L(e,n){R=!1,N&&(N=!1,o()),P=!0;var i=A;try{for(D(n),I=S(_);
2null!==I&&(!(I.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=I.callback;if("function"===typeof a){I.callback=null,A=I.priorityLevel;var s=a(I.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?I.callback=s:I===S(_)&&E(_),D(n)}else E(_);I=S(_)}if(null!==I)var l=!0;else{var c=S(T);null!==c&&r(M,c.startTime-n),l=!1}return l}finally{I=null,A=i,P=!1}}var Z=i;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(){R||P||(R=!0,n(L))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return S(_)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=Z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,i,a){var s=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:O++,callback:i,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,k(T,e),null===S(_)&&e===S(T)&&(N?o():N=!0,r(M,a-s))):(e.sortIndex=l,k(_,e),R||P||(R=!0,n(L))),e},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},45296:(e,t,n)=>{"use strict";e.exports=n(36813)},70845:e=>{"use strict";e.exports=(e,t)=>{if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},40499:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>"%".concat(e.charCodeAt(0).toString(16).toUpperCase())))},46426:(e,t,n)=>{var r=n(11065);function o(e,t){var n,o=null;if(!e||"string"!==typeof e)return o;for(var i,a,s=r(e),l="function"===typeof t,c=0,u=s.length;c<u;c++)i=(n=s[c]).property,a=n.value,l?t(i,a,n):a&&(o||(o={}),o[i]=a);return o}e.exports=o,e.exports.default=o},20090:e=>{"use strict";var t="Invariant failed";e.exports=function(e,n){if(!e)throw new Error(t)}},15501:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=function(e,t){}},65177:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=l(n(74940)),a=l(n(31725)),s=n(26679);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.changeListeners=[],this.cookies=function(e){return"string"===typeof e?i.default.parse(e):"object"===("undefined"===typeof e?"undefined":r(e))&&null!==e?e:{}}(t),this.hooks=n,this.HAS_DOCUMENT_COOKIE=(0,s.hasDocumentCookie)()}return o(e,[{key:"_updateBrowserValues",value:function(){this.HAS_DOCUMENT_COOKIE&&(this.cookies=i.default.parse(document.cookie))}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._updateBrowserValues(),u(this.cookies[e],t)}},{key:"getAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._updateBrowserValues();var t={};for(var n in this.cookies)t[n]=u(this.cookies[n],e);return t}},{key:"set",value:function(e,t,n){"object"===("undefined"===typeof t?"undefined":r(t))&&(t=JSON.stringify(t)),this.hooks&&this.hooks.onSet&&this.hooks.onSet(e,t,n),this.cookies[e]=t,this.HAS_DOCUMENT_COOKIE&&(document.cookie=i.default.serialize(e,t,n)),this._emitChange({name:e,value:t,options:n})}},{key:"remove",value:function(e,t){var n=t=(0,a.default)({},t,{expires:new Date(1970,1,1,0,0,1),maxAge:0}
2);this.hooks&&this.hooks.onRemove&&this.hooks.onRemove(e,n),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=i.default.serialize(e,"",n)),this._emitChange({name:e,value:void 0,options:t})}},{key:"_emitChange",value:function(e){for(var t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)}},{key:"addChangeListener",value:function(e){this.changeListeners.push(e)}},{key:"removeChangeListener",value:function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)}}]),e}();function u(e){if(function(e,t){return"undefined"===typeof t&&(t=!e||"{"!==e[0]&&"["!==e[0]&&'"'!==e[0]),!t}(e,(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).doNotParse))try{return JSON.parse(e)}catch(t){}return e}t.default=c,e.exports=t.default},1653:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(65177),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default,e.exports=t.default},26679:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function r(){return"object"===("undefined"===typeof document?"undefined":n(document))&&"string"===typeof document.cookie}t.hasDocumentCookie=r,t.cleanCookies=function(){document.cookie.split(";").forEach((function(e){document.cookie=e.replace(/^ +/,"").replace(/=.*/,"=;expires="+(new Date).toUTCString()+";path=/")}))};t.HAS_DOCUMENT_COOKIE=r()},74940:(e,t)=>{"use strict";t.parse=function(e,t){if("string"!==typeof e)throw new TypeError("argument str must be a string");for(var r={},i=t||{},s=e.split(o),l=i.decode||n,c=0;c<s.length;c++){var u=s[c],d=u.indexOf("=");if(!(d<0)){var h=u.substr(0,d).trim(),f=u.substr(++d,u.length).trim();'"'==f[0]&&(f=f.slice(1,-1)),void 0==r[h]&&(r[h]=a(f,l))}}return r},t.serialize=function(e,t,n){var o=n||{},a=o.encode||r;if("function"!==typeof a)throw new TypeError("option encode is invalid");if(!i.test(e))throw new TypeError("argument name is invalid");var s=a(t);if(s&&!i.test(s))throw new TypeError("argument val is invalid");var l=e+"="+s;if(null!=o.maxAge){var c=o.maxAge-0;if(isNaN(c))throw new Error("maxAge should be a Number");l+="; Max-Age="+Math.floor(c)}if(o.domain){if(!i.test(o.domain))throw new TypeError("option domain is invalid");l+="; Domain="+o.domain}if(o.path){if(!i.test(o.path))throw new TypeError("option path is invalid");l+="; Path="+o.path}if(o.expires){if("function"!==typeof o.expires.toUTCString)throw new TypeError("option expires is invali
2d");l+="; Expires="+o.expires.toUTCString()}o.httpOnly&&(l+="; HttpOnly");o.secure&&(l+="; Secure");if(o.sameSite){switch("string"===typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return l};var n=decodeURIComponent,r=encodeURIComponent,o=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(e,t){try{return t(e)}catch(n){return e}}},51672:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(72791).useLayoutEffect},97805:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/picker_logo.73fe61661460821fd1e1.png"},72871:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/bg_gradient_lights.e37e995bef134fa8cffa.png"},38416:(e,t,n)=>{var r=n(64062);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},64836:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},42122:(e,t,n)=>{var r=n(38416);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},70215:(e,t,n)=>{var r=n(7071);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},7071:e=>{e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},95036:(e,t,n)=>{var r=n(18698).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},64062:(e,t,n)=>{var r=n(18698).default,o=n(95036);e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},18698:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},30907:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},97326:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},4942:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(49142);function o(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},87462:(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)}n.d(t,{Z:()=>r})},94578:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(89611);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},1413:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4942);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},45987:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(63366);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},63366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})},89611:(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,{Z:()=>r})},70885:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(40181);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},30168:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:()=>r})},42982:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(30907);var o=n(40181);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},49142:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(71002);function o(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},71002:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},40181:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(30907);function o(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},67825:(e,t,n)=>{"use strict";n.d(t,{Jn:()=>j,qX:()=>D,Xd:()=>N,Mq:()=>z,C6:()=>U,ZF:()=>F,KN:()=>B});var r=n(23258),o=n(6781),i=n(85854),a=n(1413);const s=(e,t)=>t.some((t=>e instanceof t));let l,c;const u=new WeakMap,d=new WeakMap,h=new WeakMap,f=new WeakMap,p=new WeakMap;let m={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return d.get(e);if("objectStoreNames"===t)return e.objectStoreNames||h.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return v(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function g(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(c||(c=[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(b(this),n),v(u.get(this))}:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];
2return v(e.apply(b(this),n))}:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];const i=e.call(b(this),t,...r);return h.set(i,t.sort?t.sort():[t]),v(i)}}function y(e){return"function"===typeof e?g(e):(e instanceof IDBTransaction&&function(e){if(d.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",i),e.removeEventListener("abort",i)},o=()=>{t(),r()},i=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",o),e.addEventListener("error",i),e.addEventListener("abort",i)}));d.set(e,t)}(e),s(e,l||(l=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,m):e)}function v(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",o),e.removeEventListener("error",i)},o=()=>{t(v(e.result)),r()},i=()=>{n(e.error),r()};e.addEventListener("success",o),e.addEventListener("error",i)}));return t.then((t=>{t instanceof IDBCursor&&u.set(t,e)})).catch((()=>{})),p.set(t,e),t}(e);if(f.has(e))return f.get(e);const t=y(e);return t!==e&&(f.set(e,t),p.set(t,e)),t}const b=e=>p.get(e);const w=["get","getKey","getAll","getAllKeys","count"],x=["put","add","delete","clear"],k=new Map;function S(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(k.get(t))return k.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=x.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!o&&!w.includes(n))return;const i=async function(e){const t=this.transaction(e,o?"readwrite":"readonly");let i=t.store;for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];return r&&(i=i.index(s.shift())),(await Promise.all([i[n](...s),o&&t.done]))[0]};return k.set(t,i),i}m=(e=>(0,a.Z)((0,a.Z)({},e),{},{get:(t,n,r)=>S(t,n)||e.get(t,n,r),has:(t,n)=>!!S(t,n)||e.has(t,n)}))(m);class E{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"".concat(t.library,"/").concat(t.version)}return null})).filter((e=>e)).join(" ")}}const C="@firebase/app",_="0.9.23",T=new o.Yd("@firebase/app"),O="[DEFAULT]",I={[C]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},A=new Map,P=new Map;function R(e,t){try{e.container.addComponent(t)}catch(n){T.debug("Component ".concat(t.name," failed to register with FirebaseApp ").concat(e.name),n)}}function N(e){const t=e.name;if(P.has(t))return T.debug("There were multiple attempts to register component ".concat(t,".")),!1;P.set(t,e);for(const n of A.values())R(n,e);return!0}function D(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}const M={"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","no-options":"Need to provide options, when not being deployed to hosting via source.","invali
2d-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."},L=new i.LL("app","Firebase",M);class Z{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.wA("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 L.create("app-deleted",{appName:this._name})}}const j="10.6.0";function F(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if("object"!==typeof t){t={name:t}}const o=Object.assign({name:O,automaticDataCollectionEnabled:!1},t),a=o.name;if("string"!==typeof a||!a)throw L.create("bad-app-name",{appName:String(a)});if(n||(n=(0,i.aH)()),!n)throw L.create("no-options");const s=A.get(a);if(s){if((0,i.vZ)(n,s.options)&&(0,i.vZ)(o,s.config))return s;throw L.create("duplicate-app",{appName:a})}const l=new r.H0(a);for(const r of P.values())l.addComponent(r);const c=new Z(n,o,l);return A.set(a,c),c}function z(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O;const t=A.get(e);if(!t&&e===O&&(0,i.aH)())return F();if(!t)throw L.create("no-app",{appName:e});return t}function U(){return Array.from(A.values())}function B(e,t,n){var o;let i=null!==(o=I[e])&&void 0!==o?o:e;n&&(i+="-".concat(n));const a=i.match(/\s|\//),s=t.match(/\s|\//);if(a||s){const e=['Unable to register library "'.concat(i,'" with version "').concat(t,'":')];return a&&e.push('library name "'.concat(i,'" contains illegal characters (whitespace or "/")')),a&&s&&e.push("and"),s&&e.push('version name "'.concat(t,'" contains illegal characters (whitespace or "/")')),void T.warn(e.join(" "))}N(new r.wA("".concat(i,"-version"),(()=>({library:i,version:t})),"VERSION"))}const V="firebase-heartbeat-database",H=1,W="firebase-heartbeat-store";let q=null;function G(){return q||(q=function(e,t){let{blocked:n,upgrade:r,blocking:o,terminated:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=indexedDB.open(e,t),s=v(a);return r&&a.addEventListener("upgradeneeded",(e=>{r(v(a.result),e.oldVersion,e.newVersion,v(a.transaction),e)})),n&&a.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{i&&e.addEventListener("close",(()=>i())),o&&e.addEventListener("versionchange",(e=>o(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}(V,H,{upgrade:(e,t)=>{if(0===t)e.createObjectStore(W)}}).catch((e=>{throw L.create("idb-open",{originalErrorMessage:e.message})}))),q}async function K(e,t){try{const n=(await G()).transaction(W,"readwrite"),r=n.objectStore(W);await r.put(t,Q(e)),await n.done}catch(n){if(n instanceof i.ZR)T.warn(n.message);else{const e=L.create("idb-set",{originalErrorMessage:null===n||void 0===n?void 0:n.message});T.warn(e.message)}}}function Q(e){return"".concat(e.name,"!").concat(e.options.appId)}class Y{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new X(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){var e;const t=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),n=$();if(null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)&&(this._heartbeatsCache=await this._heartbeatsCachePromise),this._heartbeatsCache.lastSentHeartbeatDate!==n&&!this._heartbeatsCache.heartbeats.some((e=>e.date===n)))return this._heartbeatsCache.heartbeats.push({date:n,agent:t}),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=$(),{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 o of e){const e=n.find((e=>e.agent===o.agent));if(e){if(e.dates.push(o.date),J(n)>t){e.dates.pop();break}}else if(n.push({agent:o.agent,dates:[o.date]}),J(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),o=(0,i.L)(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)),o}}function $(){return(new Date).toISOString().substring(0,10)}class X{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,i.hl)()&&(0,i.eu)().then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){return await async function(e){try{const t=await G();return await t.transaction(W).objectStore(W).get(Q(e))}catch(t){if(t instanceof i.ZR)T.warn(t.message);else{const e=L.create("idb-get",{originalErrorMessage:null===t||void 0===t?void 0:t.message});T.warn(e.message)}}}(this.app)||{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return K(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 K(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function J(e){return(0,i.L)(JSON.stringify({version:2,heartbeats:e})).length}var ee;ee="",N(new r.wA("platform-logger",(e=>new E(e)),"PRIVATE")),N(new r.wA("heartbeat",(e=>new Y(e)),"PRIVATE")),B(C,_,ee),B(C,_,"esm2017"),B("fire-js","")},23258:(e,t,n)=>{"use strict";n.d(t,{H0:()=>s,wA:()=>o});var r=n(85854);class o{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 i="[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.BH;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 ".concat(this.name," is not available"))}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(o){if(r)return null;throw o}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error("Mismatching Component ".concat(e.name," for Provider ").concat(this.name,"."));if(this.component)throw Error("Component for ".concat(this.name," has already been provided"));if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:i})}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]:i;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]:i;return this.instances.has(e)}getOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;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("".concat(this.name,"(").concat(n,") has already been initialized"));if(!this.isComponentSet())throw Error("Component ".concat(this.name," has not been registered yet"));const r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[o,i]of this.instancesDeferred.entries()){n===this.normalizeInstanceIdentifier(o)&&i.resolve(r)}return r}onInit(e,t){var n;const r=this.normalizeInstanceIdentifier(t),o=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;o.add(e),this.onInitCallbacks.set(r,o);const i=this.instances.get(r);return i&&e(i,r),()=>{o.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const o of n)try{o(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:(o=t,o===i?void 0:o),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 o;return r||null}normalizeInstanceIdentifier(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return this.component?this.component.multipleInstances?e:i:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class s{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component ".concat(e.name," has already been registered with ").concat(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())}}},6781:(e,t,n)=>{"use strict";n.d(t,{Yd:()=>c,in:()=>o});const r=[];var o;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.E
2RROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(o||(o={}));const i={debug:o.DEBUG,verbose:o.VERBOSE,info:o.INFO,warn:o.WARN,error:o.ERROR,silent:o.SILENT},a=o.INFO,s={[o.DEBUG]:"log",[o.VERBOSE]:"log",[o.INFO]:"info",[o.WARN]:"warn",[o.ERROR]:"error"},l=function(e,t){if(t<e.logLevel)return;const n=(new Date).toISOString(),r=s[t];if(!r)throw new Error("Attempted to log a message with an invalid logType (value: ".concat(t,")"));for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];console[r]("[".concat(n,"] ").concat(e.name,":"),...i)};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 o))throw new TypeError('Invalid value "'.concat(e,'" assigned to `logLevel`'));this._logLevel=e}setLogLevel(e){this._logLevel="string"===typeof e?i[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,o.DEBUG,...t),this._logHandler(this,o.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,o.VERBOSE,...t),this._logHandler(this,o.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,o.INFO,...t),this._logHandler(this,o.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,o.WARN,...t),this._logHandler(this,o.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,o.ERROR,...t),this._logHandler(this,o.ERROR,...t)}}},63733:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}n.d(t,{Z:()=>o});const o=function(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},96517:(e,t,n)=>{"use strict";n.d(t,{_O:()=>Be,GH:()=>He,hJ:()=>Ve,O4:()=>Ue,c4:()=>We,iA:()=>lt,bX:()=>ct,LG:()=>st,Xb:()=>ut,gK:()=>St,v0:()=>Wn,Aj:()=>Et,w$:()=>ht,LS:()=>at,e5:()=>dt,rh:()=>rn,w7:()=>Ct,s:()=>pt,gQ:()=>mt,ck:()=>ft});var r=n(85854),o=n(67825),i=n(6781);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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError;var s=n(23258);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 r.LL("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 i.Yd("@firebase/auth");function h(e){if(d.logLevel<=i.in.ERROR){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];d.error("Auth (".concat(o.Jn,"): ").concat(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 y(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 y(e,...n)}function m(e,t,n){const o=Object.assign(Object.assign({},c()),{[t]:n});
2return new r.LL("auth","Firebase",o).create(t,{appName:e.name})}function g(e,t,n){if(!(t instanceof n))throw n.name!==t.constructor.name&&f(e,"argument-error"),m(e,"argument-error","Type of ".concat(t.constructor.name," does not match expected instance.")+"Did you pass a reference from a different Auth SDK?")}function y(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 v(e,t){if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];throw y(t,...r)}}function b(e){const t="INTERNAL ASSERTION FAILED: "+e;throw h(t),new Error(t)}function w(e,t){e||b(t)}function x(){var e;return"undefined"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.href)||""}function k(){return"http:"===S()||"https:"===S()}function S(){var e;return"undefined"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.protocol)||null}class E{constructor(e,t){this.shortDelay=e,this.longDelay=t,w(t>e,"Short delay should be less than long delay!"),this.isMobile=(0,r.uI)()||(0,r.b$)()}get(){return"undefined"!==typeof navigator&&navigator&&"onLine"in navigator&&"boolean"===typeof navigator.onLine&&(k()||(0,r.ru)()||"connection"in navigator)&&!navigator.onLine?Math.min(5e3,this.shortDelay):this.isMobile?this.longDelay:this.shortDelay}}function C(e,t){w(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?"".concat(n).concat(t.startsWith("/")?t.slice(1):t):n}class _{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 b("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 b("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 b("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",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"},O=new E(3e4,6e4);function I(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function A(e,t,n,o){return P(e,arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},(async()=>{let i={},a={};o&&("GET"===t?a=o:i={body:JSON.stringify(o)});const s=(0,r.xO)(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),_.fetch()(N(e,e.config.apiHost,n,s),Object.assign({method:t,headers:l,referrerPolicy:"no-referrer"},i))}))}async function P(e,t,n){e._canInitEmulator=!1;const o=Object.assign(Object.assign({},T),t);try{const t=new M(e),r=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();const i=await r.json();if("needConfirmation"in i)throw L(e,"account-exists-with-different-credential",i);if(r.ok&&!("errorMessage"in i))return i;{const t=r.ok?i.errorMessage:i.error.message,[n,a]=t.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===n)throw L(e,"credential-already-in-use",i);if("EMAIL_EXISTS"===n)throw L(e,"email-already-in-use",i);if("USER_DISABLED"===n)throw L(e,"user-disabled",i);const s=o[n]||n.toLowerCase().replace(/[_\s]+/g,"-");if(a)throw m(e,s,a);f(e,s)}}catch(i){if(i instanceof r.ZR)throw i;f(e,"network-request-failed",{message:String(i)})}}async function R(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const i=await A(e,t,n,r,o);return"mfaPendingCredential"in i&&f(e,"multi-factor-auth-required",{_serverResponse:i}),i}function N(e,t,n,r){const o="".concat(t).concat(n,"?").concat(r);return e.config.emulator?C(e.config,o):"".concat(e.config.apiScheme,"://").concat(o)}function D(e){switch(e){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class M{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise(((e,t)=>{this.timer=setTimeout((()=>t(p(this.auth,"network-request-failed"))),O.get())}))}clearNetworkTimeout(){clearTimeout(this.timer)}}function L(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const o=p(e,t,r);return o.customData._tokenResponse=n,o}function Z(e){return void 0!==e&&void 0!==e.enterprise}class j{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 D(t.enforcementState);return null}isProviderEnabled(e){return"ENFORCE"===this.getProviderEnforcementState(e)||"AUDIT"===this.getProviderEnforcementState(e)}}async function F(e,t){return A(e,"GET","/v2/recaptchaConfig",I(e,t))}function z(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(t){}}function U(e){return 1e3*Number(e)}function B(e){const[t,n,o]=e.split(".");if(void 0===t||void 0===n||void 0===o)return h("JWT malformed, contained fewer than 3 sections"),null;try{const e=(0,r.tV)(n);return e?JSON.parse(e):(h("Failed to decode base64 JWT payload"),null)}catch(i){return h("Caught error parsing JWT payload as JSON",null===i||void 0===i?void 0:i.toString()),null}}async function V(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2])return t;try{return await t}catch(n){throw n instanceof r.ZR&&function(e){let{code:t}=e;return t==="auth/".concat("user-disabled")||t==="auth/".concat("user-token-expired")}(n)&&e.auth.currentUser===e&&await e.auth.signOut(),n}}class H{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((null===e||void 0===e?void 0:e.code)==="auth/".concat("network-request-failed")&&this.schedule(!0))}this.schedule()}}class W{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(),o=await V(e,async function(e,t){return A(e,"POST","/v1/accounts:lookup",t)}(n,{idToken:r}));v(null===o||void 0===o?void 0:o.users.length,n,"internal-error");const i=o.users[0];e._notifyReloadListener(i);const s=(null===(t=i.providerUserInfo)||void 0===t?void 0:t.length)?i.providerUserInfo.map((e=>{var{providerId:t}=e,n=a(e,["providerId"]);
2return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}})):[];const l=(c=e.providerData,u=s,[...c.filter((e=>!u.some((t=>t.providerId===e.providerId)))),...u]);var c,u;const d=e.isAnonymous,h=!(e.email&&i.passwordHash)&&!(null===l||void 0===l?void 0:l.length),f=!!d&&h,p={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:l,metadata:new W(i.createdAt,i.lastLoginAt),isAnonymous:f};Object.assign(e,p)}class G{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){v(e.idToken,"internal-error"),v("undefined"!==typeof e.idToken,"internal-error"),v("undefined"!==typeof e.refreshToken,"internal-error");const t="expiresIn"in e&&"undefined"!==typeof e.expiresIn?Number(e.expiresIn):function(e){const t=B(e);return v(t,"internal-error"),v("undefined"!==typeof t.exp,"internal-error"),v("undefined"!==typeof t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}async getToken(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return v(!this.accessToken||this.refreshToken,e,"user-token-expired"),t||!this.accessToken||this.isExpired?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:o,expiresIn:i}=await async function(e,t){const n=await P(e,{},(async()=>{const n=(0,r.xO)({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:o,apiKey:i}=e.config,a=N(e,o,"/v1/token","key=".concat(i)),s=await e._getAdditionalHeaders();return s["Content-Type"]="application/x-www-form-urlencoded",_.fetch()(a,{method:"POST",headers:s,body:n})}));return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}(e,t);this.updateTokensAndExpiration(n,o,Number(i))}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:o}=t,i=new G;return n&&(v("string"===typeof n,"internal-error",{appName:e}),i.refreshToken=n),r&&(v("string"===typeof r,"internal-error",{appName:e}),i.accessToken=r),o&&(v("number"===typeof o,"internal-error",{appName:e}),i.expirationTime=o),i}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 G,this.toJSON())}_performRefresh(){return b("not implemented")}}function K(e,t){v("string"===typeof e||"undefined"===typeof e,"internal-error",{appName:t})}class Q{constructor(e){var{uid:t,auth:n,stsTokenManager:r}=e,o=a(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new H(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=o.displayName||null,this.email=o.email||null,this.emailVerified=o.emailVerified||!1,this.phoneNumber=o.phoneNumber||null,this.photoURL=o.photoURL||null,this.isAnonymous=o.isAnonymous||!1,this.tenantId=o.tenantId||null,this.providerData=o.providerData?[...o.providerData]:[],this.metadata=new W(o.createdAt||void 0,o.lastLoginAt||void 0)}async getIdToken(e){const t=await V(this,this.stsTokenManager.getToken(this.auth,e));return v(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,r.m9)(e),o=await n.getIdToken(t),i=B(o);v(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const a="object"===typeof i.firebase?i.firebase:void 0,s=null===a||void 0===a?void 0:a.sign_in_provider;return{claims:i,token:o,authTime:z(U(i.auth_time)),issuedAtTime:z(U(i.iat)),expirationTime:z(U(i.exp)),signInProvider:s||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,r.m9)(e);await q(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}(this)}_assign(e){this!==e&&(v(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.ph
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 Q(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){v(!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(){const e=await this.getIdToken();return await V(this,async function(e,t){return A(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,o,i,a,s,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!==(o=t.phoneNumber)&&void 0!==o?o:void 0,f=null!==(i=t.photoURL)&&void 0!==i?i:void 0,p=null!==(a=t.tenantId)&&void 0!==a?a:void 0,m=null!==(s=t._redirectEventId)&&void 0!==s?s: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:b,emailVerified:w,isAnonymous:x,providerData:k,stsTokenManager:S}=t;v(b&&S,e,"internal-error");const E=G.fromJSON(this.name,S);v("string"===typeof b,e,"internal-error"),K(u,e.name),K(d,e.name),v("boolean"===typeof w,e,"internal-error"),v("boolean"===typeof x,e,"internal-error"),K(h,e.name),K(f,e.name),K(p,e.name),K(m,e.name),K(g,e.name),K(y,e.name);const C=new Q({uid:b,auth:e,email:d,emailVerified:w,displayName:u,isAnonymous:x,photoURL:f,phoneNumber:h,tenantId:p,stsTokenManager:E,createdAt:g,lastLoginAt:y});return k&&Array.isArray(k)&&(C.providerData=k.map((e=>Object.assign({},e)))),m&&(C._redirectEventId=m),C}static async _fromIdTokenResponse(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=new G;r.updateFromServerResponse(t);const o=new Q({uid:t.localId,auth:e,stsTokenManager:r,isAnonymous:n});return await q(o),o}}const Y=new Map;function $(e){w(e instanceof Function,"Expected a class definition");let t=Y.get(e);return t?(w(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,Y.set(e,t),t)}class X{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){}}X.type="NONE";const J=X;function ee(e,t,n){return"firebase".concat(":",e,":").concat(t,":").concat(n)}class te{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;const{config:r,name:o}=this.auth;this.fullUserKey=ee(this.userKey,r.apiKey,o),this.fullPersistenceKey=ee("persistence",r.apiKey,o),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?Q._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 te($(J),e,n);const r=(await Promise.all(t.map((async e=>{if(await e._isAvailable())return e})))).filter((e=>e));let o=r[0]||$(J);const i=ee(n,e.config.apiKey,e.name);let a=null;for(const c of t)try{const t=await c._get(i);if(t){const n=Q._fromJSON(e,t);c!==o&&(a=n),o=c;break}}catch(l){}const s=r.filter((e=>e._shouldAllowMigration));return o._shouldAllowMigration&&s.length?(o=s[0],a&&await o._set(i,a.toJSON()),await Promise.all(t.map((async e=>{if(e!==o)try{await e._remove(i)}catch(l){}}))),new te(o,e,n)):new te(o,e,n)}}function ne(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(ae(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(re(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(le(t))return"Blackberry";if(ce(t))return"Webos";if(oe(t))return"Safari";if((t.includes("chrome/")||ie(t))&&!t.includes("edge/"))return"Chrome";if(se(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 re(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.z$)();return/firefox\//i.test(e)}function oe(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.z$)()).toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function ie(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.z$)();return/crios\//i.test(e)}function ae(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.z$)();return/iemobile/i.test(e)}function se(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.z$)();return/android/i.test(e)}function le(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.z$)();return/blackberry/i.test(e)}function ce(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.z$)();return/webos/i.test(e)}function ue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.z$)();return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function de(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.z$)();return ue(e)||se(e)||ce(e)||le(e)||/windows phone/i.test(e)||ae(e)}function he(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];switch(e){case"Browser":t=ne((0,r.z$)());break;case"Worker":t="".concat(ne((0,r.z$)()),"-").concat(e);break;default:t=e}const i=n.length?n.join(","):"FirebaseCore-web";return"".concat(t,"/","JsCore","/").concat(o.Jn,"/").concat(i)}class fe{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const n=t=>new Promise(((n,r)=>{try{n(e(t))}catch(o){r(o)}}));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 pe{constructor(e){var t,n,r,o;const i=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(t=i.minPasswordLength)&&void 0!==t?t:6,i.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=i.maxPasswordLength),void 0!==i.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=i.containsLowercaseCharacter),void 0!==i.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=i.containsUppercaseCharacter),void 0!==i.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=i.containsNumericCharacter),void 0!==i.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=i.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!==(o=e.forceUpgradeOnSignin)&&void 0!==o&&o,this.schemaVersion=e.schemaVersion}validatePassword(e){var t,n,r,o,i,a;const s={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,s),this.validatePasswordCharacterOptions(e,s),s.isValid&&
2(s.isValid=null===(t=s.meetsMinPasswordLength)||void 0===t||t),s.isValid&&(s.isValid=null===(n=s.meetsMaxPasswordLength)||void 0===n||n),s.isValid&&(s.isValid=null===(r=s.containsLowercaseLetter)||void 0===r||r),s.isValid&&(s.isValid=null===(o=s.containsUppercaseLetter)||void 0===o||o),s.isValid&&(s.isValid=null===(i=s.containsNumericCharacter)||void 0===i||i),s.isValid&&(s.isValid=null===(a=s.containsNonAlphanumericCharacter)||void 0===a||a),s}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,o){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=o))}}class me{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 ye(this),this.idTokenSubscription=new ye(this),this.beforeStateQueue=new fe(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=$(t)),this._initializationPromise=this.queue((async()=>{var n,r;if(!this._deleted&&(this.persistenceManager=await te.create(this,e),!this._deleted)){if(null===(n=this._popupRedirectResolver)||void 0===n?void 0:n._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(o){}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 initializeCurrentUser(e){var t;const n=await this.assertedPersistence.getCurrentUser();let r=n,o=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const n=null===(t=this.redirectUser)||void 0===t?void 0:t._redirectEventId,i=null===r||void 0===r?void 0:r._redirectEventId,a=await this.tryRedirectSignIn(e);n&&n!==i||!(null===a||void 0===a?void 0:a.user)||(r=a.user,o=!0)}if(!r)return this.directlySetCurrentUser(null);if(!r._redirectEventId){if(o)try{await this.beforeStateQueue.runMiddleware(r)}catch(i){r=n,this._popupRedirectResolver._overrideRedirectResult(this,(()=>Promise.reject(i)))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return v(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)}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((null===t||void 0===t?void 0:t.code)!=="auth/".concat("network-request-failed"))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}
2async updateCurrentUser(e){const t=e?(0,r.m9)(e):null;return t&&v(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&&v(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 await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0)}setPersistence(e){return this.queue((async()=>{await this.assertedPersistence.setPersistence($(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 A(e,"GET","/v2/passwordPolicy",I(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}(this),t=new pe(e);null===this.tenantId?this._projectPasswordPolicy=t:this._tenantPasswordPolicies[this.tenantId]=t}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new r.LL("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 A(e,"POST","/v2/accounts:revokeToken",I(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&&$(e)||this._popupRedirectResolver;v(t,this,"argument-error"),this.redirectPersistenceManager=await te.create(this,[$(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"".concat(this.config.authDomain,":").concat(this.config.apiKey,":").concat(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 o="function"===typeof t?t:t.next.bind(t);let i=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(v(a,this,"internal-error"),a.then((()=>{i||o(this.currentUser)})),"function"===typeof t){const o=e.addObserver(t,n,r);return()=>{i=!0,o()}}{const n=e.addObserver(t);return()=>{i=!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 v(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=he(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<=i.in.WARN){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];d.warn("Auth (".concat(o.Jn,"): ").concat(e),...n)}}("Error while retrieving App Check token: ".concat(t.error)),null===t||void 0===t?void 0:t.token}}function ge(e){return(0,r.m9)(e)}class ye{constructor(e){this.auth=e,this.observer=null,this.addObserver=(0,r.ne)((e=>this.observer=e))}get next(){return v(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}function ve(e){return new 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)}))}function be(e){return"__".concat(e).concat(Math.floor(1e6*Math.random()))}class we{constructor(e){this.type="recaptcha-enterprise",this.auth=ge(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 o=window.grecaptcha;Z(o)?o.enterprise.ready((()=>{o.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{F(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then((r=>{if(void 0!==r.recaptchaKey){const n=new j(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((o=>{if(!t&&Z(window.grecaptcha))n(o,e,r);else{if("undefined"===typeof window)return void r(new Error("RecaptchaVerifier is only supported in browser"));ve("https://www.google.com/recaptcha/enterprise.js?render="+o).then((()=>{n(o,e,r)})).catch((e=>{r(e)}))}})).catch((e=>{r(e)}))}))}}async function xe(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=new we(e);let i;try{i=await o.verify(n)}catch(s){i=await o.verify(n,!0)}const a=Object.assign({},t);return r?Object.assign(a,{captchaResp:i}):Object.assign(a,{captchaResponse:i}),Object.assign(a,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(a,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),a}async function ke(e,t,n,r){var o;if(null===(o=e._getRecaptchaConfig())||void 0===o?void 0:o.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const o=await xe(e,t,n,"getOobCode"===n);return r(e,o)}return r(e,t).catch((async o=>{if(o.code==="auth/".concat("missing-recaptcha-token")){console.log("".concat(n," is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow."));const o=await xe(e,t,n,"getOobCode"===n);return r(e,o)}return Promise.reject(o)}))}function Se(e,t,n){const r=ge(e);v(r._canInitEmulator,r,"emulator-config-failed"),v(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const o=!!(null===n||void 0===n?void 0:n.disableWarnings),i=Ee(t),{host:a,port:s}=function(e){const t=Ee(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",o=/^(\[[^\]]+\])(:|$)/.exec(r);if(o){const e=o[1];return{host:e,port:Ce(r.substr(e.length+1))}}{const[e,t]=r.split(":");return{host:e,port:Ce(t)}}}(t),l=null===s?"":":".concat(s);r.config.emulator={url:"".concat(i,"//").concat(a).concat(l,"/")},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:a,port:s,protocol:i.replace(":",""),options:Object.freeze({disableWarnings:o})}),o||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 Ee(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function Ce(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}class _e{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return b("not implemented")}_getIdTokenResponse(e){return b("not implemented")}_linkToIdToken(e,t){return b("not implemented")}_getReauthenticationResolver(e){return b("not implemented")}}async function Te(e,t){return A(e,"POST","/v1/accounts:resetPassword",I(e,t))}async function Oe(e,t){return A(e,"POST","/v1/accounts:signUp",t)}async function Ie(e,t){return R(e,"POST","/v1/accounts:signInWithPassword",I(e,t))}async function Ae(e,t){return A(e,"POST","/v1/accounts:sendOobCode",I(e,t))}async function Pe(e,t){return Ae(e,t)}class Re extends _e{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 Re(e,t,"password")}static _fromEmailAndCode(e,t){return new Re(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 ke(e,{returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",Ie);case"emailLink":return async function(e,t){return R(e,"POST","/v1/accounts:signInWithEmailLink",I(e,t))}(e,{email:this._email,oobCode:this._password});default:f(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":return ke(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Oe);case"emailLink":return async function(e,t){return R(e,"POST","/v1/accounts:signInWithEmailLink",I(e,t))}(e,{idToken:t,email:this._email,oobCode:this._password});default:f(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}async function Ne(e,t){return R(e,"POST","/v1/accounts:signInWithIdp",I(e,t))}
2class De extends _e{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const t=new De(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&&(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,o=a(t,["providerId","signInMethod"]);if(!n||!r)return null;const i=new De(n,r);return i.idToken=o.idToken||void 0,i.accessToken=o.accessToken||void 0,i.secret=o.secret,i.nonce=o.nonce,i.pendingToken=o.pendingToken||null,i}_getIdTokenResponse(e){return Ne(e,this.buildRequest())}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,Ne(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,Ne(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,r.xO)(t)}return e}}const Me={USER_NOT_FOUND:"user-not-found"};class Le extends _e{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new Le({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new Le({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return async function(e,t){return R(e,"POST","/v1/accounts:signInWithPhoneNumber",I(e,t))}(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return async function(e,t){const n=await R(e,"POST","/v1/accounts:signInWithPhoneNumber",I(e,t));if(n.temporaryProof)throw L(e,"account-exists-with-different-credential",n);return n}(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return async function(e,t){return R(e,"POST","/v1/accounts:signInWithPhoneNumber",I(e,Object.assign(Object.assign({},t),{operation:"REAUTH"})),Me)}(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:o}=e;return n||t||r||o?new Le({verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:o}):null}}class Ze{constructor(e){var t,n,o,i,a,s;const l=(0,r.zd)((0,r.pd)(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!==(o=l.mode)&&void 0!==o?o:null);v(c&&u&&d,"argument-error"),this.apiKey=c,this.operation=d,this.code=u,this.continueUrl=null!==(i=l.continueUrl)&&void 0!==i?i:null,this.languageCode=null!==(a=l.languageCode)&&void 0!==a?a:null,this.tenantId=null!==(s=l.tenantId)&&void 0!==s?s:null}static parseLink(e){const t=function(e){const t=(0,r.zd)((0,r.pd)(e)).link,n=t?(0,r.zd)((0,r.pd)(t)).deep_link_id:null,o=(0,r.zd)((0,r.pd)(e)).deep_link_id;return(o?(0,r.zd)((0,r.pd)(o)).link:null)||o||n||t||e}(e);try{return new Ze(t)}catch(n){return null}}}class je{constructor(){this.providerId=je.PROVIDER_ID}static credential(e,t){return Re._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){const n=Ze.parseLink(t);return v(n,"argument-error"),Re._fromEmailAndCode(e,n.code,n.tenantId)}}je.PROVIDER_ID="password",je.EMAIL_PASSWORD_SIGN_IN_METHOD="password",je.EMAIL_LINK_SIGN_IN_METHOD="emailLink";class Fe{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 ze extends Fe{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class Ue extends ze{static credentialFromJSON(e){const t="string"===typeof e?JSON.parse(e):e;return v("providerId"in t&&"signInMethod"in t,"argument-error"),De._fromParams(t)}credential(e){return this._credential(Object.assign(Object.assign({},e),{nonce:e.rawNonce}))}_credential(e){return v(e.idToken||e.accessToken,"argument-error"),De._fromParams(Object.assign(Object.assign({}
2,e),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(e){return Ue.oauthCredentialFromTaggedObject(e)}static credentialFromError(e){return Ue.oauthCredentialFromTaggedObject(e.customData||{})}static oauthCredentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r,oauthTokenSecret:o,pendingToken:i,nonce:a,providerId:s}=t;if(!r&&!o&&!n&&!i)return null;if(!s)return null;try{return new Ue(s)._credential({idToken:n,accessToken:r,nonce:a,pendingToken:i})}catch(l){return null}}}class Be extends ze{constructor(){super("facebook.com")}static credential(e){return De._fromParams({providerId:Be.PROVIDER_ID,signInMethod:Be.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Be.credentialFromTaggedObject(e)}static credentialFromError(e){return Be.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return Be.credential(t.oauthAccessToken)}catch(n){return null}}}Be.FACEBOOK_SIGN_IN_METHOD="facebook.com",Be.PROVIDER_ID="facebook.com";class Ve extends ze{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return De._fromParams({providerId:Ve.PROVIDER_ID,signInMethod:Ve.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return Ve.credentialFromTaggedObject(e)}static credentialFromError(e){return Ve.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 Ve.credential(n,r)}catch(o){return null}}}Ve.GOOGLE_SIGN_IN_METHOD="google.com",Ve.PROVIDER_ID="google.com";class He extends ze{constructor(){super("github.com")}static credential(e){return De._fromParams({providerId:He.PROVIDER_ID,signInMethod:He.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return He.credentialFromTaggedObject(e)}static credentialFromError(e){return He.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return He.credential(t.oauthAccessToken)}catch(n){return null}}}He.GITHUB_SIGN_IN_METHOD="github.com",He.PROVIDER_ID="github.com";class We extends ze{constructor(){super("twitter.com")}static credential(e,t){return De._fromParams({providerId:We.PROVIDER_ID,signInMethod:We.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret: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{oauthAccessToken:n,oauthTokenSecret:r}=t;if(!n||!r)return null;try{return We.credential(n,r)}catch(o){return null}}}async function qe(e,t){return R(e,"POST","/v1/accounts:signUp",I(e,t))}We.TWITTER_SIGN_IN_METHOD="twitter.com",We.PROVIDER_ID="twitter.com";class Ge{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 o=await Q._fromIdTokenResponse(e,n,r),i=Ke(n);return new Ge({user:o,providerId:i,_tokenResponse:n,operationType:t})}static async _forOperation(e,t,n){await e._updateTokensIfNecessary(n,!0);const r=Ke(n);return new Ge({user:e,providerId:r,_tokenResponse:n,operationType:t})}}function Ke(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}class Qe extends r.ZR{constructor(e,t,n,r){var o;super(t.code,t.message),this.operationType=n,this.user=r,Object.setPrototypeOf(this,Qe.prototype),this.customData={appName:e.name,tenantId:null!==(o=e.tenantId)&&void 0!==o?o:void 0,_serverResponse:t.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,t,n,r){return new Qe(e,t,n,r)}}function Ye(e,t,n,r){return("reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch((n=>{if(n.code==="auth/".concat("multi-factor-auth-required"))throw Qe._fromErrorAndOperation(e,n,t,r);throw n}))}async function $e(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=await V(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return Ge._forOperation(e,"link",r)}async function Xe(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{auth:r}=e,o="reauthenticate";try{const i=await V(e,Ye(r,o,t,e),n);v(i.idToken,r,"internal-error");const a=B(i.idToken);v(a,r,"internal-error");const{sub:s}=a;return v(e.uid===s,r,"user-mismatch"),Ge._forOperation(e,o,i)}catch(i){throw(null===i||void 0===i?void 0:i.code)==="auth/".concat("user-not-found")&&f(r,"user-mismatch"),i}}async function Je(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r="signIn",o=await Ye(e,r,t),i=await Ge._fromIdTokenResponse(e,r,o);return n||await e._updateCurrentUser(i.user),i}async function et(e,t){return Je(ge(e),t)}class tt{constructor(e,t){this.factorId=e,this.uid=t.mfaEnrollmentId,this.enrollmentTime=new Date(t.enrolledAt).toUTCString(),this.displayName=t.displayName}static _fromServerResponse(e,t){return"phoneInfo"in t?nt._fromServerResponse(e,t):"totpInfo"in t?rt._fromServerResponse(e,t):f(e,"internal-error")}}class nt extends tt{constructor(e){super("phone",e),this.phoneNumber=e.phoneInfo}static _fromServerResponse(e,t){return new nt(t)}}class rt extends tt{constructor(e){super("totp",e)}static _fromServerResponse(e,t){return new rt(t)}}function ot(e,t,n){var r;v((null===(r=n.url)||void 0===r?void 0:r.length)>
20,e,"invalid-continue-uri"),v("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&&(v(n.iOS.bundleId.length>0,e,"missing-ios-bundle-id"),t.iOSBundleId=n.iOS.bundleId),n.android&&(v(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 it(e){const t=ge(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}async function at(e,t,n){const r=ge(e),o={requestType:"PASSWORD_RESET",email:t,clientType:"CLIENT_TYPE_WEB"};n&&ot(r,o,n),await ke(r,o,"getOobCode",Pe)}async function st(e,t,n){await Te((0,r.m9)(e),{oobCode:t,newPassword:n}).catch((async t=>{throw t.code==="auth/".concat("password-does-not-meet-requirements")&&it(e),t}))}async function lt(e,t){await async function(e,t){return A(e,"POST","/v1/accounts:update",I(e,t))}((0,r.m9)(e),{oobCode:t})}async function ct(e,t){const n=(0,r.m9)(e),o=await Te(n,{oobCode:t}),i=o.requestType;switch(v(i,n,"internal-error"),i){case"EMAIL_SIGNIN":break;case"VERIFY_AND_CHANGE_EMAIL":v(o.newEmail,n,"internal-error");break;case"REVERT_SECOND_FACTOR_ADDITION":v(o.mfaInfo,n,"internal-error");default:v(o.email,n,"internal-error")}let a=null;return o.mfaInfo&&(a=tt._fromServerResponse(ge(n),o.mfaInfo)),{data:{email:("VERIFY_AND_CHANGE_EMAIL"===o.requestType?o.newEmail:o.email)||null,previousEmail:("VERIFY_AND_CHANGE_EMAIL"===o.requestType?o.email:o.newEmail)||null,multiFactorInfo:a},operation:i}}async function ut(e,t,n){const r=ge(e),o=ke(r,{returnSecureToken:!0,email:t,password:n,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",qe),i=await o.catch((t=>{throw t.code==="auth/".concat("password-does-not-meet-requirements")&&it(e),t})),a=await Ge._fromIdTokenResponse(r,"signIn",i);return await r._updateCurrentUser(a.user),a}function dt(e,t,n){return et((0,r.m9)(e),je.credential(t,n)).catch((async t=>{throw t.code==="auth/".concat("password-does-not-meet-requirements")&&it(e),t}))}async function ht(e,t){const n=(0,r.m9)(e),o={requestType:"VERIFY_EMAIL",idToken:await e.getIdToken()};t&&ot(n.auth,o,t);const{email:i}=await async function(e,t){return Ae(e,t)}(n.auth,o);i!==e.email&&await e.reload()}async function ft(e,t){let{displayName:n,photoURL:o}=t;if(void 0===n&&void 0===o)return;const i=(0,r.m9)(e),a={idToken:await i.getIdToken(),displayName:n,photoUrl:o,returnSecureToken:!0},s=await V(i,async function(e,t){return A(e,"POST","/v1/accounts:update",t)}(i.auth,a));i.displayName=s.displayName||null,i.photoURL=s.photoUrl||null;const l=i.providerData.find((e=>{let{providerId:t}=e;return"password"===t}));
2l&&(l.displayName=i.displayName,l.photoURL=i.photoURL),await i._updateTokensIfNecessary(s)}function pt(e,t){return gt((0,r.m9)(e),t,null)}function mt(e,t){return gt((0,r.m9)(e),null,t)}async function gt(e,t,n){const{auth:r}=e,o={idToken:await e.getIdToken(),returnSecureToken:!0};t&&(o.email=t),n&&(o.password=n);const i=await V(e,async function(e,t){return A(e,"POST","/v1/accounts:update",t)}(r,o));await e._updateTokensIfNecessary(i,!0)}class yt{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.isNewUser=e,this.providerId=t,this.profile=n}}class vt extends yt{constructor(e,t,n,r){super(e,t,n),this.username=r}}class bt extends yt{constructor(e,t){super(e,"facebook.com",t)}}class wt extends vt{constructor(e,t){super(e,"github.com",t,"string"===typeof(null===t||void 0===t?void 0:t.login)?null===t||void 0===t?void 0:t.login:null)}}class xt extends yt{constructor(e,t){super(e,"google.com",t)}}class kt extends vt{constructor(e,t,n){super(e,"twitter.com",t,n)}}function St(e){const{user:t,_tokenResponse:n}=e;return t.isAnonymous&&!n?{providerId:null,isNewUser:!1,profile:null}:function(e){var t,n;if(!e)return null;const{providerId:r}=e,o=e.rawUserInfo?JSON.parse(e.rawUserInfo):{},i=e.isNewUser||"identitytoolkit#SignupNewUserResponse"===e.kind;if(!r&&(null===e||void 0===e?void 0:e.idToken)){const r=null===(n=null===(t=B(e.idToken))||void 0===t?void 0:t.firebase)||void 0===n?void 0:n.sign_in_provider;if(r)return new yt(i,"anonymous"!==r&&"custom"!==r?r:null)}if(!r)return null;switch(r){case"facebook.com":return new bt(i,o);case"github.com":return new wt(i,o);case"google.com":return new xt(i,o);case"twitter.com":return new kt(i,o,e.screenName||null);case"custom":case"anonymous":return new yt(i,null);default:return new yt(i,r,o)}}(n)}function Et(e,t,n,o){return(0,r.m9)(e).onAuthStateChanged(t,n,o)}function Ct(e){return(0,r.m9)(e).signOut()}new WeakMap;const _t="__sak";class Tt{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem(_t,"1"),this.storage.removeItem(_t),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 Ot extends Tt{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,r.z$)();return oe(e)||ue(e)}()&&function(){try{return!(!window||window===window.top)}catch(e){return!1}}(),this.fallbackToPolling=de(),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];if(!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 o=()=>{const e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)},i=this.storage.getItem(n);(0,r.w1)()&&10===document.documentMode&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(o,10):o()}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]}}Ot.type="LOCAL";const It=Ot;class At extends Tt{constructor(){super((()=>window.sessionStorage),"SESSION")}_addListener(e,t){}_removeListener(e,t){}}At.type="SESSION";const Pt=At;class Rt{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 Rt(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const t=e,{eventId:n,eventType:r,data:o}=t.data,i=this.handlersMap[r];if(!(null===i||void 0===i?void 0:i.size))return;t.ports[0].postMessage({status:"ack",eventId:n,eventType:r});const a=Array.from(i).map((async e=>e(t.origin,o))),s=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:s})}_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 Nt(){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}Rt.receivers=[];class Dt{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 o,i;return new Promise(((a,s)=>{const l=Nt("",20);r.port1.start();const c=setTimeout((()=>{s(new Error("unsupported_event"))}),n);i={messageChannel:r,onMessage(e){const t=e;if(t.data.eventId===l)switch(t.data.status){case"ack":clearTimeout(c),o=setTimeout((()=>{s(new Error("timeout"))}),3e3);break;case"done":clearTimeout(o),a(t.data.response);break;default:clearTimeout(c),clearTimeout(o),s(new Error("invalid_response"))}}},this.handlers.add(i),r.port1.addEventListener("message",i.onMessage),this.target.postMessage({eventType:e,eventId:l,data:t},[r.port2])})).finally((()=>{i&&this.removeMessageHandler(i)}))}}function Mt(){return window}
vendor: 4,942 bytes, line 2
2function Lt(){return"undefined"!==typeof Mt().WorkerGlobalScope&&"function"===typeof Mt().importScripts}const Zt="firebaseLocalStorageDb",jt="firebaseLocalStorage",Ft="fbase_key";class zt{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 Ut(e,t){return e.transaction([jt],t?"readwrite":"readonly").objectStore(jt)}function Bt(){const e=indexedDB.open(Zt,1);return new Promise(((t,n)=>{e.addEventListener("error",(()=>{n(e.error)})),e.addEventListener("upgradeneeded",(()=>{const t=e.result;try{t.createObjectStore(jt,{keyPath:Ft})}catch(r){n(r)}})),e.addEventListener("success",(async()=>{const n=e.result;n.objectStoreNames.contains(jt)?t(n):(n.close(),await function(){const e=indexedDB.deleteDatabase(Zt);return new zt(e).toPromise()}(),t(await Bt()))}))}))}async function Vt(e,t,n){const r=Ut(e,!0).put({[Ft]:t,value:n});return new zt(r).toPromise()}function Ht(e,t){const n=Ut(e,!0).delete(t);return new zt(n).toPromise()}class Wt{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 Bt()),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 Lt()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Rt._getInstance(Lt()?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 Dt(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 Bt();return await Vt(e,_t,"1"),await Ht(e,_t),!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=>Vt(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=Ut(e,!1).get(t),r=await new zt(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=>Ht(t,e))),delete this.localCache[e],this.notifyServiceWorker(e))))}async _poll(){const e=await this._withRetries((e=>{const t=Ut(e,!1).getAll();return new zt(t).toPromise()}));if(!e)return[];if(0!==this.pendingWrites)return[];const t=[],n=new Set;for(const{fbase_key:r,value:o}of e)n.add(r),JSON.stringify(this.localCache[r])!==JSON.stringify(o)&&(this.notifyListeners(r,o),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()}}Wt.type="LOCAL";const qt=Wt;be("rcb"),new E(3e4,6e4);const Gt="recaptcha";async function Kt(e,t,n){var r;const o=await n.verify();try{let i;if(v("string"===typeof o,e,"argument-error"),v(n.type===Gt,e,"argument-error"),i="string"===typeof t?{phoneNumber:t}
2:t,"session"in i){const t=i.session;if("phoneNumber"in i){v("enroll"===t.type,e,"internal-error");const n=await function(e,t){return A(e,"POST","/v2/accounts/mfaEnrollment:start",I(e,t))}(e,{idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:i.phoneNumber,recaptchaToken:o}});return n.phoneSessionInfo.sessionInfo}{v("signin"===t.type,e,"internal-error");const n=(null===(r=i.multiFactorHint)||void 0===r?void 0:r.uid)||i.multiFactorUid;v(n,e,"missing-multi-factor-info");const a=await function(e,t){return A(e,"POST","/v2/accounts/mfaSignIn:start",I(e,t))}(e,{mfaPendingCredential:t.credential,mfaEnrollmentId:n,phoneSignInInfo:{recaptchaToken:o}});return a.phoneResponseInfo.sessionInfo}}{const{sessionInfo:t}=await async function(e,t){return A(e,"POST","/v1/accounts:sendVerificationCode",I(e,t))}(e,{phoneNumber:i.phoneNumber,recaptchaToken:o});return t}}finally{n._reset()}}class Qt{constructor(e){this.providerId=Qt.PROVIDER_ID,this.auth=ge(e)}verifyPhoneNumber(e,t){return Kt(this.auth,e,(0,r.m9)(t))}static credential(e,t){return Le._fromVerification(e,t)}static credentialFromResult(e){const t=e;return Qt.credentialFromTaggedObject(t)}static credentialFromError(e){return Qt.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{phoneNumber:n,temporaryProof:r}=t;return n&&r?Le._fromTokenResponse(n,r):null}}function Yt(e,t){return t?$(t):(v(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}Qt.PROVIDER_ID="phone",Qt.PHONE_SIGN_IN_METHOD="phone";class $t extends _e{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return Ne(e,this._buildIdpRequest())}_linkToIdToken(e,t){return Ne(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return Ne(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 Xt(e){return Je(e.auth,new $t(e),e.bypassAuthState)}function Jt(e){const{auth:t,user:n}=e;return v(n,t,"internal-error"),Xe(n,new $t(e),e.bypassAuthState)}async function en(e){const{auth:t,user:n}=e;return v(n,t,"internal-error"),$e(n,new $t(e),e.bypassAuthState)}class tn{constructor(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this.auth=e,this.resolver=n,this.user=r,this.bypassAuthState=o,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:o,error:i,type:a}=e;if(i)return void this.reject(i);const s={auth:this.auth,requestUri:t,sessionId:n,tenantId:o||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(s))}catch(l){this.reject(l)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return Xt;case"linkViaPopup":case"linkViaRedirect":return en;case"reauthViaPopup":case"reauthViaRedirect":return Jt;default:f(this.auth,"internal-error")}}resolve(e){w(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){w(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 nn=new E(2e3,1e4);async function rn(e,t,n){const r=ge(e);g(e,t,Fe);const o=Yt(r,n);return new on(r,"signInViaPopup",t,o).executeNotNull()}class on extends tn{constructor(e,t,n,r,o){super(e,t,r,o),this.provider=n,this.authWindow=null,this.pollId=null,on.currentPopupAction&&on.currentPopupAction.cancel(),on.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return v(e,this.auth,"internal-error"),e}async onExecution(){w(1===this.filter.length,"Popup operations only handle one event");const e=Nt();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,on.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,nn.get())};e()}}on.currentPopupAction=null;const an="pendingRedirect",sn=new Map;class ln extends tn{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=sn.get(this.auth._key());if(!e){try{const t=await async function(e,t){const n=dn(t),r=un(e);if(!await r._isAvailable())return!1;const o="true"===await r._get(n);return await r._remove(n),o}(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(t)}catch(t){e=()=>Promise.reject(t)}sn.set(this.auth._key(),e)}return this.bypassAuthState||sn.set(this.auth._key(),(()=>Promise.resolve(null))),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);
2if("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 cn(e,t){sn.set(e._key(),t)}function un(e){return $(e._redirectPersistence)}function dn(e){return ee(an,e.config.apiKey,e.name)}async function hn(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=ge(e),o=Yt(r,t),i=new ln(r,o,n),a=await i.execute();return a&&!n&&(delete a.user._redirectEventId,await r._persistUserIfCurrent(a.user),await r._setRedirectUser(null,t)),a}class fn{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 mn(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){var n;if(e.error&&!mn(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(pn(e))}saveEventToCache(e){this.cachedEventUids.add(pn(e)),this.lastProcessedEventTime=Date.now()}}function pn(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter((e=>e)).join("-")}function mn(e){let{type:t,error:n}=e;return"unknown"===t&&(null===n||void 0===n?void 0:n.code)==="auth/".concat("no-auth-event")}const gn=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,yn=/^https?/;async function vn(e){if(e.config.emulator)return;const{authorizedDomains:t}=await async function(e){return A(e,"GET","/v1/projects",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}(e);for(const r of t)try{if(bn(r))return}catch(n){}f(e,"unauthorized-domain")}function bn(e){const t=x(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const o=new URL(e);return""===o.hostname&&""===r?"chrome-extension:"===n&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===n&&o.hostname===r}if(!yn.test(n))return!1;if(gn.test(e))return r===e;const o=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+o+"|"+o+")$","i").test(r)}const wn=new E(3e4,6e4);function xn(){const e=Mt().___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}let kn=null;function Sn(e){return kn=kn||function(e){return new Promise(((t,n)=>{var r,o,i;function a(){xn(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{xn(),n(p(e,"network-request-failed"))},timeout:wn.get()})}if(null===(o=null===(r=Mt().gapi)||void 0===r?void 0:r.iframes)||void 0===o?void 0:o.Iframe)t(gapi.iframes.getContext());else{if(!(null===(i=Mt().gapi)||void 0===i?void 0:i.load)){const t=be("iframefcb");return Mt()[t]=()=>{gapi.load?a():n(p(e,"network-request-failed"))},ve("https://apis.google.com/js/api.js?onload=".concat(t)).catch((e=>n(e)))}a()}})).catch((e=>{throw kn=null,e}))}(e),kn}const En=new E(5e3,15e3),Cn="__/auth/iframe",_n="emulator/auth/iframe",Tn={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},On=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function In(e){const t=e.config;v(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?C(t,_n):"https://".concat(e.config.authDomain,"/").concat(Cn),i={apiKey:t.apiKey,appName:e.n
2ame,v:o.Jn},a=On.get(e.config.apiHost);a&&(i.eid=a);const s=e._getFrameworks();return s.length&&(i.fw=s.join(",")),"".concat(n,"?").concat((0,r.xO)(i).slice(1))}const An={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Pn{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}function Rn(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:600;const a=Math.max((window.screen.availHeight-i)/2,0).toString(),s=Math.max((window.screen.availWidth-o)/2,0).toString();let l="";const c=Object.assign(Object.assign({},An),{width:o.toString(),height:i.toString(),top:a,left:s}),u=(0,r.z$)().toLowerCase();n&&(l=ie(u)?"_blank":n),re(u)&&(t=t||"http://localhost",c.scrollbars="yes");const d=Object.entries(c).reduce(((e,t)=>{let[n,r]=t;return"".concat(e).concat(n,"=").concat(r,",")}),"");if(function(){var e;return ue(arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.z$)())&&!!(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 Pn(null);const h=window.open(t||"",l,d);v(h,e,"popup-blocked");try{h.focus()}catch(f){}return new Pn(h)}const Nn="__/auth/handler",Dn="emulator/auth/handler",Mn=encodeURIComponent("fac");async function Ln(e,t,n,i,a,s){v(e.config.authDomain,e,"auth-domain-config-required"),v(e.config.apiKey,e,"invalid-api-key");const l={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:i,v:o.Jn,eventId:a};if(t instanceof Fe){t.setDefaultLanguage(e.languageCode),l.providerId=t.providerId||"",(0,r.xb)(t.getCustomParameters())||(l.customParameters=JSON.stringify(t.getCustomParameters()));for(const[e,t]of Object.entries(s||{}))l[e]=t}if(t instanceof ze){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?"#".concat(Mn,"=").concat(encodeURIComponent(u)):"";return"".concat(function(e){let{config:t}=e;if(!t.emulator)return"https://".concat(t.authDomain,"/").concat(Nn);return C(t,Dn)}(e),"?").concat((0,r.xO)(c).slice(1)).concat(d)}const Zn="webStorageSupport";const jn=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Pt,this._completeRedirectFn=hn,this._overrideRedirectResult=cn}async _openPopup(e,t,n,r){var o;w(null===(o=this.eventManagers[e._key()])||void 0===o?void 0:o.manager,"_initialize() not called before _openPopup()");return Rn(e,await Ln(e,t,n,x(),r),Nt())}async _openRedirect(e,t,n,r){await this._originValidation(e);return function(e){Mt().location.href=e}(await Ln(e,t,n,x(),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):(w(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 async function(e){const t=await Sn(e),n=Mt().gapi;return v(n,e,"internal-error"),t.open({where:document.body,url:In(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Tn,dontclear:!0},(t=>new Promise((async(n,r)=>{await t.restyle({setHideOnLeave:!1});const o=p(e,"network-request-failed"),i=Mt().setTimeout((()=>{r(o)}),En.get());function a(){Mt().clearTimeout(i),n(t)}t.ping(a).then(a,(()=>{r(o)}))}))))}(e),n=new fn(e);return t.register("authEvent",(t=>{v(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(Zn,{type:Zn},(n=>{var r;const o=null===(r=null===n||void 0===n?void 0:n[0])||void 0===r?void 0:r[Zn];void 0!==o&&t(!!o),f(e,"internal-error")}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=vn(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return de()||oe()||ue()}};var Fn="@firebase/auth",zn="1.4.0";class Un{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(){v(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const Bn=(0,r.Pz)("authIdTokenMaxAge")||300;let Vn=null;const Hn=e=>async t=>{const n=t&&await t.getIdTokenResult(),r=n&&((new Date).getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>Bn)return;const o=null===n||void 0===n?void 0:n.token;Vn!==o&&(Vn=o,await fetch(e,{method:o?"POST":"DELETE",headers:o?{Authorization:"Bearer ".concat(o)}:{}}))};function Wn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.Mq)();const t=(0,o.qX)(e,"auth");if(t.isInitialized())return t.getImmediate();const n=function(e,t){const n=(0,o.qX)(e,"auth");if(n.isInitialized()){const e=n.getImmediate(),o=n.getOptions();if((0,r.vZ)(o,null!==t&&void 0!==t?t:{}))return e;f(e,"already-initialized")}return n.initialize({options:t})}(e,{popupRedirectResolver:jn,persistence:[qt,It,Pt]}),i=(0,r.Pz)("authTokenSyncURL");if(i){const e=Hn(i);!function(e,t,n){(0,r.m9)(e).beforeAuthStateChanged(t,n)}(n,e,(()=>e(n.currentUser))),function(e,t,n,o){(0,r.m9)(e).onIdTokenChanged(t,n,o)}(n,(t=>e(t)))}const a=(0,r.q4)("auth");return a&&Se(n,"http://".concat(a)),n}var qn;qn="Browser",(0,o.Xd)(new s.wA("auth",((e,t)=>
2{let{options:n}=t;const r=e.getProvider("app").getImmediate(),o=e.getProvider("heartbeat"),i=e.getProvider("app-check-internal"),{apiKey:a,authDomain:s}=r.options;v(a&&!a.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:a,authDomain:s,clientPlatform:qn,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:he(qn)},c=new me(r,o,i,l);return function(e,t){const n=(null===t||void 0===t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map($);(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,o.Xd)(new s.wA("auth-internal",(e=>(e=>new Un(e))(ge(e.getProvider("auth").getImmediate()))),"PRIVATE").setInstantiationMode("EXPLICIT")),(0,o.KN)(Fn,zn,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(qn)),(0,o.KN)(Fn,zn,"esm2017")},30276:(e,t,n)=>{"use strict";n.d(t,{oq:()=>ee,cF:()=>ne,aF:()=>J,iH:()=>te});var r=n(67825),o=n(85854),i=n(23258);const a="firebasestorage.googleapis.com",s="storageBucket";class l extends o.ZR{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;super(d(e),"Firebase Storage: ".concat(t," (").concat(d(e),")")),this.status_=n,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,l.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return d(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message="".concat(this._baseMessage,"\n").concat(this.customData.serverResponse):this.message=this._baseMessage}}var c,u;function d(e){return"storage/"+e}function h(){return new l(c.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function f(){return new l(c.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function p(){return new l(c.CANCELED,"User canceled the upload/download.")}function m(e){return new l(c.INVALID_ARGUMENT,e)}function g(){return new l(c.APP_DELETED,"The Firebase app was deleted.")}function y(e){throw new l(c.INTERNAL_ERROR,"Internal error: "+e)}!function(e){e.UNKNOWN="unknown",e.OBJECT_NOT_FOUND="object-not-found",e.BUCKET_NOT_FOUND="bucket-not-found",e.PROJECT_NOT_FOUND="project-not-found",e.QUOTA_EXCEEDED="quota-exceeded",e.UNAUTHENTICATED="unauthenticated",e.UNAUTHORIZED="unauthorized",e.UNAUTHORIZED_APP="unauthorized-app",e.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",e.INVALID_CHECKSUM="invalid-checksum",e.CANCELED="canceled",e.INVALID_EVENT_NAME="invalid-event-name",e.INVALID_URL="invalid-url",e.INVALID_DEFAULT_BUCKET="invalid-default-bucket",e.NO_DEFAULT_BUCKET="no-default-bucket",e.CANNOT_SLICE_BLOB="cannot-slice-blob",e.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",e.NO_DOWNLOAD_URL="no-download-url",e.INVALID_ARGUMENT="invalid-argument",e.INVALID_ARGUMENT_COUNT="invalid-argument-count",e.APP_DELETED="app-deleted",e.INVALID_ROOT_OPERATION="invalid-root-operation",e.INVALID_FORMAT="invalid-format",e.INTERNAL_ERROR="internal-error",e.UNSUPPORTED_ENVIRONMENT="unsupported-environment"}(c||(c={}));class v{constructor(e,t){this.bucket=e,this.path_=t}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){const e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(e,t){let n;try{n=v.makeFromUrl(e,t)}catch(o){return new v(e,"")}if(""===n.path)return n;throw r=e,new l(c.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+r+"'.");var r}static makeFromUrl(e,t){let n=null;const r="([A-Za-z0-9.\\-_]+)";const o=new RegExp("^gs://"+r+"(/(.*))?$","i");function i(e){e.path_=decodeURIComponent(e.path)}const s=t.replace(/[.]/g,"\\."),u=[{regex:o,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:new RegExp("^https?://".concat(s,"/").concat("v[A-Za-z0-9_]+","/b/").concat(r,"/o").concat("(/([^?#]*).*)?$"),"i"),indices:{bucket:1,path:3},postModify:i},{regex:new RegExp("^https?://".concat(t===a?"(?:storage.googleapis.com|storage.cloud.google.com)":t,"/").concat(r,"/").concat("([^?#]*)"),"i"),indices:{bucket:1,path:2},postModify:i}];for(let a=0;a<u.length;a++){const t=u[a],r=t.regex.exec(e);if(r){const e=r[t.indices.bucket];let o=r[t.indices.path];o||(o=""),n=new v(e,o),t.postModify(n);break}}if(null==n)throw function(e){return new l(c.INVALID_URL,"Invalid URL '"+e+"'.")}(e);return n}}class b{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(){}}function w(e,t,n,r){if(r<t)throw m("Invalid value for '".concat(e,"'. Expected ").concat(t," or greater."));if(r>n)throw m("Invalid value for '".concat(e,"'. Expected ").concat(n," or less."))}function x(e,t,n){let r=t;return null==n&&(r="https://".concat(t)),"".concat(n,"://").concat(r,"/v0").concat(e)}function k(e){const t=encodeURIComponent;let n="?";for(const r in e)if(e.hasOwnProperty(r)){n=n+(t(r)+"="+t(e[r]))+"&"}return n=n.slice(0,-1),n}function S(e,t){const n=e>=500&&e<600,r=-1!==[408,429].indexOf(e),o=-1!==t.indexOf(e);return n||r||o}
2!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"}(u||(u={}));class E{constructor(e,t,n,r,o,i,a,s,l,c,u){let d=!(arguments.length>11&&void 0!==arguments[11])||arguments[11];this.url_=e,this.method_=t,this.headers_=n,this.body_=r,this.successCodes_=o,this.additionalRetryCodes_=i,this.callback_=a,this.errorCallback_=s,this.timeout_=l,this.progressCallback_=c,this.connectionFactory_=u,this.retry=d,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise(((e,t)=>{this.resolve_=e,this.reject_=t,this.start_()}))}start_(){const e=(e,t)=>{if(t)return void e(!1,new C(!1,null,!0));const n=this.connectionFactory_();this.pendingConnection_=n;const r=e=>{const t=e.loaded,n=e.lengthComputable?e.total:-1;null!==this.progressCallback_&&this.progressCallback_(t,n)};null!==this.progressCallback_&&n.addUploadProgressListener(r),n.send(this.url_,this.method_,this.body_,this.headers_).then((()=>{null!==this.progressCallback_&&n.removeUploadProgressListener(r),this.pendingConnection_=null;const t=n.getErrorCode()===u.NO_ERROR,o=n.getStatus();if(!t||S(o,this.additionalRetryCodes_)&&this.retry){const t=n.getErrorCode()===u.ABORT;return void e(!1,new C(!1,null,t))}const i=-1!==this.successCodes_.indexOf(o);e(!0,new C(i,n))}))},t=(e,t)=>{const n=this.resolve_,r=this.reject_,o=t.connection;if(t.wasSuccessCode)try{const e=this.callback_(o,o.getResponse());void 0!==e?n(e):n()}catch(i){r(i)}else if(null!==o){const e=h();e.serverResponse=o.getErrorText(),this.errorCallback_?r(this.errorCallback_(o,e)):r(e)}else if(t.canceled){r(this.appDelete_?g():p())}else{r(f())}};this.canceled_?t(0,new C(!1,null,!0)):this.backoffId_=function(e,t,n){let r=1,o=null,i=null,a=!1,s=0;function l(){return 2===s}let c=!1;function u(){if(!c){c=!0;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.apply(null,n)}}function d(t){o=setTimeout((()=>{o=null,e(f,l())}),t)}function h(){i&&clearTimeout(i)}function f(e){if(c)return void h();for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(e)return h(),void u.call(null,e,...n);if(l()||a)return h(),void u.call(null,e,...n);let i;r<64&&(r*=2),1===s?(s=2,i=0):i=1e3*(r+Math.random()),d(i)}let p=!1;function m(e){p||(p=!0,h(),c||(null!==o?(e||(s=2),clearTimeout(o),d(0)):e||(s=1)))}return d(0),i=setTimeout((()=>{a=!0,m(!0)}),n),m}(e,t,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class C{constructor(e,t,n){this.wasSuccessCode=e,this.connection=t,this.canceled=!!n}}function _(e){let t;try{t=JSON.parse(e)}catch(r){return null}return"object"!==typeof(n=t)||Array.isArray(n)?null:t;var n}function T(e){const t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}const O="prefixes",I="items";function A(e,t,n){const r=_(n);if(null===r)return null;return function(e,t,n){const r={prefixes:[],items:[],nextPageToken:n.nextPageToken};if(n[O])for(const o of n[O]){const n=o.replace(/\/$/,""),i=e._makeStorageReference(new v(t,n));r.prefixes.push(i)}if(n[I])for(const o of n[I]){const n=e._makeStorageReference(new v(t,o.name));r.items.push(n)}return r}(e,t,r)}class P{constructor(e,t,n,r){this.url=e,this.method=t,this.handler=n,this.timeout=r,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}function R(e){if(!e)throw h()}function N(e){return function(t,n){let r;var o,i;return 401===t.getStatus()?r=t.getErrorText().includes("Firebase App Check token is invalid")?new l(c.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project."):new l(c.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(i=e.bucket,r=new l(c.QUOTA_EXCEEDED,"Quota for bucket '"+i+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(o=e.path,r=new l(c.UNAUTHORIZED,"User does not have permission to access '"+o+"'.")):r=n,r.status=t.getStatus(),r.serverResponse=n.serverResponse,r}}function D(e){const t=N(e);return function(n,r){let o=t(n,r);var i;
2return 404===n.getStatus()&&(i=e.path,o=new l(c.OBJECT_NOT_FOUND,"Object '"+i+"' does not exist.")),o.serverResponse=r.serverResponse,o}}function M(e,t,n,r,o){const i={};t.isRoot?i.prefix="":i.prefix=t.path+"/",n&&n.length>0&&(i.delimiter=n),r&&(i.pageToken=r),o&&(i.maxResults=o);const a=x(t.bucketOnlyServerUrl(),e.host,e._protocol),s=e.maxOperationRetryTime,l=new P(a,"GET",function(e,t){return function(n,r){const o=A(e,t,r);return R(null!==o),o}}(e,t.bucket),s);return l.urlParams=i,l.errorHandler=N(t),l}let L=null;class Z{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=u.NO_ERROR,this.sendPromise_=new Promise((e=>{this.xhr_.addEventListener("abort",(()=>{this.errorCode_=u.ABORT,e()})),this.xhr_.addEventListener("error",(()=>{this.errorCode_=u.NETWORK_ERROR,e()})),this.xhr_.addEventListener("load",(()=>{e()}))}))}send(e,t,n,r){if(this.sent_)throw y("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(t,e,!0),void 0!==r)for(const o in r)r.hasOwnProperty(o)&&this.xhr_.setRequestHeader(o,r[o].toString());return void 0!==n?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw y("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw y("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return-1}}getResponse(){if(!this.sent_)throw y("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw y("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(e){return this.xhr_.getResponseHeader(e)}addUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",e)}removeUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",e)}}class j extends Z{initXhr(){this.xhr_.responseType="text"}}function F(){return L?L():new j}class z{constructor(e,t){this._service=e,this._location=t instanceof v?t:v.makeFromUrl(t,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,t){return new z(e,t)}get root(){const e=new v(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return T(this._location.path)}get storage(){return this._service}get parent(){const e=function(e){if(0===e.length)return null;const t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this._location.path);if(null===e)return null;const t=new v(this._location.bucket,e);return new z(this._service,t)}_throwIfRoot(e){if(""===this._location.path)throw function(e){return new l(c.INVALID_ROOT_OPERATION,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(e)}}function U(e){const t={prefixes:[],items:[]};return B(e,t).then((()=>t))}async function B(e,t,n){const r={pageToken:n},o=await V(e,r);t.prefixes.push(...o.prefixes),t.items.push(...o.items),null!=o.nextPageToken&&await B(e,t,o.nextPageToken)}function V(e,t){null!=t&&"number"===typeof t.maxResults&&w("options.maxResults",1,1e3,t.maxResults);const n=t||{},r=M(e.storage,e._location,"/",n.pageToken,n.maxResults);return e.storage.makeRequestWithTokens(r,F)}function H(e){e._throwIfRoot("deleteObject");const t=function(e,t){const n=x(t.fullServerUrl(),e.host,e._protocol),r=e.maxOperationRetryTime,o=new P(n,"DELETE",(function(e,t){}),r);return o.successCodes=[200,204],o.errorHandler=D(t),o}(e.storage,e._location);return e.storage.makeRequestWithTokens(t,F)}function W(e,t){const n=function(e,t){const n=t.split("/").filter((e=>e.length>0)).join("/");return 0===e.length?n:e+"/"+n}(e._location.path,t),r=new v(e._location.bucket,n);return new z(e.storage,r)}function q(e,t){if(e instanceof Q){const n=e;if(null==n._bucket)throw new l(c.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+s+"' property when initializing the app?");const r=new z(n,n._bucket);return null!=t?q(r,t):r}return void 0!==t?W(e,t):e}function G(e,t){if(t&&/^[A-Za-z]+:\/\//.test(t)){if(e instanceof Q)return new z(e,t);throw m("To use ref(service, url), the first argument must be a Storage instance.")}return q(e,t)}function K(e,t){const n=null===t||void 0===t?void 0:t[s];return null==n?null:v.makeFromBucketSpec(n,e)}class Q{constructor(e,t,n,r,o){this.app=e,this._authProvider=t,this._appCheckProvider=n,this._url=r,this._firebaseVersion=o,this._bucket=null,this._host=a,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=r?v.makeFromBucketSpec(r,this._host):K(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,null!=this._url?this._bucket=v.makeFromBucketSpec(this._url,e):this._bucket=K(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){w("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){w("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;const e=this._authProvider.getImmediate({optional:!0});if(e){const t=await e.getToken();if(null!==t)return t.accessToken}return null}async _getAppCheckToken(){const e=this._appCheckProvider.getImmediate({optional:!0});if(e){return(await e.getToken()).token}return null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEac
2h((e=>e.cancel())),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new z(this,e)}_makeRequest(e,t,n,r){let o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(this._deleted)return new b(g());{const i=function(e,t,n,r,o,i){let a=!(arguments.length>6&&void 0!==arguments[6])||arguments[6];const s=k(e.urlParams),l=e.url+s,c=Object.assign({},e.headers);return function(e,t){t&&(e["X-Firebase-GMPID"]=t)}(c,t),function(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}(c,n),function(e,t){e["X-Firebase-Storage-Version"]="webjs/"+(null!==t&&void 0!==t?t:"AppManager")}(c,i),function(e,t){null!==t&&(e["X-Firebase-AppCheck"]=t)}(c,r),new E(l,e.method,c,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,o,a)}(e,this._appId,n,r,t,this._firebaseVersion,o);return this._requests.add(i),i.getPromise().then((()=>this._requests.delete(i)),(()=>this._requests.delete(i))),i}}async makeRequestWithTokens(e,t){const[n,r]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,t,n,r).getPromise()}}const Y="@firebase/storage",$="0.11.2",X="storage";function J(e){return U(e=(0,o.m9)(e))}function ee(e){return H(e=(0,o.m9)(e))}function te(e,t){return G(e=(0,o.m9)(e),t)}function ne(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.Mq)(),t=arguments.length>1?arguments[1]:void 0;e=(0,o.m9)(e);const n=(0,r.qX)(e,X).getImmediate({identifier:t}),i=(0,o.P0)("storage");return i&&function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};!function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e.host="".concat(t,":").concat(n),e._protocol="http";const{mockUserToken:i}=r;i&&(e._overrideAuthToken="string"===typeof i?i:(0,o.Sg)(i,e.app.options.projectId))}(e,t,n,r)}(n,...i),n}function re(e,t){let{instanceIdentifier:n}=t;const o=e.getProvider("app").getImmediate(),i=e.getProvider("auth-internal"),a=e.getProvider("app-check-internal");return new Q(o,i,a,n,r.Jn)}(0,r.Xd)(new i.wA(X,re,"PUBLIC").setMultipleInstances(!0)),(0,r.KN)(Y,$,""),(0,r.KN)(Y,$,"esm2017")},97645:(e,t,n)=>{"use strict";n.d(t,{KO:()=>d});var r=n(72791),o=n(1330);const i=(0,r.createContext)(void 0),a=e=>{const t=(0,r.useContext)(i);return(null==e?void 0:e.store)||t||(0,o.K7)()},s=e=>"function"===typeof(null==e?void 0:e.then),l=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)});function c(e,t){const n=a(t),[[o,i,c],u]=(0,r.useReducer)((t=>{const r=n.get(e);return Object.is(t[0],r)&&t[1]===n&&t[2]===e?t:[r,n,e]}),void 0,(()=>[n.get(e),n,e]));let d=o;i===n&&c===e||(u(),d=n.get(e));const h=null==t?void 0:t.delay;return(0,r.useEffect)((()=>{const t=n.sub(e,(()=>{"number"!==typeof h?u():setTimeout(u,h)}));return u(),t}),[n,e,h]),(0,r.useDebugValue)(d),s(d)?l(d):d}function u(e,t){const n=a(t),o=(0,r.useCallback)((function(){if(!("write"in e))throw new Error("not writable atom");for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return n.set(e,...r)}),[n,e]);return o}function d(e,t){return[c(e,t),u(e,t)]}},1330:(e,t,n)=>{"use strict";n.d(t,{K7:()=>y,cn:()=>o});let r=0;function o(e,t){const n="atom".concat(++r),o={toString:()=>n};return"function"===typeof e?o.read=e:(o.init=e,o.read=function(e){return e(this)},o.write=function(e,t,n){return t(this,"function"===typeof n?n(e(this)):n)}),t&&(o.write=t),o}const i=e=>"init"in e,a=e=>!!e.write,s=new WeakMap,l=(e,t)=>{const n=s.get(e);n&&(s.delete(e),n(t))},c=(e,t)=>{e.status="fulfilled",e.value=t},u=(e,t)=>
2{e.status="rejected",e.reason=t},d=(e,t)=>!!e&&"v"in e&&"v"in t&&Object.is(e.v,t.v),h=(e,t)=>!!e&&"e"in e&&"e"in t&&Object.is(e.e,t.e),f=e=>!!e&&"v"in e&&e.v instanceof Promise,p=e=>{if("e"in e)throw e.e;return e.v},m=()=>{const e=new WeakMap,t=new WeakMap,n=new Map;let r,o;r=new Set,o=new Set;const m=t=>e.get(t),g=(t,r)=>{Object.freeze(r);const o=e.get(t);if(e.set(t,r),n.has(t)||n.set(t,o),f(o)){const e="v"in r?r.v instanceof Promise?r.v:Promise.resolve(r.v):Promise.reject(r.e);o.v!==e&&l(o.v,e)}},y=(e,t,n)=>{const r=new Map;let o=!1;n.forEach(((n,i)=>{n||i!==e||(n=t),n?(r.set(i,n),t.d.get(i)!==n&&(o=!0)):console.warn("[Bug] atom state not found")})),(o||t.d.size!==r.size)&&(t.d=r)},v=(e,t,n)=>{const r=m(e),o={d:(null==r?void 0:r.d)||new Map,v:t};if(n&&y(e,o,n),d(r,o)&&r.d===o.d)return r;if(f(r)&&f(o)&&(a=o,"v"in(i=r)&&"v"in a&&i.v.orig&&i.v.orig===a.v.orig)){if(r.d===o.d)return r;o.v=r.v}var i,a;return g(e,o),o},b=(e,n,r,o)=>{if("function"===typeof(null==(i=n)?void 0:i.then)){let i;const a=()=>{const n=m(e);if(!f(n)||n.v!==l)return;const o=v(e,l,r);t.has(e)&&n.d!==o.d&&O(e,o,n.d)},l=new Promise(((e,t)=>{let r=!1;n.then((t=>{r||(r=!0,c(l,t),e(t),a())}),(e=>{r||(r=!0,u(l,e),t(e),a())})),i=t=>{r||(r=!0,t.then((e=>c(l,e)),(e=>u(l,e))),e(t))}}));return l.orig=n,l.status="pending",((e,t)=>{s.set(e,t),e.catch((()=>{})).finally((()=>s.delete(e)))})(l,(e=>{e&&i(e),null==o||o()})),v(e,l,r)}var i;return v(e,n,r)},w=(e,n)=>{const r=m(e);if(!n&&r){if(t.has(e))return r;if(Array.from(r.d).every((t=>{let[n,r]=t;if(n===e)return!0;const o=w(n);return o===r||d(o,r)})))return r}const o=new Map;let s=!0;const l=t=>{if(t===e){const e=m(t);if(e)return o.set(t,e),p(e);if(i(t))return o.set(t,void 0),t.init;throw new Error("no atom init")}const n=w(t);return o.set(t,n),p(n)};let c,u;const f={get signal(){return c||(c=new AbortController),c.signal},get setSelf(){return a(e)||console.warn("setSelf function cannot be used with read-only atom"),!u&&a(e)&&(u=function(){if(s&&console.warn("setSelf function cannot be called in sync"),!s){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return C(e,...n)}}),u}};try{const t=e.read(l,f);return b(e,t,o,(()=>null==c?void 0:c.abort()))}catch(v){return((e,t,n)=>{const r=m(e),o={d:(null==r?void 0:r.d)||new Map,e:t};return n&&y(e,o,n),h(r,o)&&r.d===o.d?r:(g(e,o),o)})(e,v,o)}finally{s=!1}},x=e=>p(w(e)),k=(e,t)=>!t.l.size&&(!t.t.size||1===t.t.size&&t.t.has(e)),S=e=>{const r=new Map,o=new WeakMap,i=e=>{var r;const o=new Set(null==(r=t.get(e))?void 0:r.t);return n.forEach(((t,n)=>{var r;(null==(r=m(n))?void 0:r.d.has(e))&&o.add(n)})),o},a=e=>{i(e).forEach((t=>{t!==e&&(r.set(t,(r.get(t)||new Set).add(e)),o.set(t,(o.get(t)||0)+1),a(t))}))};a(e);const s=e=>{i(e).forEach((t=>{var n;if(t!==e){let e=o.get(t);if(e&&o.set(t,--e),!e){let e=!!(null==(n=r.get(t))?void 0:n.size);if(e){const n=m(t),r=w(t,!0);e=!d(n,r)}e||r.forEach((e=>e.delete(t)))}s(t)}}))};s(e)},E=function(e){let t=!0;for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];const s=e.write((e=>p(w(e))),(function(n){let o;for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];if(n===e){if(!i(n))throw new Error("atom not writable");const e=m(n),t=b(n,s[0]);d(e,t)||S(n)}else o=E(n,...s);if(!t){const e=I();r.forEach((t=>t({type:"async-write",flushed:e})))}return o}),...o);return t=!1,s},C=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];const i=E(e,...n),a=I();return r.forEach((e=>e({type:"write",flushed:a}))),i},_=(e,n,r)=>{var i;const s=r||[];null==(i=m(e))||i.d.forEach(((n,r)=>{const o=t.get(r);o?o.t.add(e):r!==e&&_(r,e,s)})),w(e);const l={t:new Set(n&&[n]),l:new Set};if(t.set(e,l),o.add(e),a(e)&&e.onMount){const{onMount:t}=e;s.push((()=>{const n=t((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return C(e,...n)}));n&&(l.u=n)}))}
2return r||s.forEach((e=>e())),l},T=e=>{var n;const r=null==(n=t.get(e))?void 0:n.u;r&&r(),t.delete(e),o.delete(e);const i=m(e);i?(f(i)&&l(i.v),i.d.forEach(((n,r)=>{if(r!==e){const n=t.get(r);n&&(n.t.delete(e),k(r,n)&&T(r))}}))):console.warn("[Bug] could not find atom state to unmount",e)},O=(e,n,r)=>{const o=new Set(n.d.keys());null==r||r.forEach(((n,r)=>{if(o.has(r))return void o.delete(r);const i=t.get(r);i&&(i.t.delete(e),k(r,i)&&T(r))})),o.forEach((n=>{const r=t.get(n);r?r.t.add(e):t.has(e)&&_(n,e)}))},I=()=>{let e;for(e=new Set;n.size;){const r=Array.from(n);n.clear(),r.forEach((n=>{let[r,o]=n;const i=m(r);if(i){const n=t.get(r);n&&i.d!==(null==o?void 0:o.d)&&O(r,i,null==o?void 0:o.d),n&&(f(o)||!d(o,i)&&!h(o,i))&&(n.l.forEach((e=>e())),e.add(r))}else console.warn("[Bug] no atom state to flush")}))}return e},A=(e,n)=>{const o=(e=>{let n=t.get(e);return n||(n=_(e)),n})(e),i=I(),a=o.l;return a.add(n),r.forEach((e=>e({type:"sub",flushed:i}))),()=>{a.delete(n),(e=>{const n=t.get(e);n&&k(e,n)&&T(e)})(e),r.forEach((e=>e({type:"unsub"})))}};return{get:x,set:C,sub:A,dev_subscribe_store:(e,t)=>{if(2!==t)throw new Error("The current StoreListener revision is 2.");return r.add(e),()=>{r.delete(e)}},dev_get_mounted_atoms:()=>o.values(),dev_get_atom_state:t=>e.get(t),dev_get_mounted:e=>t.get(e),dev_restore_atoms:e=>{for(const[n,r]of e)i(n)&&(b(n,r),S(n));const t=I();r.forEach((e=>e({type:"restore",flushed:t})))}}};let g;"number"===typeof globalThis.__NUMBER_OF_JOTAI_INSTANCES__?++globalThis.__NUMBER_OF_JOTAI_INSTANCES__:globalThis.__NUMBER_OF_JOTAI_INSTANCES__=1;const y=()=>(g||(1!==globalThis.__NUMBER_OF_JOTAI_INSTANCES__&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"),g=m()),g)},61134:(e,t,n)=>{"use strict";n.d(t,{cI:()=>Oe});var r=n(1413),o=n(45987),i=n(72791);const a=["name"],s=["_f"],l=["_f"];var c=e=>"checkbox"===e.type,u=e=>e instanceof Date,d=e=>null==e;const h=e=>"object"===typeof e;var f=e=>!d(e)&&!Array.isArray(e)&&h(e)&&!u(e),p=e=>f(e)&&e.target?c(e.target)?e.target.checked:e.target.value:e,m=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),g=e=>{const t=e.constructor&&e.constructor.prototype;return f(t)&&t.hasOwnProperty("isPrototypeOf")},y="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function v(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(y&&(e instanceof Blob||e instanceof FileList)||!n&&!f(e))return e;if(t=n?[]:{},n||g(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=v(e[n]));else t=e}return t}var b=e=>Array.isArray(e)?e.filter(Boolean):[],w=e=>void 0===e,x=(e,t,n)=>{if(!t||!f(e))return n;const r=b(t.split(/[,[\].]+?/)).reduce(((e,t)=>d(e)?e:e[t]),e);return w(r)||r===e?w(e[t])?n:e[t]:r},k=e=>"boolean"===typeof e;const S={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},E={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},C="max",_="min",T="maxLength",O="minLength",I="pattern",A="required",P="validate";i.createContext(null);var R=function(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const o=i;return t._proxyFormState[o]!==E.all&&(t._proxyFormState[o]=!r||E.all),n&&(n[o]=!0),e[o]}});return o},N=e=>f(e)&&!Object.keys(e).length,D=(e,t,n,r)=>{n(e);const{name:i}=e,s=(0,o.Z)(e,a);return N(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find((e=>t[e]===(!r||E.all)))},M=e=>Array.isArray(e)?e:[e];function L(e){const t=i.useRef(e);t.current=e,i.useEffect((()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}var Z=e=>"string"===typeof e,j=(e,t,n,r,o)=>Z(e)?(r&&t.watch.add(e),x(n,e,o)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),x(n,e)))):(r&&(t.watchAll=!0),n);var F=e=>/^\w*$/.test(e),z=e=>b(e.replace(/["|']|\]/g,"").split(/\.|\[/));function U(e,t,n){let r=-1;const o=F(t)?[t]:z(t),i=o.length,a=i-1;for(;++r<i;){const t=o[r];let i=n;if(r!==a){const n=e[t];i=f(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}e[t]=i,e=e[t]}return e}var B=(e,t,n,o,i)=>t?(0,r.Z)((0,r.Z)({},n[e]),{},{types:(0,r.Z)((0,r.Z)({},n[e]&&n[e].types?n[e].types:{}),{},{[o]:i||!0})}):{},V=e=>({isOnSubmit:!e||e===E.onSubmit,isOnBlur:e===E.onBlur,isOnChange:e===E.onChange,isOnAll:e===E.all,isOnTouch:e===E.onTouched}),H=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const W=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const n=x(e,i);if(n){const{_f:e}=n,a=(0,o.Z)(n,s);if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r)break;
2if(e.ref&&t(e.ref,e.name)&&!r)break}else f(a)&&W(a,t)}}};var q=(e,t,n)=>{const r=b(x(e,n));return U(r,"root",t[n]),U(e,n,r),e},G=e=>"file"===e.type,K=e=>"function"===typeof e,Q=e=>{if(!y)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Y=e=>Z(e),$=e=>"radio"===e.type,X=e=>e instanceof RegExp;const J={value:!1,isValid:!1},ee={value:!0,isValid:!0};var te=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!w(e[0].attributes.value)?w(e[0].value)||""===e[0].value?ee:{value:e[0].value,isValid:!0}:ee:J}return J};const ne={isValid:!1,value:null};var re=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),ne):ne;function oe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"validate";if(Y(e)||Array.isArray(e)&&e.every(Y)||k(e)&&!e)return{type:n,message:Y(e)?e:"",ref:t}}var ie=e=>f(e)&&!X(e)?e:{value:e,message:""},ae=async(e,t,n,o,i)=>{const{ref:a,refs:s,required:l,maxLength:u,minLength:h,min:p,max:m,pattern:g,validate:y,name:v,valueAsNumber:b,mount:S,disabled:E}=e._f,R=x(t,v);if(!S||E)return{};const D=s?s[0]:a,M=e=>{o&&D.reportValidity&&(D.setCustomValidity(k(e)?"":e||""),D.reportValidity())},L={},j=$(a),F=c(a),z=j||F,U=(b||G(a))&&w(a.value)&&w(R)||Q(a)&&""===a.value||""===R||Array.isArray(R)&&!R.length,V=B.bind(null,v,n,L),H=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:T,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:O;const s=e?t:n;L[v]=(0,r.Z)({type:e?o:i,message:s,ref:a},V(e?o:i,s))};if(i?!Array.isArray(R)||!R.length:l&&(!z&&(U||d(R))||k(R)&&!R||F&&!te(s).isValid||j&&!re(s).isValid)){const{value:e,message:t}=Y(l)?{value:!!l,message:l}:ie(l);if(e&&(L[v]=(0,r.Z)({type:A,message:t,ref:D},V(A,t)),!n))return M(t),L}if(!U&&(!d(p)||!d(m))){let e,t;const r=ie(m),o=ie(p);if(d(R)||isNaN(R)){const n=a.valueAsDate||new Date(R),i=e=>new Date((new Date).toDateString()+" "+e),s="time"==a.type,l="week"==a.type;Z(r.value)&&R&&(e=s?i(R)>i(r.value):l?R>r.value:n>new Date(r.value)),Z(o.value)&&R&&(t=s?i(R)<i(o.value):l?R<o.value:n<new Date(o.value))}else{const n=a.valueAsNumber||(R?+R:R);d(r.value)||(e=n>r.value),d(o.value)||(t=n<o.value)}if((e||t)&&(H(!!e,r.message,o.message,C,_),!n))return M(L[v].message),L}if((u||h)&&!U&&(Z(R)||i&&Array.isArray(R))){const e=ie(u),t=ie(h),r=!d(e.value)&&R.length>+e.value,o=!d(t.value)&&R.length<+t.value;if((r||o)&&(H(r,e.message,t.message),!n))return M(L[v].message),L}if(g&&!U&&Z(R)){const{value:e,message:t}=ie(g);if(X(e)&&!R.match(e)&&(L[v]=(0,r.Z)({type:I,message:t,ref:a},V(I,t)),!n))return M(t),L}if(y)if(K(y)){const e=oe(await y(R,t),D);if(e&&(L[v]=(0,r.Z)((0,r.Z)({},e),V(P,e.message)),!n))return M(e.message),L}else if(f(y)){let e={};for(const o in y){if(!N(e)&&!n)break;const i=oe(await y[o](R,t),D,o);i&&(e=(0,r.Z)((0,r.Z)({},i),V(o,i.message)),M(i.message),n&&(L[v]=e))}if(!N(e)&&(L[v]=(0,r.Z)({ref:D},e),!n))return L}return M(!0),L};function se(e,t){const n=Array.isArray(t)?t:F(t)?[t]:z(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=w(e)?r++:e[t[r++]];return e}(e,n),o=n.length-1,i=n[o];return r&&delete r[i],0!==o&&(f(r)&&N(r)||Array.isArray(r)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!w(e[t]))return!1;return!0}(r))&&se(e,n.slice(0,-1)),e}function le(){let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}}var ce=e=>d(e)||!h(e);function ue(e,t){if(ce(e)||ce(t))return e===t;if(u(e)&&u(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const n=e[o];if(!r.includes(o))return!1;if("ref"!==o){const e=t[o];if(u(n)&&u(e)||f(n)&&f(e)||Array.isArray(n)&&Array.isArray(e)?!ue(n,e):n!==e)return!1}}return!0}var de=e=>"select-multiple"===e.type,he=e=>$(e)||c(e),fe=e=>Q(e)&&e.isConnected,pe=e=>{for(const t in e)if(K(e[t]))return!0;return!1};function me(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Array.isArray(e);if(f(e)||n)for(const r in e)Array.isArray(e[r])||f(e[r])&&!pe(e[r])?(t[r]=Array.isArray(e[r])?[]:{},me(e[r],t[r])):d(e[r])||(t[r]=!0);return t}function ge(e,t,n){const o=Array.isArray(e);if(f(e)||o)for(const i in e)Array.isArray(e[i])||f(e[i])&&!pe(e[i])?w(t)||ce(n[i])?n[i]=Array.isArray(e[i])?me(e[i],[]):(0,r.Z)({},me(e[i])):ge(e[i],d(t)?{}:t[i],n[i]):n[i]=!ue(e[i],t[i]);return n}var ye=(e,t)=>ge(e,t,me(t)),ve=(e,t)=>
2{let{valueAsNumber:n,valueAsDate:r,setValueAs:o}=t;return w(e)?e:n?""===e?NaN:e?+e:e:r&&Z(e)?new Date(e):o?o(e):e};function be(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return G(t)?t.files:$(t)?re(e.refs).value:de(t)?[...t.selectedOptions].map((e=>{let{value:t}=e;return t})):c(t)?te(e.refs).value:ve(w(t.value)?e.ref.value:t.value,e)}var we=(e,t,n,r)=>{const o={};for(const i of e){const e=x(t,i);e&&U(o,i,e._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},xe=e=>w(e)?e:X(e)?e.source:f(e)?X(e.value)?e.value.source:e.value:e,ke=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Se(e,t,n){const r=x(e,n);if(r||F(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const r=o.join("."),i=x(t,r),a=x(e,r);if(i&&!Array.isArray(i)&&n!==r)return{name:n};if(a&&a.type)return{name:r,error:a};o.pop()}return{name:n}}var Ee=(e,t,n,r,o)=>!o.isOnAll&&(!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:!(n?r.isOnChange:o.isOnChange)||e),Ce=(e,t)=>!b(x(e,t)).length&&se(e,t);const _e={mode:E.onSubmit,reValidateMode:E.onChange,shouldFocusError:!0};function Te(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,i=(0,r.Z)((0,r.Z)({},_e),t),a={submitCount:0,isDirty:!1,isLoading:K(i.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{},disabled:!1},s={},h=(f(i.defaultValues)||f(i.values))&&v(i.defaultValues||i.values)||{},g=i.shouldUnregister?{}:v(h),C={action:!1,mount:!1,watch:!1},_={mount:new Set,unMount:new Set,array:new Set,watch:new Set},T=0;const O={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},I={values:le(),array:le(),state:le()},A=t.resetOptions&&t.resetOptions.keepDirtyValues,P=V(i.mode),R=V(i.reValidateMode),D=i.criteriaMode===E.all,L=async e=>{if(O.isValid||e){const e=i.resolver?N((await $()).errors):await X(s,!0);e!==a.isValid&&I.state.next({isValid:e})}},F=e=>O.isValidating&&I.state.next({isValidating:e}),z=(e,t,n,r)=>{const o=x(s,e);if(o){const i=x(g,e,w(n)?x(h,e):n);w(i)||r&&r.defaultChecked||t?U(g,e,t?i:be(o._f)):te(e,i),C.mount&&L()}},B=(e,t,n,r,o)=>{let i=!1,s=!1;const l={name:e};if(!n||r){O.isDirty&&(s=a.isDirty,a.isDirty=l.isDirty=J(),i=s!==l.isDirty);const n=ue(x(h,e),t);s=x(a.dirtyFields,e),n?se(a.dirtyFields,e):U(a.dirtyFields,e,!0),l.dirtyFields=a.dirtyFields,i=i||O.dirtyFields&&s!==!n}if(n){const t=x(a.touchedFields,e);t||(U(a.touchedFields,e,n),l.touchedFields=a.touchedFields,i=i||O.touchedFields&&t!==n)}return i&&o&&I.state.next(l),i?l:{}},Y=(n,o,i,s)=>{const l=x(a.errors,n),c=O.isValid&&k(o)&&a.isValid!==o;var u;if(t.delayError&&i?(u=()=>((e,t)=>{U(a.errors,e,t),I.state.next({errors:a.errors})})(n,i),e=e=>{clearTimeout(T),T=setTimeout(u,e)},e(t.delayError)):(clearTimeout(T),e=null,i?U(a.errors,n,i):se(a.errors,n)),(i?!ue(l,i):l)||!N(s)||c){const e=(0,r.Z)((0,r.Z)((0,r.Z)({},s),c&&k(o)?{isValid:o}:{}),{},{errors:a.errors,name:n});a=(0,r.Z)((0,r.Z)({},a),e),I.state.next(e)}F(!1)},$=async e=>i.resolver(g,i.context,we(e||_.mount,s,i.criteriaMode,i.shouldUseNativeValidation)),X=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{valid:!0};for(const r in e){const s=e[r];if(s){const{_f:e}=s,r=(0,o.Z)(s,l);if(e){const r=_.array.has(e.name),o=await ae(s,g,D,i.shouldUseNativeValidation&&!t,r);if(o[e.name]&&(n.valid=!1,t))break;!t&&(x(o,e.name)?r?q(a.errors,o,e.name):U(a.errors,e.name,o[e.name]):se(a.errors,e.name))}r&&await X(r,t,n)}}return n.valid},J=(e,t)=>(e&&t&&U(g,e,t),!ue(me(),h)),ee=(e,t,n)=>j(e,_,(0,r.Z)({},C.mount?g:w(t)?h:Z(e)?{[e]:t}:t),n,t),te=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=x(s,e);let i=t;if(o){const n=o._f;n&&(!n.disabled&&U(g,e,ve(t,n)),i=Q(n.ref)&&d(t)?"":t,de(n.ref)?[...n.ref.options].forEach((e=>e.selected=i.includes(e.value))):n.refs?c(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):n.refs[0]&&(n.refs[0].checked=!!i):n.refs.forEac
2h((e=>e.checked=e.value===i)):G(n.ref)?n.ref.value="":(n.ref.value=i,n.ref.type||I.values.next({name:e,values:(0,r.Z)({},g)})))}(n.shouldDirty||n.shouldTouch)&&B(e,i,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&pe(e)},ne=(e,t,n)=>{for(const r in t){const o=t[r],i="".concat(e,".").concat(r),a=x(s,i);!_.array.has(e)&&ce(o)&&(!a||a._f)||u(o)?te(i,o,n):ne(i,o,n)}},re=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=x(s,e),l=_.array.has(e),c=v(t);U(g,e,c),l?(I.array.next({name:e,values:(0,r.Z)({},g)}),(O.isDirty||O.dirtyFields)&&o.shouldDirty&&I.state.next({name:e,dirtyFields:ye(h,g),isDirty:J(e,c)})):!i||i._f||d(c)?te(e,c,o):ne(e,c,o),H(e,_)&&I.state.next((0,r.Z)({},a)),I.values.next({name:e,values:(0,r.Z)({},g)}),!C.mount&&n()},oe=async t=>{const n=t.target;let o=n.name,l=!0;const c=x(s,o),u=e=>{l=Number.isNaN(e)||e===x(g,o,e)};if(c){let d,h;const f=n.type?be(c._f):p(t),m=t.type===S.BLUR||t.type===S.FOCUS_OUT,y=!ke(c._f)&&!i.resolver&&!x(a.errors,o)&&!c._f.deps||Ee(m,x(a.touchedFields,o),a.isSubmitted,R,P),v=H(o,_,m);U(g,o,f),m?(c._f.onBlur&&c._f.onBlur(t),e&&e(0)):c._f.onChange&&c._f.onChange(t);const b=B(o,f,m,!1),w=!N(b)||v;if(!m&&I.values.next({name:o,type:t.type,values:(0,r.Z)({},g)}),y)return O.isValid&&L(),w&&I.state.next((0,r.Z)({name:o},v?{}:b));if(!m&&v&&I.state.next((0,r.Z)({},a)),F(!0),i.resolver){const{errors:e}=await $([o]);if(u(f),l){const t=Se(a.errors,s,o),n=Se(e,s,t.name||o);d=n.error,o=n.name,h=N(e)}}else d=(await ae(c,g,D,i.shouldUseNativeValidation))[o],u(f),l&&(d?h=!1:O.isValid&&(h=await X(s,!0)));l&&(c._f.deps&&pe(c._f.deps),Y(o,h,d,b))}},ie=(e,t)=>{if(x(a.errors,t)&&e.focus)return e.focus(),1},pe=async function(e){let t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=M(e);if(F(!0),i.resolver){const r=await(async e=>{const{errors:t}=await $(e);if(e)for(const n of e){const e=x(t,n);e?U(a.errors,n,e):se(a.errors,n)}else a.errors=t;return t})(w(e)?e:l);t=N(r),n=e?!l.some((e=>x(r,e))):t}else e?(n=(await Promise.all(l.map((async e=>{const t=x(s,e);return await X(t&&t._f?{[e]:t}:t)})))).every(Boolean),(n||a.isValid)&&L()):n=t=await X(s);return I.state.next((0,r.Z)((0,r.Z)((0,r.Z)({},!Z(e)||O.isValid&&t!==a.isValid?{}:{name:e}),i.resolver||!e?{isValid:t}:{}),{},{errors:a.errors,isValidating:!1})),o.shouldFocus&&!n&&W(s,ie,e?l:_.mount),n},me=e=>{const t=(0,r.Z)((0,r.Z)({},h),C.mount?g:{});return w(e)?t:Z(e)?x(t,e):e.map((e=>x(t,e)))},ge=(e,t)=>({invalid:!!x((t||a).errors,e),isDirty:!!x((t||a).dirtyFields,e),isTouched:!!x((t||a).touchedFields,e),error:x((t||a).errors,e)}),Te=(e,t,n)=>{const o=(x(s,e,{_f:{}})._f||{}).ref;U(a.errors,e,(0,r.Z)((0,r.Z)({},t),{},{ref:o})),I.state.next({name:e,errors:a.errors,isValid:!1}),n&&n.shouldFocus&&o&&o.focus&&o.focus()},Oe=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const n of e?M(e):_.mount)_.mount.delete(n),_.array.delete(n),t.keepValue||(se(s,n),se(g,n)),!t.keepError&&se(a.errors,n),!t.keepDirty&&se(a.dirtyFields,n),!t.keepTouched&&se(a.touchedFields,n),!i.shouldUnregister&&!t.keepDefaultValue&&se(h,n);I.values.next({values:(0,r.Z)({},g)}),I.state.next((0,r.Z)((0,r.Z)({},a),t.keepDirty?{isDirty:J()}:{})),!t.keepIsValid&&L()},Ie=e=>{let{disabled:t,name:n,field:r,fields:o,value:i}=e;if(k(t)){const e=t?void 0:w(i)?be(r?r._f:x(o,n)._f):i;U(g,n,e),B(n,e,!1,!1,!0)}},Ae=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=x(s,e);const o=k(t.disabled);return U(s,e,(0,r.Z)((0,r.Z)({},n||{}),{},{_f:(0,r.Z)((0,r.Z)({},n&&n._f?n._f:{ref:{name:e}}),{},{name:e,mount:!0},t)})),_.mount.add(e),n?Ie({field:n,disabled:t.disabled,name:e}):z(e,!0,t.value),(0,r.Z)((0,r.Z)((0,r.Z)({},o?{disabled:t.disabled}:{}),i.progressive?{required:!!t.required,min:xe(t.min),max:xe(t.max),minLength:xe(t.minLength),maxLength:xe(t.maxLength),pattern:xe(t.pattern)}:{}),{},{name:e,onChange:oe,onBlur:oe,ref:o=>{if(o){Ae(e,t),n=x(s,e);const i=w(o.value)&&o.querySelectorAll&&o.querySelectorAll("input,select,textarea")[0]||o,a=he(i),l=n._f.refs||[];if(a?l.find((e=>e===i)):i===n._f.ref)return;U(s,e,{_f:(0,r.Z)((0,r.Z)({},n._f),a?{refs:[...l.filter(fe),i,...Array.isArray(x(h,e))?[{}]:[]],ref:{type:i.type,name:e}}:{ref:i})}),z(e,!1,void 0,i)}else n=x(s,e,{}),n._f&&(n._f.mount=!1),(i.shouldUnregister||t.shouldUnregister)&&(!m(_.array,e)||!C.action)&&_.unMount.add(e)}})},Pe=()=>i.shouldFocusError&&W(s,ie,_.mount),Re=(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let o=v(g);if(I.state.next({isSubmitting:!0}),i.resolver){const{errors:e,values:t}=await $();a.errors=e,o=t}else await X(s);se(a.errors,"root"),N(a.errors)?(I.state.next({errors:{}}),await e(o,n)):(t&&await t((0,r.Z)({},a.errors),n),Pe(),setTimeout(Pe)),I.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:N(a.errors),submitCount:a.submitCount+1,errors:a.errors})},Ne=function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=e?v(e):h,l=v(i),c=e&&!N(e)?l:h;if(o.keepDefaultValues||(h=i),!o.keepValues){if(o.keepDirtyValues||A)for(const e of _.mount)x(a.dirtyFields,e)?U(c,e,x(g,e)):re(e,x(c,e));else{if(y&&w(e))for(const e of _.mount){const t=x(s,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Q(e)){const t=e.closest("form");if(t){t.reset();break}}}}s={}}g=t.shouldUnregister?o.keepDefaultValues?v(h):{}:v(c),I.array.next({values:(0,r.Z)({},c)}),I.values.next({values:(0,r.Z)({},c)})}_={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!C.mount&&n(),C.mount=!O.isValid||!!o.keepIsValid,C.watch=!!t.shouldUnregister,I.state.next({submitCount:o.keepSubmitCount?a.submitCount:0,isDirty:o.keepDirty?a.isDirty:!(!o.keepDefaultValues||ue(e,h)),isSubmitted:!!o.keepIsSubmitted&&a.isSubmitted,dirtyFields:o.keepDirtyValues?a.dirtyFields:o.keepDefaultValues&&e?ye(h,e):{},touchedFields:o.keepTouched?a.touchedFields:{},errors:o.keepErrors?a.errors:{},isSubmitSuccessful:!!o.keepIsSubmitSuccessful&&a.isSubmitSuccessful,isSubmitting:!1})},De=(e,t)=>Ne(K(e)?e(g):e,t);return{control:{register:Ae,unregister:Oe,getFieldState:ge,handleSubmit:Re,setError:Te,_executeSchema:$,_getWatch:ee,_getDirty:J,_updateV
2alid:L,_removeUnmounted:()=>{for(const e of _.unMount){const t=x(s,e);t&&(t._f.refs?t._f.refs.every((e=>!fe(e))):!fe(t._f.ref))&&Oe(e)}_.unMount=new Set},_updateFieldArray:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(r&&n){if(C.action=!0,i&&Array.isArray(x(s,e))){const t=n(x(s,e),r.argA,r.argB);o&&U(s,e,t)}if(i&&Array.isArray(x(a.errors,e))){const t=n(x(a.errors,e),r.argA,r.argB);o&&U(a.errors,e,t),Ce(a.errors,e)}if(O.touchedFields&&i&&Array.isArray(x(a.touchedFields,e))){const t=n(x(a.touchedFields,e),r.argA,r.argB);o&&U(a.touchedFields,e,t)}O.dirtyFields&&(a.dirtyFields=ye(h,g)),I.state.next({name:e,isDirty:J(e,t),dirtyFields:a.dirtyFields,errors:a.errors,isValid:a.isValid})}else U(g,e,t)},_updateDisabledField:Ie,_getFieldArray:e=>b(x(C.mount?g:h,e,t.shouldUnregister?x(h,e,[]):[])),_reset:Ne,_resetDefaultValues:()=>K(i.defaultValues)&&i.defaultValues().then((e=>{De(e,i.resetOptions),I.state.next({isLoading:!1})})),_updateFormState:e=>{a=(0,r.Z)((0,r.Z)({},a),e)},_disableForm:e=>{k(e)&&(I.state.next({disabled:e}),W(s,(t=>{t.disabled=e}),0,!1))},_subjects:I,_proxyFormState:O,get _fields(){return s},get _formValues(){return g},get _state(){return C},set _state(e){C=e},get _defaultValues(){return h},get _names(){return _},set _names(e){_=e},get _formState(){return a},set _formState(e){a=e},get _options(){return i},set _options(e){i=(0,r.Z)((0,r.Z)({},i),e)}},trigger:pe,register:Ae,handleSubmit:Re,watch:(e,t)=>K(e)?I.values.subscribe({next:n=>e(ee(void 0,t),n)}):ee(e,t,!0),setValue:re,getValues:me,reset:De,resetField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x(s,e)&&(w(t.defaultValue)?re(e,x(h,e)):(re(e,t.defaultValue),U(h,e,t.defaultValue)),t.keepTouched||se(a.touchedFields,e),t.keepDirty||(se(a.dirtyFields,e),a.isDirty=t.defaultValue?J(e,x(h,e)):J()),t.keepError||(se(a.errors,e),O.isValid&&L()),I.state.next((0,r.Z)({},a)))},clearErrors:e=>{e&&M(e).forEach((e=>se(a.errors,e))),I.state.next({errors:e?a.errors:{}})},unregister:Oe,setError:Te,setFocus:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=x(s,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:ge}}function Oe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=i.useRef(),n=i.useRef(),[o,a]=i.useState({isDirty:!1,isValidating:!1,isLoading:K(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},disabled:!1,defaultValues:K(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current=(0,r.Z)((0,r.Z)({},Te(e,(()=>a((e=>(0,r.Z)({},e)))))),{},{formState:o}));const s=t.current.control;return s._options=e,L({subject:s._subjects.state,next:e=>{D(e,s._proxyFormState,s._updateFormState,!0)&&a((0,r.Z)({},s._formState))}}),i.useEffect((()=>s._disableForm(e.disabled)),[s,e.disabled]),i.useEffect((()=>{if(s._proxyFormState.isDirty){const e=s._getDirty();e!==o.isDirty&&s._subjects.state.next({isDirty:e})}}),[s,o.isDirty]),i.useEffect((()=>{e.values&&!ue(e.values,n.current)?(s._reset(e.values,s._options.resetOptions),n.current=e.values):s._resetDefaultValues()}),[e.values,s]),i.useEffect((()=>{s._state.mount||(s._updateValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next((0,r.Z)({},s._formState))),s._removeUnmounted()})),t.current.formState=R(o,s),t.current}},44554:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=!0,o="Invariant failed";function i(e,t){if(!e){if(r)throw new Error(o);var n="function"===typeof t?t():t,i=n?"".concat(o,": ").concat(n):o;throw new Error(i)}}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.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,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);
2s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(i,a),i}})(),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/"+e+"."+{56:"5aa14949",252:"c6a64237",706:"3fbdaee1",1085:"e30a2e77",1115:"47c26edf",1196:"d405924a",1549:"9d0910b4",1631:"d523c833",1670:"8a3be9a5",1852:"c2fb2903",1867:"1fca779c",2164:"bc751d83",2213:"191be2c4",2470:"ebcbfba4",2546:"6d8eb1bb",2697:"2312c87a",2832:"e5a89106",2964:"6e1aacf9",3171:"c504d36a",3262:"d48927a1",3362:"790984bb",3616:"880f8047",3640:"aaade9da",3864:"7cd22a48",4098:"4128b3d1",4361:"06e51d0e",4480:"282815a7",4542:"504ab3a0",4739:"f8b2d22b",4802:"f165bd81",5234:"ce56a14a",5423:"f01bf1ea",5433:"5ef922ce",5754:"d9578193",6300:"2016489f",6502:"b6cb01c4",6576:"18a6ddee",6639:"156f9321",6975:"4764ef52",7421:"f740171b",7720:"207b9f07",7745:"f3d789a5",7844:"c12b0ead",8024:"1386b7c6",8227:"55bfbada",8766:"a5c6835c",8956:"11b84363",9003:"e8980132",9200:"a3f6dd5d",9218:"12e71647",9292:"f1e9e3f2",9718:"797293f0",9735:"edd7db99",9782:"77fde7d0"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+".ba0c1cfe.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}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="mypicker.net:";n.l=(r,o,i,a)=>{if(e[r])e[r].push(o);else{var s,l;if(void 0!==i)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+i){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+i),s.src=r),e[r]=[o];var h=(t,n)=>{s.onerror=s.onload=null,clearTimeout(f);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),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="https://mypicker.net/",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,r)=>{var o=n.miniCssF(e),i=n.p+o;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(o===e||o===t))return a}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){var a;if((o=(a=i[r]).getAttribute("data-href"))===e||o===t)return a}})(o,i))return t();((e,t,n,r,o)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onerror=i.onload=n=>{if(i.onerror=i.onload=null,"load"===n.type)r();else{var a=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,i.parentNode&&i.parentNode.removeChild(i),o(l)}},i.href=t,n?n.parentNode.insertBefore(i,n.nextSibling):document.head.appendChild(i)})(e,i,null,t,r)})),t={179:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{2546:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={179:0};n.f.j=(t,r)=>{var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var i=new Promise(((n,r)=>o=e[t]=[n,r]));r.push(o[2]=i);var a=n.p+n.u(t),s=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,o[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var o,i,a=r[0],s=r[1],l=r[2],c=0;if(a.some((t=>0!==e[t]))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(l)l(n)}for(t&&t(r);c<a.length;c++)i=a[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunkmypicker_net=self.webpackChunkmypicker_net||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e=n(72791),t=n(54164),r=n(64554),o=n(4708),i=n(97645),a=n(31009),s=n(38996),l=n(99309),c=n(1210),u=n(13400),d=n(90493),h=n(84852),f=n(63366),p=n(87462),m=n(63733),g=n(94419),y=n(20890),v=n(66199),b=n(31402),w=n(66934),x=n(29849),k=n(80184);const S=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],E=(0,w.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(x.Z.primary)]:t.primary},{["& .".concat(x.Z.secondary)]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((e=>{let{ownerState:t}=e;return(0,p.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),C=e.forwardRef((function(t,n){const r=(0,b.Z)({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d}=r,h=(0,f.Z)(r,S),{dense:w}=e.useContext(v.Z);let C=null!=l?l:o,_=u;const T=(0,p.Z)({},r,{disableTypography:a,inset:s,primary:!!C,secondary:!!_,dense:w}),O=(e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e,a={root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,g.Z)(a,x.L,t)})(T);return null==C||C.type===y.Z||a||(C=(0,k.jsx)(y.Z,(0,p.Z)({variant:w?"body2":"body1",className:O.primary,component:null!=c&&c.variant?void 0:"span",display:"block"},c,{children:C}))),null==_||_.type===y.Z||a||(_=(0,k.jsx)(y.Z,(0,p.Z)({variant:"body2",className:O.secondary,color:"text.secondary",display:"block"},d,{children:_}))),(0,k.jsxs)(E,(0,p.Z)({className:(0,m.Z)(O.root,i),ownerState:T,ref:n},h,{children:[C,_]}))}));
2var _=n(13967),T=n(49530),O=n(48970),I=n(89050),A=n(93571),P=n(1413),R=n(19095),N=n(96517),D=n(79338),M=n(88026),L=n(52747),Z=n(14916),j=n(12054),F=n(29823),z=n(41107),U=n(6117),B=n(97054),V=n(84913);function H(e){return e.substring(2).toLowerCase()}function W(t){const{children:n,disableReactTree:r=!1,mouseEvent:o="onClick",onClickAway:i,touchEvent:a="onTouchEnd"}=t,s=e.useRef(!1),l=e.useRef(null),c=e.useRef(!1),u=e.useRef(!1);e.useEffect((()=>(setTimeout((()=>{c.current=!0}),0),()=>{c.current=!1})),[]);const d=(0,U.Z)(n.ref,l),h=(0,B.Z)((e=>{const t=u.current;u.current=!1;const n=(0,V.Z)(l.current);if(!c.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n))return;if(s.current)return void(s.current=!1);let o;o=e.composedPath?e.composedPath().indexOf(l.current)>-1:!n.documentElement.contains(e.target)||l.current.contains(e.target),o||!r&&t||i(e)})),f=e=>t=>{u.current=!0;const r=n.props[e];r&&r(t)},p={ref:d};return!1!==a&&(p[a]=f(a)),e.useEffect((()=>{if(!1!==a){const e=H(a),t=(0,V.Z)(l.current),n=()=>{s.current=!0};return t.addEventListener(e,h),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,h),t.removeEventListener("touchmove",n)}}}),[h,a]),!1!==o&&(p[o]=f(o)),e.useEffect((()=>{if(!1!==o){const e=H(o),t=(0,V.Z)(l.current);return t.addEventListener(e,h),()=>{t.removeEventListener(e,h)}}}),[h,o]),(0,k.jsx)(e.Fragment,{children:e.cloneElement(n,p)})}var q=n(22086);var G=n(14036),K=n(13208),Q=n(12065),Y=n(35527),$=n(75878),X=n(21217);function J(e){return(0,X.Z)("MuiSnackbarContent",e)}(0,$.Z)("MuiSnackbarContent",["root","message","action"]);const ee=["action","className","message","role"],te=(0,w.ZP)(Y.Z,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?.8:.98,r=(0,Q._4)(t.palette.background.default,n);return(0,p.Z)({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(r),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),ne=(0,w.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),re=(0,w.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),oe=e.forwardRef((function(e,t){const n=(0,b.Z)({props:e,name:"MuiSnackbarContent"}),{action:r,className:o,message:i,role:a="alert"}=n,s=(0,f.Z)(n,ee),l=n,c=(e=>{const{classes:t}=e;return(0,g.Z)({root:["root"],action:["action"],message:["message"]},J,t)})(l);return(0,k.jsxs)(te,(0,p.Z)({role:a,square:!0,elevation:6,className:(0,m.Z)(c.root,o),ownerState:l,ref:t},s,{children:[(0,k.jsx)(ne,{className:c.message,ownerState:l,children:i}),r?(0,k.jsx)(re,{className:c.action,ownerState:l,children:r}):null]}))}));function ie(e){return(0,X.Z)("MuiSnackbar",e)}(0,$.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const ae=["onEnter","onExited"],se=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],le=(0,w.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["anchorOrigin".concat((0,G.Z)(n.anchorOrigin.vertical)).concat((0,G.Z)(n.anchorOrigin.horizontal))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,p.Z)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===n.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===n.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===n.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:(0,p.Z)({},"top"===n.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===n.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===n.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===n.anchorOrigin.horizontal&&{right:24,left:"auto"})})})),ce=e.forwardRef((function(t,n){const r=(0,b.Z)({props:t,name:"MuiSnackbar"}),o=(0,_.Z)(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:h,ContentProps:m,disableWindowBlurListener:y=!1,message:v,open:w,TransitionComponent:x=K.Z,transitionDuration:S=i,TransitionProps:{onEnter:E,onExited:C}={}}=r,T=(0,f.Z)(r.TransitionProps,ae),O=(0,f.Z)(r,se),I=(0,p.Z)({},r,{anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:x,transitionDuration:S}
2),A=(e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root","anchorOrigin".concat((0,G.Z)(n.vertical)).concat((0,G.Z)(n.horizontal))]};return(0,g.Z)(r,ie,t)})(I),{getRootProps:P,onClickAway:R}=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoHideDuration:n=null,disableWindowBlurListener:r=!1,onClose:o,open:i,resumeHideDuration:a}=t,s=e.useRef();e.useEffect((()=>{if(i)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==o||o(e,"escapeKeyDown")}}),[i,o]);const l=(0,B.Z)(((e,t)=>{null==o||o(e,t)})),c=(0,B.Z)((e=>{o&&null!=e&&(clearTimeout(s.current),s.current=setTimeout((()=>{l(null,"timeout")}),e))}));e.useEffect((()=>(i&&c(n),()=>{clearTimeout(s.current)})),[i,n,c]);const u=()=>{clearTimeout(s.current)},d=e.useCallback((()=>{null!=n&&c(null!=a?a:.5*n)}),[n,a,c]),h=e=>t=>{const n=e.onFocus;null==n||n(t),u()},f=e=>t=>{const n=e.onMouseEnter;null==n||n(t),u()},m=e=>t=>{const n=e.onMouseLeave;null==n||n(t),d()};return e.useEffect((()=>{if(!r&&i)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}}),[r,d,i]),{getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=(0,p.Z)({},(0,q._)(t),(0,q._)(e));return(0,p.Z)({role:"presentation"},e,n,{onBlur:(r=n,e=>{const t=r.onBlur;null==t||t(e),d()}),onFocus:h(n),onMouseEnter:f(n),onMouseLeave:m(n)});var r},onClickAway:e=>{null==o||o(e,"clickaway")}}}((0,p.Z)({},I)),[N,D]=e.useState(!0),M=(0,z.y)({elementType:le,getSlotProps:P,externalForwardedProps:O,ownerState:I,additionalProps:{ref:n},className:[A.root,d]});return!w&&N?null:(0,k.jsx)(W,(0,p.Z)({onClickAway:R},h,{children:(0,k.jsx)(le,(0,p.Z)({},M,{children:(0,k.jsx)(x,(0,p.Z)({appear:!0,in:w,timeout:S,direction:"top"===s?"down":"up",onEnter:(e,t)=>{D(!1),E&&E(e,t)},onExited:e=>{D(!0),C&&C(e)}},T,{children:u||(0,k.jsx)(oe,(0,p.Z)({message:v,action:a},m))}))}))}))}));var ue=n(19658);function de(e){return(0,X.Z)("MuiAlertTitle",e)}(0,$.Z)("MuiAlertTitle",["root"]);const he=["className"],fe=(0,w.ZP)(y.Z,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{fontWeight:t.typography.fontWeightMedium,marginTop:-2}})),pe=e.forwardRef((function(e,t){const n=(0,b.Z)({props:e,name:"MuiAlertTitle"}),{className:r}=n,o=(0,f.Z)(n,he),i=n,a=(e=>{const{classes:t}=e;return(0,g.Z)({root:["root"]},de,t)})(i);return(0,k.jsx)(fe,(0,p.Z)({gutterBottom:!0,component:"div",ownerState:i,ref:t,className:(0,m.Z)(a.root,r)},o))})),me=(0,w.ZP)(ue.Z,{shouldForwardProp:e=>"customColors"!==e})((e=>{let{customColors:t}=e;return{backgroundColor:t.background,color:t.color,display:"flex",alignItems:"center",width:"100%",borderRadius:"4px",borderLeft:"3px solid ".concat(t.iconColor),padding:"3px 16px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.1)"}})),ge=(0,w.ZP)(u.Z,{shouldForwardProp:e=>"customColors"!==e})((e=>{let{customColors:t}=e;return{color:t.color,display:"flex",alignItems:"center"}})),ye=(0,w.ZP)(r.Z)((()=>({display:"flex",flexDirection:"column",alignItems:"flex-start"}))),ve=(0,w.ZP)(pe)((()=>({fontSize:"1rem",fontWeight:"bold",textTransform:"capitalize"}))),be=(0,w.ZP)(y.Z)((()=>({color:"#555",fontSize:"0.9rem"}))),we=e=>{let{open:t,onClose:n,notification:r}=e;const{message:o,type:i}=r||{},a="notification"===r.type?"success":i,s=(e=>{switch(e){case"success":return{background:"#E6F4EA",color:"#1E7E34",iconColor:"#28A745"};case"info":return{background:"#E7F3FF",color:"#0C5460",iconColor:"#007BFF"};case"warning":return{background:"#FFF3CD",color:"#856404",iconColor:"#FFC107"};case"error":return{background:"#F8D7DA",color:"#721C24",iconColor:"#DC3545"};default:return{background:"#FFFFFF",color:"#333",iconColor:"#000"}}})(a);return(0,k.jsx)(ce,{open:t,anchorOrigin:{vertical:"top",horizontal:"center"},onClose:n,children:(0,k.jsx)(me,{variant:"filled",severity:a,customColors:s,action:(0,k.jsx)(ge,{size:"small",onClick:n,customColors:s,children:(0,k.jsx)(F.Z,{fontSize:"small"})}),children:(0,k.jsxs)(ye,{children:[(0,k.jsx)(ve,{children:i}),(0,k.jsx)(be,{variant:"subtitle1",children:o})]})})})};var xe=n(45987),ke=n(59962),Se=n.n(ke),Ee=n(73452),Ce=n(85029),_e=n(96400),Te=n(14217),Oe=n(93840),Ie=n(52930);function Ae(e){return(0,X.Z)("MuiInputAdornment",e)}const Pe=(0,$.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Re;const Ne=["children","className","component","disablePointerEvents","disableTypography","position","variant"],De=(0,w.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["position".concat((0,G.Z)(n.position))],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,p.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===n.variant&&{["&.".concat(Pe.positionStart,"&:not(.").concat(Pe.hiddenLabel,")")]:{marginTop:16}},"start"===n.position&&{marginRight:8},"end"===n.position&&{marginLeft:8},!0===n.disablePointerEvents&&{pointerEvents:"none"})})),Me=e.forwardRef((function(t,n){const r=(0,b.Z)({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=r,d=(0,f.Z)(r,Ne),h=(0,Ie.Z)()||{};let v=u;u&&h.variant,h&&!v&&(v=h.variant);const w=(0,p.Z)({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:s,position:c,variant:v}),x=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&"position".concat((0,G.Z)(o)),a,r&&"hiddenLabel",i&&"size".concat((0,G.Z)(i))]};return(0,g.Z)(s,Ae,t)})(w);return(0,k.jsx)(Oe.Z.Provider,{value:null,children:(0,k.jsx)(De,(0,p.Z)({as:a,ownerState:w,className:(0,m.Z)(x.root,i),ref:n},d,{children:"string"!==typeof o||l?(0,k.jsxs)(e.Fragment,{children:["start"===c?Re||(Re=(0,k.jsx)("span",{className:"notranslate",children:"\u200b"})):null,o]}):(0,k.jsx)(y.Z,{color:"text.secondary",children:o})}))})}));var Le=n(21686),Ze=n(27391),je=n(94294);const Fe=(0,w.ZP)(Ze.Z)({backgroundColor:"white",borderRadius:"10px",marginBottom:"15px",width:"100%","& .MuiInputBase-input":{paddingTop:"6px",paddingBottom:"6px",color:"black","&::placeholder":{opacity:1,color:"grey",fontSize:"16px"}},"&::placeholder":{color:"grey"},"& .MuiOutlinedInput-notchedOutline":{border:"none"}}),ze=(0,w.ZP)(je.Z)({minWidth:"0",display:"block",height:"20px",marginLeft:"auto",padding:0,cursor:"pointer","& .MuiButton-startIcon":{margin:0,color:"white"}}),Ue=(0,w.ZP)(Le.Z)({color:"#6598cb"}),Be=e=>{let{isLoading:t,selectedMode:n,currentUserMessage:r,setCurrentUserMessage:o,handleSendRequest:i,setIsDraggerDisabled:a}=e;return(0,k.jsx)("form",{onSubmit:i,children:(0,k.jsx)(Fe,{disabled:t,placeholder:"AI chat"===n?"Type your question...":"Write your prompt...",value:r,onChange:e=>{o(e.target.value)},onDoubleClick:e=>e.stopPropagation(),onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),InputProps:{endAdornment:(0,k.jsx)(Me,{position:"end",children:(0,k.jsx)(ze,{type:"submit",startIcon:(0,k.jsx)(Ue,{})})})}})})};var Ve=n(18622),He=n(14647),We=n(8003),qe=n(42982),Ge=n(94572),Ke=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Qe=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),r=String(t.getOptionValue(e)).toLowerCase(),o=String(t.getOptionLabel(e)).toLowerCase();return r===n||o===n},Ye={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some((function(t){return Qe(e,t,r)}))||n.some((function(t){return Qe(e,t,r)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};n(51672);var $e=(0,e.forwardRef)((function(t,n){var r=function(t){var n=t.allowCreateWhileLoading,r=void 0!==n&&n,o=t.createOptionPosition,i=void 0===o?"last":o,a=t.formatCreateLabel,s=void 0===a?Ye.formatCreateLabel:a,l=t.isValidNewOption,c=void 0===l?Ye.isValidNewOption:l,u=t.getNewOptionData,d=void 0===u?Ye.getNewOptionData:u,h=t.onCreateOption,f=t.options,p=void 0===f?[]:f,m=t.onChange,g=(0,xe.Z)(t,Ke),y=g.getOptionValue,v=void 0===y?He.g:y,b=g.getOptionLabel,w=void 0===b?He.b:b,x=g.inputValue,k=g.isLoading,S=g.isMulti,E=g.value,C=g.name,_=(0,e.useMemo)((function(){return c(x,(0,Ge.H)(E),p,{getOptionValue:v,getOptionLabel:w})?d(x,s(x)):void 0}),[s,d,w,v,x,c,p,E]),T=(0,e.useMemo)((function(){return!r&&k||!_?p:"first"===i?[_].concat((0,qe.Z)(p)):[].concat((0,qe.Z)(p),[_])}),[r,i,k,_,p]),O=(0,e.useCallback)((function(e,t){if("select-option"!==t.action)return m(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==_)m(e,t);else if(h)h(x);else{var r=d(x,x),o={action:"create-option",name:C,option:r};m((0,Ge.D)(S,[].concat((0,qe.Z)((0,Ge.H)(E)),[r]),r),o)}}),[d,x,S,C,_,h,m,E]);return(0,P.Z)((0,P.Z)({},g),{},{options:T,onChange:O})}((0,We.u)(t));return e.createElement(He.S,(0,p.Z)({ref:n},r))}));const Xe={container:e=>(0,P.Z)((0,P.Z)({},e),{},{"& div":{overflowX:"clip",textOverflow:"ellipsis",borderRadius:"10px"}})},Je=e=>{let{selectedMode:t,isCollectionsLoading:n,options:o,placeholder:i,selectCollection:a,handleChange:s,handleCreate:l,isFullScreen:c,isExtended:u,isBrainCollectionsLoading:d}=e;return(0,k.jsx)(r.Z,{sx:{display:"flex",alignItems:"center",width:c?"60%":"100%"},children:(0,k.jsx)(r.Z,{onDoubleClick:e=>e.stopPropagation(),width:c?"180px":"100%",maxWidth:"230px",color:"black",textOverflow:"ellipsis",sx:{textWrap:"nowrap"},children:"Private AI"===t?(0,k.jsx)(Ve.ZP,{styles:Xe,isDisabled:n,isLoading:n||d,onChange:s,options:o,value:a,placeholder:i,menuPlacement:u?"top":"bottom"}):(0,k.jsx)($e,{styles:Xe,isDisabled:n,isLoading:n||d,onChange:s,onCreateOption:l,options:o,value:a,placeholder:i,menuPlacement:u?"top":"bottom"})})})};var et=n(73518),tt=n(13239),nt=n(13118);const rt=(0,w.ZP)(r.Z,{shouldForwardProp:e=>"isFullScreen"!==e&&"isActive"!==e})((e=>{let{isActive:t,isFullScreen:n}=e;return{backgroundColor:"white",borderRadius:"10px",minHeight:n?"unset":"150px",maxHeight:n?"100%":"230px",marginBottom:"20px",color:"grey",display:"flex",justifyContent:t?"center":"unset",flexDirection:"column",alignItems:"left",textAlign:"center",overflow:"auto",fontSize:n?"14px":"11px",height:"100%"}})),ot=(0,w.ZP)(r.Z,{shouldForwardProp:e=>"isUser"!==e})((e=>{let{isUser:t}=e;return{fontSize:"0.9rem",borderRadius:"10px",padding:"8px 10px",width:"max-content",alignSelf:t?"flex-end":"flex-start",backgroundColor:t?"black":"#BABABA",color:t?"white":"black",boxShadow:"0 0 5px blue",marginBottom:"10px",marginRight:t&&"10px",maxWidth:t?"calc(100% - 30px)":"
2100%",textAlign:"left",overflowX:"clip",textOverflow:"ellipsis",wordWrap:"break-word","&:first-of-type":{marginTop:"10px"},"& p":{margin:0}}})),it=(0,w.ZP)(r.Z,{shouldForwardProp:e=>"isFullScreen"!==e})((e=>{let{isFullScreen:t}=e;return{display:"flex",flexDirection:"column",maxWidth:"max-content",margin:"0 10px 10px",width:t?"calc(100% - 90px)":"calc(100% - 30px)",alignItems:"flex-end"}})),at=(0,w.ZP)(je.Z)({color:"#6598cb",padding:0,display:"flex",alignSelf:"flex-end",fontSize:"10px"}),st=e=>{let{messages:t,scrollBoxRef:n,isFullScreen:r,handleSaveClick:o,isPendingSave:i,currentMessageIndex:a}=e;return(0,k.jsx)(rt,{isActive:0===t.length,isFullScreen:r,children:0===t.length?(0,k.jsx)(y.Z,{variant:"subtitle1",children:"This is the answer area Ask your question below"}):t.map(((e,t)=>"user"===e.role?(0,k.jsx)(ot,{ref:n,isUser:!0,children:e.content},t):(0,k.jsxs)(it,{isFullScreen:r,children:[(0,k.jsx)(ot,{ref:n,isUser:!1,dangerouslySetInnerHTML:{__html:(0,nt.c8)(e.content)}}),!e.saved&&(i&&a===t?(0,k.jsx)(tt.Z,{size:24,color:"secondary"}):(0,k.jsxs)(at,{onClick:()=>o(t),children:[(0,k.jsx)(y.Z,{fontSize:12,onDoubleClick:e=>e.stopPropagation(),children:"Save answer"}),(0,k.jsx)(et.Z,{})]}))]},t)))})};var lt,ct=n(30168);const ut=(0,n(52554).F4)(lt||(lt=(0,ct.Z)(["\n 0% {\n background-color: #ff006a;\n }\n 50%, 100% {\n background-color: rgba(255, 0, 106, 0.3);\n }\n"]))),dt=(0,w.ZP)(r.Z,{shouldForwardProp:e=>"isFullScreen"!==e})((e=>{let{theme:t}=e;return{border:"1px solid ".concat(t.palette.primary.main),backgroundImage:"linear-gradient(to bottom, #6598cb, #7eaad7, #96bce3, #aecef0, #c6e1fc)",textAlign:"center",borderRadius:"10px",height:"100%",display:"flex",flexDirection:"column",padding:6}})),ht=(0,w.ZP)("img")({width:"25px",height:"25px"}),ft=(0,w.ZP)(je.Z)({minWidth:"0",display:"block",height:"20px",marginLeft:"auto",padding:0,cursor:"pointer","& .MuiButton-startIcon":{margin:0,color:"white"}}),pt=(0,w.ZP)("div")({width:"calc(100% + 12px)",borderBottom:"1px solid white",marginLeft:"-6px"}),mt=(0,w.ZP)("div")({zIndex:"9999",position:"absolute",right:"50%",bottom:"70px",transform:"translate(-50%, -50%)",width:"10px",height:"10px",borderRadius:"5px",backgroundColor:"#ff006a",color:"#ff006a",animation:"".concat(ut," 1s infinite linear alternate"),animationDelay:"0.5s","&::before, &::after":{content:"''",display:"inline-block",position:"absolute",top:"0"},"&::before":{left:"-15px",width:"10px",height:"10px",borderRadius:"5px",backgroundColor:"#ff006a",color:"#ff006a",animation:"".concat(ut," 1s infinite alternate"),animationDelay:"0s"},"&::after":{left:"15px",width:"10px",height:"10px",borderRadius:"5px",backgroundColor:"#ff006a",color:"#ff006a",animation:"".concat(ut," 1s infinite alternate"),animationDelay:"1s"}}),gt=(0,w.ZP)(r.Z,{shouldForwardProp:e=>"isFullScreen"!==e})((e=>{let{isFullScreen:t}=e;return{display:"flex",alignItems:"center",justifyContent:"space-between",flexDirection:t?"row-reverse":"column",maxWidth:t?"600px":"100%",minWidth:t?"300px":"unset",alignSelf:"center",width:"100%"}})),yt=(0,w.ZP)(je.Z,{shouldForwardProp:e=>"isFullScreen"!==e})((e=>{let{isFullScreen:t}=e;return{borderRadius:"10px",maxWidth:"180px",margin:t?"":"0 auto",marginBottom:t?"0":"15px",borderColor:"#6598cb",color:"#6598cb"}})),vt=((0,w.ZP)("form")({height:"100%",display:"flex",flexDirection:"column"}),(0,w.ZP)(ft,{shouldForwardProp:e=>"isSelected"!==e})((e=>{let{theme:t,isSelected:n}=e;return{border:n&&"1px solid #ffffff",borderBottomStyle:"none",borderRadius:"7px",minWidth:"70px",minHeight:"35px",padding:"0.5em 0.5em 0.5em",color:n?"#ffffff":"#000000",backgroundColor:n?"transparent":"#165d9c7a","&:hover":{backgroundColor:n?"transparent":"#124a7a7a"},borderBottomRightRadius:"0px",borderBottomLeftRadius:"0px"}})));const bt=n.p+"static/media/Qmark_B_bigger_white.0404e92c0e8b4c1554d4b229afcd1d5b.svg",wt=t=>{var n;let{messages:o,collectionId:i,isFullScreen:a,setFullScreen:s,handleSendRequest:l,scrollBoxRef:c,setIsError:u,setAlertMessage:d,setMessages:h,isLoading:f,currentUserMessage:p,setCurrentUserMessage:m,handleExtend:g,isExtended:y,setIsDraggerDisabled:v,collectionIdCustom:b,setCollectionIdCustom:w,setCollectionOwner:x,activeTab:S,setActiveTab:E,setSelectCollection:C,selectCollection:_}=t;const[T,O]=(0,e.useState)(null),[I,A]=(0,e.useState)(null),[P,R]=(0,e.useState)(!1),[N,D]=(0,e.useState)(!1),[M,L]=(0,e.useState)(!1),[j,F]=(0,e.useState)(!1),[z,U]=(0,e.useState)([]),[B,V]=(0,e.useState)([]),[H,W]=(0,e.useState)(S),q=(0,Z.aC)(),{data:G,status:K}=(0,_e.Xd)(null===(n=q.user)||void 0===n?void 0:n.uid),Q=(0,e.useRef)(i),Y=e=>{W(e),E(e),$(),"Private AI"===e&&ee(!0)},$=()=>{h([]),m(""),C(""),w(""),x("")},X=e=>{C(e),w((null===e||void 0===e?void 0:e.value)||""),x((null===e||void 0===e?void 0:e.owner)||"")},J=e=>{D(!0);e.length<=50?(0,_e.r)({title:e,owner:q.user.uid,shared:!1}).then((t=>{const n={label:e,value:t.id,shared:!1};C(n),w(t.id)})).finally((()=>{D(!1)})):(alert("Collection Title is too long (max 50 characters)"),D(!1))},ee=async e=>{L(!0);try{const t=await(0,Te.Mg)({includeSharedCollections:e});if(null!==t&&void 0!==t&&t.data){const e=t.data.map((e=>({label:e.title,value:e.id,shared:e.shared,owner:e.owner})));U(e)}else U([])}catch(t){d("Failed to get brain enabled collections"),console.warn(t)}finally{L(!1)}};(0,e.useEffect)((()=>
2{if("loading"!==K&&G){let e=[];G.forEach((t=>{e.push({label:t.title,value:t.id,shared:t.shared})})),V(e),D(!1)}else D(!0)}),[G,K]),(0,e.useEffect)((()=>{if(i&&i!==Q.current){let e=null;e="Private AI"===H?z.find((e=>e.value===i)):B.find((e=>e.value===i)),e&&C(e),Q.current=i}}),[i,K,B,z,H]),(0,e.useEffect)((()=>{if("Private AI"===H){const e=z.find((e=>e.value===i));e&&(C(e),x(e.owner))}else{const e=B.find((e=>e.value===i));e&&C(e)}}),[H,z,B,i]),(0,e.useEffect)((()=>{"Private AI"===H?i&&i!==b&&w(i):w("")}),[i,H]),(0,e.useEffect)((()=>{"Private AI"===S&&ee(!0)}),[]);const te=()=>(0,k.jsx)(Je,{selectedMode:H,isCollectionsLoading:N,options:"Private AI"===H?z:B,selectCollection:_,handleChange:X,handleCreate:J,isFullScreen:a,isExtended:y,isBrainCollectionsLoading:M,placeholder:"Private AI"===H?"Select Private AI":"Select Collection"});return(0,k.jsxs)(dt,{mx:"auto",p:.3,onDoubleClick:g,children:[(0,k.jsxs)(r.Z,{display:"flex",alignItems:"center",children:[(0,k.jsx)(ht,{src:bt,alt:"question"}),(0,k.jsxs)(r.Z,{ml:"14px",sx:{dis
2play:"flex"},children:[(0,k.jsx)(vt,{isSelected:"AI chat"===S,onClick:()=>Y("AI chat"),children:"AI chat"}),(0,k.jsx)(vt,{isSelected:"Private AI"===S,onClick:()=>Y("Private AI"),children:"Private AI"})]}),(0,k.jsx)(ft,{startIcon:a?(0,k.jsx)(Ee.Z,{}):(0,k.jsx)(Ce.Z,{}),onClick:()=>s(!a)})]}),(0,k.jsx)(pt,{}),"Private AI"===H&&(0,k.jsx)(r.Z,{sx:{marginTop:"10px"},children:te()}),(0,k.jsxs)(r.Z,{display:"flex",flexDirection:"column",mt:1,position:"relative",flexGrow:2,height:a?"200px":"unset",children:[(0,k.jsx)(st,{messages:o,scrollBoxRef:c,isFullScreen:a,handleSaveClick:e=>{if(_){O(e),R(!0);const n=_;try{(0,_e.Ws)({owner:q.user.uid,urlTitle:o[e-1].content,text:o[e].content,collectionId:_.value,image:"".concat("https://mypicker.net","/images/ai.png"),isAiResponse:!0}).then((()=>{const t=[...o];t[e].saved=!0,h(t),R(!1),C(n)}))}catch(t){A({message:"".concat(t.message),type:"error"})}}else A({message:"Select or create new collection \u2013 to save answer",type:"error"}),F(!0)},isPendingSave:P,currentMessageIndex:T}),f&&(0,k.jsx)(mt,{}),(0,k.jsx)(Be,{isLoading:f,selectedMode:H,currentUserMessage:p,setCurrentUserMessage:m,handleSendRequest:async e=>(e&&e.preventDefault&&e.preventDefault(),"Private AI"!==H&&b?(w(""),void x("")):"Private AI"!==H||_?void await l():(A({message:"Please select a Private AI before starting a conversation.",type:"error"}),void F(!0))),setIsDraggerDisabled:v})]}),(0,k.jsxs)(gt,{isFullScreen:a,children:[(0,k.jsx)(yt,{variant:"outlined",isFullScreen:a,onClick:$,onDoubleClick:e=>e.stopPropagation(),children:"AI chat"===H?"Start new Chat":"Start new session"}),"AI chat"===H&&te()]}),null!==I&&(0,k.jsx)(we,{open:j,onClose:()=>{F(!1),A(null)},notification:I})]})};var xt=n(72639);const kt=(0,w.ZP)(xt.ResizableBox)({position:"relative",cursor:"move","& .react-resizable-handle":{position:"absolute",width:"20px",height:"20px",backgroundRepeat:"no-repeat",backgroundOrigin:"content-box",boxSizing:"border-box",backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+')",backgroundPosition:"bottom right",padding:"0 3px 3px 0"},"& .react-resizable-handle-se":{bottom:2,right:2,cursor:"se-resize"}}),St=["isError","handleCloseError"],Et=(0,e.forwardRef)(((t,n)=>{const{isError:r,handleCloseError:o}=t,i=(0,xe.Z)(t,St),[a,s]=(0,e.useState)(""),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(!1),[h,f]=(0,e.useState)({width:900,height:340}),[p,m]=(0,e.useState)({x:100,y:170}),g=(0,P.Z)((0,P.Z)({},i),{},{setAlertMessage:s,handleExtend:()=>{const{innerWidth:e,innerHeight:t}=window,n=u?{width:900,height:340}:{width:e,height:t};m(u?{x:100,y:170}:{x:0,y:0}),f(n)},isExtended:u,setIsDraggerDisabled:c});return(0,e.useEffect)((()=>{const{innerWidth:e,innerHeight:t}=window;d(h.width>=e&&h.height>=t)}),[h]),(0,k.jsxs)(k.Fragment,{children:[i.isFullScreen?(0,k.jsx)(Se(),{onDrag:e=>!l&&e.preventDefault(),position:p,onStop:(e,t)=>{let{x:n,y:r}=t;return l||m({x:n,y:r})},disabled:l,children:(0,k.jsx)(kt,{width:h.width,height:h.height,minConstraints:[400,300],onResize:(e,t)=>
2{let{size:{width:n,height:r}}=t;return f({width:n,height:r})},onResizeStart:()=>c(!0),onResizeStop:()=>c(!1),children:(0,k.jsx)(wt,(0,P.Z)({},g))})}):(0,k.jsx)(wt,(0,P.Z)({},g)),(0,k.jsx)(ce,{open:r,autoHideDuration:2e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},onClose:o,children:(0,k.jsx)(ue.Z,{severity:"error",sx:{width:"100%"},children:a})})]})})),Ct=(0,N.v0)(j.H),_t=(0,Z.oY)((t=>{let{isFullScreen:n,setFullScreen:o}=t;const[a]=(0,i.KO)(M.di),[s]=(0,i.KO)(M.f9),[l,c]=(0,e.useState)(""),[u,d]=(0,e.useState)(""),[h,f]=(0,e.useState)(""),[p,m]=(0,e.useState)("AI chat"),[g,y]=(0,e.useState)(""),[v,b]=(0,e.useState)([]),[w,x]=(0,e.useState)(!1),[S,E]=(0,e.useState)(!1),[C,_]=(0,e.useState)(!1),[O,A]=(0,e.useState)(!1),[N,Z]=(0,e.useState)(null),j=(0,e.useRef)(null);(0,e.useEffect)((()=>{C&&I.m8.replace(T.y.PAYWALL)}),[C,I.m8]);const F={isFullScreen:n,setFullScreen:o,currentUserMessage:l,setCurrentUserMessage:c,setCollectionOwner:f,messages:v,handleSendRequest:async e=>{if(e&&e.preventDefault&&e.preventDefault(),a&&"free"===a.entitlement&&a.usedQuestions>=a.maxQuestions)_(!0);else if((0,L.qA)(),""!==l){var t;try{const t=[...v,{content:l,role:"user"}];b(t);const{content:n}=await async function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];x(!0);const r=Ct.currentUser?await Ct.currentUser.getIdToken():void 0;try{const o=t.length>0?[{text:t[t.length-1].content}]:[],i=JSON.stringify({data:{owner:h,history:t,message:o,collectionId:u,stream:n}}),a=await fetch("https://us-central1-".concat("ideoo-1aa3b",".cloudfunctions.net/queryOpenAICollectionBrainStream"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(r)},body:i});if(!a.ok){const e=await a.text();throw console.error("API call failed with error:",a.status,e),new Error("HTTP error! status: ".concat(a.status,", ").concat(e))}if(n){const t=a.body.getReader();let n="";const r=e=>{b((t=>{const n=t[t.length-1];if("assistant"===(null===n||void 0===n?void 0:n.role)&&null!==n&&void 0!==n&&n.isStreaming){const r=(0,P.Z)((0,P.Z)({},n),{},{content:e});return[...t.slice(0,-1),r]}return[...t,{content:e,role:"assistant",saved:!1,isStreaming:!0}]}))};for(;;){const{done:o,value:i}=await t.read();if(o)break;const a=(new TextDecoder).decode(i).split("\n\n").filter((e=>""!==e));for(const t of a){const o=t.substring(5);try{const e=JSON.parse(o);e.content&&(n+=e.content,r(n))}catch(e){console.error("Couldnt parse json",o,e)}}}return{content:n}}{const e=await a.json();if(e&&e.message&&e.message.content)return b((t=>[...t,{content:e.message.content,role:"assistant",saved:!1}])),{content:e.message.content};throw new Error("Unexpected response format from OpenAI API.")}}catch(o){throw E(!0),o}finally{x(!1)}}(t.map((e=>({role:e.role,content:e.content}))),!0),r={content:l,role:"user"};if(n){const e={content:n,role:"assistant",saved:!1,isStreaming:!1};b([...v,r,e])}c("")}catch(e){const t=e.message.replace(/HTTP error! status: 500, /,"").trim();Z({message:"".concat(t," You can continue working with Picker."),type:"error"}),A(!0)}null===(t=j.current)||void 0===t||t.scrollIntoView({behavior:"smooth"})}},isLoading:w,setIsError:E,isError:S,handleCloseError:()=>E(!1),setMessages:b,scrollBoxRef:j,collectionIdCustom:u,setCollectionIdCustom:d,collectionId:s,activeTab:p,setActiveTab:m,setSelectCollection:y,selectCollection:g};return(0,k.jsxs)(k.Fragment,{children:[C&&(0,k.jsx)(D.Z,{open:C,reason:"You've reached your daily limit for AI questions. Upgrade now or wait until tomorrow for a new quota.",onClose:()=>_(!1)}),n?(0,k.jsx)(R.Z,{open:n,onClose:()=>o(!1),children:(0,k.jsx)(Et,(0,P.Z)({},F))}):(0,k.jsx)(r.Z,{width:"96%",mx:"auto",children:(0,k.jsx)(Et,(0,P.Z)({},F))}),null!==N&&(0,k.jsx)(we,{open:O,onClose:()=>{A(!1),Z(null)},notification:N})]})})),Tt=(0,w.ZP)("div",{shouldForwardProp:e=>"height"!==e})((e=>{let{theme:t,height:n}=e;return{display:"flex",alignItems:"center",padding:t.spacing(0,1),minHeight:n,justifyContent:"flex-end"}}));var Ot=n(61134),It=n(68096),At=n(94925),Pt=n(5022),Rt=n(50225),Nt=n(99321),Dt=n(50533);const Mt=(0,Rt.Z)(r.Z,{shouldForwardProp:e=>"isSended"!==e})((e=>{let{isSended:t}=e;return{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:"linear-gradient(180deg, rgba(255, 111, 0, 1) 0%, rgba(255, 171, 0, 1) 100%)",maxWidth:t?"350px":"980px",width:"calc(100% - 100px)",color:"white",padding:t&&"12px"}}
2)),Lt=(0,Rt.Z)(r.Z)({transform:"translate(-50%, -50%)",top:"50%",left:"-25%"}),Zt=(0,Rt.Z)(je.Z,{shouldForwardProp:e=>"bgColor"!==e})((e=>{let{bgColor:t}=e;return{color:"white",backgroundColor:t,width:"260px",border:"3px solid #ffffff",borderRadius:"10px",height:"38.5px",fontSize:"1rem","&:hover":{backgroundColor:"#ff6f00"===t?"#d65c00":"#257fcc"}}})),jt=(0,Rt.Z)(Nt.Z)({background:"white",color:"black","& .MuiFormLabel-root":{color:"grey"}}),Ft=(0,Rt.Z)(Ze.Z)({background:"white","& .MuiOutlinedInput-notchedOutline":{border:"none"},"& .MuiInputBase-root":{color:"black"},"& .MuiInputLabel-root":{color:"grey"}}),zt=(0,Rt.Z)(Dt.Z)({color:"white",textDecoration:"underline solid white 2px",textUnderlineOffset:"4px"}),Ut=["Bug","Error","Content","Graphic Design","Other"],Bt=t=>{let{open:n,handleClose:o}=t;const i=(0,Z.aC)(),[a,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(!1),{register:u,handleSubmit:d,watch:h,reset:f,setValue:p,formState:{errors:m}}=(0,Ot.cI)({defaultValues:{type:Ut[0],url:"",feedback:""}});(0,e.useEffect)((()=>{p("type",Ut[0])}),[p]),(0,e.useEffect)((()=>{n&&p("url",window.location.href)}),[n,p]);const g=Object.keys(m).map((e=>(0,P.Z)({field:e},m[e])));return(0,k.jsx)(R.Z,{open:n,onClose:()=>{s(!1),o()},children:(0,k.jsx)(Mt,{isSended:a,children:a?(0,k.jsx)(r.Z,{children:(0,k.jsx)(r.Z,{p:3,pt:8,pb:8,border:"2px solid white",textAlign:"center",children:(0,k.jsx)(y.Z,{variant:"h6",children:"Thanks for your feedback"})})}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(r.Z,{display:"flex",justifyContent:"space-between",borderBottom:"1px solid white",alignItems:"flex-end",width:"100%",px:5,py:2,children:[(0,k.jsx)(y.Z,{variant:"h4",children:"Pilot-test Feedback"}),(0,k.jsxs)(y.Z,{variant:"subtitle2",sx:{fontSize:"1.3rem"},children:["Contact & Support:"," ",(0,k.jsx)(zt,{href:"mailto:[email protected]",children:"[email protected]"})]})]}),(0,k.jsx)("form",{onSubmit:d((async e=>{c(!0);const{url:t,feedback:n,type:r,image:o}=e;let a,l;o.length>0&&(a=o[0],l=await(0,nt.Zk)(a));try{var u,d;await(0,_e.L5)((0,P.Z)((0,P.Z)({url:t,feedback:n,category:r},o.length>0&&{file:l,fileName:a.name,token:null===(u=i.user)||void 0===u||null===(d=u.stsTokenManager)||void 0===d?void 0:d.accessToken}),{},{owner:i.user.uid,email:i.user.email})),c(!1),s(!0),f()}catch(h){console.warn(h)}})),children:(0,k.jsxs)(r.Z,{px:1,pt:2,pb:1,display:"flex",flexDirection:"column",alignItems:"center",gap:2,children:[(0,k.jsxs)(r.Z,{maxWidth:"300px",width:"100%",position:"relative",p:2,children:[(0,k.jsxs)(It.Z,{fullWidth:!0,children:[(0,k.jsx)(At.Z,{}),(0,k.jsx)(jt,(0,P.Z)((0,P.Z)({defaultValue:Ut[0],displayEmpty:!0},u("type",{required:"Please enter type"})),{},{renderValue:e=>e&&Ut.includes(e)?e:(0,k.jsx)(y.Z,{sx:{color:"gray"},children:"Select from list"}),inputProps:{MenuProps:{MenuListProps:{sx:{color:"black",backgroundColor:"white"}}}},sx:{"& .MuiSelect-icon":{display:"none"},appearance:"none"},size:"small",id:"select-feedback",label:"",children:Ut.map(((e,t)=>(0,k.jsx)(Pt.Z,{value:e,children:e},t)))}))]}),(0,k.jsx)(Lt,{position:"absolute",children:(0,k.jsx)(y.Z,{variant:"subtitle2",sx:{fontSize:"1.3rem",marginRight:4},children:"Type of Feedback:"})})]}),g.length>0&&(0,k.jsx)(ue.Z,{severity:"error",children:g[0].message}),(0,k.jsx)(It.Z,{fullWidth:!0,children:(0,k.jsxs)(r.Z,{display:"flex",flexDirection:"column",gap:2,children:[(0,k.jsx)(Ft,(0,P.Z)({placeholder:"Pre-populate this window with URL from where the user is when they open this window",InputLabelProps:{shrink:!1}},u("url",{required:"Please enter URL",maxLength:{value:2048,message:"Maximum character size reached"}}))),(0,k.jsx)(Ft,(0,P.Z)({multiline:!0,rows:10,placeholder:"Write your feedback here.",InputLabelProps:{shrink:!1}},u("feedback",{required:"Please enter your feedback",maxLength:{value:3e3,message:"Maximum character size reached"}})))]})}),(0,k.jsx)("input",(0,P.Z)((0,P.Z)({accept:"image/*",type:"file"},u("image",{validate:e=>!(e&&e.length>0)||(e[0].size<=3e6||"Oups - The image is too big. Please adjust image size to maximum 3 MB")})),{},{id:"screenshot",style:{display:"none"}})),(0,k.jsx)(Zt,{bgColor:"#ff6f00",htmlFor:"screenshot",component:"label",variant:"contained",children:"Upload a Screenshot"}),(0,k.jsx)(Zt,{bgColor:"#2e99f7",type:"submit",variant:"contained",disabled:l,children:l?(0,k.jsx)(tt.Z,{size:28}):"Send Feedback"})]})})]})})})};var Vt=n(26752),Ht=n(83199),Wt=n(42071),qt=n(4999),Gt=n(17602);const Kt=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Qt(e,t,n){var r;const o=function(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=(0,Gt.Z)(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const e=i.getComputedStyle(t);a=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(a&&"none"!==a&&"string"===typeof a){const e=a.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?"translateX(".concat(o?o.right+s-r.left:i.innerWidth+s-r.left,"px)"):"right"===e?"translateX(-".concat(o?r.right-o.left-s:r.left+r.
2width-s,"px)"):"up"===e?"translateY(".concat(o?o.bottom+l-r.top:i.innerHeight+l-r.top,"px)"):"translateY(-".concat(o?r.top-o.top+r.height-l:r.top+r.height-l,"px)")}(e,t,"function"===typeof(r=n)?r():r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const Yt=e.forwardRef((function(t,n){const r=(0,_.Z)(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:u="down",easing:d=o,in:h,onEnter:m,onEntered:g,onEntering:y,onExit:v,onExited:b,onExiting:w,style:x,timeout:S=i,TransitionComponent:E=Vt.ZP}=t,C=(0,f.Z)(t,Kt),T=e.useRef(null),O=(0,Wt.Z)(l.ref,T,n),I=e=>t=>{e&&(void 0===t?e(T.current):e(T.current,t))},A=I(((e,t)=>{Qt(u,e,c),(0,qt.n)(e),m&&m(e,t)})),P=I(((e,t)=>{const n=(0,qt.C)({timeout:S,style:x,easing:d},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",(0,p.Z)({},n)),e.style.transition=r.transitions.create("transform",(0,p.Z)({},n)),e.style.webkitTransform="none",e.style.transform="none",y&&y(e,t)})),R=I(g),N=I(w),D=I((e=>{const t=(0,qt.C)({timeout:S,style:x,easing:d},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),Qt(u,e,c),v&&v(e)})),M=I((e=>{e.style.webkitTransition="",e.style.transition="",b&&b(e)})),L=e.useCallback((()=>{T.current&&Qt(u,T.current,c)}),[u,c]);return e.useEffect((()=>{if(h||"down"===u||"right"===u)return;const e=(0,Ht.Z)((()=>{T.current&&Qt(u,T.current,c)})),t=(0,Gt.Z)(T.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[u,h,c]),e.useEffect((()=>{h||L()}),[h,L]),(0,k.jsx)(E,(0,p.Z)({nodeRef:T,onEnter:A,onEntered:R,onEntering:P,onExit:D,onExited:M,onExiting:N,addEndListener:e=>{a&&a(T.current,e)},appear:s,in:h,timeout:S},C,{children:(t,n)=>e.cloneElement(l,(0,p.Z)({ref:O,style:(0,p.Z)({visibility:"exited"!==t||h?void 0:"hidden"},x,l.props.style)},n))}))}));function $t(e){return(0,X.Z)("MuiDrawer",e)}(0,$.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Xt=["BackdropProps"],Jt=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],en=(e,t)=>{const{ownerState:n}=e;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,t.modal]},tn=(0,w.ZP)(R.Z,{name:"MuiDrawer",slot:"Root",overridesResolver:en})((e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.drawer}})),nn=(0,w.ZP)("div",{shouldForwardProp:w.FO,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:en})({flex:"0 0 auto"}),rn=(0,w.ZP)(Y.Z,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t["paperAnchor".concat((0,G.Z)(n.anchor))],"temporary"!==n.variant&&t["paperAnchorDocked".concat((0,G.Z)(n.anchor))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,p.Z)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===n.anchor&&{left:0},"top"===n.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===n.anchor&&{right:0},"bottom"===n.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===n.anchor&&"temporary"!==n.variant&&{borderRight:"1px solid ".concat((t.vars||t).palette.divider)},"top"===n.anchor&&"temporary"!==n.variant&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider)},"right"===n.anchor&&"temporary"!==n.variant&&{borderLeft:"1px solid ".concat((t.vars||t).palette.divider)},"bottom"===n.anchor&&"temporary"!==n.variant&&{borderTop:"1px solid ".concat((t.vars||t).palette.divider)})})),on={left:"right",right:"left",top:"down",bottom:"up"};const an=e.forwardRef((function(t,n){const r=(0,b.Z)({props:t,name:"MuiDrawer"}),o=(0,_.Z)(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:s,children:l,className:c,elevation:u=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:h}={},onClose:y,open:v=!1,PaperProps:w={},SlideProps:x,TransitionComponent:S=Yt,transitionDuration:E=i,variant:C="temporary"}=r,T=(0,f.Z)(r.ModalProps,Xt),O=(0,f.Z)(r,Jt),I=e.useRef(!1);e.useEffect((()=>{I.current=!0}),[]);const A=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?on[t]:t}
2(o,a),P=a,R=(0,p.Z)({},r,{anchor:P,elevation:u,open:v,variant:C},O),N=(e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper","paperAnchor".concat((0,G.Z)(n)),"temporary"!==r&&"paperAnchorDocked".concat((0,G.Z)(n))]};return(0,g.Z)(o,$t,t)})(R),D=(0,k.jsx)(rn,(0,p.Z)({elevation:"temporary"===C?u:0,square:!0},w,{className:(0,m.Z)(N.paper,w.className),ownerState:R,children:l}));if("permanent"===C)return(0,k.jsx)(nn,(0,p.Z)({className:(0,m.Z)(N.root,N.docked,c),ownerState:R,ref:n},O,{children:D}));const M=(0,k.jsx)(S,(0,p.Z)({in:v,direction:on[A],timeout:E,appear:I.current},x,{children:D}));return"persistent"===C?(0,k.jsx)(nn,(0,p.Z)({className:(0,m.Z)(N.root,N.docked,c),ownerState:R,ref:n},O,{children:M})):(0,k.jsx)(tn,(0,p.Z)({BackdropProps:(0,p.Z)({},s,h,{transitionDuration:E}),className:(0,m.Z)(N.root,N.modal,c),open:v,ownerState:R,onClose:y,hideBackdrop:d,ref:n},O,T,{children:M}))})),sn=(0,w.ZP)(an,{shouldForwardProp:e=>"drawerWidth"!==e})((e=>{let{drawerWidth:t}=e;return{width:t,flexShrink:0,"& .MuiDrawer-paper":{width:t,boxSizing:"border-box"}}})),ln=(0,w.ZP)(je.Z)({color:"white",backgroundColor:"#ff8300",marginTop:"20px",marginLeft:"5px",marginRight:"5px",borderRadius:"10px","&:hover":{backgroundColor:"#b35c00"}});var cn,un=n(29374);const dn=["title","titleId"];function hn(){return hn=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},hn.apply(this,arguments)}function fn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function pn(t,n){let{title:r,titleId:o}=t,i=fn(t,dn);return e.createElement("svg",hn({id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 128.54 136.95",style:{enableBackground:"new 0 0 128.54 136.95"},xmlSpace:"preserve",ref:n,"aria-labelledby":o},i),r?e.createElement("title",{id:o},r):null,cn||(cn=e.createElement("path",{d:"M53.29,85.76H0.02V17.78h53.26V85.76z M10.02,75.76h33.26V27.78H10.02V75.76z M118.87,136.95H65.52V68.96h53.36V136.95z M75.52,126.95h33.36V78.96H75.52V126.95z M53.29,136.95H0V96.19h53.29V136.95z M10,126.95h33.29v-20.77H10V126.95z M68.33,47.53 c-3.21,0-5.81,2.55-5.81,5.69c0,3.14,2.6,5.69,5.81,5.69c3.21,0,5.81-2.5
25,5.81-5.69C74.14,50.07,71.54,47.53,68.33,47.53z M85.07,37.84c-6.38-6.92-16.05-9.46-27.24-7.16l1.41,6.86c8.7-1.78,16.04,0.01,20.69,5.05c4.74,5.14,6.24,13.3,3.91,21.29 l6.72,1.96C93.62,55.35,91.57,44.88,85.07,37.84z M96.65,26.51c-9.14-10.05-23.27-13.78-39.8-10.49l1.37,6.87 c14.02-2.79,25.84,0.17,33.26,8.33c7.3,8.03,9.49,20.04,5.86,32.13l6.71,2.01C108.38,50.89,105.62,36.37,96.65,26.51z M107.94,16.05 C96.05,2.94,77.55-1.92,55.86,2.38l1.36,6.87c19.19-3.8,35.37,0.29,45.54,11.51c9.92,10.94,12.89,27.23,7.96,43.58l6.7,2.02 C123.07,47.64,119.53,28.83,107.94,16.05z"})))}const mn=e.forwardRef(pn);n.p;const gn=function(e){return(0,k.jsxs)("svg",(0,P.Z)((0,P.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 39.74 45.2"},e),{},{children:[(0,k.jsx)("style",{children:".organize_01_svg__st1{fill:#231f20}"}),(0,k.jsxs)("g",{id:"organize_01_svg__Layer_2",children:[(0,k.jsx)("path",{d:"M18.43 33.62l-7.17-15.37s-.06-1.29 1.79-2.16c1.85-.86 2.52.07 2.52.07l5.77 12.38-7.11-15.25s.12-.91 1.68-1.72c1.57-.81 2.4-.34 2.4-.34l1.01 2.17 6.04 12.95-6.03-12.95s.43-.74 1.71-1.34c1.28-.59 2.2-.95 2.54-.72.34.23 6.07 13.01 6.07 13.01l-4.11-9.03s.57-.73 1.46-1.15c.89-.42 1.22-.72 1.94-.67l.72.05 8.18 17.54s1.84 5.12-2.35 8.78-7.85 3.82-7.85 3.82l-4.68-.38s-3.46-1.26-4.6-2.36c-1.14-1.1-5.3-5.53-5.3-5.53L10.7 33.2s-1.01-1.33-.43-1.91l.34-.94s.81-.92 1.91-.58c1.09.34 2.97.87 2.97.87l1.73 1.21 1.21 1.77z",fill:"none",stroke:"#231f20",strokeWidth:3,strokeMiterlimit:10}),(0,k.jsx)("path",{className:"organize_01_svg__st1",d:"M0 0h8.11v8.11H0zM12.46 0h8.11v8.11h-8.11zM24.93 0h8.11v8.11h-8.11zM0 11.08h8.11v8.11H0zM0 22.17h8.11v8.11H0z"})]})]}))};const yn=function(e){return(0,k.jsxs)("svg",(0,P.Z)((0,P.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 39.74 45.2"},e),{},{children:[(0,k.jsx)("style",{children:".organize_01_w_svg__st2{fill:#fff}"}),(0,k.jsxs)("g",{id:"organize_01_w_svg__Layer_2",children:[(0,k.jsx)("path",{d:"M18.43 33.62l-7.17-15.37s-.06-1.29 1.79-2.16c1.85-.86 2.52.07 2.52.07l5.77 12.38-7.11-15.25s.12-.91 1.68-1.72c1.57-.81 2.4-.34 2.4-.34l1.01 2.17 6.04 12.95-6.03-12.95s.43-.74 1.71-1.34c1.28-.59 2.2-.95 2.54-.72.34.23 6.07 13.01 6.07 13.01l-4.11-9.03s.57-.73 1.46-1.15c.89-.42 1.22-.72 1.94-.67l.72.05 8.18 17.54s1.84 5.12-2.35 8.78-7.85 3.82-7.85 3.82l-4.68-.38s-3.46-1.26-4.6-2.36c-1.14-1.1-5.3-5.53-5.3-5.53L10.7 33.2s-1.01-1.33-.43-1.91l.34-.94s.81-.92 1.91-.58c1.09.34 2.97.87 2.97.87l1.73 1.21 1.21 1.77z",fill:"none",stroke:"#fff",strokeWidth:3,strokeMiterlimit:10}),(0,k.jsx)("path",{className:"organize_01_w_svg__st2",d:"M0 0h8.11v8.11H0zM12.46 0h8.11v8.11h-8.11zM24.93 0h8.11v8.11h-8.11zM0 11.08h8.11v8.11H0zM0 22.17h8.11v8.11H0z"})]})]}))},vn=new URL("https://mypicker.net"),bn=t=>{let{drawerWidth:n,open:r,ToggleDrawer:o}=t;const[i,f]=(0,e.useState)(!1),[p,m]=(0,e.useState)(!1),[g,y]=(0,e.useState)(!1),v=(0,_.Z)(),b=(0,A.v)();return(0,k.jsxs)(sn,{variant:"persistent",anchor:"left",open:r,drawerWidth:n,children:[(0,k.jsx)(Tt,{children:(0,k.jsx)(u.Z,{onClick:o,children:"ltr"===v.direction?(0,k.jsx)(a.Z,{}):(0,k.jsx)(s.Z,{})})}),(0,k.jsxs)(d.Z,{children:[(0,k.jsxs)(h.ZP,{button:!0,component:I.rU,to:T.y.COLLECTIONS,children:[(0,k.jsx)(u.Z,{color:"inherit",size:"large",children:(0,k.jsx)(l.Z,{})}),(0,k.jsx)(C,{children:"Collections"})]}),(0,k.jsxs)(h.ZP,{button:!0,component:I.rU,to:T.y.ORGANIZE,children:[(0,k.jsx)(u.Z,{color:"inherit",size:"large",children:b.value?(0,k.jsx)(yn,{width:"20px"}):(0,k.jsx)(gn,{width:"20px"})}),(0,k.jsx)(C,{children:"Organize"})]}),(0,k.jsxs)(h.ZP,{button:!0,component:I.rU,to:T.y.TAGS,children:[(0,k.jsx)(u.Z,{color:"inherit",size:"large",children:(0,k.jsx)(c.Z,{})}),(0,k.jsx)(C,{children:"Tags"})]}),(0,k.jsxs)(h.ZP,{button:!0,component:I.rU,to:T.y.BOOKMARKS,children:[(0,k.jsx)(u.Z,{color:"inherit",size:"large",children:b.value?(0,k.jsx)(mn,{width:"20px",fill:"#f2f2f2"}):(0,k.jsx)(mn,{width:"20px",fill:"#000"})}),(0,k.jsx)(C,{children:"Live Collections"})]})]}),(0,k.jsx)(_t,{isFullScreen:p,setFullScreen:m}),(0,k.jsx)(un.Z,{sx:{borderRadius:"10px"},variant:"contained",width:"96%",onClick:()=>{f(!0)},children:"Share Picker!"}),(0,k.jsx)(ln,{onClick:()=>y(!0),variant:"contained",children:"Pilot Feedback"}),(0,k.jsx)(Bt,{open:g,handleClose:()=>y(!1)}),i&&(0,k.jsx)(O.Z,{onDone:()=>f(null),title:"Share Picker!",sharedUrl:vn})]})};var wn=n(98008),xn=n(95193);function kn(e){return(0,X.Z)("MuiToolbar",e)}(0,$.Z)("MuiToolbar",["root","gutters","regular","dense"]);const Sn=["className","component","disableGutters","variant"],En=(0,w.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,p.Z)({position:"relative",display:"flex",alignItems:"center"},!n.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},"dense"===n.variant&&{minHeight:48})}),(e=>{let{theme:t,ownerState:n}=e;return"regular"===n.variant&&t.mixins.toolbar})),Cn=e.forwardRef((function(e,t){const n=(0,b.Z)({props:e,name:"MuiToolbar"}),{className:r,component:o="div",disableGutters:i=!1,variant:a="regular"}=n,s=(0,f.Z)(n,Sn),l=(0,p.Z)({},n,{component:o,disableGutters:i,variant:a}),c=(e=>{const{classes:t,disableGutters:n,variant:r}=e,o={root:["root",!n&&"gutters",r]};return(0,g.Z)(o,kn,t)})(l);return(0,k.jsx)(En,(0,p.Z)({as:o,className:(0,m.Z)(c.root,r),ref:t,ownerState:l},s))}));var _n=n(29388),Tn=n(30838);const On=(0,Rt.Z)("div")((e=>{let{theme:t}=e;return{display:"flex",backgroundColor:"#2e99f7",justifyContent:"space-between",padding:"14px 16px",alignItems:"center",[t.breakpoints.down("md")]:{dis
2play:"none"}}})),In=(0,Rt.Z)(Dt.Z)({color:"white",textDecorationColor:"white"}),An=(0,Rt.Z)(je.Z)({color:"white",textDecoration:"underline",textDecorationColor:"white"}),Pn=(0,Rt.Z)(je.Z)({minWidth:"0","& .MuiButton-startIcon":{margin:0}}),Rn=e=>{let{setIsSurferOpen:t,setIsBannerOpen:n}=e;return(0,k.jsxs)(On,{children:[(0,k.jsxs)(r.Z,{display:"flex",color:"white",gap:4,alignItems:"center",children:[(0,k.jsx)(_n.Z,{fontSize:"large",sx:{color:"white"}}),(0,k.jsxs)(y.Z,{children:[(0,k.jsx)("strong",{children:"Get your Surfer Buddy now! Download from"})," ",(0,k.jsx)(In,{href:Tn.q1,target:"_blank",children:"Chrome Web Store"})]})]}),(0,k.jsxs)(r.Z,{display:"flex",gap:4,children:[(0,k.jsx)(y.Z,{color:"white",children:(0,k.jsx)(An,{onClick:()=>t(!0),children:"View details"})}),(0,k.jsx)(Pn,{onClick:async()=>{localStorage.removeItem("isBannerOpen"),n(!1)},startIcon:(0,k.jsx)(F.Z,{sx:{color:"white"}})})]})]})};var Nn=n(83706);const Dn=(0,w.ZP)(r.Z)((e=>{let{theme:t}=e;return{position:"absolute",top:"84px",right:"80px",width:"460px",backgroundColor:t.palette.modalsBackground,border:"1px solid black",padding:"30px 54px 20px",[t.breakpoints.down("sm")]:{top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"360px"}}})),Mn=e=>{let{open:t,handleClose:n,type:r,title:o}=e;return(0,k.jsx)(R.Z,{open:t,onClose:n,children:(0,k.jsx)(Dn,{children:(0,k.jsx)(Nn.Z,{type:r,title:o,providers:["apple","google"],afterAuthPath:T.y.COLLECTIONS,handleClose:n,isModal:!0})})})};var Ln=n(28029);const Zn=(0,w.ZP)(r.Z)((e=>{let{theme:t}=e;return{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",display:"flex",flexDirection:"column",width:"460px",maxHeight:"100%",backgroundColor:t.palette.modalsBackground,border:"1px solid black",boxShadow:24,padding:"40px",gap:20,[t.breakpoints.down("sm")]:{width:"360px"}}})),jn=(0,w.ZP)(tt.Z)({color:"grey"}),Fn=(0,w.ZP)(Dt.Z,{shouldForwardProp:e=>"color"!==e})((e=>{let{color:t}=e;return{color:t}})),zn=t=>{let{open:n,handleClose:o}=t;const[i,a]=(0,e.useState)(!1),[s,l]=(0,e.useState)(!1),c=(0,_.Z)(),{register:u,handleSubmit:d}=(0,Ot.cI)();return(0,k.jsx)(R.Z,{open:n,onClose:()=>{o(),l(!1)},children:(0,k.jsx)(Zn,{color:c.palette.primary.main,children:s?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(y.Z,{variant:"h4",children:"Thank you so much for joining our waiting list."}),(0,k.jsx)(y.Z,{variant:"subtitle1",children:"You will get an invite to our pre-launch via email as soon as possible."}),(0,k.jsxs)("div",{children:[(0,k.jsx)(y.Z,{fontWeight:"bold",children:"Take care and see you soon."}),(0,k.jsx)(y.Z,{fontWeight:"bold",children:"Best regards,"}),(0,k.jsx)(y.Z,{fontWeight:"bold",children:"Your picker team"})]})]}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(y.Z,{variant:"h4",children:"Hello and welcome"}),(0,k.jsx)(y.Z,{fontWeight:"bold",children:"We\u2019re happy you\u2019re interested in Picker."}),(0,k.jsxs)(y.Z,{children:["Right now we\u2019re BETA testing and"," ",(0,k.jsx)("strong",{children:"by joining our waiting list"})," you\u2019ll"," ",(0,k.jsx)("strong",{children:"be first in line "}),"to get access to a great productivity companion."]}),(0,k.jsx)("form",{onSubmit:d((async e=>{a(!0);try{await(0,_e.Ug)({firstname:e.name,lastname:e.lastName,email:e.email}),await(0,Te.OO)({name:e.name,lastName:e.lastName,email:e.email}),l(!0),a(!1)}catch(t){console.warn(t)}})),children:(0,k.jsxs)(r.Z,{display:"flex",flexDirection:"column",gap:2,children:[(0,k.jsx)(Ln.Z,(0,P.Z)({placeholder:"First name..."},u("name",{required:"Please enter your name"}))),(0,k.jsx)(Ln.Z,(0,P.Z)({placeholder:"Last name..."},u("lastName"))),(0,k.jsx)(Ln.Z,(0,P.Z)({type:"email",placeholder:"Email..."},u("email",{required:"Please enter your email"}))),(0,k.jsx)(je.Z,{variant:"contained",type:"submit",children:i?(0,k.jsx)(jn,{size:28}):"Join Waiting List"})]})}),(0,k.jsxs)(y.Z,{textAlign:"center",color:"grey",component:"p",variant:"subtitle2",py:3,children:["By continuing you agree to Pickers"," ",(0,k.jsx)(Fn,{component:I.rU,to:T.y.TERMS_AND_PRIVACY,onClick:o,color:"grey",children:"Terms and Services"})]})]})})})};var Un=n(53912),Bn=n.n(Un),Vn=n(91523),Hn=n(61889);const Wn=(0,w.ZP)(Dt.Z)((e=>{let{theme:t}=e;return{textDecoration:"none",whiteSpace:"nowrap",fontSize:"1.5rem","&.active":{color:t.palette.primary.title,textShadow:"0 0 2px rgba(110, 109, 109, 0.23)"},"&:hover":{color:t.palette.primary.title,textShadow:"0 0 2px rgba(110, 109, 109, 0.23)"}}})),qn=(0,w.ZP)(Hn.ZP)((e=>{let{theme:t}=e;return{marginLeft:"40px",[t.breakpoints.down("md")]:{marginLeft:"0"},"& .MuiButton-outlined":{color:t.palette.primary.title,borderColor:t.palette.primary.title},"& .MuiLink-root":{color:t.palette.primary.titleShadow}}})),Gn=()=>(0,k.jsx)(qn,{container:!0,item:!0,columnSpacing:{xs:1,md:2},rowSpacing:1,justifyContent:"center",alignItems:"center",gap:4,display:{md:"flex",xs:"none"}
2,children:Tn.qy.map((e=>(0,k.jsx)(Hn.ZP,{item:!0,children:(0,k.jsx)(Wn,{component:Vn.OL,to:e.path,children:e.name})},e.path)))});var Kn=n(81131),Qn=n(80911),Yn=n(94721);const $n=t=>{let{auth:n}=t;const[r,o]=(0,e.useState)(null),i=Boolean(r),a=()=>{o(null)};return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(je.Z,{color:"inherit","aria-label":"Account Menu","aria-controls":"account-menu","aria-haspopup":"true",onClick:e=>{o(e.currentTarget)},children:["Account",(0,k.jsx)(Kn.Z,{})]}),(0,k.jsxs)(Qn.Z,{id:"account-menu",open:i,anchorEl:r,onClose:a,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},disableScrollLock:!0,children:[(0,k.jsx)(Pt.Z,{component:I.rU,to:T.y.SETTINGS("general"),onClick:a,children:"Settings"}),(0,k.jsx)(Yn.Z,{}),(0,k.jsx)(Pt.Z,{onClick:()=>{n.signout(),a()},children:"Log out"})]})]})};var Xn=n(2094);const Jn=(0,w.ZP)(je.Z)((e=>{let{theme:t}=e;return{width:"120px",maxHeight:"36.5px",fontWeight:"400",fontSize:"1.2rem",borderRadius:"20px",color:t.palette.primary.title,"&:hover":{backgroundColor:t.palette.primary.titleShadow}}})),er=t=>{let{isSmallMobile:n,onLoginClick:o}=t;const[i,a]=(0,e.useState)(null),s=Boolean(i),l=e=>{a(e.currentTarget)},c=()=>{a(null)},d=()=>{o(),c()},h=()=>{c()};return n?(0,k.jsxs)(r.Z,{children:[(0,k.jsx)(u.Z,{color:"inherit","aria-label":"open authentication menu",onClick:l,edge:"end",sx:{paddingRight:"30px"},children:(0,k.jsx)(Xn.Z,{})}),(0,k.jsxs)(Qn.Z,{id:"mobile-auth-menu",anchorEl:i,open:s,onClose:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},disableScrollLock:!0,children:[(0,k.jsx)(Pt.Z,{onClick:d,children:"Log in"}),(0,k.jsx)(Pt.Z,{component:I.rU,to:T.y.PRODUCTS_PAGE,onClick:h,children:"Sign up"}),Tn.qy.map((e=>(0,k.jsx)(Pt.Z,{component:I.rU,to:e.path,onClick:c,children:e.name},e.path)))]})]}):(0,k.jsxs)(r.Z,{display:"flex",gap:2,maxWidth:"min-content",children:[(0,k.jsx)(Jn,{variant:"text",component:I.rU,to:T.y.PRODUCTS_PAGE,sx:{"&:hover":{backgroundColor:"#6b6b6b21"}},children:"Sign up"}),(0,k.jsx)(Jn,{variant:"contained",sx:{color:"#ffffff",backgroundColor:"#6b6b6b"},onClick:o,children:"Log in"})]})};function tr(e){return(0,X.Z)("MuiAppBar",e)}(0,$.Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const nr=["className","color","enableColorOnDark","position"],rr=(e,t)=>e?"".concat(null==e?void 0:e.replace(")",""),", ").concat(t,")"):t,or=(0,w.ZP)(Y.Z,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["position".concat((0,G.Z)(n.position))],t["color".concat((0,G.Z)(n.color))]]}})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return(0,p.Z)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===n.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===n.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===n.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===n.position&&{position:"static"},"relative"===n.position&&{position:"relative"},!t.vars&&(0,p.Z)({},"default"===n.color&&{backgroundColor:r,color:t.palette.getContrastText(r)},n.color&&"default"!==n.color&&"inherit"!==n.color&&"transparent"!==n.color&&{backgroundColor:t.palette[n.color].main,color:t.palette[n.color].contrastText},"inherit"===n.color&&{color:"inherit"},"dark"===t.palette.mode&&!n.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===n.color&&(0,p.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&(0,p.Z)({},"default"===n.color&&{"--AppBar-background":n.enableColorOnDark?t.vars.palette.AppBar.defaultBg:rr(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":n.enableColorOnDark?t.vars.palette.text.primary:rr(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},n.color&&!n.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":n.enableColorOnDark?t.vars.palette[n.color].main:rr(t.vars.palette.AppBar.darkBg,t.vars.palette[n.color].main),"--AppBar-color":n.enableColorOnDark?t.vars.palette[n.color].contrastText:rr(t.vars.palette.AppBar.darkColor,t.vars.palette[n.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===n.color?"inherit":"var(--AppBar-color)"},"transparent"===n.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),ir=e.forwardRef((function(e,t){const n=(0,b.Z)({props:e,name:"MuiAppBar"}),{className:r,color:o="primary",enableColorOnDark:i=!1,position:a="fixed"}=n,s=(0,f.Z)(n,nr),l=(0,p.Z)({},n,{color:o,position:a,enableColorOnDark:i}),c=(e=>{const{color:t,position:n,classes:r}=e,o={root:["root","color".concat((0,G.Z)(t)),"position".concat((0,G.Z)(n))]};return(0,g.Z)(o,tr,r)})(l);return(0,k.jsx)(or,(0,p.Z)({square:!0,component:"header",ownerState:l,elevation:4,className:(0,m.Z)(c.root,r,"fixed"===a&&"mui-fixed"),ref:t},s))}));const ar=function(e){return(0,k.jsxs)("svg",(0,P.Z)((0,P.Z)({id:"picker_logo_b_svg__Layer_1",xmlns:"http://www.w3.org/2000/svg",x:0,y:0,viewBox:"0 0 479.9 241.9",xmlSpace:"preserve"},e),{},{children:[(0,k.jsx)("style",{children:".picker_logo_b_svg__st3{fill:#c30}"}),(0,k.jsx)("circle",{cx:141.6,cy:83.8,r:68.9,fill:"#69c"}),(0,k.jsx)("circle",{cx:141.8,cy:83.8,r:50.1,fill:"#f93"}),(0,k.jsx)("circle",{cx:141.9,cy:84,r:31.3,fill:"#fff"}),(0,k.jsx)("circle",{className:"picker_logo_b_svg__st3",cx:141.9,cy:84,r:12.5}),(0,k.jsx)("g",{children:(0,k.jsx)("path",{d:"M113.9 150.1c0 10.8-3.1 19.8-9.2 27-6.1 7.2-13.8 10.8-23 10.8-7 0-12.6-2.8-16.8-8.3v35.7c0 3 .2 4.8.5 5.6.3.8 1 1.3 2.1 1.5 1.1.2 3.9.4 8.4.5 1.2 0 1.7.5 1.7 1.5 0 .8-.7 1.2-2.1 1.2h-40c-2.3 0-3.5-.4-3.5-1.3 0-.7 1.9-1.1 5.7-1.1 3.2 0 5-.3 5.3-1 .4-.6.6-2.7.6-6V136v-2.2-5.8c.1-2.2-.7-3.6-2.5-4.1-.8-.3-2.7-.5-5.4-.5h-3c-.8 0-1.3-.3-1.3-1 0-.8.6-1.2 1.9-1 11.2-.3 21.1-2.4 29.6-6.4.4.6.7 1.5.8 2.5l.3 4 .2 2.7c2.9-3.5 5.7-6 8.4-7.3 2.8-1.3 6.3-2 10.7-2 8.8 0 16.1 3.3 22 9.9 5.7 6.9 8.6 15.3 8.6 25.3zm-23.3-.6c0-20.2-4.5-30.3-13.6-30.3-4 0-7.4 1.9-10.1 5.7-1.3 1.8-1.9 4.8-1.9 9v31.3c0 6.8.8 11.4 2.5 13.8 2.4 3.6 5.7 5.4 9.8 5.4 8.8 0 13.3-11.6 13.3-34.9zM163.7 184.9c0 .7-.5 1.1-1.4 1.1H122.2c-1.3 0-1.9-.3-1.9-1 0-.5 1.2-.8 3.7-.9 3.6-.1 5.7-.5 6.4-1.2.6-.7 1-2.8 1-6.3v-45.9c0-4.1-.3-6.5-1-7.3-.7-.8-2.8-1.2-6.3-1.2-2.2 0-3.5-.1-3.9-.2-.4-.1-.6-.5-.6-1.1 0-.7.8-1.1 2.4-1.1 11.7-.1 21.6-1.9 29.9-5.4.2 1.3.5 4.8.8 10.5V175c0 4.3.4 6.9 1.2 7.6.8.7 3.5 1.1 8.2 1.1 1.1.1 1.6.4 1.6 1.2zM152.6 84c0 3-1 5.5-3.1 7.6-2.1 2.1-4.6 3.2-7.5 3.2-3 0-5.6-1-7.6-3-2.1-2-3.1-4.6-3.1-7.6s1-5.4 3.1-7.3c2.1-1.9 4.7-2.9 8-2.9 2.9 0 5.4 1 7.3 2.9 1.9 1.9 2.9 4.3 2.9 7.1zM228.5 131.4c0 2.5-.7 4.6-2.2 6.2-1.5 1.6-3.4 2.4-5.7 2.4-5.6 0-8.4-2.5-8.4-7.5 0-1.3.3-2.8 1-4.5.7-1.8 1-3 1-3.7 0-2-.8-3.7-2.3-5.2-1.5-1.4-3.4-2.1-5.6-2.1-9.7 0-14.5 10.8-14.5 32.3 0 12.3 2.1 21.1 6.4 26.4 3.3 4 7.3 6 12.1 6 5 0 10.1-3.2 15.3-9.7.6-.8 1.2-1.3 1.7-1.3.4 0 .6.3.6 1 0 2-1.9 4.8-5.7 8.4-5.5 5.2-12.1 7.8-19.9 7.8-9.5 0-17.7-3.4-24.4-10.3-6.7-6.8-10.1-15.1-10.1-24.9 0-10.6 3.6-19.5 10.7-26.8 7.1-7.3 15.9-10.9 26.2-10.9 6.7 0 12.3 1.6 16.9 4.8 4.6 3.2 6.9 7.1 6.9 11.6zM316.9 184.9c0 .7-2 1.1-5.9 1.1H277c-1.5 0-2.2-.4-2.2-1.1 0-.7 1.4-1.2 4.3-1.3 1.8-.1 2.7-.7 2.7-1.8s-2.2-5.2-6.7-12.4c-1.3-1.9-3.1-4.9-5.6-8.9-1.7-3-4-6.8-7.2-11.6v23.4c0 5.6.2 8.9.5 9.8.4 1 1.5 1.4 3.5 1.4h2.8c1 0 1.6.4 1.6 1.2 0 .8-.6 1.2-1.8 1.2H231.9c-1.2 0-1.8-.4-1.8-1.1 0-.7 1.4-1.2 4.1-1.3 3.5-.1 5.5-.4 6-.9s.7-3.2.7-7.9V91c0-4.1-.5-6.7-1.4-7.6-.9-1-3.4-1.4-7.3-1.3-2 0-3.1-.4-3.1-1.2 0-.7.2-1.1.6-1.2.4-.1 2-.2 4.6-.3 10.7-.4 18.2-1.8 22.6-4.1 1.5-.8 2.8-1.3 3.8-1.4.4 1.5.7 4.4.8 8.6l.6 17v47.2c1.7-1.4 4.4-4.2 8.2-8.5 1.6-1.8 3.9-4.6 7.1-8.2 5.1-5.8 7.6-8.9 7.6-9.3 0-.5-.3-.9-1-1-.6-.1-2.8-.2-6.4-.3-2.4 0-3.7-.4-3.7-1.3 0-.7.6-1.1 1.9-1.1h24.5c1.9 0 2.9.3 2.9 1s-2.2 1.1-6.5 1.3c-2.9.1-5.2 1.1-7 2.9-3.3 3.2-7.5 7.6-12.6 13.4l18.3 27.7c1 1.6 2.5 4 4.6 7.1.3.4 1.1 1.6 2.4 3.5l2.6 3.9 1.3 1.9c1.2 1.8 2.1 2.9 2.9 3.4.7.5 2.2.7 4.2.7s3.5.2 3.5 1.1zM378.8 166.4c0 2.3-1.4 5.4-4.1 9.2-5.9 8.2-13.7 12.2-23.2 12.2-10.7 0-19.5-3.4-26.4-10.2-6.9-6.8-10.3-15.5-10.3-26.1 0-10.4 3.3-19.1 10-26 6.7-6.9 15-10.4 25-10.4 6.8 0 12.6 1.5 17.3 4.5 5.3 3.3 8.7 8 10.3 14.2.4 1.9.7 4.2 1 6.8-2.4.3-12.2.5-29.4.6-2.7 0-6 .1-10 .3-.3 3.8-.5 7-.5 9.7 0 12.4 2.6 21.1 7.8 26.3 3.1 3.1 6.8 4.6 11.3 4.6 3.7 0 7.3-1.3 10.7-3.8 3.4-2.5 6.1-5.8 7.9-9.9.8-2 1.5-3 2.1-3 .3.1.5.4.5 1zm-20-27.8c.1-8.1-.5-13.7-1.8-16.9-1.3-3.2-3.5-4.7-6.7-4.7-6.5 0-10.2 7.2-11.1 21.6h19.6zM443.5 127c0 3.1-.9 5.6-2.7 7.6-1.8 2-4.1 2.9-7 2.9-5.7 0-8.6-2.6-8.6-8 0-1.8.7-3.6 2.1-5.4.3-.4.5-.8.5-1.1 0-1-.7-1.4-2-1.4-3.6 0-6.3 2.8-8.2 8.4-1 3.2-1.6 10.9-1.6 23.3v25.6c0 2.9 1.4 4.4 4.3 4.6 1.7.1 3.7.2 6 .2 1.2.1 1.8.5 1.8 1.1 0 .8-.5 1.3-1.4 1.3h-17H385c-1.2 0-1.8-.3-1.8-1s.7-1 2.2-1c4.3-.1 7-.6 7.9-1.3.9-.8 1.4-3.1 1.4-7.1l-.2
2-42.8c0-3.6-.5-6.1-1.5-7.5-1-1.4-3.3-2.2-6.8-2.5-2.8-.2-4.3-.3-4.7-.4-.4-.1-.6-.4-.6-1s.4-.9 1.3-.9h5.9c8.2 0 17-1.7 26.4-5.1.5 2.1.8 4.6.8 7.3v6.7c2-5.1 4.2-8.8 6.6-10.9 2.4-2.1 5.5-3.1 9.3-3.1 3.6 0 6.5 1.1 8.8 3.3 2.4 2 3.5 4.8 3.5 8.2z"})}),(0,k.jsx)("circle",{className:"picker_logo_b_svg__st3",cx:142.1,cy:84.2,r:11.4}),(0,k.jsx)("path",{fill:"none",d:"M0 0h479.9v241.9H0z"})]}))};const sr=function(e){return(0,k.jsxs)("svg",(0,P.Z)((0,P.Z)({id:"picker_logo_w_svg__Layer_1",xmlns:"http://www.w3.org/2000/svg",x:0,y:0,viewBox:"0 0 479.9 241.9",xmlSpace:"preserve"},e),{},{children:[(0,k.jsx)("style",{children:".picker_logo_w_svg__st3{fill:#c30}.picker_logo_w_svg__st4{fill:#f2f2f2}"}),(0,k.jsx)("circle",{cx:141.6,cy:83.8,r:68.9,fill:"#69c"}),(0,k.jsx)("circle",{cx:141.8,cy:83.8,r:50.1,fill:"#f93"}),(0,k.jsx)("circle",{cx:141.9,cy:84,r:31.3,fill:"#fff"}),(0,k.jsx)("circle",{className:"picker_logo_w_svg__st3",cx:141.9,cy:84,r:12.5}),(0,k.jsx)("g",{children:(0,k.jsx)("path",{className:"picker_logo_w_svg__st4",d:"M113.9 150.1c0 10.8-3.1 19.8-9.2 27-6.1 7.2-13.8 10.8-23 10.8-7 0-12.6-2.8-16.8-8.3v35.7c0 3 .2 4.8.5 5.6.3.8 1 1.3 2.1 1.5 1.1.2 3.9.4 8.4.5 1.2 0 1.7.5 1.7 1.5 0 .8-.7 1.2-2.1 1.2h-40c-2.3 0-3.5-.4-3.5-1.3 0-.7 1.9-1.1 5.7-1.1 3.2 0 5-.3 5.3-1 .4-.6.6-2.7.6-6V136v-2.2-5.8c.1-2.2-.7-3.6-2.5-4.1-.8-.3-2.7-.5-5.4-.5h-3c-.8 0-1.3-.3-1.3-1 0-.8.6-1.2 1.9-1 11.2-.3 21.1-2.4 29.6-6.4.4.6.7 1.5.8 2.5l.3 4 .2 2.7c2.9-3.5 5.7-6 8.4-7.3 2.8-1.3 6.3-2 10.7-2 8.8 0 16.1 3.3 22 9.9 5.7 6.9 8.6 15.3 8.6 25.3zm-23.3-.6c0-20.2-4.5-30.3-13.6-30.3-4 0-7.4 1.9-10.1 5.7-1.3 1.8-1.9 4.8-1.9 9v31.3c0 6.8.8 11.4 2.5 13.8 2.4 3.6 5.7 5.4 9.8 5.4 8.8 0 13.3-11.6 13.3-34.9zM163.7 184.9c0 .7-.5 1.1-1.4 1.1H122.2c-1.3 0-1.9-.3-1.9-1 0-.5 1.2-.8 3.7-.9 3.6-.1 5.7-.5 6.4-1.2.6-.7 1-2.8 1-6.3v-45.9c0-4.1-.3-6.5-1-7.3-.7-.8-2.8-1.2-6.3-1.2-2.2 0-3.5-.1-3.9-.2-.4-.1-.6-.5-.6-1.1 0-.7.8-1.1 2.4-1.1 11.7-.1 21.6-1.9 29.9-5.4.2 1.3.5 4.8.8 10.5V175c0 4.3.4 6.9 1.2 7.6.8.7 3.5 1.1 8.2 1.1 1.1.1 1.6.4 1.6 1.2zM152.6 84c0 3-1 5.5-3.1 7.6-2.1 2.1-4.6 3.2-7.5 3.2-3 0-5.6-1-7.6-3-2.1-2-3.1-4.6-3.1-7.6s1-5.4 3.1-7.3c2.1-1.9 4.7-2.9 8-2.9 2.9 0 5.4 1 7.3 2.9 1.9 1.9 2.9 4.3 2.9 7.1zM228.5 131.4c0 2.5-.7 4.6-2.2 6.2-1.5 1.6-3.4 2.4-5.7 2.4-5.6 0-8.4-2.5-8.4-7.5 0-1.3.3-2.8 1-4.5.7-1.8 1-3 1-3.7 0-2-.8-3.7-2.3-5.2-1.5-1.4-3.4-2.1-5.6-2.1-9.7 0-14.5 10.8-14.5 32.3 0 12.3 2.1 21.1 6.4 26.4 3.3 4 7.3 6 12.1 6 5 0 10.1-3.2 15.3-9.7.6-.8 1.2-1.3 1.7-1.3.4 0 .6.3.6 1 0 2-1.9 4.8-5.7 8.4-5.5 5.2-12.1 7.8-19.9 7.8-9.5 0-17.7-3.4-24.4-10.3-6.7-6.8-10.1-15.1-10.1-24.9 0-10.6 3.6-19.5 10.7-26.8 7.1-7.3 15.9-10.9 26.2-10.9 6.7 0 12.3 1.6 16.9 4.8 4.6 3.2 6.9 7.1 6.9 11.6zM316.9 184.9c0 .7-2 1.1-5.9 1.1H277c-1.5 0-2.2-.4-2.2-1.1 0-.7 1.4-1.2 4.3-1.3 1.8-.1 2.7-.7 2.7-1.8s-2.2-5.2-6.7-12.4c-1.3-1.9-3.1-4.9-5.6-8.9-1.7-3-4-6.8-7.2-11.6v23.4c0 5.6.2 8.9.5 9.8.4 1 1.5 1.4 3.5 1.4h2.8c1 0 1.6.4 1.6 1.2 0 .8-.6 1.2-1.8 1.2H231.9c-1.2 0-1.8-.4-1.8-1.1 0-.7 1.4-1.2 4.1-1.3 3.5-.1 5.5-.4 6-.9s.7-3.2.7-7.9V91c0-4.1-.5-6.7-1.4-7.6-.9-1-3.4-1.4-7.3-1.3-2 0-3.1-.4-3.1-1.2 0-.7.2-1.1.6-1.2.4-.1 2-.2 4.6-.3 10.7-.4 18.2-1.8 22.6-4.1 1.5-.8 2.8-1.3 3.8-1.4.4 1.5.7 4.4.8 8.6l.6 17v47.2c1.7-1.4 4.4-4.2 8.2-8.5 1.6-1.8 3.9-4.6 7.1-8.2 5.1-5.8 7.6-8.9 7.6-9.3 0-.5-.3-.9-1-1-.6-.1-2.8-.2-6.4-.3-2.4 0-3.7-.4-3.7-1.3 0-.7.6-1.1 1.9-1.1h24.5c1.9 0 2.9.3 2.9 1s-2.2 1.1-6.5 1.3c-2.9.1-5.2 1.1-7 2.9-3.3 3.2-7.5 7.6-12.6 13.4l18.3 27.7c1 1.6 2.5 4 4.6 7.1.3.4 1.1 1.6 2.4 3.5l2.6 3.9 1.3 1.9c1.2 1.8 2.1 2.9 2.9 3.4.7.5 2.2.7 4.2.7s3.5.2 3.5 1.1zM378.8 166.4c0 2.3-1.4 5.4-4.1 9.2-5.9 8.2-13.7 12.2-23.2 12.2-10.7 0-19.5-3.4-26.4-10.2-6.9-6.8-10.3-15.5-10.3-26.1 0-10.4 3.3-19.1 10-26 6.7-6.9 15-10.4 25-10.4 6.8 0 12.6 1.5 17.3 4.5 5.3 3.3 8.7 8 10.3 14.2.4 1.9.7 4.2 1 6.8-2.4.3-12.2.5-29.4.6-2.7 0-6 .1-10 .3-.3 3.8-.5 7-.5 9.7 0 12.4 2.6 21.1 7.8 26.3 3.1 3.1 6.8 4.6 11.3 4.6 3.7 0 7.3-1.3 10.7-3.8 3.4-2.5 6.1-5.8 7.9-9.9.8-2 1.5-3 2.1-3 .3.1.5.4.5 1zm-20-27.8c.1-8.1-.5-13.7-1.8-16.9-1.3-3.2-3.5-4.7-6.7-4.7-6.5 0-10.2 7.2-11.1 21.6h19.6zM443.5 127c0 3.1-.9 5.6-2.7 7.6-1.8 2-4.1 2.9-7 2.9-5.7 0-8.6-2.6-8.6-8 0-1.8.7-3.6 2.1-5.4.3-.4.5-.8.5-1.1 0-1-.7-1.4-2-1.4-3.6 0-6.3 2.8-8.2 8.4-1 3.2-1.6 10.9-1.6 23.3v25.6c0 2.9 1.4 4.4 4.3 4.6 1.7.1 3.7.2 6 .2 1.2.1 1.8.5 1.8 1.1 0 .8-.5 1.3-1.4 1.3h-17H385c-1.2 0-1.8-.3-1.8-1s.7-1 2.2-1c4.3-.1 7-.6 7.9-1.3.9-.8 1.4-3.1 1.4-7.1l-.2
2-42.8c0-3.6-.5-6.1-1.5-7.5-1-1.4-3.3-2.2-6.8-2.5-2.8-.2-4.3-.3-4.7-.4-.4-.1-.6-.4-.6-1s.4-.9 1.3-.9h5.9c8.2 0 17-1.7 26.4-5.1.5 2.1.8 4.6.8 7.3v6.7c2-5.1 4.2-8.8 6.6-10.9 2.4-2.1 5.5-3.1 9.3-3.1 3.6 0 6.5 1.1 8.8 3.3 2.4 2 3.5 4.8 3.5 8.2z"})}),(0,k.jsx)("circle",{className:"picker_logo_w_svg__st3",cx:142.1,cy:84.2,r:11.4}),(0,k.jsx)("path",{fill:"none",d:"M0 0h479.9v241.9H0z"})]}))},lr=(0,w.ZP)(ir,{shouldForwardProp:e=>"open"!==e&&"drawerWidth"!==e})((e=>{let{theme:t,open:n,drawerWidth:r}=e;return(0,P.Z)((0,P.Z)({transition:t.transitions.create(["margin","width"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.leavingScreen}),marginLeft:"-".concat(r,"px")},n&&{width:"calc(100% - ".concat(r,"px)"),marginLeft:"".concat(r,"px"),transition:t.transitions.create(["margin","width"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}),{},{boxShadow:"none"})})),cr=(0,w.ZP)(y.Z)((e=>{let{theme:t}=e;return{color:t.palette.primary.title,textDecoration:"none",marginLeft:"10px",fontSize:"1.5rem",fontWeight:"500"}})),ur=((0,w.ZP)(ar)((e=>{let{theme:t}=e;return{width:"150px",[t.breakpoints.down("md")]:{width:"110px"}}})),(0,w.ZP)(sr)((e=>{let{theme:t}=e;return{width:"150px",[t.breakpoints.down("md")]:{width:"110px"}}})),(0,w.ZP)(u.Z,{shouldForwardProp:e=>"darkMode"!==e})((e=>{let{darkMode:t}=e;return{opacity:.6,"&:hover":{opacity:1,color:t.value?"#1a73e8":"#FFC300"},"&:active":{opacity:1,color:t.value?"#1a73e8":"#FFC300"}}})),(0,w.ZP)("img")({height:"45px",objectFit:"contain"}));var dr=n(97805);const hr=t=>{let{open:n,ToggleDrawer:o,drawerWidth:a,setIsSurferOpen:s}=t;const l=(0,Z.aC)(),c=(0,I.tv)(),d=(0,e.useRef)(null),[,h]=(0,i.KO)(M.E5),[f,p]=(0,i.KO)(M.jt),[,m]=(0,i.KO)(M.M0),[g,y]=(0,i.KO)(M.qS),[v,b]=(0,e.useState)(!1),w=(0,xn.Z)((e=>e.breakpoints.down("md"))),x=(0,xn.Z)((e=>e.breakpoints.down("sm")));(0,e.useEffect)((()=>{(0,_e.g4)().then((e=>{h(e.images)}))}),[h]),(0,e.useEffect)((()=>{const e=JSON.parse(localStorage.getItem("isBannerOpen"))&&l.user&&"Chrome"===Bn().name;y(Boolean(e))}),[l.user,y]),(0,e.useEffect)((()=>{d.current&&m(d.current.clientHeight-2)}),[g,w,m]);const S=c.pathname!==T.y.TRYFORFREE&&c.pathname!==T.y.RECIPES;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(lr,{position:"fixed",color:"inherit",open:n,drawerWidth:a,ref:d,children:[g&&(0,k.jsx)(Rn,{setIsSurferOpen:s,setIsBannerOpen:y}),(0,k.jsxs)(Cn,{sx:{justifyContent:"space-between"},children:[(0,k.jsxs)(r.Z,{display:"flex",alignItems:"center",sx:{paddingTop:"15px",paddingBottom:"15px"},children:[l.user&&(0,k.jsx)(u.Z,{color:"inherit","aria-label":"open drawer",onClick:o,edge:"start",sx:(0,P.Z)({height:"40px",mr:2},n&&{display:"none"}),children:(0,k.jsx)(wn.Z,{})}),(0,k.jsxs)(I.rU,{to:"/",style:{textDecoration:"none",color:"inherit",display:"flex",alignItems:"center"},children:[(0,k.jsx)(ur,{src:dr,alt:"Picker logo"}),(0,k.jsx)(cr,{variant:"h5",children:"Picker"})]})]}),S&&(0,k.jsxs)(k.Fragment,{children:[!l.user&&null!==l.user&&(0,k.jsx)(Gn,{}),(0,k.jsx)(r.Z,{display:"flex",alignItems:"center",gap:{xs:1,md:2},children:l.user||null===l.user?l.user?(0,k.jsx)($n,{auth:l}):null:(0,k.jsx)(er,{isSmallMobile:x,onLoginClick:()=>b(!0)})})]})]})]}),(0,k.jsx)(Mn,{open:v,handleClose:()=>b(!1),type:"signin",title:"Welcome back"}),(0,k.jsx)(zn,{open:f,handleClose:()=>p(!1)})]})};var fr=n(54270);const pr=()=>(0,k.jsxs)(fr.q,{children:[(0,k.jsx)("script",{children:"\n !function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod ?\n n.callMethod.apply(n, arguments) : n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', '".concat("458608213400904","');\n fbq('track', 'PageView');\n ")}),(0,k.jsx)("noscript",{children:'\n <img\n height="1"\n width="1"\n style="display:none"\n src="https://www.facebook.com/tr?id='.concat("458608213400904",'&ev=PageView&noscript=1"\n /> \n ')})]}),mr=()=>(0,k.jsxs)(fr.q,{children:[(0,k.jsx)("script",{strategy:"afterInteractive",children:"\n (function(w,r){w._rwq=r;w[r]=w[r]||function(){(w[r].q=w[r].q||[]).push(arguments)}})(window,'rewardful');\n "}),(0,k.jsx)("script",{async:!0,src:"https://r.wdfl.co/rw.js","data-rewardful":"8649ba"})]});var gr=n(70286),yr=n(89164),vr=n(6120);const br=(0,w.ZP)(Hn.ZP)({fontSize:"0.875rem",justifyContent:"center"}),wr=(0,w.ZP)(Dt.Z)({color:"#ffffff",textDecoration:"none",whiteSpace:"nowrap",":hover":{textShadow:"0 1px 2px rgb(42 42 42 / 55%)"},"&.active":{textShadow:"0 1px 2px rgb(42 42 42 / 55%)"}}),xr=(0,w.ZP)(je.Z)({minWidth:0,padding:0,"& .MuiButton-startIcon":{margin:0}}),kr=(0,w.ZP)("img")({minWidth:"0",padding:0,cursor:"pointer","& .MuiButton-startIcon":{margin:0}}),Sr=n.p+"static/media/InstagramGlyphWhite.aff77c385a0ea282f2fd.png",Er=n.p+"static/media/LinkedInWhite.1941451d648bbb3a55de.png",Cr=()=>(0,k.jsx)(vr.Z,{bgColor:"mainPage",size:"normal",bgImageOpacity:1,sx:{mt:"auto"},component:"footer",isNotPrintable:!0,children:(0,k.jsx)(yr.Z,{maxWidth:"xl",children:(0,k.jsxs)(br,{container:!0,children:[(0,k.jsx)(Hn.ZP,{container:!0,item:!0,md:!0,columnSpacing:3,rowSpacing:1,justifyContent:{xs:"center",md:"flex-start"},alignItems:"center",mb:{xs:"10px",md:0}
2,children:Tn.kX.map(((e,t)=>(0,k.jsx)(Hn.ZP,{item:!0,children:(0,k.jsx)(wr,{component:Vn.OL,to:e.path,children:e.name})},t)))}),(0,k.jsxs)(r.Z,{display:"flex",gap:3,alignItems:"center",children:[(0,k.jsx)(xr,{href:"https://www.instagram.com/picker_hq?igsh=emU4a3Z6OXJkejI%3D&utm_source=qr",target:"_blank",onClick:L.NH,startIcon:(0,k.jsx)(kr,{alt:"Instagram",src:Sr,width:"30px"})}),(0,k.jsx)(xr,{href:"https://www.linkedin.com/company/gopicker/",target:"_blank",onClick:L.qW,startIcon:(0,k.jsx)(kr,{alt:"LinkedIn",src:Er,width:"30px"})}),(0,k.jsx)(y.Z,{variant:"span",color:"white",children:"\xa9 ".concat((new Date).getFullYear()," Picker US Inc.")})]})]})})}),_r=(0,w.ZP)(r.Z)((e=>{let{theme:t}=e;return{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",display:"flex",flexDirection:"column",width:"400px",maxHeight:"100%",backgroundColor:t.palette.modalsBackground,border:"1px solid black",boxShadow:24,padding:"50px",gap:20,[t.breakpoints.down("sm")]:{width:"360px"}}})),Tr=(0,w.ZP)(je.Z)((e=>{let{width:t}=e;return{width:t}})),Or=(0,w.ZP)(je.Z)((e=>{let{theme:t,width:n}=e;return{width:n,color:t.palette.primary.main,textDecoration:"underline",padding:"0"}})),Ir=(0,w.ZP)(je.Z)({fontSize:"inherit",color:"grey",padding:0,display:"inline",verticalAlign:"baseline",textDecoration:"underline"}),Ar=(0,w.ZP)(y.Z)((e=>{let{theme:t}=e;return{color:t.palette.primary.main}})),Pr=(0,w.ZP)(Dt.Z,{shouldForwardProp:e=>"color"!==e&&"textDecoration"!==e})((e=>{let{color:t,textDecoration:n}=e;return{color:t,textDecoration:n,textUnderlineOffset:"6px"}})),Rr=e=>{let{handleResendEmail:t,handleClose:n,error:o,pending:a}=e;const s=(0,_.Z)(),[l]=(0,i.KO)(M.wY);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(y.Z,{color:s.palette.primary,variant:"h4",children:"Sorry..."}),(0,k.jsx)(y.Z,{children:"but we have not been able to verify your email address."}),(0,k.jsxs)(Ar,{variant:"h6",component:"p",children:["Please open the email we sent to"," ",(0,k.jsx)(Pr,{href:"mailto:".concat(l),children:l})]}),(0,k.jsxs)(r.Z,{textAlign:"center",children:[(0,k.jsx)(Or,{onClick:t,children:a?(0,k.jsx)(tt.Z,{color:"success",size:26}):"Resend email verification"}),(0,k.jsx)(y.Z,{my:1,children:"OR"}),(0,k.jsx)(Or,{onClick:n,children:"Go back to sign-up"}),o&&(0,k.jsx)(ue.Z,{severity:"error",children:o})]})]})},Nr=e=>{let{handleResendEmail:t,handleConfirm:n,error:o,pending:a}=e;const[s]=(0,i.KO)(M.wY),l=(0,_.Z)();return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(y.Z,{variant:"h5",component:"h2",fontWeight:"600",color:l.palette.primary.main,children:"Verify your email\u2026"}),(0,k.jsx)(Ar,{variant:"h6",component:"p",children:"We just need to verify your email address."}),(0,k.jsxs)(Ar,{variant:"h6",component:"p",children:["Please open the email we sent to"," ",(0,k.jsx)(Pr,{href:"mailto:".concat(s),children:s})]}),(0,k.jsx)(Ar,{variant:"h6",component:"p",children:"Don\u2019t forget to check your Spam folder."}),(0,k.jsxs)(y.Z,{color:"textSecondary",variant:"h6",component:"p",children:["If you have not recieved an email"," ",(0,k.jsx)(Ir,{onClick:t,children:a?(0,k.jsx)(tt.Z,{color:"success",size:26}):"click here"})," ","to send it again"]}),o&&(0,k.jsx)(ue.Z,{severity:"error",children:o}),(0,k.jsx)(r.Z,{display:"flex",width:"max-content",margin:"0 auto",gap:"30px",children:(0,k.jsx)(Tr,{variant:"contained",onClick:n,children:"Continue"})})]})},Dr=()=>{const e=(0,_.Z)();return(0,k.jsxs)(r.Z,{display:"flex",flexDirection:"column",gap:4,children:[(0,k.jsx)(y.Z,{variant:"h4",component:"h2",fontWeight:"600",color:e.palette.primary.main,children:"Welcome..."}),(0,k.jsx)(y.Z,{variant:"p",component:"h3",fontWeight:"600",color:e.palette.primary.main,children:"to your personal workspace."}),(0,k.jsx)(y.Z,{variant:"p",color:e.palette.primary.main,children:"Click on the Start here collection"}),(0,k.jsxs)(y.Z,{variant:"p",color:e.palette.primary.main,children:["Thank you for trying Picker. ",(0,k.jsx)("br",{})," We hope you like and enjoy it"]}),(0,k.jsx)(y.Z,{variant:"p",color:e.palette.primary.main,children:"/Tobbe & Magnus"})]})},Mr=(0,N.v0)(j.H),Lr=t=>{let{open:n,handleClose:r}=t;const o=(0,I.tv)(),i=(0,Z.aC)(),[a,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(""),[u,d]=(0,e.useState)(!1),h=async()=>{d(!0);try{await(0,N.w$)(Mr.currentUser),c("")}catch(e){c(e.message)}finally{d(!1)}};return(0,k.jsx)(R.Z,{open:n,onClose:async()=>{Mr.currentUser.emailVerified||await i.handleReload(),r(),o.pathname!==T.y.COLLECTIONS&&o.pathname!==T.y.REFERRAL&&o.push(T.y.COLLECTIONS)},children:(0,k.jsx)(_r,{children:Mr.currentUser&&Mr.currentUser.emailVerified?(0,k.jsx)(Dr,{}):a?(0,k.jsx)(Rr,{handleResendEmail:h,handleClose:r,error:l,pending:u}):(0,k.jsx)(Nr,{handleResendEmail:h,handleConfirm:async()=>
2{if(await i.handleReload(),Mr.currentUser.emailVerified){const e=o.pathname;("/"===e.slice(-1)?e.slice(0,-1):e)!==T.y.REFERRAL?o.push(T.y.COLLECTIONS):r()}else s(!0)},error:l,pending:u})})})};var Zr=n(47555);const jr=(t,n)=>(0,k.jsx)(e.Suspense,{fallback:(0,k.jsx)(Zr.Z,{}),children:(0,k.jsx)(t,(0,P.Z)({},n))}),Fr=(0,e.lazy)((()=>n.e(4739).then(n.bind(n,4613)))),zr=(0,e.lazy)((()=>n.e(3640).then(n.bind(n,38794)))),Ur=(0,e.lazy)((()=>n.e(9735).then(n.bind(n,49735)))),Br=(0,e.lazy)((()=>Promise.all([n.e(6975),n.e(1115)]).then(n.bind(n,1115)))),Vr=(0,e.lazy)((()=>Promise.all([n.e(6975),n.e(4802),n.e(2164)]).then(n.bind(n,722)))),Hr=(0,e.lazy)((()=>Promise.all([n.e(4802),n.e(2213)]).then(n.bind(n,75962)))),Wr=(0,e.lazy)((()=>Promise.all([n.e(6975),n.e(2697)]).then(n.bind(n,32697)))),qr=(0,e.lazy)((()=>Promise.all([n.e(6975),n.e(7844)]).then(n.bind(n,91419)))),Gr=(0,e.lazy)((()=>Promise.all([n.e(8227),n.e(5754)]).then(n.bind(n,75754)))),Kr=(0,e.lazy)((()=>n.e(3171).then(n.bind(n,3171)))),Qr=(0,e.lazy)((()=>Promise.all([n.e(6975),n.e(7745)]).then(n.bind(n,67745)))),Yr=(0,e.lazy)((()=>n.e(3864).then(n.bind(n,63746)))),$r=(0,e.lazy)((()=>Promise.all([n.e(6975),n.e(6502)]).then(n.bind(n,16502)))),Xr=(0,e.lazy)((()=>n.e(5423).then(n.bind(n,75423)))),Jr=(0,e.lazy)((()=>Promise.all([n.e(8766),n.e(9218)]).then(n.bind(n,29218)))),eo=(0,e.lazy)((()=>Promise.all([n.e(8766),n.e(3362),n.e(6300)]).then(n.bind(n,96300)))),to=(0,e.lazy)((()=>Promise.all([n.e(8766),n.e(4098),n.e(9003),n.e(9782),n.e(7421),n.e(5433)]).then(n.bind(n,5433)))),no=(0,e.lazy)((()=>Promise.all([n.e(56),n.e(1670)]).then(n.bind(n,31670)))),ro=(0,e.lazy)((()=>n.e(8956).then(n.bind(n,48956)))),oo=(0,e.lazy)((()=>Promise.all([n.e(8766),n.e(4098),n.e(9003),n.e(1085),n.e(1852)]).then(n.bind(n,91852)))),io=(0,e.lazy)((()=>Promise.all([n.e(4098),n.e(3616),n.e(7421),n.e(7720)]).then(n.bind(n,77720)))),ao=(0,e.lazy)((()=>Promise.all([n.e(6975),n.e(4542),n.e(2546)]).then(n.bind(n,76636)))),so=(0,e.lazy)((()=>Promise.all([n.e(5234),n.e(2832)]).then(n.bind(n,52832)))),lo=(0,e.lazy)((()=>n.e(9718).then(n.bind(n,9718)))),co=(0,e.lazy)((()=>Promise.all([n.e(6975),n.e(1631),n.e(1196)]).then(n.bind(n,43861)))),uo=(0,e.lazy)((()=>Promise.all([n.e(6975),n.e(3262)]).then(n.bind(n,83262)))),ho=(0,e.lazy)((()=>n.e(4361).then(n.bind(n,64361)))),fo=(0,e.lazy)((()=>n.e(8024).then(n.bind(n,18024)))),po=(0,e.lazy)((()=>n.e(1549).then(n.bind(n,11549)))),mo=(0,e.lazy)((()=>Promise.all([n.e(8766),n.e(4098),n.e(9003),n.e(2964),n.e(706)]).then(n.bind(n,50706)))),go=(0,e.lazy)((()=>n.e(9292).then(n.bind(n,59292)))),yo=(0,e.lazy)((()=>n.e(9200).then(n.bind(n,69200)))),vo=(0,e.lazy)((()=>n.e(252).then(n.bind(n,50252)))),bo=(0,e.lazy)((()=>n.e(2470).then(n.bind(n,62470)))),wo=(0,e.lazy)((()=>n.e(4480).then(n.bind(n,34480)))),xo=(0,e.lazy)((()=>Promise.all([n.e(1867),n.e(6639)]).then(n.bind(n,76639)))),ko=(0,e.lazy)((()=>n.e(6576).then(n.bind(n,86576)))),So=[{exact:!0,path:"/",component:e=>jr(Fr,e)},{exact:!0,path:T.y.COMPANY,component:e=>jr(zr,e)},{exact:!0,path:T.y.CONTACTS,component:e=>jr(Ur,e)},{exact:!0,path:T.y.GET_YOUR_SURFER_BUDDY,component:e=>jr(Br,e)},{exact:!0,path:T.y.GET_MOBILE_APP,component:e=>jr(Vr,e)},{exact:!0,path:T.y.DOWNLOAD,component:e=>jr(Hr,e)},{exact:!0,path:T.y.PERSONAL_WORKSPACE,component:e=>jr(Wr,e)},{exact:!0,path:T.y.FEATURES,component:e=>jr(Kr,e)},{exact:!0,path:T.y.SUPPORT,component:e=>jr(Qr,e)},{exact:!0,path:T.y.PRICING,component:e=>jr(Yr,e)},{exact:!0,path:T.y.PAYWALL,component:e=>jr($r,e)},{exact:!0,path:T.y.RECIPES,component:e=>jr(qr,e)},{exact:!0,path:T.y.REFERRAL,component:e=>jr(Gr,e)},{exact:!0,path:T.y.CHECKOUT_CANCEL,component:e=>jr(Xr,e)},{exact:!0,path:T.y.BOOKMARKS,component:e=>jr(Jr,e)},{exact:!0,path:T.y.COLLECTIONS,component:e=>jr(eo,e)},{exact:!0,path:T.y.COLLECTION_TEMPLATE,component:e=>jr(to,e)},{exact:!0,path:T.y.COLLECTION_PAGE_TEMPLATE,component:e=>jr(no,e)},{exact:!0,path:T.y.CREDITS,component:e=>jr(ro,e)},{exact:!0,path:T.y.SHARED_TEMPLATE,component:e=>jr(oo,e)},{exact:!0,path:T.y.TAGS,component:e=>jr(io,e)},{exact:!0,path:T.y.TRYFORFREE,component:e=>jr(ao,e)},{exact:!0,path:T.y.ORGANIZE,component:e=>jr(so,e)},{exact:!0,path:T.y.AUTH_TEMPLATE,component:e=>jr(lo,e)},{exact:!0,path:T.y.SETTINGS_TEMPLATE,component:e=>jr(co,e)},{exact:!0,path:T.y.TERMS_AND_PRIVACY,component:e=>jr(uo,e)},{exact:!0,path:T.y.COOKIE_POLICY,component:e=>jr(ho,e)},{exact:!0,path:T.y.FIREBASE_ACTION,component:e=>jr(fo,e)},{exact:!0,path:T.y.DOCUMENTS_TEMPLATE,component:e=>jr(mo,e)},{exact:!0,path:T.y.PRODUCTS_PAGE,component:e=>jr(go,e)},{exact:!0,path:T.y.ENTERPRISE_SIGNUP,component:e=>jr(yo,e)},{exact:!0,path:T.y.APPLY_PAGE,component:e=>jr(vo,e)},{exact:!0,path:T.y.ABOUT_US,component:e=>jr(bo,e)},{exact:!0,path:T.y.USE_CASES,component:e=>jr(wo,e)},{exact:!0,path:T.y.USE_CASES_DETAIL_TEMPLATE,component:e=>jr(xo,e)}
2,{exact:!0,path:T.y.PRODUCTS,component:e=>jr(ko,e)},{component:e=>jr(po,e)}],Eo=()=>(0,k.jsx)(I.rs,{children:So.map(((e,t)=>(0,k.jsx)(I.AW,{exact:e.exact,path:e.path,component:e.component},t)))}),Co=()=>{var t;const n=(0,Z.aC)(),[r,o]=(0,e.useState)(!1),[i,a]=(0,e.useState)(null),{data:s}=(0,_e.zn)(null===n||void 0===n||null===(t=n.user)||void 0===t?void 0:t.uid);(0,e.useEffect)((()=>{if(s){const e=s.find((e=>!e.isRead));e?(a(e),o(!0)):(o(!1),a(null))}else o(!1),a(null)}),[s]);return{openSnackbar:r,notification:i,handleCloseSnackbar:async(e,t)=>{"clickaway"!==t&&(o(!1),i&&!i.isRead&&((0,_e.Go)(n.user.uid,i.id),a(null)))},showNewNotification:e=>{a(e),o(!0)}}},_o=(0,w.ZP)(r.Z)({position:"fixed",width:"100%",bottom:"0",backgroundColor:"#e1e1e1",color:"black",padding:"30px 0",zIndex:9999}),To=(0,w.ZP)(je.Z)({borderRadius:"20px",color:"white",backgroundColor:"black",padding:"7px 30px",width:"200px","&.MuiButton-root:hover":{backgroundColor:"rgba(0, 0, 0, 0.7)"}}),Oo=((0,w.ZP)(je.Z)({color:"black",padding:"7px 30px",width:"200px"}),(0,w.ZP)(Dt.Z)({display:"inline-block",textDecoration:"none",color:"#00cd00"})),Io=e=>{let{onAccept:t}=e;return(0,k.jsx)(_o,{children:(0,k.jsxs)(r.Z,{maxWidth:"440px",mx:"auto",px:2,children:[(0,k.jsx)(y.Z,{variant:"h5",fontSize:"14px",fontWeight:"600",children:"We Care About Your Privacy"}),(0,k.jsx)(r.Z,{my:"15px",children:(0,k.jsxs)(y.Z,{variant:"string",color:"grey",fontSize:"14px",children:["Our website utilizes cookies to enhance your browsing experience, maintain session information, and gather statistical data on user navigation. For detailed information, please refer to our\xa0",(0,k.jsx)(Oo,{component:I.rU,to:"/cookie-policy",children:"Cookie Policy"}),"."]})}),(0,k.jsx)(r.Z,{display:"flex",justifyContent:"flex-end",children:(0,k.jsx)(To,{onClick:t,children:"ACCEPT"})})]})})},Ao=(0,w.ZP)(r.Z)((e=>{let{theme:t}=e;return{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",display:"flex",flexDirection:"column",width:"300px",maxHeight:"100%",backgroundColor:t.palette.modalsBackground,border:"1px solid black",boxShadow:24,padding:"24px",textAlign:"center",color:t.palette.primary.main}}));var Po=n(55375);const Ro=e=>{let{open:t,handleClose:n}=e;return(0,k.jsx)(R.Z,{open:t,onClose:n,children:(0,k.jsxs)(Ao,{children:[(0,k.jsx)(y.Z,{fontWeight:"bold",children:"Add the Surfer Buddy!"}),(0,k.jsx)(y.Z,{mb:2,children:"(Google Chrome extension*)"}),(0,k.jsx)(y.Z,{children:"Our productivity companion that allows you to interact with pages across the web."}),(0,k.jsx)(Po.Z,{width:"220px",margin:"20px auto"}),(0,k.jsx)(y.Z,{fontStyle:"italic",fontSize:13,color:"textSecondary",children:"* Extensions are small software programs that customize the browsing experience."})]})})},No=(0,w.ZP)("main",{shouldForwardProp:e=>"open"!==e&&"drawerWidth"!==e})((e=>{let{theme:t,open:n,drawerWidth:r}=e;return(0,P.Z)({flexGrow:1,display:"flex",flexDirection:"column",minHeight:"100vh",width:"100%",transition:t.transitions.create("margin",{easing:t.transitions.easing.sharp,duration:t.transitions.duration.leavingScreen}),marginLeft:"-".concat(r,"px")},n&&{transition:t.transitions.create("margin",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen}),marginLeft:0})})),Do=e=>{let{isDrawerOpen:t,isVerificationOpen:n,isSurferOpen:r,drawerWidth:o,headerHeight:i,setIsVerificationOpen:a,setIsSurferOpen:s}=e;const{openSnackbar:l,notification:c,handleCloseSnackbar:u}=Co();return(0,k.jsxs)(No,{open:t,drawerWidth:o,children:[(0,k.jsx)(Tt,{height:i}),(0,k.jsx)(Eo,{}),(0,k.jsx)(Cr,{}),(0,k.jsx)(gr.ZP,{dismissOnScroll:!1,dismissOnClick:!1,children:e=>(0,k.jsx)(Io,{onAccept:e})}),(0,k.jsx)(Lr,{open:n,handleClose:()=>a(!1)}),(0,k.jsx)(Ro,{open:r,handleClose:()=>s(!1)}),null!==c&&(0,k.jsx)(we,{open:l,onClose:u,notification:c})]})},Mo=()=>{const[t,n]=(0,e.useState)(!1),[a,s]=(0,i.KO)(M.lc),[l,c]=(0,i.KO)(M.zH),[u]=(0,i.KO)(M.M0),d=()=>{c(!l)};return(0,k.jsx)(_e.aH,{children:(0,k.jsx)(A.f,{children:(0,k.jsxs)(Z.Ho,{children:[(0,k.jsx)(pr,{}),(0,k.jsx)(mr,{}),(0,k.jsx)(I.F0,{children:(0,k.jsx)(k.Fragment,{children:(0,k.jsxs)(r.Z,{sx:{display:"flex"},children:[(0,k.jsx)(o.ZP,{}),(0,k.jsx)(hr,{color:"default",open:l,ToggleDrawer:d,drawerWidth:240,setIsSurferOpen:n}),(0,k.jsx)(bn,{open:l,ToggleDrawer:d,drawerWidth:240}),(0,k.jsx)(Do,{isDrawerOpen:l,isVerificationOpen:a,isSurferOpen:t,drawerWidth:240,headerHeight:u,setIsVerificationOpen:s,setIsSurferOpen:n})]})})})]})})})};Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));t.render((0,k.jsx)(Mo,{}
2),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((e=>{e.unregister()}))})()})(); 3//# sourceMappingURL=main.d8833980.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.