diff --git a/dist/CTA.png b/dist/CTA.png new file mode 100644 index 0000000..b4f75b0 Binary files /dev/null and b/dist/CTA.png differ diff --git a/dist/assets/about-qfmgkWzS.js b/dist/assets/about-qfmgkWzS.js new file mode 100644 index 0000000..79205d7 --- /dev/null +++ b/dist/assets/about-qfmgkWzS.js @@ -0,0 +1 @@ +import{u as t,j as s,f as e,C as u,L as n,A as r,g as i,h as x,i as j,k as l}from"./ui-library-D6J3nmrf.js";import"./react-vendor-OnsDvTPE.js";import{u as m}from"./use-scroll-top-ByehxtTO.js";function f(){m();const o=t(a=>a.lang);return s.jsxs("div",{className:e(""),children:[s.jsx(u,{title:o===n.RU?"О выставке":"About exhibition"}),s.jsx(r,{}),s.jsx(i,{}),s.jsx(x,{}),s.jsx(j,{}),s.jsx(l,{})]})}export{f as default}; diff --git a/dist/assets/b2b-Ctaw9qnF.js b/dist/assets/b2b-Ctaw9qnF.js new file mode 100644 index 0000000..3f55834 --- /dev/null +++ b/dist/assets/b2b-Ctaw9qnF.js @@ -0,0 +1 @@ +import{l as B,u as f,j as e,m as S,n as r,o as R,p as j,q as y,L as u,r as v,s as o,B as h,t as V,v as D,w as q,x as N,y as z,C as E,z as L}from"./ui-library-D6J3nmrf.js";import{a as w}from"./react-vendor-OnsDvTPE.js";import{z as l,t as H,a as U}from"./index-Doh9iehP.js";import{R as A,a as C}from"./radio-group-0T_K4mIX.js";import{u as T}from"./use-scroll-top-ByehxtTO.js";const I=l.object({type:l.string(),company_name:l.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),representative_name:l.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:l.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:l.string().min(1,{message:"Укажите количество участников"}),country:l.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email_address:l.string().email({message:"Укажите корректный email"}),phone_number:l.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:l.string().optional(),meeting_objective:l.string().min(3,{message:"Укажите цель встречи"}),proposal_description:l.string().optional(),government_agency:l.string().optional(),sector_industry:l.string().optional(),key_services:l.string().optional(),government_experience:l.string().optional(),preferred_meeting_datetime:l.string().optional(),meeting_mode:l.string().optional(),language_preference:l.string().optional(),technical_requirements:l.string().optional(),company_profile:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),proposal_presentation:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),relevant_certification:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional()}),J={type:"B2B",company_name:"",representative_name:"",job_title:"",participants_number:"",country:"",email_address:"",phone_number:"",website:"",meeting_objective:"",proposal_description:"",government_agency:"",sector_industry:"",key_services:"",government_experience:"",preferred_meeting_datetime:"",meeting_mode:"",language_preference:"",technical_requirements:""},m=[{h2:"Информация об экспоненте:",data:[{label:"Название компании/организации"},{label:"Имя представителя"},{label:"Название должности/позиция"},{label:"Количество участников"},{label:"Страна"},{label:"E-mail адрес"},{label:"Номер телефона"},{label:"Вебсайт"}]},{h2:"Applicant Information:",data:[{label:"Company/Organization Name"},{label:"Name of Representative"},{label:"Job title/Position"},{label:"Number of the participants"},{label:"Country"},{label:"E-mail address"},{label:"Phone number"},{label:"Website"}]}],p=[{h2:"Цели встречи:",secondH2:"Информация о компании/организации:",data:[{label:"Основная цель встречи"},{label:"Краткое описание вашего предложения/проекта/запроса"},{label:"Соответствующее государственное учреждение/департамент"},{label:"Отраслевая промышленность"},{label:"Ключевые услуги/продукты"},{label:"Предыдущий опыт работы с правительствами (если применимо)"}]},{h2:"Meeting Purpose: ",secondH2:"Company/Organization Profile:",data:[{label:"Primary objective of the meeting"},{label:"Brief description of your proposal/project/request"},{label:"Relevant government agency/department"},{label:"Sector Industry "},{label:"Key Services/Products"},{label:"Previous Experience working with Governments (if applicable)"}]}],c=[{h2:"Логистика встречи:",secondH2:"Логистика встречи:",subtitle:"(Пожалуйста приложите следующие документы, если это необходимо)",data:[{label:"Предпочтительная дата и время"},{label:"Предпочтительный способ проведения встречи (лично, виртуально (через zoom/ teams/другое), гибридный)"},{label:"Предпочитаемый язык (английский, туркменский, русский, другой)"},{label:"Дополнительные технические или логистические требования (например, аудио-видео оборудование, переводчики и т.д.)"},{label:"Название компании/организации"},{label:"Предложение/презентация"},{label:"Соответствующие сертификаты/лицензии"}],button:"Отправить"},{h2:"Meeting Logistics:",secondH2:"Attachments",subtitle:"(Please attach the following documents as applicable)",data:[{label:"Preferred date and time for the meeting"},{label:"Preferred mode of meeting (in-person, virtual (via zoom/teams/other), hybrid)"},{label:"Language preference (English, turkmen, Russian, other)"},{label:"Additional technical or logistical requirements (e.g. AV equipment, interpreters, etc)"},{label:"Company/organization profile"},{label:"Proposal presentation"},{label:"Relevant certification/licenses"}],button:"Send"}],O=({handleNext:s})=>{const{control:n,formState:t}=B(),a=f(i=>i.lang);return e.jsxs(S.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:"100%",transition:{duration:.2}},className:"w-full",children:[e.jsx("h2",{className:"h2 mb-8",children:m[r(a)].h2}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(R,{defaultValue:1,control:n,name:"type",render:({field:i})=>e.jsxs(j,{className:"space-y-3",children:[e.jsx(y,{className:"text-xl",children:a===u.RU?"Тип:":"Type:"}),e.jsx(v,{children:e.jsxs(A,{onValueChange:i.onChange,defaultValue:i.value,className:"flex flex-col space-y-4",children:[e.jsxs(j,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(v,{children:e.jsx(C,{value:"B2B",checked:i.value==="B2B"})}),e.jsx(y,{className:"text-base",children:"B2B"})]}),e.jsxs(j,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(v,{children:e.jsx(C,{value:"B2G",checked:i.value==="B2G"})}),e.jsx(y,{className:"text-base",children:"B2G"})]})]})})]})}),e.jsx(o,{control:n,name:"company_name",error:t.errors.company_name,placeholder:"",label:m[r(a)].data[0].label}),e.jsx(o,{control:n,name:"representative_name",error:t.errors.representative_name,placeholder:"",label:m[r(a)].data[1].label}),e.jsx(o,{control:n,name:"job_title",error:t.errors.job_title,placeholder:"",label:m[r(a)].data[2].label}),e.jsx(o,{control:n,name:"participants_number",error:t.errors.participants_number,placeholder:"",label:m[r(a)].data[3].label}),e.jsx(o,{control:n,name:"country",error:t.errors.country,placeholder:"",label:m[r(a)].data[4].label}),e.jsx(o,{control:n,name:"email_address",error:t.errors.email_address,placeholder:"",label:m[r(a)].data[5].label}),e.jsx(o,{control:n,name:"phone_number",error:t.errors.phone_number,placeholder:"",label:m[r(a)].data[6].label}),e.jsx(o,{control:n,name:"website",placeholder:"",label:m[r(a)].data[7].label})]}),e.jsx(h,{variant:"secondary",type:"button",onClick:s,className:"w-full mt-10",children:a===u.RU?"Далее":"Next"})]})},M=({handleNext:s,handlePrev:n})=>{const t=f(x=>x.lang),{control:a,formState:i}=B();return e.jsxs(S.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},exit:{opacity:0,y:100},children:[e.jsx("h2",{className:"h2 mb-8",children:p[r(t)].h2}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(o,{control:a,name:"meeting_objective",error:i.errors.meeting_objective,placeholder:"",label:p[r(t)].data[0].label}),e.jsx(o,{control:a,name:"proposal_description",error:i.errors.proposal_description,placeholder:"",label:p[r(t)].data[1].label}),e.jsx(o,{control:a,name:"government_agency",error:i.errors.government_agency,placeholder:"",label:p[r(t)].data[2].label}),e.jsx("h2",{className:"h2 mt-4",children:p[r(t)].secondH2}),e.jsx(o,{control:a,name:"sector_industry",error:i.errors.sector_industry,placeholder:"",label:p[r(t)].data[3].label}),e.jsx(o,{control:a,name:"key_services",error:i.errors.key_services,placeholder:"",label:p[r(t)].data[4].label}),e.jsx(o,{control:a,name:"government_experience",error:i.errors.government_experience,placeholder:"",label:p[r(t)].data[5].label})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(h,{type:"button",onClick:n,variant:"outline",className:"text-on_surface",children:t===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{variant:"secondary",type:"button",onClick:s,className:"w-full",children:t===u.RU?"Далее":"Next"})]})]})},$=({handlePrev:s})=>{const{control:n,formState:t}=B(),a=f(i=>i.lang);return e.jsxs(S.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},transition:{duration:1},children:[e.jsx("h2",{className:"h2 mb-8",children:c[r(a)].h2}),e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsx(o,{control:n,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:c[r(a)].data[0].label}),e.jsx(o,{control:n,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:c[r(a)].data[1].label}),e.jsx(o,{control:n,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:c[r(a)].data[2].label}),e.jsx(o,{control:n,name:"additional_technical",error:t.errors.additional_technical,placeholder:"",label:c[r(a)].data[3].label})]}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"h2 mt-10",children:c[r(a)].secondH2}),e.jsx("h5",{className:"text-on_surface_v",children:c[r(a)].subtitle})]}),e.jsx(o,{control:n,name:"company_profile",label:c[r(a)].data[4].label,type:"file",textDark:!0}),e.jsx(o,{control:n,name:"proposal_presentation",label:c[r(a)].data[5].label,type:"file",textDark:!0}),e.jsx(o,{control:n,name:"relevant_certification",label:c[r(a)].data[6].label,type:"file",textDark:!0})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(h,{type:"button",onClick:s,variant:"outline",className:"text-on_surface",children:a===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{disabled:t.isSubmitting,type:"submit",className:"w-full",children:t.isSubmitting?e.jsx(V,{className:"animate-spin"}):c[r(a)].button})]})]})},K=({stage:s,setStage:n,success:t,setSuccess:a})=>{const i=D({resolver:H(I),defaultValues:J,mode:"onChange"}),x=d=>{switch(d){case 1:return["type","company_name","representative_name","job_title","participants_number","country","email_address","phone_number","website"];case 2:return["meeting_objective","proposal_description","government_agency","sector_industry","key_services","government_experience"];case 3:return["preferred_meeting_datetime","meeting_mode","language_preference","technical_requirements","company_profile","proposal_presentation","relevant_certification"];default:return[]}},P=async()=>{const d=x(s);await i.trigger(d)&&n(k=>k+1)},F=()=>n(d=>d-1),G=async d=>{try{const b=new FormData;Object.entries(d).forEach(([_,g])=>{g instanceof File?(console.log(`Добавляем файл: ${_}`,g),b.append(_,g)):g!==void 0&&(console.log(`Добавляем поле: ${_}`,g),b.append(_,g))}),(await U.post("https://turkmentextile.turkmenexpo.com/app/api/v1/form",b,{headers:{"Content-Type":"multipart/form-data"}})).status===201&&a(!0)}catch(b){console.error("Ошибка при отправке B2B формы:",b)}};return e.jsx(q,{...i,children:e.jsx("form",{onSubmit:i.handleSubmit(G),children:e.jsxs("div",{className:"relative",children:[e.jsx(N,{children:s===1&&e.jsx(O,{handleNext:P})}),e.jsx(N,{children:s===2&&e.jsx(M,{handleNext:P,handlePrev:F})}),e.jsx(N,{children:s===3&&t===!1&&e.jsx($,{handlePrev:F})}),t&&e.jsx(z,{})]})})})};function ee(){T();const s=f(x=>x.lang),[n,t]=w.useState(1),[a,i]=w.useState(!1);return e.jsxs("div",{className:"pb-[120px]",children:[e.jsx(E,{title:s===u.RU?"B2B | B2G встречи":"B2B | B2G meetings"}),!a&&n!==0&&e.jsx(L,{stage:n}),e.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:e.jsx(K,{success:a,setSuccess:i,stage:n,setStage:t})})]})}export{ee as default}; diff --git a/dist/assets/become-sponsor-L8wk3SU0.js b/dist/assets/become-sponsor-L8wk3SU0.js new file mode 100644 index 0000000..d750bdb --- /dev/null +++ b/dist/assets/become-sponsor-L8wk3SU0.js @@ -0,0 +1 @@ +import{u as h,v as _,j as e,C as g,L as f,x as y,w as S,m as v,s as l,n as o,o as F,p as c,q as i,r as p,B as N,t as w,y as C}from"./ui-library-D6J3nmrf.js";import{a as L}from"./react-vendor-OnsDvTPE.js";import{R,a as j}from"./radio-group-0T_K4mIX.js";import{z as t,t as B}from"./index-Doh9iehP.js";import{p as V}from"./service-BBxXYXSW.js";import{u as T}from"./use-scroll-top-ByehxtTO.js";import{s as r}from"./stend.data-MYN6KI5Y.js";const k=t.object({company_name:t.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:t.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:t.string().min(3,{message:"Должность должна быть не менее 3 символов"}),country:t.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:t.string().email({message:"Укажите корректный email"}),phone:t.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:t.string().optional(),visa_support:t.string().optional()}),D={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""};function O(){T();const a=h(n=>n.lang),[x,b]=L.useState(!1),s=_({resolver:B(k),defaultValues:D}),d=async n=>{try{await V(n)&&b(!0)}catch(u){console.error("POST sponsor error",u)}},{errors:m}=s.formState;return e.jsxs("div",{children:[e.jsx(g,{title:a===f.RU?"Стать спонсором":"Become a sponsor"}),e.jsx(y,{children:!x&&e.jsx(S,{...s,children:e.jsxs(v.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] mx-auto px-5 md:mt-20 mt-10 mb-20 md:mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(d),children:[e.jsx(l,{label:r[o(a)].label_1,name:"company_name",control:s.control,error:m.company_name}),e.jsx(l,{label:r[o(a)].label_2,name:"rep_name",control:s.control,error:m.rep_name}),e.jsx(l,{label:r[o(a)].label_3,name:"job_title",control:s.control,error:m.job_title}),e.jsx(l,{label:r[o(a)].label_4,name:"country",control:s.control,error:m.country}),e.jsx(l,{label:r[o(a)].label_5,name:"email",control:s.control,error:m.email}),e.jsx(l,{label:r[o(a)].label_6,name:"phone",control:s.control,error:m.phone}),e.jsx(l,{label:r[o(a)].label_7,name:"website",control:s.control}),e.jsx(F,{control:s.control,name:"visa_support",render:({field:n})=>e.jsxs(c,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:r[o(a)].visa}),e.jsx(p,{children:e.jsxs(R,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(c,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(j,{value:"yes",checked:n.value==="yes"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio})]}),e.jsxs(c,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(p,{children:e.jsx(j,{value:"no",checked:n.value==="no"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio_2})]})]})})]})}),e.jsx(N,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?e.jsx(w,{className:"animate-spin"}):r[o(a)].button})]})})}),x&&e.jsx(C,{delay:.3})]})}export{O as default}; diff --git a/dist/assets/contacts-BEJkrz2O.js b/dist/assets/contacts-BEJkrz2O.js new file mode 100644 index 0000000..24af2c0 --- /dev/null +++ b/dist/assets/contacts-BEJkrz2O.js @@ -0,0 +1 @@ +import{v as x,j as s,f as d,w as h,s as l,B as u,O as p,Q as g}from"./ui-library-D6J3nmrf.js";import{a as f}from"./react-vendor-OnsDvTPE.js";import{z as a,t as j}from"./index-Doh9iehP.js";import{b}from"./service-BBxXYXSW.js";import{u as N}from"./use-scroll-top-ByehxtTO.js";const v=a.object({name:a.string().min(2,"error"),email:a.string().email(),phone:a.string().min(8,"error"),company:a.string().min(2,"error"),msg:a.string().min(5,"error")}),C={name:"",email:"",phone:"",company:"",msg:""},w=({className:n})=>{const[c,o]=f.useState(!1),e=x({resolver:j(v),defaultValues:C});async function m(i){try{const t=await b(i);o(t)}catch(t){console.error("POST contact",t)}}const{errors:r}=e.formState;return s.jsx("div",{className:d("bg-primary rounded-[8px] py-8 px-6 ",n),children:s.jsx(h,{...e,children:s.jsxs("form",{onSubmit:e.handleSubmit(m),children:[s.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:"Связаться с нами"}),s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsx(l,{onPrimary:!0,name:"name",control:e.control,label:"Имя",error:r.name}),s.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[s.jsx(l,{onPrimary:!0,name:"email",control:e.control,label:"E-mail",error:r.email}),s.jsx(l,{onPrimary:!0,name:"phone",control:e.control,label:"Телефон",error:r.phone})]}),s.jsx(l,{onPrimary:!0,name:"company",control:e.control,label:"Название компании",error:r.name}),s.jsx(l,{onPrimary:!0,textArea:!0,name:"msg",label:"Сообщение",control:e.control,error:r.msg}),s.jsx(u,{disabled:e.formState.isSubmitting||c,className:"w-full h-12 overflow-hidden",variant:"secondary",children:c?"Форма отправлена":e.formState.isSubmitting?s.jsx(p,{className:"animate-spin text-white"}):"Отправить"})]})]})})})};function F(){return N(),s.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[s.jsx(g,{children:s.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[s.jsx(w,{}),s.jsxs("div",{className:"p-6 bg-bg_surface_container rounded-[8px]",children:[s.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:"Контакты"}),s.jsxs("div",{className:"flex flex-col gap-20",children:[s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/map.svg",alt:"address"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Адрес офиса:"}),s.jsx("address",{className:"text-base normal not-italic",children:"744000, г. Ашхабад, просп. Битарап Туркменистан, 183"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Телефон:"}),s.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/fax.svg",alt:"fax"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Факс:"}),s.jsx("h4",{className:"text-base normal",children:"+99312454111"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/email.svg",alt:"email"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"E-mail:"}),s.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),s.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:s.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1443.0869986358682!2d58.35620779177324!3d37.921200202365405!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3f7001fd7afd2a95%3A0x9ce9dca95ea4b87e!2z0JDQstC40LDQutCw0YHRgdCwINCw0LLQuNCw0LrQvtC80L_QsNC90LjQuCDCq9CR0LXQu9Cw0LLQuNCwwrsg0LIg0KLRg9GA0LrQvNC10L3QuNGB0YLQsNC90LU!5e0!3m2!1sru!2sru!4v1738063695919!5m2!1sru!2sru",className:"absolute inset-0 w-full h-full ",style:{border:0},allowFullScreen:!0,loading:"lazy"})})]})}export{F as default}; diff --git a/dist/assets/home-Cw4C8Or8.js b/dist/assets/home-Cw4C8Or8.js new file mode 100644 index 0000000..816a54e --- /dev/null +++ b/dist/assets/home-Cw4C8Or8.js @@ -0,0 +1 @@ +import{j as e,a as s,b as o,c as m,d as a,e as x}from"./ui-library-D6J3nmrf.js";import"./react-vendor-OnsDvTPE.js";function j(){return e.jsxs("div",{className:"flex flex-col gap-20",children:[e.jsx(s,{}),e.jsx(o,{}),e.jsx(m,{}),e.jsx(a,{}),e.jsx(x,{})]})}export{j as default}; diff --git a/dist/assets/index-B17XTBbe.css b/dist/assets/index-B17XTBbe.css new file mode 100644 index 0000000..6d77a46 --- /dev/null +++ b/dist/assets/index-B17XTBbe.css @@ -0,0 +1 @@ +@font-face{font-family:Gilroy-Regular;src:local("Gilroy-Regular"),url(../fonts/Gilroy-Regular.woff2) format("woff2");font-weight:400}@font-face{font-family:Gilroy-Medium;src:local("Gilroy-Medium"),url(../fonts/Gilroy-Medium.woff2) format("woff2");font-weight:500}@font-face{font-family:Gilroy-Semibold;src:local("Gilroy-Semibold"),url(../fonts/Gilroy-Semibold.woff2) format("woff2");font-weight:600}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{box-sizing:border-box}body{font-family:Gilroy-Medium;--tw-bg-opacity: 1;background-color:rgb(249 249 250 / var(--tw-bg-opacity, 1))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-5{bottom:-1.25rem}.-left-12{left:-3rem}.-right-12{right:-3rem}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.left-0{left:0}.left-1\/3{left:33.333333%}.left-2\.5{left:.625rem}.left-\[20\%\]{left:20%}.right-0{right:0}.right-4{right:1rem}.right-\[17\%\]{right:17%}.top-0{top:0}.top-2{top:.5rem}.top-2\.5{top:.625rem}.top-4{top:1rem}.top-8{top:2rem}.top-\[55\%\]{top:55%}.-z-10,.-z-\[10\]{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\[3\]{z-index:3}.z-\[5\]{z-index:5}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-16{margin-top:4rem;margin-bottom:4rem}.my-20{margin-top:5rem;margin-bottom:5rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mb-\[120px\]{margin-bottom:120px}.ml-3{margin-left:.75rem}.mt-10{margin-top:2.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-5{width:1.25rem;height:1.25rem}.size-8{width:2rem;height:2rem}.size-\[184px\]{width:184px;height:184px}.size-full{width:100%;height:100%}.h-0\.5{height:.125rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-40{height:10rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[124px\]{height:124px}.h-\[160px\]{height:160px}.h-\[216px\]{height:216px}.h-\[296px\]{height:296px}.h-\[300px\]{height:300px}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.min-h-\[60px\]{min-height:60px}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-1\/2{width:50%}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-9{width:2.25rem}.w-\[160px\]{width:160px}.w-\[18px\]{width:18px}.w-\[20\%\]{width:20%}.w-\[300px\]{width:300px}.w-\[75\%\]{width:75%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-\[1240px\]{max-width:1240px}.max-w-\[360px\]{max-width:360px}.max-w-\[444px\]{max-width:444px}.max-w-\[808px\]{max-width:808px}.max-w-\[828px\]{max-width:828px}.flex-\[0_0_184px\]{flex:0 0 184px}.flex-\[0_0_288px\]{flex:0 0 288px}.flex-auto{flex:1 1 auto}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.\!cursor-pointer{cursor:pointer!important}.cursor-pointer{cursor:pointer}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-20{gap:5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded-\[2px\]{border-radius:2px}.rounded-\[8px\]{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-b-\[2px\]{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.rounded-t-\[4px\]{border-top-left-radius:4px;border-top-right-radius:4px}.border{border-width:1px}.border-\[2px\]{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-\[\#BA1A1A\]{--tw-border-opacity: 1;border-color:rgb(186 26 26 / var(--tw-border-opacity, 1))}.border-on_surface{--tw-border-opacity: 1;border-color:rgb(44 40 40 / var(--tw-border-opacity, 1))}.border-outline{--tw-border-opacity: 1;border-color:rgb(161 167 178 / var(--tw-border-opacity, 1))}.border-primary{--tw-border-opacity: 1;border-color:rgb(153 16 29 / var(--tw-border-opacity, 1))}.border-primary_outline_reverse{--tw-border-opacity: 1;border-color:rgb(238 101 114 / var(--tw-border-opacity, 1))}.border-slate-500\/20{border-color:#64748b33}.border-white\/50{border-color:#ffffff80}.\!bg-\[\#F5F4F4\]{--tw-bg-opacity: 1 !important;background-color:rgb(245 244 244 / var(--tw-bg-opacity, 1))!important}.\!bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.bg-\[\#D0D3D8\]{--tw-bg-opacity: 1;background-color:rgb(208 211 216 / var(--tw-bg-opacity, 1))}.bg-\[\#D9D9D9\]{--tw-bg-opacity: 1;background-color:rgb(217 217 217 / var(--tw-bg-opacity, 1))}.bg-\[\#FDEDEE\]{--tw-bg-opacity: 1;background-color:rgb(253 237 238 / var(--tw-bg-opacity, 1))}.bg-background{--tw-bg-opacity: 1;background-color:rgb(249 249 250 / var(--tw-bg-opacity, 1))}.bg-bg_surface_container{--tw-bg-opacity: 1;background-color:rgb(238 237 244 / var(--tw-bg-opacity, 1))}.bg-black\/80{background-color:#000c}.bg-primary,.bg-primary_09{--tw-bg-opacity: 1;background-color:rgb(153 16 29 / var(--tw-bg-opacity, 1))}.bg-reverse_primary{--tw-bg-opacity: 1;background-color:rgb(246 178 184 / var(--tw-bg-opacity, 1))}.bg-secondary_container{--tw-bg-opacity: 1;background-color:rgb(221 203 205 / var(--tw-bg-opacity, 1))}.bg-surface_container{--tw-bg-opacity: 1;background-color:rgb(240 239 239 / var(--tw-bg-opacity, 1))}.bg-surface_high{--tw-bg-opacity: 1;background-color:rgb(232 231 239 / var(--tw-bg-opacity, 1))}.bg-teritary{--tw-bg-opacity: 1;background-color:rgb(241 112 13 / var(--tw-bg-opacity, 1))}.bg-teritary_04{--tw-bg-opacity: 1;background-color:rgb(255 206 127 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-opacity-0{--tw-bg-opacity: 0}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-primary{--tw-gradient-from: #99101D var(--tw-gradient-from-position);--tw-gradient-to: rgb(153 16 29 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-25\%{--tw-gradient-from-position: 25%}.to-primary\/20{--tw-gradient-to: rgb(153 16 29 / .2) var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-20{padding-bottom:5rem}.pb-\[120px\]{padding-bottom:120px}.pl-8{padding-left:2rem}.pt-10{padding-top:2.5rem}.pt-16{padding-top:4rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[18px\]{font-size:18px}.text-\[32px\]{font-size:32px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.not-italic{font-style:normal}.leading-\[130\%\]{line-height:130%}.leading-\[140\%\]{line-height:140%}.leading-none{line-height:1}.\!text-on_primary{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.\!text-primary_09{--tw-text-opacity: 1 !important;color:rgb(153 16 29 / var(--tw-text-opacity, 1))!important}.text-\[\#171717\]{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.text-\[\#454545\]{--tw-text-opacity: 1;color:rgb(69 69 69 / var(--tw-text-opacity, 1))}.text-\[\#BA1A1A\]{--tw-text-opacity: 1;color:rgb(186 26 26 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-on_primary{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-on_secondary_container{--tw-text-opacity: 1;color:rgb(29 38 55 / var(--tw-text-opacity, 1))}.text-on_surface{--tw-text-opacity: 1;color:rgb(44 40 40 / var(--tw-text-opacity, 1))}.text-on_surface_v{--tw-text-opacity: 1;color:rgb(111 100 102 / var(--tw-text-opacity, 1))}.text-on_teritary{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-primary{--tw-text-opacity: 1;color:rgb(153 16 29 / var(--tw-text-opacity, 1))}.text-primary_03{--tw-text-opacity: 1;color:rgb(246 178 184 / var(--tw-text-opacity, 1))}.text-primary_09{--tw-text-opacity: 1;color:rgb(153 16 29 / var(--tw-text-opacity, 1))}.text-teritary_04{--tw-text-opacity: 1;color:rgb(255 206 127 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: #F9F9FA}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-300{animation-duration:.3s}.duration-500{animation-duration:.5s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.normal{font-family:Gilroy-Regular;font-weight:400}.semibold{font-family:Gilroy-Semibold;font-weight:600}.h1{font-size:28px;font-weight:500;line-height:130%}.h2{font-size:1.5rem;line-height:2rem;--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.h2{font-size:1.875rem;line-height:2.25rem}}.p{font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(111 100 102 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.p{font-size:1.125rem;line-height:1.75rem}}@layer utilities{.text-18{font-family:Gilroy-Regular;font-weight:400}}.text-18{font-size:1.125rem;line-height:1.75rem;--tw-text-opacity: 1;color:rgb(111 100 102 / var(--tw-text-opacity, 1));font-family:Gilroy-Regular;font-weight:400}.dot{height:.25rem;width:1.25rem;cursor:pointer;border-radius:2px;--tw-bg-opacity: 1;background-color:rgb(111 100 102 / var(--tw-bg-opacity, 1))}.dot-active{height:.25rem;width:1.25rem;border-radius:2px;--tw-bg-opacity: 1;background-color:rgb(44 40 40 / var(--tw-bg-opacity, 1))}.nav-btn{display:flex;width:3rem;height:3rem;align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(217 217 217 / var(--tw-bg-opacity, 1))}.progress-circle{z-index:10;width:3.5rem;height:3.5rem;border-radius:9999px;font-size:1.5rem;line-height:2rem;--tw-text-opacity: 1;color:rgb(95 102 116 / var(--tw-text-opacity, 1))}.file\:w-fit::file-selector-button{width:-moz-fit-content;width:fit-content}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-secondary_container::file-selector-button{--tw-bg-opacity: 1;background-color:rgb(221 203 205 / var(--tw-bg-opacity, 1))}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-on_secondary_container::file-selector-button{--tw-text-opacity: 1;color:rgb(29 38 55 / var(--tw-text-opacity, 1))}.file\:outline-none::file-selector-button{outline:2px solid transparent;outline-offset:2px}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:-left-3:before{content:var(--tw-content);left:-.75rem}.before\:-top-3:before{content:var(--tw-content);top:-.75rem}.before\:size-10:before{content:var(--tw-content);width:2.5rem;height:2.5rem}.before\:scale-0:before{content:var(--tw-content);--tw-scale-x: 0;--tw-scale-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\:rounded-full:before{content:var(--tw-content);border-radius:9999px}.before\:bg-on_surface\/\[8\%\]:before{content:var(--tw-content);background-color:#2c282814}.before\:transition-all:before{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.after\:size-\[9px\]:after{content:var(--tw-content);width:9px;height:9px}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:bg-primary:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(153 16 29 / var(--tw-bg-opacity, 1))}.after\:bg-opacity-0:after{content:var(--tw-content);--tw-bg-opacity: 0}.hover\:border-on_surface:hover{--tw-border-opacity: 1;border-color:rgb(44 40 40 / var(--tw-border-opacity, 1))}.hover\:border-white:hover{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.hover\:bg-primary\/90:hover{background-color:#99101de6}.hover\:bg-reverse_primary\/90:hover{background-color:#f6b2b8e6}.hover\:bg-secondary_container\/80:hover{background-color:#ddcbcdcc}.hover\:bg-teritary\/90:hover{background-color:#f1700de6}.hover\:bg-teritary_surface_container:hover{--tw-bg-opacity: 1;background-color:rgb(255 243 224 / var(--tw-bg-opacity, 1))}.hover\:bg-white\/90:hover{background-color:#ffffffe6}.hover\:opacity-100:hover{opacity:1}.hover\:before\:scale-100:hover:before{content:var(--tw-content);--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.focus\:border-\[3px\]:focus{border-width:3px}.focus\:border-primary:focus{--tw-border-opacity: 1;border-color:rgb(153 16 29 / var(--tw-border-opacity, 1))}.focus\:border-white:focus{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[state\=open\]\:bg-secondary[data-state=open]{--tw-bg-opacity: 1;background-color:rgb(73 95 137 / var(--tw-bg-opacity, 1))}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}@media (min-width: 640px){.sm\:h-\[350px\]{height:350px}.sm\:max-w-sm{max-width:24rem}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:text-left{text-align:left}.sm\:text-center{text-align:center}}@media (min-width: 768px){.md\:left-1\/2{left:50%}.md\:mx-auto{margin-left:auto;margin-right:auto}.md\:my-20{margin-top:5rem;margin-bottom:5rem}.md\:mb-3{margin-bottom:.75rem}.md\:mb-\[120px\]{margin-bottom:120px}.md\:mt-20{margin-top:5rem}.md\:mt-6{margin-top:1.5rem}.md\:size-\[84px\]{width:84px;height:84px}.md\:size-auto{width:auto;height:auto}.md\:h-\[224px\]{height:224px}.md\:h-\[38px\]{height:38px}.md\:h-\[400px\]{height:400px}.md\:w-1{width:.25rem}.md\:w-fit{width:-moz-fit-content;width:fit-content}.md\:w-full{width:100%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-end{align-items:flex-end}.md\:justify-between{justify-content:space-between}.md\:p-10{padding:2.5rem}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:py-20{padding-top:5rem;padding-bottom:5rem}.md\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.md\:py-\[160px\]{padding-top:160px;padding-bottom:160px}.md\:pt-20{padding-top:5rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1024px){.lg\:mb-8{margin-bottom:2rem}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:h-\[600px\]{height:600px}.lg\:h-\[88px\]{height:88px}.lg\:max-h-\[600px\]{max-height:600px}.lg\:min-h-\[320px\]{min-height:320px}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:gap-6{gap:1.5rem}}@media (min-width: 1280px){.xl\:mb-8{margin-bottom:2rem}.xl\:block{display:block}.xl\:hidden{display:none}.xl\:w-\[650px\]{width:650px}.xl\:max-w-\[496px\]{max-width:496px}}@media (min-width: 1536px){.\32xl\:w-\[850px\]{width:850px}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0} diff --git a/dist/assets/index-CB3dgGuq.js b/dist/assets/index-CB3dgGuq.js new file mode 100644 index 0000000..45ab135 --- /dev/null +++ b/dist/assets/index-CB3dgGuq.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/home-Cw4C8Or8.js","assets/ui-library-D6J3nmrf.js","assets/react-vendor-OnsDvTPE.js","assets/about-qfmgkWzS.js","assets/use-scroll-top-ByehxtTO.js","assets/b2b-Ctaw9qnF.js","assets/index-Doh9iehP.js","assets/radio-group-0T_K4mIX.js","assets/become-sponsor-L8wk3SU0.js","assets/service-BBxXYXSW.js","assets/stend.data-MYN6KI5Y.js","assets/stend-form-BOpxzbVB.js","assets/contacts-BEJkrz2O.js"])))=>i.map(i=>d[i]); +import{j as o,H as R,F as j}from"./ui-library-D6J3nmrf.js";import{f as P,O as v,a as c,g,h as O}from"./react-vendor-OnsDvTPE.js";(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))p(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const t of r.addedNodes)t.tagName==="LINK"&&t.rel==="modulepreload"&&p(t)}).observe(document,{childList:!0,subtree:!0});function d(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function p(e){if(e.ep)return;e.ep=!0;const r=d(e);fetch(e.href,r)}})();const L="modulepreload",b=function(l){return"/"+l},h={},a=function(u,d,p){let e=Promise.resolve();if(d&&d.length>0){document.getElementsByTagName("link");const t=document.querySelector("meta[property=csp-nonce]"),n=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));e=Promise.allSettled(d.map(s=>{if(s=b(s),s in h)return;h[s]=!0;const m=s.endsWith(".css"),y=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${y}`))return;const i=document.createElement("link");if(i.rel=m?"stylesheet":L,m||(i.as="script"),i.crossOrigin="",i.href=s,n&&i.setAttribute("nonce",n),document.head.appendChild(i),m)return new Promise((E,x)=>{i.addEventListener("load",E),i.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${s}`)))})}))}function r(t){const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=t,window.dispatchEvent(n),!n.defaultPrevented)throw t}return e.then(t=>{for(const n of t||[])n.status==="rejected"&&r(n.reason);return u().catch(r)})};var f={},_;function A(){if(_)return f;_=1;var l=P();return f.createRoot=l.createRoot,f.hydrateRoot=l.hydrateRoot,f}var S=A();function w(){return o.jsxs("main",{className:"flex flex-col min-h-screen",children:[o.jsx(R,{}),o.jsx("div",{className:"flex-auto",children:o.jsx(v,{})}),o.jsx(j,{})]})}const B=c.lazy(()=>a(()=>import("./home-Cw4C8Or8.js"),__vite__mapDeps([0,1,2]))),I=c.lazy(()=>a(()=>import("./about-qfmgkWzS.js"),__vite__mapDeps([3,1,2,4]))),D=c.lazy(()=>a(()=>import("./b2b-Ctaw9qnF.js"),__vite__mapDeps([5,1,2,6,7,4]))),T=c.lazy(()=>a(()=>import("./become-sponsor-L8wk3SU0.js"),__vite__mapDeps([8,1,2,7,6,9,4,10]))),q=c.lazy(()=>a(()=>import("./stend-form-BOpxzbVB.js"),__vite__mapDeps([11,1,2,7,6,9,10]))),z=c.lazy(()=>a(()=>import("./contacts-BEJkrz2O.js"),__vite__mapDeps([12,1,2,6,9,4]))),C=g([{element:o.jsx(w,{}),path:"/",children:[{element:o.jsx(B,{}),path:""},{element:o.jsx(I,{}),path:"/about"},{element:o.jsx(D,{}),path:"/B2B-B2G"},{element:o.jsx(T,{}),path:"/become-sponsor"},{element:o.jsx(q,{}),path:"/stend-form"},{element:o.jsx(z,{}),path:"/contacts"}]}]);S.createRoot(document.getElementById("root")).render(o.jsx(c.StrictMode,{children:o.jsx(O,{router:C})})); diff --git a/dist/assets/index-Doh9iehP.js b/dist/assets/index-Doh9iehP.js new file mode 100644 index 0000000..62a4485 --- /dev/null +++ b/dist/assets/index-Doh9iehP.js @@ -0,0 +1,6 @@ +import{R as lt,T as at,U as Rn}from"./ui-library-D6J3nmrf.js";const Ot=(t,e,n)=>{if(t&&"reportValidity"in t){const r=lt(n,e);t.setCustomValidity(r&&r.message||""),t.reportValidity()}},qt=(t,e)=>{for(const n in e.fields){const r=e.fields[n];r&&r.ref&&"reportValidity"in r.ref?Ot(r.ref,n,t):r.refs&&r.refs.forEach(s=>Ot(s,n,t))}},On=(t,e)=>{e.shouldUseNativeValidation&&qt(t,e);const n={};for(const r in t){const s=lt(e.fields,r),a=Object.assign(t[r]||{},{ref:s&&s.ref});if(An(e.names||Object.keys(t),r)){const i=Object.assign({},lt(n,r));at(i,"root",a),at(n,r,i)}else at(n,r,a)}return n},An=(t,e)=>t.some(n=>n.startsWith(e+"."));var Cn=function(t,e){for(var n={};t.length;){var r=t[0],s=r.code,a=r.message,i=r.path.join(".");if(!n[i])if("unionErrors"in r){var o=r.unionErrors[0].errors[0];n[i]={message:o.message,type:o.code}}else n[i]={message:a,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(l){return l.errors.forEach(function(p){return t.push(p)})}),e){var u=n[i].types,c=u&&u[r.code];n[i]=Rn(i,e,n,s,c?[].concat(c,r.message):r.message)}t.shift()}return n},ma=function(t,e,n){return n===void 0&&(n={}),function(r,s,a){try{return Promise.resolve(function(i,o){try{var u=Promise.resolve(t[n.mode==="sync"?"parse":"parseAsync"](r,e)).then(function(c){return a.shouldUseNativeValidation&&qt({},a),{errors:{},values:n.raw?r:c}})}catch(c){return o(c)}return u&&u.then?u.then(void 0,o):u}(0,function(i){if(function(o){return Array.isArray(o==null?void 0:o.errors)}(i))return{values:{},errors:On(Cn(i.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw i}))}catch(i){return Promise.reject(i)}}};function Ht(t,e){return function(){return t.apply(e,arguments)}}const{toString:Nn}=Object.prototype,{getPrototypeOf:xt}=Object,Ye=(t=>e=>{const n=Nn.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),V=t=>(t=t.toLowerCase(),e=>Ye(e)===t),Qe=t=>e=>typeof e===t,{isArray:ge}=Array,xe=Qe("undefined");function jn(t){return t!==null&&!xe(t)&&t.constructor!==null&&!xe(t.constructor)&&U(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Wt=V("ArrayBuffer");function Pn(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Wt(t.buffer),e}const Zn=Qe("string"),U=Qe("function"),Jt=Qe("number"),et=t=>t!==null&&typeof t=="object",In=t=>t===!0||t===!1,Fe=t=>{if(Ye(t)!=="object")return!1;const e=xt(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Ln=V("Date"),Dn=V("File"),Un=V("Blob"),Mn=V("FileList"),Fn=t=>et(t)&&U(t.pipe),Bn=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||U(t.append)&&((e=Ye(t))==="formdata"||e==="object"&&U(t.toString)&&t.toString()==="[object FormData]"))},$n=V("URLSearchParams"),[Vn,zn,qn,Hn]=["ReadableStream","Request","Response","Headers"].map(V),Wn=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Le(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),ge(t))for(r=0,s=t.length;r0;)if(s=n[r],e===s.toLowerCase())return s;return null}const se=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gt=t=>!xe(t)&&t!==se;function ft(){const{caseless:t}=Gt(this)&&this||{},e={},n=(r,s)=>{const a=t&&Kt(e,s)||s;Fe(e[a])&&Fe(r)?e[a]=ft(e[a],r):Fe(r)?e[a]=ft({},r):ge(r)?e[a]=r.slice():e[a]=r};for(let r=0,s=arguments.length;r(Le(e,(s,a)=>{n&&U(s)?t[a]=Ht(s,n):t[a]=s},{allOwnKeys:r}),t),Kn=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Gn=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Xn=(t,e,n,r)=>{let s,a,i;const o={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),a=s.length;a-- >0;)i=s[a],(!r||r(i,t,e))&&!o[i]&&(e[i]=t[i],o[i]=!0);t=n!==!1&&xt(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Yn=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Qn=t=>{if(!t)return null;if(ge(t))return t;let e=t.length;if(!Jt(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},er=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&xt(Uint8Array)),tr=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const a=s.value;e.call(t,a[0],a[1])}},nr=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},rr=V("HTMLFormElement"),sr=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),At=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ar=V("RegExp"),Xt=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Le(n,(s,a)=>{let i;(i=e(s,a,t))!==!1&&(r[a]=i||s)}),Object.defineProperties(t,r)},ir=t=>{Xt(t,(e,n)=>{if(U(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(U(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},or=(t,e)=>{const n={},r=s=>{s.forEach(a=>{n[a]=!0})};return ge(t)?r(t):r(String(t).split(e)),n},cr=()=>{},ur=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,it="abcdefghijklmnopqrstuvwxyz",Ct="0123456789",Yt={DIGIT:Ct,ALPHA:it,ALPHA_DIGIT:it+it.toUpperCase()+Ct},dr=(t=16,e=Yt.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function lr(t){return!!(t&&U(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const fr=t=>{const e=new Array(10),n=(r,s)=>{if(et(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const a=ge(r)?[]:{};return Le(r,(i,o)=>{const u=n(i,s+1);!xe(u)&&(a[o]=u)}),e[s]=void 0,a}}return r};return n(t,0)},hr=V("AsyncFunction"),pr=t=>t&&(et(t)||U(t))&&U(t.then)&&U(t.catch),Qt=((t,e)=>t?setImmediate:e?((n,r)=>(se.addEventListener("message",({source:s,data:a})=>{s===se&&a===n&&r.length&&r.shift()()},!1),s=>{r.push(s),se.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",U(se.postMessage)),mr=typeof queueMicrotask<"u"?queueMicrotask.bind(se):typeof process<"u"&&process.nextTick||Qt,d={isArray:ge,isArrayBuffer:Wt,isBuffer:jn,isFormData:Bn,isArrayBufferView:Pn,isString:Zn,isNumber:Jt,isBoolean:In,isObject:et,isPlainObject:Fe,isReadableStream:Vn,isRequest:zn,isResponse:qn,isHeaders:Hn,isUndefined:xe,isDate:Ln,isFile:Dn,isBlob:Un,isRegExp:ar,isFunction:U,isStream:Fn,isURLSearchParams:$n,isTypedArray:er,isFileList:Mn,forEach:Le,merge:ft,extend:Jn,trim:Wn,stripBOM:Kn,inherits:Gn,toFlatObject:Xn,kindOf:Ye,kindOfTest:V,endsWith:Yn,toArray:Qn,forEachEntry:tr,matchAll:nr,isHTMLForm:rr,hasOwnProperty:At,hasOwnProp:At,reduceDescriptors:Xt,freezeMethods:ir,toObjectSet:or,toCamelCase:sr,noop:cr,toFiniteNumber:ur,findKey:Kt,global:se,isContextDefined:Gt,ALPHABET:Yt,generateString:dr,isSpecCompliantForm:lr,toJSONObject:fr,isAsyncFn:hr,isThenable:pr,setImmediate:Qt,asap:mr};function w(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}d.inherits(w,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:d.toJSONObject(this.config),code:this.code,status:this.status}}});const en=w.prototype,tn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{tn[t]={value:t}});Object.defineProperties(w,tn);Object.defineProperty(en,"isAxiosError",{value:!0});w.from=(t,e,n,r,s,a)=>{const i=Object.create(en);return d.toFlatObject(t,i,function(u){return u!==Error.prototype},o=>o!=="isAxiosError"),w.call(i,t.message,e,n,r,s),i.cause=t,i.name=t.name,a&&Object.assign(i,a),i};const yr=null;function ht(t){return d.isPlainObject(t)||d.isArray(t)}function nn(t){return d.endsWith(t,"[]")?t.slice(0,-2):t}function Nt(t,e,n){return t?t.concat(e).map(function(s,a){return s=nn(s),!n&&a?"["+s+"]":s}).join(n?".":""):e}function gr(t){return d.isArray(t)&&!t.some(ht)}const _r=d.toFlatObject(d,{},null,function(e){return/^is[A-Z]/.test(e)});function tt(t,e,n){if(!d.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=d.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,_){return!d.isUndefined(_[k])});const r=n.metaTokens,s=n.visitor||l,a=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&d.isSpecCompliantForm(e);if(!d.isFunction(s))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(d.isDate(g))return g.toISOString();if(!u&&d.isBlob(g))throw new w("Blob is not supported. Use a Buffer instead.");return d.isArrayBuffer(g)||d.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function l(g,k,_){let A=g;if(g&&!_&&typeof g=="object"){if(d.endsWith(k,"{}"))k=r?k:k.slice(0,-2),g=JSON.stringify(g);else if(d.isArray(g)&&gr(g)||(d.isFileList(g)||d.endsWith(k,"[]"))&&(A=d.toArray(g)))return k=nn(k),A.forEach(function(j,J){!(d.isUndefined(j)||j===null)&&e.append(i===!0?Nt([k],J,a):i===null?k:k+"[]",c(j))}),!1}return ht(g)?!0:(e.append(Nt(_,k,a),c(g)),!1)}const p=[],S=Object.assign(_r,{defaultVisitor:l,convertValue:c,isVisitable:ht});function R(g,k){if(!d.isUndefined(g)){if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+k.join("."));p.push(g),d.forEach(g,function(A,C){(!(d.isUndefined(A)||A===null)&&s.call(e,A,d.isString(C)?C.trim():C,k,S))===!0&&R(A,k?k.concat(C):[C])}),p.pop()}}if(!d.isObject(t))throw new TypeError("data must be an object");return R(t),e}function jt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function kt(t,e){this._pairs=[],t&&tt(t,this,e)}const rn=kt.prototype;rn.append=function(e,n){this._pairs.push([e,n])};rn.toString=function(e){const n=e?function(r){return e.call(this,r,jt)}:jt;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function vr(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function sn(t,e,n){if(!e)return t;const r=n&&n.encode||vr;d.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let a;if(s?a=s(e,n):a=d.isURLSearchParams(e)?e.toString():new kt(e,n).toString(r),a){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class Pt{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){d.forEach(this.handlers,function(r){r!==null&&e(r)})}}const an={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},br=typeof URLSearchParams<"u"?URLSearchParams:kt,wr=typeof FormData<"u"?FormData:null,xr=typeof Blob<"u"?Blob:null,kr={isBrowser:!0,classes:{URLSearchParams:br,FormData:wr,Blob:xr},protocols:["http","https","file","blob","url","data"]},Tt=typeof window<"u"&&typeof document<"u",pt=typeof navigator=="object"&&navigator||void 0,Tr=Tt&&(!pt||["ReactNative","NativeScript","NS"].indexOf(pt.product)<0),Er=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Sr=Tt&&window.location.href||"http://localhost",Rr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Tt,hasStandardBrowserEnv:Tr,hasStandardBrowserWebWorkerEnv:Er,navigator:pt,origin:Sr},Symbol.toStringTag,{value:"Module"})),P={...Rr,...kr};function Or(t,e){return tt(t,new P.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,a){return P.isNode&&d.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function Ar(t){return d.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Cr(t){const e={},n=Object.keys(t);let r;const s=n.length;let a;for(r=0;r=n.length;return i=!i&&d.isArray(s)?s.length:i,u?(d.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!o):((!s[i]||!d.isObject(s[i]))&&(s[i]=[]),e(n,r,s[i],a)&&d.isArray(s[i])&&(s[i]=Cr(s[i])),!o)}if(d.isFormData(t)&&d.isFunction(t.entries)){const n={};return d.forEachEntry(t,(r,s)=>{e(Ar(r),s,n,0)}),n}return null}function Nr(t,e,n){if(d.isString(t))try{return(e||JSON.parse)(t),d.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const De={transitional:an,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,a=d.isObject(e);if(a&&d.isHTMLForm(e)&&(e=new FormData(e)),d.isFormData(e))return s?JSON.stringify(on(e)):e;if(d.isArrayBuffer(e)||d.isBuffer(e)||d.isStream(e)||d.isFile(e)||d.isBlob(e)||d.isReadableStream(e))return e;if(d.isArrayBufferView(e))return e.buffer;if(d.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Or(e,this.formSerializer).toString();if((o=d.isFileList(e))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return tt(o?{"files[]":e}:e,u&&new u,this.formSerializer)}}return a||s?(n.setContentType("application/json",!1),Nr(e)):e}],transformResponse:[function(e){const n=this.transitional||De.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(d.isResponse(e)||d.isReadableStream(e))return e;if(e&&d.isString(e)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(o){if(i)throw o.name==="SyntaxError"?w.from(o,w.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:P.classes.FormData,Blob:P.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};d.forEach(["delete","get","head","post","put","patch"],t=>{De.headers[t]={}});const jr=d.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Pr=t=>{const e={};let n,r,s;return t&&t.split(` +`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||e[n]&&jr[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Zt=Symbol("internals");function ve(t){return t&&String(t).trim().toLowerCase()}function Be(t){return t===!1||t==null?t:d.isArray(t)?t.map(Be):String(t)}function Zr(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Ir=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ot(t,e,n,r,s){if(d.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!d.isString(e)){if(d.isString(r))return e.indexOf(r)!==-1;if(d.isRegExp(r))return r.test(e)}}function Lr(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Dr(t,e){const n=d.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,a,i){return this[r].call(this,e,s,a,i)},configurable:!0})})}class D{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function a(o,u,c){const l=ve(u);if(!l)throw new Error("header name must be a non-empty string");const p=d.findKey(s,l);(!p||s[p]===void 0||c===!0||c===void 0&&s[p]!==!1)&&(s[p||u]=Be(o))}const i=(o,u)=>d.forEach(o,(c,l)=>a(c,l,u));if(d.isPlainObject(e)||e instanceof this.constructor)i(e,n);else if(d.isString(e)&&(e=e.trim())&&!Ir(e))i(Pr(e),n);else if(d.isHeaders(e))for(const[o,u]of e.entries())a(u,o,r);else e!=null&&a(n,e,r);return this}get(e,n){if(e=ve(e),e){const r=d.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return Zr(s);if(d.isFunction(n))return n.call(this,s,r);if(d.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=ve(e),e){const r=d.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||ot(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function a(i){if(i=ve(i),i){const o=d.findKey(r,i);o&&(!n||ot(r,r[o],o,n))&&(delete r[o],s=!0)}}return d.isArray(e)?e.forEach(a):a(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const a=n[r];(!e||ot(this,this[a],a,e,!0))&&(delete this[a],s=!0)}return s}normalize(e){const n=this,r={};return d.forEach(this,(s,a)=>{const i=d.findKey(r,a);if(i){n[i]=Be(s),delete n[a];return}const o=e?Lr(a):String(a).trim();o!==a&&delete n[a],n[o]=Be(s),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return d.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&d.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[Zt]=this[Zt]={accessors:{}}).accessors,s=this.prototype;function a(i){const o=ve(i);r[o]||(Dr(s,i),r[o]=!0)}return d.isArray(e)?e.forEach(a):a(e),this}}D.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);d.reduceDescriptors(D.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});d.freezeMethods(D);function ct(t,e){const n=this||De,r=e||n,s=D.from(r.headers);let a=r.data;return d.forEach(t,function(o){a=o.call(n,a,s.normalize(),e?e.status:void 0)}),s.normalize(),a}function cn(t){return!!(t&&t.__CANCEL__)}function _e(t,e,n){w.call(this,t??"canceled",w.ERR_CANCELED,e,n),this.name="CanceledError"}d.inherits(_e,w,{__CANCEL__:!0});function un(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new w("Request failed with status code "+n.status,[w.ERR_BAD_REQUEST,w.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Ur(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Mr(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,a=0,i;return e=e!==void 0?e:1e3,function(u){const c=Date.now(),l=r[a];i||(i=c),n[s]=u,r[s]=c;let p=a,S=0;for(;p!==s;)S+=n[p++],p=p%t;if(s=(s+1)%t,s===a&&(a=(a+1)%t),c-i{n=l,s=null,a&&(clearTimeout(a),a=null),t.apply(null,c)};return[(...c)=>{const l=Date.now(),p=l-n;p>=r?i(c,l):(s=c,a||(a=setTimeout(()=>{a=null,i(s)},r-p)))},()=>s&&i(s)]}const Ve=(t,e,n=3)=>{let r=0;const s=Mr(50,250);return Fr(a=>{const i=a.loaded,o=a.lengthComputable?a.total:void 0,u=i-r,c=s(u),l=i<=o;r=i;const p={loaded:i,total:o,progress:o?i/o:void 0,bytes:u,rate:c||void 0,estimated:c&&o&&l?(o-i)/c:void 0,event:a,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(p)},n)},It=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Lt=t=>(...e)=>d.asap(()=>t(...e)),Br=P.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,P.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(P.origin),P.navigator&&/(msie|trident)/i.test(P.navigator.userAgent)):()=>!0,$r=P.hasStandardBrowserEnv?{write(t,e,n,r,s,a){const i=[t+"="+encodeURIComponent(e)];d.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),d.isString(r)&&i.push("path="+r),d.isString(s)&&i.push("domain="+s),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Vr(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function zr(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function dn(t,e){return t&&!Vr(e)?zr(t,e):e}const Dt=t=>t instanceof D?{...t}:t;function oe(t,e){e=e||{};const n={};function r(c,l,p,S){return d.isPlainObject(c)&&d.isPlainObject(l)?d.merge.call({caseless:S},c,l):d.isPlainObject(l)?d.merge({},l):d.isArray(l)?l.slice():l}function s(c,l,p,S){if(d.isUndefined(l)){if(!d.isUndefined(c))return r(void 0,c,p,S)}else return r(c,l,p,S)}function a(c,l){if(!d.isUndefined(l))return r(void 0,l)}function i(c,l){if(d.isUndefined(l)){if(!d.isUndefined(c))return r(void 0,c)}else return r(void 0,l)}function o(c,l,p){if(p in e)return r(c,l);if(p in t)return r(void 0,c)}const u={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:o,headers:(c,l,p)=>s(Dt(c),Dt(l),p,!0)};return d.forEach(Object.keys(Object.assign({},t,e)),function(l){const p=u[l]||s,S=p(t[l],e[l],l);d.isUndefined(S)&&p!==o||(n[l]=S)}),n}const ln=t=>{const e=oe({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:a,headers:i,auth:o}=e;e.headers=i=D.from(i),e.url=sn(dn(e.baseURL,e.url),t.params,t.paramsSerializer),o&&i.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let u;if(d.isFormData(n)){if(P.hasStandardBrowserEnv||P.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((u=i.getContentType())!==!1){const[c,...l]=u?u.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...l].join("; "))}}if(P.hasStandardBrowserEnv&&(r&&d.isFunction(r)&&(r=r(e)),r||r!==!1&&Br(e.url))){const c=s&&a&&$r.read(a);c&&i.set(s,c)}return e},qr=typeof XMLHttpRequest<"u",Hr=qr&&function(t){return new Promise(function(n,r){const s=ln(t);let a=s.data;const i=D.from(s.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:c}=s,l,p,S,R,g;function k(){R&&R(),g&&g(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let _=new XMLHttpRequest;_.open(s.method.toUpperCase(),s.url,!0),_.timeout=s.timeout;function A(){if(!_)return;const j=D.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),L={data:!o||o==="text"||o==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:j,config:t,request:_};un(function(re){n(re),k()},function(re){r(re),k()},L),_=null}"onloadend"in _?_.onloadend=A:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(A)},_.onabort=function(){_&&(r(new w("Request aborted",w.ECONNABORTED,t,_)),_=null)},_.onerror=function(){r(new w("Network Error",w.ERR_NETWORK,t,_)),_=null},_.ontimeout=function(){let J=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const L=s.transitional||an;s.timeoutErrorMessage&&(J=s.timeoutErrorMessage),r(new w(J,L.clarifyTimeoutError?w.ETIMEDOUT:w.ECONNABORTED,t,_)),_=null},a===void 0&&i.setContentType(null),"setRequestHeader"in _&&d.forEach(i.toJSON(),function(J,L){_.setRequestHeader(L,J)}),d.isUndefined(s.withCredentials)||(_.withCredentials=!!s.withCredentials),o&&o!=="json"&&(_.responseType=s.responseType),c&&([S,g]=Ve(c,!0),_.addEventListener("progress",S)),u&&_.upload&&([p,R]=Ve(u),_.upload.addEventListener("progress",p),_.upload.addEventListener("loadend",R)),(s.cancelToken||s.signal)&&(l=j=>{_&&(r(!j||j.type?new _e(null,t,_):j),_.abort(),_=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const C=Ur(s.url);if(C&&P.protocols.indexOf(C)===-1){r(new w("Unsupported protocol "+C+":",w.ERR_BAD_REQUEST,t));return}_.send(a||null)})},Wr=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,s;const a=function(c){if(!s){s=!0,o();const l=c instanceof Error?c:this.reason;r.abort(l instanceof w?l:new _e(l instanceof Error?l.message:l))}};let i=e&&setTimeout(()=>{i=null,a(new w(`timeout ${e} of ms exceeded`,w.ETIMEDOUT))},e);const o=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),t=null)};t.forEach(c=>c.addEventListener("abort",a));const{signal:u}=r;return u.unsubscribe=()=>d.asap(o),u}},Jr=function*(t,e){let n=t.byteLength;if(n{const s=Kr(t,e);let a=0,i,o=u=>{i||(i=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:l}=await s.next();if(c){o(),u.close();return}let p=l.byteLength;if(n){let S=a+=p;n(S)}u.enqueue(new Uint8Array(l))}catch(c){throw o(c),c}},cancel(u){return o(u),s.return()}},{highWaterMark:2})},nt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",fn=nt&&typeof ReadableStream=="function",Xr=nt&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),hn=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Yr=fn&&hn(()=>{let t=!1;const e=new Request(P.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Mt=64*1024,mt=fn&&hn(()=>d.isReadableStream(new Response("").body)),ze={stream:mt&&(t=>t.body)};nt&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ze[e]&&(ze[e]=d.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new w(`Response type '${e}' is not supported`,w.ERR_NOT_SUPPORT,r)})})})(new Response);const Qr=async t=>{if(t==null)return 0;if(d.isBlob(t))return t.size;if(d.isSpecCompliantForm(t))return(await new Request(P.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(d.isArrayBufferView(t)||d.isArrayBuffer(t))return t.byteLength;if(d.isURLSearchParams(t)&&(t=t+""),d.isString(t))return(await Xr(t)).byteLength},es=async(t,e)=>{const n=d.toFiniteNumber(t.getContentLength());return n??Qr(e)},ts=nt&&(async t=>{let{url:e,method:n,data:r,signal:s,cancelToken:a,timeout:i,onDownloadProgress:o,onUploadProgress:u,responseType:c,headers:l,withCredentials:p="same-origin",fetchOptions:S}=ln(t);c=c?(c+"").toLowerCase():"text";let R=Wr([s,a&&a.toAbortSignal()],i),g;const k=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let _;try{if(u&&Yr&&n!=="get"&&n!=="head"&&(_=await es(l,r))!==0){let L=new Request(e,{method:"POST",body:r,duplex:"half"}),Y;if(d.isFormData(r)&&(Y=L.headers.get("content-type"))&&l.setContentType(Y),L.body){const[re,Me]=It(_,Ve(Lt(u)));r=Ut(L.body,Mt,re,Me)}}d.isString(p)||(p=p?"include":"omit");const A="credentials"in Request.prototype;g=new Request(e,{...S,signal:R,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:A?p:void 0});let C=await fetch(g);const j=mt&&(c==="stream"||c==="response");if(mt&&(o||j&&k)){const L={};["status","statusText","headers"].forEach(Rt=>{L[Rt]=C[Rt]});const Y=d.toFiniteNumber(C.headers.get("content-length")),[re,Me]=o&&It(Y,Ve(Lt(o),!0))||[];C=new Response(Ut(C.body,Mt,re,()=>{Me&&Me(),k&&k()}),L)}c=c||"text";let J=await ze[d.findKey(ze,c)||"text"](C,t);return!j&&k&&k(),await new Promise((L,Y)=>{un(L,Y,{data:J,headers:D.from(C.headers),status:C.status,statusText:C.statusText,config:t,request:g})})}catch(A){throw k&&k(),A&&A.name==="TypeError"&&/fetch/i.test(A.message)?Object.assign(new w("Network Error",w.ERR_NETWORK,t,g),{cause:A.cause||A}):w.from(A,A&&A.code,t,g)}}),yt={http:yr,xhr:Hr,fetch:ts};d.forEach(yt,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Ft=t=>`- ${t}`,ns=t=>d.isFunction(t)||t===null||t===!1,pn={getAdapter:t=>{t=d.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let a=0;a`adapter ${o} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=e?a.length>1?`since : +`+a.map(Ft).join(` +`):" "+Ft(a[0]):"as no adapter specified";throw new w("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:yt};function ut(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new _e(null,t)}function Bt(t){return ut(t),t.headers=D.from(t.headers),t.data=ct.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),pn.getAdapter(t.adapter||De.adapter)(t).then(function(r){return ut(t),r.data=ct.call(t,t.transformResponse,r),r.headers=D.from(r.headers),r},function(r){return cn(r)||(ut(t),r&&r.response&&(r.response.data=ct.call(t,t.transformResponse,r.response),r.response.headers=D.from(r.response.headers))),Promise.reject(r)})}const mn="1.7.9",rt={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{rt[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const $t={};rt.transitional=function(e,n,r){function s(a,i){return"[Axios v"+mn+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return(a,i,o)=>{if(e===!1)throw new w(s(i," has been removed"+(n?" in "+n:"")),w.ERR_DEPRECATED);return n&&!$t[i]&&($t[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(a,i,o):!0}};rt.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function rs(t,e,n){if(typeof t!="object")throw new w("options must be an object",w.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const a=r[s],i=e[a];if(i){const o=t[a],u=o===void 0||i(o,a,t);if(u!==!0)throw new w("option "+a+" must be "+u,w.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new w("Unknown option "+a,w.ERR_BAD_OPTION)}}const $e={assertOptions:rs,validators:rt},z=$e.validators;class ae{constructor(e){this.defaults=e,this.interceptors={request:new Pt,response:new Pt}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const a=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+a):r.stack=a}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=oe(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:a}=n;r!==void 0&&$e.assertOptions(r,{silentJSONParsing:z.transitional(z.boolean),forcedJSONParsing:z.transitional(z.boolean),clarifyTimeoutError:z.transitional(z.boolean)},!1),s!=null&&(d.isFunction(s)?n.paramsSerializer={serialize:s}:$e.assertOptions(s,{encode:z.function,serialize:z.function},!0)),$e.assertOptions(n,{baseUrl:z.spelling("baseURL"),withXsrfToken:z.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=a&&d.merge(a.common,a[n.method]);a&&d.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),n.headers=D.concat(i,a);const o=[];let u=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(n)===!1||(u=u&&k.synchronous,o.unshift(k.fulfilled,k.rejected))});const c=[];this.interceptors.response.forEach(function(k){c.push(k.fulfilled,k.rejected)});let l,p=0,S;if(!u){const g=[Bt.bind(this),void 0];for(g.unshift.apply(g,o),g.push.apply(g,c),S=g.length,l=Promise.resolve(n);p{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](s);r._listeners=null}),this.promise.then=s=>{let a;const i=new Promise(o=>{r.subscribe(o),a=o}).then(s);return i.cancel=function(){r.unsubscribe(a)},i},e(function(a,i,o){r.reason||(r.reason=new _e(a,i,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Et(function(s){e=s}),cancel:e}}}function ss(t){return function(n){return t.apply(null,n)}}function as(t){return d.isObject(t)&&t.isAxiosError===!0}const gt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gt).forEach(([t,e])=>{gt[e]=t});function yn(t){const e=new ae(t),n=Ht(ae.prototype.request,e);return d.extend(n,ae.prototype,e,{allOwnKeys:!0}),d.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return yn(oe(t,s))},n}const N=yn(De);N.Axios=ae;N.CanceledError=_e;N.CancelToken=Et;N.isCancel=cn;N.VERSION=mn;N.toFormData=tt;N.AxiosError=w;N.Cancel=N.CanceledError;N.all=function(e){return Promise.all(e)};N.spread=ss;N.isAxiosError=as;N.mergeConfig=oe;N.AxiosHeaders=D;N.formToJSON=t=>on(d.isHTMLForm(t)?new FormData(t):t);N.getAdapter=pn.getAdapter;N.HttpStatusCode=gt;N.default=N;var E;(function(t){t.assertEqual=s=>s;function e(s){}t.assertIs=e;function n(s){throw new Error}t.assertNever=n,t.arrayToEnum=s=>{const a={};for(const i of s)a[i]=i;return a},t.getValidEnumValues=s=>{const a=t.objectKeys(s).filter(o=>typeof s[s[o]]!="number"),i={};for(const o of a)i[o]=s[o];return t.objectValues(i)},t.objectValues=s=>t.objectKeys(s).map(function(a){return s[a]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const a=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&a.push(i);return a},t.find=(s,a)=>{for(const i of s)if(a(i))return i},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function r(s,a=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(a)}t.joinValues=r,t.jsonStringifyReplacer=(s,a)=>typeof a=="bigint"?a.toString():a})(E||(E={}));var _t;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(_t||(_t={}));const m=E.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),G=t=>{switch(typeof t){case"undefined":return m.undefined;case"string":return m.string;case"number":return isNaN(t)?m.nan:m.number;case"boolean":return m.boolean;case"function":return m.function;case"bigint":return m.bigint;case"symbol":return m.symbol;case"object":return Array.isArray(t)?m.array:t===null?m.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?m.promise:typeof Map<"u"&&t instanceof Map?m.map:typeof Set<"u"&&t instanceof Set?m.set:typeof Date<"u"&&t instanceof Date?m.date:m.object;default:return m.unknown}},f=E.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),is=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class M extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(a){return a.message},r={_errors:[]},s=a=>{for(const i of a.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let o=r,u=0;for(;un.message){const n={},r=[];for(const s of this.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(e(s))):r.push(e(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}M.create=t=>new M(t);const pe=(t,e)=>{let n;switch(t.code){case f.invalid_type:t.received===m.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case f.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,E.jsonStringifyReplacer)}`;break;case f.unrecognized_keys:n=`Unrecognized key(s) in object: ${E.joinValues(t.keys,", ")}`;break;case f.invalid_union:n="Invalid input";break;case f.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${E.joinValues(t.options)}`;break;case f.invalid_enum_value:n=`Invalid enum value. Expected ${E.joinValues(t.options)}, received '${t.received}'`;break;case f.invalid_arguments:n="Invalid function arguments";break;case f.invalid_return_type:n="Invalid function return type";break;case f.invalid_date:n="Invalid date";break;case f.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:E.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case f.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case f.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case f.custom:n="Invalid input";break;case f.invalid_intersection_types:n="Intersection results could not be merged";break;case f.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case f.not_finite:n="Number must be finite";break;default:n=e.defaultError,E.assertNever(t)}return{message:n}};let gn=pe;function os(t){gn=t}function qe(){return gn}const He=t=>{const{data:e,path:n,errorMaps:r,issueData:s}=t,a=[...n,...s.path||[]],i={...s,path:a};if(s.message!==void 0)return{...s,path:a,message:s.message};let o="";const u=r.filter(c=>!!c).slice().reverse();for(const c of u)o=c(i,{data:e,defaultError:o}).message;return{...s,path:a,message:o}},cs=[];function h(t,e){const n=qe(),r=He({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===pe?void 0:pe].filter(s=>!!s)});t.common.issues.push(r)}class Z{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const s of n){if(s.status==="aborted")return b;s.status==="dirty"&&e.dirty(),r.push(s.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const s of n){const a=await s.key,i=await s.value;r.push({key:a,value:i})}return Z.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const s of n){const{key:a,value:i}=s;if(a.status==="aborted"||i.status==="aborted")return b;a.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),a.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(r[a.value]=i.value)}return{status:e.value,value:r}}}const b=Object.freeze({status:"aborted"}),fe=t=>({status:"dirty",value:t}),I=t=>({status:"valid",value:t}),vt=t=>t.status==="aborted",bt=t=>t.status==="dirty",ce=t=>t.status==="valid",ke=t=>typeof Promise<"u"&&t instanceof Promise;function We(t,e,n,r){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(t)}function _n(t,e,n,r,s){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,n),n}var y;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(y||(y={}));var be,we;class H{constructor(e,n,r,s){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Vt=(t,e)=>{if(ce(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new M(t.common.issues);return this._error=n,this._error}}};function x(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:s}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(i,o)=>{var u,c;const{message:l}=t;return i.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:(u=l??r)!==null&&u!==void 0?u:o.defaultError}:i.code!=="invalid_type"?{message:o.defaultError}:{message:(c=l??n)!==null&&c!==void 0?c:o.defaultError}},description:s}}class T{get description(){return this._def.description}_getType(e){return G(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:G(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Z,ctx:{common:e.parent.common,data:e.data,parsedType:G(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(ke(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){var r;const s={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:G(e)},a=this._parseSync({data:e,path:s.path,parent:s});return Vt(s,a)}"~validate"(e){var n,r;const s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:G(e)};if(!this["~standard"].async)try{const a=this._parseSync({data:e,path:[],parent:s});return ce(a)?{value:a.value}:{issues:s.common.issues}}catch(a){!((r=(n=a==null?void 0:a.message)===null||n===void 0?void 0:n.toLowerCase())===null||r===void 0)&&r.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:s}).then(a=>ce(a)?{value:a.value}:{issues:s.common.issues})}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:G(e)},s=this._parse({data:e,path:r.path,parent:r}),a=await(ke(s)?s:Promise.resolve(s));return Vt(r,a)}refine(e,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,a)=>{const i=e(s),o=()=>a.addIssue({code:f.custom,...r(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(u=>u?!0:(o(),!1)):i?!0:(o(),!1)})}refinement(e,n){return this._refinement((r,s)=>e(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(e){return new $({schema:this,typeName:v.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return q.create(this,this._def)}nullable(){return ne.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return B.create(this)}promise(){return ye.create(this,this._def)}or(e){return Re.create([this,e],this._def)}and(e){return Oe.create(this,e,this._def)}transform(e){return new $({...x(this._def),schema:this,typeName:v.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new Pe({...x(this._def),innerType:this,defaultValue:n,typeName:v.ZodDefault})}brand(){return new St({typeName:v.ZodBranded,type:this,...x(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new Ze({...x(this._def),innerType:this,catchValue:n,typeName:v.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return Ue.create(this,e)}readonly(){return Ie.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const us=/^c[^\s-]{8,}$/i,ds=/^[0-9a-z]+$/,ls=/^[0-9A-HJKMNP-TV-Z]{26}$/i,fs=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,hs=/^[a-z0-9_-]{21}$/i,ps=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ms=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ys=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,gs="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let dt;const _s=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,vs=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,bs=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,ws=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,xs=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ks=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,vn="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Ts=new RegExp(`^${vn}$`);function bn(t){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`),e}function Es(t){return new RegExp(`^${bn(t)}$`)}function wn(t){let e=`${vn}T${bn(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function Ss(t,e){return!!((e==="v4"||!e)&&_s.test(t)||(e==="v6"||!e)&&bs.test(t))}function Rs(t,e){if(!ps.test(t))return!1;try{const[n]=t.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||!s.typ||!s.alg||e&&s.alg!==e)}catch{return!1}}function Os(t,e){return!!((e==="v4"||!e)&&vs.test(t)||(e==="v6"||!e)&&ws.test(t))}class F extends T{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==m.string){const a=this._getOrReturnCtx(e);return h(a,{code:f.invalid_type,expected:m.string,received:a.parsedType}),b}const r=new Z;let s;for(const a of this._def.checks)if(a.kind==="min")e.data.lengtha.value&&(s=this._getOrReturnCtx(e,s),h(s,{code:f.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const i=e.data.length>a.value,o=e.data.lengthe.test(s),{validation:n,code:f.invalid_string,...y.errToObj(r)})}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...y.errToObj(e)})}url(e){return this._addCheck({kind:"url",...y.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...y.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...y.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...y.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...y.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...y.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...y.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...y.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...y.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...y.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...y.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...y.errToObj(e)})}datetime(e){var n,r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(n=e==null?void 0:e.offset)!==null&&n!==void 0?n:!1,local:(r=e==null?void 0:e.local)!==null&&r!==void 0?r:!1,...y.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...y.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...y.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...y.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n==null?void 0:n.position,...y.errToObj(n==null?void 0:n.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...y.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...y.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...y.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...y.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...y.errToObj(n)})}nonempty(e){return this.min(1,y.errToObj(e))}trim(){return new F({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new F({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new F({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value{var e;return new F({checks:[],typeName:v.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...x(t)})};function As(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,s=n>r?n:r,a=parseInt(t.toFixed(s).replace(".","")),i=parseInt(e.toFixed(s).replace(".",""));return a%i/Math.pow(10,s)}class Q extends T{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==m.number){const a=this._getOrReturnCtx(e);return h(a,{code:f.invalid_type,expected:m.number,received:a.parsedType}),b}let r;const s=new Z;for(const a of this._def.checks)a.kind==="int"?E.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),h(r,{code:f.invalid_type,expected:"integer",received:"float",message:a.message}),s.dirty()):a.kind==="min"?(a.inclusive?e.dataa.value:e.data>=a.value)&&(r=this._getOrReturnCtx(e,r),h(r,{code:f.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),s.dirty()):a.kind==="multipleOf"?As(e.data,a.value)!==0&&(r=this._getOrReturnCtx(e,r),h(r,{code:f.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):a.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),h(r,{code:f.not_finite,message:a.message}),s.dirty()):E.assertNever(a);return{status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,y.toString(n))}gt(e,n){return this.setLimit("min",e,!1,y.toString(n))}lte(e,n){return this.setLimit("max",e,!0,y.toString(n))}lt(e,n){return this.setLimit("max",e,!1,y.toString(n))}setLimit(e,n,r,s){return new Q({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:y.toString(s)}]})}_addCheck(e){return new Q({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:y.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:y.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:y.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:y.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:y.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:y.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:y.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:y.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:y.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.valuee.kind==="int"||e.kind==="multipleOf"&&E.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.valuenew Q({checks:[],typeName:v.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...x(t)});class ee extends T{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==m.bigint)return this._getInvalidInput(e);let r;const s=new Z;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?e.dataa.value:e.data>=a.value)&&(r=this._getOrReturnCtx(e,r),h(r,{code:f.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),s.dirty()):a.kind==="multipleOf"?e.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),h(r,{code:f.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):E.assertNever(a);return{status:s.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return h(n,{code:f.invalid_type,expected:m.bigint,received:n.parsedType}),b}gte(e,n){return this.setLimit("min",e,!0,y.toString(n))}gt(e,n){return this.setLimit("min",e,!1,y.toString(n))}lte(e,n){return this.setLimit("max",e,!0,y.toString(n))}lt(e,n){return this.setLimit("max",e,!1,y.toString(n))}setLimit(e,n,r,s){return new ee({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:y.toString(s)}]})}_addCheck(e){return new ee({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:y.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:y.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:y.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:y.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:y.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value{var e;return new ee({checks:[],typeName:v.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...x(t)})};class Te extends T{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==m.boolean){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.boolean,received:r.parsedType}),b}return I(e.data)}}Te.create=t=>new Te({typeName:v.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...x(t)});class ue extends T{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==m.date){const a=this._getOrReturnCtx(e);return h(a,{code:f.invalid_type,expected:m.date,received:a.parsedType}),b}if(isNaN(e.data.getTime())){const a=this._getOrReturnCtx(e);return h(a,{code:f.invalid_date}),b}const r=new Z;let s;for(const a of this._def.checks)a.kind==="min"?e.data.getTime()a.value&&(s=this._getOrReturnCtx(e,s),h(s,{code:f.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):E.assertNever(a);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ue({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:y.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:y.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.valuenew ue({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:v.ZodDate,...x(t)});class Je extends T{_parse(e){if(this._getType(e)!==m.symbol){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.symbol,received:r.parsedType}),b}return I(e.data)}}Je.create=t=>new Je({typeName:v.ZodSymbol,...x(t)});class Ee extends T{_parse(e){if(this._getType(e)!==m.undefined){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.undefined,received:r.parsedType}),b}return I(e.data)}}Ee.create=t=>new Ee({typeName:v.ZodUndefined,...x(t)});class Se extends T{_parse(e){if(this._getType(e)!==m.null){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.null,received:r.parsedType}),b}return I(e.data)}}Se.create=t=>new Se({typeName:v.ZodNull,...x(t)});class me extends T{constructor(){super(...arguments),this._any=!0}_parse(e){return I(e.data)}}me.create=t=>new me({typeName:v.ZodAny,...x(t)});class ie extends T{constructor(){super(...arguments),this._unknown=!0}_parse(e){return I(e.data)}}ie.create=t=>new ie({typeName:v.ZodUnknown,...x(t)});class X extends T{_parse(e){const n=this._getOrReturnCtx(e);return h(n,{code:f.invalid_type,expected:m.never,received:n.parsedType}),b}}X.create=t=>new X({typeName:v.ZodNever,...x(t)});class Ke extends T{_parse(e){if(this._getType(e)!==m.undefined){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.void,received:r.parsedType}),b}return I(e.data)}}Ke.create=t=>new Ke({typeName:v.ZodVoid,...x(t)});class B extends T{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),s=this._def;if(n.parsedType!==m.array)return h(n,{code:f.invalid_type,expected:m.array,received:n.parsedType}),b;if(s.exactLength!==null){const i=n.data.length>s.exactLength.value,o=n.data.lengths.maxLength.value&&(h(n,{code:f.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,o)=>s.type._parseAsync(new H(n,i,n.path,o)))).then(i=>Z.mergeArray(r,i));const a=[...n.data].map((i,o)=>s.type._parseSync(new H(n,i,n.path,o)));return Z.mergeArray(r,a)}get element(){return this._def.type}min(e,n){return new B({...this._def,minLength:{value:e,message:y.toString(n)}})}max(e,n){return new B({...this._def,maxLength:{value:e,message:y.toString(n)}})}length(e,n){return new B({...this._def,exactLength:{value:e,message:y.toString(n)}})}nonempty(e){return this.min(1,e)}}B.create=(t,e)=>new B({type:t,minLength:null,maxLength:null,exactLength:null,typeName:v.ZodArray,...x(e)});function le(t){if(t instanceof O){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=q.create(le(r))}return new O({...t._def,shape:()=>e})}else return t instanceof B?new B({...t._def,type:le(t.element)}):t instanceof q?q.create(le(t.unwrap())):t instanceof ne?ne.create(le(t.unwrap())):t instanceof W?W.create(t.items.map(e=>le(e))):t}class O extends T{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=E.objectKeys(e);return this._cached={shape:e,keys:n}}_parse(e){if(this._getType(e)!==m.object){const c=this._getOrReturnCtx(e);return h(c,{code:f.invalid_type,expected:m.object,received:c.parsedType}),b}const{status:r,ctx:s}=this._processInputParams(e),{shape:a,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof X&&this._def.unknownKeys==="strip"))for(const c in s.data)i.includes(c)||o.push(c);const u=[];for(const c of i){const l=a[c],p=s.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new H(s,p,s.path,c)),alwaysSet:c in s.data})}if(this._def.catchall instanceof X){const c=this._def.unknownKeys;if(c==="passthrough")for(const l of o)u.push({key:{status:"valid",value:l},value:{status:"valid",value:s.data[l]}});else if(c==="strict")o.length>0&&(h(s,{code:f.unrecognized_keys,keys:o}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const l of o){const p=s.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new H(s,p,s.path,l)),alwaysSet:l in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const c=[];for(const l of u){const p=await l.key,S=await l.value;c.push({key:p,value:S,alwaysSet:l.alwaysSet})}return c}).then(c=>Z.mergeObjectSync(r,c)):Z.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(e){return y.errToObj,new O({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{var s,a,i,o;const u=(i=(a=(s=this._def).errorMap)===null||a===void 0?void 0:a.call(s,n,r).message)!==null&&i!==void 0?i:r.defaultError;return n.code==="unrecognized_keys"?{message:(o=y.errToObj(e).message)!==null&&o!==void 0?o:u}:{message:u}}}:{}})}strip(){return new O({...this._def,unknownKeys:"strip"})}passthrough(){return new O({...this._def,unknownKeys:"passthrough"})}extend(e){return new O({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new O({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:v.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new O({...this._def,catchall:e})}pick(e){const n={};return E.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new O({...this._def,shape:()=>n})}omit(e){const n={};return E.objectKeys(this.shape).forEach(r=>{e[r]||(n[r]=this.shape[r])}),new O({...this._def,shape:()=>n})}deepPartial(){return le(this)}partial(e){const n={};return E.objectKeys(this.shape).forEach(r=>{const s=this.shape[r];e&&!e[r]?n[r]=s:n[r]=s.optional()}),new O({...this._def,shape:()=>n})}required(e){const n={};return E.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof q;)a=a._def.innerType;n[r]=a}}),new O({...this._def,shape:()=>n})}keyof(){return xn(E.objectKeys(this.shape))}}O.create=(t,e)=>new O({shape:()=>t,unknownKeys:"strip",catchall:X.create(),typeName:v.ZodObject,...x(e)});O.strictCreate=(t,e)=>new O({shape:()=>t,unknownKeys:"strict",catchall:X.create(),typeName:v.ZodObject,...x(e)});O.lazycreate=(t,e)=>new O({shape:t,unknownKeys:"strip",catchall:X.create(),typeName:v.ZodObject,...x(e)});class Re extends T{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function s(a){for(const o of a)if(o.result.status==="valid")return o.result;for(const o of a)if(o.result.status==="dirty")return n.common.issues.push(...o.ctx.common.issues),o.result;const i=a.map(o=>new M(o.ctx.common.issues));return h(n,{code:f.invalid_union,unionErrors:i}),b}if(n.common.async)return Promise.all(r.map(async a=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(s);{let a;const i=[];for(const u of r){const c={...n,common:{...n.common,issues:[]},parent:null},l=u._parseSync({data:n.data,path:n.path,parent:c});if(l.status==="valid")return l;l.status==="dirty"&&!a&&(a={result:l,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(u=>new M(u));return h(n,{code:f.invalid_union,unionErrors:o}),b}}get options(){return this._def.options}}Re.create=(t,e)=>new Re({options:t,typeName:v.ZodUnion,...x(e)});const K=t=>t instanceof Ce?K(t.schema):t instanceof $?K(t.innerType()):t instanceof Ne?[t.value]:t instanceof te?t.options:t instanceof je?E.objectValues(t.enum):t instanceof Pe?K(t._def.innerType):t instanceof Ee?[void 0]:t instanceof Se?[null]:t instanceof q?[void 0,...K(t.unwrap())]:t instanceof ne?[null,...K(t.unwrap())]:t instanceof St||t instanceof Ie?K(t.unwrap()):t instanceof Ze?K(t._def.innerType):[];class st extends T{_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==m.object)return h(n,{code:f.invalid_type,expected:m.object,received:n.parsedType}),b;const r=this.discriminator,s=n.data[r],a=this.optionsMap.get(s);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(h(n,{code:f.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),b)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,r){const s=new Map;for(const a of n){const i=K(a.shape[e]);if(!i.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const o of i){if(s.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);s.set(o,a)}}return new st({typeName:v.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:s,...x(r)})}}function wt(t,e){const n=G(t),r=G(e);if(t===e)return{valid:!0,data:t};if(n===m.object&&r===m.object){const s=E.objectKeys(e),a=E.objectKeys(t).filter(o=>s.indexOf(o)!==-1),i={...t,...e};for(const o of a){const u=wt(t[o],e[o]);if(!u.valid)return{valid:!1};i[o]=u.data}return{valid:!0,data:i}}else if(n===m.array&&r===m.array){if(t.length!==e.length)return{valid:!1};const s=[];for(let a=0;a{if(vt(a)||vt(i))return b;const o=wt(a.value,i.value);return o.valid?((bt(a)||bt(i))&&n.dirty(),{status:n.value,value:o.data}):(h(r,{code:f.invalid_intersection_types}),b)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,i])=>s(a,i)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Oe.create=(t,e,n)=>new Oe({left:t,right:e,typeName:v.ZodIntersection,...x(n)});class W extends T{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.array)return h(r,{code:f.invalid_type,expected:m.array,received:r.parsedType}),b;if(r.data.lengththis._def.items.length&&(h(r,{code:f.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((i,o)=>{const u=this._def.items[o]||this._def.rest;return u?u._parse(new H(r,i,r.path,o)):null}).filter(i=>!!i);return r.common.async?Promise.all(a).then(i=>Z.mergeArray(n,i)):Z.mergeArray(n,a)}get items(){return this._def.items}rest(e){return new W({...this._def,rest:e})}}W.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new W({items:t,typeName:v.ZodTuple,rest:null,...x(e)})};class Ae extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.object)return h(r,{code:f.invalid_type,expected:m.object,received:r.parsedType}),b;const s=[],a=this._def.keyType,i=this._def.valueType;for(const o in r.data)s.push({key:a._parse(new H(r,o,r.path,o)),value:i._parse(new H(r,r.data[o],r.path,o)),alwaysSet:o in r.data});return r.common.async?Z.mergeObjectAsync(n,s):Z.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(e,n,r){return n instanceof T?new Ae({keyType:e,valueType:n,typeName:v.ZodRecord,...x(r)}):new Ae({keyType:F.create(),valueType:e,typeName:v.ZodRecord,...x(n)})}}class Ge extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.map)return h(r,{code:f.invalid_type,expected:m.map,received:r.parsedType}),b;const s=this._def.keyType,a=this._def.valueType,i=[...r.data.entries()].map(([o,u],c)=>({key:s._parse(new H(r,o,r.path,[c,"key"])),value:a._parse(new H(r,u,r.path,[c,"value"]))}));if(r.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const u of i){const c=await u.key,l=await u.value;if(c.status==="aborted"||l.status==="aborted")return b;(c.status==="dirty"||l.status==="dirty")&&n.dirty(),o.set(c.value,l.value)}return{status:n.value,value:o}})}else{const o=new Map;for(const u of i){const c=u.key,l=u.value;if(c.status==="aborted"||l.status==="aborted")return b;(c.status==="dirty"||l.status==="dirty")&&n.dirty(),o.set(c.value,l.value)}return{status:n.value,value:o}}}}Ge.create=(t,e,n)=>new Ge({valueType:e,keyType:t,typeName:v.ZodMap,...x(n)});class de extends T{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.set)return h(r,{code:f.invalid_type,expected:m.set,received:r.parsedType}),b;const s=this._def;s.minSize!==null&&r.data.sizes.maxSize.value&&(h(r,{code:f.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const a=this._def.valueType;function i(u){const c=new Set;for(const l of u){if(l.status==="aborted")return b;l.status==="dirty"&&n.dirty(),c.add(l.value)}return{status:n.value,value:c}}const o=[...r.data.values()].map((u,c)=>a._parse(new H(r,u,r.path,c)));return r.common.async?Promise.all(o).then(u=>i(u)):i(o)}min(e,n){return new de({...this._def,minSize:{value:e,message:y.toString(n)}})}max(e,n){return new de({...this._def,maxSize:{value:e,message:y.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}de.create=(t,e)=>new de({valueType:t,minSize:null,maxSize:null,typeName:v.ZodSet,...x(e)});class he extends T{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==m.function)return h(n,{code:f.invalid_type,expected:m.function,received:n.parsedType}),b;function r(o,u){return He({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,qe(),pe].filter(c=>!!c),issueData:{code:f.invalid_arguments,argumentsError:u}})}function s(o,u){return He({data:o,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,qe(),pe].filter(c=>!!c),issueData:{code:f.invalid_return_type,returnTypeError:u}})}const a={errorMap:n.common.contextualErrorMap},i=n.data;if(this._def.returns instanceof ye){const o=this;return I(async function(...u){const c=new M([]),l=await o._def.args.parseAsync(u,a).catch(R=>{throw c.addIssue(r(u,R)),c}),p=await Reflect.apply(i,this,l);return await o._def.returns._def.type.parseAsync(p,a).catch(R=>{throw c.addIssue(s(p,R)),c})})}else{const o=this;return I(function(...u){const c=o._def.args.safeParse(u,a);if(!c.success)throw new M([r(u,c.error)]);const l=Reflect.apply(i,this,c.data),p=o._def.returns.safeParse(l,a);if(!p.success)throw new M([s(l,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new he({...this._def,args:W.create(e).rest(ie.create())})}returns(e){return new he({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,r){return new he({args:e||W.create([]).rest(ie.create()),returns:n||ie.create(),typeName:v.ZodFunction,...x(r)})}}class Ce extends T{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Ce.create=(t,e)=>new Ce({getter:t,typeName:v.ZodLazy,...x(e)});class Ne extends T{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return h(n,{received:n.data,code:f.invalid_literal,expected:this._def.value}),b}return{status:"valid",value:e.data}}get value(){return this._def.value}}Ne.create=(t,e)=>new Ne({value:t,typeName:v.ZodLiteral,...x(e)});function xn(t,e){return new te({values:t,typeName:v.ZodEnum,...x(e)})}class te extends T{constructor(){super(...arguments),be.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return h(n,{expected:E.joinValues(r),received:n.parsedType,code:f.invalid_type}),b}if(We(this,be)||_n(this,be,new Set(this._def.values)),!We(this,be).has(e.data)){const n=this._getOrReturnCtx(e),r=this._def.values;return h(n,{received:n.data,code:f.invalid_enum_value,options:r}),b}return I(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return te.create(e,{...this._def,...n})}exclude(e,n=this._def){return te.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}}be=new WeakMap;te.create=xn;class je extends T{constructor(){super(...arguments),we.set(this,void 0)}_parse(e){const n=E.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==m.string&&r.parsedType!==m.number){const s=E.objectValues(n);return h(r,{expected:E.joinValues(s),received:r.parsedType,code:f.invalid_type}),b}if(We(this,we)||_n(this,we,new Set(E.getValidEnumValues(this._def.values))),!We(this,we).has(e.data)){const s=E.objectValues(n);return h(r,{received:r.data,code:f.invalid_enum_value,options:s}),b}return I(e.data)}get enum(){return this._def.values}}we=new WeakMap;je.create=(t,e)=>new je({values:t,typeName:v.ZodNativeEnum,...x(e)});class ye extends T{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==m.promise&&n.common.async===!1)return h(n,{code:f.invalid_type,expected:m.promise,received:n.parsedType}),b;const r=n.parsedType===m.promise?n.data:Promise.resolve(n.data);return I(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ye.create=(t,e)=>new ye({type:t,typeName:v.ZodPromise,...x(e)});class $ extends T{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===v.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=this._def.effect||null,a={addIssue:i=>{h(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),s.type==="preprocess"){const i=s.transform(r.data,a);if(r.common.async)return Promise.resolve(i).then(async o=>{if(n.value==="aborted")return b;const u=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return u.status==="aborted"?b:u.status==="dirty"||n.value==="dirty"?fe(u.value):u});{if(n.value==="aborted")return b;const o=this._def.schema._parseSync({data:i,path:r.path,parent:r});return o.status==="aborted"?b:o.status==="dirty"||n.value==="dirty"?fe(o.value):o}}if(s.type==="refinement"){const i=o=>{const u=s.refinement(o,a);if(r.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?b:(o.status==="dirty"&&n.dirty(),i(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>o.status==="aborted"?b:(o.status==="dirty"&&n.dirty(),i(o.value).then(()=>({status:n.value,value:o.value}))))}if(s.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!ce(i))return i;const o=s.transform(i.value,a);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>ce(i)?Promise.resolve(s.transform(i.value,a)).then(o=>({status:n.value,value:o})):i);E.assertNever(s)}}$.create=(t,e,n)=>new $({schema:t,typeName:v.ZodEffects,effect:e,...x(n)});$.createWithPreprocess=(t,e,n)=>new $({schema:e,effect:{type:"preprocess",transform:t},typeName:v.ZodEffects,...x(n)});class q extends T{_parse(e){return this._getType(e)===m.undefined?I(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}q.create=(t,e)=>new q({innerType:t,typeName:v.ZodOptional,...x(e)});class ne extends T{_parse(e){return this._getType(e)===m.null?I(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ne.create=(t,e)=>new ne({innerType:t,typeName:v.ZodNullable,...x(e)});class Pe extends T{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===m.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Pe.create=(t,e)=>new Pe({innerType:t,typeName:v.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...x(e)});class Ze extends T{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ke(s)?s.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new M(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new M(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ze.create=(t,e)=>new Ze({innerType:t,typeName:v.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...x(e)});class Xe extends T{_parse(e){if(this._getType(e)!==m.nan){const r=this._getOrReturnCtx(e);return h(r,{code:f.invalid_type,expected:m.nan,received:r.parsedType}),b}return{status:"valid",value:e.data}}}Xe.create=t=>new Xe({typeName:v.ZodNaN,...x(t)});const Cs=Symbol("zod_brand");class St extends T{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Ue extends T{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?b:a.status==="dirty"?(n.dirty(),fe(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?b:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(e,n){return new Ue({in:e,out:n,typeName:v.ZodPipeline})}}class Ie extends T{_parse(e){const n=this._def.innerType._parse(e),r=s=>(ce(s)&&(s.value=Object.freeze(s.value)),s);return ke(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}Ie.create=(t,e)=>new Ie({innerType:t,typeName:v.ZodReadonly,...x(e)});function kn(t,e={},n){return t?me.create().superRefine((r,s)=>{var a,i;if(!t(r)){const o=typeof e=="function"?e(r):typeof e=="string"?{message:e}:e,u=(i=(a=o.fatal)!==null&&a!==void 0?a:n)!==null&&i!==void 0?i:!0,c=typeof o=="string"?{message:o}:o;s.addIssue({code:"custom",...c,fatal:u})}}):me.create()}const Ns={object:O.lazycreate};var v;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(v||(v={}));const js=(t,e={message:`Input not instance of ${t.name}`})=>kn(n=>n instanceof t,e),Tn=F.create,En=Q.create,Ps=Xe.create,Zs=ee.create,Sn=Te.create,Is=ue.create,Ls=Je.create,Ds=Ee.create,Us=Se.create,Ms=me.create,Fs=ie.create,Bs=X.create,$s=Ke.create,Vs=B.create,zs=O.create,qs=O.strictCreate,Hs=Re.create,Ws=st.create,Js=Oe.create,Ks=W.create,Gs=Ae.create,Xs=Ge.create,Ys=de.create,Qs=he.create,ea=Ce.create,ta=Ne.create,na=te.create,ra=je.create,sa=ye.create,zt=$.create,aa=q.create,ia=ne.create,oa=$.createWithPreprocess,ca=Ue.create,ua=()=>Tn().optional(),da=()=>En().optional(),la=()=>Sn().optional(),fa={string:t=>F.create({...t,coerce:!0}),number:t=>Q.create({...t,coerce:!0}),boolean:t=>Te.create({...t,coerce:!0}),bigint:t=>ee.create({...t,coerce:!0}),date:t=>ue.create({...t,coerce:!0})},ha=b;var ya=Object.freeze({__proto__:null,defaultErrorMap:pe,setErrorMap:os,getErrorMap:qe,makeIssue:He,EMPTY_PATH:cs,addIssueToContext:h,ParseStatus:Z,INVALID:b,DIRTY:fe,OK:I,isAborted:vt,isDirty:bt,isValid:ce,isAsync:ke,get util(){return E},get objectUtil(){return _t},ZodParsedType:m,getParsedType:G,ZodType:T,datetimeRegex:wn,ZodString:F,ZodNumber:Q,ZodBigInt:ee,ZodBoolean:Te,ZodDate:ue,ZodSymbol:Je,ZodUndefined:Ee,ZodNull:Se,ZodAny:me,ZodUnknown:ie,ZodNever:X,ZodVoid:Ke,ZodArray:B,ZodObject:O,ZodUnion:Re,ZodDiscriminatedUnion:st,ZodIntersection:Oe,ZodTuple:W,ZodRecord:Ae,ZodMap:Ge,ZodSet:de,ZodFunction:he,ZodLazy:Ce,ZodLiteral:Ne,ZodEnum:te,ZodNativeEnum:je,ZodPromise:ye,ZodEffects:$,ZodTransformer:$,ZodOptional:q,ZodNullable:ne,ZodDefault:Pe,ZodCatch:Ze,ZodNaN:Xe,BRAND:Cs,ZodBranded:St,ZodPipeline:Ue,ZodReadonly:Ie,custom:kn,Schema:T,ZodSchema:T,late:Ns,get ZodFirstPartyTypeKind(){return v},coerce:fa,any:Ms,array:Vs,bigint:Zs,boolean:Sn,date:Is,discriminatedUnion:Ws,effect:zt,enum:na,function:Qs,instanceof:js,intersection:Js,lazy:ea,literal:ta,map:Xs,nan:Ps,nativeEnum:ra,never:Bs,null:Us,nullable:ia,number:En,object:zs,oboolean:la,onumber:da,optional:aa,ostring:ua,pipeline:ca,preprocess:oa,promise:sa,record:Gs,set:Ys,strictObject:qs,string:Tn,symbol:Ls,transformer:zt,tuple:Ks,undefined:Ds,union:Hs,unknown:Fs,void:$s,NEVER:ha,ZodIssueCode:f,quotelessJson:is,ZodError:M});export{N as a,ma as t,ya as z}; diff --git a/dist/assets/radio-group-0T_K4mIX.js b/dist/assets/radio-group-0T_K4mIX.js new file mode 100644 index 0000000..1117fb4 --- /dev/null +++ b/dist/assets/radio-group-0T_K4mIX.js @@ -0,0 +1 @@ +import{D as N,E as F,j as d,S as L,G as K,I as fe,P as A,J as y,K as pe,M as me,N as ve,f as U}from"./ui-library-D6J3nmrf.js";import{d as w,a as s}from"./react-vendor-OnsDvTPE.js";function Re(e){const o=e+"CollectionProvider",[t,n]=N(o),[a,i]=t(o,{collectionRef:{current:null},itemMap:new Map}),p=c=>{const{scope:r,children:l}=c,m=w.useRef(null),v=w.useRef(new Map).current;return d.jsx(a,{scope:r,itemMap:v,collectionRef:m,children:l})};p.displayName=o;const C=e+"CollectionSlot",f=w.forwardRef((c,r)=>{const{scope:l,children:m}=c,v=i(C,l),I=F(r,v.collectionRef);return d.jsx(L,{ref:I,children:m})});f.displayName=C;const u=e+"CollectionItemSlot",g="data-radix-collection-item",R=w.forwardRef((c,r)=>{const{scope:l,children:m,...v}=c,I=w.useRef(null),h=F(r,I),S=i(u,l);return w.useEffect(()=>(S.itemMap.set(I,{ref:I,...v}),()=>void S.itemMap.delete(I))),d.jsx(L,{[g]:"",ref:h,children:m})});R.displayName=u;function b(c){const r=i(e+"CollectionConsumer",c);return w.useCallback(()=>{const m=r.collectionRef.current;if(!m)return[];const v=Array.from(m.querySelectorAll(`[${g}]`));return Array.from(r.itemMap.values()).sort((S,_)=>v.indexOf(S.ref.current)-v.indexOf(_.ref.current))},[r.collectionRef,r.itemMap])}return[{Provider:p,Slot:f,ItemSlot:R},b,n]}var be=s.createContext(void 0);function V(e){const o=s.useContext(be);return e||o||"ltr"}var G="rovingFocusGroup.onEntryFocus",Ie={bubbles:!1,cancelable:!0},P="RovingFocusGroup",[k,B,Ce]=Re(P),[ge,q]=N(P,[Ce]),[xe,ye]=ge(P),z=s.forwardRef((e,o)=>d.jsx(k.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(k.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Ee,{...e,ref:o})})}));z.displayName=P;var Ee=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,orientation:n,loop:a=!1,dir:i,currentTabStopId:p,defaultCurrentTabStopId:C,onCurrentTabStopIdChange:f,onEntryFocus:u,preventScrollOnEntryFocus:g=!1,...R}=e,b=s.useRef(null),c=F(o,b),r=V(i),[l=null,m]=K({prop:p,defaultProp:C,onChange:f}),[v,I]=s.useState(!1),h=fe(u),S=B(t),_=s.useRef(!1),[ae,j]=s.useState(0);return s.useEffect(()=>{const x=b.current;if(x)return x.addEventListener(G,h),()=>x.removeEventListener(G,h)},[h]),d.jsx(xe,{scope:t,orientation:n,dir:r,loop:a,currentTabStopId:l,onItemFocus:s.useCallback(x=>m(x),[m]),onItemShiftTab:s.useCallback(()=>I(!0),[]),onFocusableItemAdd:s.useCallback(()=>j(x=>x+1),[]),onFocusableItemRemove:s.useCallback(()=>j(x=>x-1),[]),children:d.jsx(A.div,{tabIndex:v||ae===0?-1:0,"data-orientation":n,...R,ref:c,style:{outline:"none",...e.style},onMouseDown:y(e.onMouseDown,()=>{_.current=!0}),onFocus:y(e.onFocus,x=>{const ie=!_.current;if(x.target===x.currentTarget&&ie&&!v){const O=new CustomEvent(G,Ie);if(x.currentTarget.dispatchEvent(O),!O.defaultPrevented){const T=S().filter(E=>E.focusable),ue=T.find(E=>E.active),de=T.find(E=>E.id===l),le=[ue,de,...T].filter(Boolean).map(E=>E.ref.current);H(le,g)}}_.current=!1}),onBlur:y(e.onBlur,()=>I(!1))})})}),Y="RovingFocusGroupItem",$=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,focusable:n=!0,active:a=!1,tabStopId:i,...p}=e,C=pe(),f=i||C,u=ye(Y,t),g=u.currentTabStopId===f,R=B(t),{onFocusableItemAdd:b,onFocusableItemRemove:c}=u;return s.useEffect(()=>{if(n)return b(),()=>c()},[n,b,c]),d.jsx(k.ItemSlot,{scope:t,id:f,focusable:n,active:a,children:d.jsx(A.span,{tabIndex:g?0:-1,"data-orientation":u.orientation,...p,ref:o,onMouseDown:y(e.onMouseDown,r=>{n?u.onItemFocus(f):r.preventDefault()}),onFocus:y(e.onFocus,()=>u.onItemFocus(f)),onKeyDown:y(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){u.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const l=Se(r,u.orientation,u.dir);if(l!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let v=R().filter(I=>I.focusable).map(I=>I.ref.current);if(l==="last")v.reverse();else if(l==="prev"||l==="next"){l==="prev"&&v.reverse();const I=v.indexOf(r.currentTarget);v=u.loop?_e(v,I+1):v.slice(I+1)}setTimeout(()=>H(v))}})})})});$.displayName=Y;var we={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function he(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Se(e,o,t){const n=he(e.key,t);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return we[n]}function H(e,o=!1){const t=document.activeElement;for(const n of e)if(n===t||(n.focus({preventScroll:o}),document.activeElement!==t))return}function _e(e,o){return e.map((t,n)=>e[(o+n)%e.length])}var Fe=z,Ae=$;function Ne(e){const o=s.useRef({value:e,previous:e});return s.useMemo(()=>(o.current.value!==e&&(o.current.previous=o.current.value,o.current.value=e),o.current.previous),[e])}var M="Radio",[Pe,J]=N(M),[Te,Ge]=Pe(M),W=s.forwardRef((e,o)=>{const{__scopeRadio:t,name:n,checked:a=!1,required:i,disabled:p,value:C="on",onCheck:f,form:u,...g}=e,[R,b]=s.useState(null),c=F(o,m=>b(m)),r=s.useRef(!1),l=R?u||!!R.closest("form"):!0;return d.jsxs(Te,{scope:t,checked:a,disabled:p,children:[d.jsx(A.button,{type:"button",role:"radio","aria-checked":a,"data-state":Z(a),"data-disabled":p?"":void 0,disabled:p,value:C,...g,ref:c,onClick:y(e.onClick,m=>{a||f==null||f(),l&&(r.current=m.isPropagationStopped(),r.current||m.stopPropagation())})}),l&&d.jsx(ke,{control:R,bubbles:!r.current,name:n,value:C,checked:a,required:i,disabled:p,form:u,style:{transform:"translateX(-100%)"}})]})});W.displayName=M;var X="RadioIndicator",Q=s.forwardRef((e,o)=>{const{__scopeRadio:t,forceMount:n,...a}=e,i=Ge(X,t);return d.jsx(me,{present:n||i.checked,children:d.jsx(A.span,{"data-state":Z(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:o})})});Q.displayName=X;var ke=e=>{const{control:o,checked:t,bubbles:n=!0,...a}=e,i=s.useRef(null),p=Ne(t),C=ve(o);return s.useEffect(()=>{const f=i.current,u=window.HTMLInputElement.prototype,R=Object.getOwnPropertyDescriptor(u,"checked").set;if(p!==t&&R){const b=new Event("click",{bubbles:n});R.call(f,t),f.dispatchEvent(b)}},[p,t,n]),d.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:i,style:{...e.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Z(e){return e?"checked":"unchecked"}var Me=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],D="RadioGroup",[De,Ye]=N(D,[q,J]),ee=q(),oe=J(),[je,Oe]=De(D),te=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,name:n,defaultValue:a,value:i,required:p=!1,disabled:C=!1,orientation:f,dir:u,loop:g=!0,onValueChange:R,...b}=e,c=ee(t),r=V(u),[l,m]=K({prop:i,defaultProp:a,onChange:R});return d.jsx(je,{scope:t,name:n,required:p,disabled:C,value:l,onValueChange:m,children:d.jsx(Fe,{asChild:!0,...c,orientation:f,dir:r,loop:g,children:d.jsx(A.div,{role:"radiogroup","aria-required":p,"aria-orientation":f,"data-disabled":C?"":void 0,dir:r,...b,ref:o})})})});te.displayName=D;var re="RadioGroupItem",ne=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,disabled:n,...a}=e,i=Oe(re,t),p=i.disabled||n,C=ee(t),f=oe(t),u=s.useRef(null),g=F(o,u),R=i.value===a.value,b=s.useRef(!1);return s.useEffect(()=>{const c=l=>{Me.includes(l.key)&&(b.current=!0)},r=()=>b.current=!1;return document.addEventListener("keydown",c),document.addEventListener("keyup",r),()=>{document.removeEventListener("keydown",c),document.removeEventListener("keyup",r)}},[]),d.jsx(Ae,{asChild:!0,...C,focusable:!p,active:R,children:d.jsx(W,{disabled:p,required:i.required,checked:R,...f,...a,name:i.name,ref:g,onCheck:()=>i.onValueChange(a.value),onKeyDown:y(c=>{c.key==="Enter"&&c.preventDefault()}),onFocus:y(a.onFocus,()=>{var c;b.current&&((c=u.current)==null||c.click())})})})});ne.displayName=re;var Le="RadioGroupIndicator",Ke=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,...n}=e,a=oe(t);return d.jsx(Q,{...a,...n,ref:o})});Ke.displayName=Le;var se=te,ce=ne;const Ue=s.forwardRef(({className:e,...o},t)=>d.jsx(se,{className:U("grid gap-2",e),...o,ref:t}));Ue.displayName=se.displayName;const Ve=s.forwardRef(({className:e,...o},t)=>d.jsx(ce,{ref:t,className:U(o.checked?"border-primary after:bg-opacity-1":"border-on_surface bg-transparent after:bg-opacity-0","size-5 rounded-full border-[2px] after:size-[9px] after:bg-primary before:scale-0 hover:before:scale-100 before:size-10 before:rounded-full before:transition-all before:absolute before:-top-3 before:-left-3 before:bg-on_surface/[8%] duration-300 after:rounded-full flex relative items-center justify-center text-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring transition-all disabled:cursor-not-allowed disabled:opacity-50",e),...o}));Ve.displayName=ce.displayName;export{Ue as R,Ve as a}; diff --git a/dist/assets/react-vendor-OnsDvTPE.js b/dist/assets/react-vendor-OnsDvTPE.js new file mode 100644 index 0000000..db9c65d --- /dev/null +++ b/dist/assets/react-vendor-OnsDvTPE.js @@ -0,0 +1,53 @@ +function fp(i,u){for(var a=0;ac[f]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var vm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oc(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Bu={exports:{}},we={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var zf;function cp(){if(zf)return we;zf=1;var i=Symbol.for("react.element"),u=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),h=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),O=Symbol.iterator;function L(E){return E===null||typeof E!="object"?null:(E=O&&E[O]||E["@@iterator"],typeof E=="function"?E:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,$={};function H(E,F,se){this.props=E,this.context=F,this.refs=$,this.updater=se||N}H.prototype.isReactComponent={},H.prototype.setState=function(E,F){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,F,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function M(){}M.prototype=H.prototype;function b(E,F,se){this.props=E,this.context=F,this.refs=$,this.updater=se||N}var J=b.prototype=new M;J.constructor=b,z(J,H.prototype),J.isPureReactComponent=!0;var ae=Array.isArray,C=Object.prototype.hasOwnProperty,le={current:null},pe={key:!0,ref:!0,__self:!0,__source:!0};function ie(E,F,se){var he,me={},Ee=null,De=null;if(F!=null)for(he in F.ref!==void 0&&(De=F.ref),F.key!==void 0&&(Ee=""+F.key),F)C.call(F,he)&&!pe.hasOwnProperty(he)&&(me[he]=F[he]);var Re=arguments.length-2;if(Re===1)me.children=se;else if(1>>1,F=V[E];if(0>>1;Ef(me,Q))Eef(De,me)?(V[E]=De,V[Ee]=Q,E=Ee):(V[E]=me,V[he]=Q,E=he);else if(Eef(De,Q))V[E]=De,V[Ee]=Q,E=Ee;else break e}}return re}function f(V,re){var Q=V.sortIndex-re.sortIndex;return Q!==0?Q:V.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;i.unstable_now=function(){return d.now()}}else{var h=Date,v=h.now();i.unstable_now=function(){return h.now()-v}}var g=[],S=[],D=1,O=null,L=3,N=!1,z=!1,$=!1,H=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function J(V){for(var re=a(S);re!==null;){if(re.callback===null)c(S);else if(re.startTime<=V)c(S),re.sortIndex=re.expirationTime,u(g,re);else break;re=a(S)}}function ae(V){if($=!1,J(V),!z)if(a(g)!==null)z=!0,Ge(C);else{var re=a(S);re!==null&&Ne(ae,re.startTime-V)}}function C(V,re){z=!1,$&&($=!1,M(ie),ie=-1),N=!0;var Q=L;try{for(J(re),O=a(g);O!==null&&(!(O.expirationTime>re)||V&&!Ke());){var E=O.callback;if(typeof E=="function"){O.callback=null,L=O.priorityLevel;var F=E(O.expirationTime<=re);re=i.unstable_now(),typeof F=="function"?O.callback=F:O===a(g)&&c(g),J(re)}else c(g);O=a(g)}if(O!==null)var se=!0;else{var he=a(S);he!==null&&Ne(ae,he.startTime-re),se=!1}return se}finally{O=null,L=Q,N=!1}}var le=!1,pe=null,ie=-1,ge=5,Ce=-1;function Ke(){return!(i.unstable_now()-CeV||125E?(V.sortIndex=Q,u(S,V),a(g)===null&&V===a(S)&&($?(M(ie),ie=-1):$=!0,Ne(ae,Q-E))):(V.sortIndex=F,u(g,V),z||N||(z=!0,Ge(C))),V},i.unstable_shouldYield=Ke,i.unstable_wrapCallback=function(V){var re=L;return function(){var Q=L;L=re;try{return V.apply(this,arguments)}finally{L=Q}}}}(Qu)),Qu}var If;function hp(){return If||(If=1,Wu.exports=pp()),Wu.exports}/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Uf;function mp(){if(Uf)return Et;Uf=1;var i=uc(),u=hp();function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,S=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,D={},O={};function L(e){return g.call(O,e)?!0:g.call(D,e)?!1:S.test(e)?O[e]=!0:(D[e]=!0,!1)}function N(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function z(e,t,n,r){if(t===null||typeof t>"u"||N(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function $(e,t,n,r,l,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var H={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){H[e]=new $(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];H[t]=new $(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){H[e]=new $(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){H[e]=new $(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){H[e]=new $(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){H[e]=new $(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){H[e]=new $(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){H[e]=new $(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){H[e]=new $(e,5,!1,e.toLowerCase(),null,!1,!1)});var M=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(M,b);H[t]=new $(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(M,b);H[t]=new $(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(M,b);H[t]=new $(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){H[e]=new $(e,1,!1,e.toLowerCase(),null,!1,!1)}),H.xlinkHref=new $("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){H[e]=new $(e,1,!1,e.toLowerCase(),null,!0,!0)});function J(e,t,n,r){var l=H.hasOwnProperty(t)?H[t]:null;(l!==null?l.type!==0:r||!(2p||l[s]!==o[p]){var m=` +`+l[s].replace(" at new "," at ");return e.displayName&&m.includes("")&&(m=m.replace("",e.displayName)),m}while(1<=s&&0<=p);break}}}finally{se=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function me(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=he(e.type,!1),e;case 11:return e=he(e.type.render,!1),e;case 1:return e=he(e.type,!0),e;default:return""}}function Ee(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case pe:return"Fragment";case le:return"Portal";case ge:return"Profiler";case ie:return"StrictMode";case We:return"Suspense";case ut:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ke:return(e.displayName||"Context")+".Consumer";case Ce:return(e._context.displayName||"Context")+".Provider";case rt:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _e:return t=e.displayName||null,t!==null?t:Ee(e.type)||"Memo";case Ge:t=e._payload,e=e._init;try{return Ee(e(t))}catch{}}return null}function De(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ee(t);case 8:return t===ie?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Re(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ye(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ye(e){var t=ye(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qn(e){e._valueTracker||(e._valueTracker=Ye(e))}function jl(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ye(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Tt(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Vr(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $l(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Re(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Wr(e,t){t=t.checked,t!=null&&J(e,"checked",t,!1)}function Qr(e,t){Wr(e,t);var n=Re(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Kr(e,t.type,n):t.hasOwnProperty("defaultValue")&&Kr(e,t.type,Re(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Al(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Kr(e,t,n){(t!=="number"||Tt(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Kn=Array.isArray;function ht(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=yn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function mt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var vn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bl=["Webkit","ms","Moz","O"];Object.keys(vn).forEach(function(e){Bl.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vn[t]=vn[e]})});function Xr(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||vn.hasOwnProperty(e)&&vn[e]?(""+t).trim():t+"px"}function Vl(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Xr(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Wl=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function gn(e,t){if(t){if(Wl[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(a(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(a(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(t.style!=null&&typeof t.style!="object")throw Error(a(62))}}function yr(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Yn=null;function Gr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vr=null,wn=null,ln=null;function Xn(e){if(e=hl(e)){if(typeof vr!="function")throw Error(a(280));var t=e.stateNode;t&&(t=ci(t),vr(e.stateNode,e.type,t))}}function Gn(e){wn?ln?ln.push(e):ln=[e]:wn=e}function Ql(){if(wn){var e=wn,t=ln;if(ln=wn=null,Xn(e),t)for(e=0;e>>=0,e===0?32:31-(Lc(e)/_c|0)|0}var Yl=64,Xl=4194304;function Jr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Gl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var p=s&~l;p!==0?r=Jr(p):(o&=s,o!==0&&(r=Jr(o)))}else s=n&~l,s!==0?r=Jr(s):o!==0&&(r=Jr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Zr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ht(t),e[t]=n}function Mc(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=il),Ra=" ",Pa=!1;function La(e,t){switch(e){case"keyup":return od.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _a(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kr=!1;function ad(e,t){switch(e){case"compositionend":return _a(t);case"keypress":return t.which!==32?null:(Pa=!0,Ra);case"textInput":return e=t.data,e===Ra&&Pa?null:e;default:return null}}function sd(e,t){if(kr)return e==="compositionend"||!ko&&La(e,t)?(e=wa(),ei=yo=Pn=null,kr=!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)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Oa(n)}}function Ua(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ua(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ja(){for(var e=window,t=Tt();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Tt(e.document)}return t}function Ro(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")}function gd(e){var t=ja(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ua(n.ownerDocument.documentElement,n)){if(r!==null&&Ro(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Ia(n,o);var s=Ia(n,r);l&&s&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,xr=null,Po=null,sl=null,Lo=!1;function $a(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lo||xr==null||xr!==Tt(r)||(r=xr,"selectionStart"in r&&Ro(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}),sl&&al(sl,r)||(sl=r,r=ai(Po,"onSelect"),0_r||(e.current=$o[_r],$o[_r]=null,_r--)}function Oe(e,t){_r++,$o[_r]=e.current,e.current=t}var Nn={},at=Tn(Nn),yt=Tn(!1),bn=Nn;function Tr(e,t){var n=e.type.contextTypes;if(!n)return Nn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function vt(e){return e=e.childContextTypes,e!=null}function di(){Ue(yt),Ue(at)}function es(e,t,n){if(at.current!==Nn)throw Error(a(168));Oe(at,t),Oe(yt,n)}function ts(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(a(108,De(e)||"Unknown",l));return Q({},n,r)}function pi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nn,bn=at.current,Oe(at,e),Oe(yt,yt.current),!0}function ns(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=ts(e,t,bn),r.__reactInternalMemoizedMergedChildContext=e,Ue(yt),Ue(at),Oe(at,e)):Ue(yt),Oe(yt,n)}var sn=null,hi=!1,Ao=!1;function rs(e){sn===null?sn=[e]:sn.push(e)}function Nd(e){hi=!0,rs(e)}function Dn(){if(!Ao&&sn!==null){Ao=!0;var e=0,t=Te;try{var n=sn;for(Te=1;e>=s,l-=s,fn=1<<32-Ht(t)+l|n<de?(nt=ue,ue=null):nt=ue.sibling;var xe=I(x,ue,R[de],B);if(xe===null){ue===null&&(ue=nt);break}e&&ue&&xe.alternate===null&&t(x,ue),w=o(xe,w,de),oe===null?ne=xe:oe.sibling=xe,oe=xe,ue=nt}if(de===R.length)return n(x,ue),je&&tr(x,de),ne;if(ue===null){for(;dede?(nt=ue,ue=null):nt=ue.sibling;var An=I(x,ue,xe.value,B);if(An===null){ue===null&&(ue=nt);break}e&&ue&&An.alternate===null&&t(x,ue),w=o(An,w,de),oe===null?ne=An:oe.sibling=An,oe=An,ue=nt}if(xe.done)return n(x,ue),je&&tr(x,de),ne;if(ue===null){for(;!xe.done;de++,xe=R.next())xe=A(x,xe.value,B),xe!==null&&(w=o(xe,w,de),oe===null?ne=xe:oe.sibling=xe,oe=xe);return je&&tr(x,de),ne}for(ue=r(x,ue);!xe.done;de++,xe=R.next())xe=Y(ue,x,de,xe.value,B),xe!==null&&(e&&xe.alternate!==null&&ue.delete(xe.key===null?de:xe.key),w=o(xe,w,de),oe===null?ne=xe:oe.sibling=xe,oe=xe);return e&&ue.forEach(function(sp){return t(x,sp)}),je&&tr(x,de),ne}function Qe(x,w,R,B){if(typeof R=="object"&&R!==null&&R.type===pe&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case C:e:{for(var ne=R.key,oe=w;oe!==null;){if(oe.key===ne){if(ne=R.type,ne===pe){if(oe.tag===7){n(x,oe.sibling),w=l(oe,R.props.children),w.return=x,x=w;break e}}else if(oe.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===Ge&&ss(ne)===oe.type){n(x,oe.sibling),w=l(oe,R.props),w.ref=ml(x,oe,R),w.return=x,x=w;break e}n(x,oe);break}else t(x,oe);oe=oe.sibling}R.type===pe?(w=sr(R.props.children,x.mode,B,R.key),w.return=x,x=w):(B=Bi(R.type,R.key,R.props,null,x.mode,B),B.ref=ml(x,w,R),B.return=x,x=B)}return s(x);case le:e:{for(oe=R.key;w!==null;){if(w.key===oe)if(w.tag===4&&w.stateNode.containerInfo===R.containerInfo&&w.stateNode.implementation===R.implementation){n(x,w.sibling),w=l(w,R.children||[]),w.return=x,x=w;break e}else{n(x,w);break}else t(x,w);w=w.sibling}w=Uu(R,x.mode,B),w.return=x,x=w}return s(x);case Ge:return oe=R._init,Qe(x,w,oe(R._payload),B)}if(Kn(R))return Z(x,w,R,B);if(re(R))return ee(x,w,R,B);gi(x,R)}return typeof R=="string"&&R!==""||typeof R=="number"?(R=""+R,w!==null&&w.tag===6?(n(x,w.sibling),w=l(w,R),w.return=x,x=w):(n(x,w),w=Iu(R,x.mode,B),w.return=x,x=w),s(x)):n(x,w)}return Qe}var zr=fs(!0),cs=fs(!1),wi=Tn(null),Si=null,Fr=null,Ko=null;function Yo(){Ko=Fr=Si=null}function Xo(e){var t=wi.current;Ue(wi),e._currentValue=t}function Go(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Or(e,t){Si=e,Ko=Fr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(gt=!0),e.firstContext=null)}function Ft(e){var t=e._currentValue;if(Ko!==e)if(e={context:e,memoizedValue:t,next:null},Fr===null){if(Si===null)throw Error(a(308));Fr=e,Si.dependencies={lanes:0,firstContext:e}}else Fr=Fr.next=e;return t}var nr=null;function Jo(e){nr===null?nr=[e]:nr.push(e)}function ds(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Jo(t)):(n.next=l.next,l.next=n),t.interleaved=n,dn(e,r)}function dn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Mn=!1;function Zo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ps(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function pn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ke&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,dn(e,n)}return l=r.interleaved,l===null?(t.next=t,Jo(r)):(t.next=l.next,l.next=t),r.interleaved=t,dn(e,n)}function Ei(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fo(e,n)}}function hs(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ki(e,t,n,r){var l=e.updateQueue;Mn=!1;var o=l.firstBaseUpdate,s=l.lastBaseUpdate,p=l.shared.pending;if(p!==null){l.shared.pending=null;var m=p,P=m.next;m.next=null,s===null?o=P:s.next=P,s=m;var j=e.alternate;j!==null&&(j=j.updateQueue,p=j.lastBaseUpdate,p!==s&&(p===null?j.firstBaseUpdate=P:p.next=P,j.lastBaseUpdate=m))}if(o!==null){var A=l.baseState;s=0,j=P=m=null,p=o;do{var I=p.lane,Y=p.eventTime;if((r&I)===I){j!==null&&(j=j.next={eventTime:Y,lane:0,tag:p.tag,payload:p.payload,callback:p.callback,next:null});e:{var Z=e,ee=p;switch(I=t,Y=n,ee.tag){case 1:if(Z=ee.payload,typeof Z=="function"){A=Z.call(Y,A,I);break e}A=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=ee.payload,I=typeof Z=="function"?Z.call(Y,A,I):Z,I==null)break e;A=Q({},A,I);break e;case 2:Mn=!0}}p.callback!==null&&p.lane!==0&&(e.flags|=64,I=l.effects,I===null?l.effects=[p]:I.push(p))}else Y={eventTime:Y,lane:I,tag:p.tag,payload:p.payload,callback:p.callback,next:null},j===null?(P=j=Y,m=A):j=j.next=Y,s|=I;if(p=p.next,p===null){if(p=l.shared.pending,p===null)break;I=p,p=I.next,I.next=null,l.lastBaseUpdate=I,l.shared.pending=null}}while(!0);if(j===null&&(m=A),l.baseState=m,l.firstBaseUpdate=P,l.lastBaseUpdate=j,t=l.shared.interleaved,t!==null){l=t;do s|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);ir|=s,e.lanes=s,e.memoizedState=A}}function ms(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=nu.transition;nu.transition={};try{e(!1),t()}finally{Te=n,nu.transition=r}}function Fs(){return Ot().memoizedState}function Fd(e,t,n){var r=Un(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Os(e))Is(t,n);else if(n=ds(e,t,n,r),n!==null){var l=pt();Yt(n,e,r,l),Us(n,t,r)}}function Od(e,t,n){var r=Un(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Os(e))Is(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,p=o(s,n);if(l.hasEagerState=!0,l.eagerState=p,Bt(p,s)){var m=t.interleaved;m===null?(l.next=l,Jo(t)):(l.next=m.next,m.next=l),t.interleaved=l;return}}catch{}finally{}n=ds(e,t,l,r),n!==null&&(l=pt(),Yt(n,e,r,l),Us(n,t,r))}}function Os(e){var t=e.alternate;return e===He||t!==null&&t===He}function Is(e,t){wl=Ri=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Us(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fo(e,n)}}var _i={readContext:Ft,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useInsertionEffect:st,useLayoutEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useMutableSource:st,useSyncExternalStore:st,useId:st,unstable_isNewReconciler:!1},Id={readContext:Ft,useCallback:function(e,t){return qt().memoizedState=[e,t===void 0?null:t],e},useContext:Ft,useEffect:Ps,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Pi(4194308,4,Ts.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pi(4,2,e,t)},useMemo:function(e,t){var n=qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Fd.bind(null,He,e),[r.memoizedState,e]},useRef:function(e){var t=qt();return e={current:e},t.memoizedState=e},useState:Cs,useDebugValue:su,useDeferredValue:function(e){return qt().memoizedState=e},useTransition:function(){var e=Cs(!1),t=e[0];return e=zd.bind(null,e[1]),qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=He,l=qt();if(je){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),tt===null)throw Error(a(349));lr&30||ws(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Ps(Es.bind(null,r,o,e),[e]),r.flags|=2048,kl(9,Ss.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=qt(),t=tt.identifierPrefix;if(je){var n=cn,r=fn;n=(r&~(1<<32-Ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Sl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Jt]=t,e[pl]=r,rf(e,t,!1,!1),t.stateNode=e;e:{switch(s=yr(n,r),n){case"dialog":Ie("cancel",e),Ie("close",e),l=r;break;case"iframe":case"object":case"embed":Ie("load",e),l=r;break;case"video":case"audio":for(l=0;lAr&&(t.flags|=128,r=!0,xl(o,!1),t.lanes=4194304)}else{if(!r)if(e=xi(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),xl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!je)return ft(t),null}else 2*Fe()-o.renderingStartTime>Ar&&n!==1073741824&&(t.flags|=128,r=!0,xl(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Fe(),t.sibling=null,n=Ae.current,Oe(Ae,r?n&1|2:n&1),t):(ft(t),null);case 22:case 23:return zu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Lt&1073741824&&(ft(t),t.subtreeFlags&6&&(t.flags|=8192)):ft(t),null;case 24:return null;case 25:return null}throw Error(a(156,t.tag))}function Wd(e,t){switch(Bo(t),t.tag){case 1:return vt(t.type)&&di(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ir(),Ue(yt),Ue(at),tu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bo(t),null;case 13:if(Ue(Ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Mr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ue(Ae),null;case 4:return Ir(),null;case 10:return Xo(t.type._context),null;case 22:case 23:return zu(),null;case 24:return null;default:return null}}var Mi=!1,ct=!1,Qd=typeof WeakSet=="function"?WeakSet:Set,G=null;function jr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ve(e,t,r)}else n.current=null}function Eu(e,t,n){try{n()}catch(r){Ve(e,t,r)}}var uf=!1;function Kd(e,t){if(zo=ql,e=ja(),Ro(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,p=-1,m=-1,P=0,j=0,A=e,I=null;t:for(;;){for(var Y;A!==n||l!==0&&A.nodeType!==3||(p=s+l),A!==o||r!==0&&A.nodeType!==3||(m=s+r),A.nodeType===3&&(s+=A.nodeValue.length),(Y=A.firstChild)!==null;)I=A,A=Y;for(;;){if(A===e)break t;if(I===n&&++P===l&&(p=s),I===o&&++j===r&&(m=s),(Y=A.nextSibling)!==null)break;A=I,I=A.parentNode}A=Y}n=p===-1||m===-1?null:{start:p,end:m}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fo={focusedElem:e,selectionRange:n},ql=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var Z=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(Z!==null){var ee=Z.memoizedProps,Qe=Z.memoizedState,x=t.stateNode,w=x.getSnapshotBeforeUpdate(t.elementType===t.type?ee:Wt(t.type,ee),Qe);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var R=t.stateNode.containerInfo;R.nodeType===1?R.textContent="":R.nodeType===9&&R.documentElement&&R.removeChild(R.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(B){Ve(t,t.return,B)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return Z=uf,uf=!1,Z}function Cl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Eu(t,n,o)}l=l.next}while(l!==r)}}function zi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ku(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function af(e){var t=e.alternate;t!==null&&(e.alternate=null,af(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jt],delete t[pl],delete t[jo],delete t[_d],delete t[Td])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sf(e){return e.tag===5||e.tag===3||e.tag===4}function ff(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sf(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.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=fi));else if(r!==4&&(e=e.child,e!==null))for(xu(e,t,n),e=e.sibling;e!==null;)xu(e,t,n),e=e.sibling}function Cu(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&&(e=e.child,e!==null))for(Cu(e,t,n),e=e.sibling;e!==null;)Cu(e,t,n),e=e.sibling}var lt=null,Qt=!1;function Fn(e,t,n){for(n=n.child;n!==null;)cf(e,t,n),n=n.sibling}function cf(e,t,n){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(At,n)}catch{}switch(n.tag){case 5:ct||jr(n,t);case 6:var r=lt,l=Qt;lt=null,Fn(e,t,n),lt=r,Qt=l,lt!==null&&(Qt?(e=lt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):lt.removeChild(n.stateNode));break;case 18:lt!==null&&(Qt?(e=lt,n=n.stateNode,e.nodeType===8?Uo(e.parentNode,n):e.nodeType===1&&Uo(e,n),nl(e)):Uo(lt,n.stateNode));break;case 4:r=lt,l=Qt,lt=n.stateNode.containerInfo,Qt=!0,Fn(e,t,n),lt=r,Qt=l;break;case 0:case 11:case 14:case 15:if(!ct&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Eu(n,t,s),l=l.next}while(l!==r)}Fn(e,t,n);break;case 1:if(!ct&&(jr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(p){Ve(n,t,p)}Fn(e,t,n);break;case 21:Fn(e,t,n);break;case 22:n.mode&1?(ct=(r=ct)||n.memoizedState!==null,Fn(e,t,n),ct=r):Fn(e,t,n);break;default:Fn(e,t,n)}}function df(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Qd),t.forEach(function(r){var l=tp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Kt(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=s),r&=~o}if(r=l,r=Fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xd(r/1960))-r,10e?16:e,In===null)var r=!1;else{if(e=In,In=null,ji=0,ke&6)throw Error(a(331));var l=ke;for(ke|=4,G=e.current;G!==null;){var o=G,s=o.child;if(G.flags&16){var p=o.deletions;if(p!==null){for(var m=0;mFe()-Lu?ur(e,0):Pu|=n),St(e,t)}function Rf(e,t){t===0&&(e.mode&1?(t=Xl,Xl<<=1,!(Xl&130023424)&&(Xl=4194304)):t=1);var n=pt();e=dn(e,t),e!==null&&(Zr(e,t,n),St(e,n))}function ep(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Rf(e,n)}function tp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}r!==null&&r.delete(t),Rf(e,n)}var Pf;Pf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||yt.current)gt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return gt=!1,Bd(e,t,n);gt=!!(e.flags&131072)}else gt=!1,je&&t.flags&1048576&&ls(t,yi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Di(e,t),e=t.pendingProps;var l=Tr(t,at.current);Or(t,n),l=lu(null,t,r,e,l,n);var o=iu();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,vt(r)?(o=!0,pi(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Zo(t),l.updater=Ti,t.stateNode=l,l._reactInternals=t,cu(t,r,e,n),t=mu(null,t,r,!0,o,n)):(t.tag=0,je&&o&&Ho(t),dt(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Di(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=rp(r),e=Wt(r,e),l){case 0:t=hu(null,t,r,e,n);break e;case 1:t=Zs(null,t,r,e,n);break e;case 11:t=Ks(null,t,r,e,n);break e;case 14:t=Ys(null,t,r,Wt(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Wt(r,l),hu(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Wt(r,l),Zs(e,t,r,l,n);case 3:e:{if(qs(t),e===null)throw Error(a(387));r=t.pendingProps,o=t.memoizedState,l=o.element,ps(e,t),ki(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Ur(Error(a(423)),t),t=bs(e,t,r,n,l);break e}else if(r!==l){l=Ur(Error(a(424)),t),t=bs(e,t,r,n,l);break e}else for(Pt=_n(t.stateNode.containerInfo.firstChild),Rt=t,je=!0,Vt=null,n=cs(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Mr(),r===l){t=hn(e,t,n);break e}dt(e,t,r,n)}t=t.child}return t;case 5:return ys(t),e===null&&Wo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,s=l.children,Oo(r,l)?s=null:o!==null&&Oo(r,o)&&(t.flags|=32),Js(e,t),dt(e,t,s,n),t.child;case 6:return e===null&&Wo(t),null;case 13:return ef(e,t,n);case 4:return qo(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zr(t,null,r,n):dt(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Wt(r,l),Ks(e,t,r,l,n);case 7:return dt(e,t,t.pendingProps,n),t.child;case 8:return dt(e,t,t.pendingProps.children,n),t.child;case 12:return dt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,s=l.value,Oe(wi,r._currentValue),r._currentValue=s,o!==null)if(Bt(o.value,s)){if(o.children===l.children&&!yt.current){t=hn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var p=o.dependencies;if(p!==null){s=o.child;for(var m=p.firstContext;m!==null;){if(m.context===r){if(o.tag===1){m=pn(-1,n&-n),m.tag=2;var P=o.updateQueue;if(P!==null){P=P.shared;var j=P.pending;j===null?m.next=m:(m.next=j.next,j.next=m),P.pending=m}}o.lanes|=n,m=o.alternate,m!==null&&(m.lanes|=n),Go(o.return,n,t),p.lanes|=n;break}m=m.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(a(341));s.lanes|=n,p=s.alternate,p!==null&&(p.lanes|=n),Go(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}dt(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Or(t,n),l=Ft(l),r=r(l),t.flags|=1,dt(e,t,r,n),t.child;case 14:return r=t.type,l=Wt(r,t.pendingProps),l=Wt(r.type,l),Ys(e,t,r,l,n);case 15:return Xs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Wt(r,l),Di(e,t),t.tag=1,vt(r)?(e=!0,pi(t)):e=!1,Or(t,n),$s(t,r,l),cu(t,r,l,n),mu(null,t,r,!0,e,n);case 19:return nf(e,t,n);case 22:return Gs(e,t,n)}throw Error(a(156,t.tag))};function Lf(e,t){return kt(e,t)}function np(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(e,t,n,r){return new np(e,t,n,r)}function Ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rp(e){if(typeof e=="function")return Ou(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rt)return 11;if(e===_e)return 14}return 2}function $n(e,t){var n=e.alternate;return n===null?(n=Ut(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&14680064,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}function Bi(e,t,n,r,l,o){var s=2;if(r=e,typeof e=="function")Ou(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case pe:return sr(n.children,l,o,t);case ie:s=8,l|=8;break;case ge:return e=Ut(12,n,t,l|2),e.elementType=ge,e.lanes=o,e;case We:return e=Ut(13,n,t,l),e.elementType=We,e.lanes=o,e;case ut:return e=Ut(19,n,t,l),e.elementType=ut,e.lanes=o,e;case Ne:return Vi(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ce:s=10;break e;case Ke:s=9;break e;case rt:s=11;break e;case _e:s=14;break e;case Ge:s=16,r=null;break e}throw Error(a(130,e==null?e:typeof e,""))}return t=Ut(s,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function sr(e,t,n,r){return e=Ut(7,e,r,t),e.lanes=n,e}function Vi(e,t,n,r){return e=Ut(22,e,r,t),e.elementType=Ne,e.lanes=n,e.stateNode={isHidden:!1},e}function Iu(e,t,n){return e=Ut(6,e,null,t),e.lanes=n,e}function Uu(e,t,n){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lp(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=so(0),this.expirationTimes=so(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=so(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ju(e,t,n,r,l,o,s,p,m){return e=new lp(e,t,n,p,m),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ut(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zo(o),e}function ip(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(u){console.error(u)}}return i(),Vu.exports=mp(),Vu.exports}var Tl={},$f;function vp(){if($f)return Tl;$f=1,Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.parse=h,Tl.serialize=S;const i=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,u=/^[\u0021-\u003A\u003C-\u007E]*$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,c=/^[\u0020-\u003A\u003D-\u007E]*$/,f=Object.prototype.toString,d=(()=>{const L=function(){};return L.prototype=Object.create(null),L})();function h(L,N){const z=new d,$=L.length;if($<2)return z;const H=(N==null?void 0:N.decode)||D;let M=0;do{const b=L.indexOf("=",M);if(b===-1)break;const J=L.indexOf(";",M),ae=J===-1?$:J;if(b>ae){M=L.lastIndexOf(";",b-1)+1;continue}const C=v(L,M,b),le=g(L,b,C),pe=L.slice(C,le);if(z[pe]===void 0){let ie=v(L,b+1,ae),ge=g(L,ae,ie);const Ce=H(L.slice(ie,ge));z[pe]=Ce}M=ae+1}while(M<$);return z}function v(L,N,z){do{const $=L.charCodeAt(N);if($!==32&&$!==9)return N}while(++Nz;){const $=L.charCodeAt(--N);if($!==32&&$!==9)return N+1}return z}function S(L,N,z){const $=(z==null?void 0:z.encode)||encodeURIComponent;if(!i.test(L))throw new TypeError(`argument name is invalid: ${L}`);const H=$(N);if(!u.test(H))throw new TypeError(`argument val is invalid: ${N}`);let M=L+"="+H;if(!z)return M;if(z.maxAge!==void 0){if(!Number.isInteger(z.maxAge))throw new TypeError(`option maxAge is invalid: ${z.maxAge}`);M+="; Max-Age="+z.maxAge}if(z.domain){if(!a.test(z.domain))throw new TypeError(`option domain is invalid: ${z.domain}`);M+="; Domain="+z.domain}if(z.path){if(!c.test(z.path))throw new TypeError(`option path is invalid: ${z.path}`);M+="; Path="+z.path}if(z.expires){if(!O(z.expires)||!Number.isFinite(z.expires.valueOf()))throw new TypeError(`option expires is invalid: ${z.expires}`);M+="; Expires="+z.expires.toUTCString()}if(z.httpOnly&&(M+="; HttpOnly"),z.secure&&(M+="; Secure"),z.partitioned&&(M+="; Partitioned"),z.priority)switch(typeof z.priority=="string"?z.priority.toLowerCase():void 0){case"low":M+="; Priority=Low";break;case"medium":M+="; Priority=Medium";break;case"high":M+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${z.priority}`)}if(z.sameSite)switch(typeof z.sameSite=="string"?z.sameSite.toLowerCase():z.sameSite){case!0:case"strict":M+="; SameSite=Strict";break;case"lax":M+="; SameSite=Lax";break;case"none":M+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${z.sameSite}`)}return M}function D(L){if(L.indexOf("%")===-1)return L;try{return decodeURIComponent(L)}catch{return L}}function O(L){return f.call(L)==="[object Date]"}return Tl}vp();/** + * react-router v7.1.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */var Af="popstate";function gp(i={}){function u(c,f){let{pathname:d,search:h,hash:v}=c.location;return Fl("",{pathname:d,search:h,hash:v},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function a(c,f){return typeof f=="string"?f:Vn(f)}return Sp(u,a,null,i)}function Se(i,u){if(i===!1||i===null||typeof i>"u")throw new Error(u)}function ot(i,u){if(!i){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function wp(){return Math.random().toString(36).substring(2,10)}function Hf(i,u){return{usr:i.state,key:i.key,idx:u}}function Fl(i,u,a=null,c){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof u=="string"?Wn(u):u,state:a,key:u&&u.key||c||wp()}}function Vn({pathname:i="/",search:u="",hash:a=""}){return u&&u!=="?"&&(i+=u.charAt(0)==="?"?u:"?"+u),a&&a!=="#"&&(i+=a.charAt(0)==="#"?a:"#"+a),i}function Wn(i){let u={};if(i){let a=i.indexOf("#");a>=0&&(u.hash=i.substring(a),i=i.substring(0,a));let c=i.indexOf("?");c>=0&&(u.search=i.substring(c),i=i.substring(0,c)),i&&(u.pathname=i)}return u}function Sp(i,u,a,c={}){let{window:f=document.defaultView,v5Compat:d=!1}=c,h=f.history,v="POP",g=null,S=D();S==null&&(S=0,h.replaceState({...h.state,idx:S},""));function D(){return(h.state||{idx:null}).idx}function O(){v="POP";let H=D(),M=H==null?null:H-S;S=H,g&&g({action:v,location:$.location,delta:M})}function L(H,M){v="PUSH";let b=Fl($.location,H,M);S=D()+1;let J=Hf(b,S),ae=$.createHref(b);try{h.pushState(J,"",ae)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;f.location.assign(ae)}d&&g&&g({action:v,location:$.location,delta:1})}function N(H,M){v="REPLACE";let b=Fl($.location,H,M);S=D();let J=Hf(b,S),ae=$.createHref(b);h.replaceState(J,"",ae),d&&g&&g({action:v,location:$.location,delta:0})}function z(H){let M=f.location.origin!=="null"?f.location.origin:f.location.href,b=typeof H=="string"?H:Vn(H);return b=b.replace(/ $/,"%20"),Se(M,`No window.location.(origin|href) available to create URL for href: ${b}`),new URL(b,M)}let $={get action(){return v},get location(){return i(f,h)},listen(H){if(g)throw new Error("A history only accepts one active listener");return f.addEventListener(Af,O),g=H,()=>{f.removeEventListener(Af,O),g=null}},createHref(H){return u(f,H)},createURL:z,encodeLocation(H){let M=z(H);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:L,replace:N,go(H){return h.go(H)}};return $}var Ep=new Set(["lazy","caseSensitive","path","id","index","children"]);function kp(i){return i.index===!0}function to(i,u,a=[],c={}){return i.map((f,d)=>{let h=[...a,String(d)],v=typeof f.id=="string"?f.id:h.join("-");if(Se(f.index!==!0||!f.children,"Cannot specify children on an index route"),Se(!c[v],`Found a route id collision on id "${v}". Route id's must be globally unique within Data Router usages`),kp(f)){let g={...f,...u(f),id:v};return c[v]=g,g}else{let g={...f,...u(f),id:v,children:void 0};return c[v]=g,f.children&&(g.children=to(f.children,u,h,c)),g}})}function Bn(i,u,a="/"){return qi(i,u,a,!1)}function qi(i,u,a,c){let f=typeof u=="string"?Wn(u):u,d=Gt(f.pathname||"/",a);if(d==null)return null;let h=ac(i);Cp(h);let v=null;for(let g=0;v==null&&g{let g={relativePath:v===void 0?d.path||"":v,caseSensitive:d.caseSensitive===!0,childrenIndex:h,route:d};g.relativePath.startsWith("/")&&(Se(g.relativePath.startsWith(c),`Absolute route path "${g.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(c.length));let S=en([c,g.relativePath]),D=a.concat(g);d.children&&d.children.length>0&&(Se(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),ac(d.children,u,D,S)),!(d.path==null&&!d.index)&&u.push({path:S,score:Dp(S,d.index),routesMeta:D})};return i.forEach((d,h)=>{var v;if(d.path===""||!((v=d.path)!=null&&v.includes("?")))f(d,h);else for(let g of sc(d.path))f(d,h,g)}),u}function sc(i){let u=i.split("/");if(u.length===0)return[];let[a,...c]=u,f=a.endsWith("?"),d=a.replace(/\?$/,"");if(c.length===0)return f?[d,""]:[d];let h=sc(c.join("/")),v=[];return v.push(...h.map(g=>g===""?d:[d,g].join("/"))),f&&v.push(...h),v.map(g=>i.startsWith("/")&&g===""?"/":g)}function Cp(i){i.sort((u,a)=>u.score!==a.score?a.score-u.score:Mp(u.routesMeta.map(c=>c.childrenIndex),a.routesMeta.map(c=>c.childrenIndex)))}var Rp=/^:[\w-]+$/,Pp=3,Lp=2,_p=1,Tp=10,Np=-2,Bf=i=>i==="*";function Dp(i,u){let a=i.split("/"),c=a.length;return a.some(Bf)&&(c+=Np),u&&(c+=Lp),a.filter(f=>!Bf(f)).reduce((f,d)=>f+(Rp.test(d)?Pp:d===""?_p:Tp),c)}function Mp(i,u){return i.length===u.length&&i.slice(0,-1).every((c,f)=>c===u[f])?i[i.length-1]-u[u.length-1]:0}function zp(i,u,a=!1){let{routesMeta:c}=i,f={},d="/",h=[];for(let v=0;v{if(D==="*"){let z=v[L]||"";h=d.slice(0,d.length-z.length).replace(/(.)\/+$/,"$1")}const N=v[L];return O&&!N?S[D]=void 0:S[D]=(N||"").replace(/%2F/g,"/"),S},{}),pathname:d,pathnameBase:h,pattern:i}}function Fp(i,u=!1,a=!0){ot(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let c=[],f="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,v,g)=>(c.push({paramName:v,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)"));return i.endsWith("*")?(c.push({paramName:"*"}),f+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?f+="\\/*$":i!==""&&i!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,u?void 0:"i"),c]}function Op(i){try{return i.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return ot(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),i}}function Gt(i,u){if(u==="/")return i;if(!i.toLowerCase().startsWith(u.toLowerCase()))return null;let a=u.endsWith("/")?u.length-1:u.length,c=i.charAt(a);return c&&c!=="/"?null:i.slice(a)||"/"}function Ip(i,u="/"){let{pathname:a,search:c="",hash:f=""}=typeof i=="string"?Wn(i):i;return{pathname:a?a.startsWith("/")?a:Up(a,u):u,search:$p(c),hash:Ap(f)}}function Up(i,u){let a=u.replace(/\/+$/,"").split("/");return i.split("/").forEach(f=>{f===".."?a.length>1&&a.pop():f!=="."&&a.push(f)}),a.length>1?a.join("/"):"/"}function Ku(i,u,a,c){return`Cannot include a '${i}' character in a manually specified \`to.${u}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function fc(i){return i.filter((u,a)=>a===0||u.route.path&&u.route.path.length>0)}function bu(i){let u=fc(i);return u.map((a,c)=>c===u.length-1?a.pathname:a.pathnameBase)}function ea(i,u,a,c=!1){let f;typeof i=="string"?f=Wn(i):(f={...i},Se(!f.pathname||!f.pathname.includes("?"),Ku("?","pathname","search",f)),Se(!f.pathname||!f.pathname.includes("#"),Ku("#","pathname","hash",f)),Se(!f.search||!f.search.includes("#"),Ku("#","search","hash",f)));let d=i===""||f.pathname==="",h=d?"/":f.pathname,v;if(h==null)v=a;else{let O=u.length-1;if(!c&&h.startsWith("..")){let L=h.split("/");for(;L[0]==="..";)L.shift(),O-=1;f.pathname=L.join("/")}v=O>=0?u[O]:"/"}let g=Ip(f,v),S=h&&h!=="/"&&h.endsWith("/"),D=(d||h===".")&&a.endsWith("/");return!g.pathname.endsWith("/")&&(S||D)&&(g.pathname+="/"),g}var en=i=>i.join("/").replace(/\/\/+/g,"/"),jp=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),$p=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Ap=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,ro=class{constructor(i,u,a,c=!1){this.status=i,this.statusText=u||"",this.internal=c,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function lo(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}var cc=["POST","PUT","PATCH","DELETE"],Hp=new Set(cc),Bp=["GET",...cc],Vp=new Set(Bp),Wp=new Set([301,302,303,307,308]),Qp=new Set([307,308]),Yu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Kp={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Nl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ta=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yp=i=>({hasErrorBoundary:!!i.hasErrorBoundary}),dc="remix-router-transitions",pc=Symbol("ResetLoaderData");function Xp(i){const u=i.window?i.window:typeof window<"u"?window:void 0,a=typeof u<"u"&&typeof u.document<"u"&&typeof u.document.createElement<"u";Se(i.routes.length>0,"You must provide a non-empty routes array to createRouter");let c=i.mapRouteProperties||Yp,f={},d=to(i.routes,c,void 0,f),h,v=i.basename||"/",g=i.dataStrategy||bp,S=i.patchRoutesOnNavigation,D={...i.future},O=null,L=new Set,N=null,z=null,$=null,H=i.hydrationData!=null,M=Bn(d,i.history.location,v),b=null;if(M==null&&!S){let y=jt(404,{pathname:i.history.location.pathname}),{matches:k,route:_}=bf(d);M=k,b={[_.id]:y}}M&&!i.hydrationData&&Xn(M,d,i.history.location.pathname).active&&(M=null);let J;if(M)if(M.some(y=>y.route.lazy))J=!1;else if(!M.some(y=>y.route.loader))J=!0;else{let y=i.hydrationData?i.hydrationData.loaderData:null,k=i.hydrationData?i.hydrationData.errors:null;if(k){let _=M.findIndex(U=>k[U.route.id]!==void 0);J=M.slice(0,_+1).every(U=>!Zu(U.route,y,k))}else J=M.every(_=>!Zu(_.route,y,k))}else{J=!1,M=[];let y=Xn(null,d,i.history.location.pathname);y.active&&y.matches&&(M=y.matches)}let ae,C={historyAction:i.history.action,location:i.history.location,matches:M,initialized:J,navigation:Yu,restoreScrollPosition:i.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:i.hydrationData&&i.hydrationData.loaderData||{},actionData:i.hydrationData&&i.hydrationData.actionData||null,errors:i.hydrationData&&i.hydrationData.errors||b,fetchers:new Map,blockers:new Map},le="POP",pe=!1,ie,ge=!1,Ce=new Map,Ke=null,rt=!1,We=!1,ut=new Set,_e=new Map,Ge=0,Ne=-1,V=new Map,re=new Set,Q=new Map,E=new Map,F=new Set,se=new Map,he,me=null;function Ee(){if(O=i.history.listen(({action:y,location:k,delta:_})=>{if(he){he(),he=void 0;return}ot(se.size===0||_!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let U=yr({currentLocation:C.location,nextLocation:k,historyAction:y});if(U&&_!=null){let K=new Promise(te=>{he=te});i.history.go(_*-1),gn(U,{state:"blocked",location:k,proceed(){gn(U,{state:"proceeding",proceed:void 0,reset:void 0,location:k}),K.then(()=>i.history.go(_))},reset(){let te=new Map(C.blockers);te.set(U,Nl),ye({blockers:te})}});return}return Tt(y,k)}),a){fh(u,Ce);let y=()=>ch(u,Ce);u.addEventListener("pagehide",y),Ke=()=>u.removeEventListener("pagehide",y)}return C.initialized||Tt("POP",C.location,{initialHydration:!0}),ae}function De(){O&&O(),Ke&&Ke(),L.clear(),ie&&ie.abort(),C.fetchers.forEach((y,k)=>yn(k)),C.blockers.forEach((y,k)=>Wl(k))}function Re(y){return L.add(y),()=>L.delete(y)}function ye(y,k={}){C={...C,...y};let _=[],U=[];C.fetchers.forEach((K,te)=>{K.state==="idle"&&(F.has(te)?_.push(te):U.push(te))}),F.forEach(K=>{!C.fetchers.has(K)&&!_e.has(K)&&_.push(K)}),[...L].forEach(K=>K(C,{deletedFetchers:_,viewTransitionOpts:k.viewTransitionOpts,flushSync:k.flushSync===!0})),_.forEach(K=>yn(K)),U.forEach(K=>C.fetchers.delete(K))}function Ye(y,k,{flushSync:_}={}){var W,ce;let U=C.actionData!=null&&C.navigation.formMethod!=null&&Xt(C.navigation.formMethod)&&C.navigation.state==="loading"&&((W=y.state)==null?void 0:W._isRedirect)!==!0,K;k.actionData?Object.keys(k.actionData).length>0?K=k.actionData:K=null:U?K=C.actionData:K=null;let te=k.loaderData?Zf(C.loaderData,k.loaderData,k.matches||[],k.errors):C.loaderData,fe=C.blockers;fe.size>0&&(fe=new Map(fe),fe.forEach((ve,ze)=>fe.set(ze,Nl)));let X=pe===!0||C.navigation.formMethod!=null&&Xt(C.navigation.formMethod)&&((ce=y.state)==null?void 0:ce._isRedirect)!==!0;h&&(d=h,h=void 0),rt||le==="POP"||(le==="PUSH"?i.history.push(y,y.state):le==="REPLACE"&&i.history.replace(y,y.state));let q;if(le==="POP"){let ve=Ce.get(C.location.pathname);ve&&ve.has(y.pathname)?q={currentLocation:C.location,nextLocation:y}:Ce.has(y.pathname)&&(q={currentLocation:y,nextLocation:C.location})}else if(ge){let ve=Ce.get(C.location.pathname);ve?ve.add(y.pathname):(ve=new Set([y.pathname]),Ce.set(C.location.pathname,ve)),q={currentLocation:C.location,nextLocation:y}}ye({...k,actionData:K,loaderData:te,historyAction:le,location:y,initialized:!0,navigation:Yu,revalidation:"idle",restoreScrollPosition:ln(y,k.matches||C.matches),preventScrollReset:X,blockers:fe},{viewTransitionOpts:q,flushSync:_===!0}),le="POP",pe=!1,ge=!1,rt=!1,We=!1,me==null||me.resolve(),me=null}async function Qn(y,k){if(typeof y=="number"){i.history.go(y);return}let _=Ju(C.location,C.matches,v,y,k==null?void 0:k.fromRouteId,k==null?void 0:k.relative),{path:U,submission:K,error:te}=Vf(!1,_,k),fe=C.location,X=Fl(C.location,U,k&&k.state);X={...X,...i.history.encodeLocation(X)};let q=k&&k.replace!=null?k.replace:void 0,W="PUSH";q===!0?W="REPLACE":q===!1||K!=null&&Xt(K.formMethod)&&K.formAction===C.location.pathname+C.location.search&&(W="REPLACE");let ce=k&&"preventScrollReset"in k?k.preventScrollReset===!0:void 0,ve=(k&&k.flushSync)===!0,ze=yr({currentLocation:fe,nextLocation:X,historyAction:W});if(ze){gn(ze,{state:"blocked",location:X,proceed(){gn(ze,{state:"proceeding",proceed:void 0,reset:void 0,location:X}),Qn(y,k)},reset(){let Je=new Map(C.blockers);Je.set(ze,Nl),ye({blockers:Je})}});return}await Tt(W,X,{submission:K,pendingError:te,preventScrollReset:ce,replace:k&&k.replace,enableViewTransition:k&&k.viewTransition,flushSync:ve})}function jl(){me||(me=dh()),hr(),ye({revalidation:"loading"});let y=me.promise;return C.navigation.state==="submitting"?y:C.navigation.state==="idle"?(Tt(C.historyAction,C.location,{startUninterruptedRevalidation:!0}),y):(Tt(le||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:ge===!0}),y)}async function Tt(y,k,_){ie&&ie.abort(),ie=null,le=y,rt=(_&&_.startUninterruptedRevalidation)===!0,wn(C.location,C.matches),pe=(_&&_.preventScrollReset)===!0,ge=(_&&_.enableViewTransition)===!0;let U=h||d,K=_&&_.overrideNavigation,te=Bn(U,k,v),fe=(_&&_.flushSync)===!0,X=Xn(te,U,k.pathname);if(X.active&&X.matches&&(te=X.matches),!te){let{error:Pe,notFoundMatches:Me,route:Be}=Yn(k.pathname);Ye(k,{matches:Me,loaderData:{},errors:{[Be.id]:Pe}},{flushSync:fe});return}if(C.initialized&&!We&&ih(C.location,k)&&!(_&&_.submission&&Xt(_.submission.formMethod))){Ye(k,{matches:te},{flushSync:fe});return}ie=new AbortController;let q=Br(i.history,k,ie.signal,_&&_.submission),W;if(_&&_.pendingError)W=[fr(te).route.id,{type:"error",error:_.pendingError}];else if(_&&_.submission&&Xt(_.submission.formMethod)){let Pe=await Vr(q,k,_.submission,te,X.active,{replace:_.replace,flushSync:fe});if(Pe.shortCircuited)return;if(Pe.pendingActionResult){let[Me,Be]=Pe.pendingActionResult;if(_t(Be)&&lo(Be.error)&&Be.error.status===404){ie=null,Ye(k,{matches:Pe.matches,loaderData:{},errors:{[Me]:Be.error}});return}}te=Pe.matches||te,W=Pe.pendingActionResult,K=Xu(k,_.submission),fe=!1,X.active=!1,q=Br(i.history,q.url,q.signal)}let{shortCircuited:ce,matches:ve,loaderData:ze,errors:Je}=await $l(q,k,te,X.active,K,_&&_.submission,_&&_.fetcherSubmission,_&&_.replace,_&&_.initialHydration===!0,fe,W);ce||(ie=null,Ye(k,{matches:ve||te,...qf(W),loaderData:ze,errors:Je}))}async function Vr(y,k,_,U,K,te={}){hr();let fe=ah(k,_);if(ye({navigation:fe},{flushSync:te.flushSync===!0}),K){let W=await Gn(U,k.pathname,y.signal);if(W.type==="aborted")return{shortCircuited:!0};if(W.type==="error"){let ce=fr(W.partialMatches).route.id;return{matches:W.partialMatches,pendingActionResult:[ce,{type:"error",error:W.error}]}}else if(W.matches)U=W.matches;else{let{notFoundMatches:ce,error:ve,route:ze}=Yn(k.pathname);return{matches:ce,pendingActionResult:[ze.id,{type:"error",error:ve}]}}}let X,q=zl(U,k);if(!q.route.action&&!q.route.lazy)X={type:"error",error:jt(405,{method:y.method,pathname:k.pathname,routeId:q.route.id})};else if(X=(await rn("action",C,y,[q],U,null))[q.route.id],y.signal.aborted)return{shortCircuited:!0};if(cr(X)){let W;return te&&te.replace!=null?W=te.replace:W=Xf(X.response.headers.get("Location"),new URL(y.url),v)===C.location.pathname+C.location.search,await ht(y,X,!0,{submission:_,replace:W}),{shortCircuited:!0}}if(_t(X)){let W=fr(U,q.route.id);return(te&&te.replace)!==!0&&(le="PUSH"),{matches:U,pendingActionResult:[W.route.id,X]}}return{matches:U,pendingActionResult:[q.route.id,X]}}async function $l(y,k,_,U,K,te,fe,X,q,W,ce){let ve=K||Xu(k,te),ze=te||fe||tc(ve),Je=!rt&&!q;if(U){if(Je){let Ze=Wr(ce);ye({navigation:ve,...Ze!==void 0?{actionData:Ze}:{}},{flushSync:W})}let Le=await Gn(_,k.pathname,y.signal);if(Le.type==="aborted")return{shortCircuited:!0};if(Le.type==="error"){let Ze=fr(Le.partialMatches).route.id;return{matches:Le.partialMatches,loaderData:{},errors:{[Ze]:Le.error}}}else if(Le.matches)_=Le.matches;else{let{error:Ze,notFoundMatches:un,route:Zn}=Yn(k.pathname);return{matches:un,loaderData:{},errors:{[Zn.id]:Ze}}}}let Pe=h||d,[Me,Be]=Qf(i.history,C,_,ze,k,q===!0,We,ut,F,Q,re,Pe,v,ce);if(Ne=++Ge,Me.length===0&&Be.length===0){let Le=Bl();return Ye(k,{matches:_,loaderData:{},errors:ce&&_t(ce[1])?{[ce[0]]:ce[1].error}:null,...qf(ce),...Le?{fetchers:new Map(C.fetchers)}:{}},{flushSync:W}),{shortCircuited:!0}}if(Je){let Le={};if(!U){Le.navigation=ve;let Ze=Wr(ce);Ze!==void 0&&(Le.actionData=Ze)}Be.length>0&&(Le.fetchers=Qr(Be)),ye(Le,{flushSync:W})}Be.forEach(Le=>{mt(Le.key),Le.controller&&_e.set(Le.key,Le.controller)});let Sn=()=>Be.forEach(Le=>mt(Le.key));ie&&ie.signal.addEventListener("abort",Sn);let{loaderResults:En,fetcherResults:Dt}=await Yr(C,_,Me,Be,y);if(y.signal.aborted)return{shortCircuited:!0};ie&&ie.signal.removeEventListener("abort",Sn),Be.forEach(Le=>_e.delete(Le.key));let kt=Ji(En);if(kt)return await ht(y,kt.result,!0,{replace:X}),{shortCircuited:!0};if(kt=Ji(Dt),kt)return re.add(kt.key),await ht(y,kt.result,!0,{replace:X}),{shortCircuited:!0};let{loaderData:gr,errors:Jn}=Jf(C,_,En,ce,Be,Dt);q&&C.errors&&(Jn={...C.errors,...Jn});let on=Bl(),Fe=Xr(Ne),wr=on||Fe||Be.length>0;return{matches:_,loaderData:gr,errors:Jn,...wr?{fetchers:new Map(C.fetchers)}:{}}}function Wr(y){if(y&&!_t(y[1]))return{[y[0]]:y[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function Qr(y){return y.forEach(k=>{let _=C.fetchers.get(k.key),U=Dl(void 0,_?_.data:void 0);C.fetchers.set(k.key,U)}),new Map(C.fetchers)}async function Al(y,k,_,U){mt(y);let K=(U&&U.flushSync)===!0,te=h||d,fe=Ju(C.location,C.matches,v,_,k,U==null?void 0:U.relative),X=Bn(te,fe,v),q=Xn(X,te,fe);if(q.active&&q.matches&&(X=q.matches),!X){Nt(y,k,jt(404,{pathname:fe}),{flushSync:K});return}let{path:W,submission:ce,error:ve}=Vf(!0,fe,U);if(ve){Nt(y,k,ve,{flushSync:K});return}let ze=zl(X,W),Je=(U&&U.preventScrollReset)===!0;if(ce&&Xt(ce.formMethod)){await Kr(y,k,W,ze,X,q.active,K,Je,ce);return}Q.set(y,{routeId:k,path:W}),await Kn(y,k,W,ze,X,q.active,K,Je,ce)}async function Kr(y,k,_,U,K,te,fe,X,q){hr(),Q.delete(y);function W($e){if(!$e.route.action&&!$e.route.lazy){let At=jt(405,{method:q.formMethod,pathname:_,routeId:k});return Nt(y,k,At,{flushSync:fe}),!0}return!1}if(!te&&W(U))return;let ce=C.fetchers.get(y);$t(y,sh(q,ce),{flushSync:fe});let ve=new AbortController,ze=Br(i.history,_,ve.signal,q);if(te){let $e=await Gn(K,_,ze.signal);if($e.type==="aborted")return;if($e.type==="error"){Nt(y,k,$e.error,{flushSync:fe});return}else if($e.matches){if(K=$e.matches,U=zl(K,_),W(U))return}else{Nt(y,k,jt(404,{pathname:_}),{flushSync:fe});return}}_e.set(y,ve);let Je=Ge,Me=(await rn("action",C,ze,[U],K,y))[U.route.id];if(ze.signal.aborted){_e.get(y)===ve&&_e.delete(y);return}if(F.has(y)){if(cr(Me)||_t(Me)){$t(y,Hn(void 0));return}}else{if(cr(Me))if(_e.delete(y),Ne>Je){$t(y,Hn(void 0));return}else return re.add(y),$t(y,Dl(q)),ht(ze,Me,!1,{fetcherSubmission:q,preventScrollReset:X});if(_t(Me)){Nt(y,k,Me.error);return}}let Be=C.navigation.location||C.location,Sn=Br(i.history,Be,ve.signal),En=h||d,Dt=C.navigation.state!=="idle"?Bn(En,C.navigation.location,v):C.matches;Se(Dt,"Didn't find any matches after fetcher action");let kt=++Ge;V.set(y,kt);let gr=Dl(q,Me.data);C.fetchers.set(y,gr);let[Jn,on]=Qf(i.history,C,Dt,q,Be,!1,We,ut,F,Q,re,En,v,[U.route.id,Me]);on.filter($e=>$e.key!==y).forEach($e=>{let At=$e.key,xt=C.fetchers.get(At),uo=Dl(void 0,xt?xt.data:void 0);C.fetchers.set(At,uo),mt(At),$e.controller&&_e.set(At,$e.controller)}),ye({fetchers:new Map(C.fetchers)});let Fe=()=>on.forEach($e=>mt($e.key));ve.signal.addEventListener("abort",Fe);let{loaderResults:wr,fetcherResults:Le}=await Yr(C,Dt,Jn,on,Sn);if(ve.signal.aborted)return;ve.signal.removeEventListener("abort",Fe),V.delete(y),_e.delete(y),on.forEach($e=>_e.delete($e.key));let Ze=Ji(wr);if(Ze)return ht(Sn,Ze.result,!1,{preventScrollReset:X});if(Ze=Ji(Le),Ze)return re.add(Ze.key),ht(Sn,Ze.result,!1,{preventScrollReset:X});let{loaderData:un,errors:Zn}=Jf(C,Dt,wr,void 0,on,Le);if(C.fetchers.has(y)){let $e=Hn(Me.data);C.fetchers.set(y,$e)}Xr(kt),C.navigation.state==="loading"&&kt>Ne?(Se(le,"Expected pending action"),ie&&ie.abort(),Ye(C.navigation.location,{matches:Dt,loaderData:un,errors:Zn,fetchers:new Map(C.fetchers)})):(ye({errors:Zn,loaderData:Zf(C.loaderData,un,Dt,Zn),fetchers:new Map(C.fetchers)}),We=!1)}async function Kn(y,k,_,U,K,te,fe,X,q){let W=C.fetchers.get(y);$t(y,Dl(q,W?W.data:void 0),{flushSync:fe});let ce=new AbortController,ve=Br(i.history,_,ce.signal);if(te){let Me=await Gn(K,_,ve.signal);if(Me.type==="aborted")return;if(Me.type==="error"){Nt(y,k,Me.error,{flushSync:fe});return}else if(Me.matches)K=Me.matches,U=zl(K,_);else{Nt(y,k,jt(404,{pathname:_}),{flushSync:fe});return}}_e.set(y,ce);let ze=Ge,Pe=(await rn("loader",C,ve,[U],K,y))[U.route.id];if(_e.get(y)===ce&&_e.delete(y),!ve.signal.aborted){if(F.has(y)){$t(y,Hn(void 0));return}if(cr(Pe))if(Ne>ze){$t(y,Hn(void 0));return}else{re.add(y),await ht(ve,Pe,!1,{preventScrollReset:X});return}if(_t(Pe)){Nt(y,k,Pe.error);return}$t(y,Hn(Pe.data))}}async function ht(y,k,_,{submission:U,fetcherSubmission:K,preventScrollReset:te,replace:fe}={}){k.response.headers.has("X-Remix-Revalidate")&&(We=!0);let X=k.response.headers.get("Location");Se(X,"Expected a Location header on the redirect Response"),X=Xf(X,new URL(y.url),v);let q=Fl(C.location,X,{_isRedirect:!0});if(a){let Pe=!1;if(k.response.headers.has("X-Remix-Reload-Document"))Pe=!0;else if(ta.test(X)){const Me=i.history.createURL(X);Pe=Me.origin!==u.location.origin||Gt(Me.pathname,v)==null}if(Pe){fe?u.location.replace(X):u.location.assign(X);return}}ie=null;let W=fe===!0||k.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:ce,formAction:ve,formEncType:ze}=C.navigation;!U&&!K&&ce&&ve&&ze&&(U=tc(C.navigation));let Je=U||K;if(Qp.has(k.response.status)&&Je&&Xt(Je.formMethod))await Tt(W,q,{submission:{...Je,formAction:X},preventScrollReset:te||pe,enableViewTransition:_?ge:void 0});else{let Pe=Xu(q,U);await Tt(W,q,{overrideNavigation:Pe,fetcherSubmission:K,preventScrollReset:te||pe,enableViewTransition:_?ge:void 0})}}async function rn(y,k,_,U,K,te){let fe,X={};try{fe=await eh(g,y,k,_,U,K,te,f,c)}catch(q){return U.forEach(W=>{X[W.route.id]={type:"error",error:q}}),X}for(let[q,W]of Object.entries(fe))if(oh(W)){let ce=W.result;X[q]={type:"redirect",response:rh(ce,_,q,K,v)}}else X[q]=await nh(W);return X}async function Yr(y,k,_,U,K){let te=rn("loader",y,K,_,k,null),fe=Promise.all(U.map(async W=>{if(W.matches&&W.match&&W.controller){let ve=(await rn("loader",y,Br(i.history,W.path,W.controller.signal),[W.match],W.matches,W.key))[W.match.route.id];return{[W.key]:ve}}else return Promise.resolve({[W.key]:{type:"error",error:jt(404,{pathname:W.path})}})})),X=await te,q=(await fe).reduce((W,ce)=>Object.assign(W,ce),{});return{loaderResults:X,fetcherResults:q}}function hr(){We=!0,Q.forEach((y,k)=>{_e.has(k)&&ut.add(k),mt(k)})}function $t(y,k,_={}){C.fetchers.set(y,k),ye({fetchers:new Map(C.fetchers)},{flushSync:(_&&_.flushSync)===!0})}function Nt(y,k,_,U={}){let K=fr(C.matches,k);yn(y),ye({errors:{[K.route.id]:_},fetchers:new Map(C.fetchers)},{flushSync:(U&&U.flushSync)===!0})}function mr(y){return E.set(y,(E.get(y)||0)+1),F.has(y)&&F.delete(y),C.fetchers.get(y)||Kp}function yn(y){let k=C.fetchers.get(y);_e.has(y)&&!(k&&k.state==="loading"&&V.has(y))&&mt(y),Q.delete(y),V.delete(y),re.delete(y),F.delete(y),ut.delete(y),C.fetchers.delete(y)}function Hl(y){let k=(E.get(y)||0)-1;k<=0?(E.delete(y),F.add(y)):E.set(y,k),ye({fetchers:new Map(C.fetchers)})}function mt(y){let k=_e.get(y);k&&(k.abort(),_e.delete(y))}function vn(y){for(let k of y){let _=mr(k),U=Hn(_.data);C.fetchers.set(k,U)}}function Bl(){let y=[],k=!1;for(let _ of re){let U=C.fetchers.get(_);Se(U,`Expected fetcher: ${_}`),U.state==="loading"&&(re.delete(_),y.push(_),k=!0)}return vn(y),k}function Xr(y){let k=[];for(let[_,U]of V)if(U0}function Vl(y,k){let _=C.blockers.get(y)||Nl;return se.get(y)!==k&&se.set(y,k),_}function Wl(y){C.blockers.delete(y),se.delete(y)}function gn(y,k){let _=C.blockers.get(y)||Nl;Se(_.state==="unblocked"&&k.state==="blocked"||_.state==="blocked"&&k.state==="blocked"||_.state==="blocked"&&k.state==="proceeding"||_.state==="blocked"&&k.state==="unblocked"||_.state==="proceeding"&&k.state==="unblocked",`Invalid blocker state transition: ${_.state} -> ${k.state}`);let U=new Map(C.blockers);U.set(y,k),ye({blockers:U})}function yr({currentLocation:y,nextLocation:k,historyAction:_}){if(se.size===0)return;se.size>1&&ot(!1,"A router only supports one blocker at a time");let U=Array.from(se.entries()),[K,te]=U[U.length-1],fe=C.blockers.get(K);if(!(fe&&fe.state==="proceeding")&&te({currentLocation:y,nextLocation:k,historyAction:_}))return K}function Yn(y){let k=jt(404,{pathname:y}),_=h||d,{matches:U,route:K}=bf(_);return{notFoundMatches:U,route:K,error:k}}function Gr(y,k,_){if(N=y,$=k,z=_||null,!H&&C.navigation===Yu){H=!0;let U=ln(C.location,C.matches);U!=null&&ye({restoreScrollPosition:U})}return()=>{N=null,$=null,z=null}}function vr(y,k){return z&&z(y,k.map(U=>xp(U,C.loaderData)))||y.key}function wn(y,k){if(N&&$){let _=vr(y,k);N[_]=$()}}function ln(y,k){if(N){let _=vr(y,k),U=N[_];if(typeof U=="number")return U}return null}function Xn(y,k,_){if(S)if(y){if(Object.keys(y[0].params).length>0)return{active:!0,matches:qi(k,_,v,!0)}}else return{active:!0,matches:qi(k,_,v,!0)||[]};return{active:!1,matches:null}}async function Gn(y,k,_){if(!S)return{type:"success",matches:y};let U=y;for(;;){let K=h==null,te=h||d,fe=f;try{await S({path:k,matches:U,patch:(W,ce)=>{_.aborted||Yf(W,ce,te,fe,c)}})}catch(W){return{type:"error",error:W,partialMatches:U}}finally{K&&!_.aborted&&(d=[...d])}if(_.aborted)return{type:"aborted"};let X=Bn(te,k,v);if(X)return{type:"success",matches:X};let q=qi(te,k,v,!0);if(!q||U.length===q.length&&U.every((W,ce)=>W.route.id===q[ce].route.id))return{type:"success",matches:null};U=q}}function Ql(y){f={},h=to(y,c,void 0,f)}function Kl(y,k){let _=h==null;Yf(y,k,h||d,f,c),_&&(d=[...d],ye({}))}return ae={get basename(){return v},get future(){return D},get state(){return C},get routes(){return d},get window(){return u},initialize:Ee,subscribe:Re,enableScrollRestoration:Gr,navigate:Qn,fetch:Al,revalidate:jl,createHref:y=>i.history.createHref(y),encodeLocation:y=>i.history.encodeLocation(y),getFetcher:mr,deleteFetcher:Hl,dispose:De,getBlocker:Vl,deleteBlocker:Wl,patchRoutes:Kl,_internalFetchControllers:_e,_internalSetRoutes:Ql},ae}function Gp(i){return i!=null&&("formData"in i&&i.formData!=null||"body"in i&&i.body!==void 0)}function Ju(i,u,a,c,f,d){let h,v;if(f){h=[];for(let S of u)if(h.push(S),S.route.id===f){v=S;break}}else h=u,v=u[u.length-1];let g=ea(c||".",bu(h),Gt(i.pathname,a)||i.pathname,d==="path");if(c==null&&(g.search=i.search,g.hash=i.hash),(c==null||c===""||c===".")&&v){let S=na(g.search);if(v.route.index&&!S)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!v.route.index&&S){let D=new URLSearchParams(g.search),O=D.getAll("index");D.delete("index"),O.filter(N=>N).forEach(N=>D.append("index",N));let L=D.toString();g.search=L?`?${L}`:""}}return a!=="/"&&(g.pathname=g.pathname==="/"?a:en([a,g.pathname])),Vn(g)}function Vf(i,u,a){if(!a||!Gp(a))return{path:u};if(a.formMethod&&!uh(a.formMethod))return{path:u,error:jt(405,{method:a.formMethod})};let c=()=>({path:u,error:jt(400,{type:"invalid-body"})}),d=(a.formMethod||"get").toUpperCase(),h=mc(u);if(a.body!==void 0){if(a.formEncType==="text/plain"){if(!Xt(d))return c();let O=typeof a.body=="string"?a.body:a.body instanceof FormData||a.body instanceof URLSearchParams?Array.from(a.body.entries()).reduce((L,[N,z])=>`${L}${N}=${z} +`,""):String(a.body);return{path:u,submission:{formMethod:d,formAction:h,formEncType:a.formEncType,formData:void 0,json:void 0,text:O}}}else if(a.formEncType==="application/json"){if(!Xt(d))return c();try{let O=typeof a.body=="string"?JSON.parse(a.body):a.body;return{path:u,submission:{formMethod:d,formAction:h,formEncType:a.formEncType,formData:void 0,json:O,text:void 0}}}catch{return c()}}}Se(typeof FormData=="function","FormData is not available in this environment");let v,g;if(a.formData)v=qu(a.formData),g=a.formData;else if(a.body instanceof FormData)v=qu(a.body),g=a.body;else if(a.body instanceof URLSearchParams)v=a.body,g=Gf(v);else if(a.body==null)v=new URLSearchParams,g=new FormData;else try{v=new URLSearchParams(a.body),g=Gf(v)}catch{return c()}let S={formMethod:d,formAction:h,formEncType:a&&a.formEncType||"application/x-www-form-urlencoded",formData:g,json:void 0,text:void 0};if(Xt(S.formMethod))return{path:u,submission:S};let D=Wn(u);return i&&D.search&&na(D.search)&&v.append("index",""),D.search=`?${v}`,{path:Vn(D),submission:S}}function Wf(i,u,a=!1){let c=i.findIndex(f=>f.route.id===u);return c>=0?i.slice(0,a?c+1:c):i}function Qf(i,u,a,c,f,d,h,v,g,S,D,O,L,N){let z=N?_t(N[1])?N[1].error:N[1].data:void 0,$=i.createURL(u.location),H=i.createURL(f),M=a;d&&u.errors?M=Wf(a,Object.keys(u.errors)[0],!0):N&&_t(N[1])&&(M=Wf(a,N[0]));let b=N?N[1].statusCode:void 0,J=b&&b>=400,ae=M.filter((le,pe)=>{let{route:ie}=le;if(ie.lazy)return!0;if(ie.loader==null)return!1;if(d)return Zu(ie,u.loaderData,u.errors);if(Jp(u.loaderData,u.matches[pe],le))return!0;let ge=u.matches[pe],Ce=le;return Kf(le,{currentUrl:$,currentParams:ge.params,nextUrl:H,nextParams:Ce.params,...c,actionResult:z,actionStatus:b,defaultShouldRevalidate:J?!1:h||$.pathname+$.search===H.pathname+H.search||$.search!==H.search||Zp(ge,Ce)})}),C=[];return S.forEach((le,pe)=>{if(d||!a.some(rt=>rt.route.id===le.routeId)||g.has(pe))return;let ie=Bn(O,le.path,L);if(!ie){C.push({key:pe,routeId:le.routeId,path:le.path,matches:null,match:null,controller:null});return}let ge=u.fetchers.get(pe),Ce=zl(ie,le.path),Ke=!1;D.has(pe)?Ke=!1:v.has(pe)?(v.delete(pe),Ke=!0):ge&&ge.state!=="idle"&&ge.data===void 0?Ke=h:Ke=Kf(Ce,{currentUrl:$,currentParams:u.matches[u.matches.length-1].params,nextUrl:H,nextParams:a[a.length-1].params,...c,actionResult:z,actionStatus:b,defaultShouldRevalidate:J?!1:h}),Ke&&C.push({key:pe,routeId:le.routeId,path:le.path,matches:ie,match:Ce,controller:new AbortController})}),[ae,C]}function Zu(i,u,a){if(i.lazy)return!0;if(!i.loader)return!1;let c=u!=null&&u[i.id]!==void 0,f=a!=null&&a[i.id]!==void 0;return!c&&f?!1:typeof i.loader=="function"&&i.loader.hydrate===!0?!0:!c&&!f}function Jp(i,u,a){let c=!u||a.route.id!==u.route.id,f=!i.hasOwnProperty(a.route.id);return c||f}function Zp(i,u){let a=i.route.path;return i.pathname!==u.pathname||a!=null&&a.endsWith("*")&&i.params["*"]!==u.params["*"]}function Kf(i,u){if(i.route.shouldRevalidate){let a=i.route.shouldRevalidate(u);if(typeof a=="boolean")return a}return u.defaultShouldRevalidate}function Yf(i,u,a,c,f){let d;if(i){let g=c[i];Se(g,`No route found to patch children into: routeId = ${i}`),g.children||(g.children=[]),d=g.children}else d=a;let h=u.filter(g=>!d.some(S=>hc(g,S))),v=to(h,f,[i||"_","patch",String((d==null?void 0:d.length)||"0")],c);d.push(...v)}function hc(i,u){return"id"in i&&"id"in u&&i.id===u.id?!0:i.index===u.index&&i.path===u.path&&i.caseSensitive===u.caseSensitive?(!i.children||i.children.length===0)&&(!u.children||u.children.length===0)?!0:i.children.every((a,c)=>{var f;return(f=u.children)==null?void 0:f.some(d=>hc(a,d))}):!1}async function qp(i,u,a){if(!i.lazy)return;let c=await i.lazy();if(!i.lazy)return;let f=a[i.id];Se(f,"No route found in manifest");let d={};for(let h in c){let g=f[h]!==void 0&&h!=="hasErrorBoundary";ot(!g,`Route "${f.id}" has a static property "${h}" defined but its lazy function is also returning a value for this property. The lazy route property "${h}" will be ignored.`),!g&&!Ep.has(h)&&(d[h]=c[h])}Object.assign(f,d),Object.assign(f,{...u(f),lazy:void 0})}async function bp({matches:i}){let u=i.filter(c=>c.shouldLoad);return(await Promise.all(u.map(c=>c.resolve()))).reduce((c,f,d)=>Object.assign(c,{[u[d].route.id]:f}),{})}async function eh(i,u,a,c,f,d,h,v,g,S){let D=d.map(N=>N.route.lazy?qp(N.route,g,v):void 0),O=d.map((N,z)=>{let $=D[z],H=f.some(b=>b.route.id===N.route.id);return{...N,shouldLoad:H,resolve:async b=>(b&&c.method==="GET"&&(N.route.lazy||N.route.loader)&&(H=!0),H?th(u,c,N,$,b,S):Promise.resolve({type:"data",result:void 0}))}}),L=await i({matches:O,request:c,params:d[0].params,fetcherKey:h,context:S});try{await Promise.all(D)}catch{}return L}async function th(i,u,a,c,f,d){let h,v,g=S=>{let D,O=new Promise((z,$)=>D=$);v=()=>D(),u.signal.addEventListener("abort",v);let L=z=>typeof S!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${i}" [routeId: ${a.route.id}]`)):S({request:u,params:a.params,context:d},...z!==void 0?[z]:[]),N=(async()=>{try{return{type:"data",result:await(f?f($=>L($)):L())}}catch(z){return{type:"error",result:z}}})();return Promise.race([N,O])};try{let S=a.route[i];if(c)if(S){let D,[O]=await Promise.all([g(S).catch(L=>{D=L}),c]);if(D!==void 0)throw D;h=O}else if(await c,S=a.route[i],S)h=await g(S);else if(i==="action"){let D=new URL(u.url),O=D.pathname+D.search;throw jt(405,{method:u.method,pathname:O,routeId:a.route.id})}else return{type:"data",result:void 0};else if(S)h=await g(S);else{let D=new URL(u.url),O=D.pathname+D.search;throw jt(404,{pathname:O})}}catch(S){return{type:"error",result:S}}finally{v&&u.signal.removeEventListener("abort",v)}return h}async function nh(i){var c,f,d,h;let{result:u,type:a}=i;if(yc(u)){let v;try{let g=u.headers.get("Content-Type");g&&/\bapplication\/json\b/.test(g)?u.body==null?v=null:v=await u.json():v=await u.text()}catch(g){return{type:"error",error:g}}return a==="error"?{type:"error",error:new ro(u.status,u.statusText,v),statusCode:u.status,headers:u.headers}:{type:"data",data:v,statusCode:u.status,headers:u.headers}}if(a==="error"){if(ec(u)){if(u.data instanceof Error)return{type:"error",error:u.data,statusCode:(c=u.init)==null?void 0:c.status};u=new ro(((f=u.init)==null?void 0:f.status)||500,void 0,u.data)}return{type:"error",error:u,statusCode:lo(u)?u.status:void 0}}return ec(u)?{type:"data",data:u.data,statusCode:(d=u.init)==null?void 0:d.status,headers:(h=u.init)!=null&&h.headers?new Headers(u.init.headers):void 0}:{type:"data",data:u}}function rh(i,u,a,c,f){let d=i.headers.get("Location");if(Se(d,"Redirects returned/thrown from loaders/actions must have a Location header"),!ta.test(d)){let h=c.slice(0,c.findIndex(v=>v.route.id===a)+1);d=Ju(new URL(u.url),h,f,d),i.headers.set("Location",d)}return i}function Xf(i,u,a){if(ta.test(i)){let c=i,f=c.startsWith("//")?new URL(u.protocol+c):new URL(c),d=Gt(f.pathname,a)!=null;if(f.origin===u.origin&&d)return f.pathname+f.search+f.hash}return i}function Br(i,u,a,c){let f=i.createURL(mc(u)).toString(),d={signal:a};if(c&&Xt(c.formMethod)){let{formMethod:h,formEncType:v}=c;d.method=h.toUpperCase(),v==="application/json"?(d.headers=new Headers({"Content-Type":v}),d.body=JSON.stringify(c.json)):v==="text/plain"?d.body=c.text:v==="application/x-www-form-urlencoded"&&c.formData?d.body=qu(c.formData):d.body=c.formData}return new Request(f,d)}function qu(i){let u=new URLSearchParams;for(let[a,c]of i.entries())u.append(a,typeof c=="string"?c:c.name);return u}function Gf(i){let u=new FormData;for(let[a,c]of i.entries())u.append(a,c);return u}function lh(i,u,a,c=!1,f=!1){let d={},h=null,v,g=!1,S={},D=a&&_t(a[1])?a[1].error:void 0;return i.forEach(O=>{if(!(O.route.id in u))return;let L=O.route.id,N=u[L];if(Se(!cr(N),"Cannot handle redirect results in processLoaderData"),_t(N)){let z=N.error;if(D!==void 0&&(z=D,D=void 0),h=h||{},f)h[L]=z;else{let $=fr(i,L);h[$.route.id]==null&&(h[$.route.id]=z)}c||(d[L]=pc),g||(g=!0,v=lo(N.error)?N.error.status:500),N.headers&&(S[L]=N.headers)}else d[L]=N.data,N.statusCode&&N.statusCode!==200&&!g&&(v=N.statusCode),N.headers&&(S[L]=N.headers)}),D!==void 0&&a&&(h={[a[0]]:D},d[a[0]]=void 0),{loaderData:d,errors:h,statusCode:v||200,loaderHeaders:S}}function Jf(i,u,a,c,f,d){let{loaderData:h,errors:v}=lh(u,a,c);return f.forEach(g=>{let{key:S,match:D,controller:O}=g,L=d[S];if(Se(L,"Did not find corresponding fetcher result"),!(O&&O.signal.aborted))if(_t(L)){let N=fr(i.matches,D==null?void 0:D.route.id);v&&v[N.route.id]||(v={...v,[N.route.id]:L.error}),i.fetchers.delete(S)}else if(cr(L))Se(!1,"Unhandled fetcher revalidation redirect");else{let N=Hn(L.data);i.fetchers.set(S,N)}}),{loaderData:h,errors:v}}function Zf(i,u,a,c){let f=Object.entries(u).filter(([,d])=>d!==pc).reduce((d,[h,v])=>(d[h]=v,d),{});for(let d of a){let h=d.route.id;if(!u.hasOwnProperty(h)&&i.hasOwnProperty(h)&&d.route.loader&&(f[h]=i[h]),c&&c.hasOwnProperty(h))break}return f}function qf(i){return i?_t(i[1])?{actionData:{}}:{actionData:{[i[0]]:i[1].data}}:{}}function fr(i,u){return(u?i.slice(0,i.findIndex(c=>c.route.id===u)+1):[...i]).reverse().find(c=>c.route.hasErrorBoundary===!0)||i[0]}function bf(i){let u=i.length===1?i[0]:i.find(a=>a.index||!a.path||a.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:u}],route:u}}function jt(i,{pathname:u,routeId:a,method:c,type:f,message:d}={}){let h="Unknown Server Error",v="Unknown @remix-run/router error";return i===400?(h="Bad Request",c&&u&&a?v=`You made a ${c} request to "${u}" but did not provide a \`loader\` for route "${a}", so there is no way to handle the request.`:f==="invalid-body"&&(v="Unable to encode submission body")):i===403?(h="Forbidden",v=`Route "${a}" does not match URL "${u}"`):i===404?(h="Not Found",v=`No route matches URL "${u}"`):i===405&&(h="Method Not Allowed",c&&u&&a?v=`You made a ${c.toUpperCase()} request to "${u}" but did not provide an \`action\` for route "${a}", so there is no way to handle the request.`:c&&(v=`Invalid request method "${c.toUpperCase()}"`)),new ro(i||500,h,new Error(v),!0)}function Ji(i){let u=Object.entries(i);for(let a=u.length-1;a>=0;a--){let[c,f]=u[a];if(cr(f))return{key:c,result:f}}}function mc(i){let u=typeof i=="string"?Wn(i):i;return Vn({...u,hash:""})}function ih(i,u){return i.pathname!==u.pathname||i.search!==u.search?!1:i.hash===""?u.hash!=="":i.hash===u.hash?!0:u.hash!==""}function oh(i){return yc(i.result)&&Wp.has(i.result.status)}function _t(i){return i.type==="error"}function cr(i){return(i&&i.type)==="redirect"}function ec(i){return typeof i=="object"&&i!=null&&"type"in i&&"data"in i&&"init"in i&&i.type==="DataWithResponseInit"}function yc(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.headers=="object"&&typeof i.body<"u"}function uh(i){return Vp.has(i.toUpperCase())}function Xt(i){return Hp.has(i.toUpperCase())}function na(i){return new URLSearchParams(i).getAll("index").some(u=>u==="")}function zl(i,u){let a=typeof u=="string"?Wn(u).search:u.search;if(i[i.length-1].route.index&&na(a||""))return i[i.length-1];let c=fc(i);return c[c.length-1]}function tc(i){let{formMethod:u,formAction:a,formEncType:c,text:f,formData:d,json:h}=i;if(!(!u||!a||!c)){if(f!=null)return{formMethod:u,formAction:a,formEncType:c,formData:void 0,json:void 0,text:f};if(d!=null)return{formMethod:u,formAction:a,formEncType:c,formData:d,json:void 0,text:void 0};if(h!==void 0)return{formMethod:u,formAction:a,formEncType:c,formData:void 0,json:h,text:void 0}}}function Xu(i,u){return u?{state:"loading",location:i,formMethod:u.formMethod,formAction:u.formAction,formEncType:u.formEncType,formData:u.formData,json:u.json,text:u.text}:{state:"loading",location:i,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function ah(i,u){return{state:"submitting",location:i,formMethod:u.formMethod,formAction:u.formAction,formEncType:u.formEncType,formData:u.formData,json:u.json,text:u.text}}function Dl(i,u){return i?{state:"loading",formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text,data:u}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:u}}function sh(i,u){return{state:"submitting",formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text,data:u?u.data:void 0}}function Hn(i){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:i}}function fh(i,u){try{let a=i.sessionStorage.getItem(dc);if(a){let c=JSON.parse(a);for(let[f,d]of Object.entries(c||{}))d&&Array.isArray(d)&&u.set(f,new Set(d||[]))}}catch{}}function ch(i,u){if(u.size>0){let a={};for(let[c,f]of u)a[c]=[...f];try{i.sessionStorage.setItem(dc,JSON.stringify(a))}catch(c){ot(!1,`Failed to save applied view transitions in sessionStorage (${c}).`)}}}function dh(){let i,u,a=new Promise((c,f)=>{i=async d=>{c(d);try{await a}catch{}},u=async d=>{f(d);try{await a}catch{}}});return{promise:a,resolve:i,reject:u}}var dr=T.createContext(null);dr.displayName="DataRouter";var Ol=T.createContext(null);Ol.displayName="DataRouterState";var ra=T.createContext({isTransitioning:!1});ra.displayName="ViewTransition";var vc=T.createContext(new Map);vc.displayName="Fetchers";var ph=T.createContext(null);ph.displayName="Await";var tn=T.createContext(null);tn.displayName="Navigation";var io=T.createContext(null);io.displayName="Location";var nn=T.createContext({outlet:null,matches:[],isDataRoute:!1});nn.displayName="Route";var la=T.createContext(null);la.displayName="RouteError";function hh(i,{relative:u}={}){Se(Il(),"useHref() may be used only in the context of a component.");let{basename:a,navigator:c}=T.useContext(tn),{hash:f,pathname:d,search:h}=Ul(i,{relative:u}),v=d;return a!=="/"&&(v=d==="/"?a:en([a,d])),c.createHref({pathname:v,search:h,hash:f})}function Il(){return T.useContext(io)!=null}function pr(){return Se(Il(),"useLocation() may be used only in the context of a component."),T.useContext(io).location}var gc="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function wc(i){T.useContext(tn).static||T.useLayoutEffect(i)}function mh(){let{isDataRoute:i}=T.useContext(nn);return i?Nh():yh()}function yh(){Se(Il(),"useNavigate() may be used only in the context of a component.");let i=T.useContext(dr),{basename:u,navigator:a}=T.useContext(tn),{matches:c}=T.useContext(nn),{pathname:f}=pr(),d=JSON.stringify(bu(c)),h=T.useRef(!1);return wc(()=>{h.current=!0}),T.useCallback((g,S={})=>{if(ot(h.current,gc),!h.current)return;if(typeof g=="number"){a.go(g);return}let D=ea(g,JSON.parse(d),f,S.relative==="path");i==null&&u!=="/"&&(D.pathname=D.pathname==="/"?u:en([u,D.pathname])),(S.replace?a.replace:a.push)(D,S.state,S)},[u,a,d,f,i])}var vh=T.createContext(null);function gh(i){let u=T.useContext(nn).outlet;return u&&T.createElement(vh.Provider,{value:i},u)}function Ul(i,{relative:u}={}){let{matches:a}=T.useContext(nn),{pathname:c}=pr(),f=JSON.stringify(bu(a));return T.useMemo(()=>ea(i,JSON.parse(f),c,u==="path"),[i,f,c,u])}function wh(i,u,a,c){Se(Il(),"useRoutes() may be used only in the context of a component.");let{navigator:f}=T.useContext(tn),{matches:d}=T.useContext(nn),h=d[d.length-1],v=h?h.params:{},g=h?h.pathname:"/",S=h?h.pathnameBase:"/",D=h&&h.route;{let M=D&&D.path||"";Sc(g,!D||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${g}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. + +Please change the parent to .`)}let O=pr(),L;L=O;let N=L.pathname||"/",z=N;if(S!=="/"){let M=S.replace(/^\//,"").split("/");z="/"+N.replace(/^\//,"").split("/").slice(M.length).join("/")}let $=Bn(i,{pathname:z});return ot(D||$!=null,`No routes matched location "${L.pathname}${L.search}${L.hash}" `),ot($==null||$[$.length-1].route.element!==void 0||$[$.length-1].route.Component!==void 0||$[$.length-1].route.lazy!==void 0,`Matched leaf route at location "${L.pathname}${L.search}${L.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`),Ch($&&$.map(M=>Object.assign({},M,{params:Object.assign({},v,M.params),pathname:en([S,f.encodeLocation?f.encodeLocation(M.pathname).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?S:en([S,f.encodeLocation?f.encodeLocation(M.pathnameBase).pathname:M.pathnameBase])})),d,a,c)}function Sh(){let i=Th(),u=lo(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),a=i instanceof Error?i.stack:null,c="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:c},d={padding:"2px 4px",backgroundColor:c},h=null;return console.error("Error handled by React Router default ErrorBoundary:",i),h=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:d},"ErrorBoundary")," or"," ",T.createElement("code",{style:d},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},u),a?T.createElement("pre",{style:f},a):null,h)}var Eh=T.createElement(Sh,null),kh=class extends T.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,u){return u.location!==i.location||u.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:u.error,location:u.location,revalidation:i.revalidation||u.revalidation}}componentDidCatch(i,u){console.error("React Router caught the following error during render",i,u)}render(){return this.state.error!==void 0?T.createElement(nn.Provider,{value:this.props.routeContext},T.createElement(la.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function xh({routeContext:i,match:u,children:a}){let c=T.useContext(dr);return c&&c.static&&c.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=u.route.id),T.createElement(nn.Provider,{value:i},a)}function Ch(i,u=[],a=null,c=null){if(i==null){if(!a)return null;if(a.errors)i=a.matches;else if(u.length===0&&!a.initialized&&a.matches.length>0)i=a.matches;else return null}let f=i,d=a==null?void 0:a.errors;if(d!=null){let g=f.findIndex(S=>S.route.id&&(d==null?void 0:d[S.route.id])!==void 0);Se(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,g+1))}let h=!1,v=-1;if(a)for(let g=0;g=0?f=f.slice(0,v+1):f=[f[0]];break}}}return f.reduceRight((g,S,D)=>{let O,L=!1,N=null,z=null;a&&(O=d&&S.route.id?d[S.route.id]:void 0,N=S.route.errorElement||Eh,h&&(v<0&&D===0?(Sc("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),L=!0,z=null):v===D&&(L=!0,z=S.route.hydrateFallbackElement||null)));let $=u.concat(f.slice(0,D+1)),H=()=>{let M;return O?M=N:L?M=z:S.route.Component?M=T.createElement(S.route.Component,null):S.route.element?M=S.route.element:M=g,T.createElement(xh,{match:S,routeContext:{outlet:g,matches:$,isDataRoute:a!=null},children:M})};return a&&(S.route.ErrorBoundary||S.route.errorElement||D===0)?T.createElement(kh,{location:a.location,revalidation:a.revalidation,component:N,error:O,children:H(),routeContext:{outlet:null,matches:$,isDataRoute:!0}}):H()},null)}function ia(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Rh(i){let u=T.useContext(dr);return Se(u,ia(i)),u}function Ph(i){let u=T.useContext(Ol);return Se(u,ia(i)),u}function Lh(i){let u=T.useContext(nn);return Se(u,ia(i)),u}function oa(i){let u=Lh(i),a=u.matches[u.matches.length-1];return Se(a.route.id,`${i} can only be used on routes that contain a unique "id"`),a.route.id}function _h(){return oa("useRouteId")}function Th(){var c;let i=T.useContext(la),u=Ph("useRouteError"),a=oa("useRouteError");return i!==void 0?i:(c=u.errors)==null?void 0:c[a]}function Nh(){let{router:i}=Rh("useNavigate"),u=oa("useNavigate"),a=T.useRef(!1);return wc(()=>{a.current=!0}),T.useCallback(async(f,d={})=>{ot(a.current,gc),a.current&&(typeof f=="number"?i.navigate(f):await i.navigate(f,{fromRouteId:u,...d}))},[i,u])}var nc={};function Sc(i,u,a){!u&&!nc[i]&&(nc[i]=!0,ot(!1,a))}var rc={};function lc(i,u){!i&&!rc[u]&&(rc[u]=!0,console.warn(u))}function Dh(i){let u={hasErrorBoundary:i.hasErrorBoundary||i.ErrorBoundary!=null||i.errorElement!=null};return i.Component&&(i.element&&ot(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(u,{element:T.createElement(i.Component),Component:void 0})),i.HydrateFallback&&(i.hydrateFallbackElement&&ot(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(u,{hydrateFallbackElement:T.createElement(i.HydrateFallback),HydrateFallback:void 0})),i.ErrorBoundary&&(i.errorElement&&ot(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(u,{errorElement:T.createElement(i.ErrorBoundary),ErrorBoundary:void 0})),u}var Mh=class{constructor(){this.status="pending",this.promise=new Promise((i,u)=>{this.resolve=a=>{this.status==="pending"&&(this.status="resolved",i(a))},this.reject=a=>{this.status==="pending"&&(this.status="rejected",u(a))}})}};function zh({router:i,flushSync:u}){let[a,c]=T.useState(i.state),[f,d]=T.useState(),[h,v]=T.useState({isTransitioning:!1}),[g,S]=T.useState(),[D,O]=T.useState(),[L,N]=T.useState(),z=T.useRef(new Map),$=T.useCallback((J,{deletedFetchers:ae,flushSync:C,viewTransitionOpts:le})=>{J.fetchers.forEach((ie,ge)=>{ie.data!==void 0&&z.current.set(ge,ie.data)}),ae.forEach(ie=>z.current.delete(ie)),lc(C===!1||u!=null,'You provided the `flushSync` option to a router update, but you are not using the `` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let pe=i.window!=null&&i.window.document!=null&&typeof i.window.document.startViewTransition=="function";if(lc(le==null||pe,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!le||!pe){u&&C?u(()=>c(J)):T.startTransition(()=>c(J));return}if(u&&C){u(()=>{D&&(g&&g.resolve(),D.skipTransition()),v({isTransitioning:!0,flushSync:!0,currentLocation:le.currentLocation,nextLocation:le.nextLocation})});let ie=i.window.document.startViewTransition(()=>{u(()=>c(J))});ie.finished.finally(()=>{u(()=>{S(void 0),O(void 0),d(void 0),v({isTransitioning:!1})})}),u(()=>O(ie));return}D?(g&&g.resolve(),D.skipTransition(),N({state:J,currentLocation:le.currentLocation,nextLocation:le.nextLocation})):(d(J),v({isTransitioning:!0,flushSync:!1,currentLocation:le.currentLocation,nextLocation:le.nextLocation}))},[i.window,u,D,g]);T.useLayoutEffect(()=>i.subscribe($),[i,$]),T.useEffect(()=>{h.isTransitioning&&!h.flushSync&&S(new Mh)},[h]),T.useEffect(()=>{if(g&&f&&i.window){let J=f,ae=g.promise,C=i.window.document.startViewTransition(async()=>{T.startTransition(()=>c(J)),await ae});C.finished.finally(()=>{S(void 0),O(void 0),d(void 0),v({isTransitioning:!1})}),O(C)}},[f,g,i.window]),T.useEffect(()=>{g&&f&&a.location.key===f.location.key&&g.resolve()},[g,D,a.location,f]),T.useEffect(()=>{!h.isTransitioning&&L&&(d(L.state),v({isTransitioning:!0,flushSync:!1,currentLocation:L.currentLocation,nextLocation:L.nextLocation}),N(void 0))},[h.isTransitioning,L]);let H=T.useMemo(()=>({createHref:i.createHref,encodeLocation:i.encodeLocation,go:J=>i.navigate(J),push:(J,ae,C)=>i.navigate(J,{state:ae,preventScrollReset:C==null?void 0:C.preventScrollReset}),replace:(J,ae,C)=>i.navigate(J,{replace:!0,state:ae,preventScrollReset:C==null?void 0:C.preventScrollReset})}),[i]),M=i.basename||"/",b=T.useMemo(()=>({router:i,navigator:H,static:!1,basename:M}),[i,H,M]);return T.createElement(T.Fragment,null,T.createElement(dr.Provider,{value:b},T.createElement(Ol.Provider,{value:a},T.createElement(vc.Provider,{value:z.current},T.createElement(ra.Provider,{value:h},T.createElement(Ih,{basename:M,location:a.location,navigationType:a.historyAction,navigator:H},T.createElement(Fh,{routes:i.routes,future:i.future,state:a})))))),null)}var Fh=T.memo(Oh);function Oh({routes:i,future:u,state:a}){return wh(i,void 0,a,u)}function wm(i){return gh(i.context)}function Ih({basename:i="/",children:u=null,location:a,navigationType:c="POP",navigator:f,static:d=!1}){Se(!Il(),"You cannot render a inside another . You should never have more than one in your app.");let h=i.replace(/^\/*/,"/"),v=T.useMemo(()=>({basename:h,navigator:f,static:d,future:{}}),[h,f,d]);typeof a=="string"&&(a=Wn(a));let{pathname:g="/",search:S="",hash:D="",state:O=null,key:L="default"}=a,N=T.useMemo(()=>{let z=Gt(g,h);return z==null?null:{location:{pathname:z,search:S,hash:D,state:O,key:L},navigationType:c}},[h,g,S,D,O,L,c]);return ot(N!=null,` is not able to match the URL "${g}${S}${D}" because it does not start with the basename, so the won't render anything.`),N==null?null:T.createElement(tn.Provider,{value:v},T.createElement(io.Provider,{children:u,value:N}))}var bi="get",eo="application/x-www-form-urlencoded";function oo(i){return i!=null&&typeof i.tagName=="string"}function Uh(i){return oo(i)&&i.tagName.toLowerCase()==="button"}function jh(i){return oo(i)&&i.tagName.toLowerCase()==="form"}function $h(i){return oo(i)&&i.tagName.toLowerCase()==="input"}function Ah(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Hh(i,u){return i.button===0&&(!u||u==="_self")&&!Ah(i)}var Zi=null;function Bh(){if(Zi===null)try{new FormData(document.createElement("form"),0),Zi=!1}catch{Zi=!0}return Zi}var Vh=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Gu(i){return i!=null&&!Vh.has(i)?(ot(!1,`"${i}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${eo}"`),null):i}function Wh(i,u){let a,c,f,d,h;if(jh(i)){let v=i.getAttribute("action");c=v?Gt(v,u):null,a=i.getAttribute("method")||bi,f=Gu(i.getAttribute("enctype"))||eo,d=new FormData(i)}else if(Uh(i)||$h(i)&&(i.type==="submit"||i.type==="image")){let v=i.form;if(v==null)throw new Error('Cannot submit a