PageSourceSearch

https://www.learnstar.com/assets/index-DxYAyiVW.js

js learnstar.com collected 2026-10-08 23:42:43 UTC 552,364 bytes, 142 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_-DSIAlQ1g.js","assets/jsx-runtime-KJkY8l8U.js","assets/react-router-dom-BkvrA7zH.js","assets/ls-C70x0Dwi.js","assets/sharedContent-60XQ_wYj.js","assets/learnstar-logo-horizontal.png.asset-lQdbiyeu.js","assets/PageContent-Dv3VD2_G.js","assets/client-CD530lm9.js","assets/WwwLayout-BGREsjgZ.js","assets/button-Sq-nFS4m.js","assets/dist-Dk6JTHE8.js","assets/utils-B6KiDbIe.js","assets/chevron-down-PJ64y_6W.js","assets/createLucideIcon-Dga03Aop.js","assets/loader-circle-DzhRZ_1e.js","assets/lock-NRnOdJ1p.js","assets/menu-Bc8xILG7.js","assets/message-circle-DT9DMtKV.js","assets/send-DgnI-qan.js","assets/LanguageContext-BU3eCK7G.js","assets/LangToggle-clPetS_v.js","assets/input-BVCd656_.js","assets/learn-star-logo-current-Dl4bsyYS.js","assets/useSchoolSettings-D8ElYxaC.js","assets/_admin-BPKJYnIC.js","assets/AdminLayout-Oa4MaoF5.js","assets/dist-DYhWKWCJ.js","assets/react-dom-BsrxZfdi.js","assets/dist-BkS727UQ.js","assets/bell-DU7t-Pe7.js","assets/book-open-qLVSqfAh.js","assets/globe-CpE2dx_5.js","assets/chart-no-axes-column-B6g8JHgZ.js","assets/check-ulVI-wgh.js","assets/chevron-right-D1PjwAe_.js","assets/eye-off-DpfbvUL-.js","assets/graduation-cap-D-GWUzcD.js","assets/house-at5P8zwq.js","assets/PageTutorial-C8WPVyIZ.js","assets/chevron-left-BshoFymM.js","assets/circle-question-mark-Dd5lTaN3.js","assets/clipboard-list-yTtnZGiO.js","assets/credit-card-Dw0N6n1t.js","assets/megaphone-BzG8PBwc.js","assets/message-square-Bq6M_kqw.js","assets/shield-check-BbbRPCFu.js","assets/sparkles-C4I2b-T-.js","assets/sticky-note-_NXZ1Vpz.js","assets/users-lTLDNQaP.js","assets/log-out-Jxk-irdq.js","assets/mail-BRCl_0LG.js","assets/map-pin-61dLPpuz.js","assets/package--UW5NgZK.js","assets/phone-BI0c50O5.js","assets/user-CynVeqho.js","assets/badge-BqNQoOIz.js","assets/sheet-BrHbFnlN.js","assets/label-DlMwE5zE.js","assets/bryte-logo-DKreoimm.js","assets/authRedirect-CvLfjmlP.js","assets/ProtectedRoute-Cy62kNaG.js","assets/SplashScreen-mPAK-ejT.js","assets/_app-Cr7XL3FT.js","assets/MobileLayout-DOlSENqS.js","assets/arrow-left-Bu3gyc2o.js","assets/_www-K3a2Ox05.js","assets/accept-invite-A7dmWOXp.js","assets/circle-check-BElwlnBD.js","assets/forgot-password-BotvLtgO.js","assets/install-ZYmc3f9W.js","assets/download-BXIR7E_L.js","assets/ellipsis-vertical-BIi1aI04.js","assets/login-Dodk8SZS.js","assets/circle-check-big-BsymwJxP.js","assets/postLoginRedirect-B9HH6tva.js","assets/reset-password-NIMYgqCW.js","assets/signup-RyX220NR.js","assets/unsubscribe-BIJViNxo.js","assets/redirect-DmtLUW0N.js","assets/createServerFn-BGi38gEz.js","assets/confirmations-7GQfY0QW.js","assets/_app.account-CbwdIQjN.js","assets/activity-CHakFtDD.js","assets/calendar-5phvycZF.js","assets/camera-ollKAgd-.js","assets/external-link-C5e1Zc_v.js","assets/file-text-_cF-xj6n.js","assets/flame-n-eHD5B_.js","assets/id-card-oP3nknEL.js","assets/shield-DCVOjjNL.js","assets/trash-2-DSM4iZdd.js","assets/trophy-Brd53uEU.js","assets/upload-BaHRjZuk.js","assets/zap-O5TH_JeV.js","assets/select-CcwLIK2-.js","assets/chevron-up-BfrE9Mwm.js","assets/dist-CJRxQl3q.js","assets/dist-CfDNsx8R.js","assets/format-CexGPs8e.js","assets/badges-ULTlOv9H.js","assets/_app.ai-tutor-fLo_pxJB.js","assets/book-open-check-DD7yHppX.js","assets/circle-x-oWiNsVCK.js","assets/history-8BQ-kSog.js","assets/lib-CzxcjFJg.js","assets/target-B0qzXHCY.js","assets/_app.app-about-CQVb_jno.js","assets/award-BL7FMNTD.js","assets/star-DRd2wuhI.js","assets/_app.app-faq-D9gxWauY.js","assets/pencil-CQI12F3m.js","assets/search-7UPCLUCo.js","assets/InlineFAQManager-BIumBsBf.js","assets/sortable.esm-YYUN2uzX.js","assets/FAQRichEditor-CKSEhplc.js","assets/list-Bc9nC3DK.js","assets/save-DtqatIBE.js","assets/_app.calendar-CjnMyqmM.js","assets/flag-DFsrBVMK.js","assets/textarea-Dj2gLEnQ.js","assets/dialog-CKYG1NNT.js","assets/_app.course-survey-UNrTSYYs.js","assets/_app.documents-Dj6M-gy6.js","assets/image-D8oQM3xX.js","assets/_app.gradebook-BQJJI5Bk.js","assets/chart-column-gdWX7uqs.js","assets/clock-DHJrA0Ws.js","assets/_app.home-6aTatxiJ.js","assets/arrow-right-B5SGKXP2.js","assets/circle-play-BvH3EQGh.js","assets/dollar-sign-DHeeIdNp.js","assets/triangle-alert-DMOPHgGB.js","assets/addMonths-Cu0YcW4Z.js","assets/useStudent-BXTBuOeF.js","assets/_app.lesson-DvjsqVmn.js","assets/courseProgression-Cc1UoDIi.js","assets/circle-DNjIeW9A.js","assets/table-DUsJWxjg.js","assets/palette-B6qC6b_U.js","assets/quote-BlP0l_XC.js","assets/_app.messages-BqdxRME2.js","assets/_app.payments-Br0csPGJ.js","assets/app-emails.functions-Bqf65Zrb.js","assets/_app.store-CQw5_4R2.js","assets/_app.transcript-CsgcwG3O.js","assets/trending-up-Bew5glhL.js","assets/_www.index-ByjfjjRo.js","assets/WwwHome-C25WsVdp.js","assets/smartphone-BWkMwseZ.js","assets/PageGuide-BviOazdn.js","assets/useTranslatedContent-DymMOd30.js","assets/InlineText-CBqOkblv.js","assets/home-hero-student.png.asset-Dxhrw87m.js","assets/msa-logo-blue.png.asset-BGR4BqnY.js","assets/_www.about-B2bvzaH_.js","assets/heart-CLmN0O9-.js","assets/websiteSections-BEAclwUd.js","assets/fixedText-Buw0e69v.js","assets/learn-star-leadership-team-11.png.asset-ToS22KLQ.js","assets/accordion-Cc_WAbYd.js","assets/_www.accessibility-obPfJ0Ta.js","assets/accessibility-B-_Ha99U.js","assets/LegalLayout-DINKszh_.js","assets/_www.accreditation-4SPlBr-j.js","assets/briefcase-CoKtcPuu.js","assets/accreditationBbb-BwQAE_3w.js","assets/_www.app-CjUSR9x8.js","assets/_www.apply-BOL4axeu.
1js","assets/analytics-CEHdHC-7.js","assets/_www.bryte-Ciw_ZJtC.js","assets/_www.college-career-prep-diploma-Dq7vsBG4.js","assets/_www.competency-based-learning-CTqvneNx.js","assets/_www.contact-xT2uaL9P.js","assets/_www.courses-catalog-DDA7qFQw.js","assets/catalog-BpAqs6fw.js","assets/_www.enrollment-agreement-3pVGhEX0.js","assets/printer-CHIizlzr.js","assets/enrollmentAgreementContent-eiBHvgyD.js","assets/_www.enrollment-success-fHQHoWA6.js","assets/_www.faq-DgNDnKXE.js","assets/rocket-BepaMzQP.js","assets/_www.handbook-BaRLcOol.js","assets/handbookContent-DGiXf_4s.js","assets/_www.outcomes-BWZkf3_Q.js","assets/_www.privacy-BVBHtuql.js","assets/WwwPrivacy-Be9lUozv.js","assets/_www.programs-DD8ZOxnA.js","assets/earth-r-cLfCg4.js","assets/PlanningGuides-CfJCcSiD.js","assets/programs-BY6M-vM8.js","assets/_www.reviews-B0ZzEdlR.js","assets/_www.standard-career-ready-diploma-DBmGEAnc.js","assets/_www.terms-GWcEyVSk.js","assets/_www.thank-you-CsHz8LvS.js","assets/_www.trust-DAamZacB.js","assets/trust-BFhqiHjS.js","assets/auth.callback-CSsQB1ac.js","assets/auth.reset-callback-qlQ_cawz.js","assets/observer.index-Bwy7kKHr.js","assets/_admin.admin.index---0NzqJF.js","assets/user-plus-CYDLYfnA.js","assets/KpiDrillDownDialog-CdR1UOAi.js","assets/calendar-BAJbuIlI.js","assets/SendAnnouncementModal-Bra9c9pf.js","assets/BarChart-Dl2s1HxK.js","assets/_admin.admin.bryte-C035GMsO.js","assets/text-align-start-DnO447V_.js","assets/tabs-CCQl5FCV.js","assets/dist-Bjgpug7G.js","assets/switch-wdQDZziL.js","assets/_admin.admin.calendar-WwUPldPy.js","assets/_admin.admin.campaigns-BPpvGuqF.js","assets/_admin.admin.compliance-CnmbnFE5.js","assets/_admin.admin.faq-RXOYobEb.js","assets/_admin.admin.messages-BNmva_mQ.js","assets/archive-D0mY8rIY.js","assets/dropdown-menu-DE2WtcKX.js","assets/_admin.admin.messaging-DfMpc1Al.js","assets/_admin.admin.payments-DP7CsrkE.js","assets/_admin.admin.programs-DVAvZACq.js","assets/_admin.admin.registrar-DHTIOvuX.js","assets/scroll-text-Dg8rwv3E.js","assets/_admin.admin.reports-DJmHJTA2.js","assets/_admin.admin.roles-CCFl5XYG.js","assets/_admin.admin.settings-DLXrb0DQ.js","assets/ApplicationFieldsManager-3Qpls6-B.js","assets/_admin.admin.staff-CKF4F0Ua.js","assets/StaffProfileSheet-DFOVP4Mc.js","assets/log-in-xxtyknAE.js","assets/_admin.admin.store-BcT5AluE.js","assets/_admin.admin.users-BLcD3V5F.js","assets/wand-sparkles-C5uFeDM8.js","assets/_admin.admin.website-gwWBvR8U.js","assets/seo-CCI5IE2-.js","assets/heading-2-BW_WB_MZ.js","assets/sectionExtras-C2OwzgN7.js","assets/_app.courses.index-DaGjqEdg.js","assets/_www.blog.index-yAGjifW1.js","assets/blogCoverAlt-CiTZaktX.js","assets/_www.blog._slug-EAmAbCU5.js","assets/observer.invite._token-CZ4czNUk.js","assets/_admin.admin.courses.index-FaFwJmcX.js","assets/CourseBuilder-BDEDAnLo.js","assets/_admin.admin.courses._courseId-FaFwJmcX.js","assets/_admin.admin.leads.index-CnUHNLu5.js","assets/_admin.admin.leads.archived-BmwtHIL3.js","assets/_app.courses.public-speaking.index-DXF_tfB8.js","assets/publicSpeakingCourse-CQr-vcLA.js","assets/useChapterProgress-DwL5y1-e.js","assets/_app.courses.public-speaking.overview-DcChDE9F.js","assets/_app.courses.public-speaking.chapter._num-B-cUEfPd.js","assets/_app.courses.public-speaking.exam._type-Cib_0uBP.js"])))=>i.map(i=>d[i]);
2import{a as e,n as t,r as n,t as r}from"./jsx-runtime-KJkY8l8U.js";import{t as i}from"./react-dom-BsrxZfdi.js";import{t as a}from"./not-found-DIgawKw1.js";import{n as o,r as s,t as c}from"./redirect-DmtLUW0N.js";import{A as l,B as u,C as d,D as f,E as p,F as m,I as h,L as g,M as _,N as v,O as y,P as b,R as x,S,T as C,V as w,_ as T,b as E,c as D,d as O,f as k,g as ee,h as te,i as ne,j as re,k as ie,l as A,m as j,p as ae,t as oe,u as se,v as ce,w as M,x as N,y as le,z as ue}from"./react-router-dom-BkvrA7zH.js";import{t as de}from"./root-DLTE-HSj.js";import{n as P,t as F}from"./client-CD530lm9.js";import{d as fe,f as pe,l as me,p as he,s as ge,u as _e}from"./seo-CCI5IE2-.js";import{a as ve,c as ye,i as be,n as xe,o as Se,r as Ce,s as we,t as Te}from"./dist-DYhWKWCJ.js";import{i as Ee,n as De,r as Oe}from"./dist-Dk6JTHE8.js";import{_ as ke,a as Ae,c as je,g as Me,h as Ne,i as Pe,l as Fe,m as Ie,n as Le,o as Re,r as ze,s as Be,t as Ve,v as He}from"./dist-BkS727UQ.js";import{t as Ue}from"./utils-B6KiDbIe.js";import{n as We,r as Ge}
vendor: 15,607 bytes, lines 2-9
2from"./button-Sq-nFS4m.js";import{t as Ke}from"./createLucideIcon-Dga03Aop.js";import{t as qe}from"./book-open-qLVSqfAh.js";import{t as Je}from"./smartphone-BWkMwseZ.js";import{t as Ye}from"./star-DRd2wuhI.js";import{r as Xe,t as Ze}from"./LanguageContext-BU3eCK7G.js";import{i as Qe}from"./sharedContent-60XQ_wYj.js";import{c as $e,i as et,l as tt,u as nt}from"./PageContent-Dv3VD2_G.js";import{i as rt,s as it}from"./PageGuide-BviOazdn.js";import{t as at}from"./PlanningGuides-CfJCcSiD.js";import{a as ot,l as st,r as ct,s as lt,t as ut,u as dt}from"./sectionExtras-C2OwzgN7.js";import{t as ft}from"./useTranslatedContent-DymMOd30.js";import{i as pt,n as mt,o as ht,r as gt,t as _t}from"./ls-C70x0Dwi.js";import{t as vt}from"./InlineText-CBqOkblv.js";var yt=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&te(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&te(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,ee=k.port2;k.port1.onmessage=D,O=function(){ee.postMessage(null)}}else O=function(){_(D,0)};function te(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.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`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,te(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),bt=n(((e,t)=>{t.exports=yt()})),xt=n((e=>{var n=bt(),r=t(),a=i();function o(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;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.`}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function l(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(c(e)!==e)throw Error(o(188))}function f(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(o(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return d(i),e;if(a===r)return d(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,h=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),w=Symbol.for(`react.suspense`),T=Symbol.for(`react.suspense_list`),E=Symbol.for(`react.memo`),D=Symbol.for(`react.lazy`),O=Symbol.for(`react.activity`),k=Symbol.for(`react.memo_cache_sentinel`),ee=Symbol.iterator;function te(e){return typeof e!=`object`||!e?null:(e=ee&&e[ee]||e[`@@iterator`],typeof e==`function`?e:null)}var ne=Symbol.for(`react.client.reference`);function re(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case T:return`SuspenseList`;case O:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case E:return t=e.displayName||null,t===null?re(e.type)||`Memo`:t;case D:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}var ie=Array.isArray,A=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},oe=[],se=-1;function ce(e){return{current:e}}function M(e){0>se||(e.current=oe[se],oe[se]=null,se--)}function N(e,t){se++,oe[se]=e.current,e.current=t}var le=ce(null),ue=ce(null),de=ce(null),P=ce(null);function F(e,t){switch(N(de,t),N(ue,e),N(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hd(t),e=Ud(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}M(le),N(le,e)}function fe(){M(le),M(ue),M(de)}function pe(e){e.memoizedState!==null&&N(P,e);var t=le.current,n=Ud(t,e.type);t!==n&&(N(ue,e),N(le,n))}function me(e){ue.current===e&&(M(le),M(ue)),P.current===e&&(M(P),$f._currentValue=ae)}var he,ge;function _e(e){if(he===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);he=t&&t[1]||``,ge=-1<e.stack.indexOf(`
3    at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4`+he+e+ge}var ve=!1;function ye(e,t){if(!e||ve)return``;ve=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
5`),l=s.split(`
6`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
7`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ve=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?_e(n):``}function be(e,t){switch(e.tag){case 26:case 27:case 5:return _e(e.type);case 16:return _e(`Lazy`);case 13:return e.child!==t&&t!==null?_e(`Suspense Fallback`):_e(`Suspense`);case 19:return _e(`SuspenseList`);case 0:case 15:return ye(e.type,!1);case 11:return ye(e.type.render,!1);case 1:return ye(e.type,!0);case 31:return _e(`Activity`);default:return``}}function xe(e){try{var t=``,n=null;do t+=be(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
8Error generating stack: `+e.message+`
9`+e.stack}}var Se=Object.prototype.hasOwnProperty,Ce=n.unstable_scheduleCallback,we=n.unstable_cancelCallback,Te=n.unstable_shouldYield,Ee=n.unstable_requestPaint,De=n.unstable_now,Oe=n.unstable_getCurrentPriorityLevel,ke=n.unstable_ImmediatePriority,Ae=n.unstable_UserBlockingPriority,je=n.unstable_NormalPriority,Me=n.unstable_LowPriority,Ne=n.unstable_IdlePriority,Pe=n.log,Fe=n.unstable_setDisableYieldValue,Ie=null,Le=null;function Re(e){if(typeof Pe==`function`&&Fe(e),Le&&typeof Le.setStrictMode==`function`)try{Le.setStrictMode(Ie,e)}catch{}}var ze=Math.clz32?Math.clz32:He,Be=Math.log,Ve=Math.LN2;function He(e){return e>>>=0,e===0?32:31-(Be(e)/Ve|0)|0}var Ue=256,We=262144,Ge=4194304;function Ke(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function qe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ke(n))):i=Ke(o):i=Ke(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ke(n))):i=Ke(o)):i=Ke(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Je(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ye(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xe(){var e=Ge;return Ge<<=1,!(Ge&62914560)&&(Ge=4194304),e}function Ze(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $e(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-ze(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&et(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function et(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ze(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function tt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ze(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function nt(e,t){var n=t&-t;return n=n&42?1:rt(n),(n&(e.suspendedLanes|t))===0?n:0}function rt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function it(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function at(){var e=j.p;return e===0?(e=window.event,e===void 0?32:hp(e.type)):e}function ot(e,t){var n=j.p;try{return j.p=e,t()}finally{j.p=n}}var st=Math.random().toString(36).slice(2),ct=`__reactFiber$`+st,lt=`__reactProps$`+st,ut=`__reactContainer$`+st,dt=`__reactEvents$`+st,ft=`__reactListeners$`+st,pt=`__reactHandles$`+st,mt=`__reactResources$`+st,ht=`__reactMarker$`+st;function gt(e){delete e[ct],delete e[lt],delete e[dt],delete e[ft],delete e[pt]}function _t(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ut]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ff(e);e!==null;){if(n=e[ct])return n;e=ff(e)}return t}e=n,n=e.parentNode}return null}function vt(e){if(e=e[ct]||e[ut]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function yt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function xt(e){var t=e[mt];return t||=e[mt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function St(e){e[ht]=!0}var Ct=new Set,wt={};function Tt(e,t){Et(e,t),Et(e+`Capture`,t)}function Et(e,t){for(wt[e]=t,e=0;e<t.length;e++)Ct.add(t[e])}var Dt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
9037D\\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]*$`),Ot={},kt={};function At(e){return Se.call(kt,e)?!0:Se.call(Ot,e)?!1:Dt.test(e)?kt[e]=!0:(Ot[e]=!0,!1)}function jt(e,t,n){if(At(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Mt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Nt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Pt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Ft(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function It(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Lt(e){if(!e._valueTracker){var t=Ft(e)?`checked`:`value`;e._valueTracker=It(e,t,``+e[t])}}function Rt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Ft(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function zt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Bt=/[\n"\\]/g;function Vt(e){return e.replace(Bt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Ht(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Pt(t)):e.value!==``+Pt(t)&&(e.value=``+Pt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Wt(e,o,Pt(n)):Wt(e,o,Pt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Pt(s):e.removeAttribute(`name`)}function Ut(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Lt(e);return}n=n==null?``:``+Pt(n),t=t==null?n:``+Pt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Lt(e)}function Wt(e,t,n){t===`number`&&zt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Gt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Pt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Kt(e,t,n){if(t!=null&&(t=``+Pt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Pt(n)}function qt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(o(92));if(ie(r)){if(1<r.length)throw Error(o(93));r=r[0]}n=r}n??=``,t=n}
vendor: 86,604 bytes, line 9
9n=Pt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Lt(e)}function Jt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Xt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Yt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Zt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(o(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&Xt(e,i,r)}else for(var a in t)t.hasOwnProperty(a)&&Xt(e,a,t[a])}function Qt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var $t=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`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`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`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`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`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`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),en=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function tn(e){return en.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function nn(){}var rn=null;function an(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var on=null,sn=null;function cn(e){var t=vt(e);if(t&&(e=t.stateNode)){var n=e[lt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Ht(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Vt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[lt]||null;if(!i)throw Error(o(90));Ht(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Rt(r)}break a;case`textarea`:Kt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Gt(e,!!n.multiple,t,!1)}}}var ln=!1;function un(e,t,n){if(ln)return e(t,n);ln=!0;try{return e(t)}finally{if(ln=!1,(on!==null||sn!==null)&&(xu(),on&&(t=on,e=sn,sn=on=null,cn(t),e)))for(t=0;t<e.length;t++)cn(e[t])}}function dn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[lt]||null;if(r===null)return null;n=r[t];a: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)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(o(231,t,typeof n));return n}var fn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),pn=!1;if(fn)try{var mn={};Object.defineProperty(mn,"passive",{get:function(){pn=!0}}),window.addEventListener(`test`,mn,mn),window.removeEventListener(`test`,mn,mn)}catch{pn=!1}var hn=null,gn=null,_n=null;function vn(){if(_n)return _n;var e,t=gn,n=t.length,r,i=`value`in hn?hn.value:hn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return _n=i.slice(e,1<r?1-r:void 0)}function yn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function bn(){return!0}function xn(){return!1}function Sn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?bn:xn,this.isPropagationStopped=xn,this}return m(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=bn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=bn)},persist:function(){},isPersistent:bn}),t}var Cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wn=Sn(Cn),Tn=m({},Cn,{view:0,detail:0}),En=Sn(Tn),Dn,On,kn,An=m({},Tn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==kn&&(kn&&e.type===`mousemove`?(Dn=e.screenX-kn.screenX,On=e.screenY-kn.screenY):On=Dn=0,kn=e),Dn)},movementY:function(e){return`movementY`in e?e.movementY:On}}),jn=Sn(An),Mn=Sn(m({},An,{dataTransfer:0})),Nn=Sn(m({},Tn,{relatedTarget:0})),Pn=Sn(m({},Cn,{animationName:0,elapsedTime:0,pseudoElement:0})),Fn=Sn(m({},Cn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),In=Sn(m({},Cn,{data:0})),Ln={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Rn={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`},zn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Bn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zn[e])?!!t[e]:!1}function Vn(){return Bn}var Hn=Sn(m({},Tn,{key:function(e){if(e.key){var t=Ln[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=yn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Rn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vn,charCode:function(e){return e.type===`keypress`?yn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?yn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Un=Sn(m({},An,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Wn=Sn(m({},Tn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vn})),Gn=Sn(m({},Cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Kn=Sn(m({},An,{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})),qn=Sn(m({},Cn,{newState:0,oldState:0})),Jn=[9,13,27,32],Yn=fn&&`CompositionEvent`in window,Xn=null;fn&&`documentMode`in document&&(Xn=document.documentMode);var Zn=fn&&`TextEvent`in window&&!Xn,Qn=fn&&(!Yn||Xn&&8<Xn&&11>=Xn),$n=` `,er=!1;function tr(e,t){switch(e){case`keyup`:return Jn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function nr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var rr=!1;function ir(e,t){switch(e){case`compositionend`:return nr(t);case`keypress`:return t.which===32?(er=!0,$n):null;case`textInput`:return e=t.data,e===$n&&er?null:e;default:return null}}function ar(e,t){if(rr)return e===`compositionend`||!Yn&&tr(e,t)?(e=vn(),_n=gn=hn=null,rr=!1,e):null;switch(e){case`paste`: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 Qn&&t.locale!==`ko`?null:t.data;default:return null}}var or={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 sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!or[e.type]:t===`textarea`}function cr(e,t,n,r){on?sn?sn.push(r):sn=[r]:on=r,t=Dd(t,`onChange`),0<t.length&&(n=new wn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var lr=null,ur=null;function dr(e){bd(e,0)}function fr(e){if(Rt(yt(e)))return e}function pr(e,t){if(e===`change`)return t}var mr=!1;if(fn){var hr;if(fn){var gr=`oninput`in document;if(!gr){var _r=document.createElement(`div`);_r.setAttribute(`oninput`,`return;`),gr=typeof _r.oninput==`function`}hr=gr}else hr=!1;mr=hr&&(!document.documentMode||9<document.documentMode)}function vr(){lr&&(lr.detachEvent(`onpropertychange`,yr),ur=lr=null)}function yr(e){if(e.propertyName===`value`&&fr(ur)){var t=[];cr(t,ur,e,an(e)),un(dr,t)}}function br(e,t,n){e===`focusin`?(vr(),lr=t,ur=n,lr.attachEvent(`onpropertychange`,yr)):e===`focusout`&&vr()}function xr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return fr(ur)}function Sr(e,t){if(e===`click`)return fr(t)}function Cr(e,t){if(e===`input`||e===`change`)return fr(t)}function wr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Tr=typeof Object.is==`function`?Object.is:wr;function Er(e,t){if(Tr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Se.call(t,i)||!Tr(e[i],t[i]))return!1}return!0}function Dr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Or(e,t){var n=Dr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Dr(n)}}function kr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ar(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=zt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=zt(e.document)}return t}function jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Mr=fn&&`documentMode`in document&&11>=document.documentMode,Nr=null,Pr=null,Fr=null,Ir=!1;function Lr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ir||Nr==null||Nr!==zt(r)||(r=Nr,`selectionStart`in r&&jr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fr&&Er(Fr,r)||(Fr=r,r=Dd(Pr,`onSelect`),0<r.length&&(t=new wn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Nr)))}function Rr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var zr={animationend:Rr(`Animation`,`AnimationEnd`),animationiteration:Rr(`Animation`,`AnimationIteration`),animationstart:Rr(`Animation`,`AnimationStart`),transitionrun:Rr(`Transition`,`TransitionRun`),transitionstart:Rr(`Transition`,`TransitionStart`),transitioncancel:Rr(`Transition`,`TransitionCancel`),transitionend:Rr(`Transition`,`TransitionEnd`)},Br={},Vr={};fn&&(Vr=document.createElement(`div`).style,`AnimationEvent`in window||(delete zr.animationend.animation,delete zr.animationiteration.animation,delete zr.animationstart.animation),`TransitionEvent`in window||delete zr.transitionend.transition);function Hr(e){if(Br[e])return Br[e];if(!zr[e])return e;var t=zr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Vr)return Br[e]=t[n];return e}var Ur=Hr(`animationend`),Wr=Hr(`animationiteration`),Gr=Hr(`animationstart`),Kr=Hr(`transitionrun`),qr=Hr(`transitionstart`),Jr=Hr(`transitioncancel`),Yr=Hr(`transitionend`),Xr=new Map,Zr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Zr.push(`scrollEnd`);function Qr(e,t){Xr.set(e,t),Tt(t,[e])}var $r=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ei=[],ti=0,ni=0;function ri(){for(var e=ti,t=ni=ti=0;t<e;){var n=ei[t];ei[t++]=null;var r=ei[t];ei[t++]=null;var i=ei[t];ei[t++]=null;var a=ei[t];if(ei[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&si(n,i,a)}}function ii(e,t,n,r){ei[ti++]=e,ei[ti++]=t,ei[ti++]=n,ei[ti++]=r,ni|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ai(e,t,n,r){return ii(e,t,n,r),ci(e)}function oi(e,t){return ii(e,null,null,t),ci(e)}function si(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-ze(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ci(e){if(50<fu)throw fu=0,pu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var li={};function ui(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.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function I(e,t,n,r){return new ui(e,t,n,r)}function di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fi(e,t){var n=e.alternate;return n===null?(n=I(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function pi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function mi(e,t,n,r,i,a){var s=0;if(r=e,typeof e==`function`)di(e)&&(s=1);else if(typeof e==`string`)s=Wf(e,n,le.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case O:return e=I(31,n,t,i),e.elementType=O,e.lanes=a,e;case v:return hi(n.children,i,a,t);case y:s=8,i|=24;break;case b:return e=I(12,n,t,i|2),e.elementType=b,e.lanes=a,e;case w:return e=I(13,n,t,i),e.elementType=w,e.lanes=a,e;case T:return e=I(19,n,t,i),e.elementType=T,e.lanes=a,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case S:s=10;break a;case x:s=9;break a;case C:s=11;break a;case E:s=14;break a;case D:s=16,r=null;break a}s=29,n=Error(o(130,e===null?`null`:typeof e,``)),r=null}return t=I(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function hi(e,t,n,r){return e=I(7,e,r,t),e.lanes=n,e}function gi(e,t,n){return e=I(6,e,null,t),e.lanes=n,e}function _i(e){var t=I(18,null,null,0);return t.stateNode=e,t}function vi(e,t,n){return t=I(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var yi=new WeakMap;function bi(e,t){if(typeof e==`object`&&e){var n=yi.get(e);return n===void 0?(t={value:e,source:t,stack:xe(t)},yi.set(e,t),t):n}return{value:e,source:t,stack:xe(t)}}var xi=[],Si=0,Ci=null,wi=0,Ti=[],Ei=0,Di=null,Oi=1,ki=``;function Ai(e,t){xi[Si++]=wi,xi[Si++]=Ci,Ci=e,wi=t}function ji(e,t,n){Ti[Ei++]=Oi,Ti[Ei++]=ki,Ti[Ei++]=Di,Di=e;var r=Oi;e=ki;var i=32-ze(r)-1;r&=~(1<<i),n+=1;var a=32-ze(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Oi=1<<32-ze(t)+i|n<<i|r,ki=a+e}else Oi=1<<a|n<<i|r,ki=e}function Mi(e){e.return!==null&&(Ai(e,1),ji(e,1,0))}function Ni(e){for(;e===Ci;)Ci=xi[--Si],xi[Si]=null,wi=xi[--Si],xi[Si]=null;for(;e===Di;)Di=Ti[--Ei],Ti[Ei]=null,ki=Ti[--Ei],Ti[Ei]=null,Oi=Ti[--Ei],Ti[Ei]=null}function Pi(e,t){Ti[Ei++]=Oi,Ti[Ei++]=ki,Ti[Ei++]=Di,Oi=t.id,ki=t.overflow,Di=e}var Fi=null,Ii=null,L=!1,Li=null,Ri=!1,zi=Error(o(519));function Bi(e){throw Ki(bi(Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),zi}function Vi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ct]=e,t[lt]=r,n){case`dialog`:Z(`cancel`,t),Z(`close`,t);break;case`iframe`:case`object`:case`embed`:Z(`load`,t);break;case`video`:case`audio`:for(n=0;n<vd.length;n++)Z(vd[n],t);break;case`source`:Z(`error`,t);break;case`img`:case`image`:case`link`:Z(`error`,t),Z(`load`,t);break;case`details`:Z(`toggle`,t);break;case`input`:Z(`invalid`,t),Ut(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Z(`invalid`,t);break;case`textarea`:Z(`invalid`,t),qt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Nd(t.textContent,n)?(r.popover!=null&&(Z(`beforetoggle`,t),Z(`toggle`,t)),r.onScroll!=null&&Z(`scroll`,t),r.onScrollEnd!=null&&Z(`scrollend`,t),r.onClick!=null&&(t.onclick=nn),t=!0):t=!1,t||Bi(e,!0)}function Hi(e){for(Fi=e.return;Fi;)switch(Fi.tag){case 5:case 31:case 13:Ri=!1;return;case 27:case 3:Ri=!0;return;default:Fi=Fi.return}}function Ui(e){if(e!==Fi)return!1;if(!L)return Hi(e),L=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Wd(e.type,e.memoizedProps)),n=!n),n&&Ii&&Bi(e),Hi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(o(317));Ii=df(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(o(317));Ii=df(e)}else t===27?(t=Ii,Qd(e.type)?(e=uf,uf=null,Ii=e):Ii=t):Ii=Fi?lf(e.stateNode.nextSibling):null;return!0}function Wi(){Ii=Fi=null,L=!1}function Gi(){var e=Li;return e!==null&&(Ql===null?Ql=e:Ql.push.apply(Ql,e),Li=null),e}function Ki(e){Li===null?Li=[e]:Li.push(e)}var qi=ce(null),Ji=null,Yi=null;function Xi(e,t,n){N(qi,t._currentValue),t._currentValue=n}function Zi(e){e._currentValue=qi.current,M(qi)}function Qi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function $i(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var s=i.child;a=a.firstContext;a:for(;a!==null;){var c=a;a=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),Qi(a.return,n,e),r||(s=null);break a}a=c.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(o(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Qi(s,n,e),s=null}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function ea(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(o(387));if(s=s.memoizedProps,s!==null){var c=i.type;Tr(i.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(i===P.current){if(s=i.alternate,s===null)throw Error(o(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[$f]:e.push($f))}i=i.return}e!==null&&$i(t,e,n,r),t.flags|=262144}function ta(e){for(e=e.firstContext;e!==null;){if(!Tr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function na(e){Ji=e,Yi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ra(e){return aa(Ji,e)}function ia(e,t){return Ji===null&&na(e),aa(e,t)}function aa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Yi===null){if(e===null)throw Error(o(308));Yi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Yi=Yi.next=t;return n}var oa=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},sa=n.unstable_scheduleCallback,ca=n.unstable_NormalPriority,la={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ua(){return{controller:new oa,data:new Map,refCount:0}}function da(e){e.refCount--,e.refCount===0&&sa(ca,function(){e.controller.abort()})}var fa=null,pa=0,ma=0,ha=null;function ga(e,t){if(fa===null){var n=fa=[];pa=0,ma=fd(),ha={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return pa++,t.then(_a,_a),t}function _a(){if(--pa===0&&fa!==null){ha!==null&&(ha.status=`fulfilled`);var e=fa;fa=null,ma=0,ha=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function va(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ya=A.S;A.S=function(e,t){tu=De(),typeof t==`object`&&t&&typeof t.then==`function`&&ga(e,t),ya!==null&&ya(e,t)};var ba=ce(null);function xa(){var e=ba.current;return e===null?zl.pooledCache:e}function Sa(e,t){t===null?N(ba,ba.current):N(ba,t.pool)}function Ca(){var e=xa();return e===null?null:{parent:la._currentValue,pool:e}}var wa=Error(o(460)),Ta=Error(o(474)),Ea=Error(o(542)),Da={then:function(){}};function Oa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ka(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(nn,nn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Na(e),e;default:if(typeof t.status==`string`)t.then(nn,nn);else{if(e=zl,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Na(e),e}throw ja=t,wa}}function Aa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(ja=e,wa):e}}var ja=null;function Ma(){if(ja===null)throw Error(o(459));var e=ja;return ja=null,e}function Na(e){if(e===wa||e===Ea)throw Error(o(483))}var Pa=null,Fa=0;function Ia(e){var t=Fa;return Fa+=1,Pa===null&&(Pa=[]),ka(Pa,e,t)}function La(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ra(e,t){throw t.$$typeof===h?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function za(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=fi(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=gi(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===v?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===D&&Aa(a)===t.type)?(t=i(t,n.props),La(t,n),t.return=e,t):(t=mi(n.type,n.key,n.props,null,e.mode,r),La(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=vi(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=hi(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=gi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case g:return n=mi(t.type,t.key,t.props,null,e.mode,n),La(n,t),n.return=e,n;case _:return t=vi(t,e.mode,n),t.return=e,t;case D:return t=Aa(t),f(e,t,n)}if(ie(t)||te(t))return t=hi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ia(t),n);if(t.$$typeof===S)return f(e,ia(e,t),n);Ra(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case g:return n.key===i?l(e,t,n,r):null;case _:return n.key===i?u(e,t,n,r):null;case D:return n=Aa(n),p(e,t,n,r)}if(ie(n)||te(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ia(n),r);if(n.$$typeof===S)return p(e,t,ia(e,n),r);Ra(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case g:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case _:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case D:return r=Aa(r),m(e,t,n,r,i)}if(ie(r)||te(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ia(r),i);if(r.$$typeof===S)return m(e,t,n,ia(t,r),i);Ra(t,r)}return null}function h(i,o,s,c){for(var l=null,u=null,d=o,h=o=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),L&&Ai(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(o=a(d,o,h),u===null?l=d:u.sibling=d,u=d);return L&&Ai(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),o=a(g,o,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),L&&Ai(i,h),l}function y(i,s,c,l){if(c==null)throw Error(o(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=a(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),L&&Ai(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=a(v,s,g),d===null?u=v:d.sibling=v,d=v);return L&&Ai(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=a(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),L&&Ai(i,g),u}function b(e,r,a,c){if(typeof a==`object`&&a&&a.type===v&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case g:a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===v){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===D&&Aa(l)===r.type){n(e,r.sibling),c=i(r,a.props),La(c,a),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===v?(c=hi(a.props.children,e.mode,c,a.key),c.return=e,e=c):(c=mi(a.type,a.key,a.props,null,e.mode,c),La(c,a),c.return=e,e=c)}return s(e);case _:a:{for(l=a.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=vi(a,e.mode,c),c.return=e,e=c}return s(e);case D:return a=Aa(a),b(e,r,a,c)}if(ie(a))return h(e,r,a,c);if(te(a)){if(l=te(a),typeof l!=`function`)throw Error(o(150));return a=l.call(a),y(e,r,a,c)}if(typeof a.then==`function`)return b(e,r,Ia(a),c);if(a.$$typeof===S)return b(e,r,ia(e,a),c);Ra(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=gi(a,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Fa=0;var i=b(e,t,n,r);return Pa=null,i}catch(t){if(t===wa||t===Ea)throw t;var a=I(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ba=za(!0),Va=za(!1),Ha=!1;function R(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ua(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Wa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ga(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ci(e),si(e,null,n),t}return ii(e,r,t,n),ci(e)}function Ka(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tt(e,n)}}function qa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ja=!1;function Ya(){if(Ja){var e=ha;if(e!==null)throw e}}function Xa(e,t,n,r){Ja=!1;var i=e.updateQueue;Ha=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(J&f)===f:(r&f)===f){f!==0&&f===ma&&(Ja=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Ha=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function Za(e,t){if(typeof e!=`function`)throw Error(o(191,e));e.call(t)}function Qa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Za(n[e],t)}var $a=ce(null),eo=ce(0);function to(e,t){e=Wl,N(eo,e),N($a,t),Wl=e|t.baseLanes}function no(){N(eo,Wl),N($a,$a.current)}function ro(){Wl=eo.current,M($a),M(eo)}var io=ce(null),ao=null;function oo(e){var t=e.alternate;N(fo,fo.current&1),N(io,e),ao===null&&(t===null||$a.current!==null||t.memoizedState!==null)&&(ao=e)}function so(e){N(fo,fo.current),N(io,e),ao===null&&(ao=e)}function co(e){e.tag===22?(N(fo,fo.current),N(io,e),ao===null&&(ao=e)):lo(e)}function lo(){N(fo,fo.current),N(io,io.current)}function uo(e){M(io),ao===e&&(ao=null),M(fo)}var fo=ce(0);function po(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||of(n)||sf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mo=0,z=null,B=null,ho=null,go=!1,_o=!1,vo=!1,yo=0,bo=0,xo=null,So=0;function Co(){throw Error(o(321))}function wo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tr(e[n],t[n]))return!1;return!0}function To(e,t,n,r,i,a){return mo=a,z=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?Hs:V,vo=!1,a=n(r,i),vo=!1,_o&&(a=Do(t,n,r,i)),Eo(e),a}function Eo(e){A.H=Vs;var t=B!==null&&B.next!==null;if(mo=0,ho=B=z=null,go=!1,bo=0,xo=null,t)throw Error(o(300));e===null||ac||(e=e.dependencies,e!==null&&ta(e)&&(ac=!0))}function Do(e,t,n,r){z=e;var i=0;do{if(_o&&(xo=null),bo=0,_o=!1,25<=i)throw Error(o(301));if(i+=1,ho=B=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}A.H=Us,a=t(n,r)}while(_o);return a}function Oo(){var e=A.H,t=e.useState()[0];return t=typeof t.then==`function`?Fo(t):t,e=e.useState()[0],(B===null?null:B.memoizedState)!==e&&(z.flags|=1024),t}function ko(){var e=yo!==0;return yo=0,e}function Ao(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function jo(e){if(go){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}go=!1}mo=0,ho=B=z=null,_o=!1,bo=yo=0,xo=null}function Mo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ho===null?z.memoizedState=ho=e:ho=ho.next=e,ho}function No(){if(B===null){var e=z.alternate;e=e===null?null:e.memoizedState}else e=B.next;var t=ho===null?z.memoizedState:ho.next;if(t!==null)ho=t,B=e;else{if(e===null)throw z.alternate===null?Error(o(467)):Error(o(310));B=e,e={memoizedState:B.memoizedState,baseState:B.baseState,baseQueue:B.baseQueue,queue:B.queue,next:null},ho===null?z.memoizedState=ho=e:ho=ho.next=e}return ho}function Po(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fo(e){var t=bo;return bo+=1,xo===null&&(xo=[]),e=ka(xo,e,t),t=z,(ho===null?t.memoizedState:ho.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?Hs:V),e}function Io(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Fo(e);if(e.$$typeof===S)return ra(e)}throw Error(o(438,String(e)))}function Lo(e){var t=null,n=z.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=z.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Po(),z.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=k;return t.index++,n}function Ro(e,t){return typeof t==`function`?t(e):t}function zo(e){return Bo(No(),B,e)}function Bo(e,t,n){var r=e.queue;if(r===null)throw Error(o(311));r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var s=i.next;i.next=a.next,a.next=s}t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(mo&f)===f:(J&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ma&&(d=!0);else if((mo&p)===p){u=u.next,p===ma&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=a):l=l.next=f,z.lanes|=p,Kl|=p;f=u.action,vo&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=a):l=l.next=p,z.lanes|=f,Kl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=a:l.next=c,!Tr(a,e.memoizedState)&&(ac=!0,d&&(n=ha,n!==null)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=l,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Vo(e){var t=No(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do a=e(a,s.action),s=s.next;while(s!==i);Tr(a,t.memoizedState)||(ac=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ho(e,t,n){var r=z,i=No(),a=L;if(a){if(n===void 0)throw Error(o(407));n=n()}else n=t();var s=!Tr((B||i).memoizedState,n);if(s&&(i.memoizedState=n,ac=!0),i=i.queue,ps(Go.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||ho!==null&&ho.memoizedState.tag&1){if(r.flags|=2048,cs(9,{destroy:void 0},Wo.bind(null,r,i,n,t),null),zl===null)throw Error(o(349));a||mo&127||Uo(r,t,n)}return n}function Uo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=z.updateQueue,t===null?(t=Po(),z.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wo(e,t,n,r){t.value=n,t.getSnapshot=r,Ko(t)&&qo(e)}function Go(e,t,n){return n(function(){Ko(t)&&qo(e)})}function Ko(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tr(e,n)}catch{return!0}}function qo(e){var t=oi(e,2);t!==null&&gu(t,e,2)}function Jo(e){var t=Mo();if(typeof e==`function`){var n=e;if(e=n(),vo){Re(!0);try{n()}finally{Re(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:e},t}function Yo(e,t,n,r){return e.baseState=n,Bo(e,B,typeof r==`function`?r:Ro)}function Xo(e,t,n,r,i){if(Rs(e))throw Error(o(485));if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};A.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,Zo(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Zo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=A.T,o={};A.T=o;try{var s=n(i,r),c=A.S;c!==null&&c(o,s),Qo(e,t,s)}catch(n){es(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),A.T=a}}else try{a=n(i,r),Qo(e,t,a)}catch(n){es(e,t,n)}}function Qo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){$o(e,t,n)},function(n){return es(e,t,n)}):$o(e,t,n)}function $o(e,t,n){t.status=`fulfilled`,t.value=n,ts(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Zo(e,n)))}function es(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ts(t),t=t.next;while(t!==r)}e.action=null}function ts(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ns(e,t){return t}function rs(e,t){if(L){var n=zl.formState;if(n!==null){a:{var r=z;if(L){if(Ii){b:{for(var i=Ii,a=Ri;i.nodeType!==8;){if(!a){i=null;break b}if(i=lf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ii=lf(i.nextSibling),r=i.data===`F!`;break a}}Bi(r)}r=!1}r&&(t=n[0])}}return n=Mo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:t},n.queue=r,n=Fs.bind(null,z,r),r.dispatch=n,r=Jo(!1),a=Ls.bind(null,z,!1,r.queue),r=Mo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Xo.bind(null,z,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function is(e){return as(No(),B,e)}function as(e,t,n){if(t=Bo(e,t,ns)[0],e=zo(Ro)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Fo(t)}catch(e){throw e===wa?Ea:e}else r=t;t=No();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(z.flags|=2048,cs(9,{destroy:void 0},os.bind(null,i,n),null)),[r,a,e]}function os(e,t){e.action=t}function ss(e){var t=No(),n=B;if(n!==null)return as(t,n,e);No(),t=t.memoizedState,n=No();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function cs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=z.updateQueue,t===null&&(t=Po(),z.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ls(){return No().memoizedState}function us(e,t,n,r){var i=Mo();z.flags|=e,i.memoizedState=cs(1|t,{destroy:void 0},n,r===void 0?null:r)}function ds(e,t,n,r){var i=No();r=r===void 0?null:r;var a=i.memoizedState.inst;B!==null&&r!==null&&wo(r,B.memoizedState.deps)?i.memoizedState=cs(t,a,n,r):(z.flags|=e,i.memoizedState=cs(1|t,a,n,r))}function fs(e,t){us(8390656,8,e,t)}function ps(e,t){ds(2048,8,e,t)}function ms(e){z.flags|=4;var t=z.updateQueue;if(t===null)t=Po(),z.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function hs(e){var t=No().memoizedState;return ms({ref:t,nextImpl:e}),function(){if(K&2)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function gs(e,t){return ds(4,2,e,t)}function _s(e,t){return ds(4,4,e,t)}function vs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ys(e,t,n){n=n==null?null:n.concat([e]),ds(4,4,vs.bind(null,t,e),n)}function bs(){}function xs(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&wo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ss(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&wo(t,r[1]))return r[0];if(r=e(),vo){Re(!0);try{e()}finally{Re(!1)}}return n.memoizedState=[r,t],r}function Cs(e,t,n){return n===void 0||mo&1073741824&&!(J&261930)?e.memoizedState=t:(e.memoizedState=n,e=hu(),z.lanes|=e,Kl|=e,n)}function ws(e,t,n,r){return Tr(n,t)?n:$a.current===null?!(mo&42)||mo&1073741824&&!(J&261930)?(ac=!0,e.memoizedState=n):(e=hu(),z.lanes|=e,Kl|=e,t):(e=Cs(e,n,r),Tr(e,t)||(ac=!0),e)}function Ts(e,t,n,r,i){var a=j.p;j.p=a!==0&&8>a?a:8;var o=A.T,s={};A.T=s,Ls(e,!1,t,n);try{var c=i(),l=A.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Is(e,t,va(c,r),mu(e)):Is(e,t,r,mu(e))}catch(n){Is(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{j.p=a,o!==null&&s.types!==null&&(o.types=s.types),A.T=o}}function Es(){}function Ds(e,t,n,r){if(e.tag!==5)throw Error(o(476));var i=Os(e).queue;Ts(e,i,t,ae,n===null?Es:function(){return ks(e),n(r)})}function Os(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:ae},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ks(e){var t=Os(e);t.next===null&&(t=e.alternate.memoizedState),Is(e,t.next.queue,{},mu())}function As(){return ra($f)}function js(){return No().memoizedState}function Ms(){return No().memoizedState}function Ns(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=Wa(n);var r=Ga(t,e,n);r!==null&&(gu(r,t,n),Ka(r,t,n)),t={cache:ua()},e.payload=t;return}t=t.return}}function Ps(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Rs(e)?zs(t,n):(n=ai(e,t,n,r),n!==null&&(gu(n,e,r),Bs(n,t,r)))}function Fs(e,t,n){Is(e,t,n,mu())}function Is(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rs(e))zs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Tr(s,o))return ii(e,t,i,0),zl===null&&ri(),!1}catch{}if(n=ai(e,t,i,r),n!==null)return gu(n,e,r),Bs(n,t,r),!0}return!1}function Ls(e,t,n,r){if(r={lane:2,revertLane:fd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Rs(e)){if(t)throw Error(o(479))}else t=ai(e,n,r,2),t!==null&&gu(t,e,2)}function Rs(e){var t=e.alternate;return e===z||t!==null&&t===z}function zs(e,t){_o=go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tt(e,n)}}var Vs={readContext:ra,use:Io,useCallback:Co,useContext:Co,useEffect:Co,useImperativeHandle:Co,useLayoutEffect:Co,useInsertionEffect:Co,useMemo:Co,useReducer:Co,useRef:Co,useState:Co,useDebugValue:Co,useDeferredValue:Co,useTransition:Co,useSyncExternalStore:Co,useId:Co,useHostTransitionStatus:Co,useFormState:Co,useActionState:Co,useOptimistic:Co,useMemoCache:Co,useCacheRefresh:Co};Vs.useEffectEvent=Co;var Hs={readContext:ra,use:Io,useCallback:function(e,t){return Mo().memoizedState=[e,t===void 0?null:t],e},useContext:ra,useEffect:fs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),us(4194308,4,vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return us(4194308,4,e,t)},useInsertionEffect:function(e,t){us(4,2,e,t)},useMemo:function(e,t){var n=Mo();t=t===void 0?null:t;var r=e();if(vo){Re(!0);try{e()}finally{Re(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Mo();if(n!==void 0){var i=n(t);if(vo){Re(!0);try{n(t)}finally{Re(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ps.bind(null,z,e),[r.memoizedState,e]},useRef:function(e){var t=Mo();return e={current:e},t.memoizedState=e},useState:function(e){e=Jo(e);var t=e.queue,n=Fs.bind(null,z,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:bs,useDeferredValue:function(e,t){return Cs(Mo(),e,t)},useTransition:function(){var e=Jo(!1);return e=Ts.bind(null,z,e.queue,!0,!1),Mo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=z,i=Mo();if(L){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),zl===null)throw Error(o(349));J&127||Uo(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,fs(Go.bind(null,r,a,e),[e]),r.flags|=2048,cs(9,{destroy:void 0},Wo.bind(null,r,a,n,t),null),n},useId:function(){var e=Mo(),t=zl.identifierPrefix;if(L){var n=ki,r=Oi;n=(r&~(1<<32-ze(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=yo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=So++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:As,useFormState:rs,useActionState:rs,useOptimistic:function(e){var t=Mo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ls.bind(null,z,!0,n),n.dispatch=t,[e,t]},useMemoCache:Lo,useCacheRefresh:function(){return Mo().memoizedState=Ns.bind(null,z)},useEffectEvent:function(e){var t=Mo(),n={impl:e};return t.memoizedState=n,function(){if(K&2)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},V={readContext:ra,use:Io,useCallback:xs,useContext:ra,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:zo,useRef:ls,useState:function(){return zo(Ro)},useDebugValue:bs,useDeferredValue:function(e,t){return ws(No(),B.memoizedState,e,t)},useTransition:function(){var e=zo(Ro)[0],t=No().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:Ho,useId:js,useHostTransitionStatus:As,useFormState:is,useActionState:is,useOptimistic:function(e,t){return Yo(No(),B,e,t)},useMemoCache:Lo,useCacheRefresh:Ms};V.useEffectEvent=hs;var Us={readContext:ra,use:Io,useCallback:xs,useContext:ra,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:Vo,useRef:ls,useState:function(){return Vo(Ro)},useDebugValue:bs,useDeferredValue:function(e,t){var n=No();return B===null?Cs(n,e,t):ws(n,B.memoizedState,e,t)},useTransition:function(){var e=Vo(Ro)[0],t=No().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:Ho,useId:js,useHostTransitionStatus:As,useFormState:ss,useActionState:ss,useOptimistic:function(e,t){var n=No();return B===null?(n.baseState=e,[e,n.queue.dispatch]):Yo(n,B,e,t)},useMemoCache:Lo,useCacheRefresh:Ms};Us.useEffectEvent=hs;function Ws(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:m({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Gs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Wa(r);i.payload=t,n!=null&&(i.callback=n),t=Ga(e,i,r),t!==null&&(gu(t,e,r),Ka(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Wa(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ga(e,i,r),t!==null&&(gu(t,e,r),Ka(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mu(),r=Wa(n);r.tag=2,t!=null&&(r.callback=t),t=Ga(e,r,n),t!==null&&(gu(t,e,n),Ka(t,e,n))}};function Ks(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Er(n,r)||!Er(i,a):!0}function qs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Gs.enqueueReplaceState(t,t.state,null)}function Js(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=m({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Ys(e){$r(e)}function Xs(e){console.error(e)}function Zs(e){$r(e)}function Qs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function $s(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function ec(e,t,n){return n=Wa(n),n.tag=3,n.payload={element:null},n.callback=function(){Qs(e,t)},n}function tc(e){return e=Wa(e),e.tag=3,e}function nc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){$s(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){$s(t,n,r),typeof i!=`function`&&(iu===null?iu=new Set([this]):iu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function rc(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ea(t,n,i,!0),n=io.current,n!==null){switch(n.tag){case 31:case 13:return ao===null?Ou():n.alternate===null&&Gl===0&&(Gl=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Da?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Ku(e,r,i)),!1;case 22:return n.flags|=65536,r===Da?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Ku(e,r,i)),!1}throw Error(o(435,n.tag))}return Ku(e,r,i),Ou(),!1}if(L)return t=io.current,t===null?(r!==zi&&(t=Error(o(423),{cause:r}),Ki(bi(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=bi(r,n),i=ec(e.stateNode,r,i),qa(e,i),Gl!==4&&(Gl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==zi&&(e=Error(o(422),{cause:r}),Ki(bi(e,n)))),!1;var a=Error(o(520),{cause:r});if(a=bi(a,n),Zl===null?Zl=[a]:Zl.push(a),Gl!==4&&(Gl=2),t===null)return!0;r=bi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=ec(n.stateNode,r,e),qa(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(iu===null||!iu.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=tc(i),nc(i,e,n,r),qa(n,i),!1}n=n.return}while(n!==null);return!1}var ic=Error(o(461)),ac=!1;function oc(e,t,n,r){t.child=e===null?Va(t,null,n,r):Ba(t,e.child,n,r)}function sc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return na(t),r=To(e,t,n,o,a,i),s=ko(),e!==null&&!ac?(Ao(e,t,i),jc(e,t,i)):(L&&s&&Mi(t),t.flags|=1,oc(e,t,r,i),t.child)}function cc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!di(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,lc(e,t,a,r,i)):(e=mi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Mc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Er:n,n(o,r)&&e.ref===t.ref)return jc(e,t,i)}return t.flags|=1,e=fi(a,r),e.ref=t.ref,e.return=t,t.child=e}function lc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Er(a,r)&&e.ref===t.ref)if(ac=!1,t.pendingProps=r=a,Mc(e,i))e.flags&131072&&(ac=!0);else return t.lanes=e.lanes,jc(e,t,i)}return _c(e,t,n,r,i)}function uc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return fc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Sa(t,a===null?null:a.cachePool),a===null?no():to(t,a),co(t);else return r=t.lanes=536870912,fc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Sa(t,null),no(),lo(t)):(Sa(t,a.cachePool),to(t,a),lo(t),t.memoizedState=null);return oc(e,t,i,n),t.child}function dc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function fc(e,t,n,r,i){var a=xa();return a=a===null?null:{parent:la._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Sa(t,null),no(),co(t),e!==null&&ea(e,t,r,!0),t.childLanes=i,null}function pc(e,t){return t=Ec({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function mc(e,t,n){return Ba(t,e.child,null,n),e=pc(t,t.pendingProps),e.flags|=2,uo(t),t.memoizedState=null,e}function hc(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(L){if(r.mode===`hidden`)return e=pc(t,r),t.lanes=536870912,dc(null,e);if(so(t),(e=Ii)?(e=af(e,Ri),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Di===null?null:{id:Oi,overflow:ki},retryLane:536870912,hydrationErrors:null},n=_i(e),n.return=t,t.child=n,Fi=t,Ii=null)):e=null,e===null)throw Bi(t);return t.lanes=536870912,null}return pc(t,r)}var a=e.memoizedState;if(a!==null){var s=a.dehydrated;if(so(t),i)if(t.flags&256)t.flags&=-257,t=mc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(ac||ea(e,t,n,!1),i=(n&e.childLanes)!==0,ac||i){if(r=zl,r!==null&&(s=nt(r,n),s!==0&&s!==a.retryLane))throw a.retryLane=s,oi(e,s),gu(r,e,s),ic;Ou(),t=mc(e,t,n)}else e=a.treeContext,Ii=lf(s.nextSibling),Fi=t,L=!0,Li=null,Ri=!1,e!==null&&Pi(t,e),t=pc(t,r),t.flags|=4096;return t}return e=fi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function gc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function _c(e,t,n,r,i){return na(t),n=To(e,t,n,r,void 0,i),r=ko(),e!==null&&!ac?(Ao(e,t,i),jc(e,t,i)):(L&&r&&Mi(t),t.flags|=1,oc(e,t,n,i),t.child)}function vc(e,t,n,r,i,a){return na(t),t.updateQueue=null,n=Do(t,r,n,i),Eo(e),r=ko(),e!==null&&!ac?(Ao(e,t,a),jc(e,t,a)):(L&&r&&Mi(t),t.flags|=1,oc(e,t,n,a),t.child)}function yc(e,t,n,r,i){if(na(t),t.stateNode===null){var a=li,o=n.contextType;typeof o==`object`&&o&&(a=ra(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Gs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},R(t),o=n.contextType,a.context=typeof o==`object`&&o?ra(o):li,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ws(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Gs.enqueueReplaceState(a,a.state,null),Xa(t,r,a,i),Ya(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Js(n,s);a.props=c;var l=a.context,u=n.contextType;o=li,typeof u==`object`&&u&&(o=ra(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&qs(t,a,r,o),Ha=!1;var f=t.memoizedState;a.state=f,Xa(t,r,a,i),Ya(),l=t.memoizedState,s||f!==l||Ha?(typeof d==`function`&&(Ws(t,n,d,r),l=t.memoizedState),(c=Ha||Ks(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ua(e,t),o=t.memoizedProps,u=Js(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=li,typeof l==`object`&&l&&(c=ra(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&qs(t,a,r,c),Ha=!1,f=t.memoizedState,a.state=f,Xa(t,r,a,i),Ya();var p=t.memoizedState;o!==d||f!==p||Ha||e!==null&&e.dependencies!==null&&ta(e.dependencies)?(typeof s==`function`&&(Ws(t,n,s,r),p=t.memoizedState),(u=Ha||Ks(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ta(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,gc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ba(t,e.child,null,i),t.child=Ba(t,null,n,i)):oc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=jc(e,t,i),e}function bc(e,t,n,r){return Wi(),t.flags|=256,oc(e,t,n,r),t.child}var xc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Sc(e){return{baseLanes:e,cachePool:Ca()}}function Cc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Yl),e}function wc(e,t,n){var r=t.pendingProps,i=!1,a=(t.flags&128)!=0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(fo.current&2)!=0),s&&(i=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(L){if(i?oo(t):lo(t),(e=Ii)?(e=af(e,Ri),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Di===null?null:{id:Oi,overflow:ki},retryLane:536870912,hydrationErrors:null},n=_i(e),n.return=t,t.child=n,Fi=t,Ii=null)):e=null,e===null)throw Bi(t);return sf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?(lo(t),i=t.mode,c=Ec({mode:`hidden`,children:c},i),r=hi(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Sc(n),r.childLanes=Cc(e,s,n),t.memoizedState=xc,dc(null,r)):(oo(t),Tc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(a)t.flags&256?(oo(t),t.flags&=-257,t=Dc(e,t,n)):t.memoizedState===null?(lo(t),c=r.fallback,i=t.mode,r=Ec({mode:`visible`,children:r.children},i),c=hi(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ba(t,e.child,null,n),r=t.child,r.memoizedState=Sc(n),r.childLanes=Cc(e,s,n),t.memoizedState=xc,t=dc(null,r)):(lo(t),t.child=e.child,t.flags|=128,t=null);else if(oo(t),sf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(o(419)),r.stack=``,r.digest=s,Ki({value:r,source:null,stack:null}),t=Dc(e,t,n)}else if(ac||ea(e,t,n,!1),s=(n&e.childLanes)!==0,ac||s){if(s=zl,s!==null&&(r=nt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,oi(e,r),gu(s,e,r),ic;of(c)||Ou(),t=Dc(e,t,n)}else of(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ii=lf(c.nextSibling),Fi=t,L=!0,Li=null,Ri=!1,e!==null&&Pi(t,e),t=Tc(t,r.children),t.flags|=4096);return t}return i?(lo(t),c=r.fallback,i=t.mode,l=e.child,u=l.sibling,r=fi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=hi(c,i,n,null),c.flags|=2):c=fi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,dc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Sc(n):(i=c.cachePool,i===null?i=Ca():(l=la._currentValue,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=Cc(e,s,n),t.memoizedState=xc,dc(e.child,r)):(oo(t),n=e.child,e=n.sibling,n=fi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Tc(e,t){return t=Ec({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Ec(e,t){return e=I(22,e,null,t),e.lanes=0,e}function Dc(e,t,n){return Ba(t,e.child,null,n),e=Tc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Oc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Qi(e.return,t,n)}function kc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Ac(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=fo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,N(fo,o),oc(e,t,r,n),r=L?wi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Oc(e,n,t);else if(e.tag===19)Oc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&po(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),kc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&po(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}kc(t,!0,n,null,a,r);break;case`together`:kc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function jc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ea(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=fi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=fi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Mc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&ta(e))):!0}function Nc(e,t,n){switch(t.tag){case 3:F(t,t.stateNode.containerInfo),Xi(t,la,e.memoizedState.cache),Wi();break;case 27:case 5:pe(t);break;case 4:F(t,t.stateNode.containerInfo);break;case 10:Xi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,so(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(oo(t),e=jc(e,t,n),e===null?null:e.sibling):wc(e,t,n):(oo(t),t.flags|=128,null);oo(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(ea(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Ac(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),N(fo,fo.current),r)break;return null;case 22:return t.lanes=0,uc(e,t,n,t.pendingProps);case 24:Xi(t,la,e.memoizedState.cache)}return jc(e,t,n)}function Pc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ac=!0;else{if(!Mc(e,n)&&!(t.flags&128))return ac=!1,Nc(e,t,n);ac=!!(e.flags&131072)}else ac=!1,L&&t.flags&1048576&&ji(t,wi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Aa(t.elementType),t.type=e,typeof e==`function`)di(e)?(r=Js(e,r),t.tag=1,t=yc(null,t,e,r,n)):(t.tag=0,t=_c(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===C){t.tag=11,t=sc(null,t,e,r,n);break a}else if(i===E){t.tag=14,t=cc(null,t,e,r,n);break a}}throw t=re(e)||e,Error(o(306,t,``))}}return t;case 0:return _c(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Js(r,t.pendingProps),yc(e,t,r,i,n);case 3:a:{if(F(t,t.stateNode.containerInfo),e===null)throw Error(o(387));r=t.pendingProps;var a=t.memoizedState;i=a.element,Ua(e,t),Xa(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Xi(t,la,r),r!==a.cache&&$i(t,[la],n,!0),Ya(),r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=bc(e,t,r,n);break a}else if(r!==i){i=bi(Error(o(424)),t),Ki(i),t=bc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ii=lf(e.firstChild),Fi=t,L=!0,Li=null,Ri=!0,n=Va(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Wi(),r===i){t=jc(e,t,n);break a}oc(e,t,r,n)}t=t.child}return t;case 26:return gc(e,t),e===null?(n=Af(t.type,null,t.pendingProps,null))?t.memoizedState=n:L||(n=t.type,e=t.pendingProps,r=Vd(de.current).createElement(n),r[ct]=t,r[lt]=e,Fd(r,n,e),St(r),t.stateNode=r):t.memoizedState=Af(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return pe(t),e===null&&L&&(r=t.stateNode=pf(t.type,t.pendingProps,de.current),Fi=t,Ri=!0,i=Ii,Qd(t.type)?(uf=i,Ii=lf(r.firstChild)):Ii=i),oc(e,t,t.pendingProps.children,n),gc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&L&&((i=r=Ii)&&(r=nf(r,t.type,t.pendingProps,Ri),r===null?i=!1:(t.stateNode=r,Fi=t,Ii=lf(r.firstChild),Ri=!1,i=!0)),i||Bi(t)),pe(t),i=t.type,a=t.pendingProps,s=e===null?null:e.memoizedProps,r=a.children,Wd(i,a)?r=null:s!==null&&Wd(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=To(e,t,Oo,null,null,n),$f._currentValue=i),gc(e,t),oc(e,t,r,n),t.child;case 6:return e===null&&L&&((e=n=Ii)&&(n=rf(n,t.pendingProps,Ri),n===null?e=!1:(t.stateNode=n,Fi=t,Ii=null,e=!0)),e||Bi(t)),null;case 13:return wc(e,t,n);case 4:return F(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ba(t,null,r,n):oc(e,t,r,n),t.child;case 11:return sc(e,t,t.type,t.pendingProps,n);case 7:return oc(e,t,t.pendingProps,n),t.child;case 8:return oc(e,t,t.pendingProps.children,n),t.child;case 12:return oc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Xi(t,t.type,r.value),oc(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,na(t),i=ra(i),r=r(i),t.flags|=1,oc(e,t,r,n),t.child;case 14:return cc(e,t,t.type,t.pendingProps,n);case 15:return lc(e,t,t.type,t.pendingProps,n);case 19:return Ac(e,t,n);case 31:return hc(e,t,n);case 22:return uc(e,t,n,t.pendingProps);case 24:return na(t),r=ra(la),e===null?(i=xa(),i===null&&(i=zl,a=ua(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},R(t),Xi(t,la,i)):((e.lanes&n)!==0&&(Ua(e,t),Xa(t,null,null,n),Ya()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,Xi(t,la,r),r!==i.cache&&$i(t,[la],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Xi(t,la,r))),oc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Fc(e){e.flags|=4}function Ic(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Tu())e.flags|=8192;else throw ja=Da,Ta}else e.flags&=-16777217}function Lc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Gf(t))if(Tu())e.flags|=8192;else throw ja=Da,Ta}function Rc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Xe(),e.lanes|=t,Xl|=t)}function zc(e,t){if(!L)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Bc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Vc(e,t,n){var r=t.pendingProps;switch(Ni(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bc(t),null;case 1:return Bc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Zi(la),fe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ui(t)?Fc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Gi())),Bc(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(Fc(t),a===null?(Bc(t),Ic(t,i,null,r,n)):(Bc(t),Lc(t,a))):a?a===e.memoizedState?(Bc(t),t.flags&=-16777217):(Fc(t),Bc(t),Lc(t,a)):(e=e.memoizedProps,e!==r&&Fc(t),Bc(t),Ic(t,i,e,r,n)),null;case 27:if(me(t),n=de.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Fc(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return Bc(t),null}e=le.current,Ui(t)?Vi(t,e):(e=pf(i,r,n),t.stateNode=e,Fc(t))}return Bc(t),null;case 5:if(me(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Fc(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return Bc(t),null}if(a=le.current,Ui(t))Vi(t,a);else{var s=Vd(de.current);switch(a){case 1:a=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:a=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:a=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:a=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:a=s.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}a[ct]=t,a[lt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)a.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=a;a:switch(Fd(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Fc(t)}}return Bc(t),Ic(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Fc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(o(166));if(e=de.current,Ui(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Fi,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||Bi(t,!0)}else e=Vd(e).createTextNode(r),e[ct]=t,t.stateNode=e}return Bc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ui(t),n!==null){if(e===null){if(!r)throw Error(o(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(o(557));e[ct]=t}else Wi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Bc(t),e=!1}else n=Gi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(uo(t),t):(uo(t),null);if(t.flags&128)throw Error(o(558))}return Bc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ui(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(o(317));i[ct]=t}else Wi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Bc(t),i=!1}else i=Gi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(uo(t),t):(uo(t),null)}return uo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Rc(t,t.updateQueue),Bc(t),null);case 4:return fe(),e===null&&Cd(t.stateNode.containerInfo),Bc(t),null;case 10:return Zi(t.type),Bc(t),null;case 19:if(M(fo),r=t.memoizedState,r===null)return Bc(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)zc(r,!1);else{if(Gl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=po(e),a!==null){for(t.flags|=128,zc(r,!1),e=a.updateQueue,t.updateQueue=e,Rc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)pi(n,e),n=n.sibling;return N(fo,fo.current&1|2),L&&Ai(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&De()>nu&&(t.flags|=128,i=!0,zc(r,!1),t.lanes=4194304)}else{if(!i)if(e=po(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Rc(t,e),zc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!L)return Bc(t),null}else 2*De()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,i=!0,zc(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(Bc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=De(),e.sibling=null,n=fo.current,N(fo,i?n&1|2:n&1),L&&Ai(t,r.treeForkCount),e);case 22:case 23:return uo(t),ro(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Bc(t),t.subtreeFlags&6&&(t.flags|=8192)):Bc(t),n=t.updateQueue,n!==null&&Rc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&M(ba),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Zi(la),Bc(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Hc(e,t){switch(Ni(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zi(la),fe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return me(t),null;case 31:if(t.memoizedState!==null){if(uo(t),t.alternate===null)throw Error(o(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(uo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return M(fo),null;case 4:return fe(),null;case 10:return Zi(t.type),null;case 22:case 23:return uo(t),ro(),e!==null&&M(ba),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Zi(la),null;case 25:return null;default:return null}}function H(e,t){switch(Ni(t),t.tag){case 3:Zi(la),fe();break;case 26:case 27:case 5:me(t);break;case 4:fe();break;case 31:t.memoizedState!==null&&uo(t);break;case 13:uo(t);break;case 19:M(fo);break;case 10:Zi(t.type);break;case 22:case 23:uo(t),ro(),e!==null&&M(ba);break;case 24:Zi(la)}}function Uc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){X(t,t.return,e)}}function Wc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){X(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){X(t,t.return,e)}}function U(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Qa(t,n)}catch(t){X(e,e.return,t)}}}function Gc(e,t,n){n.props=Js(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){X(e,t,n)}}function Kc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){X(e,t,n)}}function qc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){X(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){X(e,t,n)}else n.current=null}function Jc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){X(e,e.return,t)}}function Yc(e,t,n){try{var r=e.stateNode;Id(r,e.type,n,t),r[lt]=t}catch(t){X(e,e.return,t)}}function Xc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qd(e.type)||e.tag===4}function Zc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Xc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=nn));else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Fd(t,r,n),t[ct]=e,t[lt]=n}catch(t){X(e,e.return,t)}}var tl=!1,nl=!1,rl=!1,il=typeof WeakSet==`function`?WeakSet:Set,al=null;function ol(e,t){if(e=e.containerInfo,zd=cp,e=Ar(e),jr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==a||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===a&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Bd={focusedElem:e,selectionRange:n},cp=!1,al=t;al!==null;)if(t=al,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,al=e;else for(;al!==null;){switch(t=al,a=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&a!==null){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,r=n.stateNode;
vendor: 6,124 bytes, line 9
9try{var h=Js(n.type,i);e=r.getSnapshotBeforeUpdate(h,a),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){X(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)tf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:tf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,al=e;break}al=t.return}}function sl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Sl(e,n),r&4&&Uc(5,n);break;case 1:if(Sl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){X(n,n.return,e)}else{var i=Js(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){X(n,n.return,e)}}r&64&&U(n),r&512&&Kc(n,n.return);break;case 3:if(Sl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Qa(e,t)}catch(e){X(n,n.return,e)}}break;case 27:t===null&&r&4&&el(n);case 26:case 5:Sl(e,n),t===null&&r&4&&Jc(n),r&512&&Kc(n,n.return);break;case 12:Sl(e,n);break;case 31:Sl(e,n),r&4&&pl(e,n);break;case 13:Sl(e,n),r&4&&ml(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Yu.bind(null,n),cf(e,n))));break;case 22:if(r=n.memoizedState!==null||tl,!r){t=t!==null&&t.memoizedState!==null||nl,i=tl;var a=nl;tl=r,(nl=t)&&!a?W(e,n,(n.subtreeFlags&8772)!=0):Sl(e,n),tl=i,nl=a}break;case 30:break;default:Sl(e,n)}}function cl(e){var t=e.alternate;t!==null&&(e.alternate=null,cl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&gt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ll=null,ul=!1;function dl(e,t,n){for(n=n.child;n!==null;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(Le&&typeof Le.onCommitFiberUnmount==`function`)try{Le.onCommitFiberUnmount(Ie,n)}catch{}switch(n.tag){case 26:nl||qc(n,t),dl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:nl||qc(n,t);var r=ll,i=ul;Qd(n.type)&&(ll=n.stateNode,ul=!1),dl(e,t,n),mf(n.stateNode),ll=r,ul=i;break;case 5:nl||qc(n,t);case 6:if(r=ll,i=ul,ll=null,dl(e,t,n),ll=r,ul=i,ll!==null)if(ul)try{(ll.nodeType===9?ll.body:ll.nodeName===`HTML`?ll.ownerDocument.body:ll).removeChild(n.stateNode)}catch(e){X(n,t,e)}else try{ll.removeChild(n.stateNode)}catch(e){X(n,t,e)}break;case 18:ll!==null&&(ul?(e=ll,$d(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Pp(e)):$d(ll,n.stateNode));break;case 4:r=ll,i=ul,ll=n.stateNode.containerInfo,ul=!0,dl(e,t,n),ll=r,ul=i;break;case 0:case 11:case 14:case 15:Wc(2,n,t),nl||Wc(4,n,t),dl(e,t,n);break;case 1:nl||(qc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Gc(n,t,r)),dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:nl=(r=nl)||n.memoizedState!==null,dl(e,t,n),nl=r;break;default:dl(e,t,n)}}function pl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pp(e)}catch(e){X(t,t.return,e)}}}function ml(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pp(e)}catch(e){X(t,t.return,e)}}function hl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new il),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new il),t;default:throw Error(o(435,e.tag))}}function gl(e,t){var n=hl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Xu.bind(null,e,t);t.then(r,r)}})}function _l(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],a=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Qd(c.type)){ll=c.stateNode,ul=!1;break a}break;case 5:ll=c.stateNode,ul=!1;break a;case 3:case 4:ll=c.stateNode.containerInfo,ul=!0;break a}c=c.return}if(ll===null)throw Error(o(160));fl(a,s,i),ll=null,ul=!1,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)yl(t,e),t=t.sibling}var vl=null;function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_l(t,e),bl(e),r&4&&(Wc(3,e,e.return),Uc(3,e),Wc(5,e,e.return));break;case 1:_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),r&64&&tl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=vl;if(_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),r&4){var a=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;b:switch(r){case`title`:a=i.getElementsByTagName(`title`)[0],(!a||a[ht]||a[ct]||a.namespaceURI===`http://www.w3.org/2000/svg`||a.hasAttribute(`itemprop`))&&(a=i.createElement(r),i.head.insertBefore(a,i.querySelector(`head > title`))),Fd(a,r,n),a[ct]=e,St(a),r=a;break a;case`link`:var s=Hf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(a=s[c],a.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&a.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&a.getAttribute(`title`)===(n.title==null?null:n.title)&&a.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}a=i.createElement(r),Fd(a,r,n),i.head.appendChild(a);break;case`meta`:if(s=Hf(`meta`,`content`,i).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(a=s[c],a.getAttribute(`content`)===(n.content==null?null:``+n.content)&&a.getAttribute(`name`)===(n.name==null?null:n.name)&&a.getAttribute(`property`)===(n.property==null?null:n.property)&&a.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}a=i.createElement(r),Fd(a,r,n),i.head.appendChild(a);break;default:throw Error(o(468,r))}a[ct]=e,St(a),r=a}e.stateNode=r}else Uf(i,e.type,e.stateNode);else e.stateNode=Lf(i,r,e.memoizedProps);
vendor: 40,477 bytes, lines 9-10
9else a===r?r===null&&e.stateNode!==null&&Yc(e,e.memoizedProps,n.memoizedProps):(a===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):a.count--,r===null?Uf(i,e.type,e.stateNode):Lf(i,r,e.memoizedProps))}break;case 27:_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),n!==null&&r&4&&Yc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(_l(t,e),bl(e),r&512&&(nl||n===null||qc(n,n.return)),e.flags&32){i=e.stateNode;try{Jt(i,``)}catch(t){X(e,e.return,t)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,Yc(e,i,n===null?i:n.memoizedProps)),r&1024&&(rl=!0);break;case 6:if(_l(t,e),bl(e),r&4){if(e.stateNode===null)throw Error(o(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){X(e,e.return,t)}}break;case 3:if(Vf=null,i=vl,vl=_f(t.containerInfo),_l(t,e),vl=i,bl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Pp(t.containerInfo)}catch(t){X(e,e.return,t)}rl&&(rl=!1,xl(e));break;case 4:r=vl,vl=_f(e.stateNode.containerInfo),_l(t,e),bl(e),vl=r;break;case 12:_l(t,e),bl(e);break;case 31:_l(t,e),bl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 13:_l(t,e),bl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(eu=De()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=tl,d=nl;if(tl=u||i,nl=d||l,_l(t,e),nl=d,tl=u,bl(e),r&8192)a:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||tl||nl||Cl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(a=l.stateNode,i)s=a.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){X(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?``:l.memoizedProps}catch(e){X(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;i?ef(m,!0):ef(l.stateNode,!1)}catch(e){X(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,gl(e,n))));break;case 19:_l(t,e),bl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 30:break;case 21:break;default:_l(t,e),bl(e)}}function bl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Xc(r)){n=r;break}r=r.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var i=n.stateNode;$c(e,Zc(e),i);break;case 5:var a=n.stateNode;n.flags&32&&(Jt(a,``),n.flags&=-33),$c(e,Zc(e),a);break;case 3:case 4:var s=n.stateNode.containerInfo;Qc(e,Zc(e),s);break;default:throw Error(o(161))}}catch(t){X(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Sl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sl(e,t.alternate,t),t=t.sibling}function Cl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wc(4,t,t.return),Cl(t);break;case 1:qc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Gc(t,t.return,n),Cl(t);break;case 27:mf(t.stateNode);case 26:case 5:qc(t,t.return),Cl(t);break;case 22:t.memoizedState===null&&Cl(t);break;case 30:Cl(t);break;default:Cl(t)}e=e.sibling}}function W(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:W(i,a,n),Uc(4,a);break;case 1:if(W(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){X(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Za(c[i],s)}catch(e){X(r,r.return,e)}}n&&o&64&&U(a),Kc(a,a.return);break;case 27:el(a);case 26:case 5:W(i,a,n),n&&r===null&&o&4&&Jc(a),Kc(a,a.return);break;case 12:W(i,a,n);break;case 31:W(i,a,n),n&&o&4&&pl(i,a);break;case 13:W(i,a,n),n&&o&4&&ml(i,a);break;case 22:a.memoizedState===null&&W(i,a,n),Kc(a,a.return);break;case 30:break;default:W(i,a,n)}t=t.sibling}}function G(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&da(n))}function wl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&da(e))}function Tl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)El(e,t,n,r),t=t.sibling}function El(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Tl(e,t,n,r),i&2048&&Uc(9,t);break;case 1:Tl(e,t,n,r);break;case 3:Tl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&da(e)));break;case 12:if(i&2048){Tl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){X(t,t.return,e)}}else Tl(e,t,n,r);break;case 31:Tl(e,t,n,r);break;case 13:Tl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Tl(e,t,n,r):(a._visibility|=2,Dl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Tl(e,t,n,r):Ol(e,t),i&2048&&G(o,t);break;case 24:Tl(e,t,n,r),i&2048&&wl(t.alternate,t);break;default:Tl(e,t,n,r)}}function Dl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Dl(a,o,s,c,i),Uc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Dl(a,o,s,c,i)):u._visibility&2?Dl(a,o,s,c,i):Ol(a,o),i&&l&2048&&G(o.alternate,o);break;case 24:Dl(a,o,s,c,i),i&&l&2048&&wl(o.alternate,o);break;default:Dl(a,o,s,c,i)}t=t.sibling}}function Ol(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Ol(n,r),i&2048&&G(r.alternate,r);break;case 24:Ol(n,r),i&2048&&wl(r.alternate,r);break;default:Ol(n,r)}t=t.sibling}}var kl=8192;function Al(e,t,n){if(e.subtreeFlags&kl)for(e=e.child;e!==null;)jl(e,t,n),e=e.sibling}function jl(e,t,n){switch(e.tag){case 26:Al(e,t,n),e.flags&kl&&e.memoizedState!==null&&Kf(n,vl,e.memoizedState,e.memoizedProps);break;case 5:Al(e,t,n);break;case 3:case 4:var r=vl;vl=_f(e.stateNode.containerInfo),Al(e,t,n),vl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=kl,kl=16777216,Al(e,t,n),kl=r):Al(e,t,n));break;default:Al(e,t,n)}}function Ml(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Nl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];al=r,Il(r,e)}Ml(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pl(e),e=e.sibling}function Pl(e){switch(e.tag){case 0:case 11:case 15:Nl(e),e.flags&2048&&Wc(9,e,e.return);break;case 3:Nl(e);break;case 12:Nl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fl(e)):Nl(e);break;default:Nl(e)}}function Fl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];al=r,Il(r,e)}Ml(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wc(8,t,t.return),Fl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Fl(t));break;default:Fl(t)}e=e.sibling}}function Il(e,t){for(;al!==null;){var n=al;switch(n.tag){case 0:case 11:case 15:Wc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:da(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,al=r;else a:for(n=e;al!==null;){r=al;var i=r.sibling,a=r.return;if(cl(r),r===n){al=null;break a}if(i!==null){i.return=a,al=i;break a}al=a}}}var Ll={getCacheForType:function(e){var t=ra(la),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ra(la).controller.signal}},Rl=typeof WeakMap==`function`?WeakMap:Map,K=0,zl=null,q=null,J=0,Y=0,Bl=null,Vl=!1,Hl=!1,Ul=!1,Wl=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=null,Ql=null,$l=!1,eu=0,tu=0,nu=1/0,ru=null,iu=null,au=0,ou=null,su=null,cu=0,lu=0,uu=null,du=null,fu=0,pu=null;function mu(){return K&2&&J!==0?J&-J:A.T===null?at():fd()}function hu(){if(Yl===0)if(!(J&536870912)||L){var e=We;We<<=1,!(We&3932160)&&(We=262144),Yl=e}else Yl=536870912;return e=io.current,e!==null&&(e.flags|=32),Yl}function gu(e,t,n){(e===zl&&(Y===2||Y===9)||e.cancelPendingCommit!==null)&&(Cu(e,0),bu(e,J,Yl,!1)),Qe(e,n),(!(K&2)||e!==zl)&&(e===zl&&(!(K&2)&&(ql|=n),Gl===4&&bu(e,J,Yl,!1)),id(e))}function _u(e,t,n){if(K&6)throw Error(o(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Je(e,t),i=r?ju(e,t):ku(e,t,!0),a=r;do{if(i===0){Hl&&!r&&bu(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!yu(n)){i=ku(e,t,!1),a=!1;continue}if(i===2){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;i=Zl;var l=c.current.memoizedState.isDehydrated;if(l&&(Cu(c,s).flags|=256),s=ku(c,s,!1),s!==2){if(Ul&&!l){c.errorRecoveryDisabledLanes|=a,ql|=a,i=4;break a}a=Ql,Ql=i,a!==null&&(Ql===null?Ql=a:Ql.push.apply(Ql,a))}i=s}if(a=!1,i!==2)continue}}if(i===1){Cu(e,0),bu(e,t,0,!0);break}a:{switch(r=e,a=i,a){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:bu(r,t,Yl,!Vl);break a;case 2:Ql=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=eu+300-De(),10<i)){if(bu(r,t,Yl,!Vl),qe(r,0,!0)!==0)break a;cu=t,r.timeoutHandle=qd(vu.bind(null,r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,a,`Throttled`,-0,0),i);break a}vu(r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,a,null,-0,0)}}break}while(1);id(e)}function vu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:nn},jl(t,a,d);var m=(a&62914560)===a?eu-De():(a&4194048)===a?tu-De():0;if(m=Jf(d,m),m!==null){cu=a,e.cancelPendingCommit=m(Ru.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),bu(e,a,o,!l);return}}Ru(e,t,a,n,r,i,o,s,c)}function yu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Tr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function bu(e,t,n,r){t&=~Jl,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-ze(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&et(e,n,t)}function xu(){return K&6?!0:(ad(0,!1),!1)}function Su(){if(q!==null){if(Y===0)var e=q.return;else e=q,Yi=Ji=null,jo(e),Pa=null,Fa=0,e=q;for(;e!==null;)H(e.alternate,e),e=e.return;q=null}}function Cu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Jd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),cu=0,Su(),zl=e,q=n=fi(e.current,null),J=t,Y=0,Bl=null,Vl=!1,Hl=Je(e,t),Ul=!1,Xl=Yl=Jl=ql=Kl=Gl=0,Ql=Zl=null,$l=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-ze(r),a=1<<i;t|=e[i],r&=~a}return Wl=t,ri(),n}function wu(e,t){z=null,A.H=Vs,t===wa||t===Ea?(t=Ma(),Y=3):t===Ta?(t=Ma(),Y=4):Y=t===ic?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Bl=t,q===null&&(Gl=1,Qs(e,bi(t,e.current)))}function Tu(){var e=io.current;return e===null?!0:(J&4194048)===J?ao===null:(J&62914560)===J||J&536870912?e===ao:!1}function Eu(){var e=A.H;return A.H=Vs,e===null?Vs:e}function Du(){var e=A.A;return A.A=Ll,e}function Ou(){Gl=4,Vl||(J&4194048)!==J&&io.current!==null||(Hl=!0),!(Kl&134217727)&&!(ql&134217727)||zl===null||bu(zl,J,Yl,!1)}function ku(e,t,n){var r=K;K|=2;var i=Eu(),a=Du();(zl!==e||J!==t)&&(ru=null,Cu(e,t)),t=!1;var o=Gl;a:do try{if(Y!==0&&q!==null){var s=q,c=Bl;switch(Y){case 8:Su(),o=6;break a;case 3:case 2:case 9:case 6:io.current===null&&(t=!0);var l=Y;if(Y=0,Bl=null,Fu(e,s,c,l),n&&Hl){o=0;break a}break;default:l=Y,Y=0,Bl=null,Fu(e,s,c,l)}}Au(),o=Gl;break}catch(t){wu(e,t)}while(1);return t&&e.shellSuspendCounter++,Yi=Ji=null,K=r,A.H=i,A.A=a,q===null&&(zl=null,J=0,ri()),o}function Au(){for(;q!==null;)Nu(q)}function ju(e,t){var n=K;K|=2;var r=Eu(),i=Du();zl!==e||J!==t?(ru=null,nu=De()+500,Cu(e,t)):Hl=Je(e,t);a:do try{if(Y!==0&&q!==null){t=q;var a=Bl;b:switch(Y){case 1:Y=0,Bl=null,Fu(e,t,a,1);break;case 2:case 9:if(Oa(a)){Y=0,Bl=null,Pu(t);break}t=function(){Y!==2&&Y!==9||zl!==e||(Y=7),id(e)},a.then(t,t);break a;case 3:Y=7;break a;case 4:Y=5;break a;case 7:Oa(a)?(Y=0,Bl=null,Pu(t)):(Y=0,Bl=null,Fu(e,t,a,7));break;case 5:var s=null;switch(q.tag){case 26:s=q.memoizedState;case 5:case 27:var c=q;if(s?Gf(s):c.stateNode.complete){Y=0,Bl=null;var l=c.sibling;if(l!==null)q=l;else{var u=c.return;u===null?q=null:(q=u,Iu(u))}break b}}Y=0,Bl=null,Fu(e,t,a,5);break;case 6:Y=0,Bl=null,Fu(e,t,a,6);break;case 8:Su(),Gl=6;break a;default:throw Error(o(462))}}Mu();break}catch(t){wu(e,t)}while(1);return Yi=Ji=null,A.H=r,A.A=i,K=n,q===null?(zl=null,J=0,ri(),Gl):0}function Mu(){for(;q!==null&&!Te();)Nu(q)}function Nu(e){var t=Pc(e.alternate,e,Wl);e.memoizedProps=e.pendingProps,t===null?Iu(e):q=t}function Pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=vc(n,t,t.pendingProps,t.type,void 0,J);break;case 11:t=vc(n,t,t.pendingProps,t.type.render,t.ref,J);break;case 5:jo(t);default:H(n,t),t=q=pi(t,Wl),t=Pc(n,t,Wl)}e.memoizedProps=e.pendingProps,t===null?Iu(e):q=t}function Fu(e,t,n,r){Yi=Ji=null,jo(t),Pa=null,Fa=0;var i=t.return;try{if(rc(e,i,t,n,J)){Gl=1,Qs(e,bi(n,e.current)),q=null;return}}catch(t){if(i!==null)throw q=i,t;Gl=1,Qs(e,bi(n,e.current)),q=null;return}t.flags&32768?(L||r===1?e=!0:Hl||J&536870912?e=!1:(Vl=e=!0,(r===2||r===9||r===3||r===6)&&(r=io.current,r!==null&&r.tag===13&&(r.flags|=16384))),Lu(t,e)):Iu(t)}function Iu(e){var t=e;do{if(t.flags&32768){Lu(t,Vl);return}e=t.return;var n=Vc(t.alternate,t,Wl);if(n!==null){q=n;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);Gl===0&&(Gl=5)}function Lu(e,t){do{var n=Hc(e.alternate,e);if(n!==null){n.flags&=32767,q=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){q=e;return}q=e=n}while(e!==null);Gl=6,q=null}function Ru(e,t,n,r,i,a,s,c,l){e.cancelPendingCommit=null;do Uu();while(au!==0);if(K&6)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(a=t.lanes|t.childLanes,a|=ni,$e(e,n,a,s,c,l),e===zl&&(q=zl=null,J=0),su=t,ou=e,cu=n,lu=a,uu=i,du=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Zu(je,function(){return Wu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=A.T,A.T=null,i=j.p,j.p=2,s=K,K|=4;try{ol(e,t,n)}finally{K=s,j.p=i,A.T=r}}au=1,zu(),Bu(),Vu()}}function zu(){if(au===1){au=0;var e=ou,t=su,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=A.T,A.T=null;var r=j.p;j.p=2;var i=K;K|=4;try{yl(t,e);var a=Bd,o=Ar(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&kr(s.ownerDocument.documentElement,s)){if(c!==null&&jr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Or(s,h),v=Or(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}cp=!!zd,Bd=zd=null}finally{K=i,j.p=r,A.T=n}}e.current=t,au=2}}function Bu(){if(au===2){au=0;var e=ou,t=su,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=A.T,A.T=null;var r=j.p;j.p=2;var i=K;K|=4;try{sl(e,t.alternate,t)}finally{K=i,j.p=r,A.T=n}}au=3}}function Vu(){if(au===4||au===3){au=0,Ee();var e=ou,t=su,n=cu,r=du;t.subtreeFlags&10256||t.flags&10256?au=5:(au=0,su=ou=null,Hu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(iu=null),it(n),t=t.stateNode,Le&&typeof Le.onCommitFiberRoot==`function`)try{Le.onCommitFiberRoot(Ie,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=A.T,i=j.p,j.p=2,A.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{A.T=t,j.p=i}}cu&3&&Uu(),id(e),i=e.pendingLanes,n&261930&&i&42?e===pu?fu++:(fu=0,pu=e):fu=0,ad(0,!1)}}function Hu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,da(t)))}function Uu(){return zu(),Bu(),Vu(),Wu()}function Wu(){if(au!==5)return!1;var e=ou,t=lu;lu=0;var n=it(cu),r=A.T,i=j.p;try{j.p=32>n?32:n,A.T=null,n=uu,uu=null;var a=ou,s=cu;if(au=0,su=ou=null,cu=0,K&6)throw Error(o(331));var c=K;if(K|=4,Pl(a.current),El(a,a.current,s,n),K=c,ad(0,!1),Le&&typeof Le.onPostCommitFiberRoot==`function`)try{Le.onPostCommitFiberRoot(Ie,a)}catch{}return!0}finally{j.p=i,A.T=r,Hu(e,t)}}function Gu(e,t,n){t=bi(n,t),t=ec(e.stateNode,t,2),e=Ga(e,t,2),e!==null&&(Qe(e,2),id(e))}function X(e,t,n){if(e.tag===3)Gu(e,e,n);else for(;t!==null;){if(t.tag===3){Gu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=bi(n,e),n=tc(2),r=Ga(t,n,2),r!==null&&(nc(n,r,t,e),Qe(r,2),id(r));break}}t=t.return}}function Ku(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=qu.bind(null,e,t,n),t.then(e,e))}function qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,zl===e&&(J&n)===n&&(Gl===4||Gl===3&&(J&62914560)===J&&300>De()-eu?!(K&2)&&Cu(e,0):Jl|=n,Xl===J&&(Xl=0)),id(e)}function Ju(e,t){t===0&&(t=Xe()),e=oi(e,t),e!==null&&(Qe(e,t),id(e))}function Yu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ju(e,n)}function Xu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(o(314))}r!==null&&r.delete(t),Ju(e,n)}function Zu(e,t){return Ce(e,t)}var Qu=null,$u=null,ed=!1,td=!1,nd=!1,rd=0;function id(e){e!==$u&&e.next===null&&($u===null?Qu=$u=e:$u=$u.next=e),td=!0,ed||(ed=!0,dd())}function ad(e,t){if(!nd&&td){nd=!0;do for(var n=!1,r=Qu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-ze(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ud(r,a))}else a=J,a=qe(r,r===zl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Je(r,a)||(n=!0,ud(r,a));r=r.next}while(n);nd=!1}}function od(){sd()}function sd(){td=ed=!1;var e=0;rd!==0&&Kd()&&(e=rd);for(var t=De(),n=null,r=Qu;r!==null;){var i=r.next,a=cd(r,t);a===0?(r.next=null,n===null?Qu=i:n.next=i,i===null&&($u=n)):(n=r,(e!==0||a&3)&&(td=!0)),r=i}au!==0&&au!==5||ad(e,!1),rd!==0&&(rd=0)}function cd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-ze(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ye(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=zl,n=J,n=qe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Y===2||Y===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&we(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Je(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&we(r),it(n)){case 2:case 8:n=Ae;break;case 32:n=je;break;case 268435456:n=Ne;break;default:n=je}return r=ld.bind(null,e),n=Ce(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&we(r),e.callbackPriority=2,e.callbackNode=null,2}function ld(e,t){if(au!==0&&au!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Uu()&&e.callbackNode!==n)return null;var r=J;return r=qe(e,e===zl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(_u(e,r,t),cd(e,De()),e.callbackNode!=null&&e.callbackNode===n?ld.bind(null,e):null)}function ud(e,t){if(Uu())return null;_u(e,t,!0)}function dd(){Xd(function(){K&6?Ce(ke,od):sd()})}function fd(){if(rd===0){var e=ma;e===0&&(e=Ue,Ue<<=1,!(Ue&261888)&&(Ue=256)),rd=e}return rd}function pd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:tn(``+e)}function md(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function hd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=pd((i[lt]||null).action),o=r.submitter;o&&(t=(t=o[lt]||null)?pd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new wn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(rd!==0){var e=o?md(i,o):new FormData(i);Ds(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?md(i,o):new FormData(i),Ds(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var gd=0;gd<Zr.length;gd++){var _d=Zr[gd];Qr(_d.toLowerCase(),`on`+(_d[0].toUpperCase()+_d.slice(1)))}Qr(Ur,`onAnimationEnd`),Qr(Wr,`onAnimationIteration`),Qr(Gr,`onAnimationStart`),Qr(`dblclick`,`onDoubleClick`),Qr(`focusin`,`onFocus`),Qr(`focusout`,`onBlur`),Qr(Kr,`onTransitionRun`),Qr(qr,`onTransitionStart`),Qr(Jr,`onTransitionCancel`),Qr(Yr,`onTransitionEnd`),Et(`onMouseEnter`,[`mouseout`,`mouseover`]),Et(`onMouseLeave`,[`mouseout`,`mouseover`]),Et(`onPointerEnter`,[`pointerout`,`pointerover`]),Et(`onPointerLeave`,[`pointerout`,`pointerover`]),Tt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Tt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Tt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Tt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Tt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Tt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var vd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),yd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(vd));function bd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){$r(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){$r(e)}i.currentTarget=null,a=c}}}}function Z(e,t){var n=t[dt];n===void 0&&(n=t[dt]=new Set);var r=e+`__bubble`;n.has(r)||(wd(t,e,2,!1),n.add(r))}function xd(e,t,n){var r=0;t&&(r|=4),wd(n,e,r,t)}var Sd=`_reactListening`+Math.random().toString(36).slice(2);function Cd(e){if(!e[Sd]){e[Sd]=!0,Ct.forEach(function(t){t!==`selectionchange`&&(yd.has(t)||xd(t,!1,e),xd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sd]||(t[Sd]=!0,xd(`selectionchange`,!1,t))}}function wd(e,t,n,r){switch(hp(t)){case 2:var i=lp;break;case 8:i=up;break;default:i=dp}n=i.bind(null,t,n,e),i=void 0,!pn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Td(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=_t(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}s=s.parentNode}}r=r.return}un(function(){var r=a,i=an(n),o=[];a:{var s=Xr.get(e);if(s!==void 0){var l=wn,u=e;switch(e){case`keypress`:if(yn(n)===0)break a;case`keydown`:case`keyup`:l=Hn;break;case`focusin`:u=`focus`,l=Nn;break;case`focusout`:u=`blur`,l=Nn;break;case`beforeblur`:case`afterblur`:l=Nn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=jn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Mn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Wn;break;case Ur:case Wr:case Gr:l=Pn;break;case Yr:l=Gn;break;case`scroll`:case`scrollend`:l=En;break;case`wheel`:l=Kn;break;case`copy`:case`cut`:case`paste`:l=Fn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Un;break;case`toggle`:case`beforetoggle`:l=qn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=dn(m,p),g!=null&&d.push(Ed(m,g,h))),f)break;m=m.return}0<d.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,s&&n!==rn&&(u=n.relatedTarget||n.fromElement)&&(_t(u)||u[ut]))break a;if((l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?_t(u):null,u!==null&&(f=c(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=jn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Un,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?s:yt(l),h=u==null?s:yt(u),s=new d(g,m+`leave`,l,n,i),s.target=f,s.relatedTarget=h,g=null,_t(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Od,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&kd(o,s,l,d,!1),u!==null&&f!==null&&kd(o,f,u,d,!0)}}a:{if(s=r?yt(r):window,l=s.nodeName&&s.nodeName.toLowerCase(),l===`select`||l===`input`&&s.type===`file`)var v=pr;else if(sr(s))if(mr)v=Cr;else{v=xr;var y=br}else l=s.nodeName,!l||l.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&Qt(r.elementType)&&(v=pr):v=Sr;if(v&&=v(e,r)){cr(o,v,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&Wt(s,`number`,s.value)}switch(y=r?yt(r):window,e){case`focusin`:(sr(y)||y.contentEditable===`true`)&&(Nr=y,Pr=r,Fr=null);break;case`focusout`:Fr=Pr=Nr=null;break;case`mousedown`:Ir=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Ir=!1,Lr(o,n,i);break;case`selectionchange`:if(Mr)break;case`keydown`:case`keyup`:Lr(o,n,i)}var b;if(Yn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else rr?tr(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Qn&&n.locale!==`ko`&&(rr||x!==`onCompositionStart`?x===`onCompositionEnd`&&rr&&(b=vn()):(hn=i,gn=`value`in hn?hn.value:hn.textContent,rr=!0)),y=Dd(r,x),0<y.length&&(x=new In(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=nr(n),b!==null&&(x.data=b)))),(b=Zn?ir(e,n):ar(e,n))&&(x=Dd(r,`onBeforeInput`),0<x.length&&(y=new In(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),hd(o,e,r,n,i)}bd(o,t)})}function Ed(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=dn(e,n),i!=null&&r.unshift(Ed(e,i,a)),i=dn(e,t),i!=null&&r.push(Ed(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Od(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function kd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=dn(n,a),l!=null&&o.unshift(Ed(n,l,c))):i||(l=dn(n,a),l!=null&&o.push(Ed(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ad=/\r\n?/g,jd=/\u0000|\uFFFD/g;function Md(e){return(typeof e==`string`?e:``+e).replace(Ad,`
10`).replace(jd,``)}function Nd(e,t){return t=Md(t),Md(e)===t}function Q(e,t,n,r,i,a){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Jt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Jt(e,``+r);break;case`className`:Mt(e,`class`,r);break;case`tabIndex`:Mt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Mt(e,n,r);break;case`style`:Zt(e,r,a);break;case`data`:if(t!==`object`){Mt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=tn(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof a==`function`&&(n===`formAction`?(t!==`input`&&Q(e,t,`name`,i.name,i,null),Q(e,t,`formEncType`,i.formEncType,i,null),Q(e,t,`formMethod`,i.formMethod,i,null),Q(e,t,`formTarget`,i.formTarget,i,null)):(Q(e,t,`encType`,i.encType,i,null),Q(e,t,`method`,i.method,i,null),Q(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=tn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=nn);break;case`onScroll`:r!=null&&Z(`scroll`,e);break;case`onScrollEnd`:r!=null&&Z(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(o(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=tn(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Z(`beforetoggle`,e),Z(`toggle`,e),jt(e,`popover`,r);break;case`xlinkActuate`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Nt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Nt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Nt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Nt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:jt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=$t.get(n)||n,jt(e,n,r))}}function Pd(e,t,n,r,i,a){switch(n){case`style`:Zt(e,r,a);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(o(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Jt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Jt(e,``+r);break;case`onScroll`:r!=null&&Z(`scroll`,e);break;case`onScrollEnd`:r!=null&&Z(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=nn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!wt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),a=e[lt]||null,a=a==null?null:a[n],typeof a==`function`&&e.removeEventListener(t,a,i),typeof r==`function`)){typeof a!=`function`&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):jt(e,n,r)}}}function Fd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Z(`error`,e),Z(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var s=n[a];if(s!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(o(137,t));default:Q(e,t,a,s,n,null)}}i&&Q(e,t,`srcSet`,n.srcSet,n,null),r&&Q(e,t,`src`,n.src,n,null);return;case`input`:Z(`invalid`,e);var c=a=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:a=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(o(137,t));break;default:Q(e,t,r,d,n,null)}}Ut(e,a,c,l,u,s,i,!1);return;case`select`:for(i in Z(`invalid`,e),r=s=a=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:a=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Q(e,t,i,c,n,null)}t=a,n=s,e.multiple=!!r,t==null?n!=null&&Gt(e,!!r,n,!0):Gt(e,!!r,t,!1);return;case`textarea`:for(s in Z(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:a=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(o(91));break;default:Q(e,t,s,c,n,null)}qt(e,r,i,a);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Q(e,t,l,r,n,null)}return;case`dialog`:Z(`beforetoggle`,e),Z(`toggle`,e),Z(`cancel`,e),Z(`close`,e);break;case`iframe`:case`object`:Z(`load`,e);break;case`video`:case`audio`:for(r=0;r<vd.length;r++)Z(vd[r],e);break;case`image`:Z(`error`,e),Z(`load`,e);break;case`details`:Z(`toggle`,e);break;case`embed`:case`source`:case`link`:Z(`error`,e),Z(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(o(137,t));default:Q(e,t,u,r,n,null)}return;default:if(Qt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Pd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Q(e,t,c,r,n,null))}function Id(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Q(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:a=m;break;case`name`:i=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(o(137,t));break;default:m!==f&&Q(e,t,p,m,r,f)}}Ht(e,s,c,l,u,d,a,i);return;case`select`:for(a in m=s=c=p=null,n)if(l=n[a],n.hasOwnProperty(a)&&l!=null)switch(a){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(a)||Q(e,t,a,null,r,l)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case`value`:p=a;break;case`defaultValue`:c=a;break;case`multiple`:s=a;default:a!==l&&Q(e,t,i,a,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Gt(e,!!n,n?[]:``,!1):Gt(e,!!n,t,!0)):Gt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Q(e,t,c,null,r,i)}for(s in r)if(i=r[s],a=n[s],r.hasOwnProperty(s)&&(i!=null||a!=null))switch(s){case`value`:p=i;break;case`defaultValue`:m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(o(91));break;default:i!==a&&Q(e,t,s,i,r,a)}Kt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Q(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Q(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Q(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(o(137,t));break;default:Q(e,t,u,p,r,m)}return;default:if(Qt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Pd(e,t,_,void 0,r,p);
vendor: 4,461 bytes, line 10
10for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Pd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Q(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Q(e,t,f,p,r,m)}function Ld(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Rd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Ld(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Ld(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var zd=null,Bd=null;function Vd(e){return e.nodeType===9?e:e.ownerDocument}function Hd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Ud(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Wd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gd=null;function Kd(){var e=window.event;return e&&e.type===`popstate`?e===Gd?!1:(Gd=e,!0):(Gd=null,!1)}var qd=typeof setTimeout==`function`?setTimeout:void 0,Jd=typeof clearTimeout==`function`?clearTimeout:void 0,Yd=typeof Promise==`function`?Promise:void 0,Xd=typeof queueMicrotask==`function`?queueMicrotask:Yd===void 0?qd:function(e){return Yd.resolve(null).then(e).catch(Zd)};function Zd(e){setTimeout(function(){throw e})}function Qd(e){return e===`head`}function $d(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Pp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)mf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,mf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ht]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&mf(e.ownerDocument.body);n=i}while(n);Pp(t)}function ef(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function tf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:tf(n),gt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function nf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[ht])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=lf(e.nextSibling),e===null)break}return null}function rf(e,t,n){if(t===``)return null;for(;
vendor: 20,903 bytes, line 10
10e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lf(e.nextSibling),e===null))return null;return e}function af(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lf(e.nextSibling),e===null))return null;return e}function of(e){return e.data===`$?`||e.data===`$~`}function sf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function lf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var uf=null;function df(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function ff(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function pf(e,t,n){switch(t=Vd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(o(452));return e;case`head`:if(e=t.head,!e)throw Error(o(453));return e;case`body`:if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function mf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);gt(e)}var hf=new Map,gf=new Set;function _f(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var vf=j.d;j.d={f:yf,r:bf,D:Cf,C:wf,L:Tf,m:Ef,X:Of,S:Df,M:kf};function yf(){var e=vf.f(),t=xu();return e||t}function bf(e){var t=vt(e);t!==null&&t.tag===5&&t.type===`form`?ks(t):vf.r(e)}var xf=typeof document>`u`?null:document;function Sf(e,t,n){var r=xf;if(r&&typeof t==`string`&&t){var i=Vt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),gf.has(i)||(gf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Fd(t,`link`,e),St(t),r.head.appendChild(t)))}}function Cf(e){vf.D(e),Sf(`dns-prefetch`,e,null)}function wf(e,t){vf.C(e,t),Sf(`preconnect`,e,t)}function Tf(e,t,n){vf.L(e,t,n);var r=xf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Vt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Vt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Vt(n.imageSizes)+`"]`)):i+=`[href="`+Vt(e)+`"]`;var a=i;switch(t){case`style`:a=jf(e);break;case`script`:a=Ff(e)}hf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),hf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Mf(a))||t===`script`&&r.querySelector(If(a))||(t=r.createElement(`link`),Fd(t,`link`,e),St(t),r.head.appendChild(t)))}}function Ef(e,t){vf.m(e,t);var n=xf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Vt(r)+`"][href="`+Vt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Ff(e)}if(!hf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),hf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(If(a)))return}r=n.createElement(`link`),Fd(r,`link`,e),St(r),n.head.appendChild(r)}}}function Df(e,t,n){vf.S(e,t,n);var r=xf;if(r&&e){var i=xt(r).hoistableStyles,a=jf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Mf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=hf.get(a))&&zf(e,n);var c=o=r.createElement(`link`);St(c),Fd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Rf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Of(e,t){vf.X(e,t);var n=xf;if(n&&e){var r=xt(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=m({src:e,async:!0},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),St(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t){vf.M(e,t);var n=xf;if(n&&e){var r=xt(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),St(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t,n,r){var i=(i=de.current)?_f(i):null;if(!i)throw Error(o(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=jf(n.href),n=xt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=jf(n.href);var a=xt(i).hoistableStyles,s=a.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,s),(a=i.querySelector(Mf(e)))&&!a._p&&(s.instance=a,s.state.loading=5),hf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hf.set(e,n),a||Pf(i,e,n,s.state))),t&&r===null)throw Error(o(528,``));return s}if(t&&r!==null)throw Error(o(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Ff(n),n=xt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(o(444,e))}}function jf(e){return`href="`+Vt(e)+`"`}function Mf(e){return`link[rel="stylesheet"][`+e+`]`}function Nf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Pf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Fd(t,`link`,n),St(t),e.head.appendChild(t))}function Ff(e){return`[src="`+Vt(e)+`"]`}function If(e){return`script[async]`+e}function Lf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Vt(n.href)+`"]`);if(r)return t.instance=r,St(r),r;var i=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),St(r),Fd(r,`style`,i),Rf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=jf(n.href);var a=e.querySelector(Mf(i));if(a)return t.state.loading|=4,t.instance=a,St(a),a;r=Nf(n),(i=hf.get(i))&&zf(r,i),a=(e.ownerDocument||e).createElement(`link`),St(a);var s=a;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Fd(a,`link`,r),t.state.loading|=4,Rf(a,n.precedence,e),t.instance=a;case`script`:return a=Ff(n.src),(i=e.querySelector(If(a)))?(t.instance=i,St(i),i):(r=n,(i=hf.get(a))&&(r=m({},n),Bf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),St(i),Fd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(o(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Rf(r,n.precedence,e));return t.instance}function Rf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Bf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Vf=null;function Hf(e,t,n){if(Vf===null){var r=new Map,i=Vf=new Map;i.set(n,r)}else i=Vf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ht]||a[ct]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Uf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Wf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Gf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Kf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=jf(r.href),a=t.querySelector(Mf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Yf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,St(a);return}a=t.ownerDocument||t,r=Nf(r),(i=hf.get(i))&&zf(r,i),a=a.createElement(`link`),St(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Fd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Yf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var qf=0;function Jf(e,t){return e.stylesheets&&e.count===0&&Zf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&qf===0&&(qf=62500*Rd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Yf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xf=null;function Zf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xf=new Map,t.forEach(Qf,e),Xf=null,Yf.call(e))}function Qf(e,t){if(!(t.state.loading&4)){var n=Xf.get(e);if(n)var r=n.get(null);else{n=new Map,Xf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Yf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var $f={$$typeof:S,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function ep(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ze(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ze(0),this.hiddenUpdates=Ze(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function tp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ep(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=I(3,null,null,t),e.current=a,a.stateNode=e,t=ua(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},R(a),e}function np(e){return e?(e=li,e):li}function rp(e,t,n,r,i,a){i=np(i),r.context===null?r.context=i:r.pendingContext=i,r=Wa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ga(e,r,t),n!==null&&(gu(n,e,t),Ka(n,e,t))}function ip(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ap(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function op(e){if(e.tag===13||e.tag===31){var t=oi(e,67108864);t!==null&&gu(t,e,67108864),ap(e,67108864)}}function sp(e){if(e.tag===13||e.tag===31){var t=mu();t=rt(t);var n=oi(e,t);n!==null&&gu(n,e,t),ap(e,t)}}var cp=!0;function lp(e,t,n,r){var i=A.T;A.T=null;var a=j.p;try{j.p=2,dp(e,t,n,r)}finally{j.p=a,A.T=i}}function up(e,t,n,r){var i=A.T;A.T=null;var a=j.p;try{j.p=8,dp(e,t,n,r)}finally{j.p=a,A.T=i}}function dp(e,t,n,r){if(cp){var i=fp(r);if(i===null)Td(e,t,r,pp,n),wp(e,r);else if(Ep(i,e,t,n,r))r.stopPropagation();else if(wp(e,r),t&4&&-1<Cp.indexOf(e)){for(;i!==null;){var a=vt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ke(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-ze(o);s.entanglements[1]|=c,o&=~c}id(a),!(K&6)&&(nu=De()+500,ad(0,!1))}}break;case 31:case 13:s=oi(a,2),s!==null&&gu(s,a,2),xu(),ap(a,2)}if(a=fp(r),a===null&&Td(e,t,r,pp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Td(e,t,r,null,n)}}function fp(e){return e=an(e),mp(e)}var pp=null;function mp(e){if(pp=null,e=_t(e),e!==null){var t=c(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=l(t),e!==null)return e;e=null}else if(n===31){if(e=u(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return pp=e,null}function hp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Oe()){case ke:return 2;case Ae:return 8;case je:case Me:return 32;case Ne:return 268435456;default:return 32}default:return 32}}var gp=!1,_p=null,vp=null,yp=null,bp=new Map,xp=new Map,Sp=[],Cp=`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`.split(` `);function wp(e,t){switch(e){case`focusin`:case`focusout`:_p=null;break;case`dragenter`:case`dragleave`:vp=null;break;case`mouseover`:case`mouseout`:yp=null;break;case`pointerover`:case`pointerout`:bp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:xp.delete(t.pointerId)}}function Tp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=vt(t),t!==null&&op(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ep(e,t,n,r,i){switch(t){case`focusin`:return _p=Tp(_p,e,t,n,r,i),!0;case`dragenter`:return vp=Tp(vp,e,t,n,r,i),!0;case`mouseover`:return yp=Tp(yp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return bp.set(a,Tp(bp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,xp.set(a,Tp(xp.get(a)||null,e,t,n,r,i)),!0}return!1}function Dp(e){var t=_t(e.target);if(t!==null){var n=c(t);if(n!==null){if(t=n.tag,t===13){if(t=l(n),t!==null){e.blockedOn=t,ot(e.priority,function(){sp(n)});return}}else if(t===31){if(t=u(n),t!==null){e.blockedOn=t,ot(e.priority,function(){sp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Op(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);rn=r,n.target.dispatchEvent(r),rn=null}else return t=vt(n),t!==null&&op(t),e.blockedOn=n,!1;t.shift()}return!0}function kp(e,t,n){Op(e)&&n.delete(t)}function Ap(){gp=!1,_p!==null&&Op(_p)&&(_p=null),vp!==null&&Op(vp)&&(vp=null),yp!==null&&Op(yp)&&(yp=null),bp.forEach(kp),xp.forEach(kp)}function jp(e,t){e.blockedOn===t&&(e.blockedOn=null,gp||(gp=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Ap)))}var Mp=null;function Np(e){Mp!==e&&(Mp=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Mp===e&&(Mp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(mp(r||n)===null)continue;break}var a=vt(n);a!==null&&(e.splice(t,3),t-=3,Ds(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Pp(e){function t(t){return jp(t,e)}_p!==null&&jp(_p,e),vp!==null&&jp(vp,e),yp!==null&&jp(yp,e),bp.forEach(t),xp.forEach(t);for(var n=0;n<Sp.length;n++){var r=Sp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Sp.length&&(n=Sp[0],n.blockedOn===null);)Dp(n),n.blockedOn===null&&Sp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[lt]||null;if(typeof a==`function`)o||Np(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[lt]||null)s=o.formAction;else if(mp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Np(n)}}}function Fp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Ip(e){this._internalRoot=e}Lp.prototype.render=Ip.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current;rp(n,mu(),e,t,null,null)},Lp.prototype.unmount=Ip.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rp(e.current,2,null,e,null,null),xu(),t[ut]=null}};function Lp(e){this._internalRoot=e}Lp.prototype.unstable_scheduleHydration=function(e){if(e){var t=at();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Sp.length&&t!==0&&t<Sp[n].priority;n++);Sp.splice(n,0,e),n===0&&Dp(e)}};var Rp=r.version;if(Rp!==`19.2.8`)throw Error(o(527,Rp,`19.2.8`));j.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(o(188)):(e=Object.keys(e).join(`,`),Error(o(268,e)));return e=f(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var zp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:A,reconcilerVersion:`19.2.8`};
10if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bp.isDisabled&&Bp.supportsFiber)try{Ie=Bp.inject(zp),Le=Bp}catch{}}e.hydrateRoot=function(e,t,n){if(!s(e))throw Error(o(299));var r=!1,i=``,a=Ys,c=Xs,l=Zs,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=tp(e,1,!0,t,n??null,r,i,u,a,c,l,Fp),t.context=np(null),n=t.current,r=mu(),r=rt(r),i=Wa(r),i.callback=null,Ga(n,i,r),n=r,t.current.lanes=n,Qe(t,n),id(t),e[ut]=t.current,Cd(e),new Lp(t)}})),St=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=xt()})),Ct=`__TSS_CONTEXT`,wt=Symbol.for(`TSS_SERVER_FUNCTION`),Tt=Symbol.for(`TSS_SERVER_FUNCTION_FACTORY`),Et=`application/x-tss-framed`;`${Et}`;var Dt=()=>window.__TSS_START_OPTIONS__;function Ot(e){return e.replaceAll(`\0`,`/`).replaceAll(`�`,`/`).replace(/~([~0r])/g,(e,t)=>t===`0`?`\0`:t===`r`?`�`:t)}function kt(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var At=4,jt=5;function Mt(e){let t=e.names;if(t)return t;let n=[];for(let t of e)typeof t!=`string`&&n.push(t[1]);return e.names=n}function Nt(e,t,n){let r=e.substring(t,n);if(r.charCodeAt(0)===36)return r.length===1?[2,`_splat`,``,void 0]:[1,r.substring(1),``,``];let i=r.indexOf(`{`);if(i>=0){let a=r.indexOf(`}`,i),o=r.charCodeAt(i+1)===45,s=i+(o?3:2);if(a>=0&&r.charCodeAt(s-1)===36&&(!o||s<a)){let c=r.substring(s,a);return[o?3:c?1:2,c||`_splat`,r.substring(0,i),e.substring(t+a+1,c?n:e.length)]}}return r}function Pt(e,t,n,r,i,a){let o=n,s=t.fullPath??t.from,c=t.options,l=s.length,u=s.endsWith(`/`)?l-1:l,d=c?.caseSensitive??e,f=c?.params?.parse??c?.parseParams,p,m=a?n-1:0;if(!r||s.includes(`$`)){p=a?.slice()??[];let e=x(p);e&&typeof e!=`string`&&e[0]===2&&(p[p.length-1]=[e[0],e[1],e[2],e[3]===void 0?void 0:e[3]+s.substring(n-(s[n-2]===`/`?2:1),u)],m=l)}for(;o<l;){let e=o,t=s.indexOf(`/`,e),n=t===-1?l:t,a=Nt(s,e,n);o=n+1;let c;if(typeof a==`string`){if(!r)continue;let e=a,t;d?t=r.static??=new Map:(e=a.toLowerCase(),t=r.staticInsensitive??=new Map);let n=t.get(e);if(n)c=n;else{let n=It(r);c=n,t.set(e,n)}}else{let t=a[0],h=a[2],g=a[3]??``;if(t===2&&(n=l,o=n+1),p&&m<n&&(m<e-1&&p.push(s.substring(m,e-1)),a[2]=`/`+h,t===2&&a[3]!==void 0&&u<l&&(a[3]=g.slice(0,-1)),p.push(a),m=n),!r)continue;let _=d&&!!(h||g);d||(h=h.toLowerCase(),g=g.toLowerCase());let v=t===1?r.dynamic??=[]:t===3?r.optional??=[]:r.wildcard??=[],y=t!==2&&!f&&v.find(e=>!e.parse&&e.caseSensitive===_&&e.prefix===h&&e.suffix===g);if(y)c=y;else{let e=It(r,t,_,h,g);c=e,v.push(e),v.length===2&&i?.push(v)}}r=c}p&&m<u&&p.push(s.substring(m,u));let h=p?.slice();if(!r)return h;
10if(f&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf(`/`)+1)===95){let e=It(r,jt);(r.pathless??=[]).push(e),r=e}let g=(t.path||!t.children)&&!t.isRoot;if(g&&u<l){let e=It(r,At);r.index=e,r=e}return r.parse=f??null,r.priority=c?.params?.priority??0,r.route||(r.data=h,g&&(r.route=t)),[r,o,h]}function Ft(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function It(e,t=0,n,r,i){return{kind:t,depth:e?e.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:e,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function Lt(e,t){let n=It(),r=[];function i(e,t,n,a){let[o,s,c]=Pt(!1,e,t,n,r,a);if(e.children)for(let t of e.children)i(t,s,o,c)}for(let t of e)i(t,1,n);for(let e of r)e.sort(Ft);t.masksTree=n,t.flatCache=kt(1e3)}function Rt(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=Ht(e,t.masksTree);return t.flatCache.set(e,r),r}function zt(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=It(),Pt(t,{from:e},1,o),i.singleCache.set(a,o)),Ht(r,o,n)}function Bt(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=Ht(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Wt(a.route)),t.matchCache.set(r,a),a}function Vt(e,t=!1){let n=It(),r=[],i={},a={},o=0;function s(e,n,c,l){if(e.init(o),e.id in i&&T(),i[e.id]=e,o!==0&&e.path){let t=M(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}o++;let[u,d,f]=Pt(t,e,n,c,r,l);if(e._interpolation=f,e.children)for(let t of e.children)s(t,d,u,f)}s(e,1,n);for(let e of r)e.sort(Ft);return{processedTree:{segmentTree:n,singleCache:kt(1e3),matchCache:kt(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function Ht(e,t,n=!1){let r=e.split(`/`),i=Kt(e,r,t,n);if(!i)return null;let[a]=Ut(e,r,i);return{route:i.node.route,rawParams:a}}function Ut(e,t,n){let r=Gt(n.node),i=n.node.data&&Mt(n.node.data),a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.param??0;for(;s<r.length;o++,s++,c++){let u=r[s];if(u.kind===At)break;if(u.kind===jt){o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1||u.kind===3){let e=i[l++];if(u.kind===3&&n.skipped&1<<s){o--,c=f-1;continue}let t=u.suffix||u.prefix?d.substring(u.prefix.length,d.length-u.suffix.length):d;(t||u.kind===1)&&(a[e]=decodeURIComponent(t))}else if(u.kind===2){let t=u,n=e.substring(f+t.prefix.length,e.length-t.suffix.length),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,param:l}]}function Wt(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Gt(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Kt(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!x(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!Xt(l,n))continue;if(i.parse){if(!Yt(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==At&&Xt(c,n)&&(c=n);let _=u===o;if(_&&(i.route&&(!a||i.kind===At||i.kind===2)&&Xt(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[u],y;if(_&&i.index){let n={node:i.index,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;if(i.index.parse&&(Yt(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&Jt(f,o))return n;Xt(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(_||!(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)))){if(a){if(_)continue;let e=t.slice(u).join(`/`),i=e.slice(-a.length);if((n.caseSensitive?i:i.toLowerCase())!==a||e.length-a.length<r.length)continue}s.push({node:n,index:o,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(i.optional){let e=d|1<<i.depth+1;for(let t=i.optional.length-1;t>=0;t--){let n=i.optional[t];s.push({node:n,index:u,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p,optionals:m+qt(o,u),extract:h,rawParams:g})}}if(!_&&i.dynamic&&v)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p+qt(o,u),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,statics:f+qt(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&s.push({node:e,index:u+1,skipped:d,statics:f+qt(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(i.pathless)for(let e=i.pathless.length-1;e>=0;e--){let t=i.pathless[e];s.push({node:t,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function qt(e,t){return 2**(e-t-1)}function Jt(e,t){return e===2**(t-1)-1}function Yt(e,t,n){let r,i;try{[r,i]=Ut(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Xt(e,t){return!e||t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===At)>(e.node.kind===At)||t.node.kind===At==(e.node.kind===At)&&t.node.depth>e.node.depth)))}function Zt(){try{return sessionStorage}catch{return}}var Qt=`tsr-scroll-restoration-v1_3`,$t=Zt();function en(){try{return JSON.parse($t?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var tn=en(),nn=`data-scroll-restoration-id`,rn=e=>e.state.__TSR_key||e.href;function an(e){let t=e.getAttribute(nn);if(t)return`[${nn}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var on=!1,sn=`window`;function cn(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function ln(e){let t=new Set;for(let n of e){if(n===sn)continue;let e=cn(n);e&&t.add(e)}return t}
10function un(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||rn,a=new Set,o=e=>{let t=tn[e]||={};for(let e of a)e===document?t[sn]={scrollX,scrollY}:e.isConnected&&(t[an(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,on=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{on||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{history.scrollRestoration=`auto`,o(i(e.stores.resolvedLocation.get()??e.stores.location.get()));try{$t?.setItem(Qt,JSON.stringify(tn))}catch{}}),addEventListener(`pageshow`,e=>{e.persisted&&(history.scrollRestoration=`manual`)})),!r.r&&(r.r=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.n,c=r.h,l;if(a.clear(),r.n=!0,r.h=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.e&&d&&d!==u){let e=tn[d];if(e){let t=tn[u];for(let n in e){if(n===sn){if(s)continue}else{let e=cn(n);if(!e||s&&o&&(l??=ln(o),l.has(e)))continue}t||=tn[u]={},t[n]??=e[n]}}}on=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=ln(o));let t=e&&i&&c,s=r.e?tn[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===sn){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=cn(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{on=!1}}))}function dn(e,t=String){let n;for(let r in e){let i=e[r];i!==void 0&&(n||=new URLSearchParams).set(r,t(i))}return n?n.toString():``}function fn(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function pn(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=fn(r):Array.isArray(t)?t.push(fn(r)):n[e]=[t,fn(r)]}return n}var mn=/^(?:\s|["[{\d-]|fa|nu|tr)/,hn=_n(JSON.parse),gn=vn(JSON.stringify,JSON.parse);function _n(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.substring(1));let r=pn(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!mn.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function vn(e,t){let n=t===JSON.parse;function r(r){if(r&&typeof r==`object`)try{return e(r)}catch{}else if(t&&typeof r==`string`){if(n&&!mn.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=dn(e,r);return t?`?${t}`:``}}function yn(e,t,n){let r=S(e),i=`/${r}`,a=t?i:i.toLowerCase(),o=`${a}/`,s={input:({url:e})=>{let n=t?e.pathname:e.pathname.toLowerCase();return n===a?e.pathname=`/`:n.startsWith(o)&&(e.pathname=e.pathname.slice(i.length)),e},output:({url:e})=>(e.pathname=ce(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>bn(n,s.input({url:e})),output:({url:e})=>s.output({url:xn(n,e)})}:s}function bn(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function xn(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Sn(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let m={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:h};function h(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{p(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return m}var Cn=`__TSR_index`,wn=`popstate`,Tn=`beforeunload`,En=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function Dn(e){let t=En.exec(e);return t?`/`+e.slice(t[0].length):e}function On(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>`	
11\r`.includes(e)?``:encodeURIComponent(e))),Dn(e)}function kn(e){let t=e.getLocation(),n=new Set,r=r=>
11{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=Mn(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[Cn];i=An(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[Cn];i=An(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t,n?.ignoreBlocker??!1),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[Cn]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r,_getBlockers:()=>e.getBlockers?.()??[]}}function An(e,t){let n=Nn();return{...t,key:n,__TSR_key:n,[Cn]:e}}function jn(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=t=>On(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>Mn(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Nn();t.history.replaceState({[Cn]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(S._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),S._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(t,n,r)=>{let i=e?.createHref?s(n):void 0,a=!!g;a||(u=l),l=Mn(n,r),g=[i??l.href,r,g?.[2]||t],a||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(m=!1,f){f=!1;return}let e=c(),n=e.state[Cn]-l.state[Cn],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let r=a();if(typeof document<`u`&&r.length){for(let i of r)if(await i.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(-n),S.notify(u);return}}}l=c(),S.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=kn({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0,m=!0),t.history.back()),forward:e=>{e&&(p=!0,m=!0),t.history.forward()},go:(e,n)=>{d=!0,n&&(p=!0,m=!0),t.history.go(e)},createHref:e=>s(e),flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Tn,x,{capture:!0}),t.removeEventListener(wn,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return S._ignoreNextBeforeUnload=e=>{m=!1;try{e=new URL(e,t.document.baseURI).href,m=/^https?:/.test(e)&&(!e.includes(`#`)||e.split(`#`)[0]!==t.location.href.split(`#`)[0])}catch{}},t.addEventListener(Tn,x,{capture:!0}),t.addEventListener(wn,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return S._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return S._ignoreSubscribers||y(`REPLACE`),n},S}function Mn(e,t){let n=On(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=Nn();t={[Cn]:0,key:e,__TSR_key:e}}return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t}}function Nn(){return(Math.random()+1).toString(36).substring(7)}function Pn(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function Fn(e){return e.pathname+e.search+e.hash}function In(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function Ln(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function Rn(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function zn({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function Bn(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function Vn(e,t,n,r,i,a){r&&(t=t.slice(0,r)),i&&(n=n.slice(0,i));for(let r of t){if(a&&e._tx!==a)return;n.some(e=>e.routeId===r.routeId)||e.routesById[r.routeId].options.onLeave?.(r)}for(let r of n){if(a&&e._tx!==a)return;e.routesById[r.routeId].options[t.some(e=>e.routeId===r.routeId)?`onStay`:`onEnter`]?.(r)}}var Hn=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async e=>(e(),!1),this.update=e=>{let t=this.options;this.options={...t,...e},this.isServer=this.options.isServer??!1??typeof document>`u`,this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=jn()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`);let n=this.options.basepath??`/`,r=this.options.rewrite,i=this.basepath!==n||t?.rewrite!==r||t?.caseSensitive!==this.options.caseSensitive;if(i&&(this.basepath=n,this.rewrite=n!==`/`&&S(n)?yn(n,this.options.caseSensitive,r):r),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;e=this.buildRouteTree(),this.setRoutes(e)}if(this.stores)i&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Sn(this.latestLocation,e),un(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=Vt(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&Lt(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:kt(1e3)}},this.subscribe=(e,t)=>
11{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{for(let t of this.subscribers)if(t.eventType===e.type)try{t.fn(e)}catch(e){console.error(e)}},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i},a)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:y(e),external:!1,searchStr:o,search:ue(t?.search,i),hash:y(r.slice(1)),state:w(t?.state,a)}}let o=bn(this.rewrite,new URL(i,this.origin)),s=this.options.parseSearch(o.search),c=this.options.stringifySearch(s);return o.search=c,{href:o.href.replace(o.origin,``),publicHref:i,pathname:y(Dn(o.pathname)),external:!!this.rewrite&&Pn(o,this.origin),searchStr:c,search:ue(t?.search,s),hash:y(o.hash.slice(1)),state:w(t?.state,a)}},r=n(e,e.state),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i,{...i.state,__tempLocation:void 0,key:r.state.key,__TSR_key:r.state.__TSR_key});return e.maskedLocation=r,e}return r},this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>{let t=Object.create(null),n=Bt(M(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{{let t=this.staticLocations.get(e);if(t)return t}let t=!1,n=(n={})=>{if(n.href){let e=Mn(n.href,{});n={...n,to:bn(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let r=n._fromLocation||this._pendingLocation||this.latestLocation,i,a=()=>(t=!0,r),o=()=>(t=!0,i??=this.matchRoutesLightweight(r)),s=n.to?`${n.to}`:`.`,c=N(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),u=this.routesByPath[M(c)],d=c.includes(`$`),p;if(u)p=u._branch??=Wt(u);else if(d)p=[];else{let[e,t,n]=this.getMatchedRoutes(c);p=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(p=[...p,this.options.notFoundRoute])}let m=d?u?._interpolation??Pt(!1,{fullPath:c},0):void 0,h;for(let e of p){let t=e.options.params?.stringify??e.options.stringifyParams;if(t){let e=o()[3];if(h??=qn(n.params,e),!b(h))break;h===e&&(h=Object.assign(f(),h));try{Object.assign(h,t(h))}catch{}}}h??=qn(n.params,Jn(n.params,m)?o()[3]:Yn);let g=e.leaveParams?c:Dn(y(m?E(c,m,h,this.pathParamsDecoder):c)),_=Xn(p,e._includeValidateSearch),v=()=>{let t=o()[2];if(e._includeValidateSearch&&this.options.search?.strict){let e={};p.forEach(n=>{if(n.options.validateSearch)try{Object.assign(e,Kn(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},x=_.length?Zn(_,v(),n):n.search===!0?v():typeof n.search==`function`?n.search(v()):n.search||Yn,S=this.options.stringifySearch(x),C=n.hash===!0?a().hash:typeof n.hash==`function`?n.hash(a().hash):n.hash||void 0,w=C?`#${C}`:``,T=n.state?n.state===!0?a().state:typeof n.state==`function`?n.state(a().state):n.state:Yn,D=`${g}${S}${w}`,O,k,ee=!1;if(this.rewrite){let e=new URL(D,this.origin),t=e.origin,n=xn(this.rewrite,e);O=Fn(e),Pn(n,t)?(k=n.href,ee=!0):k=Dn(Fn(n))}else O=l(D),k=O;return{publicHref:k,href:O,pathname:g,search:x,searchStr:S,state:T,hash:C??``,external:ee,unmaskOnReload:n.unmaskOnReload}},r=n(e);if(e.mask)r.maskedLocation=n({from:e.from,...e.mask});else if(this.options.routeMasks){let t=Rt(r.pathname,this.processedTree);if(t){let i=Object.assign(f(),t.rawParams),{from:a,params:o,...s}=t.route,c=qn(o,i);r.maskedLocation=n({from:e.from,...s,params:c})}}return!t&&e._fromLocation&&!r.maskedLocation&&this.staticLocations.set(e,r),r},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=n.maskedLocation??n;if(r.external)return Un(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=M(this.latestLocation.href)===M(n.href)&&ie(zn(n.state),zn(this.latestLocation.state)),o=this._commitPromise,s,c=new Promise(e=>{s=e});if(c.resolve=()=>{s(),o?.resolve()},this._commitPromise=c,a)this.load();else{let{maskedLocation:r,hashScrollIntoView:a,...o}=n;r&&(o={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state={...o.state,__hashScrollIntoViewOptions:a??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=e,i=n.replace?`REPLACE`:`PUSH`,this.history[i===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t}),this.history.subscribers.size||this.load({action:{type:i}})}return this._scroll.n=n.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,...a}={})=>{let o=this.buildLocation({...a,_includeValidateSearch:!0});this._pendingLocation=o;let s=this.commitLocation({...o,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>
11{this._pendingLocation===o&&(this._pendingLocation=void 0)}),s},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=n?v(n):void 0;if(a||t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i}),a=t.maskedLocation??t;n??=a.publicHref,r??=a.publicHref}let t=!a&&r?r:n;return Un(this,t,i)}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.h=e.action.type===`PUSH`||e.action.type===`REPLACE`),await Wr(this,e)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&window.CSS?.supports?.(`selector(:active-view-transition-type(a))`)){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(Rn(r,i)):t.types;if(a===!1)return e();n={update:e,types:a}}else n=e;return document.startViewTransition(n).updateCallbackDone}return e()},this.invalidate=e=>{let t=this._committed,n=e?.filter,r=this._preloads,i=new Set,a=e=>{(!n||n(e))&&i.add(e.id)};t.forEach(a),this._cache.forEach(a),r?.forEach(e=>e.forEach(a)),this._tx?.[3].forEach(a);let o=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),o.push(e));let s=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&In(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(s);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i){let t=this._flights?.get(e);this._flights?.delete(e),t&&!t[2]&&o.push(t[1])}for(let e of o)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.options,n=e.headers.get(`Location`)||t.href;if(!n){let e=this.buildLocation(t);n=(e.maskedLocation??e).publicHref||`/`}let r;if(u.test(n)||(r=v(n))&&!this.protocolAllowlist.has(r))throw Error(`Redirect blocked: unsafe protocol`);if(r===`http:`||r===`https:`){let e=new URL(n);e.pathname.startsWith(`//`)?n=e.href:Pn(e,this.origin)||(n=Fn(e),r=void 0)}return r&&(t.reloadDocument=!0),t.href=n,e.headers.set(`Location`,n),e},this.clearCache=e=>{let t=this._cache,n=this._preloads,r=e?.filter,i=[],a=[];for(let[e,n]of t)(!r||r(n))&&(a.push(e),i.push(n));let o=[];for(let[e,t]of n??[])(!r||t.some(r))&&(o.push(e),i.push(...t));for(let e of a)t.delete(e);for(let e of o)n.delete(e);for(let e of i){let t=e._flight;e._flight=void 0,t&&!--t[2]&&(this._flights?.get(e.id)===t&&this._flights.delete(e.id),o.push(t[1]))}for(let e of o)e.abort()},this.loadRouteChunk=nr,this.preloadRoute=e=>Gr(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?N(e.from||``,e.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=zt(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!ie(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?ie(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=le(e.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??gn,parseSearch:e.parseSearch??hn,protocolAllowlist:e.protocolAllowlist??C}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){Object.assign(this,e),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;let t=this.options.notFoundRoute;t&&(t.init(99999999999),this.routesById[t.id]!==t&&(t._interpolation=Pt(!1,t,0)),this.routesById[t.id]=t)}matchRoutesInternal(e,t){let[n,r,i]=this.getMatchedRoutes(e.pathname),o=n,s=!1;(i?i.path!==`/`&&r[`**`]:M(e.pathname))&&(this.options.notFoundRoute?o=[...o,this.options.notFoundRoute]:s=!0);let l=s?Qn(this.options.notFoundMode,o):void 0,u=Array(o.length),d=this._committed,p=(e,t)=>{let n=d[t];return n?.routeId===e.id?n:e===this.options.notFoundRoute?d.find(t=>t.routeId===e.id):void 0},m;for(let n=0;n<o.length;n++){let i=o[n],s=u[n-1],d,h,g;{let n=s?.search??e.search,r=s?._strictSearch??void 0;try{let e=Kn(i.options.validateSearch,{...n})??void 0;d={...n,...e},h={...r,...e}}catch(e){let r=e;if(e instanceof Wn||(r=new Wn(e.message,{cause:e})),t?.throwOnError)throw r;d=n,h={},g=r}}let _=``,v=``;try{_=i.options.loaderDeps?.({search:d})??``,v=_&&JSON.stringify(_)||``}catch(e){if(t?.throwOnError)throw e;g??=e}let y=f(),b=i._interpolation?E(i.fullPath,i._interpolation,r,this.pathParamsDecoder,y):i.fullPath,x=i.id+b+v,S=p(i,n),C=this._cache.get(x)??(S?.id===x?S:void 0);m=C?._strictParams??Object.assign(y,m);let T;if(!C)try{$n(i,m)}catch(e){if(T=a(e)||c(e)?e:new Gn(e.message,{cause:e}),t?.throwOnError)throw T}let D=S?`stay`:`enter`,O;if(C)O={...C,cause:D,search:ue(S?S.search:C.search,d),_strictSearch:h,searchError:g};else{let e=In(i)?`pending`:`success`;O={id:x,ssr:i.options.ssr,index:n,routeId:i.id,params:S?.params??m,_strictParams:m,pathname:b,updatedAt:Date.now(),search:S?ue(S.search,d):d,_strictSearch:h,searchError:g,status:e,isFetching:!1,error:void 0,paramsError:T,context:{},abortController:t?._controller??new AbortController,cause:D,loaderDeps:S?w(S.loaderDeps,_):_,invalid:!1,preload:!1,staticData:i.options.staticData||{},fullPath:i.fullPath}}let k=l===i.id;O._notFound&&!k&&(O.error=void 0),O._notFound=k,u[n]=O}for(let e=0;e<u.length;e++){let n=u[e];n.params=n.cause===`stay`?ue(n.params,m):m,t?._controller&&(n.context={})}return u}matchRoutesLightweight(e){let t=x(this.stores.ids.get()),n=t?this.stores.byRoute.get(t).get():void 0,r=n?.id,i=this.lightweightCache.get(e);if(i&&i[0]===r)return i[1];let[a,o]=this.getMatchedRoutes(e.pathname),s=x(a),c={...e.search};for(let e of a)try{Object.assign(c,Kn(e.options.validateSearch,c))}catch{}let l=n&&n.routeId===s.id&&n.pathname===e.pathname,u;if(l)u=n.params;else{let e=o;for(let t of a)try{$n(t,e)}catch{}u=e}let d=[a,s.fullPath,c,u];return this.lightweightCache.set(e,[r,d]),d}};async function Un(e,t,{replace:n,ignoreBlocker:r}
11){if(!h(t,e.protocolAllowlist)){if(!r){let t=e.history._getBlockers();for(let r of t)if(r?.blockerFn&&await r.blockerFn({currentLocation:e.history.location,nextLocation:e.history.location,action:n?`REPLACE`:`PUSH`}))return}e.history._ignoreNextBeforeUnload?.(t),n?window.location.replace(t):window.location.href=t}}var Wn=class extends Error{},Gn=class extends Error{};function Kn(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Wn(`Async validation not supported`);if(n.issues)throw new Wn(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function qn(e,t){if(e===void 0||e===!0)return t;let n=Object.create(null);return e===!1||e===null?n:typeof e==`function`?(Object.assign(n,t),Object.assign(n,e(n))):Object.assign(n,t,e)}function Jn(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!m.call(e,t[1]))}var Yn=Object.freeze({});function Xn(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r].options;`search`in i?i.search?.middlewares&&n.push(...i.search.middlewares):(i.preSearchFilters||i.postSearchFilters)&&n.push(({search:e,next:t})=>{let n=t(i.preSearchFilters?i.preSearchFilters.reduce((e,t)=>t(e),e):e);return i.postSearchFilters?i.postSearchFilters.reduce((e,t)=>t(e),n):n});let a=i.validateSearch;t&&a&&n.push(({search:e,next:t,meta:n})=>{let r=t(e);try{let e=Kn(a,r);if(n&&e)for(let t in e)t in r||(n.defaulted||=new Map).set(t,e[t]);return{...r,...e}}catch{}return r})}return n}function Zn(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=_(n.search,i);return a&&(a.explicit=e),e}return e[t]({search:i,next:(e,n)=>{if(n){let n=a||{};return{search:r(t+1,e,n),meta:n}}return r(t+1,e,a)},meta:a})};return r(0,t)}function Qn(e,t){if(e!==`root`){let e;for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.options.notFoundComponent)return r.id;e||=r.children&&r.id}if(e)return e}return de}function $n(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function er(e,t){return e.options[t]?.preload?.()}function tr(e,t){let n=er(e,`component`),r=er(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function nr(e,t,n){let r=()=>t===!1?void 0:t?er(e,t):tr(e,n),i=e._lazy;if(i)return i===!0?r():i.then(r);if(!e.lazyFn)return r();let a=e.lazyFn().then(t=>{{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazy=!0}},t=>{throw e._lazy=void 0,t});return e._lazy=a,a.then(r)}function rr(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function ir(e){let t=e.length;for(let n=0;n<t;n++){let r=e[n];if(r._assetEnd!==void 0){t=Math.min(t,Math.max(n+1,r._assetEnd));continue}if(r.status!==`success`||r._notFound){t=n+1;break}}return t<e.length?e.slice(0,t):e}var ar=0,or=1,sr=2,cr=3,lr=[4];function ur(e){return typeof e[0]==`number`}function dr(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,r)=>{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).then(()=>t.removeEventListener(`abort`,i))})}function fr(e,t){return e.routesById[t.routeId]}function pr(e,t,n){return c(e)?[cr,e]:a(e)?(e.routeId||=n,[sr,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[or,e]):[ar,e]}function mr(e,t){let n=pr(t,!0,e.id);if(n[0]!==or)return n;try{e.options.onError?.(n[1])}catch(t){n=pr(t,!0,e.id)}return n}function hr(e,t,n,r,i){return i[0].signal.aborted?lr:jr(e,t,n,mr(n,r),i)}async function gr(e,t,n,r,i,a){let[o,s]=t,c=n[0].signal,l=!!n[3];for(let i=n[6]??0;i<r;i++){let r=s[i],u=fr(e,r);r.abortController=n[0];let d=s[i-1]?.context??e.options.context??{},f={params:r.params,location:o,navigate:t=>e.navigate({...t,_fromLocation:o}),buildLocation:e.buildLocation,cause:l?`preload`:r.cause,abortController:n[0],preload:l,matches:s,routeId:u.id};try{let e=r._ctx||=u.options.context?u.options.context({...f,deps:r.loaderDeps,context:d})||{}:void 0;r.context={...d,...e}}catch(a){return vr(e,r),[i,hr(e,t,u,a,n)]}if(c.aborted)return[i,lr];let p=r.paramsError??r.searchError;if(p!==void 0)return vr(e,r),[i,hr(e,t,u,p,n)];let m=u.options.beforeLoad;if(!m)continue;let h=r.status;i>=a&&(r.status=`pending`,n[7]?.());try{xr(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?dr(a,c):a);if(c.aborted)return[i,lr];let s=jr(e,t,u,pr(o,!1,u.id),n);if(s[0]!==ar)return vr(e,r),[i,s];r.context={...r.context,...o}}catch(a){return vr(e,r),[i,hr(e,t,u,a,n)]}finally{r.status=h,xr(e,r,!1,n[0])}}i()}function _r(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){let n=e._tx;if(n&&!n[0].signal.aborted&&!n[3].includes(t)&&n[3].some(e=>e.id===t.id)&&n[3].some(e=>e.isFetching===`beforeLoad`))return;e._flights.delete(t.id)}return n[1]}}function vr(e,t){let n=t._flight;t._flight=void 0,_r(e,t,n)?.abort()}function yr(e,t,n,r){let i=[];for(let a of t)if(!n?.includes(a)){let t=a._flight;if(a._flight=void 0,r&&t?.[2]===1&&e._flights?.get(a.id)===t&&n?.some(e=>e.id===a.id))t[2]=0;else{let n=_r(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function br(e){for(let t of e){let e=t._flight;e&&e[2]++}}function xr(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;let i=e.stores.byRoute.get(t.routeId),a=i?.get();a?.id===t.id&&i.set({...a,isFetching:n})}function Sr(e,t,n,r,i,a,o){let s=t[0];return{params:n.params,location:s,navigate:t=>e.navigate({...t,_fromLocation:s}),cause:o?`preload`:n.cause,abortController:i,preload:o,deps:n.loaderDeps,parentMatchPromise:a,context:n.context,route:r,...e.options.additionalContext}}async function Cr(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return lr;if(!i)return[ar,void 0];let l=n._flight;xr(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(Sr(e,t,n,r,s,a,!!o[3]))).then(e=>pr(e,!1,r.id),e=>pr(e,!0,r.id)).then(t=>(t[0]!==ar&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===or&&l[2]?mr(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],jr(e,t,r,await dr(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return vr(e,n),lr}finally{xr(e,n,!1,s)}}function wr(e,t,n){t[0]!==cr&&(e.status=`success`,e.error=void 0,t[0]===ar?(e.loaderData=t[1],e.invali
11d=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function Tr(e,t,n){let r=e._cache.get(t.id);if(r!==n||e._committed.some(e=>e.id===t.id&&e._flight===t._flight))return;let i={...t,_notFound:void 0,context:{}};i._flight&&i._flight[2]++,e._cache.set(t.id,i),r&&vr(e,r)}function Er(e,t){return t[0]===or||t[0]===sr?{...e,status:t[0]===or?`error`:`notFound`,error:t[1],_flight:void 0}:e}function Dr(e,t,n,r,i,a,o){let s=t[1][n],c=fr(e,s),l=!!a[3],u=e._cache.get(s.id),d,f=!1,p;try{if(s.status===`success`&&(d=c.options.shouldReload,typeof d==`function`&&(d=d(Sr(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=lr)),!p)if(s.status!==`success`)f=!0;else{let t=l||s.preload?c.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.options.defaultStaleTime??0;f=!!(s.invalid||d||d===void 0&&Date.now()-s.updatedAt>=t&&(a[5]||s.cause===`enter`||a[2].some(e=>e.routeId===s.routeId&&e.id!==s.id)))}}catch(n){s.invalid=!0,vr(e,s),p=hr(e,t,c,n,a)}let m=c.options.loader,h=typeof m==`function`,g=h?m:m?.handler,_=!l||c.options.preload!==!1,v=_&&m?e._flights?.get(s.id):void 0;v===s._flight||p?v=void 0:v&&!f&&!l&&d===void 0?f=!0:f||(v=void 0);let y=!!(m&&f&&s.status===`success`&&!l&&!a[4]&&((h?void 0:m.staleReloadMode)??e.options.defaultStaleReloadMode)!==`blocking`),b=f&&_,x=b&&!y&&(s.status!==`success`||!!m),S=n>=o?a[7]:void 0,C=c.lazyFn&&c._lazy!==!0?S:void 0;if(b&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),v&&v[2]++,x){let t=s._flight;s._flight=v,_r(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?Cr(e,t,s,c,g,i,a).then(t=>(wr(s,t,l),t[0]===ar&&(m&&!a[0].signal.aborted&&Tr(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[ar,s.loaderData]),T=(async()=>{try{let e=nr(c,void 0,C);e&&await dr(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,hr(e,t,c,r,a)]}let r=await w;x&&r[0]===ar&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,T]),!y)return w.then(e=>Er(s,e));let E={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let D=Cr(e,t,E,c,g,i,a).then(e=>(s.isFetching=!1,wr(E,e,!1),e));return(t[2]??=[]).push([n,D,T,E]),D.then(e=>Er(E,e))}async function Or(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=fr(e,t[n]);try{let e=nr(i,!1);e&&await dr(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function kr(e,t){t[2]&&=(yr(e,t[2].map(e=>e[3])),void 0)}async function Ar(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=cr)throw[a,t];!i&&t[0]!==ar&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===cr)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function jr(e,t,n,r,i,a){for(;r[0]===cr;){let o=r[1],s=o.options;try{if((s.href||o.headers.has(`Location`))&&(e.resolveRedirect(o),s.reloadDocument)||(s.reloadDocument?i[3]:i[1]>=20))return r;let n=e.buildLocation({...s,_fromLocation:t[0],_includeValidateSearch:!0}),a=n.maskedLocation??n;if(a.external){let t=o.clone();return t.options={...s},t.headers.set(`Location`,a.publicHref),e.resolveRedirect(t),i[3]?[cr,t]:[cr,t,a]}return[cr,o,n]}catch(e){r=a?[or,e]:mr(n,e),a=!0}}return r}async function Mr(e,t,n,r,i,a){let o=t[1],s=await i,c=!1,l=o.findIndex(e=>e._notFound),u=t=>t[1][0]===sr?Or(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=cr)d=0;else if(s){d=s[2]??=await u(s);for(let e of n){if(e[0]>=d)break;let t=await e[1];if(t[0]!==ar&&t[0]<cr&&!(`loaderData`in o[e[0]])){s=[e[0],t],d=s[2]=await u(s);break}}}for(let e of n){if(e[0]>=d)break;let t=await e[2];if(t){s=t;break}}if((s?.[1][0]??0)>=cr){let n=s[1];if(n[0]!==cr||n[1].options.reloadDocument||n[2])return kr(e,t),n;c=!0,s=[0,[or,Error(`Too many redirects`)]]}let f=s?s[2]??await u(s):l;if(f>=0){let i=s?.[1],l=i?.[0],u=o[f],d=i?.[1],p=()=>
11{i&&(u._notFound=void 0,l===or?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};p(),i||a?.();let m=fr(e,u);try{await dr(i?Promise.resolve().then(()=>nr(m,l===or?`errorComponent`:`notFoundComponent`)):Promise.all([nr(m),nr(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return kr(e,t),lr}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),kr(e,t),yr(e,o),p()):u.status=`success`}return t}async function Nr(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;t<i;t++){let r=a[t],i=fr(e,r).options;if(i.head||i.scripts)try{let t={ssr:e.options.ssr,matches:a,match:r,params:r.params,loaderData:r.loaderData},[o,s]=await dr(Promise.all([i.head?.(t),i.scripts?.(t)]),n);r.meta=o?.meta,r.links=o?.links,r.headScripts=o?.scripts,r.styles=o?.styles,r.scripts=s}catch(e){if(e===n&&n.aborted)break;console.error(e)}if(r.status!==`success`||r._notFound)break}return t}async function Pr(e,t,n,r){let i=[t,n],a=r[0].signal,o;try{let t=e.stores.matches.get(),s=n.findIndex(e=>e._notFound);if(e.options.notFoundMode!==`root`&&s>=0){let t=await Or(e,n,void 0,a,s);n[s]._notFound=void 0,n[t]._notFound=!0,s=t}let c=s<0?n.length:s+1,l=0;for(;l<c&&l!==s;){let e=n[l],i=r[2][l],a=t[l];if(i?.id!==e.id||i.status!==`success`||e.preload||a?.id!==e.id||a.status!==`success`||(l++,i._notFound||a._notFound))break}let u=[],d=r[6]??0,f=d?Promise.resolve(n[d-1]):void 0,p=()=>{for(let t=d;t<c&&!a.aborted;t++)f=Dr(e,i,t,u,f,r,l)},m=await gr(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===sr){let t=await Or(e,n,m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=cr&&(c=0);p()}if(!a.aborted&&!r[3]){let t=[];for(let[n,r]of e._flights??[])r[2]||(e._flights.delete(n),t.push(r[1]));for(let e of t)e.abort()}let h=Mr(e,i,u,r[0],Ar(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=Ar(i[2],void 0,void 0,h.then(e=>ur(e)?0:rr(n).length,()=>0))),o=await h}catch(t){if(kr(e,i),t===a&&a.aborted)return lr;throw t}return ur(o)?o:Nr(e,o,a,r[6]===n.length?r[6]:0)}function Fr(e,t){if(e._tx!==t)return;let n=t[3],r=e.stores.matches.get(),i=e._pending;for(let a=0;a<n.length;a++){let o=n[a],s=o.status===`success`&&!o._notFound,c=r[a]?.id===o.id&&r[a]?.status===`pending`;if(s&&!c)continue;let l=fr(e,o),u=s||o.invalid?0:l.options.pendingMs??e.options.defaultPendingMs,d=l.options.pendingComponent??e.options.defaultPendingComponent;if(!d||typeof u!=`number`||u===1/0){i&&(i[0]=t,i[2]=0,i[4]=!0);return}let f=l.options.pendingMinMs??e.options.defaultPendingMinMs??0,p=!1;if(i?.[1]===o.id?(p=i[0]!==t,i[0]=t):(clearTimeout(i?.[3]),e._pending=i=void 0),i||(e._pending=i=[t,o.id,c?Date.now()+f:t[4]+u,void 0,c||void 0,d]),i[4]&&!p&&i[5]===d)return;if(i[5]=d,!i[4]){clearTimeout(i[3]);let n=i[2]-Date.now();if(n>0){i[3]=setTimeout(()=>Fr(e,t),n);return}i[2]=0}let m=n.map(e=>({...e,_flight:void 0}));m[a].status=`pending`;let h=i[4]=e.startTransition(()=>e.stores.setMatches(m),m).then(t=>(t&&e._pending===i&&i[4]===h&&!i[2]&&(i[2]=Date.now()+f),t));return}}function Ir(e,t){let n=e._pending;(e._tx===t||!e._tx?.[3].some(e=>e.id===n?.[1]))&&(clearTimeout(n?.[3]),e._pending=void 0)}async function Lr(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!rr(t[3]).some(e=>e.id===n[1]))return;let i;try{await dr(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function Rr(e,t){e._committed=t,e.stores.setMatches(t)}function zr(e,t,n,r){let i=e._committed,a=e._lifecycleEnd,o=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let s=rr(n).length,c=new Map;{let t=Date.now(),r=new Set;for(let e=0;e<n.length;e++){let t=n[e];(e<s||t.status===`success`)&&r.add(t.id)}for(let n of[...i,...o.values()]){if(n.status!==`success`||r.has(n.id))continue;let i=fr(e,n);!i.options.loader||t-n.updatedAt>=(n.preload?i.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:i.options.gcTime??e.options.defaultGcTime??3e5)||c.set(n.id,o.get(n.id)===n?n:{...n,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=c;let l=e._lifecycleEnd=Bn(n);Rr(e,n),yr(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),Vn(e,i,n,a,l,t)}async function Br(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function Vr(e,t,n){let r=n[1].options,i=n[2];if(!i)return e.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return e.navigate({href:(i.maskedLocation??i).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});i._redirects=t[1]+1,e._pendingLocation=i;let a=e.commitLocation({...i,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===i&&(e._pendingLocation=void 0)}),a}async function Hr(e,t,n,r,i){let a=n.map(e=>({...e}));br(a);for(let t of r)vr(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await Mr(e,o,r,t[0],i)}catch(t){throw yr(e,a),t}if(ur(s)){yr(e,a),s[0]===cr&&e._tx===t&&e._committed===n&&await Vr(e,t,s
11);return}if(await Nr(e,s,t[0].signal),e._tx!==t||e._committed!==n){yr(e,a);return}for(let t of a){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),vr(e,n))}Rr(e,a),yr(e,n,a)}async function Ur(e,t,n,r,i,a){let o=await Pr(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(ur(o)){let n=o[0]===cr&&e._tx===t;if((!n||o[1].options.reloadDocument)&&Ir(e,t),yr(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){Ir(e,t);return}await Vr(e,t,o);return}let s=o[1];if(e._tx===t&&await Lr(e,t),e._tx!==t){Ir(e,t),yr(e,s),kr(e,o);return}let c=t[2],l=Rn(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await Lr(e,t),e._tx!==t){Ir(e,t),yr(e,s),kr(e,o);return}let n=await e.startTransition(()=>{Ir(e,t),zr(e,t,s,a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s);if(e._tx!==t){kr(e,o);return}u?.length&&Hr(e,t,s,u,o[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(c),e.stores.status.set(`idle`),e._tx===t&&e.emit({type:`onResolved`,...l}),n&&e._tx===t&&e.emit({type:`onRendered`,...l})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)})}async function Wr(e,t){let n=e._tx,r=e.stores.resolvedLocation.get(),i=r??e.stores.location.get(),a=e.latestLocation,o=e._pendingLocation,s=o?.href===a.href?o._redirects??0:0,c=e._handoff,l=c?.[0](),u=new AbortController,d=e._preflight;if(e._preflight=u,l||c?.[1](),d?.abort(),!u.signal.aborted){let t=Rn(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await Br(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});br(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){yr(e,m),await Br(e,n);return}e._preflight=void 0;let g,_=()=>Ur(e,y,f,()=>Fr(e,y),t?.sync,h),v=t?.sync?new Promise(e=>g=e):Promise.resolve().then(_),y=[p,s,a,m,Date.now(),v.then(()=>Br(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&xr(e,t,!1)}n[0].abort(),yr(e,n[3],y[3],!0)}
11if(e._tx!==y){yr(e,y[3]),y[3]=[],g?.(),await Br(e,y);return}e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),(h||!e._committed.length&&m[0]?.status!==`success`&&!m.some(e=>e._notFound))&&Fr(e,y),g?.(_()),await y[5]}async function Gr(e,t){let n=e.buildLocation(t);for(let t=0;;t++){let r=e._committed,i=new AbortController,o,s,c;try{try{o=e.matchRoutes(n,{_controller:i}),br(o),s=(e._preloads??=new Map).set(i,o),c=await Pr(e,n,o,[i,t,r,!0])}finally{s&&(s=s.delete(i),yr(e,o)),i.abort()}if(!ur(c))return c[1];if(!s||c.length<3)return;n=c[2]}catch(e){a(e)||console.error(e);return}}}async function Kr(e){let t=window.$_TSR,n=e.options.serializationAdapters;n?.length&&(t.t=new Map(n.map(e=>[e.key,e.fromSerializable])),t.buffer.forEach(e=>e())),t.initialized=!0;let r=t.router;e.ssr={manifest:r.manifest},e.options.ssr={nonce:document.querySelector(`meta[property="csp-nonce"]`)?.content};let i=r.matches,a=new AbortController,o=e._preflight;e._preflight=a,o?.abort();let s=()=>e._preflight===a,c,l,u,d;try{if(await dr(e.options.hydrate?.(r.dehydratedData),a.signal),!s())return;let t=e.history.location;u=t.href,d=t.state,e.updateLatestLocation(),c=e.latestLocation,e.stores.location.set(c),l=e.matchRoutes(c,{_controller:a})}catch(t){if(s()&&(e._preflight=void 0),a.abort(t),t!==a.signal)throw t}if(!s())return;let f=[],p,m=0,h=t=>{m=Math.min(m,t+1);let n=f.splice(t);for(let t of n)fr(e,t).options.loader&&(t.status===`success`||!t.invalid&&`loaderData`in t)&&Tr(e,{...t,status:`success`,error:void 0,preload:!0},e._cache.get(t.id));yr(e,n)},g=i.length>l.length?l.findIndex(e=>e._notFound)+1:i.length,_=!1;for(let t=0;t<g;t++){let n=l[t],r=i[t];if(typeof r.i!=`string`||Ot(r.i)!==n.id){p??=t;break}m=t+1;let a=fr(e,n);if((`l`in r||r.s===`success`&&r.e===void 0&&a.options.loader)&&(n.loaderData=r.l),n.status=r.s,n.ssr=r.ssr,a.options.ssr=n.ssr,n.updatedAt=r.u,n.error=r.e,n._notFound||=r.g,n.status===`error`||n.status===`notFound`||n._notFound){_=!0,f.push(n),(n.ssr===!1||n.ssr===`data-only`)&&(p??=t);break}if(n.status===`pending`){p??=t;break}f.push(n),n.ssr===`data-only`&&(p??=t)}!_&&f.length===g&&g<l.length&&(p=g);let v=f.map(async t=>{try{let n=fr(e,t);return await(t._notFound?Promise.all([nr(n),nr(n,`notFoundComponent`)]):nr
11(n,t.status===`error`?`errorComponent`:t.status===`notFound`?`notFoundComponent`:void 0)),!0}catch{return!1}}),y=0;try{for(;y<v.length&&await dr(v[y],a.signal);)y++}catch{return}if(!s())return;y<f.length&&h(y);let b=Math.max(p===f.length?f.length+1:f.length,y<v.length?y:m);for(let t=0;t<b;t++){let n=l[t],r=fr(e,n),o=l[t-1]?.context??e.options.context??{},u;if(r.options.context){try{u=n._ctx=r.options.context({deps:n.loaderDeps,params:n.params,context:o,location:c,navigate:t=>e.navigate({...t,_fromLocation:c}),buildLocation:e.buildLocation,cause:n.cause,abortController:a,preload:!1,matches:l,routeId:r.id})||{}}catch{if(!s())return;if(n.status!==`error`&&n.status!==`notFound`&&!n._notFound){p=Math.min(p??t,t),h(t);break}}if(!s())return}n.context={...o,...u,...f[t]&&i[t].b}}if(await Nr(e,[c,l],a.signal,0,m),!s())return;let x=p!==void 0||f.length<g,S=_&&f.length===g?l:f,C=x?l:S,w;if(x&&p!==void 0){let e=C[p];w=e.ssr===`data-only`&&m>p+1?m:void 0,C=C.slice(),C[p]={...e,status:`pending`,ssr:e.ssr===`data-only`&&`data-only`,_assetEnd:w}}let T=()=>{let t=e.history.location;return x&&!e._tx&&t.href===u&&t.state===d&&e._committed===S&&S.length&&!a.signal.aborted?a:void 0},E=[T,t=>{if(e._handoff!==E)return;e._handoff=void 0;let n=S.length;if(!t||!T()||S.some((e,n)=>e.id!==t[n]?.id)){a.abort();return}let r=w;if(r!==void 0){for(let e=n;e<r;e++)if(l[e]?.id!==t[e]?.id){r=e>p+1?e:void 0;break}}let i=S.map(e=>({...e}));r!==void 0&&(i[p]._assetEnd=r),yr(e,t.splice(0,n,...i));for(let e=n;e<t.length;e++){let n=t[e],r=l[e];r?.id===n.id&&r._ctx&&(n._ctx=r._ctx),n.abortController=a}return n}];e._committed=S,e._lifecycleEnd=Bn(S),e._handoff=E,e._preflight=void 0,e.batch(()=>{e.stores.setMatches(C),e.stores.status.set(`idle`),x||e.stores.resolvedLocation.set(e.stores.location.get())})}var qr=Symbol.asyncIterator,Jr=Symbol.hasInstance,Yr=Symbol.isConcatSpreadable,Xr=Symbol.iterator,Zr=Symbol.match,Qr=Symbol.matchAll,$r=Symbol.replace,ei=Symbol.search,ti=Symbol.species,ni=Symbol.split,ri=Symbol.toPrimitive,ii=Symbol.toStringTag,ai=Symbol.unscopables,oi={[qr]:0,[Jr]:1,[Yr]:2,[Xr]:3,[Zr]:4,[Qr]:5,[$r]:6,[ei]:7,[ti]:8,[ni]:9,[ri]:10,[ii]:11,[ai]:12},si={0:qr,1:Jr,2:Yr,3:Xr,4:Zr,5:Qr,6:$r,7:ei,8:ti,9:ni,10:ri,11:ii,12:ai},ci={2:!0,3:!1,1:void 0,0:null,4:-0,5:1/0,6:-1/0,7:NaN},li={0:`Error`,1:`EvalError`,2:`RangeError`,3:`ReferenceError`,4:`SyntaxError`,5:`TypeError`,6:`URIError`},ui={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function I(e,t,n,r,i,a,o,s,c,l,u,d){return{t:e,i:t,s:n,c:r,m:i,p:a,e:o,a:s,f:c,b:l,o:u,l:d}}function di(e){return I(2,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}var fi=di(2),pi=di(3),mi=di(1),hi=di(0),gi=di(4),_i=di(5),vi=di(6),yi=di(7),bi=64,xi=/[\x00-\x07\x0b\x0e-\x1f<\u2028\u2029\ud800-\udfff]/;function Si(e){switch(e){case`"`:return`\\"`;case`\\`:return`\\\\`;case`
12`:return`\\n`;case`\r`:return`\\r`;case`\b`:return`\\b`;case`	`:return`\\t`;case`\f`:return`\\f`;case`<`:return`\\x3C`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:return}}function Ci(e){if(e.length>=bi&&!xi.test(e))return JSON.stringify(e).slice(1,-1);let t=``,n=0,r;for(let i=0,a=e.length;i<a;i++)r=Si(e[i]),r&&(t+=e.slice(n,i)+r,n=i+1);return n===0?t=e:t+=e.slice(n),t}function wi(e){switch(e){case`\\\\`:return`\\`;case`\\"`:return`"`;case`\\n`:return`
13`;case`\\r`:return`\r`;case`\\b`:return`\b`;case`\\t`:return`	`;case`\\f`:return`\f`;case`\\x3C`:return`<`;case`\\u2028`:return`\u2028`;case`\\u2029`:return`\u2029`;default:return e}}function Ti(e){return typeof e==`string`&&!e.includes(`\\`)?e:e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,wi)}var{toString:Ei}=Object.prototype,Di={parsing:1,serialization:2,deserialization:3};function Oi(e){return`Seroval Error (step: ${Di[e]})`}var ki=(e,t)=>Oi(e),Ai=class extends Error{constructor(e,t){super(ki(e,t)),this.cause=t}},ji=class extends Ai{constructor(e){super(`parsing`,e)}},Mi=class extends Ai{constructor(e){super(`deserialization`,e)}};function Ni(e){return`Seroval Error (specific: ${e})`}
13var Pi=class extends Error{constructor(e){super(Ni(1)),this.value=e}},Fi=class extends Error{constructor(e){super(Ni(2))}},Ii=class extends Error{constructor(e){super(Ni(3))}},L=class extends Error{constructor(e){super(Ni(4))}},Li=class extends Error{constructor(e){super(Ni(5)),this.value=e}},Ri=class extends Error{constructor(e){super(Ni(6))}},zi=class extends Error{constructor(e){super(Ni(7))}},Bi=class extends Error{constructor(e){super(Ni(8))}},Vi=class extends Error{constructor(e){super(Ni(9))}},Hi=`__SEROVAL_REFS__`,Ui=new Map,Wi=new Map;function Gi(e){return Ui.has(e)}function Ki(e){return Wi.has(e)}function qi(e){if(Gi(e))return Ui.get(e);throw new Li(e)}function Ji(e){if(Ki(e))return Wi.get(e);throw new Ri(e)}typeof globalThis<`u`?Object.defineProperty(globalThis,Hi,{value:Wi,configurable:!0,writable:!1,enumerable:!1}):typeof window<`u`?Object.defineProperty(window,Hi,{value:Wi,configurable:!0,writable:!1,enumerable:!1}):typeof self<`u`?Object.defineProperty(self,Hi,{value:Wi,configurable:!0,writable:!1,enumerable:!1}):typeof global<`u`&&Object.defineProperty(global,Hi,{value:Wi,configurable:!0,writable:!1,enumerable:!1});function Yi(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function Xi(e){let t=li[Yi(e)];return e.name===t?e.constructor.name===t?{}:{name:e.constructor.name}:{name:e.name}}function Zi(e,t){let n=Xi(e),r=Object.getOwnPropertyNames(e);for(let i=0,a=r.length,o;i<a;i++)o=r[i],o!==`name`&&o!==`message`&&(o===`stack`?t&4&&(n||={},n[o]=e[o]):(n||={},n[o]=e[o]));return n}function Qi(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:+!Object.isExtensible(e)}function $i(e){switch(e){case 1/0:return _i;case-1/0:return vi}return e===e?Object.is(e,-0)?gi:I(0,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0):yi}function ea(e){return I(1,void 0,Ci(e),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function ta(e){return I(3,void 0,``+e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function na(e){return I(4,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function ra(e,t){let n=t.valueOf();return I(5,e,n===n?t.toISOString():``,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function ia(e,t,n){return I(36,e,n.toString(),t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function aa(e,t){return I(6,e,void 0,Ci(t.source),t.flags,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function oa(e,t){return I(17,e,oi[t],void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function sa(e,t){return I(18,e,Ci(qi(t)),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function ca(e,t,n){return I(25,e,n,Ci(t),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function la(e,t,n){return I(9,e,void 0,void 0,void 0,void 0,void 0,n,void 0,void 0,Qi(t),void 0)}function ua(e,t){return I(21,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}var da=1e6;function fa(e,t,n){if(t.length>da)throw new Pi(t);return I(15,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.length)}function pa(e,t,n){if(t.length>da)throw new Pi(t);return I(16,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.length)}function ma(e,t,n){if(t.byteLength>da)throw new Pi(t);return I(20,e,void 0,void 0,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.byteLength)}function ha(e,t,n){return I(13,e,Yi(t),void 0,Ci(t.message),n,void 0,void 0,void 0,void 0,void 0,void 0)}function ga(e,t,n){return I(14,e,Yi(t),void 0,Ci(t.message),n,void 0,void 0,void 0,void 0,void 0,void 0)}function _a(e,t){return I(7,e,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,void 0)}function va(e,t){return I(28,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function ya(e,t){return I(30,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function ba(e,t,n){return I(31,e,void 0,void 0,void 0,void 0,void 0,n,t,void 0,void 0,void 0)}function xa(e,t){return I(32,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function Sa(e,t){return I(33,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function Ca(e,t){return I(34,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function wa(e,t,n,r){return I(35,e,n,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,r)}var Ta=class{constructor(e,t){this.value=e,this.replacement=t}},Ea=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e},Da=e=>t=>()=>{let n=0,r={[e](){return r},next(){if(n>t.d)return{done:!0,value:void 0};let e=n++,r=t.v[e];if(e===t.t)throw r;return{done:e===t.d,value:r}}};return r},Oa=(e,t)=>n=>()=>{let r=0,i=-1,a=!1,o=[],s=[],c={finalize(e=0,t=s.length){for(;e<t;e++)s[e].s({done:!0,value:void 0})}};n.on({next(e){let t=s.shift();t&&t.s({done:!1,value:e}),o.push(e)},throw(e){let t=s.shift();t&&t.f(e),c.finalize(),i=o.length,a=!0,o.push(e)},return(e){let t=s.shift();t&&t.s({done:!0,value:e}),c.finalize(),i=o.length,o.push(e)}});let l={[e](){return l},next(){if(i===-1){let e=r++;if(e>=o.length){let e=t();return s.push(e),e.p}return{done:!1,value:o[e]}}if(r>i)return{done:!0,value:void 0};let e=r++,n=o[e];if(e!==i)return{done:!1,value:n};if(a)throw n;return{done:!0,value:n}}};return l},ka=e=>{let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer},Aa=class{constructor(e,t,n){this.v=e,this.t=t,this.d=n}};function ja(e){return e instanceof Aa}
13function Ma(e,t,n){return new Aa(e,t,n)}function Na(e){let t=[],n=-1,r=-1,i=e[Xr]();for(;;)try{let e=i.next();if(t.push(e.value),e.done){r=t.length-1;break}}catch(e){n=t.length,r=n,t.push(e);break}return Ma(t,n,r)}var Pa=Da(Xr);function Fa(e){return Pa(e)}var Ia={},La={},Ra={0:{},1:{},2:{},3:{},4:{},5:{}};function za(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Ba(e,t){za(e,t),t.add(e)}function Va(e,t,n){za(e,t),t.set(e,n)}function Ha(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function R(e,t){return e.get(Ha(e,t))}function Ua(e,t,n){return e.set(Ha(e,t),n),n}var Wa=new WeakMap,Ga=new WeakMap,Ka=new WeakMap,qa=new WeakMap,Ja=new WeakMap,Ya=new WeakSet,Xa=class{constructor(){Ba(this,Ya),Va(this,Wa,[]),Va(this,Ga,[]),Va(this,Ka,!0),Va(this,qa,!1),Va(this,Ja,0)}on(e){let t=R(Ka,this),n=0;if(t){for(;n<R(Ja,this)&&R(Ga,this)[n];n++);if(n===R(Ja,this)){var r;Ua(Ja,this,(r=R(Ja,this),r++,r))}R(Ga,this)[n]=e}return Ha(Ya,this,Qa).call(this,e),()=>{if(R(Ka,this)&&t){for(t=!1,R(Ga,this)[n]=void 0;R(Ja,this)>0&&!R(Ga,this)[R(Ja,this)-1];){var e;Ua(Ja,this,(e=R(Ja,this),e--,e))}R(Ga,this).length=R(Ja,this)}}}next(e){R(Ka,this)&&(R(Wa,this).push(e),Ha(Ya,this,Za).call(this,e,`next`))}throw(e){R(Ka,this)&&(R(Wa,this).push(e),Ha(Ya,this,Za).call(this,e,`throw`),Ua(Ka,this,!1),Ua(qa,this,!1),R(Ga,this).length=0)}return(e){R(Ka,this)&&(R(Wa,this).push(e),Ha(Ya,this,Za).call(this,e,`return`),Ua(Ka,this,!1),Ua(qa,this,!0),R(Ga,this).length=0)}};function Za(e,t){for(let r=0;r<R(Ja,this);r++){var n;(n=R(Ga,this)[r])==null||n[t](e)}}function Qa(e){for(let t=0,n=R(Wa,this).length;t<n;t++){let r=R(Wa,this)[t];!R(Ka,this)&&t===n-1?e[R(qa,this)?`return`:`throw`](r):e.next(r)}}function $a(e){return e instanceof Xa}function eo(){return new Xa}function to(e,t){let n=eo(),r=e[qr](),i=!1,a=!1;t?.push(()=>{a||i||(i=!0,Promise.resolve().then(()=>r.return?.call(r)).catch(()=>{}))});async function o(){try{for(;!i;){let e=await r.next();if(i)return;if(e.done){a=!0,n.return(e.value);break}n.next(e.value)}}catch(e){a=!0,i||n.throw(e)}}return o().catch(()=>{}),n}var no=Oa(qr,Ea);function ro(e){return no(e)}async function io(e){try{return[1,await e]}catch(e){return[0,e]}}function ao(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:127^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3,compactArrayBufferViews:t.compactArrayBufferViews??!1}}function oo(e,t){e.marked.add(t)}function so(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function co(e,t){let n=e.refs.get(t);return n==null?{type:0,value:so(e,t)}:(oo(e,n),{type:1,value:na(n)})}function lo(e,t){let n=co(e,t);return n.type===1?n:Gi(t)?{type:2,value:sa(n.value,t)}:n}function uo(e,t){let n=lo(e,t);if(n.type!==0)return n.value;if(t in oi)return oa(n.value,t);throw new Pi(t)}function fo(e,t){let n=co(e,Ra[t]);return n.type===1?n.value:I(26,n.value,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function po(e){let t=co(e,Ia);return t.type===1?t.value:I(27,t.value,void 0,void 0,void 0,void 0,void 0,void 0,uo(e,Xr),void 0,void 0,void 0)}function mo(e){let t=co(e,La);return t.type===1?t.value:I(29,t.value,void 0,void 0,void 0,void 0,void 0,[fo(e,1),uo(e,qr)],void 0,void 0,void 0,void 0)}function z(e,t,n,r){return I(n?11:10,e,void 0,void 0,void 0,r,void 0,void 0,void 0,void 0,Qi(t),void 0)}function B(e,t,n,r){return I(8,t,void 0,void 0,void 0,void 0,{k:n,v:r},void 0,fo(e,0),void 0,void 0,void 0)}function ho(e,t){if(!e.compactArrayBufferViews)return t;let n=new Uint8Array(t.buffer,t.byteOffset,t.byteLength).slice().buffer,r=t.constructor;return new r(n)}function go(e){if(typeof Buffer<`u`)return Buffer.from(e).toString(`base64`);let t=new Uint8Array(e);if(typeof t.toBase64==`function`)return t.toBase64();let n=``;for(let e=0,r=t.length;e<r;e++)n+=String.fromCharCode(t[e]);return btoa(n)}function _o(e,t,n){return I(19,t,go(n),void 0,void 0,void 0,void 0,void 0,fo(e,5),void 0,void 0,void 0)}function vo(e,t){return{base:ao(e,t),child:void 0}}var yo=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return zo(this._p,this.depth,e)}};async function bo(e,t,n){let r=[];for(let i=0,a=n.length;i<a;i++)i in n?r[i]=await zo(e,t,n[i]):r[i]=0;return r}async function xo(e,t,n,r){return la(n,r,await bo(e,t,r))}async function So(e,t,n){let r=Object.entries(n),i=[],a=[];for(let n=0,o=r.length;n<o;n++)i.push(Ci(r[n][0])),a.push(await zo(e,t,r[n][1]));return Xr in n&&(i.push(uo(e.base,Xr)),a.push(va(po(e.base),await zo(e,t,
13Na(n))))),qr in n&&(i.push(uo(e.base,qr)),a.push(ya(mo(e.base),await zo(e,t,to(n))))),ii in n&&(i.push(uo(e.base,ii)),a.push(ea(n[ii]))),Yr in n&&(i.push(uo(e.base,Yr)),a.push(n[Yr]?fi:pi)),{k:i,v:a}}async function Co(e,t,n,r,i){return z(n,r,i,await So(e,t,r))}async function wo(e,t,n,r){return ua(n,await zo(e,t,r.valueOf()))}async function To(e,t,n,r){return r=ho(e.base,r),fa(n,r,await zo(e,t,r.buffer))}async function Eo(e,t,n,r){return r=ho(e.base,r),pa(n,r,await zo(e,t,r.buffer))}async function Do(e,t,n,r){return r=ho(e.base,r),ma(n,r,await zo(e,t,r.buffer))}async function Oo(e,t,n,r){let i=Zi(r,e.base.features);return ha(n,r,i?await So(e,t,i):void 0)}async function ko(e,t,n,r){let i=Zi(r,e.base.features);return ga(n,r,i?await So(e,t,i):void 0)}async function Ao(e,t,n,r){let i=[],a=[];for(let[n,o]of r.entries())i.push(await zo(e,t,n)),a.push(await zo(e,t,o));return B(e.base,n,i,a)}async function jo(e,t,n,r){let i=[];for(let n of r.keys())i.push(await zo(e,t,n));return _a(n,i)}async function Mo(e,t,n,r){let i=e.base.plugins;if(i)for(let a=0,o=i.length;a<o;a++){let o=i[a];if(o.parse.async&&o.test(r))return ca(n,o.tag,await o.parse.async(r,new yo(e,t),{id:n}))}}async function No(e,t,n,r){let[i,a]=await io(r);return I(12,n,i,void 0,void 0,void 0,void 0,void 0,await zo(e,t,a),void 0,void 0,void 0)}function Po(e,t,n,r,i){let a=[],o=n.on({next:n=>{oo(this.base,t),zo(this,e,n).then(e=>{a.push(xa(t,e))},e=>{i(e),o()})},throw:n=>{oo(this.base,t),zo(this,e,n).then(e=>{a.push(Sa(t,e)),r(a),o()},e=>{i(e),o()})},return:n=>{oo(this.base,t),zo(this,e,n).then(e=>{a.push(Ca(t,e)),r(a),o()},e=>{i(e),o()})}})}async function Fo(e,t,n,r){return ba(n,fo(e.base,4),await new Promise(Po.bind(e,t,n,r)))}async function Io(e,t,n,r){let i=[];for(let n=0,a=r.v.length;n<a;n++)i[n]=await zo(e,t,r.v[n]);return wa(n,i,r.t,r.d)}async function Lo(e,t,n,r){if(Array.isArray(r))return xo(e,t,n,r);if($a(r))return Fo(e,t,n,r);if(ja(r))return Io(e,t,n,r);let i=r.constructor;if(i!==void 0&&typeof i!=`function`){let e=Object.getPrototypeOf(r);i=e===null?void 0:e.constructor}if(i===Ta)return zo(e,t,r.replacement);let a=await Mo(e,t,n,r);if(a)return a;switch(i){case Object:return Co(e,t,n,r,!1);case void 0:return Co(e,t,n,r,!0);case Date:return ra(n,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return Oo(e,t,n,r);case Number:case Boolean:case String:case BigInt:return wo(e,t,n,r);case ArrayBuffer:return _o(e.base,n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return To(e,t,n,r);case DataView:return Do(e,t,n,r);case Map:return Ao(e,t,n,r);case Set:return jo(e,t,n,r)}if(i===Promise||r instanceof Promise)return No(e,t,n,r);let o=e.base.features;if(o&32&&i===RegExp)return aa(n,r);if(o&16)switch(i){case BigInt64Array:case BigUint64Array:return Eo(e,t,n,r)}if(o&1&&typeof AggregateError<`u`&&(i===AggregateError||r instanceof AggregateError))return ko(e,t,n,r);if(o&64&&typeof Temporal<`u`)switch(i){case Temporal.Instant:return ia(n,0,r);case Temporal.Duration:return ia(n,1,r);case Temporal.PlainDate:return ia(n,2,r);case Temporal.PlainDateTime:return ia(n,3,r);case Temporal.PlainMonthDay:return ia(n,4,r);case Temporal.PlainTime:return ia(n,5,r);case Temporal.PlainYearMonth:return ia(n,6,r);case Temporal.ZonedDateTime:return ia(n,7,r)}if(r instanceof Error)return Oo(e,t,n,r);if(Xr in r||qr in r)return Co(e,t,n,r,!!i);throw new Pi(r)}async function Ro(e,t,n){let r=lo(e.base,n);if(r.type!==0)return r.value;let i=await Mo(e,t,r.value,n);if(i)return i;throw new Pi(n)}async function zo(e,t,n){if(t>=e.base.depthLimit)throw new Vi(e.base.depthLimit);switch(typeof n){case`boolean`:return n?fi:pi;case`undefined`:return mi;case`string`:return ea(n);case`number`:return $i(n);case`bigint`:return ta(n);case`object`:if(n){let r=lo(e.base,n);return r.type===0?await Lo(e,t+1,r.value,n):r.value}return hi;case`symbol`:return uo(e.base,n);case`function`:return Ro(e,t,n);default:throw new Pi(n)}}async function Bo(e,t){try{return await zo(e,0,t)}
13catch(e){throw e instanceof ji?e:new ji(e)}}function Vo(e){return e}function Ho(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&Ho(e,r.extends))}}function Uo(e){if(e){let t=new Set;return Ho(t,e),[...t]}}function Wo(e){switch(e){case`Int8Array`:return Int8Array;case`Int16Array`:return Int16Array;case`Int32Array`:return Int32Array;case`Uint8Array`:return Uint8Array;case`Uint16Array`:return Uint16Array;case`Uint32Array`:return Uint32Array;case`Uint8ClampedArray`:return Uint8ClampedArray;case`Float32Array`:return Float32Array;case`Float64Array`:return Float64Array;case`BigInt64Array`:return BigInt64Array;case`BigUint64Array`:return BigUint64Array;default:throw new zi(e)}}function Go(e){switch(e){case`constructor`:case`__proto__`:case`prototype`:case`__defineGetter__`:case`__defineSetter__`:case`__lookupGetter__`:case`__lookupSetter__`:return!1;default:return!0}}function Ko(e){switch(e){case qr:case Yr:case ii:case Xr:return!0;default:return!1}}var qo=1e6,Jo=512,Yo=1e4,Xo=2e4;function Zo(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}var Qo=1e3;function $o(e,t){let n=t.maxBase64Length??qo;if(!Number.isSafeInteger(n)||n<0)throw RangeError(`maxBase64Length must be a non-negative safe integer`);let r=t.refs||new Map;return`types`in r||Object.assign(r,{types:new Map}),{mode:e,plugins:t.plugins,refs:r,features:t.features??127^(t.disabledFeatures||0),depthLimit:t.depthLimit||Qo,maxBase64Length:n}}function es(e){return{mode:2,base:$o(2,e),child:void 0}}var ts=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return V(this._p,this.depth,e)}};function ns(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new Bi({t:4,i:t});if(e.refs.has(t))throw Error(`Conflicted ref id: `+t)}function rs(e){return!!e&&(typeof e==`object`||typeof e==`function`)&&`then`in e&&typeof e.then==`function`}function is(e,t,n){return ns(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function as(e,t,n){return ns(e.base,t),e.base.refs.set(t,n),n}function os(e,t,n){return e.mode===1?is(e,t,n):as(e,t,n)}function ss(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new Bi(e)}function cs(e,t){return os(e,t.i,Ji(Ti(t.s)))}function ls(e,t){if(!Array.isArray(t))throw new Bi(e)}function us(e,t,n){let r=n.a;ls(n,r);let i=r.length,a=os(e,n.i,Array(i));for(let n=0,o;n<i;n++)o=r[n],o&&(a[n]=V(e,t,o));return Zo(a,n.o),a}function ds(e,t,n){Go(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function fs(e,t,n,r,i){if(typeof r==`string`)ds(n,Ti(r),V(e,t,i));else{let a=V(e,t,r);switch(typeof a){case`string`:ds(n,a,V(e,t,i));break;case`symbol`:Ko(a)&&(n[a]=V(e,t,i));break;default:throw new Bi(r)}}}function ps(e,t,n){e.base.refs.types.set(t,n)}function ms(e,t,n,r){if(e.base.refs.types.get(n)!==r)throw new Bi(t)}function hs(e,t,n,r){let i=n.k;if(ls(n,i),ls(n,n.v),i.length>0)for(let a=0,o=n.v,s=i.length;a<s;a++)fs(e,t,r,i[a],o[a]);return r}function gs(e,t,n){let r=os(e,n.i,n.t===10?{}:Object.create(null));return hs(e,t,n.p,r),Zo(r,n.o),r}function _s(e,t){return os(e,t.i,new Date(t.s))}function vs(e,t){if(!(e.base.features&64))throw new Fi(t);let n;switch(t.c){case 0:n=Temporal.Instant.from(t.s);break;case 1:n=Temporal.Duration.from(t.s);break;case 2:n=Temporal.PlainDate.from(t.s);break;case 3:n=Temporal.PlainDateTime.from(t.s);break;case 4:n=Temporal.PlainMonthDay.from(t.s);break;case 5:n=Temporal.PlainTime.from(t.s);break;case 6:n=Temporal.PlainYearMonth.from(t.s);break;case 7:n=Temporal.ZonedDateTime.from(t.s);break;default:throw new Bi(t)}return os(e,t.i,n)}function ys(e,t){if(e.base.features&32){let n=Ti(t.c);if(n.length>Xo)throw new Bi(t);return os(e,t.i,new RegExp(n,t.m))}throw new Fi(t)}function bs(e,t,n){let r=os(e,n.i,new Set);ls(n,n.a);for(let i=0,a=n.a,o=a.length;i<o;i++)r.add(V(e,t,a[i]));return r}function xs(e,t,n){let r=os(e,n.i,new Map);ls(n,n.e.k),ls(n,n.e.v);for(let i=0,a=n.e.k,o=n.e.v,s=a.length;i<s;i++)r.set(V(e,t,a[i]),V(e,t,o[i]));return r}function Ss(e,t){if(typeof t.s!=`string`)throw new Bi(t);if(t.s.length>e.base.maxBase64Length)throw RangeError(`ArrayBuffer exceeds maxBase64Length (`+e.base.maxBase64Length+`)`);let n=Ti(t.s),r;if(n.length<Jo||typeof Buffer>`u`)r=ka(n);else{let e=atob(n);r=new ArrayBuffer(e.length),Buffer.from(r).write(e,`latin1`)}return os(e,t.i,r)}function Cs(e,t,n){let r=Wo(n.c),i=V(e,t,n.f);if(!(i instanceof ArrayBuffer))throw new Bi(n);let a=n.b??0;if(a<0||a>i.byteLength)throw new Bi(n);return os(e,n.i,new r(i,a,n.l))}function ws(e,t,n){let r=V(e,t,n.f);if(!(r instanceof ArrayBuffer))throw new Bi(n);let i=n.b??0;if(i<0||i>r.byteLength)throw new Bi(n);return os(e,n.i,new DataView(r,i,n.l))}function Ts(e,t,n,r){if(n.p){let i=hs(e,t,n.p,{});Object.defineProperties(r,Object.getOwnPropertyDescriptors(i))}return r}function Es(e,t,n){return Ts(e,t,n,os(e,n.i,AggregateError([],Ti(n.m))))}function Ds(e,t,n){let r=ss(n,ui,n.s);return Ts(e,t,n,os(e,n.i,new r(Ti(n.m))))}function Os(e,t,n){let r=Ea(),i=os(e,n.i,r.p),a=V(e,t,n.f);if(rs(a))throw new Bi(n.f);return n.s?r.s(a):r.f(a),i}
13function ks(e,t,n){return os(e,n.i,Object(V(e,t,n.f)))}function As(e,t,n){let r=e.base.plugins;if(r){let i=Ti(n.c);for(let a=0,o=r.length;a<o;a++){let o=r[a];if(o.tag===i)return os(e,n.i,o.deserialize(n.s,new ts(e,t),{id:n.i}))}}throw new Ii(n.c)}function js(e,t){let n=os(e,t.i,os(e,t.s,Ea()).p);return ps(e,t.s,22),n}function Ms(e,t,n){let r=e.base.refs.get(n.i);if(r){ms(e,n,n.i,22);let i=V(e,t,n.a[1]);if(rs(i))throw new Bi(n.a[1]);n.t===23?r.s(i):r.f(i);return}throw new L(`Promise`)}function Ns(e,t,n){V(e,t,n.a[0]);let r=V(e,t,n.a[1]);if(!ja(r))throw new Bi(n.a[1]);return Fa(r)}function Ps(e,t,n){V(e,t,n.a[0]);let r=V(e,t,n.a[1]);if(!$a(r))throw new Bi(n.a[1]);return ro(r)}function Fs(e,t,n){let r=os(e,n.i,eo());ps(e,n.i,31);let i=n.a;ls(n,i);let a=i.length;if(a)for(let n=0;n<a;n++)V(e,t,i[n]);return r}function Is(e,t,n){let r=e.base.refs.get(n.i);if(r){ms(e,n,n.i,31),r.next(V(e,t,n.f));return}throw new L(`Stream`)}function Ls(e,t,n){let r=e.base.refs.get(n.i);if(r){ms(e,n,n.i,31),r.throw(V(e,t,n.f));return}throw new L(`Stream`)}function Rs(e,t,n){let r=e.base.refs.get(n.i);if(r){ms(e,n,n.i,31),r.return(V(e,t,n.f));return}throw new L(`Stream`)}function zs(e,t,n){V(e,t,n.f)}function Bs(e,t,n){V(e,t,n.a[1])}function Vs(e,t){return Number.isInteger(e)&&e>=-1&&e<t}function Hs(e,t,n){ls(n,n.a);let r=n.a.length;if(!(Vs(n.s,r)&&Vs(n.l,r)))throw new Bi(n);let i=os(e,n.i,Ma([],n.s,n.l));for(let a=0;a<r;a++)i.v[a]=V(e,t,n.a[a]);return i}function V(e,t,n){if(t>e.base.depthLimit)throw new Vi(e.base.depthLimit);switch(t+=1,n.t){case 2:return ss(n,ci,n.s);case 0:return Number(n.s);case 1:return Ti(String(n.s));case 3:if(String(n.s).length>Yo)throw new Bi(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return cs(e,n);case 9:return us(e,t,n);case 10:case 11:return gs(e,t,n);case 5:return _s(e,n);case 6:return ys(e,n);case 7:return bs(e,t,n);case 8:return xs(e,t,n);case 19:return Ss(e,n);case 16:case 15:return Cs(e,t,n);case 20:return ws(e,t,n);case 14:return Es(e,t,n);case 13:return Ds(e,t,n);case 12:return Os(e,t,n);case 17:return ss(n,si,n.s);case 21:return ks(e,t,n);case 25:return As(e,t,n);case 22:return js(e,n);case 23:case 24:return Ms(e,t,n);case 28:return Ns(e,t,n);case 30:return Ps(e,t,n);case 31:return Fs(e,t,n);case 32:return Is(e,t,n);case 33:return Ls(e,t,n);case 34:return Rs(e,t,n);case 27:return zs(e,t,n);case 29:return Bs(e,t,n);case 35:return Hs(e,t,n);case 36:return vs(e,n);default:throw new Fi(n)}}function Us(e,t){try{return V(e,0,t)}catch(e){throw new Mi(e)}}function Ws(e,t){let n=Uo(t.plugins);return Us(es({maxBase64Length:t.maxBase64Length,plugins:n,refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function Gs(e,t={}){let n=Uo(t.plugins),r=vo(1,{compactArrayBufferViews:t.compactArrayBufferViews,plugins:n,disabledFeatures:t.disabledFeatures});return{t:await Bo(r,e),f:r.base.features,m:Array.from(r.base.marked)}}function Ks(e){return Vo({tag:`$TSR/t/`+e.key,test:e.test,parse:{sync(t,n){return{v:n.parse(e.toSerializable(t))}},async async(t,n){return{v:await n.parse(e.toSerializable(t))}},stream(t,n){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n){return e.fromSerializable(n.deserialize(t.v))}})}var qs=Vo({tag:`$TSR/Error`,test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return`new Error(`+t.serialize(e.message)+`)`},deserialize(e,t){return Error(t.deserialize(e.message))}}),Js=class{constructor(e,t){this.stream=e,this.hint=t?.hint??`binary`}};function Ys(e){let t=[];for(let n=0;n<e.length;n+=32768)t.push(String.fromCharCode.apply(null,e.subarray(n,n+32768)));return btoa(t.join(``))}var Xs=new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0});function Zs(e){try{return`t`+Xs.decode(e)}catch{return`b`+Ys(e)}}function Qs(e,t,n){n?.throwIfAborted();let r=eo(),i=e.getReader(),a=!0,o=()=>{a=!1,n?.removeEventListener(`abort`,c),i.releaseLock()},s=e=>a?(i.cancel(e).catch(()=>{}),o(),!0):!1,c=()=>{s(n.reason)&&r.throw(n.reason)};return n?.addEventListener(`abort`,c),(async()=>{try{for(;a;){let{done:e,value:n}=await i.read();if(!a)return;if(e){o(),r.return(void 0);return}r.next(t(n))}}catch(e){s(e)&&r.throw(e)}})(),[r,s]}function $s(e){return Vo({tag:`tss/RawStream`,test:e=>e instanceof Js,parse:{async:async(t,n)=>{let r=await n.parse(t.hint===`text`),[i]=Qs(t.stream,t.hint===`text`?Zs:Ys,e);
13return{text:r,stream:await n.parse(i)}}},serialize:void 0,deserialize:void 0})}var ec=$s(),tc={},nc=e=>new ReadableStream({start(t){e.on({next(e){try{t.enqueue(e)}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),rc=Vo({tag:`seroval-plugins/web/ReadableStreamFactory`,test(e){return e===tc},parse:{sync(){return tc},async async(){return await Promise.resolve(tc)},stream(){return tc}},serialize(){return nc.toString()},deserialize(){return tc}});async function ic(e,t){try{for(;;){let n=await t.read();if(n.done){e.return(n.value),t.releaseLock();break}e.next(n.value)}}catch(n){t.releaseLock(),e.throw(n)}}function ac(e){e.cancel().catch(()=>{}),e.releaseLock()}function oc(e){let t=eo(),n=e.getReader(),r=ac.bind(null,n);return ic(t,n).catch(r),[t,r]}var sc=Vo({tag:`seroval/plugins/web/ReadableStream`,extends:[rc],test(e){return typeof ReadableStream>`u`?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(tc),stream:t.parse(eo())}},async async(e,t){return{factory:await t.parse(tc),stream:await t.parse(oc(e)[0])}},stream(e,t){let[n,r]=oc(e);return t.addCleanup(r),{factory:t.parse(tc),stream:t.parse(n)}}},serialize(e,t){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t){let n=t.deserialize(e.stream);if(!n||typeof n!=`object`||!$a(n))throw Error(`Expected a stream source.`);return nc(n)}});function cc(e){return[qs,e?$s(e):ec,sc]}[...cc()];function lc(e){return Vo({tag:`tss/RawStream`,test:()=>!1,parse:{},serialize:void 0,deserialize(t,n){return e(n.deserialize(t.streamId))}})}function uc(e){return[...(Dt()?.serializationAdapters)?.map(Ks)??[],...e]}function dc(e){return uc(cc(e))}var fc=new TextDecoder,pc=new Uint8Array,mc=new ByteLengthQueuingStrategy({highWaterMark:0});function hc(e){let t=e.getReader(),n=new Map,r=0,i,a,o=()=>{i?.(),i=void 0},s=(e,t)=>{let n=e[1];e[1]=!1,n&&(t===1?n.close():n.error(t[0]))},c=new ReadableStream({start(e){a=e},pull:o,cancel(e){let i=[e===void 0?Error(`Framed response cancelled`):e];r=i,o(),t.cancel(e).catch(()=>{});for(let e of n.values())s(e,i)}});function l(e){let t=n.get(e);if(t)return t;if(n.size>=1024)throw Error(`Too many raw streams`);let i,a=[new ReadableStream({start(e){i=e},cancel(){a[1]!==!1&&(a[1]=null)}},mc),i];return n.set(e,a),r!==0&&s(a,r),a}function u(e){if(e===0||e>>>0!==e)throw RangeError(`Invalid raw stream ID`);return l(e)[0]}return(async()=>{let e=pc,o=0;async function c(){for(;o===e.byteLength;){e=pc,o=0;let n=await t.read();if(r!==0||n.done)return!1;e=n.value}return!0}async function u(t,n){if(t===0)return pc;if(!await c()){if(n)return;throw Error(`Incomplete frame`)}if(e.byteLength-o>=t){let n=e.subarray(o,o+t);return o+=t,o===e.byteLength&&(e=pc,o=0),n}let r=new Uint8Array(t),i=0;for(;i<t;){if(!await c())throw Error(`Incomplete frame`);let n=Math.min(t-i,e.byteLength-o);r.set(e.subarray(o,o+n),i),o+=n,i+=n}return o===e.byteLength&&(e=pc,o=0),r}try{for(;r===0;){let e=await u(9,!0);if(r!==0)return;if(!e){for(let e of n.values())if(e[1])throw Error(`Incomplete raw stream`);r=1,a.close();return}let t=e[0],o=(e[1]<<24|e[2]<<16|e[3]<<8|e[4])>>>0,c=(e[5]<<24|e[6]<<16|e[7]<<8|e[8])>>>0;if(e=pc,t>3||t===0!=(o===0)||c>16777216||t===2&&c!==0)throw Error(`Invalid frame`);let d=t===0?void 0:l(o);if(d?.[1]===!1)throw Error(`Raw stream already ended`);let f=await u(c);if(r!==0)return;if(!d){let e=fc.decode(f);for(f=pc,a.enqueue(e);r===0&&a.desiredSize<=0;)await new Promise(e=>{i=e});continue}if(t===1){let e=d[1];if(e){if(-e.desiredSize>134217728){e.error(Error(`Raw stream ${o} has too many unread bytes`)),d[1]=null,f=pc;continue}let t=f.byteLength*4<f.buffer.byteLength?f.slice():f;f=pc,e.enqueue(t)}}else s(d,t===2?1:[Error(fc.decode(f))])}}catch(e){if(r===0){let i=[e];r=i,t.cancel(e).catch(()=>{}),a.error(e);for(let e of n.values())s(e,i)}}finally{e=pc,t.releaseLock()}})(),[c,u]}var gc=Symbol.for(`TSR_DEFERRED_PROMISE`);function _c(e,t){let n=e;return n[gc]?n:(n[gc]={status:`pending`},n.then(e=>{n[gc].status=`success`,n[gc].data=e}).catch(e=>{n[gc].status=`error`,n[gc].error={data:(t?.serializeError??Ln)(e),__isServerError:!0}}),n)}function vc(e,t){if(e)return typeof e==`string`?e:e[t]}function yc(e){return e?.scriptFormat??`module`}
13function bc(e,t,n){let r=xc(t),i=vc(n,`script`)??r.crossOrigin;return{...yc(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function xc(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function Sc(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function Cc(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function wc(e,t,n,r){let i=ir(e),a=[],o=[];for(let e of i)for(let t of Array.isArray(e.scripts)?e.scripts:[]){if(!t)continue;let{children:e,...i}=t;a.push({tag:`script`,attrs:{...i,...r,nonce:n},children:e})}if(t)for(let e of i)for(let r of t.routes[e.routeId]?.scripts??[])o.push({tag:`script`,attrs:{...r.attrs,nonce:n},children:r.children});return[a,o]}function Tc([e,t],n){return n?[...n.before,...e,...t,n.boundary]:[...e,...t]}var Ec=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=de:this.parentRoute||T();let r=n?de:t?.path;r&&r!==`/`&&(r=d(r));let i=t?.id||r,a=n?de:ce((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:ce(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=o,this._to=M(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>s({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},Dc=class extends Ec{constructor(e){super(e)}};function Oc(e){return e}var kc;function Ac(e,t,n){try{return Ws(e,t)}catch(e){throw Mc(n),e}}async function jc(e){e.length>0&&(await Promise.allSettled(e),e.length=0)}function Mc(e){for(let t of e)t.catch(()=>{});e.length=0}var Nc=Object.prototype.hasOwnProperty;function Pc(e){for(let t in e)if(Nc.call(e,t))return!0;return!1}async function Fc(e,t,n){kc||=dc();let r=t[0],i=r.fetch??n,a=r.data instanceof FormData,o=new Headers(r.headers);if(o.set(`x-tsr-serverFn`,`true`),a||o.set(`accept`,`${Et}, application/x-ndjson, application/json`),r.method===`GET`){if(a)throw Error(`FormData is not supported with GET requests`);let t=await Ic(r);if(t!==void 0){let n=dn({payload:t});e.includes(`?`)?e+=`&${n}`:e+=`?${n}`}}let s;return r.method===`POST`&&(s=await Rc(r),typeof s==`string`&&o.set(`content-type`,`application/json`)),zc(()=>i(e,{method:r.method,headers:o,signal:r.signal,body:s}))}async function Ic(e){let t;return e.data!==void 0&&(t={data:e.data}),e.context&&Pc(e.context)&&((t??={}).context=e.context),t?Lc(t,e.signal):void 0}async function Lc(e,t){t?.throwIfAborted();let n;try{n=await Gs(e,{plugins:t?dc(t):kc})}finally{t?.throwIfAborted()}return JSON.stringify(n)}async function Rc(e){if(e.data instanceof FormData){let t;return e.context&&Pc(e.context)&&(t=await Lc(e.context,e.signal)),t!==void 0&&e.data.set(Ct,t),e.data}return Ic(e)}async function zc(e){let t;try{t=await e()}catch(e){if(e instanceof Response)t=e;else throw e}if(t.headers.get(`x-tss-raw`)===`true`)return t;let n=t.headers.get(`content-type`);if(n||T(),t.headers.get(`x-tss-serialized`)){let e;if(n.includes(`application/x-tss-framed`)){let r=/;\s*v=(\d+)/.exec(n)?.[1];if(r&&+r!=1)throw Error(`Unsupported framed protocol version ${r}`);if(!t.body)throw Error(`No response body for framed response`);let[i,a]=hc(t.body);e=await Bc(i,[lc(a),...kc])}else if(n.includes(`application/json`)){let n=await t.json(),r=[];e=Ac(n,{plugins:kc},r),await jc(r)}if(e||T(),e instanceof Error)throw e;return e}if(n.includes(`application/json`)){let e=await t.json(),n=o(e);if(n)throw n;if(a(e))throw e;return e}if(!t.ok)throw Error(await t.text());return t}
13async function Bc(e,t){let n=e.getReader(),r={refs:new Map,plugins:t},i=e=>{n.cancel(e).catch(()=>{})},a,o=[];try{let e=await n.read();if(e.done)throw Error(`Stream ended before first object`);a=Ac(JSON.parse(e.value),r,o)}catch(e){throw i(e),n.releaseLock(),e}return(async()=>{let e=[];try{for(;;){let t=await n.read();if(t.done)return;Ac(JSON.parse(t.value),r,e),Mc(e)}}catch(e){i(e),console.error(`Stream processing error:`,e)}finally{n.releaseLock()}})(),await jc(o),a}function Vc(e){let t=`/_serverFn/`+e;return Object.assign((...e)=>{let n=Dt()?.serverFns?.fetch;return Fc(t,e,n??fetch)},{url:t,serverFnMeta:{id:e},[wt]:!0})}var Hc=Oc({key:`$TSS/serverfn`,test:e=>typeof e!=`function`||!(wt in e)?!1:!!e[wt],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>Vc(e)}),H=e(t(),1),Uc=H.use,Wc=H.useLayoutEffect,U=r();function Gc({promise:e}){if(Uc)return Uc(e);let t=_c(e);if(t[gc].status===`pending`)throw t;if(t[gc].status===`error`)throw t[gc].error;return t[gc].data}function Kc(e){let t=(0,U.jsx)(qc,{...e});return e.fallback?(0,U.jsx)(H.Suspense,{fallback:e.fallback,children:t}):t}function qc(e){let t=Gc(e);return e.children(t)}var Jc=class extends H.Component{constructor(...e){super(...e),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:0}:{resetKey:n}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;return e?H.createElement(this.props.errorComponent??Yc,{error:e[0],reset:this.reset}):this.props.children}};function Yc({error:e}){let[t,n]=H.useState(!1);return(0,U.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,U.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,U.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,U.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,U.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,U.jsx)(`div`,{children:(0,U.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e?.message?(0,U.jsx)(`code`,{children:e.message}):null})}):null]})}function Xc({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function Zc(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var Qc=[],$c=0,{link:el,unlink:tl,propagate:nl,checkDirty:rl,shallowPropagate:il}=Xc({update(e){return e._update()},notify(e){Qc[ol++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,ul(e))}}),al=0,ol=0,sl,cl=0;function ll(e){try{++cl,e()}finally{--cl||dl()}}function ul(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=tl(n,e)}function dl(){if(!(cl>0)){for(;al<ol;){let e=Qc[al];Qc[al++]=void 0,e.notify()}al=0,ol=0}}function fl(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:+!n,get(){return sl!==void 0&&el(i,sl,$c),i._snapshot},subscribe(e){let t=Zc(e),n={current:!1},r=pl(()=>{i.get(),n.current?(sl=void 0,t.next?.(i._snapshot)):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=sl,o=t?.compare??Object.is;if(n)sl=i,++$c,i.depsTail=void 0;else if(e===void 0)return!1;
13n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{sl=a,n&&(i.flags&=-5),ul(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&rl(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&il(e)}}else e&32&&(i.flags=e&-33);return sl!==void 0&&el(i,sl,$c),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(nl(e),il(e),dl())}},i}function pl(e){let t=()=>{let t=sl;sl=n,++$c,n.depsTail=void 0,n.flags=6;try{return e()}finally{sl=t,n.flags&=-5,ul(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&rl(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,ul(this)}};return t(),n}function ml(e){return se({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function hl(e){let{select:t,...n}=e;return se({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function gl(e){return se({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function _l(e){let t=ae();return H.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function vl(e){return se({...e,select:t=>e.select?e.select(t.context):t.context})}var yl=class extends Ec{constructor(e){super(e),this.useMatch=e=>se({...e,from:this.id}),this.useRouteContext=e=>vl({...e,from:this.id}),this.useSearch=e=>gl({...e,from:this.id}),this.useParams=e=>A({...e,from:this.id}),this.useLoaderDeps=e=>hl({...e,from:this.id}),this.useLoaderData=e=>ml({...e,from:this.id}),this.useNavigate=()=>_l({from:this.fullPath}),this.Link=H.forwardRef((e,t)=>(0,U.jsx)(D,{ref:t,from:this.fullPath,...e}))}};function bl(e){return new yl(e)}function xl(){return e=>Cl(e)}var Sl=class extends Dc{constructor(e){super(e),this.useMatch=e=>se({...e,from:this.id}),this.useRouteContext=e=>vl({...e,from:this.id}),this.useSearch=e=>gl({...e,from:this.id}),this.useParams=e=>A({...e,from:this.id}),this.useLoaderDeps=e=>hl({...e,from:this.id}),this.useLoaderData=e=>ml({...e,from:this.id}),this.useNavigate=()=>_l({from:this.fullPath}),this.Link=H.forwardRef((e,t)=>(0,U.jsx)(D,{ref:t,from:this.fullPath,...e}))}};function Cl(e){return new Sl(e)}function W(e){return e=>{let t=bl(e);return t.isRoot=!1,t}}function G(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,o.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(g(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r)if(Uc)Uc(a());else throw a();return H.createElement(r,e)};return o.preload=a,o}function wl(e){let t=ae(),n=`not-found-${O(t.stores.location,e=>e.pathname)}-${O(t.stores.status)}`;return(0,U.jsx)(Jc,{getResetKey:()=>n,onCatch:(t,n)=>{if(a(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(a(t))return e.fallback?.(t);throw t},children:e.children})}function Tl(){return(0,U.jsx)(`p`,{children:`Not Found`})}function El(e,t,n){return t.options.notFoundComponent?(0,U.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,U.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,U.jsx)(Tl,{})}function Dl(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,U.jsx)(n,{}):null}var Ol=(e,t)=>e[0]===t[0]&&e[1]===t[1],kl=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,Al=H.memo(function({routeId:e}){let t=ae();return(0,U.jsx)(jl,{router:t,match:O(t.stores.getMatchStore(e))})});function jl({router:e,match:t}){let n=e.routesById[t.routeId],r=Dl(e,n),i=n.options.errorComponent??e.options.defaultErrorComponent,o=n.options.onCatch??e.options.defaultOnCatch,s=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,c=t.ssr===!1||t.ssr===`data-only`,l=kl(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||c)),u=(0,U.jsx)(Ml,{match:t});c&&(u=(0,U.jsx)(te,{fallback:r,children:u})),s&&(u=(0,U.jsx)(wl,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return H.createElement(s,e)},children:u})),i&&(u=(0,U.jsx)(Jc,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(a(e))throw e.routeId??=t.routeId,e;o?.(e,n)},children:u})),l&&(u=(0,U.jsx)(H.Suspense,{fallback:r,children:u}));let d=n.isRoot?n.options.shellComponent:void 0;return(0,U.jsx)(k.Provider,{value:t.routeId,children:d?(0,U.jsxs)(d,{children:[u,null]}):(0,U.jsxs)(U.Fragment,{children:[u,null]})})}var Ml=H.memo(function({match:e}){let t=ae(),n=e.routeId,r=t.routesById[n],i=H.useMemo(()=>{let i=(r.options.remountDeps??t.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return i?JSON.stringify(i):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,t.options.defaultRemountDeps]),a=H.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,U.jsx)(e,{},i):(0,U.jsx)(Nl,{})},[i,r.options.component,t.options.defaultComponent]);
13if(e.status===`pending`){if(t.ssr&&!kl(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return Dl(t,r)}if(e.status===`notFound`)return El(t,r,e.error);if(e.status===`error`)throw e.error;return a}),Nl=H.memo(function(){let e=ae(),t=H.useContext(k),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=O(a,e=>[!!e._notFound,e.error],{compare:Ol}),i=O(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return El(e,e.routesById[t],r);if(!i)return null;let a=(0,U.jsx)(Al,{routeId:i});return t===`__root__`?(0,U.jsx)(H.Suspense,{fallback:Dl(e),children:a}):a});function Pl(e,t){let n=e[1];e.length=0,n?.(t)}function Fl({t:e}){let t=ae(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{Pl(n,!1),n.push(i,a),e(t),H.startTransition(r)}),Wc(()=>{let e=t.history.subscribe(t.load);t.updateLatestLocation();let r=t.latestLocation,i=t.buildLocation({to:r.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(M(r.publicHref)!==M(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),e;let a=t.stores.resolvedLocation.get();return a?.href===r.href&&a.state.__TSR_key===r.state.__TSR_key?n.push(t.stores.matches.get(),e=>{e&&t.emit({type:`onRendered`,...Rn(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}function Il(){let e=ae(),t=e.routesById[de],n=Dl(e,t),r=(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Fl,{t:H.useState()[1]}),e.ssr?(0,U.jsx)(Ll,{}):(0,U.jsx)(H.Suspense,{fallback:n,children:(0,U.jsx)(Ll,{})})]});return e.options.InnerWrap?(0,U.jsx)(e.options.InnerWrap,{children:r}):r}function Ll(){let e=ae(),t=e._rendered,n=O(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;Wc(()=>{t[0]===n&&Pl(t,!0)},[t,n]);let a=i?(0,U.jsx)(Al,{routeId:i}):null;return e.options.disableGlobalCatchBoundary?a:(0,U.jsx)(Jc,{getResetKey:()=>r,onCatch:void 0,children:a})}var Rl=e=>({createMutableStore:fl,createReadonlyStore:fl,batch:ll}),K=e=>new zl(e),zl=class extends Hn{constructor(e){super(e,Rl)}};function q({router:e,children:t,...n}
13){b(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,U.jsx)(j.Provider,{value:e,children:t});return e.options.Wrap?(0,U.jsx)(e.options.Wrap,{children:r}):r}function J({router:e,...t}){return(0,U.jsx)(q,{router:e,...t,children:(0,U.jsx)(Il,{})})}function Y(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function Bl(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e,a=H.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(e.tag){case`title`:return(0,U.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,U.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,U.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,U.jsx)(`style`,{...t,dangerouslySetInnerHTML:a,nonce:r});case`script`:return(0,U.jsx)(Vl,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function Vl({attrs:e,children:t,preventScriptHoist:n}){ae();let r=ee(),i=H.useMemo(()=>t===void 0?void 0:{__html:t},[t]),a=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(H.useEffect(()=>{if(!a){if(e?.src){let t=document.createElement(`a`);t.href=e.src;let n=t.href;for(let e of document.scripts)if(e.src===n)return;let r=document.createElement(`script`);return Y(r,e),document.head.appendChild(r),()=>r.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.scripts){if(e.hasAttribute(`src`))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,Y(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,a]),a&&typeof t==`string`)return(0,U.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:i});if(!r){if(e?.src)return(0,U.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,U.jsx)(`script`,{...e,dangerouslySetInnerHTML:i,suppressHydrationWarning:!0})}return null}function Hl(e,t,n,r){n=ir(n);let i=n.map(e=>e.meta).filter(e=>e!==void 0),a=[],o={},s;for(let e=i.length-1;e>=0;e--){let n=i[e];for(let e=n.length-1;e>=0;e--){let r=n[e];if(r)if(r.title)s||={tag:`title`,children:r.title};else if(`script:ld+json`in r)try{let e=JSON.stringify(r[`script:ld+json`]);a.push({tag:`script`,attrs:{type:`application/ld+json`},children:re(e)})}catch{}else{let e=r.name??r.property;if(e){if(o[e])continue;o[e]=!0}a.push({tag:`meta`,attrs:{...r,nonce:t}})}}}s&&a.push(s),t&&a.push({tag:`meta`,attrs:{property:`csp-nonce`,content:t}}),a.reverse();let c=n.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:t}})),l=e.ssr?.manifest,u=[];l&&(n.forEach(e=>{(l.routes[e.routeId]?.css)?.forEach(e=>{let n=Cc(e);u.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:vc(r,`stylesheet`)??n.crossOrigin,suppressHydrationWarning:!0,nonce:t}})})}),l.inlineStyle&&u.push({tag:`style`,attrs:{...l.inlineStyle.attrs,nonce:t},children:l.inlineStyle.children,inlineCss:!0}));let d=[];l&&n.forEach(e=>{l.routes[e.routeId]?.preloads?.forEach(e=>{d.push({tag:`link`,attrs:{...bc(l,e,r),nonce:t}})})});let f=n.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`style`,attrs:{...n,nonce:t},children:e})),p=n.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`script`,attrs:{...n,nonce:t},children:e})),m=[];return Sc(m,a),m.push(...d),Sc(m,c),m.push(...u),Sc(m,f),Sc(m,p),m}var Ul=e=>{let t=ae(),n=t.options.ssr?.nonce,r=H.useCallback(r=>Hl(t,n,r,e),[e,n,t]);return O(t.stores.matches,r,{compare:ie})};function Wl(e){let t=Ul(e.assetCrossOrigin),n=ae().options.ssr?.nonce;return(0,U.jsx)(U.Fragment,{children:t.map(e=>(0,H.createElement)(Bl,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Gl={suppressHydrationWarning:!0},Kl=()=>{let e=ae(),t=e.options.ssr?.nonce,n=n=>{let r=wc(n,e.ssr?.manifest,t,Gl);for(let e of r[1])if(typeof e.attrs?.src==`string`){let t=e;t.preventScriptHoist=!0}return r};return ql(O(e.stores.matches,e=>Tc(n(e)),{compare:ie}))};function ql(e){return(0,U.jsx)(U.Fragment,{children:e.map((e,t)=>(0,H.createElement)(Bl,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var Jl=(e,t)=>
13{let n={type:`request`,...t||e},r=e=>Jl({},Object.assign(n,{validator:e,inputValidator:e}));return{options:n,middleware:e=>Jl({},Object.assign(n,{middleware:e})),validator:r,inputValidator:r,client:e=>Jl({},Object.assign(n,{client:e})),server:e=>Jl({},Object.assign(n,{server:e}))}};function Yl(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&Yl(e,r.extends))}}var Xl=e=>({getOptions:async()=>{let t=await e();if(t.serializationAdapters){let e=new Set;Yl(e,t.serializationAdapters),t.serializationAdapters=Array.from(e)}return t},createMiddleware:Jl}),Zl=Jl({type:`function`}).client(async({next:e})=>{let{data:t}=await F.auth.getSession(),n=t.session?.access_token;return e({headers:n?{Authorization:`Bearer ${n}`}:{}})}),Ql=Jl(),$l=void 0,eu=Xl(()=>({functionMiddleware:[Zl],requestMiddleware:[Ql,$l]})),tu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},nu=new class extends tu{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},ru={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},iu=new class{#e=ru;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function au(e){setTimeout(e,0)}var ou=typeof window>`u`||`Deno`in globalThis;function su(){}function cu(e,t){return typeof e==`function`?e(t):e}function lu(e){return typeof e==`number`&&e>=0&&e!==1/0}function uu(e,t){return Math.max(e+(t||0)-Date.now(),0)}function du(e,t){return typeof e==`function`?e(t):e}function fu(e,t){return typeof e==`function`?e(t):e}function pu(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==hu(o,t.options))return!1}else if(!_u(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function mu(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(gu(t.options.mutationKey)!==gu(a))return!1}else if(!_u(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function hu(e,t){return(t?.queryKeyHashFn||gu)(e)}function gu(e){return JSON.stringify(e,(e,t)=>xu(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function _u(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!_u(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!_u(e[r],t[r]))return!1;return!0}return!1}var vu=Object.prototype.hasOwnProperty;function yu(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=bu(e)&&bu(t);if(!r&&!(xu(e)&&xu(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:vu.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=yu(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function bu(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function xu(e){if(!Su(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!Su(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function Su(e){return Object.prototype.toString.call(e)===`[object Object]`}function Cu(e){return new Promise(t=>{iu.setTimeout(t,e)})}function wu(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:yu(e,t)}function Tu(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Eu(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Du=Symbol();function Ou(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Du?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ku(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Au=(()=>{let e=()=>
13ou;return{isServer(){return e()},setIsServer(t){e=t}}})();function ju(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var Mu=au;function Nu(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Mu,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Pu=Nu(),Fu=new class extends tu{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Iu(e){return Math.min(1e3*2**e,3e4)}function Lu(e){return(e??`online`)!==`online`||Fu.isOnline()}var Ru=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function zu(e){let t=!1,n=0,r,i=ju(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Ru(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>nu.isFocused()&&(e.networkMode===`always`||Fu.isOnline())&&e.canRun(),u=()=>Lu(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Au.isServer()?0:3),o=e.retryDelay??Iu,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),Cu(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Bu=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),lu(this.gcTime)&&(this.#e=iu.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Au.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(iu.clearTimeout(this.#e),this.#e=void 0)}};function Vu(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{ku(e,()=>t.signal,()=>n=!0)},u=Ou(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?Eu:Tu;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?Uu:Hu,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Hu(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Hu(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Uu(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Wu=class extends Bu{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Ku(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Ku(this.options);e.data!==void 0&&(this.setState(X(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=wu(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(su).catch(su):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>fu(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Du||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
13Count>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>du(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!uu(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=Ou(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Vu(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=zu({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Ru&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Ru){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Gu(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...X(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Pu.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Gu(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Lu(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function X(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Ku(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdate
13Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var qu=class extends Bu{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Ju(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=zu({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Pu.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Ju(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Yu=class extends tu{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new qu({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Xu(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Xu(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Xu(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>
vendor: 4,167 bytes, line 13
13e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Xu(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Pu.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>mu(t,e))}findAll(e={}){return this.getAll().filter(t=>mu(e,t))}notify(e){Pu.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Pu.batch(()=>Promise.all(e.map(e=>e.continue().catch(su))))}};function Xu(e){return e.options.scope?.id}var Zu=class extends tu{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??hu(r,t),a=this.get(i);return a||(a=new Wu({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Pu.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>pu(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>pu(e,t)):t}notify(e){Pu.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Pu.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Pu.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Qu=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Zu,this.#t=e.mutationCache||new Yu,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=nu.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Fu.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(du(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=cu(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Pu.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Pu.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Pu.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Pu.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(su).catch(su)}invalidateQueries(e,t={}){return Pu.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Pu.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(su)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(su)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);
13return n.isStaleByTime(du(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(su).catch(su)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(su).catch(su)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Fu.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(gu(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{_u(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(gu(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{_u(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=hu(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Du&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},$u=[`light`,`dark`],ed=`(prefers-color-scheme: dark)`,td=typeof window>`u`,nd=H.createContext(void 0),rd={setTheme:e=>{},themes:[]},id=()=>H.useContext(nd)??rd,ad=e=>H.useContext(nd)?e.children:H.createElement(sd,{...e}),od=[`light`,`dark`],sd=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:i=`theme`,themes:a=od,defaultTheme:o=n?`system`:`light`,attribute:s=`data-theme`,value:c,children:l,nonce:u})=>{let[d,f]=H.useState(()=>ld(i,o)),[p,m]=H.useState(()=>ld(i)),h=c?Object.values(c):a,g=H.useCallback(e=>{let i=e;if(!i)return;e===`system`&&n&&(i=dd());let a=c?c[i]:i,l=t?ud():null,u=document.documentElement;if(s===`class`?(u.classList.remove(...h),a&&u.classList.add(a)):a?u.setAttribute(s,a):u.removeAttribute(s),r){let e=$u.includes(o)?o:null,t=$u.includes(i)?i:e;u.style.colorScheme=t}l?.()},[]),_=H.useCallback(e=>{let t=typeof e==`function`?e(e):e;f(t);try{localStorage.setItem(i,t)}catch{}},[e]),v=H.useCallback(t=>{let r=dd(t);m(r),d===`system`&&n&&!e&&g(`system`)},[d,e]);H.useEffect(()=>{let e=window.matchMedia(ed);return e.addListener(v),v(e),()=>e.removeListener(v)},[v]),H.useEffect(()=>{let e=e=>{if(e.key!==i)return;let t=e.newValue||o;_(t)};return window.addEventListener(`storage`,e),()=>window.removeEventListener(`storage`,e)},[_]),H.useEffect(()=>{g(e??d)},[e,d]);let y=H.useMemo(()=>({theme:d,setTheme:_,forcedTheme:e,resolvedTheme:d===`system`?p:d,themes:n?[...a,`system`]:a,systemTheme:n?p:void 0}),[d,_,e,p,n,a]);return H.createElement(nd.Provider,{value:y},H.createElement(cd,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:i,themes:a,defaultTheme:o,attribute:s,value:c,children:l,attrs:h,nonce:u}),l)},cd=H.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:a,value:o,attrs:s,nonce:c})=>{let l=a===`system`,u=n===`class`?`var d=document.documentElement,c=d.classList;${`c.remove(${s.map(e=>`'${e}'`).join(`,`)})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=i?$u.includes(a)&&a?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${a}'`:`if(e==='light'||e==='dark')d.style.colorScheme=e`:``,f=(e,t=!1,r=!0)=>{let a=o?o[e]:e,s=t?e+`|| ''`:`'${a}'`,c=``;return i&&r&&!t&&$u.includes(e)&&(c+=`d.style.colorScheme = '${e}';`),n===`class`?t||a?c+=`c.add(${s})`:c+=`null`:a&&(c+=`d[s](n,${s})`),c},p=e?`!function(){${u}${f(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${l})){var t='${ed}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f(`dark`)}}else{${f(`light`)}}}else if(e){${o?`var x=${JSON.stringify(o)};`:``}${f(o?`x[e]`:`e`,!0)}}${l?``:`else{`+f(a,!1,!1)+`}`}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:``}${f(o?`x[e]`:`e`,!0)}}else{${f(a,!1,!1)};}${d}}catch(t){}}();`;return H.createElement(`script`,{nonce:c,dangerouslySetInnerHTML:{__html:p}})}),ld=(e,t)=>{if(td)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},ud=()=>{let e=document.createElement(`style`);return e.appendChild(document.createTextNode(`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`)),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},dd=e=>(e||=window.matchMedia(ed),e.matches?`dark`:`light`),fd=e(i(),1);function pd(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var md=e=>{switch(e){case`success`:return _d;case`info`:return yd;case`warning`:return vd;case`error`:return bd;default:return null}},hd=Array(12).fill(0),gd=({visible:e,className:t})=>H.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(
13Boolean).join(` `),"data-visible":e},H.createElement(`div`,{className:`sonner-spinner`},hd.map((e,t)=>H.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),_d=H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},H.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),vd=H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},H.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),yd=H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},H.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),bd=H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},H.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),Z=H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},H.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),H.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),xd=()=>{let[e,t]=H.useState(document.hidden);return H.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},Sd=1,Cd=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:Sd++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0||e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>
13this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],H.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(Td(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!H.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!H.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!H.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!H.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id||Sd++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},wd=(e,t)=>{let n=t?.id||Sd++;return Cd.addToast({title:e,...t,id:n}),n},Td=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,Ed=Object.assign(wd,{success:Cd.success,info:Cd.info,warning:Cd.warning,error:Cd.error,custom:Cd.custom,message:Cd.message,promise:Cd.promise,dismiss:Cd.dismiss,loading:Cd.loading},{getHistory:()=>Cd.toasts,getToasts:()=>Cd.getActiveToasts()});pd(`
vendor: 14,859 bytes, line 13
13[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
13`);function Dd(e){return e.label!==void 0}var Od=3,kd=`24px`,Ad=`16px`,jd=4e3,Md=356,Nd=14,Q=45,Pd=200;function Fd(...e){return e.filter(Boolean).join(` `)}function Id(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var Ld=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,expandByDefault:S,classNames:C,icons:w,closeButtonAriaLabel:T=`Close toast`}=e,[E,D]=H.useState(null),[O,k]=H.useState(null),[ee,te]=H.useState(!1),[ne,re]=H.useState(!1),[ie,A]=H.useState(!1),[j,ae]=H.useState(!1),[oe,se]=H.useState(!1),[ce,M]=H.useState(0),[N,le]=H.useState(0),ue=H.useRef(n.duration||y||jd),de=H.useRef(null),P=H.useRef(null),F=c===0,fe=c+1<=o,pe=n.type,me=n.dismissible!==!1,he=n.className||``,ge=n.descriptionClassName||``,_e=H.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),ve=H.useMemo(()=>n.closeButton??p,[n.closeButton,p]),ye=H.useMemo(()=>n.duration||y||jd,[n.duration,y]),be=H.useRef(0),xe=H.useRef(0),Se=H.useRef(0),Ce=H.useRef(null),[we,Te]=b.split(`-`),Ee=H.useMemo(()=>
13s.reduce((e,t,n)=>n>=_e?e:e+t.height,0),[s,_e]),De=xd(),Oe=n.invert||t,ke=pe===`loading`;xe.current=H.useMemo(()=>_e*x+Ee,[_e,Ee]),H.useEffect(()=>{ue.current=ye},[ye]),H.useEffect(()=>{te(!0)},[]),H.useEffect(()=>{let e=P.current;if(e){let t=e.getBoundingClientRect().height;return le(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),H.useLayoutEffect(()=>{if(!ee)return;let e=P.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,le(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[ee,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let Ae=H.useCallback(()=>{re(!0),M(xe.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},Pd)},[n,d,a,xe]);H.useEffect(()=>{if(n.promise&&pe===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||De?(()=>{if(Se.current<be.current){let e=new Date().getTime()-be.current;ue.current-=e}Se.current=new Date().getTime()})():ue.current!==1/0&&(be.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),Ae()},ue.current)),()=>clearTimeout(e)},[u,i,n,pe,De,Ae]),H.useEffect(()=>{n.delete&&(Ae(),n.onDismiss==null||n.onDismiss.call(n,n))},[Ae,n.delete]);function je(){return w?.loading?H.createElement(`div`,{className:Fd(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":pe===`loading`},w.loading):H.createElement(gd,{className:Fd(C?.loader,n?.classNames?.loader),visible:pe===`loading`})}let Me=n.icon||w?.[pe]||md(pe);return H.createElement(`li`,{tabIndex:0,ref:P,className:Fd(_,he,C?.toast,n?.classNames?.toast,C?.default,C?.[pe],n?.classNames?.[pe]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":ee,"data-promise":!!n.promise,"data-swiped":oe,"data-removed":ne,"data-visible":fe,"data-y-position":we,"data-x-position":Te,"data-index":c,"data-front":F,"data-swiping":ie,"data-dismissible":me,"data-type":pe,"data-invert":Oe,"data-swipe-out":j,"data-swipe-direction":O,"data-expanded":!!(u||S&&ee),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${ne?ce:xe.current}px`,"--initial-height":S?`auto`:`${N}px`,...m,...n.style},onDragEnd:()=>{A(!1),D(null),Ce.current=null},onPointerDown:e=>{e.button!==2&&(ke||!me||(de.current=new Date,M(xe.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(A(!0),Ce.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(j||!me)return;Ce.current=null;let e=Number(P.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(P.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-de.current?.getTime(),i=E===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=Q||a>.11){M(xe.current),n.onDismiss==null||n.onDismiss.call(n,n),k(E===`x`?e>0?`right`:`left`:t>0?`down`:`up`),Ae(),ae(!0);return}else{var o,s;(o=P.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=P.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`)}se(!1),A(!1),D(null)},onPointerMove:t=>{var n,r;if(!Ce.current||!me||window.getSelection()?.toString().length>0)return;let i=t.clientY-Ce.current.y,a=t.clientX-Ce.current.x,o=e.swipeDirections??Id(b);!E&&(Math.abs(a)>1||Math.abs(i)>1)&&D(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(E===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)<Math.abs(i)?e:i}}else if(E===`x`&&(o.includes(`left`)||o.includes(`right`)))if(o.includes(`left`)&&a<0||o.includes(`right`)&&a>0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)<Math.abs(a)?e:a}(Math.abs(s.x)>0||Math.abs(s.y)>0)&&se(!0),(n=P.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=P.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},ve&&!n.jsx&&pe!==`loading`?H.createElement(`button`,{"aria-label":T,"data-disabled":ke,"data-close-button":!0,onClick:ke||!me?()=>{}:()=>{Ae(),n.onDismiss==null||n.onDismiss.call(n,n)},className:Fd(C?.closeButton,n?.classNames?.closeButton)},w?.close??Z):null,(pe||n.icon||n.promise)&&n.icon!==null&&(w?.[pe]!==null||n.icon)?H.createElement(`div`,{"data-icon":``,className:Fd(C?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||je():null,n.type===`loading`?null:Me):null,H.createElement(`div`,{"data-content":``,className:Fd(C?.content,n?.classNames?.content)},H.createElement(`div`,{"data-title":``,className:Fd(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?H.createElement(`div`,{"data-description":``,className:Fd(v,ge,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),H.isValidElement(n.cancel)?n.c
13ancel:n.cancel&&Dd(n.cancel)?H.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{Dd(n.cancel)&&me&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),Ae())},className:Fd(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,H.isValidElement(n.action)?n.action:n.action&&Dd(n.action)?H.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{Dd(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&Ae())},className:Fd(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function Rd(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function zd(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?Ad:kd;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var Bd=H.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=Od,toastOptions:g,dir:_=Rd(),gap:v=Nd,icons:y,containerAriaLabel:b=`Notifications`}=e,[x,S]=H.useState([]),C=H.useMemo(()=>n?x.filter(e=>e.toasterId===n):x.filter(e=>!e.toasterId),[x,n]),w=H.useMemo(()=>Array.from(new Set([i].concat(C.filter(e=>e.position).map(e=>e.position)))),[C,i]),[T,E]=H.useState([]),[D,O]=H.useState(!1),[k,ee]=H.useState(!1),[te,ne]=H.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),re=H.useRef(null),ie=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),A=H.useRef(null),j=H.useRef(!1),ae=H.useCallback(e=>{S(t=>(t.find(t=>t.id===e.id)?.delete||Cd.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return H.useEffect(()=>Cd.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{S(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{fd.flushSync(()=>{S(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[x]),H.useEffect(()=>{if(d!==`system`){ne(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?ne(`dark`):ne(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{ne(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{ne(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),H.useEffect(()=>{x.length<=1&&O(!1)},[x]),H.useEffect(()=>{let e=e=>{if(a.every(t=>e[t]||e.code===t)){var t;O(!0),(t=re.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===re.current||re.current?.contains(document.activeElement))&&O(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),H.useEffect(()=>{if(re.current)return()=>{A.current&&(A.current.focus({preventScroll:!0}),A.current=null,j.current=!1)}},[re.current]),H.createElement(`section`,{ref:t,"aria-label":`${b} ${ie}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},w.map((t,n)=>{let[i,a]=t.split(`-`);return C.length?H.createElement(`ol`,{key:t,dir:_===`auto`?Rd():_,tabIndex:-1,ref:re,className:c,"data-sonner-toaster":!0,"data-sonner-theme":te,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${T[0]?.height||0}px`,"--width":`${Md}px`,"--gap":`${v}px`,...m,...zd(l,u)},onBlur:e=>{j.current&&!e.currentTarget.contains(e.relatedTarget)&&(j.current=!1,A.current&&=(A.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`fal
13se`||j.current||(j.current=!0,A.current=e.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{k||O(!1)},onDragEnd:()=>O(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||ee(!0)},onPointerUp:()=>ee(!1)},C.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>H.createElement(Ld,{key:n.id,icons:y,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:k,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:ae,toasts:C.filter(e=>e.position==n.position),heights:T.filter(e=>e.position==n.position),setHeights:E,expandByDefault:o,gap:v,expanded:D,swipeDirections:e.swipeDirections}))):null}))}),Vd=({...e})=>{let{theme:t=`system`}=id();return(0,U.jsx)(Bd,{theme:t,className:`toaster group`,toastOptions:{classNames:{toast:`group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg`,description:`group-[.toast]:text-muted-foreground`,actionButton:`group-[.toast]:bg-primary group-[.toast]:text-primary-foreground`,cancelButton:`group-[.toast]:bg-muted group-[.toast]:text-muted-foreground`}},...e})},Hd=1,Ud=1e6,Wd=0;function Gd(){return Wd=(Wd+1)%(2**53-1),Wd.toString()}var Kd=new Map,qd=e=>{if(Kd.has(e))return;let t=setTimeout(()=>{Kd.delete(e),Zd({type:`REMOVE_TOAST`,toastId:e})},Ud);Kd.set(e,t)},Jd=(e,t)=>{switch(t.type){case`ADD_TOAST`:return{...e,toasts:[t.toast,...e.toasts].slice(0,Hd)};case`UPDATE_TOAST`:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case`DISMISS_TOAST`:{let{toastId:n}=t;return n?qd(n):e.toasts.forEach(e=>{qd(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||n===void 0?{...e,open:!1}:e)}}case`REMOVE_TOAST`:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},Yd=[],Xd={toasts:[]};function Zd(e){Xd=Jd(Xd,e),Yd.forEach(e=>{e(Xd)})}function Qd({...e}){let t=Gd(),n=e=>Zd({type:`UPDATE_TOAST`,toast:{...e,id:t}}),r=()=>Zd({type:`DISMISS_TOAST`,toastId:t});return Zd({type:`ADD_TOAST`,toast:{...e,id:t,open:!0,onOpenChange:e=>{e||r()}}}),{id:t,dismiss:r,update:n}}function $d(){let[e,t]=H.useState(Xd);return H.useEffect(()=>(Yd.push(t),()=>{let e=Yd.indexOf(t);e>-1&&Yd.splice(e,1)}),[e]),{...e,toast:Qd,dismiss:e=>Zd({type:`DISMISS_TOAST`,toastId:e})}}var ef=Object.defineProperty,tf=(e,t)=>ef(e,`name`,{value:t,configurable:!0});function nf(e){let t=e+`CollectionProvider`,[n,r]=we(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=tf(e=>{let{scope:t,children:n}=e,r=H.useRef(null),a=H.useRef(new Map).current;return(0,U.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=De(s),l=H.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=Ee(t,a(s,n).collectionRef);return(0,U.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=De(u),p=H.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=H.useRef(null),s=Ee(t,o),c=a(u,n);return H.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,U.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return H.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return tf(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}tf(nf,`createCollection`);var rf=new WeakMap,af=class e extends Map{static{tf(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],rf.set(this,!0)}set(e,t){return rf.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=cf(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=of(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=of(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return of(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}
13}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function of(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=sf(e,t);return n===-1?void 0:e[n]}tf(of,`at`);function sf(e,t){let n=e.length,r=cf(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}tf(sf,`toSafeIndex`);function cf(e){return e!==e||e===0?0:Math.trunc(e)}tf(cf,`toSafeInteger`);function lf(e){let t=e+`CollectionProvider`,[n,r]=we(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new af,setItemMap:tf(()=>void 0,`setItemMap`)}),o=tf(({state:e,...t})=>e?(0,U.jsx)(c,{...t,state:e}):(0,U.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=tf(e=>{let t=h();return(0,U.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=tf(e=>{let{scope:t,children:n,state:r}=e,a=H.useRef(null),[o,s]=H.useState(null),c=Ee(a,s),[l,u]=r;return H.useEffect(()=>{if(!o)return;let e=pf(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,U.jsx)(i,{scope:t,itemMap:l,setItemMap:u,collectionRef:c,collectionRefObject:a,collectionElement:o,children:n})},`CollectionProviderImpl`);c.displayName=t+`Impl`;let l=e+`CollectionSlot`,u=De(l),d=H.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=Ee(t,a(l,n).collectionRef);return(0,U.jsx)(u,{ref:i,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=De(f),m=H.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=H.useRef(null),[s,c]=H.useState(null),l=Ee(t,o,c),{setItemMap:u}=a(f,n),d=H.useRef(i);uf(d.current,i)||(d.current=i);let m=d.current;return H.useEffect(()=>{let e=m;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(ff):(t.set(s,{...e,element:s}),t.toSorted(ff)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new af(e)))}},[s,m,u]),(0,U.jsx)(p,{"data-radix-collection-item":``,ref:l,children:r})});m.displayName=f;function h(){return H.useState(new af)}tf(h,`useInitCollection`);function g(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return tf(g,`useCollection`),[{Provider:o,Slot:d,ItemSlot:m},{createCollectionScope:r,useCollection:g,useInitCollection:h}]}tf(lf,`createCollection`);function uf(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}tf(uf,`shallowEqual`);function df(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}tf(df,`isElementPreceding`);function ff(e,t){return!e[1].element||!t[1].element?0:df(e[1].element,t[1].element)?-1:1}tf(ff,`sortByDocumentPosition`);function pf(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}tf(pf,`getChildListObserver`);var mf=Object.defineProperty,hf=(e,t)=>mf(e,`name`,{value:t,configurable:!0}),gf=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),_f=H.forwardRef(hf(function(e,t){return(0,U.jsx)(ve.span,{...e,ref:t,style:{...gf,...e.style}})},`VisuallyHidden`)),vf=_f,yf=Object.defineProperty,bf=(e,t)=>yf(e,`name`,{value:t,configurable:!0}),xf=`ToastProvider`,[Sf,Cf,wf]=nf(`Toast`),[Tf,Ef]=we(`Toast`,[wf]),[Df,Of]=Tf(xf),kf=bf(e=>{let{__scopeToast:t,label:n=`Notification`,duration:r=5e3,swipeDirection:i=`right`,swipeThreshold:a=50,announcerContainer:o,children:s}=e,[c,l]=H.useState(null),[u,d]=H.useState(0),f=H.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${xf}\`. Expected non-empty \`string\`.`),(0,U.jsx)(Sf.Provider,{scope:t,children:(0,U.jsx)(Df,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:a,toastCount:u,viewport:c,onViewportChange:l,onToastAdd:H.useCallback(()=>d(e=>e+1),[]),onToastRemove:H.useCallback(()=>d(e=>e-1),[]),isClosePausedRef:f,announcerContainer:o,children:s})})},`ToastProvider`),Af=`ToastViewport`,jf=[`F8`],Mf=`toast.viewportPause`,Nf=`toast.viewportResume`,Pf=H.forwardRef(bf(function(e,t){let{__scopeToast:n,hotkey:r=jf,label:i=`Notifications ({hotkey})`,...a}=e,o=Of(Af,n),s=Cf(n),c=H.useRef(null),l=H.useRef(null),u=H.useRef(null),d=H.useRef(null),f=Ee(t,d,o.onViewportChange),p=r.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),m=o.toastCount>0;H.useEffect(()=>{let e=bf(e=>{r.length!==0&&r.every(t=>e[t]||e.code===t)&&d.current?.focus()},`handleKeyDown`);
13return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[r]),H.useEffect(()=>{let e=c.current,t=d.current;if(m&&e&&t){let n=bf(()=>{if(!o.isClosePausedRef.current){let e=new CustomEvent(Mf);t.dispatchEvent(e),o.isClosePausedRef.current=!0}},`handlePause`),r=bf(()=>{if(o.isClosePausedRef.current){let e=new CustomEvent(Nf);t.dispatchEvent(e),o.isClosePausedRef.current=!1}},`handleResume`),i=bf(t=>{e.contains(t.relatedTarget)||r()},`handleFocusOutResume`),a=bf(()=>{e.contains(document.activeElement)||r()},`handlePointerLeaveResume`);return e.addEventListener(`focusin`,n),e.addEventListener(`focusout`,i),e.addEventListener(`pointermove`,n),e.addEventListener(`pointerleave`,a),window.addEventListener(`blur`,n),window.addEventListener(`focus`,r),()=>{e.removeEventListener(`focusin`,n),e.removeEventListener(`focusout`,i),e.removeEventListener(`pointermove`,n),e.removeEventListener(`pointerleave`,a),window.removeEventListener(`blur`,n),window.removeEventListener(`focus`,r)}}},[m,o.isClosePausedRef]);let h=H.useCallback(({tabbingDirection:e})=>{let t=s().map(t=>{let n=t.ref.current,r=[n,...ap(n)];return e===`forwards`?r:r.reverse()});return(e===`forwards`?t.reverse():t).flat()},[s]);return H.useEffect(()=>{let e=d.current;if(e){let t=bf(t=>{let n=t.altKey||t.ctrlKey||t.metaKey;if(t.key===`Tab`&&!n){let n=document.activeElement,r=t.shiftKey;if(t.target===e&&r){l.current?.focus();return}let i=h({tabbingDirection:r?`backwards`:`forwards`}),a=i.findIndex(e=>e===n);op(i.slice(a+1))?t.preventDefault():r?l.current?.focus():u.current?.focus()}},`handleKeyDown`);return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)}},[s,h]),(0,U.jsxs)(Ne,{ref:c,role:`region`,"aria-label":i.replace(`{hotkey}`,p),tabIndex:-1,style:{pointerEvents:m?void 0:`none`},children:[m&&(0,U.jsx)(If,{ref:l,onFocusFromOutsideViewport:()=>{op(h({tabbingDirection:`forwards`}))}}),(0,U.jsx)(Sf.Slot,{scope:n,children:(0,U.jsx)(ve.ol,{tabIndex:-1,...a,ref:f})}),m&&(0,U.jsx)(If,{ref:u,onFocusFromOutsideViewport:()=>{op(h({tabbingDirection:`backwards`}))}})]})},`ToastViewport`)),Ff=`ToastFocusProxy`,If=H.forwardRef(bf(function(e,t){let{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,a=Of(Ff,n);return(0,U.jsx)(_f,{tabIndex:0,...i,ref:t,style:{position:`fixed`},onFocus:e=>{let t=e.relatedTarget;a.viewport?.contains(t)||r()}})},`ToastFocusProxy`)),Lf=`Toast`,Rf=`toast.swipeStart`,zf=`toast.swipeMove`,Bf=`toast.swipeCancel`,Vf=`toast.swipeEnd`,Hf=H.forwardRef(bf(function(e,t){let{forceMount:n,open:r,defaultOpen:i,onOpenChange:a,...o}=e,[s,c]=xe({prop:r,defaultProp:i??!0,onChange:a,caller:Lf});return(0,U.jsx)(Ce,{present:n||s,children:(0,U.jsx)(Gf,{open:s,...o,ref:t,onClose:()=>c(!1),onPause:He(e.onPause),onResume:He(e.onResume),onSwipeStart:ye(e.onSwipeStart,e=>{e.currentTarget.setAttribute(`data-swipe`,`start`)}),onSwipeMove:ye(e.onSwipeMove,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`move`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-move-y`,`${n}px`)}),onSwipeCancel:ye(e.onSwipeCancel,e=>{e.currentTarget.setAttribute(`data-swipe`,`cancel`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-end-y`)}),onSwipeEnd:ye(e.onSwipeEnd,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute(`data-swipe`,`end`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-x`),e.currentTarget.style.removeProperty(`--radix-toast-swipe-move-y`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-x`,`${t}px`),e.currentTarget.style.setProperty(`--radix-toast-swipe-end-y`,`${n}px`),c(!1)})})})},`Toast`)),[Uf,Wf]=Tf(Lf,{onClose(){}}),Gf=H.forwardRef(bf(function(e,t){let{__scopeToast:n,type:r=`foreground`,duration:i,open:a,onClose:o,onEscapeKeyDown:s,onPause:c,onResume:l,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:p,...m}=e,h=Of(Lf,n),g=Cf(n),[_,v]=H.useState(null),y=Ee(t,v),b=H.useRef(null),x=H.useRef(null),S=i||h.duration,C=H.useRef(0),w=H.useRef(S),T=H.useRef(0),{onToastAdd:E,onToastRemove:D}=h,O=He(()=>{_?.contains(document.activeElement)&&h.viewport?.focus(),o()}),k=H.useCallback(e=>
13{!e||e===1/0||(window.clearTimeout(T.current),C.current=new Date().getTime(),T.current=window.setTimeout(O,e))},[O]);H.useEffect(()=>{let e=h.viewport;if(e){let t=bf(()=>{k(w.current),l?.()},`handleResume`),n=bf(()=>{let e=new Date().getTime()-C.current;w.current-=e,window.clearTimeout(T.current),c?.()},`handlePause`);return e.addEventListener(Mf,n),e.addEventListener(Nf,t),()=>{e.removeEventListener(Mf,n),e.removeEventListener(Nf,t)}}},[h.viewport,S,c,l,k]),H.useEffect(()=>{a&&!h.isClosePausedRef.current&&k(S)},[a,S,h.isClosePausedRef,k]),H.useEffect(()=>()=>{window.clearTimeout(T.current)},[]),H.useEffect(()=>(E(),()=>D()),[E,D]);let ee=H.useMemo(()=>_?ep(_):null,[_]);return h.viewport?(0,U.jsxs)(U.Fragment,{children:[ee&&(0,U.jsx)(Kf,{__scopeToast:n,role:`status`,"aria-live":r===`foreground`?`assertive`:`polite`,children:ee}),(0,U.jsx)(Uf,{scope:n,onClose:O,children:fd.createPortal((0,U.jsx)(Sf.ItemSlot,{scope:n,children:(0,U.jsx)(ke,{asChild:!0,onEscapeKeyDown:ye(s,e=>{g().some(t=>t.ref.current?.contains(e.target))||O()}),children:(0,U.jsx)(ve.li,{tabIndex:0,"data-state":a?`open`:`closed`,"data-swipe-direction":h.swipeDirection,...m,ref:y,style:{userSelect:`none`,touchAction:`none`,...e.style},onKeyDown:ye(e.onKeyDown,e=>{e.key===`Escape`&&(s?.(e.nativeEvent),e.nativeEvent.defaultPrevented||O())}),onPointerDown:ye(e.onPointerDown,e=>{e.button===0&&(b.current={x:e.clientX,y:e.clientY})}),onPointerMove:ye(e.onPointerMove,e=>{if(!b.current)return;let t=e.clientX-b.current.x,n=e.clientY-b.current.y,r=!!x.current,i=[`left`,`right`].includes(h.swipeDirection),a=[`left`,`up`].includes(h.swipeDirection)?Math.min:Math.max,o=i?a(0,t):0,s=i?0:a(0,n),c=e.pointerType===`touch`?10:2,l={x:o,y:s},f={originalEvent:e,delta:l};r?(x.current=l,tp(zf,d,f,{discrete:!1})):np(l,h.swipeDirection,c)?(x.current=l,tp(Rf,u,f,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(b.current=null)}),onPointerUp:ye(e.onPointerUp,e=>{let t=x.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),x.current=null,b.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};np(t,h.swipeDirection,h.swipeThreshold)?tp(Vf,p,r,{discrete:!0}):tp(Bf,f,r,{discrete:!0}),n.addEventListener(`click`,e=>e.preventDefault(),{once:!0})}})})})}),h.viewport)})]}):null},`ToastImpl`)),Kf=bf(e=>{let{__scopeToast:t,children:n,...r}=e,i=Of(Lf,t),[a,o]=H.useState(!1),[s,c]=H.useState(!1);return rp(()=>o(!0)),H.useEffect(()=>{let e=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(e)},[]),s?null:(0,U.jsx)(Ie,{asChild:!0,container:i.announcerContainer||void 0,children:(0,U.jsx)(_f,{...r,children:a&&(0,U.jsxs)(U.Fragment,{children:[i.label,` `,n]})})})},`ToastAnnounce`),qf=H.forwardRef(bf(function(e,t){let{__scopeToast:n,...r}=e;return(0,U.jsx)(ve.div,{...r,ref:t})},`ToastTitle`)),Jf=H.forwardRef(bf(function(e,t){let{__scopeToast:n,...r}=e;return(0,U.jsx)(ve.div,{...r,ref:t})},`ToastDescription`)),Yf=`ToastAction`,Xf=H.forwardRef(bf(function(e,t){let{altText:n,...r}=e;return n.trim()?(0,U.jsx)($f,{altText:n,asChild:!0,children:(0,U.jsx)(Qf,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Yf}\`. Expected non-empty \`string\`.`),null)},`ToastAction`)),Zf=`ToastClose`,Qf=H.forwardRef(bf(function(e,t){let{__scopeToast:n,...r}=e,i=Wf(Zf,n);return(0,U.jsx)($f,{asChild:!0,children:(0,U.jsx)(ve.button,{type:`button`,...r,ref:t,onClick:ye(e.onClick,i.onClose)})})},`ToastClose`)),$f=H.forwardRef(bf(function(e,t){let{__scopeToast:n,altText:r,...i}=e;return(0,U.jsx)(ve.div,{"data-radix-toast-announce-exclude":``,"data-radix-toast-announce-alt":r||void 0,...i,ref:t})},`ToastAnnounceExclude`));function ep(e){let t=[];return Array.from(e.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),ip(e)){let n=e.ariaHidden||e.hidden||e.style.display===`none`,r=e.dataset.radixToastAnnounceExclude===``;if(!n)if(r){let n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...ep(e))}}),t}bf(ep,`getAnnounceTextContent`);function tp(e,t,n,{discrete:r}){let i=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Se(i,a):i.dispatchEvent(a)}bf(tp,`handleAndDispatchCustomEvent`);var np=bf((e,t,n=0)=>{let r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return t===`left`||t===`right`?a&&r>n:!a&&i>n},`isDeltaInDirection`);function rp(e=()=>{}){let t=He(e);be(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}bf(rp,`useNextFrame`);
13function ip(e){return e.nodeType===e.ELEMENT_NODE}bf(ip,`isHTMLElement`);function ap(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:bf(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}bf(ap,`getTabbableCandidates`);function op(e){let t=document.activeElement;return e.some(e=>e===t?!0:(e.focus(),document.activeElement!==t))}bf(op,`focusFirst`);var sp=kf,cp=Pf,lp=Hf,up=qf,dp=Jf,fp=Xf,pp=Qf,mp=Ke(`accessibility`,[[`circle`,{cx:`16`,cy:`4`,r:`1`,key:`1grugj`}],[`path`,{d:`m18 19 1-7-6 1`,key:`r0i19z`}],[`path`,{d:`m5 8 3-3 5.5 3-2.36 3.5`,key:`9ptxx2`}],[`path`,{d:`M4.24 14.5a5 5 0 0 0 6.88 6`,key:`10kmtu`}],[`path`,{d:`M13.76 17.5a5 5 0 0 0-6.88-6`,key:`2qq6rc`}]]),hp=Ke(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),gp=Ke(`contrast`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 18a6 6 0 0 0 0-12v12z`,key:`j4l70d`}]]),_p=Ke(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),vp=Ke(`keyboard`,[[`path`,{d:`M10 8h.01`,key:`1r9ogq`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M14 8h.01`,key:`1primd`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}],[`path`,{d:`M18 8h.01`,key:`emo2bl`}],[`path`,{d:`M6 8h.01`,key:`x9i8wu`}],[`path`,{d:`M7 16h10`,key:`wp8him`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}],[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}]]),yp=Ke(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),bp=Ke(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),xp=Ke(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),Sp=Ke(`mouse-pointer-2`,[[`path`,{d:`M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z`,key:`edeuup`}]]),Cp=Ke(`move-horizontal`,[[`path`,{d:`m18 8 4 4-4 4`,key:`1ak13k`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}]]),wp=Ke(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),Tp=Ke(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),Ep=Ke(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Dp=Ke(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),Op=Ke(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),kp=Ke(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),Ap=Ke(`text-align-justify`,[[`path`,{d:`M3 5h18`,key:`1u36vt`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`path`,{d:`M3 19h18`,key:`awlh7x`}]]),jp=Ke(`type`,[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]),Mp=Ke(`volume-2`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`,key:`ijwkga`}]]),Np=Ke(`volume-x`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`line`,{x1:`22`,x2:`16`,y1:`9`,y2:`15`,key:`1ewh16`}],[`line`,{x1:`16`,x2:`22`,y1:`9`,y2:`15`,key:`5ykzw1`}]]),Pp=Ke(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Fp=sp,Ip=H.forwardRef(({className:e,...t},n)=>(0,U.jsx)(cp,{ref:n,className:Ue(`fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]`,e),...t}));Ip.displayName=cp.displayName;var Lp=Ge(`group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full`,{variants:{variant:{default:`border bg-background text-foreground`,destructive:`destructive group border-destructive bg-destructive text-destructive-foreground`}},defaultVariants:{variant:`default`}}),Rp=H.forwardRef(({className:e,variant:t,...n},r)=>(0,U.jsx)(lp,{ref:r,className:Ue(Lp({variant:t}),e),...n}));Rp.displayName=lp.displayName;var zp=H.forwardRef(({className:e,...t},n)=>(0,U.jsx)(fp,{ref:n,className:Ue(`inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50`,e),...t}));zp.displayName=fp.displayName;var Bp=H.forwardRef(({className:e,...t},n)=>(0,U.jsx)(pp,{ref:n,className:Ue(`absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 4,268 bytes, line 13
13/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600`,e),"toast-close":``,...t,children:(0,U.jsx)(Pp,{className:`h-4 w-4`})}));Bp.displayName=pp.displayName;var Vp=H.forwardRef(({className:e,...t},n)=>(0,U.jsx)(up,{ref:n,className:Ue(`text-sm font-semibold`,e),...t}));Vp.displayName=up.displayName;var Hp=H.forwardRef(({className:e,...t},n)=>(0,U.jsx)(dp,{ref:n,className:Ue(`text-sm opacity-90`,e),...t}));Hp.displayName=dp.displayName;function Up(){let{toasts:e}=$d();return(0,U.jsxs)(Fp,{children:[e.map(function({id:e,title:t,description:n,action:r,...i}){return(0,U.jsxs)(Rp,{...i,children:[(0,U.jsxs)(`div`,{className:`grid gap-1`,children:[t&&(0,U.jsx)(Vp,{children:t}),n&&(0,U.jsx)(Hp,{children:n})]}),r,(0,U.jsx)(Bp,{})]},e)}),(0,U.jsx)(Ip,{})]})}var Wp=[`top`,`right`,`bottom`,`left`],Gp=Math.min,Kp=Math.max,qp=Math.round,Jp=Math.floor,Yp=e=>({x:e,y:e}),Xp={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Zp(e,t,n){return Kp(e,Gp(t,n))}function Qp(e,t){return typeof e==`function`?e(t):e}function $p(e){return e.split(`-`)[0]}function em(e){return e.split(`-`)[1]}function tm(e){return e===`x`?`y`:`x`}function nm(e){return e===`y`?`height`:`width`}function rm(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function im(e){return tm(rm(e))}function am(e,t,n){n===void 0&&(n=!1);let r=em(e),i=im(e),a=nm(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=mm(o)),[o,mm(o)]}function om(e){let t=mm(e);return[sm(e),t,sm(t)]}function sm(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var cm=[`left`,`right`],lm=[`right`,`left`],um=[`top`,`bottom`],dm=[`bottom`,`top`];function fm(e,t,n){switch(e){case`top`:case`bottom`:return n?t?lm:cm:t?cm:lm;case`left`:case`right`:return t?um:dm;default:return[]}}function pm(e,t,n,r){let i=em(e),a=fm($p(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(sm)))),a}function mm(e){let t=$p(e);return Xp[t]+e.slice(t.length)}function hm(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function gm(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:hm(e)}function _m(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function vm(e,t,n){let{reference:r,floating:i}=e,a=rm(t),o=im(t),s=nm(o),c=$p(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=em(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function ym(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Qp(t,e),p=gm(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=_m(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=_m(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var bm=50,xm=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ym},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}
vendor: 7,907 bytes, line 13
13),{x:u,y:d}=vm(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<bm&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=vm(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Sm=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Qp(e,t)||{};if(l==null)return{};let d=gm(u),f={x:n,y:r},p=im(i),m=nm(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Gp(d[_],T),D=Gp(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,ee=Zp(E,k,O),te=!c.arrow&&em(i)!=null&&k!==ee&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,ne=te?k<E?k-E:k-O:0;return{[p]:f[p]+ne,data:{[p]:ee,centerOffset:k-ee-ne,...te&&{alignmentOffset:ne}},reset:te}}}),Cm=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Qp(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=$p(r),_=rm(o),v=$p(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[mm(o)]:om(o)),x=p!==`none`;!d&&x&&b.push(...pm(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=am(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==rm(t))||T.every(e=>rm(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=rm(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function wm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Tm(e){return Wp.some(t=>e[t]>=0)}var Em=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Qp(e,t);switch(i){case`referenceHidden`:{let e=wm(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Tm(e)}}}case`escaped`:{let e=wm(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Tm(e)}}}default:return{}}}}},Dm=new Set([`left`,`top`]);async function Om(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=$p(n),s=em(n),c=rm(n)===`y`,l=Dm.has(o)?-1:1,u=a&&c?-1:1,d=Qp(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var km=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Om(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Am=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Qp(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=rm(i),p=tm(f),m=u[p],h=u[f],g=(e,t)=>Zp(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},jm=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Qp(e,t),u={x:n,y:r},d=rm(i),f=tm(d),p=u[f],m=u[d],h=Qp(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Dm.has($p(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Mm=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Qp(e,t),c=await i.detectOverflow(t,s),l=$p(n),u=em(n),d=rm(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Gp(p-c[m],g),y=Gp(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Kp(c.left,c.right):S=p-2*Kp(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Nm(){return typeof window<`u`}function Pm(e){return Lm(e)?(e.nodeName||``).toLowerCase():`#document`}function Fm(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Im(e){return((Lm(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Lm(e){return Nm()?e instanceof Node||e instanceof Fm(e).Node:!1}function Rm(e){return Nm()?e instanceof Element||e instanceof Fm(e).Element:!1}function zm(e){return Nm()?e instanceof HTMLElement||e instanceof Fm(e).HTMLElement:!1}function Bm(e){return!Nm()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Fm(e).ShadowRoot}function Vm(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Qm(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Hm(e){return/^(table|td|th)$/.test(Pm(e))}function Um(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Wm=/transform|translate|scale|rotate|perspective|filter/,Gm=/paint|layout|strict|content/,Km=e=>!!e&&e!==`none`,qm;function Jm(e){let t=Rm(e)?Qm(e):e;return Km(t.transform)||Km(t.translate)||Km(t.scale)||Km(t.rotate)||Km(t.perspective)||!Xm()&&(Km(t.backdropFilter)||Km(t.filter))||Wm.test(t.willChange||``)||Gm.test(t.contain||``)}function Ym(e){let t=eh(e);for(;zm(t)&&!Zm(t);){if(Jm(t))return t;if(Um(t))return null;t=eh(t)}return null}function Xm(){return qm??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),qm}function Zm(e){return/^(html|body|#document)$/.test(Pm(e))}function Qm(e){return Fm(e).getComputedStyle(e)}function $m(e){return Rm(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eh(e){if(Pm(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Bm(e)&&e.host||Im(e);return Bm(t)?t.host:t}function th(e){let t=eh(e);return Zm(t)?(e.ownerDocument||e).body:zm(t)&&Vm(t)?t:th(t)}
vendor: 4,096 bytes, line 13
13function nh(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=th(e),i=r===e.ownerDocument?.body,a=Fm(r);if(i){let e=rh(a);return t.concat(a,a.visualViewport||[],Vm(r)?r:[],e&&n?nh(e):[])}else return t.concat(r,nh(r,[],n))}function rh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ih(e){let t=Qm(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=zm(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=qp(n)!==a||qp(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ah(e){return Rm(e)?e:e.contextElement}function oh(e){let t=ah(e);if(!zm(t))return Yp(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ih(t),o=(a?qp(n.width):n.width)/r,s=(a?qp(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var sh=Yp(0);function ch(e){let t=Fm(e);return!Xm()||!t.visualViewport?sh:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function lh(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Fm(e)}function uh(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ah(e),o=Yp(1);t&&(r?Rm(r)&&(o=oh(r)):o=oh(e));let s=lh(a,n,r)?ch(a):Yp(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Fm(a),t=Rm(r)?Fm(r):r,n=e,i=rh(n);for(;i&&t!==n;){let e=oh(i),t=i.getBoundingClientRect(),r=Qm(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Fm(i),i=rh(n)}}return _m({width:u,height:d,x:c,y:l})}function dh(e,t){let n=$m(e).scrollLeft;return t?t.left+n:uh(Im(e)).left+n}function fh(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-dh(e,n),y:n.top+t.scrollTop}}function ph(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Im(r),s=t?Um(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Yp(1),u=Yp(0),d=zm(r);if((d||!a)&&((Pm(r)!==`body`||Vm(o))&&(c=$m(r)),d)){let e=uh(r);l=oh(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?fh(o,c):Yp(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function mh(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function hh(e){let t=$m(e),n=e.ownerDocument.body,r=Kp(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Kp(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+dh(e),o=-t.scrollTop;return Qm(n).direction===`rtl`&&(a+=Kp(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var gh=25;function _h(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Fm(e),a=Im(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Xm()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(dh(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=gh&&(s-=o)}return{width:s,height:c,x:l,y:u}}function vh(e,t){let n=uh(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=oh(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function yh(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=_h(e,n,t);else if(t===`document`)r=hh(Im(e));else if(Rm(t))r=vh(t,n);else{let n=ch(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return _m(r)}function bh(e,t){let n=t.get(e);if(n)return n;let r=nh(e,[],!1).filter(e=>Rm(e)&&Pm(e)!==`body`),i=null,a=Qm(e).position===`fixed`,o=a?eh(e):e;for(;Rm(o)&&!Zm(o);){let e=Qm(o),t=Jm(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=eh(o)}return t.set(e,r),r}function xh(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Um(t)?[]:bh(t,this._c):[].concat(n),r],o=yh(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=yh(t,a[e],i);
vendor: 4,493 bytes, line 13
13s=Kp(n.top,s),c=Gp(n.right,c),l=Gp(n.bottom,l),u=Kp(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Sh(e){let{width:t,height:n}=ih(e);return{width:t,height:n}}function Ch(e,t,n){let r=zm(t),i=Im(t),a=n===`fixed`,o=uh(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Yp(0);if((r||!a)&&((Pm(t)!==`body`||Vm(i))&&(s=$m(t)),r)){let e=uh(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=dh(i));let l=i&&!r&&!a?fh(i,s):Yp(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function wh(e){return Qm(e).position===`static`}function Th(e,t){if(!zm(e)||Qm(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Im(e)===n&&(n=n.ownerDocument.body),n}function Eh(e,t){let n=Fm(e);if(Um(e))return n;if(!zm(e)){let t=eh(e);for(;t&&!Zm(t);){if(Rm(t)&&!wh(t))return t;t=eh(t)}return n}let r=Th(e,t);for(;r&&Hm(r)&&wh(r);)r=Th(r,t);return r&&Zm(r)&&wh(r)&&!Jm(r)?n:r||Ym(e)||n}var Dh=async function(e){let t=this.getOffsetParent||Eh,n=this.getDimensions,r=await n(e.floating);return{reference:Ch(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Oh(e){return Qm(e).direction===`rtl`}var kh={convertOffsetParentRelativeRectToViewportRelativeRect:ph,getDocumentElement:Im,getClippingRect:xh,getOffsetParent:Eh,getElementRects:Dh,getClientRects:mh,getDimensions:Sh,getScale:oh,isElement:Rm,isRTL:Oh};function Ah(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function jh(e,t,n){let r=null,i,a=Im(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Jp(d),h=Jp(a.clientWidth-(u+f)),g=Jp(a.clientHeight-(d+p)),_=Jp(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Kp(0,Gp(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Ah(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Fm(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Mh(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ah(e),u=i||a?[...l?nh(l):[],...t?nh(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?jh(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?uh(e):null;c&&g();function g(){let t=uh(e);h&&!Ah(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Nh=km,Ph=Am,Fh=Cm,Ih=Mm,Lh=Em,Rh=Sm,zh=jm,Bh=(e,t,n)=>{let r=new Map,i=n??{},a={...kh,...i.platform,_c:r};return xm(e,t,{...i,platform:a})},Vh=typeof document<`u`?H.useLayoutEffect:function(){};function Hh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Hh(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Hh(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Uh(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Wh(e,t){let n=Uh(e);return Math.round(t*n)/n}function Gh(e){let t=H.useRef(e);return Vh(()=>{t.current=e}),t}function Kh(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=H.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=H.useState(r);Hh(f,r)||p(r);let[m,h]=H.useState(null),[g,_]=H.useState(null),v=H.useCallback(e=>
13{e!==S.current&&(S.current=e,h(e))},[]),y=H.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=H.useRef(null),C=H.useRef(null),w=H.useRef(u),T=c!=null,E=Gh(c),D=Gh(i),O=Gh(l),k=H.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Bh(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};ee.current&&!Hh(w.current,t)&&(w.current=t,fd.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Vh(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let ee=H.useRef(!1);Vh(()=>(ee.current=!0,()=>{ee.current=!1}),[]),Vh(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let te=H.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),ne=H.useMemo(()=>({reference:b,floating:x}),[b,x]),re=H.useMemo(()=>{let e={position:n,left:0,top:0};if(!ne.floating)return e;let t=Wh(ne.floating,u.x),r=Wh(ne.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Uh(ne.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,ne.floating,u.x,u.y]);return H.useMemo(()=>({...u,update:k,refs:te,elements:ne,floatingStyles:re}),[u,k,te,ne,re])}var qh=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Rh({element:r.current,padding:i}).fn(n):r?Rh({element:r,padding:i}).fn(n):{}}}},Jh=(e,t)=>{let n=Nh(e);return{name:n.name,fn:n.fn,options:[e,t]}},Yh=(e,t)=>{let n=Ph(e);return{name:n.name,fn:n.fn,options:[e,t]}},Xh=(e,t)=>({fn:zh(e).fn,options:[e,t]}),Zh=(e,t)=>{let n=Fh(e);return{name:n.name,fn:n.fn,options:[e,t]}},Qh=(e,t)=>{let n=Ih(e);return{name:n.name,fn:n.fn,options:[e,t]}},$h=(e,t)=>{let n=Lh(e);return{name:n.name,fn:n.fn,options:[e,t]}},eg=(e,t)=>{let n=qh(e);return{name:n.name,fn:n.fn,options:[e,t]}},tg=Object.defineProperty,ng=(e,t)=>tg(e,`name`,{value:t,configurable:!0});function rg(e){let[t,n]=H.useState(void 0);return be(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}ng(rg,`useSize`);var ig=Object.defineProperty,ag=(e,t)=>ig(e,`name`,{value:t,configurable:!0}),og=`Popper`,[sg,cg]=we(og),[lg,ug]=sg(og),dg=ag(e=>{let{__scopePopper:t,children:n}=e,[r,i]=H.useState(null),[a,o]=H.useState(void 0);return(0,U.jsx)(lg,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),fg=`PopperAnchor`,pg=H.forwardRef(ag(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=ug(fg,n),o=H.useRef(null),s=a.onAnchorChange,c=Ee(t,H.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=H.useRef(null);H.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&bg(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,U.jsx)(ve.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),mg=`PopperContent`,[hg,gg]=sg(mg),_g=H.forwardRef(ag(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=ug(mg,n),[_,v]=H.useState(null),y=Ee(t,v),[b,x]=H.useState(null),S=rg(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},D=Array.isArray(l)?l:[l],O=D.length>0,k={padding:E,boundary:D.filter(vg),altBoundary:O},{refs:ee,floatingStyles:te,placement:ne,isPositioned:re,middlewareData:ie}=Kh({strategy:`fixed`,placement:T,whileElementsMounted:ag((...e)=>Mh(...e,{animationFrame:p===`always`}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[Jh({mainAxis:i+w,alignmentAxis:o}),c&&Yh({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?Xh():void 0,...k}),c&&Zh({...k}),Qh({...k,apply:ag(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}
13),b&&eg({element:b,padding:s}),yg({arrowWidth:C,arrowHeight:w}),f&&$h({strategy:`referenceHidden`,...k,boundary:O?k.boundary:void 0})]}),A=g.setPlacementState;be(()=>(A(ne),()=>{A(void 0)}),[ne,A]);let[j,ae]=bg(ne),oe=He(m);be(()=>{re&&oe?.()},[re,oe]);let se=ie.arrow?.x,ce=ie.arrow?.y,M=ie.arrow?.centerOffset!==0,[N,le]=H.useState();return be(()=>{_&&le(window.getComputedStyle(_).zIndex)},[_]),(0,U.jsx)(`div`,{ref:ee.setFloating,"data-radix-popper-content-wrapper":``,style:{...te,transform:re?te.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:N,"--radix-popper-transform-origin":[ie.transformOrigin?.x,ie.transformOrigin?.y].join(` `),...ie.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,U.jsx)(hg,{scope:n,placedSide:j,placedAlign:ae,onArrowChange:x,arrowX:se,arrowY:ce,shouldHideArrow:M,children:(0,U.jsx)(ve.div,{"data-side":j,"data-align":ae,...h,ref:y,style:{...h.style,animation:re?h.style?.animation:`none`}})})})},`PopperContent`));function vg(e){return e!==null}ag(vg,`isNotNull`);var yg=ag(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=bg(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function bg(e){let[t,n=`center`]=e.split(`-`);return[t,n]}ag(bg,`getSideAndAlignFromPlacement`);var xg=dg,Sg=pg,Cg=_g,wg=Object.defineProperty,Tg=(e,t)=>wg(e,`name`,{value:t,configurable:!0}),[Eg,Dg]=we(`Tooltip`,[cg]),Og=cg(),kg=`TooltipProvider`,Ag=700,jg=`tooltip.open`,[Mg,Ng]=Eg(kg),Pg=Tg(e=>{let{__scopeTooltip:t,delayDuration:n=Ag,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=H.useRef(!0),s=H.useRef(!1),c=H.useRef(0);return H.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,U.jsx)(Mg,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:H.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:H.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:H.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),Fg=`Tooltip`,[Ig,Lg]=Eg(Fg),Rg=Tg(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=Ng(Fg,e.__scopeTooltip),l=Og(t),[u,d]=H.useState(null),[f,p]=H.useState(void 0),m=Te(),h=H.useRef(0),g=o??c.disableHoverableContent,_=s??c.delayDuration,v=H.useRef(!1),[y,b]=xe({prop:r,defaultProp:i??!1,onChange:Tg(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(jg))):c.onClose(),a?.(e)},`onChange`),caller:Fg}),x=H.useMemo(()=>y?v.current?`delayed-open`:`instant-open`:`closed`,[y]),S=H.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,b(!0)},[b]),C=H.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),w=H.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,b(!0),h.current=0},_)},[_,b]);H.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]);let T=f??m;return(0,U.jsx)(xg,{...l,children:(0,U.jsx)(Ig,{scope:t,contentId:T,setContentId:p,open:y,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:H.useCallback(()=>{c.isOpenDelayedRef.current?w():S()},[c.isOpenDelayedRef,w,S]),onTriggerLeave:H.useCallback(()=>{g?C():(window.clearTimeout(h.current),h.current=0)},[C,g]),onOpen:S,onClose:C,disableHoverableContent:g,children:n})})},`Tooltip`),zg=`TooltipTrigger`,Bg=H.forwardRef(Tg(function(e,t){let{__scopeTooltip:n,...r}=e,i=Lg(zg,n),a=Ng(zg,n),o=Og(n),s=Ee(t,H.useRef(null),i.onTriggerChange),c=H.useRef(!1),l=H.useRef(!1),u=H.useCallback(()=>c.current=!1,[]);return H.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,U.jsx)(Sg,{asChild:!0,...o,children:(0,U.jsx)(ve.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:ye(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:ye(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:ye(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:ye(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:ye(e.onBlur,i.onClose),onClick:ye(e.onClick,i.onClose)})})},`TooltipTrigger`)),[Vg,Hg]=Eg(`TooltipPortal`,{forceMount:void 0}),Ug=`TooltipContent`,Wg=H.forwardRef(Tg(function(e,t){let n=Hg(Ug,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=Lg(Ug,e.__scopeTooltip);return(0,U.jsx)(Ce,{present:r||o.open,children:o.disableHoverableContent?(0,U.jsx)(qg,{side:i,...a,ref:t}):(0,U.jsx)(Gg,{side:i,...a,ref:t})})},`TooltipContent`)),Gg=H.forwardRef(Tg(function(e,t){let n=Lg(Ug,e.__scopeTooltip),r=Ng(Ug,e.__scopeTooltip),i=H.useRef(null),a=Ee(t,i),[o,s]=H.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=H.useCallback(()=>{s(null),d(!1)},[d]),p=H.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Yg(r,Jg(r,n.getBoundingClientRect())),a=Xg(t.getBoundingClientRect()),o=Qg([...i,...a]);s(o),d(!0)},[d]);return H.useEffect(()=>()=>f(),[f]),H.useEffect(()=>{if(c&&u){let e=Tg(e=>p(e,u),`handleTriggerLeave`),t=Tg(e=>p(e,c),`handleContentLeave`);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),H.useEffect(()=>{if(o){let e=Tg(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Zg(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,U.jsx)(qg,{...e,ref:a})},`TooltipContentHoverable`)),Kg=Oe(`TooltipContent`),qg=H.forwardRef(Tg(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=Lg(Ug,n),u=Og(n),{onClose:d}=l;H.useEffect(()=>(document.addEventListener(jg,d),()=>document.removeEventListener(jg,d)),[d]),H.useEffect(()=>{if(l.trigger){let e=Tg(e=>{e.target instanceof Node&&e.target.contains(l.trigger)&&d()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]);let{setContentId:f}=l;return be(()=>(f(a),()=>{f(void 0)}),[a,f]),(0,U.jsx)(Me,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,U.jsxs)(Cg,{"data-state":l.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:l.contentId,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,U.jsx)(Kg,{children:r}),i?(0,U.jsx)(vf,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`));function Jg(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}Tg(Jg,`getExitSideFromRect`);function Yg(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}Tg(Yg,`getPaddedExitPoints`);function Xg(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}Tg(Xg,`getPointsFromRect`);function Zg(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}Tg(Zg,`isPointInPolygon`);function Qg(e){let t=e.slice();return t.sort((e,t)=>
13e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),$g(t)}Tg(Qg,`getHull`);function $g(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}Tg($g,`getHullPresorted`);var e_=Pg,t_=Rg,n_=Bg,r_=Wg,i_=e_,a_=t_,o_=n_,s_=H.forwardRef(({className:e,sideOffset:t=4,...n},r)=>(0,U.jsx)(r_,{ref:r,sideOffset:t,className:Ue(`z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2`,e),...n}));s_.displayName=r_.displayName;function c_(){let{pathname:e}=ne();return(0,H.useEffect)(()=>{window.scrollTo({top:0,left:0,behavior:`auto`})},[e]),null}var l_=class extends H.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error(`[ErrorBoundary]`,e,t.componentStack)}render(){return this.state.hasError?(0,U.jsxs)(`div`,{className:`min-h-screen bg-background flex flex-col items-center justify-center px-6 gap-4 text-center`,children:[(0,U.jsx)(`div`,{className:`w-16 h-16 rounded-full bg-destructive/10 flex items-center justify-center`,children:(0,U.jsx)(hp,{className:`w-8 h-8 text-destructive`})}),(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`h2`,{className:`text-lg font-semibold text-foreground`,children:`Something went wrong`}),(0,U.jsx)(`p`,{className:`text-sm text-muted-foreground mt-1 max-w-xs`,children:this.state.error?.message??`An unexpected error occurred.`})]}),(0,U.jsxs)(`button`,{onClick:()=>{this.setState({hasError:!1,error:null}),window.location.reload()},className:`flex items-center gap-2 bg-primary text-primary-foreground font-semibold px-6 py-3 rounded-input shadow-button active:scale-[0.98] transition-fast`,children:[(0,U.jsx)(Dp,{className:`w-4 h-4`}),` Reload App`]})]}):this.props.children}},u_=`https://ijydhdromfrqjtlpquus.supabase.co`,d_=`eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImlqeWRoZHJvbWZycWp0bHBxdXVzIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzM0MzczOTYsImV4cCI6MjA4OTAxMzM5Nn0.iZYp__ZuCG2BrTItkPhEWC2GXPlUdg29gLtQYt-pIVk`;function f_(e,t=4500){let n=[],r=e.trim();for(;r.length>0;){if(r.length<=t){n.push(r);break}let e=r.slice(0,t),i=Math.max(e.lastIndexOf(`. `),e.lastIndexOf(`! `),e.lastIndexOf(`? `)),a=i>0?i+2:t;n.push(r.slice(0,a).trim()),r=r.slice(a).trim()}return n}function p_(){let[e,t]=(0,H.useState)(`idle`),n=(0,H.useRef)(null),r=(0,H.useRef)([]),i=(0,H.useRef)(0),a=(0,H.useRef)(!1),o=(0,H.useCallback)(()=>{a.current=!0,n.current&&=(n.current.pause(),n.current.src=``,null),r.current=[],i.current=0,t(`idle`)},[]),s=(0,H.useCallback)(()=>{n.current&&!n.current.paused&&(n.current.pause(),t(`paused`))},[]),c=(0,H.useCallback)(()=>{n.current&&n.current.paused&&(n.current.play().catch(()=>{}),t(`playing`))},[]),l=(0,H.useCallback)(async(e,r)=>{try{let i=await fetch(`${u_}/functions/v1/elevenlabs-tts`,{method:`POST`,headers:{"Content-Type":`application/json`,apikey:d_,Authorization:`Bearer ${d_}`},body:JSON.stringify({text:e})});if(!i.ok||a.current){r();return}let o=await i.blob();if(a.current){r();return}let s=URL.createObjectURL(o),c=new Audio(s);n.current=c,c.onended=()=>{URL.revokeObjectURL(s),r()},c.onerror=()=>{URL.revokeObjectURL(s),r()},t(`playing`),await c.play()}catch{r()}},[]),u=(0,H.useCallback)(()=>{if(a.current){t(`idle`);return}let e=r.current,n=i.current;if(n>=e.length){t(`idle`);return}i.current+=1,l(e[n],u)},[l]),d=(0,H.useCallback)(e=>{o(),a.current=!1;let t=f_(e);r.current=t,i.current=0,t.length!==0&&u()},[o,u]);return{state:e,supported:!0,speak:d,readPage:(0,H.useCallback)(()=>{let e=document.querySelector(`main`)??document.body,t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode(e){let t=e.parentElement;if(!t)return NodeFilter.FILTER_REJECT;let n=t.tagName.toLowerCase();if([`script`,`style`,`noscript`,`button`,`input`,`textarea`,`select`,`nav`].includes(n)||t.closest(`nav, [role='navigation'], [data-radix-popper-content-wrapper]`))return NodeFilter.FILTER_REJECT;let r=e.textContent?.trim();return!r||r.length<2?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),n=[],r;for(;r=t.nextNode();){let e=r.textContent?.trim();e&&n.push(e)}let i=n.join(` `).replace(/\s+/g,` `).trim();i&&d(i)},[d]),pause:s,resume:c,stop:o}}var m_=Object.defineProperty,h_=(e,t)=>m_(e,`name`,{value:t,configurable:!0}),[g_,__]=we(`AlertDialog`,[Fe]),v_=Fe(),y_=h_(e=>{let{__scopeAlertDialog:t,...n}=e,r=v_(t);return(0,U.jsx)(Ve,{...r,...n,modal:!0})},`AlertDialog`),b_=H.forwardRef(h_(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=v_(n);return(0,U.jsx)(je,{...i,...r,ref:t})},`AlertDialogTrigger`)),x_=h_(e=>{let{__scopeAlertDialog:t,...n}=e,r=v_(t);return(0,U.jsx)(Re,{...r,...n})},`AlertDialogPortal`),S_=H.forwardRef(h_(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=v_(n);return(0,U.jsx)(Ae,{...i,...r,ref:t})},`AlertDialogOverlay`)),[C_,w_]=g_(`AlertDialogContent`),T_=H.forwardRef(h_(function(e,t){let{__scopeAlertDialog:n,children:r,...i}=e,a=v_(n),o=Ee(t,H.useRef(null)),s=H.useRef(null);return(0,U.jsx)(C_,{scope:n,cancelRef:s,children:(0,U.jsx)(ze,{role:`alertdialog`,...a,...i,ref:o,onOpenAutoFocus:ye(i.onOpenAutoFocus,e=>{e.preventDefault(),s.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:r})})},`AlertDialogContent`)),E_=H.forwardRef(h_(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=v_(n);return(0,U.jsx)(Be,{...i,...r,ref:t})},`AlertDialogTitle`)),D_=H.forwardRef(h_(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=v_(n);return(0,U.jsx)(Pe,{...i,...r,ref:t})},`AlertDialogDescription`)),O_=H.forwardRef(h_(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=v_(n);return(0,U.jsx)(Le,{...i,...r,ref:t})},`AlertDialogAction`)),k_=`AlertDialogCancel`,A_=H.forwardRef(h_(function(e,t){let{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=w_(k_,n),a=v_(n),o=Ee(t,i);return(0,U.jsx)(Le,{...a,...r,ref:o})},`AlertDialogCancel`)),j_=y_,M_=b_,N_=x_,P_=S_,F_=T_,I_=O_,L_=A_,R_=E_,z_=D_,B_
13=j_,V_=M_,H_=N_,U_=H.forwardRef(({className:e,...t},n)=>(0,U.jsx)(P_,{className:Ue(`fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t,ref:n}));U_.displayName=P_.displayName;var W_=H.forwardRef(({className:e,...t},n)=>(0,U.jsxs)(H_,{children:[(0,U.jsx)(U_,{}),(0,U.jsx)(F_,{ref:n,className:Ue(`fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg`,e),...t})]}));W_.displayName=F_.displayName;var G_=({className:e,...t})=>(0,U.jsx)(`div`,{className:Ue(`flex flex-col space-y-2 text-center sm:text-left`,e),...t});G_.displayName=`AlertDialogHeader`;var K_=({className:e,...t})=>(0,U.jsx)(`div`,{className:Ue(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});K_.displayName=`AlertDialogFooter`;var q_=H.forwardRef(({className:e,...t},n)=>(0,U.jsx)(R_,{ref:n,className:Ue(`text-lg font-semibold`,e),...t}));q_.displayName=R_.displayName;var J_=H.forwardRef(({className:e,...t},n)=>(0,U.jsx)(z_,{ref:n,className:Ue(`text-sm text-muted-foreground`,e),...t}));J_.displayName=z_.displayName;var Y_=H.forwardRef(({className:e,...t},n)=>(0,U.jsx)(I_,{ref:n,className:Ue(We(),e),...t}));Y_.displayName=I_.displayName;var X_=H.forwardRef(({className:e,...t},n)=>(0,U.jsx)(L_,{ref:n,className:Ue(We({variant:`outline`}),`mt-2 sm:mt-0`,e),...t}));X_.displayName=L_.displayName;function Z_({open:e,secondsLeft:t,onStay:n,onSignOut:r}){let[i,a]=(0,H.useState)(t);(0,H.useEffect)(()=>{a(t)},[t]);let o=Math.floor(i/60),s=i%60,c=o>0?`${o}:${String(s).padStart(2,`0`)} minutes`:`${s} second${s===1?``:`s`}`;return(0,U.jsx)(B_,{open:e,children:(0,U.jsxs)(W_,{children:[(0,U.jsxs)(G_,{children:[(0,U.jsx)(q_,{children:`Still there?`}),(0,U.jsxs)(J_,{children:[`You've been inactive for a while. For your security, you'll be automatically signed out in `,(0,U.jsx)(`strong`,{children:c}),`.`]})]}),(0,U.jsxs)(K_,{children:[(0,U.jsx)(X_,{onClick:r,children:`Sign Out`}),(0,U.jsx)(Y_,{onClick:n,children:`Stay Logged In`})]})]})})}var Q_=3600*1e3,$_=60*1e3,ev=60,tv=`inactivity_warning_start`,nv=(0,H.createContext)(void 0);function rv({children:e}){let[t,n]=(0,H.useState)(null),[r,i]=(0,H.useState)(null),[a,o]=(0,H.useState)(null),[s,c]=(0,H.useState)(!0),[l,u]=(0,H.useState)(`active`),[d,f]=(0,H.useState)(!1),[p,m]=(0,H.useState)(ev),h=(0,H.useRef)(null),g=(0,H.useRef)(null),_=(0,H.useRef)(null),v=(0,H.useRef)(null);async function y(e){try{let t=null;try{let e=localStorage.getItem(`sb-ijydhdromfrqjtlpquus-auth-token`);e&&(t=JSON.parse(e)?.access_token??null)}catch{}let n={apikey:`eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImlqeWRoZHJvbWZycWp0bHBxdXVzIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzM0MzczOTYsImV4cCI6MjA4OTAxMzM5Nn0.iZYp__ZuCG2BrTItkPhEWC2GXPlUdg29gLtQYt-pIVk`};t&&(n.Authorization=`Bearer ${t}`);let r=await fetch(`https://ijydhdromfrqjtlpquus.supabase.co/rest/v1/profiles?id=eq.${e}&select=*&limit=1`,{headers:n});if(r.ok){let e=await r.json();o(e[0]??null)}else o(null)}catch{o(null)}}async function b(){r&&await y(r.id)}let x=(0,H.useCallback)(()=>{h.current&&clearTimeout(h.current),g.current&&clearTimeout(g.current),_.current&&clearInterval(_.current)},[]),S=(0,H.useRef)(!1),C=(0,H.useCallback)(e=>{m(e),f(!0),S.current=!0;let t=e;_.current=setInterval(()=>{--t,m(t),t<=0&&_.current&&clearInterval(_.current)},1e3),g.current=setTimeout(async()=>{sessionStorage.removeItem(tv),f(!1),S.current=!1;try{await F.auth.signOut()}catch{}window.location.replace(`/login`)},e*1e3)},[]),w=(0,H.useCallback)(()=>{v.current&&(S.current||(x(),f(!1),h.current=setTimeout(()=>{sessionStorage.setItem(tv,String(Date.now())),C(ev)},Q_-$_)))},[x,C]);function T(){sessionStorage.removeItem(tv),f(!1),S.current=!1,w()}function E(){sessionStorage.removeItem(tv),f(!1),S.current=!1,x(),F.auth.signOut()}(0,H.useEffect)(()=>
13{if(!t){x(),f(!1);return}v.current=t;let e=sessionStorage.getItem(tv);if(e){let t=ev-Math.floor((Date.now()-Number(e))/1e3);if(t<=0){sessionStorage.removeItem(tv),F.auth.signOut();return}return C(t),()=>{x()}}let n=[`mousemove`,`mousedown`,`keydown`,`touchstart`,`scroll`,`click`],r=()=>w();return n.forEach(e=>window.addEventListener(e,r,{passive:!0})),w(),()=>{n.forEach(e=>window.removeEventListener(e,r)),x()}},[t]);let D=(0,H.useCallback)(e=>{let t=`user_login_logged_${e}`;sessionStorage.getItem(t)||(sessionStorage.setItem(t,`1`),F.from(`user_login_log`).insert({user_id:e,user_agent:navigator.userAgent}).then(()=>{}))},[]);(0,H.useEffect)(()=>{let e=setTimeout(()=>c(!1),8e3),{data:{subscription:t}}=F.auth.onAuthStateChange(async(t,r)=>{if(t===`TOKEN_REFRESHED`){v.current=r;return}n(r),i(r?.user??null),v.current=r,r?.user?(t===`SIGNED_IN`&&D(r.user.id),y(r.user.id).finally(()=>{clearTimeout(e),c(!1)})):(o(null),clearTimeout(e),c(!1))});return F.auth.getSession().then(({data:{session:t}})=>{t?(n(t),i(t.user),v.current=t,D(t.user.id),y(t.user.id).finally(()=>{clearTimeout(e),c(!1)})):(clearTimeout(e),c(!1))}),()=>{clearTimeout(e),t.unsubscribe()}},[]);async function O(){await F.auth.signOut()}let k=(0,H.useCallback)(async()=>{try{let{data:e,error:t}=await F.functions.invoke(`check-subscription`);!t&&e?.subscription_status&&u(e.subscription_status)}catch{}},[]);return(0,H.useEffect)(()=>{if(!t)return;k();let e=setInterval(k,6e4);return()=>clearInterval(e)},[t,k]),(0,U.jsxs)(nv.Provider,{value:{session:t,user:r,profile:a,loading:s,subscriptionStatus:l,signOut:O,refreshProfile:b,checkSubscription:k},children:[e,(0,U.jsx)(Z_,{open:d,secondsLeft:p,onStay:T,onSignOut:E})]})}function iv(){let e=(0,H.useContext)(nv);if(!e)throw Error(`useAuth must be used within AuthProvider`);return e}function av(){let{user:e}=iv(),{state:t,supported:n,readPage:r,pause:i,resume:a,stop:o}=p_();if(!e||!n)return null;function s(){t===`idle`?r():t===`playing`?i():t===`paused`&&a()}function c(e){e.stopPropagation(),o()}let l=t!==`idle`;return(0,U.jsxs)(U.Fragment,{children:[l&&(0,U.jsx)(`button`,{onClick:c,className:`fixed bottom-[3.75rem] right-[4rem] z-50 w-8 h-8 rounded-full bg-destructive/90 text-destructive-foreground flex items-center justify-center shadow-md hover:bg-destructive transition-colors`,title:`Stop reading`,children:(0,U.jsx)(Np,{className:`w-3.5 h-3.5`})}),(0,U.jsxs)(`button`,{onClick:s,className:Ue(`fixed bottom-3 right-[3.75rem] z-50 w-12 h-12 rounded-full flex items-center justify-center shadow-lg transition-all active:scale-95`,l?`bg-primary text-primary-foreground`:`bg-card text-foreground hover:bg-accent`),title:t===`idle`?`Read page aloud`:t===`playing`?`Pause reading`:`Resume reading`,children:[t===`idle`&&(0,U.jsx)(Mp,{className:`w-5 h-5`}),t===`playing`&&(0,U.jsx)(wp,{className:`w-5 h-5`}),t===`paused`&&(0,U.jsx)(Tp,{className:`w-5 h-5`})]}),t===`playing`&&(0,U.jsx)(`span`,{className:`fixed bottom-3 right-[3.75rem] z-40 w-12 h-12 rounded-full border-2 border-primary animate-ping opacity-40 pointer-events-none`})]})}var ov={textScale:1,font:`default`,line:`normal`,letter:`normal`,contrast:`off`,filter:`off`,theme:`system`,links:!1,headings:!1,focus:!1,motion:!1,cursor:`default`,readingGuide:!1,readingMask:!1,keyboardNav:!1},sv=[1,1.1,1.25,1.5,1.75,2],cv=`lsa_a11y_prefs_v1`;function lv(){try{let e=localStorage.getItem(cv);return e?{...ov,...JSON.parse(e)}:ov}catch{return ov}}function uv(){let[e,t]=(0,H.useState)(!1),[n,r]=(0,H.useState)(()=>lv()),{resolvedTheme:i,setTheme:a}=id(),o=i===`dark`?`dark`:`light`,s=(0,H.useRef)(null),c=(0,H.useRef)(null),l=(0,H.useRef)(null);(0,H.useEffect)(()=>{let e=document.documentElement;e.style.fontSize=`${n.textScale*100}%`,e.dataset.a11yFont=n.font==="default"?``:n.font,e.dataset.a11yLine=n.line===`normal`?``:n.line,e.dataset.a11yLetter=n.letter===`normal`?``:n.letter,e.dataset.a11yContrast=n.contrast===`off`?``:n.contrast,e.dataset.a11yFilter=n.filter===`off`?``:n.filter,e.dataset.a11yLinks=n.links?`on`:``,e.dataset.a11yHeadings=n.headings?`on`:``,e.dataset.a11yFocus=n.focus?`on`:``,e.dataset.a11yMotion=n.motion?`reduce`:``,e.dataset.a11yCursor=n.cursor==="default"?``:n.cursor;try{localStorage.setItem(cv,JSON.stringify(n))}catch{}},[n]),(0,H.useEffect)(()=>
13{if(!n.readingGuide)return;let e=document.createElement(`div`);e.className=`lsa-reading-guide`,document.body.appendChild(e),s.current=e;let t=t=>{e.style.top=`${t.clientY-20}px`};return window.addEventListener(`mousemove`,t),()=>{window.removeEventListener(`mousemove`,t),e.remove()}},[n.readingGuide]),(0,H.useEffect)(()=>{if(!n.readingMask)return;let e=document.createElement(`div`);e.className=`lsa-reading-mask-top`;let t=document.createElement(`div`);t.className=`lsa-reading-mask-bottom`,document.body.append(e,t),c.current=e,l.current=t;let r=n=>{let r=n.clientY;e.style.top=`0`,e.style.height=`${Math.max(0,r-140/2)}px`,t.style.top=`${r+140/2}px`,t.style.height=`${Math.max(0,window.innerHeight-(r+140/2))}px`};return window.addEventListener(`mousemove`,r),()=>{window.removeEventListener(`mousemove`,r),e.remove(),t.remove()}},[n.readingMask]);let u=(0,H.useCallback)((e,t)=>r(n=>({...n,[e]:t})),[]),d=e=>{let t=sv.indexOf(n.textScale),r=sv[Math.min(sv.length-1,Math.max(0,(t<0?0:t)+e))];u(`textScale`,r)},f=()=>r(ov),p=e=>{r(t=>{let n={...ov};return e===`vision`?{...n,textScale:1.5,contrast:`high`,links:!0,focus:!0}:e===`dyslexia`?{...n,font:`dyslexia`,line:`large`,letter:`wide`}:e===`adhd`?{...n,readingGuide:!0,readingMask:!0,motion:!0}:e===`motor`?{...n,cursor:`large`,focus:!0,keyboardNav:!0}:t})};return(0,U.jsxs)(`div`,{className:`lsa-a11y-root`,children:[(0,U.jsx)(`button`,{type:`button`,"aria-label":`Accessibility Options`,title:`Accessibility Options`,onClick:()=>t(!0),className:`fixed bottom-5 right-5 z-[2147483645] flex h-14 w-14 items-center justify-center rounded-full bg-[#1d4ed8] text-white shadow-2xl ring-2 ring-white hover:scale-105 transition-transform focus:outline-none focus:ring-4 focus:ring-blue-300`,children:(0,U.jsx)(mp,{className:`h-7 w-7`,"aria-hidden":`true`})}),e&&(0,U.jsx)(`div`,{className:`fixed inset-0 z-[2147483646] bg-black/40`,onClick:()=>t(!1),"aria-hidden":`true`}),(0,U.jsxs)(`aside`,{role:`dialog`,"aria-modal":`true`,"aria-labelledby":`a11y-center-title`,className:`fixed right-0 top-0 z-[2147483647] h-full w-full sm:w-[400px] bg-white text-slate-900 shadow-2xl transform transition-transform duration-300 ${e?`translate-x-0`:`translate-x-full`}`,children:[(0,U.jsxs)(`header`,{className:`flex items-start justify-between p-5 bg-[#1F3B4D] text-white`,children:[(0,U.jsxs)(`div`,{children:[(0,U.jsxs)(`p`,{id:`a11y-center-title`,className:`text-lg font-bold flex items-center gap-2`,children:[(0,U.jsx)(mp,{className:`h-5 w-5`,"aria-hidden":`true`}),` Accessibility Center`]}),(0,U.jsx)(`p`,{className:`text-xs text-white/80 mt-1`,children:`Customize your learning experience.`})]}),(0,U.jsx)(`button`,{"aria-label":`Close`,onClick:()=>t(!1),className:`rounded p-1 hover:bg-white/10`,children:(0,U.jsx)(Pp,{className:`h-5 w-5`})})]}),(0,U.jsxs)(`div`,{className:`h-[calc(100%-180px)] overflow-y-auto p-4 space-y-5 text-sm`,children:[(0,U.jsx)(dv,{title:`Accessibility Profiles`,icon:(0,U.jsx)(_p,{className:`h-4 w-4`}),children:(0,U.jsxs)(`div`,{className:`grid grid-cols-2 gap-2`,children:[(0,U.jsx)(pv,{onClick:()=>p(`vision`),children:`Vision Impairment`}),(0,U.jsx)(pv,{onClick:()=>p(`dyslexia`),children:`Dyslexia`}),(0,U.jsx)(pv,{onClick:()=>p(`adhd`),children:`ADHD / Focus`}),(0,U.jsx)(pv,{onClick:()=>p(`motor`),children:`Motor`})]})}),(0,U.jsx)(dv,{title:`Text Size`,icon:(0,U.jsx)(jp,{className:`h-4 w-4`}),children:(0,U.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,U.jsx)(fv,{onClick:()=>d(-1),label:`Decrease text`,children:(0,U.jsx)(bp,{className:`h-4 w-4`})}),(0,U.jsxs)(`div`,{className:`flex-1 text-center font-semibold`,children:[Math.round(n.textScale*100),`%`]}),(0,U.jsx)(fv,{onClick:()=>d(1),label:`Increase text`,children:(0,U.jsx)(Ep,{className:`h-4 w-4`})}),(0,U.jsx)(fv,{onClick:()=>u(`textScale`,1),label:`Reset text`,children:(0,U.jsx)(Op,{className:`h-4 w-4`})})]})}),(0,U.jsx)(dv,{title:`Font`,icon:(0,U.jsx)(jp,{className:`h-4 w-4`}),children:(0,U.jsx)(mv,{value:n.font,onChange:e=>u(`font`,e),options:[{v:`default`,l:`Default`},{v:`dyslexia`,l:`Dyslexia`},{v:`readable`,l:`Readable`},{v:`sans`,l:`Sans Serif`}]})}),(0,U.jsx)(dv,{title:`Line Height`,icon:(0,U.jsx)(Ap,{className:`h-4 w-4`}),children:(0,U.jsx)(mv,{value:n.line,onChange:e=>u(`line`,e),options:[{v:`normal`,l:`Normal`},{v:`medium`,l:`Medium`},{v:`large`,l:`Large`},{v:`xlarge`,l:`Extra`}]})}),(0,U.jsx)(dv,{title:`Letter Spacing`,icon:(0,U.jsx)(Cp,{className:`h-4 w-4`}),children:(0,U.jsx)(mv,{value:n.letter,onChange:e=>u(`letter`,e),options:[{v:`normal`,l:`Normal`},{v:`wide`,l:`Wide`},{v:`xwide`,l:`Extra Wide`}]})}),(0,U.jsxs)(dv,{title:`Reading Aids`,icon:(0,U.jsx)(qe,{className:`h-4 w-4`}),children:[(0,U.jsx)(hv,{label:`Reading Guide`,checked:n.readingGuide,onChange:e=>u(`readingGuide`,e)}),(0,U.jsx)(hv,{label:`Reading Mask`,checked:n.readingMask,onChange:e=>u(`readingMask`,e)})]}),(0,U.jsxs)(dv,{title:`Color & Contrast`,icon:(0,U.jsx)(gp,{className:`h-4 w-4`}),children:[(0,U.jsx)(hv,{label:`High Contrast`,checked:n.contrast===`high`,onChange:e=>u(`contrast`,e?`high`:`off`)}),(0,U.jsxs)(`div`,{className:`grid grid-cols-2 gap-2 mt-2`,children:[(0,U.jsxs)(pv,{active:o===`dark`,onClick:()=>a(`dark`),children:[(0,U.jsx)(xp,{className:`inline h-3 w-3 mr-1`}),` Dark`]}),(0,U.jsxs)(pv,{active:o===`light`,onClick:()=>a(`light`),children:[(0,U.jsx)(kp,{className:`inline h-3 w-3 mr-1`}),` Light`]})]}),(0,U.jsxs)(`div`,{className:`mt-3`,children:[(0,U.jsx)(`p`,{className:`font-semibold mb-1 text-xs uppercase text-slate-500`,children:`Color Filters`}),(0,U.jsx)(mv,{value:n.filter,onChange:e=>u(`filter`,e),options:[{v:`off`,l:`Off`},{v:`grayscale`,l:`Grayscale`},{v:`bluelight`,l:`Blue Light`},{v:`lowsat`,l:`Low Sat`},{v:`highsat`,l:`High Sat`},{v:`invert`,l:`Invert`}]})]})]}),(0,U.jsxs)(dv,{title:`Visual Emphasis`,icon:(0,U.jsx)(yp,{className:`h-4 w-4`}),children:[(0,U.jsx)(hv,{label:`Highlight Links`,checked:n.links,onChange:e=>u(`links`,e)}),(0,U.jsx)(hv,{label:`Highlight Headings`,checked:n.headings,onChange:e=>u(`headings`,e)}),(0,U.jsx)(hv,{label:`Highlight Focus`,checked:n.focus,onChange:e=>u(`focus`,e)})]}),(0,U.jsx)(dv,{title:`Motion`,icon:(0,U.jsx)(wp,{className:`h-4 w-4`}),children:(0,U.jsx)(hv,{label:`Pause Animations`,checked:n.motion,onChange:e=>u(`motion`,e)})}),(0,U.jsx)(dv,{title:`Cursor`,icon:(0,U.jsx)(Sp,{className:`h-4 w-4`}),children:(0,U.jsx)(mv,{value:n.cursor,onChange:e=>
13u(`cursor`,e),options:[{v:`default`,l:`Default`},{v:`large`,l:`Large`},{v:`xlarge`,l:`Extra Large`},{v:`contrast`,l:`High Vis`}]})}),(0,U.jsxs)(dv,{title:`Keyboard Navigation`,icon:(0,U.jsx)(vp,{className:`h-4 w-4`}),children:[(0,U.jsx)(hv,{label:`Enhanced Keyboard Mode`,checked:n.keyboardNav,onChange:e=>{u(`keyboardNav`,e),u(`focus`,e||n.focus)}}),(0,U.jsx)(`p`,{className:`mt-2 text-xs text-slate-500`,children:`Tab to move • Shift+Tab back • Enter to activate • Esc to close dialogs`})]}),(0,U.jsx)(`a`,{href:`/accessibility`,className:`block text-center text-xs text-blue-700 underline pt-2 pb-6`,children:`View Accessibility Statement`})]}),(0,U.jsxs)(`footer`,{className:`absolute bottom-0 left-0 right-0 border-t bg-slate-50 p-3 flex gap-2`,children:[(0,U.jsx)(`button`,{onClick:f,className:`flex-1 rounded-md border border-slate-300 bg-white py-2 text-sm font-semibold hover:bg-slate-100`,children:`Reset All`}),(0,U.jsx)(`button`,{onClick:()=>t(!1),className:`flex-1 rounded-md bg-[#1F3B4D] py-2 text-sm font-semibold text-white hover:bg-[#16303f]`,children:`Done`})]})]})]})}function dv({title:e,icon:t,children:n}){return(0,U.jsxs)(`div`,{role:`group`,"aria-label":e,children:[(0,U.jsxs)(`p`,{className:`flex items-center gap-2 font-semibold text-slate-800 mb-2`,children:[t,e]}),(0,U.jsx)(`div`,{className:`space-y-2`,children:n})]})}function fv({children:e,onClick:t,label:n}){return(0,U.jsx)(`button`,{"aria-label":n,onClick:t,className:`rounded-md border border-slate-300 bg-white p-2 hover:bg-slate-100`,children:e})}function pv({children:e,onClick:t,active:n}){return(0,U.jsx)(`button`,{type:`button`,"aria-pressed":!!n,onClick:t,className:`rounded-md border px-3 py-2 text-xs font-semibold text-center transition ${n?`bg-[#1F3B4D] text-white border-[#1F3B4D]`:`bg-white border-slate-300 hover:border-[#1F3B4D]`}`,children:e})}function mv({value:e,onChange:t,options:n}){return(0,U.jsx)(`div`,{className:`grid grid-cols-2 gap-2`,children:n.map(n=>(0,U.jsx)(`button`,{onClick:()=>t(n.v),className:`rounded-md border px-3 py-2 text-xs font-semibold transition ${e===n.v?`bg-[#1F3B4D] text-white border-[#1F3B4D]`:`bg-white border-slate-300 hover:border-[#1F3B4D]`}`,children:n.l},n.v))})}function hv({label:e,checked:t,onChange:n}){return(0,U.jsxs)(`label`,{className:`flex items-center justify-between gap-3 cursor-pointer`,children:[(0,U.jsx)(`span`,{children:e}),(0,U.jsx)(`button`,{type:`button`,role:`switch`,"aria-checked":t,onClick:()=>n(!t),className:`relative h-6 w-11 rounded-full transition ${t?`bg-[#1d4ed8]`:`bg-slate-300`}`,children:(0,U.jsx)(`span`,{className:`absolute top-0.5 h-5 w-5 rounded-full bg-white shadow transition ${t?`left-[22px]`:`left-0.5`}`})})]})}var gv={super_admin:`Super Admin`,admin:`Admin`,success_coach:`Success Coach`,academic_coach:`Academic Coach`},_v={super_admin:`bg-destructive/10 text-destructive border-destructive/20`,admin:`bg-primary/10 text-primary border-primary/20`,success_coach:`bg-teal-500/10 text-teal-600 border-teal-500/20`,academic_coach:`bg-amber-500/10 text-amber-600 border-amber-500/20`},vv=(0,H.createContext)({isAdmin:!1,isStaff:!1,isSuperAdmin:!1,staffRole:null,loading:!0});function yv({children:e}){let{user:t,loading:n}=iv(),[r,i]=(0,H.useState)(null),[a,o]=(0,H.useState)(!0),s=(0,H.useRef)(null);(0,H.useEffect)(()=>{if(s.current&&clearTimeout(s.current),n)return s.current=setTimeout(()=>o(!1),5e3),()=>{s.current&&clearTimeout(s.current)};if(!t){i(null),o(!1);return}return s.current=setTimeout(()=>o(!1),3e3),Promise.resolve(F.from(`admin_roles`).select(`role`).eq(`user_id`,t.id).maybeSingle()).then(({data:e})=>{let n=e?.role??null;if(i(n),o(!1),s.current&&clearTimeout(s.current),n){let e=`staff_login_logged_${t.id}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),F.from(`staff_login_log`).insert({user_id:t.id,user_agent:navigator.userAgent}).then(()=>{}))}}).catch(()=>{o(!1),s.current&&clearTimeout(s.current)}),()=>{s.current&&clearTimeout(s.current)}},[t?.id,n]);let c=r!==null,l=r===`super_admin`||r===`admin`,u=r===`super_admin`;return(0,U.jsx)(vv.Provider,{value:{isAdmin:l,isStaff:c,isSuperAdmin:u,staffRole:r,loading:a},children:e})}function bv(){return(0,H.useContext)(vv)}var xv=(0,H.createContext)({isObserver:!1,loading:!0});function Sv({children:e}){let{user:t}=iv(),[n,r]=(0,H.useState)(!1),[i,a]=(0,H.useState)(!0);return(0,H.useEffect)(()=>
13{if(!t){r(!1),a(!1);return}F.from(`observer_roles`).select(`id`).eq(`user_id`,t.id).maybeSingle().then(({data:e})=>{r(!!e),a(!1)})},[t]),(0,U.jsx)(xv.Provider,{value:{isObserver:n,loading:i},children:e})}function Cv(){return(0,H.useContext)(xv)}var wv=(0,H.createContext)({isPreviewMode:!1,previewStudentId:null,previewProfile:null,startPreview:async()=>{},exitPreview:()=>{}});function Tv({children:e}){let[t,n]=(0,H.useState)(null),[r,i]=(0,H.useState)(null),a=(0,H.useCallback)(async e=>{let{data:t}=await F.from(`profiles`).select(`*`).eq(`id`,e).maybeSingle();n(e),i(t??null)},[]),o=(0,H.useCallback)(()=>{n(null),i(null)},[]);return(0,U.jsx)(wv.Provider,{value:{isPreviewMode:t!==null,previewStudentId:t,previewProfile:r,startPreview:a,exitPreview:o},children:e})}function Ev(){return(0,H.useContext)(wv)}var Dv=`lsa-public-es-cache-v2`,Ov=[`placeholder`,`title`,`aria-label`],kv=/\b(home|course|courses|student|students|admin|dashboard|reports|report|settings|profile|payment|payments|message|messages|calendar|transcript|account|search|start|continue|completed|complete|progress|active|pending|save|cancel|back|next|previous|quiz|lesson|study|credits|grade|gpa|announcement|staff|website|program|programs|apply|contact|question|questions|loading|view|all|my|your|welcome|today|current|not started|in progress)\b/i,Av=/[áéíóúñ¿¡]|\b(inicio|curso|cursos|estudiante|estudiantes|administración|tablero|reportes|configuración|perfil|pagos|mensajes|calendario|transcripción|cuenta|buscar|comenzar|continuar|completado|completa|progreso|activo|pendiente|guardar|cancelar|atrás|siguiente|anterior|examen|lección|estudio|créditos|grado|anuncio|sitio web|programa|aplicar|contacto|pregunta|cargando|todo|bienvenido|hoy|no iniciado)\b/i,jv=new Set([`SCRIPT`,`STYLE`,`NOSCRIPT`,`TEXTAREA`,`INPUT`,`CODE`,`PRE`]);function Mv(e){return e.replace(/\s+/g,` `).trim()}function Nv(e){return/[A-Za-zÀ-ÿ]/.test(e)&&Mv(e).length>1}function Pv(e){let t=Mv(e);return!t||Av.test(t)?!1:kv.test(t)||!Av.test(t)}function Fv(e,t,n=!1){return!e||t===`public`&&e.closest(`[data-portal-root]`)||e.closest(`[data-no-auto-translate="true"]`)||e.closest(`[contenteditable="true"]`)||e.closest(`svg`)||e instanceof HTMLElement&&e.dataset.noAutoTranslate===`true`?!0:n&&(e.tagName===`INPUT`||e.tagName===`TEXTAREA`)?!1:jv.has(e.tagName)}function Iv(e,t){return`${e.match(/^\s*/)?.[0]??``}${t}${e.match(/\s*$/)?.[0]??``}`}function Lv(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return(t>>>0).toString(36)}function Rv({scope:e,rootRef:t}){let{lang:n}=Xe(),r=(0,H.useRef)(n);r.current=n;let i=ne(),a=(0,H.useRef)({}),o=(0,H.useRef)(!1),s=(0,H.useRef)(new Set),c=(0,H.useRef)(null),l=(0,H.useRef)(null),u=(0,H.useRef)(new WeakMap),d=(0,H.useRef)(new WeakMap),f=(0,H.useRef)(new WeakMap),p=(e,t,n)=>{let r=f.current.get(e)??{};r[t]=n,f.current.set(e,r)},m=(0,H.useRef)(new WeakMap),h=(0,H.useCallback)(()=>t?t.current:typeof document<`u`?document.body:null,[t]),g=(0,H.useCallback)(t=>e===`public`?t:`${i.pathname}:${t}`,[e,i.pathname]);(0,H.useEffect)(()=>{if(e===`public`)try{let e=JSON.parse(window.localStorage.getItem(Dv)||`{}`);e&&typeof e==`object`&&(a.current={...e,...a.current})}catch{}},[e]);let _=(0,H.useCallback)(()=>{if(e===`public`)try{let e=Object.entries(a.current).slice(-3e3);window.localStorage.setItem(Dv,JSON.stringify(Object.fromEntries(e)))}catch{}},[e]),v=(0,H.useCallback)(()=>{let e=h();if(!e)return;let t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=t.nextNode();for(;n;){let e=n,r=u.current.get(e),i=d.current.get(e);r!==void 0&&i!==void 0&&e.textContent===i&&i!==r&&(e.textContent=r),n=t.nextNode()}e.querySelectorAll(`*`).forEach(e=>{let t=m.current.get(e);t&&Ov.forEach(n=>{let r=t[n],i=f.current.get(e)?.[n];r!==void 0&&i!==void 0&&e.getAttribute(n)===i&&e.setAttribute(n,r)})})},[h]),y=(0,H.useCallback)(async()=>{let t=h();if(!t)return;if(e===`public`&&n!==`en`&&!o.current){try{let e=await P(()=>import(`./publicEs-CW3qevvM.js`),[]),t=e.default??e;a.current={...a.current,...t}}catch{}o.current=!0}if(n===`en`){v();return}let i=new Map,c=new Map,l=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,{acceptNode:t=>{let n=t,r=n.parentElement,i=n.textContent??``;return!r||Fv(r,e)||!Nv(i)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),y=l.nextNode();for(;y;){let t=y,n=t.textContent??``,r=d.current.get(t);r!==void 0&&n!==r&&(u.current.delete(t),d.current.delete(t)),!u.current.has(t)&&Pv(n)&&u.current.set(t,n);let o=u.current.get(t)??n;if(!Pv(o)){y=l.nextNode();continue}let s=Mv(o),c=e===`public`?`portal_public_v2_text`:`portal_${e}_text`,f=g(Lv(s)),p=`${c}:${f}`,m=a.current[p];if(m){let e=Iv(o,m);t.textContent!==e&&(t.textContent=e,d.current.set(t,e))}else{let e=i.get(p);e?(e.nodes.push(t),e.originals.push(o)):i.set(p,{item:{source_type:c,source_id:f,text:s},nodes:[t],originals:[o]})}y=l.nextNode()}t.querySelectorAll(`*`).forEach(t=>{Fv(t,e,!0)||Ov.forEach(n=>{let r=t.getAttribute(n);if(!r||!Nv(r))return;let i=m.current.get(t)??{},o=f.current.get(t)?.[n];if(o!==void 0&&r!==o){delete i[n];let e=f.current.get(t);e&&delete e[n]}i[n]===void 0&&Pv(r)&&(i[n]=r,m.current.set(t,i));let s=i[n]??r;if(!Pv(s))return;let l=Mv(s),u=`portal_${e}${e===`public`?`_v2`:``}_attr_${n.replace(/[^a-z]/g,`_`)}`,d=g(Lv(`${n}:${l}`)),h=`${u}:${d}`,_=a.current[h];if(_)t.getAttribute(n)!==_&&(t.setAttribute(n,_),p(t,n,_));else{let e=c.get(h);e?(e.elements.push(t),e.originals.push(s)):c.set(h,{item:{source_type:u,source_id:d,text:l},elements:[t],attr:n,originals:[s]})}})});let b=[...Array.from(i.values(),e=>e.item),...Array.from(c.values(),e=>e.item)].filter(e=>{let t=`${e.source_type}:${e.source_id}`;return!a.current[t]&&!s.current.has(t)});if(b.length!==0){for(let e=0;e<b.length;e+=25){let t=b.slice(e,e+25);
13t.forEach(e=>s.current.add(`${e.source_type}:${e.source_id}`));try{let{data:e,error:o}=await F.functions.invoke(`translate-content`,{body:{items:t,target_lang:n}});if(o){console.error(`Portal translation batch failed:`,o);continue}(e?.translations)?.forEach(e=>{let o=t.find(t=>t.source_id===e.source_id);if(!o)return;let s=`${o.source_type}:${o.source_id}`;if(a.current[s]=e.translated_text,r.current!==n)return;let l=i.get(s);l&&l.nodes.forEach((t,n)=>{let r=Iv(l.originals[n],e.translated_text);t.textContent=r,d.current.set(t,r)});let u=c.get(s);u&&u.elements.forEach(t=>{t.setAttribute(u.attr,e.translated_text),p(t,u.attr,e.translated_text)})})}catch(e){console.error(`Portal auto-translation failed:`,e)}finally{t.forEach(e=>s.current.delete(`${e.source_type}:${e.source_id}`))}}_()}},[n,g,v,h,e,_]);return(0,H.useEffect)(()=>{let e=h();if(!e)return;let t=()=>{l.current&&window.clearTimeout(l.current),l.current=window.setTimeout(()=>{y()},120)};return t(),c.current?.disconnect(),c.current=new MutationObserver(()=>{t()}),c.current.observe(e,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:Ov}),()=>{c.current?.disconnect(),c.current=null,l.current&&=(window.clearTimeout(l.current),null)}},[y,h]),null}function zv(e,t={}){if(typeof window>`u`)return;window.__lovableEvents?.captureException?.(e,{source:`react_error_boundary`,route:window.location.pathname,...t},{mechanism:`react_error_boundary`,handled:!1,severity:`error`});let n=e instanceof Response?`Response ${e.status}${e.url?` at ${e.url}`:``}`:e instanceof Error?e.message:String(e);window.__lovableReportRuntimeError?.({message:n,stack:e instanceof Error?e.stack:void 0,filename:window.location.pathname})}var Bv=`/assets/styles-B0bOFH3A.css`,Vv=`Learn Star Academy | Accredited Adult High School`,Hv=`Learn Star Academy — an accredited adult high school helping students earn their diploma at their own pace.`,Uv=`https://www.learnstar.com/og/global.jpg`;function Wv({error:e}){console.error(e);let t=ae();return(0,H.useEffect)(()=>{zv(e,{boundary:`tanstack_root_error_component`})},[e]),(0,U.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-background p-6`,children:(0,U.jsxs)(`div`,{className:`w-full max-w-md text-center`,children:[(0,U.jsx)(`h1`,{className:`mb-2 text-xl font-bold text-foreground`,children:`This page didn't load`}),(0,U.jsx)(`p`,{className:`mb-6 text-muted-foreground`,children:`Something went wrong on our end. Try again, or head back to the homepage.`}),(0,U.jsxs)(`div`,{className:`flex flex-wrap justify-center gap-2`,children:[(0,U.jsx)(`button`,{className:`rounded-md bg-primary px-4 py-2 text-primary-foreground`,onClick:()=>t.invalidate(),children:`Try again`}),(0,U.jsx)(`a`,{className:`rounded-md border border-border px-4 py-2 text-foreground`,href:`/`,children:`Go home`})]})]})})}var Gv=xl()({head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1.0, viewport-fit=cover`},{title:Vv},{name:`description`,content:Hv},{name:`author`,content:`Learn Star Academy`},{name:`google-site-verification`,content:`9rSRoxphO0zqMtMTMrfmxosXNXNqBZp5lGJB5K43xNk`},{name:`theme-color`,content:`#0A1628`},{name:`mobile-web-app-capable`,content:`yes`},{name:`apple-mobile-web-app-capable`,content:`yes`},{name:`apple-mobile-web-app-status-bar-style`,content:`black-translucent`},{name:`apple-mobile-web-app-title`,content:`LearnStar`},{property:`og:title`,content:Vv},{property:`og:description`,content:Hv},{property:`og:type`,content:`website`},{property:`og:image`,content:Uv},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:image`,content:Uv}],links:[{rel:`stylesheet`,href:Bv},{rel:`icon`,href:`/learn-star-favicon.png?v=20260614`,type:`image/png`},{rel:`manifest`,href:`/manifest.webmanifest`},{rel:`apple-touch-icon`,href:`/learn-star-pwa-192.png?v=20260614`},{rel:`apple-touch-icon`,sizes:`512x512`,href:`/learn-star-pwa-512.png?v=20260614`},{rel:`preconnect`,href:`https://fonts.googleapis.com`},{rel:`preconnect`,href:`https://fonts.gstatic.com`,crossOrigin:`anonymous`},{rel:`stylesheet`,href:`https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;1,500&family=Public+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700;800;900&family=Oswald:wght@300;400;500;600;700&family=Great+Vibes&family=Cinzel+Decorative:wght@400;700;900&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Pinyon+Script&family=Alex+Brush&family=Tangerine:wght@400;700&display=swap`}],scripts:[{type:`application/ld+json`,children:JSON.stringify(fe)}
13,{src:`https://www.googletagmanager.com/gtag/js?id=G-0L4CHRDMYB`,async:!0},{src:`https://analytics.ahrefs.com/analytics.js`,"data-key":`33LCQEBBMNjSv6jb6kS6vw`,async:!0},{children:`
vendor: 124 bytes, line 13
13window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', '
13G-0L4CHRDMYB
vendor: 3 bytes, line 13
13');
13`}]}),errorComponent:Wv,component:Kv});function Kv(){return(0,U.jsxs)(`html`,{lang:`en`,className:`light`,style:{colorScheme:`light`},suppressHydrationWarning:!0,children:[(0,U.jsxs)(`head`,{children:[(0,U.jsx)(`script`,{dangerouslySetInnerHTML:{__html:`try{if(!localStorage.getItem('lsa-theme')){var p=JSON.parse(localStorage.getItem('lsa_a11y_prefs_v1')||'null');var t=p&&p.theme;if(t==='dark'||t==='light'){localStorage.setItem('lsa-theme',t)}}}catch(e){}`}}),(0,U.jsx)(Wl,{})]}),(0,U.jsxs)(`body`,{children:[(0,U.jsx)(l_,{children:(0,U.jsx)(ad,{attribute:`class`,defaultTheme:`light`,enableSystem:!1,themes:[`light`,`dark`],storageKey:`lsa-theme`,children:(0,U.jsxs)(i_,{children:[(0,U.jsx)(Up,{}),(0,U.jsx)(Vd,{}),(0,U.jsx)(c_,{}),(0,U.jsx)(Ze,{children:(0,U.jsx)(rv,{children:(0,U.jsx)(yv,{children:(0,U.jsx)(Sv,{children:(0,U.jsxs)(Tv,{children:[(0,U.jsx)(Rv,{scope:`public`}),(0,U.jsx)(av,{}),(0,U.jsx)(uv,{}),(0,U.jsx)(Nl,{})]})})})})})]})})}),(0,U.jsx)(Kl,{})]})]})}var qv=5,Jv=300*1e3,Yv=new Set(Object.values(me).map(e=>e.path.toLowerCase())),Xv=null;async function Zv(){if(Xv&&Date.now()-Xv.at<Jv)return Xv.slugs;let e=new Set;try{let{data:t}=await F.from(`blog_posts`).select(`slug, slug_history`).eq(`status`,`published`);for(let n of t??[]){e.add(n.slug.toLowerCase());for(let t of n.slug_history??[])e.add(t.toLowerCase())}Xv={at:Date.now(),slugs:e}}catch{return Xv?.slugs??e}return e}async function Qv(e){if(Yv.has(e))return!0;let t=e.match(/^\/blog\/([^/]+)$/);return t?(await Zv()).has(t[1]):!1}async function $v(e){try{let{data:t}=await F.from(`url_redirects`).select(`to_path`).eq(`from_path`,e).maybeSingle();return t?.to_path??null}catch{return null}}async function ey(e){let t=await $v(e);if(t&&t!==e)return t;let n=e.toLowerCase();return n!==e&&await Qv(n)?n:null}async function ty(e){let t=new Set([e]),n=e;for(let e=0;e<qv;e++){let e=await ey(n);if(!e||t.has(e))break;t.add(e),n=e}return n===e?null:n}var ny=`x-lsa-http-status`;function ry(e){return{name:ny,content:String(e)}}var iy={"a-major-milestone-for-learn-star-academy":`/og/blog/a-major-milestone-for-learn-star-academy.jpg`,"adult-high-school-diploma-online":`/og/blog/adult-high-school-diploma-online.jpg`,"future-ready-adult-high-school":`/og/blog/future-ready-adult-high-school.png`,"why-adults-should-complete-high-school-online":`/og/blog/why-adults-should-complete-high-school-online.jpg`};function ay(e){let t=iy[e];return t?`https://www.learnstar.com${t}`:void 0}var oy=300*1e3,sy=new Map;async function cy(e,t){let n=`${e}:${t}`,r=sy.get(n);if(r&&Date.now()-r.at<oy)return r.row;try{let{data:r}=await F.from(`seo_meta`).select(`*`).eq(`entity_type`,e).eq(`entity_id`,t).maybeSingle(),i=r??null;return sy.set(n,{at:Date.now(),row:i}),i}catch{return r?.row??null}}function ly(e,t,n={}){let r=ge({override:t,defaults:{title:e.title,description:e.description,path:e.path,keywords:e.keywords,image:e.ogImage||_e}}),i=e.schema?Array.isArray(e.schema)?e.schema:[e.schema]:[],a=t?.custom_jsonld,o=[...n.schemas??i,...a?Array.isArray(a)?a:[a]:[]];return{...r,robots:e.noindex?`noindex,nofollow`:r.robots,ogType:n.ogType??`website`,schemas:o}}async function uy(e){let t=me[e];if(!t)throw Error(`Unknown SEO page key: ${e}`);let n=t.entityType&&t.entityId?await cy(t.entityType,t.entityId):null;return ly(t,e===`accreditation`?dy(n):n)}function dy(e){if(!e)return e;let t={...e};for(let[e,n]of Object.entries(t))e.endsWith(`title`)&&typeof n==`string`&&/cognia/i.test(n)&&(t[e]=null);return t}function fy(e){return ly(me[e],null)}function py(e,t=155){let n=e.replace(/<[^>]+>/g,` `).replace(/&nbsp;/g,` `).replace(/\s+/g,` `).trim().match(/[^.!?]+[.!?]+(\s|$)/g)??[],r=``;for(let e of n){let n=r?`${r} ${e.trim()}`:e.trim();if(n.length>t)break;r=n}return r}async function my(e){let t=`/blog/${e.slug}`,n=await cy(`blog_post`,e.id),r=[{"@context":`https://schema.org`,"@type":`BlogPosting`,headline:e.title,description:e.excerpt||void 0,image:e.cover_image_url||void 0,datePublished:e.published_at||void 0,dateModified:e.updated_at||e.published_at||void 0,author:{"@type":`Organization`,name:`Learn Star Academy`},publisher:{"@type":`Organization`,name:`Learn Star Academy`,logo:{"@type":`ImageObject`,url:`${pe}/learn-star-logo-current.png`}},mainEntityOfPage:`${pe}${t}`},{"@context":`https://schema.org`,"@type":`BreadcrumbList`,itemListElement:[{"@type":`ListItem`,position:1,name:`Home`,item:`${pe}/`},{"@type":`ListItem`,position:2,name:`Blog`,item:`${pe}/blog`},{"@type":`ListItem`,position:3,name:e.title,item:`${pe}${t}`}]}];return ly({title:`${e.title} | Learn Star Academy`,description:py(e.excerpt||``)||`${e.title} — insights from Learn Star Academy, an accredited adult high school.`,path:t,ogImage:ay(e.slug)??(e.cover_image_url||void 0)},n,{ogType:`article`,schemas:r})}function hy(e,t){let n=e??(t?fy(t):void 0);return n?{meta:[{title:n.title},{name:`description`,content:n.description},{name:`robots`,content:n.robots},{property:`og:title`,content:n.ogTitle},{property:`og:description`,content:n.ogDescription},{property:`og:type`,content:n.ogType},{property:`og:url`,content:n.canonical},{property:`og:image`,content:n.ogImage},{property:`og:site_name`,content:`Learn Star Academy`},{name:`twitter:card`,content:n.twitterCard},{name:`twitter:title`,content:n.twitterTitle},{name:`twitter:description`,content:n.twitterDescription},{name:`twitter:image`,content:n.twitterImage}
13],links:[{rel:`canonical`,href:n.canonical}],scripts:n.schemas.map(e=>({type:`application/ld+json`,children:JSON.stringify(e)}))}:{meta:[{name:`robots`,content:`noindex,nofollow`}]}}function gy(e,t){let n={meta:[{title:e},{name:`robots`,content:`noindex,nofollow`}]};return t&&(n.links=[{rel:`canonical`,href:`${pe}${t}`}]),n}var _y=W(`/$`)({loader:async({location:e})=>{let t=await ty(e.pathname);if(t)throw s({href:`${t}${e.searchStr??``}${e.hash?`#${e.hash}`:``}`,statusCode:301});return null},head:()=>({meta:[...gy(`Page Not Found | Learn Star Academy`).meta,ry(404)]}),component:G(()=>P(()=>import(`./_-DSIAlQ1g.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23])),`component`)}),vy=W(`/_admin`)({head:()=>gy(`Administration | Learn Star Academy`),component:G(()=>P(()=>import(`./_admin-BPKJYnIC.js`),__vite__mapDeps([24,1,2,14,13,25,7,26,27,10,28,11,9,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,18,45,46,47,48,15,49,50,51,16,52,53,54,20,19,21,22,55,56,57,58,59,60,61])),`component`)}),yy=W(`/_app`)({head:()=>gy(`Student Portal | Learn Star Academy`),component:G(()=>P(()=>import(`./_app-Cr7XL3FT.js`),__vite__mapDeps([62,1,60,2,61,22,59,63,7,11,64,13,30,31,39,34,41,37,38,9,10,29,32,40,42,36,43,44,18,45,46,47,48,49,54,19,20,58])),`component`)}),by=`315c36a7-68cc-4f8d-a5f5-026752d2ea9f`,xy=`226ceb8c-d72b-4e51-83bc-48d3d48f4d1a`;function Sy(e,t){if(!t)return t;let n=t;return e===by&&(n=n.replace(/(Tuition:\s*)\$(99|129)(\s*(?:\/|per)\s*month)/gi,`$1starting at $$$2/month`)),e===xy&&(n=n.replace(/\s*Learn Sta(?:ge|r) Academy is completing the self-study report[^.]*\./i,``)),n.replace(/\s*\bCognia\b( and| \|)?/g,``)}var Cy=300*1e3,wy=new Map;async function Ty(e,t,n){let r=wy.get(e);if(r&&Date.now()-r.at<Cy)return r.value;try{let n=await t();return wy.set(e,{at:Date.now(),value:n}),n}catch{return r?.value??n}}function Ey(e){return Ty(`website_settings:${e}`,async()=>{let{data:t}=await F.from(`website_settings`).select(`content`).eq(`id`,e).maybeSingle();return t?.content??{}},{})}function Dy(){return Ty(`faq:categories`,async()=>{let[{data:e},{data:t}]=await Promise.all([F.from(`faq_categories`).select(`*`).eq(`is_active`,!0).order(`sort_order`),F.from(`faq_items`).select(`*`).eq(`is_active`,!0).order(`sort_order`)]);return(e??[]).map(e=>({id:e.id,title:e.title,emoji:e.emoji,items:(t??[]).filter(t=>t.category_id===e.id).map(e=>({id:e.id,q:e.question,a:Sy(e.id,e.answer)}))})).filter(e=>e.items.length>0)},[])}function Oy(){return Ty(`application_fields`,async()=>{let{data:e}=await F.from(`application_fields`).select(`id, label, field_type, placeholder, options, is_required, is_core, sort_order`).eq(`is_active`,!0).order(`sort_order`);return e??[]},[])}var ky={"/":`home`,"/home-page":`home`,"/about":`about`,"/accreditation":`accreditation`,"/accessibility":`accessibility`,"/app":`app`,"/apply":`apply`,"/blog":`blog`,"/bryte":`bryte`,"/brtye":`bryte`,"/college-career-prep-diploma":`college_career_prep_diploma`,"/standard-career-ready-diploma":`standard_career_ready_diploma`,"/competency-based-learning":`competency_based_learning`,"/contact":`contact`,"/courses-catalog":`courses`,"/enrollment-agreement":`enrollment_agreement`,"/enrollment-success":`enrollment_success`,"/faq":`faq`,"/handbook":`handbook`,"/outcomes":`outcomes`,"/privacy":`privacy`,"/programs":`programs`,"/reviews":`reviews`,"/terms":`terms`,"/thank-you":`thank_you`,"/trust":`trust`,"/tuition":`tuition`,"/unsubscribe":`unsubscribe`};function Ay(e){let t=e.replace(/\/+$/,``)||`/`;return ky[t]?ky[t]:t.startsWith(`/blog/`)?`blog`:null}var jy=W(`/_www`)({loader:async({location:e})=>{let t=Ay(e.pathname),[n,r]=await Promise.all([Ey(`footer`).catch(()=>({})),t?Ey(t).catch(()=>({})):Promise.resolve({})]);return{shared:n,pageId:t,page:r}},shouldReload:!0,component:G(()=>P(()=>import(`./_www-K3a2Ox05.js`),__vite__mapDeps([65,1,6,7,8,2,9,10,11,12,13,14,15,16,17,18,19,5,4,20,21,22,23])),`component`)}),My=W(`/accept-invite`)({head:()=>gy(`Accept Invitation | Learn Star Academy`),component:G(()=>P(()=>import(`./accept-invite-A7dmWOXp.js`),__vite__mapDeps([66,1,2,7,67,13,14,15,45,22])),`component`)}),Ny=W(`/forgot-password`)({head:()=>gy(`Reset Password | Learn Star Academy`),component:G(()=>P(()=>import(`./forgot-password-BotvLtgO.js`),__vite__mapDeps([68,1,2])),`component`)}),Py=W(`/install`)({head:()=>gy(`Install the App | Learn Star Academy`),component:G(()=>P(()=>import(`./install-ZYmc3f9W.js`),__vite__mapDeps([69,1,2,9,10,11,13,67,70,71,22])),`component`)}),Fy=W(`/login`)({head:()=>gy(`Sign In | Learn Star Academy`,`/login`),component:G(()=>P(()=>import(`./login-Dodk8SZS.js`),__vite__mapDeps([72,1,2,7,11,73,13,35,14,15,50,53,19,5,59,74])),`component`)}),Iy=W(`/reset-password`)({head:()=>gy(`Set New Password | Learn Star Academy`),component:G(()=>P(()=>import(`./reset-password-NIMYgqCW.js`),__vite__mapDeps([75,1,2,7,67,13,35,36,14,15])
13),`component`)}),Ly=W(`/signup`)({head:()=>gy(`Create Account | Learn Star Academy`),component:G(()=>P(()=>import(`./signup-RyX220NR.js`),__vite__mapDeps([76,1,2,7,39,13,34,14,50,51,53,54,19,22])),`component`)}),Ry=W(`/unsubscribe`)({loader:async()=>{let[e,t]=await Promise.all([uy(`unsubscribe`).catch(()=>fy(`unsubscribe`)),Ey(`unsubscribe`).catch(()=>({}))]);return{seo:e,content:t}},head:({loaderData:e})=>hy(e?.seo,`unsubscribe`),component:G(()=>P(()=>import(`./unsubscribe-BIJViNxo.js`),__vite__mapDeps([77,1,78,2,79,6,7,80,19])),`component`)}),zy=W(`/_app/account`)({component:G(()=>P(()=>import(`./_app.account-CbwdIQjN.js`),__vite__mapDeps([81,1,2,7,10,11,9,13,82,29,30,83,84,33,34,73,40,85,35,86,87,36,37,88,14,15,49,50,51,53,18,45,89,90,91,92,54,93,19,21,56,28,27,26,57,94,12,95,96,97,98,99])),`component`)}),By=W(`/_app/ai-tutor`)({component:G(()=>P(()=>import(`./_app.ai-tutor-fLo_pxJB.js`),__vite__mapDeps([100,1,2,7,11,13,64,101,30,39,34,67,102,86,103,37,104,14,44,18,46,105,58])),`component`)}),Vy=W(`/_app/app-about`)({component:G(()=>P(()=>import(`./_app.app-about-CQVb_jno.js`),__vite__mapDeps([106,1,2,7,11,64,13,107,30,14,50,51,53,108,48,22])),`component`)}),Hy=W(`/_app/app-faq`)({component:G(()=>P(()=>import(`./_app.app-faq-D9gxWauY.js`),__vite__mapDeps([109,1,2,7,11,64,13,12,17,110,111,58,112,33,95,40,35,113,27,114,115,14,116,90])),`component`)}),Uy=W(`/_app/calendar`)({component:G(()=>P(()=>import(`./_app.calendar-CjnMyqmM.js`),__vite__mapDeps([117,1,7,11,9,10,31,13,39,34,70,85,118,36,14,110,108,90,21,57,26,27,119,94,28,33,12,95,96,97,120])),`component`)}),Wy=W(`/_app/course-survey`)({component:G(()=>P(()=>import(`./_app.course-survey-UNrTSYYs.js`),__vite__mapDeps([121,1,2,7,11,64,13,67,14,18,108])),`component`)}),Gy=W(`/_app/documents`)({component:G(()=>P(()=>import(`./_app.documents-Dj6M-gy6.js`),__vite__mapDeps([122,1,2,7,11,13,64,107,70,86,88,123,14,90,92])),`component`)}),Ky=W(`/_app/gradebook`)({component:G(()=>P(()=>import(`./_app.gradebook-BQJJI5Bk.js`),__vite__mapDeps([124,1,2,7,11,30,13,125,12,95,67,102,126,14,91,48])),`component`)}),qy=W(`/_app/home`)({component:G(()=>P(()=>import(`./_app.home-6aTatxiJ.js`),__vite__mapDeps([127,1,2,7,26,27,10,11,13,82,128,29,83,12,34,95,67,129,126,42,130,87,36,14,50,43,44,53,108,105,131,91,54,48,93,19,58,96,97,98,132,133])),`component`)}),Jy=W(`/_app/lesson`)({component:G(()=>P(()=>import(`./_app.lesson-DvjsqVmn.js`),__vite__mapDeps([134,1,27,2,7,11,13,64,128,115,30,135,9,10,42,125,33,12,39,34,95,67,40,102,136,126,70,137,85,86,87,36,104,14,15,49,44,138,110,139,116,18,45,46,108,47,90,131,91,93,19,20,58,99])),`component`)}),Yy=W(`/_app/messages`)({component:G(()=>P(()=>import(`./_app.messages-BqdxRME2.js`),__vite__mapDeps([140,1,7,11,9,10,13,14,44,18,90,57,26,27,94,28,33,12,95,96,97,120])),`component`)}),Xy=W(`/_app/payments`)({component:G(()=>P(()=>import(`./_app.payments-Br0csPGJ.js`),__vite__mapDeps([141,1,2,7,11,30,13,34,67,102,126,42,36,15,19,21,142,79,78])),`component`)}),Zy=W(`/_app/profile`)({beforeLoad:()=>{throw s({to:`/account`,replace:!0})}}),Qy=W(`/_app/store`)({component:G(()=>P(()=>import(`./_app.store-CQw5_4R2.js`),__vite__mapDeps([143,1,2,7,11,13,67,14,52,90,19])),`component`)}),$y=W(`/_app/transcript`)({component:G(()=>P(()=>import(`./_app.transcript-CsgcwG3O.js`),__vite__mapDeps([144,1,7,11,107,13,30,67,136,86,14,50,108,145,133])),`component`)}),eb=W(`/_www/`)({loader:async()=>{let[e,t,n]=await Promise.all([uy(`home`).catch(()=>fy(`home`)),Ey(`home`).catch(()=>({})),Ey(`graduation_section`).catch(()=>({}))]);return{seo:e,hero:t,grad:n}},head:({loaderData:e})=>hy(e?.seo,`home`),component:G(()=>P(()=>import(`./_www.index-ByjfjjRo.js`),__vite__mapDeps([146,1,2,61,22,147,7,126,13,36,45,148,46,108,19,4,5,6,149,150,3,151,152,153,74,59])),`component`)}),tb=W(`/_www/about`)({loader:async()=>{try{return await uy(`about`)}catch{return fy(`about`)}},head:({loaderData:e})=>hy(e,`about`),component:G(()=>P(()=>import(`./_www.about-B2bvzaH_.js`),__vite__mapDeps([154,1,2,7,30,13,155,105,19,4,5,6,150,3,156,157,153,158,159,26,27,10,11,12,96])),`component`)}),nb=W(`/_www/accessibility`)({loader:async()=>{try{return await uy(`accessibility`)}catch{return fy(`accessibility`)}},head:({loaderData:e})=>hy(e,`accessibility`),component:G(()=>P(()=>import(`./_www.accessibility-obPfJ0Ta.js`),__vite__mapDeps([160,1,6,7,151,2,161,162,4,5,3])),`component`)}),rb=W(`/_www/accreditation`)({loader:async()=>{let[e,t]=await Promise.all([uy(`accreditation`).catch(()=>fy(`accreditation`)),Ey(`accreditation`)]);return{seo:e,content:t}},head:({loaderData:e})=>hy(e?.seo,`accreditation`),component:G(()=>P(()=>import(`./_www.accreditation-4SPlBr-j.js`),__vite__mapDeps([163,1,7,164,13,85,36,45,4,5,6,149,2,3,165,157,153])),`component`)}),ib=`Alabama|Alaska|Arizona|Arkansas|California|Colorado|Connecticut|Delaware|Florida|Georgia|Hawaii|Idaho|Illinois|Indiana|Iowa|Kansas|Kentucky|Louisiana|Maine|Maryland|Massachusetts|Michigan|Minnesota|Mississippi|Missouri|Montana|Nebraska|Nevada|New Hampshire|New Jersey|New Mexico|New York|North Carolina|North Dakota|Ohio|Oklahoma|Oregon|Pennsylvania|Rhode Island|South Carolina|South Dakota|Tennessee|Texas|Utah|Vermont|Virginia|Washington|West Virginia|Wisconsin|Wyoming|District of Columbia`,ab=/^(testimonial_[1-3]_(quote|name|detail)|app_store_url|google_play_url)$/;function ob(e){let t={};for(let[n,r]of Object.entries(e??{}))ab.test(n)&&typeof r==`string`&&(t[n]=r);return t}
13function sb(e){let[t,n]=(0,H.useState)(e??{}),[r,i]=(0,H.useState)(e?`ready`:`loading`),{tc:a}=ft(`home`,t);return(0,H.useEffect)(()=>{F.from(`website_settings`).select(`content`).eq(`id`,`home`).maybeSingle().then(({data:e,error:t})=>{if(t){i(e=>e===`ready`?e:`error`);return}n(ob(e?.content)),i(`ready`)})},[]),{hero:a,status:r}}function cb(e,t){let[n,r]=(0,H.useState)(t??{});(0,H.useEffect)(()=>{F.from(`website_settings`).select(`content`).eq(`id`,e).maybeSingle().then(({data:e})=>e?.content&&r(e.content))},[e]);let i={...st[e]};for(let[e,t]of Object.entries(n))typeof t==`string`&&t.trim()&&(i[e]=t);return i}function lb({url:e,label:t,className:n}){return!t||!e?null:e.startsWith(`/`)?(0,U.jsx)(oe,{to:e,className:n,children:t}):(0,U.jsx)(`a`,{href:e,className:n,.../^https?:\/\//.test(e)?{target:`_blank`,rel:`noopener noreferrer`}:{},children:t})}function ub({c:e}){return(0,U.jsxs)(`div`,{className:`mt-8 flex flex-wrap gap-3`,children:[(0,U.jsx)(lb,{url:e.hero_cta_primary_url,label:e.hero_cta_primary_label,className:`ls-btn ls-btn-primary`}),(0,U.jsx)(lb,{url:e.hero_cta_secondary_url,label:e.hero_cta_secondary_label,className:`ls-btn ls-btn-outline-light`})]})}function db({b:e,bg:t}){return e.title.trim()?(0,U.jsx)(`section`,{className:`ls-section ${t}`,children:(0,U.jsxs)(`div`,{className:`ls-container max-w-[860px]`,children:[(0,U.jsx)(`h2`,{className:`ls-h2`,children:e.title}),e.body.trim()&&(0,U.jsx)(`p`,{className:`mt-4 text-lg text-ls-text2`,children:(0,U.jsx)(vt,{text:e.body})}),e.body_2.trim()&&(0,U.jsx)(`p`,{className:`mt-4 text-lg text-ls-text2`,children:(0,U.jsx)(vt,{text:e.body_2})})]})}):null}function fb({html:e}){return(0,U.jsx)(`div`,{className:`flex flex-col gap-5`,dangerouslySetInnerHTML:{__html:e}})}var pb=e=>e.split(`
14`).map(e=>e.trim()).filter(Boolean);function mb({children:e,alt:t=!1}){return(0,U.jsx)(`section`,{className:`ls-section ${t?`bg-ls-alt`:`bg-ls-bg`}`,children:(0,U.jsx)(`div`,{className:`ls-container max-w-[820px] space-y-5 text-lg text-ls-text2 [&_h2]:text-ls-text [&_h3]:text-ls-text [&_h2]:text-3xl [&_h2]:font-bold [&_h3]:mt-8 [&_h3]:text-2xl`,children:e})})}function hb({initialContent:e}={}){let t=cb(`outcomes`,e),n=et(lt),r=n.state_table;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(pt,{crumb:n.breadcrumb.label,eyebrow:t.hero_eyebrow,title:t.hero_title,children:[(0,U.jsx)(`div`,{className:`mt-5 flex max-w-[62ch] flex-col gap-4 text-lg text-ls-on-navy2`,dangerouslySetInnerHTML:{__html:t.hero_intro}}),(0,U.jsx)(ub,{c:t})]}),(0,U.jsxs)(mb,{children:[(0,U.jsx)(`h2`,{children:t.s1_heading}),(0,U.jsx)(fb,{html:t.s1_body})]}),(0,U.jsxs)(mb,{alt:!0,children:[(0,U.jsx)(`h2`,{children:t.s2_heading}),(0,U.jsx)(fb,{html:t.s2_body})]}),(0,U.jsx)(`section`,{className:`ls-section bg-ls-bg`,children:(0,U.jsxs)(`div`,{className:`ls-container max-w-[900px]`,children:[(0,U.jsxs)(`div`,{className:`space-y-5 text-lg text-ls-text2`,children:[(0,U.jsx)(`h2`,{className:`ls-h2 text-ls-text`,children:t.table_heading}),(0,U.jsx)(`p`,{children:t.table_intro})]}),(0,U.jsx)(`div`,{className:`mt-8 max-h-[640px] overflow-auto rounded-lg border border-ls-line`,tabIndex:0,role:`region`,"aria-label":r.region_label,children:(0,U.jsxs)(`table`,{className:`w-full border-collapse text-left text-sm sm:text-base`,children:[(0,U.jsx)(`caption`,{className:`bg-ls-alt px-3 py-3 sm:px-4 text-left font-semibold text-ls-text`,children:t.table_caption}),(0,U.jsx)(`thead`,{className:`sticky top-0 bg-ls-navy text-ls-on-navy`,children:(0,U.jsxs)(`tr`,{children:[(0,U.jsx)(`th`,{scope:`col`,className:`px-3 py-3 sm:px-4`,children:r.col_state}),(0,U.jsx)(`th`,{scope:`col`,className:`px-3 py-3 sm:px-4`,children:r.col_rate}),(0,U.jsx)(`th`,{scope:`col`,className:`px-3 py-3 sm:px-4`,children:r.col_noncompletion})]})}),(0,U.jsx)(`tbody`,{children:tt(r.rows).map(({state:e,rate:t,noncompletion:r},i)=>(0,U.jsxs)(`tr`,{className:`border-t border-ls-line ${i===0?`font-semibold`:``} ${i%2?`bg-ls-alt`:`bg-ls-bg`}`,children:[(0,U.jsx)(`th`,{scope:`row`,className:`px-3 py-2 sm:px-4 font-medium text-ls-text`,children:e}),(0,U.jsx)(`td`,{className:`px-3 py-2 sm:px-4 text-ls-text2`,children:t}),(0,U.jsx)(`td`,{className:`px-3 py-2 sm:px-4 text-ls-text2`,children:r===`-`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`span`,{"aria-hidden":`true`,children:`-`}),(0,U.jsx)(`span`,{className:`sr-only`,children:n.breadcrumb.not_available})]}):r})]},i))})]})}),(0,U.jsx)(`p`,{className:`mt-4 text-sm text-ls-text2`,children:t.table_source_note}),(0,U.jsx)(`p`,{className:`mt-6 text-lg text-ls-text2`,children:t.table_after})]})}),(0,U.jsxs)(mb,{alt:!0,children:[(0,U.jsx)(`h2`,{children:t.s4_heading}),(0,U.jsx)(fb,{html:t.s4_body})]}),(0,U.jsxs)(mb,{children:[(0,U.jsx)(`h2`,{children:t.s5_heading}),(0,U.jsx)(fb,{html:t.s5_body}),(0,U.jsx)(lb,{url:t.s5_cta_url,label:t.s5_cta_label,className:`ls-btn ls-btn-primary`})]}),(0,U.jsxs)(mb,{alt:!0,children:[(0,U.jsx)(`h2`,{children:t.s6_heading}),(0,U.jsx)(`p`,{children:t.s6_intro}),(0,U.jsx)(mt,{items:pb(t.s6_list)}),(0,U.jsx)(fb,{html:t.s6_body}),(0,U.jsxs)(`div`,{className:`flex flex-wrap gap-3`,children:[(0,U.jsx)(lb,{url:t.s6_cta_primary_url,label:t.s6_cta_primary_label,className:`ls-btn ls-btn-primary`}),(0,U.jsx)(lb,{url:t.s6_cta_secondary_url,label:t.s6_cta_secondary_label,className:`ls-btn ls-btn-outline`})]})]}),(0,U.jsxs)(mb,{children:[(0,U.jsx)(`h2`,{children:t.faq_heading}),tt(n.faq_list.items).map((e,t)=>(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`h3`,{children:e.q}),(0,U.jsx)(`p`,{className:`mt-2`,children:e.a})]},t))]}),(0,U.jsxs)(mb,{alt:!0,children:[(0,U.jsx)(`h2`,{children:t.sources_heading}),(0,U.jsx)(`ul`,{className:`list-disc space-y-2 pl-6`,children:tt(n.sources_list.items).map((e,t)=>(0,U.jsx)(`li`,{children:(0,U.jsx)(`a`,{href:/^https:\/\//.test(e.href)?e.href:void 0,target:`_blank`,rel:`nofollow noopener noreferrer`,className:`text-ls-accent underline`,children:e.label})},t))})]}),(0,U.jsx)(rt,{guide:it}),(0,U.jsx)(gt,{})]})}function gb({initialContent:e,initialHome:t}={}){let n=cb(`reviews`,e),r=et(ct),i=r.review_labels,{hero:a,status:o}=sb(t),s=[1,2,3].map(e=>({quote:a[`testimonial_${e}_quote`]||``,name:a[`testimonial_${e}
14_name`]||``,detail:a[`testimonial_${e}_detail`]||``})).filter(e=>e.quote&&e.name),c=e=>e.match(RegExp(`\\b(${ib})\\b`))?.[1]??``;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(pt,{crumb:r.breadcrumb.label,eyebrow:n.hero_eyebrow,title:n.hero_title,lead:n.hero_lead,children:(0,U.jsx)(ub,{c:n})}),(0,U.jsx)(`section`,{className:`ls-section bg-ls-bg`,children:(0,U.jsxs)(`div`,{className:`ls-container`,children:[(0,U.jsx)(ht,{center:!0,eyebrow:n.stories_eyebrow,title:n.stories_title}),s.length>0?(0,U.jsx)(`div`,{className:`grid gap-6 md:grid-cols-3`,children:s.map(e=>(0,U.jsxs)(`figure`,{className:`ls-card flex flex-col p-6`,children:[(0,U.jsx)(`div`,{className:`flex gap-0.5 text-ls-star`,"aria-label":i.stars_label,children:Array.from({length:5}).map((e,t)=>(0,U.jsx)(Ye,{className:`h-4 w-4 fill-current`},t))}),(0,U.jsxs)(`blockquote`,{className:`ls-serif mt-4 flex-1 text-lg italic text-ls-text`,children:[`"`,e.quote,`"`]}),(0,U.jsxs)(`figcaption`,{className:`mt-5 flex items-center gap-3`,children:[(0,U.jsx)(`span`,{className:`grid h-10 w-10 place-items-center rounded-full bg-ls-navy text-sm font-bold text-white`,children:e.name.split(/\s+/).map(e=>e[0]).join(``).slice(0,2)}),(0,U.jsxs)(`span`,{children:[(0,U.jsx)(`span`,{className:`block font-bold text-ls-text`,children:e.name}),(0,U.jsxs)(`span`,{className:`block text-[13px] text-ls-muted`,children:[i.graduate_label,c(e.detail)?` · ${c(e.detail)}`:``]})]})]})]},e.name))}):(0,U.jsx)(`p`,{className:`text-center text-ls-text2`,role:`status`,children:o===`loading`?i.loading:i.unavailable})]})}),(0,U.jsx)(db,{b:r.reading_guide,bg:`bg-ls-alt`}),(0,U.jsx)(db,{b:r.community,bg:`bg-ls-bg`}),(0,U.jsx)(`section`,{className:`ls-section bg-ls-alt`,children:(0,U.jsxs)(`div`,{className:`ls-container grid items-center gap-12 md:grid-cols-2`,children:[(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsx)(ht,{eyebrow:n.story_eyebrow,title:n.story_title,lead:n.story_lead}),(0,U.jsxs)(`div`,{className:`flex flex-wrap gap-3`,children:[(0,U.jsx)(lb,{url:n.story_cta_primary_url,label:n.story_cta_primary_label,className:`ls-btn ls-btn-primary`}),(0,U.jsx)(lb,{url:n.story_cta_secondary_url,label:n.story_cta_secondary_label,className:`ls-btn ls-btn-outline`})]})]}),(0,U.jsx)(_t,{width:300})]})}),(0,U.jsx)(gt,{})]})}function _b({initialContent:e,initialHome:t}={}){let n=cb(`app`,e),r=et(ut),i=r.store_buttons,{hero:a}=sb(t),o=/^https:\/\//.test(a.app_store_url||``)?a.app_store_url:``,s=/^https:\/\//.test(a.google_play_url||``)?a.google_play_url:``,c=/^https:\/\//.test(n.devices_image||``)?n.devices_image:``;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(pt,{crumb:r.breadcrumb.label,eyebrow:n.hero_eyebrow,title:n.hero_title,lead:n.hero_lead,children:(0,U.jsx)(ub,{c:n})}),(0,U.jsx)(`section`,{className:`ls-section bg-ls-bg`,children:(0,U.jsxs)(`div`,{className:`ls-container grid items-center gap-12 md:grid-cols-2`,children:[(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsx)(ht,{eyebrow:n.features_eyebrow,title:n.features_title}),(0,U.jsx)(mt,{items:pb(n.features_list)}),(o||s)&&(0,U.jsxs)(`div`,{className:`mt-6 flex flex-wrap items-center gap-4`,children:[o&&(0,U.jsx)(`a`,{href:o,target:`_blank`,rel:`noopener noreferrer`,className:`ls-btn ls-btn-outline`,children:i.app_store_label}),s&&(0,U.jsx)(`a`,{href:s,target:`_blank`,rel:`noopener noreferrer`,className:`ls-btn ls-btn-outline`,children:i.google_play_label})]}),n.included_note&&(0,U.jsx)(`p`,{className:`mt-6 text-sm text-ls-text2`,children:n.included_note})]}),(0,U.jsx)(`div`,{className:`min-w-0`,children:(0,U.jsx)(`img`,{src:c||dt.url,alt:n.devices_image_alt,...c?{}:{width:2048,height:1016},loading:`lazy`,className:`block h-auto w-full rounded-[18px] object-contain shadow-2xl`})})]})}),(0,U.jsx)(`section`,{className:`ls-section bg-ls-alt`,children:(0,U.jsx)(`div`,{className:`ls-container grid gap-6 md:grid-cols-3`,children:[{icon:Je,t:n.card_1_title,d:n.card_1_desc},{icon:Ye,t:n.card_2_title,d:n.card_2_desc},{icon:qe,t:n.card_3_title,d:n.card_3_desc}].map(({icon:e,t,d:n},r)=>(0,U.jsxs)(`div`,{className:`ls-card p-6`,children:[(0,U.jsx)(e,{className:`h-6 w-6 text-ls-accent`,"aria-hidden":`true`}),(0,U.jsx)(`h2`,{className:`mt-3 text-xl`,children:t}),(0,U.jsx)(`p`,{className:`mt-2 text-ls-text2`,children:n})]},r))})}),(0,U.jsx)(db,{b:r.using_app,bg:`bg-ls-bg`}),(0,U.jsx)(db,{b:r.getting_started,bg:`bg-ls-alt`}),(0,U.jsx)(gt,{})]})}function vb(){let e=et(ot),t=e.hero,n=e.plans,r=e.included,i=e.how,a=e.faq;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(pt,{crumb:t.crumb,eyebrow:t.eyebrow,title:t.title,lead:t.lead,children:(0,U.jsx)(ub,{c:{hero_cta_primary_label:t.cta_primary_label,hero_cta_primary_url:t.cta_primary_url,hero_cta_secondary_label:t.cta_secondary_label,hero_cta_secondary_url:t.cta_secondary_url}})}),(0,U.jsx)(`section`,{className:`ls-section bg-ls-bg`,children:(0,U.jsxs)(`div`,{className:`ls-container`,children:[(0,U.jsx)(ht,{eyebrow:n.eyebrow,title:n.title}),(0,U.jsxs)(`div`,{className:`grid gap-6 md:grid-cols-2 lg:grid-cols-3`,children:[(0,U.jsxs)(`div`,{className:`rounded-[14px] bg-ls-navy p-7 text-white`,children:[(0,U.jsx)(`h2`,{className:`text-xs font-bold tracking-[.12em] text-ls-accent-light`,children:n.standard_name}),(0,U.jsxs)(`p`,{className:`ls-serif mt-3 text-[60px] leading-none`,children:[n.standard_price,(0,U.jsx)(`span`,{className:`text-lg`,children:n.standard_unit})]}),(0,U.jsx)(`p`,{className:`mt-2 text-sm text-ls-on-navy2`,children:n.standard_note}),(0,U.jsx)(lb,{url:n.standard_cta_url,label:n.standard_cta,className:`ls-btn ls-btn-outline-light mt-6`})]}),(0,U.jsxs)(`div`,{className:`rounded-[14px] border-2 border-ls-accent bg-ls-navy-deep p-7 text-white`,children:[(0,U.jsx)(`h2`,{className:`text-xs font-bold tracking-[.12em] text-ls-accent-light`,children:n.prep_
14name}),(0,U.jsxs)(`p`,{className:`ls-serif mt-3 text-[60px] leading-none`,children:[n.prep_price,(0,U.jsx)(`span`,{className:`text-lg`,children:n.prep_unit})]}),(0,U.jsx)(`p`,{className:`mt-2 text-sm text-ls-on-navy2`,children:n.prep_note}),(0,U.jsx)(lb,{url:n.prep_cta_url,label:n.prep_cta,className:`ls-btn ls-btn-primary mt-6`})]}),(0,U.jsxs)(`div`,{className:`ls-card p-7 md:col-span-2 lg:col-span-1`,children:[(0,U.jsx)(`h2`,{className:`text-xl`,children:r.title}),(0,U.jsxs)(`div`,{className:`mt-4 grid gap-x-4 sm:grid-cols-2 [&_li]:text-sm`,children:[(0,U.jsx)(mt,{items:nt(r.column_1)}),(0,U.jsx)(mt,{items:nt(r.column_2)})]}),r.not_included.trim()&&(0,U.jsx)(`p`,{className:`mt-5 text-xs text-ls-muted`,children:(0,U.jsx)(vt,{text:r.not_included,linkClassName:`underline`})}),r.full_terms.trim()&&(0,U.jsx)(`p`,{className:`mt-2 text-xs text-ls-muted`,children:(0,U.jsx)(vt,{text:r.full_terms,linkClassName:`font-semibold underline`})})]})]})]})}),(0,U.jsx)(`section`,{className:`ls-section bg-ls-alt`,children:(0,U.jsxs)(`div`,{className:`ls-container grid gap-8 md:grid-cols-2`,children:[(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsx)(ht,{eyebrow:i.eyebrow,title:i.title}),(0,U.jsx)(mt,{items:nt(i.items)})]}),(0,U.jsxs)(`div`,{className:`ls-card p-7`,children:[(0,U.jsx)(`h2`,{className:`text-xl`,children:i.compare_title}),(0,U.jsx)(`p`,{className:`mt-3 text-ls-text2`,children:i.compare_body}),(0,U.jsxs)(`div`,{className:`mt-6 flex flex-wrap gap-3`,children:[(0,U.jsx)(lb,{url:i.compare_primary_url,label:i.compare_primary,className:`ls-btn ls-btn-primary`}),(0,U.jsx)(lb,{url:i.compare_secondary_url,label:i.compare_secondary,className:`ls-btn ls-btn-outline`})]})]})]})}),(0,U.jsx)(`section`,{className:`ls-section bg-ls-bg`,"aria-labelledby":`tuition-faq`,children:(0,U.jsxs)(`div`,{className:`ls-container max-w-[860px]`,children:[(0,U.jsx)(`h2`,{id:`tuition-faq`,className:`ls-h2`,children:a.heading}),(0,U.jsx)(`div`,{className:`mt-6 space-y-3`,children:tt(a.items).map((e,t)=>(0,U.jsxs)(`details`,{className:`ls-card p-5`,open:t===0,children:[(0,U.jsx)(`summary`,{className:`cursor-pointer text-lg font-semibold text-ls-text`,children:e.q}),(0,U.jsx)(`p`,{className:`mt-3 text-ls-text2`,children:(0,U.jsx)(vt,{text:e.a})})]},t))}),a.footer.trim()&&(0,U.jsx)(`p`,{className:`mt-6 text-ls-text2`,children:(0,U.jsx)(vt,{text:a.footer})})]})}),(0,U.jsx)(at,{exclude:`/tuition`,className:`bg-ls-alt`}),(0,U.jsx)(gt,{})]})}var yb=W(`/_www/app`)({loader:async()=>{let[e,t,n]=await Promise.all([uy(`app`).catch(()=>fy(`app`)),Ey(`app`),Ey(`home`).catch(()=>null)]);return{seo:e,content:t,home:n?ob(n):void 0}},head:({loaderData:e})=>hy(e?.seo,`app`),component:G(()=>P(()=>import(`./_www.app-CjUSR9x8.js`),__vite__mapDeps([166,1])),`component`)}),bb=W(`/_www/apply`)({loader:async()=>{let[e,t,n]=await Promise.all([uy(`apply`).catch(()=>fy(`apply`)),Ey(`apply`),Oy()]);return{seo:e,content:t,fields:n}},head:({loaderData:e})=>hy(e?.seo,`apply`),component:G(()=>P(()=>import(`./_www.apply-BOL4axeu.js`),__vite__mapDeps([167,1,2,7,36,13,14,19,4,5,6,150,3,157,153,142,79,78,168])),`component`)}),xb=W(`/_www/brtye`)({beforeLoad:()=>{throw s({to:`/bryte`,statusCode:301})}}),Sb=W(`/_www/bryte`)({loader:async()=>{try{return await uy(`bryte`)}catch{return fy(`bryte`)}},head:({loaderData:e})=>hy(e,`bryte`),component:G(()=>P(()=>import(`./_www.bryte-Ciw_ZJtC.js`),__vite__mapDeps([169,1,2,7,13,128,101,126,36,45,46,4,5,6,3,151,157,153])),`component`)}),Cb=[{t:`Self-paced online courses`,d:`Study on a computer, tablet or phone. Log in any time, day or night, and pick up where you left off.`},{t:`Estimated 2–6 months`,d:`Some students finish in weeks, while others take several months or longer, depending on accepted transfer credits, motivation, study time, and progress. You have up to 18 months to complete your coursework and earn your diploma.`},{t:`Skip what you already know`,d:`Our courses are competency based. You can test out of lessons or courses you have already mastered.`},{t:`Simple monthly tuition`,d:`Pay only for the months you need, up to a maximum of 10 monthly payments. Courses, materials and BRYTE are included.`}],wb={standard:{crumb:`Standard Career-Ready Diploma`,title:`Standard Career-Ready High School Diploma`,lead:`A flexible, affordable way for adults 18+ to earn an accredited high school diploma online. Take 21.5 credits at your own pace, on your own schedule.`,credits:`21.5 credits`,price:`$99`,overview:[`The Standard Career-Ready program is built for adults who want to finish high school as efficie
14ntly as possible. You complete 21.5 credits of accredited coursework and earn a real high school diploma from Learn Star Academy.`,`There are no classes to attend and no set schedule. You study when it works for you — before work, after a shift or on the weekend — and move forward as soon as you are ready.`],serves:[`Adults 18+ who left high school before graduating`,`Working adults who need a diploma for a job or promotion`,`Learners who want to meet military or college admission requirements`,`Anyone finishing high school as a personal goal`],requirements:[[`English Language Arts`,`4.0`],[`Mathematics`,`3.0`],[`Science`,`3.0`],[`Social Studies`,`3.5`],[`Health & Physical Education`,`1.0`],[`Fine Arts`,`1.0`],[`Electives`,`6.0`]],transferMax:`up to 15.5 credits`,goodFit:[`You want the most direct route to an accredited diploma`,`Your next step is a job, a promotion, or career training that asks for a diploma`,`You don't need world language credits or a fourth year of math`],considerOther:`If the college or program you're aiming for expects four years of math or two years of a world language, compare the College & Career Prep program.`,expect:Cb,faq:[{q:`How many credits do I need to graduate?`,a:`The Standard Career-Ready program requires 21.5 credits. Eligible credits you have already earned may count toward that total after a transcript review.`},{q:`How much does it cost?`,a:`Tuition starts at $99 per month. You pay only for the months you need, up to a maximum of 10 monthly payments.`},{q:`How long will it take?`,a:`It depends on your starting point and how much time you put in. The program is self-paced, and you have up to 18 months to finish.`},{q:`Is the diploma accredited?`,a:`Yes. Learn Star Academy is accredited by the Middle States Association. Each college, employer or agency makes its own decisions about the credentials it accepts.`},{q:`Can I switch to the College & Career Prep program?`,a:`Contact our admissions team to talk through your options. They can explain how your completed credits would apply.`}],other:{to:`/college-career-prep-diploma`,label:`College & Career Prep High School Diploma`,blurb:`Want extra college-prep coursework and career electives? Compare the 24-credit program.`}},prep:{crumb:`College & Career Prep Diploma`,title:`College & Career Prep High School Diploma`,lead:`An accredited 24-credit adult high school diploma with added college-preparatory coursework and career-focused electives. Study online, at your own pace.`,credits:`24 credits`,price:`$129`,overview:[`The College & Career Prep program is for adults who want more than the minimum. You complete 24 credits of accredited coursework, including added college and career readiness experiences.`,`These courses help you build academic confidence and workplace skills for life after graduation. Like all Learn Star programs, it is fully self-paced and online.`],serves:[`Adults 18+ planning to apply to college or career training`,`Learners who want a stronger transcript for admissions review`,`Workers aiming for promotion or a move into a new field`,`Anyone who wants to build technology and digital skills`],requirements:[[`English Language Arts`,`4.0`],[`Mathematics`,`4.0`],[`Science`,`3.0`],[`Social Studies`,`3.5`],[`Health & Physical Education`,`1.0`],[`Fine Arts`,`1.0`],[`World Languages`,`2.0`],[`Electives`,`5.5`]],transferMax:`up to 18 credits`,goodFit:[`You plan to apply to college or career training and want a fuller transcript`,`The school you're aiming for asks for four years of math or two years of a world language`,`You want electives such as digital skills, data literacy, cybersecurity, or AI`],considerOther:`Completing this diploma does not guarantee college admission, an occupational certification, or a job. Each college, certifying body, and employer sets its own requirements, so check them before you choose. If you mainly need a diploma for work, compare the Standard Career-Ready program.`,expect:Cb,extra:{heading:`Build skills for tomorrow`,body:`The College & Career Prep program includes additional elective options designed to help you build practical workplace skills for today's technology-driven world. You may also strengthen your academic foun
14dation with extra college-preparatory coursework.`,items:[`Career and college readiness`,`Digital skills and data literacy`,`Cybersecurity`,`Artificial intelligence`,`Expanded mathematics and world language coursework`]},faq:[{q:`How many credits do I need to graduate?`,a:`The College & Career Prep program requires 24 credits. Eligible credits you have already earned may count toward that total after a transcript review.`},{q:`How much does it cost?`,a:`Tuition starts at $129 per month. You pay only for the months you need, up to a maximum of 10 monthly payments.`},{q:`How is it different from the Standard Career-Ready program?`,a:`It requires 24 credits instead of 21.5 and adds college-preparatory coursework and career electives, such as digital skills, data literacy, cybersecurity and artificial intelligence.`},{q:`Will this guarantee college admission or a job?`,a:`No. Completing this diploma does not guarantee college admission, an occupational certification, or employment. The added coursework can strengthen your transcript, but each college, certifying body, and employer makes its own decisions.`},{q:`How long will it take?`,a:`The program is self-paced, and you have up to 18 months to finish. Your time depends on your starting point and study schedule.`}],other:{to:`/standard-career-ready-diploma`,label:`Standard Career-Ready High School Diploma`,blurb:`Want the most direct path to your diploma? Compare the 21.5-credit program.`}}},Tb=`font-semibold text-ls-accent underline underline-offset-2`;function Eb(e){let t=wb[e];return{hero:{crumb:t.crumb,eyebrow:`Programs`,title:t.title,lead:t.lead,badge_credits:t.credits,badge_price:`Starting at ${t.price}/month`,badge_age:`Adults 18+`,cta_primary:`Enroll Now`,cta_primary_url:`/apply`,cta_secondary:`Compare Programs`,cta_secondary_url:`/programs`},overview:{title:`Program overview`,paragraphs:t.overview,serves_title:`Who this program serves`,serves:t.serves},expect:{title:`What you can expect`,lead:`Flexible online learning designed around adult life.`,cards:t.expect.map(e=>({title:e.t,text:e.d}))},extra:t.extra?{title:t.extra.heading,body:t.extra.body,items:t.extra.items}:{title:``,body:``,items:[]},requirements:{title:`Credit requirements`,intro:`These subject requirements come from the current [Course Catalog](/courses-catalog).`,caption:`${t.crumb} credit requirements by subject`,col_subject:`Subject area`,col_credits:`Credits`,rows:t.requirements.map(([e,t])=>({subject:e,credits:t})),total_label:`Total`,total:t.credits.replace(` credits`,``),study_title:`How you study and earn credit`,study_body:`Each course is made up of lessons, quizzes, writing assignments, and a final exam. You work through them online at your own pace. To earn credit for a course, you need a score of at least 60% on the final exam and on all written assignments.`,competency_body:`Because courses are [competency based](/competency-based-learning), you can show what you already know and move ahead instead of repeating material you have mastered.`},transfer:{title:`Already earned some credits?`,body:`Have official transcripts sent directly from your past schools to our Registrar. Up to 75% of the required credits can transfer (${t.transferMax} for this program), and at least 6.0 credits must be completed at Learn Star Academy. Passed GED® or HiSET® sections can count for up to 5.0 credits. Every transcript is different, so no credits are promised until the review is done.`,link_line:`[Read the step-by-step transfer credit guide](/blog/how-to-transfer-high-school-credits).`,support_title:`Support built for adults`,support_body:`You're never on your own. BRYTE, our AI tutor, is included with every program and available 24/7 to explain concepts, walk you through problems and create practice questions. Our school team also helps with enrollment, accounts and technical questions.`,support_button:`Meet BRYTE`,support_button_url:`/bryte`},costs:{title:`What it costs`,items:[`Tuition starts at ${t.price} per month and covers your courses, digital materials, and BRYTE.`,`Pay only for the months you need, up to a maximum of 10 monthly payments.`,`A $19.00 domestic diploma and graduation processing fee ($75 international) is due when you finish.`,`You may cancel at any time. Refund eligibility is limited to the first 10 days from initial enrollment. No refunds are issued after this initial 
1410-day period.`],links_line:`[See full tuition details](/tuition) or read the [Enrollment Agreement](/enrollment-agreement).`,fit_title:`Is this program a good fit?`,fit_intro:`This program may suit you if:`,fit_items:t.goodFit,consider_other:t.considerOther},start:{title:`How to get started`,steps:[`Complete the short online application.`,`Share any past transcripts for a credit review.`,`Get your course plan and log in to start learning.`,`Finish your courses and earn your accredited diploma.`],button:`Start Your Application`,button_url:`/apply`},faq:{title:`Frequently asked questions`,items:t.faq},explore:{title:`Keep exploring`,cards:[{title:t.other.label,text:t.other.blurb,url:t.other.to},{title:`Course Catalog`,text:`Browse our accredited courses by subject.`,url:`/courses-catalog`},{title:`Accreditation`,text:`Learn about our Middle States accreditation.`,url:`/accreditation`},{title:`Outcomes`,text:`See what a high school diploma can mean for adults.`,url:`/outcomes`},{title:`Tuition`,text:`See what's included in your monthly tuition.`,url:`/tuition`},{title:`Talk to Admissions`,text:`Questions? Our team is happy to help.`,url:`/contact`}],guides_title:`Guides to help you decide`}}}var Db={hero:`Hero & Badges (price badge is display text only)`,overview:`Program Overview & Who It Serves`,expect:`What You Can Expect Cards`,extra:`Build Skills for Tomorrow (leave title empty to hide)`,requirements:`Credit Requirements Table & How You Earn Credit`,transfer:`Transfer Credits & Support`,costs:`What It Costs & Good Fit (display text only — does not change billing)`,start:`How to Get Started`,faq:`FAQ Questions & Answers`,explore:`Keep Exploring Cards`};function Ob(e,t){return tt($e(`faq`,Eb(e).faq,t).items)}function kb({program:e}){let{hero:t,overview:n,expect:r,extra:i,requirements:a,transfer:o,costs:s,start:c,faq:l,explore:u}=et((0,H.useMemo)(()=>Eb(e),[e])),d=!!i.title.trim(),f=[t.badge_credits,t.badge_price,t.badge_age].filter(e=>e.trim());return(0,U.jsxs)(`div`,{className:`ls`,children:[(0,U.jsxs)(pt,{crumb:t.crumb,eyebrow:t.eyebrow,title:t.title,lead:t.lead,children:[f.length>0&&(0,U.jsx)(`div`,{className:`mt-6 flex flex-wrap gap-3 text-sm font-semibold`,children:f.map((e,t)=>(0,U.jsx)(`span`,{className:`rounded-full border border-current/30 px-3 py-1`,children:e},t))}),(0,U.jsxs)(`div`,{className:`mt-8 flex flex-wrap gap-3`,children:[t.cta_primary.trim()&&(0,U.jsx)(oe,{to:Qe(t.cta_primary_url,`/apply`),className:`ls-btn ls-btn-primary`,children:t.cta_primary}),t.cta_secondary.trim()&&(0,U.jsx)(oe,{to:Qe(t.cta_secondary_url,`/programs`),className:`ls-btn ls-btn-outline-light`,children:t.cta_secondary})]})]}),(0,U.jsx)(`section`,{className:`ls-section bg-ls-bg`,children:(0,U.jsxs)(`div`,{className:`ls-container grid gap-10 md:grid-cols-2`,children:[(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsx)(`h2`,{className:`ls-h2`,children:n.title}),(0,U.jsx)(`div`,{className:`mt-4 space-y-4 text-lg text-ls-text2`,children:nt(n.paragraphs).map((e,t)=>(0,U.jsx)(`p`,{children:(0,U.jsx)(vt,{text:e})},t))})]}),(0,U.jsxs)(`div`,{className:`ls-card min-w-0 p-7`,children:[(0,U.jsx)(`h2`,{className:`ls-h3`,children:n.serves_title}),(0,U.jsx)(`div`,{className:`mt-4`,children:(0,U.jsx)(mt,{items:nt(n.serves)})})]})]})}),e===`prep`&&(0,U.jsx)(`section`,{className:`ls-section bg-ls-alt`,"aria-labelledby":`choose-heading`,children:(0,U.jsxs)(`div`,{className:`ls-container max-w-[860px]`,children:[(0,U.jsx)(`h2`,{id:`choose-heading`,className:`ls-h2`,children:`Choosing Between the 24-Credit and 21.5-Credit Diplomas`}),(0,U.jsx)(`p`,{className:`mt-4 text-lg text-ls-text2`,children:`Both diplomas are accredited, self-paced and designed for adults 18+. The difference is how much coursework you take and what you plan to do next.`}),(0,U.jsxs)(`div`,{className:`mt-6 grid gap-5 md:grid-cols-2`,children:[(0,U.jsxs)(`div`,{className:`ls-card min-w-0 p-6`,children:[(0,U.jsx)(`h3`,{className:`ls-h3`,children:`The 24-credit College & Career Prep path may fit if you:`}),(0,U.jsx)(mt,{items:[`Plan to apply to a college, technical program or training program and want a broader transcript`,`Want added college-preparatory and career electives beyond the core requirements`,`Have time to complete 2.5 more credits than the Standard Career Ready diploma`]})]}),(0,U.jsxs)(`div`,{className:`ls-card min-w-0 p-6`,children:[(0,U.jsx)(`h3`,{className:`ls-h3`,children:`The 21.5-credit Standard Career Ready path may fit if you:`}),(0,U.jsx)(mt,{items:[`Mainly need a high school diploma for work, a promotion or job training`,`Want the fewest credits required to graduate`,`Prefer the lower monthly tuition`]})]})]}),(0,U.jsx)(`p`,{className:`mt-6 text-ls-text2`,children:`Admission requirements differ between colleges and employers, so check with the schools you are considering. Transfer credits are reviewed by the Registrar for either program, and at least six credits must be earned at Learn Star Academy.`}),(0,U.jsxs)(`ul`,{className:`mt-6 list-disc space-y-2 pl-6 text-ls-text2`,children:[(0,U.jsx)(`li`,{children:(0,U.jsx)(oe,{to:`/programs`,className:`font-semibold text-ls-accent-dark underline`,children:`Compare both diploma programs`})}),(0,U.jsx)(`li`,{children:(0,U.jsx)(oe,{to:`/standard-career-ready-diploma`,className:`font-semibold text-ls-accent-dark underline`,children:`Standard Career Ready Diploma (21.5 credits)`})}),(0,U.jsx)(`li`,{children:(0,U.jsx)(oe,{to:`/courses-catalog`,className:`font-semibold text-ls-accent-dark underline`,children:`Browse the course catalog`})}),(0,U.jsx)(`li`,{children:(0,U.jsx)(oe,{to:`/blog/how-to-transfer-high-school-credits`,className:`font-semibold text-ls-accent-dark underline`,children:`How transfer credits are reviewed`})}),(0,U.jsx)(`li`,{children:(0,U.jsx)(oe,{to:`/tuition`,className:`font-semibold text-ls-accent-dark underline`,children:`Tuition and payment details`})}),(0,U.jsx)(`li`,{children:(0,U.jsx)(oe,{to:`/enrollment-agreement`,className:`font-semibold text-ls-accent-dark underline`,children:`Read the Enrollment Agreement`})})]})]})}),(0,U.jsx)(`section`,{className:`ls-section bg-ls-alt`,children:(0,U.jsxs)(`div`,{className:`ls-container`,children:[(0,U.jsx)(ht,{center:!0,title:r.title,lead:r.lead}),(0,U.jsx)(`div`,{className:`grid gap-5 sm:grid-cols-2`,children:tt(r.cards).map((e,t)=>(0,U.jsxs)(`div`,{className:`ls-card p-6`,children:[(0,U.jsx)(`h3`,{className:`ls-h3`,children:e.title}),(0,U.jsx)(`p`,{className:`mt-2 text-ls-text2`,children:(0,U.jsx)(vt,{text:e.text})})]},t))})]})}),d&&(0,U.jsx)(`section`,{className:`ls-section bg-ls-bg`,children:(0,U.jsxs)(`div`,{className:`ls-container max-w-[860px]`,children:[(0,U.jsx)(`h2`,{className:`ls-h2`,children:i.title}),(0,U.jsx)(`p`,{className:`mt-4 text-lg text-ls-text2`,children:(0,U.jsx)(vt,{text:i.body}
14)}),(0,U.jsx)(`div`,{className:`mt-6`,children:(0,U.jsx)(mt,{items:nt(i.items)})})]})}),(0,U.jsx)(`section`,{className:`ls-section ${d?`bg-ls-alt`:`bg-ls-bg`}`,"aria-labelledby":`req-heading`,children:(0,U.jsxs)(`div`,{className:`ls-container grid gap-10 md:grid-cols-2`,children:[(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsx)(`h2`,{id:`req-heading`,className:`ls-h2`,children:a.title}),a.intro.trim()&&(0,U.jsx)(`p`,{className:`mt-4 text-ls-text2`,children:(0,U.jsx)(vt,{text:a.intro,linkClassName:Tb})}),(0,U.jsx)(`div`,{className:`mt-6 overflow-x-auto rounded-[14px] border border-ls-line bg-ls-surface`,children:(0,U.jsxs)(`table`,{className:`w-full text-left text-ls-text2`,children:[(0,U.jsx)(`caption`,{className:`sr-only`,children:a.caption}),(0,U.jsx)(`thead`,{className:`text-ls-text`,children:(0,U.jsxs)(`tr`,{className:`border-b border-ls-line`,children:[(0,U.jsx)(`th`,{scope:`col`,className:`p-3`,children:a.col_subject}),(0,U.jsx)(`th`,{scope:`col`,className:`p-3 text-right`,children:a.col_credits})]})}),(0,U.jsxs)(`tbody`,{children:[tt(a.rows).map((e,t)=>(0,U.jsxs)(`tr`,{className:`border-b border-ls-line`,children:[(0,U.jsx)(`th`,{scope:`row`,className:`p-3 font-normal`,children:e.subject}),(0,U.jsx)(`td`,{className:`p-3 text-right`,children:e.credits})]},t)),(0,U.jsxs)(`tr`,{children:[(0,U.jsx)(`th`,{scope:`row`,className:`p-3 font-semibold text-ls-text`,children:a.total_label}),(0,U.jsx)(`td`,{className:`p-3 text-right font-semibold text-ls-text`,children:a.total})]})]})]})})]}),(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsx)(`h2`,{className:`ls-h2`,children:a.study_title}),(0,U.jsx)(`p`,{className:`mt-4 text-ls-text2`,children:(0,U.jsx)(vt,{text:a.study_body,linkClassName:Tb})}),(0,U.jsx)(`p`,{className:`mt-4 text-ls-text2`,children:(0,U.jsx)(vt,{text:a.competency_body,linkClassName:Tb})})]})]})}),(0,U.jsx)(`section`,{className:`ls-section ${d?`bg-ls-bg`:`bg-ls-alt`}`,children:(0,U.jsxs)(`div`,{className:`ls-container grid gap-10 md:grid-cols-2`,children:[(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsx)(`h2`,{className:`ls-h2`,children:o.title}),(0,U.jsx)(`p`,{className:`mt-4 text-lg text-ls-text2`,children:(0,U.jsx)(vt,{text:o.body,linkClassName:Tb})}),o.link_line.trim()&&(0,U.jsx)(`p`,{className:`mt-4 text-ls-text2`,children:(0,U.jsx)(vt,{text:o.link_line,linkClassName:Tb})})]}),(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsx)(`h2`,{className:`ls-h2`,children:o.support_title}),(0,U.jsx)(`p`,{className:`mt-4 text-lg text-ls-text2`,children:(0,U.jsx)(vt,{text:o.support_body,linkClassName:Tb})}),o.support_button.trim()&&(0,U.jsx)(oe,{to:Qe(o.support_button_url,`/bryte`),className:`ls-btn ls-btn-outline mt-6`,children:o.support_button})]})]})}),(0,U.jsx)(`section`,{className:`ls-section bg-ls-alt`,children:(0,U.jsxs)(`div`,{className:`ls-container grid gap-10 md:grid-cols-2`,children:[(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsx)(`h2`,{className:`ls-h2`,children:s.title}),(0,U.jsx)(`ul`,{className:`mt-4 list-disc space-y-2 pl-5 text-ls-text2`,children:nt(s.items).map((e,t)=>(0,U.jsx)(`li`,{children:(0,U.jsx)(vt,{text:e,linkClassName:Tb})},t))}),s.links_line.trim()&&(0,U.jsx)(`p`,{className:`mt-4 text-ls-text2`,children:(0,U.jsx)(vt,{text:s.links_line,linkClassName:Tb})})]}),(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsx)(`h2`,{className:`ls-h2`,children:s.fit_title}),s.fit_intro.trim()&&(0,U.jsx)(`p`,{className:`mt-4 text-ls-text2`,children:s.fit_intro}),(0,U.jsx)(`div`,{className:`mt-4`,children:(0,U.jsx)(mt,{items:nt(s.fit_items)})}),s.consider_other.trim()&&(0,U.jsx)(`p`,{className:`mt-4 text-ls-text2`,children:(0,U.jsx)(vt,{text:s.consider_other,linkClassName:Tb})})]})]})}),(0,U.jsx)(`section`,{className:`ls-section bg-ls-bg`,children:(0,U.jsxs)(`div`,{className:`ls-container grid items-center gap-10 md:grid-cols-2`,children:[(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsx)(`h2`,{className:`ls-h2`,children:c.title}),(0,U.jsx)(`ol`,{className:`mt-6 space-y-4 text-ls-text2`,children:nt(c.steps).map((e,t)=>(0,U.jsxs)(`li`,{className:`flex gap-4`,children:[(0,U.jsx)(`span`,{className:`grid h-8 w-8 shrink-0 place-items-center rounded-full bg-ls-accent text-sm font-bold text-white`,"aria-hidden":`true`,children:t+1}),(0,U.jsx)(`span`,{className:`pt-1`,children:e})]},t))}),c.button.trim()&&(0,U.jsx)(oe,{to:Qe(c.button_url,`/apply`),className:`ls-btn ls-btn-primary mt-8`,children:c.button})]}),(0,U.jsx)(_t,{width:300})]})}),(0,U.jsx)(`section`,{className:`ls-section bg-ls-alt`,children:(0,U.jsxs)(`div`,{className:`ls-container max-w-[860px]`,children:[(0,U.jsx)(`h2`,{className:`ls-h2`,children:l.title}),(0,U.jsx)(`div`,{className:`mt-6 space-y-3`,children:tt(l.items).map((e,t)=>(0,U.jsxs)(`details`,{className:`ls-card group p-5`,children:[(0,U.jsx)(`summary`,{className:`curs
14or-pointer text-lg font-semibold text-ls-text`,children:e.q}),(0,U.jsx)(`p`,{className:`mt-3 text-ls-text2`,children:(0,U.jsx)(vt,{text:e.a,linkClassName:Tb})})]},t))})]})}),(0,U.jsx)(`section`,{className:`ls-section bg-ls-bg`,children:(0,U.jsxs)(`div`,{className:`ls-container`,children:[(0,U.jsx)(`h2`,{className:`ls-h2`,children:u.title}),(0,U.jsx)(`div`,{className:`mt-6 grid gap-5 sm:grid-cols-2 lg:grid-cols-3`,children:tt(u.cards).map((e,t)=>(0,U.jsxs)(oe,{to:Qe(e.url,`/programs`),className:`ls-card block p-6 hover:border-ls-accent`,children:[(0,U.jsx)(`h3`,{className:`ls-h3`,children:e.title}),(0,U.jsx)(`p`,{className:`mt-2 text-ls-text2`,children:e.text})]},t))})]})}),(0,U.jsx)(at,{title:u.guides_title||void 0,exclude:`/competency-based-learning`,className:`bg-ls-alt`}),(0,U.jsx)(gt,{})]})}var Ab=()=>P(()=>import(`./_www.college-career-prep-diploma-Dq7vsBG4.js`),__vite__mapDeps([170,1])),jb=`college_career_prep_diploma`,Mb=W(`/_www/college-career-prep-diploma`)({loader:async()=>{let[e,t]=await Promise.all([uy(jb).catch(()=>fy(jb)),Ey(jb).catch(()=>({}))]);return{seo:e,content:t}},head:({loaderData:e})=>{let t=hy(e?.seo,jb);return t.scripts=[...t.scripts??[],{type:`application/ld+json`,children:JSON.stringify(he(Ob(`prep`,e?.content)))}],t},component:G(Ab,`component`)}),Nb=[[`Earn credit for what you know. Focus on what you still need to learn.`,`Leaving high school did not mean you stopped learning. Since then, you may have worked, managed a household, trained for a job, raised children, or solved problems that required reading, writing, math, and critical thinking.
15
16You bring that experience with you when you return to school.
17
18At Learn Star Academy, competency-based learning gives adult students a practical way to move toward an accredited high school diploma. Transfer eligible credits, demonstrate your knowledge through available challenge exams, and concentrate your study time on the skills you still need to master.
19
20For adults with accepted credits, strong subject knowledge, and time to study consistently, completing their remaining requirements in weeks or months may be possible. Estimated completion: 2–6 months. Some students finish in weeks, while others take several months or longer, depending on accepted transfer credits, motivation, available study time, and academic progress. Students have up to 18 months from enrollment to complete the program.
21
22You do not have to let an unfinished education keep deciding what comes next. Take the first step toward becoming a high school graduate.
23
24[Enroll at Learn Star Academy.](/apply)`],[`What Is Competency-Based Learning?`,`Competency-based learning measures your ability to understand and use a subject. A competency is a skill or area of knowledge you can demonstrate.
25
26For example, understanding percentages means more than recognizing a symbol. You should be able to calculate a discount, compare amounts, or solve an appropriate math problem. In English, you might demonstrate that you can identify a main idea, evaluate information, or communicate clearly.
27
28This approach gives your existing knowledge a meaningful role in your education. When you demonstrate the required mastery through an approved assessment, you can move ahead according to program rules.
29
30When a topic is unfamiliar, you study it and build the missing skills.
31
32Both Learn Star Academy diploma programs use competency-based learning, including opportunities to test out of lessons or courses. [1] Your learning path can therefore reflect what you already understand, while still requiring you to meet the standards for graduation.`],[`Transfer the High School Credits You Already Earned`,`Before planning your next classes, take a closer look at the classes you already passed.
33
34An unfinished high school education may still include valuable completed credits. Those records can help the school identify which requirements you have satisfied and which remain.
35
36Request your transcript from your previous high school or the office that maintains its records. If you attended more than one school, tell the enrollment team so your academic history can be reviewed as completely as possible.
37
38Eligible transfer credits can reduce the work ahead. However, credits must be evaluated and matched to the requirements of your selected diploma program. A total credit count alone does not explain whether you have completed the necessary subjects.
39
40Learn Star Academy also requires at least six credits earned directly through the school, regardless of accepted transfer credits. [2]
41
42The goal is a clear graduation plan: recognize eligible past achievements, identify remaining requirements, and help you direct your effort toward finishing them.`],[`Use Challenge Exams to Demonstrate Your Knowledge`,`A challenge exam gives you an opportunity to show that you already understand the material covered by an eligible lesson or course.
43
44Think about subjects you use regularly. You might read instructions at work, calculate measurements, prepare written reports, or analyze information before making decisions. These experiences may strengthen your academic skills, even if you have been away from school for years.
45
46Experience itself does not automatically award academic credit. You must demonstrate the required knowledge through the school's approved asse
46ssment process.
47
48When you meet the applicable standard, you may be able to move past material you have already mastered. If you do not demonstrate mastery, the result helps identify where more study is needed.
49
50Ask the enrollment team how challenge exams apply to your assigned courses and which other assessments remain required. Knowing the rules before you begin helps you plan realistically and make the most of each opportunity to advance.`],[`Spend Your Study Time Where It Matters`,`Repeating familiar material can make returning to school feel overwhelming. A more focused approach gives you a reason for the work in front of you.
51
52Imagine that you are comfortable with basic calculations but need help with algebra. Or perhaps you read confidently but want to improve essay organization. These are different needs, and your study plan should recognize them.
53
54Competency-based learning helps you concentrate on the areas where you still need to demonstrate understanding. Where an approved assessment allows you to advance, you can avoid unnecessary repetition. Where you need instruction, the coursework becomes your opportunity to improve.
55
56You still complete the required work and assessments that apply to your program. The advantage is a more purposeful use of your time.
57
58Every study session can address a specific goal: learn a concept, practice a skill, correct a misunderstanding, or prepare to demonstrate mastery.`],[`Can You Graduate in Weeks or Months?`,`For some adults, the remaining path to graduation may be shorter. Accepted transfer credits and successful challenge assessments can reduce the amount of remaining coursework.
59
60Your available study time also matters. Someone who can study regularly may move faster than someone balancing an unpredictable work schedule or major family responsibilities.
61
62Consider two possible starting points. One learner arrives with substantial eligible credits and strong academic skills. Another needs more credits and time to rebuild confidence in several subjects. Both can succeed, but their schedules will look different.
63
64Estimated completion: 2–6 months. Some students finish in weeks, while others take several months or longer, depending on accepted transfer credits, motivation, available study time, and academic progress. Students have up to 18 months from enrollment to complete the program. The estimate is not a guaranteed graduation deadline or a promise that every student will finish quickly.
65
66Students have up to 18 months to complete their coursework and earn their diploma. Use that flexibility to set a realistic pace, then make consistent progress toward the earliest completion date that works for you.`],[`Why an Adult Diploma Can Be a Better Fit Than a GED`,`If you left high school, you may have assumed the GED was your only next step. An accredited adult high school diploma gives you another option.
67
68The GED is a high school equivalency credential earned through subject tests. It is widely accepted by colleges and employers and can be a good choice for many adults. [3]
69
70A diploma program follows a different route. You satisfy the school's graduation requirements through accepted credits and the academic work or assessments required for your program.
71
72An adult diploma may be the better fit if you already earned high school credits, prefer progressing through individual subjects, want additional instruction where needed, or value completing the diploma you originally started.
73
74You can also combine faster progress in familiar subjects with more deliberate study in difficult ones. That balance may appeal to adults who want both recognition of their knowledge and a supported learning process.
75
76Neither route is automatically faster, easier, or better for everyone. Compare your existing credits, readiness for exams, budget, and future plans. For adults whose strengths match a competency-based program, finishing high school can be a practical and satisfying choice.`],[`Why Accreditation Matters`,`When you invest in your education, the school behind your diploma matters.
77
78Learn Star Academy is accredited by the Middle States Association Commissions on Elementary and Secondary Schools, known as MSA-CESS. [4]
79
80Accreditation involves an external review of a school's educational quality and practices. [5] It provides a meaningful basis for evaluating a school beyond attractive advertising or promises of fast results.
81
82Before enrolling anywhere, review the school's accreditation information, graduation requirements, and process for issuing official academic records. Make sure you understand what you must accomplish to graduate.
83
84An accredited diploma can support applications for work, college, or career training. Each receiving organization sets its own requirements, so check the expectations of any specific employer or college you plan to approach.
85
86Learn more about [Learn Star Academy's accreditation](/accreditation).`],[`The Benefits of Earning Your Diploma Online`,`Your diploma can have value long after your final assignment. It can help you pursue opportunities, strengthen your skills, and finish a goal that has mattered to you for years.
87
88## Meet more education requirements
89
90Some positions require a high school diploma or an accepted equivalent. Earning your diploma can help you satisfy that part of an application and consider opportunities you previously passed over.
91
92It does not guarantee a job or promotion. It gives you a completed educational credential to present alongside your experience, reliability, and other qualifications.
93
94## Prepare for further education
95
96Graduation can become a starting point for a certificate, technical program, community college, or university application. Reviewing admissions requirements early helps you choose courses that support your plans.
97
98## Strengthen everyday skills
99
100Reading carefully, organizing ideas, using numbers, and evaluating information matter outside school. As you address gaps in your understanding, you can practice skills that also support everyday decisions and future learning.
101
102## Keep earning while you learn
103
104Online study can fit around your existing responsibilities. Removing a daily trip to campus may leave more time for coursework, paid work, or the people who depen
104d on you.
105
106## Build confidence through completion
107
108There is personal value in finishing something difficult. Your diploma can mark a decision to return, persist, and follow through.
109
110National employment data also show an association between higher education levels, higher earnings, and lower unemployment. Those patterns provide context for education's value; they do not predict any individual student's income. [6]`],[`Get Help When a Subject Feels Difficult`,`Fast progress still leaves room for questions. Being an adult learner does not mean you should already know every answer.
111
112Learn Star Academy's BRYTE AI tutor is available around the clock to explain concepts, guide practice, and help you work through difficult material. It can support learning when your study time falls early in the morning or late at night. [7]
113
114For example, you might ask for a simpler explanation of a math concept, another practice question, or help understanding how to organize your thinking.
115
116Use tutoring to strengthen your understanding before an assessment. Your submitted work and demonstrated mastery must remain your own.
117
118Reaching out for help is a productive part of learning. A question you resolve today can prevent the same confusion from slowing down tomorrow's assignment.`],[`Choose the Diploma Program That Supports Your Goals`,`Learn Star Academy offers two adult diploma options:`],[`Build a Realistic Plan to Finish`,`A strong start can make the rest of your program easier to manage.
119
120First, gather your school records. A complete transcript review helps establish your actual starting point.
121
122Next, understand your remaining requirements. Ask which credits transferred, which subjects remain, and where challenge assessments may apply.
123
124Then, create a weekly study routine. Choose specific times you can protect and set manageable goals for each session. A useful goal might be reviewing one concept, completing a lesson, or preparing for an assessment.
125
126Track completed work as well as unfinished tasks. Visible progress can help you stay focused when graduation still feels far away.
127
128Finally, adjust when life changes. Missing a planned study session does not have to become a month away from school. Return to your next manageable task and continue building momentum.`],[`Common Questions About Competency-Based Learning`,``],[`Enroll Today and Move Toward Graduation`,`Your education does not have to remain unfinished.
129
130The term “high school dropout” describes a past event. It does not measure your intelligence, your work ethic, or what you can accomplish next.
131
132Bring the credits you earned. Demonstrate the knowledge you have gained. Build the skills you still need. With a focused plan and consistent effort, you can work toward your accredited high school diploma and the opportunities that follow.
133
134Do not spend more time wondering whether finishing is possible. Learn what remains, choose your program, and take action.
135
136[Enroll today at Learn Star Academy](/apply) and start working toward graduation. Ready to discuss your fastest realistic path? [Contact our enrollment team.](/contact)`]],Pb=[[`Do I have to start high school over?`,`Not necessarily. Eligible credits from previous schooling can count after review. Your graduation plan should identify the subjects and credits you still need, including the school's minimum requirements for work completed directly through Learn Star Academy.`],[`What if I remember very little from school?`,`You can use coursework and learning support to rebuild your understanding. Challenge exams provide an opportunity to demonstrate knowledge; they do not mean you must already know every subject before enrolling.`],[`Does working quickly mean skipping academic standards?`,`No. Moving quickly depen
136ds on demonstrating the required knowledge and completing your graduation requirements. You advance through approved processes, with coursework and required assessments where they apply.`],[`Am I too old to return?`,`Learn Star Academy serves adults age 18 and older. [8] Whether you recently left school or have been away for many years, your next step is to understand your options and begin from your current starting point.`]],Fb={hero_eyebrow:`Learn Star Academy`,hero_title:`Competency-Based Learning for Your High School Diploma`,hero_lead:``,hero_cta_primary_label:`Enroll at Learn Star Academy`,hero_cta_primary_url:`/apply`,hero_cta_secondary_label:`Contact our enrollment team`,hero_cta_secondary_url:`/contact`,toc_heading:`On this page`,...Object.fromEntries(Nb.flatMap(([e,t],n)=>[[`s${n+1}_title`,e],[`s${n+1}_body`,t]])),program_1_name:`Standard Career Ready Program`,program_1_credits:`21.5 credits`,program_1_price:`Starting at $99 per month`,program_2_name:`College & Career Prep Program`,program_2_credits:`24 credits`,program_2_price:`Starting at $129 per month`,programs_after:`Both lead to an accredited Learn Star Academy high school diploma. Your choice should reflect your future plans, the credits you bring, and the coursework you want to complete.
137
138A conversation with enrollment services can help you understand the differences and select a suitable path. Review current [tuition details](/tuition) and the [enrollment agreement](/enrollment-agreement) before enrolling, including applicable fees and graduation requirements.
139
140[Compare the adult diploma programs](/programs) and explore the [course catalog](/courses-catalog).`,...Object.fromEntries(Pb.flatMap(([e,t],n)=>[[`faq_${n+1}_q`,e],[`faq_${n+1}_a`,t]])),sources_heading:`Sources`,sources:[`Learn Star Academy adult diploma programs | https://www.learnstar.com/programs`,`Learn Star Academy enrollment agreement | https://www.learnstar.com/enrollment-agreement`,`GED Testing Service comparison of the GED and a high school diploma | https://www.ged.com/blog/whats-the-difference-between-the-ged-and-a-high-school-diploma.html`,`Learn Star Academy accreditation | https://www.learnstar.com/accreditation`,`MSA CESS overview of the accreditation process | https://msa-cess.org/press-release-middle-states-announces-195-schools-and-school-systems-earn-accreditation-reaccreditation/`,`US Bureau of Labor Statistics Education pays 2025 | https://www.bls.gov/careeroutlook/2026/data-on-display/education-pays.htm`,`Learn Star Academy programs and BRYTE tutoring | https://www.learnstar.com/`,`Learn Star Academy frequently asked questions | https://www.learnstar.com/faq`].join(`
141`),reference_label:`Reference page: Excel High School AcceleratED Adult Diploma`,reference_url:`https://www.excelhighschool.com/online-programs/adult-high-school-diploma/accelerated-diploma/`};function Ib(e){return e.split(`
142`).map(e=>e.trim()).filter(Boolean).map(e=>{let t=e.lastIndexOf(`|`);return t<0?{label:e,url:``}:{label:e.slice(0,t).trim(),url:e.slice(t+1).trim()}})}function Lb(e){return Array.from({length:4},(t,n)=>({q:e(`faq_${n+1}_q`),a:e(`faq_${n+1}_a`).replace(/\s*\[\d+\]/g,``).replace(/\[([^\]]+)\]\([^)]+\)/g,`$1`)})).filter(e=>e.q&&e.a)}var Rb=W(`/_www/competency-based-learning`)({loader:async()=>{let[e,t]=await Promise.all([uy(`competency_based_learning`).catch(()=>fy(`competency_based_learning`)),Ey(`competency_based_learning`).catch(()=>({}))]);return{seo:e,content:t}},head:({loaderData:e})=>{let t=hy(e?.seo,`competency_based_learning`),n=e?.content??{},r=e=>(n[e]??``).trim()||Fb[e]||``,i={"@context":`https://schema.org`,"@type":`Article`,headline:r(`hero_title`),description:e?.seo?.description,author:{"@type":`Organization`,name:`Learn Star Academy`,url:pe},publisher:{"@type":`EducationalOrganization`,name:`Learn Star Academy`,url:pe},mainEntityOfPage:`${pe}/competency-based-learning`};return t.scripts=[...t.scripts??[],{type:`application/ld+json`,children:JSON.stringify(i)},{type:`application/ld+json`,children:JSON.stringify(he(Lb(r)))}],t},component:G(()=>P(()=>import(`./_www.competency-based-learning-CTqvneNx.js`),__vite__mapDeps([171,1,2,7,6,149,4,5,3,157,153])),`component`)}),zb=W(`/_www/contact`)({loader:async()=>{try{return await uy(`contact`)}catch{return fy(`contact`)}},head:({loaderData:e})=>hy(e,`contact`),component:G(()=>P(()=>import(`./_www.contact-xT2uaL9P.js`),__vite__mapDeps([172,1,2,7,126,13,50,51,53,19,4,5,6,150,151,23,156,157,153,142,79,78,168])),`component`)}),Bb=W(`/_www/courses-catalog`)({loader:async()=>{let[e,t]=await Promise.all([uy(`coursesCatalog`).catch(()=>
142fy(`coursesCatalog`)),Ey(`courses`)]);return{seo:e,content:t}},head:({loaderData:e})=>hy(e?.seo,`coursesCatalog`),component:G(()=>P(()=>import(`./_www.courses-catalog-DDA7qFQw.js`),__vite__mapDeps([173,1,2,7,107,13,30,36,19,4,5,6,149,150,3,151,156,174,159,26,27,10,11,12,96])),`component`)}),Vb=W(`/_www/enrollment-agreement`)({loader:async()=>{let[e,t]=await Promise.all([uy(`enrollment_agreement`).catch(()=>fy(`enrollment_agreement`)),Ey(`enrollment_agreement`).catch(()=>({}))]);return{seo:e,content:t}},head:({loaderData:e})=>hy(e?.seo,`enrollment_agreement`),component:G(()=>P(()=>import(`./_www.enrollment-agreement-3pVGhEX0.js`),__vite__mapDeps([175,1,2,7,176,13,4,5,6,3,157,153,177])),`component`)}),Hb=W(`/_www/enrollment-success`)({loader:async()=>{try{return await uy(`enrollmentSuccess`)}catch{return fy(`enrollmentSuccess`)}},head:({loaderData:e})=>hy(e,`enrollmentSuccess`),component:G(()=>P(()=>import(`./_www.enrollment-success-fHQHoWA6.js`),__vite__mapDeps([178,1,2,30,13,67,36,14,17,6,7,80,19])),`component`)}),Ub=W(`/_www/faq`)({loader:async()=>{let[e,t,n]=await Promise.all([uy(`faq`).catch(()=>fy(`faq`)),Ey(`faq`),Dy()]);return{seo:e,content:t,categories:n}},head:({loaderData:e})=>{let t=hy(e?.seo,`faq`),n=(e?.categories??[]).flatMap(e=>e.items.map(e=>({q:e.q,a:e.a.replace(/<[^>]+>/g,` `).replace(/\s+/g,` `).trim()})));return n.length>0&&(t.scripts=[...t.scripts??[],{type:`application/ld+json`,children:JSON.stringify(he(n))}]),t},component:G(()=>P(()=>import(`./_www.faq-DgNDnKXE.js`),__vite__mapDeps([179,1,2,7,11,13,30,12,40,42,17,110,180,111,19,4,5,6,149,150,3,112,33,95,35,113,27,114,115,14,116,90,58,156,157,153])),`component`)}),Wb=W(`/_www/handbook`)({loader:async()=>{let[e,t]=await Promise.all([uy(`handbook`).catch(()=>fy(`handbook`)),Ey(`handbook`).catch(()=>({}))]);return{seo:e,content:t}},head:({loaderData:e})=>hy(e?.seo,`handbook`),component:G(()=>P(()=>import(`./_www.handbook-BaRLcOol.js`),__vite__mapDeps([181,1,2,7,12,13,176,111,6,3,4,5,151,157,153,182])),`component`)}),Gb=W(`/_www/home-page`)({beforeLoad:()=>{throw s({to:`/`,statusCode:301})}}),Kb=W(`/_www/outcomes`)({loader:async()=>{let[e,t]=await Promise.all([uy(`outcomes`).catch(()=>fy(`outcomes`)),Ey(`outcomes`)]);return{seo:e,content:t}},head:({loaderData:e})=>{let t=hy(e?.seo,`outcomes`);return t.scripts=[...t.scripts??[],{type:`application/ld+json`,children:JSON.stringify(he(tt($e(`faq_list`,lt.faq_list,e?.content).items)))}],t},component:G(()=>P(()=>import(`./_www.outcomes-BWZkf3_Q.js`),__vite__mapDeps([183,1])),`component`)}),qb=W(`/_www/privacy`)({loader:async()=>{try{return await uy(`privacy`)}catch{return fy(`privacy`)}},head:({loaderData:e})=>hy(e,`privacy`),component:G(()=>P(()=>import(`./_www.privacy-BVBHtuql.js`),__vite__mapDeps([184,185,1,7,13,32,15,19,4,5,6,150,151,2,156,157,153,162,3])),`component`)}),Jb=W(`/_www/programs`)({loader:async()=>({seo:await uy(`programs`).catch(()=>fy(`programs`))}),head:({loaderData:e})=>hy(e?.seo,`programs`),component:G(()=>P(()=>import(`./_www.programs-DD8ZOxnA.js`),__vite__mapDeps([186,1,2,13,164,67,126,187,36,4,5,6,7,149,188,3,151,189,147,45,148,46,108,19,150,152,153])),`component`)}),Yb=W(`/_www/reviews`)({loader:async()=>{let[e,t,n]=await Promise.all([uy(`reviews`).catch(()=>fy(`reviews`)),Ey(`reviews`),Ey(`home`).catch(()=>null)]);return{seo:e,content:t,home:n?ob(n):void 0}},head:({loaderData:e})=>hy(e?.seo,`reviews`),component:G(()=>P(()=>import(`./_www.reviews-B0ZzEdlR.js`),__vite__mapDeps([190,1])),`component`)}),Xb=()=>P(()=>import(`./_www.standard-career-ready-diploma-DBmGEAnc.js`),__vite__mapDeps([191,1])),Zb=`standard_career_ready_diploma`,Qb=W(`/_www/standard-career-ready-diploma`)({loader:async()=>{let[e,t]=await Promise.all([uy(Zb).catch(()=>fy(Zb)),Ey(Zb).catch(()=>({}))]);return{seo:e,content:t}},head:({loaderData:e})=>{let t=hy(e?.seo,Zb);return t.scripts=[...t.scripts??[],{type:`application/ld+json`,children:JSON.stringify(he(Ob(`standard`,e?.content)))}],t},component:G(Xb,`component`)}),$b=W(`/_www/terms`)({loader:async()=>{try{return await uy(`terms`)}catch{return fy(`terms`)}},head:({loaderData:e})=>hy(e,`terms`),component:G(()=>P(()=>import(`./_www.terms-GWcEyVSk.js`),__vite__mapDeps([192,1,7,19,4,5,6,150,157,153,162,3,2])),`component`)}),ex=W(`/_www/thank-you`)({loader:async()=>{try{return await uy(`thankYou`)}catch{return fy(`thankYou`)}},head:({loaderData:e})=>hy(e,`thankYou`),component:G(()=>P(()=>import(`./_www.thank-you-CsHz8LvS.js`),__vite__mapDeps([193,1,2,67,13,36,17,6,7,80,19])),`component`)}),tx=W(`/_www/trust`)({loader:async()=>{try{return await uy(`trust`)}catch{return fy(`trust`)}},head:({loaderData:e})=>hy(e,`trust`),component:G(()=>P(()=>import(`./_www.trust-DAamZacB.js`),__vite__mapDeps([194,1,13,15,50,45,48,6,7,151,2,195,162,4,5,3])),`component`)}),nx=W(`/_www/tuition`)({loader:async()=>{try{return await uy(`tuition`)}catch{return fy(`tuition`)}},head:({loaderData:e})=>hy(e,`tuition`),component:G(()=>P(()=>import(`./_www.tuition-BnD5OaY0.js`),[]),`component`)}),rx=W(`/auth/callback`)({head:()=>gy(`Signing In | Learn Star Academy`),component:G(()=>P(()=>import(`./auth.callback-CSsQB1ac.js`),__vite__mapDeps([196,1,2,7,14,13,22,61])),`component`)}),ix=W(`/auth/reset-callback`)({head:()=>gy(`Password Reset | Learn Star Academy`),component:G(()=>P(()=>import(`./auth.reset-callback-qlQ_cawz.js`),__vite__mapDeps([197,1,2,7,22,61])),`component`)}),ax=W(`/observer/`)({head:()=>gy(`Observer Dashboard | Learn Star Academy`),component:G(()=>P(()=>import(`./observer.index-Bwy7kKHr.js`),__vite__mapDeps([198,1,2,7,11,30,13,34,67,102,41,87,36,14,108,145,91,22,60,61,59])),`component`)}),ox=W(`/_admin/admin/`)({component:G(()=>P(()=>import(`./_admin.admin.index---0NzqJF.js`),__vite__mapDeps([199,1,2,7,9,10,11,13,29,30,31,125,34,41,42,70,36,43,145,131,200,48,25,26,27,28,32,33,35,37,38,39,40,44,18,45,46,47,14,15,49,50,51,16,52,53,54,20,19,21,22,55,56,57,58,201,111,12
1420,202,98,132,203,67,204])),`component`)}),sx=W(`/_admin/admin/bryte`)({component:G(()=>P(()=>import(`./_admin.admin.bryte-C035GMsO.js`),__vite__mapDeps([205,1,7,11,9,10,13,30,35,86,206,116,46,90,92,21,25,2,26,27,28,29,31,32,33,34,36,37,38,39,40,41,42,43,44,18,45,47,48,14,15,49,50,51,16,52,53,54,20,19,22,55,56,57,58,119,207,96,208,209])),`component`)}),cx=W(`/_admin/admin/calendar`)({component:G(()=>P(()=>import(`./_admin.admin.calendar-WwUPldPy.js`),__vite__mapDeps([210,1,7,11,9,10,31,13,39,34,70,85,118,36,14,110,108,90,48,21,25,2,26,27,28,29,30,32,33,35,37,38,40,41,42,43,44,18,45,46,47,15,49,50,51,16,52,53,54,20,19,22,55,56,57,58,119,209,94,12,95,96,97,120])),`component`)}),lx=W(`/_admin/admin/campaigns`)({component:G(()=>P(()=>import(`./_admin.admin.campaigns-BPpvGuqF.js`),__vite__mapDeps([211,1,7,9,10,11,29,13,30,67,126,36,14,43,18,131,48,21,25,2,26,27,28,31,32,33,34,35,37,38,39,40,41,42,44,45,46,47,15,49,50,51,16,52,53,54,20,19,22,55,56,57,58,119,94,12,95,96,97,120])),`component`)}),ux=W(`/_admin/admin/compliance`)({component:G(()=>P(()=>import(`./_admin.admin.compliance-CnmbnFE5.js`),__vite__mapDeps([212,1,2,7,11,9,10,13,107,30,12,95,67,136,41,126,70,86,36,14,176,111,21,25,26,27,28,29,31,32,33,34,35,37,38,39,40,42,43,44,18,45,46,47,48,15,49,50,51,16,52,53,54,20,19,22,55,56,57,58,207,96,208])),`component`)}),dx=W(`/_admin/admin/faq`)({component:G(()=>P(()=>import(`./_admin.admin.faq-RXOYobEb.js`),__vite__mapDeps([213,1,7,11,33,13,12,95,40,35,113,27,114,115,14,110,116,111,90,25,2,26,10,28,9,29,30,31,32,34,36,37,38,39,41,42,43,44,18,45,46,47,48,15,49,50,51,16,52,53,54,20,19,21,22,55,56,57,58])),`component`)}),fx=W(`/_admin/admin/messages`)({component:G(()=>P(()=>import(`./_admin.admin.messages-BNmva_mQ.js`),__vite__mapDeps([214,1,7,11,215,13,33,12,67,136,126,14,43,44,110,111,18,90,54,93,25,2,26,27,10,28,9,29,30,31,32,34,35,36,37,38,39,40,41,42,45,46,47,48,15,49,50,51,16,52,53,20,19,21,22,55,56,57,58,203,216,96,208])),`component`)}),px=W(`/_admin/admin/messaging`)({component:G(()=>P(()=>import(`./_admin.admin.messaging-DfMpc1Al.js`),__vite__mapDeps([217,1,7,11,30,13,31,12,67,126,86,36,14,50,110,53,116,111,18,46,90,54,48,25,2,26,27,10,28,9,29,32,33,34,35,37,38,39,40,41,42,43,44,45,47,15,49,51,16,52,20,19,21,22,55,56,57,58,207,96,208])),`component`)}),mx=W(`/_admin/admin/payments`)({component:G(()=>P(()=>import(`./_admin.admin.payments-DP7CsrkE.js`),__vite__mapDeps([218,1,7,11,9,10,13,30,33,12,34,67,126,42,130,70,85,86,36,113,27,14,52,110,116,111,21,25,2,26,28,29,31,32,35,37,38,39,40,41,43,44,18,45,46,47,48,15,49,50,51,16,53,54,20,19,22,55,56,57,58,119,207,96,208,94,95,97,120,201])),`component`)}),hx=W(`/_admin/admin/programs`)({component:G(()=>P(()=>import(`./_admin.admin.programs-DVAvZACq.js`),__vite__mapDeps([219,1,7,9,10,11,30,13,34,67,130,36,113,27,14,110,111,90,48,21,25,2,26,28,29,31,32,33,35,37,38,39,40,41,42,43,44,18,45,46,47,15,49,50,51,16,52,53,54,20,19,22,55,56,57,58,119,207,96,208,209,120])),`component`)}),gx=W(`/_admin/admin/registrar`)({component:G(()=>P(()=>import(`./_admin.admin.registrar-DHTIOvuX.js`),__vite__mapDeps([220,1,7,11,9,10,13,107,30,34,67,41,70,86,36,103,38,2,29,31,32,39,40,42,37,43,44,18,45,46,47,48,14,138,116,221,111,89,90,92,54,21,25,26,27,28,33,35,15,49,50,51,16,52,53,20,19,22,55,56,57,58,119,207,96,208,209,94,12,95,97,120,201,98])),`component`)}),_x=W(`/_admin/admin/reports`)({component:G(()=>P(()=>import(`./_admin.admin.reports-DJmHJTA2.js`),__vite__mapDeps([222,1,2,7,11,9,10,13,82,30,31,83,125,33,34,126,42,130,70,85,86,36,38,29,32,39,40,41,37,43,44,18,45,46,47,48,14,110,111,89,108,105,145,93,21,25,26,27,28,35,15,49,50,51,16,52,53,54,20,19,22,55,56,57,58,119,207,96,208,94,12,95,97,120,202,98,132,204])),`component`)}),vx=W(`/_admin/admin/roles`)({component:G(()=>P(()=>import(`./_admin.admin.roles-CCFl5XYG.js`),__vite__mapDeps([223,1,7,11,9,10,71,13,36,38,2,29,30,31,32,39,34,40,41,42,37,43,44,18,45,46,47,48,15,111,89,90,21,25,26,27,28,33,35,14,49,50,51,16,52,53,54,20,19,22,55,56,57,58,94,12,95,96,97,120,216,136,208])),`component`)}),yx=W(`/_admin/admin/settings`)({component:G(()=>P(()=>import(`./_admin.admin.settings-DLXrb0DQ.js`),__vite__mapDeps([224,1,2,7,9,10,11,13,29,31,41,86,123,14,50,221,92,21,25,26,27,28,30,32,33,34,35,36,37,38,39,40,42,43,44,18,45,46,47,48,15,49,51,16,52,53,54,20,19,22,55,56,57,58,119,207,96,208,209,94,12,95,97,225,113,110,90])),`component`)}),bx=W(`/_admin/admin/staff`)({component:G(()=>P(()=>import(`./_admin.admin.staff-CKF4F0Ua.js`),__vite__mapDeps([226,1,2,7,11,9,10,13,128,227,30,164,83,84,33,67,41,126,85,36,14,50,51,53,45,108,90,131,54,48,21,25,26,27,28,29,31,32,34,35,37,38,39,40,42,43,44,18,46,47,15,49,16,52,20,19,22,55,56,57,58,119,207,96,208,94,12,95,97,103,228,89,200,120])),`component`)}),xx=W(`/_admin/admin/store`)({component:G(()=>P(()=>import(`./_admin.admin.store-BcT5AluE.js`),__vite__mapDeps([229,1,7,11,9,10,14,13,52,110,90,21,119,209,26,27,120,28])),`component`)}),Sx=W(`/_admin/admin/students`)({beforeLoad:()=>{throw s({to:`/admin/users`,replace:!0})}}),Cx=W(`/_admin/admin/users`)({component:G(()=>P(()=>import(`./_admin.admin.users-BLcD3V5F.js`),__vite__mapDeps([230,1,2,7,9,10,11,13,30,227,164,83,84,33,67,41,126,85,36,14,50,51,53,45,108,90,131,54,48,21,25,26,27,28,29,31,32,34,35,37,38,39,40,42,43,44,18,46,47,15,49,16,52,20,19,22,55,56,57,58,119,207,96,208,94,12,95,97,136,130,70,86,110,
142111,89,92,200,231,120])),`component`)}),wx=W(`/_admin/admin/website`)({component:G(()=>P(()=>import(`./_admin.admin.website-gwWBvR8U.js`),__vite__mapDeps([232,1,7,233,11,9,10,13,64,115,30,31,12,67,40,185,32,15,19,4,5,6,150,151,2,156,157,153,162,3,137,85,35,86,36,234,37,123,206,114,27,50,110,139,180,116,111,89,46,90,131,92,200,48,149,235,21,25,26,28,29,33,34,38,39,41,42,43,44,18,45,47,14,49,51,16,52,53,54,20,22,55,56,57,58,119,207,96,208,209,94,95,97,120,225,113,165,112,189,195,161,80,152,174,158,177,182])),`component`)}),Tx=W(`/_app/courses/`)({component:G(()=>P(()=>import(`./_app.courses.index-DaGjqEdg.js`),__vite__mapDeps([236,1,2,7,11,9,10,13,30,135,42,12,34,67,129,40,136,41,126,187,36,155,14,15,138,111,18,105,91,58,202,26,27,28,39,98,132,63,64,31,37,38,29,32,43,44,45,46,47,48,49,54,19,20,22,133])),`component`)}),Ex=()=>P(()=>import(`./_www.blog.index-yAGjifW1.js`),__vite__mapDeps([237,1,2,83,13,6,7,3,4,5,157,153,238]));async function Dx(){let{data:e}=await F.from(`blog_posts`).select(`id, slug, title, excerpt, cover_image_url, published_at`).eq(`status`,`published`).order(`published_at`,{ascending:!1});return e??[]}var Ox=W(`/_www/blog/`)({loader:async()=>{let[e,t]=await Promise.all([uy(`blog`).catch(()=>fy(`blog`)),Dx().catch(()=>[])]);return{seo:e,posts:t}},head:({loaderData:e})=>hy(e?.seo,`blog`),component:G(Ex,`component`)}),kx=()=>P(()=>import(`./_www.blog._slug-EAmAbCU5.js`),__vite__mapDeps([239,1,2,64,13,83,4,5,6,7,3,157,153,238])),Ax=`id, slug, title, excerpt, cover_image_url, content, published_at, updated_at`;async function jx(e){let{data:t}=await F.from(`blog_posts`).select(Ax).eq(`slug`,e).eq(`status`,`published`).maybeSingle();if(t)return t;let{data:n}=await F.from(`blog_posts`).select(Ax).contains(`slug_history`,[e]).eq(`status`,`published`).maybeSingle();return n??null}var Mx=W(`/_www/blog/$slug`)({loader:async({params:e})=>{let t=await jx(e.slug);if(!t)return{post:null,related:[],seo:null};if(t.slug!==e.slug)throw s({to:`/blog/$slug`,params:{slug:t.slug},statusCode:301});let{data:n}=await F.from(`blog_posts`).select(`id, slug, title, excerpt, cover_image_url, published_at`).eq(`status`,`published`).neq(`id`,t.id).order(`published_at`,{ascending:!1}).limit(3);return{post:t,related:n??[],seo:await my(t)}},head:({loaderData:e})=>e?.seo?hy(e.seo):{meta:[{title:`Post Not Found | Learn Star Academy`},{name:`robots`,content:`noindex,nofollow`},ry(404)]},component:G(kx,`component`)}),Nx=W(`/observer/invite/$token`)({head:()=>gy(`Observer Invitation | Learn Star Academy`),component:G(()=>P(()=>import(`./observer.invite._token-CZ4czNUk.js`),__vite__mapDeps([240,1,2,7,11,73,13,102,14,15,50,22])),`component`)}),Px=W(`/_admin/admin/bryte/documents`)({beforeLoad:()=>{throw s({to:`/admin/bryte`,replace:!0})}}),Fx=W(`/_admin/admin/courses/`)({component:G(()=>P(()=>import(`./_admin.admin.courses.index-FaFwJmcX.js`),__vite__mapDeps([241,242,1,2,7,11,13,64,115,30,125,33,12,34,95,67,102,41,126,85,86,36,113,27,234,123,206,14,44,52,110,139,116,111,148,46,108,90,131,91,92,231,21,25,26,10,28,9,29,31,32,35,37,38,39,40,42,43,18,45,47,48,15,49,50,51,16,53,54,20,19,22,55,56,57,58,207,96,208])),`component`)}),Ix=W(`/_admin/admin/courses/$courseId`)({component:G(()=>P(()=>import(`./_admin.admin.courses._courseId-FaFwJmcX.js`),__vite__mapDeps([243,242,1,2,7,11,13,64,115,30,125,33,12,34,95,67,102,41,126,85,86,36,113,27,234,123,206,14,44,52,110,139,116,111,148,46,108,90,131,91,92,231,21,25,26,10,28,9,29,31,32,35,37,38,39,40,42,43,18,45,47,48,15,49,50,51,16,53,54,20,19,22,55,56,57,58,207,96,208])),`component`)}),Lx=W(`/_admin/admin/leads/`)({component:G(()=>P(()=>import(`./_admin.admin.leads.index-CnUHNLu5.js`),__vite__mapDeps([244,1,2,7,11,9,10,13,215,12,67,126,70,38,29,30,31,32,39,34,40,41,42,36,37,43,44,18,45,46,47,48,14,228,50,110,111,90,21,25,26,27,28,33,35,15,49,51,16,52,53,54,20,19,22,55,56,57,58,119,94,95,96,97])),`component`)}),Rx=W(`/_admin/admin/leads/archived`)({component:G(()=>P(()=>import(`./_admin.admin.leads.archived-BmwtHIL3.js`),__vite__mapDeps([245,1,2,7,9,10,11,215,13,64,111,90,21,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,18,45,46,47,48,14,15,49,50,51,16,52,53,54,20,19,22,55,56,57,58])),`component`)}),zx=W(`/_app/courses/public-speaking/`)({component:G(()=>P(()=>import(`./_app.courses.public-speaking.index-DXF_tfB8.js`),__vite__mapDeps([246,1,2,11,9,10,64,13,3
1420,12,34,67,40,126,86,36,15,18,55,58,247,248])),`component`)}),Bx=W(`/_app/courses/public-speaking/overview`)({component:G(()=>P(()=>import(`./_app.courses.public-speaking.overview-DcChDE9F.js`),__vite__mapDeps([249,1,2,39,13,36,247])),`component`)}),Vx=W(`/_app/courses/public-speaking/chapter/$num`)({component:G(()=>P(()=>import(`./_app.courses.public-speaking.chapter._num-B-cUEfPd.js`),__vite__mapDeps([250,1,2,7,11,64,13,128,30,39,67,40,102,126,14,15,247,248])),`component`)}),Hx=W(`/_app/courses/public-speaking/exam/$type`)({component:G(()=>P(()=>import(`./_app.courses.public-speaking.exam._type-Cib_0uBP.js`),__vite__mapDeps([251,1,2,39,13,45,247])),`component`)}),Ux=_y.update({id:`/$`,path:`/$`,getParentRoute:()=>Gv}),Wx=vy.update({id:`/_admin`,getParentRoute:()=>Gv}),Gx=yy.update({id:`/_app`,getParentRoute:()=>Gv}),$=jy.update({id:`/_www`,getParentRoute:()=>Gv}),Kx=My.update({id:`/accept-invite`,path:`/accept-invite`,getParentRoute:()=>Gv}),qx=Ny.update({id:`/forgot-password`,path:`/forgot-password`,getParentRoute:()=>Gv}),Jx=Py.update({id:`/install`,path:`/install`,getParentRoute:()=>Gv}),Yx=Fy.update({id:`/login`,path:`/login`,getParentRoute:()=>Gv}),Xx=Iy.update({id:`/reset-password`,path:`/reset-password`,getParentRoute:()=>Gv}),Zx=Ly.update({id:`/signup`,path:`/signup`,getParentRoute:()=>Gv}),Qx=Ry.update({id:`/unsubscribe`,path:`/unsubscribe`,getParentRoute:()=>Gv}),$x=zy.update({id:`/account`,path:`/account`,getParentRoute:()=>Gx}),eS=By.update({id:`/ai-tutor`,path:`/ai-tutor`,getParentRoute:()=>Gx}),tS=Vy.update({id:`/app-about`,path:`/app-about`,getParentRoute:()=>Gx}),nS=Hy.update({id:`/app-faq`,path:`/app-faq`,getParentRoute:()=>Gx}),rS=Uy.update({id:`/calendar`,path:`/calendar`,getParentRoute:()=>Gx}),iS=Wy.update({id:`/course-survey`,path:`/course-survey`,getParentRoute:()=>Gx}),aS=Gy.update({id:`/documents`,path:`/documents`,getParentRoute:()=>Gx}),oS=Ky.update({id:`/gradebook`,path:`/gradebook`,getParentRoute:()=>Gx}),sS=qy.update({id:`/home`,path:`/home`,getParentRoute:()=>Gx}),cS=Jy.update({id:`/lesson`,path:`/lesson`,getParentRoute:()=>Gx}),lS=Yy.update({id:`/messages`,path:`/messages`,getParentRoute:()=>Gx}),uS=Xy.update({id:`/payments`,path:`/payments`,getParentRoute:()=>Gx}),dS=Zy.update({id:`/profile`,path:`/profile`,getParentRoute:()=>Gx}),fS=Qy.update({id:`/store`,path:`/store`,getParentRoute:()=>Gx}),pS=$y.update({id:`/transcript`,path:`/transcript`,getParentRoute:()=>Gx}),mS=eb.update({id:`/`,path:`/`,getParentRoute:()=>$}),hS=tb.update({id:`/about`,path:`/about`,getParentRoute:()=>$}),gS=nb.update({id:`/accessibility`,path:`/accessibility`,getParentRoute:()=>$}),_S=rb.update({id:`/accreditation`,path:`/accreditation`,getParentRoute:()=>$}),vS=yb.update({id:`/app`,path:`/app`,getParentRoute:()=>$}),yS=bb.update({id:`/apply`,path:`/apply`,getParentRoute:()=>$}),bS=xb.update({id:`/brtye`,path:`/brtye`,getParentRoute:()=>$}),xS=Sb.update({id:`/bryte`,path:`/bryte`,getParentRoute:()=>$}),SS=Mb.update({id:`/college-career-prep-diploma`,path:`/college-career-prep-diploma`,getParentRoute:()=>$}),CS=Rb.update({id:`/competency-based-learning`,path:`/competency-based-learning`,getParentRoute:()=>$}),wS=zb.update({id:`/contact`,path:`/contact`,getParentRoute:()=>$}),TS=Bb.update({id:`/courses-catalog`,path:`/courses-catalog`,getParentRoute:()=>$}),ES=Vb.update({id:`/enrollment-agreement`,path:`/enrollment-agreement`,getParentRoute:()=>$}),DS=Hb.update({id:`/enrollment-success`,path:`/enrollment-success`,getParentRoute:()=>$}),OS=Ub.update({id:`/faq`,path:`/faq`,getParentRoute:()=>$}),kS=Wb.update({id:`/handbook`,path:`/handbook`,getParentRoute:()=>$}),AS=Gb.update({id:`/home-page`,path:`/home-page`,getParentRoute:()=>$}),jS=Kb.update({id:`/outcomes`,path:`/outcomes`,getParentRoute:()=>$}),MS=qb.update({id:`/privacy`,path:`/privacy`,getParentRoute:()=>$}),NS=Jb.update({id:`/programs`,path:`/programs`,getParentRoute:()=>$}),PS=Yb.update({id:`/reviews`,path:`/reviews`,getParentRoute:()=>$}),FS=Qb.update({id:`/standard-career-ready-diploma`,path:`/standard-career-ready-diploma`,getParentRoute:()=>$}),IS=$b.update({id:`/terms`,path:`/terms`,getParentRoute:()=>$}),LS=ex.update({id:`/thank-you`,path:`/thank-you`,getParentRoute:()=>$}),RS=tx.update({id:`/trust`,path:`/trust`,getParentRoute:()=>$}),zS=nx.update({id:`/tuition`,path:`/tuition`,getParentRoute:()=>$}),BS=rx.update({id:`/auth/callback`,path:`/auth/callback`,getParentRoute:()=>Gv}),VS=ix.update({id:`/auth/reset-callback`,path:`/auth/reset-callback`,getParentRoute:()=>Gv}),HS=ax.update({id:`/observer/`,path:`/observer/`,getParentRoute:()=>Gv}),US=ox.update({id:`/admin/`,path:`/admin/`,getParentRoute:()=>Wx}),WS=sx.update({id:`/admin/bryte`,path:`/admin/bryte`,getParentRoute:()=>Wx}),GS=cx.update({id:`/admin/calendar`,path:`/admin/calendar`,getParentRoute:()=>Wx}),KS=lx.update({id:`/admin/campaigns`,path:`/admin/campaigns`,getParentRoute:()=>Wx}),qS=ux.update({id:`/admin/compliance`,path:`/admin/compliance`,getParentRoute:()=>Wx}),JS=dx.update({id:`/admin/faq`,path:`/admin/faq`,getParentRoute:()=>Wx}),YS=fx.update({id:`/admin/messages`,path:`/admin/messages`,getParentRoute:()=>Wx}),XS=px.update({id:`/admin/messaging`,path:`/admin/messaging`,getParentRoute:()=>Wx}),ZS=mx.update({id:`/admin/payments`,path:`/admin/payments`,getParentRoute:()=>Wx}),QS=hx.update({id:`/admin/programs`,path:`/admin/programs`,getParentRoute:()=>Wx}),$S=gx.update({id:`/admin/registrar`,path:`/admin/registrar`,getParentRoute:()=>Wx}),eC=_x.update({id:`/admin/reports`,path:`/admin/reports`,getParentRoute:()=>Wx}),tC=vx.update({id:`/admin/roles`,path:`/admin/roles`,getParentRoute:()=>Wx}),nC=yx.update({id:`/admin/settings`,path:`/admin/settings`,getParentRoute:()=>Wx}),rC=bx.update({id:`/admin/staff`,path:`/admin/staff`,getParentRoute:()=>Wx}),iC=xx.update({id:`/admin/store`,path:`/admin/store`,getParentRoute:()=>Wx}),aC=Sx.update({id:`/admin/students`,path:`/admin/students`,getParentRoute:()=>Wx}),oC=Cx.update({id:`/admin/users`,path:`/admin/users`,getParentRoute:()=>Wx}),sC=wx.update({id:`/admin/website`,path:`/admin/website`,getParentRoute:()=>Wx}),cC=Tx.update({id:`/courses/`,path:`/courses/`,getParentRoute:()=>Gx}),lC=Ox.update({id:`/blog/`,path:`/blog/`,getParentRoute:()=>$}),uC=Mx.update({id:`/blog/$slug`,path:`/blog/$slug`,getParentRoute:()=>$}),dC=Nx.update({id:`/observer/invite/$token`,path:`/observer/invite/$token`,getParentRoute:()=>Gv}),fC=Px.update({id:`/documents`,path:`/documents`,getParentRoute:()=>WS}),pC=Fx.update({id:`/admin/courses/`,path:`/admin/courses/`,getParentRoute:()=>Wx}),mC=Ix.update({id:`/admin/courses/$courseId`,path:`/admin/courses/$courseId`,getParentRoute:()=>Wx}),hC=Lx.update({id:`/admin/leads/`,path:`/admin/leads/`,getParentRoute:()=>Wx}),gC=Rx.update({id:`/admin/leads/archived`,path:`/admin/leads/archived`,getParentRoute:()=>Wx}),_C=zx.update({id:`/courses/public-speaking/`,path:`/courses/public-speaking/`,getParentRoute:()=>Gx}),vC=Bx.update({id:`/courses/public-speaking/overview`,path:`/courses/public-speaking/overview`,getParentRoute:()=>Gx}),yC=Vx.update({id:`/courses/public-speaking/chapter/$num`,path:`/courses/public-speaking/chapter/$num`,getParentRoute:()=>Gx}),bC=Hx.update({id:`/courses/public-speaking/exam/$type`,path:`/courses/public-speaking/exam/$type`,getParentRoute:()=>Gx}),xC={AdminAdminBryteDocumentsRoute:fC},SC={AdminAdminBryteRoute:WS._addFileChildren(xC),AdminAdminCalendarRoute:GS,AdminAdminCampaignsRoute:KS,AdminAdminCompl
142ianceRoute:qS,AdminAdminFaqRoute:JS,AdminAdminMessagesRoute:YS,AdminAdminMessagingRoute:XS,AdminAdminPaymentsRoute:ZS,AdminAdminProgramsRoute:QS,AdminAdminRegistrarRoute:$S,AdminAdminReportsRoute:eC,AdminAdminRolesRoute:tC,AdminAdminSettingsRoute:nC,AdminAdminStaffRoute:rC,AdminAdminStoreRoute:iC,AdminAdminStudentsRoute:aC,AdminAdminUsersRoute:oC,AdminAdminWebsiteRoute:sC,AdminAdminIndexRoute:US,AdminAdminCoursesCourseIdRoute:mC,AdminAdminLeadsArchivedRoute:gC,AdminAdminCoursesIndexRoute:pC,AdminAdminLeadsIndexRoute:hC},CC=Wx._addFileChildren(SC),wC={AppAccountRoute:$x,AppAiTutorRoute:eS,AppAppAboutRoute:tS,AppAppFaqRoute:nS,AppCalendarRoute:rS,AppCourseSurveyRoute:iS,AppDocumentsRoute:aS,AppGradebookRoute:oS,AppHomeRoute:sS,AppLessonRoute:cS,AppMessagesRoute:lS,AppPaymentsRoute:uS,AppProfileRoute:dS,AppStoreRoute:fS,AppTranscriptRoute:pS,AppCoursesIndexRoute:cC,AppCoursesPublicSpeakingOverviewRoute:vC,AppCoursesPublicSpeakingIndexRoute:_C,AppCoursesPublicSpeakingChapterNumRoute:yC,AppCoursesPublicSpeakingExamTypeRoute:bC},TC=Gx._addFileChildren(wC),EC={WwwAboutRoute:hS,WwwAccessibilityRoute:gS,WwwAccreditationRoute:_S,WwwAppRoute:vS,WwwApplyRoute:yS,WwwBrtyeRoute:bS,WwwBryteRoute:xS,WwwCollegeCareerPrepDiplomaRoute:SS,WwwCompetencyBasedLearningRoute:CS,WwwContactRoute:wS,WwwCoursesCatalogRoute:TS,WwwEnrollmentAgreementRoute:ES,WwwEnrollmentSuccessRoute:DS,WwwFaqRoute:OS,WwwHandbookRoute:kS,WwwHomePageRoute:AS,WwwOutcomesRoute:jS,WwwPrivacyRoute:MS,WwwProgramsRoute:NS,WwwReviewsRoute:PS,WwwStandardCareerReadyDiplomaRoute:FS,WwwTermsRoute:IS,WwwThankYouRoute:LS,WwwTrustRoute:RS,WwwTuitionRoute:zS,WwwIndexRoute:mS,WwwBlogSlugRoute:uC,WwwBlogIndexRoute:lC},DC={SplatRoute:Ux,AdminRoute:CC,AppRoute:TC,WwwRoute:$._addFileChildren(EC),AcceptInviteRoute:Kx,ForgotPasswordRoute:qx,InstallRoute:Jx,LoginRoute:Yx,ResetPasswordRoute:Xx,SignupRoute:Zx,UnsubscribeRoute:Qx,AuthCallbackRoute:BS,AuthResetCallbackRoute:VS,ObserverIndexRoute:HS,ObserverInviteTokenRoute:dC},OC=Gv._addFileChildren(DC),kC=()=>K({routeTree:OC,context:{queryClient:new Qu({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1}}})},scrollRestoration:!0,defaultPreloadStaleTime:0,caseSensitive:!0});async function AC(){let e=await kC(),t;if(eu){let n=await eu.getOptions();n.serializationAdapters=n.serializationAdapters??[],window.__TSS_START_OPTIONS__=n,t=n.serializationAdapters,e.options.defaultSsr=n.defaultSsr}else t=[],window.__TSS_START_OPTIONS__={serializationAdapters:t};return t.push(Hc),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.stores.ids.get().length||await Kr(e),e}var jC=AC;function MC(){return jC().finally(()=>window.$_TSR?.h())}var NC;function PC(){return NC||=MC(),(0,U.jsx)(Kc,{promise:NC,children:e=>(0,U.jsx)(J,{router:e})})}var FC=St();(0,H.startTransition)(()=>{(0,FC.hydrateRoot)(document,(0,U.jsx)(H.StrictMode,{children:(0,U.jsx)(PC,{})}))});export{Ap as $,gv as A,q_ as B,Ry as C,Ev as D,Rv as E,X_ as F,o_ as G,a_ as H,W_ as I,xg as J,Sg as K,J_ as L,iv as M,B_ as N,Cv as O,Y_ as P,jp as Q,K_ as R,eb as S,Sy as T,s_ as U,V_ as V,i_ as W,rg as X,cg as Y,Pp as Z,_b as _,Nl as _t,Wb as a,xp as at,vb as b,Tt as bt,Bb as c,_p as ct,Ib as d,nf as dt,kp as et,Db as f,Qd as ft,yb as g,Jl as gt,bb as h,id as ht,Kb as i,Tp as it,bv as j,_v as k,Rb as l,hp as lt,Eb as m,Ed as mt,Ox as n,Dp as nt,Ub as o,bp as ot,kb as p,$d as pt,Cg as q,Yb as r,Ep as rt,Vb as s,yp as st,Mx as t,Op as tt,Fb as u,gf as ut,hb as v,Vc as vt,jy as w,rb as x,gb as y,Dt as yt,G_ as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.