From 4d1bbf8fe2b9980155a6ba8bc02f7dae19ab7d76 Mon Sep 17 00:00:00 2001 From: Batyr Date: Tue, 20 May 2025 18:14:59 +0500 Subject: [PATCH] build --- .../{about-DbNOoBzB.js => about-CbefH2MY.js} | 2 +- .../{b2b-BnSbHXuC.js => b2b-DX2AQ1Li.js} | 2 +- ...CsDPIJD4.js => become-sponsor-CJzEabdb.js} | 2 +- ...tacts-BWVP1vvo.js => contacts-BVrgsNWG.js} | 2 +- .../{home-CF8NEmWD.js => home-DiD_F5cl.js} | 2 +- dist/assets/index-8iPRmi9I.css | 1 - dist/assets/index-C0sAoqjq.css | 1 + .../{index-FfIGJHYD.js => index-Eiscv_zv.js} | 4 +- dist/assets/media-Pq1BLnyt.js | 1 + .../{news-BUTff1c8.js => news---GzbsqQ.js} | 2 +- ...ner-B7hc0gJR.js => news-inner-obez-6eR.js} | 2 +- dist/assets/participants-YmKBWS5u.js | 1 + ...up-DqnY3jUF.js => radio-group-D60hoBlK.js} | 2 +- ...orm-Bt01Gk3I.js => stend-form-DxTHEFjq.js} | 2 +- dist/assets/ui-library-BrD2Svyn.js | 139 ---------------- dist/assets/ui-library-DpZprY9x.js | 154 ++++++++++++++++++ ...-news-9Z2rsr5T.js => use-news-DRGMJQe9.js} | 2 +- dist/index.html | 6 +- 18 files changed, 172 insertions(+), 155 deletions(-) rename dist/assets/{about-DbNOoBzB.js => about-CbefH2MY.js} (84%) rename dist/assets/{b2b-BnSbHXuC.js => b2b-DX2AQ1Li.js} (99%) rename dist/assets/{become-sponsor-CsDPIJD4.js => become-sponsor-CJzEabdb.js} (96%) rename dist/assets/{contacts-BWVP1vvo.js => contacts-BVrgsNWG.js} (98%) rename dist/assets/{home-CF8NEmWD.js => home-DiD_F5cl.js} (98%) delete mode 100644 dist/assets/index-8iPRmi9I.css create mode 100644 dist/assets/index-C0sAoqjq.css rename dist/assets/{index-FfIGJHYD.js => index-Eiscv_zv.js} (70%) create mode 100644 dist/assets/media-Pq1BLnyt.js rename dist/assets/{news-BUTff1c8.js => news---GzbsqQ.js} (79%) rename dist/assets/{news-inner-B7hc0gJR.js => news-inner-obez-6eR.js} (92%) create mode 100644 dist/assets/participants-YmKBWS5u.js rename dist/assets/{radio-group-DqnY3jUF.js => radio-group-D60hoBlK.js} (99%) rename dist/assets/{stend-form-Bt01Gk3I.js => stend-form-DxTHEFjq.js} (96%) delete mode 100644 dist/assets/ui-library-BrD2Svyn.js create mode 100644 dist/assets/ui-library-DpZprY9x.js rename dist/assets/{use-news-9Z2rsr5T.js => use-news-DRGMJQe9.js} (86%) diff --git a/dist/assets/about-DbNOoBzB.js b/dist/assets/about-CbefH2MY.js similarity index 84% rename from dist/assets/about-DbNOoBzB.js rename to dist/assets/about-CbefH2MY.js index 4fdce18..c3d9238 100644 --- a/dist/assets/about-DbNOoBzB.js +++ b/dist/assets/about-CbefH2MY.js @@ -1 +1 @@ -import{u as t,j as s,e,n as u,L as n,A as r,o as i,p as x,q as j,r as l}from"./ui-library-BrD2Svyn.js";import"./react-vendor-Y0eyvj1J.js";import{u as m}from"./use-scroll-top-DE9DNB_I.js";function p(){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{p as default}; +import{u as t,j as s,e,n as u,L as n,A as r,o as i,p as x,q as j,r as l}from"./ui-library-DpZprY9x.js";import"./react-vendor-Y0eyvj1J.js";import{u as m}from"./use-scroll-top-DE9DNB_I.js";function p(){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{p as default}; diff --git a/dist/assets/b2b-BnSbHXuC.js b/dist/assets/b2b-DX2AQ1Li.js similarity index 99% rename from dist/assets/b2b-BnSbHXuC.js rename to dist/assets/b2b-DX2AQ1Li.js index dda4ce4..e092aaf 100644 --- a/dist/assets/b2b-BnSbHXuC.js +++ b/dist/assets/b2b-DX2AQ1Li.js @@ -1 +1 @@ -import{z as s,s as S,u as f,j as e,t as P,v as r,w as D,x as y,y as v,L as u,B as N,D as o,E as h,G as V,I as E,J as q,K as B,M as z,N as H,O as L,n as U,P as A}from"./ui-library-BrD2Svyn.js";import{a as C}from"./react-vendor-Y0eyvj1J.js";import{R as I,a as G}from"./radio-group-DqnY3jUF.js";import{u as j}from"./use-scroll-top-DE9DNB_I.js";const J=s.object({type:s.string(),company_name:s.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),representative_name:s.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:s.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:s.string().min(1,{message:"Укажите количество участников"}),country:s.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email_address:s.string().email({message:"Укажите корректный email"}),phone_number:s.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:s.string().optional(),meeting_objective:s.string().min(3,{message:"Укажите цель встречи"}),proposal_description:s.string().optional(),government_agency:s.string().optional(),sector_industry:s.string().optional(),key_services:s.string().optional(),government_experience:s.string().optional(),preferred_meeting_datetime:s.string().optional(),meeting_mode:s.string().optional(),language_preference:s.string().optional(),technical_requirements:s.string().optional(),company_profile:s.custom(n=>n instanceof File,{message:"Выберите корректный файл"}).refine(n=>n&&["image/jpeg","image/png","application/pdf"].includes(n.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),proposal_presentation:s.custom(n=>n instanceof File,{message:"Выберите корректный файл"}).refine(n=>n&&["image/jpeg","image/png","application/pdf"].includes(n.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),relevant_certification:s.custom(n=>n instanceof File,{message:"Выберите корректный файл"}).refine(n=>n&&["image/jpeg","image/png","application/pdf"].includes(n.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional()}),O={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:"Email адрес"},{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:"Email"},{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:"Приложения:",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"}],T=({handleNext:n})=>{j();const{control:l,formState:t}=S(),a=f(i=>i.lang);return e.jsxs(P.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(D,{defaultValue:1,control:l,name:"type",render:({field:i})=>e.jsxs(y,{className:"space-y-3",children:[e.jsx(v,{className:"text-xl",children:a===u.RU?"Тип:":"Type:"}),e.jsx(N,{children:e.jsxs(I,{onValueChange:i.onChange,defaultValue:i.value,className:"flex flex-col space-y-4",children:[e.jsxs(y,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(N,{children:e.jsx(G,{value:"B2B",checked:i.value==="B2B"})}),e.jsx(v,{className:"text-base",children:"B2B"})]}),e.jsxs(y,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(N,{children:e.jsx(G,{value:"B2G",checked:i.value==="B2G"})}),e.jsx(v,{className:"text-base",children:"B2G"})]})]})})]})}),e.jsx(o,{control:l,name:"company_name",error:t.errors.company_name,placeholder:"",label:m[r(a)].data[0].label}),e.jsx(o,{control:l,name:"representative_name",error:t.errors.representative_name,placeholder:"",label:m[r(a)].data[1].label}),e.jsx(o,{control:l,name:"job_title",error:t.errors.job_title,placeholder:"",label:m[r(a)].data[2].label}),e.jsx(o,{control:l,name:"participants_number",error:t.errors.participants_number,placeholder:"",label:m[r(a)].data[3].label}),e.jsx(o,{control:l,name:"country",error:t.errors.country,placeholder:"",label:m[r(a)].data[4].label}),e.jsx(o,{control:l,name:"email_address",error:t.errors.email_address,placeholder:"",label:m[r(a)].data[5].label}),e.jsx(o,{control:l,name:"phone_number",error:t.errors.phone_number,placeholder:"",label:m[r(a)].data[6].label}),e.jsx(o,{control:l,name:"website",placeholder:"",label:m[r(a)].data[7].label})]}),e.jsx(h,{variant:"secondary",type:"button",onClick:n,className:"w-full mt-10",children:a===u.RU?"Далее":"Next"})]})},K=({handleNext:n,handlePrev:l})=>{j();const t=f(x=>x.lang),{control:a,formState:i}=S();return e.jsxs(P.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:l,variant:"outline",className:"text-on_surface",children:t===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{variant:"secondary",type:"button",onClick:n,className:"w-full",children:t===u.RU?"Далее":"Next"})]})]})},M=({handlePrev:n})=>{j();const{control:l,formState:t}=S(),a=f(i=>i.lang);return e.jsxs(P.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:l,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:c[r(a)].data[0].label}),e.jsx(o,{control:l,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:c[r(a)].data[1].label}),e.jsx(o,{control:l,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:c[r(a)].data[2].label}),e.jsx(o,{control:l,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:l,name:"company_profile",label:c[r(a)].data[4].label,type:"file",textDark:!0}),e.jsx(o,{control:l,name:"proposal_presentation",label:c[r(a)].data[5].label,type:"file",textDark:!0}),e.jsx(o,{control:l,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:n,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})]})]})},$=({stage:n,setStage:l,success:t,setSuccess:a})=>{const i=E({resolver:H(J),defaultValues:O,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[]}},F=async()=>{const d=x(n);await i.trigger(d)&&l(w=>w+1)},k=()=>l(d=>d-1),R=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 L.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(R),children:e.jsxs("div",{className:"relative",children:[e.jsx(B,{children:n===1&&e.jsx(T,{handleNext:F})}),e.jsx(B,{children:n===2&&e.jsx(K,{handleNext:F,handlePrev:k})}),e.jsx(B,{children:n===3&&t===!1&&e.jsx(M,{handlePrev:k})}),t&&e.jsx(z,{})]})})})};function Z(){j();const n=f(x=>x.lang),[l,t]=C.useState(1),[a,i]=C.useState(!1);return e.jsxs("div",{className:"pb-[120px]",children:[e.jsx(U,{title:n===u.RU?"B2B | B2G встречи":"B2B | B2G meetings"}),!a&&l!==0&&e.jsx(A,{stage:l}),e.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:e.jsx($,{success:a,setSuccess:i,stage:l,setStage:t})})]})}export{Z as default}; +import{z as s,s as S,u as f,j as e,t as P,v as r,w as D,x as y,y as v,L as u,B as N,D as o,E as h,G as V,I as E,J as q,K as B,M as z,N as H,O as L,n as U,P as A}from"./ui-library-DpZprY9x.js";import{a as C}from"./react-vendor-Y0eyvj1J.js";import{R as I,a as G}from"./radio-group-D60hoBlK.js";import{u as j}from"./use-scroll-top-DE9DNB_I.js";const J=s.object({type:s.string(),company_name:s.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),representative_name:s.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:s.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:s.string().min(1,{message:"Укажите количество участников"}),country:s.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email_address:s.string().email({message:"Укажите корректный email"}),phone_number:s.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:s.string().optional(),meeting_objective:s.string().min(3,{message:"Укажите цель встречи"}),proposal_description:s.string().optional(),government_agency:s.string().optional(),sector_industry:s.string().optional(),key_services:s.string().optional(),government_experience:s.string().optional(),preferred_meeting_datetime:s.string().optional(),meeting_mode:s.string().optional(),language_preference:s.string().optional(),technical_requirements:s.string().optional(),company_profile:s.custom(n=>n instanceof File,{message:"Выберите корректный файл"}).refine(n=>n&&["image/jpeg","image/png","application/pdf"].includes(n.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),proposal_presentation:s.custom(n=>n instanceof File,{message:"Выберите корректный файл"}).refine(n=>n&&["image/jpeg","image/png","application/pdf"].includes(n.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),relevant_certification:s.custom(n=>n instanceof File,{message:"Выберите корректный файл"}).refine(n=>n&&["image/jpeg","image/png","application/pdf"].includes(n.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional()}),O={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:"Email адрес"},{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:"Email"},{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:"Приложения:",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"}],T=({handleNext:n})=>{j();const{control:l,formState:t}=S(),a=f(i=>i.lang);return e.jsxs(P.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(D,{defaultValue:1,control:l,name:"type",render:({field:i})=>e.jsxs(y,{className:"space-y-3",children:[e.jsx(v,{className:"text-xl",children:a===u.RU?"Тип:":"Type:"}),e.jsx(N,{children:e.jsxs(I,{onValueChange:i.onChange,defaultValue:i.value,className:"flex flex-col space-y-4",children:[e.jsxs(y,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(N,{children:e.jsx(G,{value:"B2B",checked:i.value==="B2B"})}),e.jsx(v,{className:"text-base",children:"B2B"})]}),e.jsxs(y,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(N,{children:e.jsx(G,{value:"B2G",checked:i.value==="B2G"})}),e.jsx(v,{className:"text-base",children:"B2G"})]})]})})]})}),e.jsx(o,{control:l,name:"company_name",error:t.errors.company_name,placeholder:"",label:m[r(a)].data[0].label}),e.jsx(o,{control:l,name:"representative_name",error:t.errors.representative_name,placeholder:"",label:m[r(a)].data[1].label}),e.jsx(o,{control:l,name:"job_title",error:t.errors.job_title,placeholder:"",label:m[r(a)].data[2].label}),e.jsx(o,{control:l,name:"participants_number",error:t.errors.participants_number,placeholder:"",label:m[r(a)].data[3].label}),e.jsx(o,{control:l,name:"country",error:t.errors.country,placeholder:"",label:m[r(a)].data[4].label}),e.jsx(o,{control:l,name:"email_address",error:t.errors.email_address,placeholder:"",label:m[r(a)].data[5].label}),e.jsx(o,{control:l,name:"phone_number",error:t.errors.phone_number,placeholder:"",label:m[r(a)].data[6].label}),e.jsx(o,{control:l,name:"website",placeholder:"",label:m[r(a)].data[7].label})]}),e.jsx(h,{variant:"secondary",type:"button",onClick:n,className:"w-full mt-10",children:a===u.RU?"Далее":"Next"})]})},K=({handleNext:n,handlePrev:l})=>{j();const t=f(x=>x.lang),{control:a,formState:i}=S();return e.jsxs(P.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:l,variant:"outline",className:"text-on_surface",children:t===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{variant:"secondary",type:"button",onClick:n,className:"w-full",children:t===u.RU?"Далее":"Next"})]})]})},M=({handlePrev:n})=>{j();const{control:l,formState:t}=S(),a=f(i=>i.lang);return e.jsxs(P.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:l,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:c[r(a)].data[0].label}),e.jsx(o,{control:l,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:c[r(a)].data[1].label}),e.jsx(o,{control:l,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:c[r(a)].data[2].label}),e.jsx(o,{control:l,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:l,name:"company_profile",label:c[r(a)].data[4].label,type:"file",textDark:!0}),e.jsx(o,{control:l,name:"proposal_presentation",label:c[r(a)].data[5].label,type:"file",textDark:!0}),e.jsx(o,{control:l,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:n,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})]})]})},$=({stage:n,setStage:l,success:t,setSuccess:a})=>{const i=E({resolver:H(J),defaultValues:O,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[]}},F=async()=>{const d=x(n);await i.trigger(d)&&l(w=>w+1)},k=()=>l(d=>d-1),R=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 L.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(R),children:e.jsxs("div",{className:"relative",children:[e.jsx(B,{children:n===1&&e.jsx(T,{handleNext:F})}),e.jsx(B,{children:n===2&&e.jsx(K,{handleNext:F,handlePrev:k})}),e.jsx(B,{children:n===3&&t===!1&&e.jsx(M,{handlePrev:k})}),t&&e.jsx(z,{})]})})})};function Z(){j();const n=f(x=>x.lang),[l,t]=C.useState(1),[a,i]=C.useState(!1);return e.jsxs("div",{className:"pb-[120px]",children:[e.jsx(U,{title:n===u.RU?"B2B | B2G встречи":"B2B | B2G meetings"}),!a&&l!==0&&e.jsx(A,{stage:l}),e.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:e.jsx($,{success:a,setSuccess:i,stage:l,setStage:t})})]})}export{Z as default}; diff --git a/dist/assets/become-sponsor-CsDPIJD4.js b/dist/assets/become-sponsor-CJzEabdb.js similarity index 96% rename from dist/assets/become-sponsor-CsDPIJD4.js rename to dist/assets/become-sponsor-CJzEabdb.js index ef9204f..2961431 100644 --- a/dist/assets/become-sponsor-CsDPIJD4.js +++ b/dist/assets/become-sponsor-CJzEabdb.js @@ -1 +1 @@ -import{z as t,u as h,I as _,j as e,n as g,L as y,K as f,J as S,t as v,D as l,v as o,w as N,x as c,y as i,B as p,E as F,G as w,M as R,R as L,N as B}from"./ui-library-BrD2Svyn.js";import{a as C}from"./react-vendor-Y0eyvj1J.js";import{R as V,a as j}from"./radio-group-DqnY3jUF.js";import{u as D}from"./use-scroll-top-DE9DNB_I.js";import{s as r}from"./stend.data-Dr6usuZY.js";const E=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()}),G={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""};function A(){D();const a=h(n=>n.lang),[x,b]=C.useState(!1),s=_({resolver:B(E),defaultValues:G}),d=async n=>{try{await L(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===y.RU?"Стать спонсором":"Become a sponsor"}),e.jsx(f,{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(N,{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(V,{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(F,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?e.jsx(w,{className:"animate-spin"}):r[o(a)].button})]})})}),x&&e.jsx(R,{delay:.3})]})}export{A as default}; +import{z as t,u as h,I as _,j as e,n as g,L as y,K as f,J as S,t as v,D as l,v as o,w as N,x as c,y as i,B as p,E as F,G as w,M as R,R as L,N as B}from"./ui-library-DpZprY9x.js";import{a as C}from"./react-vendor-Y0eyvj1J.js";import{R as V,a as j}from"./radio-group-D60hoBlK.js";import{u as D}from"./use-scroll-top-DE9DNB_I.js";import{s as r}from"./stend.data-Dr6usuZY.js";const E=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()}),G={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""};function A(){D();const a=h(n=>n.lang),[x,b]=C.useState(!1),s=_({resolver:B(E),defaultValues:G}),d=async n=>{try{await L(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===y.RU?"Стать спонсором":"Become a sponsor"}),e.jsx(f,{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(N,{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(V,{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(F,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?e.jsx(w,{className:"animate-spin"}):r[o(a)].button})]})})}),x&&e.jsx(R,{delay:.3})]})}export{A as default}; diff --git a/dist/assets/contacts-BWVP1vvo.js b/dist/assets/contacts-BVrgsNWG.js similarity index 98% rename from dist/assets/contacts-BWVP1vvo.js rename to dist/assets/contacts-BVrgsNWG.js index 1869442..fc2e5a3 100644 --- a/dist/assets/contacts-BWVP1vvo.js +++ b/dist/assets/contacts-BVrgsNWG.js @@ -1 +1 @@ -import{z as t,d as m,I as h,j as s,e as u,J as p,D as n,E as g,a1 as j,N as f,a2 as b,C as N}from"./ui-library-BrD2Svyn.js";import{a as v}from"./react-vendor-Y0eyvj1J.js";import{u as C}from"./use-scroll-top-DE9DNB_I.js";const w=t.object({name:t.string().min(2,"error"),email:t.string().email(),phone:t.string().min(8,"error"),company:t.string().min(2,"error"),msg:t.string().min(5,"error")}),y={name:"",email:"",phone:"",company:"",msg:""},L=({className:r})=>{const{t:a}=m("contacts"),[c,i]=v.useState(!1),e=h({resolver:f(w),defaultValues:y});async function d(x){try{const o=await b(x);i(o)}catch(o){console.error("POST contact",o)}}const{errors:l}=e.formState;return s.jsx("div",{className:u("bg-primary rounded-[8px] py-8 px-6 ",r),children:s.jsx(p,{...e,children:s.jsxs("form",{onSubmit:e.handleSubmit(d),children:[s.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:a("title")}),s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsx(n,{onPrimary:!0,name:"name",control:e.control,label:a("name"),error:l.name}),s.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[s.jsx(n,{onPrimary:!0,name:"email",control:e.control,label:"Email",error:l.email}),s.jsx(n,{onPrimary:!0,name:"phone",control:e.control,label:a("phone"),error:l.phone})]}),s.jsx(n,{onPrimary:!0,name:"company",control:e.control,label:a("company"),error:l.name}),s.jsx(n,{onPrimary:!0,textArea:!0,name:"msg",label:a("message"),control:e.control,error:l.msg}),s.jsx(g,{disabled:e.formState.isSubmitting||c,className:"w-full h-12 overflow-hidden",variant:"secondary",children:c?a("submitted"):e.formState.isSubmitting?s.jsx(j,{className:"animate-spin text-white"}):a("button")})]})]})})})};function E(){C();const{t:r}=m("contacts");return s.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[s.jsx(N,{children:s.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[s.jsx(L,{}),s.jsxs("div",{className:"p-6 bg-surface_container rounded-[8px]",children:[s.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:r("title_2")}),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:r("address")}),s.jsx("address",{className:"text-base normal not-italic",children:r("venue")})]})]}),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:r("phone")}),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/email.svg",alt:"email"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Email:"}),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{E as default}; +import{z as t,d as m,I as h,j as s,e as u,J as p,D as n,E as g,a1 as j,N as f,a2 as b,C as N}from"./ui-library-DpZprY9x.js";import{a as v}from"./react-vendor-Y0eyvj1J.js";import{u as C}from"./use-scroll-top-DE9DNB_I.js";const w=t.object({name:t.string().min(2,"error"),email:t.string().email(),phone:t.string().min(8,"error"),company:t.string().min(2,"error"),msg:t.string().min(5,"error")}),y={name:"",email:"",phone:"",company:"",msg:""},L=({className:r})=>{const{t:a}=m("contacts"),[c,i]=v.useState(!1),e=h({resolver:f(w),defaultValues:y});async function d(x){try{const o=await b(x);i(o)}catch(o){console.error("POST contact",o)}}const{errors:l}=e.formState;return s.jsx("div",{className:u("bg-primary rounded-[8px] py-8 px-6 ",r),children:s.jsx(p,{...e,children:s.jsxs("form",{onSubmit:e.handleSubmit(d),children:[s.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:a("title")}),s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsx(n,{onPrimary:!0,name:"name",control:e.control,label:a("name"),error:l.name}),s.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[s.jsx(n,{onPrimary:!0,name:"email",control:e.control,label:"Email",error:l.email}),s.jsx(n,{onPrimary:!0,name:"phone",control:e.control,label:a("phone"),error:l.phone})]}),s.jsx(n,{onPrimary:!0,name:"company",control:e.control,label:a("company"),error:l.name}),s.jsx(n,{onPrimary:!0,textArea:!0,name:"msg",label:a("message"),control:e.control,error:l.msg}),s.jsx(g,{disabled:e.formState.isSubmitting||c,className:"w-full h-12 overflow-hidden",variant:"secondary",children:c?a("submitted"):e.formState.isSubmitting?s.jsx(j,{className:"animate-spin text-white"}):a("button")})]})]})})})};function E(){C();const{t:r}=m("contacts");return s.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[s.jsx(N,{children:s.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[s.jsx(L,{}),s.jsxs("div",{className:"p-6 bg-surface_container rounded-[8px]",children:[s.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:r("title_2")}),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:r("address")}),s.jsx("address",{className:"text-base normal not-italic",children:r("venue")})]})]}),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:r("phone")}),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/email.svg",alt:"email"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Email:"}),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{E as default}; diff --git a/dist/assets/home-CF8NEmWD.js b/dist/assets/home-DiD_F5cl.js similarity index 98% rename from dist/assets/home-CF8NEmWD.js rename to dist/assets/home-DiD_F5cl.js index 8e2dc82..2f0fbdb 100644 --- a/dist/assets/home-CF8NEmWD.js +++ b/dist/assets/home-DiD_F5cl.js @@ -1 +1 @@ -import{u as B,b as q,g as W,c as z,d as K,j as n,e as Q,C as V,f as G,h as J,k as X,l as Y,m as Z}from"./ui-library-BrD2Svyn.js";import{L as $}from"./react-vendor-Y0eyvj1J.js";const ee={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function te(a,t){const e=a.scrollSnapList();return typeof t=="number"?e.map(()=>t):t(e,a)}function ne(a,t){const e=a.rootNode();return t&&t(e)||e}function b(a={}){let t,e,l,p,s=null,u=0,i=!1,f=!1,y=!1,d=!1;function E(o,m){e=o;const{mergeOptions:x,optionsAtMedia:j}=m,M=x(ee,b.globalOptions),R=x(M,a);if(t=j(R),e.scrollSnapList().length<=1)return;d=t.jump,l=!1,p=te(e,t.delay);const{eventStore:g,ownerDocument:U}=e.internalEngine(),N=!!e.internalEngine().options.watchDrag,S=ne(e,t.rootNode);g.add(U,"visibilitychange",T),N&&e.on("pointerDown",O),N&&!t.stopOnInteraction&&e.on("pointerUp",w),t.stopOnMouseEnter&&g.add(S,"mouseenter",_),t.stopOnMouseEnter&&!t.stopOnInteraction&&g.add(S,"mouseleave",H),t.stopOnFocusIn&&e.on("slideFocusStart",c),t.stopOnFocusIn&&!t.stopOnInteraction&&g.add(e.containerNode(),"focusout",r),t.playOnInit&&r()}function v(){e.off("pointerDown",O).off("pointerUp",w).off("slideFocusStart",c),c(),l=!0,i=!1}function I(){const{ownerWindow:o}=e.internalEngine();o.clearTimeout(u),u=o.setTimeout(P,p[e.selectedScrollSnap()]),s=new Date().getTime(),e.emit("autoplay:timerset")}function D(){const{ownerWindow:o}=e.internalEngine();o.clearTimeout(u),u=0,s=null,e.emit("autoplay:timerstopped")}function r(){if(!l){if(h()){y=!0;return}i||e.emit("autoplay:play"),I(),i=!0}}function c(){l||(i&&e.emit("autoplay:stop"),D(),i=!1)}function T(){if(h())return y=i,c();y&&r()}function h(){const{ownerDocument:o}=e.internalEngine();return o.visibilityState==="hidden"}function O(){f||c()}function w(){f||r()}function _(){f=!0,c()}function H(){f=!1,r()}function L(o){typeof o<"u"&&(d=o),r()}function k(){i&&c()}function A(){i&&r()}function F(){return i}function P(){const{index:o}=e.internalEngine(),m=o.clone().add(1).get(),x=e.scrollSnapList().length-1,j=t.stopOnLastSnap&&m===x;if(e.canScrollNext()?e.scrollNext(d):e.scrollTo(0,d),e.emit("autoplay:select"),j)return c();r()}function C(){if(!s)return null;const o=p[e.selectedScrollSnap()],m=new Date().getTime()-s;return o-m}return{name:"autoplay",options:a,init:E,destroy:v,play:L,stop:k,reset:A,isPlaying:F,timeUntilNext:C}}b.globalOptions=void 0;const oe=()=>{const a=B(l=>l.lang),{data:t,isPending:e}=q({queryKey:["partners",a],queryFn:()=>W(a),select:({data:l})=>l.data});return{data:t,isPending:e}},se=({className:a})=>{const[t]=z({loop:!0,align:"start"},[b({delay:2e3,stopOnInteraction:!1})]),{data:e}=oe(),{t:l}=K("home"),{title:p}=l("partners",{returnObjects:!0});return n.jsx("section",{className:Q("",a),children:n.jsxs(V,{className:"flex flex-col gap-10 relative w-full",children:[n.jsx("div",{className:"flex item-center justify-between",children:n.jsx("h2",{className:"h2",children:p})}),n.jsx("div",{ref:t,className:"embla overflow-hidden",children:n.jsx("div",{className:"embla__container flex",children:e==null?void 0:e.map((s,u)=>{var i,f;return s.link?n.jsx($,{target:"_blank",to:s.link,className:"bg-[#E0E6EB] flex embla__slide mr-6 min-w-0 flex-[0_0_288px] items-center justify-center h-[128px] w-full",children:n.jsx("img",{src:(i=s==null?void 0:s.image)==null?void 0:i.path,alt:"logo",className:"object-contain"})},u):n.jsx("div",{className:"bg-[#E0E6EB] flex embla__slide mr-6 min-w-0 flex-[0_0_288px] items-center justify-center h-[128px] w-full",children:n.jsx("img",{src:(f=s==null?void 0:s.image)==null?void 0:f.path,alt:"logo",className:"object-contain"})},u)})})})]})})};function re(){return n.jsxs("div",{className:"flex flex-col gap-20",children:[n.jsx(G,{}),n.jsx(J,{}),n.jsx(X,{}),n.jsx(Y,{}),n.jsx(se,{}),n.jsx(Z,{})]})}export{re as default}; +import{u as B,b as q,g as W,c as z,d as K,j as n,e as Q,C as V,f as G,h as J,k as X,l as Y,m as Z}from"./ui-library-DpZprY9x.js";import{L as $}from"./react-vendor-Y0eyvj1J.js";const ee={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function te(a,t){const e=a.scrollSnapList();return typeof t=="number"?e.map(()=>t):t(e,a)}function ne(a,t){const e=a.rootNode();return t&&t(e)||e}function b(a={}){let t,e,l,p,s=null,u=0,i=!1,f=!1,y=!1,d=!1;function E(o,m){e=o;const{mergeOptions:x,optionsAtMedia:j}=m,M=x(ee,b.globalOptions),R=x(M,a);if(t=j(R),e.scrollSnapList().length<=1)return;d=t.jump,l=!1,p=te(e,t.delay);const{eventStore:g,ownerDocument:U}=e.internalEngine(),N=!!e.internalEngine().options.watchDrag,S=ne(e,t.rootNode);g.add(U,"visibilitychange",T),N&&e.on("pointerDown",O),N&&!t.stopOnInteraction&&e.on("pointerUp",w),t.stopOnMouseEnter&&g.add(S,"mouseenter",_),t.stopOnMouseEnter&&!t.stopOnInteraction&&g.add(S,"mouseleave",H),t.stopOnFocusIn&&e.on("slideFocusStart",c),t.stopOnFocusIn&&!t.stopOnInteraction&&g.add(e.containerNode(),"focusout",r),t.playOnInit&&r()}function v(){e.off("pointerDown",O).off("pointerUp",w).off("slideFocusStart",c),c(),l=!0,i=!1}function I(){const{ownerWindow:o}=e.internalEngine();o.clearTimeout(u),u=o.setTimeout(P,p[e.selectedScrollSnap()]),s=new Date().getTime(),e.emit("autoplay:timerset")}function D(){const{ownerWindow:o}=e.internalEngine();o.clearTimeout(u),u=0,s=null,e.emit("autoplay:timerstopped")}function r(){if(!l){if(h()){y=!0;return}i||e.emit("autoplay:play"),I(),i=!0}}function c(){l||(i&&e.emit("autoplay:stop"),D(),i=!1)}function T(){if(h())return y=i,c();y&&r()}function h(){const{ownerDocument:o}=e.internalEngine();return o.visibilityState==="hidden"}function O(){f||c()}function w(){f||r()}function _(){f=!0,c()}function H(){f=!1,r()}function L(o){typeof o<"u"&&(d=o),r()}function k(){i&&c()}function A(){i&&r()}function F(){return i}function P(){const{index:o}=e.internalEngine(),m=o.clone().add(1).get(),x=e.scrollSnapList().length-1,j=t.stopOnLastSnap&&m===x;if(e.canScrollNext()?e.scrollNext(d):e.scrollTo(0,d),e.emit("autoplay:select"),j)return c();r()}function C(){if(!s)return null;const o=p[e.selectedScrollSnap()],m=new Date().getTime()-s;return o-m}return{name:"autoplay",options:a,init:E,destroy:v,play:L,stop:k,reset:A,isPlaying:F,timeUntilNext:C}}b.globalOptions=void 0;const oe=()=>{const a=B(l=>l.lang),{data:t,isPending:e}=q({queryKey:["partners",a],queryFn:()=>W(a),select:({data:l})=>l.data});return{data:t,isPending:e}},se=({className:a})=>{const[t]=z({loop:!0,align:"start"},[b({delay:2e3,stopOnInteraction:!1})]),{data:e}=oe(),{t:l}=K("home"),{title:p}=l("partners",{returnObjects:!0});return n.jsx("section",{className:Q("",a),children:n.jsxs(V,{className:"flex flex-col gap-10 relative w-full",children:[n.jsx("div",{className:"flex item-center justify-between",children:n.jsx("h2",{className:"h2",children:p})}),n.jsx("div",{ref:t,className:"embla overflow-hidden",children:n.jsx("div",{className:"embla__container flex",children:e==null?void 0:e.map((s,u)=>{var i,f;return s.link?n.jsx($,{target:"_blank",to:s.link,className:"bg-[#E0E6EB] flex embla__slide mr-6 min-w-0 flex-[0_0_288px] items-center justify-center h-[128px] w-full",children:n.jsx("img",{src:(i=s==null?void 0:s.image)==null?void 0:i.path,alt:"logo",className:"object-contain"})},u):n.jsx("div",{className:"bg-[#E0E6EB] flex embla__slide mr-6 min-w-0 flex-[0_0_288px] items-center justify-center h-[128px] w-full",children:n.jsx("img",{src:(f=s==null?void 0:s.image)==null?void 0:f.path,alt:"logo",className:"object-contain"})},u)})})})]})})};function re(){return n.jsxs("div",{className:"flex flex-col gap-20",children:[n.jsx(G,{}),n.jsx(J,{}),n.jsx(X,{}),n.jsx(Y,{}),n.jsx(se,{}),n.jsx(Z,{})]})}export{re as default}; diff --git a/dist/assets/index-8iPRmi9I.css b/dist/assets/index-8iPRmi9I.css deleted file mode 100644 index 3e68b78..0000000 --- a/dist/assets/index-8iPRmi9I.css +++ /dev/null @@ -1 +0,0 @@ -@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}.-bottom-6{bottom:-1.5rem}.-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%}.left-\[50\%\]{left:50%}.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-\[50\%\]{top:50%}.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}.mb-\[60px\]{margin-bottom:60px}.ml-3{margin-left:.75rem}.mr-6{margin-right:1.5rem}.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}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.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-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.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-5{height:1.25rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[124px\]{height:124px}.h-\[128px\]{height:128px}.h-\[160px\]{height:160px}.h-\[216px\]{height:216px}.h-\[220px\]{height:220px}.h-\[296px\]{height:296px}.h-\[300px\]{height:300px}.h-\[400px\]{height:400px}.h-auto{height:auto}.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-5{width:1.25rem}.w-9{width:2.25rem}.w-\[160px\]{width:160px}.w-\[18px\]{width:18px}.w-\[20\%\]{width:20%}.w-\[300px\]{width:300px}.w-\[70\%\]{width:70%}.w-\[75\%\]{width:75%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-\[1240px\]{max-width:1240px}.max-w-\[360px\]{max-width:360px}.max-w-\[392px\]{max-width:392px}.max-w-\[444px\]{max-width:444px}.max-w-\[808px\]{max-width:808px}.max-w-\[828px\]{max-width:828px}.max-w-\[888px\]{max-width:888px}.flex-\[0_0_288px\]{flex:0 0 288px}.flex-\[0_0_300px\]{flex:0 0 300px}.flex-\[0_0_50\%\]{flex:0 0 50%}.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))}.translate-x-\[-50\%\]{--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-\[-50\%\]{--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-0{gap:0px}.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-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * 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-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-\[\#E0E6EB\]{--tw-bg-opacity: 1;background-color:rgb(224 230 235 / 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-black\/80{background-color:#000c}.bg-primary{--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(238 237 244 / 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_08{--tw-bg-opacity: 1;background-color:rgb(212 132 0 / 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-contain{-o-object-fit:contain;object-fit:contain}.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-20{padding-top:5rem;padding-bottom:5rem}.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}.pt-6{padding-top:1.5rem}.\!text-left{text-align:left!important}.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-\[20px\]{font-size:20px}.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-10{line-height:2.5rem}.leading-\[130\%\]{line-height:130%}.leading-\[140\%\]{line-height:140%}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.\!text-on_primary{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.\!text-on_surface{--tw-text-opacity: 1 !important;color:rgb(44 40 40 / 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-black{--tw-text-opacity: 1;color:rgb(0 0 0 / 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-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / 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-200{transition-duration:.2s}.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-200{animation-duration:.2s}.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:28px}}.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}}.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))}.news-inner img{height:300px;-o-object-fit:cover;object-fit:cover}@media (min-width: 768px){.news-inner img{height:500px}}.news-inner a{--tw-text-opacity: 1;color:rgb(153 16 29 / var(--tw-text-opacity, 1));text-decoration-line:underline}.page-padding{padding-top:2.5rem;padding-bottom:5rem}@media (min-width: 768px){.page-padding{padding-top:5rem;padding-bottom:120px}}.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))}.input{display:flex;height:3.5rem;border-radius:2px;border-width:1px;background-color:transparent;padding:1rem;font-size:1rem;line-height:1.5rem;--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);--tw-ring-opacity: 1;--tw-ring-color: rgb(161 167 178 / var(--tw-ring-opacity, 1));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;font-family:Gilroy-Regular;font-weight:400}.input::file-selector-button{width:-moz-fit-content;width:fit-content;border-width:0px;--tw-bg-opacity: 1;background-color:rgb(221 203 205 / var(--tw-bg-opacity, 1));font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(29 38 55 / var(--tw-text-opacity, 1));outline:2px solid transparent;outline-offset:2px}.input:hover{--tw-ring-opacity: 1;--tw-ring-color: rgb(44 40 40 / var(--tw-ring-opacity, 1))}.input:focus{outline:2px solid transparent;outline-offset:2px;--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(3px + 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);--tw-ring-opacity: 1;--tw-ring-color: rgb(153 16 29 / var(--tw-ring-opacity, 1))}.input:focus-visible{outline:2px solid transparent;outline-offset:2px}.input:disabled{cursor:not-allowed;opacity:.5}.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-slate-300\/50:hover{background-color:#cbd5e180}.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-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.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\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.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-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.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\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.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-\[0_0_600px\]{flex:0 0 600px}.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\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}@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-20{margin-bottom:5rem}.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\:h-\[480px\]{height:480px}.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-3{grid-template-columns:repeat(3,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\:gap-10{gap:2.5rem}.md\:p-10{padding:2.5rem}.md\:p-6{padding:1.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\:pb-\[120px\]{padding-bottom:120px}.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-\[32px\]{font-size:32px}.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\:w-1\/2{width:50%}.lg\:w-\[220px\]{width:220px}.lg\:w-\[320px\]{width: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\:items-center{align-items:center}.lg\:gap-12{gap:3rem}.lg\:gap-6{gap:1.5rem}}@media (min-width: 1280px){.xl\:mb-8{margin-bottom:2rem}.xl\:hidden{display:none}.xl\:w-\[288px\]{width:288px}.xl\:w-\[392px\]{width:392px}}@media (min-width: 1536px){.\32xl\:w-\[40\%\]{width:40%}}.\[\&_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-C0sAoqjq.css b/dist/assets/index-C0sAoqjq.css new file mode 100644 index 0000000..0b28813 --- /dev/null +++ b/dist/assets/index-C0sAoqjq.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}.pointer-events-none{pointer-events:none}.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}.-bottom-6{bottom:-1.5rem}.-left-12{left:-3rem}.-right-12{right:-3rem}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.left-0{left:0}.left-1\/2{left:50%}.left-1\/3{left:33.333333%}.left-10{left:2.5rem}.left-2\.5{left:.625rem}.left-\[20\%\]{left:20%}.left-\[50\%\]{left:50%}.right-0{right:0}.right-10{right:2.5rem}.right-4{right:1rem}.right-6{right:1.5rem}.right-\[17\%\]{right:17%}.top-0{top:0}.top-1\/2{top:50%}.top-10{top:2.5rem}.top-2{top:.5rem}.top-2\.5{top:.625rem}.top-4{top:1rem}.top-8{top:2rem}.top-\[50\%\]{top:50%}.top-\[55\%\]{top:55%}.-z-10,.-z-\[10\]{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[100\]{z-index:100}.z-\[3\]{z-index:3}.z-\[5\]{z-index:5}.mx-4{margin-left:1rem;margin-right:1rem}.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}.mb-\[60px\]{margin-bottom:60px}.ml-3{margin-left:.75rem}.mr-10{margin-right:2.5rem}.mr-6{margin-right:1.5rem}.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}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.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-20{width:5rem;height:5rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-\[88px\]{width:88px;height:88px}.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-5{height:1.25rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[124px\]{height:124px}.h-\[128px\]{height:128px}.h-\[160px\]{height:160px}.h-\[216px\]{height:216px}.h-\[220px\]{height:220px}.h-\[296px\]{height:296px}.h-\[300px\]{height:300px}.h-\[350px\]{height:350px}.h-\[3px\]{height:3px}.h-\[400px\]{height:400px}.h-\[52px\]{height:52px}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-full{max-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-5{width:1.25rem}.w-9{width:2.25rem}.w-\[160px\]{width:160px}.w-\[18px\]{width:18px}.w-\[20\%\]{width:20%}.w-\[288px\]{width:288px}.w-\[300px\]{width:300px}.w-\[70\%\]{width:70%}.w-\[75\%\]{width:75%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-\[1240px\]{max-width:1240px}.max-w-\[360px\]{max-width:360px}.max-w-\[392px\]{max-width:392px}.max-w-\[444px\]{max-width:444px}.max-w-\[808px\]{max-width:808px}.max-w-\[828px\]{max-width:828px}.max-w-\[888px\]{max-width:888px}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-\[0_0_100\%\]{flex:0 0 100%}.flex-\[0_0_16px\]{flex:0 0 16px}.flex-\[0_0_19\.80\%\]{flex:0 0 19.8%}.flex-\[0_0_288px\]{flex:0 0 288px}.flex-\[0_0_300px\]{flex:0 0 300px}.flex-\[0_0_34\.65\%\]{flex:0 0 34.65%}.flex-\[0_0_45\.54\%\]{flex:0 0 45.54%}.flex-\[0_0_50\%\]{flex:0 0 50%}.flex-\[0_0_70\%\]{flex:0 0 70%}.flex-\[0_0_80\%\]{flex:0 0 80%}.flex-\[0_0_88px\]{flex:0 0 88px}.flex-\[0_0_90px\]{flex:0 0 90px}.flex-auto{flex:1 1 auto}.shrink-0{flex-shrink:0}.-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))}.translate-x-\[-50\%\]{--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-\[-50\%\]{--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}.resize{resize:both}.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}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.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-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * 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}.overflow-x-hidden{overflow-x:hidden}.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-\[2px\]{border-top-left-radius:2px;border-top-right-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-outline_v{--tw-border-opacity: 1;border-color:rgb(208 211 216 / 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-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.bg-\[\#2C57A752\]\/\[32\%\]{background-color:#2c57a752}.bg-\[\#D0D3D8\]{--tw-bg-opacity: 1;background-color:rgb(208 211 216 / var(--tw-bg-opacity, 1))}.bg-\[\#E0E6EB\]{--tw-bg-opacity: 1;background-color:rgb(224 230 235 / 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-black\/80{background-color:#000c}.bg-black\/90{background-color:#000000e6}.bg-primary{--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(238 237 244 / 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_08{--tw-bg-opacity: 1;background-color:rgb(212 132 0 / 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-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-2{padding:.5rem}.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-20{padding-top:5rem;padding-bottom:5rem}.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-40{padding-bottom:10rem}.pb-\[120px\]{padding-bottom:120px}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pt-10{padding-top:2.5rem}.pt-16{padding-top:4rem}.pt-28{padding-top:7rem}.pt-6{padding-top:1.5rem}.\!text-left{text-align:left!important}.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-\[20px\]{font-size:20px}.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}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.not-italic{font-style:normal}.leading-10{line-height:2.5rem}.leading-\[130\%\]{line-height:130%}.leading-\[140\%\]{line-height:140%}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.\!text-on_primary{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.\!text-on_surface{--tw-text-opacity: 1 !important;color:rgb(44 40 40 / 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-black{--tw-text-opacity: 1;color:rgb(0 0 0 / 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-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / 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-20{opacity:.2}.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-200{transition-duration:.2s}.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-200{animation-duration:.2s}.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:28px}}.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}}.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))}.news-inner img{height:300px;-o-object-fit:cover;object-fit:cover}@media (min-width: 768px){.news-inner img{height:500px}}.news-inner a{--tw-text-opacity: 1;color:rgb(153 16 29 / var(--tw-text-opacity, 1));text-decoration-line:underline}.page-padding{padding-top:2.5rem;padding-bottom:5rem}@media (min-width: 768px){.page-padding{padding-top:5rem;padding-bottom:120px}}.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))}.input{display:flex;height:3.5rem;border-radius:2px;border-width:1px;background-color:transparent;padding:1rem;font-size:1rem;line-height:1.5rem;--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);--tw-ring-opacity: 1;--tw-ring-color: rgb(161 167 178 / var(--tw-ring-opacity, 1));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;font-family:Gilroy-Regular;font-weight:400}.input::file-selector-button{width:-moz-fit-content;width:fit-content;border-width:0px;--tw-bg-opacity: 1;background-color:rgb(221 203 205 / var(--tw-bg-opacity, 1));font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(29 38 55 / var(--tw-text-opacity, 1));outline:2px solid transparent;outline-offset:2px}.input:hover{--tw-ring-opacity: 1;--tw-ring-color: rgb(44 40 40 / var(--tw-ring-opacity, 1))}.input:focus{outline:2px solid transparent;outline-offset:2px;--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(3px + 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);--tw-ring-opacity: 1;--tw-ring-color: rgb(153 16 29 / var(--tw-ring-opacity, 1))}.input:focus-visible{outline:2px solid transparent;outline-offset:2px}.input:disabled{cursor:not-allowed;opacity:.5}.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\:absolute:after{content:var(--tw-content);position:absolute}.after\:bottom-0:after{content:var(--tw-content);bottom:0}.after\:left-0:after{content:var(--tw-content);left:0}.after\:size-\[9px\]:after{content:var(--tw-content);width:9px;height:9px}.after\:h-0\.5:after{content:var(--tw-content);height:.125rem}.after\:w-full:after{content:var(--tw-content);width:100%}.after\:rounded:after{content:var(--tw-content);border-radius:.25rem}.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}.after\:opacity-0:after{content:var(--tw-content);opacity:0}.after\:opacity-100:after{content:var(--tw-content);opacity:1}.after\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;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))}.hover\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.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))}.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-slate-300\/50:hover{background-color:#cbd5e180}.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}.group:hover .group-hover\:scale-125{--tw-scale-x: 1.25;--tw-scale-y: 1.25;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))}.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-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.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\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.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-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.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\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.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\:flex{display:flex}.sm\:size-\[128px\]{width:128px;height:128px}.sm\:h-\[350px\]{height:350px}.sm\:max-w-sm{max-width:24rem}.sm\:flex-\[0_0_128px\]{flex:0 0 128px}.sm\:flex-\[0_0_600px\]{flex:0 0 600px}.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\:rounded-lg{border-radius:var(--radius)}.sm\:p-0{padding:0}.sm\:text-left{text-align:left}}@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-20{margin-bottom:5rem}.md\:mb-\[120px\]{margin-bottom:120px}.md\:ml-1{margin-left:.25rem}.md\:mt-20{margin-top:5rem}.md\:mt-6{margin-top:1.5rem}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:size-20{width:5rem;height: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\:h-\[480px\]{height:480px}.md\:h-\[500px\]{height:500px}.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-3{grid-template-columns:repeat(3,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\:gap-10{gap:2.5rem}.md\:gap-6{gap:1.5rem}.md\:p-10{padding:2.5rem}.md\:p-6{padding:1.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\:pb-\[120px\]{padding-bottom:120px}.md\:pt-10{padding-top:2.5rem}.md\:pt-20{padding-top:5rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-\[32px\]{font-size:32px}.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-\[700px\]{height:700px}.lg\:h-\[88px\]{height:88px}.lg\:max-h-\[600px\]{max-height:600px}.lg\:min-h-\[320px\]{min-height:320px}.lg\:w-1\/2{width:50%}.lg\:w-\[220px\]{width:220px}.lg\:w-\[320px\]{width: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\:items-center{align-items:center}.lg\:gap-12{gap:3rem}.lg\:gap-6{gap:1.5rem}.lg\:gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.lg\:gap-y-4{row-gap:1rem}.lg\:px-28{padding-left:7rem;padding-right:7rem}.lg\:px-\[20\%\]{padding-left:20%;padding-right:20%}}@media (min-width: 1280px){.xl\:mb-8{margin-bottom:2rem}.xl\:mr-20{margin-right:5rem}.xl\:hidden{display:none}.xl\:w-\[288px\]{width:288px}.xl\:w-\[392px\]{width:392px}}@media (min-width: 1536px){.\32xl\:w-\[40\%\]{width:40%}}.\[\&_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-FfIGJHYD.js b/dist/assets/index-Eiscv_zv.js similarity index 70% rename from dist/assets/index-FfIGJHYD.js rename to dist/assets/index-Eiscv_zv.js index b0e6856..4a9ba8a 100644 --- a/dist/assets/index-FfIGJHYD.js +++ b/dist/assets/index-Eiscv_zv.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/home-CF8NEmWD.js","assets/ui-library-BrD2Svyn.js","assets/react-vendor-Y0eyvj1J.js","assets/about-DbNOoBzB.js","assets/use-scroll-top-DE9DNB_I.js","assets/b2b-BnSbHXuC.js","assets/radio-group-DqnY3jUF.js","assets/become-sponsor-CsDPIJD4.js","assets/stend.data-Dr6usuZY.js","assets/stend-form-Bt01Gk3I.js","assets/contacts-BWVP1vvo.js","assets/news-BUTff1c8.js","assets/use-news-9Z2rsr5T.js","assets/news-inner-B7hc0gJR.js"])))=>i.map(i=>d[i]); -import{u as ke,i as Oe,j as b,H as Le,F as Re,Q as $e,a as Ce}from"./ui-library-BrD2Svyn.js";import{f as Pe,a as T,O as Ee,g as Te,h as Ne}from"./react-vendor-Y0eyvj1J.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function t(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=t(s);fetch(s.href,i)}})();const je="modulepreload",Ae=function(a){return"/"+a},ae={},j=function(e,t,n){let s=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),l=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));s=Promise.allSettled(t.map(o=>{if(o=Ae(o),o in ae)return;ae[o]=!0;const u=o.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":je,u||(f.as="script"),f.crossOrigin="",f.href=o,l&&f.setAttribute("nonce",l),document.head.appendChild(f),u)return new Promise((c,p)=>{f.addEventListener("load",c),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${o}`)))})}))}function i(r){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=r,window.dispatchEvent(l),!l.defaultPrevented)throw r}return s.then(r=>{for(const l of r||[])l.status==="rejected"&&i(l.reason);return e().catch(i)})};var G={},oe;function Fe(){if(oe)return G;oe=1;var a=Pe();return G.createRoot=a.createRoot,G.hydrateRoot=a.hydrateRoot,G}var De=Fe();const g=a=>typeof a=="string",H=()=>{let a,e;const t=new Promise((n,s)=>{a=n,e=s});return t.resolve=a,t.reject=e,t},le=a=>a==null?"":""+a,Ie=(a,e,t)=>{a.forEach(n=>{e[n]&&(t[n]=e[n])})},Ve=/###/g,ue=a=>a&&a.indexOf("###")>-1?a.replace(Ve,"."):a,ce=a=>!a||g(a),z=(a,e,t)=>{const n=g(e)?e.split("."):e;let s=0;for(;s{const{obj:n,k:s}=z(a,e,Object);if(n!==void 0||e.length===1){n[s]=t;return}let i=e[e.length-1],r=e.slice(0,e.length-1),l=z(a,r,Object);for(;l.obj===void 0&&r.length;)i=`${r[r.length-1]}.${i}`,r=r.slice(0,r.length-1),l=z(a,r,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${i}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${i}`]=t},Be=(a,e,t,n)=>{const{obj:s,k:i}=z(a,e,Object);s[i]=s[i]||[],s[i].push(t)},q=(a,e)=>{const{obj:t,k:n}=z(a,e);if(t&&Object.prototype.hasOwnProperty.call(t,n))return t[n]},Ke=(a,e,t)=>{const n=q(a,t);return n!==void 0?n:q(e,t)},Se=(a,e,t)=>{for(const n in e)n!=="__proto__"&&n!=="constructor"&&(n in a?g(a[n])||a[n]instanceof String||g(e[n])||e[n]instanceof String?t&&(a[n]=e[n]):Se(a[n],e[n],t):a[n]=e[n]);return a},I=a=>a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Ue={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Me=a=>g(a)?a.replace(/[&<>"'\/]/g,e=>Ue[e]):a;class He{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}const ze=[" ",",","?","!",";"],_e=new He(20),Je=(a,e,t)=>{e=e||"",t=t||"";const n=ze.filter(r=>e.indexOf(r)<0&&t.indexOf(r)<0);if(n.length===0)return!0;const s=_e.getRegExp(`(${n.map(r=>r==="?"?"\\?":r).join("|")})`);let i=!s.test(a);if(!i){const r=a.indexOf(t);r>0&&!s.test(a.substring(0,r))&&(i=!0)}return i},te=function(a,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!a)return;if(a[e])return Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0;const n=e.split(t);let s=a;for(let i=0;i-1&&oa==null?void 0:a.replace("_","-"),Ge={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,e){var t,n;(n=(t=console==null?void 0:console[a])==null?void 0:t.apply)==null||n.call(t,console,e)}};class Y{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Ge,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n{this.observers[n]||(this.observers[n]=new Map);const s=this.observers[n].get(t)||0;this.observers[n].set(t,s+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s{let[l,o]=r;for(let u=0;u{let[l,o]=r;for(let u=0;u1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){var u,d;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,r=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.indexOf(".")>-1?l=e.split("."):(l=[e,t],n&&(Array.isArray(n)?l.push(...n):g(n)&&i?l.push(...n.split(i)):l.push(n)));const o=q(this.data,l);return!o&&!t&&!n&&e.indexOf(".")>-1&&(e=l[0],t=l[1],n=l.slice(2).join(".")),o||!r||!g(n)?o:te((d=(u=this.data)==null?void 0:u[e])==null?void 0:d[t],n,i)}addResource(e,t,n,s){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const r=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let l=[e,t];n&&(l=l.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(l=e.split("."),s=t,t=l[1]),this.addNamespaces(t),de(this.data,l,s),i.silent||this.emit("added",e,t,n,s)}addResources(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in n)(g(n[i])||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});s.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,s,i){let r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[e,t];e.indexOf(".")>-1&&(l=e.split("."),s=n,n=t,t=l[1]),this.addNamespaces(t);let o=q(this.data,l)||{};r.skipCopy||(n=JSON.parse(JSON.stringify(n))),s?Se(o,n,i):o={...o,...n},de(this.data,l,o),r.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(s=>t[s]&&Object.keys(t[s]).length>0)}toJSON(){return this.data}}var we={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,e,t,n,s){return a.forEach(i=>{var r;e=((r=this.processors[i])==null?void 0:r.process(e,t,n,s))??e}),e}};const he={},ge=a=>!g(a)&&typeof a!="boolean"&&typeof a!="number";class Z extends X{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Ie(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=E.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const n=this.resolve(e,t);return(n==null?void 0:n.res)!==void 0}extractFromKey(e,t){let n=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const s=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const r=n&&e.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Je(e,n,s);if(r&&!l){const o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:g(i)?[i]:i};const u=e.split(n);(n!==s||n===s&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(s)}return{key:e,namespaces:g(i)?[i]:i}}translate(e,t,n){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const s=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:r,namespaces:l}=this.extractFromKey(e[e.length-1],t),o=l[l.length-1],u=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode"){if(d){const O=t.nsSeparator||this.options.nsSeparator;return s?{res:`${o}${O}${r}`,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:o,usedParams:this.getUsedParamsDetails(t)}:`${o}${O}${r}`}return s?{res:r,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:o,usedParams:this.getUsedParamsDetails(t)}:r}const f=this.resolve(e,t);let c=f==null?void 0:f.res;const p=(f==null?void 0:f.usedKey)||r,h=(f==null?void 0:f.exactUsedKey)||r,m=["[object Number]","[object Function]","[object RegExp]"],x=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,S=t.count!==void 0&&!g(t.count),C=Z.hasDefaultValue(t),R=S?this.pluralResolver.getSuffix(u,t.count,t):"",B=t.ordinal&&S?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",K=S&&!t.ordinal&&t.count===0,v=K&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${R}`]||t[`defaultValue${B}`]||t.defaultValue;let w=c;k&&!c&&C&&(w=v);const F=ge(w),D=Object.prototype.toString.apply(w);if(k&&w&&F&&m.indexOf(D)<0&&!(g(x)&&Array.isArray(w))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const O=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,w,{...t,ns:l}):`key '${r} (${this.language})' returned an object instead of string.`;return s?(f.res=O,f.usedParams=this.getUsedParamsDetails(t),f):O}if(i){const O=Array.isArray(w),$=O?[]:{},ne=O?h:p;for(const P in w)if(Object.prototype.hasOwnProperty.call(w,P)){const N=`${ne}${i}${P}`;C&&!c?$[P]=this.translate(N,{...t,defaultValue:ge(v)?v[P]:void 0,joinArrays:!1,ns:l}):$[P]=this.translate(N,{...t,joinArrays:!1,ns:l}),$[P]===N&&($[P]=w[P])}c=$}}else if(k&&g(x)&&Array.isArray(c))c=c.join(x),c&&(c=this.extendTranslation(c,e,t,n));else{let O=!1,$=!1;!this.isValidLookup(c)&&C&&(O=!0,c=v),this.isValidLookup(c)||($=!0,c=r);const P=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&$?void 0:c,N=C&&v!==c&&this.options.updateMissing;if($||O||N){if(this.logger.log(N?"updateKey":"missingKey",u,o,r,N?v:c),i){const L=this.resolve(r,{...t,keySeparator:!1});L&&L.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let U=[];const J=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&J&&J[0])for(let L=0;L{var re;const ie=C&&M!==c?M:P;this.options.missingKeyHandler?this.options.missingKeyHandler(L,o,A,ie,N,t):(re=this.backendConnector)!=null&&re.saveMissing&&this.backendConnector.saveMissing(L,o,A,ie,N,t),this.emit("missingKey",L,o,A,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?U.forEach(L=>{const A=this.pluralResolver.getSuffixes(L,t);K&&t[`defaultValue${this.options.pluralSeparator}zero`]&&A.indexOf(`${this.options.pluralSeparator}zero`)<0&&A.push(`${this.options.pluralSeparator}zero`),A.forEach(M=>{se([L],r+M,t[`defaultValue${M}`]||v)})}):se(U,r,v))}c=this.extendTranslation(c,e,t,f,n),$&&c===r&&this.options.appendNamespaceToMissingKey&&(c=`${o}:${r}`),($||O)&&this.options.parseMissingKeyHandler&&(c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${o}:${r}`:r,O?c:void 0))}return s?(f.res=c,f.usedParams=this.getUsedParamsDetails(t),f):c}extendTranslation(e,t,n,s,i){var u,d;var r=this;if((u=this.i18nFormat)!=null&&u.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const f=g(e)&&(((d=n==null?void 0:n.interpolation)==null?void 0:d.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(f){const h=e.match(this.interpolator.nestingRegexp);c=h&&h.length}let p=n.replace&&!g(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),e=this.interpolator.interpolate(e,p,n.lng||this.language||s.usedLng,n),f){const h=e.match(this.interpolator.nestingRegexp),m=h&&h.length;c1&&arguments[1]!==void 0?arguments[1]:{},n,s,i,r,l;return g(e)&&(e=[e]),e.forEach(o=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(o,t),d=u.key;s=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const c=t.count!==void 0&&!g(t.count),p=c&&!t.ordinal&&t.count===0,h=t.context!==void 0&&(g(t.context)||typeof t.context=="number")&&t.context!=="",m=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);f.forEach(x=>{var k,S;this.isValidLookup(n)||(l=x,!he[`${m[0]}-${x}`]&&((k=this.utils)!=null&&k.hasLoadedNamespace)&&!((S=this.utils)!=null&&S.hasLoadedNamespace(l))&&(he[`${m[0]}-${x}`]=!0,this.logger.warn(`key "${s}" for languages "${m.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(C=>{var K;if(this.isValidLookup(n))return;r=C;const R=[d];if((K=this.i18nFormat)!=null&&K.addLookupKeys)this.i18nFormat.addLookupKeys(R,d,C,x,t);else{let v;c&&(v=this.pluralResolver.getSuffix(C,t.count,t));const w=`${this.options.pluralSeparator}zero`,F=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(R.push(d+v),t.ordinal&&v.indexOf(F)===0&&R.push(d+v.replace(F,this.options.pluralSeparator)),p&&R.push(d+w)),h){const D=`${d}${this.options.contextSeparator}${t.context}`;R.push(D),c&&(R.push(D+v),t.ordinal&&v.indexOf(F)===0&&R.push(D+v.replace(F,this.options.pluralSeparator)),p&&R.push(D+w))}}let B;for(;B=R.pop();)this.isValidLookup(n)||(i=B,n=this.getResource(C,x,B,t))}))})}),{res:n,usedKey:s,exactUsedKey:i,usedLng:r,usedNS:l}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,n){var i;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(e,t,n,s):this.resourceStore.getResource(e,t,n,s)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!g(e.replace);let s=n?e.replace:e;if(n&&typeof e.count<"u"&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!n){s={...s};for(const i of t)delete s[i]}return s}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&e[n]!==void 0)return!0;return!1}}class pe{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=E.create("languageUtils")}getScriptPartFromCode(e){if(e=Q(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=Q(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(g(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(n=>{if(t)return;const s=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(s))&&(t=s)}),!t&&this.options.supportedLngs&&e.forEach(n=>{if(t)return;const s=this.getLanguagePartFromCode(n);if(this.isSupportedCode(s))return t=s;t=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&(i.indexOf("-")>0&&s.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===s||i.indexOf(s)===0&&s.length>1))return i})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),g(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),s=[],i=r=>{r&&(this.isSupportedCode(r)?s.push(r):this.logger.warn(`rejecting language code not found in supportedLngs: ${r}`))};return g(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):g(e)&&i(this.formatLanguageCode(e)),n.forEach(r=>{s.indexOf(r)<0&&i(this.formatLanguageCode(r))}),s}}const me={zero:0,one:1,two:2,few:3,many:4,other:5},xe={select:a=>a===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class We{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=E.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=Q(e==="dev"?"en":e),s=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:s});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let r;try{r=new Intl.PluralRules(n,{type:s})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),xe;if(!e.match(/-|_/))return xe;const o=this.languageUtils.getLanguagePartFromCode(e);r=this.getRule(o,t)}return this.pluralRulesCache[i]=r,r}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),(n==null?void 0:n.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(s=>`${t}${s}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((s,i)=>me[s]-me[i]).map(s=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(e,n);return s?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const be=function(a,e,t){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=Ke(a,e,t);return!i&&s&&g(t)&&(i=te(a,t,n),i===void 0&&(i=te(e,t,n))),i},ee=a=>a.replace(/\$/g,"$$$$");class qe{constructor(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=E.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:s,prefix:i,prefixEscaped:r,suffix:l,suffixEscaped:o,formatSeparator:u,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:c,nestingPrefixEscaped:p,nestingSuffix:h,nestingSuffixEscaped:m,nestingOptionsSeparator:x,maxReplaces:k,alwaysFormat:S}=e.interpolation;this.escape=t!==void 0?t:Me,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=i?I(i):r||"{{",this.suffix=l?I(l):o||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=c?I(c):p||I("$t("),this.nestingSuffix=h?I(h):m||I(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=k||1e3,this.alwaysFormat=S!==void 0?S:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,n)=>(t==null?void 0:t.source)===n?(t.lastIndex=0,t):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,s){var p;let i,r,l;const o=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=h=>{if(h.indexOf(this.formatSeparator)<0){const S=be(t,o,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,n,{...s,...t,interpolationkey:h}):S}const m=h.split(this.formatSeparator),x=m.shift().trim(),k=m.join(this.formatSeparator).trim();return this.format(be(t,o,x,this.options.keySeparator,this.options.ignoreJSONStructure),k,n,{...s,...t,interpolationkey:x})};this.resetRegExp();const d=(s==null?void 0:s.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((p=s==null?void 0:s.interpolation)==null?void 0:p.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>ee(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?ee(this.escape(h)):ee(h)}].forEach(h=>{for(l=0;i=h.regex.exec(e);){const m=i[1].trim();if(r=u(m),r===void 0)if(typeof d=="function"){const k=d(e,i,s);r=g(k)?k:""}else if(s&&Object.prototype.hasOwnProperty.call(s,m))r="";else if(f){r=i[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`),r="";else!g(r)&&!this.useRawValueToEscape&&(r=le(r));const x=h.safeValue(r);if(e=e.replace(i[0],x),f?(h.regex.lastIndex+=r.length,h.regex.lastIndex-=i[0].length):h.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,i,r;const l=(o,u)=>{const d=this.nestingOptionsSeparator;if(o.indexOf(d)<0)return o;const f=o.split(new RegExp(`${d}[ ]*{`));let c=`{${f[1]}`;o=f[0],c=this.interpolate(c,r);const p=c.match(/'/g),h=c.match(/"/g);(((p==null?void 0:p.length)??0)%2===0&&!h||h.length%2!==0)&&(c=c.replace(/'/g,'"'));try{r=JSON.parse(c),u&&(r={...u,...r})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${o}`,m),`${o}${d}${c}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,o};for(;s=this.nestingRegexp.exec(e);){let o=[];r={...n},r=r.replace&&!g(r.replace)?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const d=s[1].split(this.formatSeparator).map(f=>f.trim());s[1]=d.shift(),o=d,u=!0}if(i=t(l.call(this,s[1].trim(),r),r),i&&s[0]===e&&!g(i))return i;g(i)||(i=le(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`),i=""),u&&(i=o.reduce((d,f)=>this.format(d,f,n.lng,{...n,interpolationkey:s[1].trim()}),i.trim())),e=e.replace(s[0],i),this.regexp.lastIndex=0}return e}}const Qe=a=>{let e=a.toLowerCase().trim();const t={};if(a.indexOf("(")>-1){const n=a.split("(");e=n[0].toLowerCase().trim();const s=n[1].substring(0,n[1].length-1);e==="currency"&&s.indexOf(":")<0?t.currency||(t.currency=s.trim()):e==="relativetime"&&s.indexOf(":")<0?t.range||(t.range=s.trim()):s.split(";").forEach(r=>{if(r){const[l,...o]=r.split(":"),u=o.join(":").trim().replace(/^'+|'+$/g,""),d=l.trim();t[d]||(t[d]=u),u==="false"&&(t[d]=!1),u==="true"&&(t[d]=!0),isNaN(u)||(t[d]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},V=a=>{const e={};return(t,n,s)=>{let i=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(i={...i,[s.interpolationkey]:void 0});const r=n+JSON.stringify(i);let l=e[r];return l||(l=a(Q(n),s),e[r]=l),l(t)}};class Ye{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=E.create("formatter"),this.options=e,this.formats={number:V((t,n)=>{const s=new Intl.NumberFormat(t,{...n});return i=>s.format(i)}),currency:V((t,n)=>{const s=new Intl.NumberFormat(t,{...n,style:"currency"});return i=>s.format(i)}),datetime:V((t,n)=>{const s=new Intl.DateTimeFormat(t,{...n});return i=>s.format(i)}),relativetime:V((t,n)=>{const s=new Intl.RelativeTimeFormat(t,{...n});return i=>s.format(i,n.range||"day")}),list:V((t,n)=>{const s=new Intl.ListFormat(t,{...n});return i=>s.format(i)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=V(t)}format(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(l=>l.indexOf(")")>-1)){const l=i.findIndex(o=>o.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,l)].join(this.formatSeparator)}return i.reduce((l,o)=>{var f;const{formatName:u,formatOptions:d}=Qe(o);if(this.formats[u]){let c=l;try{const p=((f=s==null?void 0:s.formatParams)==null?void 0:f[s.interpolationkey])||{},h=p.locale||p.lng||s.locale||s.lng||n;c=this.formats[u](l,h,{...d,...s,...p})}catch(p){this.logger.warn(p)}return c}else this.logger.warn(`there was no format function for ${u}`);return l},e)}}const Ze=(a,e)=>{a.pending[e]!==void 0&&(delete a.pending[e],a.pendingCount--)};class Xe extends X{constructor(e,t,n){var i,r;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=s,this.logger=E.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],(r=(i=this.backend)==null?void 0:i.init)==null||r.call(i,n,s.backend,s)}queueLoad(e,t,n,s){const i={},r={},l={},o={};return e.forEach(u=>{let d=!0;t.forEach(f=>{const c=`${u}|${f}`;!n.reload&&this.store.hasResourceBundle(u,f)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?r[c]===void 0&&(r[c]=!0):(this.state[c]=1,d=!1,r[c]===void 0&&(r[c]=!0),i[c]===void 0&&(i[c]=!0),o[f]===void 0&&(o[f]=!0)))}),d||(l[u]=!0)}),(Object.keys(i).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(r),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(o)}}loaded(e,t,n){const s=e.split("|"),i=s[0],r=s[1];t&&this.emit("failedLoading",i,r,t),!t&&n&&this.store.addResourceBundle(i,r,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const l={};this.queue.forEach(o=>{Be(o.loaded,[i],r),Ze(o,e),t&&o.errors.push(t),o.pendingCount===0&&!o.done&&(Object.keys(o.loaded).forEach(u=>{l[u]||(l[u]={});const d=o.loaded[u];d.length&&d.forEach(f=>{l[u][f]===void 0&&(l[u][f]=!0)})}),o.done=!0,o.errors.length?o.callback(o.errors):o.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(o=>!o.done)}read(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,r=arguments.length>5?arguments[5]:void 0;if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:s,wait:i,callback:r});return}this.readingCalls++;const l=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&s{this.read.call(this,e,t,n,s+1,i*2,r)},i);return}r(u,d)},o=this.backend[n].bind(this.backend);if(o.length===2){try{const u=o(e,t);u&&typeof u.then=="function"?u.then(d=>l(null,d)).catch(l):l(null,u)}catch(u){l(u)}return}return o(e,t,l)}prepareLoading(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();g(e)&&(e=this.languageUtils.toResolveHierarchy(e)),g(t)&&(t=[t]);const i=this.queueLoad(e,t,n,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(r=>{this.loadOne(r)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=e.split("|"),s=n[0],i=n[1];this.read(s,i,"read",void 0,void 0,(r,l)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${s} failed`,r),!r&&l&&this.logger.log(`${t}loaded namespace ${i} for language ${s}`,l),this.loaded(e,r,l)})}saveMissing(e,t,n,s,i){var o,u,d,f,c;let r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((u=(o=this.services)==null?void 0:o.utils)!=null&&u.hasLoadedNamespace&&!((f=(d=this.services)==null?void 0:d.utils)!=null&&f.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if((c=this.backend)!=null&&c.create){const p={...r,isUpdate:i},h=this.backend.create.bind(this.backend);if(h.length<6)try{let m;h.length===5?m=h(e,t,n,s,p):m=h(e,t,n,s),m&&typeof m.then=="function"?m.then(x=>l(null,x)).catch(l):l(null,m)}catch(m){l(m)}else h(e,t,n,s,l,p)}!e||!e[0]||this.store.addResource(e[0],t,n,s)}}}const ye=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:a=>{let e={};if(typeof a[1]=="object"&&(e=a[1]),g(a[1])&&(e.defaultValue=a[1]),g(a[2])&&(e.tDescription=a[2]),typeof a[2]=="object"||typeof a[3]=="object"){const t=a[3]||a[2];Object.keys(t).forEach(n=>{e[n]=t[n]})}return e},interpolation:{escapeValue:!0,format:a=>a,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),ve=a=>{var e,t;return g(a.ns)&&(a.ns=[a.ns]),g(a.fallbackLng)&&(a.fallbackLng=[a.fallbackLng]),g(a.fallbackNS)&&(a.fallbackNS=[a.fallbackNS]),((t=(e=a.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),typeof a.initImmediate=="boolean"&&(a.initAsync=a.initImmediate),a},W=()=>{},et=a=>{Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(t=>{typeof a[t]=="function"&&(a[t]=a[t].bind(a))})};class _ extends X{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ve(e),this.services={},this.logger=E,this.modules={external:[]},et(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(g(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const s=ye();this.options={...s,...this.options,...ve(t)},this.options.interpolation={...s.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?E.init(i(this.modules.logger),this.options):E.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=Ye;const f=new pe(this.options);this.store=new fe(this.options.resources,this.options);const c=this.services;c.logger=E,c.resourceStore=this.store,c.languageUtils=f,c.pluralResolver=new We(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(c.formatter=i(d),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new qe(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new Xe(i(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(p){for(var h=arguments.length,m=new Array(h>1?h-1:0),x=1;x1?h-1:0),x=1;x{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,n||(n=W),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return e.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return e.store[d](...arguments),e}});const o=H(),u=()=>{const d=(f,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(c),n(f,c)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),o}loadResources(e){var i,r;let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:W;const s=g(e)?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if((s==null?void 0:s.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const l=[],o=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&l.indexOf(f)<0&&l.push(f)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>o(d)),(r=(i=this.options.preload)==null?void 0:i.forEach)==null||r.call(i,u=>o(u)),this.services.backendConnector.load(l,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(u)})}else n(null)}reloadResources(e,t,n){const s=H();return typeof e=="function"&&(n=e,e=void 0),typeof t=="function"&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=W),this.services.backendConnector.reload(e,t,i=>{s.resolve(),n(i)}),s}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&we.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const s=H();this.emit("languageChanging",e);const i=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},r=(o,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve(function(){return n.t(...arguments)}),t&&t(o,function(){return n.t(...arguments)})},l=o=>{var d,f;!e&&!o&&this.services.languageDetector&&(o=[]);const u=g(o)?o:this.services.languageUtils.getBestMatchFromCodes(o);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),(f=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||f.call(d,u)),this.loadResources(u,c=>{r(c,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e),s}getFixedT(e,t,n){var s=this;const i=function(r,l){let o;if(typeof l!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f`${o.keyPrefix}${c}${h}`):p=o.keyPrefix?`${o.keyPrefix}${c}${r}`:r,s.t(p,o)};return g(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){var s;for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const r=(l,o)=>{const u=this.services.backendConnector.state[`${l}|${o}`];return u===-1||u===0||u===2};if(t.precheck){const l=t.precheck(this,r);if(l!==void 0)return l}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||r(n,e)&&(!s||r(i,e)))}loadNamespaces(e,t){const n=H();return this.options.ns?(g(e)&&(e=[e]),e.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{n.resolve(),t&&t(s)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=H();g(e)&&(e=[e]);const s=this.options.preload||[],i=e.filter(r=>s.indexOf(r)<0&&this.services.languageUtils.isSupportedCode(r));return i.length?(this.options.preload=s.concat(i),this.loadResources(r=>{n.resolve(),t&&t(r)}),n):(t&&t(),Promise.resolve())}dir(e){var s,i;if(e||(e=this.resolvedLanguage||(((s=this.languages)==null?void 0:s.length)>0?this.languages[0]:this.language)),!e)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=((i=this.services)==null?void 0:i.languageUtils)||new pe(ye());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new _(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:W;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const s={...this.options,...e,isClone:!0},i=new _(s);if((e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(l=>{i[l]=this[l]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n){const l=Object.keys(this.store.data).reduce((o,u)=>(o[u]={...this.store.data[u]},Object.keys(o[u]).reduce((d,f)=>(d[f]={...o[u][f]},d),{})),{});i.store=new fe(l,s),i.services.resourceStore=i.store}return i.translator=new Z(i.services,s),i.translator.on("*",function(l){for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d{const a=ke(e=>e.lang);return T.useEffect(()=>{y.changeLanguage(a)},[a]),null};function cn(){return b.jsxs("main",{className:"flex flex-col min-h-screen",children:[b.jsx(un,{}),b.jsx(Le,{}),b.jsx("div",{className:"flex-auto",children:b.jsx(Ee,{})}),b.jsx(Re,{})]})}const dn=T.lazy(()=>j(()=>import("./home-CF8NEmWD.js"),__vite__mapDeps([0,1,2]))),fn=T.lazy(()=>j(()=>import("./about-DbNOoBzB.js"),__vite__mapDeps([3,1,2,4]))),hn=T.lazy(()=>j(()=>import("./b2b-BnSbHXuC.js"),__vite__mapDeps([5,1,2,6,4]))),gn=T.lazy(()=>j(()=>import("./become-sponsor-CsDPIJD4.js"),__vite__mapDeps([7,1,2,6,4,8]))),pn=T.lazy(()=>j(()=>import("./stend-form-Bt01Gk3I.js"),__vite__mapDeps([9,1,2,6,8]))),mn=T.lazy(()=>j(()=>import("./contacts-BWVP1vvo.js"),__vite__mapDeps([10,1,2,4]))),xn=T.lazy(()=>j(()=>import("./news-BUTff1c8.js"),__vite__mapDeps([11,1,2,12,4]))),bn=T.lazy(()=>j(()=>import("./news-inner-B7hc0gJR.js"),__vite__mapDeps([13,1,2,12,4]))),yn=Te([{element:b.jsx(cn,{}),path:"/",children:[{element:b.jsx(dn,{}),path:""},{element:b.jsx(fn,{}),path:"/about"},{element:b.jsx(hn,{}),path:"/B2B-B2G"},{element:b.jsx(gn,{}),path:"/become-sponsor"},{element:b.jsx(pn,{}),path:"/stend-form"},{element:b.jsx(mn,{}),path:"/contacts"},{element:b.jsx(xn,{}),path:"/news"},{element:b.jsx(bn,{}),path:"/news/:id"}]}]),vn=new $e;De.createRoot(document.getElementById("root")).render(b.jsx(T.StrictMode,{children:b.jsx(Ce,{client:vn,children:b.jsx(Ne,{router:yn})})})); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/home-DiD_F5cl.js","assets/ui-library-DpZprY9x.js","assets/react-vendor-Y0eyvj1J.js","assets/about-CbefH2MY.js","assets/use-scroll-top-DE9DNB_I.js","assets/b2b-DX2AQ1Li.js","assets/radio-group-D60hoBlK.js","assets/become-sponsor-CJzEabdb.js","assets/stend.data-Dr6usuZY.js","assets/stend-form-DxTHEFjq.js","assets/contacts-BVrgsNWG.js","assets/news---GzbsqQ.js","assets/use-news-DRGMJQe9.js","assets/news-inner-obez-6eR.js","assets/participants-YmKBWS5u.js","assets/media-Pq1BLnyt.js"])))=>i.map(i=>d[i]); +import{u as ke,i as Oe,j as b,H as Le,F as Re,Q as Pe,a as $e}from"./ui-library-DpZprY9x.js";import{f as Ce,a as R,O as Ee,g as Te,h as Ne}from"./react-vendor-Y0eyvj1J.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function t(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=t(s);fetch(s.href,i)}})();const je="modulepreload",Ae=function(a){return"/"+a},ae={},N=function(e,t,n){let s=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),l=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));s=Promise.allSettled(t.map(o=>{if(o=Ae(o),o in ae)return;ae[o]=!0;const u=o.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":je,u||(f.as="script"),f.crossOrigin="",f.href=o,l&&f.setAttribute("nonce",l),document.head.appendChild(f),u)return new Promise((c,p)=>{f.addEventListener("load",c),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${o}`)))})}))}function i(r){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=r,window.dispatchEvent(l),!l.defaultPrevented)throw r}return s.then(r=>{for(const l of r||[])l.status==="rejected"&&i(l.reason);return e().catch(i)})};var G={},oe;function Fe(){if(oe)return G;oe=1;var a=Ce();return G.createRoot=a.createRoot,G.hydrateRoot=a.hydrateRoot,G}var De=Fe();const g=a=>typeof a=="string",_=()=>{let a,e;const t=new Promise((n,s)=>{a=n,e=s});return t.resolve=a,t.reject=e,t},le=a=>a==null?"":""+a,Ie=(a,e,t)=>{a.forEach(n=>{e[n]&&(t[n]=e[n])})},Ve=/###/g,ue=a=>a&&a.indexOf("###")>-1?a.replace(Ve,"."):a,ce=a=>!a||g(a),H=(a,e,t)=>{const n=g(e)?e.split("."):e;let s=0;for(;s{const{obj:n,k:s}=H(a,e,Object);if(n!==void 0||e.length===1){n[s]=t;return}let i=e[e.length-1],r=e.slice(0,e.length-1),l=H(a,r,Object);for(;l.obj===void 0&&r.length;)i=`${r[r.length-1]}.${i}`,r=r.slice(0,r.length-1),l=H(a,r,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${i}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${i}`]=t},Be=(a,e,t,n)=>{const{obj:s,k:i}=H(a,e,Object);s[i]=s[i]||[],s[i].push(t)},q=(a,e)=>{const{obj:t,k:n}=H(a,e);if(t&&Object.prototype.hasOwnProperty.call(t,n))return t[n]},Ke=(a,e,t)=>{const n=q(a,t);return n!==void 0?n:q(e,t)},Se=(a,e,t)=>{for(const n in e)n!=="__proto__"&&n!=="constructor"&&(n in a?g(a[n])||a[n]instanceof String||g(e[n])||e[n]instanceof String?t&&(a[n]=e[n]):Se(a[n],e[n],t):a[n]=e[n]);return a},I=a=>a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Ue={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Me=a=>g(a)?a.replace(/[&<>"'\/]/g,e=>Ue[e]):a;class _e{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}const He=[" ",",","?","!",";"],ze=new _e(20),Je=(a,e,t)=>{e=e||"",t=t||"";const n=He.filter(r=>e.indexOf(r)<0&&t.indexOf(r)<0);if(n.length===0)return!0;const s=ze.getRegExp(`(${n.map(r=>r==="?"?"\\?":r).join("|")})`);let i=!s.test(a);if(!i){const r=a.indexOf(t);r>0&&!s.test(a.substring(0,r))&&(i=!0)}return i},te=function(a,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!a)return;if(a[e])return Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0;const n=e.split(t);let s=a;for(let i=0;i-1&&oa==null?void 0:a.replace("_","-"),Ge={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,e){var t,n;(n=(t=console==null?void 0:console[a])==null?void 0:t.apply)==null||n.call(t,console,e)}};class Y{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Ge,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n{this.observers[n]||(this.observers[n]=new Map);const s=this.observers[n].get(t)||0;this.observers[n].set(t,s+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s{let[l,o]=r;for(let u=0;u{let[l,o]=r;for(let u=0;u1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){var u,d;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,r=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.indexOf(".")>-1?l=e.split("."):(l=[e,t],n&&(Array.isArray(n)?l.push(...n):g(n)&&i?l.push(...n.split(i)):l.push(n)));const o=q(this.data,l);return!o&&!t&&!n&&e.indexOf(".")>-1&&(e=l[0],t=l[1],n=l.slice(2).join(".")),o||!r||!g(n)?o:te((d=(u=this.data)==null?void 0:u[e])==null?void 0:d[t],n,i)}addResource(e,t,n,s){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const r=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let l=[e,t];n&&(l=l.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(l=e.split("."),s=t,t=l[1]),this.addNamespaces(t),de(this.data,l,s),i.silent||this.emit("added",e,t,n,s)}addResources(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in n)(g(n[i])||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});s.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,s,i){let r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[e,t];e.indexOf(".")>-1&&(l=e.split("."),s=n,n=t,t=l[1]),this.addNamespaces(t);let o=q(this.data,l)||{};r.skipCopy||(n=JSON.parse(JSON.stringify(n))),s?Se(o,n,i):o={...o,...n},de(this.data,l,o),r.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(s=>t[s]&&Object.keys(t[s]).length>0)}toJSON(){return this.data}}var we={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,e,t,n,s){return a.forEach(i=>{var r;e=((r=this.processors[i])==null?void 0:r.process(e,t,n,s))??e}),e}};const he={},ge=a=>!g(a)&&typeof a!="boolean"&&typeof a!="number";class Z extends X{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Ie(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=T.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const n=this.resolve(e,t);return(n==null?void 0:n.res)!==void 0}extractFromKey(e,t){let n=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const s=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const r=n&&e.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Je(e,n,s);if(r&&!l){const o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:g(i)?[i]:i};const u=e.split(n);(n!==s||n===s&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(s)}return{key:e,namespaces:g(i)?[i]:i}}translate(e,t,n){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const s=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:r,namespaces:l}=this.extractFromKey(e[e.length-1],t),o=l[l.length-1],u=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode"){if(d){const O=t.nsSeparator||this.options.nsSeparator;return s?{res:`${o}${O}${r}`,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:o,usedParams:this.getUsedParamsDetails(t)}:`${o}${O}${r}`}return s?{res:r,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:o,usedParams:this.getUsedParamsDetails(t)}:r}const f=this.resolve(e,t);let c=f==null?void 0:f.res;const p=(f==null?void 0:f.usedKey)||r,h=(f==null?void 0:f.exactUsedKey)||r,m=["[object Number]","[object Function]","[object RegExp]"],x=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,S=t.count!==void 0&&!g(t.count),C=Z.hasDefaultValue(t),P=S?this.pluralResolver.getSuffix(u,t.count,t):"",B=t.ordinal&&S?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",K=S&&!t.ordinal&&t.count===0,v=K&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${P}`]||t[`defaultValue${B}`]||t.defaultValue;let w=c;k&&!c&&C&&(w=v);const F=ge(w),D=Object.prototype.toString.apply(w);if(k&&w&&F&&m.indexOf(D)<0&&!(g(x)&&Array.isArray(w))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const O=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,w,{...t,ns:l}):`key '${r} (${this.language})' returned an object instead of string.`;return s?(f.res=O,f.usedParams=this.getUsedParamsDetails(t),f):O}if(i){const O=Array.isArray(w),$=O?[]:{},ne=O?h:p;for(const E in w)if(Object.prototype.hasOwnProperty.call(w,E)){const j=`${ne}${i}${E}`;C&&!c?$[E]=this.translate(j,{...t,defaultValue:ge(v)?v[E]:void 0,joinArrays:!1,ns:l}):$[E]=this.translate(j,{...t,joinArrays:!1,ns:l}),$[E]===j&&($[E]=w[E])}c=$}}else if(k&&g(x)&&Array.isArray(c))c=c.join(x),c&&(c=this.extendTranslation(c,e,t,n));else{let O=!1,$=!1;!this.isValidLookup(c)&&C&&(O=!0,c=v),this.isValidLookup(c)||($=!0,c=r);const E=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&$?void 0:c,j=C&&v!==c&&this.options.updateMissing;if($||O||j){if(this.logger.log(j?"updateKey":"missingKey",u,o,r,j?v:c),i){const L=this.resolve(r,{...t,keySeparator:!1});L&&L.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let U=[];const J=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&J&&J[0])for(let L=0;L{var re;const ie=C&&M!==c?M:E;this.options.missingKeyHandler?this.options.missingKeyHandler(L,o,A,ie,j,t):(re=this.backendConnector)!=null&&re.saveMissing&&this.backendConnector.saveMissing(L,o,A,ie,j,t),this.emit("missingKey",L,o,A,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?U.forEach(L=>{const A=this.pluralResolver.getSuffixes(L,t);K&&t[`defaultValue${this.options.pluralSeparator}zero`]&&A.indexOf(`${this.options.pluralSeparator}zero`)<0&&A.push(`${this.options.pluralSeparator}zero`),A.forEach(M=>{se([L],r+M,t[`defaultValue${M}`]||v)})}):se(U,r,v))}c=this.extendTranslation(c,e,t,f,n),$&&c===r&&this.options.appendNamespaceToMissingKey&&(c=`${o}:${r}`),($||O)&&this.options.parseMissingKeyHandler&&(c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${o}:${r}`:r,O?c:void 0))}return s?(f.res=c,f.usedParams=this.getUsedParamsDetails(t),f):c}extendTranslation(e,t,n,s,i){var u,d;var r=this;if((u=this.i18nFormat)!=null&&u.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const f=g(e)&&(((d=n==null?void 0:n.interpolation)==null?void 0:d.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(f){const h=e.match(this.interpolator.nestingRegexp);c=h&&h.length}let p=n.replace&&!g(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),e=this.interpolator.interpolate(e,p,n.lng||this.language||s.usedLng,n),f){const h=e.match(this.interpolator.nestingRegexp),m=h&&h.length;c1&&arguments[1]!==void 0?arguments[1]:{},n,s,i,r,l;return g(e)&&(e=[e]),e.forEach(o=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(o,t),d=u.key;s=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const c=t.count!==void 0&&!g(t.count),p=c&&!t.ordinal&&t.count===0,h=t.context!==void 0&&(g(t.context)||typeof t.context=="number")&&t.context!=="",m=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);f.forEach(x=>{var k,S;this.isValidLookup(n)||(l=x,!he[`${m[0]}-${x}`]&&((k=this.utils)!=null&&k.hasLoadedNamespace)&&!((S=this.utils)!=null&&S.hasLoadedNamespace(l))&&(he[`${m[0]}-${x}`]=!0,this.logger.warn(`key "${s}" for languages "${m.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(C=>{var K;if(this.isValidLookup(n))return;r=C;const P=[d];if((K=this.i18nFormat)!=null&&K.addLookupKeys)this.i18nFormat.addLookupKeys(P,d,C,x,t);else{let v;c&&(v=this.pluralResolver.getSuffix(C,t.count,t));const w=`${this.options.pluralSeparator}zero`,F=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(P.push(d+v),t.ordinal&&v.indexOf(F)===0&&P.push(d+v.replace(F,this.options.pluralSeparator)),p&&P.push(d+w)),h){const D=`${d}${this.options.contextSeparator}${t.context}`;P.push(D),c&&(P.push(D+v),t.ordinal&&v.indexOf(F)===0&&P.push(D+v.replace(F,this.options.pluralSeparator)),p&&P.push(D+w))}}let B;for(;B=P.pop();)this.isValidLookup(n)||(i=B,n=this.getResource(C,x,B,t))}))})}),{res:n,usedKey:s,exactUsedKey:i,usedLng:r,usedNS:l}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,n){var i;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(e,t,n,s):this.resourceStore.getResource(e,t,n,s)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!g(e.replace);let s=n?e.replace:e;if(n&&typeof e.count<"u"&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!n){s={...s};for(const i of t)delete s[i]}return s}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&e[n]!==void 0)return!0;return!1}}class pe{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=T.create("languageUtils")}getScriptPartFromCode(e){if(e=Q(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=Q(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(g(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(n=>{if(t)return;const s=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(s))&&(t=s)}),!t&&this.options.supportedLngs&&e.forEach(n=>{if(t)return;const s=this.getLanguagePartFromCode(n);if(this.isSupportedCode(s))return t=s;t=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&(i.indexOf("-")>0&&s.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===s||i.indexOf(s)===0&&s.length>1))return i})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),g(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),s=[],i=r=>{r&&(this.isSupportedCode(r)?s.push(r):this.logger.warn(`rejecting language code not found in supportedLngs: ${r}`))};return g(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):g(e)&&i(this.formatLanguageCode(e)),n.forEach(r=>{s.indexOf(r)<0&&i(this.formatLanguageCode(r))}),s}}const me={zero:0,one:1,two:2,few:3,many:4,other:5},xe={select:a=>a===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class We{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=T.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=Q(e==="dev"?"en":e),s=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:s});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let r;try{r=new Intl.PluralRules(n,{type:s})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),xe;if(!e.match(/-|_/))return xe;const o=this.languageUtils.getLanguagePartFromCode(e);r=this.getRule(o,t)}return this.pluralRulesCache[i]=r,r}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),(n==null?void 0:n.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(s=>`${t}${s}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((s,i)=>me[s]-me[i]).map(s=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(e,n);return s?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const be=function(a,e,t){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=Ke(a,e,t);return!i&&s&&g(t)&&(i=te(a,t,n),i===void 0&&(i=te(e,t,n))),i},ee=a=>a.replace(/\$/g,"$$$$");class qe{constructor(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=T.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:s,prefix:i,prefixEscaped:r,suffix:l,suffixEscaped:o,formatSeparator:u,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:c,nestingPrefixEscaped:p,nestingSuffix:h,nestingSuffixEscaped:m,nestingOptionsSeparator:x,maxReplaces:k,alwaysFormat:S}=e.interpolation;this.escape=t!==void 0?t:Me,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=i?I(i):r||"{{",this.suffix=l?I(l):o||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=c?I(c):p||I("$t("),this.nestingSuffix=h?I(h):m||I(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=k||1e3,this.alwaysFormat=S!==void 0?S:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,n)=>(t==null?void 0:t.source)===n?(t.lastIndex=0,t):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,s){var p;let i,r,l;const o=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=h=>{if(h.indexOf(this.formatSeparator)<0){const S=be(t,o,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,n,{...s,...t,interpolationkey:h}):S}const m=h.split(this.formatSeparator),x=m.shift().trim(),k=m.join(this.formatSeparator).trim();return this.format(be(t,o,x,this.options.keySeparator,this.options.ignoreJSONStructure),k,n,{...s,...t,interpolationkey:x})};this.resetRegExp();const d=(s==null?void 0:s.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((p=s==null?void 0:s.interpolation)==null?void 0:p.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>ee(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?ee(this.escape(h)):ee(h)}].forEach(h=>{for(l=0;i=h.regex.exec(e);){const m=i[1].trim();if(r=u(m),r===void 0)if(typeof d=="function"){const k=d(e,i,s);r=g(k)?k:""}else if(s&&Object.prototype.hasOwnProperty.call(s,m))r="";else if(f){r=i[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`),r="";else!g(r)&&!this.useRawValueToEscape&&(r=le(r));const x=h.safeValue(r);if(e=e.replace(i[0],x),f?(h.regex.lastIndex+=r.length,h.regex.lastIndex-=i[0].length):h.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,i,r;const l=(o,u)=>{const d=this.nestingOptionsSeparator;if(o.indexOf(d)<0)return o;const f=o.split(new RegExp(`${d}[ ]*{`));let c=`{${f[1]}`;o=f[0],c=this.interpolate(c,r);const p=c.match(/'/g),h=c.match(/"/g);(((p==null?void 0:p.length)??0)%2===0&&!h||h.length%2!==0)&&(c=c.replace(/'/g,'"'));try{r=JSON.parse(c),u&&(r={...u,...r})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${o}`,m),`${o}${d}${c}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,o};for(;s=this.nestingRegexp.exec(e);){let o=[];r={...n},r=r.replace&&!g(r.replace)?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const d=s[1].split(this.formatSeparator).map(f=>f.trim());s[1]=d.shift(),o=d,u=!0}if(i=t(l.call(this,s[1].trim(),r),r),i&&s[0]===e&&!g(i))return i;g(i)||(i=le(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`),i=""),u&&(i=o.reduce((d,f)=>this.format(d,f,n.lng,{...n,interpolationkey:s[1].trim()}),i.trim())),e=e.replace(s[0],i),this.regexp.lastIndex=0}return e}}const Qe=a=>{let e=a.toLowerCase().trim();const t={};if(a.indexOf("(")>-1){const n=a.split("(");e=n[0].toLowerCase().trim();const s=n[1].substring(0,n[1].length-1);e==="currency"&&s.indexOf(":")<0?t.currency||(t.currency=s.trim()):e==="relativetime"&&s.indexOf(":")<0?t.range||(t.range=s.trim()):s.split(";").forEach(r=>{if(r){const[l,...o]=r.split(":"),u=o.join(":").trim().replace(/^'+|'+$/g,""),d=l.trim();t[d]||(t[d]=u),u==="false"&&(t[d]=!1),u==="true"&&(t[d]=!0),isNaN(u)||(t[d]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},V=a=>{const e={};return(t,n,s)=>{let i=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(i={...i,[s.interpolationkey]:void 0});const r=n+JSON.stringify(i);let l=e[r];return l||(l=a(Q(n),s),e[r]=l),l(t)}};class Ye{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=T.create("formatter"),this.options=e,this.formats={number:V((t,n)=>{const s=new Intl.NumberFormat(t,{...n});return i=>s.format(i)}),currency:V((t,n)=>{const s=new Intl.NumberFormat(t,{...n,style:"currency"});return i=>s.format(i)}),datetime:V((t,n)=>{const s=new Intl.DateTimeFormat(t,{...n});return i=>s.format(i)}),relativetime:V((t,n)=>{const s=new Intl.RelativeTimeFormat(t,{...n});return i=>s.format(i,n.range||"day")}),list:V((t,n)=>{const s=new Intl.ListFormat(t,{...n});return i=>s.format(i)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=V(t)}format(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(l=>l.indexOf(")")>-1)){const l=i.findIndex(o=>o.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,l)].join(this.formatSeparator)}return i.reduce((l,o)=>{var f;const{formatName:u,formatOptions:d}=Qe(o);if(this.formats[u]){let c=l;try{const p=((f=s==null?void 0:s.formatParams)==null?void 0:f[s.interpolationkey])||{},h=p.locale||p.lng||s.locale||s.lng||n;c=this.formats[u](l,h,{...d,...s,...p})}catch(p){this.logger.warn(p)}return c}else this.logger.warn(`there was no format function for ${u}`);return l},e)}}const Ze=(a,e)=>{a.pending[e]!==void 0&&(delete a.pending[e],a.pendingCount--)};class Xe extends X{constructor(e,t,n){var i,r;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=s,this.logger=T.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],(r=(i=this.backend)==null?void 0:i.init)==null||r.call(i,n,s.backend,s)}queueLoad(e,t,n,s){const i={},r={},l={},o={};return e.forEach(u=>{let d=!0;t.forEach(f=>{const c=`${u}|${f}`;!n.reload&&this.store.hasResourceBundle(u,f)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?r[c]===void 0&&(r[c]=!0):(this.state[c]=1,d=!1,r[c]===void 0&&(r[c]=!0),i[c]===void 0&&(i[c]=!0),o[f]===void 0&&(o[f]=!0)))}),d||(l[u]=!0)}),(Object.keys(i).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(r),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(o)}}loaded(e,t,n){const s=e.split("|"),i=s[0],r=s[1];t&&this.emit("failedLoading",i,r,t),!t&&n&&this.store.addResourceBundle(i,r,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const l={};this.queue.forEach(o=>{Be(o.loaded,[i],r),Ze(o,e),t&&o.errors.push(t),o.pendingCount===0&&!o.done&&(Object.keys(o.loaded).forEach(u=>{l[u]||(l[u]={});const d=o.loaded[u];d.length&&d.forEach(f=>{l[u][f]===void 0&&(l[u][f]=!0)})}),o.done=!0,o.errors.length?o.callback(o.errors):o.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(o=>!o.done)}read(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,r=arguments.length>5?arguments[5]:void 0;if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:s,wait:i,callback:r});return}this.readingCalls++;const l=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&s{this.read.call(this,e,t,n,s+1,i*2,r)},i);return}r(u,d)},o=this.backend[n].bind(this.backend);if(o.length===2){try{const u=o(e,t);u&&typeof u.then=="function"?u.then(d=>l(null,d)).catch(l):l(null,u)}catch(u){l(u)}return}return o(e,t,l)}prepareLoading(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();g(e)&&(e=this.languageUtils.toResolveHierarchy(e)),g(t)&&(t=[t]);const i=this.queueLoad(e,t,n,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(r=>{this.loadOne(r)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=e.split("|"),s=n[0],i=n[1];this.read(s,i,"read",void 0,void 0,(r,l)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${s} failed`,r),!r&&l&&this.logger.log(`${t}loaded namespace ${i} for language ${s}`,l),this.loaded(e,r,l)})}saveMissing(e,t,n,s,i){var o,u,d,f,c;let r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((u=(o=this.services)==null?void 0:o.utils)!=null&&u.hasLoadedNamespace&&!((f=(d=this.services)==null?void 0:d.utils)!=null&&f.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if((c=this.backend)!=null&&c.create){const p={...r,isUpdate:i},h=this.backend.create.bind(this.backend);if(h.length<6)try{let m;h.length===5?m=h(e,t,n,s,p):m=h(e,t,n,s),m&&typeof m.then=="function"?m.then(x=>l(null,x)).catch(l):l(null,m)}catch(m){l(m)}else h(e,t,n,s,l,p)}!e||!e[0]||this.store.addResource(e[0],t,n,s)}}}const ye=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:a=>{let e={};if(typeof a[1]=="object"&&(e=a[1]),g(a[1])&&(e.defaultValue=a[1]),g(a[2])&&(e.tDescription=a[2]),typeof a[2]=="object"||typeof a[3]=="object"){const t=a[3]||a[2];Object.keys(t).forEach(n=>{e[n]=t[n]})}return e},interpolation:{escapeValue:!0,format:a=>a,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),ve=a=>{var e,t;return g(a.ns)&&(a.ns=[a.ns]),g(a.fallbackLng)&&(a.fallbackLng=[a.fallbackLng]),g(a.fallbackNS)&&(a.fallbackNS=[a.fallbackNS]),((t=(e=a.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),typeof a.initImmediate=="boolean"&&(a.initAsync=a.initImmediate),a},W=()=>{},et=a=>{Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(t=>{typeof a[t]=="function"&&(a[t]=a[t].bind(a))})};class z extends X{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ve(e),this.services={},this.logger=T,this.modules={external:[]},et(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(g(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const s=ye();this.options={...s,...this.options,...ve(t)},this.options.interpolation={...s.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?T.init(i(this.modules.logger),this.options):T.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=Ye;const f=new pe(this.options);this.store=new fe(this.options.resources,this.options);const c=this.services;c.logger=T,c.resourceStore=this.store,c.languageUtils=f,c.pluralResolver=new We(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(c.formatter=i(d),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new qe(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new Xe(i(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(p){for(var h=arguments.length,m=new Array(h>1?h-1:0),x=1;x1?h-1:0),x=1;x{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,n||(n=W),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return e.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return e.store[d](...arguments),e}});const o=_(),u=()=>{const d=(f,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(c),n(f,c)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),o}loadResources(e){var i,r;let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:W;const s=g(e)?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if((s==null?void 0:s.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const l=[],o=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&l.indexOf(f)<0&&l.push(f)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>o(d)),(r=(i=this.options.preload)==null?void 0:i.forEach)==null||r.call(i,u=>o(u)),this.services.backendConnector.load(l,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(u)})}else n(null)}reloadResources(e,t,n){const s=_();return typeof e=="function"&&(n=e,e=void 0),typeof t=="function"&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=W),this.services.backendConnector.reload(e,t,i=>{s.resolve(),n(i)}),s}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&we.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const s=_();this.emit("languageChanging",e);const i=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},r=(o,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve(function(){return n.t(...arguments)}),t&&t(o,function(){return n.t(...arguments)})},l=o=>{var d,f;!e&&!o&&this.services.languageDetector&&(o=[]);const u=g(o)?o:this.services.languageUtils.getBestMatchFromCodes(o);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),(f=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||f.call(d,u)),this.loadResources(u,c=>{r(c,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e),s}getFixedT(e,t,n){var s=this;const i=function(r,l){let o;if(typeof l!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f`${o.keyPrefix}${c}${h}`):p=o.keyPrefix?`${o.keyPrefix}${c}${r}`:r,s.t(p,o)};return g(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){var s;for(var e=arguments.length,t=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const r=(l,o)=>{const u=this.services.backendConnector.state[`${l}|${o}`];return u===-1||u===0||u===2};if(t.precheck){const l=t.precheck(this,r);if(l!==void 0)return l}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||r(n,e)&&(!s||r(i,e)))}loadNamespaces(e,t){const n=_();return this.options.ns?(g(e)&&(e=[e]),e.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{n.resolve(),t&&t(s)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=_();g(e)&&(e=[e]);const s=this.options.preload||[],i=e.filter(r=>s.indexOf(r)<0&&this.services.languageUtils.isSupportedCode(r));return i.length?(this.options.preload=s.concat(i),this.loadResources(r=>{n.resolve(),t&&t(r)}),n):(t&&t(),Promise.resolve())}dir(e){var s,i;if(e||(e=this.resolvedLanguage||(((s=this.languages)==null?void 0:s.length)>0?this.languages[0]:this.language)),!e)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=((i=this.services)==null?void 0:i.languageUtils)||new pe(ye());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new z(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:W;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const s={...this.options,...e,isClone:!0},i=new z(s);if((e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(l=>{i[l]=this[l]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n){const l=Object.keys(this.store.data).reduce((o,u)=>(o[u]={...this.store.data[u]},Object.keys(o[u]).reduce((d,f)=>(d[f]={...o[u][f]},d),{})),{});i.store=new fe(l,s),i.services.resourceStore=i.store}return i.translator=new Z(i.services,s),i.translator.on("*",function(l){for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d{const a=ke(e=>e.lang);return R.useEffect(()=>{y.changeLanguage(a)},[a]),null};function cn(){return b.jsxs("main",{className:"flex flex-col min-h-screen",children:[b.jsx(un,{}),b.jsx(Le,{}),b.jsx("div",{className:"flex-auto",children:b.jsx(Ee,{})}),b.jsx(Re,{})]})}const dn=R.lazy(()=>N(()=>import("./home-DiD_F5cl.js"),__vite__mapDeps([0,1,2]))),fn=R.lazy(()=>N(()=>import("./about-CbefH2MY.js"),__vite__mapDeps([3,1,2,4]))),hn=R.lazy(()=>N(()=>import("./b2b-DX2AQ1Li.js"),__vite__mapDeps([5,1,2,6,4]))),gn=R.lazy(()=>N(()=>import("./become-sponsor-CJzEabdb.js"),__vite__mapDeps([7,1,2,6,4,8]))),pn=R.lazy(()=>N(()=>import("./stend-form-DxTHEFjq.js"),__vite__mapDeps([9,1,2,6,8]))),mn=R.lazy(()=>N(()=>import("./contacts-BVrgsNWG.js"),__vite__mapDeps([10,1,2,4]))),xn=R.lazy(()=>N(()=>import("./news---GzbsqQ.js"),__vite__mapDeps([11,1,2,12,4]))),bn=R.lazy(()=>N(()=>import("./news-inner-obez-6eR.js"),__vite__mapDeps([13,1,2,12,4]))),yn=R.lazy(()=>N(()=>import("./participants-YmKBWS5u.js"),__vite__mapDeps([14,1,2]))),vn=R.lazy(()=>N(()=>import("./media-Pq1BLnyt.js"),__vite__mapDeps([15,1,2]))),kn=Te([{element:b.jsx(cn,{}),path:"/",children:[{element:b.jsx(dn,{}),path:""},{element:b.jsx(fn,{}),path:"/about"},{element:b.jsx(hn,{}),path:"/B2B-B2G"},{element:b.jsx(gn,{}),path:"/become-sponsor"},{element:b.jsx(pn,{}),path:"/stend-form"},{element:b.jsx(mn,{}),path:"/contacts"},{element:b.jsx(xn,{}),path:"/news"},{element:b.jsx(bn,{}),path:"/news/:id"},{element:b.jsx(yn,{}),path:"/participants"},{element:b.jsx(vn,{}),path:"/media"}]}]),Sn=new Pe;De.createRoot(document.getElementById("root")).render(b.jsx(R.StrictMode,{children:b.jsx($e,{client:Sn,children:b.jsx(Ne,{router:kn})})})); diff --git a/dist/assets/media-Pq1BLnyt.js b/dist/assets/media-Pq1BLnyt.js new file mode 100644 index 0000000..ba910b8 --- /dev/null +++ b/dist/assets/media-Pq1BLnyt.js @@ -0,0 +1 @@ +import{aa as I,ab as M,u as S,d as w,j as s,K as E,ac as P,e as k,n as A,C as O,a3 as T,a8 as L,ad as V,E as B}from"./ui-library-DpZprY9x.js";import{a as i}from"./react-vendor-Y0eyvj1J.js";const F=[{id:0,title:"Фото",titleEn:"Photo"},{id:1,title:"Видео",titleEn:"Video"}],q=({className:f})=>{var x,p,u,g,h;const[n,b]=i.useState(0),{data:t,isPending:v}=I(1),{data:o}=M(1),[N,c]=i.useState(!1),[C,r]=i.useState({id:0,type:"photo"}),y=S(e=>e.lang),m=({id:e,type:a})=>{c(!0),r({id:e,type:a})};console.log(o);const{t:_}=w("main"),[d,z]=i.useState(!1);return s.jsxs(s.Fragment,{children:[s.jsx(E,{children:N&&s.jsx(P,{activeItem:C,setActiveItem:r,setIsOpen:c})}),s.jsxs("section",{className:k("",f),children:[s.jsx(A,{title:y==="ru"?"Моменты":"Moments"}),s.jsx(O,{className:"page-bottom md:pt-10 pt-6",children:v?s.jsx(T,{}):s.jsxs("div",{className:"flex justify-center flex-col",children:[s.jsx(L,{state:n,setState:b,data:F,className:"mb-6"}),s.jsx("h3",{className:"md:text-3xl text-2xl mb-6",children:"2025"}),s.jsx("div",{className:"grid lg:grid-cols-4 lg:gap-y-4 lg:gap-x-6 md:gap-6 gap-4 grid-cols-2 place-items-center",children:n===0?(p=(x=t==null?void 0:t.photos)==null?void 0:x.slice(0,d?1e3:16))==null?void 0:p.map((e,a)=>{var l,j;return s.jsx("div",{onClick:()=>m({id:a,type:"photo"}),className:"cursor-pointer embla__slide basis-1/1 overflow-hidden",children:s.jsx("img",{src:((l=e==null?void 0:e.photo)==null?void 0:l.path)??"",alt:((j=e==null?void 0:e.photo)==null?void 0:j.file_name)??"photo",className:"size-full object-cover hover:scale-105 duration-300 transition-all"})},a)}):(u=o==null?void 0:o.videos)==null?void 0:u.map((e,a)=>{var l;return s.jsxs("div",{onClick:()=>m({id:a,type:"video"}),className:"cursor-pointer group embla__slide basis-1/1 overflow-hidden relative",children:[s.jsx(V,{fill:"white",size:20,color:"white",className:"absolute group-hover:scale-125 transition-all duration-300 top-1/2 z-10 left-1/2 -translate-x-1/2 -translate-y-1/2 "}),s.jsx("div",{className:"absolute top-0 left-0 size-full bg-[#2C57A752]/[32%]"}),s.jsx("img",{src:((l=e==null?void 0:e.video_photo)==null?void 0:l.path)??"",className:"size-full object-cover"})]},a)})}),((g=t==null?void 0:t.photos)==null?void 0:g.length)&&((h=t==null?void 0:t.photos)==null?void 0:h.length)>16&&!d&&s.jsx(B,{onClick:()=>z(!0),className:"mx-auto w-[288px] mt-10 text-on_surface",size:"lg",variant:"outline",children:_("media.button")})]})})]})]})};export{q as default}; diff --git a/dist/assets/news-BUTff1c8.js b/dist/assets/news---GzbsqQ.js similarity index 79% rename from dist/assets/news-BUTff1c8.js rename to dist/assets/news---GzbsqQ.js index 09b6896..a5a3cb5 100644 --- a/dist/assets/news-BUTff1c8.js +++ b/dist/assets/news---GzbsqQ.js @@ -1 +1 @@ -import{u as o,j as e,a3 as n,C as i}from"./ui-library-BrD2Svyn.js";import{a as l}from"./react-vendor-Y0eyvj1J.js";import{u as m,N as c}from"./use-news-9Z2rsr5T.js";import{u as d}from"./use-scroll-top-DE9DNB_I.js";function N(){d();const a=o(s=>s.lang),{data:r,isPending:t}=m(a);return t?e.jsx(n,{}):e.jsxs(i,{className:"page-padding",children:[e.jsx("h1",{className:"text-center md:text-5xl text-3xl mb-10",children:a==="ru"?"Новости":"News"}),e.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:r==null?void 0:r.map(s=>l.createElement(c,{...s,key:s.title}))})]})}export{N as default}; +import{u as o,j as e,a3 as n,C as i}from"./ui-library-DpZprY9x.js";import{a as l}from"./react-vendor-Y0eyvj1J.js";import{u as m,N as c}from"./use-news-DRGMJQe9.js";import{u as d}from"./use-scroll-top-DE9DNB_I.js";function N(){d();const a=o(s=>s.lang),{data:r,isPending:t}=m(a);return t?e.jsx(n,{}):e.jsxs(i,{className:"page-padding",children:[e.jsx("h1",{className:"text-center md:text-5xl text-3xl mb-10",children:a==="ru"?"Новости":"News"}),e.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:r==null?void 0:r.map(s=>l.createElement(c,{...s,key:s.title}))})]})}export{N as default}; diff --git a/dist/assets/news-inner-B7hc0gJR.js b/dist/assets/news-inner-obez-6eR.js similarity index 92% rename from dist/assets/news-inner-B7hc0gJR.js rename to dist/assets/news-inner-obez-6eR.js index 9e0fdc7..4e6d607 100644 --- a/dist/assets/news-inner-B7hc0gJR.js +++ b/dist/assets/news-inner-obez-6eR.js @@ -1 +1 @@ -import{b as c,a4 as o,u as x,j as s,a3 as d,C as u}from"./ui-library-BrD2Svyn.js";import{u as p,a as g}from"./react-vendor-Y0eyvj1J.js";import{u as h,N as f}from"./use-news-9Z2rsr5T.js";import{u as j}from"./use-scroll-top-DE9DNB_I.js";const N=(t,r)=>{const{data:n,isPending:e}=c({queryKey:["news-inner",t,r],queryFn:()=>o(t,r),select:({data:l})=>l.data});return{data:n,isPending:e}};function _(){var m;const{id:t}=p(),r=x(a=>a.lang),n=Number(t);j(n);const{data:e,isPending:l}=N(n,r),{data:i}=h(r);return l?s.jsx(d,{}):s.jsxs(u,{className:"pt-10 pb-20 md:pt-20 md:pb-[120px]",children:[s.jsxs("section",{className:"max-w-[888px] py-5 mx-auto flex flex-col md:gap-10 gap-6",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-on_surface md:text-[32px] text-3xl leading-10 mb-2",children:e==null?void 0:e.title}),s.jsx("h4",{children:e==null?void 0:e.published_at.slice(0,10).split("-").reverse().join(".")})]}),s.jsx("div",{className:"w-full h-[300px] md:h-[480px]",children:s.jsx("img",{src:((m=e==null?void 0:e.featured_images[0])==null?void 0:m.path)||"",alt:"news image",className:"size-full object-cover"})}),s.jsx("div",{dangerouslySetInnerHTML:{__html:(e==null?void 0:e.content)??""},className:"news-inner md:text-lg flex flex-col gap-6 text-base md:medium normal text-on_surface_v"})]}),s.jsx("hr",{className:"mt-10 md:mb-20 mb-[60px]"}),s.jsxs("section",{children:[s.jsx("h2",{className:"h2 mb-6",children:r==="ru"?"Читайте также:":"Read more:"}),s.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:i==null?void 0:i.filter(a=>a.id!==n).slice(0,3).map(a=>g.createElement(f,{...a,key:a.title}))})]})]})}export{_ as default}; +import{b as c,a4 as o,u as x,j as s,a3 as d,C as u}from"./ui-library-DpZprY9x.js";import{u as p,a as g}from"./react-vendor-Y0eyvj1J.js";import{u as h,N as f}from"./use-news-DRGMJQe9.js";import{u as j}from"./use-scroll-top-DE9DNB_I.js";const N=(t,r)=>{const{data:n,isPending:e}=c({queryKey:["news-inner",t,r],queryFn:()=>o(t,r),select:({data:l})=>l.data});return{data:n,isPending:e}};function _(){var m;const{id:t}=p(),r=x(a=>a.lang),n=Number(t);j(n);const{data:e,isPending:l}=N(n,r),{data:i}=h(r);return l?s.jsx(d,{}):s.jsxs(u,{className:"pt-10 pb-20 md:pt-20 md:pb-[120px]",children:[s.jsxs("section",{className:"max-w-[888px] py-5 mx-auto flex flex-col md:gap-10 gap-6",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-on_surface md:text-[32px] text-3xl leading-10 mb-2",children:e==null?void 0:e.title}),s.jsx("h4",{children:e==null?void 0:e.published_at.slice(0,10).split("-").reverse().join(".")})]}),s.jsx("div",{className:"w-full h-[300px] md:h-[480px]",children:s.jsx("img",{src:((m=e==null?void 0:e.featured_images[0])==null?void 0:m.path)||"",alt:"news image",className:"size-full object-cover"})}),s.jsx("div",{dangerouslySetInnerHTML:{__html:(e==null?void 0:e.content)??""},className:"news-inner md:text-lg flex flex-col gap-6 text-base md:medium normal text-on_surface_v"})]}),s.jsx("hr",{className:"mt-10 md:mb-20 mb-[60px]"}),s.jsxs("section",{children:[s.jsx("h2",{className:"h2 mb-6",children:r==="ru"?"Читайте также:":"Read more:"}),s.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:i==null?void 0:i.filter(a=>a.id!==n).slice(0,3).map(a=>g.createElement(f,{...a,key:a.title}))})]})]})}export{_ as default}; diff --git a/dist/assets/participants-YmKBWS5u.js b/dist/assets/participants-YmKBWS5u.js new file mode 100644 index 0000000..ceae874 --- /dev/null +++ b/dist/assets/participants-YmKBWS5u.js @@ -0,0 +1 @@ +import{u as j,b as _,a7 as b,j as t,C as N,e as v,a8 as P,a3 as C,a9 as d}from"./ui-library-DpZprY9x.js";import{a as w}from"./react-vendor-Y0eyvj1J.js";const L=()=>{const r=j(i=>i.lang),{data:c,isPending:s}=_({queryKey:["participants",r],queryFn:()=>b(r),select:({data:i})=>i.data});return{data:c,isPending:s}},q=({className:r})=>{var u,x,g,h,y;const c=j(n=>n.lang),{data:s,isPending:i}=L(),e={company:c==="ru"?"Название компании":"Company name",country:c==="ru"?"Страна":"Country",industry:c==="ru"?"Сфера деятельности":"Industry"},[o,f]=w.useState(0),l=(g=s==null?void 0:s[0])==null?void 0:g.participants.concat((u=s==null?void 0:s[1])==null?void 0:u.participants,(x=s==null?void 0:s[2])==null?void 0:x.participants),p=s==null?void 0:s.filter(n=>o===1?n.id===3:o===2?n.id===1:n.id===2);return console.log(o),t.jsx(N,{children:t.jsxs("section",{className:v("page-padding overflow-x-hidden",r),children:[t.jsx("h1",{className:"text-center md:text-5xl text-3xl mb-4",children:c==="ru"?"Список участников":"List of participants"}),t.jsx(P,{state:o,setState:f,className:"mb-6 md:w-fit"}),t.jsxs("div",{className:"p-2 sm:p-0 bg-surface_container overflow-hidden",children:[t.jsxs("div",{className:"sm:flex items-center hidden h-[52px] border-b border-outline_v",children:[t.jsx("h3",{className:"flex-[0_0_45.54%] pl-4",children:e==null?void 0:e.company}),t.jsx("h3",{className:"flex-[0_0_19.80%]",children:e==null?void 0:e.country}),t.jsx("h3",{className:"flex-[0_0_34.65%]",children:e==null?void 0:e.industry})]}),i?t.jsx(C,{}):o===0?l==null?void 0:l.map((n,m,a)=>t.jsx(d,{...n,arr:a==null?void 0:a.length,index:m,image:n.image??{path:""},image_country:n.image_country??{path:""}})):(y=(h=p==null?void 0:p[0])==null?void 0:h.participants)==null?void 0:y.map((n,m,a)=>t.jsx(d,{...n,arr:a==null?void 0:a.length,index:m,image:n.image??{path:""},image_country:n.image_country??{path:""}}))]})]})})};export{q as default}; diff --git a/dist/assets/radio-group-DqnY3jUF.js b/dist/assets/radio-group-D60hoBlK.js similarity index 99% rename from dist/assets/radio-group-DqnY3jUF.js rename to dist/assets/radio-group-D60hoBlK.js index 1f2ef2e..3e39ae4 100644 --- a/dist/assets/radio-group-DqnY3jUF.js +++ b/dist/assets/radio-group-D60hoBlK.js @@ -1 +1 @@ -import{T as N,U as F,j as d,V as L,W as K,X as fe,Y as A,Z as y,_ as pe,$ as me,a0 as ve,e as U}from"./ui-library-BrD2Svyn.js";import{e as w,a as s}from"./react-vendor-Y0eyvj1J.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 k="rovingFocusGroup.onEntryFocus",Ie={bubbles:!1,cancelable:!0},T="RovingFocusGroup",[G,B,Ce]=Re(T),[ge,q]=N(T,[Ce]),[xe,ye]=ge(T),z=s.forwardRef((e,o)=>d.jsx(G.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(G.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Ee,{...e,ref:o})})}));z.displayName=T;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(k,h),()=>x.removeEventListener(k,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(k,Ie);if(x.currentTarget.dispatchEvent(O),!O.defaultPrevented){const P=S().filter(E=>E.focusable),ue=P.find(E=>E.active),de=P.find(E=>E.id===l),le=[ue,de,...P].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(G.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",[Te,W]=N(M),[Pe,ke]=Te(M),X=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(Pe,{scope:t,checked:a,disabled:p,children:[d.jsx(A.button,{type:"button",role:"radio","aria-checked":a,"data-state":Q(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(Ge,{control:R,bubbles:!r.current,name:n,value:C,checked:a,required:i,disabled:p,form:u,style:{transform:"translateX(-100%)"}})]})});X.displayName=M;var Z="RadioIndicator",J=s.forwardRef((e,o)=>{const{__scopeRadio:t,forceMount:n,...a}=e,i=ke(Z,t);return d.jsx(me,{present:n||i.checked,children:d.jsx(A.span,{"data-state":Q(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:o})})});J.displayName=Z;var Ge=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 Q(e){return e?"checked":"unchecked"}var Me=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],D="RadioGroup",[De,Ye]=N(D,[q,W]),ee=q(),oe=W(),[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(X,{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(J,{...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}; +import{T as N,U as F,j as d,V as L,W as K,X as fe,Y as A,Z as y,_ as pe,$ as me,a0 as ve,e as U}from"./ui-library-DpZprY9x.js";import{e as w,a as s}from"./react-vendor-Y0eyvj1J.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 k="rovingFocusGroup.onEntryFocus",Ie={bubbles:!1,cancelable:!0},T="RovingFocusGroup",[G,B,Ce]=Re(T),[ge,q]=N(T,[Ce]),[xe,ye]=ge(T),z=s.forwardRef((e,o)=>d.jsx(G.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(G.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Ee,{...e,ref:o})})}));z.displayName=T;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(k,h),()=>x.removeEventListener(k,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(k,Ie);if(x.currentTarget.dispatchEvent(O),!O.defaultPrevented){const P=S().filter(E=>E.focusable),ue=P.find(E=>E.active),de=P.find(E=>E.id===l),le=[ue,de,...P].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(G.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",[Te,W]=N(M),[Pe,ke]=Te(M),X=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(Pe,{scope:t,checked:a,disabled:p,children:[d.jsx(A.button,{type:"button",role:"radio","aria-checked":a,"data-state":Q(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(Ge,{control:R,bubbles:!r.current,name:n,value:C,checked:a,required:i,disabled:p,form:u,style:{transform:"translateX(-100%)"}})]})});X.displayName=M;var Z="RadioIndicator",J=s.forwardRef((e,o)=>{const{__scopeRadio:t,forceMount:n,...a}=e,i=ke(Z,t);return d.jsx(me,{present:n||i.checked,children:d.jsx(A.span,{"data-state":Q(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:o})})});J.displayName=Z;var Ge=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 Q(e){return e?"checked":"unchecked"}var Me=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],D="RadioGroup",[De,Ye]=N(D,[q,W]),ee=q(),oe=W(),[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(X,{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(J,{...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/stend-form-Bt01Gk3I.js b/dist/assets/stend-form-DxTHEFjq.js similarity index 96% rename from dist/assets/stend-form-Bt01Gk3I.js rename to dist/assets/stend-form-DxTHEFjq.js index 646106d..2088762 100644 --- a/dist/assets/stend-form-Bt01Gk3I.js +++ b/dist/assets/stend-form-DxTHEFjq.js @@ -1 +1 @@ -import{z as l,u as g,I as y,j as e,n as f,v as s,K as v,J as N,t as S,w as d,x as m,y as i,B as p,D as o,E as F,G as k,M as w,S as C,N as V}from"./ui-library-BrD2Svyn.js";import{a as j}from"./react-vendor-Y0eyvj1J.js";import{R as b,a as x}from"./radio-group-DqnY3jUF.js";import{s as t}from"./stend.data-Dr6usuZY.js";const E=l.object({space_package:l.string(),company_name:l.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:l.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:l.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:l.preprocess(a=>Number(a),l.number().min(1,"Укажите количество участников")),country:l.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:l.string().email({message:"Укажите корректный email"}),phone:l.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:l.string().optional(),visa_support:l.string().optional()}),R={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""};function T(){const a=g(r=>r.lang),[u,h]=j.useState(!1),n=y({resolver:V(E),defaultValues:R}),_=async r=>{await C(r)&&h(!0)};j.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[status]);const{errors:c}=n.formState;return e.jsxs("div",{children:[e.jsx(f,{title:t[s(a)].cover}),e.jsx(v,{children:!u&&e.jsx(N,{...n,children:e.jsxs(S.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] px-5 mx-auto mt-20 mb-[120px] flex flex-col gap-8",onSubmit:n.handleSubmit(_),children:[e.jsx(d,{control:n.control,name:"space_package",render:({field:r})=>e.jsxs(m,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:t[s(a)].h2}),e.jsx(p,{children:e.jsxs(b,{onValueChange:r.onChange,defaultValue:r.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"space",checked:r.value==="space"})}),e.jsx(i,{className:"text-base",children:t[s(a)].radio})]}),e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"package",checked:r.value==="package"})}),e.jsx(i,{className:"text-base",children:t[s(a)].radio_2})]})]})})]})}),e.jsx(o,{label:t[s(a)].label_1,name:"company_name",control:n.control,error:c.company_name}),e.jsx(o,{label:t[s(a)].label_2,name:"rep_name",control:n.control,error:c.rep_name}),e.jsx(o,{label:t[s(a)].label_3,name:"job_title",control:n.control,error:c.job_title}),e.jsx(o,{label:t[s(a)].number_of_participants,type:"number",name:"participants_number",control:n.control,error:c.participants_number}),e.jsx(o,{label:t[s(a)].label_4,name:"country",control:n.control,error:c.country}),e.jsx(o,{label:t[s(a)].label_5,name:"email",control:n.control,error:c.email}),e.jsx(o,{label:t[s(a)].label_6,name:"phone",control:n.control,error:c.phone}),e.jsx(o,{label:t[s(a)].label_7,name:"website",control:n.control}),e.jsx(d,{control:n.control,name:"visa_support",render:({field:r})=>e.jsxs(m,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:t[s(a)].visa}),e.jsx(p,{children:e.jsxs(b,{onValueChange:r.onChange,defaultValue:r.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"yes",checked:r.value==="yes"})}),e.jsx(i,{className:"text-base",children:t[s(a)].visa_radio})]}),e.jsxs(m,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(p,{children:e.jsx(x,{value:"no",checked:r.value==="no"})}),e.jsx(i,{className:"text-base",children:t[s(a)].visa_radio_2})]})]})})]})}),e.jsx(F,{disabled:n.formState.isSubmitting,className:"mt-5",children:n.formState.isSubmitting?e.jsx(k,{className:"animate-spin"}):t[s(a)].button})]})})}),u&&e.jsx(w,{delay:.3})]})}export{T as default}; +import{z as l,u as g,I as y,j as e,n as f,v as s,K as v,J as N,t as S,w as d,x as m,y as i,B as p,D as o,E as F,G as k,M as w,S as C,N as V}from"./ui-library-DpZprY9x.js";import{a as j}from"./react-vendor-Y0eyvj1J.js";import{R as b,a as x}from"./radio-group-D60hoBlK.js";import{s as t}from"./stend.data-Dr6usuZY.js";const E=l.object({space_package:l.string(),company_name:l.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:l.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:l.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:l.preprocess(a=>Number(a),l.number().min(1,"Укажите количество участников")),country:l.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:l.string().email({message:"Укажите корректный email"}),phone:l.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:l.string().optional(),visa_support:l.string().optional()}),R={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""};function T(){const a=g(r=>r.lang),[u,h]=j.useState(!1),n=y({resolver:V(E),defaultValues:R}),_=async r=>{await C(r)&&h(!0)};j.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[status]);const{errors:c}=n.formState;return e.jsxs("div",{children:[e.jsx(f,{title:t[s(a)].cover}),e.jsx(v,{children:!u&&e.jsx(N,{...n,children:e.jsxs(S.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] px-5 mx-auto mt-20 mb-[120px] flex flex-col gap-8",onSubmit:n.handleSubmit(_),children:[e.jsx(d,{control:n.control,name:"space_package",render:({field:r})=>e.jsxs(m,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:t[s(a)].h2}),e.jsx(p,{children:e.jsxs(b,{onValueChange:r.onChange,defaultValue:r.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"space",checked:r.value==="space"})}),e.jsx(i,{className:"text-base",children:t[s(a)].radio})]}),e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"package",checked:r.value==="package"})}),e.jsx(i,{className:"text-base",children:t[s(a)].radio_2})]})]})})]})}),e.jsx(o,{label:t[s(a)].label_1,name:"company_name",control:n.control,error:c.company_name}),e.jsx(o,{label:t[s(a)].label_2,name:"rep_name",control:n.control,error:c.rep_name}),e.jsx(o,{label:t[s(a)].label_3,name:"job_title",control:n.control,error:c.job_title}),e.jsx(o,{label:t[s(a)].number_of_participants,type:"number",name:"participants_number",control:n.control,error:c.participants_number}),e.jsx(o,{label:t[s(a)].label_4,name:"country",control:n.control,error:c.country}),e.jsx(o,{label:t[s(a)].label_5,name:"email",control:n.control,error:c.email}),e.jsx(o,{label:t[s(a)].label_6,name:"phone",control:n.control,error:c.phone}),e.jsx(o,{label:t[s(a)].label_7,name:"website",control:n.control}),e.jsx(d,{control:n.control,name:"visa_support",render:({field:r})=>e.jsxs(m,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:t[s(a)].visa}),e.jsx(p,{children:e.jsxs(b,{onValueChange:r.onChange,defaultValue:r.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(m,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(x,{value:"yes",checked:r.value==="yes"})}),e.jsx(i,{className:"text-base",children:t[s(a)].visa_radio})]}),e.jsxs(m,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(p,{children:e.jsx(x,{value:"no",checked:r.value==="no"})}),e.jsx(i,{className:"text-base",children:t[s(a)].visa_radio_2})]})]})})]})}),e.jsx(F,{disabled:n.formState.isSubmitting,className:"mt-5",children:n.formState.isSubmitting?e.jsx(k,{className:"animate-spin"}):t[s(a)].button})]})})}),u&&e.jsx(w,{delay:.3})]})}export{T as default}; diff --git a/dist/assets/ui-library-BrD2Svyn.js b/dist/assets/ui-library-BrD2Svyn.js deleted file mode 100644 index d12e857..0000000 --- a/dist/assets/ui-library-BrD2Svyn.js +++ /dev/null @@ -1,139 +0,0 @@ -var mu=e=>{throw TypeError(e)};var ta=(e,t,n)=>t.has(e)||mu("Cannot "+n);var C=(e,t,n)=>(ta(e,t,"read from private field"),n?n.call(e):t.get(e)),te=(e,t,n)=>t.has(e)?mu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),H=(e,t,n,s)=>(ta(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),fe=(e,t,n)=>(ta(e,t,"access private method"),n);var Ri=(e,t,n,s)=>({set _(r){H(e,t,r,n)},get _(){return C(e,t,s)}});import{r as Yy,a as x,R as Jy,b as lh,c as ev,L as De,d as ki,e as ve}from"./react-vendor-Y0eyvj1J.js";var na={exports:{}},gr={};/** - * @license React - * react-jsx-runtime.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 gu;function tv(){if(gu)return gr;gu=1;var e=Yy(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,c,l){var u,d={},f=null,p=null;l!==void 0&&(f=""+l),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(p=c.ref);for(u in c)s.call(c,u)&&!i.hasOwnProperty(u)&&(d[u]=c[u]);if(a&&a.defaultProps)for(u in c=a.defaultProps,c)d[u]===void 0&&(d[u]=c[u]);return{$$typeof:t,type:a,key:f,ref:p,props:d,_owner:r.current}}return gr.Fragment=n,gr.jsx=o,gr.jsxs=o,gr}var yu;function nv(){return yu||(yu=1,na.exports=tv()),na.exports}var y=nv();function mt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function vu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function uh(...e){return t=>{let n=!1;const s=e.map(r=>{const i=vu(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r{const{children:o,...a}=i,c=x.useMemo(()=>a,Object.values(a));return y.jsx(n.Provider,{value:c,children:o})};s.displayName=e+"Provider";function r(i){const o=x.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[s,r]}function Uc(e,t=[]){let n=[];function s(i,o){const a=x.createContext(o),c=n.length;n=[...n,o];const l=d=>{var v;const{scope:f,children:p,...m}=d,h=((v=f==null?void 0:f[e])==null?void 0:v[c])||a,g=x.useMemo(()=>m,Object.values(m));return y.jsx(h.Provider,{value:g,children:p})};l.displayName=i+"Provider";function u(d,f){var h;const p=((h=f==null?void 0:f[e])==null?void 0:h[c])||a,m=x.useContext(p);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const r=()=>{const i=n.map(o=>x.createContext(o));return function(a){const c=(a==null?void 0:a[e])||i;return x.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[s,rv(r,...t)]}function rv(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=s.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var ds=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},iv=Jy.useId||(()=>{}),ov=0;function zi(e){const[t,n]=x.useState(iv());return ds(()=>{n(s=>s??String(ov++))},[e]),t?`radix-${t}`:""}function jn(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function dh({prop:e,defaultProp:t,onChange:n=()=>{}}){const[s,r]=av({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:s,a=jn(n),c=x.useCallback(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else r(l)},[i,e,r,a]);return[o,c]}function av({defaultProp:e,onChange:t}){const n=x.useState(e),[s]=n,r=x.useRef(s),i=jn(t);return x.useEffect(()=>{r.current!==s&&(i(s),r.current=s)},[s,r,i]),n}var rr=x.forwardRef((e,t)=>{const{children:n,...s}=e,r=x.Children.toArray(n),i=r.find(lv);if(i){const o=i.props.children,a=r.map(c=>c===i?x.Children.count(o)>1?x.Children.only(null):x.isValidElement(o)?o.props.children:null:c);return y.jsx(Fa,{...s,ref:t,children:x.isValidElement(o)?x.cloneElement(o,void 0,a):null})}return y.jsx(Fa,{...s,ref:t,children:n})});rr.displayName="Slot";var Fa=x.forwardRef((e,t)=>{const{children:n,...s}=e;if(x.isValidElement(n)){const r=dv(n);return x.cloneElement(n,{...uv(s,n.props),ref:t?uh(t,r):r})}return x.Children.count(n)>1?x.Children.only(null):null});Fa.displayName="SlotClone";var cv=({children:e})=>y.jsx(y.Fragment,{children:e});function lv(e){return x.isValidElement(e)&&e.type===cv}function uv(e,t){const n={...t};for(const s in t){const r=e[s],i=t[s];/^on[A-Z]/.test(s)?r&&i?n[s]=(...a)=>{i(...a),r(...a)}:r&&(n[s]=r):s==="style"?n[s]={...r,...i}:s==="className"&&(n[s]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function dv(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var fv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],rt=fv.reduce((e,t)=>{const n=x.forwardRef((s,r)=>{const{asChild:i,...o}=s,a=i?rr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(a,{...o,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function hv(e,t){e&&lh.flushSync(()=>e.dispatchEvent(t))}function pv(e,t=globalThis==null?void 0:globalThis.document){const n=jn(e);x.useEffect(()=>{const s=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var mv="DismissableLayer",La="dismissableLayer.update",gv="dismissableLayer.pointerDownOutside",yv="dismissableLayer.focusOutside",xu,fh=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$c=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=e,l=x.useContext(fh),[u,d]=x.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=x.useState({}),m=Vt(t,R=>d(R)),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(g),b=u?h.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,T=b>=v,S=bv(R=>{const A=R.target,N=[...l.branches].some(D=>D.contains(A));!T||N||(r==null||r(R),o==null||o(R),R.defaultPrevented||a==null||a())},f),E=wv(R=>{const A=R.target;[...l.branches].some(D=>D.contains(A))||(i==null||i(R),o==null||o(R),R.defaultPrevented||a==null||a())},f);return pv(R=>{b===l.layers.size-1&&(s==null||s(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},f),x.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(xu=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),bu(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=xu)}},[u,f,n,l]),x.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),bu())},[u,l]),x.useEffect(()=>{const R=()=>p({});return document.addEventListener(La,R),()=>document.removeEventListener(La,R)},[]),y.jsx(rt.div,{...c,ref:m,style:{pointerEvents:w?T?"auto":"none":void 0,...e.style},onFocusCapture:mt(e.onFocusCapture,E.onFocusCapture),onBlurCapture:mt(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:mt(e.onPointerDownCapture,S.onPointerDownCapture)})});$c.displayName=mv;var vv="DismissableLayerBranch",xv=x.forwardRef((e,t)=>{const n=x.useContext(fh),s=x.useRef(null),r=Vt(t,s);return x.useEffect(()=>{const i=s.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),y.jsx(rt.div,{...e,ref:r})});xv.displayName=vv;function bv(e,t=globalThis==null?void 0:globalThis.document){const n=jn(e),s=x.useRef(!1),r=x.useRef(()=>{});return x.useEffect(()=>{const i=a=>{if(a.target&&!s.current){let c=function(){hh(gv,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);s.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function wv(e,t=globalThis==null?void 0:globalThis.document){const n=jn(e),s=x.useRef(!1);return x.useEffect(()=>{const r=i=>{i.target&&!s.current&&hh(yv,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function bu(){const e=new CustomEvent(La);document.dispatchEvent(e)}function hh(e,t,n,{discrete:s}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),s?hv(r,i):r.dispatchEvent(i)}var sa="focusScope.autoFocusOnMount",ra="focusScope.autoFocusOnUnmount",wu={bubbles:!1,cancelable:!0},Sv="FocusScope",zc=x.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...o}=e,[a,c]=x.useState(null),l=jn(r),u=jn(i),d=x.useRef(null),f=Vt(t,h=>c(h)),p=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(s){let h=function(w){if(p.paused||!a)return;const T=w.target;a.contains(T)?d.current=T:Sn(d.current,{select:!0})},g=function(w){if(p.paused||!a)return;const T=w.relatedTarget;T!==null&&(a.contains(T)||Sn(d.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Sn(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",g);const b=new MutationObserver(v);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",g),b.disconnect()}}},[s,a,p.paused]),x.useEffect(()=>{if(a){_u.add(p);const h=document.activeElement;if(!a.contains(h)){const v=new CustomEvent(sa,wu);a.addEventListener(sa,l),a.dispatchEvent(v),v.defaultPrevented||(_v(Pv(ph(a)),{select:!0}),document.activeElement===h&&Sn(a))}return()=>{a.removeEventListener(sa,l),setTimeout(()=>{const v=new CustomEvent(ra,wu);a.addEventListener(ra,u),a.dispatchEvent(v),v.defaultPrevented||Sn(h??document.body,{select:!0}),a.removeEventListener(ra,u),_u.remove(p)},0)}}},[a,l,u,p]);const m=x.useCallback(h=>{if(!n&&!s||p.paused)return;const g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,v=document.activeElement;if(g&&v){const b=h.currentTarget,[w,T]=Tv(b);w&&T?!h.shiftKey&&v===T?(h.preventDefault(),n&&Sn(w,{select:!0})):h.shiftKey&&v===w&&(h.preventDefault(),n&&Sn(T,{select:!0})):v===b&&h.preventDefault()}},[n,s,p.paused]);return y.jsx(rt.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});zc.displayName=Sv;function _v(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(Sn(s,{select:t}),document.activeElement!==n)return}function Tv(e){const t=ph(e),n=Su(t,e),s=Su(t.reverse(),e);return[n,s]}function ph(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const r=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||r?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Su(e,t){for(const n of e)if(!Cv(n,{upTo:t}))return n}function Cv(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Av(e){return e instanceof HTMLInputElement&&"select"in e}function Sn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Av(e)&&t&&e.select()}}var _u=Ev();function Ev(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Tu(e,t),e.unshift(t)},remove(t){var n;e=Tu(e,t),(n=e[0])==null||n.resume()}}}function Tu(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function Pv(e){return e.filter(t=>t.tagName!=="A")}var Rv="Portal",Wc=x.forwardRef((e,t)=>{var a;const{container:n,...s}=e,[r,i]=x.useState(!1);ds(()=>i(!0),[]);const o=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?ev.createPortal(y.jsx(rt.div,{...s,ref:t}),o):null});Wc.displayName=Rv;function kv(e,t){return x.useReducer((n,s)=>t[n][s]??n,e)}var ir=e=>{const{present:t,children:n}=e,s=Ov(t),r=typeof n=="function"?n({present:s.isPresent}):x.Children.only(n),i=Vt(s.ref,Nv(r));return typeof n=="function"||s.isPresent?x.cloneElement(r,{ref:i}):null};ir.displayName="Presence";function Ov(e){const[t,n]=x.useState(),s=x.useRef({}),r=x.useRef(e),i=x.useRef("none"),o=e?"mounted":"unmounted",[a,c]=kv(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const l=Oi(s.current);i.current=a==="mounted"?l:"none"},[a]),ds(()=>{const l=s.current,u=r.current;if(u!==e){const f=i.current,p=Oi(l);e?c("MOUNT"):p==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&f!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),ds(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=p=>{const h=Oi(s.current).includes(p.animationName);if(p.target===t&&h&&(c("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},f=p=>{p.target===t&&(i.current=Oi(s.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(l=>{l&&(s.current=getComputedStyle(l)),n(l)},[])}}function Oi(e){return(e==null?void 0:e.animationName)||"none"}function Nv(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ia=0;function mh(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Cu()),document.body.insertAdjacentElement("beforeend",e[1]??Cu()),ia++,()=>{ia===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ia--}},[])}function Cu(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Gt=function(){return Gt=Object.assign||function(t){for(var n,s=1,r=arguments.length;s"u")return Gv;var t=Qv(e),n=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-n+t[2]-t[0])}},Yv=xh(),Ns="data-scroll-locked",Jv=function(e,t,n,s){var r=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` - .`.concat(Dv,` { - overflow: hidden `).concat(s,`; - padding-right: `).concat(a,"px ").concat(s,`; - } - body[`).concat(Ns,`] { - overflow: hidden `).concat(s,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(s,";"),n==="margin"&&` - padding-left: `.concat(r,`px; - padding-top: `).concat(i,`px; - padding-right: `).concat(o,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(a,"px ").concat(s,`; - `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(s,";")].filter(Boolean).join(""),` - } - - .`).concat(Wi,` { - right: `).concat(a,"px ").concat(s,`; - } - - .`).concat(Hi,` { - margin-right: `).concat(a,"px ").concat(s,`; - } - - .`).concat(Wi," .").concat(Wi,` { - right: 0 `).concat(s,`; - } - - .`).concat(Hi," .").concat(Hi,` { - margin-right: 0 `).concat(s,`; - } - - body[`).concat(Ns,`] { - `).concat(Mv,": ").concat(a,`px; - } -`)},Eu=function(){var e=parseInt(document.body.getAttribute(Ns)||"0",10);return isFinite(e)?e:0},ex=function(){x.useEffect(function(){return document.body.setAttribute(Ns,(Eu()+1).toString()),function(){var e=Eu()-1;e<=0?document.body.removeAttribute(Ns):document.body.setAttribute(Ns,e.toString())}},[])},tx=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,r=s===void 0?"margin":s;ex();var i=x.useMemo(function(){return Xv(r)},[r]);return x.createElement(Yv,{styles:Jv(i,!t,r,n?"":"!important")})},Ia=!1;if(typeof window<"u")try{var Ni=Object.defineProperty({},"passive",{get:function(){return Ia=!0,!0}});window.addEventListener("test",Ni,Ni),window.removeEventListener("test",Ni,Ni)}catch{Ia=!1}var ws=Ia?{passive:!1}:!1,nx=function(e){return e.tagName==="TEXTAREA"},bh=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!nx(e)&&n[t]==="visible")},sx=function(e){return bh(e,"overflowY")},rx=function(e){return bh(e,"overflowX")},Pu=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var r=wh(e,s);if(r){var i=Sh(e,s),o=i[1],a=i[2];if(o>a)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},ix=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},ox=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},wh=function(e,t){return e==="v"?sx(t):rx(t)},Sh=function(e,t){return e==="v"?ix(t):ox(t)},ax=function(e,t){return e==="h"&&t==="rtl"?-1:1},cx=function(e,t,n,s,r){var i=ax(e,window.getComputedStyle(t).direction),o=i*s,a=n.target,c=t.contains(a),l=!1,u=o>0,d=0,f=0;do{var p=Sh(e,a),m=p[0],h=p[1],g=p[2],v=h-g-i*m;(m||v)&&wh(e,a)&&(d+=v,f+=m),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(l=!0),l},ji=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ru=function(e){return[e.deltaX,e.deltaY]},ku=function(e){return e&&"current"in e?e.current:e},lx=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ux=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},dx=0,Ss=[];function fx(e){var t=x.useRef([]),n=x.useRef([0,0]),s=x.useRef(),r=x.useState(dx++)[0],i=x.useState(xh)[0],o=x.useRef(e);x.useEffect(function(){o.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var h=jv([e.lockRef.current],(e.shards||[]).map(ku),!0).filter(Boolean);return h.forEach(function(g){return g.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),h.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=x.useCallback(function(h,g){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!o.current.allowPinchZoom;var v=ji(h),b=n.current,w="deltaX"in h?h.deltaX:b[0]-v[0],T="deltaY"in h?h.deltaY:b[1]-v[1],S,E=h.target,R=Math.abs(w)>Math.abs(T)?"h":"v";if("touches"in h&&R==="h"&&E.type==="range")return!1;var A=Pu(R,E);if(!A)return!0;if(A?S=R:(S=R==="v"?"h":"v",A=Pu(R,E)),!A)return!1;if(!s.current&&"changedTouches"in h&&(w||T)&&(s.current=S),!S)return!0;var N=s.current||S;return cx(N,g,h,N==="h"?w:T)},[]),c=x.useCallback(function(h){var g=h;if(!(!Ss.length||Ss[Ss.length-1]!==i)){var v="deltaY"in g?Ru(g):ji(g),b=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&lx(S.delta,v)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(o.current.shards||[]).map(ku).filter(Boolean).filter(function(S){return S.contains(g.target)}),T=w.length>0?a(g,w[0]):!o.current.noIsolation;T&&g.cancelable&&g.preventDefault()}}},[]),l=x.useCallback(function(h,g,v,b){var w={name:h,delta:g,target:v,should:b,shadowParent:hx(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(T){return T!==w})},1)},[]),u=x.useCallback(function(h){n.current=ji(h),s.current=void 0},[]),d=x.useCallback(function(h){l(h.type,Ru(h),h.target,a(h,e.lockRef.current))},[]),f=x.useCallback(function(h){l(h.type,ji(h),h.target,a(h,e.lockRef.current))},[]);x.useEffect(function(){return Ss.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,ws),document.addEventListener("touchmove",c,ws),document.addEventListener("touchstart",u,ws),function(){Ss=Ss.filter(function(h){return h!==i}),document.removeEventListener("wheel",c,ws),document.removeEventListener("touchmove",c,ws),document.removeEventListener("touchstart",u,ws)}},[]);var p=e.removeScrollBar,m=e.inert;return x.createElement(x.Fragment,null,m?x.createElement(i,{styles:ux(r)}):null,p?x.createElement(tx,{gapMode:e.gapMode}):null)}function hx(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const px=$v(vh,fx);var Hc=x.forwardRef(function(e,t){return x.createElement(Po,Gt({},e,{ref:t,sideCar:px}))});Hc.classNames=Po.classNames;var mx=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},_s=new WeakMap,Di=new WeakMap,Mi={},la=0,_h=function(e){return e&&(e.host||_h(e.parentNode))},gx=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=_h(n);return s&&e.contains(s)?s:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},yx=function(e,t,n,s){var r=gx(t,Array.isArray(e)?e:[e]);Mi[n]||(Mi[n]=new WeakMap);var i=Mi[n],o=[],a=new Set,c=new Set(r),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};r.forEach(l);var u=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var p=f.getAttribute(s),m=p!==null&&p!=="false",h=(_s.get(f)||0)+1,g=(i.get(f)||0)+1;_s.set(f,h),i.set(f,g),o.push(f),h===1&&m&&Di.set(f,!0),g===1&&f.setAttribute(n,"true"),m||f.setAttribute(s,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),a.clear(),la++,function(){o.forEach(function(d){var f=_s.get(d)-1,p=i.get(d)-1;_s.set(d,f),i.set(d,p),f||(Di.has(d)||d.removeAttribute(s),Di.delete(d)),p||d.removeAttribute(n)}),la--,la||(_s=new WeakMap,_s=new WeakMap,Di=new WeakMap,Mi={})}},Th=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),r=mx(e);return r?(s.push.apply(s,Array.from(r.querySelectorAll("[aria-live]"))),yx(s,r,n,"aria-hidden")):function(){return null}},qc="Dialog",[Ch,Bk]=Uc(qc),[vx,Bt]=Ch(qc),Ah=e=>{const{__scopeDialog:t,children:n,open:s,defaultOpen:r,onOpenChange:i,modal:o=!0}=e,a=x.useRef(null),c=x.useRef(null),[l=!1,u]=dh({prop:s,defaultProp:r,onChange:i});return y.jsx(vx,{scope:t,triggerRef:a,contentRef:c,contentId:zi(),titleId:zi(),descriptionId:zi(),open:l,onOpenChange:u,onOpenToggle:x.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};Ah.displayName=qc;var Eh="DialogTrigger",Ph=x.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Bt(Eh,n),i=Vt(t,r.triggerRef);return y.jsx(rt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Gc(r.open),...s,ref:i,onClick:mt(e.onClick,r.onOpenToggle)})});Ph.displayName=Eh;var Zc="DialogPortal",[xx,Rh]=Ch(Zc,{forceMount:void 0}),kh=e=>{const{__scopeDialog:t,forceMount:n,children:s,container:r}=e,i=Bt(Zc,t);return y.jsx(xx,{scope:t,forceMount:n,children:x.Children.map(s,o=>y.jsx(ir,{present:n||i.open,children:y.jsx(Wc,{asChild:!0,container:r,children:o})}))})};kh.displayName=Zc;var to="DialogOverlay",Oh=x.forwardRef((e,t)=>{const n=Rh(to,e.__scopeDialog),{forceMount:s=n.forceMount,...r}=e,i=Bt(to,e.__scopeDialog);return i.modal?y.jsx(ir,{present:s||i.open,children:y.jsx(bx,{...r,ref:t})}):null});Oh.displayName=to;var bx=x.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Bt(to,n);return y.jsx(Hc,{as:rr,allowPinchZoom:!0,shards:[r.contentRef],children:y.jsx(rt.div,{"data-state":Gc(r.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),fs="DialogContent",Nh=x.forwardRef((e,t)=>{const n=Rh(fs,e.__scopeDialog),{forceMount:s=n.forceMount,...r}=e,i=Bt(fs,e.__scopeDialog);return y.jsx(ir,{present:s||i.open,children:i.modal?y.jsx(wx,{...r,ref:t}):y.jsx(Sx,{...r,ref:t})})});Nh.displayName=fs;var wx=x.forwardRef((e,t)=>{const n=Bt(fs,e.__scopeDialog),s=x.useRef(null),r=Vt(t,n.contentRef,s);return x.useEffect(()=>{const i=s.current;if(i)return Th(i)},[]),y.jsx(jh,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:mt(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:mt(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:mt(e.onFocusOutside,i=>i.preventDefault())})}),Sx=x.forwardRef((e,t)=>{const n=Bt(fs,e.__scopeDialog),s=x.useRef(!1),r=x.useRef(!1);return y.jsx(jh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(s.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),s.current=!1,r.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),jh=x.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:r,onCloseAutoFocus:i,...o}=e,a=Bt(fs,n),c=x.useRef(null),l=Vt(t,c);return mh(),y.jsxs(y.Fragment,{children:[y.jsx(zc,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:i,children:y.jsx($c,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Gc(a.open),...o,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(_x,{titleId:a.titleId}),y.jsx(Cx,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Kc="DialogTitle",Dh=x.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Bt(Kc,n);return y.jsx(rt.h2,{id:r.titleId,...s,ref:t})});Dh.displayName=Kc;var Mh="DialogDescription",Fh=x.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Bt(Mh,n);return y.jsx(rt.p,{id:r.descriptionId,...s,ref:t})});Fh.displayName=Mh;var Lh="DialogClose",Ih=x.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Bt(Lh,n);return y.jsx(rt.button,{type:"button",...s,ref:t,onClick:mt(e.onClick,()=>r.onOpenChange(!1))})});Ih.displayName=Lh;function Gc(e){return e?"open":"closed"}var Vh="DialogTitleWarning",[Uk,Bh]=sv(Vh,{contentName:fs,titleName:Kc,docsSlug:"dialog"}),_x=({titleId:e})=>{const t=Bh(Vh),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. - -If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. - -For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return x.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Tx="DialogDescriptionWarning",Cx=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Bh(Tx).contentName}}.`;return x.useEffect(()=>{var i;const r=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},Uh=Ah,$h=Ph,zh=kh,Ro=Oh,ko=Nh,Oo=Dh,No=Fh,Qc=Ih;function Wh(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Nu=Hh,Xc=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return Nu(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:i}=t,o=Object.keys(r).map(l=>{const u=n==null?void 0:n[l],d=i==null?void 0:i[l];if(u===null)return null;const f=Ou(u)||Ou(d);return r[l][f]}),a=n&&Object.entries(n).reduce((l,u)=>{let[d,f]=u;return f===void 0||(l[d]=f),l},{}),c=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((l,u)=>{let{class:d,className:f,...p}=u;return Object.entries(p).every(m=>{let[h,g]=m;return Array.isArray(g)?g.includes({...i,...a}[h]):{...i,...a}[h]===g})?[...l,d,f]:l},[]);return Nu(e,o,c,n==null?void 0:n.class,n==null?void 0:n.className)};/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Ax=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qh=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var Ex={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Px=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:r="",children:i,iconNode:o,...a},c)=>x.createElement("svg",{ref:c,...Ex,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:qh("lucide",r),...a},[...o.map(([l,u])=>x.createElement(l,u)),...Array.isArray(i)?i:[i]]));/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const xn=(e,t)=>{const n=x.forwardRef(({className:s,...r},i)=>x.createElement(Px,{ref:i,iconNode:t,className:qh(`lucide-${Ax(e)}`,s),...r}));return n.displayName=`${e}`,n};/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Rx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],$k=xn("ArrowRight",Rx);/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const kx=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ox=xn("ArrowUpRight",kx);/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Nx=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],jx=xn("Facebook",Nx);/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Dx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Zh=xn("LoaderCircle",Dx);/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Mx=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],zk=xn("Loader",Mx);/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Fx=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Lx=xn("MapPin",Fx);/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Ix=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Vx=xn("Smartphone",Ix);/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Bx=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],Ux=xn("Upload",Bx);/** - * @license lucide-react v0.473.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const $x=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Kh=xn("X",$x),Yc="-",zx=e=>{const t=Hx(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:o=>{const a=o.split(Yc);return a[0]===""&&a.length!==1&&a.shift(),Gh(a,t)||Wx(o)},getConflictingClassGroupIds:(o,a)=>{const c=n[o]||[];return a&&s[o]?[...c,...s[o]]:c}}},Gh=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),r=s?Gh(e.slice(1),s):void 0;if(r)return r;if(t.validators.length===0)return;const i=e.join(Yc);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},ju=/^\[(.+)\]$/,Wx=e=>{if(ju.test(e)){const t=ju.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Hx=e=>{const{theme:t,prefix:n}=e,s={nextPart:new Map,validators:[]};return Zx(Object.entries(e.classGroups),n).forEach(([i,o])=>{Va(o,s,i,t)}),s},Va=(e,t,n,s)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:Du(t,r);i.classGroupId=n;return}if(typeof r=="function"){if(qx(r)){Va(r(s),t,n,s);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([i,o])=>{Va(o,Du(t,i),n,s)})})},Du=(e,t)=>{let n=e;return t.split(Yc).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},qx=e=>e.isThemeGetter,Zx=(e,t)=>t?e.map(([n,s])=>{const r=s.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,r]}):e,Kx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const r=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,s=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=s.get(i))!==void 0)return r(i,o),o},set(i,o){n.has(i)?n.set(i,o):r(i,o)}}},Qh="!",Gx=e=>{const{separator:t,experimentalParseClassName:n}=e,s=t.length===1,r=t[0],i=t.length,o=a=>{const c=[];let l=0,u=0,d;for(let g=0;gu?d-u:void 0;return{modifiers:c,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:o}):o},Qx=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(s=>{s[0]==="["?(t.push(...n.sort(),s),n=[]):n.push(s)}),t.push(...n.sort()),t},Xx=e=>({cache:Kx(e.cacheSize),parseClassName:Gx(e),...zx(e)}),Yx=/\s+/,Jx=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:r}=t,i=[],o=e.trim().split(Yx);let a="";for(let c=o.length-1;c>=0;c-=1){const l=o[c],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(l);let m=!!p,h=s(m?f.substring(0,p):f);if(!h){if(!m){a=l+(a.length>0?" "+a:a);continue}if(h=s(f),!h){a=l+(a.length>0?" "+a:a);continue}m=!1}const g=Qx(u).join(":"),v=d?g+Qh:g,b=v+h;if(i.includes(b))continue;i.push(b);const w=r(h,m);for(let T=0;T0?" "+a:a)}return a};function eb(){let e=0,t,n,s="";for(;e{if(typeof e=="string")return e;let t,n="";for(let s=0;sd(u),e());return n=Xx(l),s=n.cache.get,r=n.cache.set,i=a,a(c)}function a(c){const l=s(c);if(l)return l;const u=Jx(c,n);return r(c,u),u}return function(){return i(eb.apply(null,arguments))}}const _e=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Yh=/^\[(?:([a-z-]+):)?(.+)\]$/i,nb=/^\d+\/\d+$/,sb=new Set(["px","full","screen"]),rb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ib=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ob=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ab=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,cb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,an=e=>js(e)||sb.has(e)||nb.test(e),bn=e=>or(e,"length",gb),js=e=>!!e&&!Number.isNaN(Number(e)),ua=e=>or(e,"number",js),yr=e=>!!e&&Number.isInteger(Number(e)),lb=e=>e.endsWith("%")&&js(e.slice(0,-1)),ce=e=>Yh.test(e),wn=e=>rb.test(e),ub=new Set(["length","size","percentage"]),db=e=>or(e,ub,Jh),fb=e=>or(e,"position",Jh),hb=new Set(["image","url"]),pb=e=>or(e,hb,vb),mb=e=>or(e,"",yb),vr=()=>!0,or=(e,t,n)=>{const s=Yh.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):n(s[2]):!1},gb=e=>ib.test(e)&&!ob.test(e),Jh=()=>!1,yb=e=>ab.test(e),vb=e=>cb.test(e),xb=()=>{const e=_e("colors"),t=_e("spacing"),n=_e("blur"),s=_e("brightness"),r=_e("borderColor"),i=_e("borderRadius"),o=_e("borderSpacing"),a=_e("borderWidth"),c=_e("contrast"),l=_e("grayscale"),u=_e("hueRotate"),d=_e("invert"),f=_e("gap"),p=_e("gradientColorStops"),m=_e("gradientColorStopPositions"),h=_e("inset"),g=_e("margin"),v=_e("opacity"),b=_e("padding"),w=_e("saturate"),T=_e("scale"),S=_e("sepia"),E=_e("skew"),R=_e("space"),A=_e("translate"),N=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",ce,t],j=()=>[ce,t],$=()=>["",an,bn],W=()=>["auto",js,ce],se=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],re=()=>["","0",ce],me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ge=()=>[js,ce];return{cacheSize:500,separator:":",theme:{colors:[vr],spacing:[an,bn],blur:["none","",wn,ce],brightness:ge(),borderColor:[e],borderRadius:["none","","full",wn,ce],borderSpacing:j(),borderWidth:$(),contrast:ge(),grayscale:re(),hueRotate:ge(),invert:re(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[lb,bn],inset:L(),margin:L(),opacity:ge(),padding:j(),saturate:ge(),scale:ge(),sepia:re(),skew:ge(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",ce]}],container:["container"],columns:[{columns:[wn]}],"break-after":[{"break-after":me()}],"break-before":[{"break-before":me()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...se(),ce]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",yr,ce]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ce]}],grow:[{grow:re()}],shrink:[{shrink:re()}],order:[{order:["first","last","none",yr,ce]}],"grid-cols":[{"grid-cols":[vr]}],"col-start-end":[{col:["auto",{span:["full",yr,ce]},ce]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[vr]}],"row-start-end":[{row:["auto",{span:[yr,ce]},ce]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ce]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ce,t]}],"min-w":[{"min-w":[ce,t,"min","max","fit"]}],"max-w":[{"max-w":[ce,t,"none","full","min","max","fit","prose",{screen:[wn]},wn]}],h:[{h:[ce,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ce,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ce,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ce,t,"auto","min","max","fit"]}],"font-size":[{text:["base",wn,bn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ua]}],"font-family":[{font:[vr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ce]}],"line-clamp":[{"line-clamp":["none",js,ua]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",an,ce]}],"list-image":[{"list-image":["none",ce]}],"list-style-type":[{list:["none","disc","decimal",ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",an,bn]}],"underline-offset":[{"underline-offset":["auto",an,ce]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...se(),fb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",db]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pb]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:Y()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[an,ce]}],"outline-w":[{outline:[an,bn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[an,bn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",wn,mb]}],"shadow-color":[{shadow:[vr]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[s]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",wn,ce]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ce]}],duration:[{duration:ge()}],ease:[{ease:["linear","in","out","in-out",ce]}],delay:[{delay:ge()}],animate:[{animate:["none","spin","ping","pulse","bounce",ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[yr,ce]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ce]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[an,bn,ua]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},bb=tb(xb);function Q(...e){return bb(Hh(e))}const wb=Uh,Sb=$h,_b=Qc,Tb=zh,ep=x.forwardRef(({className:e,...t},n)=>y.jsx(Ro,{className:Q("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));ep.displayName=Ro.displayName;const Cb=Xc("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-full data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),tp=x.forwardRef(({side:e="right",className:t,children:n,...s},r)=>y.jsxs(Tb,{children:[y.jsx(ep,{}),y.jsxs(ko,{ref:r,className:Q(Cb({side:e}),t),...s,children:[y.jsxs(Qc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-secondary",children:[y.jsx(Kh,{className:"size-8"}),y.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));tp.displayName=ko.displayName;const np=({className:e,...t})=>y.jsx("div",{className:Q("flex flex-col space-y-2 text-center sm:text-left",e),...t});np.displayName="SheetHeader";const Ab=x.forwardRef(({className:e,...t},n)=>y.jsx(Oo,{ref:n,className:Q("text-lg font-semibold text-foreground",e),...t}));Ab.displayName=Oo.displayName;const Eb=x.forwardRef(({className:e,...t},n)=>y.jsx(No,{ref:n,className:Q("text-sm text-muted-foreground",e),...t}));Eb.displayName=No.displayName;const Pb=Xc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-[18px] leading-[140%] font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-on_primary shadow hover:bg-primary/90",teritary:"bg-teritary hover:bg-teritary/90 text-on_surface",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-outline text-on_surface",secondary:"bg-secondary_container hover:bg-secondary_container/80 text-on_secondary_container",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-white h-8"},size:{default:"h-12 px-5 py-2 rounded-[2px]",sm:"h-10 text-base px-4 rounded-[2px]",lg:"lg:h-[88px] h-12 rounded-[2px] px-8 ",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),dt=x.forwardRef(({className:e,variant:t,size:n,loading:s,children:r,asChild:i=!1,...o},a)=>{const c=i?rr:"button";return y.jsx(c,{className:Q(Pb({variant:t,size:n,className:e})),ref:a,...o,children:s?y.jsx(Zh,{className:"w-5 h-5 animate-spin"}):r})});dt.displayName="Button";const Rb=(e,t,n,s)=>{var i,o,a,c;const r=[n,{code:t,...s||{}}];if((o=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&o.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);as(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),(c=(a=e==null?void 0:e.services)==null?void 0:a.logger)!=null&&c.warn?e.services.logger.warn(...r):console!=null&&console.warn&&console.warn(...r)},Mu={},Ba=(e,t,n,s)=>{as(n)&&Mu[n]||(as(n)&&(Mu[n]=new Date),Rb(e,t,n,s))},sp=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Ua=(e,t,n)=>{e.loadNamespaces(t,sp(e,n))},Fu=(e,t,n,s)=>{if(as(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Ua(e,n,s);n.forEach(r=>{e.options.ns.indexOf(r)<0&&e.options.ns.push(r)}),e.loadLanguages(t,sp(e,s))},kb=(e,t,n={})=>!t.languages||!t.languages.length?(Ba(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(s,r)=>{var i;if(((i=n.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!r(s.isLanguageChangingTo,e))return!1}}),as=e=>typeof e=="string",Ob=e=>typeof e=="object"&&e!==null,Nb=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,jb={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Db=e=>jb[e],Mb=e=>e.replace(Nb,Db);let $a={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Mb};const Fb=(e={})=>{$a={...$a,...e}},Lb=()=>$a;let rp;const Ib=e=>{rp=e},Vb=()=>rp,Wk={type:"3rdParty",init(e){Fb(e.options.react),Ib(e)}},Bb=x.createContext();class Ub{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const $b=(e,t)=>{const n=x.useRef();return x.useEffect(()=>{n.current=e},[e,t]),n.current},ip=(e,t,n,s)=>e.getFixedT(t,n,s),zb=(e,t,n,s)=>x.useCallback(ip(e,t,n,s),[e,t,n,s]),jo=(e,t={})=>{var T,S,E,R;const{i18n:n}=t,{i18n:s,defaultNS:r}=x.useContext(Bb)||{},i=n||s||Vb();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new Ub),!i){Ba(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const A=(D,L)=>as(L)?L:Ob(L)&&as(L.defaultValue)?L.defaultValue:Array.isArray(D)?D[D.length-1]:D,N=[A,{},!1];return N.t=A,N.i18n={},N.ready=!1,N}(T=i.options.react)!=null&&T.wait&&Ba(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...Lb(),...i.options.react,...t},{useSuspense:a,keyPrefix:c}=o;let l=e||r||((S=i.options)==null?void 0:S.defaultNS);l=as(l)?[l]:l||["translation"],(R=(E=i.reportNamespaces).addUsedNamespaces)==null||R.call(E,l);const u=(i.isInitialized||i.initializedStoreOnce)&&l.every(A=>kb(A,i,o)),d=zb(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),f=()=>d,p=()=>ip(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),[m,h]=x.useState(f);let g=l.join();t.lng&&(g=`${t.lng}${g}`);const v=$b(g),b=x.useRef(!0);x.useEffect(()=>{const{bindI18n:A,bindI18nStore:N}=o;b.current=!0,!u&&!a&&(t.lng?Fu(i,t.lng,l,()=>{b.current&&h(p)}):Ua(i,l,()=>{b.current&&h(p)})),u&&v&&v!==g&&b.current&&h(p);const D=()=>{b.current&&h(p)};return A&&(i==null||i.on(A,D)),N&&(i==null||i.store.on(N,D)),()=>{b.current=!1,i&&(A==null||A.split(" ").forEach(L=>i.off(L,D))),N&&i&&N.split(" ").forEach(L=>i.store.off(L,D))}},[i,g]),x.useEffect(()=>{b.current&&u&&h(f)},[i,c,u]);const w=[m,i,u];if(w.t=m,w.i18n=i,w.ready=u,u||!u&&!a)return w;throw new Promise(A=>{t.lng?Fu(i,t.lng,l,()=>A()):Ua(i,l,()=>A())})},op=({className:e})=>y.jsx("div",{className:Q("",e),children:y.jsx("img",{src:"/logo.svg",alt:"logo",className:"md:size-auto h-10"})}),ap=({className:e,image:t,title:n,iconClassName:s})=>y.jsxs("article",{className:Q("bg-surface_container relative hover:bg-teritary_surface_container transition-all md:px-6 px-2 md:h-[224px] h-[124px]",e),children:[y.jsx("div",{className:"bg-primary size-full -z-[10] absolute top-2.5 left-2.5"}),y.jsx("div",{className:Q("md:size-[84px] size-12 bg-teritary p-3",s),children:y.jsx("img",{src:t.path,alt:"theme icon"})}),y.jsx("h3",{className:"md:mt-6 mt-2 md:text-xl text-sm",children:n})]}),Wb=({className:e,title:t,text:n})=>y.jsxs("article",{className:Q("px-6 py-4 relative bg-surface_container h-[160px] w-full overflow-hidden",e),children:[y.jsx("img",{src:"/about-card-bg.svg",className:"absolute top-2 right-0"}),y.jsx("h2",{className:"text-primary text-[32px] semibold leading-[130%] mb-4",children:n}),y.jsx("h4",{className:"text-on_surface normal text-base",children:t})]}),Hb=({className:e,title:t,text:n,img:s,link:r,btnText:i})=>y.jsxs("article",{className:Q("md:px-8 md:py-6 p-4 relative overflow-hidden h-[296px] md:w-full w-[300px] text-on_primary",e),children:[y.jsx("div",{className:"absolute size-full z-10 top-0 left-0 bg-gradient-to-r from-25% from-primary to-primary/20 "}),y.jsx("img",{src:s,className:"absolute size-full top-0 right-0 object-cover"}),y.jsxs("div",{className:"relative z-20 h-full",children:[y.jsxs("div",{className:"",children:[y.jsx("h4",{className:"md:text-2xl text-lg mb-4 max-w-[444px] z-20 h-16",children:t}),y.jsx("p",{className:"md:text-base text-sm normal max-w-[360px] z-20",children:n})]}),y.jsx(De,{className:"absolute bottom-0 left-0",target:"_blank",to:r,children:y.jsxs(dt,{className:"text-sm px-0 h-fit py-0 z-20",variant:"link",children:[i," ",y.jsx(Ox,{})]})})]})]}),cp=({className:e,title:t,text:n,bottomClassName:s})=>y.jsxs("div",{className:Q("rounded-t-[4px] overflow-hidden",e),children:[y.jsx("div",{className:"bg-teritary text-white flex items-center h-11 px-4",children:t}),y.jsx("div",{className:Q("h-14 bg-surface_container semibold flex items-center text-lg px-4",s),children:n})]}),qb=({className:e,text:t,title:n,image:s})=>y.jsxs("div",{className:Q("flex items-center gap-4",e),children:[y.jsx("div",{className:"bg-secondary_container size-16 rounded-[2px] p-3",children:y.jsx("img",{src:s.path,alt:"contact icon",className:"size-full"})}),y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx("h5",{className:"text-sm text-[#454545]",children:n}),y.jsx("h4",{className:"text-[#171717] semibold",children:t})]})]}),Jc=x.createContext({});function el(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const Do=x.createContext(null),tl=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Zb extends x.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const s=n.offsetParent,r=s instanceof HTMLElement&&s.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=r-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Kb({children:e,isPresent:t,anchorX:n}){const s=x.useId(),r=x.useRef(null),i=x.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=x.useContext(tl);return x.useInsertionEffect(()=>{const{width:a,height:c,top:l,left:u,right:d}=i.current;if(t||!r.current||!a||!c)return;const f=n==="left"?`left: ${u}`:`right: ${d}`;r.current.dataset.motionPopId=s;const p=document.createElement("style");return o&&(p.nonce=o),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(` - [data-motion-pop-id="${s}"] { - position: absolute !important; - width: ${a}px !important; - height: ${c}px !important; - ${f}px !important; - top: ${l}px !important; - } - `),()=>{document.head.removeChild(p)}},[t]),y.jsx(Zb,{isPresent:t,childRef:r,sizeRef:i,children:x.cloneElement(e,{ref:r})})}const Gb=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:r,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const c=el(Qb),l=x.useId(),u=x.useCallback(f=>{c.set(f,!0);for(const p of c.values())if(!p)return;s&&s()},[c,s]),d=x.useMemo(()=>({id:l,initial:t,isPresent:n,custom:r,onExitComplete:u,register:f=>(c.set(f,!1),()=>c.delete(f))}),i?[Math.random(),u]:[n,u]);return x.useMemo(()=>{c.forEach((f,p)=>c.set(p,!1))},[n]),x.useEffect(()=>{!n&&!c.size&&s&&s()},[n]),o==="popLayout"&&(e=y.jsx(Kb,{isPresent:n,anchorX:a,children:e})),y.jsx(Do.Provider,{value:d,children:e})};function Qb(){return new Map}function lp(e=!0){const t=x.useContext(Do);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:r}=t,i=x.useId();x.useEffect(()=>{e&&r(i)},[e]);const o=x.useCallback(()=>e&&s&&s(i),[i,s,e]);return!n&&s?[!1,o]:[!0]}const Fi=e=>e.key||"";function Lu(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const nl=typeof window<"u",up=nl?x.useLayoutEffect:x.useEffect,Hk=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:r=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[c,l]=lp(o),u=x.useMemo(()=>Lu(e),[e]),d=o&&!c?[]:u.map(Fi),f=x.useRef(!0),p=x.useRef(u),m=el(()=>new Map),[h,g]=x.useState(u),[v,b]=x.useState(u);up(()=>{f.current=!1,p.current=u;for(let S=0;S{const E=Fi(S),R=o&&!c?!1:u===v||d.includes(E),A=()=>{if(m.has(E))m.set(E,!0);else return;let N=!0;m.forEach(D=>{D||(N=!1)}),N&&(T==null||T(),b(p.current),o&&(l==null||l()),s&&s())};return y.jsx(Gb,{isPresent:R,initial:!f.current||n?void 0:!1,custom:R?void 0:t,presenceAffectsLayout:r,mode:i,onExitComplete:R?void 0:A,anchorX:a,children:S},E)})})},gt=e=>e;let za=gt;const Xb={skipAnimations:!1,useManualTiming:!1};function Yb(e){let t=new Set,n=new Set,s=!1,r=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(l){i.has(l)&&(c.schedule(l),e()),l(o)}const c={schedule:(l,u=!1,d=!1)=>{const p=d&&s?t:n;return u&&i.add(l),p.has(l)||p.add(l),l},cancel:l=>{n.delete(l),i.delete(l)},process:l=>{if(o=l,s){r=!0;return}s=!0,[t,n]=[n,t],t.forEach(a),t.clear(),s=!1,r&&(r=!1,c.process(l))}};return c}const Li=["read","resolveKeyframes","update","preRender","render","postRender"],Jb=40;function dp(e,t){let n=!1,s=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Li.reduce((v,b)=>(v[b]=Yb(i),v),{}),{read:a,resolveKeyframes:c,update:l,preRender:u,render:d,postRender:f}=o,p=()=>{const v=performance.now();n=!1,r.delta=s?1e3/60:Math.max(Math.min(v-r.timestamp,Jb),1),r.timestamp=v,r.isProcessing=!0,a.process(r),c.process(r),l.process(r),u.process(r),d.process(r),f.process(r),r.isProcessing=!1,n&&t&&(s=!1,e(p))},m=()=>{n=!0,s=!0,r.isProcessing||e(p)};return{schedule:Li.reduce((v,b)=>{const w=o[b];return v[b]=(T,S=!1,E=!1)=>(n||m(),w.schedule(T,S,E)),v},{}),cancel:v=>{for(let b=0;bIu[e].some(n=>!!t[n])};function ew(e){for(const t in e)Qs[t]={...Qs[t],...e[t]}}const tw=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function no(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||tw.has(e)}let hp=e=>!no(e);function nw(e){e&&(hp=t=>t.startsWith("on")?!no(t):e(t))}try{nw(require("@emotion/is-prop-valid").default)}catch{}function sw(e,t,n){const s={};for(const r in e)r==="values"&&typeof e.values=="object"||(hp(r)||n===!0&&no(r)||!t&&!no(r)||e.draggable&&r.startsWith("onDrag"))&&(s[r]=e[r]);return s}function rw(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...s)=>e(...s);return new Proxy(n,{get:(s,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const Mo=x.createContext({});function Lr(e){return typeof e=="string"||Array.isArray(e)}function Fo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const sl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],rl=["initial",...sl];function Lo(e){return Fo(e.animate)||rl.some(t=>Lr(e[t]))}function pp(e){return!!(Lo(e)||e.variants)}function iw(e,t){if(Lo(e)){const{initial:n,animate:s}=e;return{initial:n===!1||Lr(n)?n:void 0,animate:Lr(s)?s:void 0}}return e.inherit!==!1?t:{}}function ow(e){const{initial:t,animate:n}=iw(e,x.useContext(Mo));return x.useMemo(()=>({initial:t,animate:n}),[Vu(t),Vu(n)])}function Vu(e){return Array.isArray(e)?e.join(" "):e}const aw=Symbol.for("motionComponentSymbol");function As(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function cw(e,t,n){return x.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):As(n)&&(n.current=s))},[t])}const il=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),lw="framerAppearId",mp="data-"+il(lw),{schedule:ol,cancel:qk}=dp(queueMicrotask,!1),gp=x.createContext({});function uw(e,t,n,s,r){var i,o;const{visualElement:a}=x.useContext(Mo),c=x.useContext(fp),l=x.useContext(Do),u=x.useContext(tl).reducedMotion,d=x.useRef(null);s=s||c.renderer,!d.current&&s&&(d.current=s(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,p=x.useContext(gp);f&&!f.projection&&r&&(f.type==="html"||f.type==="svg")&&dw(d.current,n,r,p);const m=x.useRef(!1);x.useInsertionEffect(()=>{f&&m.current&&f.update(n,l)});const h=n[mp],g=x.useRef(!!h&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,h))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,h)));return up(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),ol.render(f.render),g.current&&f.animationState&&f.animationState.animateChanges())}),x.useEffect(()=>{f&&(!g.current&&f.animationState&&f.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,h)}),g.current=!1))}),f}function dw(e,t,n,s){const{layoutId:r,layout:i,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:yp(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!o||a&&As(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:s,layoutScroll:c,layoutRoot:l})}function yp(e){if(e)return e.options.allowProjection!==!1?e.projection:yp(e.parent)}function fw({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:r}){var i,o;e&&ew(e);function a(l,u){let d;const f={...x.useContext(tl),...l,layoutId:hw(l)},{isStatic:p}=f,m=ow(l),h=s(l,p);if(!p&&nl){pw();const g=mw(f);d=g.MeasureLayout,m.visualElement=uw(r,h,f,t,g.ProjectionNode)}return y.jsxs(Mo.Provider,{value:m,children:[d&&m.visualElement?y.jsx(d,{visualElement:m.visualElement,...f}):null,n(r,l,cw(h,m.visualElement,u),h,p,m.visualElement)]})}a.displayName=`motion.${typeof r=="string"?r:`create(${(o=(i=r.displayName)!==null&&i!==void 0?i:r.name)!==null&&o!==void 0?o:""})`}`;const c=x.forwardRef(a);return c[aw]=r,c}function hw({layoutId:e}){const t=x.useContext(Jc).id;return t&&e!==void 0?t+"-"+e:e}function pw(e,t){x.useContext(fp).strict}function mw(e){const{drag:t,layout:n}=Qs;if(!t&&!n)return{};const s={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const gw=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function al(e){return typeof e!="string"||e.includes("-")?!1:!!(gw.indexOf(e)>-1||/[A-Z]/u.test(e))}function Bu(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function cl(e,t,n,s){if(typeof t=="function"){const[r,i]=Bu(s);t=t(n!==void 0?n:e.custom,r,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,i]=Bu(s);t=t(n!==void 0?n:e.custom,r,i)}return t}const Wa=e=>Array.isArray(e),yw=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),vw=e=>Wa(e)?e[e.length-1]||0:e,Ge=e=>!!(e&&e.getVelocity);function qi(e){const t=Ge(e)?e.get():e;return yw(t)?t.toValue():t}function xw({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},s,r,i){const o={latestValues:bw(s,r,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:s,current:a,...o}),o.onUpdate=a=>n(a)),o}const vp=e=>(t,n)=>{const s=x.useContext(Mo),r=x.useContext(Do),i=()=>xw(e,t,s,r);return n?i():el(i)};function bw(e,t,n,s){const r={},i=s(e,{});for(const f in i)r[f]=qi(i[f]);let{initial:o,animate:a}=e;const c=Lo(e),l=pp(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!Fo(d)){const f=Array.isArray(d)?d:[d];for(let p=0;pt=>typeof t=="string"&&t.startsWith(e),ll=xp("--"),ww=xp("var(--"),ul=e=>ww(e)?Sw.test(e.split("/*")[0].trim()):!1,Sw=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,bp=(e,t)=>t&&typeof e=="number"?t.transform(e):e,mn=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Ir={...cr,transform:e=>mn(0,1,e)},Ii={...cr,default:1},pi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),_n=pi("deg"),Yt=pi("%"),J=pi("px"),_w=pi("vh"),Tw=pi("vw"),Uu={...Yt,parse:e=>Yt.parse(e)/100,transform:e=>Yt.transform(e*100)},Cw={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,radius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,top:J,right:J,bottom:J,left:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,backgroundPositionX:J,backgroundPositionY:J},Aw={rotate:_n,rotateX:_n,rotateY:_n,rotateZ:_n,scale:Ii,scaleX:Ii,scaleY:Ii,scaleZ:Ii,skew:_n,skewX:_n,skewY:_n,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:Ir,originX:Uu,originY:Uu,originZ:J},$u={...cr,transform:Math.round},dl={...Cw,...Aw,zIndex:$u,size:J,fillOpacity:Ir,strokeOpacity:Ir,numOctaves:$u},Ew={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Pw=ar.length;function Rw(e,t,n){let s="",r=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}}),wp=()=>({...pl(),attrs:{}}),ml=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Sp(e,{style:t,vars:n},s,r){Object.assign(e.style,t,r&&r.getProjectionStyles(s));for(const i in n)e.style.setProperty(i,n[i])}const _p=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Tp(e,t,n,s){Sp(e,t,void 0,s);for(const r in t.attrs)e.setAttribute(_p.has(r)?r:il(r),t.attrs[r])}const Vr={};function Dw(e){for(const t in e)Vr[t]=e[t],ll(t)&&(Vr[t].isCSSVariable=!0)}function Cp(e,{layout:t,layoutId:n}){return bs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Vr[e]||e==="opacity")}function gl(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(Ge(r[o])||t.style&&Ge(t.style[o])||Cp(o,e)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}function Ap(e,t,n){const s=gl(e,t,n);for(const r in e)if(Ge(e[r])||Ge(t[r])){const i=ar.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;s[i]=e[r]}return s}function Mw(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Wu=["x","y","width","height","cx","cy","r"],Fw={useVisualState:vp({scrapeMotionValuesFromProps:Ap,createRenderState:wp,onUpdate:({props:e,prevProps:t,current:n,renderState:s,latestValues:r})=>{if(!n)return;let i=!!e.drag;if(!i){for(const a in r)if(bs.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a{Mw(n,s),Te.render(()=>{hl(s,r,ml(n.tagName),e.transformTemplate),Tp(n,s)})})}})},Lw={useVisualState:vp({scrapeMotionValuesFromProps:gl,createRenderState:pl})};function Ep(e,t,n){for(const s in t)!Ge(t[s])&&!Cp(s,n)&&(e[s]=t[s])}function Iw({transformTemplate:e},t){return x.useMemo(()=>{const n=pl();return fl(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Vw(e,t){const n=e.style||{},s={};return Ep(s,n,e),Object.assign(s,Iw(e,t)),s}function Bw(e,t){const n={},s=Vw(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}function Uw(e,t,n,s){const r=x.useMemo(()=>{const i=wp();return hl(i,t,ml(s),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Ep(i,e.style,e),r.style={...i,...r.style}}return r}function $w(e=!1){return(n,s,r,{latestValues:i},o)=>{const c=(al(n)?Uw:Bw)(s,i,o,n),l=sw(s,typeof n=="string",e),u=n!==x.Fragment?{...l,...c,ref:r}:{},{children:d}=s,f=x.useMemo(()=>Ge(d)?d.get():d,[d]);return x.createElement(n,{...u,children:f})}}function zw(e,t){return function(s,{forwardMotionProps:r}={forwardMotionProps:!1}){const o={...al(s)?Fw:Lw,preloadedFeatures:e,useRender:$w(r),createVisualElement:t,Component:s};return fw(o)}}function Pp(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s(Zi===void 0&&Jt.set($e.isProcessing||Xb.useManualTiming?$e.timestamp:performance.now()),Zi),set:e=>{Zi=e,queueMicrotask(Ww)}};function vl(e,t){e.indexOf(t)===-1&&e.push(t)}function xl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class bl{constructor(){this.subscriptions=[]}add(t){return vl(this.subscriptions,t),()=>xl(this.subscriptions,t)}notify(t,n,s){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,s);else for(let i=0;i!isNaN(parseFloat(e));class qw{constructor(t,n={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,r=!0)=>{const i=Jt.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Jt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Hw(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new bl);const s=this.events[t].add(n);return t==="change"?()=>{s(),Te.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Jt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Hu)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Hu);return kp(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Br(e,t){return new qw(e,t)}function Zw(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Br(n))}function Kw(e,t){const n=Io(e,t);let{transitionEnd:s={},transition:r={},...i}=n||{};i={...i,...s};for(const o in i){const a=vw(i[o]);Zw(e,o,a)}}function Gw(e){return!!(Ge(e)&&e.add)}function Ha(e,t){const n=e.getValue("willChange");if(Gw(n))return n.add(t)}function Op(e){return e.props[mp]}function wl(e){let t;return()=>(t===void 0&&(t=e()),t)}const Qw=wl(()=>window.ScrollTimeline!==void 0);class Xw{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let s=0;s{if(Qw()&&r.attachTimeline)return r.attachTimeline(t);if(typeof n=="function")return n(r)});return()=>{s.forEach((r,i)=>{r&&r(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Yw extends Xw{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const hn=e=>e*1e3,pn=e=>e/1e3;function Sl(e){return typeof e=="function"}function qu(e,t){e.timeline=t,e.onfinish=null}const _l=e=>Array.isArray(e)&&typeof e[0]=="number",Jw={linearEasing:void 0};function e0(e,t){const n=wl(e);return()=>{var s;return(s=Jw[t])!==null&&s!==void 0?s:n()}}const so=e0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Xs=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},Np=(e,t,n=10)=>{let s="";const r=Math.max(Math.round(t/n),2);for(let i=0;i`cubic-bezier(${e}, ${t}, ${n}, ${s})`,qa={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_r([0,.65,.55,1]),circOut:_r([.55,0,1,.45]),backIn:_r([.31,.01,.66,-.59]),backOut:_r([.33,1.53,.69,.99])};function Dp(e,t){if(e)return typeof e=="function"&&so()?Np(e,t):_l(e)?_r(e):Array.isArray(e)?e.map(n=>Dp(n,t)||qa.easeOut):qa[e]}const Mp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,t0=1e-7,n0=12;function s0(e,t,n,s,r){let i,o,a=0;do o=t+(n-t)/2,i=Mp(o,s,r)-e,i>0?n=o:t=o;while(Math.abs(i)>t0&&++as0(i,0,1,e,n);return i=>i===0||i===1?i:Mp(r(i),t,s)}const Fp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Lp=e=>t=>1-e(1-t),Ip=mi(.33,1.53,.69,.99),Tl=Lp(Ip),Vp=Fp(Tl),Bp=e=>(e*=2)<1?.5*Tl(e):.5*(2-Math.pow(2,-10*(e-1))),Cl=e=>1-Math.sin(Math.acos(e)),Up=Lp(Cl),$p=Fp(Cl),zp=e=>/^0[^.\s]+$/u.test(e);function r0(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||zp(e):!0}const kr=e=>Math.round(e*1e5)/1e5,Al=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function i0(e){return e==null}const o0=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,El=(e,t)=>n=>!!(typeof n=="string"&&o0.test(n)&&n.startsWith(e)||t&&!i0(n)&&Object.prototype.hasOwnProperty.call(n,t)),Wp=(e,t,n)=>s=>{if(typeof s!="string")return s;const[r,i,o,a]=s.match(Al);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},a0=e=>mn(0,255,e),fa={...cr,transform:e=>Math.round(a0(e))},Qn={test:El("rgb","red"),parse:Wp("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+fa.transform(e)+", "+fa.transform(t)+", "+fa.transform(n)+", "+kr(Ir.transform(s))+")"};function c0(e){let t="",n="",s="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,s+=s,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}}const Za={test:El("#"),parse:c0,transform:Qn.transform},Es={test:El("hsl","hue"),parse:Wp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+Yt.transform(kr(t))+", "+Yt.transform(kr(n))+", "+kr(Ir.transform(s))+")"},Ze={test:e=>Qn.test(e)||Za.test(e)||Es.test(e),parse:e=>Qn.test(e)?Qn.parse(e):Es.test(e)?Es.parse(e):Za.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Qn.transform(e):Es.transform(e)},l0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function u0(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Al))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(l0))===null||n===void 0?void 0:n.length)||0)>0}const Hp="number",qp="color",d0="var",f0="var(",Zu="${}",h0=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ur(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},r=[];let i=0;const a=t.replace(h0,c=>(Ze.test(c)?(s.color.push(i),r.push(qp),n.push(Ze.parse(c))):c.startsWith(f0)?(s.var.push(i),r.push(d0),n.push(c)):(s.number.push(i),r.push(Hp),n.push(parseFloat(c))),++i,Zu)).split(Zu);return{values:n,split:a,indexes:s,types:r}}function Zp(e){return Ur(e).values}function Kp(e){const{split:t,types:n}=Ur(e),s=t.length;return r=>{let i="";for(let o=0;otypeof e=="number"?0:e;function m0(e){const t=Zp(e);return Kp(e)(t.map(p0))}const Mn={test:u0,parse:Zp,createTransformer:Kp,getAnimatableNone:m0},g0=new Set(["brightness","contrast","saturate","opacity"]);function y0(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(Al)||[];if(!s)return e;const r=n.replace(s,"");let i=g0.has(t)?1:0;return s!==n&&(i*=100),t+"("+i+r+")"}const v0=/\b([a-z-]*)\(.*?\)/gu,Ka={...Mn,getAnimatableNone:e=>{const t=e.match(v0);return t?t.map(y0).join(" "):e}},x0={...dl,color:Ze,backgroundColor:Ze,outlineColor:Ze,fill:Ze,stroke:Ze,borderColor:Ze,borderTopColor:Ze,borderRightColor:Ze,borderBottomColor:Ze,borderLeftColor:Ze,filter:Ka,WebkitFilter:Ka},Pl=e=>x0[e];function Gp(e,t){let n=Pl(e);return n!==Ka&&(n=Mn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const b0=new Set(["auto","none","0"]);function w0(e,t,n){let s=0,r;for(;se===cr||e===J,Gu=(e,t)=>parseFloat(e.split(", ")[t]),Qu=(e,t)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const r=s.match(/^matrix3d\((.+)\)$/u);if(r)return Gu(r[1],t);{const i=s.match(/^matrix\((.+)\)$/u);return i?Gu(i[1],e):0}},S0=new Set(["x","y","z"]),_0=ar.filter(e=>!S0.has(e));function T0(e){const t=[];return _0.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const Ys={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Qu(4,13),y:Qu(5,14)};Ys.translateX=Ys.x;Ys.translateY=Ys.y;const cs=new Set;let Ga=!1,Qa=!1;function Qp(){if(Qa){const e=Array.from(cs).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const r=T0(s);r.length&&(n.set(s,r),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const r=n.get(s);r&&r.forEach(([i,o])=>{var a;(a=s.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Qa=!1,Ga=!1,cs.forEach(e=>e.complete()),cs.clear()}function Xp(){cs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Qa=!0)})}function C0(){Xp(),Qp()}class Rl{constructor(t,n,s,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(cs.add(this),Ga||(Ga=!0,Te.read(Xp),Te.resolveKeyframes(Qp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:r}=this;for(let i=0;i/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),A0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function E0(e){const t=A0.exec(e);if(!t)return[,];const[,n,s,r]=t;return[`--${n??s}`,r]}function Jp(e,t,n=1){const[s,r]=E0(e);if(!s)return;const i=window.getComputedStyle(t).getPropertyValue(s);if(i){const o=i.trim();return Yp(o)?parseFloat(o):o}return ul(r)?Jp(r,t,n+1):r}const em=e=>t=>t.test(e),P0={test:e=>e==="auto",parse:e=>e},tm=[cr,J,Yt,_n,Tw,_w,P0],Xu=e=>tm.find(em(e));class nm extends Rl{constructor(t,n,s,r,i){super(t,n,s,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c{n.getValue(c).set(l)}),this.resolveNoneKeyframes()}}const Yu=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Mn.test(e)||e==="0")&&!e.startsWith("url("));function R0(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function Vo(e,{repeat:t,repeatType:n="loop"},s){const r=e.filter(O0),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return!i||s===void 0?r[i]:s}const N0=40;class sm{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Jt.now(),this.options={autoplay:t,delay:n,type:s,repeat:r,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>N0?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&C0(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Jt.now(),this.hasAttemptedResolve=!0;const{name:s,type:r,velocity:i,delay:o,onComplete:a,onUpdate:c,isGenerator:l}=this.options;if(!l&&!k0(t,s,r,i))if(o)this.options.duration=0;else{c&&c(Vo(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Xa=2e4;function rm(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t=Xa?1/0:t}const Ae=(e,t,n)=>e+(t-e)*n;function ha(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function j0({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let r=0,i=0,o=0;if(!t)r=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=ha(c,a,e+1/3),i=ha(c,a,e),o=ha(c,a,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:s}}function ro(e,t){return n=>n>0?t:e}const pa=(e,t,n)=>{const s=e*e,r=n*(t*t-s)+s;return r<0?0:Math.sqrt(r)},D0=[Za,Qn,Es],M0=e=>D0.find(t=>t.test(e));function Ju(e){const t=M0(e);if(!t)return!1;let n=t.parse(e);return t===Es&&(n=j0(n)),n}const ed=(e,t)=>{const n=Ju(e),s=Ju(t);if(!n||!s)return ro(e,t);const r={...n};return i=>(r.red=pa(n.red,s.red,i),r.green=pa(n.green,s.green,i),r.blue=pa(n.blue,s.blue,i),r.alpha=Ae(n.alpha,s.alpha,i),Qn.transform(r))},F0=(e,t)=>n=>t(e(n)),gi=(...e)=>e.reduce(F0),Ya=new Set(["none","hidden"]);function L0(e,t){return Ya.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function I0(e,t){return n=>Ae(e,t,n)}function kl(e){return typeof e=="number"?I0:typeof e=="string"?ul(e)?ro:Ze.test(e)?ed:U0:Array.isArray(e)?im:typeof e=="object"?Ze.test(e)?ed:V0:ro}function im(e,t){const n=[...e],s=n.length,r=e.map((i,o)=>kl(i)(i,t[o]));return i=>{for(let o=0;o{for(const i in s)n[i]=s[i](r);return n}}function B0(e,t){var n;const s=[],r={color:0,var:0,number:0};for(let i=0;i{const n=Mn.createTransformer(t),s=Ur(e),r=Ur(t);return s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length?Ya.has(e)&&!r.values.length||Ya.has(t)&&!s.values.length?L0(e,t):gi(im(B0(s,r),r.values),n):ro(e,t)};function om(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ae(e,t,n):kl(e)(e,t)}const $0=5;function am(e,t,n){const s=Math.max(t-$0,0);return kp(n-e(s),t-s)}const Re={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},td=.001;function z0({duration:e=Re.duration,bounce:t=Re.bounce,velocity:n=Re.velocity,mass:s=Re.mass}){let r,i,o=1-t;o=mn(Re.minDamping,Re.maxDamping,o),e=mn(Re.minDuration,Re.maxDuration,pn(e)),o<1?(r=l=>{const u=l*o,d=u*e,f=u-n,p=Ja(l,o),m=Math.exp(-d);return td-f/p*m},i=l=>{const d=l*o*e,f=d*n+n,p=Math.pow(o,2)*Math.pow(l,2)*e,m=Math.exp(-d),h=Ja(Math.pow(l,2),o);return(-r(l)+td>0?-1:1)*((f-p)*m)/h}):(r=l=>{const u=Math.exp(-l*e),d=(l-n)*e+1;return-.001+u*d},i=l=>{const u=Math.exp(-l*e),d=(n-l)*(e*e);return u*d});const a=5/e,c=H0(r,i,a);if(e=hn(e),isNaN(c))return{stiffness:Re.stiffness,damping:Re.damping,duration:e};{const l=Math.pow(c,2)*s;return{stiffness:l,damping:o*2*Math.sqrt(s*l),duration:e}}}const W0=12;function H0(e,t,n){let s=n;for(let r=1;re[n]!==void 0)}function K0(e){let t={velocity:Re.velocity,stiffness:Re.stiffness,damping:Re.damping,mass:Re.mass,isResolvedFromDuration:!1,...e};if(!nd(e,Z0)&&nd(e,q0))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),r=s*s,i=2*mn(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:Re.mass,stiffness:r,damping:i}}else{const n=z0(e);t={...t,...n,mass:Re.mass},t.isResolvedFromDuration=!0}return t}function cm(e=Re.visualDuration,t=Re.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:r}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=K0({...n,velocity:-pn(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-i,v=pn(Math.sqrt(c/u)),b=Math.abs(g)<5;s||(s=b?Re.restSpeed.granular:Re.restSpeed.default),r||(r=b?Re.restDelta.granular:Re.restDelta.default);let w;if(h<1){const S=Ja(v,h);w=E=>{const R=Math.exp(-h*v*E);return o-R*((m+h*v*g)/S*Math.sin(S*E)+g*Math.cos(S*E))}}else if(h===1)w=S=>o-Math.exp(-v*S)*(g+(m+v*g)*S);else{const S=v*Math.sqrt(h*h-1);w=E=>{const R=Math.exp(-h*v*E),A=Math.min(S*E,300);return o-R*((m+h*v*g)*Math.sinh(A)+S*g*Math.cosh(A))/S}}const T={calculatedDuration:p&&d||null,next:S=>{const E=w(S);if(p)a.done=S>=d;else{let R=0;h<1&&(R=S===0?hn(m):am(w,S,E));const A=Math.abs(R)<=s,N=Math.abs(o-E)<=r;a.done=A&&N}return a.value=a.done?o:E,a},toString:()=>{const S=Math.min(rm(T),Xa),E=Np(R=>T.next(S*R).value,S,30);return S+"ms "+E}};return T}function sd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=A=>a!==void 0&&Ac,m=A=>a===void 0?c:c===void 0||Math.abs(a-A)-h*Math.exp(-A/s),w=A=>v+b(A),T=A=>{const N=b(A),D=w(A);f.done=Math.abs(N)<=l,f.value=f.done?v:D};let S,E;const R=A=>{p(f.value)&&(S=A,E=cm({keyframes:[f.value,m(f.value)],velocity:am(w,A,f.value),damping:r,stiffness:i,restDelta:l,restSpeed:u}))};return R(0),{calculatedDuration:null,next:A=>{let N=!1;return!E&&S===void 0&&(N=!0,T(A),R(A)),S!==void 0&&A>=S?E.next(A-S):(!N&&T(A),f)}}}const G0=mi(.42,0,1,1),Q0=mi(0,0,.58,1),lm=mi(.42,0,.58,1),X0=e=>Array.isArray(e)&&typeof e[0]!="number",rd={linear:gt,easeIn:G0,easeInOut:lm,easeOut:Q0,circIn:Cl,circInOut:$p,circOut:Up,backIn:Tl,backInOut:Vp,backOut:Ip,anticipate:Bp},id=e=>{if(_l(e)){za(e.length===4);const[t,n,s,r]=e;return mi(t,n,s,r)}else if(typeof e=="string")return za(rd[e]!==void 0),rd[e];return e};function Y0(e,t,n){const s=[],r=n||om,i=e.length-1;for(let o=0;ot[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Y0(t,s,r),c=a.length,l=u=>{if(o&&u1)for(;dl(mn(e[0],e[i-1],u)):l}function eS(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const r=Xs(0,t,s);e.push(Ae(n,1,r))}}function tS(e){const t=[0];return eS(t,e.length-1),t}function nS(e,t){return e.map(n=>n*t)}function sS(e,t){return e.map(()=>t||lm).splice(0,e.length-1)}function io({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const r=X0(s)?s.map(id):id(s),i={done:!1,value:t[0]},o=nS(n&&n.length===t.length?n:tS(t),e),a=J0(o,t,{ease:Array.isArray(r)?r:sS(t,r)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const rS=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Te.update(t,!0),stop:()=>Dn(t),now:()=>$e.isProcessing?$e.timestamp:Jt.now()}},iS={decay:sd,inertia:sd,tween:io,keyframes:io,spring:cm},oS=e=>e/100;class Ol extends sm{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:s,element:r,keyframes:i}=this.options,o=(r==null?void 0:r.KeyframeResolver)||Rl,a=(c,l)=>this.onKeyframesResolved(c,l);this.resolver=new o(i,a,n,s,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=this.options,a=Sl(n)?n:iS[n]||io;let c,l;a!==io&&typeof t[0]!="number"&&(c=gi(oS,om(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});i==="mirror"&&(l=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=rm(u));const{calculatedDuration:d}=u,f=d+r,p=f*(s+1)-r;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:c,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:s}=this;if(!s){const{keyframes:A}=this.options;return{done:!0,value:A[A.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:c,calculatedDuration:l,totalDuration:u,resolvedDuration:d}=s;if(this.startTime===null)return i.next(0);const{delay:f,repeat:p,repeatType:m,repeatDelay:h,onUpdate:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-f*(this.speed>=0?1:-1),b=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let w=this.currentTime,T=i;if(p){const A=Math.min(this.currentTime,u)/d;let N=Math.floor(A),D=A%1;!D&&A>=1&&(D=1),D===1&&N--,N=Math.min(N,p+1),!!(N%2)&&(m==="reverse"?(D=1-D,h&&(D-=h/d)):m==="mirror"&&(T=o)),w=mn(0,1,D)*d}const S=b?{done:!1,value:c[0]}:T.next(w);a&&(S.value=a(S.value));let{done:E}=S;!b&&l!==null&&(E=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return R&&r!==void 0&&(S.value=Vo(c,this.options,r)),g&&g(S.value),R&&this.finish(),S}get duration(){const{resolved:t}=this;return t?pn(t.calculatedDuration):0}get time(){return pn(this.currentTime)}set time(t){t=hn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=pn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=rS,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const aS=new Set(["opacity","clipPath","filter","transform"]);function cS(e,t,n,{delay:s=0,duration:r=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:c}={}){const l={[t]:n};c&&(l.offset=c);const u=Dp(a,r);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:s,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const lS=wl(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),oo=10,uS=2e4;function dS(e){return Sl(e.type)||e.type==="spring"||!jp(e.ease)}function fS(e,t){const n=new Ol({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:e[0]};const r=[];let i=0;for(;!s.done&&ithis.onKeyframesResolved(o,a),n,s,r),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:s=300,times:r,ease:i,type:o,motionValue:a,name:c,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&so()&&hS(i)&&(i=um[i]),dS(this.options)){const{onComplete:d,onUpdate:f,motionValue:p,element:m,...h}=this.options,g=fS(t,h);t=g.keyframes,t.length===1&&(t[1]=t[0]),s=g.duration,r=g.times,i=g.ease,o="keyframes"}const u=cS(a.owner.current,c,t,{...this.options,duration:s,times:r,ease:i});return u.startTime=l??this.calcStartTime(),this.pendingTimeline?(qu(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(Vo(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:s,times:r,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return pn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return pn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=hn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return gt;const{animation:s}=n;qu(s,t)}return gt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:s,duration:r,type:i,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:u,onComplete:d,element:f,...p}=this.options,m=new Ol({...p,keyframes:s,duration:r,type:i,ease:o,times:a,isGenerator:!0}),h=hn(this.time);l.setWithVelocity(m.sample(h-oo).value,m.sample(h).value,oo)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:s,repeatDelay:r,repeatType:i,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=n.owner.getProps();return lS()&&s&&aS.has(s)&&!c&&!l&&!r&&i!=="mirror"&&o!==0&&a!=="inertia"}}const pS={type:"spring",stiffness:500,damping:25,restSpeed:10},mS=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),gS={type:"keyframes",duration:.8},yS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},vS=(e,{keyframes:t})=>t.length>2?gS:bs.has(e)?e.startsWith("scale")?mS(t[1]):pS:yS;function xS({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:i,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const Nl=(e,t,n,s={},r,i)=>o=>{const a=yl(s,e)||{},c=a.delay||s.delay||0;let{elapsed:l=0}=s;l=l-hn(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:r};xS(a)||(u={...u,...vS(e,u)}),u.duration&&(u.duration=hn(u.duration)),u.repeatDelay&&(u.repeatDelay=hn(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=Vo(u.keyframes,a);if(f!==void 0)return Te.update(()=>{u.onUpdate(f),u.onComplete()}),new Yw([])}return!i&&od.supports(u)?new od(u):new Ol(u)};function bS({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function dm(e,t,{delay:n=0,transitionOverride:s,type:r}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...c}=t;s&&(o=s);const l=[],u=r&&e.animationState&&e.animationState.getState()[r];for(const d in c){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),p=c[d];if(p===void 0||u&&bS(u,d))continue;const m={delay:n,...yl(o||{},d)};let h=!1;if(window.MotionHandoffAnimation){const v=Op(e);if(v){const b=window.MotionHandoffAnimation(v,d,Te);b!==null&&(m.startTime=b,h=!0)}}Ha(e,d),f.start(Nl(d,f,p,e.shouldReduceMotion&&Rp.has(d)?{type:!1}:m,e,h));const g=f.animation;g&&l.push(g)}return a&&Promise.all(l).then(()=>{Te.update(()=>{a&&Kw(e,a)})}),l}function ec(e,t,n={}){var s;const r=Io(e,t,n.type==="exit"?(s=e.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(dm(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return wS(e,t,u+l,d,f,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[l,u]=c==="beforeChildren"?[o,a]:[a,o];return l().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function wS(e,t,n=0,s=0,r=1,i){const o=[],a=(e.variantChildren.size-1)*s,c=r===1?(l=0)=>l*s:(l=0)=>a-l*s;return Array.from(e.variantChildren).sort(SS).forEach((l,u)=>{l.notify("AnimationStart",t),o.push(ec(l,t,{...i,delay:n+c(u)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function SS(e,t){return e.sortNodePosition(t)}function _S(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const r=t.map(i=>ec(e,i,n));s=Promise.all(r)}else if(typeof t=="string")s=ec(e,t,n);else{const r=typeof t=="function"?Io(e,t,n.custom):t;s=Promise.all(dm(e,r,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const TS=rl.length;function fm(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?fm(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:s})=>_S(e,n,s)))}function PS(e){let t=ES(e),n=ad(),s=!0;const r=c=>(l,u)=>{var d;const f=Io(e,u,c==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:m,...h}=f;l={...l,...h,...m}}return l};function i(c){t=c(e)}function o(c){const{props:l}=e,u=fm(e.parent)||{},d=[],f=new Set;let p={},m=1/0;for(let g=0;gm&&T,N=!1;const D=Array.isArray(w)?w:[w];let L=D.reduce(r(v),{});S===!1&&(L={});const{prevResolvedValues:j={}}=b,$={...j,...L},W=Z=>{A=!0,f.has(Z)&&(N=!0,f.delete(Z)),b.needsAnimating[Z]=!0;const q=e.getValue(Z);q&&(q.liveStyle=!1)};for(const Z in $){const q=L[Z],re=j[Z];if(p.hasOwnProperty(Z))continue;let me=!1;Wa(q)&&Wa(re)?me=!Pp(q,re):me=q!==re,me?q!=null?W(Z):f.add(Z):q!==void 0&&f.has(Z)?W(Z):b.protectedKeys[Z]=!0}b.prevProp=w,b.prevResolvedValues=L,b.isActive&&(p={...p,...L}),s&&e.blockInitialAnimation&&(A=!1),A&&(!(E&&R)||N)&&d.push(...D.map(Z=>({animation:Z,options:{type:v}})))}if(f.size){const g={};f.forEach(v=>{const b=e.getBaseTarget(v),w=e.getValue(v);w&&(w.liveStyle=!0),g[v]=b??null}),d.push({animation:g})}let h=!!d.length;return s&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(h=!1),s=!1,h?t(d):Promise.resolve()}function a(c,l){var u;if(n[c].isActive===l)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(c,l)}),n[c].isActive=l;const d=o(c);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=ad(),s=!0}}}function RS(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Pp(t,e):!1}function Zn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ad(){return{animate:Zn(!0),whileInView:Zn(),whileHover:Zn(),whileTap:Zn(),whileDrag:Zn(),whileFocus:Zn(),exit:Zn()}}class zn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class kS extends zn{constructor(t){super(t),t.animationState||(t.animationState=PS(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Fo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let OS=0;class NS extends zn{constructor(){super(...arguments),this.id=OS++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const jS={animation:{Feature:kS},exit:{Feature:NS}},Pt={x:!1,y:!1};function hm(){return Pt.x||Pt.y}function DS(e){return e==="x"||e==="y"?Pt[e]?null:(Pt[e]=!0,()=>{Pt[e]=!1}):Pt.x||Pt.y?null:(Pt.x=Pt.y=!0,()=>{Pt.x=Pt.y=!1})}const jl=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function $r(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function yi(e){return{point:{x:e.pageX,y:e.pageY}}}const MS=e=>t=>jl(t)&&e(t,yi(t));function Or(e,t,n,s){return $r(e,t,MS(n),s)}const cd=(e,t)=>Math.abs(e-t);function FS(e,t){const n=cd(e.x,t.x),s=cd(e.y,t.y);return Math.sqrt(n**2+s**2)}class pm{constructor(t,n,{transformPagePoint:s,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=ga(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=FS(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:m}=d,{timestamp:h}=$e;this.history.push({...m,timestamp:h});const{onStart:g,onMove:v}=this.handlers;f||(g&&g(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=ma(f,this.transformPagePoint),Te.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:m,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=ga(d.type==="pointercancel"?this.lastMoveEventInfo:ma(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,g),m&&m(d,g)},!jl(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=s,this.contextWindow=r||window;const o=yi(t),a=ma(o,this.transformPagePoint),{point:c}=a,{timestamp:l}=$e;this.history=[{...c,timestamp:l}];const{onSessionStart:u}=n;u&&u(t,ga(a,this.history)),this.removeListeners=gi(Or(this.contextWindow,"pointermove",this.handlePointerMove),Or(this.contextWindow,"pointerup",this.handlePointerUp),Or(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Dn(this.updatePoint)}}function ma(e,t){return t?{point:t(e.point)}:e}function ld(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ga({point:e},t){return{point:e,delta:ld(e,mm(t)),offset:ld(e,LS(t)),velocity:IS(t,.1)}}function LS(e){return e[0]}function mm(e){return e[e.length-1]}function IS(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const r=mm(e);for(;n>=0&&(s=e[n],!(r.timestamp-s.timestamp>hn(t)));)n--;if(!s)return{x:0,y:0};const i=pn(r.timestamp-s.timestamp);if(i===0)return{x:0,y:0};const o={x:(r.x-s.x)/i,y:(r.y-s.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const gm=1e-4,VS=1-gm,BS=1+gm,ym=.01,US=0-ym,$S=0+ym;function tt(e){return e.max-e.min}function zS(e,t,n){return Math.abs(e-t)<=n}function ud(e,t,n,s=.5){e.origin=s,e.originPoint=Ae(t.min,t.max,e.origin),e.scale=tt(n)/tt(t),e.translate=Ae(n.min,n.max,e.origin)-e.originPoint,(e.scale>=VS&&e.scale<=BS||isNaN(e.scale))&&(e.scale=1),(e.translate>=US&&e.translate<=$S||isNaN(e.translate))&&(e.translate=0)}function Nr(e,t,n,s){ud(e.x,t.x,n.x,s?s.originX:void 0),ud(e.y,t.y,n.y,s?s.originY:void 0)}function dd(e,t,n){e.min=n.min+t.min,e.max=e.min+tt(t)}function WS(e,t,n){dd(e.x,t.x,n.x),dd(e.y,t.y,n.y)}function fd(e,t,n){e.min=t.min-n.min,e.max=e.min+tt(t)}function jr(e,t,n){fd(e.x,t.x,n.x),fd(e.y,t.y,n.y)}function HS(e,{min:t,max:n},s){return t!==void 0&&en&&(e=s?Ae(n,e,s.max):Math.min(e,n)),e}function hd(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function qS(e,{top:t,left:n,bottom:s,right:r}){return{x:hd(e.x,n,r),y:hd(e.y,t,s)}}function pd(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.mins?n=Xs(t.min,t.max-s,e.min):s>r&&(n=Xs(e.min,e.max-r,t.min)),mn(0,1,n)}function GS(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const tc=.35;function QS(e=tc){return e===!1?e=0:e===!0&&(e=tc),{x:md(e,"left","right"),y:md(e,"top","bottom")}}function md(e,t,n){return{min:gd(e,t),max:gd(e,n)}}function gd(e,t){return typeof e=="number"?e:e[t]||0}const yd=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ps=()=>({x:yd(),y:yd()}),vd=()=>({min:0,max:0}),Ne=()=>({x:vd(),y:vd()});function St(e){return[e("x"),e("y")]}function vm({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function XS({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function YS(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ya(e){return e===void 0||e===1}function nc({scale:e,scaleX:t,scaleY:n}){return!ya(e)||!ya(t)||!ya(n)}function Kn(e){return nc(e)||xm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function xm(e){return xd(e.x)||xd(e.y)}function xd(e){return e&&e!=="0%"}function ao(e,t,n){const s=e-n,r=t*s;return n+r}function bd(e,t,n,s,r){return r!==void 0&&(e=ao(e,r,s)),ao(e,n,s)+t}function sc(e,t=0,n=1,s,r){e.min=bd(e.min,t,n,s,r),e.max=bd(e.max,t,n,s,r)}function bm(e,{x:t,y:n}){sc(e.x,t.translate,t.scale,t.originPoint),sc(e.y,n.translate,n.scale,n.originPoint)}const wd=.999999999999,Sd=1.0000000000001;function JS(e,t,n,s=!1){const r=n.length;if(!r)return;t.x=t.y=1;let i,o;for(let a=0;awd&&(t.x=1),t.ywd&&(t.y=1)}function Rs(e,t){e.min=e.min+t,e.max=e.max+t}function _d(e,t,n,s,r=.5){const i=Ae(e.min,e.max,r);sc(e,t,n,i,s)}function ks(e,t){_d(e.x,t.x,t.scaleX,t.scale,t.originX),_d(e.y,t.y,t.scaleY,t.scale,t.originY)}function wm(e,t){return vm(YS(e.getBoundingClientRect(),t))}function e_(e,t,n){const s=wm(e,n),{scroll:r}=t;return r&&(Rs(s.x,r.offset.x),Rs(s.y,r.offset.y)),s}const Sm=({current:e})=>e?e.ownerDocument.defaultView:null,t_=new WeakMap;class n_{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ne(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const r=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(yi(u).point)},i=(u,d)=>{const{drag:f,dragPropagation:p,onDragStart:m}=this.getProps();if(f&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=DS(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),St(g=>{let v=this.getAxisMotionValue(g).get()||0;if(Yt.test(v)){const{projection:b}=this.visualElement;if(b&&b.layout){const w=b.layout.layoutBox[g];w&&(v=tt(w)*(parseFloat(v)/100))}}this.originPoint[g]=v}),m&&Te.postRender(()=>m(u,d)),Ha(this.visualElement,"transform");const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:m,onDrag:h}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:g}=d;if(p&&this.currentDirection===null){this.currentDirection=s_(g),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,g),this.updateAxis("y",d.point,g),this.visualElement.render(),h&&h(u,d)},a=(u,d)=>this.stop(u,d),c=()=>St(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new pm(t,{onSessionStart:r,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:Sm(this.visualElement)})}stop(t,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:i}=this.getProps();i&&Te.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,s){const{drag:r}=this.getProps();if(!s||!Vi(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(o=HS(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:s}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&As(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=qS(r.layoutBox,n):this.constraints=!1,this.elastic=QS(s),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&St(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=GS(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!As(t))return!1;const s=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=e_(s,r.root,this.visualElement.getTransformPagePoint());let o=ZS(r.layout.layoutBox,i);if(n){const a=n(XS(o));this.hasMutatedConstraints=!!a,a&&(o=vm(a))}return o}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=St(u=>{if(!Vi(u,n,this.currentDirection))return;let d=c[u]||{};o&&(d={min:0,max:0});const f=r?200:1e6,p=r?40:1e7,m={type:"inertia",velocity:s?t[u]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,m)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return Ha(this.visualElement,t),s.start(Nl(t,s,0,n,this.visualElement,!1))}stopAnimation(){St(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){St(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),r=s[n];return r||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){St(n=>{const{drag:s}=this.getProps();if(!Vi(n,s,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(n);if(r&&r.layout){const{min:o,max:a}=r.layout.layoutBox[n];i.set(t[n]-Ae(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!As(n)||!s||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};St(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();r[o]=KS({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),St(o=>{if(!Vi(o,t,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(Ae(c,l,r[o]))})}addListeners(){if(!this.visualElement.current)return;t_.set(this.visualElement,this);const t=this.visualElement.current,n=Or(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),s=()=>{const{dragConstraints:c}=this.getProps();As(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",s);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Te.read(s);const o=$r(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(St(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=c[u].translate,d.set(d.get()+c[u].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=tc,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Vi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function s_(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class r_ extends zn{constructor(t){super(t),this.removeGroupControls=gt,this.removeListeners=gt,this.controls=new n_(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||gt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Td=e=>(t,n)=>{e&&Te.postRender(()=>e(t,n))};class i_ extends zn{constructor(){super(...arguments),this.removePointerDownListener=gt}onPointerDown(t){this.session=new pm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Sm(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:r}=this.node.getProps();return{onSessionStart:Td(t),onStart:Td(n),onMove:s,onEnd:(i,o)=>{delete this.session,r&&Te.postRender(()=>r(i,o))}}}mount(){this.removePointerDownListener=Or(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ki={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Cd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const xr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(J.test(e))e=parseFloat(e);else return e;const n=Cd(e,t.target.x),s=Cd(e,t.target.y);return`${n}% ${s}%`}},o_={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,r=Mn.parse(e);if(r.length>5)return s;const i=Mn.createTransformer(e),o=typeof r[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=c;const l=Ae(a,c,.5);return typeof r[2+o]=="number"&&(r[2+o]/=l),typeof r[3+o]=="number"&&(r[3+o]/=l),i(r)}};class a_ extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:r}=this.props,{projection:i}=t;Dw(c_),i&&(n.group&&n.group.add(i),s&&s.register&&r&&s.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Ki.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:r,isPresent:i}=this.props,o=s.projection;return o&&(o.isPresent=i,r||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Te.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ol.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),s&&s.deregister&&s.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function _m(e){const[t,n]=lp(),s=x.useContext(Jc);return y.jsx(a_,{...e,layoutGroup:s,switchLayoutGroup:x.useContext(gp),isPresent:t,safeToRemove:n})}const c_={borderRadius:{...xr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xr,borderTopRightRadius:xr,borderBottomLeftRadius:xr,borderBottomRightRadius:xr,boxShadow:o_};function l_(e,t,n){const s=Ge(e)?e:Br(e);return s.start(Nl("",s,t,n)),s.animation}function u_(e){return e instanceof SVGElement&&e.tagName!=="svg"}const d_=(e,t)=>e.depth-t.depth;class f_{constructor(){this.children=[],this.isDirty=!1}add(t){vl(this.children,t),this.isDirty=!0}remove(t){xl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(d_),this.isDirty=!1,this.children.forEach(t)}}function h_(e,t){const n=Jt.now(),s=({timestamp:r})=>{const i=r-n;i>=t&&(Dn(s),e(i-t))};return Te.read(s,!0),()=>Dn(s)}const Tm=["TopLeft","TopRight","BottomLeft","BottomRight"],p_=Tm.length,Ad=e=>typeof e=="string"?parseFloat(e):e,Ed=e=>typeof e=="number"||J.test(e);function m_(e,t,n,s,r,i){r?(e.opacity=Ae(0,n.opacity!==void 0?n.opacity:1,g_(s)),e.opacityExit=Ae(t.opacity!==void 0?t.opacity:1,0,y_(s))):i&&(e.opacity=Ae(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let o=0;ost?1:n(Xs(e,t,s))}function Rd(e,t){e.min=t.min,e.max=t.max}function wt(e,t){Rd(e.x,t.x),Rd(e.y,t.y)}function kd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Od(e,t,n,s,r){return e-=t,e=ao(e,1/n,s),r!==void 0&&(e=ao(e,1/r,s)),e}function v_(e,t=0,n=1,s=.5,r,i=e,o=e){if(Yt.test(t)&&(t=parseFloat(t),t=Ae(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Ae(i.min,i.max,s);e===i&&(a-=t),e.min=Od(e.min,t,n,a,r),e.max=Od(e.max,t,n,a,r)}function Nd(e,t,[n,s,r],i,o){v_(e,t[n],t[s],t[r],t.scale,i,o)}const x_=["x","scaleX","originX"],b_=["y","scaleY","originY"];function jd(e,t,n,s){Nd(e.x,t,x_,n?n.x:void 0,s?s.x:void 0),Nd(e.y,t,b_,n?n.y:void 0,s?s.y:void 0)}function Dd(e){return e.translate===0&&e.scale===1}function Am(e){return Dd(e.x)&&Dd(e.y)}function Md(e,t){return e.min===t.min&&e.max===t.max}function w_(e,t){return Md(e.x,t.x)&&Md(e.y,t.y)}function Fd(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Em(e,t){return Fd(e.x,t.x)&&Fd(e.y,t.y)}function Ld(e){return tt(e.x)/tt(e.y)}function Id(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class S_{constructor(){this.members=[]}add(t){vl(this.members,t),t.scheduleRender()}remove(t){if(xl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(r=>t===r);if(n===0)return!1;let s;for(let r=n;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1){s=i;break}}return s?(this.promote(s),!0):!1}promote(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,n&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:s}=t;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function __(e,t,n){let s="";const r=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((r||i||o)&&(s=`translate3d(${r}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:d,rotateY:f,skewX:p,skewY:m}=n;l&&(s=`perspective(${l}px) ${s}`),u&&(s+=`rotate(${u}deg) `),d&&(s+=`rotateX(${d}deg) `),f&&(s+=`rotateY(${f}deg) `),p&&(s+=`skewX(${p}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(s+=`scale(${a}, ${c})`),s||"none"}const Gn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Tr=typeof window<"u"&&window.MotionDebug!==void 0,va=["","X","Y","Z"],T_={visibility:"hidden"},Vd=1e3;let C_=0;function xa(e,t,n,s){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),s&&(s[e]=0))}function Pm(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Op(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Te,!(r||i))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&Pm(s)}function Rm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(o={},a=t==null?void 0:t()){this.id=C_++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Tr&&(Gn.totalNodes=Gn.resolvedTargetDeltas=Gn.recalculatedProjection=0),this.nodes.forEach(P_),this.nodes.forEach(j_),this.nodes.forEach(D_),this.nodes.forEach(R_),Tr&&window.MotionDebug.record(Gn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;cthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=h_(f,250),Ki.hasAnimatedSinceResize&&(Ki.hasAnimatedSinceResize=!1,this.nodes.forEach(Ud))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||u.getDefaultTransition()||V_,{onLayoutAnimationStart:g,onLayoutAnimationComplete:v}=u.getProps(),b=!this.targetLayout||!Em(this.targetLayout,m),w=!f&&p;if(this.options.layoutRoot||this.resumeFrom||w||f&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,w);const T={...yl(h,"layout"),onPlay:g,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||Ud(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Dn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(M_),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Pm(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!tt(this.snapshot.measuredBox.x)&&!tt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c{const S=T/1e3;$d(d.x,o.x,S),$d(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),L_(this.relativeTarget,this.relativeTargetOrigin,f,S),w&&w_(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Ne()),wt(w,this.relativeTarget)),h&&(this.animationValues=u,m_(u,l,this.latestValues,S,b,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Dn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Te.update(()=>{Ki.hasAnimatedSinceResize=!0,this.currentAnimation=l_(0,Vd,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Vd),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=o;if(!(!a||!c||!l)){if(this!==o&&this.layout&&l&&km(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||Ne();const d=tt(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+d;const f=tt(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+f}wt(a,c),ks(a,u),Nr(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new S_),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&xa("z",o,l,this.animationValues);for(let u=0;u{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Bd),this.root.sharedNodes.clear()}}}function A_(e){e.updateLayout()}function E_(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?St(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],p=tt(f);f.min=s[d].min,f.max=f.min+p}):km(i,n.layoutBox,s)&&St(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],p=tt(s[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=Ps();Nr(a,s,n.layoutBox);const c=Ps();o?Nr(c,e.applyTransform(r,!0),n.measuredBox):Nr(c,s,n.layoutBox);const l=!Am(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const m=Ne();jr(m,n.layoutBox,f.layoutBox);const h=Ne();jr(h,s,p.layoutBox),Em(m,h)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function P_(e){Tr&&Gn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function R_(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function k_(e){e.clearSnapshot()}function Bd(e){e.clearMeasurements()}function O_(e){e.isLayoutDirty=!1}function N_(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ud(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function j_(e){e.resolveTargetDelta()}function D_(e){e.calcProjection()}function M_(e){e.resetSkewAndRotation()}function F_(e){e.removeLeadSnapshot()}function $d(e,t,n){e.translate=Ae(t.translate,0,n),e.scale=Ae(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function zd(e,t,n,s){e.min=Ae(t.min,n.min,s),e.max=Ae(t.max,n.max,s)}function L_(e,t,n,s){zd(e.x,t.x,n.x,s),zd(e.y,t.y,n.y,s)}function I_(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const V_={duration:.45,ease:[.4,0,.1,1]},Wd=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Hd=Wd("applewebkit/")&&!Wd("chrome/")?Math.round:gt;function qd(e){e.min=Hd(e.min),e.max=Hd(e.max)}function B_(e){qd(e.x),qd(e.y)}function km(e,t,n){return e==="position"||e==="preserve-aspect"&&!zS(Ld(t),Ld(n),.2)}function U_(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const $_=Rm({attachResizeListener:(e,t)=>$r(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ba={current:void 0},Om=Rm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ba.current){const e=new $_({});e.mount(window),e.setOptions({layoutScroll:!0}),ba.current=e}return ba.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),z_={pan:{Feature:i_},drag:{Feature:r_,ProjectionNode:Om,MeasureLayout:_m}};function W_(e,t,n){var s;if(e instanceof Element)return[e];if(typeof e=="string"){let r=document;const i=(s=void 0)!==null&&s!==void 0?s:r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Nm(e,t){const n=W_(e),s=new AbortController,r={passive:!0,...t,signal:s.signal};return[n,r,()=>s.abort()]}function Zd(e){return!(e.pointerType==="touch"||hm())}function H_(e,t,n={}){const[s,r,i]=Nm(e,n),o=a=>{if(!Zd(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=d=>{Zd(d)&&(l(d),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,r)};return s.forEach(a=>{a.addEventListener("pointerenter",o,r)}),i}function Kd(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,i=s[r];i&&Te.postRender(()=>i(t,yi(t)))}class q_ extends zn{mount(){const{current:t}=this.node;t&&(this.unmount=H_(t,(n,s)=>(Kd(this.node,s,"Start"),r=>Kd(this.node,r,"End"))))}unmount(){}}class Z_ extends zn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=gi($r(this.node.current,"focus",()=>this.onFocus()),$r(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const jm=(e,t)=>t?e===t?!0:jm(e,t.parentElement):!1,K_=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function G_(e){return K_.has(e.tagName)||e.tabIndex!==-1}const Cr=new WeakSet;function Gd(e){return t=>{t.key==="Enter"&&e(t)}}function wa(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Q_=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=Gd(()=>{if(Cr.has(n))return;wa(n,"down");const r=Gd(()=>{wa(n,"up")}),i=()=>wa(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function Qd(e){return jl(e)&&!hm()}function X_(e,t,n={}){const[s,r,i]=Nm(e,n),o=a=>{const c=a.currentTarget;if(!Qd(a)||Cr.has(c))return;Cr.add(c);const l=t(c,a),u=(p,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!Qd(p)||!Cr.has(c))&&(Cr.delete(c),typeof l=="function"&&l(p,{success:m}))},d=p=>{u(p,n.useGlobalTarget||jm(c,p.target))},f=p=>{u(p,!1)};window.addEventListener("pointerup",d,r),window.addEventListener("pointercancel",f,r)};return s.forEach(a=>{!G_(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,r),a.addEventListener("focus",l=>Q_(l,r),r)}),i}function Xd(e,t,n){const{props:s}=e;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),i=s[r];i&&Te.postRender(()=>i(t,yi(t)))}class Y_ extends zn{mount(){const{current:t}=this.node;t&&(this.unmount=X_(t,(n,s)=>(Xd(this.node,s,"Start"),(r,{success:i})=>Xd(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const rc=new WeakMap,Sa=new WeakMap,J_=e=>{const t=rc.get(e.target);t&&t(e)},eT=e=>{e.forEach(J_)};function tT({root:e,...t}){const n=e||document;Sa.has(n)||Sa.set(n,{});const s=Sa.get(n),r=JSON.stringify(t);return s[r]||(s[r]=new IntersectionObserver(eT,{root:e,...t})),s[r]}function nT(e,t,n){const s=tT(t);return rc.set(e,n),s.observe(e),()=>{rc.delete(e),s.unobserve(e)}}const sT={some:0,all:1};class rT extends zn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof r=="number"?r:sT[r]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=l?u:d;f&&f(c)};return nT(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(iT(t,n))&&this.startObserver()}unmount(){}}function iT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const oT={inView:{Feature:rT},tap:{Feature:Y_},focus:{Feature:Z_},hover:{Feature:q_}},aT={layout:{ProjectionNode:Om,MeasureLayout:_m}},ic={current:null},Dm={current:!1};function cT(){if(Dm.current=!0,!!nl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ic.current=e.matches;e.addListener(t),t()}else ic.current=!1}const lT=[...tm,Ze,Mn],uT=e=>lT.find(em(e)),Yd=new WeakMap;function dT(e,t,n){for(const s in t){const r=t[s],i=n[s];if(Ge(r))e.addValue(s,r);else if(Ge(i))e.addValue(s,Br(r,{owner:e}));else if(i!==r)if(e.hasValue(s)){const o=e.getValue(s);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=e.getStaticValue(s);e.addValue(s,Br(o!==void 0?o:r,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const Jd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class fT{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Rl,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=Jt.now();this.renderScheduledAtthis.bindToMotionValue(s,n)),Dm.current||cT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ic.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Yd.delete(this.current),this.projection&&this.projection.unmount(),Dn(this.notifyUpdate),Dn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=bs.has(t),r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Te.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Qs){const n=Qs[t];if(!n)continue;const{isEnabled:s,Feature:r}=n;if(!this.features[t]&&r&&s(this.props)&&(this.features[t]=new r(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ne()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;sn.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=Br(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){var s;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Yp(r)||zp(r))?r=parseFloat(r):!uT(r)&&Mn.test(n)&&(r=Gp(t,n)),this.setBaseTarget(t,Ge(r)?r.get():r)),Ge(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const o=cl(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(r=o[t])}if(s&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ge(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new bl),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Mm extends fT{constructor(){super(...arguments),this.KeyframeResolver=nm}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ge(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function hT(e){return window.getComputedStyle(e)}class pT extends Mm{constructor(){super(...arguments),this.type="html",this.renderInstance=Sp}readValueFromInstance(t,n){if(bs.has(n)){const s=Pl(n);return s&&s.default||0}else{const s=hT(t),r=(ll(n)?s.getPropertyValue(n):s[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return wm(t,n)}build(t,n,s){fl(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return gl(t,n,s)}}class mT extends Mm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ne}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(bs.has(n)){const s=Pl(n);return s&&s.default||0}return n=_p.has(n)?n:il(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return Ap(t,n,s)}build(t,n,s){hl(t,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,s,r){Tp(t,n,s,r)}mount(t){this.isSVGTag=ml(t.tagName),super.mount(t)}}const gT=(e,t)=>al(e)?new mT(t):new pT(t,{allowProjection:e!==x.Fragment}),yT=zw({...jS,...oT,...z_,...aT},gT),Gi=rw(yT);var _a,ef;function vT(){if(ef)return _a;ef=1;var e="Expected a function",t=NaN,n="[object Symbol]",s=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,c=typeof ki=="object"&&ki&&ki.Object===Object&&ki,l=typeof self=="object"&&self&&self.Object===Object&&self,u=c||l||Function("return this")(),d=Object.prototype,f=d.toString,p=Math.max,m=Math.min,h=function(){return u.Date.now()};function g(S,E,R){var A,N,D,L,j,$,W=0,se=!1,Y=!1,Z=!0;if(typeof S!="function")throw new TypeError(e);E=T(E)||0,v(R)&&(se=!!R.leading,Y="maxWait"in R,D=Y?p(T(R.maxWait)||0,E):D,Z="trailing"in R?!!R.trailing:Z);function q(ue){var ye=A,ke=N;return A=N=void 0,W=ue,L=S.apply(ke,ye),L}function re(ue){return W=ue,j=setTimeout(We,E),se?q(ue):L}function me(ue){var ye=ue-$,ke=ue-W,Le=E-ye;return Y?m(Le,D-ke):Le}function ge(ue){var ye=ue-$,ke=ue-W;return $===void 0||ye>=E||ye<0||Y&&ke>=D}function We(){var ue=h();if(ge(ue))return ft(ue);j=setTimeout(We,me(ue))}function ft(ue){return j=void 0,Z&&A?q(ue):(A=N=void 0,L)}function He(){j!==void 0&&clearTimeout(j),W=0,A=$=N=j=void 0}function Et(){return j===void 0?L:ft(h())}function Xe(){var ue=h(),ye=ge(ue);if(A=arguments,N=this,$=ue,ye){if(j===void 0)return re($);if(Y)return j=setTimeout(We,E),q($)}return j===void 0&&(j=setTimeout(We,E)),L}return Xe.cancel=He,Xe.flush=Et,Xe}function v(S){var E=typeof S;return!!S&&(E=="object"||E=="function")}function b(S){return!!S&&typeof S=="object"}function w(S){return typeof S=="symbol"||b(S)&&f.call(S)==n}function T(S){if(typeof S=="number")return S;if(w(S))return t;if(v(S)){var E=typeof S.valueOf=="function"?S.valueOf():S;S=v(E)?E+"":E}if(typeof S!="string")return S===0?S:+S;S=S.replace(s,"");var R=i.test(S);return R||o.test(S)?a(S.slice(2),R?2:8):r.test(S)?t:+S}return _a=g,_a}vT();var xT=typeof window<"u"?x.useLayoutEffect:x.useEffect,bT=typeof window>"u";function oc(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const s=a=>bT?t:window.matchMedia(a).matches,[r,i]=x.useState(()=>n?s(e):t);function o(){i(s(e))}return xT(()=>{const a=window.matchMedia(e);return o(),a.addListener?a.addListener(o):a.addEventListener("change",o),()=>{a.removeListener?a.removeListener(o):a.removeEventListener("change",o)}},[e]),r}const Kk=({className:e,stage:t})=>{const n=oc("(min-width: 768px");return y.jsx("div",{className:e,children:y.jsx("div",{className:"max-w-[808px] md:mx-auto my-20 mx-5",children:y.jsxs("div",{className:"relative h-14 w-full",children:[y.jsx("div",{className:Q("h-2 absolute bg-[#D0D3D8] rounded-[2px] w-full top-0 left-0")}),y.jsx(Gi.div,{initial:{width:0},animate:t===2?{width:"20%"}:t===3&&{width:"75%"},transition:{delay:.5,duration:.5},className:Q("h-2 absolute bg-primary rounded-[2px] top-0 left-0 z-[5]",{"w-0 bg-opacity-0":t===1,"w-[20%]":t===2,"w-[75%]":t===3})}),y.jsx(Gi.div,{initial:{width:n?"50%":"35%"},animate:t===2?{width:"75%"}:t===3&&{width:"100%"},className:Q("bg-reverse_primary w-1/2 absolute top-0 left-0 rounded-[2px] z-[3] h-2")}),y.jsx(Gi.div,{className:Q("progress-circle absolute transition-all duration-500 -top-6 flex items-center justify-center",{"bg-reverse_primary md:left-1/2 left-1/3":t===1,"bg-primary left-[20%] !text-on_primary":t===2||t===3}),children:"1"}),y.jsx("div",{className:Q("progress-circle absolute -top-6 right-[17%] transition-all -translate-x-1/2 flex items-center justify-center",{"bg-[#D0D3D8]":t===1,"bg-reverse_primary":t===2,"bg-primary !text-on_primary":t===3}),children:"2"}),y.jsx("div",{className:Q("progress-circle absolute -top-6 right-0 transition-all duration-500 flex items-center justify-center",{"bg-[#D0D3D8]":t===1||t===2,"bg-reverse_primary":t===3}),children:"3"})]})})})};var vi=e=>e.type==="checkbox",Xn=e=>e instanceof Date,et=e=>e==null;const Fm=e=>typeof e=="object";var Me=e=>!et(e)&&!Array.isArray(e)&&Fm(e)&&!Xn(e),Lm=e=>Me(e)&&e.target?vi(e.target)?e.target.checked:e.target.value:e,wT=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Im=(e,t)=>e.has(wT(t)),ST=e=>{const t=e.constructor&&e.constructor.prototype;return Me(t)&&t.hasOwnProperty("isPrototypeOf")},Dl=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function it(e){let t;const n=Array.isArray(e),s=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Dl&&(e instanceof Blob||s))&&(n||Me(e)))if(t=n?[]:{},!n&&!ST(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=it(e[r]));else return e;return t}var Bo=e=>Array.isArray(e)?e.filter(Boolean):[],je=e=>e===void 0,V=(e,t,n)=>{if(!t||!Me(e))return n;const s=Bo(t.split(/[,[\].]+?/)).reduce((r,i)=>et(r)?r:r[i],e);return je(s)||s===e?je(e[t])?n:e[t]:s},Ct=e=>typeof e=="boolean",Ml=e=>/^\w*$/.test(e),Vm=e=>Bo(e.replace(/["|']|\]/g,"").split(/\.|\[/)),xe=(e,t,n)=>{let s=-1;const r=Ml(t)?[t]:Vm(t),i=r.length,o=i-1;for(;++sve.useContext(Bm),_T=e=>{const{children:t,...n}=e;return ve.createElement(Bm.Provider,{value:n},t)};var Um=(e,t,n,s=!0)=>{const r={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(r,i,{get:()=>{const o=i;return t._proxyFormState[o]!==Nt.all&&(t._proxyFormState[o]=!s||Nt.all),n&&(n[o]=!0),e[o]}});return r},at=e=>Me(e)&&!Object.keys(e).length,$m=(e,t,n,s)=>{n(e);const{name:r,...i}=e;return at(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!s||Nt.all))},Dr=e=>Array.isArray(e)?e:[e],zm=(e,t,n)=>!e||!t||e===t||Dr(e).some(s=>s&&(n?s===t:s.startsWith(t)||t.startsWith(s)));function Fl(e){const t=ve.useRef(e);t.current=e,ve.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function TT(e){const t=Uo(),{control:n=t.control,disabled:s,name:r,exact:i}=e,[o,a]=ve.useState(n._formState),c=ve.useRef(!0),l=ve.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=ve.useRef(r);return u.current=r,Fl({disabled:s,next:d=>c.current&&zm(u.current,d.name,i)&&$m(d,l.current,n._updateFormState)&&a({...n._formState,...d}),subject:n._subjects.state}),ve.useEffect(()=>(c.current=!0,l.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),ve.useMemo(()=>Um(o,n,l.current,!1),[o,n])}var Xt=e=>typeof e=="string",Wm=(e,t,n,s,r)=>Xt(e)?(s&&t.watch.add(e),V(n,e,r)):Array.isArray(e)?e.map(i=>(s&&t.watch.add(i),V(n,i))):(s&&(t.watchAll=!0),n);function CT(e){const t=Uo(),{control:n=t.control,name:s,defaultValue:r,disabled:i,exact:o}=e,a=ve.useRef(s);a.current=s,Fl({disabled:i,subject:n._subjects.values,next:u=>{zm(a.current,u.name,o)&&l(it(Wm(a.current,n._names,u.values||n._formValues,!1,r)))}});const[c,l]=ve.useState(n._getWatch(s,r));return ve.useEffect(()=>n._removeUnmounted()),c}function AT(e){const t=Uo(),{name:n,disabled:s,control:r=t.control,shouldUnregister:i}=e,o=Im(r._names.array,n),a=CT({control:r,name:n,defaultValue:V(r._formValues,n,V(r._defaultValues,n,e.defaultValue)),exact:!0}),c=TT({control:r,name:n,exact:!0}),l=ve.useRef(r.register(n,{...e.rules,value:a,...Ct(e.disabled)?{disabled:e.disabled}:{}})),u=ve.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!V(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!V(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!V(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!V(c.validatingFields,n)},error:{enumerable:!0,get:()=>V(c.errors,n)}}),[c,n]),d=ve.useMemo(()=>({name:n,value:a,...Ct(s)||c.disabled?{disabled:c.disabled||s}:{},onChange:f=>l.current.onChange({target:{value:Lm(f),name:n},type:co.CHANGE}),onBlur:()=>l.current.onBlur({target:{value:V(r._formValues,n),name:n},type:co.BLUR}),ref:f=>{const p=V(r._fields,n);p&&f&&(p._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:m=>f.setCustomValidity(m),reportValidity:()=>f.reportValidity()})}}),[n,r._formValues,s,c.disabled,a,r._fields]);return ve.useEffect(()=>{const f=r._options.shouldUnregister||i,p=(m,h)=>{const g=V(r._fields,m);g&&g._f&&(g._f.mount=h)};if(p(n,!0),f){const m=it(V(r._options.defaultValues,n));xe(r._defaultValues,n,m),je(V(r._formValues,n))&&xe(r._formValues,n,m)}return!o&&r.register(n),()=>{(o?f&&!r._state.action:f)?r.unregister(n):p(n,!1)}},[n,r,o,i]),ve.useEffect(()=>{r._updateDisabledField({disabled:s,fields:r._fields,name:n})},[s,n,r]),ve.useMemo(()=>({field:d,formState:c,fieldState:u}),[d,c,u])}const ET=e=>e.render(AT(e));var Hm=(e,t,n,s,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[s]:r||!0}}:{},tf=e=>({isOnSubmit:!e||e===Nt.onSubmit,isOnBlur:e===Nt.onBlur,isOnChange:e===Nt.onChange,isOnAll:e===Nt.all,isOnTouch:e===Nt.onTouched}),nf=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const Mr=(e,t,n,s)=>{for(const r of n||Object.keys(e)){const i=V(e,r);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],r)&&!s)return!0;if(o.ref&&t(o.ref,o.name)&&!s)return!0;if(Mr(a,t))break}else if(Me(a)&&Mr(a,t))break}}};var PT=(e,t,n)=>{const s=Dr(V(e,n));return xe(s,"root",t[n]),xe(e,n,s),e},Ll=e=>e.type==="file",Qt=e=>typeof e=="function",lo=e=>{if(!Dl)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Qi=e=>Xt(e),Il=e=>e.type==="radio",uo=e=>e instanceof RegExp;const sf={value:!1,isValid:!1},rf={value:!0,isValid:!0};var qm=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!je(e[0].attributes.value)?je(e[0].value)||e[0].value===""?rf:{value:e[0].value,isValid:!0}:rf:sf}return sf};const of={isValid:!1,value:null};var Zm=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,of):of;function af(e,t,n="validate"){if(Qi(e)||Array.isArray(e)&&e.every(Qi)||Ct(e)&&!e)return{type:n,message:Qi(e)?e:"",ref:t}}var Ts=e=>Me(e)&&!uo(e)?e:{value:e,message:""},cf=async(e,t,n,s,r,i)=>{const{ref:o,refs:a,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:m,name:h,valueAsNumber:g,mount:v}=e._f,b=V(n,h);if(!v||t.has(h))return{};const w=a?a[0]:o,T=j=>{r&&w.reportValidity&&(w.setCustomValidity(Ct(j)?"":j||""),w.reportValidity())},S={},E=Il(o),R=vi(o),A=E||R,N=(g||Ll(o))&&je(o.value)&&je(b)||lo(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,D=Hm.bind(null,h,s,S),L=(j,$,W,se=cn.maxLength,Y=cn.minLength)=>{const Z=j?$:W;S[h]={type:j?se:Y,message:Z,ref:o,...D(j?se:Y,Z)}};if(i?!Array.isArray(b)||!b.length:c&&(!A&&(N||et(b))||Ct(b)&&!b||R&&!qm(a).isValid||E&&!Zm(a).isValid)){const{value:j,message:$}=Qi(c)?{value:!!c,message:c}:Ts(c);if(j&&(S[h]={type:cn.required,message:$,ref:w,...D(cn.required,$)},!s))return T($),S}if(!N&&(!et(d)||!et(f))){let j,$;const W=Ts(f),se=Ts(d);if(!et(b)&&!isNaN(b)){const Y=o.valueAsNumber||b&&+b;et(W.value)||(j=Y>W.value),et(se.value)||($=Ynew Date(new Date().toDateString()+" "+me),q=o.type=="time",re=o.type=="week";Xt(W.value)&&b&&(j=q?Z(b)>Z(W.value):re?b>W.value:Y>new Date(W.value)),Xt(se.value)&&b&&($=q?Z(b)+j.value,se=!et($.value)&&b.length<+$.value;if((W||se)&&(L(W,j.message,$.message),!s))return T(S[h].message),S}if(p&&!N&&Xt(b)){const{value:j,message:$}=Ts(p);if(uo(j)&&!b.match(j)&&(S[h]={type:cn.pattern,message:$,ref:o,...D(cn.pattern,$)},!s))return T($),S}if(m){if(Qt(m)){const j=await m(b,n),$=af(j,w);if($&&(S[h]={...$,...D(cn.validate,$.message)},!s))return T($.message),S}else if(Me(m)){let j={};for(const $ in m){if(!at(j)&&!s)break;const W=af(await m[$](b,n),w,$);W&&(j={...W,...D($,W.message)},T(W.message),s&&(S[h]=j))}if(!at(j)&&(S[h]={ref:w,...j},!s))return S}}return T(!0),S};function RT(e,t){const n=t.slice(0,-1).length;let s=0;for(;s{let e=[];return{get observers(){return e},next:r=>{for(const i of e)i.next&&i.next(r)},subscribe:r=>(e.push(r),{unsubscribe:()=>{e=e.filter(i=>i!==r)}}),unsubscribe:()=>{e=[]}}},ac=e=>et(e)||!Fm(e);function Cn(e,t){if(ac(e)||ac(t))return e===t;if(Xn(e)&&Xn(t))return e.getTime()===t.getTime();const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(const r of n){const i=e[r];if(!s.includes(r))return!1;if(r!=="ref"){const o=t[r];if(Xn(i)&&Xn(o)||Me(i)&&Me(o)||Array.isArray(i)&&Array.isArray(o)?!Cn(i,o):i!==o)return!1}}return!0}var Km=e=>e.type==="select-multiple",OT=e=>Il(e)||vi(e),Ca=e=>lo(e)&&e.isConnected,Gm=e=>{for(const t in e)if(Qt(e[t]))return!0;return!1};function fo(e,t={}){const n=Array.isArray(e);if(Me(e)||n)for(const s in e)Array.isArray(e[s])||Me(e[s])&&!Gm(e[s])?(t[s]=Array.isArray(e[s])?[]:{},fo(e[s],t[s])):et(e[s])||(t[s]=!0);return t}function Qm(e,t,n){const s=Array.isArray(e);if(Me(e)||s)for(const r in e)Array.isArray(e[r])||Me(e[r])&&!Gm(e[r])?je(t)||ac(n[r])?n[r]=Array.isArray(e[r])?fo(e[r],[]):{...fo(e[r])}:Qm(e[r],et(t)?{}:t[r],n[r]):n[r]=!Cn(e[r],t[r]);return n}var br=(e,t)=>Qm(e,t,fo(t)),Xm=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:s})=>je(e)?e:t?e===""?NaN:e&&+e:n&&Xt(e)?new Date(e):s?s(e):e;function Aa(e){const t=e.ref;return Ll(t)?t.files:Il(t)?Zm(e.refs).value:Km(t)?[...t.selectedOptions].map(({value:n})=>n):vi(t)?qm(e.refs).value:Xm(je(t.value)?e.ref.value:t.value,e)}var NT=(e,t,n,s)=>{const r={};for(const i of e){const o=V(t,i);o&&xe(r,i,o._f)}return{criteriaMode:n,names:[...e],fields:r,shouldUseNativeValidation:s}},wr=e=>je(e)?e:uo(e)?e.source:Me(e)?uo(e.value)?e.value.source:e.value:e;const lf="AsyncFunction";var jT=e=>!!e&&!!e.validate&&!!(Qt(e.validate)&&e.validate.constructor.name===lf||Me(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===lf)),DT=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function uf(e,t,n){const s=V(e,n);if(s||Ml(n))return{error:s,name:n};const r=n.split(".");for(;r.length;){const i=r.join("."),o=V(t,i),a=V(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};r.pop()}return{name:n}}var MT=(e,t,n,s,r)=>r.isOnAll?!1:!n&&r.isOnTouch?!(t||e):(n?s.isOnBlur:r.isOnBlur)?!e:(n?s.isOnChange:r.isOnChange)?e:!0,FT=(e,t)=>!Bo(V(e,t)).length&&Be(e,t);const LT={mode:Nt.onSubmit,reValidateMode:Nt.onChange,shouldFocusError:!0};function IT(e={}){let t={...LT,...e},n={submitCount:0,isDirty:!1,isLoading:Qt(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},s={},r=Me(t.defaultValues)||Me(t.values)?it(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:it(r),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Ta(),array:Ta(),state:Ta()},f=tf(t.mode),p=tf(t.reValidateMode),m=t.criteriaMode===Nt.all,h=_=>P=>{clearTimeout(l),l=setTimeout(_,P)},g=async _=>{if(!t.disabled&&(u.isValid||_)){const P=t.resolver?at((await A()).errors):await D(s,!0);P!==n.isValid&&d.state.next({isValid:P})}},v=(_,P)=>{!t.disabled&&(u.isValidating||u.validatingFields)&&((_||Array.from(a.mount)).forEach(O=>{O&&(P?xe(n.validatingFields,O,P):Be(n.validatingFields,O))}),d.state.next({validatingFields:n.validatingFields,isValidating:!at(n.validatingFields)}))},b=(_,P=[],O,B,I=!0,F=!0)=>{if(B&&O&&!t.disabled){if(o.action=!0,F&&Array.isArray(V(s,_))){const X=O(V(s,_),B.argA,B.argB);I&&xe(s,_,X)}if(F&&Array.isArray(V(n.errors,_))){const X=O(V(n.errors,_),B.argA,B.argB);I&&xe(n.errors,_,X),FT(n.errors,_)}if(u.touchedFields&&F&&Array.isArray(V(n.touchedFields,_))){const X=O(V(n.touchedFields,_),B.argA,B.argB);I&&xe(n.touchedFields,_,X)}u.dirtyFields&&(n.dirtyFields=br(r,i)),d.state.next({name:_,isDirty:j(_,P),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else xe(i,_,P)},w=(_,P)=>{xe(n.errors,_,P),d.state.next({errors:n.errors})},T=_=>{n.errors=_,d.state.next({errors:n.errors,isValid:!1})},S=(_,P,O,B)=>{const I=V(s,_);if(I){const F=V(i,_,je(O)?V(r,_):O);je(F)||B&&B.defaultChecked||P?xe(i,_,P?F:Aa(I._f)):se(_,F),o.mount&&g()}},E=(_,P,O,B,I)=>{let F=!1,X=!1;const ae={name:_};if(!t.disabled){const Ie=!!(V(s,_)&&V(s,_)._f&&V(s,_)._f.disabled);if(!O||B){u.isDirty&&(X=n.isDirty,n.isDirty=ae.isDirty=j(),F=X!==ae.isDirty);const Oe=Ie||Cn(V(r,_),P);X=!!(!Ie&&V(n.dirtyFields,_)),Oe||Ie?Be(n.dirtyFields,_):xe(n.dirtyFields,_,!0),ae.dirtyFields=n.dirtyFields,F=F||u.dirtyFields&&X!==!Oe}if(O){const Oe=V(n.touchedFields,_);Oe||(xe(n.touchedFields,_,O),ae.touchedFields=n.touchedFields,F=F||u.touchedFields&&Oe!==O)}F&&I&&d.state.next(ae)}return F?ae:{}},R=(_,P,O,B)=>{const I=V(n.errors,_),F=u.isValid&&Ct(P)&&n.isValid!==P;if(t.delayError&&O?(c=h(()=>w(_,O)),c(t.delayError)):(clearTimeout(l),c=null,O?xe(n.errors,_,O):Be(n.errors,_)),(O?!Cn(I,O):I)||!at(B)||F){const X={...B,...F&&Ct(P)?{isValid:P}:{},errors:n.errors,name:_};n={...n,...X},d.state.next(X)}},A=async _=>{v(_,!0);const P=await t.resolver(i,t.context,NT(_||a.mount,s,t.criteriaMode,t.shouldUseNativeValidation));return v(_),P},N=async _=>{const{errors:P}=await A(_);if(_)for(const O of _){const B=V(P,O);B?xe(n.errors,O,B):Be(n.errors,O)}else n.errors=P;return P},D=async(_,P,O={valid:!0})=>{for(const B in _){const I=_[B];if(I){const{_f:F,...X}=I;if(F){const ae=a.array.has(F.name),Ie=I._f&&jT(I._f);Ie&&u.validatingFields&&v([B],!0);const Oe=await cf(I,a.disabled,i,m,t.shouldUseNativeValidation&&!P,ae);if(Ie&&u.validatingFields&&v([B]),Oe[F.name]&&(O.valid=!1,P))break;!P&&(V(Oe,F.name)?ae?PT(n.errors,Oe,F.name):xe(n.errors,F.name,Oe[F.name]):Be(n.errors,F.name))}!at(X)&&await D(X,P,O)}}return O.valid},L=()=>{for(const _ of a.unMount){const P=V(s,_);P&&(P._f.refs?P._f.refs.every(O=>!Ca(O)):!Ca(P._f.ref))&&Xe(_)}a.unMount=new Set},j=(_,P)=>!t.disabled&&(_&&P&&xe(i,_,P),!Cn(ge(),r)),$=(_,P,O)=>Wm(_,a,{...o.mount?i:je(P)?r:Xt(_)?{[_]:P}:P},O,P),W=_=>Bo(V(o.mount?i:r,_,t.shouldUnregister?V(r,_,[]):[])),se=(_,P,O={})=>{const B=V(s,_);let I=P;if(B){const F=B._f;F&&(!F.disabled&&xe(i,_,Xm(P,F)),I=lo(F.ref)&&et(P)?"":P,Km(F.ref)?[...F.ref.options].forEach(X=>X.selected=I.includes(X.value)):F.refs?vi(F.ref)?F.refs.length>1?F.refs.forEach(X=>(!X.defaultChecked||!X.disabled)&&(X.checked=Array.isArray(I)?!!I.find(ae=>ae===X.value):I===X.value)):F.refs[0]&&(F.refs[0].checked=!!I):F.refs.forEach(X=>X.checked=X.value===I):Ll(F.ref)?F.ref.value="":(F.ref.value=I,F.ref.type||d.values.next({name:_,values:{...i}})))}(O.shouldDirty||O.shouldTouch)&&E(_,I,O.shouldTouch,O.shouldDirty,!0),O.shouldValidate&&me(_)},Y=(_,P,O)=>{for(const B in P){const I=P[B],F=`${_}.${B}`,X=V(s,F);(a.array.has(_)||Me(I)||X&&!X._f)&&!Xn(I)?Y(F,I,O):se(F,I,O)}},Z=(_,P,O={})=>{const B=V(s,_),I=a.array.has(_),F=it(P);xe(i,_,F),I?(d.array.next({name:_,values:{...i}}),(u.isDirty||u.dirtyFields)&&O.shouldDirty&&d.state.next({name:_,dirtyFields:br(r,i),isDirty:j(_,F)})):B&&!B._f&&!et(F)?Y(_,F,O):se(_,F,O),nf(_,a)&&d.state.next({...n}),d.values.next({name:o.mount?_:void 0,values:{...i}})},q=async _=>{o.mount=!0;const P=_.target;let O=P.name,B=!0;const I=V(s,O),F=()=>P.type?Aa(I._f):Lm(_),X=ae=>{B=Number.isNaN(ae)||Xn(ae)&&isNaN(ae.getTime())||Cn(ae,V(i,O,ae))};if(I){let ae,Ie;const Oe=F(),$t=_.type===co.BLUR||_.type===co.FOCUS_OUT,pr=!DT(I._f)&&!t.resolver&&!V(n.errors,O)&&!I._f.deps||MT($t,V(n.touchedFields,O),n.isSubmitted,p,f),zt=nf(O,a,$t);xe(i,O,Oe),$t?(I._f.onBlur&&I._f.onBlur(_),c&&c(0)):I._f.onChange&&I._f.onChange(_);const Hn=E(O,Oe,$t,!1),mr=!at(Hn)||zt;if(!$t&&d.values.next({name:O,type:_.type,values:{...i}}),pr)return u.isValid&&(t.mode==="onBlur"&&$t?g():$t||g()),mr&&d.state.next({name:O,...zt?{}:Hn});if(!$t&&zt&&d.state.next({...n}),t.resolver){const{errors:qn}=await A([O]);if(X(Oe),B){const ea=uf(n.errors,s,O),Pi=uf(qn,s,ea.name||O);ae=Pi.error,O=Pi.name,Ie=at(qn)}}else v([O],!0),ae=(await cf(I,a.disabled,i,m,t.shouldUseNativeValidation))[O],v([O]),X(Oe),B&&(ae?Ie=!1:u.isValid&&(Ie=await D(s,!0)));B&&(I._f.deps&&me(I._f.deps),R(O,Ie,ae,Hn))}},re=(_,P)=>{if(V(n.errors,P)&&_.focus)return _.focus(),1},me=async(_,P={})=>{let O,B;const I=Dr(_);if(t.resolver){const F=await N(je(_)?_:I);O=at(F),B=_?!I.some(X=>V(F,X)):O}else _?(B=(await Promise.all(I.map(async F=>{const X=V(s,F);return await D(X&&X._f?{[F]:X}:X)}))).every(Boolean),!(!B&&!n.isValid)&&g()):B=O=await D(s);return d.state.next({...!Xt(_)||u.isValid&&O!==n.isValid?{}:{name:_},...t.resolver||!_?{isValid:O}:{},errors:n.errors}),P.shouldFocus&&!B&&Mr(s,re,_?I:a.mount),B},ge=_=>{const P={...o.mount?i:r};return je(_)?P:Xt(_)?V(P,_):_.map(O=>V(P,O))},We=(_,P)=>({invalid:!!V((P||n).errors,_),isDirty:!!V((P||n).dirtyFields,_),error:V((P||n).errors,_),isValidating:!!V(n.validatingFields,_),isTouched:!!V((P||n).touchedFields,_)}),ft=_=>{_&&Dr(_).forEach(P=>Be(n.errors,P)),d.state.next({errors:_?n.errors:{}})},He=(_,P,O)=>{const B=(V(s,_,{_f:{}})._f||{}).ref,I=V(n.errors,_)||{},{ref:F,message:X,type:ae,...Ie}=I;xe(n.errors,_,{...Ie,...P,ref:B}),d.state.next({name:_,errors:n.errors,isValid:!1}),O&&O.shouldFocus&&B&&B.focus&&B.focus()},Et=(_,P)=>Qt(_)?d.values.subscribe({next:O=>_($(void 0,P),O)}):$(_,P,!0),Xe=(_,P={})=>{for(const O of _?Dr(_):a.mount)a.mount.delete(O),a.array.delete(O),P.keepValue||(Be(s,O),Be(i,O)),!P.keepError&&Be(n.errors,O),!P.keepDirty&&Be(n.dirtyFields,O),!P.keepTouched&&Be(n.touchedFields,O),!P.keepIsValidating&&Be(n.validatingFields,O),!t.shouldUnregister&&!P.keepDefaultValue&&Be(r,O);d.values.next({values:{...i}}),d.state.next({...n,...P.keepDirty?{isDirty:j()}:{}}),!P.keepIsValid&&g()},ue=({disabled:_,name:P,field:O,fields:B})=>{(Ct(_)&&o.mount||_||a.disabled.has(P))&&(_?a.disabled.add(P):a.disabled.delete(P),E(P,Aa(O?O._f:V(B,P)._f),!1,!1,!0))},ye=(_,P={})=>{let O=V(s,_);const B=Ct(P.disabled)||Ct(t.disabled);return xe(s,_,{...O||{},_f:{...O&&O._f?O._f:{ref:{name:_}},name:_,mount:!0,...P}}),a.mount.add(_),O?ue({field:O,disabled:Ct(P.disabled)?P.disabled:t.disabled,name:_}):S(_,!0,P.value),{...B?{disabled:P.disabled||t.disabled}:{},...t.progressive?{required:!!P.required,min:wr(P.min),max:wr(P.max),minLength:wr(P.minLength),maxLength:wr(P.maxLength),pattern:wr(P.pattern)}:{},name:_,onChange:q,onBlur:q,ref:I=>{if(I){ye(_,P),O=V(s,_);const F=je(I.value)&&I.querySelectorAll&&I.querySelectorAll("input,select,textarea")[0]||I,X=OT(F),ae=O._f.refs||[];if(X?ae.find(Ie=>Ie===F):F===O._f.ref)return;xe(s,_,{_f:{...O._f,...X?{refs:[...ae.filter(Ca),F,...Array.isArray(V(r,_))?[{}]:[]],ref:{type:F.type,name:_}}:{ref:F}}}),S(_,!1,void 0,F)}else O=V(s,_,{}),O._f&&(O._f.mount=!1),(t.shouldUnregister||P.shouldUnregister)&&!(Im(a.array,_)&&o.action)&&a.unMount.add(_)}}},ke=()=>t.shouldFocusError&&Mr(s,re,a.mount),Le=_=>{Ct(_)&&(d.state.next({disabled:_}),Mr(s,(P,O)=>{const B=V(s,O);B&&(P.disabled=B._f.disabled||_,Array.isArray(B._f.refs)&&B._f.refs.forEach(I=>{I.disabled=B._f.disabled||_}))},0,!1))},we=(_,P)=>async O=>{let B;O&&(O.preventDefault&&O.preventDefault(),O.persist&&O.persist());let I=it(i);if(a.disabled.size)for(const F of a.disabled)xe(I,F,void 0);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:F,values:X}=await A();n.errors=F,I=X}else await D(s);if(Be(n.errors,"root"),at(n.errors)){d.state.next({errors:{}});try{await _(I,O)}catch(F){B=F}}else P&&await P({...n.errors},O),ke(),setTimeout(ke);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:at(n.errors)&&!B,submitCount:n.submitCount+1,errors:n.errors}),B)throw B},K=(_,P={})=>{V(s,_)&&(je(P.defaultValue)?Z(_,it(V(r,_))):(Z(_,P.defaultValue),xe(r,_,it(P.defaultValue))),P.keepTouched||Be(n.touchedFields,_),P.keepDirty||(Be(n.dirtyFields,_),n.isDirty=P.defaultValue?j(_,it(V(r,_))):j()),P.keepError||(Be(n.errors,_),u.isValid&&g()),d.state.next({...n}))},de=(_,P={})=>{const O=_?it(_):r,B=it(O),I=at(_),F=I?r:B;if(P.keepDefaultValues||(r=O),!P.keepValues){if(P.keepDirtyValues){const X=new Set([...a.mount,...Object.keys(br(r,i))]);for(const ae of Array.from(X))V(n.dirtyFields,ae)?xe(F,ae,V(i,ae)):Z(ae,V(F,ae))}else{if(Dl&&je(_))for(const X of a.mount){const ae=V(s,X);if(ae&&ae._f){const Ie=Array.isArray(ae._f.refs)?ae._f.refs[0]:ae._f.ref;if(lo(Ie)){const Oe=Ie.closest("form");if(Oe){Oe.reset();break}}}}s={}}i=t.shouldUnregister?P.keepDefaultValues?it(r):{}:it(F),d.array.next({values:{...F}}),d.values.next({values:{...F}})}a={mount:P.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!P.keepIsValid||!!P.keepDirtyValues,o.watch=!!t.shouldUnregister,d.state.next({submitCount:P.keepSubmitCount?n.submitCount:0,isDirty:I?!1:P.keepDirty?n.isDirty:!!(P.keepDefaultValues&&!Cn(_,r)),isSubmitted:P.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:I?{}:P.keepDirtyValues?P.keepDefaultValues&&i?br(r,i):n.dirtyFields:P.keepDefaultValues&&_?br(r,_):P.keepDirty?n.dirtyFields:{},touchedFields:P.keepTouched?n.touchedFields:{},errors:P.keepErrors?n.errors:{},isSubmitSuccessful:P.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Se=(_,P)=>de(Qt(_)?_(i):_,P);return{control:{register:ye,unregister:Xe,getFieldState:We,handleSubmit:we,setError:He,_executeSchema:A,_getWatch:$,_getDirty:j,_updateValid:g,_removeUnmounted:L,_updateFieldArray:b,_updateDisabledField:ue,_getFieldArray:W,_reset:de,_resetDefaultValues:()=>Qt(t.defaultValues)&&t.defaultValues().then(_=>{Se(_,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:_=>{n={...n,..._}},_disableForm:Le,_subjects:d,_proxyFormState:u,_setErrors:T,get _fields(){return s},get _formValues(){return i},get _state(){return o},set _state(_){o=_},get _defaultValues(){return r},get _names(){return a},set _names(_){a=_},get _formState(){return n},set _formState(_){n=_},get _options(){return t},set _options(_){t={...t,..._}}},trigger:me,register:ye,handleSubmit:we,watch:Et,setValue:Z,getValues:ge,reset:Se,resetField:K,clearErrors:ft,unregister:Xe,setError:He,setFocus:(_,P={})=>{const O=V(s,_),B=O&&O._f;if(B){const I=B.refs?B.refs[0]:B.ref;I.focus&&(I.focus(),P.shouldSelect&&Qt(I.select)&&I.select())}},getFieldState:We}}function VT(e={}){const t=ve.useRef(void 0),n=ve.useRef(void 0),[s,r]=ve.useState({isDirty:!1,isValidating:!1,isLoading:Qt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Qt(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...IT(e),formState:s});const i=t.current.control;return i._options=e,Fl({subject:i._subjects.state,next:o=>{$m(o,i._proxyFormState,i._updateFormState,!0)&&r({...i._formState})}}),ve.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),ve.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==s.isDirty&&i._subjects.state.next({isDirty:o})}},[i,s.isDirty]),ve.useEffect(()=>{e.values&&!Cn(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,r(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),ve.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),ve.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),ve.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=Um(s,i),t.current}var BT="Label",Ym=x.forwardRef((e,t)=>y.jsx(rt.label,{...e,ref:t,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Ym.displayName=BT;var Jm=Ym;const UT=Xc("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),eg=x.forwardRef(({className:e,...t},n)=>y.jsx(Jm,{ref:n,className:Q(UT(),e),...t}));eg.displayName=Jm.displayName;const Gk=_T,tg=x.createContext({}),$T=({...e})=>y.jsx(tg.Provider,{value:{name:e.name},children:y.jsx(ET,{...e})}),$o=()=>{const e=x.useContext(tg),t=x.useContext(ng),{getFieldState:n,formState:s}=Uo(),r=n(e.name,s);if(!e)throw new Error("useFormField should be used within ");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...r}},ng=x.createContext({}),sg=x.forwardRef(({className:e,...t},n)=>{const s=x.useId();return y.jsx(ng.Provider,{value:{id:s},children:y.jsx("div",{ref:n,className:Q("space-y-2",e),...t})})});sg.displayName="FormItem";const rg=x.forwardRef(({className:e,...t},n)=>{const{error:s,formItemId:r}=$o();return y.jsx(eg,{ref:n,className:Q(s&&"text-destructive",e),htmlFor:r,...t})});rg.displayName="FormLabel";const ig=x.forwardRef(({...e},t)=>{const{error:n,formItemId:s,formDescriptionId:r,formMessageId:i}=$o();return y.jsx(rr,{ref:t,id:s,"aria-describedby":n?`${r} ${i}`:`${r}`,"aria-invalid":!!n,...e})});ig.displayName="FormControl";const zT=x.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:s}=$o();return y.jsx("p",{ref:n,id:s,className:Q("text-[0.8rem] text-muted-foreground",e),...t})});zT.displayName="FormDescription";const og=x.forwardRef(({className:e,children:t,...n},s)=>{const{error:r,formMessageId:i}=$o(),o=r?String(r==null?void 0:r.message):t;return o?y.jsx("p",{ref:s,id:i,className:Q("text-[0.8rem] font-medium text-destructive",e),...n,children:o}):null});og.displayName="FormMessage";const cc=x.forwardRef(({className:e,type:t,...n},s)=>t!=="file"?y.jsx("input",{type:t,className:Q("flex h-14 rounded-[2px] border p-4 focus:border-[3px] focus:outline-none focus:border-primary transition-all hover:border-on_surface border-outline bg-transparent text-base w-regular file:border-0 file:bg-secondary_container file:outline-none file:text-sm file:w-fit file:text-on_secondary_container file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),ref:s,...n}):y.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[y.jsx("input",{ref:s,accept:".pdf, .png, .jpeg, .jpg",type:t,className:Q("h-9 absolute top-0 left-0 !cursor-pointer opacity-0 z-20 size-full"),...n}),y.jsxs("div",{className:"absolute rounded-[2px] cursor-pointer size-full flex items-center gap-4 px-3 py-2.5 top-0 left-0 bg-secondary_container",children:[y.jsx(Ux,{className:"cursor-pointer",size:16})," Upload file"]})]}));cc.displayName="Input";const ag=x.forwardRef(({className:e,...t},n)=>y.jsx("textarea",{className:Q("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));ag.displayName="Textarea";const Qk=({control:e,name:t,label:n,placeholder:s,error:r,type:i="text",className:o,disabled:a,textArea:c=!1,textDark:l,supporText:u,handleChange:d,onPrimary:f=!1})=>y.jsx($T,{control:e,name:t,render:({field:p})=>y.jsxs(sg,{className:Q(o,"flex flex-col w-full relative"),children:[y.jsx(rg,{className:Q("text-xl",f&&"!text-on_primary",l?"text-on_surface":"text-on_surface_v"),children:n}),y.jsx(ig,{children:y.jsx(y.Fragment,{children:c?y.jsx(ag,{rows:3,...p,placeholder:s,className:Q(r&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):i!=="file"?y.jsx(cc,{...p,type:i,placeholder:s,disabled:a,className:Q(r&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):y.jsxs("div",{className:"relative",children:[y.jsx(cc,{type:"file",placeholder:s,onChange:m=>{var g;const h=((g=m.target.files)==null?void 0:g[0])||null;console.log("Выбранный файл:",h),p.onChange(h),d&&d(m)},disabled:a}),p.value&&y.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:["Выбранный файл: ",p.value.name]})]})})}),y.jsx(og,{className:Q("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",r&&f?"text-teritary_04":"text-[#BA1A1A]"),children:r?r.message:u})]})}),Xk=({className:e,delay:t=.15})=>y.jsxs(Gi.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0,transition:{delay:t}},className:Q("flex flex-col gap-8 my-16",e),children:[y.jsx("h3",{className:"text-3xl text-center",children:"Форма успешно отправлена!"}),y.jsx(De,{className:"w-fit mx-auto",to:"/",children:y.jsx(dt,{variant:"outline",children:"Вернуться на главную"})})]}),WT=({className:e,slides:t,active:n,scrollTo:s})=>y.jsx("div",{className:Q("flex items-center justify-center gap-2",e),children:Array.from({length:t}).map((r,i)=>y.jsx("span",{onClick:()=>s==null?void 0:s(i),className:Q(n===i?"dot-active":"dot")},i))}),HT=["top","right","bottom","left"],Fn=Math.min,pt=Math.max,ho=Math.round,Bi=Math.floor,en=e=>({x:e,y:e}),qT={left:"right",right:"left",bottom:"top",top:"bottom"},ZT={start:"end",end:"start"};function lc(e,t,n){return pt(e,Fn(t,n))}function gn(e,t){return typeof e=="function"?e(t):e}function yn(e){return e.split("-")[0]}function lr(e){return e.split("-")[1]}function Vl(e){return e==="x"?"y":"x"}function Bl(e){return e==="y"?"height":"width"}function Ln(e){return["top","bottom"].includes(yn(e))?"y":"x"}function Ul(e){return Vl(Ln(e))}function KT(e,t,n){n===void 0&&(n=!1);const s=lr(e),r=Ul(e),i=Bl(r);let o=r==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=po(o)),[o,po(o)]}function GT(e){const t=po(e);return[uc(e),t,uc(t)]}function uc(e){return e.replace(/start|end/g,t=>ZT[t])}function QT(e,t,n){const s=["left","right"],r=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:s:t?s:r;case"left":case"right":return t?i:o;default:return[]}}function XT(e,t,n,s){const r=lr(e);let i=QT(yn(e),n==="start",s);return r&&(i=i.map(o=>o+"-"+r),t&&(i=i.concat(i.map(uc)))),i}function po(e){return e.replace(/left|right|bottom|top/g,t=>qT[t])}function YT(e){return{top:0,right:0,bottom:0,left:0,...e}}function cg(e){return typeof e!="number"?YT(e):{top:e,right:e,bottom:e,left:e}}function mo(e){const{x:t,y:n,width:s,height:r}=e;return{width:s,height:r,top:n,left:t,right:t+s,bottom:n+r,x:t,y:n}}function df(e,t,n){let{reference:s,floating:r}=e;const i=Ln(t),o=Ul(t),a=Bl(o),c=yn(t),l=i==="y",u=s.x+s.width/2-r.width/2,d=s.y+s.height/2-r.height/2,f=s[a]/2-r[a]/2;let p;switch(c){case"top":p={x:u,y:s.y-r.height};break;case"bottom":p={x:u,y:s.y+s.height};break;case"right":p={x:s.x+s.width,y:d};break;case"left":p={x:s.x-r.width,y:d};break;default:p={x:s.x,y:s.y}}switch(lr(t)){case"start":p[o]-=f*(n&&l?-1:1);break;case"end":p[o]+=f*(n&&l?-1:1);break}return p}const JT=async(e,t,n)=>{const{placement:s="bottom",strategy:r="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let l=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=df(l,s,c),f=s,p={},m=0;for(let h=0;h({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:r,rects:i,platform:o,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=gn(e,t)||{};if(l==null)return{};const d=cg(u),f={x:n,y:s},p=Ul(r),m=Bl(p),h=await o.getDimensions(l),g=p==="y",v=g?"top":"left",b=g?"bottom":"right",w=g?"clientHeight":"clientWidth",T=i.reference[m]+i.reference[p]-f[p]-i.floating[m],S=f[p]-i.reference[p],E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let R=E?E[w]:0;(!R||!await(o.isElement==null?void 0:o.isElement(E)))&&(R=a.floating[w]||i.floating[m]);const A=T/2-S/2,N=R/2-h[m]/2-1,D=Fn(d[v],N),L=Fn(d[b],N),j=D,$=R-h[m]-L,W=R/2-h[m]/2+A,se=lc(j,W,$),Y=!c.arrow&&lr(r)!=null&&W!==se&&i.reference[m]/2-(WW<=0)){var L,j;const W=(((L=i.flip)==null?void 0:L.index)||0)+1,se=R[W];if(se)return{data:{index:W,overflows:D},reset:{placement:se}};let Y=(j=D.filter(Z=>Z.overflows[0]<=0).sort((Z,q)=>Z.overflows[1]-q.overflows[1])[0])==null?void 0:j.placement;if(!Y)switch(p){case"bestFit":{var $;const Z=($=D.filter(q=>{if(E){const re=Ln(q.placement);return re===b||re==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(re=>re>0).reduce((re,me)=>re+me,0)]).sort((q,re)=>q[1]-re[1])[0])==null?void 0:$[0];Z&&(Y=Z);break}case"initialPlacement":Y=a;break}if(r!==Y)return{reset:{placement:Y}}}return{}}}};function ff(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function hf(e){return HT.some(t=>e[t]>=0)}const nC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:s="referenceHidden",...r}=gn(e,t);switch(s){case"referenceHidden":{const i=await zr(t,{...r,elementContext:"reference"}),o=ff(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:hf(o)}}}case"escaped":{const i=await zr(t,{...r,altBoundary:!0}),o=ff(i,n.floating);return{data:{escapedOffsets:o,escaped:hf(o)}}}default:return{}}}}};async function sC(e,t){const{placement:n,platform:s,elements:r}=e,i=await(s.isRTL==null?void 0:s.isRTL(r.floating)),o=yn(n),a=lr(n),c=Ln(n)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,d=gn(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}const rC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:r,y:i,placement:o,middlewareData:a}=t,c=await sC(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(s=a.arrow)!=null&&s.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:o}}}}},iC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:r}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:g=>{let{x:v,y:b}=g;return{x:v,y:b}}},...c}=gn(e,t),l={x:n,y:s},u=await zr(t,c),d=Ln(yn(r)),f=Vl(d);let p=l[f],m=l[d];if(i){const g=f==="y"?"top":"left",v=f==="y"?"bottom":"right",b=p+u[g],w=p-u[v];p=lc(b,p,w)}if(o){const g=d==="y"?"top":"left",v=d==="y"?"bottom":"right",b=m+u[g],w=m-u[v];m=lc(b,m,w)}const h=a.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-s,enabled:{[f]:i,[d]:o}}}}}},oC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:r,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=gn(e,t),u={x:n,y:s},d=Ln(r),f=Vl(d);let p=u[f],m=u[d];const h=gn(a,t),g=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const w=f==="y"?"height":"width",T=i.reference[f]-i.floating[w]+g.mainAxis,S=i.reference[f]+i.reference[w]-g.mainAxis;pS&&(p=S)}if(l){var v,b;const w=f==="y"?"width":"height",T=["top","left"].includes(yn(r)),S=i.reference[d]-i.floating[w]+(T&&((v=o.offset)==null?void 0:v[d])||0)+(T?0:g.crossAxis),E=i.reference[d]+i.reference[w]+(T?0:((b=o.offset)==null?void 0:b[d])||0)-(T?g.crossAxis:0);mE&&(m=E)}return{[f]:p,[d]:m}}}},aC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:r,rects:i,platform:o,elements:a}=t,{apply:c=()=>{},...l}=gn(e,t),u=await zr(t,l),d=yn(r),f=lr(r),p=Ln(r)==="y",{width:m,height:h}=i.floating;let g,v;d==="top"||d==="bottom"?(g=d,v=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,g=f==="end"?"top":"bottom");const b=h-u.top-u.bottom,w=m-u.left-u.right,T=Fn(h-u[g],b),S=Fn(m-u[v],w),E=!t.middlewareData.shift;let R=T,A=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=w),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(R=b),E&&!f){const D=pt(u.left,0),L=pt(u.right,0),j=pt(u.top,0),$=pt(u.bottom,0);p?A=m-2*(D!==0||L!==0?D+L:pt(u.left,u.right)):R=h-2*(j!==0||$!==0?j+$:pt(u.top,u.bottom))}await c({...t,availableWidth:A,availableHeight:R});const N=await o.getDimensions(a.floating);return m!==N.width||h!==N.height?{reset:{rects:!0}}:{}}}};function zo(){return typeof window<"u"}function ur(e){return lg(e)?(e.nodeName||"").toLowerCase():"#document"}function yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function on(e){var t;return(t=(lg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lg(e){return zo()?e instanceof Node||e instanceof yt(e).Node:!1}function Ft(e){return zo()?e instanceof Element||e instanceof yt(e).Element:!1}function nn(e){return zo()?e instanceof HTMLElement||e instanceof yt(e).HTMLElement:!1}function pf(e){return!zo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yt(e).ShadowRoot}function xi(e){const{overflow:t,overflowX:n,overflowY:s,display:r}=Lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!["inline","contents"].includes(r)}function cC(e){return["table","td","th"].includes(ur(e))}function Wo(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function $l(e){const t=zl(),n=Ft(e)?Lt(e):e;return["transform","translate","scale","rotate","perspective"].some(s=>n[s]?n[s]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(s=>(n.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(n.contain||"").includes(s))}function lC(e){let t=In(e);for(;nn(t)&&!Js(t);){if($l(t))return t;if(Wo(t))return null;t=In(t)}return null}function zl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Js(e){return["html","body","#document"].includes(ur(e))}function Lt(e){return yt(e).getComputedStyle(e)}function Ho(e){return Ft(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function In(e){if(ur(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pf(e)&&e.host||on(e);return pf(t)?t.host:t}function ug(e){const t=In(e);return Js(t)?e.ownerDocument?e.ownerDocument.body:e.body:nn(t)&&xi(t)?t:ug(t)}function Wr(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=ug(e),i=r===((s=e.ownerDocument)==null?void 0:s.body),o=yt(r);if(i){const a=dc(o);return t.concat(o,o.visualViewport||[],xi(r)?r:[],a&&n?Wr(a):[])}return t.concat(r,Wr(r,[],n))}function dc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function dg(e){const t=Lt(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const r=nn(e),i=r?e.offsetWidth:n,o=r?e.offsetHeight:s,a=ho(n)!==i||ho(s)!==o;return a&&(n=i,s=o),{width:n,height:s,$:a}}function Wl(e){return Ft(e)?e:e.contextElement}function Ds(e){const t=Wl(e);if(!nn(t))return en(1);const n=t.getBoundingClientRect(),{width:s,height:r,$:i}=dg(t);let o=(i?ho(n.width):n.width)/s,a=(i?ho(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const uC=en(0);function fg(e){const t=yt(e);return!zl()||!t.visualViewport?uC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function dC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==yt(e)?!1:t}function hs(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Wl(e);let o=en(1);t&&(s?Ft(s)&&(o=Ds(s)):o=Ds(e));const a=dC(i,n,s)?fg(i):en(0);let c=(r.left+a.x)/o.x,l=(r.top+a.y)/o.y,u=r.width/o.x,d=r.height/o.y;if(i){const f=yt(i),p=s&&Ft(s)?yt(s):s;let m=f,h=dc(m);for(;h&&s&&p!==m;){const g=Ds(h),v=h.getBoundingClientRect(),b=Lt(h),w=v.left+(h.clientLeft+parseFloat(b.paddingLeft))*g.x,T=v.top+(h.clientTop+parseFloat(b.paddingTop))*g.y;c*=g.x,l*=g.y,u*=g.x,d*=g.y,c+=w,l+=T,m=yt(h),h=dc(m)}}return mo({width:u,height:d,x:c,y:l})}function Hl(e,t){const n=Ho(e).scrollLeft;return t?t.left+n:hs(on(e)).left+n}function hg(e,t,n){n===void 0&&(n=!1);const s=e.getBoundingClientRect(),r=s.left+t.scrollLeft-(n?0:Hl(e,s)),i=s.top+t.scrollTop;return{x:r,y:i}}function fC(e){let{elements:t,rect:n,offsetParent:s,strategy:r}=e;const i=r==="fixed",o=on(s),a=t?Wo(t.floating):!1;if(s===o||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=en(1);const u=en(0),d=nn(s);if((d||!d&&!i)&&((ur(s)!=="body"||xi(o))&&(c=Ho(s)),nn(s))){const p=hs(s);l=Ds(s),u.x=p.x+s.clientLeft,u.y=p.y+s.clientTop}const f=o&&!d&&!i?hg(o,c,!0):en(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function hC(e){return Array.from(e.getClientRects())}function pC(e){const t=on(e),n=Ho(e),s=e.ownerDocument.body,r=pt(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),i=pt(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let o=-n.scrollLeft+Hl(e);const a=-n.scrollTop;return Lt(s).direction==="rtl"&&(o+=pt(t.clientWidth,s.clientWidth)-r),{width:r,height:i,x:o,y:a}}function mC(e,t){const n=yt(e),s=on(e),r=n.visualViewport;let i=s.clientWidth,o=s.clientHeight,a=0,c=0;if(r){i=r.width,o=r.height;const l=zl();(!l||l&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:o,x:a,y:c}}function gC(e,t){const n=hs(e,!0,t==="fixed"),s=n.top+e.clientTop,r=n.left+e.clientLeft,i=nn(e)?Ds(e):en(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,l=s*i.y;return{width:o,height:a,x:c,y:l}}function mf(e,t,n){let s;if(t==="viewport")s=mC(e,n);else if(t==="document")s=pC(on(e));else if(Ft(t))s=gC(t,n);else{const r=fg(e);s={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return mo(s)}function pg(e,t){const n=In(e);return n===t||!Ft(n)||Js(n)?!1:Lt(n).position==="fixed"||pg(n,t)}function yC(e,t){const n=t.get(e);if(n)return n;let s=Wr(e,[],!1).filter(a=>Ft(a)&&ur(a)!=="body"),r=null;const i=Lt(e).position==="fixed";let o=i?In(e):e;for(;Ft(o)&&!Js(o);){const a=Lt(o),c=$l(o);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||xi(o)&&!c&&pg(e,o))?s=s.filter(u=>u!==o):r=a,o=In(o)}return t.set(e,s),s}function vC(e){let{element:t,boundary:n,rootBoundary:s,strategy:r}=e;const o=[...n==="clippingAncestors"?Wo(t)?[]:yC(t,this._c):[].concat(n),s],a=o[0],c=o.reduce((l,u)=>{const d=mf(t,u,r);return l.top=pt(d.top,l.top),l.right=Fn(d.right,l.right),l.bottom=Fn(d.bottom,l.bottom),l.left=pt(d.left,l.left),l},mf(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function xC(e){const{width:t,height:n}=dg(e);return{width:t,height:n}}function bC(e,t,n){const s=nn(t),r=on(t),i=n==="fixed",o=hs(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=en(0);if(s||!s&&!i)if((ur(t)!=="body"||xi(r))&&(a=Ho(t)),s){const f=hs(t,!0,i,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else r&&(c.x=Hl(r));const l=r&&!s&&!i?hg(r,a):en(0),u=o.left+a.scrollLeft-c.x-l.x,d=o.top+a.scrollTop-c.y-l.y;return{x:u,y:d,width:o.width,height:o.height}}function Ea(e){return Lt(e).position==="static"}function gf(e,t){if(!nn(e)||Lt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return on(e)===n&&(n=n.ownerDocument.body),n}function mg(e,t){const n=yt(e);if(Wo(e))return n;if(!nn(e)){let r=In(e);for(;r&&!Js(r);){if(Ft(r)&&!Ea(r))return r;r=In(r)}return n}let s=gf(e,t);for(;s&&cC(s)&&Ea(s);)s=gf(s,t);return s&&Js(s)&&Ea(s)&&!$l(s)?n:s||lC(e)||n}const wC=async function(e){const t=this.getOffsetParent||mg,n=this.getDimensions,s=await n(e.floating);return{reference:bC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function SC(e){return Lt(e).direction==="rtl"}const _C={convertOffsetParentRelativeRectToViewportRelativeRect:fC,getDocumentElement:on,getClippingRect:vC,getOffsetParent:mg,getElementRects:wC,getClientRects:hC,getDimensions:xC,getScale:Ds,isElement:Ft,isRTL:SC};function gg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function TC(e,t){let n=null,s;const r=on(e);function i(){var a;clearTimeout(s),(a=n)==null||a.disconnect(),n=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(a||t(),!f||!p)return;const m=Bi(d),h=Bi(r.clientWidth-(u+f)),g=Bi(r.clientHeight-(d+p)),v=Bi(u),w={rootMargin:-m+"px "+-h+"px "+-g+"px "+-v+"px",threshold:pt(0,Fn(1,c))||1};let T=!0;function S(E){const R=E[0].intersectionRatio;if(R!==c){if(!T)return o();R?o(!1,R):s=setTimeout(()=>{o(!1,1e-7)},1e3)}R===1&&!gg(l,e.getBoundingClientRect())&&o(),T=!1}try{n=new IntersectionObserver(S,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return o(!0),i}function CC(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,l=Wl(e),u=r||i?[...l?Wr(l):[],...Wr(t)]:[];u.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=l&&a?TC(l,n):null;let f=-1,p=null;o&&(p=new ResizeObserver(v=>{let[b]=v;b&&b.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?hs(e):null;c&&g();function g(){const v=hs(e);h&&!gg(h,v)&&n(),h=v,m=requestAnimationFrame(g)}return n(),()=>{var v;u.forEach(b=>{r&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(v=p)==null||v.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const AC=rC,EC=iC,PC=tC,RC=aC,kC=nC,yf=eC,OC=oC,NC=(e,t,n)=>{const s=new Map,r={platform:_C,...n},i={...r.platform,_c:s};return JT(e,t,{...r,platform:i})};var Xi=typeof document<"u"?x.useLayoutEffect:x.useEffect;function go(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,s,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;s--!==0;)if(!go(e[s],t[s]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(t,r[s]))return!1;for(s=n;s--!==0;){const i=r[s];if(!(i==="_owner"&&e.$$typeof)&&!go(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function yg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vf(e,t){const n=yg(e);return Math.round(t*n)/n}function Pa(e){const t=x.useRef(e);return Xi(()=>{t.current=e}),t}function jC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:r,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=x.useState(s);go(f,s)||p(s);const[m,h]=x.useState(null),[g,v]=x.useState(null),b=x.useCallback(q=>{q!==E.current&&(E.current=q,h(q))},[]),w=x.useCallback(q=>{q!==R.current&&(R.current=q,v(q))},[]),T=i||m,S=o||g,E=x.useRef(null),R=x.useRef(null),A=x.useRef(u),N=c!=null,D=Pa(c),L=Pa(r),j=Pa(l),$=x.useCallback(()=>{if(!E.current||!R.current)return;const q={placement:t,strategy:n,middleware:f};L.current&&(q.platform=L.current),NC(E.current,R.current,q).then(re=>{const me={...re,isPositioned:j.current!==!1};W.current&&!go(A.current,me)&&(A.current=me,lh.flushSync(()=>{d(me)}))})},[f,t,n,L,j]);Xi(()=>{l===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,d(q=>({...q,isPositioned:!1})))},[l]);const W=x.useRef(!1);Xi(()=>(W.current=!0,()=>{W.current=!1}),[]),Xi(()=>{if(T&&(E.current=T),S&&(R.current=S),T&&S){if(D.current)return D.current(T,S,$);$()}},[T,S,$,D,N]);const se=x.useMemo(()=>({reference:E,floating:R,setReference:b,setFloating:w}),[b,w]),Y=x.useMemo(()=>({reference:T,floating:S}),[T,S]),Z=x.useMemo(()=>{const q={position:n,left:0,top:0};if(!Y.floating)return q;const re=vf(Y.floating,u.x),me=vf(Y.floating,u.y);return a?{...q,transform:"translate("+re+"px, "+me+"px)",...yg(Y.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:me}},[n,a,Y.floating,u.x,u.y]);return x.useMemo(()=>({...u,update:$,refs:se,elements:Y,floatingStyles:Z}),[u,$,se,Y,Z])}const DC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:s,padding:r}=typeof e=="function"?e(n):e;return s&&t(s)?s.current!=null?yf({element:s.current,padding:r}).fn(n):{}:s?yf({element:s,padding:r}).fn(n):{}}}},MC=(e,t)=>({...AC(e),options:[e,t]}),FC=(e,t)=>({...EC(e),options:[e,t]}),LC=(e,t)=>({...OC(e),options:[e,t]}),IC=(e,t)=>({...PC(e),options:[e,t]}),VC=(e,t)=>({...RC(e),options:[e,t]}),BC=(e,t)=>({...kC(e),options:[e,t]}),UC=(e,t)=>({...DC(e),options:[e,t]});var $C="Arrow",vg=x.forwardRef((e,t)=>{const{children:n,width:s=10,height:r=5,...i}=e;return y.jsx(rt.svg,{...i,ref:t,width:s,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});vg.displayName=$C;var zC=vg;function WC(e){const[t,n]=x.useState(void 0);return ds(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,a=l.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var ql="Popper",[xg,bg]=Uc(ql),[HC,wg]=xg(ql),Sg=e=>{const{__scopePopper:t,children:n}=e,[s,r]=x.useState(null);return y.jsx(HC,{scope:t,anchor:s,onAnchorChange:r,children:n})};Sg.displayName=ql;var _g="PopperAnchor",Tg=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...r}=e,i=wg(_g,n),o=x.useRef(null),a=Vt(t,o);return x.useEffect(()=>{i.onAnchorChange((s==null?void 0:s.current)||o.current)}),s?null:y.jsx(rt.div,{...r,ref:a})});Tg.displayName=_g;var Zl="PopperContent",[qC,ZC]=xg(Zl),Cg=x.forwardRef((e,t)=>{var ue,ye,ke,Le,we,K;const{__scopePopper:n,side:s="bottom",sideOffset:r=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:m,...h}=e,g=wg(Zl,n),[v,b]=x.useState(null),w=Vt(t,de=>b(de)),[T,S]=x.useState(null),E=WC(T),R=(E==null?void 0:E.width)??0,A=(E==null?void 0:E.height)??0,N=s+(i!=="center"?"-"+i:""),D=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},L=Array.isArray(l)?l:[l],j=L.length>0,$={padding:D,boundary:L.filter(GC),altBoundary:j},{refs:W,floatingStyles:se,placement:Y,isPositioned:Z,middlewareData:q}=jC({strategy:"fixed",placement:N,whileElementsMounted:(...de)=>CC(...de,{animationFrame:p==="always"}),elements:{reference:g.anchor},middleware:[MC({mainAxis:r+A,alignmentAxis:o}),c&&FC({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?LC():void 0,...$}),c&&IC({...$}),VC({...$,apply:({elements:de,rects:Se,availableWidth:Ue,availableHeight:ht})=>{const{width:bt,height:_}=Se.reference,P=de.floating.style;P.setProperty("--radix-popper-available-width",`${Ue}px`),P.setProperty("--radix-popper-available-height",`${ht}px`),P.setProperty("--radix-popper-anchor-width",`${bt}px`),P.setProperty("--radix-popper-anchor-height",`${_}px`)}}),T&&UC({element:T,padding:a}),QC({arrowWidth:R,arrowHeight:A}),f&&BC({strategy:"referenceHidden",...$})]}),[re,me]=Pg(Y),ge=jn(m);ds(()=>{Z&&(ge==null||ge())},[Z,ge]);const We=(ue=q.arrow)==null?void 0:ue.x,ft=(ye=q.arrow)==null?void 0:ye.y,He=((ke=q.arrow)==null?void 0:ke.centerOffset)!==0,[Et,Xe]=x.useState();return ds(()=>{v&&Xe(window.getComputedStyle(v).zIndex)},[v]),y.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...se,transform:Z?se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Et,"--radix-popper-transform-origin":[(Le=q.transformOrigin)==null?void 0:Le.x,(we=q.transformOrigin)==null?void 0:we.y].join(" "),...((K=q.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(qC,{scope:n,placedSide:re,onArrowChange:S,arrowX:We,arrowY:ft,shouldHideArrow:He,children:y.jsx(rt.div,{"data-side":re,"data-align":me,...h,ref:w,style:{...h.style,animation:Z?void 0:"none"}})})})});Cg.displayName=Zl;var Ag="PopperArrow",KC={top:"bottom",right:"left",bottom:"top",left:"right"},Eg=x.forwardRef(function(t,n){const{__scopePopper:s,...r}=t,i=ZC(Ag,s),o=KC[i.placedSide];return y.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:y.jsx(zC,{...r,ref:n,style:{...r.style,display:"block"}})})});Eg.displayName=Ag;function GC(e){return e!==null}var QC=e=>({name:"transformOrigin",options:e,fn(t){var g,v,b;const{placement:n,rects:s,middlewareData:r}=t,o=((g=r.arrow)==null?void 0:g.centerOffset)!==0,a=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[l,u]=Pg(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((v=r.arrow)==null?void 0:v.x)??0)+a/2,p=(((b=r.arrow)==null?void 0:b.y)??0)+c/2;let m="",h="";return l==="bottom"?(m=o?d:`${f}px`,h=`${-c}px`):l==="top"?(m=o?d:`${f}px`,h=`${s.floating.height+c}px`):l==="right"?(m=`${-c}px`,h=o?d:`${p}px`):l==="left"&&(m=`${s.floating.width+c}px`,h=o?d:`${p}px`),{data:{x:m,y:h}}}});function Pg(e){const[t,n="center"]=e.split("-");return[t,n]}var XC=Sg,Rg=Tg,YC=Cg,JC=Eg,Kl="Popover",[kg,Yk]=Uc(Kl,[bg]),bi=bg(),[eA,Wn]=kg(Kl),Og=e=>{const{__scopePopover:t,children:n,open:s,defaultOpen:r,onOpenChange:i,modal:o=!1}=e,a=bi(t),c=x.useRef(null),[l,u]=x.useState(!1),[d=!1,f]=dh({prop:s,defaultProp:r,onChange:i});return y.jsx(XC,{...a,children:y.jsx(eA,{scope:t,contentId:zi(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:x.useCallback(()=>f(p=>!p),[f]),hasCustomAnchor:l,onCustomAnchorAdd:x.useCallback(()=>u(!0),[]),onCustomAnchorRemove:x.useCallback(()=>u(!1),[]),modal:o,children:n})})};Og.displayName=Kl;var Ng="PopoverAnchor",tA=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Wn(Ng,n),i=bi(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=r;return x.useEffect(()=>(o(),()=>a()),[o,a]),y.jsx(Rg,{...i,...s,ref:t})});tA.displayName=Ng;var jg="PopoverTrigger",Dg=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Wn(jg,n),i=bi(n),o=Vt(t,r.triggerRef),a=y.jsx(rt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Vg(r.open),...s,ref:o,onClick:mt(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?a:y.jsx(Rg,{asChild:!0,...i,children:a})});Dg.displayName=jg;var Gl="PopoverPortal",[nA,sA]=kg(Gl,{forceMount:void 0}),Mg=e=>{const{__scopePopover:t,forceMount:n,children:s,container:r}=e,i=Wn(Gl,t);return y.jsx(nA,{scope:t,forceMount:n,children:y.jsx(ir,{present:n||i.open,children:y.jsx(Wc,{asChild:!0,container:r,children:s})})})};Mg.displayName=Gl;var er="PopoverContent",Fg=x.forwardRef((e,t)=>{const n=sA(er,e.__scopePopover),{forceMount:s=n.forceMount,...r}=e,i=Wn(er,e.__scopePopover);return y.jsx(ir,{present:s||i.open,children:i.modal?y.jsx(rA,{...r,ref:t}):y.jsx(iA,{...r,ref:t})})});Fg.displayName=er;var rA=x.forwardRef((e,t)=>{const n=Wn(er,e.__scopePopover),s=x.useRef(null),r=Vt(t,s),i=x.useRef(!1);return x.useEffect(()=>{const o=s.current;if(o)return Th(o)},[]),y.jsx(Hc,{as:rr,allowPinchZoom:!0,children:y.jsx(Lg,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:mt(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:mt(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0,l=a.button===2||c;i.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:mt(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),iA=x.forwardRef((e,t)=>{const n=Wn(er,e.__scopePopover),s=x.useRef(!1),r=x.useRef(!1);return y.jsx(Lg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(s.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),s.current=!1,r.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),Lg=x.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:s,onOpenAutoFocus:r,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=Wn(er,n),p=bi(n);return mh(),y.jsx(zc,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:i,children:y.jsx($c,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:y.jsx(YC,{"data-state":Vg(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Ig="PopoverClose",oA=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Wn(Ig,n);return y.jsx(rt.button,{type:"button",...s,ref:t,onClick:mt(e.onClick,()=>r.onOpenChange(!1))})});oA.displayName=Ig;var aA="PopoverArrow",cA=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=bi(n);return y.jsx(JC,{...r,...s,ref:t})});cA.displayName=aA;function Vg(e){return e?"open":"closed"}var lA=Og,uA=Dg,dA=Mg,Bg=Fg;const Ug=lA,$g=uA,Ql=x.forwardRef(({className:e,align:t="center",sideOffset:n=4,...s},r)=>y.jsx(dA,{children:y.jsx(Bg,{ref:r,align:t,sideOffset:n,className:Q("z-50 w-32 rounded-[2px] s bg-white p-4 text-popover-foreground drop-shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...s})}));Ql.displayName=Bg.displayName;const xf=e=>{let t;const n=new Set,s=(l,u)=>{const d=typeof l=="function"?l(t):l;if(!Object.is(d,t)){const f=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(p=>p(t,f))}},r=()=>t,a={setState:s,getState:r,getInitialState:()=>c,subscribe:l=>(n.add(l),()=>n.delete(l))},c=t=e(s,r,a);return a},fA=e=>e?xf(e):xf,hA=e=>e;function pA(e,t=hA){const n=ve.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return ve.useDebugValue(n),n}const mA=e=>{const t=fA(e),n=s=>pA(t,s);return Object.assign(n,t),n},zg=e=>mA;function gA(e,t){let n;try{n=e()}catch{return}return{getItem:r=>{var i;const o=c=>c===null?null:JSON.parse(c,void 0),a=(i=n.getItem(r))!=null?i:null;return a instanceof Promise?a.then(o):o(a)},setItem:(r,i)=>n.setItem(r,JSON.stringify(i,void 0)),removeItem:r=>n.removeItem(r)}}const fc=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(s){return fc(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return fc(s)(n)}}}},yA=(e,t)=>(n,s,r)=>{let i={storage:gA(()=>localStorage),partialize:h=>h,version:0,merge:(h,g)=>({...g,...h}),...t},o=!1;const a=new Set,c=new Set;let l=i.storage;if(!l)return e((...h)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...h)},s,r);const u=()=>{const h=i.partialize({...s()});return l.setItem(i.name,{state:h,version:i.version})},d=r.setState;r.setState=(h,g)=>{d(h,g),u()};const f=e((...h)=>{n(...h),u()},s,r);r.getInitialState=()=>f;let p;const m=()=>{var h,g;if(!l)return;o=!1,a.forEach(b=>{var w;return b((w=s())!=null?w:f)});const v=((g=i.onRehydrateStorage)==null?void 0:g.call(i,(h=s())!=null?h:f))||void 0;return fc(l.getItem.bind(l))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate){const w=i.migrate(b.state,b.version);return w instanceof Promise?w.then(T=>[!0,T]):[!0,w]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var w;const[T,S]=b;if(p=i.merge(S,(w=s())!=null?w:f),n(p,!0),T)return u()}).then(()=>{v==null||v(p,void 0),p=s(),o=!0,c.forEach(b=>b(p))}).catch(b=>{v==null||v(void 0,b)})};return r.persist={setOptions:h=>{i={...i,...h},h.storage&&(l=h.storage)},clearStorage:()=>{l==null||l.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:h=>(a.add(h),()=>{a.delete(h)}),onFinishHydration:h=>(c.add(h),()=>{c.delete(h)})},i.skipHydration||m(),p||f},vA=yA;var ct=(e=>(e.EN="en",e.RU="ru",e))(ct||{});const Fe=zg()(vA(e=>({lang:"en",setLang:t=>e({lang:t})}),{name:"lang-storage"})),xA=[{lang:ct.RU},{lang:ct.EN}],bf=({className:e,light:t=!1})=>{const n=Fe(o=>o.lang),s=Fe(o=>o.setLang),[r,i]=x.useState(!1);return y.jsxs(Ug,{open:r,onOpenChange:()=>i(!r),children:[y.jsxs($g,{className:Q("flex text-white items-center gap-2",t?"text-white":"text-black",e),children:[y.jsx("img",{src:n===ct.RU?"/ru.svg":"/english.svg",alt:""}),n===ct.RU?"Ру":"En",y.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.23021 8.01443C4.35919 7.70304 4.66305 7.5 5.00011 7.5H15.0001C15.3372 7.5 15.641 7.70304 15.77 8.01443C15.899 8.32583 15.8277 8.68426 15.5894 8.92259L10.5894 13.9226C10.2639 14.248 9.73629 14.248 9.41085 13.9226L4.41085 8.92259C4.17252 8.68426 4.10122 8.32583 4.23021 8.01443ZM7.01195 9.16667L10.0001 12.1548L12.9883 9.16667H7.01195Z",fill:t?"#fff":"#000"})})]}),y.jsx(Ql,{className:"flex flex-col gap-6",children:xA.filter(o=>o.lang!==n).map((o,a)=>y.jsxs("div",{onClick:()=>{s(o.lang),i(!1)},className:"flex gap-3 py-1 items-center cursor-pointer",children:[y.jsx("img",{src:o.lang===ct.RU?"/ru.svg":"/english.svg",alt:"flag"}),y.jsx("h5",{children:o.lang===ct.RU?"Русский":"English"})]},a))})]})},bA=Uh,wA=$h,SA=zh,Wg=x.forwardRef(({className:e,...t},n)=>y.jsx(Ro,{ref:n,className:Q("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Wg.displayName=Ro.displayName;const Hg=x.forwardRef(({className:e,children:t,...n},s)=>y.jsxs(SA,{children:[y.jsx(Wg,{}),y.jsxs(ko,{ref:s,className:Q("fixed left-[50%] top-[50%] z-50 grid 2xl:w-[40%] lg:w-1/2 w-[70%] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background md:p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,y.jsxs(Qc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[y.jsx(Kh,{className:"size-6"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Hg.displayName=ko.displayName;const _A=x.forwardRef(({className:e,...t},n)=>y.jsx(Oo,{ref:n,className:Q("text-lg font-semibold leading-none tracking-tight",e),...t}));_A.displayName=Oo.displayName;const TA=x.forwardRef(({className:e,...t},n)=>y.jsx(No,{ref:n,className:Q("text-sm text-muted-foreground",e),...t}));TA.displayName=No.displayName;const wf=(e,t,n)=>{if(e&&"reportValidity"in e){const s=V(n,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},qg=(e,t)=>{for(const n in t.fields){const s=t.fields[n];s&&s.ref&&"reportValidity"in s.ref?wf(s.ref,n,e):s.refs&&s.refs.forEach(r=>wf(r,n,e))}},CA=(e,t)=>{t.shouldUseNativeValidation&&qg(e,t);const n={};for(const s in e){const r=V(t.fields,s),i=Object.assign(e[s]||{},{ref:r&&r.ref});if(AA(t.names||Object.keys(e),s)){const o=Object.assign({},V(n,s));xe(o,"root",i),xe(n,s,o)}else xe(n,s,i)}return n},AA=(e,t)=>e.some(n=>n.startsWith(t+"."));var EA=function(e,t){for(var n={};e.length;){var s=e[0],r=s.code,i=s.message,o=s.path.join(".");if(!n[o])if("unionErrors"in s){var a=s.unionErrors[0].errors[0];n[o]={message:a.message,type:a.code}}else n[o]={message:i,type:r};if("unionErrors"in s&&s.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var c=n[o].types,l=c&&c[s.code];n[o]=Hm(o,t,n,r,l?[].concat(l,s.message):s.message)}e.shift()}return n},PA=function(e,t,n){return n===void 0&&(n={}),function(s,r,i){try{return Promise.resolve(function(o,a){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](s,t)).then(function(l){return i.shouldUseNativeValidation&&qg({},i),{errors:{},values:n.raw?s:l}})}catch(l){return a(l)}return c&&c.then?c.then(void 0,a):c}(0,function(o){if(function(a){return Array.isArray(a==null?void 0:a.errors)}(o))return{values:{},errors:CA(EA(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},pe;(function(e){e.assertEqual=r=>r;function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{const i={};for(const o of r)i[o]=o;return i},e.getValidEnumValues=r=>{const i=e.objectKeys(r).filter(a=>typeof r[r[a]]!="number"),o={};for(const a of i)o[a]=r[a];return e.objectValues(o)},e.objectValues=r=>e.objectKeys(r).map(function(i){return r[i]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const i=[];for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.push(o);return i},e.find=(r,i)=>{for(const o of r)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&isFinite(r)&&Math.floor(r)===r;function s(r,i=" | "){return r.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=s,e.jsonStringifyReplacer=(r,i)=>typeof i=="bigint"?i.toString():i})(pe||(pe={}));var hc;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(hc||(hc={}));const z=pe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),dn=e=>{switch(typeof e){case"undefined":return z.undefined;case"string":return z.string;case"number":return isNaN(e)?z.nan:z.number;case"boolean":return z.boolean;case"function":return z.function;case"bigint":return z.bigint;case"symbol":return z.symbol;case"object":return Array.isArray(e)?z.array:e===null?z.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?z.promise:typeof Map<"u"&&e instanceof Map?z.map:typeof Set<"u"&&e instanceof Set?z.set:typeof Date<"u"&&e instanceof Date?z.date:z.object;default:return z.unknown}},M=pe.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"]),RA=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class vt extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},s={_errors:[]},r=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(r);else if(o.code==="invalid_return_type")r(o.returnTypeError);else if(o.code==="invalid_arguments")r(o.argumentsError);else if(o.path.length===0)s._errors.push(n(o));else{let a=s,c=0;for(;cn.message){const n={},s=[];for(const r of this.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):s.push(t(r));return{formErrors:s,fieldErrors:n}}get formErrors(){return this.flatten()}}vt.create=e=>new vt(e);const tr=(e,t)=>{let n;switch(e.code){case M.invalid_type:e.received===z.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case M.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,pe.jsonStringifyReplacer)}`;break;case M.unrecognized_keys:n=`Unrecognized key(s) in object: ${pe.joinValues(e.keys,", ")}`;break;case M.invalid_union:n="Invalid input";break;case M.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${pe.joinValues(e.options)}`;break;case M.invalid_enum_value:n=`Invalid enum value. Expected ${pe.joinValues(e.options)}, received '${e.received}'`;break;case M.invalid_arguments:n="Invalid function arguments";break;case M.invalid_return_type:n="Invalid function return type";break;case M.invalid_date:n="Invalid date";break;case M.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:pe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case M.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case M.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case M.custom:n="Invalid input";break;case M.invalid_intersection_types:n="Intersection results could not be merged";break;case M.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case M.not_finite:n="Number must be finite";break;default:n=t.defaultError,pe.assertNever(e)}return{message:n}};let Zg=tr;function kA(e){Zg=e}function yo(){return Zg}const vo=e=>{const{data:t,path:n,errorMaps:s,issueData:r}=e,i=[...n,...r.path||[]],o={...r,path:i};if(r.message!==void 0)return{...r,path:i,message:r.message};let a="";const c=s.filter(l=>!!l).slice().reverse();for(const l of c)a=l(o,{data:t,defaultError:a}).message;return{...r,path:i,message:a}},OA=[];function U(e,t){const n=yo(),s=vo({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===tr?void 0:tr].filter(r=>!!r)});e.common.issues.push(s)}class Qe{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const s=[];for(const r of n){if(r.status==="aborted")return ne;r.status==="dirty"&&t.dirty(),s.push(r.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,n){const s=[];for(const r of n){const i=await r.key,o=await r.value;s.push({key:i,value:o})}return Qe.mergeObjectSync(t,s)}static mergeObjectSync(t,n){const s={};for(const r of n){const{key:i,value:o}=r;if(i.status==="aborted"||o.status==="aborted")return ne;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||r.alwaysSet)&&(s[i.value]=o.value)}return{status:t.value,value:s}}}const ne=Object.freeze({status:"aborted"}),Os=e=>({status:"dirty",value:e}),nt=e=>({status:"valid",value:e}),pc=e=>e.status==="aborted",mc=e=>e.status==="dirty",ps=e=>e.status==="valid",Hr=e=>typeof Promise<"u"&&e instanceof Promise;function xo(e,t,n,s){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function Kg(e,t,n,s,r){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var G;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(G||(G={}));var Ar,Er;class sn{constructor(t,n,s,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=s,this._key=r}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 Sf=(e,t)=>{if(ps(t))return{success:!0,data:t.value};if(!e.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 vt(e.common.issues);return this._error=n,this._error}}};function oe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:s,description:r}=e;if(t&&(n||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(o,a)=>{var c,l;const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(c=u??s)!==null&&c!==void 0?c:a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:(l=u??n)!==null&&l!==void 0?l:a.defaultError}},description:r}}class le{get description(){return this._def.description}_getType(t){return dn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:dn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Qe,ctx:{common:t.parent.common,data:t.data,parsedType:dn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Hr(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const s=this.safeParse(t,n);if(s.success)return s.data;throw s.error}safeParse(t,n){var s;const r={common:{issues:[],async:(s=n==null?void 0:n.async)!==null&&s!==void 0?s:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:dn(t)},i=this._parseSync({data:t,path:r.path,parent:r});return Sf(r,i)}"~validate"(t){var n,s;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:dn(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:r});return ps(i)?{value:i.value}:{issues:r.common.issues}}catch(i){!((s=(n=i==null?void 0:i.message)===null||n===void 0?void 0:n.toLowerCase())===null||s===void 0)&&s.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(i=>ps(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(t,n){const s=await this.safeParseAsync(t,n);if(s.success)return s.data;throw s.error}async safeParseAsync(t,n){const s={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:t,parsedType:dn(t)},r=this._parse({data:t,path:s.path,parent:s}),i=await(Hr(r)?r:Promise.resolve(r));return Sf(s,i)}refine(t,n){const s=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,i)=>{const o=t(r),a=()=>i.addIssue({code:M.custom,...s(r)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((s,r)=>t(s)?!0:(r.addIssue(typeof n=="function"?n(s,r):n),!1))}_refinement(t){return new It({schema:this,typeName:ee.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,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 tn.create(this,this._def)}nullable(){return $n.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Dt.create(this)}promise(){return sr.create(this,this._def)}or(t){return Gr.create([this,t],this._def)}and(t){return Qr.create(this,t,this._def)}transform(t){return new It({...oe(this._def),schema:this,typeName:ee.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new ti({...oe(this._def),innerType:this,defaultValue:n,typeName:ee.ZodDefault})}brand(){return new Xl({typeName:ee.ZodBranded,type:this,...oe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new ni({...oe(this._def),innerType:this,catchValue:n,typeName:ee.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return wi.create(this,t)}readonly(){return si.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const NA=/^c[^\s-]{8,}$/i,jA=/^[0-9a-z]+$/,DA=/^[0-9A-HJKMNP-TV-Z]{26}$/i,MA=/^[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,FA=/^[a-z0-9_-]{21}$/i,LA=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,IA=/^[-+]?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)?)??$/,VA=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,BA="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ra;const UA=/^(?:(?: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])$/,$A=/^(?:(?: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])$/,zA=/^(([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]))$/,WA=/^(([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])$/,HA=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,qA=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Gg="((\\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])))",ZA=new RegExp(`^${Gg}$`);function Qg(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function KA(e){return new RegExp(`^${Qg(e)}$`)}function Xg(e){let t=`${Gg}T${Qg(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function GA(e,t){return!!((t==="v4"||!t)&&UA.test(e)||(t==="v6"||!t)&&zA.test(e))}function QA(e,t){if(!LA.test(e))return!1;try{const[n]=e.split("."),s=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(s));return!(typeof r!="object"||r===null||!r.typ||!r.alg||t&&r.alg!==t)}catch{return!1}}function XA(e,t){return!!((t==="v4"||!t)&&$A.test(e)||(t==="v6"||!t)&&WA.test(e))}class jt extends le{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==z.string){const i=this._getOrReturnCtx(t);return U(i,{code:M.invalid_type,expected:z.string,received:i.parsedType}),ne}const s=new Qe;let r;for(const i of this._def.checks)if(i.kind==="min")t.data.lengthi.value&&(r=this._getOrReturnCtx(t,r),U(r,{code:M.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,a=t.data.lengtht.test(r),{validation:n,code:M.invalid_string,...G.errToObj(s)})}_addCheck(t){return new jt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...G.errToObj(t)})}url(t){return this._addCheck({kind:"url",...G.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...G.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...G.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...G.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...G.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...G.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...G.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...G.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...G.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...G.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...G.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...G.errToObj(t)})}datetime(t){var n,s;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(s=t==null?void 0:t.local)!==null&&s!==void 0?s:!1,...G.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...G.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...G.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...G.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...G.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...G.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...G.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...G.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...G.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...G.errToObj(n)})}nonempty(t){return this.min(1,G.errToObj(t))}trim(){return new jt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new jt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new jt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new jt({checks:[],typeName:ee.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...oe(e)})};function YA(e,t){const n=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,r=n>s?n:s,i=parseInt(e.toFixed(r).replace(".","")),o=parseInt(t.toFixed(r).replace(".",""));return i%o/Math.pow(10,r)}class Vn extends le{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==z.number){const i=this._getOrReturnCtx(t);return U(i,{code:M.invalid_type,expected:z.number,received:i.parsedType}),ne}let s;const r=new Qe;for(const i of this._def.checks)i.kind==="int"?pe.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),U(s,{code:M.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),U(s,{code:M.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="multipleOf"?YA(t.data,i.value)!==0&&(s=this._getOrReturnCtx(t,s),U(s,{code:M.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),U(s,{code:M.not_finite,message:i.message}),r.dirty()):pe.assertNever(i);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,G.toString(n))}gt(t,n){return this.setLimit("min",t,!1,G.toString(n))}lte(t,n){return this.setLimit("max",t,!0,G.toString(n))}lt(t,n){return this.setLimit("max",t,!1,G.toString(n))}setLimit(t,n,s,r){return new Vn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:G.toString(r)}]})}_addCheck(t){return new Vn({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:G.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:G.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:G.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:G.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:G.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:G.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:G.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:G.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:G.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&pe.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(n===null||s.value>n)&&(n=s.value):s.kind==="max"&&(t===null||s.valuenew Vn({checks:[],typeName:ee.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class Bn extends le{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==z.bigint)return this._getInvalidInput(t);let s;const r=new Qe;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),U(s,{code:M.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),U(s,{code:M.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):pe.assertNever(i);return{status:r.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return U(n,{code:M.invalid_type,expected:z.bigint,received:n.parsedType}),ne}gte(t,n){return this.setLimit("min",t,!0,G.toString(n))}gt(t,n){return this.setLimit("min",t,!1,G.toString(n))}lte(t,n){return this.setLimit("max",t,!0,G.toString(n))}lt(t,n){return this.setLimit("max",t,!1,G.toString(n))}setLimit(t,n,s,r){return new Bn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:G.toString(r)}]})}_addCheck(t){return new Bn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:G.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:G.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:G.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:G.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:G.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Bn({checks:[],typeName:ee.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...oe(e)})};class qr extends le{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==z.boolean){const s=this._getOrReturnCtx(t);return U(s,{code:M.invalid_type,expected:z.boolean,received:s.parsedType}),ne}return nt(t.data)}}qr.create=e=>new qr({typeName:ee.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class ms extends le{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==z.date){const i=this._getOrReturnCtx(t);return U(i,{code:M.invalid_type,expected:z.date,received:i.parsedType}),ne}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return U(i,{code:M.invalid_date}),ne}const s=new Qe;let r;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()i.value&&(r=this._getOrReturnCtx(t,r),U(r,{code:M.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),s.dirty()):pe.assertNever(i);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ms({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:G.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:G.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew ms({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ee.ZodDate,...oe(e)});class bo extends le{_parse(t){if(this._getType(t)!==z.symbol){const s=this._getOrReturnCtx(t);return U(s,{code:M.invalid_type,expected:z.symbol,received:s.parsedType}),ne}return nt(t.data)}}bo.create=e=>new bo({typeName:ee.ZodSymbol,...oe(e)});class Zr extends le{_parse(t){if(this._getType(t)!==z.undefined){const s=this._getOrReturnCtx(t);return U(s,{code:M.invalid_type,expected:z.undefined,received:s.parsedType}),ne}return nt(t.data)}}Zr.create=e=>new Zr({typeName:ee.ZodUndefined,...oe(e)});class Kr extends le{_parse(t){if(this._getType(t)!==z.null){const s=this._getOrReturnCtx(t);return U(s,{code:M.invalid_type,expected:z.null,received:s.parsedType}),ne}return nt(t.data)}}Kr.create=e=>new Kr({typeName:ee.ZodNull,...oe(e)});class nr extends le{constructor(){super(...arguments),this._any=!0}_parse(t){return nt(t.data)}}nr.create=e=>new nr({typeName:ee.ZodAny,...oe(e)});class ls extends le{constructor(){super(...arguments),this._unknown=!0}_parse(t){return nt(t.data)}}ls.create=e=>new ls({typeName:ee.ZodUnknown,...oe(e)});class vn extends le{_parse(t){const n=this._getOrReturnCtx(t);return U(n,{code:M.invalid_type,expected:z.never,received:n.parsedType}),ne}}vn.create=e=>new vn({typeName:ee.ZodNever,...oe(e)});class wo extends le{_parse(t){if(this._getType(t)!==z.undefined){const s=this._getOrReturnCtx(t);return U(s,{code:M.invalid_type,expected:z.void,received:s.parsedType}),ne}return nt(t.data)}}wo.create=e=>new wo({typeName:ee.ZodVoid,...oe(e)});class Dt extends le{_parse(t){const{ctx:n,status:s}=this._processInputParams(t),r=this._def;if(n.parsedType!==z.array)return U(n,{code:M.invalid_type,expected:z.array,received:n.parsedType}),ne;if(r.exactLength!==null){const o=n.data.length>r.exactLength.value,a=n.data.lengthr.maxLength.value&&(U(n,{code:M.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),s.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>r.type._parseAsync(new sn(n,o,n.path,a)))).then(o=>Qe.mergeArray(s,o));const i=[...n.data].map((o,a)=>r.type._parseSync(new sn(n,o,n.path,a)));return Qe.mergeArray(s,i)}get element(){return this._def.type}min(t,n){return new Dt({...this._def,minLength:{value:t,message:G.toString(n)}})}max(t,n){return new Dt({...this._def,maxLength:{value:t,message:G.toString(n)}})}length(t,n){return new Dt({...this._def,exactLength:{value:t,message:G.toString(n)}})}nonempty(t){return this.min(1,t)}}Dt.create=(e,t)=>new Dt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ee.ZodArray,...oe(t)});function Cs(e){if(e instanceof Ce){const t={};for(const n in e.shape){const s=e.shape[n];t[n]=tn.create(Cs(s))}return new Ce({...e._def,shape:()=>t})}else return e instanceof Dt?new Dt({...e._def,type:Cs(e.element)}):e instanceof tn?tn.create(Cs(e.unwrap())):e instanceof $n?$n.create(Cs(e.unwrap())):e instanceof rn?rn.create(e.items.map(t=>Cs(t))):e}class Ce extends le{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=pe.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==z.object){const l=this._getOrReturnCtx(t);return U(l,{code:M.invalid_type,expected:z.object,received:l.parsedType}),ne}const{status:s,ctx:r}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof vn&&this._def.unknownKeys==="strip"))for(const l in r.data)o.includes(l)||a.push(l);const c=[];for(const l of o){const u=i[l],d=r.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new sn(r,d,r.path,l)),alwaysSet:l in r.data})}if(this._def.catchall instanceof vn){const l=this._def.unknownKeys;if(l==="passthrough")for(const u of a)c.push({key:{status:"valid",value:u},value:{status:"valid",value:r.data[u]}});else if(l==="strict")a.length>0&&(U(r,{code:M.unrecognized_keys,keys:a}),s.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const u of a){const d=r.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new sn(r,d,r.path,u)),alwaysSet:u in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const l=[];for(const u of c){const d=await u.key,f=await u.value;l.push({key:d,value:f,alwaysSet:u.alwaysSet})}return l}).then(l=>Qe.mergeObjectSync(s,l)):Qe.mergeObjectSync(s,c)}get shape(){return this._def.shape()}strict(t){return G.errToObj,new Ce({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,s)=>{var r,i,o,a;const c=(o=(i=(r=this._def).errorMap)===null||i===void 0?void 0:i.call(r,n,s).message)!==null&&o!==void 0?o:s.defaultError;return n.code==="unrecognized_keys"?{message:(a=G.errToObj(t).message)!==null&&a!==void 0?a:c}:{message:c}}}:{}})}strip(){return new Ce({...this._def,unknownKeys:"strip"})}passthrough(){return new Ce({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ce({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ce({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ee.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ce({...this._def,catchall:t})}pick(t){const n={};return pe.objectKeys(t).forEach(s=>{t[s]&&this.shape[s]&&(n[s]=this.shape[s])}),new Ce({...this._def,shape:()=>n})}omit(t){const n={};return pe.objectKeys(this.shape).forEach(s=>{t[s]||(n[s]=this.shape[s])}),new Ce({...this._def,shape:()=>n})}deepPartial(){return Cs(this)}partial(t){const n={};return pe.objectKeys(this.shape).forEach(s=>{const r=this.shape[s];t&&!t[s]?n[s]=r:n[s]=r.optional()}),new Ce({...this._def,shape:()=>n})}required(t){const n={};return pe.objectKeys(this.shape).forEach(s=>{if(t&&!t[s])n[s]=this.shape[s];else{let i=this.shape[s];for(;i instanceof tn;)i=i._def.innerType;n[s]=i}}),new Ce({...this._def,shape:()=>n})}keyof(){return Yg(pe.objectKeys(this.shape))}}Ce.create=(e,t)=>new Ce({shape:()=>e,unknownKeys:"strip",catchall:vn.create(),typeName:ee.ZodObject,...oe(t)});Ce.strictCreate=(e,t)=>new Ce({shape:()=>e,unknownKeys:"strict",catchall:vn.create(),typeName:ee.ZodObject,...oe(t)});Ce.lazycreate=(e,t)=>new Ce({shape:e,unknownKeys:"strip",catchall:vn.create(),typeName:ee.ZodObject,...oe(t)});class Gr extends le{_parse(t){const{ctx:n}=this._processInputParams(t),s=this._def.options;function r(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new vt(a.ctx.common.issues));return U(n,{code:M.invalid_union,unionErrors:o}),ne}if(n.common.async)return Promise.all(s.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(r);{let i;const o=[];for(const c of s){const l={...n,common:{...n.common,issues:[]},parent:null},u=c._parseSync({data:n.data,path:n.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(c=>new vt(c));return U(n,{code:M.invalid_union,unionErrors:a}),ne}}get options(){return this._def.options}}Gr.create=(e,t)=>new Gr({options:e,typeName:ee.ZodUnion,...oe(t)});const ln=e=>e instanceof Yr?ln(e.schema):e instanceof It?ln(e.innerType()):e instanceof Jr?[e.value]:e instanceof Un?e.options:e instanceof ei?pe.objectValues(e.enum):e instanceof ti?ln(e._def.innerType):e instanceof Zr?[void 0]:e instanceof Kr?[null]:e instanceof tn?[void 0,...ln(e.unwrap())]:e instanceof $n?[null,...ln(e.unwrap())]:e instanceof Xl||e instanceof si?ln(e.unwrap()):e instanceof ni?ln(e._def.innerType):[];class qo extends le{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==z.object)return U(n,{code:M.invalid_type,expected:z.object,received:n.parsedType}),ne;const s=this.discriminator,r=n.data[s],i=this.optionsMap.get(r);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(U(n,{code:M.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),ne)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,s){const r=new Map;for(const i of n){const o=ln(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of o){if(r.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);r.set(a,i)}}return new qo({typeName:ee.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...oe(s)})}}function gc(e,t){const n=dn(e),s=dn(t);if(e===t)return{valid:!0,data:e};if(n===z.object&&s===z.object){const r=pe.objectKeys(t),i=pe.objectKeys(e).filter(a=>r.indexOf(a)!==-1),o={...e,...t};for(const a of i){const c=gc(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===z.array&&s===z.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let i=0;i{if(pc(i)||pc(o))return ne;const a=gc(i.value,o.value);return a.valid?((mc(i)||mc(o))&&n.dirty(),{status:n.value,value:a.data}):(U(s,{code:M.invalid_intersection_types}),ne)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,o])=>r(i,o)):r(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}Qr.create=(e,t,n)=>new Qr({left:e,right:t,typeName:ee.ZodIntersection,...oe(n)});class rn extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==z.array)return U(s,{code:M.invalid_type,expected:z.array,received:s.parsedType}),ne;if(s.data.lengththis._def.items.length&&(U(s,{code:M.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...s.data].map((o,a)=>{const c=this._def.items[a]||this._def.rest;return c?c._parse(new sn(s,o,s.path,a)):null}).filter(o=>!!o);return s.common.async?Promise.all(i).then(o=>Qe.mergeArray(n,o)):Qe.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new rn({...this._def,rest:t})}}rn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new rn({items:e,typeName:ee.ZodTuple,rest:null,...oe(t)})};class Xr extends le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==z.object)return U(s,{code:M.invalid_type,expected:z.object,received:s.parsedType}),ne;const r=[],i=this._def.keyType,o=this._def.valueType;for(const a in s.data)r.push({key:i._parse(new sn(s,a,s.path,a)),value:o._parse(new sn(s,s.data[a],s.path,a)),alwaysSet:a in s.data});return s.common.async?Qe.mergeObjectAsync(n,r):Qe.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,s){return n instanceof le?new Xr({keyType:t,valueType:n,typeName:ee.ZodRecord,...oe(s)}):new Xr({keyType:jt.create(),valueType:t,typeName:ee.ZodRecord,...oe(n)})}}class So extends le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==z.map)return U(s,{code:M.invalid_type,expected:z.map,received:s.parsedType}),ne;const r=this._def.keyType,i=this._def.valueType,o=[...s.data.entries()].map(([a,c],l)=>({key:r._parse(new sn(s,a,s.path,[l,"key"])),value:i._parse(new sn(s,c,s.path,[l,"value"]))}));if(s.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const c of o){const l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return ne;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const c of o){const l=c.key,u=c.value;if(l.status==="aborted"||u.status==="aborted")return ne;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}}}}So.create=(e,t,n)=>new So({valueType:t,keyType:e,typeName:ee.ZodMap,...oe(n)});class gs extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==z.set)return U(s,{code:M.invalid_type,expected:z.set,received:s.parsedType}),ne;const r=this._def;r.minSize!==null&&s.data.sizer.maxSize.value&&(U(s,{code:M.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());const i=this._def.valueType;function o(c){const l=new Set;for(const u of c){if(u.status==="aborted")return ne;u.status==="dirty"&&n.dirty(),l.add(u.value)}return{status:n.value,value:l}}const a=[...s.data.values()].map((c,l)=>i._parse(new sn(s,c,s.path,l)));return s.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,n){return new gs({...this._def,minSize:{value:t,message:G.toString(n)}})}max(t,n){return new gs({...this._def,maxSize:{value:t,message:G.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}gs.create=(e,t)=>new gs({valueType:e,minSize:null,maxSize:null,typeName:ee.ZodSet,...oe(t)});class Ms extends le{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==z.function)return U(n,{code:M.invalid_type,expected:z.function,received:n.parsedType}),ne;function s(a,c){return vo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,yo(),tr].filter(l=>!!l),issueData:{code:M.invalid_arguments,argumentsError:c}})}function r(a,c){return vo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,yo(),tr].filter(l=>!!l),issueData:{code:M.invalid_return_type,returnTypeError:c}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof sr){const a=this;return nt(async function(...c){const l=new vt([]),u=await a._def.args.parseAsync(c,i).catch(p=>{throw l.addIssue(s(c,p)),l}),d=await Reflect.apply(o,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(p=>{throw l.addIssue(r(d,p)),l})})}else{const a=this;return nt(function(...c){const l=a._def.args.safeParse(c,i);if(!l.success)throw new vt([s(c,l.error)]);const u=Reflect.apply(o,this,l.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new vt([r(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ms({...this._def,args:rn.create(t).rest(ls.create())})}returns(t){return new Ms({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,s){return new Ms({args:t||rn.create([]).rest(ls.create()),returns:n||ls.create(),typeName:ee.ZodFunction,...oe(s)})}}class Yr extends le{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Yr.create=(e,t)=>new Yr({getter:e,typeName:ee.ZodLazy,...oe(t)});class Jr extends le{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return U(n,{received:n.data,code:M.invalid_literal,expected:this._def.value}),ne}return{status:"valid",value:t.data}}get value(){return this._def.value}}Jr.create=(e,t)=>new Jr({value:e,typeName:ee.ZodLiteral,...oe(t)});function Yg(e,t){return new Un({values:e,typeName:ee.ZodEnum,...oe(t)})}class Un extends le{constructor(){super(...arguments),Ar.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),s=this._def.values;return U(n,{expected:pe.joinValues(s),received:n.parsedType,code:M.invalid_type}),ne}if(xo(this,Ar)||Kg(this,Ar,new Set(this._def.values)),!xo(this,Ar).has(t.data)){const n=this._getOrReturnCtx(t),s=this._def.values;return U(n,{received:n.data,code:M.invalid_enum_value,options:s}),ne}return nt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Un.create(t,{...this._def,...n})}exclude(t,n=this._def){return Un.create(this.options.filter(s=>!t.includes(s)),{...this._def,...n})}}Ar=new WeakMap;Un.create=Yg;class ei extends le{constructor(){super(...arguments),Er.set(this,void 0)}_parse(t){const n=pe.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==z.string&&s.parsedType!==z.number){const r=pe.objectValues(n);return U(s,{expected:pe.joinValues(r),received:s.parsedType,code:M.invalid_type}),ne}if(xo(this,Er)||Kg(this,Er,new Set(pe.getValidEnumValues(this._def.values))),!xo(this,Er).has(t.data)){const r=pe.objectValues(n);return U(s,{received:s.data,code:M.invalid_enum_value,options:r}),ne}return nt(t.data)}get enum(){return this._def.values}}Er=new WeakMap;ei.create=(e,t)=>new ei({values:e,typeName:ee.ZodNativeEnum,...oe(t)});class sr extends le{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==z.promise&&n.common.async===!1)return U(n,{code:M.invalid_type,expected:z.promise,received:n.parsedType}),ne;const s=n.parsedType===z.promise?n.data:Promise.resolve(n.data);return nt(s.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}}sr.create=(e,t)=>new sr({type:e,typeName:ee.ZodPromise,...oe(t)});class It extends le{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ee.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:s}=this._processInputParams(t),r=this._def.effect||null,i={addIssue:o=>{U(s,o),o.fatal?n.abort():n.dirty()},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),r.type==="preprocess"){const o=r.transform(s.data,i);if(s.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return ne;const c=await this._def.schema._parseAsync({data:a,path:s.path,parent:s});return c.status==="aborted"?ne:c.status==="dirty"||n.value==="dirty"?Os(c.value):c});{if(n.value==="aborted")return ne;const a=this._def.schema._parseSync({data:o,path:s.path,parent:s});return a.status==="aborted"?ne:a.status==="dirty"||n.value==="dirty"?Os(a.value):a}}if(r.type==="refinement"){const o=a=>{const c=r.refinement(a,i);if(s.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(s.common.async===!1){const a=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?ne:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(a=>a.status==="aborted"?ne:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(r.type==="transform")if(s.common.async===!1){const o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!ps(o))return o;const a=r.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>ps(o)?Promise.resolve(r.transform(o.value,i)).then(a=>({status:n.value,value:a})):o);pe.assertNever(r)}}It.create=(e,t,n)=>new It({schema:e,typeName:ee.ZodEffects,effect:t,...oe(n)});It.createWithPreprocess=(e,t,n)=>new It({schema:t,effect:{type:"preprocess",transform:e},typeName:ee.ZodEffects,...oe(n)});class tn extends le{_parse(t){return this._getType(t)===z.undefined?nt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}tn.create=(e,t)=>new tn({innerType:e,typeName:ee.ZodOptional,...oe(t)});class $n extends le{_parse(t){return this._getType(t)===z.null?nt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}$n.create=(e,t)=>new $n({innerType:e,typeName:ee.ZodNullable,...oe(t)});class ti extends le{_parse(t){const{ctx:n}=this._processInputParams(t);let s=n.data;return n.parsedType===z.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}ti.create=(e,t)=>new ti({innerType:e,typeName:ee.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...oe(t)});class ni extends le{_parse(t){const{ctx:n}=this._processInputParams(t),s={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Hr(r)?r.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new vt(s.common.issues)},input:s.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new vt(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}ni.create=(e,t)=>new ni({innerType:e,typeName:ee.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...oe(t)});class _o extends le{_parse(t){if(this._getType(t)!==z.nan){const s=this._getOrReturnCtx(t);return U(s,{code:M.invalid_type,expected:z.nan,received:s.parsedType}),ne}return{status:"valid",value:t.data}}}_o.create=e=>new _o({typeName:ee.ZodNaN,...oe(e)});const JA=Symbol("zod_brand");class Xl extends le{_parse(t){const{ctx:n}=this._processInputParams(t),s=n.data;return this._def.type._parse({data:s,path:n.path,parent:n})}unwrap(){return this._def.type}}class wi extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?ne:i.status==="dirty"?(n.dirty(),Os(i.value)):this._def.out._parseAsync({data:i.value,path:s.path,parent:s})})();{const r=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return r.status==="aborted"?ne:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:s.path,parent:s})}}static create(t,n){return new wi({in:t,out:n,typeName:ee.ZodPipeline})}}class si extends le{_parse(t){const n=this._def.innerType._parse(t),s=r=>(ps(r)&&(r.value=Object.freeze(r.value)),r);return Hr(n)?n.then(r=>s(r)):s(n)}unwrap(){return this._def.innerType}}si.create=(e,t)=>new si({innerType:e,typeName:ee.ZodReadonly,...oe(t)});function Jg(e,t={},n){return e?nr.create().superRefine((s,r)=>{var i,o;if(!e(s)){const a=typeof t=="function"?t(s):typeof t=="string"?{message:t}:t,c=(o=(i=a.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,l=typeof a=="string"?{message:a}:a;r.addIssue({code:"custom",...l,fatal:c})}}):nr.create()}const eE={object:Ce.lazycreate};var ee;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ee||(ee={}));const tE=(e,t={message:`Input not instance of ${e.name}`})=>Jg(n=>n instanceof e,t),ey=jt.create,ty=Vn.create,nE=_o.create,sE=Bn.create,ny=qr.create,rE=ms.create,iE=bo.create,oE=Zr.create,aE=Kr.create,cE=nr.create,lE=ls.create,uE=vn.create,dE=wo.create,fE=Dt.create,hE=Ce.create,pE=Ce.strictCreate,mE=Gr.create,gE=qo.create,yE=Qr.create,vE=rn.create,xE=Xr.create,bE=So.create,wE=gs.create,SE=Ms.create,_E=Yr.create,TE=Jr.create,CE=Un.create,AE=ei.create,EE=sr.create,_f=It.create,PE=tn.create,RE=$n.create,kE=It.createWithPreprocess,OE=wi.create,NE=()=>ey().optional(),jE=()=>ty().optional(),DE=()=>ny().optional(),ME={string:e=>jt.create({...e,coerce:!0}),number:e=>Vn.create({...e,coerce:!0}),boolean:e=>qr.create({...e,coerce:!0}),bigint:e=>Bn.create({...e,coerce:!0}),date:e=>ms.create({...e,coerce:!0})},FE=ne;var Tf=Object.freeze({__proto__:null,defaultErrorMap:tr,setErrorMap:kA,getErrorMap:yo,makeIssue:vo,EMPTY_PATH:OA,addIssueToContext:U,ParseStatus:Qe,INVALID:ne,DIRTY:Os,OK:nt,isAborted:pc,isDirty:mc,isValid:ps,isAsync:Hr,get util(){return pe},get objectUtil(){return hc},ZodParsedType:z,getParsedType:dn,ZodType:le,datetimeRegex:Xg,ZodString:jt,ZodNumber:Vn,ZodBigInt:Bn,ZodBoolean:qr,ZodDate:ms,ZodSymbol:bo,ZodUndefined:Zr,ZodNull:Kr,ZodAny:nr,ZodUnknown:ls,ZodNever:vn,ZodVoid:wo,ZodArray:Dt,ZodObject:Ce,ZodUnion:Gr,ZodDiscriminatedUnion:qo,ZodIntersection:Qr,ZodTuple:rn,ZodRecord:Xr,ZodMap:So,ZodSet:gs,ZodFunction:Ms,ZodLazy:Yr,ZodLiteral:Jr,ZodEnum:Un,ZodNativeEnum:ei,ZodPromise:sr,ZodEffects:It,ZodTransformer:It,ZodOptional:tn,ZodNullable:$n,ZodDefault:ti,ZodCatch:ni,ZodNaN:_o,BRAND:JA,ZodBranded:Xl,ZodPipeline:wi,ZodReadonly:si,custom:Jg,Schema:le,ZodSchema:le,late:eE,get ZodFirstPartyTypeKind(){return ee},coerce:ME,any:cE,array:fE,bigint:sE,boolean:ny,date:rE,discriminatedUnion:gE,effect:_f,enum:CE,function:SE,instanceof:tE,intersection:yE,lazy:_E,literal:TE,map:bE,nan:nE,nativeEnum:AE,never:uE,null:aE,nullable:RE,number:ty,object:hE,oboolean:DE,onumber:jE,optional:PE,ostring:NE,pipeline:OE,preprocess:kE,promise:EE,record:xE,set:wE,strictObject:pE,string:ey,symbol:iE,transformer:_f,tuple:vE,undefined:oE,union:mE,unknown:lE,void:dE,NEVER:FE,ZodIssueCode:M,quotelessJson:RA,ZodError:vt});const ka=(e,t)=>Fe(s=>s.lang)==="ru"?e:t;function sy(e,t){return function(){return e.apply(t,arguments)}}const{toString:LE}=Object.prototype,{getPrototypeOf:Yl}=Object,Zo=(e=>t=>{const n=LE.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ut=e=>(e=e.toLowerCase(),t=>Zo(t)===e),Ko=e=>t=>typeof t===e,{isArray:dr}=Array,ri=Ko("undefined");function IE(e){return e!==null&&!ri(e)&&e.constructor!==null&&!ri(e.constructor)&&xt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ry=Ut("ArrayBuffer");function VE(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ry(e.buffer),t}const BE=Ko("string"),xt=Ko("function"),iy=Ko("number"),Go=e=>e!==null&&typeof e=="object",UE=e=>e===!0||e===!1,Yi=e=>{if(Zo(e)!=="object")return!1;const t=Yl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$E=Ut("Date"),zE=Ut("File"),WE=Ut("Blob"),HE=Ut("FileList"),qE=e=>Go(e)&&xt(e.pipe),ZE=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||xt(e.append)&&((t=Zo(e))==="formdata"||t==="object"&&xt(e.toString)&&e.toString()==="[object FormData]"))},KE=Ut("URLSearchParams"),[GE,QE,XE,YE]=["ReadableStream","Request","Response","Headers"].map(Ut),JE=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Si(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),dr(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const Yn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ay=e=>!ri(e)&&e!==Yn;function yc(){const{caseless:e}=ay(this)&&this||{},t={},n=(s,r)=>{const i=e&&oy(t,r)||r;Yi(t[i])&&Yi(s)?t[i]=yc(t[i],s):Yi(s)?t[i]=yc({},s):dr(s)?t[i]=s.slice():t[i]=s};for(let s=0,r=arguments.length;s(Si(t,(r,i)=>{n&&xt(r)?e[i]=sy(r,n):e[i]=r},{allOwnKeys:s}),e),tP=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),nP=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},sP=(e,t,n,s)=>{let r,i,o;const a={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)o=r[i],(!s||s(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Yl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},rP=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},iP=e=>{if(!e)return null;if(dr(e))return e;let t=e.length;if(!iy(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},oP=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Yl(Uint8Array)),aP=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},cP=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},lP=Ut("HTMLFormElement"),uP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Cf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),dP=Ut("RegExp"),cy=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Si(n,(r,i)=>{let o;(o=t(r,i,e))!==!1&&(s[i]=o||r)}),Object.defineProperties(e,s)},fP=e=>{cy(e,(t,n)=>{if(xt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(xt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},hP=(e,t)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return dr(e)?s(e):s(String(e).split(t)),n},pP=()=>{},mP=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Oa="abcdefghijklmnopqrstuvwxyz",Af="0123456789",ly={DIGIT:Af,ALPHA:Oa,ALPHA_DIGIT:Oa+Oa.toUpperCase()+Af},gP=(e=16,t=ly.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function yP(e){return!!(e&&xt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const vP=e=>{const t=new Array(10),n=(s,r)=>{if(Go(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const i=dr(s)?[]:{};return Si(s,(o,a)=>{const c=n(o,r+1);!ri(c)&&(i[a]=c)}),t[r]=void 0,i}}return s};return n(e,0)},xP=Ut("AsyncFunction"),bP=e=>e&&(Go(e)||xt(e))&&xt(e.then)&&xt(e.catch),uy=((e,t)=>e?setImmediate:t?((n,s)=>(Yn.addEventListener("message",({source:r,data:i})=>{r===Yn&&i===n&&s.length&&s.shift()()},!1),r=>{s.push(r),Yn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",xt(Yn.postMessage)),wP=typeof queueMicrotask<"u"?queueMicrotask.bind(Yn):typeof process<"u"&&process.nextTick||uy,k={isArray:dr,isArrayBuffer:ry,isBuffer:IE,isFormData:ZE,isArrayBufferView:VE,isString:BE,isNumber:iy,isBoolean:UE,isObject:Go,isPlainObject:Yi,isReadableStream:GE,isRequest:QE,isResponse:XE,isHeaders:YE,isUndefined:ri,isDate:$E,isFile:zE,isBlob:WE,isRegExp:dP,isFunction:xt,isStream:qE,isURLSearchParams:KE,isTypedArray:oP,isFileList:HE,forEach:Si,merge:yc,extend:eP,trim:JE,stripBOM:tP,inherits:nP,toFlatObject:sP,kindOf:Zo,kindOfTest:Ut,endsWith:rP,toArray:iP,forEachEntry:aP,matchAll:cP,isHTMLForm:lP,hasOwnProperty:Cf,hasOwnProp:Cf,reduceDescriptors:cy,freezeMethods:fP,toObjectSet:hP,toCamelCase:uP,noop:pP,toFiniteNumber:mP,findKey:oy,global:Yn,isContextDefined:ay,ALPHABET:ly,generateString:gP,isSpecCompliantForm:yP,toJSONObject:vP,isAsyncFn:xP,isThenable:bP,setImmediate:uy,asap:wP};function ie(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.status:null)}k.inherits(ie,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:k.toJSONObject(this.config),code:this.code,status:this.status}}});const dy=ie.prototype,fy={};["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(e=>{fy[e]={value:e}});Object.defineProperties(ie,fy);Object.defineProperty(dy,"isAxiosError",{value:!0});ie.from=(e,t,n,s,r,i)=>{const o=Object.create(dy);return k.toFlatObject(e,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),ie.call(o,e.message,t,n,s,r),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const SP=null;function vc(e){return k.isPlainObject(e)||k.isArray(e)}function hy(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function Ef(e,t,n){return e?e.concat(t).map(function(r,i){return r=hy(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function _P(e){return k.isArray(e)&&!e.some(vc)}const TP=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function Qo(e,t,n){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,g){return!k.isUndefined(g[h])});const s=n.metaTokens,r=n.visitor||u,i=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(r))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(k.isDate(m))return m.toISOString();if(!c&&k.isBlob(m))throw new ie("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(m)||k.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,h,g){let v=m;if(m&&!g&&typeof m=="object"){if(k.endsWith(h,"{}"))h=s?h:h.slice(0,-2),m=JSON.stringify(m);else if(k.isArray(m)&&_P(m)||(k.isFileList(m)||k.endsWith(h,"[]"))&&(v=k.toArray(m)))return h=hy(h),v.forEach(function(w,T){!(k.isUndefined(w)||w===null)&&t.append(o===!0?Ef([h],T,i):o===null?h:h+"[]",l(w))}),!1}return vc(m)?!0:(t.append(Ef(g,h,i),l(m)),!1)}const d=[],f=Object.assign(TP,{defaultVisitor:u,convertValue:l,isVisitable:vc});function p(m,h){if(!k.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(m),k.forEach(m,function(v,b){(!(k.isUndefined(v)||v===null)&&r.call(t,v,k.isString(b)?b.trim():b,h,f))===!0&&p(v,h?h.concat(b):[b])}),d.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Pf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Jl(e,t){this._pairs=[],e&&Qo(e,this,t)}const py=Jl.prototype;py.append=function(t,n){this._pairs.push([t,n])};py.toString=function(t){const n=t?function(s){return t.call(this,s,Pf)}:Pf;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function CP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function my(e,t,n){if(!t)return e;const s=n&&n.encode||CP;k.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let i;if(r?i=r(t,n):i=k.isURLSearchParams(t)?t.toString():new Jl(t,n).toString(s),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Rf{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){k.forEach(this.handlers,function(s){s!==null&&t(s)})}}const gy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},AP=typeof URLSearchParams<"u"?URLSearchParams:Jl,EP=typeof FormData<"u"?FormData:null,PP=typeof Blob<"u"?Blob:null,RP={isBrowser:!0,classes:{URLSearchParams:AP,FormData:EP,Blob:PP},protocols:["http","https","file","blob","url","data"]},eu=typeof window<"u"&&typeof document<"u",xc=typeof navigator=="object"&&navigator||void 0,kP=eu&&(!xc||["ReactNative","NativeScript","NS"].indexOf(xc.product)<0),OP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",NP=eu&&window.location.href||"http://localhost",jP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:eu,hasStandardBrowserEnv:kP,hasStandardBrowserWebWorkerEnv:OP,navigator:xc,origin:NP},Symbol.toStringTag,{value:"Module"})),Ke={...jP,...RP};function DP(e,t){return Qo(e,new Ke.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return Ke.isNode&&k.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function MP(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function FP(e){const t={},n=Object.keys(e);let s;const r=n.length;let i;for(s=0;s=n.length;return o=!o&&k.isArray(r)?r.length:o,c?(k.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!k.isObject(r[o]))&&(r[o]=[]),t(n,s,r[o],i)&&k.isArray(r[o])&&(r[o]=FP(r[o])),!a)}if(k.isFormData(e)&&k.isFunction(e.entries)){const n={};return k.forEachEntry(e,(s,r)=>{t(MP(s),r,n,0)}),n}return null}function LP(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(e)}const _i={transitional:gy,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=k.isObject(t);if(i&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return r?JSON.stringify(yy(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)||k.isReadableStream(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return DP(t,this.formSerializer).toString();if((a=k.isFileList(t))||s.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Qo(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),LP(t)):t}],transformResponse:[function(t){const n=this.transitional||_i.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(k.isResponse(t)||k.isReadableStream(t))return t;if(t&&k.isString(t)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?ie.from(a,ie.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{_i.headers[e]={}});const IP=k.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"]),VP=e=>{const t={};let n,s,r;return e&&e.split(` -`).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!n||t[n]&&IP[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},kf=Symbol("internals");function Sr(e){return e&&String(e).trim().toLowerCase()}function Ji(e){return e===!1||e==null?e:k.isArray(e)?e.map(Ji):String(e)}function BP(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const UP=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Na(e,t,n,s,r){if(k.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!k.isString(t)){if(k.isString(s))return t.indexOf(s)!==-1;if(k.isRegExp(s))return s.test(t)}}function $P(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function zP(e,t){const n=k.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,i,o){return this[s].call(this,t,r,i,o)},configurable:!0})})}class ut{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function i(a,c,l){const u=Sr(c);if(!u)throw new Error("header name must be a non-empty string");const d=k.findKey(r,u);(!d||r[d]===void 0||l===!0||l===void 0&&r[d]!==!1)&&(r[d||c]=Ji(a))}const o=(a,c)=>k.forEach(a,(l,u)=>i(l,u,c));if(k.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(k.isString(t)&&(t=t.trim())&&!UP(t))o(VP(t),n);else if(k.isHeaders(t))for(const[a,c]of t.entries())i(c,a,s);else t!=null&&i(n,t,s);return this}get(t,n){if(t=Sr(t),t){const s=k.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return BP(r);if(k.isFunction(n))return n.call(this,r,s);if(k.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Sr(t),t){const s=k.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Na(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function i(o){if(o=Sr(o),o){const a=k.findKey(s,o);a&&(!n||Na(s,s[a],a,n))&&(delete s[a],r=!0)}}return k.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const i=n[s];(!t||Na(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,s={};return k.forEach(this,(r,i)=>{const o=k.findKey(s,i);if(o){n[o]=Ji(r),delete n[i];return}const a=t?$P(i):String(i).trim();a!==i&&delete n[i],n[a]=Ji(r),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return k.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&k.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[kf]=this[kf]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=Sr(o);s[a]||(zP(r,o),s[a]=!0)}return k.isArray(t)?t.forEach(i):i(t),this}}ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.reduceDescriptors(ut.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});k.freezeMethods(ut);function ja(e,t){const n=this||_i,s=t||n,r=ut.from(s.headers);let i=s.data;return k.forEach(e,function(a){i=a.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function vy(e){return!!(e&&e.__CANCEL__)}function fr(e,t,n){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(fr,ie,{__CANCEL__:!0});function xy(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new ie("Request failed with status code "+n.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function WP(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function HP(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,i=0,o;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=s[i];o||(o=l),n[r]=c,s[r]=l;let d=i,f=0;for(;d!==r;)f+=n[d++],d=d%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),l-o{n=u,r=null,i&&(clearTimeout(i),i=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=s?o(l,u):(r=l,i||(i=setTimeout(()=>{i=null,o(r)},s-d)))},()=>r&&o(r)]}const To=(e,t,n=3)=>{let s=0;const r=HP(50,250);return qP(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,c=o-s,l=r(c),u=o<=a;s=o;const d={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a&&u?(a-o)/l:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},Of=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Nf=e=>(...t)=>k.asap(()=>e(...t)),ZP=Ke.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ke.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ke.origin),Ke.navigator&&/(msie|trident)/i.test(Ke.navigator.userAgent)):()=>!0,KP=Ke.hasStandardBrowserEnv?{write(e,t,n,s,r,i){const o=[e+"="+encodeURIComponent(t)];k.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),k.isString(s)&&o.push("path="+s),k.isString(r)&&o.push("domain="+r),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function GP(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function QP(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function by(e,t){return e&&!GP(t)?QP(e,t):t}const jf=e=>e instanceof ut?{...e}:e;function ys(e,t){t=t||{};const n={};function s(l,u,d,f){return k.isPlainObject(l)&&k.isPlainObject(u)?k.merge.call({caseless:f},l,u):k.isPlainObject(u)?k.merge({},u):k.isArray(u)?u.slice():u}function r(l,u,d,f){if(k.isUndefined(u)){if(!k.isUndefined(l))return s(void 0,l,d,f)}else return s(l,u,d,f)}function i(l,u){if(!k.isUndefined(u))return s(void 0,u)}function o(l,u){if(k.isUndefined(u)){if(!k.isUndefined(l))return s(void 0,l)}else return s(void 0,u)}function a(l,u,d){if(d in t)return s(l,u);if(d in e)return s(void 0,l)}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(l,u,d)=>r(jf(l),jf(u),d,!0)};return k.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=c[u]||r,f=d(e[u],t[u],u);k.isUndefined(f)&&d!==a||(n[u]=f)}),n}const wy=e=>{const t=ys({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:a}=t;t.headers=o=ut.from(o),t.url=my(by(t.baseURL,t.url),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(k.isFormData(n)){if(Ke.hasStandardBrowserEnv||Ke.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[l,...u]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([l||"multipart/form-data",...u].join("; "))}}if(Ke.hasStandardBrowserEnv&&(s&&k.isFunction(s)&&(s=s(t)),s||s!==!1&&ZP(t.url))){const l=r&&i&&KP.read(i);l&&o.set(r,l)}return t},XP=typeof XMLHttpRequest<"u",YP=XP&&function(e){return new Promise(function(n,s){const r=wy(e);let i=r.data;const o=ut.from(r.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=r,u,d,f,p,m;function h(){p&&p(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout;function v(){if(!g)return;const w=ut.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),S={data:!a||a==="text"||a==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:w,config:e,request:g};xy(function(R){n(R),h()},function(R){s(R),h()},S),g=null}"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(s(new ie("Request aborted",ie.ECONNABORTED,e,g)),g=null)},g.onerror=function(){s(new ie("Network Error",ie.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let T=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const S=r.transitional||gy;r.timeoutErrorMessage&&(T=r.timeoutErrorMessage),s(new ie(T,S.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,g)),g=null},i===void 0&&o.setContentType(null),"setRequestHeader"in g&&k.forEach(o.toJSON(),function(T,S){g.setRequestHeader(S,T)}),k.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),a&&a!=="json"&&(g.responseType=r.responseType),l&&([f,m]=To(l,!0),g.addEventListener("progress",f)),c&&g.upload&&([d,p]=To(c),g.upload.addEventListener("progress",d),g.upload.addEventListener("loadend",p)),(r.cancelToken||r.signal)&&(u=w=>{g&&(s(!w||w.type?new fr(null,e,g):w),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const b=WP(r.url);if(b&&Ke.protocols.indexOf(b)===-1){s(new ie("Unsupported protocol "+b+":",ie.ERR_BAD_REQUEST,e));return}g.send(i||null)})},JP=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const i=function(l){if(!r){r=!0,a();const u=l instanceof Error?l:this.reason;s.abort(u instanceof ie?u:new fr(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,i(new ie(`timeout ${t} of ms exceeded`,ie.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:c}=s;return c.unsubscribe=()=>k.asap(a),c}},eR=function*(e,t){let n=e.byteLength;if(n{const r=tR(e,t);let i=0,o,a=c=>{o||(o=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await r.next();if(l){a(),c.close();return}let d=u.byteLength;if(n){let f=i+=d;n(f)}c.enqueue(new Uint8Array(u))}catch(l){throw a(l),l}},cancel(c){return a(c),r.return()}},{highWaterMark:2})},Xo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Sy=Xo&&typeof ReadableStream=="function",sR=Xo&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),_y=(e,...t)=>{try{return!!e(...t)}catch{return!1}},rR=Sy&&_y(()=>{let e=!1;const t=new Request(Ke.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Mf=64*1024,bc=Sy&&_y(()=>k.isReadableStream(new Response("").body)),Co={stream:bc&&(e=>e.body)};Xo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Co[t]&&(Co[t]=k.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new ie(`Response type '${t}' is not supported`,ie.ERR_NOT_SUPPORT,s)})})})(new Response);const iR=async e=>{if(e==null)return 0;if(k.isBlob(e))return e.size;if(k.isSpecCompliantForm(e))return(await new Request(Ke.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(k.isArrayBufferView(e)||k.isArrayBuffer(e))return e.byteLength;if(k.isURLSearchParams(e)&&(e=e+""),k.isString(e))return(await sR(e)).byteLength},oR=async(e,t)=>{const n=k.toFiniteNumber(e.getContentLength());return n??iR(t)},aR=Xo&&(async e=>{let{url:t,method:n,data:s,signal:r,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:f}=wy(e);l=l?(l+"").toLowerCase():"text";let p=JP([r,i&&i.toAbortSignal()],o),m;const h=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(c&&rR&&n!=="get"&&n!=="head"&&(g=await oR(u,s))!==0){let S=new Request(t,{method:"POST",body:s,duplex:"half"}),E;if(k.isFormData(s)&&(E=S.headers.get("content-type"))&&u.setContentType(E),S.body){const[R,A]=Of(g,To(Nf(c)));s=Df(S.body,Mf,R,A)}}k.isString(d)||(d=d?"include":"omit");const v="credentials"in Request.prototype;m=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:v?d:void 0});let b=await fetch(m);const w=bc&&(l==="stream"||l==="response");if(bc&&(a||w&&h)){const S={};["status","statusText","headers"].forEach(N=>{S[N]=b[N]});const E=k.toFiniteNumber(b.headers.get("content-length")),[R,A]=a&&Of(E,To(Nf(a),!0))||[];b=new Response(Df(b.body,Mf,R,()=>{A&&A(),h&&h()}),S)}l=l||"text";let T=await Co[k.findKey(Co,l)||"text"](b,e);return!w&&h&&h(),await new Promise((S,E)=>{xy(S,E,{data:T,headers:ut.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:m})})}catch(v){throw h&&h(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,e,m),{cause:v.cause||v}):ie.from(v,v&&v.code,e,m)}}),wc={http:SP,xhr:YP,fetch:aR};k.forEach(wc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ff=e=>`- ${e}`,cR=e=>k.isFunction(e)||e===null||e===!1,Ty={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let i=0;i`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : -`+i.map(Ff).join(` -`):" "+Ff(i[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return s},adapters:wc};function Da(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fr(null,e)}function Lf(e){return Da(e),e.headers=ut.from(e.headers),e.data=ja.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ty.getAdapter(e.adapter||_i.adapter)(e).then(function(s){return Da(e),s.data=ja.call(e,e.transformResponse,s),s.headers=ut.from(s.headers),s},function(s){return vy(s)||(Da(e),s&&s.response&&(s.response.data=ja.call(e,e.transformResponse,s.response),s.response.headers=ut.from(s.response.headers))),Promise.reject(s)})}const Cy="1.7.9",Yo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Yo[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const If={};Yo.transitional=function(t,n,s){function r(i,o){return"[Axios v"+Cy+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,a)=>{if(t===!1)throw new ie(r(o," has been removed"+(n?" in "+n:"")),ie.ERR_DEPRECATED);return n&&!If[o]&&(If[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};Yo.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function lR(e,t,n){if(typeof e!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const i=s[r],o=t[i];if(o){const a=e[i],c=a===void 0||o(a,i,e);if(c!==!0)throw new ie("option "+i+" must be "+c,ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ie("Unknown option "+i,ie.ERR_BAD_OPTION)}}const eo={assertOptions:lR,validators:Yo},Wt=eo.validators;class us{constructor(t){this.defaults=t,this.interceptors={request:new Rf,response:new Rf}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=` -`+i):s.stack=i}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ys(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&eo.assertOptions(s,{silentJSONParsing:Wt.transitional(Wt.boolean),forcedJSONParsing:Wt.transitional(Wt.boolean),clarifyTimeoutError:Wt.transitional(Wt.boolean)},!1),r!=null&&(k.isFunction(r)?n.paramsSerializer={serialize:r}:eo.assertOptions(r,{encode:Wt.function,serialize:Wt.function},!0)),eo.assertOptions(n,{baseUrl:Wt.spelling("baseURL"),withXsrfToken:Wt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&k.merge(i.common,i[n.method]);i&&k.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=ut.concat(o,i);const a=[];let c=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(c=c&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});const l=[];this.interceptors.response.forEach(function(h){l.push(h.fulfilled,h.rejected)});let u,d=0,f;if(!c){const m=[Lf.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,l),f=m.length,u=Promise.resolve(n);d{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(a=>{s.subscribe(a),i=a}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},t(function(i,o,a){s.reason||(s.reason=new fr(i,o,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new tu(function(r){t=r}),cancel:t}}}function uR(e){return function(n){return e.apply(null,n)}}function dR(e){return k.isObject(e)&&e.isAxiosError===!0}const Sc={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(Sc).forEach(([e,t])=>{Sc[t]=e});function Ay(e){const t=new us(e),n=sy(us.prototype.request,t);return k.extend(n,us.prototype,t,{allOwnKeys:!0}),k.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Ay(ys(e,r))},n}const Ve=Ay(_i);Ve.Axios=us;Ve.CanceledError=fr;Ve.CancelToken=tu;Ve.isCancel=vy;Ve.VERSION=Cy;Ve.toFormData=Qo;Ve.AxiosError=ie;Ve.Cancel=Ve.CanceledError;Ve.all=function(t){return Promise.all(t)};Ve.spread=uR;Ve.isAxiosError=dR;Ve.mergeConfig=ys;Ve.AxiosHeaders=ut;Ve.formToJSON=e=>yy(k.isHTMLForm(e)?new FormData(e):e);Ve.getAdapter=Ty.getAdapter;Ve.HttpStatusCode=Sc;Ve.default=Ve;const At=Ve.create({baseURL:"https://turkmentextile.turkmenexpo.com/app/api/v1/"}),Jk=async e=>(await At.post("book_stand_form",e)).status===201,e1=async e=>(await At.post("become_sponsor_form",e)).status===201,t1=async e=>(await At.post("contact_form",e)).status===201,fR=async e=>(await At.post("subscribe_news_form",e)).status===201,hR=async(e,t)=>At.get(`pages/${t}`,{headers:{"Accept-Language":e}}),n1=async e=>At.get("partners",{headers:{"Accept-Language":e}}),pR=async e=>At.get("stats",{headers:{"Accept-Language":e}}),mR=async e=>At.get("contact_data",{headers:{"Accept-Language":e}}),gR=async e=>At.get("industries",{headers:{"Accept-Language":e}}),yR=async e=>At.get("exhibition_time",{headers:{"Accept-Language":e}}),s1=async e=>At.get("news",{headers:{"Accept-Language":e}}),r1=async(e,t)=>At.get(`news/${e}`,{headers:{"Accept-Language":t}}),vR=Tf.object({email:Tf.string().email()}),Ey=({modal:e=!1})=>{var i,o;const[t,n]=x.useState(!1),s=VT({resolver:PA(vR),defaultValues:{email:""}});async function r(a){try{const c=await fR(a);s.reset(),n(c)}catch(c){console.error("POST subscribe",c)}}return y.jsx("form",{onSubmit:s.handleSubmit(r),className:Q("py-8",e?"max-w-[392px] mx-auto":"bg-surface_container"),children:y.jsxs(st,{className:Q("flex gap-8 justify-between",e?"flex-col w-full":"lg:flex-row flex-col lg:items-center"),children:[y.jsx("h2",{className:"h2 !text-left",children:ka("Подпишитесь на новости:","Subscribe to the news:")}),y.jsxs("div",{className:"relative",children:[y.jsx("input",{...s.register("email"),placeholder:"Email",className:Q("input",{"w-full":e,"xl:w-[392px] lg:w-[320px] w-full":!e})}),y.jsx("span",{className:"text-error absolute text-red-600 -bottom-6 text-sm left-0",children:(o=(i=s.formState.errors)==null?void 0:i.email)==null?void 0:o.message})]}),y.jsx(dt,{loading:s.formState.isSubmitting,disabled:t,className:Q({"xl:w-[288px] lg:w-[220px] w-full":!e,"w-full":e}),children:t?ka("Отправлено","Submitted"):ka("Подписаться","Subscribe")})]})})},xR=({className:e,title:t})=>y.jsxs(bA,{children:[y.jsx(wA,{className:Q("h-14 px-3 flex gap-3 items-center hover:bg-slate-300/50 transition-all",e),children:t}),y.jsx(Hg,{children:y.jsx(Ey,{className:"",modal:!0})})]}),_c=zg()(e=>({sheet:!1,popover:!1,modal:!1,setModal:t=>e({modal:t}),setSheet:t=>e({sheet:t}),setPopover:t=>e({popover:t})})),Tc=({title:e,dropDownContent:t,color:n,triggerClassName:s})=>{const[r,i]=x.useState(!1),o=_c(a=>a.setSheet);return y.jsxs(Ug,{open:r,onOpenChange:()=>i(!r),children:[y.jsxs($g,{className:Q("flex items-center gap-2",s),children:[e,y.jsx(bR,{color:n})]}),y.jsx(Ql,{className:"w-fit px-0 py-2 cursor-pointer bg-surface_container",children:t&&t.map(a=>a.link?y.jsxs(De,{onClick:()=>{i(!1),o(!1)},className:"h-14 px-3 flex gap-3 items-center hover:bg-slate-300/50 transition-all",target:a.blank??"",to:a.link,children:[a.text,a.blank&&y.jsx("img",{src:"/pdf.svg"})]},a.text):a.modal?y.jsx(xR,{title:a.text},a.text):y.jsx("div",{className:"h-14 px-3 flex items-center hover:bg-slate-300/50 transition-all",onClick:()=>{i(!1),o(!1)},children:a.text},a.text))})]})},bR=({color:e="white"})=>y.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.23021 8.01443C4.35919 7.70304 4.66305 7.5 5.00011 7.5H15.0001C15.3372 7.5 15.641 7.70304 15.77 8.01443C15.899 8.32583 15.8277 8.68426 15.5894 8.92259L10.5894 13.9226C10.2639 14.248 9.73629 14.248 9.41085 13.9226L4.41085 8.92259C4.17252 8.68426 4.10122 8.32583 4.23021 8.01443ZM7.01195 9.16667L10.0001 12.1548L12.9883 9.16667H7.01195Z",fill:e})}),hr=({className:e})=>y.jsx(st,{className:Q("w-full py-20 h-full flex items-center justify-between",e),children:y.jsx(Zh,{className:"animate-spin mx-auto text-primary size-16"})}),lt=e=>e===ct.RU?0:1,Cc=[{title:"Тематические направления выставки",bottom_text:` - Участники смогут продемонстрировать свои инновационные решения, наладить взаимовыгодные партнерства и выйти на новые рынки.`,data:[{title:"Текстильные машины и оборудование",img:"/theme/1.svg"},{title:"Одежда, обувь, кожаные изделия",img:"/theme/2.svg"},{title:"Переработка натуральных волокон",img:"/theme/3.svg"},{title:"Домашний текстиль и эко-текстиль",img:"/theme/4.svg"},{title:"Запасные части и вспомогательные материалы",img:"/theme/5.svg"},{title:"Химические средства и красители",img:"/theme/6.svg"},{title:"Аксессуары и швейная фурнитура",img:"/theme/7.svg"},{title:"Мода и дизайн",img:"/theme/8.svg"}]},{title:"Thematic areas of the exhibition",bottom_text:` - Participants will be able to showcase innovative solutions, establish mutually beneficial partnerships, and enter new markets.`,data:[{title:"Textile machinery and equipment",img:"/theme/1.svg"},{title:"Clothing, footwear, leather goods",img:"/theme/2.svg"},{title:"Natural fibre processing",img:"/theme/3.svg"},{title:"Home textiles and eco-textiles",img:"/theme/4.svg"},{title:"Spare parts and auxiliary materials",img:"/theme/5.svg"},{title:"Chemicals and dyes",img:"/theme/6.svg"},{title:"Accessories and sewing supplies",img:"/theme/7.svg"},{title:"Fashion and design",img:"/theme/8.svg"}]}];var Ti=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},vs=typeof window>"u"||"Deno"in globalThis;function Tt(){}function wR(e,t){return typeof e=="function"?e(t):e}function Ac(e){return typeof e=="number"&&e>=0&&e!==1/0}function Py(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Fs(e,t){return typeof e=="function"?e(t):e}function Ot(e,t){return typeof e=="function"?e(t):e}function Vf(e,t){const{type:n="all",exact:s,fetchStatus:r,predicate:i,queryKey:o,stale:a}=e;if(o){if(s){if(t.queryHash!==nu(o,t.options))return!1}else if(!oi(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||r&&r!==t.state.fetchStatus||i&&!i(t))}function Bf(e,t){const{exact:n,status:s,predicate:r,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(ii(t.options.mutationKey)!==ii(i))return!1}else if(!oi(t.options.mutationKey,i))return!1}return!(s&&t.state.status!==s||r&&!r(t))}function nu(e,t){return((t==null?void 0:t.queryKeyHashFn)||ii)(e)}function ii(e){return JSON.stringify(e,(t,n)=>Pc(n)?Object.keys(n).sort().reduce((s,r)=>(s[r]=n[r],s),{}):n)}function oi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!oi(e[n],t[n])):!1}function Ry(e,t){if(e===t)return e;const n=Uf(e)&&Uf(t);if(n||Pc(e)&&Pc(t)){const s=n?e:Object.keys(e),r=s.length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{};let c=0;for(let l=0;l{setTimeout(t,e)})}function Rc(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Ry(e,t):t}function _R(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function TR(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var su=Symbol();function ky(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===su?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Jn,An,Ls,eh,CR=(eh=class extends Ti{constructor(){super();te(this,Jn);te(this,An);te(this,Ls);H(this,Ls,t=>{if(!vs&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,An)||this.setEventListener(C(this,Ls))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,An))==null||t.call(this),H(this,An,void 0))}setEventListener(t){var n;H(this,Ls,t),(n=C(this,An))==null||n.call(this),H(this,An,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){C(this,Jn)!==t&&(H(this,Jn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,Jn)=="boolean"?C(this,Jn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Jn=new WeakMap,An=new WeakMap,Ls=new WeakMap,eh),ru=new CR,Is,En,Vs,th,AR=(th=class extends Ti{constructor(){super();te(this,Is,!0);te(this,En);te(this,Vs);H(this,Vs,t=>{if(!vs&&window.addEventListener){const n=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",s)}}})}onSubscribe(){C(this,En)||this.setEventListener(C(this,Vs))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,En))==null||t.call(this),H(this,En,void 0))}setEventListener(t){var n;H(this,Vs,t),(n=C(this,En))==null||n.call(this),H(this,En,t(this.setOnline.bind(this)))}setOnline(t){C(this,Is)!==t&&(H(this,Is,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return C(this,Is)}},Is=new WeakMap,En=new WeakMap,Vs=new WeakMap,th),Ao=new AR;function kc(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});n.status="pending",n.catch(()=>{});function s(r){Object.assign(n,r),delete n.resolve,delete n.reject}return n.resolve=r=>{s({status:"fulfilled",value:r}),e(r)},n.reject=r=>{s({status:"rejected",reason:r}),t(r)},n}function ER(e){return Math.min(1e3*2**e,3e4)}function Oy(e){return(e??"online")==="online"?Ao.isOnline():!0}var Ny=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ma(e){return e instanceof Ny}function jy(e){let t=!1,n=0,s=!1,r;const i=kc(),o=h=>{var g;s||(f(new Ny(h)),(g=e.abort)==null||g.call(e))},a=()=>{t=!0},c=()=>{t=!1},l=()=>ru.isFocused()&&(e.networkMode==="always"||Ao.isOnline())&&e.canRun(),u=()=>Oy(e.networkMode)&&e.canRun(),d=h=>{var g;s||(s=!0,(g=e.onSuccess)==null||g.call(e,h),r==null||r(),i.resolve(h))},f=h=>{var g;s||(s=!0,(g=e.onError)==null||g.call(e,h),r==null||r(),i.reject(h))},p=()=>new Promise(h=>{var g;r=v=>{(s||l())&&h(v)},(g=e.onPause)==null||g.call(e)}).then(()=>{var h;r=void 0,s||(h=e.onContinue)==null||h.call(e)}),m=()=>{if(s)return;let h;const g=n===0?e.initialPromise:void 0;try{h=g??e.fn()}catch(v){h=Promise.reject(v)}Promise.resolve(h).then(d).catch(v=>{var E;if(s)return;const b=e.retry??(vs?0:3),w=e.retryDelay??ER,T=typeof w=="function"?w(n,v):w,S=b===!0||typeof b=="number"&&nl()?void 0:p()).then(()=>{t?f(v):m()})})};return{promise:i,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:a,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}function PR(){let e=[],t=0,n=a=>{a()},s=a=>{a()},r=a=>setTimeout(a,0);const i=a=>{t?e.push(a):r(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&r(()=>{s(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||o()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{s=a},setScheduler:a=>{r=a}}}var ze=PR(),es,nh,Dy=(nh=class{constructor(){te(this,es)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ac(this.gcTime)&&H(this,es,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(vs?1/0:5*60*1e3))}clearGcTimeout(){C(this,es)&&(clearTimeout(C(this,es)),H(this,es,void 0))}},es=new WeakMap,nh),Bs,Us,_t,ts,qe,ui,ns,Rt,un,sh,RR=(sh=class extends Dy{constructor(t){super();te(this,Rt);te(this,Bs);te(this,Us);te(this,_t);te(this,ts);te(this,qe);te(this,ui);te(this,ns);H(this,ns,!1),H(this,ui,t.defaultOptions),this.setOptions(t.options),this.observers=[],H(this,ts,t.client),H(this,_t,C(this,ts).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,H(this,Bs,kR(this.options)),this.state=t.state??C(this,Bs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,qe))==null?void 0:t.promise}setOptions(t){this.options={...C(this,ui),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,_t).remove(this)}setData(t,n){const s=Rc(this.state.data,t,this.options);return fe(this,Rt,un).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){fe(this,Rt,un).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,r;const n=(s=C(this,qe))==null?void 0:s.promise;return(r=C(this,qe))==null||r.cancel(t),n?n.then(Tt).catch(Tt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,Bs))}isActive(){return this.observers.some(t=>Ot(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===su||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Py(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,qe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,qe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,_t).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,qe)&&(C(this,ns)?C(this,qe).cancel({revert:!0}):C(this,qe).cancelRetry()),this.scheduleGc()),C(this,_t).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||fe(this,Rt,un).call(this,{type:"invalidate"})}fetch(t,n){var c,l,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,qe))return C(this,qe).continueRetry(),C(this,qe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const s=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(H(this,ns,!0),s.signal)})},i=()=>{const d=ky(this.options,n),f={client:C(this,ts),queryKey:this.queryKey,meta:this.meta};return r(f),H(this,ns,!1),this.options.persister?this.options.persister(d,f,this):d(f)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,ts),state:this.state,fetchFn:i};r(o),(c=this.options.behavior)==null||c.onFetch(o,this),H(this,Us,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=o.fetchOptions)==null?void 0:l.meta))&&fe(this,Rt,un).call(this,{type:"fetch",meta:(u=o.fetchOptions)==null?void 0:u.meta});const a=d=>{var f,p,m,h;Ma(d)&&d.silent||fe(this,Rt,un).call(this,{type:"error",error:d}),Ma(d)||((p=(f=C(this,_t).config).onError)==null||p.call(f,d,this),(h=(m=C(this,_t).config).onSettled)==null||h.call(m,this.state.data,d,this)),this.scheduleGc()};return H(this,qe,jy({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:s.abort.bind(s),onSuccess:d=>{var f,p,m,h;if(d===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(g){a(g);return}(p=(f=C(this,_t).config).onSuccess)==null||p.call(f,d,this),(h=(m=C(this,_t).config).onSettled)==null||h.call(m,d,this.state.error,this),this.scheduleGc()},onError:a,onFail:(d,f)=>{fe(this,Rt,un).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{fe(this,Rt,un).call(this,{type:"pause"})},onContinue:()=>{fe(this,Rt,un).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),C(this,qe).start()}},Bs=new WeakMap,Us=new WeakMap,_t=new WeakMap,ts=new WeakMap,qe=new WeakMap,ui=new WeakMap,ns=new WeakMap,Rt=new WeakSet,un=function(t){const n=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...My(s.data,this.options),fetchMeta:t.meta??null};case"success":return{...s,data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=t.error;return Ma(r)&&r.revert&&C(this,Us)?{...C(this,Us),fetchStatus:"idle"}:{...s,error:r,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),ze.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),C(this,_t).notify({query:this,type:"updated",action:t})})},sh);function My(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Oy(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function kR(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ht,rh,OR=(rh=class extends Ti{constructor(t={}){super();te(this,Ht);this.config=t,H(this,Ht,new Map)}build(t,n,s){const r=n.queryKey,i=n.queryHash??nu(r,n);let o=this.get(i);return o||(o=new RR({client:t,queryKey:r,queryHash:i,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){C(this,Ht).has(t.queryHash)||(C(this,Ht).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,Ht).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,Ht).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ze.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,Ht).get(t)}getAll(){return[...C(this,Ht).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Vf(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>Vf(t,s)):n}notify(t){ze.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ze.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ze.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ht=new WeakMap,rh),qt,Ye,ss,Zt,Tn,ih,NR=(ih=class extends Dy{constructor(t){super();te(this,Zt);te(this,qt);te(this,Ye);te(this,ss);this.mutationId=t.mutationId,H(this,Ye,t.mutationCache),H(this,qt,[]),this.state=t.state||jR(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,qt).includes(t)||(C(this,qt).push(t),this.clearGcTimeout(),C(this,Ye).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){H(this,qt,C(this,qt).filter(n=>n!==t)),this.scheduleGc(),C(this,Ye).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,qt).length||(this.state.status==="pending"?this.scheduleGc():C(this,Ye).remove(this))}continue(){var t;return((t=C(this,ss))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var r,i,o,a,c,l,u,d,f,p,m,h,g,v,b,w,T,S,E,R;H(this,ss,jy({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(A,N)=>{fe(this,Zt,Tn).call(this,{type:"failed",failureCount:A,error:N})},onPause:()=>{fe(this,Zt,Tn).call(this,{type:"pause"})},onContinue:()=>{fe(this,Zt,Tn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Ye).canRun(this)}));const n=this.state.status==="pending",s=!C(this,ss).canStart();try{if(!n){fe(this,Zt,Tn).call(this,{type:"pending",variables:t,isPaused:s}),await((i=(r=C(this,Ye).config).onMutate)==null?void 0:i.call(r,t,this));const N=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t));N!==this.state.context&&fe(this,Zt,Tn).call(this,{type:"pending",context:N,variables:t,isPaused:s})}const A=await C(this,ss).start();return await((l=(c=C(this,Ye).config).onSuccess)==null?void 0:l.call(c,A,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,A,t,this.state.context)),await((p=(f=C(this,Ye).config).onSettled)==null?void 0:p.call(f,A,null,this.state.variables,this.state.context,this)),await((h=(m=this.options).onSettled)==null?void 0:h.call(m,A,null,t,this.state.context)),fe(this,Zt,Tn).call(this,{type:"success",data:A}),A}catch(A){try{throw await((v=(g=C(this,Ye).config).onError)==null?void 0:v.call(g,A,t,this.state.context,this)),await((w=(b=this.options).onError)==null?void 0:w.call(b,A,t,this.state.context)),await((S=(T=C(this,Ye).config).onSettled)==null?void 0:S.call(T,void 0,A,this.state.variables,this.state.context,this)),await((R=(E=this.options).onSettled)==null?void 0:R.call(E,void 0,A,t,this.state.context)),A}finally{fe(this,Zt,Tn).call(this,{type:"error",error:A})}}finally{C(this,Ye).runNext(this)}}},qt=new WeakMap,Ye=new WeakMap,ss=new WeakMap,Zt=new WeakSet,Tn=function(t){const n=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ze.batch(()=>{C(this,qt).forEach(s=>{s.onMutationUpdate(t)}),C(this,Ye).notify({mutation:this,type:"updated",action:t})})},ih);function jR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var fn,kt,di,oh,DR=(oh=class extends Ti{constructor(t={}){super();te(this,fn);te(this,kt);te(this,di);this.config=t,H(this,fn,new Set),H(this,kt,new Map),H(this,di,0)}build(t,n,s){const r=new NR({mutationCache:this,mutationId:++Ri(this,di)._,options:t.defaultMutationOptions(n),state:s});return this.add(r),r}add(t){C(this,fn).add(t);const n=Ui(t);if(typeof n=="string"){const s=C(this,kt).get(n);s?s.push(t):C(this,kt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,fn).delete(t)){const n=Ui(t);if(typeof n=="string"){const s=C(this,kt).get(n);if(s)if(s.length>1){const r=s.indexOf(t);r!==-1&&s.splice(r,1)}else s[0]===t&&C(this,kt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ui(t);if(typeof n=="string"){const s=C(this,kt).get(n),r=s==null?void 0:s.find(i=>i.state.status==="pending");return!r||r===t}else return!0}runNext(t){var s;const n=Ui(t);if(typeof n=="string"){const r=(s=C(this,kt).get(n))==null?void 0:s.find(i=>i!==t&&i.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ze.batch(()=>{C(this,fn).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,fn).clear(),C(this,kt).clear()})}getAll(){return Array.from(C(this,fn))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Bf(n,s))}findAll(t={}){return this.getAll().filter(n=>Bf(t,n))}notify(t){ze.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ze.batch(()=>Promise.all(t.map(n=>n.continue().catch(Tt))))}},fn=new WeakMap,kt=new WeakMap,di=new WeakMap,oh);function Ui(e){var t;return(t=e.options.scope)==null?void 0:t.id}function zf(e){return{onFetch:(t,n)=>{var u,d,f,p,m;const s=t.options,r=(f=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],o=((m=t.state.data)==null?void 0:m.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let h=!1;const g=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?h=!0:t.signal.addEventListener("abort",()=>{h=!0}),t.signal)})},v=ky(t.options,t.fetchOptions),b=async(w,T,S)=>{if(h)return Promise.reject();if(T==null&&w.pages.length)return Promise.resolve(w);const E={client:t.client,queryKey:t.queryKey,pageParam:T,direction:S?"backward":"forward",meta:t.options.meta};g(E);const R=await v(E),{maxPages:A}=t.options,N=S?TR:_R;return{pages:N(w.pages,R,A),pageParams:N(w.pageParams,T,A)}};if(r&&i.length){const w=r==="backward",T=w?MR:Wf,S={pages:i,pageParams:o},E=T(s,S);a=await b(S,E,w)}else{const w=e??i.length;do{const T=c===0?o[0]??s.initialPageParam:Wf(s,a);if(c>0&&T==null)break;a=await b(a,T),c++}while(c{var h,g;return(g=(h=t.options).persister)==null?void 0:g.call(h,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Wf(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function MR(e,{pages:t,pageParams:n}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,n[0],n):void 0}var Pe,Pn,Rn,$s,zs,kn,Ws,Hs,ah,i1=(ah=class{constructor(e={}){te(this,Pe);te(this,Pn);te(this,Rn);te(this,$s);te(this,zs);te(this,kn);te(this,Ws);te(this,Hs);H(this,Pe,e.queryCache||new OR),H(this,Pn,e.mutationCache||new DR),H(this,Rn,e.defaultOptions||{}),H(this,$s,new Map),H(this,zs,new Map),H(this,kn,0)}mount(){Ri(this,kn)._++,C(this,kn)===1&&(H(this,Ws,ru.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Pe).onFocus())})),H(this,Hs,Ao.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Pe).onOnline())})))}unmount(){var e,t;Ri(this,kn)._--,C(this,kn)===0&&((e=C(this,Ws))==null||e.call(this),H(this,Ws,void 0),(t=C(this,Hs))==null||t.call(this),H(this,Hs,void 0))}isFetching(e){return C(this,Pe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Pn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Pe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,Pe).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Fs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return C(this,Pe).findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=this.defaultQueryOptions({queryKey:e}),r=C(this,Pe).get(s.queryHash),i=r==null?void 0:r.state.data,o=wR(t,i);if(o!==void 0)return C(this,Pe).build(this,s).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ze.batch(()=>C(this,Pe).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Pe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,Pe);ze.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,Pe),s={type:"active",...e};return ze.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries(s,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=ze.batch(()=>C(this,Pe).findAll(e).map(r=>r.cancel(n)));return Promise.all(s).then(Tt).catch(Tt)}invalidateQueries(e,t={}){return ze.batch(()=>{if(C(this,Pe).findAll(e).forEach(s=>{s.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},s=ze.batch(()=>C(this,Pe).findAll(e).filter(r=>!r.isDisabled()).map(r=>{let i=r.fetch(void 0,n);return n.throwOnError||(i=i.catch(Tt)),r.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(s).then(Tt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,Pe).build(this,t);return n.isStaleByTime(Fs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Tt).catch(Tt)}fetchInfiniteQuery(e){return e.behavior=zf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Tt).catch(Tt)}ensureInfiniteQueryData(e){return e.behavior=zf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ao.isOnline()?C(this,Pn).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,Pe)}getMutationCache(){return C(this,Pn)}getDefaultOptions(){return C(this,Rn)}setDefaultOptions(e){H(this,Rn,e)}setQueryDefaults(e,t){C(this,$s).set(ii(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,$s).values()],n={};return t.forEach(s=>{oi(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){C(this,zs).set(ii(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,zs).values()];let n={};return t.forEach(s=>{oi(e,s.mutationKey)&&(n={...n,...s.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Rn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=nu(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===su&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Rn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,Pe).clear(),C(this,Pn).clear()}},Pe=new WeakMap,Pn=new WeakMap,Rn=new WeakMap,$s=new WeakMap,zs=new WeakMap,kn=new WeakMap,Ws=new WeakMap,Hs=new WeakMap,ah),ot,he,fi,Je,rs,qs,On,Kt,hi,Zs,Ks,is,os,Nn,Gs,be,Pr,Oc,Nc,jc,Dc,Mc,Fc,Lc,Fy,ch,FR=(ch=class extends Ti{constructor(t,n){super();te(this,be);te(this,ot);te(this,he);te(this,fi);te(this,Je);te(this,rs);te(this,qs);te(this,On);te(this,Kt);te(this,hi);te(this,Zs);te(this,Ks);te(this,is);te(this,os);te(this,Nn);te(this,Gs,new Set);this.options=n,H(this,ot,t),H(this,Kt,null),H(this,On,kc()),this.options.experimental_prefetchInRender||C(this,On).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,he).addObserver(this),Hf(C(this,he),this.options)?fe(this,be,Pr).call(this):this.updateResult(),fe(this,be,Dc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ic(C(this,he),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ic(C(this,he),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,fe(this,be,Mc).call(this),fe(this,be,Fc).call(this),C(this,he).removeObserver(this)}setOptions(t,n){const s=this.options,r=C(this,he);if(this.options=C(this,ot).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ot(this.options.enabled,C(this,he))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");fe(this,be,Lc).call(this),C(this,he).setOptions(this.options),s._defaulted&&!Ec(this.options,s)&&C(this,ot).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,he),observer:this});const i=this.hasListeners();i&&qf(C(this,he),r,this.options,s)&&fe(this,be,Pr).call(this),this.updateResult(n),i&&(C(this,he)!==r||Ot(this.options.enabled,C(this,he))!==Ot(s.enabled,C(this,he))||Fs(this.options.staleTime,C(this,he))!==Fs(s.staleTime,C(this,he)))&&fe(this,be,Oc).call(this);const o=fe(this,be,Nc).call(this);i&&(C(this,he)!==r||Ot(this.options.enabled,C(this,he))!==Ot(s.enabled,C(this,he))||o!==C(this,Nn))&&fe(this,be,jc).call(this,o)}getOptimisticResult(t){const n=C(this,ot).getQueryCache().build(C(this,ot),t),s=this.createResult(n,t);return IR(this,s)&&(H(this,Je,s),H(this,qs,this.options),H(this,rs,C(this,he).state)),s}getCurrentResult(){return C(this,Je)}trackResult(t,n){const s={};return Object.keys(t).forEach(r=>{Object.defineProperty(s,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),n==null||n(r),t[r])})}),s}trackProp(t){C(this,Gs).add(t)}getCurrentQuery(){return C(this,he)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,ot).defaultQueryOptions(t),s=C(this,ot).getQueryCache().build(C(this,ot),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){return fe(this,be,Pr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Je)))}createResult(t,n){var A;const s=C(this,he),r=this.options,i=C(this,Je),o=C(this,rs),a=C(this,qs),l=t!==s?t.state:C(this,fi),{state:u}=t;let d={...u},f=!1,p;if(n._optimisticResults){const N=this.hasListeners(),D=!N&&Hf(t,n),L=N&&qf(t,s,n,r);(D||L)&&(d={...d,...My(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:h,status:g}=d;if(n.select&&d.data!==void 0)if(i&&d.data===(o==null?void 0:o.data)&&n.select===C(this,hi))p=C(this,Zs);else try{H(this,hi,n.select),p=n.select(d.data),p=Rc(i==null?void 0:i.data,p,n),H(this,Zs,p),H(this,Kt,null)}catch(N){H(this,Kt,N)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&g==="pending"){let N;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))N=i.data;else if(N=typeof n.placeholderData=="function"?n.placeholderData((A=C(this,Ks))==null?void 0:A.state.data,C(this,Ks)):n.placeholderData,n.select&&N!==void 0)try{N=n.select(N),H(this,Kt,null)}catch(D){H(this,Kt,D)}N!==void 0&&(g="success",p=Rc(i==null?void 0:i.data,N,n),f=!0)}C(this,Kt)&&(m=C(this,Kt),p=C(this,Zs),h=Date.now(),g="error");const v=d.fetchStatus==="fetching",b=g==="pending",w=g==="error",T=b&&v,S=p!==void 0,R={status:g,fetchStatus:d.fetchStatus,isPending:b,isSuccess:g==="success",isError:w,isInitialLoading:T,isLoading:T,data:p,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:h,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!b,isLoadingError:w&&!S,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:w&&S,isStale:iu(t,n),refetch:this.refetch,promise:C(this,On)};if(this.options.experimental_prefetchInRender){const N=j=>{R.status==="error"?j.reject(R.error):R.data!==void 0&&j.resolve(R.data)},D=()=>{const j=H(this,On,R.promise=kc());N(j)},L=C(this,On);switch(L.status){case"pending":t.queryHash===s.queryHash&&N(L);break;case"fulfilled":(R.status==="error"||R.data!==L.value)&&D();break;case"rejected":(R.status!=="error"||R.error!==L.reason)&&D();break}}return R}updateResult(t){const n=C(this,Je),s=this.createResult(C(this,he),this.options);if(H(this,rs,C(this,he).state),H(this,qs,this.options),C(this,rs).data!==void 0&&H(this,Ks,C(this,he)),Ec(s,n))return;H(this,Je,s);const r={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!C(this,Gs).size)return!0;const c=new Set(a??C(this,Gs));return this.options.throwOnError&&c.add("error"),Object.keys(C(this,Je)).some(l=>{const u=l;return C(this,Je)[u]!==n[u]&&c.has(u)})};(t==null?void 0:t.listeners)!==!1&&i()&&(r.listeners=!0),fe(this,be,Fy).call(this,{...r,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&fe(this,be,Dc).call(this)}},ot=new WeakMap,he=new WeakMap,fi=new WeakMap,Je=new WeakMap,rs=new WeakMap,qs=new WeakMap,On=new WeakMap,Kt=new WeakMap,hi=new WeakMap,Zs=new WeakMap,Ks=new WeakMap,is=new WeakMap,os=new WeakMap,Nn=new WeakMap,Gs=new WeakMap,be=new WeakSet,Pr=function(t){fe(this,be,Lc).call(this);let n=C(this,he).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Tt)),n},Oc=function(){fe(this,be,Mc).call(this);const t=Fs(this.options.staleTime,C(this,he));if(vs||C(this,Je).isStale||!Ac(t))return;const s=Py(C(this,Je).dataUpdatedAt,t)+1;H(this,is,setTimeout(()=>{C(this,Je).isStale||this.updateResult()},s))},Nc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,he)):this.options.refetchInterval)??!1},jc=function(t){fe(this,be,Fc).call(this),H(this,Nn,t),!(vs||Ot(this.options.enabled,C(this,he))===!1||!Ac(C(this,Nn))||C(this,Nn)===0)&&H(this,os,setInterval(()=>{(this.options.refetchIntervalInBackground||ru.isFocused())&&fe(this,be,Pr).call(this)},C(this,Nn)))},Dc=function(){fe(this,be,Oc).call(this),fe(this,be,jc).call(this,fe(this,be,Nc).call(this))},Mc=function(){C(this,is)&&(clearTimeout(C(this,is)),H(this,is,void 0))},Fc=function(){C(this,os)&&(clearInterval(C(this,os)),H(this,os,void 0))},Lc=function(){const t=C(this,ot).getQueryCache().build(C(this,ot),this.options);if(t===C(this,he))return;const n=C(this,he);H(this,he,t),H(this,fi,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Fy=function(t){ze.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Je))}),C(this,ot).getQueryCache().notify({query:C(this,he),type:"observerResultsUpdated"})})},ch);function LR(e,t){return Ot(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Hf(e,t){return LR(e,t)||e.state.data!==void 0&&Ic(e,t,t.refetchOnMount)}function Ic(e,t,n){if(Ot(t.enabled,e)!==!1){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&iu(e,t)}return!1}function qf(e,t,n,s){return(e!==t||Ot(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&iu(e,n)}function iu(e,t){return Ot(t.enabled,e)!==!1&&e.isStaleByTime(Fs(t.staleTime,e))}function IR(e,t){return!Ec(e.getCurrentResult(),t)}var Ly=x.createContext(void 0),VR=e=>{const t=x.useContext(Ly);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},o1=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(Ly.Provider,{value:e,children:t})),Iy=x.createContext(!1),BR=()=>x.useContext(Iy);Iy.Provider;function UR(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var $R=x.createContext(UR()),zR=()=>x.useContext($R);function WR(e,t){return typeof e=="function"?e(...t):!!e}function Zf(){}var HR=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},qR=e=>{x.useEffect(()=>{e.clearReset()},[e])},ZR=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(r&&e.data===void 0||WR(n,[e.error,s])),KR=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},GR=(e,t)=>e.isLoading&&e.isFetching&&!t,QR=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Kf=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function XR(e,t,n){var d,f,p,m,h;const s=VR(),r=BR(),i=zR(),o=s.defaultQueryOptions(e);(f=(d=s.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||f.call(d,o),o._optimisticResults=r?"isRestoring":"optimistic",KR(o),HR(o,i),qR(i);const a=!s.getQueryCache().get(o.queryHash),[c]=x.useState(()=>new t(s,o)),l=c.getOptimisticResult(o),u=!r&&e.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(g=>{const v=u?c.subscribe(ze.batchCalls(g)):Zf;return c.updateResult(),v},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),x.useEffect(()=>{c.setOptions(o,{listeners:!1})},[o,c]),QR(o,l))throw Kf(o,c,i);if(ZR({result:l,errorResetBoundary:i,throwOnError:o.throwOnError,query:s.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw l.error;if((m=(p=s.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||m.call(p,o,l),o.experimental_prefetchInRender&&!vs&&GR(l,r)){const g=a?Kf(o,c,i):(h=s.getQueryCache().get(o.queryHash))==null?void 0:h.promise;g==null||g.catch(Zf).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?l:c.trackResult(l)}function Ci(e,t){return XR(e,FR)}const Vy=()=>{const e=Fe(s=>s.lang),{data:t,isPending:n}=Ci({queryKey:["industries",e],queryFn:()=>gR(e),select:({data:s})=>s.data});return{data:t,isPending:n}},a1=({className:e})=>{const t=Fe(r=>r.lang),{data:n,isPending:s}=Vy();return y.jsx("section",{className:Q("relative w-full bg-[#FDEDEE] -z-10 py-10",e),children:y.jsx(st,{children:s?y.jsx(hr,{}):y.jsxs(y.Fragment,{children:[y.jsx("h3",{className:"h2 mb-4",children:Cc[lt(t)].title}),y.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:n==null?void 0:n.map((r,i)=>y.jsx(ap,{...r},i))}),y.jsxs("div",{className:"flex items-center gap-3 mt-8 text-on_surface_v text-lg",children:[y.jsx("div",{className:"md:w-1 w-4 md:h-[38px] h-40 bg-teritary_08"}),y.jsx("p",{className:"text-18",children:Cc[lt(t)].bottom_text})]})]})})})},By=[{title:"Время выставки",data:[{name:"Монтаж выставки",date:"12 Мая – 10 Июня 2025 года"},{name:"Работа",date:"11–13 Июня 2025 года"},{name:"Демонтаж",date:"13–14 Июня 2025 года"}]},{title:"Exhibition time",data:[{name:"Exhibition assembly",date:"12 May — 10 June 2025"},{name:"Exhibition days",date:"11–13 June 2025"},{name:"Exhibition dismantling",date:"13–14 June 2025"}]}],Uy=()=>{const e=Fe(s=>s.lang),{data:t,isPending:n}=Ci({queryKey:["exhibiton-time",e],queryFn:()=>yR(e),select:({data:s})=>s.data});return{data:t,isPending:n}},c1=({className:e})=>{const t=Fe(r=>r.lang),{data:n,isPending:s}=Uy();return y.jsx("section",{className:Q("bg-surface_container py-10 md:py-20",e),children:y.jsx(st,{children:s?y.jsx(hr,{}):y.jsxs(y.Fragment,{children:[y.jsx("h2",{className:"h2 mb-6",children:By[lt(t)].title}),y.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:n==null?void 0:n.map((r,i)=>x.createElement(cp,{bottomClassName:"!bg-white rounded-b-[2px]",...r,key:i,className:"w-full"}))})]})})})},Gf=[{title:"Место проведения",data:["Выставочный центр Торгово-промышленной палаты Туркменистана – это современная площадка для проведения международных выставок, конференций, форумов и деловых встреч","Центр оснащен передовыми техническими решениями, включая мультимедийное оборудование, системы звукоусиления и освещения, конференц-залы с синхронным переводом, а также удобные зоны для переговоров. Просторные выставочные павильоны обеспечивают комфортные условия для демонстрации продукции и услуг. "]},{title:"Venue",data:["The Exhibition Centre of the Chamber of Commerce and Industry of Turkmenistan is a modern venue designed for international exhibitions, conferences, forums, and business meetings.","The centre is equipped with cutting-edge technical solutions, including multimedia equipment, sound and lighting systems, conference rooms with simultaneous translation, and comfortable areas for negotiations. Spacious exhibition pavilions provide ideal conditions for showcasing products and services."]}],l1=({className:e})=>{const t=Fe(n=>n.lang);return y.jsx("section",{className:Q("gap-6 relative overflow-hidden",e),children:y.jsxs(st,{className:"md:py-20 py-10 grid-cols-1 lg:grid-cols-2 lg:gap-12 gap-0 grid",children:[y.jsxs("div",{className:"flex-[0_0_50%]",children:[y.jsx("h3",{className:"h2 mb-6",children:Gf[lt(t)].title}),y.jsx("div",{className:"text-lg flex flex-col gap-6 text-on_surface_v normal mb-10",children:Gf[lt(t)].data.map(n=>y.jsx("p",{children:n},n))})]}),y.jsx("div",{className:"h-full max-size-[600px] flex-[0_0_50%]",children:y.jsx("img",{src:"/about-place.jpg",alt:"",className:"size-full object-contain"})})]})})},$i=[{title:"Приглашение к участию",p:"Министерство текстильной промышленности Туркменистана приглашает бизнес-сообщество со всего мира присоединиться к этому уникальному событию, которое станет важным шагом к укреплению позиций Туркменистана в международной экономической арене.",button1:"Забронировать стенд",button2:"B2B | B2G встречи"},{title:"Invitation to Participate",p:"Ministry of Textile Industry of Turkmenistan invites the global business community to join this unique event, which will be a significant step toward strengthening Turkmenistan’s position on the global economic stage",button1:"Book a stand",button2:"B2B | B2G meetings"}],u1=({className:e})=>{const t=Fe(n=>n.lang);return y.jsxs("section",{className:Q("md:py-20 py-10 relative overflow-hidden",e),children:[y.jsx("img",{src:"/CTA.png",className:"absolute top-0 left-0 size-full -z-10 object-cover"}),y.jsxs(st,{children:[y.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:$i[lt(t)].title}),y.jsx("p",{className:"text-center md:text-lg text-sm text-primary_03 max-w-[828px] px-5 mx-auto mb-10",children:$i[lt(t)].p}),y.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[y.jsx(De,{to:"/stend-form",className:"w-full",children:y.jsx(dt,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:$i[lt(t)].button1})}),y.jsx(De,{to:"/B2B-B2GS",className:"w-full",children:y.jsx(dt,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:$i[lt(t)].button2})})]})]})]})},$y=e=>{const t=Fe(r=>r.lang),{data:n,isPending:s}=Ci({queryKey:["static-words",t,e],queryFn:()=>hR(t,e),select:({data:r})=>r.data});return{data:n,isPending:s}},d1=()=>{var f,p,m,h,g,v,b,w;const e=Fe(T=>T.lang),{t}=jo("about"),{data:n,isPending:s}=$y("2"),r=(f=n==null?void 0:n.find(T=>T.key==="about_1"))==null?void 0:f.text,i=(p=n==null?void 0:n.find(T=>T.key==="about_2"))==null?void 0:p.text,o=(m=n==null?void 0:n.find(T=>T.key==="about_3"))==null?void 0:m.text,a=(h=n==null?void 0:n.find(T=>T.key==="about_4"))==null?void 0:h.text,c=(g=n==null?void 0:n.find(T=>T.key==="about_5"))==null?void 0:g.list,l=(v=n==null?void 0:n.find(T=>T.key==="about_6"))==null?void 0:v.text,u=(b=n==null?void 0:n.find(T=>T.key==="about_7"))==null?void 0:b.text,d=(w=n==null?void 0:n.find(T=>T.key==="about_8"))==null?void 0:w.list;return s?y.jsx(hr,{}):y.jsxs(st,{className:"flex flex-col md:my-20 my-10 gap-16",children:[y.jsxs("div",{className:"flex flex-col gap-6",children:[y.jsx("h2",{className:"h2",children:r}),y.jsx("div",{className:"flex flex-col p gap-3",dangerouslySetInnerHTML:{__html:i??""}})]}),y.jsxs("div",{className:"flex flex-col gap-6",children:[y.jsx("h3",{className:"h2",children:o}),y.jsx("h4",{className:"p",children:a}),y.jsx("ol",{type:"1",className:"list-decimal pl-8 flex flex-col gap-3 ",children:c==null?void 0:c.map((T,S)=>y.jsx("li",{className:"p",children:e==="ru"?T.text_ru:T.text_en},S))})]}),y.jsxs("div",{className:"flex flex-col gap-6",children:[y.jsx("h2",{className:"h2",children:l}),y.jsx("h3",{className:"p",children:u}),y.jsx("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:d==null?void 0:d.map((T,S)=>y.jsxs("li",{children:[" ",e==="ru"?T.text_ru:T.text_en]},S))})]}),y.jsx(De,{className:"w-fit mx-auto",to:"/become-sponsor",children:y.jsx(dt,{children:t("main.button")})})]})};function YR(e){return Object.prototype.toString.call(e)==="[object Object]"}function Qf(e){return YR(e)||Array.isArray(e)}function JR(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ou(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;const r=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return r!==i?!1:n.every(o=>{const a=e[o],c=t[o];return typeof a=="function"?`${a}`==`${c}`:!Qf(a)||!Qf(c)?a===c:ou(a,c)})}function Xf(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function ek(e,t){if(e.length!==t.length)return!1;const n=Xf(e),s=Xf(t);return n.every((r,i)=>{const o=s[i];return ou(r,o)})}function au(e){return typeof e=="number"}function Vc(e){return typeof e=="string"}function Jo(e){return typeof e=="boolean"}function Yf(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ee(e){return Math.abs(e)}function cu(e){return Math.sign(e)}function Fr(e,t){return Ee(e-t)}function tk(e,t){if(e===0||t===0||Ee(e)<=Ee(t))return 0;const n=Fr(Ee(e),Ee(t));return Ee(n/e)}function nk(e){return Math.round(e*100)/100}function ai(e){return ci(e).map(Number)}function Mt(e){return e[Ai(e)]}function Ai(e){return Math.max(0,e.length-1)}function lu(e,t){return t===Ai(e)}function Jf(e,t=0){return Array.from(Array(e),(n,s)=>t+s)}function ci(e){return Object.keys(e)}function zy(e,t){return[e,t].reduce((n,s)=>(ci(s).forEach(r=>{const i=n[r],o=s[r],a=Yf(i)&&Yf(o);n[r]=a?zy(i,o):o}),n),{})}function Bc(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function sk(e,t){const n={start:s,center:r,end:i};function s(){return 0}function r(c){return i(c)/2}function i(c){return t-c}function o(c,l){return Vc(e)?n[e](c):e(t,c,l)}return{measure:o}}function li(){let e=[];function t(r,i,o,a={passive:!0}){let c;if("addEventListener"in r)r.addEventListener(i,o,a),c=()=>r.removeEventListener(i,o,a);else{const l=r;l.addListener(o),c=()=>l.removeListener(o)}return e.push(c),s}function n(){e=e.filter(r=>r())}const s={add:t,clear:n};return s}function rk(e,t,n,s){const r=li(),i=1e3/60;let o=null,a=0,c=0;function l(){r.add(e,"visibilitychange",()=>{e.hidden&&m()})}function u(){p(),r.clear()}function d(g){if(!c)return;o||(o=g,n(),n());const v=g-o;for(o=g,a+=v;a>=i;)n(),a-=i;const b=a/i;s(b),c&&(c=t.requestAnimationFrame(d))}function f(){c||(c=t.requestAnimationFrame(d))}function p(){t.cancelAnimationFrame(c),o=null,a=0,c=0}function m(){o=null,a=0}return{init:l,destroy:u,start:f,stop:p,update:n,render:s}}function ik(e,t){const n=t==="rtl",s=e==="y",r=s?"y":"x",i=s?"x":"y",o=!s&&n?-1:1,a=u(),c=d();function l(m){const{height:h,width:g}=m;return s?h:g}function u(){return s?"top":n?"right":"left"}function d(){return s?"bottom":n?"left":"right"}function f(m){return m*o}return{scroll:r,cross:i,startEdge:a,endEdge:c,measureSize:l,direction:f}}function xs(e=0,t=0){const n=Ee(e-t);function s(l){return lt}function i(l){return s(l)||r(l)}function o(l){return i(l)?s(l)?e:t:l}function a(l){return n?l-n*Math.ceil((l-t)/n):l}return{length:n,max:t,min:e,constrain:o,reachedAny:i,reachedMax:r,reachedMin:s,removeOffset:a}}function Wy(e,t,n){const{constrain:s}=xs(0,e),r=e+1;let i=o(t);function o(f){return n?Ee((r+f)%r):s(f)}function a(){return i}function c(f){return i=o(f),d}function l(f){return u().set(a()+f)}function u(){return Wy(e,a(),n)}const d={get:a,set:c,add:l,clone:u};return d}function ok(e,t,n,s,r,i,o,a,c,l,u,d,f,p,m,h,g,v,b){const{cross:w,direction:T}=e,S=["INPUT","SELECT","TEXTAREA"],E={passive:!1},R=li(),A=li(),N=xs(50,225).constrain(p.measure(20)),D={mouse:300,touch:400},L={mouse:500,touch:600},j=m?43:25;let $=!1,W=0,se=0,Y=!1,Z=!1,q=!1,re=!1;function me(K){if(!b)return;function de(Ue){(Jo(b)||b(K,Ue))&&Xe(Ue)}const Se=t;R.add(Se,"dragstart",Ue=>Ue.preventDefault(),E).add(Se,"touchmove",()=>{},E).add(Se,"touchend",()=>{}).add(Se,"touchstart",de).add(Se,"mousedown",de).add(Se,"touchcancel",ye).add(Se,"contextmenu",ye).add(Se,"click",ke,!0)}function ge(){R.clear(),A.clear()}function We(){const K=re?n:t;A.add(K,"touchmove",ue,E).add(K,"touchend",ye).add(K,"mousemove",ue,E).add(K,"mouseup",ye)}function ft(K){const de=K.nodeName||"";return S.includes(de)}function He(){return(m?L:D)[re?"mouse":"touch"]}function Et(K,de){const Se=d.add(cu(K)*-1),Ue=u.byDistance(K,!m).distance;return m||Ee(K)=2,!(de&&K.button!==0)&&(ft(K.target)||(Y=!0,i.pointerDown(K),l.useFriction(0).useDuration(0),r.set(o),We(),W=i.readPoint(K),se=i.readPoint(K,w),f.emit("pointerDown")))}function ue(K){if(!Bc(K,s)&&K.touches.length>=2)return ye(K);const Se=i.readPoint(K),Ue=i.readPoint(K,w),ht=Fr(Se,W),bt=Fr(Ue,se);if(!Z&&!re&&(!K.cancelable||(Z=ht>bt,!Z)))return ye(K);const _=i.pointerMove(K);ht>h&&(q=!0),l.useFriction(.3).useDuration(.75),a.start(),r.add(T(_)),K.preventDefault()}function ye(K){const Se=u.byDistance(0,!1).index!==d.get(),Ue=i.pointerUp(K)*He(),ht=Et(T(Ue),Se),bt=tk(Ue,ht),_=j-10*bt,P=v+bt/50;Z=!1,Y=!1,A.clear(),l.useDuration(_).useFriction(P),c.distance(ht,!m),re=!1,f.emit("pointerUp")}function ke(K){q&&(K.stopPropagation(),K.preventDefault(),q=!1)}function Le(){return Y}return{init:me,destroy:ge,pointerDown:Le}}function ak(e,t){let s,r;function i(d){return d.timeStamp}function o(d,f){const m=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(Bc(d,t)?d:d.touches[0])[m]}function a(d){return s=d,r=d,o(d)}function c(d){const f=o(d)-o(r),p=i(d)-i(s)>170;return r=d,p&&(s=d),f}function l(d){if(!s||!r)return 0;const f=o(r)-o(s),p=i(d)-i(s),m=i(d)-i(r)>170,h=f/p;return p&&!m&&Ee(h)>.1?h:0}return{pointerDown:a,pointerMove:c,pointerUp:l,readPoint:o}}function ck(){function e(n){const{offsetTop:s,offsetLeft:r,offsetWidth:i,offsetHeight:o}=n;return{top:s,right:r+i,bottom:s+o,left:r,width:i,height:o}}return{measure:e}}function lk(e){function t(s){return e*(s/100)}return{measure:t}}function uk(e,t,n,s,r,i,o){const a=[e].concat(s);let c,l,u=[],d=!1;function f(g){return r.measureSize(o.measure(g))}function p(g){if(!i)return;l=f(e),u=s.map(f);function v(b){for(const w of b){if(d)return;const T=w.target===e,S=s.indexOf(w.target),E=T?l:u[S],R=f(T?e:s[S]);if(Ee(R-E)>=.5){g.reInit(),t.emit("resize");break}}}c=new ResizeObserver(b=>{(Jo(i)||i(g,b))&&v(b)}),n.requestAnimationFrame(()=>{a.forEach(b=>c.observe(b))})}function m(){d=!0,c&&c.disconnect()}return{init:p,destroy:m}}function dk(e,t,n,s,r,i){let o=0,a=0,c=r,l=i,u=e.get(),d=0;function f(){const E=s.get()-e.get(),R=!c;let A=0;return R?(o=0,n.set(s),e.set(s),A=E):(n.set(e),o+=E/c,o*=l,u+=o,e.add(o),A=u-d),a=cu(A),d=u,S}function p(){const E=s.get()-t.get();return Ee(E)<.001}function m(){return c}function h(){return a}function g(){return o}function v(){return w(r)}function b(){return T(i)}function w(E){return c=E,S}function T(E){return l=E,S}const S={direction:h,duration:m,velocity:g,seek:f,settled:p,useBaseFriction:b,useBaseDuration:v,useFriction:T,useDuration:w};return S}function fk(e,t,n,s,r){const i=r.measure(10),o=r.measure(50),a=xs(.1,.99);let c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(p){if(!l())return;const m=e.reachedMin(t.get())?"min":"max",h=Ee(e[m]-t.get()),g=n.get()-t.get(),v=a.constrain(h/o);n.subtract(g*v),!p&&Ee(g){const{min:g,max:v}=i,b=i.constrain(m),w=!h,T=lu(n,h);return w?v:T||l(g,b)?g:l(v,b)?v:b}).map(m=>parseFloat(m.toFixed(3)))}function f(){if(t<=e+r)return[i.max];if(s==="keepSnaps")return o;const{min:m,max:h}=a;return o.slice(m,h)}return{snapsContained:c,scrollContainLimit:a}}function pk(e,t,n){const s=t[0],r=n?s-e:Mt(t);return{limit:xs(r,s)}}function mk(e,t,n,s){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:c}=xs(i,o);function l(f){return f===1?c(n.get()):f===-1?a(n.get()):!1}function u(f){if(!l(f))return;const p=e*(f*-1);s.forEach(m=>m.add(p))}return{loop:u}}function gk(e){const{max:t,length:n}=e;function s(i){const o=i-t;return n?o/-n:0}return{get:s}}function yk(e,t,n,s,r){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=r,c=d().map(t.measure),l=f(),u=p();function d(){return a(s).map(h=>Mt(h)[o]-h[0][i]).map(Ee)}function f(){return s.map(h=>n[i]-h[i]).map(h=>-Ee(h))}function p(){return a(l).map(h=>h[0]).map((h,g)=>h+c[g])}return{snaps:l,snapsAligned:u}}function vk(e,t,n,s,r,i){const{groupSlides:o}=r,{min:a,max:c}=s,l=u();function u(){const f=o(i),p=!e||t==="keepSnaps";return n.length===1?[i]:p?f:f.slice(a,c).map((m,h,g)=>{const v=!h,b=lu(g,h);if(v){const w=Mt(g[0])+1;return Jf(w)}if(b){const w=Ai(i)-Mt(g)[0]+1;return Jf(w,Mt(g)[0])}return m})}return{slideRegistry:l}}function xk(e,t,n,s,r){const{reachedAny:i,removeOffset:o,constrain:a}=s;function c(m){return m.concat().sort((h,g)=>Ee(h)-Ee(g))[0]}function l(m){const h=e?o(m):a(m),g=t.map((b,w)=>({diff:u(b-h,0),index:w})).sort((b,w)=>Ee(b.diff)-Ee(w.diff)),{index:v}=g[0];return{index:v,distance:h}}function u(m,h){const g=[m,m+n,m-n];if(!e)return m;if(!h)return c(g);const v=g.filter(b=>cu(b)===h);return v.length?c(v):Mt(g)-n}function d(m,h){const g=t[m]-r.get(),v=u(g,h);return{index:m,distance:v}}function f(m,h){const g=r.get()+m,{index:v,distance:b}=l(g),w=!e&&i(g);if(!h||w)return{index:v,distance:m};const T=t[v]-b,S=m+u(T,0);return{index:v,distance:S}}return{byDistance:f,byIndex:d,shortcut:u}}function bk(e,t,n,s,r,i,o){function a(d){const f=d.distance,p=d.index!==t.get();i.add(f),f&&(s.duration()?e.start():(e.update(),e.render(1),e.update())),p&&(n.set(t.get()),t.set(d.index),o.emit("select"))}function c(d,f){const p=r.byDistance(d,f);a(p)}function l(d,f){const p=t.clone().set(d),m=r.byIndex(p.get(),f);a(m)}return{distance:c,index:l}}function wk(e,t,n,s,r,i,o,a){const c={passive:!0,capture:!0};let l=0;function u(p){if(!a)return;function m(h){if(new Date().getTime()-l>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(w=>w.includes(h));au(b)&&(r.useDuration(0),s.index(b,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((h,g)=>{i.add(h,"focus",v=>{(Jo(a)||a(p,v))&&m(g)},c)})}function d(p){p.code==="Tab"&&(l=new Date().getTime())}return{init:u}}function Rr(e){let t=e;function n(){return t}function s(c){t=o(c)}function r(c){t+=o(c)}function i(c){t-=o(c)}function o(c){return au(c)?c:c.get()}return{get:n,set:s,add:r,subtract:i}}function Hy(e,t){const n=e.scroll==="x"?o:a,s=t.style;let r=null,i=!1;function o(f){return`translate3d(${f}px,0px,0px)`}function a(f){return`translate3d(0px,${f}px,0px)`}function c(f){if(i)return;const p=nk(e.direction(f));p!==r&&(s.transform=n(p),r=p)}function l(f){i=!f}function u(){i||(s.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:c,toggleActive:l}}function Sk(e,t,n,s,r,i,o,a,c){const u=ai(r),d=ai(r).reverse(),f=v().concat(b());function p(R,A){return R.reduce((N,D)=>N-r[D],A)}function m(R,A){return R.reduce((N,D)=>p(N,A)>0?N.concat([D]):N,[])}function h(R){return i.map((A,N)=>({start:A-s[N]+.5+R,end:A+t-.5+R}))}function g(R,A,N){const D=h(A);return R.map(L=>{const j=N?0:-n,$=N?n:0,W=N?"end":"start",se=D[L][W];return{index:L,loopPoint:se,slideLocation:Rr(-1),translate:Hy(e,c[L]),target:()=>a.get()>se?j:$}})}function v(){const R=o[0],A=m(d,R);return g(A,n,!1)}function b(){const R=t-o[0]-1,A=m(u,R);return g(A,-n,!0)}function w(){return f.every(({index:R})=>{const A=u.filter(N=>N!==R);return p(A,t)<=.1})}function T(){f.forEach(R=>{const{target:A,translate:N,slideLocation:D}=R,L=A();L!==D.get()&&(N.to(L),D.set(L))})}function S(){f.forEach(R=>R.translate.clear())}return{canLoop:w,clear:S,loop:T,loopPoints:f}}function _k(e,t,n){let s,r=!1;function i(c){if(!n)return;function l(u){for(const d of u)if(d.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}s=new MutationObserver(u=>{r||(Jo(n)||n(c,u))&&l(u)}),s.observe(e,{childList:!0})}function o(){s&&s.disconnect(),r=!0}return{init:i,destroy:o}}function Tk(e,t,n,s){const r={};let i=null,o=null,a,c=!1;function l(){a=new IntersectionObserver(m=>{c||(m.forEach(h=>{const g=t.indexOf(h.target);r[g]=h}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:s}),t.forEach(m=>a.observe(m))}function u(){a&&a.disconnect(),c=!0}function d(m){return ci(r).reduce((h,g)=>{const v=parseInt(g),{isIntersecting:b}=r[v];return(m&&b||!m&&!b)&&h.push(v),h},[])}function f(m=!0){if(m&&i)return i;if(!m&&o)return o;const h=d(m);return m&&(i=h),m||(o=h),h}return{init:l,destroy:u,get:f}}function Ck(e,t,n,s,r,i){const{measureSize:o,startEdge:a,endEdge:c}=e,l=n[0]&&r,u=m(),d=h(),f=n.map(o),p=g();function m(){if(!l)return 0;const b=n[0];return Ee(t[a]-b[a])}function h(){if(!l)return 0;const b=i.getComputedStyle(Mt(s));return parseFloat(b.getPropertyValue(`margin-${c}`))}function g(){return n.map((b,w,T)=>{const S=!w,E=lu(T,w);return S?f[w]+u:E?f[w]+d:T[w+1][a]-b[a]}).map(Ee)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function Ak(e,t,n,s,r,i,o,a,c){const{startEdge:l,endEdge:u,direction:d}=e,f=au(n);function p(v,b){return ai(v).filter(w=>w%b===0).map(w=>v.slice(w,w+b))}function m(v){return v.length?ai(v).reduce((b,w,T)=>{const S=Mt(b)||0,E=S===0,R=w===Ai(v),A=r[l]-i[S][l],N=r[l]-i[w][u],D=!s&&E?d(o):0,L=!s&&R?d(a):0,j=Ee(N-L-(A+D));return T&&j>t+c&&b.push(w),R&&b.push(v.length),b},[]).map((b,w,T)=>{const S=Math.max(T[w-1]||0);return v.slice(S,b)}):[]}function h(v){return f?p(v,n):m(v)}return{groupSlides:h}}function Ek(e,t,n,s,r,i,o){const{align:a,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:m,inViewThreshold:h,slidesToScroll:g,skipSnaps:v,containScroll:b,watchResize:w,watchSlides:T,watchDrag:S,watchFocus:E}=i,R=2,A=ck(),N=A.measure(t),D=n.map(A.measure),L=ik(c,l),j=L.measureSize(N),$=lk(j),W=sk(a,j),se=!d&&!!b,Y=d||!!b,{slideSizes:Z,slideSizesWithGaps:q,startGap:re,endGap:me}=Ck(L,N,D,n,Y,r),ge=Ak(L,j,g,d,N,D,re,me,R),{snaps:We,snapsAligned:ft}=yk(L,W,N,D,ge),He=-Mt(We)+Mt(q),{snapsContained:Et,scrollContainLimit:Xe}=hk(j,He,ft,b,R),ue=se?Et:ft,{limit:ye}=pk(He,ue,d),ke=Wy(Ai(ue),u,d),Le=ke.clone(),we=ai(n),K=({dragHandler:zt,scrollBody:Hn,scrollBounds:mr,options:{loop:qn}})=>{qn||mr.constrain(zt.pointerDown()),Hn.seek()},de=({scrollBody:zt,translate:Hn,location:mr,offsetLocation:qn,previousLocation:ea,scrollLooper:Pi,slideLooper:qy,dragHandler:Zy,animation:Ky,eventHandler:uu,scrollBounds:Gy,options:{loop:du}},fu)=>{const hu=zt.settled(),Qy=!Gy.shouldConstrain(),pu=du?hu:hu&&Qy;pu&&!Zy.pointerDown()&&(Ky.stop(),uu.emit("settle")),pu||uu.emit("scroll");const Xy=mr.get()*fu+ea.get()*(1-fu);qn.set(Xy),du&&(Pi.loop(zt.direction()),qy.loop()),Hn.to(qn.get())},Se=rk(s,r,()=>K(pr),zt=>de(pr,zt)),Ue=.68,ht=ue[ke.get()],bt=Rr(ht),_=Rr(ht),P=Rr(ht),O=Rr(ht),B=dk(bt,P,_,O,f,Ue),I=xk(d,ue,He,ye,O),F=bk(Se,ke,Le,B,I,O,o),X=gk(ye),ae=li(),Ie=Tk(t,n,o,h),{slideRegistry:Oe}=vk(se,b,ue,Xe,ge,we),$t=wk(e,n,Oe,F,B,ae,o,E),pr={ownerDocument:s,ownerWindow:r,eventHandler:o,containerRect:N,slideRects:D,animation:Se,axis:L,dragHandler:ok(L,e,s,r,O,ak(L,r),bt,Se,F,B,I,ke,o,$,p,m,v,Ue,S),eventStore:ae,percentOfView:$,index:ke,indexPrevious:Le,limit:ye,location:bt,offsetLocation:P,previousLocation:_,options:i,resizeHandler:uk(t,o,r,n,L,w,A),scrollBody:B,scrollBounds:fk(ye,P,O,B,$),scrollLooper:mk(He,ye,P,[bt,P,_,O]),scrollProgress:X,scrollSnapList:ue.map(X.get),scrollSnaps:ue,scrollTarget:I,scrollTo:F,slideLooper:Sk(L,j,He,Z,q,We,ue,P,n),slideFocus:$t,slidesHandler:_k(t,o,T),slidesInView:Ie,slideIndexes:we,slideRegistry:Oe,slidesToScroll:ge,target:O,translate:Hy(L,t)};return pr}function Pk(){let e={},t;function n(l){t=l}function s(l){return e[l]||[]}function r(l){return s(l).forEach(u=>u(t,l)),c}function i(l,u){return e[l]=s(l).concat([u]),c}function o(l,u){return e[l]=s(l).filter(d=>d!==u),c}function a(){e={}}const c={init:n,emit:r,off:o,on:i,clear:a};return c}const Rk={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function kk(e){function t(i,o){return zy(i,o||{})}function n(i){const o=i.breakpoints||{},a=ci(o).filter(c=>e.matchMedia(c).matches).map(c=>o[c]).reduce((c,l)=>t(c,l),{});return t(i,a)}function s(i){return i.map(o=>ci(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:s}}function Ok(e){let t=[];function n(i,o){return t=o.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(i,e)),o.reduce((a,c)=>Object.assign(a,{[c.name]:c}),{})}function s(){t=t.filter(i=>i.destroy())}return{init:n,destroy:s}}function Eo(e,t,n){const s=e.ownerDocument,r=s.defaultView,i=kk(r),o=Ok(i),a=li(),c=Pk(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:f,off:p,emit:m}=c,h=L;let g=!1,v,b=l(Rk,Eo.globalOptions),w=l(b),T=[],S,E,R;function A(){const{container:we,slides:K}=w;E=(Vc(we)?e.querySelector(we):we)||e.children[0];const Se=Vc(K)?E.querySelectorAll(K):K;R=[].slice.call(Se||E.children)}function N(we){const K=Ek(e,E,R,s,r,we,c);if(we.loop&&!K.slideLooper.canLoop()){const de=Object.assign({},we,{loop:!1});return N(de)}return K}function D(we,K){g||(b=l(b,we),w=u(b),T=K||T,A(),v=N(w),d([b,...T.map(({options:de})=>de)]).forEach(de=>a.add(de,"change",L)),w.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(Le),v.eventHandler.init(Le),v.resizeHandler.init(Le),v.slidesHandler.init(Le),v.options.loop&&v.slideLooper.loop(),E.offsetParent&&R.length&&v.dragHandler.init(Le),S=o.init(Le,T)))}function L(we,K){const de=ge();j(),D(l({startIndex:de},we),K),c.emit("reInit")}function j(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),o.destroy(),a.clear()}function $(){g||(g=!0,a.clear(),j(),c.emit("destroy"),c.clear())}function W(we,K,de){!w.active||g||(v.scrollBody.useBaseFriction().useDuration(K===!0?0:w.duration),v.scrollTo.index(we,de||0))}function se(we){const K=v.index.add(1).get();W(K,we,-1)}function Y(we){const K=v.index.add(-1).get();W(K,we,1)}function Z(){return v.index.add(1).get()!==ge()}function q(){return v.index.add(-1).get()!==ge()}function re(){return v.scrollSnapList}function me(){return v.scrollProgress.get(v.location.get())}function ge(){return v.index.get()}function We(){return v.indexPrevious.get()}function ft(){return v.slidesInView.get()}function He(){return v.slidesInView.get(!1)}function Et(){return S}function Xe(){return v}function ue(){return e}function ye(){return E}function ke(){return R}const Le={canScrollNext:Z,canScrollPrev:q,containerNode:ye,internalEngine:Xe,destroy:$,off:p,on:f,emit:m,plugins:Et,previousScrollSnap:We,reInit:h,rootNode:ue,scrollNext:se,scrollPrev:Y,scrollProgress:me,scrollSnapList:re,scrollTo:W,selectedScrollSnap:ge,slideNodes:ke,slidesInView:ft,slidesNotInView:He};return D(t,n),setTimeout(()=>c.emit("init"),0),Le}Eo.globalOptions=void 0;function Ei(e={},t=[]){const n=x.useRef(e),s=x.useRef(t),[r,i]=x.useState(),[o,a]=x.useState(),c=x.useCallback(()=>{r&&r.reInit(n.current,s.current)},[r]);return x.useEffect(()=>{ou(n.current,e)||(n.current=e,c())},[e,c]),x.useEffect(()=>{ek(s.current,t)||(s.current=t,c())},[t,c]),x.useEffect(()=>{if(JR()&&o){Eo.globalOptions=Ei.globalOptions;const l=Eo(o,n.current,s.current);return i(l),()=>l.destroy()}else i(void 0)},[o,i]),[a,r]}Ei.globalOptions=void 0;const Nk=[{lang:ct.RU,data:[{title:"План выставки",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf",blank:!0},{title:"Забронировать стенд",link:"/stend-form"},{title:"Список участников",link:""},{title:"B2B | B2G встречи",link:"/B2B-B2G"}]},{lang:ct.EN,data:[{title:"Floor Plan",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf",blank:!0},{title:"Book a stand",link:"/stend-form"},{title:"List of participants",link:"/"},{title:"B2B | B2G meetings",link:"/B2B-B2G"}]}],f1=()=>{const[e]=Ei(),t=Fe(o=>o.lang),{t:n}=jo("home"),s=oc("(min-width: 1024px)"),r=oc("(min-width: 768px)");function i(){return n(s?"banners.lg":r?"banners.md":"banners.sm")}return y.jsxs("section",{className:"flex flex-col gap-5",children:[y.jsx("div",{ref:e,className:"embla",children:y.jsx("div",{className:"embla__container",children:y.jsx("div",{className:"embla__slide",children:y.jsx("img",{src:i(),alt:"",className:"size-full object-cover lg:max-h-[600px] lg:min-h-[320px]"})})})}),y.jsx(st,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 items-center gap-6 text-2xl",children:Nk[lt(t)].data.map(({title:o,link:a,blank:c})=>y.jsx(De,{target:c?"_blank":"",to:a,className:"w-full",children:y.jsx(dt,{size:"lg",variant:"teritary",className:"w-full drop-shadow-sm shadow-md text-xl bg-teritary text-on_teritary hover:bg-teritary/90",children:o})},o))})]})},jk=()=>{const e=Fe(s=>s.lang),{data:t,isPending:n}=Ci({queryKey:["home-contacts",e],queryFn:()=>mR(e),select:({data:s})=>s.data});return{data:t,isPending:n}},h1=({className:e})=>{const t=Fe(i=>i.lang),{data:n,isPending:s}=Uy(),{data:r}=jk();return s?y.jsx(hr,{}):y.jsx("section",{className:Q("bg-surface_high pt-10 pb-20",e),children:y.jsxs(st,{children:[y.jsx("h2",{className:"h2 mb-6",children:By[lt(t)].title}),y.jsxs("div",{className:"flex flex-col gap-6",children:[y.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:n==null?void 0:n.map((i,o)=>x.createElement(cp,{...i,key:o,className:"w-full"}))}),y.jsx("div",{className:"md:p-10 pt-16 flex flex-col md:flex-row items-center gap-6",children:r==null?void 0:r.map((i,o)=>x.createElement(qb,{...i,key:o,className:"w-full"}))}),y.jsx(De,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:y.jsx(dt,{className:"w-full",children:t===ct.RU?"Забронируйте стенд":"Book a stand"})})]})]})})},Dk=[{h2:"Выставка-ярмарка «TurkmenTextile Expo-2025» в Ашхабаде",p:`Международная выставка-ярмарка, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. - Наша миссия – укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии. - - `,p_2:`Выставка станет платформой для изучения устойчивых практик, современных технологий и дизайнерских решений, вдохновляя на развитие индустрии. - «Turkmentextile Expo-2025» – это платформа, соединяющий традиции и инновации, производителей и потребителей, Туркменистан и весь мир!`,data:[{nums:"10,000 m²",text:"Выставочной площади"},{nums:"10000+",text:"Ожидаемых посетителей "},{nums:"100+",text:"Экспонентов из более чем 30 стран"},{nums:"80%",text:"Участников топ-менеджмента"}],button:"Подробнее о выставке"},{h2:"TurkmenTextile Expo-2025 in Ashgabat",p:`An international exhibition will unite global industry leaders, innovative manufacturers, and creative designers. - Our mission is to strengthen Turkmenistan's position as a key hub for the textile and fashion industry. - `,p_2:"The exhibition will serve as a platform to explore sustainable practices, modern technologies, and design solutions, inspiring the development of the industry.",data:[{nums:"10,000 m²",text:"Exhibition area"},{nums:"10000+",text:"Expected visitors "},{nums:"100+",text:"Exhibitors from over 30 countries"},{nums:"80%",text:"Participants are top-management"}],button:"More about the exhibition"}],Mk=()=>{const e=Fe(s=>s.lang),{data:t,isPending:n}=Ci({queryKey:["stats",e],queryFn:()=>pR(e),select:({data:s})=>s.data});return{data:t,isPending:n}},p1=()=>{var a,c;const[e]=Ei(),t=Fe(l=>l.lang),{data:n,isPending:s}=$y("1"),{data:r}=Mk(),i=(a=n==null?void 0:n.find(l=>l.key==="index_1"))==null?void 0:a.text,o=(c=n==null?void 0:n.find(l=>l.key==="index_2"))==null?void 0:c.text;return s?y.jsx(hr,{}):y.jsx("section",{children:y.jsxs(st,{className:"flex flex-col gap-6",children:[y.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 items-center",children:[y.jsxs("div",{className:"flex flex-col gap-6",children:[y.jsx("h2",{className:"h2 text-left",children:i}),y.jsx("div",{dangerouslySetInnerHTML:{__html:o||""},className:"md:text-base flex flex-col gap-6 text-sm normal text-left text-[#454545]"}),y.jsx(De,{to:"/about",className:"w-fit",children:y.jsx(dt,{variant:"outline",children:Dk[lt(t)].button})})]}),y.jsx("video",{src:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/video/Textile2025.mp4",muted:!0,controls:!0,autoPlay:!0,loop:!0,className:"w-full h-auto"})]}),y.jsx("div",{ref:e,className:"embla overflow-hidden",children:y.jsx("div",{className:"flex embla__container items-center gap-6",children:r==null?void 0:r.map(l=>y.jsx(Wb,{...l,className:"embla__slide flex-[0_0_288px]"},l.text))})})]})})},m1=()=>{const e=Fe(s=>s.lang),{data:t,isPending:n}=Vy();return n?y.jsx(hr,{}):y.jsx("section",{className:"",children:y.jsxs(st,{children:[y.jsx("h2",{className:"h2 mb-10 text-center",children:Cc[lt(e)].title}),y.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:t==null?void 0:t.map((s,r)=>y.jsx(ap,{...s},r))})]})})},Fk=[{data:[{img:"/offer-1.png",title:"Гостиницы, трансфер, визы",btnText:"Скачать путеводитель",text:"По вопросам размещения в гостиницах, визовой поддержки, транспортного и экскурсионного обслуживания Вы можете ознакомиться с путеводителем",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_ru.pdf"},{img:"/offer-2.png",title:"Ознакомьтесь с планом выставки TurkmenTextile Expo 2025",btnText:"Скачать план выставки",text:"Как выбрать лучшее место на выставке? Вы всегда должны помнить, что удачное расположение выставочной экспозиции повышает Ваши шансы привлечь внимание Ваших потенциальных клиентов",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]},{data:[{img:"/offer-2.png",title:"Hotels, transfer, visas;",btnText:"Download Travel Guide",text:"For inquiries regarding hotel accommodations, visa support, transportation, and tour services, please refer to the travel guide;",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_eng.pdf"},{img:"/offer-2.png",title:"Explore “TurkmenTextile Expo-2025” plan;",btnText:"Download exhibition plan.",text:"How to choose the best location at the exhibition? A prime spot increases your chances to attract potential clients;",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]}],g1=()=>{const[e,t]=Ei({align:"start"}),[n,s]=x.useState(0),r=Fe(o=>o.lang),i=x.useCallback(o=>{t&&t.scrollTo(o)},[t]);return x.useEffect(()=>{if(!t)return;const o=()=>{s(t.selectedScrollSnap())};return t.on("select",o),()=>{t.off("select",o)}},[t]),y.jsx("section",{className:"bg-surface_high py-10 relative overflow-hidden",children:y.jsx(st,{children:y.jsxs("div",{ref:e,className:"embla ",children:[y.jsx("div",{className:"mb-2 flex gap-6 embla__container",children:Fk[lt(r)].data.map(o=>x.createElement(Hb,{...o,key:o.title,className:"embla__slide flex-[0_0_300px] sm:flex-[0_0_600px]"}))}),y.jsx(WT,{className:"xl:hidden",scrollTo:i,active:n,slides:2})]})})})},Lk=()=>{const{t:e}=jo("nav"),t=Fe(i=>i.lang),n=_c(i=>i.sheet),s=_c(i=>i.setSheet),r=e("navigation",{returnObjects:!0});return y.jsxs(wb,{onOpenChange:()=>s(!n),open:n,children:[y.jsx(Sb,{children:y.jsxs("div",{className:"flex flex-col gap-1 lg:hidden items-center justify-center size-10",children:[y.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),y.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),y.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"})]})}),y.jsxs(tp,{className:"overflow-y-auto",children:[y.jsx(_b,{}),y.jsxs(np,{className:"mt-16 flex flex-col gap-2",children:[y.jsx(De,{to:t===ct.RU?"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf":"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_eng.pdf",children:y.jsx(dt,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:t==="ru"?"Официальная поддержка":"Official Support"})}),y.jsx(De,{to:"/become-sponsor",children:y.jsx(dt,{variant:"secondary",size:"sm",className:"bg-primary w-full text-white hover:bg-primary/90",children:t==="ru"?"Стать спонсором":"Become a sponsor"})})]}),y.jsx("hr",{className:"border-slate-500/20 my-8"}),y.jsx("div",{className:"flex flex-col gap-6",children:r.map(i=>i.drop?y.jsx(Tc,{className:"w-full",triggerClassName:"justify-between",color:"black",dropDownContent:i.dropDownContent,title:i.title},i.title):y.jsx(De,{target:i.blank??"",className:"py-2",to:i.link||"",onClick:()=>s(!1),children:i.title},i.title))})]})]})},y1=()=>{const e=Fe(s=>s.lang),{t}=jo("nav"),n=t("navigation",{returnObjects:!0});return y.jsxs("header",{children:[y.jsx("div",{className:"h-12 hidden lg:flex bg-sur text-surface-bg items-center overflow-hidden",children:y.jsxs(st,{className:"flex items-center justify-between",children:[y.jsxs("div",{className:"gap-8 flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(Lx,{}),y.jsx("h4",{className:"text-sm",children:e==="ru"?"Ашхабад, Туркменистан":"Ashgabat, Turkmenistan"})]}),y.jsx("nav",{className:"flex items-center gap-6",children:n.slice(0,3).map(s=>s.drop?y.jsx(Tc,{color:"black",dropDownContent:s.dropDownContent,title:s.title},s.title):y.jsx(De,{target:s.blank?"_blank":"",className:"py-2",to:s.link||"",children:s.title},s.title))})]}),y.jsxs("div",{className:"flex items-center gap-6",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(Vx,{size:16,strokeWidth:"3px"}),y.jsx("h4",{className:"text-sm",children:"+99371871812"})]}),y.jsx(bf,{className:"!text-on_surface"})]})]})}),y.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:y.jsxs(st,{className:"flex items-center justify-between ",children:[y.jsxs("div",{className:"flex items-center gap-8",children:[y.jsx(De,{to:"/",children:y.jsx(op,{})}),y.jsx("nav",{className:"lg:flex hidden items-center gap-6 text-white",children:n.slice(3,6).map(s=>s.drop?y.jsx(Tc,{dropDownContent:s.dropDownContent,title:s.title,color:"white"},s.title):y.jsx(De,{className:"py-2",to:s.link||"",children:s.title},s.title))})]}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx(bf,{className:"lg:hidden",light:!0}),y.jsx(Lk,{})]}),y.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[y.jsx(De,{to:e===ct.RU?"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf":"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_eng.pdf",target:"_blank",children:y.jsx(dt,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90",children:e==="ru"?"Официальная поддержка":"Official Support"})}),y.jsx(De,{to:"/become-sponsor",children:y.jsx(dt,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90",children:e==="ru"?"Стать спонсором":"Become a sponsor"})})]})]})})]})},v1=()=>{const e=Fe(t=>t.lang);return y.jsxs("footer",{children:[y.jsx(Ey,{}),y.jsx("div",{className:"py-5 bg-primary",children:y.jsxs(st,{className:"flex flex-col gap-6",children:[y.jsxs("div",{className:"flex flex-col md:flex-row gap-6 md:items-end md:justify-between items-center",children:[y.jsx(op,{}),y.jsxs("div",{className:"flex items-center gap-6",children:[y.jsx(De,{target:"_blank",to:"https://www.facebook.com/profile.php?id=61567254728028",children:y.jsx(jx,{className:"text-white"})}),y.jsx(De,{target:"_blank",to:"https://www.instagram.com/turkmenexpo_tm?igsh=bnhkOWpmNWcwcHBq",children:y.jsx("img",{src:"/inst.svg"})}),y.jsx(De,{target:"_blank",to:"https://www.linkedin.com/company/turkmen-expo",children:y.jsx("img",{src:"/in.svg"})}),y.jsx(De,{target:"_blank",to:"https://x.com/turkmenexpo?t=D-XSa8d0AC8GAv5peAzteA&s=09",children:y.jsx("img",{src:"/x.svg"})})]})]}),y.jsx("hr",{className:"border-white/50"}),y.jsx("h5",{className:"text-base text-center normal text-white",children:e===ct.RU?"©2025 Все права защищены":"All rights reserved"})]})})]})},st=({className:e,children:t})=>y.jsx("div",{className:Q("w-full mx-auto max-w-[1240px] px-4",e),children:t}),x1=({title:e})=>y.jsxs("div",{className:"relative flex items-center h-[216px] w-full justify-center",children:[y.jsx("img",{src:"/cover.png",className:"-z-10 absolute size-full object-cover top-0 left-0"}),y.jsx("h1",{className:"text-on_primary md:text-5xl text-3xl",children:e})]});export{ir as $,d1 as A,ig as B,st as C,Qk as D,dt as E,v1 as F,zk as G,y1 as H,VT as I,Gk as J,Hk as K,ct as L,Xk as M,PA as N,Ve as O,Kk as P,i1 as Q,e1 as R,Jk as S,Uc as T,Vt as U,rr as V,dh as W,jn as X,rt as Y,mt as Z,zi as _,o1 as a,WC as a0,Zh as a1,t1 as a2,hr as a3,r1 as a4,$k as a5,s1 as a6,Ci as b,Ei as c,jo as d,Q as e,f1 as f,n1 as g,p1 as h,Wk as i,y as j,g1 as k,m1 as l,h1 as m,x1 as n,a1 as o,c1 as p,l1 as q,u1 as r,Uo as s,Gi as t,Fe as u,lt as v,$T as w,sg as x,rg as y,Tf as z}; diff --git a/dist/assets/ui-library-DpZprY9x.js b/dist/assets/ui-library-DpZprY9x.js new file mode 100644 index 0000000..62f6b74 --- /dev/null +++ b/dist/assets/ui-library-DpZprY9x.js @@ -0,0 +1,154 @@ +var gu=e=>{throw TypeError(e)};var na=(e,t,n)=>t.has(e)||gu("Cannot "+n);var T=(e,t,n)=>(na(e,t,"read from private field"),n?n.call(e):t.get(e)),te=(e,t,n)=>t.has(e)?gu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),H=(e,t,n,s)=>(na(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),fe=(e,t,n)=>(na(e,t,"access private method"),n);var ki=(e,t,n,s)=>({set _(r){H(e,t,r,n)},get _(){return T(e,t,s)}});import{r as Jy,a as x,R as ev,b as uh,c as tv,L as Me,d as Ni,e as ve}from"./react-vendor-Y0eyvj1J.js";var sa={exports:{}},vr={};/** + * @license React + * react-jsx-runtime.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 yu;function nv(){if(yu)return vr;yu=1;var e=Jy(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,c,l){var u,d={},f=null,g=null;l!==void 0&&(f=""+l),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(g=c.ref);for(u in c)s.call(c,u)&&!i.hasOwnProperty(u)&&(d[u]=c[u]);if(a&&a.defaultProps)for(u in c=a.defaultProps,c)d[u]===void 0&&(d[u]=c[u]);return{$$typeof:t,type:a,key:f,ref:g,props:d,_owner:r.current}}return vr.Fragment=n,vr.jsx=o,vr.jsxs=o,vr}var vu;function sv(){return vu||(vu=1,sa.exports=nv()),sa.exports}var p=sv();function gt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function xu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dh(...e){return t=>{let n=!1;const s=e.map(r=>{const i=xu(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r{const{children:o,...a}=i,c=x.useMemo(()=>a,Object.values(a));return p.jsx(n.Provider,{value:c,children:o})};s.displayName=e+"Provider";function r(i){const o=x.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[s,r]}function Uc(e,t=[]){let n=[];function s(i,o){const a=x.createContext(o),c=n.length;n=[...n,o];const l=d=>{var v;const{scope:f,children:g,...m}=d,h=((v=f==null?void 0:f[e])==null?void 0:v[c])||a,y=x.useMemo(()=>m,Object.values(m));return p.jsx(h.Provider,{value:y,children:g})};l.displayName=i+"Provider";function u(d,f){var h;const g=((h=f==null?void 0:f[e])==null?void 0:h[c])||a,m=x.useContext(g);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const r=()=>{const i=n.map(o=>x.createContext(o));return function(a){const c=(a==null?void 0:a[e])||i;return x.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[s,iv(r,...t)]}function iv(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const s=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=s.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var ds=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},ov=ev.useId||(()=>{}),av=0;function Wi(e){const[t,n]=x.useState(ov());return ds(()=>{n(s=>s??String(av++))},[e]),t?`radix-${t}`:""}function jn(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function fh({prop:e,defaultProp:t,onChange:n=()=>{}}){const[s,r]=cv({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:s,a=jn(n),c=x.useCallback(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else r(l)},[i,e,r,a]);return[o,c]}function cv({defaultProp:e,onChange:t}){const n=x.useState(e),[s]=n,r=x.useRef(s),i=jn(t);return x.useEffect(()=>{r.current!==s&&(i(s),r.current=s)},[s,r,i]),n}var or=x.forwardRef((e,t)=>{const{children:n,...s}=e,r=x.Children.toArray(n),i=r.find(uv);if(i){const o=i.props.children,a=r.map(c=>c===i?x.Children.count(o)>1?x.Children.only(null):x.isValidElement(o)?o.props.children:null:c);return p.jsx(La,{...s,ref:t,children:x.isValidElement(o)?x.cloneElement(o,void 0,a):null})}return p.jsx(La,{...s,ref:t,children:n})});or.displayName="Slot";var La=x.forwardRef((e,t)=>{const{children:n,...s}=e;if(x.isValidElement(n)){const r=fv(n);return x.cloneElement(n,{...dv(s,n.props),ref:t?dh(t,r):r})}return x.Children.count(n)>1?x.Children.only(null):null});La.displayName="SlotClone";var lv=({children:e})=>p.jsx(p.Fragment,{children:e});function uv(e){return x.isValidElement(e)&&e.type===lv}function dv(e,t){const n={...t};for(const s in t){const r=e[s],i=t[s];/^on[A-Z]/.test(s)?r&&i?n[s]=(...a)=>{i(...a),r(...a)}:r&&(n[s]=r):s==="style"?n[s]={...r,...i}:s==="className"&&(n[s]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function fv(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var hv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],rt=hv.reduce((e,t)=>{const n=x.forwardRef((s,r)=>{const{asChild:i,...o}=s,a=i?or:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(a,{...o,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function pv(e,t){e&&uh.flushSync(()=>e.dispatchEvent(t))}function mv(e,t=globalThis==null?void 0:globalThis.document){const n=jn(e);x.useEffect(()=>{const s=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[n,t])}var gv="DismissableLayer",Ia="dismissableLayer.update",yv="dismissableLayer.pointerDownOutside",vv="dismissableLayer.focusOutside",bu,hh=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$c=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=e,l=x.useContext(hh),[u,d]=x.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=x.useState({}),m=Bt(t,R=>d(R)),h=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(y),b=u?h.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,C=b>=v,S=wv(R=>{const E=R.target,O=[...l.branches].some(D=>D.contains(E));!C||O||(r==null||r(R),o==null||o(R),R.defaultPrevented||a==null||a())},f),A=Sv(R=>{const E=R.target;[...l.branches].some(D=>D.contains(E))||(i==null||i(R),o==null||o(R),R.defaultPrevented||a==null||a())},f);return mv(R=>{b===l.layers.size-1&&(s==null||s(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},f),x.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(bu=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),wu(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=bu)}},[u,f,n,l]),x.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),wu())},[u,l]),x.useEffect(()=>{const R=()=>g({});return document.addEventListener(Ia,R),()=>document.removeEventListener(Ia,R)},[]),p.jsx(rt.div,{...c,ref:m,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:gt(e.onFocusCapture,A.onFocusCapture),onBlurCapture:gt(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:gt(e.onPointerDownCapture,S.onPointerDownCapture)})});$c.displayName=gv;var xv="DismissableLayerBranch",bv=x.forwardRef((e,t)=>{const n=x.useContext(hh),s=x.useRef(null),r=Bt(t,s);return x.useEffect(()=>{const i=s.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(rt.div,{...e,ref:r})});bv.displayName=xv;function wv(e,t=globalThis==null?void 0:globalThis.document){const n=jn(e),s=x.useRef(!1),r=x.useRef(()=>{});return x.useEffect(()=>{const i=a=>{if(a.target&&!s.current){let c=function(){ph(yv,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);s.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function Sv(e,t=globalThis==null?void 0:globalThis.document){const n=jn(e),s=x.useRef(!1);return x.useEffect(()=>{const r=i=>{i.target&&!s.current&&ph(vv,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function wu(){const e=new CustomEvent(Ia);document.dispatchEvent(e)}function ph(e,t,n,{discrete:s}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),s?pv(r,i):r.dispatchEvent(i)}var ra="focusScope.autoFocusOnMount",ia="focusScope.autoFocusOnUnmount",Su={bubbles:!1,cancelable:!0},_v="FocusScope",zc=x.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...o}=e,[a,c]=x.useState(null),l=jn(r),u=jn(i),d=x.useRef(null),f=Bt(t,h=>c(h)),g=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(s){let h=function(w){if(g.paused||!a)return;const C=w.target;a.contains(C)?d.current=C:Sn(d.current,{select:!0})},y=function(w){if(g.paused||!a)return;const C=w.relatedTarget;C!==null&&(a.contains(C)||Sn(d.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Sn(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",y);const b=new MutationObserver(v);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",y),b.disconnect()}}},[s,a,g.paused]),x.useEffect(()=>{if(a){Cu.add(g);const h=document.activeElement;if(!a.contains(h)){const v=new CustomEvent(ra,Su);a.addEventListener(ra,l),a.dispatchEvent(v),v.defaultPrevented||(Cv(Rv(mh(a)),{select:!0}),document.activeElement===h&&Sn(a))}return()=>{a.removeEventListener(ra,l),setTimeout(()=>{const v=new CustomEvent(ia,Su);a.addEventListener(ia,u),a.dispatchEvent(v),v.defaultPrevented||Sn(h??document.body,{select:!0}),a.removeEventListener(ia,u),Cu.remove(g)},0)}}},[a,l,u,g]);const m=x.useCallback(h=>{if(!n&&!s||g.paused)return;const y=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,v=document.activeElement;if(y&&v){const b=h.currentTarget,[w,C]=Tv(b);w&&C?!h.shiftKey&&v===C?(h.preventDefault(),n&&Sn(w,{select:!0})):h.shiftKey&&v===w&&(h.preventDefault(),n&&Sn(C,{select:!0})):v===b&&h.preventDefault()}},[n,s,g.paused]);return p.jsx(rt.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});zc.displayName=_v;function Cv(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(Sn(s,{select:t}),document.activeElement!==n)return}function Tv(e){const t=mh(e),n=_u(t,e),s=_u(t.reverse(),e);return[n,s]}function mh(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const r=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||r?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function _u(e,t){for(const n of e)if(!Ev(n,{upTo:t}))return n}function Ev(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Av(e){return e instanceof HTMLInputElement&&"select"in e}function Sn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Av(e)&&t&&e.select()}}var Cu=Pv();function Pv(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Tu(e,t),e.unshift(t)},remove(t){var n;e=Tu(e,t),(n=e[0])==null||n.resume()}}}function Tu(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function Rv(e){return e.filter(t=>t.tagName!=="A")}var kv="Portal",Wc=x.forwardRef((e,t)=>{var a;const{container:n,...s}=e,[r,i]=x.useState(!1);ds(()=>i(!0),[]);const o=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?tv.createPortal(p.jsx(rt.div,{...s,ref:t}),o):null});Wc.displayName=kv;function Nv(e,t){return x.useReducer((n,s)=>t[n][s]??n,e)}var ar=e=>{const{present:t,children:n}=e,s=Ov(t),r=typeof n=="function"?n({present:s.isPresent}):x.Children.only(n),i=Bt(s.ref,jv(r));return typeof n=="function"||s.isPresent?x.cloneElement(r,{ref:i}):null};ar.displayName="Presence";function Ov(e){const[t,n]=x.useState(),s=x.useRef({}),r=x.useRef(e),i=x.useRef("none"),o=e?"mounted":"unmounted",[a,c]=Nv(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const l=Oi(s.current);i.current=a==="mounted"?l:"none"},[a]),ds(()=>{const l=s.current,u=r.current;if(u!==e){const f=i.current,g=Oi(l);e?c("MOUNT"):g==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&f!==g?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),ds(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=g=>{const h=Oi(s.current).includes(g.animationName);if(g.target===t&&h&&(c("ANIMATION_END"),!r.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},f=g=>{g.target===t&&(i.current=Oi(s.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(l=>{l&&(s.current=getComputedStyle(l)),n(l)},[])}}function Oi(e){return(e==null?void 0:e.animationName)||"none"}function jv(e){var s,r;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var oa=0;function gh(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Eu()),document.body.insertAdjacentElement("beforeend",e[1]??Eu()),oa++,()=>{oa===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),oa--}},[])}function Eu(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Qt=function(){return Qt=Object.assign||function(t){for(var n,s=1,r=arguments.length;s"u")return Qv;var t=Xv(e),n=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-n+t[2]-t[0])}},Jv=bh(),Ds="data-scroll-locked",ex=function(e,t,n,s){var r=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` + .`.concat(Mv,` { + overflow: hidden `).concat(s,`; + padding-right: `).concat(a,"px ").concat(s,`; + } + body[`).concat(Ds,`] { + overflow: hidden `).concat(s,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(s,";"),n==="margin"&&` + padding-left: `.concat(r,`px; + padding-top: `).concat(i,`px; + padding-right: `).concat(o,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(a,"px ").concat(s,`; + `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(s,";")].filter(Boolean).join(""),` + } + + .`).concat(Hi,` { + right: `).concat(a,"px ").concat(s,`; + } + + .`).concat(qi,` { + margin-right: `).concat(a,"px ").concat(s,`; + } + + .`).concat(Hi," .").concat(Hi,` { + right: 0 `).concat(s,`; + } + + .`).concat(qi," .").concat(qi,` { + margin-right: 0 `).concat(s,`; + } + + body[`).concat(Ds,`] { + `).concat(Fv,": ").concat(a,`px; + } +`)},Pu=function(){var e=parseInt(document.body.getAttribute(Ds)||"0",10);return isFinite(e)?e:0},tx=function(){x.useEffect(function(){return document.body.setAttribute(Ds,(Pu()+1).toString()),function(){var e=Pu()-1;e<=0?document.body.removeAttribute(Ds):document.body.setAttribute(Ds,e.toString())}},[])},nx=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,r=s===void 0?"margin":s;tx();var i=x.useMemo(function(){return Yv(r)},[r]);return x.createElement(Jv,{styles:ex(i,!t,r,n?"":"!important")})},Va=!1;if(typeof window<"u")try{var ji=Object.defineProperty({},"passive",{get:function(){return Va=!0,!0}});window.addEventListener("test",ji,ji),window.removeEventListener("test",ji,ji)}catch{Va=!1}var _s=Va?{passive:!1}:!1,sx=function(e){return e.tagName==="TEXTAREA"},wh=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!sx(e)&&n[t]==="visible")},rx=function(e){return wh(e,"overflowY")},ix=function(e){return wh(e,"overflowX")},Ru=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var r=Sh(e,s);if(r){var i=_h(e,s),o=i[1],a=i[2];if(o>a)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},ox=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},ax=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},Sh=function(e,t){return e==="v"?rx(t):ix(t)},_h=function(e,t){return e==="v"?ox(t):ax(t)},cx=function(e,t){return e==="h"&&t==="rtl"?-1:1},lx=function(e,t,n,s,r){var i=cx(e,window.getComputedStyle(t).direction),o=i*s,a=n.target,c=t.contains(a),l=!1,u=o>0,d=0,f=0;do{var g=_h(e,a),m=g[0],h=g[1],y=g[2],v=h-y-i*m;(m||v)&&Sh(e,a)&&(d+=v,f+=m),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(l=!0),l},Di=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ku=function(e){return[e.deltaX,e.deltaY]},Nu=function(e){return e&&"current"in e?e.current:e},ux=function(e,t){return e[0]===t[0]&&e[1]===t[1]},dx=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},fx=0,Cs=[];function hx(e){var t=x.useRef([]),n=x.useRef([0,0]),s=x.useRef(),r=x.useState(fx++)[0],i=x.useState(bh)[0],o=x.useRef(e);x.useEffect(function(){o.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var h=Dv([e.lockRef.current],(e.shards||[]).map(Nu),!0).filter(Boolean);return h.forEach(function(y){return y.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),h.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=x.useCallback(function(h,y){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!o.current.allowPinchZoom;var v=Di(h),b=n.current,w="deltaX"in h?h.deltaX:b[0]-v[0],C="deltaY"in h?h.deltaY:b[1]-v[1],S,A=h.target,R=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in h&&R==="h"&&A.type==="range")return!1;var E=Ru(R,A);if(!E)return!0;if(E?S=R:(S=R==="v"?"h":"v",E=Ru(R,A)),!E)return!1;if(!s.current&&"changedTouches"in h&&(w||C)&&(s.current=S),!S)return!0;var O=s.current||S;return lx(O,y,h,O==="h"?w:C)},[]),c=x.useCallback(function(h){var y=h;if(!(!Cs.length||Cs[Cs.length-1]!==i)){var v="deltaY"in y?ku(y):Di(y),b=t.current.filter(function(S){return S.name===y.type&&(S.target===y.target||y.target===S.shadowParent)&&ux(S.delta,v)})[0];if(b&&b.should){y.cancelable&&y.preventDefault();return}if(!b){var w=(o.current.shards||[]).map(Nu).filter(Boolean).filter(function(S){return S.contains(y.target)}),C=w.length>0?a(y,w[0]):!o.current.noIsolation;C&&y.cancelable&&y.preventDefault()}}},[]),l=x.useCallback(function(h,y,v,b){var w={name:h,delta:y,target:v,should:b,shadowParent:px(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),u=x.useCallback(function(h){n.current=Di(h),s.current=void 0},[]),d=x.useCallback(function(h){l(h.type,ku(h),h.target,a(h,e.lockRef.current))},[]),f=x.useCallback(function(h){l(h.type,Di(h),h.target,a(h,e.lockRef.current))},[]);x.useEffect(function(){return Cs.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,_s),document.addEventListener("touchmove",c,_s),document.addEventListener("touchstart",u,_s),function(){Cs=Cs.filter(function(h){return h!==i}),document.removeEventListener("wheel",c,_s),document.removeEventListener("touchmove",c,_s),document.removeEventListener("touchstart",u,_s)}},[]);var g=e.removeScrollBar,m=e.inert;return x.createElement(x.Fragment,null,m?x.createElement(i,{styles:dx(r)}):null,g?x.createElement(nx,{gapMode:e.gapMode}):null)}function px(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const mx=zv(xh,hx);var Hc=x.forwardRef(function(e,t){return x.createElement(Ro,Qt({},e,{ref:t,sideCar:mx}))});Hc.classNames=Ro.classNames;var gx=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ts=new WeakMap,Mi=new WeakMap,Fi={},ua=0,Ch=function(e){return e&&(e.host||Ch(e.parentNode))},yx=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=Ch(n);return s&&e.contains(s)?s:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},vx=function(e,t,n,s){var r=yx(t,Array.isArray(e)?e:[e]);Fi[n]||(Fi[n]=new WeakMap);var i=Fi[n],o=[],a=new Set,c=new Set(r),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};r.forEach(l);var u=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var g=f.getAttribute(s),m=g!==null&&g!=="false",h=(Ts.get(f)||0)+1,y=(i.get(f)||0)+1;Ts.set(f,h),i.set(f,y),o.push(f),h===1&&m&&Mi.set(f,!0),y===1&&f.setAttribute(n,"true"),m||f.setAttribute(s,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),a.clear(),ua++,function(){o.forEach(function(d){var f=Ts.get(d)-1,g=i.get(d)-1;Ts.set(d,f),i.set(d,g),f||(Mi.has(d)||d.removeAttribute(s),Mi.delete(d)),g||d.removeAttribute(n)}),ua--,ua||(Ts=new WeakMap,Ts=new WeakMap,Mi=new WeakMap,Fi={})}},Th=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),r=gx(e);return r?(s.push.apply(s,Array.from(r.querySelectorAll("[aria-live]"))),vx(s,r,n,"aria-hidden")):function(){return null}},qc="Dialog",[Eh,Yk]=Uc(qc),[xx,Ut]=Eh(qc),Ah=e=>{const{__scopeDialog:t,children:n,open:s,defaultOpen:r,onOpenChange:i,modal:o=!0}=e,a=x.useRef(null),c=x.useRef(null),[l=!1,u]=fh({prop:s,defaultProp:r,onChange:i});return p.jsx(xx,{scope:t,triggerRef:a,contentRef:c,contentId:Wi(),titleId:Wi(),descriptionId:Wi(),open:l,onOpenChange:u,onOpenToggle:x.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};Ah.displayName=qc;var Ph="DialogTrigger",Rh=x.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ut(Ph,n),i=Bt(t,r.triggerRef);return p.jsx(rt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Gc(r.open),...s,ref:i,onClick:gt(e.onClick,r.onOpenToggle)})});Rh.displayName=Ph;var Zc="DialogPortal",[bx,kh]=Eh(Zc,{forceMount:void 0}),Nh=e=>{const{__scopeDialog:t,forceMount:n,children:s,container:r}=e,i=Ut(Zc,t);return p.jsx(bx,{scope:t,forceMount:n,children:x.Children.map(s,o=>p.jsx(ar,{present:n||i.open,children:p.jsx(Wc,{asChild:!0,container:r,children:o})}))})};Nh.displayName=Zc;var to="DialogOverlay",Oh=x.forwardRef((e,t)=>{const n=kh(to,e.__scopeDialog),{forceMount:s=n.forceMount,...r}=e,i=Ut(to,e.__scopeDialog);return i.modal?p.jsx(ar,{present:s||i.open,children:p.jsx(wx,{...r,ref:t})}):null});Oh.displayName=to;var wx=x.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ut(to,n);return p.jsx(Hc,{as:or,allowPinchZoom:!0,shards:[r.contentRef],children:p.jsx(rt.div,{"data-state":Gc(r.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),fs="DialogContent",jh=x.forwardRef((e,t)=>{const n=kh(fs,e.__scopeDialog),{forceMount:s=n.forceMount,...r}=e,i=Ut(fs,e.__scopeDialog);return p.jsx(ar,{present:s||i.open,children:i.modal?p.jsx(Sx,{...r,ref:t}):p.jsx(_x,{...r,ref:t})})});jh.displayName=fs;var Sx=x.forwardRef((e,t)=>{const n=Ut(fs,e.__scopeDialog),s=x.useRef(null),r=Bt(t,n.contentRef,s);return x.useEffect(()=>{const i=s.current;if(i)return Th(i)},[]),p.jsx(Dh,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:gt(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:gt(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:gt(e.onFocusOutside,i=>i.preventDefault())})}),_x=x.forwardRef((e,t)=>{const n=Ut(fs,e.__scopeDialog),s=x.useRef(!1),r=x.useRef(!1);return p.jsx(Dh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(s.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),s.current=!1,r.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),Dh=x.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:r,onCloseAutoFocus:i,...o}=e,a=Ut(fs,n),c=x.useRef(null),l=Bt(t,c);return gh(),p.jsxs(p.Fragment,{children:[p.jsx(zc,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:i,children:p.jsx($c,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Gc(a.open),...o,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(Cx,{titleId:a.titleId}),p.jsx(Ex,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Kc="DialogTitle",Mh=x.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ut(Kc,n);return p.jsx(rt.h2,{id:r.titleId,...s,ref:t})});Mh.displayName=Kc;var Fh="DialogDescription",Lh=x.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ut(Fh,n);return p.jsx(rt.p,{id:r.descriptionId,...s,ref:t})});Lh.displayName=Fh;var Ih="DialogClose",Vh=x.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ut(Ih,n);return p.jsx(rt.button,{type:"button",...s,ref:t,onClick:gt(e.onClick,()=>r.onOpenChange(!1))})});Vh.displayName=Ih;function Gc(e){return e?"open":"closed"}var Bh="DialogTitleWarning",[Jk,Uh]=rv(Bh,{contentName:fs,titleName:Kc,docsSlug:"dialog"}),Cx=({titleId:e})=>{const t=Uh(Bh),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. + +If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. + +For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return x.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Tx="DialogDescriptionWarning",Ex=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Uh(Tx).contentName}}.`;return x.useEffect(()=>{var i;const r=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},$h=Ah,zh=Rh,Wh=Nh,ko=Oh,No=jh,Oo=Mh,jo=Lh,Qc=Vh;function Hh(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,ju=qh,Xc=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return ju(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:i}=t,o=Object.keys(r).map(l=>{const u=n==null?void 0:n[l],d=i==null?void 0:i[l];if(u===null)return null;const f=Ou(u)||Ou(d);return r[l][f]}),a=n&&Object.entries(n).reduce((l,u)=>{let[d,f]=u;return f===void 0||(l[d]=f),l},{}),c=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((l,u)=>{let{class:d,className:f,...g}=u;return Object.entries(g).every(m=>{let[h,y]=m;return Array.isArray(y)?y.includes({...i,...a}[h]):{...i,...a}[h]===y})?[...l,d,f]:l},[]);return ju(e,o,c,n==null?void 0:n.class,n==null?void 0:n.className)};/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ax=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Zh=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Px={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Rx=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:r="",children:i,iconNode:o,...a},c)=>x.createElement("svg",{ref:c,...Px,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:Zh("lucide",r),...a},[...o.map(([l,u])=>x.createElement(l,u)),...Array.isArray(i)?i:[i]]));/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const At=(e,t)=>{const n=x.forwardRef(({className:s,...r},i)=>x.createElement(Rx,{ref:i,iconNode:t,className:Zh(`lucide-${Ax(e)}`,s),...r}));return n.displayName=`${e}`,n};/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const kx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],e1=At("ArrowRight",kx);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Nx=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ox=At("ArrowUpRight",Nx);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const jx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Dx=At("ChevronLeft",jx);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Mx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Fx=At("ChevronRight",Mx);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Lx=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],Ix=At("Facebook",Lx);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Vx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Kh=At("LoaderCircle",Vx);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bx=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],t1=At("Loader",Bx);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ux=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],$x=At("MapPin",Ux);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const zx=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],n1=At("Play",zx);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wx=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Hx=At("Smartphone",Wx);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qx=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],Zx=At("Upload",qx);/** + * @license lucide-react v0.473.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kx=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Yc=At("X",Kx),Jc="-",Gx=e=>{const t=Xx(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:o=>{const a=o.split(Jc);return a[0]===""&&a.length!==1&&a.shift(),Gh(a,t)||Qx(o)},getConflictingClassGroupIds:(o,a)=>{const c=n[o]||[];return a&&s[o]?[...c,...s[o]]:c}}},Gh=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),r=s?Gh(e.slice(1),s):void 0;if(r)return r;if(t.validators.length===0)return;const i=e.join(Jc);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Du=/^\[(.+)\]$/,Qx=e=>{if(Du.test(e)){const t=Du.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Xx=e=>{const{theme:t,prefix:n}=e,s={nextPart:new Map,validators:[]};return Jx(Object.entries(e.classGroups),n).forEach(([i,o])=>{Ba(o,s,i,t)}),s},Ba=(e,t,n,s)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:Mu(t,r);i.classGroupId=n;return}if(typeof r=="function"){if(Yx(r)){Ba(r(s),t,n,s);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([i,o])=>{Ba(o,Mu(t,i),n,s)})})},Mu=(e,t)=>{let n=e;return t.split(Jc).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},Yx=e=>e.isThemeGetter,Jx=(e,t)=>t?e.map(([n,s])=>{const r=s.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,r]}):e,eb=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const r=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,s=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=s.get(i))!==void 0)return r(i,o),o},set(i,o){n.has(i)?n.set(i,o):r(i,o)}}},Qh="!",tb=e=>{const{separator:t,experimentalParseClassName:n}=e,s=t.length===1,r=t[0],i=t.length,o=a=>{const c=[];let l=0,u=0,d;for(let y=0;yu?d-u:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:m,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:o}):o},nb=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(s=>{s[0]==="["?(t.push(...n.sort(),s),n=[]):n.push(s)}),t.push(...n.sort()),t},sb=e=>({cache:eb(e.cacheSize),parseClassName:tb(e),...Gx(e)}),rb=/\s+/,ib=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:r}=t,i=[],o=e.trim().split(rb);let a="";for(let c=o.length-1;c>=0;c-=1){const l=o[c],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:g}=n(l);let m=!!g,h=s(m?f.substring(0,g):f);if(!h){if(!m){a=l+(a.length>0?" "+a:a);continue}if(h=s(f),!h){a=l+(a.length>0?" "+a:a);continue}m=!1}const y=nb(u).join(":"),v=d?y+Qh:y,b=v+h;if(i.includes(b))continue;i.push(b);const w=r(h,m);for(let C=0;C0?" "+a:a)}return a};function ob(){let e=0,t,n,s="";for(;e{if(typeof e=="string")return e;let t,n="";for(let s=0;sd(u),e());return n=sb(l),s=n.cache.get,r=n.cache.set,i=a,a(c)}function a(c){const l=s(c);if(l)return l;const u=ib(c,n);return r(c,u),u}return function(){return i(ob.apply(null,arguments))}}const _e=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Yh=/^\[(?:([a-z-]+):)?(.+)\]$/i,cb=/^\d+\/\d+$/,lb=new Set(["px","full","screen"]),ub=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,db=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,fb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,hb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,cn=e=>Ms(e)||lb.has(e)||cb.test(e),bn=e=>cr(e,"length",Sb),Ms=e=>!!e&&!Number.isNaN(Number(e)),da=e=>cr(e,"number",Ms),xr=e=>!!e&&Number.isInteger(Number(e)),mb=e=>e.endsWith("%")&&Ms(e.slice(0,-1)),ce=e=>Yh.test(e),wn=e=>ub.test(e),gb=new Set(["length","size","percentage"]),yb=e=>cr(e,gb,Jh),vb=e=>cr(e,"position",Jh),xb=new Set(["image","url"]),bb=e=>cr(e,xb,Cb),wb=e=>cr(e,"",_b),br=()=>!0,cr=(e,t,n)=>{const s=Yh.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):n(s[2]):!1},Sb=e=>db.test(e)&&!fb.test(e),Jh=()=>!1,_b=e=>hb.test(e),Cb=e=>pb.test(e),Tb=()=>{const e=_e("colors"),t=_e("spacing"),n=_e("blur"),s=_e("brightness"),r=_e("borderColor"),i=_e("borderRadius"),o=_e("borderSpacing"),a=_e("borderWidth"),c=_e("contrast"),l=_e("grayscale"),u=_e("hueRotate"),d=_e("invert"),f=_e("gap"),g=_e("gradientColorStops"),m=_e("gradientColorStopPositions"),h=_e("inset"),y=_e("margin"),v=_e("opacity"),b=_e("padding"),w=_e("saturate"),C=_e("scale"),S=_e("sepia"),A=_e("skew"),R=_e("space"),E=_e("translate"),O=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",ce,t],j=()=>[ce,t],$=()=>["",cn,bn],W=()=>["auto",Ms,ce],se=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],re=()=>["","0",ce],me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ge=()=>[Ms,ce];return{cacheSize:500,separator:":",theme:{colors:[br],spacing:[cn,bn],blur:["none","",wn,ce],brightness:ge(),borderColor:[e],borderRadius:["none","","full",wn,ce],borderSpacing:j(),borderWidth:$(),contrast:ge(),grayscale:re(),hueRotate:ge(),invert:re(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[mb,bn],inset:L(),margin:L(),opacity:ge(),padding:j(),saturate:ge(),scale:ge(),sepia:re(),skew:ge(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",ce]}],container:["container"],columns:[{columns:[wn]}],"break-after":[{"break-after":me()}],"break-before":[{"break-before":me()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...se(),ce]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xr,ce]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ce]}],grow:[{grow:re()}],shrink:[{shrink:re()}],order:[{order:["first","last","none",xr,ce]}],"grid-cols":[{"grid-cols":[br]}],"col-start-end":[{col:["auto",{span:["full",xr,ce]},ce]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[br]}],"row-start-end":[{row:["auto",{span:[xr,ce]},ce]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ce]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ce,t]}],"min-w":[{"min-w":[ce,t,"min","max","fit"]}],"max-w":[{"max-w":[ce,t,"none","full","min","max","fit","prose",{screen:[wn]},wn]}],h:[{h:[ce,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ce,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ce,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ce,t,"auto","min","max","fit"]}],"font-size":[{text:["base",wn,bn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",da]}],"font-family":[{font:[br]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ce]}],"line-clamp":[{"line-clamp":["none",Ms,da]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",cn,ce]}],"list-image":[{"list-image":["none",ce]}],"list-style-type":[{list:["none","disc","decimal",ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",cn,bn]}],"underline-offset":[{"underline-offset":["auto",cn,ce]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...se(),vb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",yb]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},bb]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:Y()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[cn,ce]}],"outline-w":[{outline:[cn,bn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[cn,bn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",wn,wb]}],"shadow-color":[{shadow:[br]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[s]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",wn,ce]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ce]}],duration:[{duration:ge()}],ease:[{ease:["linear","in","out","in-out",ce]}],delay:[{delay:ge()}],animate:[{animate:["none","spin","ping","pulse","bounce",ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[xr,ce]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ce]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[cn,bn,da]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Eb=ab(Tb);function K(...e){return Eb(qh(e))}const Ab=$h,Pb=zh,Rb=Qc,kb=Wh,ep=x.forwardRef(({className:e,...t},n)=>p.jsx(ko,{className:K("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));ep.displayName=ko.displayName;const Nb=Xc("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-full data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),tp=x.forwardRef(({side:e="right",className:t,children:n,...s},r)=>p.jsxs(kb,{children:[p.jsx(ep,{}),p.jsxs(No,{ref:r,className:K(Nb({side:e}),t),...s,children:[p.jsxs(Qc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-secondary",children:[p.jsx(Yc,{className:"size-8"}),p.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));tp.displayName=No.displayName;const np=({className:e,...t})=>p.jsx("div",{className:K("flex flex-col space-y-2 text-center sm:text-left",e),...t});np.displayName="SheetHeader";const Ob=x.forwardRef(({className:e,...t},n)=>p.jsx(Oo,{ref:n,className:K("text-lg font-semibold text-foreground",e),...t}));Ob.displayName=Oo.displayName;const jb=x.forwardRef(({className:e,...t},n)=>p.jsx(jo,{ref:n,className:K("text-sm text-muted-foreground",e),...t}));jb.displayName=jo.displayName;const Db=Xc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-[18px] leading-[140%] font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-on_primary shadow hover:bg-primary/90",teritary:"bg-teritary hover:bg-teritary/90 text-on_surface",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-outline text-on_surface",secondary:"bg-secondary_container hover:bg-secondary_container/80 text-on_secondary_container",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-white h-8"},size:{default:"h-12 px-5 py-2 rounded-[2px]",sm:"h-10 text-base px-4 rounded-[2px]",lg:"lg:h-[88px] h-12 rounded-[2px] px-8 ",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),ft=x.forwardRef(({className:e,variant:t,size:n,loading:s,children:r,asChild:i=!1,...o},a)=>{const c=i?or:"button";return p.jsx(c,{className:K(Db({variant:t,size:n,className:e})),ref:a,...o,children:s?p.jsx(Kh,{className:"w-5 h-5 animate-spin"}):r})});ft.displayName="Button";const Mb=(e,t,n,s)=>{var i,o,a,c;const r=[n,{code:t,...s||{}}];if((o=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&o.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);as(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),(c=(a=e==null?void 0:e.services)==null?void 0:a.logger)!=null&&c.warn?e.services.logger.warn(...r):console!=null&&console.warn&&console.warn(...r)},Fu={},Ua=(e,t,n,s)=>{as(n)&&Fu[n]||(as(n)&&(Fu[n]=new Date),Mb(e,t,n,s))},sp=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},$a=(e,t,n)=>{e.loadNamespaces(t,sp(e,n))},Lu=(e,t,n,s)=>{if(as(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return $a(e,n,s);n.forEach(r=>{e.options.ns.indexOf(r)<0&&e.options.ns.push(r)}),e.loadLanguages(t,sp(e,s))},Fb=(e,t,n={})=>!t.languages||!t.languages.length?(Ua(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(s,r)=>{var i;if(((i=n.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!r(s.isLanguageChangingTo,e))return!1}}),as=e=>typeof e=="string",Lb=e=>typeof e=="object"&&e!==null,Ib=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Vb={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Bb=e=>Vb[e],Ub=e=>e.replace(Ib,Bb);let za={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Ub};const $b=(e={})=>{za={...za,...e}},zb=()=>za;let rp;const Wb=e=>{rp=e},Hb=()=>rp,s1={type:"3rdParty",init(e){$b(e.options.react),Wb(e)}},qb=x.createContext();class Zb{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Kb=(e,t)=>{const n=x.useRef();return x.useEffect(()=>{n.current=e},[e,t]),n.current},ip=(e,t,n,s)=>e.getFixedT(t,n,s),Gb=(e,t,n,s)=>x.useCallback(ip(e,t,n,s),[e,t,n,s]),Do=(e,t={})=>{var C,S,A,R;const{i18n:n}=t,{i18n:s,defaultNS:r}=x.useContext(qb)||{},i=n||s||Hb();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new Zb),!i){Ua(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const E=(D,L)=>as(L)?L:Lb(L)&&as(L.defaultValue)?L.defaultValue:Array.isArray(D)?D[D.length-1]:D,O=[E,{},!1];return O.t=E,O.i18n={},O.ready=!1,O}(C=i.options.react)!=null&&C.wait&&Ua(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...zb(),...i.options.react,...t},{useSuspense:a,keyPrefix:c}=o;let l=e||r||((S=i.options)==null?void 0:S.defaultNS);l=as(l)?[l]:l||["translation"],(R=(A=i.reportNamespaces).addUsedNamespaces)==null||R.call(A,l);const u=(i.isInitialized||i.initializedStoreOnce)&&l.every(E=>Fb(E,i,o)),d=Gb(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),f=()=>d,g=()=>ip(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),[m,h]=x.useState(f);let y=l.join();t.lng&&(y=`${t.lng}${y}`);const v=Kb(y),b=x.useRef(!0);x.useEffect(()=>{const{bindI18n:E,bindI18nStore:O}=o;b.current=!0,!u&&!a&&(t.lng?Lu(i,t.lng,l,()=>{b.current&&h(g)}):$a(i,l,()=>{b.current&&h(g)})),u&&v&&v!==y&&b.current&&h(g);const D=()=>{b.current&&h(g)};return E&&(i==null||i.on(E,D)),O&&(i==null||i.store.on(O,D)),()=>{b.current=!1,i&&(E==null||E.split(" ").forEach(L=>i.off(L,D))),O&&i&&O.split(" ").forEach(L=>i.store.off(L,D))}},[i,y]),x.useEffect(()=>{b.current&&u&&h(f)},[i,c,u]);const w=[m,i,u];if(w.t=m,w.i18n=i,w.ready=u,u||!u&&!a)return w;throw new Promise(E=>{t.lng?Lu(i,t.lng,l,()=>E()):$a(i,l,()=>E())})},op=({className:e})=>p.jsx("div",{className:K("",e),children:p.jsx("img",{src:"/logo.svg",alt:"logo",className:"md:size-auto h-10"})}),ap=({className:e,image:t,title:n,iconClassName:s})=>p.jsxs("article",{className:K("bg-surface_container relative hover:bg-teritary_surface_container transition-all md:px-6 px-2 md:h-[224px] h-[124px]",e),children:[p.jsx("div",{className:"bg-primary size-full -z-[10] absolute top-2.5 left-2.5"}),p.jsx("div",{className:K("md:size-[84px] size-12 bg-teritary p-3",s),children:p.jsx("img",{src:t.path,alt:"theme icon"})}),p.jsx("h3",{className:"md:mt-6 mt-2 md:text-xl text-sm",children:n})]}),Qb=({className:e,title:t,text:n})=>p.jsxs("article",{className:K("px-6 py-4 relative bg-surface_container h-[160px] w-full overflow-hidden",e),children:[p.jsx("img",{src:"/about-card-bg.svg",className:"absolute top-2 right-0"}),p.jsx("h2",{className:"text-primary text-[32px] semibold leading-[130%] mb-4",children:n}),p.jsx("h4",{className:"text-on_surface normal text-base",children:t})]}),Xb=({className:e,title:t,text:n,img:s,link:r,btnText:i})=>p.jsxs("article",{className:K("md:px-8 md:py-6 p-4 relative overflow-hidden h-[296px] md:w-full w-[300px] text-on_primary",e),children:[p.jsx("div",{className:"absolute size-full z-10 top-0 left-0 bg-gradient-to-r from-25% from-primary to-primary/20 "}),p.jsx("img",{src:s,className:"absolute size-full top-0 right-0 object-cover"}),p.jsxs("div",{className:"relative z-20 h-full",children:[p.jsxs("div",{className:"",children:[p.jsx("h4",{className:"md:text-2xl text-lg mb-4 max-w-[444px] z-20 h-16",children:t}),p.jsx("p",{className:"md:text-base text-sm normal max-w-[360px] z-20",children:n})]}),p.jsx(Me,{className:"absolute bottom-0 left-0",target:"_blank",to:r,children:p.jsxs(ft,{className:"text-sm px-0 h-fit py-0 z-20",variant:"link",children:[i," ",p.jsx(Ox,{})]})})]})]}),cp=({className:e,title:t,text:n,bottomClassName:s})=>p.jsxs("div",{className:K("rounded-t-[4px] overflow-hidden",e),children:[p.jsx("div",{className:"bg-teritary text-white flex items-center h-11 px-4",children:t}),p.jsx("div",{className:K("h-14 bg-surface_container semibold flex items-center text-lg px-4",s),children:n})]}),Yb=({className:e,text:t,title:n,image:s})=>p.jsxs("div",{className:K("flex items-center gap-4",e),children:[p.jsx("div",{className:"bg-secondary_container size-16 rounded-[2px] p-3",children:p.jsx("img",{src:s.path,alt:"contact icon",className:"size-full"})}),p.jsxs("div",{className:"flex flex-col gap-2",children:[p.jsx("h5",{className:"text-sm text-[#454545]",children:n}),p.jsx("h4",{className:"text-[#171717] semibold",children:t})]})]}),el=x.createContext({});function tl(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const Mo=x.createContext(null),nl=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Jb extends x.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const s=n.offsetParent,r=s instanceof HTMLElement&&s.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=r-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function ew({children:e,isPresent:t,anchorX:n}){const s=x.useId(),r=x.useRef(null),i=x.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=x.useContext(nl);return x.useInsertionEffect(()=>{const{width:a,height:c,top:l,left:u,right:d}=i.current;if(t||!r.current||!a||!c)return;const f=n==="left"?`left: ${u}`:`right: ${d}`;r.current.dataset.motionPopId=s;const g=document.createElement("style");return o&&(g.nonce=o),document.head.appendChild(g),g.sheet&&g.sheet.insertRule(` + [data-motion-pop-id="${s}"] { + position: absolute !important; + width: ${a}px !important; + height: ${c}px !important; + ${f}px !important; + top: ${l}px !important; + } + `),()=>{document.head.removeChild(g)}},[t]),p.jsx(Jb,{isPresent:t,childRef:r,sizeRef:i,children:x.cloneElement(e,{ref:r})})}const tw=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:r,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const c=tl(nw),l=x.useId(),u=x.useCallback(f=>{c.set(f,!0);for(const g of c.values())if(!g)return;s&&s()},[c,s]),d=x.useMemo(()=>({id:l,initial:t,isPresent:n,custom:r,onExitComplete:u,register:f=>(c.set(f,!1),()=>c.delete(f))}),i?[Math.random(),u]:[n,u]);return x.useMemo(()=>{c.forEach((f,g)=>c.set(g,!1))},[n]),x.useEffect(()=>{!n&&!c.size&&s&&s()},[n]),o==="popLayout"&&(e=p.jsx(ew,{isPresent:n,anchorX:a,children:e})),p.jsx(Mo.Provider,{value:d,children:e})};function nw(){return new Map}function lp(e=!0){const t=x.useContext(Mo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:r}=t,i=x.useId();x.useEffect(()=>{e&&r(i)},[e]);const o=x.useCallback(()=>e&&s&&s(i),[i,s,e]);return!n&&s?[!1,o]:[!0]}const Li=e=>e.key||"";function Iu(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const sl=typeof window<"u",up=sl?x.useLayoutEffect:x.useEffect,r1=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:r=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[c,l]=lp(o),u=x.useMemo(()=>Iu(e),[e]),d=o&&!c?[]:u.map(Li),f=x.useRef(!0),g=x.useRef(u),m=tl(()=>new Map),[h,y]=x.useState(u),[v,b]=x.useState(u);up(()=>{f.current=!1,g.current=u;for(let S=0;S{const A=Li(S),R=o&&!c?!1:u===v||d.includes(A),E=()=>{if(m.has(A))m.set(A,!0);else return;let O=!0;m.forEach(D=>{D||(O=!1)}),O&&(C==null||C(),b(g.current),o&&(l==null||l()),s&&s())};return p.jsx(tw,{isPresent:R,initial:!f.current||n?void 0:!1,custom:R?void 0:t,presenceAffectsLayout:r,mode:i,onExitComplete:R?void 0:E,anchorX:a,children:S},A)})})},yt=e=>e;let Wa=yt;const sw={skipAnimations:!1,useManualTiming:!1};function rw(e){let t=new Set,n=new Set,s=!1,r=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(l){i.has(l)&&(c.schedule(l),e()),l(o)}const c={schedule:(l,u=!1,d=!1)=>{const g=d&&s?t:n;return u&&i.add(l),g.has(l)||g.add(l),l},cancel:l=>{n.delete(l),i.delete(l)},process:l=>{if(o=l,s){r=!0;return}s=!0,[t,n]=[n,t],t.forEach(a),t.clear(),s=!1,r&&(r=!1,c.process(l))}};return c}const Ii=["read","resolveKeyframes","update","preRender","render","postRender"],iw=40;function dp(e,t){let n=!1,s=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Ii.reduce((v,b)=>(v[b]=rw(i),v),{}),{read:a,resolveKeyframes:c,update:l,preRender:u,render:d,postRender:f}=o,g=()=>{const v=performance.now();n=!1,r.delta=s?1e3/60:Math.max(Math.min(v-r.timestamp,iw),1),r.timestamp=v,r.isProcessing=!0,a.process(r),c.process(r),l.process(r),u.process(r),d.process(r),f.process(r),r.isProcessing=!1,n&&t&&(s=!1,e(g))},m=()=>{n=!0,s=!0,r.isProcessing||e(g)};return{schedule:Ii.reduce((v,b)=>{const w=o[b];return v[b]=(C,S=!1,A=!1)=>(n||m(),w.schedule(C,S,A)),v},{}),cancel:v=>{for(let b=0;bVu[e].some(n=>!!t[n])};function ow(e){for(const t in e)Ys[t]={...Ys[t],...e[t]}}const aw=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function no(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||aw.has(e)}let hp=e=>!no(e);function cw(e){e&&(hp=t=>t.startsWith("on")?!no(t):e(t))}try{cw(require("@emotion/is-prop-valid").default)}catch{}function lw(e,t,n){const s={};for(const r in e)r==="values"&&typeof e.values=="object"||(hp(r)||n===!0&&no(r)||!t&&!no(r)||e.draggable&&r.startsWith("onDrag"))&&(s[r]=e[r]);return s}function uw(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...s)=>e(...s);return new Proxy(n,{get:(s,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const Fo=x.createContext({});function Br(e){return typeof e=="string"||Array.isArray(e)}function Lo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const rl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],il=["initial",...rl];function Io(e){return Lo(e.animate)||il.some(t=>Br(e[t]))}function pp(e){return!!(Io(e)||e.variants)}function dw(e,t){if(Io(e)){const{initial:n,animate:s}=e;return{initial:n===!1||Br(n)?n:void 0,animate:Br(s)?s:void 0}}return e.inherit!==!1?t:{}}function fw(e){const{initial:t,animate:n}=dw(e,x.useContext(Fo));return x.useMemo(()=>({initial:t,animate:n}),[Bu(t),Bu(n)])}function Bu(e){return Array.isArray(e)?e.join(" "):e}const hw=Symbol.for("motionComponentSymbol");function Ps(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function pw(e,t,n){return x.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):Ps(n)&&(n.current=s))},[t])}const ol=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),mw="framerAppearId",mp="data-"+ol(mw),{schedule:al,cancel:i1}=dp(queueMicrotask,!1),gp=x.createContext({});function gw(e,t,n,s,r){var i,o;const{visualElement:a}=x.useContext(Fo),c=x.useContext(fp),l=x.useContext(Mo),u=x.useContext(nl).reducedMotion,d=x.useRef(null);s=s||c.renderer,!d.current&&s&&(d.current=s(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,g=x.useContext(gp);f&&!f.projection&&r&&(f.type==="html"||f.type==="svg")&&yw(d.current,n,r,g);const m=x.useRef(!1);x.useInsertionEffect(()=>{f&&m.current&&f.update(n,l)});const h=n[mp],y=x.useRef(!!h&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,h))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,h)));return up(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),al.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),x.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,h)}),y.current=!1))}),f}function yw(e,t,n,s){const{layoutId:r,layout:i,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:yp(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!o||a&&Ps(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:s,layoutScroll:c,layoutRoot:l})}function yp(e){if(e)return e.options.allowProjection!==!1?e.projection:yp(e.parent)}function vw({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:r}){var i,o;e&&ow(e);function a(l,u){let d;const f={...x.useContext(nl),...l,layoutId:xw(l)},{isStatic:g}=f,m=fw(l),h=s(l,g);if(!g&&sl){bw();const y=ww(f);d=y.MeasureLayout,m.visualElement=gw(r,h,f,t,y.ProjectionNode)}return p.jsxs(Fo.Provider,{value:m,children:[d&&m.visualElement?p.jsx(d,{visualElement:m.visualElement,...f}):null,n(r,l,pw(h,m.visualElement,u),h,g,m.visualElement)]})}a.displayName=`motion.${typeof r=="string"?r:`create(${(o=(i=r.displayName)!==null&&i!==void 0?i:r.name)!==null&&o!==void 0?o:""})`}`;const c=x.forwardRef(a);return c[hw]=r,c}function xw({layoutId:e}){const t=x.useContext(el).id;return t&&e!==void 0?t+"-"+e:e}function bw(e,t){x.useContext(fp).strict}function ww(e){const{drag:t,layout:n}=Ys;if(!t&&!n)return{};const s={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const Sw=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function cl(e){return typeof e!="string"||e.includes("-")?!1:!!(Sw.indexOf(e)>-1||/[A-Z]/u.test(e))}function Uu(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function ll(e,t,n,s){if(typeof t=="function"){const[r,i]=Uu(s);t=t(n!==void 0?n:e.custom,r,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,i]=Uu(s);t=t(n!==void 0?n:e.custom,r,i)}return t}const Ha=e=>Array.isArray(e),_w=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Cw=e=>Ha(e)?e[e.length-1]||0:e,Ge=e=>!!(e&&e.getVelocity);function Zi(e){const t=Ge(e)?e.get():e;return _w(t)?t.toValue():t}function Tw({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},s,r,i){const o={latestValues:Ew(s,r,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:s,current:a,...o}),o.onUpdate=a=>n(a)),o}const vp=e=>(t,n)=>{const s=x.useContext(Fo),r=x.useContext(Mo),i=()=>Tw(e,t,s,r);return n?i():tl(i)};function Ew(e,t,n,s){const r={},i=s(e,{});for(const f in i)r[f]=Zi(i[f]);let{initial:o,animate:a}=e;const c=Io(e),l=pp(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!Lo(d)){const f=Array.isArray(d)?d:[d];for(let g=0;gt=>typeof t=="string"&&t.startsWith(e),ul=xp("--"),Aw=xp("var(--"),dl=e=>Aw(e)?Pw.test(e.split("/*")[0].trim()):!1,Pw=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,bp=(e,t)=>t&&typeof e=="number"?t.transform(e):e,gn=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Ur={...ur,transform:e=>gn(0,1,e)},Vi={...ur,default:1},yi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),_n=yi("deg"),Jt=yi("%"),J=yi("px"),Rw=yi("vh"),kw=yi("vw"),$u={...Jt,parse:e=>Jt.parse(e)/100,transform:e=>Jt.transform(e*100)},Nw={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,radius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,top:J,right:J,bottom:J,left:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,backgroundPositionX:J,backgroundPositionY:J},Ow={rotate:_n,rotateX:_n,rotateY:_n,rotateZ:_n,scale:Vi,scaleX:Vi,scaleY:Vi,scaleZ:Vi,skew:_n,skewX:_n,skewY:_n,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:Ur,originX:$u,originY:$u,originZ:J},zu={...ur,transform:Math.round},fl={...Nw,...Ow,zIndex:zu,size:J,fillOpacity:Ur,strokeOpacity:Ur,numOctaves:zu},jw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Dw=lr.length;function Mw(e,t,n){let s="",r=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}}),wp=()=>({...ml(),attrs:{}}),gl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Sp(e,{style:t,vars:n},s,r){Object.assign(e.style,t,r&&r.getProjectionStyles(s));for(const i in n)e.style.setProperty(i,n[i])}const _p=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Cp(e,t,n,s){Sp(e,t,void 0,s);for(const r in t.attrs)e.setAttribute(_p.has(r)?r:ol(r),t.attrs[r])}const $r={};function Bw(e){for(const t in e)$r[t]=e[t],ul(t)&&($r[t].isCSSVariable=!0)}function Tp(e,{layout:t,layoutId:n}){return bs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!$r[e]||e==="opacity")}function yl(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(Ge(r[o])||t.style&&Ge(t.style[o])||Tp(o,e)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}function Ep(e,t,n){const s=yl(e,t,n);for(const r in e)if(Ge(e[r])||Ge(t[r])){const i=lr.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;s[i]=e[r]}return s}function Uw(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Hu=["x","y","width","height","cx","cy","r"],$w={useVisualState:vp({scrapeMotionValuesFromProps:Ep,createRenderState:wp,onUpdate:({props:e,prevProps:t,current:n,renderState:s,latestValues:r})=>{if(!n)return;let i=!!e.drag;if(!i){for(const a in r)if(bs.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a{Uw(n,s),Ce.render(()=>{pl(s,r,gl(n.tagName),e.transformTemplate),Cp(n,s)})})}})},zw={useVisualState:vp({scrapeMotionValuesFromProps:yl,createRenderState:ml})};function Ap(e,t,n){for(const s in t)!Ge(t[s])&&!Tp(s,n)&&(e[s]=t[s])}function Ww({transformTemplate:e},t){return x.useMemo(()=>{const n=ml();return hl(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Hw(e,t){const n=e.style||{},s={};return Ap(s,n,e),Object.assign(s,Ww(e,t)),s}function qw(e,t){const n={},s=Hw(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}function Zw(e,t,n,s){const r=x.useMemo(()=>{const i=wp();return pl(i,t,gl(s),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Ap(i,e.style,e),r.style={...i,...r.style}}return r}function Kw(e=!1){return(n,s,r,{latestValues:i},o)=>{const c=(cl(n)?Zw:qw)(s,i,o,n),l=lw(s,typeof n=="string",e),u=n!==x.Fragment?{...l,...c,ref:r}:{},{children:d}=s,f=x.useMemo(()=>Ge(d)?d.get():d,[d]);return x.createElement(n,{...u,children:f})}}function Gw(e,t){return function(s,{forwardMotionProps:r}={forwardMotionProps:!1}){const o={...cl(s)?$w:zw,preloadedFeatures:e,useRender:Kw(r),createVisualElement:t,Component:s};return vw(o)}}function Pp(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s(Ki===void 0&&en.set($e.isProcessing||sw.useManualTiming?$e.timestamp:performance.now()),Ki),set:e=>{Ki=e,queueMicrotask(Qw)}};function xl(e,t){e.indexOf(t)===-1&&e.push(t)}function bl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class wl{constructor(){this.subscriptions=[]}add(t){return xl(this.subscriptions,t),()=>bl(this.subscriptions,t)}notify(t,n,s){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,s);else for(let i=0;i!isNaN(parseFloat(e));class Yw{constructor(t,n={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,r=!0)=>{const i=en.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=en.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Xw(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new wl);const s=this.events[t].add(n);return t==="change"?()=>{s(),Ce.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=en.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>qu)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,qu);return kp(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function zr(e,t){return new Yw(e,t)}function Jw(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,zr(n))}function e0(e,t){const n=Vo(e,t);let{transitionEnd:s={},transition:r={},...i}=n||{};i={...i,...s};for(const o in i){const a=Cw(i[o]);Jw(e,o,a)}}function t0(e){return!!(Ge(e)&&e.add)}function qa(e,t){const n=e.getValue("willChange");if(t0(n))return n.add(t)}function Np(e){return e.props[mp]}function Sl(e){let t;return()=>(t===void 0&&(t=e()),t)}const n0=Sl(()=>window.ScrollTimeline!==void 0);class s0{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let s=0;s{if(n0()&&r.attachTimeline)return r.attachTimeline(t);if(typeof n=="function")return n(r)});return()=>{s.forEach((r,i)=>{r&&r(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class r0 extends s0{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const pn=e=>e*1e3,mn=e=>e/1e3;function _l(e){return typeof e=="function"}function Zu(e,t){e.timeline=t,e.onfinish=null}const Cl=e=>Array.isArray(e)&&typeof e[0]=="number",i0={linearEasing:void 0};function o0(e,t){const n=Sl(e);return()=>{var s;return(s=i0[t])!==null&&s!==void 0?s:n()}}const so=o0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Js=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},Op=(e,t,n=10)=>{let s="";const r=Math.max(Math.round(t/n),2);for(let i=0;i`cubic-bezier(${e}, ${t}, ${n}, ${s})`,Za={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Tr([0,.65,.55,1]),circOut:Tr([.55,0,1,.45]),backIn:Tr([.31,.01,.66,-.59]),backOut:Tr([.33,1.53,.69,.99])};function Dp(e,t){if(e)return typeof e=="function"&&so()?Op(e,t):Cl(e)?Tr(e):Array.isArray(e)?e.map(n=>Dp(n,t)||Za.easeOut):Za[e]}const Mp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,a0=1e-7,c0=12;function l0(e,t,n,s,r){let i,o,a=0;do o=t+(n-t)/2,i=Mp(o,s,r)-e,i>0?n=o:t=o;while(Math.abs(i)>a0&&++al0(i,0,1,e,n);return i=>i===0||i===1?i:Mp(r(i),t,s)}const Fp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Lp=e=>t=>1-e(1-t),Ip=vi(.33,1.53,.69,.99),Tl=Lp(Ip),Vp=Fp(Tl),Bp=e=>(e*=2)<1?.5*Tl(e):.5*(2-Math.pow(2,-10*(e-1))),El=e=>1-Math.sin(Math.acos(e)),Up=Lp(El),$p=Fp(El),zp=e=>/^0[^.\s]+$/u.test(e);function u0(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||zp(e):!0}const Or=e=>Math.round(e*1e5)/1e5,Al=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function d0(e){return e==null}const f0=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Pl=(e,t)=>n=>!!(typeof n=="string"&&f0.test(n)&&n.startsWith(e)||t&&!d0(n)&&Object.prototype.hasOwnProperty.call(n,t)),Wp=(e,t,n)=>s=>{if(typeof s!="string")return s;const[r,i,o,a]=s.match(Al);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},h0=e=>gn(0,255,e),ha={...ur,transform:e=>Math.round(h0(e))},Qn={test:Pl("rgb","red"),parse:Wp("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+ha.transform(e)+", "+ha.transform(t)+", "+ha.transform(n)+", "+Or(Ur.transform(s))+")"};function p0(e){let t="",n="",s="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,s+=s,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}}const Ka={test:Pl("#"),parse:p0,transform:Qn.transform},Rs={test:Pl("hsl","hue"),parse:Wp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+Jt.transform(Or(t))+", "+Jt.transform(Or(n))+", "+Or(Ur.transform(s))+")"},Ze={test:e=>Qn.test(e)||Ka.test(e)||Rs.test(e),parse:e=>Qn.test(e)?Qn.parse(e):Rs.test(e)?Rs.parse(e):Ka.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Qn.transform(e):Rs.transform(e)},m0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function g0(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Al))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(m0))===null||n===void 0?void 0:n.length)||0)>0}const Hp="number",qp="color",y0="var",v0="var(",Ku="${}",x0=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Wr(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},r=[];let i=0;const a=t.replace(x0,c=>(Ze.test(c)?(s.color.push(i),r.push(qp),n.push(Ze.parse(c))):c.startsWith(v0)?(s.var.push(i),r.push(y0),n.push(c)):(s.number.push(i),r.push(Hp),n.push(parseFloat(c))),++i,Ku)).split(Ku);return{values:n,split:a,indexes:s,types:r}}function Zp(e){return Wr(e).values}function Kp(e){const{split:t,types:n}=Wr(e),s=t.length;return r=>{let i="";for(let o=0;otypeof e=="number"?0:e;function w0(e){const t=Zp(e);return Kp(e)(t.map(b0))}const Mn={test:g0,parse:Zp,createTransformer:Kp,getAnimatableNone:w0},S0=new Set(["brightness","contrast","saturate","opacity"]);function _0(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(Al)||[];if(!s)return e;const r=n.replace(s,"");let i=S0.has(t)?1:0;return s!==n&&(i*=100),t+"("+i+r+")"}const C0=/\b([a-z-]*)\(.*?\)/gu,Ga={...Mn,getAnimatableNone:e=>{const t=e.match(C0);return t?t.map(_0).join(" "):e}},T0={...fl,color:Ze,backgroundColor:Ze,outlineColor:Ze,fill:Ze,stroke:Ze,borderColor:Ze,borderTopColor:Ze,borderRightColor:Ze,borderBottomColor:Ze,borderLeftColor:Ze,filter:Ga,WebkitFilter:Ga},Rl=e=>T0[e];function Gp(e,t){let n=Rl(e);return n!==Ga&&(n=Mn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const E0=new Set(["auto","none","0"]);function A0(e,t,n){let s=0,r;for(;se===ur||e===J,Qu=(e,t)=>parseFloat(e.split(", ")[t]),Xu=(e,t)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const r=s.match(/^matrix3d\((.+)\)$/u);if(r)return Qu(r[1],t);{const i=s.match(/^matrix\((.+)\)$/u);return i?Qu(i[1],e):0}},P0=new Set(["x","y","z"]),R0=lr.filter(e=>!P0.has(e));function k0(e){const t=[];return R0.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const er={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Xu(4,13),y:Xu(5,14)};er.translateX=er.x;er.translateY=er.y;const cs=new Set;let Qa=!1,Xa=!1;function Qp(){if(Xa){const e=Array.from(cs).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const r=k0(s);r.length&&(n.set(s,r),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const r=n.get(s);r&&r.forEach(([i,o])=>{var a;(a=s.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Xa=!1,Qa=!1,cs.forEach(e=>e.complete()),cs.clear()}function Xp(){cs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Xa=!0)})}function N0(){Xp(),Qp()}class kl{constructor(t,n,s,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(cs.add(this),Qa||(Qa=!0,Ce.read(Xp),Ce.resolveKeyframes(Qp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:r}=this;for(let i=0;i/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),O0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function j0(e){const t=O0.exec(e);if(!t)return[,];const[,n,s,r]=t;return[`--${n??s}`,r]}function Jp(e,t,n=1){const[s,r]=j0(e);if(!s)return;const i=window.getComputedStyle(t).getPropertyValue(s);if(i){const o=i.trim();return Yp(o)?parseFloat(o):o}return dl(r)?Jp(r,t,n+1):r}const em=e=>t=>t.test(e),D0={test:e=>e==="auto",parse:e=>e},tm=[ur,J,Jt,_n,kw,Rw,D0],Yu=e=>tm.find(em(e));class nm extends kl{constructor(t,n,s,r,i){super(t,n,s,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c{n.getValue(c).set(l)}),this.resolveNoneKeyframes()}}const Ju=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Mn.test(e)||e==="0")&&!e.startsWith("url("));function M0(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function Bo(e,{repeat:t,repeatType:n="loop"},s){const r=e.filter(L0),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return!i||s===void 0?r[i]:s}const I0=40;class sm{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=en.now(),this.options={autoplay:t,delay:n,type:s,repeat:r,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>I0?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&N0(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=en.now(),this.hasAttemptedResolve=!0;const{name:s,type:r,velocity:i,delay:o,onComplete:a,onUpdate:c,isGenerator:l}=this.options;if(!l&&!F0(t,s,r,i))if(o)this.options.duration=0;else{c&&c(Bo(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Ya=2e4;function rm(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t=Ya?1/0:t}const Ee=(e,t,n)=>e+(t-e)*n;function pa(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function V0({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let r=0,i=0,o=0;if(!t)r=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=pa(c,a,e+1/3),i=pa(c,a,e),o=pa(c,a,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:s}}function ro(e,t){return n=>n>0?t:e}const ma=(e,t,n)=>{const s=e*e,r=n*(t*t-s)+s;return r<0?0:Math.sqrt(r)},B0=[Ka,Qn,Rs],U0=e=>B0.find(t=>t.test(e));function ed(e){const t=U0(e);if(!t)return!1;let n=t.parse(e);return t===Rs&&(n=V0(n)),n}const td=(e,t)=>{const n=ed(e),s=ed(t);if(!n||!s)return ro(e,t);const r={...n};return i=>(r.red=ma(n.red,s.red,i),r.green=ma(n.green,s.green,i),r.blue=ma(n.blue,s.blue,i),r.alpha=Ee(n.alpha,s.alpha,i),Qn.transform(r))},$0=(e,t)=>n=>t(e(n)),xi=(...e)=>e.reduce($0),Ja=new Set(["none","hidden"]);function z0(e,t){return Ja.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function W0(e,t){return n=>Ee(e,t,n)}function Nl(e){return typeof e=="number"?W0:typeof e=="string"?dl(e)?ro:Ze.test(e)?td:Z0:Array.isArray(e)?im:typeof e=="object"?Ze.test(e)?td:H0:ro}function im(e,t){const n=[...e],s=n.length,r=e.map((i,o)=>Nl(i)(i,t[o]));return i=>{for(let o=0;o{for(const i in s)n[i]=s[i](r);return n}}function q0(e,t){var n;const s=[],r={color:0,var:0,number:0};for(let i=0;i{const n=Mn.createTransformer(t),s=Wr(e),r=Wr(t);return s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length?Ja.has(e)&&!r.values.length||Ja.has(t)&&!s.values.length?z0(e,t):xi(im(q0(s,r),r.values),n):ro(e,t)};function om(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ee(e,t,n):Nl(e)(e,t)}const K0=5;function am(e,t,n){const s=Math.max(t-K0,0);return kp(n-e(s),t-s)}const ke={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},nd=.001;function G0({duration:e=ke.duration,bounce:t=ke.bounce,velocity:n=ke.velocity,mass:s=ke.mass}){let r,i,o=1-t;o=gn(ke.minDamping,ke.maxDamping,o),e=gn(ke.minDuration,ke.maxDuration,mn(e)),o<1?(r=l=>{const u=l*o,d=u*e,f=u-n,g=ec(l,o),m=Math.exp(-d);return nd-f/g*m},i=l=>{const d=l*o*e,f=d*n+n,g=Math.pow(o,2)*Math.pow(l,2)*e,m=Math.exp(-d),h=ec(Math.pow(l,2),o);return(-r(l)+nd>0?-1:1)*((f-g)*m)/h}):(r=l=>{const u=Math.exp(-l*e),d=(l-n)*e+1;return-.001+u*d},i=l=>{const u=Math.exp(-l*e),d=(n-l)*(e*e);return u*d});const a=5/e,c=X0(r,i,a);if(e=pn(e),isNaN(c))return{stiffness:ke.stiffness,damping:ke.damping,duration:e};{const l=Math.pow(c,2)*s;return{stiffness:l,damping:o*2*Math.sqrt(s*l),duration:e}}}const Q0=12;function X0(e,t,n){let s=n;for(let r=1;re[n]!==void 0)}function eS(e){let t={velocity:ke.velocity,stiffness:ke.stiffness,damping:ke.damping,mass:ke.mass,isResolvedFromDuration:!1,...e};if(!sd(e,J0)&&sd(e,Y0))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),r=s*s,i=2*gn(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:ke.mass,stiffness:r,damping:i}}else{const n=G0(e);t={...t,...n,mass:ke.mass},t.isResolvedFromDuration=!0}return t}function cm(e=ke.visualDuration,t=ke.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:r}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:g}=eS({...n,velocity:-mn(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),y=o-i,v=mn(Math.sqrt(c/u)),b=Math.abs(y)<5;s||(s=b?ke.restSpeed.granular:ke.restSpeed.default),r||(r=b?ke.restDelta.granular:ke.restDelta.default);let w;if(h<1){const S=ec(v,h);w=A=>{const R=Math.exp(-h*v*A);return o-R*((m+h*v*y)/S*Math.sin(S*A)+y*Math.cos(S*A))}}else if(h===1)w=S=>o-Math.exp(-v*S)*(y+(m+v*y)*S);else{const S=v*Math.sqrt(h*h-1);w=A=>{const R=Math.exp(-h*v*A),E=Math.min(S*A,300);return o-R*((m+h*v*y)*Math.sinh(E)+S*y*Math.cosh(E))/S}}const C={calculatedDuration:g&&d||null,next:S=>{const A=w(S);if(g)a.done=S>=d;else{let R=0;h<1&&(R=S===0?pn(m):am(w,S,A));const E=Math.abs(R)<=s,O=Math.abs(o-A)<=r;a.done=E&&O}return a.value=a.done?o:A,a},toString:()=>{const S=Math.min(rm(C),Ya),A=Op(R=>C.next(S*R).value,S,30);return S+"ms "+A}};return C}function rd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},g=E=>a!==void 0&&Ec,m=E=>a===void 0?c:c===void 0||Math.abs(a-E)-h*Math.exp(-E/s),w=E=>v+b(E),C=E=>{const O=b(E),D=w(E);f.done=Math.abs(O)<=l,f.value=f.done?v:D};let S,A;const R=E=>{g(f.value)&&(S=E,A=cm({keyframes:[f.value,m(f.value)],velocity:am(w,E,f.value),damping:r,stiffness:i,restDelta:l,restSpeed:u}))};return R(0),{calculatedDuration:null,next:E=>{let O=!1;return!A&&S===void 0&&(O=!0,C(E),R(E)),S!==void 0&&E>=S?A.next(E-S):(!O&&C(E),f)}}}const tS=vi(.42,0,1,1),nS=vi(0,0,.58,1),lm=vi(.42,0,.58,1),sS=e=>Array.isArray(e)&&typeof e[0]!="number",id={linear:yt,easeIn:tS,easeInOut:lm,easeOut:nS,circIn:El,circInOut:$p,circOut:Up,backIn:Tl,backInOut:Vp,backOut:Ip,anticipate:Bp},od=e=>{if(Cl(e)){Wa(e.length===4);const[t,n,s,r]=e;return vi(t,n,s,r)}else if(typeof e=="string")return Wa(id[e]!==void 0),id[e];return e};function rS(e,t,n){const s=[],r=n||om,i=e.length-1;for(let o=0;ot[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=rS(t,s,r),c=a.length,l=u=>{if(o&&u1)for(;dl(gn(e[0],e[i-1],u)):l}function oS(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const r=Js(0,t,s);e.push(Ee(n,1,r))}}function aS(e){const t=[0];return oS(t,e.length-1),t}function cS(e,t){return e.map(n=>n*t)}function lS(e,t){return e.map(()=>t||lm).splice(0,e.length-1)}function io({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const r=sS(s)?s.map(od):od(s),i={done:!1,value:t[0]},o=cS(n&&n.length===t.length?n:aS(t),e),a=iS(o,t,{ease:Array.isArray(r)?r:lS(t,r)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const uS=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ce.update(t,!0),stop:()=>Dn(t),now:()=>$e.isProcessing?$e.timestamp:en.now()}},dS={decay:rd,inertia:rd,tween:io,keyframes:io,spring:cm},fS=e=>e/100;class Ol extends sm{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:s,element:r,keyframes:i}=this.options,o=(r==null?void 0:r.KeyframeResolver)||kl,a=(c,l)=>this.onKeyframesResolved(c,l);this.resolver=new o(i,a,n,s,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=this.options,a=_l(n)?n:dS[n]||io;let c,l;a!==io&&typeof t[0]!="number"&&(c=xi(fS,om(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});i==="mirror"&&(l=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=rm(u));const{calculatedDuration:d}=u,f=d+r,g=f*(s+1)-r;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:c,calculatedDuration:d,resolvedDuration:f,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:s}=this;if(!s){const{keyframes:E}=this.options;return{done:!0,value:E[E.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:c,calculatedDuration:l,totalDuration:u,resolvedDuration:d}=s;if(this.startTime===null)return i.next(0);const{delay:f,repeat:g,repeatType:m,repeatDelay:h,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-f*(this.speed>=0?1:-1),b=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let w=this.currentTime,C=i;if(g){const E=Math.min(this.currentTime,u)/d;let O=Math.floor(E),D=E%1;!D&&E>=1&&(D=1),D===1&&O--,O=Math.min(O,g+1),!!(O%2)&&(m==="reverse"?(D=1-D,h&&(D-=h/d)):m==="mirror"&&(C=o)),w=gn(0,1,D)*d}const S=b?{done:!1,value:c[0]}:C.next(w);a&&(S.value=a(S.value));let{done:A}=S;!b&&l!==null&&(A=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return R&&r!==void 0&&(S.value=Bo(c,this.options,r)),y&&y(S.value),R&&this.finish(),S}get duration(){const{resolved:t}=this;return t?mn(t.calculatedDuration):0}get time(){return mn(this.currentTime)}set time(t){t=pn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=mn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=uS,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const hS=new Set(["opacity","clipPath","filter","transform"]);function pS(e,t,n,{delay:s=0,duration:r=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:c}={}){const l={[t]:n};c&&(l.offset=c);const u=Dp(a,r);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:s,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const mS=Sl(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),oo=10,gS=2e4;function yS(e){return _l(e.type)||e.type==="spring"||!jp(e.ease)}function vS(e,t){const n=new Ol({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:e[0]};const r=[];let i=0;for(;!s.done&&ithis.onKeyframesResolved(o,a),n,s,r),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:s=300,times:r,ease:i,type:o,motionValue:a,name:c,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&so()&&xS(i)&&(i=um[i]),yS(this.options)){const{onComplete:d,onUpdate:f,motionValue:g,element:m,...h}=this.options,y=vS(t,h);t=y.keyframes,t.length===1&&(t[1]=t[0]),s=y.duration,r=y.times,i=y.ease,o="keyframes"}const u=pS(a.owner.current,c,t,{...this.options,duration:s,times:r,ease:i});return u.startTime=l??this.calcStartTime(),this.pendingTimeline?(Zu(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(Bo(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:s,times:r,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return mn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return mn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=pn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return yt;const{animation:s}=n;Zu(s,t)}return yt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:s,duration:r,type:i,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:u,onComplete:d,element:f,...g}=this.options,m=new Ol({...g,keyframes:s,duration:r,type:i,ease:o,times:a,isGenerator:!0}),h=pn(this.time);l.setWithVelocity(m.sample(h-oo).value,m.sample(h).value,oo)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:s,repeatDelay:r,repeatType:i,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=n.owner.getProps();return mS()&&s&&hS.has(s)&&!c&&!l&&!r&&i!=="mirror"&&o!==0&&a!=="inertia"}}const bS={type:"spring",stiffness:500,damping:25,restSpeed:10},wS=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),SS={type:"keyframes",duration:.8},_S={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},CS=(e,{keyframes:t})=>t.length>2?SS:bs.has(e)?e.startsWith("scale")?wS(t[1]):bS:_S;function TS({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:i,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const jl=(e,t,n,s={},r,i)=>o=>{const a=vl(s,e)||{},c=a.delay||s.delay||0;let{elapsed:l=0}=s;l=l-pn(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:r};TS(a)||(u={...u,...CS(e,u)}),u.duration&&(u.duration=pn(u.duration)),u.repeatDelay&&(u.repeatDelay=pn(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=Bo(u.keyframes,a);if(f!==void 0)return Ce.update(()=>{u.onUpdate(f),u.onComplete()}),new r0([])}return!i&&ad.supports(u)?new ad(u):new Ol(u)};function ES({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function dm(e,t,{delay:n=0,transitionOverride:s,type:r}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...c}=t;s&&(o=s);const l=[],u=r&&e.animationState&&e.animationState.getState()[r];for(const d in c){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),g=c[d];if(g===void 0||u&&ES(u,d))continue;const m={delay:n,...vl(o||{},d)};let h=!1;if(window.MotionHandoffAnimation){const v=Np(e);if(v){const b=window.MotionHandoffAnimation(v,d,Ce);b!==null&&(m.startTime=b,h=!0)}}qa(e,d),f.start(jl(d,f,g,e.shouldReduceMotion&&Rp.has(d)?{type:!1}:m,e,h));const y=f.animation;y&&l.push(y)}return a&&Promise.all(l).then(()=>{Ce.update(()=>{a&&e0(e,a)})}),l}function tc(e,t,n={}){var s;const r=Vo(e,t,n.type==="exit"?(s=e.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(dm(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return AS(e,t,u+l,d,f,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[l,u]=c==="beforeChildren"?[o,a]:[a,o];return l().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function AS(e,t,n=0,s=0,r=1,i){const o=[],a=(e.variantChildren.size-1)*s,c=r===1?(l=0)=>l*s:(l=0)=>a-l*s;return Array.from(e.variantChildren).sort(PS).forEach((l,u)=>{l.notify("AnimationStart",t),o.push(tc(l,t,{...i,delay:n+c(u)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function PS(e,t){return e.sortNodePosition(t)}function RS(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const r=t.map(i=>tc(e,i,n));s=Promise.all(r)}else if(typeof t=="string")s=tc(e,t,n);else{const r=typeof t=="function"?Vo(e,t,n.custom):t;s=Promise.all(dm(e,r,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const kS=il.length;function fm(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?fm(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:s})=>RS(e,n,s)))}function DS(e){let t=jS(e),n=cd(),s=!0;const r=c=>(l,u)=>{var d;const f=Vo(e,u,c==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:g,transitionEnd:m,...h}=f;l={...l,...h,...m}}return l};function i(c){t=c(e)}function o(c){const{props:l}=e,u=fm(e.parent)||{},d=[],f=new Set;let g={},m=1/0;for(let y=0;ym&&C,O=!1;const D=Array.isArray(w)?w:[w];let L=D.reduce(r(v),{});S===!1&&(L={});const{prevResolvedValues:j={}}=b,$={...j,...L},W=Z=>{E=!0,f.has(Z)&&(O=!0,f.delete(Z)),b.needsAnimating[Z]=!0;const q=e.getValue(Z);q&&(q.liveStyle=!1)};for(const Z in $){const q=L[Z],re=j[Z];if(g.hasOwnProperty(Z))continue;let me=!1;Ha(q)&&Ha(re)?me=!Pp(q,re):me=q!==re,me?q!=null?W(Z):f.add(Z):q!==void 0&&f.has(Z)?W(Z):b.protectedKeys[Z]=!0}b.prevProp=w,b.prevResolvedValues=L,b.isActive&&(g={...g,...L}),s&&e.blockInitialAnimation&&(E=!1),E&&(!(A&&R)||O)&&d.push(...D.map(Z=>({animation:Z,options:{type:v}})))}if(f.size){const y={};f.forEach(v=>{const b=e.getBaseTarget(v),w=e.getValue(v);w&&(w.liveStyle=!0),y[v]=b??null}),d.push({animation:y})}let h=!!d.length;return s&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(h=!1),s=!1,h?t(d):Promise.resolve()}function a(c,l){var u;if(n[c].isActive===l)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(f=>{var g;return(g=f.animationState)===null||g===void 0?void 0:g.setActive(c,l)}),n[c].isActive=l;const d=o(c);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=cd(),s=!0}}}function MS(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Pp(t,e):!1}function Zn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function cd(){return{animate:Zn(!0),whileInView:Zn(),whileHover:Zn(),whileTap:Zn(),whileDrag:Zn(),whileFocus:Zn(),exit:Zn()}}class zn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class FS extends zn{constructor(t){super(t),t.animationState||(t.animationState=DS(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Lo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let LS=0;class IS extends zn{constructor(){super(...arguments),this.id=LS++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const VS={animation:{Feature:FS},exit:{Feature:IS}},Rt={x:!1,y:!1};function hm(){return Rt.x||Rt.y}function BS(e){return e==="x"||e==="y"?Rt[e]?null:(Rt[e]=!0,()=>{Rt[e]=!1}):Rt.x||Rt.y?null:(Rt.x=Rt.y=!0,()=>{Rt.x=Rt.y=!1})}const Dl=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Hr(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function bi(e){return{point:{x:e.pageX,y:e.pageY}}}const US=e=>t=>Dl(t)&&e(t,bi(t));function jr(e,t,n,s){return Hr(e,t,US(n),s)}const ld=(e,t)=>Math.abs(e-t);function $S(e,t){const n=ld(e.x,t.x),s=ld(e.y,t.y);return Math.sqrt(n**2+s**2)}class pm{constructor(t,n,{transformPagePoint:s,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=ya(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,g=$S(d.offset,{x:0,y:0})>=3;if(!f&&!g)return;const{point:m}=d,{timestamp:h}=$e;this.history.push({...m,timestamp:h});const{onStart:y,onMove:v}=this.handlers;f||(y&&y(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=ga(f,this.transformPagePoint),Ce.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:g,onSessionEnd:m,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=ya(d.type==="pointercancel"?this.lastMoveEventInfo:ga(f,this.transformPagePoint),this.history);this.startEvent&&g&&g(d,y),m&&m(d,y)},!Dl(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=s,this.contextWindow=r||window;const o=bi(t),a=ga(o,this.transformPagePoint),{point:c}=a,{timestamp:l}=$e;this.history=[{...c,timestamp:l}];const{onSessionStart:u}=n;u&&u(t,ya(a,this.history)),this.removeListeners=xi(jr(this.contextWindow,"pointermove",this.handlePointerMove),jr(this.contextWindow,"pointerup",this.handlePointerUp),jr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Dn(this.updatePoint)}}function ga(e,t){return t?{point:t(e.point)}:e}function ud(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ya({point:e},t){return{point:e,delta:ud(e,mm(t)),offset:ud(e,zS(t)),velocity:WS(t,.1)}}function zS(e){return e[0]}function mm(e){return e[e.length-1]}function WS(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const r=mm(e);for(;n>=0&&(s=e[n],!(r.timestamp-s.timestamp>pn(t)));)n--;if(!s)return{x:0,y:0};const i=mn(r.timestamp-s.timestamp);if(i===0)return{x:0,y:0};const o={x:(r.x-s.x)/i,y:(r.y-s.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const gm=1e-4,HS=1-gm,qS=1+gm,ym=.01,ZS=0-ym,KS=0+ym;function tt(e){return e.max-e.min}function GS(e,t,n){return Math.abs(e-t)<=n}function dd(e,t,n,s=.5){e.origin=s,e.originPoint=Ee(t.min,t.max,e.origin),e.scale=tt(n)/tt(t),e.translate=Ee(n.min,n.max,e.origin)-e.originPoint,(e.scale>=HS&&e.scale<=qS||isNaN(e.scale))&&(e.scale=1),(e.translate>=ZS&&e.translate<=KS||isNaN(e.translate))&&(e.translate=0)}function Dr(e,t,n,s){dd(e.x,t.x,n.x,s?s.originX:void 0),dd(e.y,t.y,n.y,s?s.originY:void 0)}function fd(e,t,n){e.min=n.min+t.min,e.max=e.min+tt(t)}function QS(e,t,n){fd(e.x,t.x,n.x),fd(e.y,t.y,n.y)}function hd(e,t,n){e.min=t.min-n.min,e.max=e.min+tt(t)}function Mr(e,t,n){hd(e.x,t.x,n.x),hd(e.y,t.y,n.y)}function XS(e,{min:t,max:n},s){return t!==void 0&&en&&(e=s?Ee(n,e,s.max):Math.min(e,n)),e}function pd(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function YS(e,{top:t,left:n,bottom:s,right:r}){return{x:pd(e.x,n,r),y:pd(e.y,t,s)}}function md(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.mins?n=Js(t.min,t.max-s,e.min):s>r&&(n=Js(e.min,e.max-r,t.min)),gn(0,1,n)}function t_(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const nc=.35;function n_(e=nc){return e===!1?e=0:e===!0&&(e=nc),{x:gd(e,"left","right"),y:gd(e,"top","bottom")}}function gd(e,t,n){return{min:yd(e,t),max:yd(e,n)}}function yd(e,t){return typeof e=="number"?e:e[t]||0}const vd=()=>({translate:0,scale:1,origin:0,originPoint:0}),ks=()=>({x:vd(),y:vd()}),xd=()=>({min:0,max:0}),je=()=>({x:xd(),y:xd()});function _t(e){return[e("x"),e("y")]}function vm({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function s_({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function r_(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function va(e){return e===void 0||e===1}function sc({scale:e,scaleX:t,scaleY:n}){return!va(e)||!va(t)||!va(n)}function Kn(e){return sc(e)||xm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function xm(e){return bd(e.x)||bd(e.y)}function bd(e){return e&&e!=="0%"}function ao(e,t,n){const s=e-n,r=t*s;return n+r}function wd(e,t,n,s,r){return r!==void 0&&(e=ao(e,r,s)),ao(e,n,s)+t}function rc(e,t=0,n=1,s,r){e.min=wd(e.min,t,n,s,r),e.max=wd(e.max,t,n,s,r)}function bm(e,{x:t,y:n}){rc(e.x,t.translate,t.scale,t.originPoint),rc(e.y,n.translate,n.scale,n.originPoint)}const Sd=.999999999999,_d=1.0000000000001;function i_(e,t,n,s=!1){const r=n.length;if(!r)return;t.x=t.y=1;let i,o;for(let a=0;aSd&&(t.x=1),t.y<_d&&t.y>Sd&&(t.y=1)}function Ns(e,t){e.min=e.min+t,e.max=e.max+t}function Cd(e,t,n,s,r=.5){const i=Ee(e.min,e.max,r);rc(e,t,n,i,s)}function Os(e,t){Cd(e.x,t.x,t.scaleX,t.scale,t.originX),Cd(e.y,t.y,t.scaleY,t.scale,t.originY)}function wm(e,t){return vm(r_(e.getBoundingClientRect(),t))}function o_(e,t,n){const s=wm(e,n),{scroll:r}=t;return r&&(Ns(s.x,r.offset.x),Ns(s.y,r.offset.y)),s}const Sm=({current:e})=>e?e.ownerDocument.defaultView:null,a_=new WeakMap;class c_{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=je(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const r=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(bi(u).point)},i=(u,d)=>{const{drag:f,dragPropagation:g,onDragStart:m}=this.getProps();if(f&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=BS(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),_t(y=>{let v=this.getAxisMotionValue(y).get()||0;if(Jt.test(v)){const{projection:b}=this.visualElement;if(b&&b.layout){const w=b.layout.layoutBox[y];w&&(v=tt(w)*(parseFloat(v)/100))}}this.originPoint[y]=v}),m&&Ce.postRender(()=>m(u,d)),qa(this.visualElement,"transform");const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:f,dragDirectionLock:g,onDirectionLock:m,onDrag:h}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=d;if(g&&this.currentDirection===null){this.currentDirection=l_(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,y),this.updateAxis("y",d.point,y),this.visualElement.render(),h&&h(u,d)},a=(u,d)=>this.stop(u,d),c=()=>_t(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new pm(t,{onSessionStart:r,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:Sm(this.visualElement)})}stop(t,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:i}=this.getProps();i&&Ce.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,s){const{drag:r}=this.getProps();if(!s||!Bi(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(o=XS(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:s}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Ps(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=YS(r.layoutBox,n):this.constraints=!1,this.elastic=n_(s),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&_t(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=t_(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ps(t))return!1;const s=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=o_(s,r.root,this.visualElement.getTransformPagePoint());let o=JS(r.layout.layoutBox,i);if(n){const a=n(s_(o));this.hasMutatedConstraints=!!a,a&&(o=vm(a))}return o}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=_t(u=>{if(!Bi(u,n,this.currentDirection))return;let d=c[u]||{};o&&(d={min:0,max:0});const f=r?200:1e6,g=r?40:1e7,m={type:"inertia",velocity:s?t[u]:0,bounceStiffness:f,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,m)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return qa(this.visualElement,t),s.start(jl(t,s,0,n,this.visualElement,!1))}stopAnimation(){_t(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){_t(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),r=s[n];return r||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){_t(n=>{const{drag:s}=this.getProps();if(!Bi(n,s,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(n);if(r&&r.layout){const{min:o,max:a}=r.layout.layoutBox[n];i.set(t[n]-Ee(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Ps(n)||!s||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};_t(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();r[o]=e_({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),_t(o=>{if(!Bi(o,t,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(Ee(c,l,r[o]))})}addListeners(){if(!this.visualElement.current)return;a_.set(this.visualElement,this);const t=this.visualElement.current,n=jr(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),s=()=>{const{dragConstraints:c}=this.getProps();Ps(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",s);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Ce.read(s);const o=Hr(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(_t(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=c[u].translate,d.set(d.get()+c[u].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=nc,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Bi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function l_(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class u_ extends zn{constructor(t){super(t),this.removeGroupControls=yt,this.removeListeners=yt,this.controls=new c_(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||yt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Td=e=>(t,n)=>{e&&Ce.postRender(()=>e(t,n))};class d_ extends zn{constructor(){super(...arguments),this.removePointerDownListener=yt}onPointerDown(t){this.session=new pm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Sm(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:r}=this.node.getProps();return{onSessionStart:Td(t),onStart:Td(n),onMove:s,onEnd:(i,o)=>{delete this.session,r&&Ce.postRender(()=>r(i,o))}}}mount(){this.removePointerDownListener=jr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Gi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ed(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const wr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(J.test(e))e=parseFloat(e);else return e;const n=Ed(e,t.target.x),s=Ed(e,t.target.y);return`${n}% ${s}%`}},f_={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,r=Mn.parse(e);if(r.length>5)return s;const i=Mn.createTransformer(e),o=typeof r[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=c;const l=Ee(a,c,.5);return typeof r[2+o]=="number"&&(r[2+o]/=l),typeof r[3+o]=="number"&&(r[3+o]/=l),i(r)}};class h_ extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:r}=this.props,{projection:i}=t;Bw(p_),i&&(n.group&&n.group.add(i),s&&s.register&&r&&s.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Gi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:r,isPresent:i}=this.props,o=s.projection;return o&&(o.isPresent=i,r||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Ce.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),al.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),s&&s.deregister&&s.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function _m(e){const[t,n]=lp(),s=x.useContext(el);return p.jsx(h_,{...e,layoutGroup:s,switchLayoutGroup:x.useContext(gp),isPresent:t,safeToRemove:n})}const p_={borderRadius:{...wr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wr,borderTopRightRadius:wr,borderBottomLeftRadius:wr,borderBottomRightRadius:wr,boxShadow:f_};function m_(e,t,n){const s=Ge(e)?e:zr(e);return s.start(jl("",s,t,n)),s.animation}function g_(e){return e instanceof SVGElement&&e.tagName!=="svg"}const y_=(e,t)=>e.depth-t.depth;class v_{constructor(){this.children=[],this.isDirty=!1}add(t){xl(this.children,t),this.isDirty=!0}remove(t){bl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(y_),this.isDirty=!1,this.children.forEach(t)}}function x_(e,t){const n=en.now(),s=({timestamp:r})=>{const i=r-n;i>=t&&(Dn(s),e(i-t))};return Ce.read(s,!0),()=>Dn(s)}const Cm=["TopLeft","TopRight","BottomLeft","BottomRight"],b_=Cm.length,Ad=e=>typeof e=="string"?parseFloat(e):e,Pd=e=>typeof e=="number"||J.test(e);function w_(e,t,n,s,r,i){r?(e.opacity=Ee(0,n.opacity!==void 0?n.opacity:1,S_(s)),e.opacityExit=Ee(t.opacity!==void 0?t.opacity:1,0,__(s))):i&&(e.opacity=Ee(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let o=0;ost?1:n(Js(e,t,s))}function kd(e,t){e.min=t.min,e.max=t.max}function St(e,t){kd(e.x,t.x),kd(e.y,t.y)}function Nd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Od(e,t,n,s,r){return e-=t,e=ao(e,1/n,s),r!==void 0&&(e=ao(e,1/r,s)),e}function C_(e,t=0,n=1,s=.5,r,i=e,o=e){if(Jt.test(t)&&(t=parseFloat(t),t=Ee(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Ee(i.min,i.max,s);e===i&&(a-=t),e.min=Od(e.min,t,n,a,r),e.max=Od(e.max,t,n,a,r)}function jd(e,t,[n,s,r],i,o){C_(e,t[n],t[s],t[r],t.scale,i,o)}const T_=["x","scaleX","originX"],E_=["y","scaleY","originY"];function Dd(e,t,n,s){jd(e.x,t,T_,n?n.x:void 0,s?s.x:void 0),jd(e.y,t,E_,n?n.y:void 0,s?s.y:void 0)}function Md(e){return e.translate===0&&e.scale===1}function Em(e){return Md(e.x)&&Md(e.y)}function Fd(e,t){return e.min===t.min&&e.max===t.max}function A_(e,t){return Fd(e.x,t.x)&&Fd(e.y,t.y)}function Ld(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Am(e,t){return Ld(e.x,t.x)&&Ld(e.y,t.y)}function Id(e){return tt(e.x)/tt(e.y)}function Vd(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class P_{constructor(){this.members=[]}add(t){xl(this.members,t),t.scheduleRender()}remove(t){if(bl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(r=>t===r);if(n===0)return!1;let s;for(let r=n;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1){s=i;break}}return s?(this.promote(s),!0):!1}promote(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,n&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:s}=t;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function R_(e,t,n){let s="";const r=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((r||i||o)&&(s=`translate3d(${r}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:d,rotateY:f,skewX:g,skewY:m}=n;l&&(s=`perspective(${l}px) ${s}`),u&&(s+=`rotate(${u}deg) `),d&&(s+=`rotateX(${d}deg) `),f&&(s+=`rotateY(${f}deg) `),g&&(s+=`skewX(${g}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(s+=`scale(${a}, ${c})`),s||"none"}const Gn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Er=typeof window<"u"&&window.MotionDebug!==void 0,xa=["","X","Y","Z"],k_={visibility:"hidden"},Bd=1e3;let N_=0;function ba(e,t,n,s){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),s&&(s[e]=0))}function Pm(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Np(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ce,!(r||i))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&Pm(s)}function Rm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(o={},a=t==null?void 0:t()){this.id=N_++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Er&&(Gn.totalNodes=Gn.resolvedTargetDeltas=Gn.recalculatedProjection=0),this.nodes.forEach(D_),this.nodes.forEach(V_),this.nodes.forEach(B_),this.nodes.forEach(M_),Er&&window.MotionDebug.record(Gn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;cthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=x_(f,250),Gi.hasAnimatedSinceResize&&(Gi.hasAnimatedSinceResize=!1,this.nodes.forEach($d))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:g,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||u.getDefaultTransition()||H_,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=u.getProps(),b=!this.targetLayout||!Am(this.targetLayout,m),w=!f&&g;if(this.options.layoutRoot||this.resumeFrom||w||f&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,w);const C={...vl(h,"layout"),onPlay:y,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else f||$d(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Dn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(U_),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Pm(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!tt(this.snapshot.measuredBox.x)&&!tt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c{const S=C/1e3;zd(d.x,o.x,S),zd(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),z_(this.relativeTarget,this.relativeTargetOrigin,f,S),w&&A_(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=je()),St(w,this.relativeTarget)),h&&(this.animationValues=u,w_(u,l,this.latestValues,S,b,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Dn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ce.update(()=>{Gi.hasAnimatedSinceResize=!0,this.currentAnimation=m_(0,Bd,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Bd),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=o;if(!(!a||!c||!l)){if(this!==o&&this.layout&&l&&km(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||je();const d=tt(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+d;const f=tt(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+f}St(a,c),Os(a,u),Dr(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new P_),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&ba("z",o,l,this.animationValues);for(let u=0;u{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Ud),this.root.sharedNodes.clear()}}}function O_(e){e.updateLayout()}function j_(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?_t(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],g=tt(f);f.min=s[d].min,f.max=f.min+g}):km(i,n.layoutBox,s)&&_t(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],g=tt(s[d]);f.max=f.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+g)});const a=ks();Dr(a,s,n.layoutBox);const c=ks();o?Dr(c,e.applyTransform(r,!0),n.measuredBox):Dr(c,s,n.layoutBox);const l=!Em(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:g}=d;if(f&&g){const m=je();Mr(m,n.layoutBox,f.layoutBox);const h=je();Mr(h,s,g.layoutBox),Am(m,h)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function D_(e){Er&&Gn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function M_(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function F_(e){e.clearSnapshot()}function Ud(e){e.clearMeasurements()}function L_(e){e.isLayoutDirty=!1}function I_(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function $d(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function V_(e){e.resolveTargetDelta()}function B_(e){e.calcProjection()}function U_(e){e.resetSkewAndRotation()}function $_(e){e.removeLeadSnapshot()}function zd(e,t,n){e.translate=Ee(t.translate,0,n),e.scale=Ee(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Wd(e,t,n,s){e.min=Ee(t.min,n.min,s),e.max=Ee(t.max,n.max,s)}function z_(e,t,n,s){Wd(e.x,t.x,n.x,s),Wd(e.y,t.y,n.y,s)}function W_(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const H_={duration:.45,ease:[.4,0,.1,1]},Hd=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),qd=Hd("applewebkit/")&&!Hd("chrome/")?Math.round:yt;function Zd(e){e.min=qd(e.min),e.max=qd(e.max)}function q_(e){Zd(e.x),Zd(e.y)}function km(e,t,n){return e==="position"||e==="preserve-aspect"&&!GS(Id(t),Id(n),.2)}function Z_(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const K_=Rm({attachResizeListener:(e,t)=>Hr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wa={current:void 0},Nm=Rm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wa.current){const e=new K_({});e.mount(window),e.setOptions({layoutScroll:!0}),wa.current=e}return wa.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),G_={pan:{Feature:d_},drag:{Feature:u_,ProjectionNode:Nm,MeasureLayout:_m}};function Q_(e,t,n){var s;if(e instanceof Element)return[e];if(typeof e=="string"){let r=document;const i=(s=void 0)!==null&&s!==void 0?s:r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Om(e,t){const n=Q_(e),s=new AbortController,r={passive:!0,...t,signal:s.signal};return[n,r,()=>s.abort()]}function Kd(e){return!(e.pointerType==="touch"||hm())}function X_(e,t,n={}){const[s,r,i]=Om(e,n),o=a=>{if(!Kd(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=d=>{Kd(d)&&(l(d),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,r)};return s.forEach(a=>{a.addEventListener("pointerenter",o,r)}),i}function Gd(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,i=s[r];i&&Ce.postRender(()=>i(t,bi(t)))}class Y_ extends zn{mount(){const{current:t}=this.node;t&&(this.unmount=X_(t,(n,s)=>(Gd(this.node,s,"Start"),r=>Gd(this.node,r,"End"))))}unmount(){}}class J_ extends zn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=xi(Hr(this.node.current,"focus",()=>this.onFocus()),Hr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const jm=(e,t)=>t?e===t?!0:jm(e,t.parentElement):!1,eC=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function tC(e){return eC.has(e.tagName)||e.tabIndex!==-1}const Ar=new WeakSet;function Qd(e){return t=>{t.key==="Enter"&&e(t)}}function Sa(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const nC=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=Qd(()=>{if(Ar.has(n))return;Sa(n,"down");const r=Qd(()=>{Sa(n,"up")}),i=()=>Sa(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function Xd(e){return Dl(e)&&!hm()}function sC(e,t,n={}){const[s,r,i]=Om(e,n),o=a=>{const c=a.currentTarget;if(!Xd(a)||Ar.has(c))return;Ar.add(c);const l=t(c,a),u=(g,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!Xd(g)||!Ar.has(c))&&(Ar.delete(c),typeof l=="function"&&l(g,{success:m}))},d=g=>{u(g,n.useGlobalTarget||jm(c,g.target))},f=g=>{u(g,!1)};window.addEventListener("pointerup",d,r),window.addEventListener("pointercancel",f,r)};return s.forEach(a=>{!tC(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,r),a.addEventListener("focus",l=>nC(l,r),r)}),i}function Yd(e,t,n){const{props:s}=e;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),i=s[r];i&&Ce.postRender(()=>i(t,bi(t)))}class rC extends zn{mount(){const{current:t}=this.node;t&&(this.unmount=sC(t,(n,s)=>(Yd(this.node,s,"Start"),(r,{success:i})=>Yd(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ic=new WeakMap,_a=new WeakMap,iC=e=>{const t=ic.get(e.target);t&&t(e)},oC=e=>{e.forEach(iC)};function aC({root:e,...t}){const n=e||document;_a.has(n)||_a.set(n,{});const s=_a.get(n),r=JSON.stringify(t);return s[r]||(s[r]=new IntersectionObserver(oC,{root:e,...t})),s[r]}function cC(e,t,n){const s=aC(t);return ic.set(e,n),s.observe(e),()=>{ic.delete(e),s.unobserve(e)}}const lC={some:0,all:1};class uC extends zn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof r=="number"?r:lC[r]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=l?u:d;f&&f(c)};return cC(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(dC(t,n))&&this.startObserver()}unmount(){}}function dC({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const fC={inView:{Feature:uC},tap:{Feature:rC},focus:{Feature:J_},hover:{Feature:Y_}},hC={layout:{ProjectionNode:Nm,MeasureLayout:_m}},oc={current:null},Dm={current:!1};function pC(){if(Dm.current=!0,!!sl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>oc.current=e.matches;e.addListener(t),t()}else oc.current=!1}const mC=[...tm,Ze,Mn],gC=e=>mC.find(em(e)),Jd=new WeakMap;function yC(e,t,n){for(const s in t){const r=t[s],i=n[s];if(Ge(r))e.addValue(s,r);else if(Ge(i))e.addValue(s,zr(r,{owner:e}));else if(i!==r)if(e.hasValue(s)){const o=e.getValue(s);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=e.getStaticValue(s);e.addValue(s,zr(o!==void 0?o:r,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const ef=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class vC{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=kl,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=en.now();this.renderScheduledAtthis.bindToMotionValue(s,n)),Dm.current||pC(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:oc.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Jd.delete(this.current),this.projection&&this.projection.unmount(),Dn(this.notifyUpdate),Dn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=bs.has(t),r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ce.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ys){const n=Ys[t];if(!n)continue;const{isEnabled:s,Feature:r}=n;if(!this.features[t]&&r&&s(this.props)&&(this.features[t]=new r(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):je()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;sn.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=zr(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){var s;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Yp(r)||zp(r))?r=parseFloat(r):!gC(r)&&Mn.test(n)&&(r=Gp(t,n)),this.setBaseTarget(t,Ge(r)?r.get():r)),Ge(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const o=ll(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(r=o[t])}if(s&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ge(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new wl),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Mm extends vC{constructor(){super(...arguments),this.KeyframeResolver=nm}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ge(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function xC(e){return window.getComputedStyle(e)}class bC extends Mm{constructor(){super(...arguments),this.type="html",this.renderInstance=Sp}readValueFromInstance(t,n){if(bs.has(n)){const s=Rl(n);return s&&s.default||0}else{const s=xC(t),r=(ul(n)?s.getPropertyValue(n):s[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return wm(t,n)}build(t,n,s){hl(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return yl(t,n,s)}}class wC extends Mm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=je}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(bs.has(n)){const s=Rl(n);return s&&s.default||0}return n=_p.has(n)?n:ol(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return Ep(t,n,s)}build(t,n,s){pl(t,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,s,r){Cp(t,n,s,r)}mount(t){this.isSVGTag=gl(t.tagName),super.mount(t)}}const SC=(e,t)=>cl(e)?new wC(t):new bC(t,{allowProjection:e!==x.Fragment}),_C=Gw({...VS,...fC,...G_,...hC},SC),Fr=uw(_C);var Ca,tf;function CC(){if(tf)return Ca;tf=1;var e="Expected a function",t=NaN,n="[object Symbol]",s=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,c=typeof Ni=="object"&&Ni&&Ni.Object===Object&&Ni,l=typeof self=="object"&&self&&self.Object===Object&&self,u=c||l||Function("return this")(),d=Object.prototype,f=d.toString,g=Math.max,m=Math.min,h=function(){return u.Date.now()};function y(S,A,R){var E,O,D,L,j,$,W=0,se=!1,Y=!1,Z=!0;if(typeof S!="function")throw new TypeError(e);A=C(A)||0,v(R)&&(se=!!R.leading,Y="maxWait"in R,D=Y?g(C(R.maxWait)||0,A):D,Z="trailing"in R?!!R.trailing:Z);function q(ue){var ye=E,Ne=O;return E=O=void 0,W=ue,L=S.apply(Ne,ye),L}function re(ue){return W=ue,j=setTimeout(We,A),se?q(ue):L}function me(ue){var ye=ue-$,Ne=ue-W,Le=A-ye;return Y?m(Le,D-Ne):Le}function ge(ue){var ye=ue-$,Ne=ue-W;return $===void 0||ye>=A||ye<0||Y&&Ne>=D}function We(){var ue=h();if(ge(ue))return ht(ue);j=setTimeout(We,me(ue))}function ht(ue){return j=void 0,Z&&E?q(ue):(E=O=void 0,L)}function He(){j!==void 0&&clearTimeout(j),W=0,E=$=O=j=void 0}function Pt(){return j===void 0?L:ht(h())}function Xe(){var ue=h(),ye=ge(ue);if(E=arguments,O=this,$=ue,ye){if(j===void 0)return re($);if(Y)return j=setTimeout(We,A),q($)}return j===void 0&&(j=setTimeout(We,A)),L}return Xe.cancel=He,Xe.flush=Pt,Xe}function v(S){var A=typeof S;return!!S&&(A=="object"||A=="function")}function b(S){return!!S&&typeof S=="object"}function w(S){return typeof S=="symbol"||b(S)&&f.call(S)==n}function C(S){if(typeof S=="number")return S;if(w(S))return t;if(v(S)){var A=typeof S.valueOf=="function"?S.valueOf():S;S=v(A)?A+"":A}if(typeof S!="string")return S===0?S:+S;S=S.replace(s,"");var R=i.test(S);return R||o.test(S)?a(S.slice(2),R?2:8):r.test(S)?t:+S}return Ca=y,Ca}CC();var Fm=typeof window<"u"?x.useLayoutEffect:x.useEffect,TC=typeof window>"u";function co(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const s=a=>TC?t:window.matchMedia(a).matches,[r,i]=x.useState(()=>n?s(e):t);function o(){i(s(e))}return Fm(()=>{const a=window.matchMedia(e);return o(),a.addListener?a.addListener(o):a.addEventListener("change",o),()=>{a.removeListener?a.removeListener(o):a.removeEventListener("change",o)}},[e]),r}var EC=typeof window>"u";function AC(e={}){const{autoLock:t=!0,lockTarget:n,widthReflow:s=!0}=e,[r,i]=x.useState(!1),o=x.useRef(null),a=x.useRef(null),c=()=>{if(o.current){const{overflow:u,paddingRight:d}=o.current.style;if(a.current={overflow:u,paddingRight:d},s){const f=o.current===document.body?window.innerWidth:o.current.offsetWidth,g=parseInt(window.getComputedStyle(o.current).paddingRight,10)||0,m=f-o.current.scrollWidth;o.current.style.paddingRight=`${m+g}px`}o.current.style.overflow="hidden",i(!0)}},l=()=>{o.current&&a.current&&(o.current.style.overflow=a.current.overflow,s&&(o.current.style.paddingRight=a.current.paddingRight)),i(!1)};return Fm(()=>{if(!EC)return n&&(o.current=typeof n=="string"?document.querySelector(n):n),o.current||(o.current=document.body),t&&c(),()=>{l()}},[t,n,s]),{isLocked:r,lock:c,unlock:l}}const a1=({className:e,stage:t})=>{const n=co("(min-width: 768px");return p.jsx("div",{className:e,children:p.jsx("div",{className:"max-w-[808px] md:mx-auto my-20 mx-5",children:p.jsxs("div",{className:"relative h-14 w-full",children:[p.jsx("div",{className:K("h-2 absolute bg-[#D0D3D8] rounded-[2px] w-full top-0 left-0")}),p.jsx(Fr.div,{initial:{width:0},animate:t===2?{width:"20%"}:t===3&&{width:"75%"},transition:{delay:.5,duration:.5},className:K("h-2 absolute bg-primary rounded-[2px] top-0 left-0 z-[5]",{"w-0 bg-opacity-0":t===1,"w-[20%]":t===2,"w-[75%]":t===3})}),p.jsx(Fr.div,{initial:{width:n?"50%":"35%"},animate:t===2?{width:"75%"}:t===3&&{width:"100%"},className:K("bg-reverse_primary w-1/2 absolute top-0 left-0 rounded-[2px] z-[3] h-2")}),p.jsx(Fr.div,{className:K("progress-circle absolute transition-all duration-500 -top-6 flex items-center justify-center",{"bg-reverse_primary md:left-1/2 left-1/3":t===1,"bg-primary left-[20%] !text-on_primary":t===2||t===3}),children:"1"}),p.jsx("div",{className:K("progress-circle absolute -top-6 right-[17%] transition-all -translate-x-1/2 flex items-center justify-center",{"bg-[#D0D3D8]":t===1,"bg-reverse_primary":t===2,"bg-primary !text-on_primary":t===3}),children:"2"}),p.jsx("div",{className:K("progress-circle absolute -top-6 right-0 transition-all duration-500 flex items-center justify-center",{"bg-[#D0D3D8]":t===1||t===2,"bg-reverse_primary":t===3}),children:"3"})]})})})};var wi=e=>e.type==="checkbox",Xn=e=>e instanceof Date,et=e=>e==null;const Lm=e=>typeof e=="object";var Fe=e=>!et(e)&&!Array.isArray(e)&&Lm(e)&&!Xn(e),Im=e=>Fe(e)&&e.target?wi(e.target)?e.target.checked:e.target.value:e,PC=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Vm=(e,t)=>e.has(PC(t)),RC=e=>{const t=e.constructor&&e.constructor.prototype;return Fe(t)&&t.hasOwnProperty("isPrototypeOf")},Ml=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ot(e){let t;const n=Array.isArray(e),s=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Ml&&(e instanceof Blob||s))&&(n||Fe(e)))if(t=n?[]:{},!n&&!RC(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=ot(e[r]));else return e;return t}var Uo=e=>Array.isArray(e)?e.filter(Boolean):[],De=e=>e===void 0,V=(e,t,n)=>{if(!t||!Fe(e))return n;const s=Uo(t.split(/[,[\].]+?/)).reduce((r,i)=>et(r)?r:r[i],e);return De(s)||s===e?De(e[t])?n:e[t]:s},Et=e=>typeof e=="boolean",Fl=e=>/^\w*$/.test(e),Bm=e=>Uo(e.replace(/["|']|\]/g,"").split(/\.|\[/)),xe=(e,t,n)=>{let s=-1;const r=Fl(t)?[t]:Bm(t),i=r.length,o=i-1;for(;++sve.useContext(Um),kC=e=>{const{children:t,...n}=e;return ve.createElement(Um.Provider,{value:n},t)};var $m=(e,t,n,s=!0)=>{const r={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(r,i,{get:()=>{const o=i;return t._proxyFormState[o]!==jt.all&&(t._proxyFormState[o]=!s||jt.all),n&&(n[o]=!0),e[o]}});return r},ct=e=>Fe(e)&&!Object.keys(e).length,zm=(e,t,n,s)=>{n(e);const{name:r,...i}=e;return ct(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!s||jt.all))},Lr=e=>Array.isArray(e)?e:[e],Wm=(e,t,n)=>!e||!t||e===t||Lr(e).some(s=>s&&(n?s===t:s.startsWith(t)||t.startsWith(s)));function Ll(e){const t=ve.useRef(e);t.current=e,ve.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function NC(e){const t=$o(),{control:n=t.control,disabled:s,name:r,exact:i}=e,[o,a]=ve.useState(n._formState),c=ve.useRef(!0),l=ve.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=ve.useRef(r);return u.current=r,Ll({disabled:s,next:d=>c.current&&Wm(u.current,d.name,i)&&zm(d,l.current,n._updateFormState)&&a({...n._formState,...d}),subject:n._subjects.state}),ve.useEffect(()=>(c.current=!0,l.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),ve.useMemo(()=>$m(o,n,l.current,!1),[o,n])}var Yt=e=>typeof e=="string",Hm=(e,t,n,s,r)=>Yt(e)?(s&&t.watch.add(e),V(n,e,r)):Array.isArray(e)?e.map(i=>(s&&t.watch.add(i),V(n,i))):(s&&(t.watchAll=!0),n);function OC(e){const t=$o(),{control:n=t.control,name:s,defaultValue:r,disabled:i,exact:o}=e,a=ve.useRef(s);a.current=s,Ll({disabled:i,subject:n._subjects.values,next:u=>{Wm(a.current,u.name,o)&&l(ot(Hm(a.current,n._names,u.values||n._formValues,!1,r)))}});const[c,l]=ve.useState(n._getWatch(s,r));return ve.useEffect(()=>n._removeUnmounted()),c}function jC(e){const t=$o(),{name:n,disabled:s,control:r=t.control,shouldUnregister:i}=e,o=Vm(r._names.array,n),a=OC({control:r,name:n,defaultValue:V(r._formValues,n,V(r._defaultValues,n,e.defaultValue)),exact:!0}),c=NC({control:r,name:n,exact:!0}),l=ve.useRef(r.register(n,{...e.rules,value:a,...Et(e.disabled)?{disabled:e.disabled}:{}})),u=ve.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!V(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!V(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!V(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!V(c.validatingFields,n)},error:{enumerable:!0,get:()=>V(c.errors,n)}}),[c,n]),d=ve.useMemo(()=>({name:n,value:a,...Et(s)||c.disabled?{disabled:c.disabled||s}:{},onChange:f=>l.current.onChange({target:{value:Im(f),name:n},type:lo.CHANGE}),onBlur:()=>l.current.onBlur({target:{value:V(r._formValues,n),name:n},type:lo.BLUR}),ref:f=>{const g=V(r._fields,n);g&&f&&(g._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:m=>f.setCustomValidity(m),reportValidity:()=>f.reportValidity()})}}),[n,r._formValues,s,c.disabled,a,r._fields]);return ve.useEffect(()=>{const f=r._options.shouldUnregister||i,g=(m,h)=>{const y=V(r._fields,m);y&&y._f&&(y._f.mount=h)};if(g(n,!0),f){const m=ot(V(r._options.defaultValues,n));xe(r._defaultValues,n,m),De(V(r._formValues,n))&&xe(r._formValues,n,m)}return!o&&r.register(n),()=>{(o?f&&!r._state.action:f)?r.unregister(n):g(n,!1)}},[n,r,o,i]),ve.useEffect(()=>{r._updateDisabledField({disabled:s,fields:r._fields,name:n})},[s,n,r]),ve.useMemo(()=>({field:d,formState:c,fieldState:u}),[d,c,u])}const DC=e=>e.render(jC(e));var qm=(e,t,n,s,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[s]:r||!0}}:{},nf=e=>({isOnSubmit:!e||e===jt.onSubmit,isOnBlur:e===jt.onBlur,isOnChange:e===jt.onChange,isOnAll:e===jt.all,isOnTouch:e===jt.onTouched}),sf=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const Ir=(e,t,n,s)=>{for(const r of n||Object.keys(e)){const i=V(e,r);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],r)&&!s)return!0;if(o.ref&&t(o.ref,o.name)&&!s)return!0;if(Ir(a,t))break}else if(Fe(a)&&Ir(a,t))break}}};var MC=(e,t,n)=>{const s=Lr(V(e,n));return xe(s,"root",t[n]),xe(e,n,s),e},Il=e=>e.type==="file",Xt=e=>typeof e=="function",uo=e=>{if(!Ml)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Qi=e=>Yt(e),Vl=e=>e.type==="radio",fo=e=>e instanceof RegExp;const rf={value:!1,isValid:!1},of={value:!0,isValid:!0};var Zm=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!De(e[0].attributes.value)?De(e[0].value)||e[0].value===""?of:{value:e[0].value,isValid:!0}:of:rf}return rf};const af={isValid:!1,value:null};var Km=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,af):af;function cf(e,t,n="validate"){if(Qi(e)||Array.isArray(e)&&e.every(Qi)||Et(e)&&!e)return{type:n,message:Qi(e)?e:"",ref:t}}var Es=e=>Fe(e)&&!fo(e)?e:{value:e,message:""},lf=async(e,t,n,s,r,i)=>{const{ref:o,refs:a,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:g,validate:m,name:h,valueAsNumber:y,mount:v}=e._f,b=V(n,h);if(!v||t.has(h))return{};const w=a?a[0]:o,C=j=>{r&&w.reportValidity&&(w.setCustomValidity(Et(j)?"":j||""),w.reportValidity())},S={},A=Vl(o),R=wi(o),E=A||R,O=(y||Il(o))&&De(o.value)&&De(b)||uo(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,D=qm.bind(null,h,s,S),L=(j,$,W,se=ln.maxLength,Y=ln.minLength)=>{const Z=j?$:W;S[h]={type:j?se:Y,message:Z,ref:o,...D(j?se:Y,Z)}};if(i?!Array.isArray(b)||!b.length:c&&(!E&&(O||et(b))||Et(b)&&!b||R&&!Zm(a).isValid||A&&!Km(a).isValid)){const{value:j,message:$}=Qi(c)?{value:!!c,message:c}:Es(c);if(j&&(S[h]={type:ln.required,message:$,ref:w,...D(ln.required,$)},!s))return C($),S}if(!O&&(!et(d)||!et(f))){let j,$;const W=Es(f),se=Es(d);if(!et(b)&&!isNaN(b)){const Y=o.valueAsNumber||b&&+b;et(W.value)||(j=Y>W.value),et(se.value)||($=Ynew Date(new Date().toDateString()+" "+me),q=o.type=="time",re=o.type=="week";Yt(W.value)&&b&&(j=q?Z(b)>Z(W.value):re?b>W.value:Y>new Date(W.value)),Yt(se.value)&&b&&($=q?Z(b)+j.value,se=!et($.value)&&b.length<+$.value;if((W||se)&&(L(W,j.message,$.message),!s))return C(S[h].message),S}if(g&&!O&&Yt(b)){const{value:j,message:$}=Es(g);if(fo(j)&&!b.match(j)&&(S[h]={type:ln.pattern,message:$,ref:o,...D(ln.pattern,$)},!s))return C($),S}if(m){if(Xt(m)){const j=await m(b,n),$=cf(j,w);if($&&(S[h]={...$,...D(ln.validate,$.message)},!s))return C($.message),S}else if(Fe(m)){let j={};for(const $ in m){if(!ct(j)&&!s)break;const W=cf(await m[$](b,n),w,$);W&&(j={...W,...D($,W.message)},C(W.message),s&&(S[h]=j))}if(!ct(j)&&(S[h]={ref:w,...j},!s))return S}}return C(!0),S};function FC(e,t){const n=t.slice(0,-1).length;let s=0;for(;s{let e=[];return{get observers(){return e},next:r=>{for(const i of e)i.next&&i.next(r)},subscribe:r=>(e.push(r),{unsubscribe:()=>{e=e.filter(i=>i!==r)}}),unsubscribe:()=>{e=[]}}},ac=e=>et(e)||!Lm(e);function Tn(e,t){if(ac(e)||ac(t))return e===t;if(Xn(e)&&Xn(t))return e.getTime()===t.getTime();const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(const r of n){const i=e[r];if(!s.includes(r))return!1;if(r!=="ref"){const o=t[r];if(Xn(i)&&Xn(o)||Fe(i)&&Fe(o)||Array.isArray(i)&&Array.isArray(o)?!Tn(i,o):i!==o)return!1}}return!0}var Gm=e=>e.type==="select-multiple",IC=e=>Vl(e)||wi(e),Ea=e=>uo(e)&&e.isConnected,Qm=e=>{for(const t in e)if(Xt(e[t]))return!0;return!1};function ho(e,t={}){const n=Array.isArray(e);if(Fe(e)||n)for(const s in e)Array.isArray(e[s])||Fe(e[s])&&!Qm(e[s])?(t[s]=Array.isArray(e[s])?[]:{},ho(e[s],t[s])):et(e[s])||(t[s]=!0);return t}function Xm(e,t,n){const s=Array.isArray(e);if(Fe(e)||s)for(const r in e)Array.isArray(e[r])||Fe(e[r])&&!Qm(e[r])?De(t)||ac(n[r])?n[r]=Array.isArray(e[r])?ho(e[r],[]):{...ho(e[r])}:Xm(e[r],et(t)?{}:t[r],n[r]):n[r]=!Tn(e[r],t[r]);return n}var Sr=(e,t)=>Xm(e,t,ho(t)),Ym=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:s})=>De(e)?e:t?e===""?NaN:e&&+e:n&&Yt(e)?new Date(e):s?s(e):e;function Aa(e){const t=e.ref;return Il(t)?t.files:Vl(t)?Km(e.refs).value:Gm(t)?[...t.selectedOptions].map(({value:n})=>n):wi(t)?Zm(e.refs).value:Ym(De(t.value)?e.ref.value:t.value,e)}var VC=(e,t,n,s)=>{const r={};for(const i of e){const o=V(t,i);o&&xe(r,i,o._f)}return{criteriaMode:n,names:[...e],fields:r,shouldUseNativeValidation:s}},_r=e=>De(e)?e:fo(e)?e.source:Fe(e)?fo(e.value)?e.value.source:e.value:e;const uf="AsyncFunction";var BC=e=>!!e&&!!e.validate&&!!(Xt(e.validate)&&e.validate.constructor.name===uf||Fe(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===uf)),UC=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function df(e,t,n){const s=V(e,n);if(s||Fl(n))return{error:s,name:n};const r=n.split(".");for(;r.length;){const i=r.join("."),o=V(t,i),a=V(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};r.pop()}return{name:n}}var $C=(e,t,n,s,r)=>r.isOnAll?!1:!n&&r.isOnTouch?!(t||e):(n?s.isOnBlur:r.isOnBlur)?!e:(n?s.isOnChange:r.isOnChange)?e:!0,zC=(e,t)=>!Uo(V(e,t)).length&&Be(e,t);const WC={mode:jt.onSubmit,reValidateMode:jt.onChange,shouldFocusError:!0};function HC(e={}){let t={...WC,...e},n={submitCount:0,isDirty:!1,isLoading:Xt(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},s={},r=Fe(t.defaultValues)||Fe(t.values)?ot(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:ot(r),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Ta(),array:Ta(),state:Ta()},f=nf(t.mode),g=nf(t.reValidateMode),m=t.criteriaMode===jt.all,h=_=>P=>{clearTimeout(l),l=setTimeout(_,P)},y=async _=>{if(!t.disabled&&(u.isValid||_)){const P=t.resolver?ct((await E()).errors):await D(s,!0);P!==n.isValid&&d.state.next({isValid:P})}},v=(_,P)=>{!t.disabled&&(u.isValidating||u.validatingFields)&&((_||Array.from(a.mount)).forEach(N=>{N&&(P?xe(n.validatingFields,N,P):Be(n.validatingFields,N))}),d.state.next({validatingFields:n.validatingFields,isValidating:!ct(n.validatingFields)}))},b=(_,P=[],N,B,I=!0,F=!0)=>{if(B&&N&&!t.disabled){if(o.action=!0,F&&Array.isArray(V(s,_))){const X=N(V(s,_),B.argA,B.argB);I&&xe(s,_,X)}if(F&&Array.isArray(V(n.errors,_))){const X=N(V(n.errors,_),B.argA,B.argB);I&&xe(n.errors,_,X),zC(n.errors,_)}if(u.touchedFields&&F&&Array.isArray(V(n.touchedFields,_))){const X=N(V(n.touchedFields,_),B.argA,B.argB);I&&xe(n.touchedFields,_,X)}u.dirtyFields&&(n.dirtyFields=Sr(r,i)),d.state.next({name:_,isDirty:j(_,P),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else xe(i,_,P)},w=(_,P)=>{xe(n.errors,_,P),d.state.next({errors:n.errors})},C=_=>{n.errors=_,d.state.next({errors:n.errors,isValid:!1})},S=(_,P,N,B)=>{const I=V(s,_);if(I){const F=V(i,_,De(N)?V(r,_):N);De(F)||B&&B.defaultChecked||P?xe(i,_,P?F:Aa(I._f)):se(_,F),o.mount&&y()}},A=(_,P,N,B,I)=>{let F=!1,X=!1;const ae={name:_};if(!t.disabled){const Ie=!!(V(s,_)&&V(s,_)._f&&V(s,_)._f.disabled);if(!N||B){u.isDirty&&(X=n.isDirty,n.isDirty=ae.isDirty=j(),F=X!==ae.isDirty);const Oe=Ie||Tn(V(r,_),P);X=!!(!Ie&&V(n.dirtyFields,_)),Oe||Ie?Be(n.dirtyFields,_):xe(n.dirtyFields,_,!0),ae.dirtyFields=n.dirtyFields,F=F||u.dirtyFields&&X!==!Oe}if(N){const Oe=V(n.touchedFields,_);Oe||(xe(n.touchedFields,_,N),ae.touchedFields=n.touchedFields,F=F||u.touchedFields&&Oe!==N)}F&&I&&d.state.next(ae)}return F?ae:{}},R=(_,P,N,B)=>{const I=V(n.errors,_),F=u.isValid&&Et(P)&&n.isValid!==P;if(t.delayError&&N?(c=h(()=>w(_,N)),c(t.delayError)):(clearTimeout(l),c=null,N?xe(n.errors,_,N):Be(n.errors,_)),(N?!Tn(I,N):I)||!ct(B)||F){const X={...B,...F&&Et(P)?{isValid:P}:{},errors:n.errors,name:_};n={...n,...X},d.state.next(X)}},E=async _=>{v(_,!0);const P=await t.resolver(i,t.context,VC(_||a.mount,s,t.criteriaMode,t.shouldUseNativeValidation));return v(_),P},O=async _=>{const{errors:P}=await E(_);if(_)for(const N of _){const B=V(P,N);B?xe(n.errors,N,B):Be(n.errors,N)}else n.errors=P;return P},D=async(_,P,N={valid:!0})=>{for(const B in _){const I=_[B];if(I){const{_f:F,...X}=I;if(F){const ae=a.array.has(F.name),Ie=I._f&&BC(I._f);Ie&&u.validatingFields&&v([B],!0);const Oe=await lf(I,a.disabled,i,m,t.shouldUseNativeValidation&&!P,ae);if(Ie&&u.validatingFields&&v([B]),Oe[F.name]&&(N.valid=!1,P))break;!P&&(V(Oe,F.name)?ae?MC(n.errors,Oe,F.name):xe(n.errors,F.name,Oe[F.name]):Be(n.errors,F.name))}!ct(X)&&await D(X,P,N)}}return N.valid},L=()=>{for(const _ of a.unMount){const P=V(s,_);P&&(P._f.refs?P._f.refs.every(N=>!Ea(N)):!Ea(P._f.ref))&&Xe(_)}a.unMount=new Set},j=(_,P)=>!t.disabled&&(_&&P&&xe(i,_,P),!Tn(ge(),r)),$=(_,P,N)=>Hm(_,a,{...o.mount?i:De(P)?r:Yt(_)?{[_]:P}:P},N,P),W=_=>Uo(V(o.mount?i:r,_,t.shouldUnregister?V(r,_,[]):[])),se=(_,P,N={})=>{const B=V(s,_);let I=P;if(B){const F=B._f;F&&(!F.disabled&&xe(i,_,Ym(P,F)),I=uo(F.ref)&&et(P)?"":P,Gm(F.ref)?[...F.ref.options].forEach(X=>X.selected=I.includes(X.value)):F.refs?wi(F.ref)?F.refs.length>1?F.refs.forEach(X=>(!X.defaultChecked||!X.disabled)&&(X.checked=Array.isArray(I)?!!I.find(ae=>ae===X.value):I===X.value)):F.refs[0]&&(F.refs[0].checked=!!I):F.refs.forEach(X=>X.checked=X.value===I):Il(F.ref)?F.ref.value="":(F.ref.value=I,F.ref.type||d.values.next({name:_,values:{...i}})))}(N.shouldDirty||N.shouldTouch)&&A(_,I,N.shouldTouch,N.shouldDirty,!0),N.shouldValidate&&me(_)},Y=(_,P,N)=>{for(const B in P){const I=P[B],F=`${_}.${B}`,X=V(s,F);(a.array.has(_)||Fe(I)||X&&!X._f)&&!Xn(I)?Y(F,I,N):se(F,I,N)}},Z=(_,P,N={})=>{const B=V(s,_),I=a.array.has(_),F=ot(P);xe(i,_,F),I?(d.array.next({name:_,values:{...i}}),(u.isDirty||u.dirtyFields)&&N.shouldDirty&&d.state.next({name:_,dirtyFields:Sr(r,i),isDirty:j(_,F)})):B&&!B._f&&!et(F)?Y(_,F,N):se(_,F,N),sf(_,a)&&d.state.next({...n}),d.values.next({name:o.mount?_:void 0,values:{...i}})},q=async _=>{o.mount=!0;const P=_.target;let N=P.name,B=!0;const I=V(s,N),F=()=>P.type?Aa(I._f):Im(_),X=ae=>{B=Number.isNaN(ae)||Xn(ae)&&isNaN(ae.getTime())||Tn(ae,V(i,N,ae))};if(I){let ae,Ie;const Oe=F(),zt=_.type===lo.BLUR||_.type===lo.FOCUS_OUT,gr=!UC(I._f)&&!t.resolver&&!V(n.errors,N)&&!I._f.deps||$C(zt,V(n.touchedFields,N),n.isSubmitted,g,f),Wt=sf(N,a,zt);xe(i,N,Oe),zt?(I._f.onBlur&&I._f.onBlur(_),c&&c(0)):I._f.onChange&&I._f.onChange(_);const Hn=A(N,Oe,zt,!1),yr=!ct(Hn)||Wt;if(!zt&&d.values.next({name:N,type:_.type,values:{...i}}),gr)return u.isValid&&(t.mode==="onBlur"&&zt?y():zt||y()),yr&&d.state.next({name:N,...Wt?{}:Hn});if(!zt&&Wt&&d.state.next({...n}),t.resolver){const{errors:qn}=await E([N]);if(X(Oe),B){const ta=df(n.errors,s,N),Ri=df(qn,s,ta.name||N);ae=Ri.error,N=Ri.name,Ie=ct(qn)}}else v([N],!0),ae=(await lf(I,a.disabled,i,m,t.shouldUseNativeValidation))[N],v([N]),X(Oe),B&&(ae?Ie=!1:u.isValid&&(Ie=await D(s,!0)));B&&(I._f.deps&&me(I._f.deps),R(N,Ie,ae,Hn))}},re=(_,P)=>{if(V(n.errors,P)&&_.focus)return _.focus(),1},me=async(_,P={})=>{let N,B;const I=Lr(_);if(t.resolver){const F=await O(De(_)?_:I);N=ct(F),B=_?!I.some(X=>V(F,X)):N}else _?(B=(await Promise.all(I.map(async F=>{const X=V(s,F);return await D(X&&X._f?{[F]:X}:X)}))).every(Boolean),!(!B&&!n.isValid)&&y()):B=N=await D(s);return d.state.next({...!Yt(_)||u.isValid&&N!==n.isValid?{}:{name:_},...t.resolver||!_?{isValid:N}:{},errors:n.errors}),P.shouldFocus&&!B&&Ir(s,re,_?I:a.mount),B},ge=_=>{const P={...o.mount?i:r};return De(_)?P:Yt(_)?V(P,_):_.map(N=>V(P,N))},We=(_,P)=>({invalid:!!V((P||n).errors,_),isDirty:!!V((P||n).dirtyFields,_),error:V((P||n).errors,_),isValidating:!!V(n.validatingFields,_),isTouched:!!V((P||n).touchedFields,_)}),ht=_=>{_&&Lr(_).forEach(P=>Be(n.errors,P)),d.state.next({errors:_?n.errors:{}})},He=(_,P,N)=>{const B=(V(s,_,{_f:{}})._f||{}).ref,I=V(n.errors,_)||{},{ref:F,message:X,type:ae,...Ie}=I;xe(n.errors,_,{...Ie,...P,ref:B}),d.state.next({name:_,errors:n.errors,isValid:!1}),N&&N.shouldFocus&&B&&B.focus&&B.focus()},Pt=(_,P)=>Xt(_)?d.values.subscribe({next:N=>_($(void 0,P),N)}):$(_,P,!0),Xe=(_,P={})=>{for(const N of _?Lr(_):a.mount)a.mount.delete(N),a.array.delete(N),P.keepValue||(Be(s,N),Be(i,N)),!P.keepError&&Be(n.errors,N),!P.keepDirty&&Be(n.dirtyFields,N),!P.keepTouched&&Be(n.touchedFields,N),!P.keepIsValidating&&Be(n.validatingFields,N),!t.shouldUnregister&&!P.keepDefaultValue&&Be(r,N);d.values.next({values:{...i}}),d.state.next({...n,...P.keepDirty?{isDirty:j()}:{}}),!P.keepIsValid&&y()},ue=({disabled:_,name:P,field:N,fields:B})=>{(Et(_)&&o.mount||_||a.disabled.has(P))&&(_?a.disabled.add(P):a.disabled.delete(P),A(P,Aa(N?N._f:V(B,P)._f),!1,!1,!0))},ye=(_,P={})=>{let N=V(s,_);const B=Et(P.disabled)||Et(t.disabled);return xe(s,_,{...N||{},_f:{...N&&N._f?N._f:{ref:{name:_}},name:_,mount:!0,...P}}),a.mount.add(_),N?ue({field:N,disabled:Et(P.disabled)?P.disabled:t.disabled,name:_}):S(_,!0,P.value),{...B?{disabled:P.disabled||t.disabled}:{},...t.progressive?{required:!!P.required,min:_r(P.min),max:_r(P.max),minLength:_r(P.minLength),maxLength:_r(P.maxLength),pattern:_r(P.pattern)}:{},name:_,onChange:q,onBlur:q,ref:I=>{if(I){ye(_,P),N=V(s,_);const F=De(I.value)&&I.querySelectorAll&&I.querySelectorAll("input,select,textarea")[0]||I,X=IC(F),ae=N._f.refs||[];if(X?ae.find(Ie=>Ie===F):F===N._f.ref)return;xe(s,_,{_f:{...N._f,...X?{refs:[...ae.filter(Ea),F,...Array.isArray(V(r,_))?[{}]:[]],ref:{type:F.type,name:_}}:{ref:F}}}),S(_,!1,void 0,F)}else N=V(s,_,{}),N._f&&(N._f.mount=!1),(t.shouldUnregister||P.shouldUnregister)&&!(Vm(a.array,_)&&o.action)&&a.unMount.add(_)}}},Ne=()=>t.shouldFocusError&&Ir(s,re,a.mount),Le=_=>{Et(_)&&(d.state.next({disabled:_}),Ir(s,(P,N)=>{const B=V(s,N);B&&(P.disabled=B._f.disabled||_,Array.isArray(B._f.refs)&&B._f.refs.forEach(I=>{I.disabled=B._f.disabled||_}))},0,!1))},we=(_,P)=>async N=>{let B;N&&(N.preventDefault&&N.preventDefault(),N.persist&&N.persist());let I=ot(i);if(a.disabled.size)for(const F of a.disabled)xe(I,F,void 0);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:F,values:X}=await E();n.errors=F,I=X}else await D(s);if(Be(n.errors,"root"),ct(n.errors)){d.state.next({errors:{}});try{await _(I,N)}catch(F){B=F}}else P&&await P({...n.errors},N),Ne(),setTimeout(Ne);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ct(n.errors)&&!B,submitCount:n.submitCount+1,errors:n.errors}),B)throw B},G=(_,P={})=>{V(s,_)&&(De(P.defaultValue)?Z(_,ot(V(r,_))):(Z(_,P.defaultValue),xe(r,_,ot(P.defaultValue))),P.keepTouched||Be(n.touchedFields,_),P.keepDirty||(Be(n.dirtyFields,_),n.isDirty=P.defaultValue?j(_,ot(V(r,_))):j()),P.keepError||(Be(n.errors,_),u.isValid&&y()),d.state.next({...n}))},de=(_,P={})=>{const N=_?ot(_):r,B=ot(N),I=ct(_),F=I?r:B;if(P.keepDefaultValues||(r=N),!P.keepValues){if(P.keepDirtyValues){const X=new Set([...a.mount,...Object.keys(Sr(r,i))]);for(const ae of Array.from(X))V(n.dirtyFields,ae)?xe(F,ae,V(i,ae)):Z(ae,V(F,ae))}else{if(Ml&&De(_))for(const X of a.mount){const ae=V(s,X);if(ae&&ae._f){const Ie=Array.isArray(ae._f.refs)?ae._f.refs[0]:ae._f.ref;if(uo(Ie)){const Oe=Ie.closest("form");if(Oe){Oe.reset();break}}}}s={}}i=t.shouldUnregister?P.keepDefaultValues?ot(r):{}:ot(F),d.array.next({values:{...F}}),d.values.next({values:{...F}})}a={mount:P.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!P.keepIsValid||!!P.keepDirtyValues,o.watch=!!t.shouldUnregister,d.state.next({submitCount:P.keepSubmitCount?n.submitCount:0,isDirty:I?!1:P.keepDirty?n.isDirty:!!(P.keepDefaultValues&&!Tn(_,r)),isSubmitted:P.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:I?{}:P.keepDirtyValues?P.keepDefaultValues&&i?Sr(r,i):n.dirtyFields:P.keepDefaultValues&&_?Sr(r,_):P.keepDirty?n.dirtyFields:{},touchedFields:P.keepTouched?n.touchedFields:{},errors:P.keepErrors?n.errors:{},isSubmitSuccessful:P.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Se=(_,P)=>de(Xt(_)?_(i):_,P);return{control:{register:ye,unregister:Xe,getFieldState:We,handleSubmit:we,setError:He,_executeSchema:E,_getWatch:$,_getDirty:j,_updateValid:y,_removeUnmounted:L,_updateFieldArray:b,_updateDisabledField:ue,_getFieldArray:W,_reset:de,_resetDefaultValues:()=>Xt(t.defaultValues)&&t.defaultValues().then(_=>{Se(_,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:_=>{n={...n,..._}},_disableForm:Le,_subjects:d,_proxyFormState:u,_setErrors:C,get _fields(){return s},get _formValues(){return i},get _state(){return o},set _state(_){o=_},get _defaultValues(){return r},get _names(){return a},set _names(_){a=_},get _formState(){return n},set _formState(_){n=_},get _options(){return t},set _options(_){t={...t,..._}}},trigger:me,register:ye,handleSubmit:we,watch:Pt,setValue:Z,getValues:ge,reset:Se,resetField:G,clearErrors:ht,unregister:Xe,setError:He,setFocus:(_,P={})=>{const N=V(s,_),B=N&&N._f;if(B){const I=B.refs?B.refs[0]:B.ref;I.focus&&(I.focus(),P.shouldSelect&&Xt(I.select)&&I.select())}},getFieldState:We}}function qC(e={}){const t=ve.useRef(void 0),n=ve.useRef(void 0),[s,r]=ve.useState({isDirty:!1,isValidating:!1,isLoading:Xt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Xt(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...HC(e),formState:s});const i=t.current.control;return i._options=e,Ll({subject:i._subjects.state,next:o=>{zm(o,i._proxyFormState,i._updateFormState,!0)&&r({...i._formState})}}),ve.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),ve.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==s.isDirty&&i._subjects.state.next({isDirty:o})}},[i,s.isDirty]),ve.useEffect(()=>{e.values&&!Tn(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,r(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),ve.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),ve.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),ve.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=$m(s,i),t.current}var ZC="Label",Jm=x.forwardRef((e,t)=>p.jsx(rt.label,{...e,ref:t,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Jm.displayName=ZC;var eg=Jm;const KC=Xc("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),tg=x.forwardRef(({className:e,...t},n)=>p.jsx(eg,{ref:n,className:K(KC(),e),...t}));tg.displayName=eg.displayName;const c1=kC,ng=x.createContext({}),GC=({...e})=>p.jsx(ng.Provider,{value:{name:e.name},children:p.jsx(DC,{...e})}),zo=()=>{const e=x.useContext(ng),t=x.useContext(sg),{getFieldState:n,formState:s}=$o(),r=n(e.name,s);if(!e)throw new Error("useFormField should be used within ");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...r}},sg=x.createContext({}),rg=x.forwardRef(({className:e,...t},n)=>{const s=x.useId();return p.jsx(sg.Provider,{value:{id:s},children:p.jsx("div",{ref:n,className:K("space-y-2",e),...t})})});rg.displayName="FormItem";const ig=x.forwardRef(({className:e,...t},n)=>{const{error:s,formItemId:r}=zo();return p.jsx(tg,{ref:n,className:K(s&&"text-destructive",e),htmlFor:r,...t})});ig.displayName="FormLabel";const og=x.forwardRef(({...e},t)=>{const{error:n,formItemId:s,formDescriptionId:r,formMessageId:i}=zo();return p.jsx(or,{ref:t,id:s,"aria-describedby":n?`${r} ${i}`:`${r}`,"aria-invalid":!!n,...e})});og.displayName="FormControl";const QC=x.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:s}=zo();return p.jsx("p",{ref:n,id:s,className:K("text-[0.8rem] text-muted-foreground",e),...t})});QC.displayName="FormDescription";const ag=x.forwardRef(({className:e,children:t,...n},s)=>{const{error:r,formMessageId:i}=zo(),o=r?String(r==null?void 0:r.message):t;return o?p.jsx("p",{ref:s,id:i,className:K("text-[0.8rem] font-medium text-destructive",e),...n,children:o}):null});ag.displayName="FormMessage";const cc=x.forwardRef(({className:e,type:t,...n},s)=>t!=="file"?p.jsx("input",{type:t,className:K("flex h-14 rounded-[2px] border p-4 focus:border-[3px] focus:outline-none focus:border-primary transition-all hover:border-on_surface border-outline bg-transparent text-base w-regular file:border-0 file:bg-secondary_container file:outline-none file:text-sm file:w-fit file:text-on_secondary_container file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),ref:s,...n}):p.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[p.jsx("input",{ref:s,accept:".pdf, .png, .jpeg, .jpg",type:t,className:K("h-9 absolute top-0 left-0 !cursor-pointer opacity-0 z-20 size-full"),...n}),p.jsxs("div",{className:"absolute rounded-[2px] cursor-pointer size-full flex items-center gap-4 px-3 py-2.5 top-0 left-0 bg-secondary_container",children:[p.jsx(Zx,{className:"cursor-pointer",size:16})," Upload file"]})]}));cc.displayName="Input";const cg=x.forwardRef(({className:e,...t},n)=>p.jsx("textarea",{className:K("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));cg.displayName="Textarea";const l1=({control:e,name:t,label:n,placeholder:s,error:r,type:i="text",className:o,disabled:a,textArea:c=!1,textDark:l,supporText:u,handleChange:d,onPrimary:f=!1})=>p.jsx(GC,{control:e,name:t,render:({field:g})=>p.jsxs(rg,{className:K(o,"flex flex-col w-full relative"),children:[p.jsx(ig,{className:K("text-xl",f&&"!text-on_primary",l?"text-on_surface":"text-on_surface_v"),children:n}),p.jsx(og,{children:p.jsx(p.Fragment,{children:c?p.jsx(cg,{rows:3,...g,placeholder:s,className:K(r&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):i!=="file"?p.jsx(cc,{...g,type:i,placeholder:s,disabled:a,className:K(r&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):p.jsxs("div",{className:"relative",children:[p.jsx(cc,{type:"file",placeholder:s,onChange:m=>{var y;const h=((y=m.target.files)==null?void 0:y[0])||null;console.log("Выбранный файл:",h),g.onChange(h),d&&d(m)},disabled:a}),g.value&&p.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:["Выбранный файл: ",g.value.name]})]})})}),p.jsx(ag,{className:K("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",r&&f?"text-teritary_04":"text-[#BA1A1A]"),children:r?r.message:u})]})}),u1=({className:e,delay:t=.15})=>p.jsxs(Fr.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0,transition:{delay:t}},className:K("flex flex-col gap-8 my-16",e),children:[p.jsx("h3",{className:"text-3xl text-center",children:"Форма успешно отправлена!"}),p.jsx(Me,{className:"w-fit mx-auto",to:"/",children:p.jsx(ft,{variant:"outline",children:"Вернуться на главную"})})]}),XC=({className:e,slides:t,active:n,scrollTo:s})=>p.jsx("div",{className:K("flex items-center justify-center gap-2",e),children:Array.from({length:t}).map((r,i)=>p.jsx("span",{onClick:()=>s==null?void 0:s(i),className:K(n===i?"dot-active":"dot")},i))}),YC=["top","right","bottom","left"],Fn=Math.min,mt=Math.max,po=Math.round,Ui=Math.floor,tn=e=>({x:e,y:e}),JC={left:"right",right:"left",bottom:"top",top:"bottom"},eT={start:"end",end:"start"};function lc(e,t,n){return mt(e,Fn(t,n))}function yn(e,t){return typeof e=="function"?e(t):e}function vn(e){return e.split("-")[0]}function dr(e){return e.split("-")[1]}function Bl(e){return e==="x"?"y":"x"}function Ul(e){return e==="y"?"height":"width"}function Ln(e){return["top","bottom"].includes(vn(e))?"y":"x"}function $l(e){return Bl(Ln(e))}function tT(e,t,n){n===void 0&&(n=!1);const s=dr(e),r=$l(e),i=Ul(r);let o=r==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=mo(o)),[o,mo(o)]}function nT(e){const t=mo(e);return[uc(e),t,uc(t)]}function uc(e){return e.replace(/start|end/g,t=>eT[t])}function sT(e,t,n){const s=["left","right"],r=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:s:t?s:r;case"left":case"right":return t?i:o;default:return[]}}function rT(e,t,n,s){const r=dr(e);let i=sT(vn(e),n==="start",s);return r&&(i=i.map(o=>o+"-"+r),t&&(i=i.concat(i.map(uc)))),i}function mo(e){return e.replace(/left|right|bottom|top/g,t=>JC[t])}function iT(e){return{top:0,right:0,bottom:0,left:0,...e}}function lg(e){return typeof e!="number"?iT(e):{top:e,right:e,bottom:e,left:e}}function go(e){const{x:t,y:n,width:s,height:r}=e;return{width:s,height:r,top:n,left:t,right:t+s,bottom:n+r,x:t,y:n}}function ff(e,t,n){let{reference:s,floating:r}=e;const i=Ln(t),o=$l(t),a=Ul(o),c=vn(t),l=i==="y",u=s.x+s.width/2-r.width/2,d=s.y+s.height/2-r.height/2,f=s[a]/2-r[a]/2;let g;switch(c){case"top":g={x:u,y:s.y-r.height};break;case"bottom":g={x:u,y:s.y+s.height};break;case"right":g={x:s.x+s.width,y:d};break;case"left":g={x:s.x-r.width,y:d};break;default:g={x:s.x,y:s.y}}switch(dr(t)){case"start":g[o]-=f*(n&&l?-1:1);break;case"end":g[o]+=f*(n&&l?-1:1);break}return g}const oT=async(e,t,n)=>{const{placement:s="bottom",strategy:r="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let l=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=ff(l,s,c),f=s,g={},m=0;for(let h=0;h({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:r,rects:i,platform:o,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=yn(e,t)||{};if(l==null)return{};const d=lg(u),f={x:n,y:s},g=$l(r),m=Ul(g),h=await o.getDimensions(l),y=g==="y",v=y?"top":"left",b=y?"bottom":"right",w=y?"clientHeight":"clientWidth",C=i.reference[m]+i.reference[g]-f[g]-i.floating[m],S=f[g]-i.reference[g],A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let R=A?A[w]:0;(!R||!await(o.isElement==null?void 0:o.isElement(A)))&&(R=a.floating[w]||i.floating[m]);const E=C/2-S/2,O=R/2-h[m]/2-1,D=Fn(d[v],O),L=Fn(d[b],O),j=D,$=R-h[m]-L,W=R/2-h[m]/2+E,se=lc(j,W,$),Y=!c.arrow&&dr(r)!=null&&W!==se&&i.reference[m]/2-(WW<=0)){var L,j;const W=(((L=i.flip)==null?void 0:L.index)||0)+1,se=R[W];if(se)return{data:{index:W,overflows:D},reset:{placement:se}};let Y=(j=D.filter(Z=>Z.overflows[0]<=0).sort((Z,q)=>Z.overflows[1]-q.overflows[1])[0])==null?void 0:j.placement;if(!Y)switch(g){case"bestFit":{var $;const Z=($=D.filter(q=>{if(A){const re=Ln(q.placement);return re===b||re==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(re=>re>0).reduce((re,me)=>re+me,0)]).sort((q,re)=>q[1]-re[1])[0])==null?void 0:$[0];Z&&(Y=Z);break}case"initialPlacement":Y=a;break}if(r!==Y)return{reset:{placement:Y}}}return{}}}};function hf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function pf(e){return YC.some(t=>e[t]>=0)}const lT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:s="referenceHidden",...r}=yn(e,t);switch(s){case"referenceHidden":{const i=await qr(t,{...r,elementContext:"reference"}),o=hf(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:pf(o)}}}case"escaped":{const i=await qr(t,{...r,altBoundary:!0}),o=hf(i,n.floating);return{data:{escapedOffsets:o,escaped:pf(o)}}}default:return{}}}}};async function uT(e,t){const{placement:n,platform:s,elements:r}=e,i=await(s.isRTL==null?void 0:s.isRTL(r.floating)),o=vn(n),a=dr(n),c=Ln(n)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,d=yn(t,e);let{mainAxis:f,crossAxis:g,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(g=a==="end"?m*-1:m),c?{x:g*u,y:f*l}:{x:f*l,y:g*u}}const dT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:r,y:i,placement:o,middlewareData:a}=t,c=await uT(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(s=a.arrow)!=null&&s.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:o}}}}},fT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:r}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:y=>{let{x:v,y:b}=y;return{x:v,y:b}}},...c}=yn(e,t),l={x:n,y:s},u=await qr(t,c),d=Ln(vn(r)),f=Bl(d);let g=l[f],m=l[d];if(i){const y=f==="y"?"top":"left",v=f==="y"?"bottom":"right",b=g+u[y],w=g-u[v];g=lc(b,g,w)}if(o){const y=d==="y"?"top":"left",v=d==="y"?"bottom":"right",b=m+u[y],w=m-u[v];m=lc(b,m,w)}const h=a.fn({...t,[f]:g,[d]:m});return{...h,data:{x:h.x-n,y:h.y-s,enabled:{[f]:i,[d]:o}}}}}},hT=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:r,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=yn(e,t),u={x:n,y:s},d=Ln(r),f=Bl(d);let g=u[f],m=u[d];const h=yn(a,t),y=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const w=f==="y"?"height":"width",C=i.reference[f]-i.floating[w]+y.mainAxis,S=i.reference[f]+i.reference[w]-y.mainAxis;gS&&(g=S)}if(l){var v,b;const w=f==="y"?"width":"height",C=["top","left"].includes(vn(r)),S=i.reference[d]-i.floating[w]+(C&&((v=o.offset)==null?void 0:v[d])||0)+(C?0:y.crossAxis),A=i.reference[d]+i.reference[w]+(C?0:((b=o.offset)==null?void 0:b[d])||0)-(C?y.crossAxis:0);mA&&(m=A)}return{[f]:g,[d]:m}}}},pT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:r,rects:i,platform:o,elements:a}=t,{apply:c=()=>{},...l}=yn(e,t),u=await qr(t,l),d=vn(r),f=dr(r),g=Ln(r)==="y",{width:m,height:h}=i.floating;let y,v;d==="top"||d==="bottom"?(y=d,v=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,y=f==="end"?"top":"bottom");const b=h-u.top-u.bottom,w=m-u.left-u.right,C=Fn(h-u[y],b),S=Fn(m-u[v],w),A=!t.middlewareData.shift;let R=C,E=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=w),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(R=b),A&&!f){const D=mt(u.left,0),L=mt(u.right,0),j=mt(u.top,0),$=mt(u.bottom,0);g?E=m-2*(D!==0||L!==0?D+L:mt(u.left,u.right)):R=h-2*(j!==0||$!==0?j+$:mt(u.top,u.bottom))}await c({...t,availableWidth:E,availableHeight:R});const O=await o.getDimensions(a.floating);return m!==O.width||h!==O.height?{reset:{rects:!0}}:{}}}};function Wo(){return typeof window<"u"}function fr(e){return ug(e)?(e.nodeName||"").toLowerCase():"#document"}function vt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function an(e){var t;return(t=(ug(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ug(e){return Wo()?e instanceof Node||e instanceof vt(e).Node:!1}function Lt(e){return Wo()?e instanceof Element||e instanceof vt(e).Element:!1}function sn(e){return Wo()?e instanceof HTMLElement||e instanceof vt(e).HTMLElement:!1}function mf(e){return!Wo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof vt(e).ShadowRoot}function Si(e){const{overflow:t,overflowX:n,overflowY:s,display:r}=It(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!["inline","contents"].includes(r)}function mT(e){return["table","td","th"].includes(fr(e))}function Ho(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function zl(e){const t=Wl(),n=Lt(e)?It(e):e;return["transform","translate","scale","rotate","perspective"].some(s=>n[s]?n[s]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(s=>(n.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(n.contain||"").includes(s))}function gT(e){let t=In(e);for(;sn(t)&&!tr(t);){if(zl(t))return t;if(Ho(t))return null;t=In(t)}return null}function Wl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function tr(e){return["html","body","#document"].includes(fr(e))}function It(e){return vt(e).getComputedStyle(e)}function qo(e){return Lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function In(e){if(fr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||mf(e)&&e.host||an(e);return mf(t)?t.host:t}function dg(e){const t=In(e);return tr(t)?e.ownerDocument?e.ownerDocument.body:e.body:sn(t)&&Si(t)?t:dg(t)}function Zr(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=dg(e),i=r===((s=e.ownerDocument)==null?void 0:s.body),o=vt(r);if(i){const a=dc(o);return t.concat(o,o.visualViewport||[],Si(r)?r:[],a&&n?Zr(a):[])}return t.concat(r,Zr(r,[],n))}function dc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function fg(e){const t=It(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const r=sn(e),i=r?e.offsetWidth:n,o=r?e.offsetHeight:s,a=po(n)!==i||po(s)!==o;return a&&(n=i,s=o),{width:n,height:s,$:a}}function Hl(e){return Lt(e)?e:e.contextElement}function Fs(e){const t=Hl(e);if(!sn(t))return tn(1);const n=t.getBoundingClientRect(),{width:s,height:r,$:i}=fg(t);let o=(i?po(n.width):n.width)/s,a=(i?po(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const yT=tn(0);function hg(e){const t=vt(e);return!Wl()||!t.visualViewport?yT:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vT(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==vt(e)?!1:t}function hs(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Hl(e);let o=tn(1);t&&(s?Lt(s)&&(o=Fs(s)):o=Fs(e));const a=vT(i,n,s)?hg(i):tn(0);let c=(r.left+a.x)/o.x,l=(r.top+a.y)/o.y,u=r.width/o.x,d=r.height/o.y;if(i){const f=vt(i),g=s&&Lt(s)?vt(s):s;let m=f,h=dc(m);for(;h&&s&&g!==m;){const y=Fs(h),v=h.getBoundingClientRect(),b=It(h),w=v.left+(h.clientLeft+parseFloat(b.paddingLeft))*y.x,C=v.top+(h.clientTop+parseFloat(b.paddingTop))*y.y;c*=y.x,l*=y.y,u*=y.x,d*=y.y,c+=w,l+=C,m=vt(h),h=dc(m)}}return go({width:u,height:d,x:c,y:l})}function ql(e,t){const n=qo(e).scrollLeft;return t?t.left+n:hs(an(e)).left+n}function pg(e,t,n){n===void 0&&(n=!1);const s=e.getBoundingClientRect(),r=s.left+t.scrollLeft-(n?0:ql(e,s)),i=s.top+t.scrollTop;return{x:r,y:i}}function xT(e){let{elements:t,rect:n,offsetParent:s,strategy:r}=e;const i=r==="fixed",o=an(s),a=t?Ho(t.floating):!1;if(s===o||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=tn(1);const u=tn(0),d=sn(s);if((d||!d&&!i)&&((fr(s)!=="body"||Si(o))&&(c=qo(s)),sn(s))){const g=hs(s);l=Fs(s),u.x=g.x+s.clientLeft,u.y=g.y+s.clientTop}const f=o&&!d&&!i?pg(o,c,!0):tn(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function bT(e){return Array.from(e.getClientRects())}function wT(e){const t=an(e),n=qo(e),s=e.ownerDocument.body,r=mt(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),i=mt(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let o=-n.scrollLeft+ql(e);const a=-n.scrollTop;return It(s).direction==="rtl"&&(o+=mt(t.clientWidth,s.clientWidth)-r),{width:r,height:i,x:o,y:a}}function ST(e,t){const n=vt(e),s=an(e),r=n.visualViewport;let i=s.clientWidth,o=s.clientHeight,a=0,c=0;if(r){i=r.width,o=r.height;const l=Wl();(!l||l&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:o,x:a,y:c}}function _T(e,t){const n=hs(e,!0,t==="fixed"),s=n.top+e.clientTop,r=n.left+e.clientLeft,i=sn(e)?Fs(e):tn(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,l=s*i.y;return{width:o,height:a,x:c,y:l}}function gf(e,t,n){let s;if(t==="viewport")s=ST(e,n);else if(t==="document")s=wT(an(e));else if(Lt(t))s=_T(t,n);else{const r=hg(e);s={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return go(s)}function mg(e,t){const n=In(e);return n===t||!Lt(n)||tr(n)?!1:It(n).position==="fixed"||mg(n,t)}function CT(e,t){const n=t.get(e);if(n)return n;let s=Zr(e,[],!1).filter(a=>Lt(a)&&fr(a)!=="body"),r=null;const i=It(e).position==="fixed";let o=i?In(e):e;for(;Lt(o)&&!tr(o);){const a=It(o),c=zl(o);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Si(o)&&!c&&mg(e,o))?s=s.filter(u=>u!==o):r=a,o=In(o)}return t.set(e,s),s}function TT(e){let{element:t,boundary:n,rootBoundary:s,strategy:r}=e;const o=[...n==="clippingAncestors"?Ho(t)?[]:CT(t,this._c):[].concat(n),s],a=o[0],c=o.reduce((l,u)=>{const d=gf(t,u,r);return l.top=mt(d.top,l.top),l.right=Fn(d.right,l.right),l.bottom=Fn(d.bottom,l.bottom),l.left=mt(d.left,l.left),l},gf(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ET(e){const{width:t,height:n}=fg(e);return{width:t,height:n}}function AT(e,t,n){const s=sn(t),r=an(t),i=n==="fixed",o=hs(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=tn(0);if(s||!s&&!i)if((fr(t)!=="body"||Si(r))&&(a=qo(t)),s){const f=hs(t,!0,i,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else r&&(c.x=ql(r));const l=r&&!s&&!i?pg(r,a):tn(0),u=o.left+a.scrollLeft-c.x-l.x,d=o.top+a.scrollTop-c.y-l.y;return{x:u,y:d,width:o.width,height:o.height}}function Pa(e){return It(e).position==="static"}function yf(e,t){if(!sn(e)||It(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return an(e)===n&&(n=n.ownerDocument.body),n}function gg(e,t){const n=vt(e);if(Ho(e))return n;if(!sn(e)){let r=In(e);for(;r&&!tr(r);){if(Lt(r)&&!Pa(r))return r;r=In(r)}return n}let s=yf(e,t);for(;s&&mT(s)&&Pa(s);)s=yf(s,t);return s&&tr(s)&&Pa(s)&&!zl(s)?n:s||gT(e)||n}const PT=async function(e){const t=this.getOffsetParent||gg,n=this.getDimensions,s=await n(e.floating);return{reference:AT(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function RT(e){return It(e).direction==="rtl"}const kT={convertOffsetParentRelativeRectToViewportRelativeRect:xT,getDocumentElement:an,getClippingRect:TT,getOffsetParent:gg,getElementRects:PT,getClientRects:bT,getDimensions:ET,getScale:Fs,isElement:Lt,isRTL:RT};function yg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function NT(e,t){let n=null,s;const r=an(e);function i(){var a;clearTimeout(s),(a=n)==null||a.disconnect(),n=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:g}=l;if(a||t(),!f||!g)return;const m=Ui(d),h=Ui(r.clientWidth-(u+f)),y=Ui(r.clientHeight-(d+g)),v=Ui(u),w={rootMargin:-m+"px "+-h+"px "+-y+"px "+-v+"px",threshold:mt(0,Fn(1,c))||1};let C=!0;function S(A){const R=A[0].intersectionRatio;if(R!==c){if(!C)return o();R?o(!1,R):s=setTimeout(()=>{o(!1,1e-7)},1e3)}R===1&&!yg(l,e.getBoundingClientRect())&&o(),C=!1}try{n=new IntersectionObserver(S,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return o(!0),i}function OT(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,l=Hl(e),u=r||i?[...l?Zr(l):[],...Zr(t)]:[];u.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=l&&a?NT(l,n):null;let f=-1,g=null;o&&(g=new ResizeObserver(v=>{let[b]=v;b&&b.target===l&&g&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),l&&!c&&g.observe(l),g.observe(t));let m,h=c?hs(e):null;c&&y();function y(){const v=hs(e);h&&!yg(h,v)&&n(),h=v,m=requestAnimationFrame(y)}return n(),()=>{var v;u.forEach(b=>{r&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(v=g)==null||v.disconnect(),g=null,c&&cancelAnimationFrame(m)}}const jT=dT,DT=fT,MT=cT,FT=pT,LT=lT,vf=aT,IT=hT,VT=(e,t,n)=>{const s=new Map,r={platform:kT,...n},i={...r.platform,_c:s};return oT(e,t,{...r,platform:i})};var Xi=typeof document<"u"?x.useLayoutEffect:x.useEffect;function yo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,s,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;s--!==0;)if(!yo(e[s],t[s]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(t,r[s]))return!1;for(s=n;s--!==0;){const i=r[s];if(!(i==="_owner"&&e.$$typeof)&&!yo(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function vg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xf(e,t){const n=vg(e);return Math.round(t*n)/n}function Ra(e){const t=x.useRef(e);return Xi(()=>{t.current=e}),t}function BT(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:r,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,g]=x.useState(s);yo(f,s)||g(s);const[m,h]=x.useState(null),[y,v]=x.useState(null),b=x.useCallback(q=>{q!==A.current&&(A.current=q,h(q))},[]),w=x.useCallback(q=>{q!==R.current&&(R.current=q,v(q))},[]),C=i||m,S=o||y,A=x.useRef(null),R=x.useRef(null),E=x.useRef(u),O=c!=null,D=Ra(c),L=Ra(r),j=Ra(l),$=x.useCallback(()=>{if(!A.current||!R.current)return;const q={placement:t,strategy:n,middleware:f};L.current&&(q.platform=L.current),VT(A.current,R.current,q).then(re=>{const me={...re,isPositioned:j.current!==!1};W.current&&!yo(E.current,me)&&(E.current=me,uh.flushSync(()=>{d(me)}))})},[f,t,n,L,j]);Xi(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(q=>({...q,isPositioned:!1})))},[l]);const W=x.useRef(!1);Xi(()=>(W.current=!0,()=>{W.current=!1}),[]),Xi(()=>{if(C&&(A.current=C),S&&(R.current=S),C&&S){if(D.current)return D.current(C,S,$);$()}},[C,S,$,D,O]);const se=x.useMemo(()=>({reference:A,floating:R,setReference:b,setFloating:w}),[b,w]),Y=x.useMemo(()=>({reference:C,floating:S}),[C,S]),Z=x.useMemo(()=>{const q={position:n,left:0,top:0};if(!Y.floating)return q;const re=xf(Y.floating,u.x),me=xf(Y.floating,u.y);return a?{...q,transform:"translate("+re+"px, "+me+"px)",...vg(Y.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:me}},[n,a,Y.floating,u.x,u.y]);return x.useMemo(()=>({...u,update:$,refs:se,elements:Y,floatingStyles:Z}),[u,$,se,Y,Z])}const UT=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:s,padding:r}=typeof e=="function"?e(n):e;return s&&t(s)?s.current!=null?vf({element:s.current,padding:r}).fn(n):{}:s?vf({element:s,padding:r}).fn(n):{}}}},$T=(e,t)=>({...jT(e),options:[e,t]}),zT=(e,t)=>({...DT(e),options:[e,t]}),WT=(e,t)=>({...IT(e),options:[e,t]}),HT=(e,t)=>({...MT(e),options:[e,t]}),qT=(e,t)=>({...FT(e),options:[e,t]}),ZT=(e,t)=>({...LT(e),options:[e,t]}),KT=(e,t)=>({...UT(e),options:[e,t]});var GT="Arrow",xg=x.forwardRef((e,t)=>{const{children:n,width:s=10,height:r=5,...i}=e;return p.jsx(rt.svg,{...i,ref:t,width:s,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});xg.displayName=GT;var QT=xg;function XT(e){const[t,n]=x.useState(void 0);return ds(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,a=l.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var Zl="Popper",[bg,wg]=Uc(Zl),[YT,Sg]=bg(Zl),_g=e=>{const{__scopePopper:t,children:n}=e,[s,r]=x.useState(null);return p.jsx(YT,{scope:t,anchor:s,onAnchorChange:r,children:n})};_g.displayName=Zl;var Cg="PopperAnchor",Tg=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...r}=e,i=Sg(Cg,n),o=x.useRef(null),a=Bt(t,o);return x.useEffect(()=>{i.onAnchorChange((s==null?void 0:s.current)||o.current)}),s?null:p.jsx(rt.div,{...r,ref:a})});Tg.displayName=Cg;var Kl="PopperContent",[JT,eE]=bg(Kl),Eg=x.forwardRef((e,t)=>{var ue,ye,Ne,Le,we,G;const{__scopePopper:n,side:s="bottom",sideOffset:r=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:g="optimized",onPlaced:m,...h}=e,y=Sg(Kl,n),[v,b]=x.useState(null),w=Bt(t,de=>b(de)),[C,S]=x.useState(null),A=XT(C),R=(A==null?void 0:A.width)??0,E=(A==null?void 0:A.height)??0,O=s+(i!=="center"?"-"+i:""),D=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},L=Array.isArray(l)?l:[l],j=L.length>0,$={padding:D,boundary:L.filter(nE),altBoundary:j},{refs:W,floatingStyles:se,placement:Y,isPositioned:Z,middlewareData:q}=BT({strategy:"fixed",placement:O,whileElementsMounted:(...de)=>OT(...de,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[$T({mainAxis:r+E,alignmentAxis:o}),c&&zT({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?WT():void 0,...$}),c&&HT({...$}),qT({...$,apply:({elements:de,rects:Se,availableWidth:Ue,availableHeight:pt})=>{const{width:wt,height:_}=Se.reference,P=de.floating.style;P.setProperty("--radix-popper-available-width",`${Ue}px`),P.setProperty("--radix-popper-available-height",`${pt}px`),P.setProperty("--radix-popper-anchor-width",`${wt}px`),P.setProperty("--radix-popper-anchor-height",`${_}px`)}}),C&&KT({element:C,padding:a}),sE({arrowWidth:R,arrowHeight:E}),f&&ZT({strategy:"referenceHidden",...$})]}),[re,me]=Rg(Y),ge=jn(m);ds(()=>{Z&&(ge==null||ge())},[Z,ge]);const We=(ue=q.arrow)==null?void 0:ue.x,ht=(ye=q.arrow)==null?void 0:ye.y,He=((Ne=q.arrow)==null?void 0:Ne.centerOffset)!==0,[Pt,Xe]=x.useState();return ds(()=>{v&&Xe(window.getComputedStyle(v).zIndex)},[v]),p.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...se,transform:Z?se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Pt,"--radix-popper-transform-origin":[(Le=q.transformOrigin)==null?void 0:Le.x,(we=q.transformOrigin)==null?void 0:we.y].join(" "),...((G=q.hide)==null?void 0:G.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(JT,{scope:n,placedSide:re,onArrowChange:S,arrowX:We,arrowY:ht,shouldHideArrow:He,children:p.jsx(rt.div,{"data-side":re,"data-align":me,...h,ref:w,style:{...h.style,animation:Z?void 0:"none"}})})})});Eg.displayName=Kl;var Ag="PopperArrow",tE={top:"bottom",right:"left",bottom:"top",left:"right"},Pg=x.forwardRef(function(t,n){const{__scopePopper:s,...r}=t,i=eE(Ag,s),o=tE[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:p.jsx(QT,{...r,ref:n,style:{...r.style,display:"block"}})})});Pg.displayName=Ag;function nE(e){return e!==null}var sE=e=>({name:"transformOrigin",options:e,fn(t){var y,v,b;const{placement:n,rects:s,middlewareData:r}=t,o=((y=r.arrow)==null?void 0:y.centerOffset)!==0,a=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[l,u]=Rg(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((v=r.arrow)==null?void 0:v.x)??0)+a/2,g=(((b=r.arrow)==null?void 0:b.y)??0)+c/2;let m="",h="";return l==="bottom"?(m=o?d:`${f}px`,h=`${-c}px`):l==="top"?(m=o?d:`${f}px`,h=`${s.floating.height+c}px`):l==="right"?(m=`${-c}px`,h=o?d:`${g}px`):l==="left"&&(m=`${s.floating.width+c}px`,h=o?d:`${g}px`),{data:{x:m,y:h}}}});function Rg(e){const[t,n="center"]=e.split("-");return[t,n]}var rE=_g,kg=Tg,iE=Eg,oE=Pg,Gl="Popover",[Ng,d1]=Uc(Gl,[wg]),_i=wg(),[aE,Wn]=Ng(Gl),Og=e=>{const{__scopePopover:t,children:n,open:s,defaultOpen:r,onOpenChange:i,modal:o=!1}=e,a=_i(t),c=x.useRef(null),[l,u]=x.useState(!1),[d=!1,f]=fh({prop:s,defaultProp:r,onChange:i});return p.jsx(rE,{...a,children:p.jsx(aE,{scope:t,contentId:Wi(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:x.useCallback(()=>f(g=>!g),[f]),hasCustomAnchor:l,onCustomAnchorAdd:x.useCallback(()=>u(!0),[]),onCustomAnchorRemove:x.useCallback(()=>u(!1),[]),modal:o,children:n})})};Og.displayName=Gl;var jg="PopoverAnchor",cE=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Wn(jg,n),i=_i(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=r;return x.useEffect(()=>(o(),()=>a()),[o,a]),p.jsx(kg,{...i,...s,ref:t})});cE.displayName=jg;var Dg="PopoverTrigger",Mg=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Wn(Dg,n),i=_i(n),o=Bt(t,r.triggerRef),a=p.jsx(rt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Bg(r.open),...s,ref:o,onClick:gt(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?a:p.jsx(kg,{asChild:!0,...i,children:a})});Mg.displayName=Dg;var Ql="PopoverPortal",[lE,uE]=Ng(Ql,{forceMount:void 0}),Fg=e=>{const{__scopePopover:t,forceMount:n,children:s,container:r}=e,i=Wn(Ql,t);return p.jsx(lE,{scope:t,forceMount:n,children:p.jsx(ar,{present:n||i.open,children:p.jsx(Wc,{asChild:!0,container:r,children:s})})})};Fg.displayName=Ql;var nr="PopoverContent",Lg=x.forwardRef((e,t)=>{const n=uE(nr,e.__scopePopover),{forceMount:s=n.forceMount,...r}=e,i=Wn(nr,e.__scopePopover);return p.jsx(ar,{present:s||i.open,children:i.modal?p.jsx(dE,{...r,ref:t}):p.jsx(fE,{...r,ref:t})})});Lg.displayName=nr;var dE=x.forwardRef((e,t)=>{const n=Wn(nr,e.__scopePopover),s=x.useRef(null),r=Bt(t,s),i=x.useRef(!1);return x.useEffect(()=>{const o=s.current;if(o)return Th(o)},[]),p.jsx(Hc,{as:or,allowPinchZoom:!0,children:p.jsx(Ig,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:gt(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:gt(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0,l=a.button===2||c;i.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:gt(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),fE=x.forwardRef((e,t)=>{const n=Wn(nr,e.__scopePopover),s=x.useRef(!1),r=x.useRef(!1);return p.jsx(Ig,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(s.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),s.current=!1,r.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),Ig=x.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:s,onOpenAutoFocus:r,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=Wn(nr,n),g=_i(n);return gh(),p.jsx(zc,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:i,children:p.jsx($c,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:p.jsx(iE,{"data-state":Bg(f.open),role:"dialog",id:f.contentId,...g,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Vg="PopoverClose",hE=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Wn(Vg,n);return p.jsx(rt.button,{type:"button",...s,ref:t,onClick:gt(e.onClick,()=>r.onOpenChange(!1))})});hE.displayName=Vg;var pE="PopoverArrow",mE=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=_i(n);return p.jsx(oE,{...r,...s,ref:t})});mE.displayName=pE;function Bg(e){return e?"open":"closed"}var gE=Og,yE=Mg,vE=Fg,Ug=Lg;const $g=gE,zg=yE,Xl=x.forwardRef(({className:e,align:t="center",sideOffset:n=4,...s},r)=>p.jsx(vE,{children:p.jsx(Ug,{ref:r,align:t,sideOffset:n,className:K("z-50 w-32 rounded-[2px] s bg-white p-4 text-popover-foreground drop-shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...s})}));Xl.displayName=Ug.displayName;const bf=e=>{let t;const n=new Set,s=(l,u)=>{const d=typeof l=="function"?l(t):l;if(!Object.is(d,t)){const f=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(g=>g(t,f))}},r=()=>t,a={setState:s,getState:r,getInitialState:()=>c,subscribe:l=>(n.add(l),()=>n.delete(l))},c=t=e(s,r,a);return a},xE=e=>e?bf(e):bf,bE=e=>e;function wE(e,t=bE){const n=ve.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return ve.useDebugValue(n),n}const SE=e=>{const t=xE(e),n=s=>wE(t,s);return Object.assign(n,t),n},Wg=e=>SE;function _E(e,t){let n;try{n=e()}catch{return}return{getItem:r=>{var i;const o=c=>c===null?null:JSON.parse(c,void 0),a=(i=n.getItem(r))!=null?i:null;return a instanceof Promise?a.then(o):o(a)},setItem:(r,i)=>n.setItem(r,JSON.stringify(i,void 0)),removeItem:r=>n.removeItem(r)}}const fc=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(s){return fc(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return fc(s)(n)}}}},CE=(e,t)=>(n,s,r)=>{let i={storage:_E(()=>localStorage),partialize:h=>h,version:0,merge:(h,y)=>({...y,...h}),...t},o=!1;const a=new Set,c=new Set;let l=i.storage;if(!l)return e((...h)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...h)},s,r);const u=()=>{const h=i.partialize({...s()});return l.setItem(i.name,{state:h,version:i.version})},d=r.setState;r.setState=(h,y)=>{d(h,y),u()};const f=e((...h)=>{n(...h),u()},s,r);r.getInitialState=()=>f;let g;const m=()=>{var h,y;if(!l)return;o=!1,a.forEach(b=>{var w;return b((w=s())!=null?w:f)});const v=((y=i.onRehydrateStorage)==null?void 0:y.call(i,(h=s())!=null?h:f))||void 0;return fc(l.getItem.bind(l))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate){const w=i.migrate(b.state,b.version);return w instanceof Promise?w.then(C=>[!0,C]):[!0,w]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var w;const[C,S]=b;if(g=i.merge(S,(w=s())!=null?w:f),n(g,!0),C)return u()}).then(()=>{v==null||v(g,void 0),g=s(),o=!0,c.forEach(b=>b(g))}).catch(b=>{v==null||v(void 0,b)})};return r.persist={setOptions:h=>{i={...i,...h},h.storage&&(l=h.storage)},clearStorage:()=>{l==null||l.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:h=>(a.add(h),()=>{a.delete(h)}),onFinishHydration:h=>(c.add(h),()=>{c.delete(h)})},i.skipHydration||m(),g||f},TE=CE;var lt=(e=>(e.EN="en",e.RU="ru",e))(lt||{});const Pe=Wg()(TE(e=>({lang:"en",setLang:t=>e({lang:t})}),{name:"lang-storage"})),EE=[{lang:lt.RU},{lang:lt.EN}],wf=({className:e,light:t=!1})=>{const n=Pe(o=>o.lang),s=Pe(o=>o.setLang),[r,i]=x.useState(!1);return p.jsxs($g,{open:r,onOpenChange:()=>i(!r),children:[p.jsxs(zg,{className:K("flex text-white items-center gap-2",t?"text-white":"text-black",e),children:[p.jsx("img",{src:n===lt.RU?"/ru.svg":"/english.svg",alt:""}),n===lt.RU?"Ру":"En",p.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.23021 8.01443C4.35919 7.70304 4.66305 7.5 5.00011 7.5H15.0001C15.3372 7.5 15.641 7.70304 15.77 8.01443C15.899 8.32583 15.8277 8.68426 15.5894 8.92259L10.5894 13.9226C10.2639 14.248 9.73629 14.248 9.41085 13.9226L4.41085 8.92259C4.17252 8.68426 4.10122 8.32583 4.23021 8.01443ZM7.01195 9.16667L10.0001 12.1548L12.9883 9.16667H7.01195Z",fill:t?"#fff":"#000"})})]}),p.jsx(Xl,{className:"flex flex-col gap-6",children:EE.filter(o=>o.lang!==n).map((o,a)=>p.jsxs("div",{onClick:()=>{s(o.lang),i(!1)},className:"flex gap-3 py-1 items-center cursor-pointer",children:[p.jsx("img",{src:o.lang===lt.RU?"/ru.svg":"/english.svg",alt:"flag"}),p.jsx("h5",{children:o.lang===lt.RU?"Русский":"English"})]},a))})]})},AE=$h,PE=zh,RE=Wh,Hg=x.forwardRef(({className:e,...t},n)=>p.jsx(ko,{ref:n,className:K("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Hg.displayName=ko.displayName;const qg=x.forwardRef(({className:e,children:t,...n},s)=>p.jsxs(RE,{children:[p.jsx(Hg,{}),p.jsxs(No,{ref:s,className:K("fixed left-[50%] top-[50%] z-50 grid 2xl:w-[40%] lg:w-1/2 w-[70%] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background md:p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,p.jsxs(Qc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[p.jsx(Yc,{className:"size-6"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));qg.displayName=No.displayName;const kE=x.forwardRef(({className:e,...t},n)=>p.jsx(Oo,{ref:n,className:K("text-lg font-semibold leading-none tracking-tight",e),...t}));kE.displayName=Oo.displayName;const NE=x.forwardRef(({className:e,...t},n)=>p.jsx(jo,{ref:n,className:K("text-sm text-muted-foreground",e),...t}));NE.displayName=jo.displayName;const Sf=(e,t,n)=>{if(e&&"reportValidity"in e){const s=V(n,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},Zg=(e,t)=>{for(const n in t.fields){const s=t.fields[n];s&&s.ref&&"reportValidity"in s.ref?Sf(s.ref,n,e):s.refs&&s.refs.forEach(r=>Sf(r,n,e))}},OE=(e,t)=>{t.shouldUseNativeValidation&&Zg(e,t);const n={};for(const s in e){const r=V(t.fields,s),i=Object.assign(e[s]||{},{ref:r&&r.ref});if(jE(t.names||Object.keys(e),s)){const o=Object.assign({},V(n,s));xe(o,"root",i),xe(n,s,o)}else xe(n,s,i)}return n},jE=(e,t)=>e.some(n=>n.startsWith(t+"."));var DE=function(e,t){for(var n={};e.length;){var s=e[0],r=s.code,i=s.message,o=s.path.join(".");if(!n[o])if("unionErrors"in s){var a=s.unionErrors[0].errors[0];n[o]={message:a.message,type:a.code}}else n[o]={message:i,type:r};if("unionErrors"in s&&s.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var c=n[o].types,l=c&&c[s.code];n[o]=qm(o,t,n,r,l?[].concat(l,s.message):s.message)}e.shift()}return n},ME=function(e,t,n){return n===void 0&&(n={}),function(s,r,i){try{return Promise.resolve(function(o,a){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](s,t)).then(function(l){return i.shouldUseNativeValidation&&Zg({},i),{errors:{},values:n.raw?s:l}})}catch(l){return a(l)}return c&&c.then?c.then(void 0,a):c}(0,function(o){if(function(a){return Array.isArray(a==null?void 0:a.errors)}(o))return{values:{},errors:OE(DE(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},pe;(function(e){e.assertEqual=r=>r;function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{const i={};for(const o of r)i[o]=o;return i},e.getValidEnumValues=r=>{const i=e.objectKeys(r).filter(a=>typeof r[r[a]]!="number"),o={};for(const a of i)o[a]=r[a];return e.objectValues(o)},e.objectValues=r=>e.objectKeys(r).map(function(i){return r[i]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const i=[];for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.push(o);return i},e.find=(r,i)=>{for(const o of r)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&isFinite(r)&&Math.floor(r)===r;function s(r,i=" | "){return r.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=s,e.jsonStringifyReplacer=(r,i)=>typeof i=="bigint"?i.toString():i})(pe||(pe={}));var hc;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(hc||(hc={}));const z=pe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),fn=e=>{switch(typeof e){case"undefined":return z.undefined;case"string":return z.string;case"number":return isNaN(e)?z.nan:z.number;case"boolean":return z.boolean;case"function":return z.function;case"bigint":return z.bigint;case"symbol":return z.symbol;case"object":return Array.isArray(e)?z.array:e===null?z.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?z.promise:typeof Map<"u"&&e instanceof Map?z.map:typeof Set<"u"&&e instanceof Set?z.set:typeof Date<"u"&&e instanceof Date?z.date:z.object;default:return z.unknown}},M=pe.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"]),FE=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class xt extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},s={_errors:[]},r=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(r);else if(o.code==="invalid_return_type")r(o.returnTypeError);else if(o.code==="invalid_arguments")r(o.argumentsError);else if(o.path.length===0)s._errors.push(n(o));else{let a=s,c=0;for(;cn.message){const n={},s=[];for(const r of this.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):s.push(t(r));return{formErrors:s,fieldErrors:n}}get formErrors(){return this.flatten()}}xt.create=e=>new xt(e);const sr=(e,t)=>{let n;switch(e.code){case M.invalid_type:e.received===z.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case M.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,pe.jsonStringifyReplacer)}`;break;case M.unrecognized_keys:n=`Unrecognized key(s) in object: ${pe.joinValues(e.keys,", ")}`;break;case M.invalid_union:n="Invalid input";break;case M.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${pe.joinValues(e.options)}`;break;case M.invalid_enum_value:n=`Invalid enum value. Expected ${pe.joinValues(e.options)}, received '${e.received}'`;break;case M.invalid_arguments:n="Invalid function arguments";break;case M.invalid_return_type:n="Invalid function return type";break;case M.invalid_date:n="Invalid date";break;case M.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:pe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case M.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case M.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case M.custom:n="Invalid input";break;case M.invalid_intersection_types:n="Intersection results could not be merged";break;case M.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case M.not_finite:n="Number must be finite";break;default:n=t.defaultError,pe.assertNever(e)}return{message:n}};let Kg=sr;function LE(e){Kg=e}function vo(){return Kg}const xo=e=>{const{data:t,path:n,errorMaps:s,issueData:r}=e,i=[...n,...r.path||[]],o={...r,path:i};if(r.message!==void 0)return{...r,path:i,message:r.message};let a="";const c=s.filter(l=>!!l).slice().reverse();for(const l of c)a=l(o,{data:t,defaultError:a}).message;return{...r,path:i,message:a}},IE=[];function U(e,t){const n=vo(),s=xo({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===sr?void 0:sr].filter(r=>!!r)});e.common.issues.push(s)}class Qe{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const s=[];for(const r of n){if(r.status==="aborted")return ne;r.status==="dirty"&&t.dirty(),s.push(r.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,n){const s=[];for(const r of n){const i=await r.key,o=await r.value;s.push({key:i,value:o})}return Qe.mergeObjectSync(t,s)}static mergeObjectSync(t,n){const s={};for(const r of n){const{key:i,value:o}=r;if(i.status==="aborted"||o.status==="aborted")return ne;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||r.alwaysSet)&&(s[i.value]=o.value)}return{status:t.value,value:s}}}const ne=Object.freeze({status:"aborted"}),js=e=>({status:"dirty",value:e}),nt=e=>({status:"valid",value:e}),pc=e=>e.status==="aborted",mc=e=>e.status==="dirty",ps=e=>e.status==="valid",Kr=e=>typeof Promise<"u"&&e instanceof Promise;function bo(e,t,n,s){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function Gg(e,t,n,s,r){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var Q;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Q||(Q={}));var Pr,Rr;class rn{constructor(t,n,s,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=s,this._key=r}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 _f=(e,t)=>{if(ps(t))return{success:!0,data:t.value};if(!e.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 xt(e.common.issues);return this._error=n,this._error}}};function oe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:s,description:r}=e;if(t&&(n||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(o,a)=>{var c,l;const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(c=u??s)!==null&&c!==void 0?c:a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:(l=u??n)!==null&&l!==void 0?l:a.defaultError}},description:r}}class le{get description(){return this._def.description}_getType(t){return fn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:fn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Qe,ctx:{common:t.parent.common,data:t.data,parsedType:fn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Kr(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const s=this.safeParse(t,n);if(s.success)return s.data;throw s.error}safeParse(t,n){var s;const r={common:{issues:[],async:(s=n==null?void 0:n.async)!==null&&s!==void 0?s:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:fn(t)},i=this._parseSync({data:t,path:r.path,parent:r});return _f(r,i)}"~validate"(t){var n,s;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:fn(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:r});return ps(i)?{value:i.value}:{issues:r.common.issues}}catch(i){!((s=(n=i==null?void 0:i.message)===null||n===void 0?void 0:n.toLowerCase())===null||s===void 0)&&s.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(i=>ps(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(t,n){const s=await this.safeParseAsync(t,n);if(s.success)return s.data;throw s.error}async safeParseAsync(t,n){const s={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:t,parsedType:fn(t)},r=this._parse({data:t,path:s.path,parent:s}),i=await(Kr(r)?r:Promise.resolve(r));return _f(s,i)}refine(t,n){const s=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,i)=>{const o=t(r),a=()=>i.addIssue({code:M.custom,...s(r)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((s,r)=>t(s)?!0:(r.addIssue(typeof n=="function"?n(s,r):n),!1))}_refinement(t){return new Vt({schema:this,typeName:ee.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,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 nn.create(this,this._def)}nullable(){return $n.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Mt.create(this)}promise(){return ir.create(this,this._def)}or(t){return Yr.create([this,t],this._def)}and(t){return Jr.create(this,t,this._def)}transform(t){return new Vt({...oe(this._def),schema:this,typeName:ee.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new ri({...oe(this._def),innerType:this,defaultValue:n,typeName:ee.ZodDefault})}brand(){return new Yl({typeName:ee.ZodBranded,type:this,...oe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new ii({...oe(this._def),innerType:this,catchValue:n,typeName:ee.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Ci.create(this,t)}readonly(){return oi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const VE=/^c[^\s-]{8,}$/i,BE=/^[0-9a-z]+$/,UE=/^[0-9A-HJKMNP-TV-Z]{26}$/i,$E=/^[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,zE=/^[a-z0-9_-]{21}$/i,WE=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,HE=/^[-+]?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)?)??$/,qE=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ZE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ka;const KE=/^(?:(?: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])$/,GE=/^(?:(?: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])$/,QE=/^(([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]))$/,XE=/^(([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])$/,YE=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,JE=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Qg="((\\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])))",eA=new RegExp(`^${Qg}$`);function Xg(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function tA(e){return new RegExp(`^${Xg(e)}$`)}function Yg(e){let t=`${Qg}T${Xg(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function nA(e,t){return!!((t==="v4"||!t)&&KE.test(e)||(t==="v6"||!t)&&QE.test(e))}function sA(e,t){if(!WE.test(e))return!1;try{const[n]=e.split("."),s=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(s));return!(typeof r!="object"||r===null||!r.typ||!r.alg||t&&r.alg!==t)}catch{return!1}}function rA(e,t){return!!((t==="v4"||!t)&&GE.test(e)||(t==="v6"||!t)&&XE.test(e))}class Dt extends le{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==z.string){const i=this._getOrReturnCtx(t);return U(i,{code:M.invalid_type,expected:z.string,received:i.parsedType}),ne}const s=new Qe;let r;for(const i of this._def.checks)if(i.kind==="min")t.data.lengthi.value&&(r=this._getOrReturnCtx(t,r),U(r,{code:M.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,a=t.data.lengtht.test(r),{validation:n,code:M.invalid_string,...Q.errToObj(s)})}_addCheck(t){return new Dt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Q.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Q.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Q.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Q.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Q.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Q.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Q.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Q.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Q.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Q.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Q.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Q.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Q.errToObj(t)})}datetime(t){var n,s;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(s=t==null?void 0:t.local)!==null&&s!==void 0?s:!1,...Q.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Q.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Q.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Q.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Q.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Q.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Q.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Q.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Q.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Q.errToObj(n)})}nonempty(t){return this.min(1,Q.errToObj(t))}trim(){return new Dt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Dt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Dt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Dt({checks:[],typeName:ee.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...oe(e)})};function iA(e,t){const n=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,r=n>s?n:s,i=parseInt(e.toFixed(r).replace(".","")),o=parseInt(t.toFixed(r).replace(".",""));return i%o/Math.pow(10,r)}class Vn extends le{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==z.number){const i=this._getOrReturnCtx(t);return U(i,{code:M.invalid_type,expected:z.number,received:i.parsedType}),ne}let s;const r=new Qe;for(const i of this._def.checks)i.kind==="int"?pe.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),U(s,{code:M.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),U(s,{code:M.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="multipleOf"?iA(t.data,i.value)!==0&&(s=this._getOrReturnCtx(t,s),U(s,{code:M.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),U(s,{code:M.not_finite,message:i.message}),r.dirty()):pe.assertNever(i);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Q.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Q.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Q.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Q.toString(n))}setLimit(t,n,s,r){return new Vn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:Q.toString(r)}]})}_addCheck(t){return new Vn({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Q.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Q.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Q.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Q.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Q.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Q.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Q.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Q.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Q.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&pe.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(n===null||s.value>n)&&(n=s.value):s.kind==="max"&&(t===null||s.valuenew Vn({checks:[],typeName:ee.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class Bn extends le{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==z.bigint)return this._getInvalidInput(t);let s;const r=new Qe;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.datai.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),U(s,{code:M.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),U(s,{code:M.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):pe.assertNever(i);return{status:r.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return U(n,{code:M.invalid_type,expected:z.bigint,received:n.parsedType}),ne}gte(t,n){return this.setLimit("min",t,!0,Q.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Q.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Q.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Q.toString(n))}setLimit(t,n,s,r){return new Bn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:Q.toString(r)}]})}_addCheck(t){return new Bn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Q.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Q.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Q.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Q.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Q.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Bn({checks:[],typeName:ee.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...oe(e)})};class Gr extends le{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==z.boolean){const s=this._getOrReturnCtx(t);return U(s,{code:M.invalid_type,expected:z.boolean,received:s.parsedType}),ne}return nt(t.data)}}Gr.create=e=>new Gr({typeName:ee.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class ms extends le{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==z.date){const i=this._getOrReturnCtx(t);return U(i,{code:M.invalid_type,expected:z.date,received:i.parsedType}),ne}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return U(i,{code:M.invalid_date}),ne}const s=new Qe;let r;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()i.value&&(r=this._getOrReturnCtx(t,r),U(r,{code:M.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),s.dirty()):pe.assertNever(i);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ms({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Q.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Q.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew ms({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:ee.ZodDate,...oe(e)});class wo extends le{_parse(t){if(this._getType(t)!==z.symbol){const s=this._getOrReturnCtx(t);return U(s,{code:M.invalid_type,expected:z.symbol,received:s.parsedType}),ne}return nt(t.data)}}wo.create=e=>new wo({typeName:ee.ZodSymbol,...oe(e)});class Qr extends le{_parse(t){if(this._getType(t)!==z.undefined){const s=this._getOrReturnCtx(t);return U(s,{code:M.invalid_type,expected:z.undefined,received:s.parsedType}),ne}return nt(t.data)}}Qr.create=e=>new Qr({typeName:ee.ZodUndefined,...oe(e)});class Xr extends le{_parse(t){if(this._getType(t)!==z.null){const s=this._getOrReturnCtx(t);return U(s,{code:M.invalid_type,expected:z.null,received:s.parsedType}),ne}return nt(t.data)}}Xr.create=e=>new Xr({typeName:ee.ZodNull,...oe(e)});class rr extends le{constructor(){super(...arguments),this._any=!0}_parse(t){return nt(t.data)}}rr.create=e=>new rr({typeName:ee.ZodAny,...oe(e)});class ls extends le{constructor(){super(...arguments),this._unknown=!0}_parse(t){return nt(t.data)}}ls.create=e=>new ls({typeName:ee.ZodUnknown,...oe(e)});class xn extends le{_parse(t){const n=this._getOrReturnCtx(t);return U(n,{code:M.invalid_type,expected:z.never,received:n.parsedType}),ne}}xn.create=e=>new xn({typeName:ee.ZodNever,...oe(e)});class So extends le{_parse(t){if(this._getType(t)!==z.undefined){const s=this._getOrReturnCtx(t);return U(s,{code:M.invalid_type,expected:z.void,received:s.parsedType}),ne}return nt(t.data)}}So.create=e=>new So({typeName:ee.ZodVoid,...oe(e)});class Mt extends le{_parse(t){const{ctx:n,status:s}=this._processInputParams(t),r=this._def;if(n.parsedType!==z.array)return U(n,{code:M.invalid_type,expected:z.array,received:n.parsedType}),ne;if(r.exactLength!==null){const o=n.data.length>r.exactLength.value,a=n.data.lengthr.maxLength.value&&(U(n,{code:M.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),s.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>r.type._parseAsync(new rn(n,o,n.path,a)))).then(o=>Qe.mergeArray(s,o));const i=[...n.data].map((o,a)=>r.type._parseSync(new rn(n,o,n.path,a)));return Qe.mergeArray(s,i)}get element(){return this._def.type}min(t,n){return new Mt({...this._def,minLength:{value:t,message:Q.toString(n)}})}max(t,n){return new Mt({...this._def,maxLength:{value:t,message:Q.toString(n)}})}length(t,n){return new Mt({...this._def,exactLength:{value:t,message:Q.toString(n)}})}nonempty(t){return this.min(1,t)}}Mt.create=(e,t)=>new Mt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ee.ZodArray,...oe(t)});function As(e){if(e instanceof Te){const t={};for(const n in e.shape){const s=e.shape[n];t[n]=nn.create(As(s))}return new Te({...e._def,shape:()=>t})}else return e instanceof Mt?new Mt({...e._def,type:As(e.element)}):e instanceof nn?nn.create(As(e.unwrap())):e instanceof $n?$n.create(As(e.unwrap())):e instanceof on?on.create(e.items.map(t=>As(t))):e}class Te extends le{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=pe.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==z.object){const l=this._getOrReturnCtx(t);return U(l,{code:M.invalid_type,expected:z.object,received:l.parsedType}),ne}const{status:s,ctx:r}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof xn&&this._def.unknownKeys==="strip"))for(const l in r.data)o.includes(l)||a.push(l);const c=[];for(const l of o){const u=i[l],d=r.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new rn(r,d,r.path,l)),alwaysSet:l in r.data})}if(this._def.catchall instanceof xn){const l=this._def.unknownKeys;if(l==="passthrough")for(const u of a)c.push({key:{status:"valid",value:u},value:{status:"valid",value:r.data[u]}});else if(l==="strict")a.length>0&&(U(r,{code:M.unrecognized_keys,keys:a}),s.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const u of a){const d=r.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new rn(r,d,r.path,u)),alwaysSet:u in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const l=[];for(const u of c){const d=await u.key,f=await u.value;l.push({key:d,value:f,alwaysSet:u.alwaysSet})}return l}).then(l=>Qe.mergeObjectSync(s,l)):Qe.mergeObjectSync(s,c)}get shape(){return this._def.shape()}strict(t){return Q.errToObj,new Te({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,s)=>{var r,i,o,a;const c=(o=(i=(r=this._def).errorMap)===null||i===void 0?void 0:i.call(r,n,s).message)!==null&&o!==void 0?o:s.defaultError;return n.code==="unrecognized_keys"?{message:(a=Q.errToObj(t).message)!==null&&a!==void 0?a:c}:{message:c}}}:{}})}strip(){return new Te({...this._def,unknownKeys:"strip"})}passthrough(){return new Te({...this._def,unknownKeys:"passthrough"})}extend(t){return new Te({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Te({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ee.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Te({...this._def,catchall:t})}pick(t){const n={};return pe.objectKeys(t).forEach(s=>{t[s]&&this.shape[s]&&(n[s]=this.shape[s])}),new Te({...this._def,shape:()=>n})}omit(t){const n={};return pe.objectKeys(this.shape).forEach(s=>{t[s]||(n[s]=this.shape[s])}),new Te({...this._def,shape:()=>n})}deepPartial(){return As(this)}partial(t){const n={};return pe.objectKeys(this.shape).forEach(s=>{const r=this.shape[s];t&&!t[s]?n[s]=r:n[s]=r.optional()}),new Te({...this._def,shape:()=>n})}required(t){const n={};return pe.objectKeys(this.shape).forEach(s=>{if(t&&!t[s])n[s]=this.shape[s];else{let i=this.shape[s];for(;i instanceof nn;)i=i._def.innerType;n[s]=i}}),new Te({...this._def,shape:()=>n})}keyof(){return Jg(pe.objectKeys(this.shape))}}Te.create=(e,t)=>new Te({shape:()=>e,unknownKeys:"strip",catchall:xn.create(),typeName:ee.ZodObject,...oe(t)});Te.strictCreate=(e,t)=>new Te({shape:()=>e,unknownKeys:"strict",catchall:xn.create(),typeName:ee.ZodObject,...oe(t)});Te.lazycreate=(e,t)=>new Te({shape:e,unknownKeys:"strip",catchall:xn.create(),typeName:ee.ZodObject,...oe(t)});class Yr extends le{_parse(t){const{ctx:n}=this._processInputParams(t),s=this._def.options;function r(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new xt(a.ctx.common.issues));return U(n,{code:M.invalid_union,unionErrors:o}),ne}if(n.common.async)return Promise.all(s.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(r);{let i;const o=[];for(const c of s){const l={...n,common:{...n.common,issues:[]},parent:null},u=c._parseSync({data:n.data,path:n.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(c=>new xt(c));return U(n,{code:M.invalid_union,unionErrors:a}),ne}}get options(){return this._def.options}}Yr.create=(e,t)=>new Yr({options:e,typeName:ee.ZodUnion,...oe(t)});const un=e=>e instanceof ti?un(e.schema):e instanceof Vt?un(e.innerType()):e instanceof ni?[e.value]:e instanceof Un?e.options:e instanceof si?pe.objectValues(e.enum):e instanceof ri?un(e._def.innerType):e instanceof Qr?[void 0]:e instanceof Xr?[null]:e instanceof nn?[void 0,...un(e.unwrap())]:e instanceof $n?[null,...un(e.unwrap())]:e instanceof Yl||e instanceof oi?un(e.unwrap()):e instanceof ii?un(e._def.innerType):[];class Zo extends le{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==z.object)return U(n,{code:M.invalid_type,expected:z.object,received:n.parsedType}),ne;const s=this.discriminator,r=n.data[s],i=this.optionsMap.get(r);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(U(n,{code:M.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),ne)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,s){const r=new Map;for(const i of n){const o=un(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of o){if(r.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);r.set(a,i)}}return new Zo({typeName:ee.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...oe(s)})}}function gc(e,t){const n=fn(e),s=fn(t);if(e===t)return{valid:!0,data:e};if(n===z.object&&s===z.object){const r=pe.objectKeys(t),i=pe.objectKeys(e).filter(a=>r.indexOf(a)!==-1),o={...e,...t};for(const a of i){const c=gc(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===z.array&&s===z.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let i=0;i{if(pc(i)||pc(o))return ne;const a=gc(i.value,o.value);return a.valid?((mc(i)||mc(o))&&n.dirty(),{status:n.value,value:a.data}):(U(s,{code:M.invalid_intersection_types}),ne)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,o])=>r(i,o)):r(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}Jr.create=(e,t,n)=>new Jr({left:e,right:t,typeName:ee.ZodIntersection,...oe(n)});class on extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==z.array)return U(s,{code:M.invalid_type,expected:z.array,received:s.parsedType}),ne;if(s.data.lengththis._def.items.length&&(U(s,{code:M.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...s.data].map((o,a)=>{const c=this._def.items[a]||this._def.rest;return c?c._parse(new rn(s,o,s.path,a)):null}).filter(o=>!!o);return s.common.async?Promise.all(i).then(o=>Qe.mergeArray(n,o)):Qe.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new on({...this._def,rest:t})}}on.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new on({items:e,typeName:ee.ZodTuple,rest:null,...oe(t)})};class ei extends le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==z.object)return U(s,{code:M.invalid_type,expected:z.object,received:s.parsedType}),ne;const r=[],i=this._def.keyType,o=this._def.valueType;for(const a in s.data)r.push({key:i._parse(new rn(s,a,s.path,a)),value:o._parse(new rn(s,s.data[a],s.path,a)),alwaysSet:a in s.data});return s.common.async?Qe.mergeObjectAsync(n,r):Qe.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,s){return n instanceof le?new ei({keyType:t,valueType:n,typeName:ee.ZodRecord,...oe(s)}):new ei({keyType:Dt.create(),valueType:t,typeName:ee.ZodRecord,...oe(n)})}}class _o extends le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==z.map)return U(s,{code:M.invalid_type,expected:z.map,received:s.parsedType}),ne;const r=this._def.keyType,i=this._def.valueType,o=[...s.data.entries()].map(([a,c],l)=>({key:r._parse(new rn(s,a,s.path,[l,"key"])),value:i._parse(new rn(s,c,s.path,[l,"value"]))}));if(s.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const c of o){const l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return ne;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const c of o){const l=c.key,u=c.value;if(l.status==="aborted"||u.status==="aborted")return ne;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}}}}_o.create=(e,t,n)=>new _o({valueType:t,keyType:e,typeName:ee.ZodMap,...oe(n)});class gs extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==z.set)return U(s,{code:M.invalid_type,expected:z.set,received:s.parsedType}),ne;const r=this._def;r.minSize!==null&&s.data.sizer.maxSize.value&&(U(s,{code:M.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());const i=this._def.valueType;function o(c){const l=new Set;for(const u of c){if(u.status==="aborted")return ne;u.status==="dirty"&&n.dirty(),l.add(u.value)}return{status:n.value,value:l}}const a=[...s.data.values()].map((c,l)=>i._parse(new rn(s,c,s.path,l)));return s.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,n){return new gs({...this._def,minSize:{value:t,message:Q.toString(n)}})}max(t,n){return new gs({...this._def,maxSize:{value:t,message:Q.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}gs.create=(e,t)=>new gs({valueType:e,minSize:null,maxSize:null,typeName:ee.ZodSet,...oe(t)});class Ls extends le{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==z.function)return U(n,{code:M.invalid_type,expected:z.function,received:n.parsedType}),ne;function s(a,c){return xo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,vo(),sr].filter(l=>!!l),issueData:{code:M.invalid_arguments,argumentsError:c}})}function r(a,c){return xo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,vo(),sr].filter(l=>!!l),issueData:{code:M.invalid_return_type,returnTypeError:c}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof ir){const a=this;return nt(async function(...c){const l=new xt([]),u=await a._def.args.parseAsync(c,i).catch(g=>{throw l.addIssue(s(c,g)),l}),d=await Reflect.apply(o,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(g=>{throw l.addIssue(r(d,g)),l})})}else{const a=this;return nt(function(...c){const l=a._def.args.safeParse(c,i);if(!l.success)throw new xt([s(c,l.error)]);const u=Reflect.apply(o,this,l.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new xt([r(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ls({...this._def,args:on.create(t).rest(ls.create())})}returns(t){return new Ls({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,s){return new Ls({args:t||on.create([]).rest(ls.create()),returns:n||ls.create(),typeName:ee.ZodFunction,...oe(s)})}}class ti extends le{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}ti.create=(e,t)=>new ti({getter:e,typeName:ee.ZodLazy,...oe(t)});class ni extends le{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return U(n,{received:n.data,code:M.invalid_literal,expected:this._def.value}),ne}return{status:"valid",value:t.data}}get value(){return this._def.value}}ni.create=(e,t)=>new ni({value:e,typeName:ee.ZodLiteral,...oe(t)});function Jg(e,t){return new Un({values:e,typeName:ee.ZodEnum,...oe(t)})}class Un extends le{constructor(){super(...arguments),Pr.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),s=this._def.values;return U(n,{expected:pe.joinValues(s),received:n.parsedType,code:M.invalid_type}),ne}if(bo(this,Pr)||Gg(this,Pr,new Set(this._def.values)),!bo(this,Pr).has(t.data)){const n=this._getOrReturnCtx(t),s=this._def.values;return U(n,{received:n.data,code:M.invalid_enum_value,options:s}),ne}return nt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Un.create(t,{...this._def,...n})}exclude(t,n=this._def){return Un.create(this.options.filter(s=>!t.includes(s)),{...this._def,...n})}}Pr=new WeakMap;Un.create=Jg;class si extends le{constructor(){super(...arguments),Rr.set(this,void 0)}_parse(t){const n=pe.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==z.string&&s.parsedType!==z.number){const r=pe.objectValues(n);return U(s,{expected:pe.joinValues(r),received:s.parsedType,code:M.invalid_type}),ne}if(bo(this,Rr)||Gg(this,Rr,new Set(pe.getValidEnumValues(this._def.values))),!bo(this,Rr).has(t.data)){const r=pe.objectValues(n);return U(s,{received:s.data,code:M.invalid_enum_value,options:r}),ne}return nt(t.data)}get enum(){return this._def.values}}Rr=new WeakMap;si.create=(e,t)=>new si({values:e,typeName:ee.ZodNativeEnum,...oe(t)});class ir extends le{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==z.promise&&n.common.async===!1)return U(n,{code:M.invalid_type,expected:z.promise,received:n.parsedType}),ne;const s=n.parsedType===z.promise?n.data:Promise.resolve(n.data);return nt(s.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ir.create=(e,t)=>new ir({type:e,typeName:ee.ZodPromise,...oe(t)});class Vt extends le{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ee.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:s}=this._processInputParams(t),r=this._def.effect||null,i={addIssue:o=>{U(s,o),o.fatal?n.abort():n.dirty()},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),r.type==="preprocess"){const o=r.transform(s.data,i);if(s.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return ne;const c=await this._def.schema._parseAsync({data:a,path:s.path,parent:s});return c.status==="aborted"?ne:c.status==="dirty"||n.value==="dirty"?js(c.value):c});{if(n.value==="aborted")return ne;const a=this._def.schema._parseSync({data:o,path:s.path,parent:s});return a.status==="aborted"?ne:a.status==="dirty"||n.value==="dirty"?js(a.value):a}}if(r.type==="refinement"){const o=a=>{const c=r.refinement(a,i);if(s.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(s.common.async===!1){const a=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?ne:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(a=>a.status==="aborted"?ne:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(r.type==="transform")if(s.common.async===!1){const o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!ps(o))return o;const a=r.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>ps(o)?Promise.resolve(r.transform(o.value,i)).then(a=>({status:n.value,value:a})):o);pe.assertNever(r)}}Vt.create=(e,t,n)=>new Vt({schema:e,typeName:ee.ZodEffects,effect:t,...oe(n)});Vt.createWithPreprocess=(e,t,n)=>new Vt({schema:t,effect:{type:"preprocess",transform:e},typeName:ee.ZodEffects,...oe(n)});class nn extends le{_parse(t){return this._getType(t)===z.undefined?nt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}nn.create=(e,t)=>new nn({innerType:e,typeName:ee.ZodOptional,...oe(t)});class $n extends le{_parse(t){return this._getType(t)===z.null?nt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}$n.create=(e,t)=>new $n({innerType:e,typeName:ee.ZodNullable,...oe(t)});class ri extends le{_parse(t){const{ctx:n}=this._processInputParams(t);let s=n.data;return n.parsedType===z.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}ri.create=(e,t)=>new ri({innerType:e,typeName:ee.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...oe(t)});class ii extends le{_parse(t){const{ctx:n}=this._processInputParams(t),s={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Kr(r)?r.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new xt(s.common.issues)},input:s.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new xt(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}ii.create=(e,t)=>new ii({innerType:e,typeName:ee.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...oe(t)});class Co extends le{_parse(t){if(this._getType(t)!==z.nan){const s=this._getOrReturnCtx(t);return U(s,{code:M.invalid_type,expected:z.nan,received:s.parsedType}),ne}return{status:"valid",value:t.data}}}Co.create=e=>new Co({typeName:ee.ZodNaN,...oe(e)});const oA=Symbol("zod_brand");class Yl extends le{_parse(t){const{ctx:n}=this._processInputParams(t),s=n.data;return this._def.type._parse({data:s,path:n.path,parent:n})}unwrap(){return this._def.type}}class Ci extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?ne:i.status==="dirty"?(n.dirty(),js(i.value)):this._def.out._parseAsync({data:i.value,path:s.path,parent:s})})();{const r=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return r.status==="aborted"?ne:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:s.path,parent:s})}}static create(t,n){return new Ci({in:t,out:n,typeName:ee.ZodPipeline})}}class oi extends le{_parse(t){const n=this._def.innerType._parse(t),s=r=>(ps(r)&&(r.value=Object.freeze(r.value)),r);return Kr(n)?n.then(r=>s(r)):s(n)}unwrap(){return this._def.innerType}}oi.create=(e,t)=>new oi({innerType:e,typeName:ee.ZodReadonly,...oe(t)});function ey(e,t={},n){return e?rr.create().superRefine((s,r)=>{var i,o;if(!e(s)){const a=typeof t=="function"?t(s):typeof t=="string"?{message:t}:t,c=(o=(i=a.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,l=typeof a=="string"?{message:a}:a;r.addIssue({code:"custom",...l,fatal:c})}}):rr.create()}const aA={object:Te.lazycreate};var ee;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ee||(ee={}));const cA=(e,t={message:`Input not instance of ${e.name}`})=>ey(n=>n instanceof e,t),ty=Dt.create,ny=Vn.create,lA=Co.create,uA=Bn.create,sy=Gr.create,dA=ms.create,fA=wo.create,hA=Qr.create,pA=Xr.create,mA=rr.create,gA=ls.create,yA=xn.create,vA=So.create,xA=Mt.create,bA=Te.create,wA=Te.strictCreate,SA=Yr.create,_A=Zo.create,CA=Jr.create,TA=on.create,EA=ei.create,AA=_o.create,PA=gs.create,RA=Ls.create,kA=ti.create,NA=ni.create,OA=Un.create,jA=si.create,DA=ir.create,Cf=Vt.create,MA=nn.create,FA=$n.create,LA=Vt.createWithPreprocess,IA=Ci.create,VA=()=>ty().optional(),BA=()=>ny().optional(),UA=()=>sy().optional(),$A={string:e=>Dt.create({...e,coerce:!0}),number:e=>Vn.create({...e,coerce:!0}),boolean:e=>Gr.create({...e,coerce:!0}),bigint:e=>Bn.create({...e,coerce:!0}),date:e=>ms.create({...e,coerce:!0})},zA=ne;var Tf=Object.freeze({__proto__:null,defaultErrorMap:sr,setErrorMap:LE,getErrorMap:vo,makeIssue:xo,EMPTY_PATH:IE,addIssueToContext:U,ParseStatus:Qe,INVALID:ne,DIRTY:js,OK:nt,isAborted:pc,isDirty:mc,isValid:ps,isAsync:Kr,get util(){return pe},get objectUtil(){return hc},ZodParsedType:z,getParsedType:fn,ZodType:le,datetimeRegex:Yg,ZodString:Dt,ZodNumber:Vn,ZodBigInt:Bn,ZodBoolean:Gr,ZodDate:ms,ZodSymbol:wo,ZodUndefined:Qr,ZodNull:Xr,ZodAny:rr,ZodUnknown:ls,ZodNever:xn,ZodVoid:So,ZodArray:Mt,ZodObject:Te,ZodUnion:Yr,ZodDiscriminatedUnion:Zo,ZodIntersection:Jr,ZodTuple:on,ZodRecord:ei,ZodMap:_o,ZodSet:gs,ZodFunction:Ls,ZodLazy:ti,ZodLiteral:ni,ZodEnum:Un,ZodNativeEnum:si,ZodPromise:ir,ZodEffects:Vt,ZodTransformer:Vt,ZodOptional:nn,ZodNullable:$n,ZodDefault:ri,ZodCatch:ii,ZodNaN:Co,BRAND:oA,ZodBranded:Yl,ZodPipeline:Ci,ZodReadonly:oi,custom:ey,Schema:le,ZodSchema:le,late:aA,get ZodFirstPartyTypeKind(){return ee},coerce:$A,any:mA,array:xA,bigint:uA,boolean:sy,date:dA,discriminatedUnion:_A,effect:Cf,enum:OA,function:RA,instanceof:cA,intersection:CA,lazy:kA,literal:NA,map:AA,nan:lA,nativeEnum:jA,never:yA,null:pA,nullable:FA,number:ny,object:bA,oboolean:UA,onumber:BA,optional:MA,ostring:VA,pipeline:IA,preprocess:LA,promise:DA,record:EA,set:PA,strictObject:wA,string:ty,symbol:fA,transformer:Cf,tuple:TA,undefined:hA,union:SA,unknown:gA,void:vA,NEVER:zA,ZodIssueCode:M,quotelessJson:FE,ZodError:xt});const Na=(e,t)=>Pe(s=>s.lang)==="ru"?e:t;function ry(e,t){return function(){return e.apply(t,arguments)}}const{toString:WA}=Object.prototype,{getPrototypeOf:Jl}=Object,Ko=(e=>t=>{const n=WA.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$t=e=>(e=e.toLowerCase(),t=>Ko(t)===e),Go=e=>t=>typeof t===e,{isArray:hr}=Array,ai=Go("undefined");function HA(e){return e!==null&&!ai(e)&&e.constructor!==null&&!ai(e.constructor)&&bt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const iy=$t("ArrayBuffer");function qA(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&iy(e.buffer),t}const ZA=Go("string"),bt=Go("function"),oy=Go("number"),Qo=e=>e!==null&&typeof e=="object",KA=e=>e===!0||e===!1,Yi=e=>{if(Ko(e)!=="object")return!1;const t=Jl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},GA=$t("Date"),QA=$t("File"),XA=$t("Blob"),YA=$t("FileList"),JA=e=>Qo(e)&&bt(e.pipe),eP=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||bt(e.append)&&((t=Ko(e))==="formdata"||t==="object"&&bt(e.toString)&&e.toString()==="[object FormData]"))},tP=$t("URLSearchParams"),[nP,sP,rP,iP]=["ReadableStream","Request","Response","Headers"].map($t),oP=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ti(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),hr(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const Yn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,cy=e=>!ai(e)&&e!==Yn;function yc(){const{caseless:e}=cy(this)&&this||{},t={},n=(s,r)=>{const i=e&&ay(t,r)||r;Yi(t[i])&&Yi(s)?t[i]=yc(t[i],s):Yi(s)?t[i]=yc({},s):hr(s)?t[i]=s.slice():t[i]=s};for(let s=0,r=arguments.length;s(Ti(t,(r,i)=>{n&&bt(r)?e[i]=ry(r,n):e[i]=r},{allOwnKeys:s}),e),cP=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),lP=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},uP=(e,t,n,s)=>{let r,i,o;const a={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)o=r[i],(!s||s(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Jl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},dP=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},fP=e=>{if(!e)return null;if(hr(e))return e;let t=e.length;if(!oy(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},hP=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Jl(Uint8Array)),pP=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},mP=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},gP=$t("HTMLFormElement"),yP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Ef=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),vP=$t("RegExp"),ly=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Ti(n,(r,i)=>{let o;(o=t(r,i,e))!==!1&&(s[i]=o||r)}),Object.defineProperties(e,s)},xP=e=>{ly(e,(t,n)=>{if(bt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(bt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},bP=(e,t)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return hr(e)?s(e):s(String(e).split(t)),n},wP=()=>{},SP=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Oa="abcdefghijklmnopqrstuvwxyz",Af="0123456789",uy={DIGIT:Af,ALPHA:Oa,ALPHA_DIGIT:Oa+Oa.toUpperCase()+Af},_P=(e=16,t=uy.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function CP(e){return!!(e&&bt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const TP=e=>{const t=new Array(10),n=(s,r)=>{if(Qo(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const i=hr(s)?[]:{};return Ti(s,(o,a)=>{const c=n(o,r+1);!ai(c)&&(i[a]=c)}),t[r]=void 0,i}}return s};return n(e,0)},EP=$t("AsyncFunction"),AP=e=>e&&(Qo(e)||bt(e))&&bt(e.then)&&bt(e.catch),dy=((e,t)=>e?setImmediate:t?((n,s)=>(Yn.addEventListener("message",({source:r,data:i})=>{r===Yn&&i===n&&s.length&&s.shift()()},!1),r=>{s.push(r),Yn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",bt(Yn.postMessage)),PP=typeof queueMicrotask<"u"?queueMicrotask.bind(Yn):typeof process<"u"&&process.nextTick||dy,k={isArray:hr,isArrayBuffer:iy,isBuffer:HA,isFormData:eP,isArrayBufferView:qA,isString:ZA,isNumber:oy,isBoolean:KA,isObject:Qo,isPlainObject:Yi,isReadableStream:nP,isRequest:sP,isResponse:rP,isHeaders:iP,isUndefined:ai,isDate:GA,isFile:QA,isBlob:XA,isRegExp:vP,isFunction:bt,isStream:JA,isURLSearchParams:tP,isTypedArray:hP,isFileList:YA,forEach:Ti,merge:yc,extend:aP,trim:oP,stripBOM:cP,inherits:lP,toFlatObject:uP,kindOf:Ko,kindOfTest:$t,endsWith:dP,toArray:fP,forEachEntry:pP,matchAll:mP,isHTMLForm:gP,hasOwnProperty:Ef,hasOwnProp:Ef,reduceDescriptors:ly,freezeMethods:xP,toObjectSet:bP,toCamelCase:yP,noop:wP,toFiniteNumber:SP,findKey:ay,global:Yn,isContextDefined:cy,ALPHABET:uy,generateString:_P,isSpecCompliantForm:CP,toJSONObject:TP,isAsyncFn:EP,isThenable:AP,setImmediate:dy,asap:PP};function ie(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.status:null)}k.inherits(ie,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:k.toJSONObject(this.config),code:this.code,status:this.status}}});const fy=ie.prototype,hy={};["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(e=>{hy[e]={value:e}});Object.defineProperties(ie,hy);Object.defineProperty(fy,"isAxiosError",{value:!0});ie.from=(e,t,n,s,r,i)=>{const o=Object.create(fy);return k.toFlatObject(e,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),ie.call(o,e.message,t,n,s,r),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const RP=null;function vc(e){return k.isPlainObject(e)||k.isArray(e)}function py(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function Pf(e,t,n){return e?e.concat(t).map(function(r,i){return r=py(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function kP(e){return k.isArray(e)&&!e.some(vc)}const NP=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function Xo(e,t,n){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,y){return!k.isUndefined(y[h])});const s=n.metaTokens,r=n.visitor||u,i=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(r))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(k.isDate(m))return m.toISOString();if(!c&&k.isBlob(m))throw new ie("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(m)||k.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,h,y){let v=m;if(m&&!y&&typeof m=="object"){if(k.endsWith(h,"{}"))h=s?h:h.slice(0,-2),m=JSON.stringify(m);else if(k.isArray(m)&&kP(m)||(k.isFileList(m)||k.endsWith(h,"[]"))&&(v=k.toArray(m)))return h=py(h),v.forEach(function(w,C){!(k.isUndefined(w)||w===null)&&t.append(o===!0?Pf([h],C,i):o===null?h:h+"[]",l(w))}),!1}return vc(m)?!0:(t.append(Pf(y,h,i),l(m)),!1)}const d=[],f=Object.assign(NP,{defaultVisitor:u,convertValue:l,isVisitable:vc});function g(m,h){if(!k.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(m),k.forEach(m,function(v,b){(!(k.isUndefined(v)||v===null)&&r.call(t,v,k.isString(b)?b.trim():b,h,f))===!0&&g(v,h?h.concat(b):[b])}),d.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Rf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function eu(e,t){this._pairs=[],e&&Xo(e,this,t)}const my=eu.prototype;my.append=function(t,n){this._pairs.push([t,n])};my.toString=function(t){const n=t?function(s){return t.call(this,s,Rf)}:Rf;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function OP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gy(e,t,n){if(!t)return e;const s=n&&n.encode||OP;k.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let i;if(r?i=r(t,n):i=k.isURLSearchParams(t)?t.toString():new eu(t,n).toString(s),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class kf{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){k.forEach(this.handlers,function(s){s!==null&&t(s)})}}const yy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jP=typeof URLSearchParams<"u"?URLSearchParams:eu,DP=typeof FormData<"u"?FormData:null,MP=typeof Blob<"u"?Blob:null,FP={isBrowser:!0,classes:{URLSearchParams:jP,FormData:DP,Blob:MP},protocols:["http","https","file","blob","url","data"]},tu=typeof window<"u"&&typeof document<"u",xc=typeof navigator=="object"&&navigator||void 0,LP=tu&&(!xc||["ReactNative","NativeScript","NS"].indexOf(xc.product)<0),IP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",VP=tu&&window.location.href||"http://localhost",BP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:tu,hasStandardBrowserEnv:LP,hasStandardBrowserWebWorkerEnv:IP,navigator:xc,origin:VP},Symbol.toStringTag,{value:"Module"})),Ke={...BP,...FP};function UP(e,t){return Xo(e,new Ke.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return Ke.isNode&&k.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function $P(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function zP(e){const t={},n=Object.keys(e);let s;const r=n.length;let i;for(s=0;s=n.length;return o=!o&&k.isArray(r)?r.length:o,c?(k.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!k.isObject(r[o]))&&(r[o]=[]),t(n,s,r[o],i)&&k.isArray(r[o])&&(r[o]=zP(r[o])),!a)}if(k.isFormData(e)&&k.isFunction(e.entries)){const n={};return k.forEachEntry(e,(s,r)=>{t($P(s),r,n,0)}),n}return null}function WP(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(e)}const Ei={transitional:yy,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=k.isObject(t);if(i&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return r?JSON.stringify(vy(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)||k.isReadableStream(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return UP(t,this.formSerializer).toString();if((a=k.isFileList(t))||s.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Xo(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),WP(t)):t}],transformResponse:[function(t){const n=this.transitional||Ei.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(k.isResponse(t)||k.isReadableStream(t))return t;if(t&&k.isString(t)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?ie.from(a,ie.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{Ei.headers[e]={}});const HP=k.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"]),qP=e=>{const t={};let n,s,r;return e&&e.split(` +`).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!n||t[n]&&HP[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Nf=Symbol("internals");function Cr(e){return e&&String(e).trim().toLowerCase()}function Ji(e){return e===!1||e==null?e:k.isArray(e)?e.map(Ji):String(e)}function ZP(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const KP=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ja(e,t,n,s,r){if(k.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!k.isString(t)){if(k.isString(s))return t.indexOf(s)!==-1;if(k.isRegExp(s))return s.test(t)}}function GP(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function QP(e,t){const n=k.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,i,o){return this[s].call(this,t,r,i,o)},configurable:!0})})}class dt{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function i(a,c,l){const u=Cr(c);if(!u)throw new Error("header name must be a non-empty string");const d=k.findKey(r,u);(!d||r[d]===void 0||l===!0||l===void 0&&r[d]!==!1)&&(r[d||c]=Ji(a))}const o=(a,c)=>k.forEach(a,(l,u)=>i(l,u,c));if(k.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(k.isString(t)&&(t=t.trim())&&!KP(t))o(qP(t),n);else if(k.isHeaders(t))for(const[a,c]of t.entries())i(c,a,s);else t!=null&&i(n,t,s);return this}get(t,n){if(t=Cr(t),t){const s=k.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return ZP(r);if(k.isFunction(n))return n.call(this,r,s);if(k.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Cr(t),t){const s=k.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||ja(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function i(o){if(o=Cr(o),o){const a=k.findKey(s,o);a&&(!n||ja(s,s[a],a,n))&&(delete s[a],r=!0)}}return k.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const i=n[s];(!t||ja(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,s={};return k.forEach(this,(r,i)=>{const o=k.findKey(s,i);if(o){n[o]=Ji(r),delete n[i];return}const a=t?GP(i):String(i).trim();a!==i&&delete n[i],n[a]=Ji(r),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return k.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&k.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[Nf]=this[Nf]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=Cr(o);s[a]||(QP(r,o),s[a]=!0)}return k.isArray(t)?t.forEach(i):i(t),this}}dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.reduceDescriptors(dt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});k.freezeMethods(dt);function Da(e,t){const n=this||Ei,s=t||n,r=dt.from(s.headers);let i=s.data;return k.forEach(e,function(a){i=a.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function xy(e){return!!(e&&e.__CANCEL__)}function pr(e,t,n){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(pr,ie,{__CANCEL__:!0});function by(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new ie("Request failed with status code "+n.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function XP(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function YP(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,i=0,o;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=s[i];o||(o=l),n[r]=c,s[r]=l;let d=i,f=0;for(;d!==r;)f+=n[d++],d=d%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),l-o{n=u,r=null,i&&(clearTimeout(i),i=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=s?o(l,u):(r=l,i||(i=setTimeout(()=>{i=null,o(r)},s-d)))},()=>r&&o(r)]}const To=(e,t,n=3)=>{let s=0;const r=YP(50,250);return JP(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,c=o-s,l=r(c),u=o<=a;s=o;const d={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a&&u?(a-o)/l:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},Of=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},jf=e=>(...t)=>k.asap(()=>e(...t)),eR=Ke.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ke.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ke.origin),Ke.navigator&&/(msie|trident)/i.test(Ke.navigator.userAgent)):()=>!0,tR=Ke.hasStandardBrowserEnv?{write(e,t,n,s,r,i){const o=[e+"="+encodeURIComponent(t)];k.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),k.isString(s)&&o.push("path="+s),k.isString(r)&&o.push("domain="+r),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function nR(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function wy(e,t){return e&&!nR(t)?sR(e,t):t}const Df=e=>e instanceof dt?{...e}:e;function ys(e,t){t=t||{};const n={};function s(l,u,d,f){return k.isPlainObject(l)&&k.isPlainObject(u)?k.merge.call({caseless:f},l,u):k.isPlainObject(u)?k.merge({},u):k.isArray(u)?u.slice():u}function r(l,u,d,f){if(k.isUndefined(u)){if(!k.isUndefined(l))return s(void 0,l,d,f)}else return s(l,u,d,f)}function i(l,u){if(!k.isUndefined(u))return s(void 0,u)}function o(l,u){if(k.isUndefined(u)){if(!k.isUndefined(l))return s(void 0,l)}else return s(void 0,u)}function a(l,u,d){if(d in t)return s(l,u);if(d in e)return s(void 0,l)}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(l,u,d)=>r(Df(l),Df(u),d,!0)};return k.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=c[u]||r,f=d(e[u],t[u],u);k.isUndefined(f)&&d!==a||(n[u]=f)}),n}const Sy=e=>{const t=ys({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:a}=t;t.headers=o=dt.from(o),t.url=gy(wy(t.baseURL,t.url),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(k.isFormData(n)){if(Ke.hasStandardBrowserEnv||Ke.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[l,...u]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([l||"multipart/form-data",...u].join("; "))}}if(Ke.hasStandardBrowserEnv&&(s&&k.isFunction(s)&&(s=s(t)),s||s!==!1&&eR(t.url))){const l=r&&i&&tR.read(i);l&&o.set(r,l)}return t},rR=typeof XMLHttpRequest<"u",iR=rR&&function(e){return new Promise(function(n,s){const r=Sy(e);let i=r.data;const o=dt.from(r.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=r,u,d,f,g,m;function h(){g&&g(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(r.method.toUpperCase(),r.url,!0),y.timeout=r.timeout;function v(){if(!y)return;const w=dt.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),S={data:!a||a==="text"||a==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:w,config:e,request:y};by(function(R){n(R),h()},function(R){s(R),h()},S),y=null}"onloadend"in y?y.onloadend=v:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(v)},y.onabort=function(){y&&(s(new ie("Request aborted",ie.ECONNABORTED,e,y)),y=null)},y.onerror=function(){s(new ie("Network Error",ie.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let C=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const S=r.transitional||yy;r.timeoutErrorMessage&&(C=r.timeoutErrorMessage),s(new ie(C,S.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,y)),y=null},i===void 0&&o.setContentType(null),"setRequestHeader"in y&&k.forEach(o.toJSON(),function(C,S){y.setRequestHeader(S,C)}),k.isUndefined(r.withCredentials)||(y.withCredentials=!!r.withCredentials),a&&a!=="json"&&(y.responseType=r.responseType),l&&([f,m]=To(l,!0),y.addEventListener("progress",f)),c&&y.upload&&([d,g]=To(c),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",g)),(r.cancelToken||r.signal)&&(u=w=>{y&&(s(!w||w.type?new pr(null,e,y):w),y.abort(),y=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const b=XP(r.url);if(b&&Ke.protocols.indexOf(b)===-1){s(new ie("Unsupported protocol "+b+":",ie.ERR_BAD_REQUEST,e));return}y.send(i||null)})},oR=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const i=function(l){if(!r){r=!0,a();const u=l instanceof Error?l:this.reason;s.abort(u instanceof ie?u:new pr(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,i(new ie(`timeout ${t} of ms exceeded`,ie.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:c}=s;return c.unsubscribe=()=>k.asap(a),c}},aR=function*(e,t){let n=e.byteLength;if(n{const r=cR(e,t);let i=0,o,a=c=>{o||(o=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await r.next();if(l){a(),c.close();return}let d=u.byteLength;if(n){let f=i+=d;n(f)}c.enqueue(new Uint8Array(u))}catch(l){throw a(l),l}},cancel(c){return a(c),r.return()}},{highWaterMark:2})},Yo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",_y=Yo&&typeof ReadableStream=="function",uR=Yo&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Cy=(e,...t)=>{try{return!!e(...t)}catch{return!1}},dR=_y&&Cy(()=>{let e=!1;const t=new Request(Ke.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ff=64*1024,bc=_y&&Cy(()=>k.isReadableStream(new Response("").body)),Eo={stream:bc&&(e=>e.body)};Yo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Eo[t]&&(Eo[t]=k.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new ie(`Response type '${t}' is not supported`,ie.ERR_NOT_SUPPORT,s)})})})(new Response);const fR=async e=>{if(e==null)return 0;if(k.isBlob(e))return e.size;if(k.isSpecCompliantForm(e))return(await new Request(Ke.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(k.isArrayBufferView(e)||k.isArrayBuffer(e))return e.byteLength;if(k.isURLSearchParams(e)&&(e=e+""),k.isString(e))return(await uR(e)).byteLength},hR=async(e,t)=>{const n=k.toFiniteNumber(e.getContentLength());return n??fR(t)},pR=Yo&&(async e=>{let{url:t,method:n,data:s,signal:r,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Sy(e);l=l?(l+"").toLowerCase():"text";let g=oR([r,i&&i.toAbortSignal()],o),m;const h=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let y;try{if(c&&dR&&n!=="get"&&n!=="head"&&(y=await hR(u,s))!==0){let S=new Request(t,{method:"POST",body:s,duplex:"half"}),A;if(k.isFormData(s)&&(A=S.headers.get("content-type"))&&u.setContentType(A),S.body){const[R,E]=Of(y,To(jf(c)));s=Mf(S.body,Ff,R,E)}}k.isString(d)||(d=d?"include":"omit");const v="credentials"in Request.prototype;m=new Request(t,{...f,signal:g,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:v?d:void 0});let b=await fetch(m);const w=bc&&(l==="stream"||l==="response");if(bc&&(a||w&&h)){const S={};["status","statusText","headers"].forEach(O=>{S[O]=b[O]});const A=k.toFiniteNumber(b.headers.get("content-length")),[R,E]=a&&Of(A,To(jf(a),!0))||[];b=new Response(Mf(b.body,Ff,R,()=>{E&&E(),h&&h()}),S)}l=l||"text";let C=await Eo[k.findKey(Eo,l)||"text"](b,e);return!w&&h&&h(),await new Promise((S,A)=>{by(S,A,{data:C,headers:dt.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:m})})}catch(v){throw h&&h(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,e,m),{cause:v.cause||v}):ie.from(v,v&&v.code,e,m)}}),wc={http:RP,xhr:iR,fetch:pR};k.forEach(wc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Lf=e=>`- ${e}`,mR=e=>k.isFunction(e)||e===null||e===!1,Ty={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let i=0;i`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : +`+i.map(Lf).join(` +`):" "+Lf(i[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return s},adapters:wc};function Ma(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pr(null,e)}function If(e){return Ma(e),e.headers=dt.from(e.headers),e.data=Da.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ty.getAdapter(e.adapter||Ei.adapter)(e).then(function(s){return Ma(e),s.data=Da.call(e,e.transformResponse,s),s.headers=dt.from(s.headers),s},function(s){return xy(s)||(Ma(e),s&&s.response&&(s.response.data=Da.call(e,e.transformResponse,s.response),s.response.headers=dt.from(s.response.headers))),Promise.reject(s)})}const Ey="1.7.9",Jo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Jo[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Vf={};Jo.transitional=function(t,n,s){function r(i,o){return"[Axios v"+Ey+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,a)=>{if(t===!1)throw new ie(r(o," has been removed"+(n?" in "+n:"")),ie.ERR_DEPRECATED);return n&&!Vf[o]&&(Vf[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};Jo.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function gR(e,t,n){if(typeof e!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const i=s[r],o=t[i];if(o){const a=e[i],c=a===void 0||o(a,i,e);if(c!==!0)throw new ie("option "+i+" must be "+c,ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ie("Unknown option "+i,ie.ERR_BAD_OPTION)}}const eo={assertOptions:gR,validators:Jo},Ht=eo.validators;class us{constructor(t){this.defaults=t,this.interceptors={request:new kf,response:new kf}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=` +`+i):s.stack=i}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ys(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&eo.assertOptions(s,{silentJSONParsing:Ht.transitional(Ht.boolean),forcedJSONParsing:Ht.transitional(Ht.boolean),clarifyTimeoutError:Ht.transitional(Ht.boolean)},!1),r!=null&&(k.isFunction(r)?n.paramsSerializer={serialize:r}:eo.assertOptions(r,{encode:Ht.function,serialize:Ht.function},!0)),eo.assertOptions(n,{baseUrl:Ht.spelling("baseURL"),withXsrfToken:Ht.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&k.merge(i.common,i[n.method]);i&&k.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=dt.concat(o,i);const a=[];let c=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(c=c&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});const l=[];this.interceptors.response.forEach(function(h){l.push(h.fulfilled,h.rejected)});let u,d=0,f;if(!c){const m=[If.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,l),f=m.length,u=Promise.resolve(n);d{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(a=>{s.subscribe(a),i=a}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},t(function(i,o,a){s.reason||(s.reason=new pr(i,o,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new nu(function(r){t=r}),cancel:t}}}function yR(e){return function(n){return e.apply(null,n)}}function vR(e){return k.isObject(e)&&e.isAxiosError===!0}const Sc={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(Sc).forEach(([e,t])=>{Sc[t]=e});function Ay(e){const t=new us(e),n=ry(us.prototype.request,t);return k.extend(n,us.prototype,t,{allOwnKeys:!0}),k.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Ay(ys(e,r))},n}const Ve=Ay(Ei);Ve.Axios=us;Ve.CanceledError=pr;Ve.CancelToken=nu;Ve.isCancel=xy;Ve.VERSION=Ey;Ve.toFormData=Xo;Ve.AxiosError=ie;Ve.Cancel=Ve.CanceledError;Ve.all=function(t){return Promise.all(t)};Ve.spread=yR;Ve.isAxiosError=vR;Ve.mergeConfig=ys;Ve.AxiosHeaders=dt;Ve.formToJSON=e=>vy(k.isHTMLForm(e)?new FormData(e):e);Ve.getAdapter=Ty.getAdapter;Ve.HttpStatusCode=Sc;Ve.default=Ve;const it=Ve.create({baseURL:"https://turkmentextile.turkmenexpo.com/app/api/v1/"}),f1=async e=>(await it.post("book_stand_form",e)).status===201,h1=async e=>(await it.post("become_sponsor_form",e)).status===201,p1=async e=>(await it.post("contact_form",e)).status===201,xR=async e=>(await it.post("subscribe_news_form",e)).status===201,bR=async(e,t)=>it.get(`pages/${t}`,{headers:{"Accept-Language":e}}),m1=async e=>it.get("partners",{headers:{"Accept-Language":e}}),wR=async e=>it.get("stats",{headers:{"Accept-Language":e}}),SR=async e=>it.get("contact_data",{headers:{"Accept-Language":e}}),_R=async e=>it.get("industries",{headers:{"Accept-Language":e}}),CR=async e=>it.get("exhibition_time",{headers:{"Accept-Language":e}}),g1=async e=>it.get("news",{headers:{"Accept-Language":e}}),y1=async(e,t)=>it.get(`news/${e}`,{headers:{"Accept-Language":t}}),v1=async e=>it("participants",{headers:{"Accept-Language":e}}),TR=async e=>it("photos/category/"+e),ER=async e=>it("videos/category/"+e),AR=Tf.object({email:Tf.string().email()}),Py=({modal:e=!1})=>{var i,o;const[t,n]=x.useState(!1),s=qC({resolver:ME(AR),defaultValues:{email:""}});async function r(a){try{const c=await xR(a);s.reset(),n(c)}catch(c){console.error("POST subscribe",c)}}return p.jsx("form",{onSubmit:s.handleSubmit(r),className:K("py-8",e?"max-w-[392px] mx-auto":"bg-surface_container"),children:p.jsxs(st,{className:K("flex gap-8 justify-between",e?"flex-col w-full":"lg:flex-row flex-col lg:items-center"),children:[p.jsx("h2",{className:"h2 !text-left",children:Na("Подпишитесь на новости:","Subscribe to the news:")}),p.jsxs("div",{className:"relative",children:[p.jsx("input",{...s.register("email"),placeholder:"Email",className:K("input",{"w-full":e,"xl:w-[392px] lg:w-[320px] w-full":!e})}),p.jsx("span",{className:"text-error absolute text-red-600 -bottom-6 text-sm left-0",children:(o=(i=s.formState.errors)==null?void 0:i.email)==null?void 0:o.message})]}),p.jsx(ft,{loading:s.formState.isSubmitting,disabled:t,className:K({"xl:w-[288px] lg:w-[220px] w-full":!e,"w-full":e}),children:t?Na("Отправлено","Submitted"):Na("Подписаться","Subscribe")})]})})},PR=({className:e,title:t})=>p.jsxs(AE,{children:[p.jsx(PE,{className:K("h-14 px-3 flex gap-3 items-center hover:bg-slate-300/50 transition-all",e),children:t}),p.jsx(qg,{children:p.jsx(Py,{className:"",modal:!0})})]}),_c=Wg()(e=>({sheet:!1,popover:!1,modal:!1,setModal:t=>e({modal:t}),setSheet:t=>e({sheet:t}),setPopover:t=>e({popover:t})})),Cc=({title:e,dropDownContent:t,color:n,triggerClassName:s})=>{const[r,i]=x.useState(!1),o=_c(a=>a.setSheet);return p.jsxs($g,{open:r,onOpenChange:()=>i(!r),children:[p.jsxs(zg,{className:K("flex items-center gap-2",s),children:[e,p.jsx(RR,{color:n})]}),p.jsx(Xl,{className:"w-fit px-0 py-2 cursor-pointer bg-surface_container",children:t&&t.map(a=>a.link?p.jsxs(Me,{onClick:()=>{i(!1),o(!1)},className:"h-14 px-3 flex gap-3 items-center hover:bg-slate-300/50 transition-all",target:a.blank??"",to:a.link,children:[a.text,a.blank&&p.jsx("img",{src:"/pdf.svg"})]},a.text):a.modal?p.jsx(PR,{title:a.text},a.text):p.jsx("div",{className:"h-14 px-3 flex items-center hover:bg-slate-300/50 transition-all",onClick:()=>{i(!1),o(!1)},children:a.text},a.text))})]})},RR=({color:e="white"})=>p.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.23021 8.01443C4.35919 7.70304 4.66305 7.5 5.00011 7.5H15.0001C15.3372 7.5 15.641 7.70304 15.77 8.01443C15.899 8.32583 15.8277 8.68426 15.5894 8.92259L10.5894 13.9226C10.2639 14.248 9.73629 14.248 9.41085 13.9226L4.41085 8.92259C4.17252 8.68426 4.10122 8.32583 4.23021 8.01443ZM7.01195 9.16667L10.0001 12.1548L12.9883 9.16667H7.01195Z",fill:e})}),mr=({className:e})=>p.jsx(st,{className:K("w-full py-20 h-full flex items-center justify-between",e),children:p.jsx(Kh,{className:"animate-spin mx-auto text-primary size-16"})});function kR(e){return Object.prototype.toString.call(e)==="[object Object]"}function Bf(e){return kR(e)||Array.isArray(e)}function NR(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function su(e,t){const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;const r=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return r!==i?!1:n.every(o=>{const a=e[o],c=t[o];return typeof a=="function"?`${a}`==`${c}`:!Bf(a)||!Bf(c)?a===c:su(a,c)})}function Uf(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function OR(e,t){if(e.length!==t.length)return!1;const n=Uf(e),s=Uf(t);return n.every((r,i)=>{const o=s[i];return su(r,o)})}function ru(e){return typeof e=="number"}function Tc(e){return typeof e=="string"}function ea(e){return typeof e=="boolean"}function $f(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ae(e){return Math.abs(e)}function iu(e){return Math.sign(e)}function Vr(e,t){return Ae(e-t)}function jR(e,t){if(e===0||t===0||Ae(e)<=Ae(t))return 0;const n=Vr(Ae(e),Ae(t));return Ae(n/e)}function DR(e){return Math.round(e*100)/100}function ci(e){return li(e).map(Number)}function Ft(e){return e[Ai(e)]}function Ai(e){return Math.max(0,e.length-1)}function ou(e,t){return t===Ai(e)}function zf(e,t=0){return Array.from(Array(e),(n,s)=>t+s)}function li(e){return Object.keys(e)}function Ry(e,t){return[e,t].reduce((n,s)=>(li(s).forEach(r=>{const i=n[r],o=s[r],a=$f(i)&&$f(o);n[r]=a?Ry(i,o):o}),n),{})}function Ec(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function MR(e,t){const n={start:s,center:r,end:i};function s(){return 0}function r(c){return i(c)/2}function i(c){return t-c}function o(c,l){return Tc(e)?n[e](c):e(t,c,l)}return{measure:o}}function ui(){let e=[];function t(r,i,o,a={passive:!0}){let c;if("addEventListener"in r)r.addEventListener(i,o,a),c=()=>r.removeEventListener(i,o,a);else{const l=r;l.addListener(o),c=()=>l.removeListener(o)}return e.push(c),s}function n(){e=e.filter(r=>r())}const s={add:t,clear:n};return s}function FR(e,t,n,s){const r=ui(),i=1e3/60;let o=null,a=0,c=0;function l(){r.add(e,"visibilitychange",()=>{e.hidden&&m()})}function u(){g(),r.clear()}function d(y){if(!c)return;o||(o=y,n(),n());const v=y-o;for(o=y,a+=v;a>=i;)n(),a-=i;const b=a/i;s(b),c&&(c=t.requestAnimationFrame(d))}function f(){c||(c=t.requestAnimationFrame(d))}function g(){t.cancelAnimationFrame(c),o=null,a=0,c=0}function m(){o=null,a=0}return{init:l,destroy:u,start:f,stop:g,update:n,render:s}}function LR(e,t){const n=t==="rtl",s=e==="y",r=s?"y":"x",i=s?"x":"y",o=!s&&n?-1:1,a=u(),c=d();function l(m){const{height:h,width:y}=m;return s?h:y}function u(){return s?"top":n?"right":"left"}function d(){return s?"bottom":n?"left":"right"}function f(m){return m*o}return{scroll:r,cross:i,startEdge:a,endEdge:c,measureSize:l,direction:f}}function vs(e=0,t=0){const n=Ae(e-t);function s(l){return lt}function i(l){return s(l)||r(l)}function o(l){return i(l)?s(l)?e:t:l}function a(l){return n?l-n*Math.ceil((l-t)/n):l}return{length:n,max:t,min:e,constrain:o,reachedAny:i,reachedMax:r,reachedMin:s,removeOffset:a}}function ky(e,t,n){const{constrain:s}=vs(0,e),r=e+1;let i=o(t);function o(f){return n?Ae((r+f)%r):s(f)}function a(){return i}function c(f){return i=o(f),d}function l(f){return u().set(a()+f)}function u(){return ky(e,a(),n)}const d={get:a,set:c,add:l,clone:u};return d}function IR(e,t,n,s,r,i,o,a,c,l,u,d,f,g,m,h,y,v,b){const{cross:w,direction:C}=e,S=["INPUT","SELECT","TEXTAREA"],A={passive:!1},R=ui(),E=ui(),O=vs(50,225).constrain(g.measure(20)),D={mouse:300,touch:400},L={mouse:500,touch:600},j=m?43:25;let $=!1,W=0,se=0,Y=!1,Z=!1,q=!1,re=!1;function me(G){if(!b)return;function de(Ue){(ea(b)||b(G,Ue))&&Xe(Ue)}const Se=t;R.add(Se,"dragstart",Ue=>Ue.preventDefault(),A).add(Se,"touchmove",()=>{},A).add(Se,"touchend",()=>{}).add(Se,"touchstart",de).add(Se,"mousedown",de).add(Se,"touchcancel",ye).add(Se,"contextmenu",ye).add(Se,"click",Ne,!0)}function ge(){R.clear(),E.clear()}function We(){const G=re?n:t;E.add(G,"touchmove",ue,A).add(G,"touchend",ye).add(G,"mousemove",ue,A).add(G,"mouseup",ye)}function ht(G){const de=G.nodeName||"";return S.includes(de)}function He(){return(m?L:D)[re?"mouse":"touch"]}function Pt(G,de){const Se=d.add(iu(G)*-1),Ue=u.byDistance(G,!m).distance;return m||Ae(G)=2,!(de&&G.button!==0)&&(ht(G.target)||(Y=!0,i.pointerDown(G),l.useFriction(0).useDuration(0),r.set(o),We(),W=i.readPoint(G),se=i.readPoint(G,w),f.emit("pointerDown")))}function ue(G){if(!Ec(G,s)&&G.touches.length>=2)return ye(G);const Se=i.readPoint(G),Ue=i.readPoint(G,w),pt=Vr(Se,W),wt=Vr(Ue,se);if(!Z&&!re&&(!G.cancelable||(Z=pt>wt,!Z)))return ye(G);const _=i.pointerMove(G);pt>h&&(q=!0),l.useFriction(.3).useDuration(.75),a.start(),r.add(C(_)),G.preventDefault()}function ye(G){const Se=u.byDistance(0,!1).index!==d.get(),Ue=i.pointerUp(G)*He(),pt=Pt(C(Ue),Se),wt=jR(Ue,pt),_=j-10*wt,P=v+wt/50;Z=!1,Y=!1,E.clear(),l.useDuration(_).useFriction(P),c.distance(pt,!m),re=!1,f.emit("pointerUp")}function Ne(G){q&&(G.stopPropagation(),G.preventDefault(),q=!1)}function Le(){return Y}return{init:me,destroy:ge,pointerDown:Le}}function VR(e,t){let s,r;function i(d){return d.timeStamp}function o(d,f){const m=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(Ec(d,t)?d:d.touches[0])[m]}function a(d){return s=d,r=d,o(d)}function c(d){const f=o(d)-o(r),g=i(d)-i(s)>170;return r=d,g&&(s=d),f}function l(d){if(!s||!r)return 0;const f=o(r)-o(s),g=i(d)-i(s),m=i(d)-i(r)>170,h=f/g;return g&&!m&&Ae(h)>.1?h:0}return{pointerDown:a,pointerMove:c,pointerUp:l,readPoint:o}}function BR(){function e(n){const{offsetTop:s,offsetLeft:r,offsetWidth:i,offsetHeight:o}=n;return{top:s,right:r+i,bottom:s+o,left:r,width:i,height:o}}return{measure:e}}function UR(e){function t(s){return e*(s/100)}return{measure:t}}function $R(e,t,n,s,r,i,o){const a=[e].concat(s);let c,l,u=[],d=!1;function f(y){return r.measureSize(o.measure(y))}function g(y){if(!i)return;l=f(e),u=s.map(f);function v(b){for(const w of b){if(d)return;const C=w.target===e,S=s.indexOf(w.target),A=C?l:u[S],R=f(C?e:s[S]);if(Ae(R-A)>=.5){y.reInit(),t.emit("resize");break}}}c=new ResizeObserver(b=>{(ea(i)||i(y,b))&&v(b)}),n.requestAnimationFrame(()=>{a.forEach(b=>c.observe(b))})}function m(){d=!0,c&&c.disconnect()}return{init:g,destroy:m}}function zR(e,t,n,s,r,i){let o=0,a=0,c=r,l=i,u=e.get(),d=0;function f(){const A=s.get()-e.get(),R=!c;let E=0;return R?(o=0,n.set(s),e.set(s),E=A):(n.set(e),o+=A/c,o*=l,u+=o,e.add(o),E=u-d),a=iu(E),d=u,S}function g(){const A=s.get()-t.get();return Ae(A)<.001}function m(){return c}function h(){return a}function y(){return o}function v(){return w(r)}function b(){return C(i)}function w(A){return c=A,S}function C(A){return l=A,S}const S={direction:h,duration:m,velocity:y,seek:f,settled:g,useBaseFriction:b,useBaseDuration:v,useFriction:C,useDuration:w};return S}function WR(e,t,n,s,r){const i=r.measure(10),o=r.measure(50),a=vs(.1,.99);let c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(g){if(!l())return;const m=e.reachedMin(t.get())?"min":"max",h=Ae(e[m]-t.get()),y=n.get()-t.get(),v=a.constrain(h/o);n.subtract(y*v),!g&&Ae(y){const{min:y,max:v}=i,b=i.constrain(m),w=!h,C=ou(n,h);return w?v:C||l(y,b)?y:l(v,b)?v:b}).map(m=>parseFloat(m.toFixed(3)))}function f(){if(t<=e+r)return[i.max];if(s==="keepSnaps")return o;const{min:m,max:h}=a;return o.slice(m,h)}return{snapsContained:c,scrollContainLimit:a}}function qR(e,t,n){const s=t[0],r=n?s-e:Ft(t);return{limit:vs(r,s)}}function ZR(e,t,n,s){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:c}=vs(i,o);function l(f){return f===1?c(n.get()):f===-1?a(n.get()):!1}function u(f){if(!l(f))return;const g=e*(f*-1);s.forEach(m=>m.add(g))}return{loop:u}}function KR(e){const{max:t,length:n}=e;function s(i){const o=i-t;return n?o/-n:0}return{get:s}}function GR(e,t,n,s,r){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=r,c=d().map(t.measure),l=f(),u=g();function d(){return a(s).map(h=>Ft(h)[o]-h[0][i]).map(Ae)}function f(){return s.map(h=>n[i]-h[i]).map(h=>-Ae(h))}function g(){return a(l).map(h=>h[0]).map((h,y)=>h+c[y])}return{snaps:l,snapsAligned:u}}function QR(e,t,n,s,r,i){const{groupSlides:o}=r,{min:a,max:c}=s,l=u();function u(){const f=o(i),g=!e||t==="keepSnaps";return n.length===1?[i]:g?f:f.slice(a,c).map((m,h,y)=>{const v=!h,b=ou(y,h);if(v){const w=Ft(y[0])+1;return zf(w)}if(b){const w=Ai(i)-Ft(y)[0]+1;return zf(w,Ft(y)[0])}return m})}return{slideRegistry:l}}function XR(e,t,n,s,r){const{reachedAny:i,removeOffset:o,constrain:a}=s;function c(m){return m.concat().sort((h,y)=>Ae(h)-Ae(y))[0]}function l(m){const h=e?o(m):a(m),y=t.map((b,w)=>({diff:u(b-h,0),index:w})).sort((b,w)=>Ae(b.diff)-Ae(w.diff)),{index:v}=y[0];return{index:v,distance:h}}function u(m,h){const y=[m,m+n,m-n];if(!e)return m;if(!h)return c(y);const v=y.filter(b=>iu(b)===h);return v.length?c(v):Ft(y)-n}function d(m,h){const y=t[m]-r.get(),v=u(y,h);return{index:m,distance:v}}function f(m,h){const y=r.get()+m,{index:v,distance:b}=l(y),w=!e&&i(y);if(!h||w)return{index:v,distance:m};const C=t[v]-b,S=m+u(C,0);return{index:v,distance:S}}return{byDistance:f,byIndex:d,shortcut:u}}function YR(e,t,n,s,r,i,o){function a(d){const f=d.distance,g=d.index!==t.get();i.add(f),f&&(s.duration()?e.start():(e.update(),e.render(1),e.update())),g&&(n.set(t.get()),t.set(d.index),o.emit("select"))}function c(d,f){const g=r.byDistance(d,f);a(g)}function l(d,f){const g=t.clone().set(d),m=r.byIndex(g.get(),f);a(m)}return{distance:c,index:l}}function JR(e,t,n,s,r,i,o,a){const c={passive:!0,capture:!0};let l=0;function u(g){if(!a)return;function m(h){if(new Date().getTime()-l>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(w=>w.includes(h));ru(b)&&(r.useDuration(0),s.index(b,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((h,y)=>{i.add(h,"focus",v=>{(ea(a)||a(g,v))&&m(y)},c)})}function d(g){g.code==="Tab"&&(l=new Date().getTime())}return{init:u}}function kr(e){let t=e;function n(){return t}function s(c){t=o(c)}function r(c){t+=o(c)}function i(c){t-=o(c)}function o(c){return ru(c)?c:c.get()}return{get:n,set:s,add:r,subtract:i}}function Ny(e,t){const n=e.scroll==="x"?o:a,s=t.style;let r=null,i=!1;function o(f){return`translate3d(${f}px,0px,0px)`}function a(f){return`translate3d(0px,${f}px,0px)`}function c(f){if(i)return;const g=DR(e.direction(f));g!==r&&(s.transform=n(g),r=g)}function l(f){i=!f}function u(){i||(s.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:c,toggleActive:l}}function ek(e,t,n,s,r,i,o,a,c){const u=ci(r),d=ci(r).reverse(),f=v().concat(b());function g(R,E){return R.reduce((O,D)=>O-r[D],E)}function m(R,E){return R.reduce((O,D)=>g(O,E)>0?O.concat([D]):O,[])}function h(R){return i.map((E,O)=>({start:E-s[O]+.5+R,end:E+t-.5+R}))}function y(R,E,O){const D=h(E);return R.map(L=>{const j=O?0:-n,$=O?n:0,W=O?"end":"start",se=D[L][W];return{index:L,loopPoint:se,slideLocation:kr(-1),translate:Ny(e,c[L]),target:()=>a.get()>se?j:$}})}function v(){const R=o[0],E=m(d,R);return y(E,n,!1)}function b(){const R=t-o[0]-1,E=m(u,R);return y(E,-n,!0)}function w(){return f.every(({index:R})=>{const E=u.filter(O=>O!==R);return g(E,t)<=.1})}function C(){f.forEach(R=>{const{target:E,translate:O,slideLocation:D}=R,L=E();L!==D.get()&&(O.to(L),D.set(L))})}function S(){f.forEach(R=>R.translate.clear())}return{canLoop:w,clear:S,loop:C,loopPoints:f}}function tk(e,t,n){let s,r=!1;function i(c){if(!n)return;function l(u){for(const d of u)if(d.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}s=new MutationObserver(u=>{r||(ea(n)||n(c,u))&&l(u)}),s.observe(e,{childList:!0})}function o(){s&&s.disconnect(),r=!0}return{init:i,destroy:o}}function nk(e,t,n,s){const r={};let i=null,o=null,a,c=!1;function l(){a=new IntersectionObserver(m=>{c||(m.forEach(h=>{const y=t.indexOf(h.target);r[y]=h}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:s}),t.forEach(m=>a.observe(m))}function u(){a&&a.disconnect(),c=!0}function d(m){return li(r).reduce((h,y)=>{const v=parseInt(y),{isIntersecting:b}=r[v];return(m&&b||!m&&!b)&&h.push(v),h},[])}function f(m=!0){if(m&&i)return i;if(!m&&o)return o;const h=d(m);return m&&(i=h),m||(o=h),h}return{init:l,destroy:u,get:f}}function sk(e,t,n,s,r,i){const{measureSize:o,startEdge:a,endEdge:c}=e,l=n[0]&&r,u=m(),d=h(),f=n.map(o),g=y();function m(){if(!l)return 0;const b=n[0];return Ae(t[a]-b[a])}function h(){if(!l)return 0;const b=i.getComputedStyle(Ft(s));return parseFloat(b.getPropertyValue(`margin-${c}`))}function y(){return n.map((b,w,C)=>{const S=!w,A=ou(C,w);return S?f[w]+u:A?f[w]+d:C[w+1][a]-b[a]}).map(Ae)}return{slideSizes:f,slideSizesWithGaps:g,startGap:u,endGap:d}}function rk(e,t,n,s,r,i,o,a,c){const{startEdge:l,endEdge:u,direction:d}=e,f=ru(n);function g(v,b){return ci(v).filter(w=>w%b===0).map(w=>v.slice(w,w+b))}function m(v){return v.length?ci(v).reduce((b,w,C)=>{const S=Ft(b)||0,A=S===0,R=w===Ai(v),E=r[l]-i[S][l],O=r[l]-i[w][u],D=!s&&A?d(o):0,L=!s&&R?d(a):0,j=Ae(O-L-(E+D));return C&&j>t+c&&b.push(w),R&&b.push(v.length),b},[]).map((b,w,C)=>{const S=Math.max(C[w-1]||0);return v.slice(S,b)}):[]}function h(v){return f?g(v,n):m(v)}return{groupSlides:h}}function ik(e,t,n,s,r,i,o){const{align:a,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:g,dragThreshold:m,inViewThreshold:h,slidesToScroll:y,skipSnaps:v,containScroll:b,watchResize:w,watchSlides:C,watchDrag:S,watchFocus:A}=i,R=2,E=BR(),O=E.measure(t),D=n.map(E.measure),L=LR(c,l),j=L.measureSize(O),$=UR(j),W=MR(a,j),se=!d&&!!b,Y=d||!!b,{slideSizes:Z,slideSizesWithGaps:q,startGap:re,endGap:me}=sk(L,O,D,n,Y,r),ge=rk(L,j,y,d,O,D,re,me,R),{snaps:We,snapsAligned:ht}=GR(L,W,O,D,ge),He=-Ft(We)+Ft(q),{snapsContained:Pt,scrollContainLimit:Xe}=HR(j,He,ht,b,R),ue=se?Pt:ht,{limit:ye}=qR(He,ue,d),Ne=ky(Ai(ue),u,d),Le=Ne.clone(),we=ci(n),G=({dragHandler:Wt,scrollBody:Hn,scrollBounds:yr,options:{loop:qn}})=>{qn||yr.constrain(Wt.pointerDown()),Hn.seek()},de=({scrollBody:Wt,translate:Hn,location:yr,offsetLocation:qn,previousLocation:ta,scrollLooper:Ri,slideLooper:Zy,dragHandler:Ky,animation:Gy,eventHandler:du,scrollBounds:Qy,options:{loop:fu}},hu)=>{const pu=Wt.settled(),Xy=!Qy.shouldConstrain(),mu=fu?pu:pu&&Xy;mu&&!Ky.pointerDown()&&(Gy.stop(),du.emit("settle")),mu||du.emit("scroll");const Yy=yr.get()*hu+ta.get()*(1-hu);qn.set(Yy),fu&&(Ri.loop(Wt.direction()),Zy.loop()),Hn.to(qn.get())},Se=FR(s,r,()=>G(gr),Wt=>de(gr,Wt)),Ue=.68,pt=ue[Ne.get()],wt=kr(pt),_=kr(pt),P=kr(pt),N=kr(pt),B=zR(wt,P,_,N,f,Ue),I=XR(d,ue,He,ye,N),F=YR(Se,Ne,Le,B,I,N,o),X=KR(ye),ae=ui(),Ie=nk(t,n,o,h),{slideRegistry:Oe}=QR(se,b,ue,Xe,ge,we),zt=JR(e,n,Oe,F,B,ae,o,A),gr={ownerDocument:s,ownerWindow:r,eventHandler:o,containerRect:O,slideRects:D,animation:Se,axis:L,dragHandler:IR(L,e,s,r,N,VR(L,r),wt,Se,F,B,I,Ne,o,$,g,m,v,Ue,S),eventStore:ae,percentOfView:$,index:Ne,indexPrevious:Le,limit:ye,location:wt,offsetLocation:P,previousLocation:_,options:i,resizeHandler:$R(t,o,r,n,L,w,E),scrollBody:B,scrollBounds:WR(ye,P,N,B,$),scrollLooper:ZR(He,ye,P,[wt,P,_,N]),scrollProgress:X,scrollSnapList:ue.map(X.get),scrollSnaps:ue,scrollTarget:I,scrollTo:F,slideLooper:ek(L,j,He,Z,q,We,ue,P,n),slideFocus:zt,slidesHandler:tk(t,o,C),slidesInView:Ie,slideIndexes:we,slideRegistry:Oe,slidesToScroll:ge,target:N,translate:Ny(L,t)};return gr}function ok(){let e={},t;function n(l){t=l}function s(l){return e[l]||[]}function r(l){return s(l).forEach(u=>u(t,l)),c}function i(l,u){return e[l]=s(l).concat([u]),c}function o(l,u){return e[l]=s(l).filter(d=>d!==u),c}function a(){e={}}const c={init:n,emit:r,off:o,on:i,clear:a};return c}const ak={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function ck(e){function t(i,o){return Ry(i,o||{})}function n(i){const o=i.breakpoints||{},a=li(o).filter(c=>e.matchMedia(c).matches).map(c=>o[c]).reduce((c,l)=>t(c,l),{});return t(i,a)}function s(i){return i.map(o=>li(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:s}}function lk(e){let t=[];function n(i,o){return t=o.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(i,e)),o.reduce((a,c)=>Object.assign(a,{[c.name]:c}),{})}function s(){t=t.filter(i=>i.destroy())}return{init:n,destroy:s}}function Ao(e,t,n){const s=e.ownerDocument,r=s.defaultView,i=ck(r),o=lk(i),a=ui(),c=ok(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:f,off:g,emit:m}=c,h=L;let y=!1,v,b=l(ak,Ao.globalOptions),w=l(b),C=[],S,A,R;function E(){const{container:we,slides:G}=w;A=(Tc(we)?e.querySelector(we):we)||e.children[0];const Se=Tc(G)?A.querySelectorAll(G):G;R=[].slice.call(Se||A.children)}function O(we){const G=ik(e,A,R,s,r,we,c);if(we.loop&&!G.slideLooper.canLoop()){const de=Object.assign({},we,{loop:!1});return O(de)}return G}function D(we,G){y||(b=l(b,we),w=u(b),C=G||C,E(),v=O(w),d([b,...C.map(({options:de})=>de)]).forEach(de=>a.add(de,"change",L)),w.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(Le),v.eventHandler.init(Le),v.resizeHandler.init(Le),v.slidesHandler.init(Le),v.options.loop&&v.slideLooper.loop(),A.offsetParent&&R.length&&v.dragHandler.init(Le),S=o.init(Le,C)))}function L(we,G){const de=ge();j(),D(l({startIndex:de},we),G),c.emit("reInit")}function j(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),o.destroy(),a.clear()}function $(){y||(y=!0,a.clear(),j(),c.emit("destroy"),c.clear())}function W(we,G,de){!w.active||y||(v.scrollBody.useBaseFriction().useDuration(G===!0?0:w.duration),v.scrollTo.index(we,de||0))}function se(we){const G=v.index.add(1).get();W(G,we,-1)}function Y(we){const G=v.index.add(-1).get();W(G,we,1)}function Z(){return v.index.add(1).get()!==ge()}function q(){return v.index.add(-1).get()!==ge()}function re(){return v.scrollSnapList}function me(){return v.scrollProgress.get(v.location.get())}function ge(){return v.index.get()}function We(){return v.indexPrevious.get()}function ht(){return v.slidesInView.get()}function He(){return v.slidesInView.get(!1)}function Pt(){return S}function Xe(){return v}function ue(){return e}function ye(){return A}function Ne(){return R}const Le={canScrollNext:Z,canScrollPrev:q,containerNode:ye,internalEngine:Xe,destroy:$,off:g,on:f,emit:m,plugins:Pt,previousScrollSnap:We,reInit:h,rootNode:ue,scrollNext:se,scrollPrev:Y,scrollProgress:me,scrollSnapList:re,scrollTo:W,selectedScrollSnap:ge,slideNodes:Ne,slidesInView:ht,slidesNotInView:He};return D(t,n),setTimeout(()=>c.emit("init"),0),Le}Ao.globalOptions=void 0;function ws(e={},t=[]){const n=x.useRef(e),s=x.useRef(t),[r,i]=x.useState(),[o,a]=x.useState(),c=x.useCallback(()=>{r&&r.reInit(n.current,s.current)},[r]);return x.useEffect(()=>{su(n.current,e)||(n.current=e,c())},[e,c]),x.useEffect(()=>{OR(s.current,t)||(s.current=t,c())},[t,c]),x.useEffect(()=>{if(NR()&&o){Ao.globalOptions=ws.globalOptions;const l=Ao(o,n.current,s.current);return i(l),()=>l.destroy()}else i(void 0)},[o,i]),[a,r]}ws.globalOptions=void 0;const uk=[{id:0,title:"Все компании",titleEn:"All companies"},{id:3,title:"Государственные учреждения ",titleEn:"Government Institutions"},{id:1,title:"Местные компании",titleEn:"Local companies"},{id:2,title:"Иностранные компании",titleEn:"Foreign companies"}],x1=({className:e,setState:t,state:n,data:s=uk})=>{const r=Pe(m=>m.lang),i=co("(min-width: 768px)"),[o,a]=x.useState({left:0,width:0}),[c,l]=ws({axis:"x",align:"start",containScroll:"trimSnaps"},[]),u=x.useRef([]),d=x.useRef(null),f=x.useCallback(()=>{const m=u.current[n];if(m){if(i)a({left:m.offsetLeft,width:m.offsetWidth});else if(l){const h=l.rootNode(),y=l.containerNode();if(!h||!y)return;const v=y.scrollLeft,b=m.offsetLeft;a({left:b-v,width:m.offsetWidth})}}},[n,i,l]);x.useEffect(()=>{!i&&l||(l==null||l.scrollTo(n),f())},[l,n,f,i]),x.useEffect(()=>{if(l)return f(),l.on("scroll",f),l.on("resize",f),()=>{l.off("scroll",f),l.off("resize",f)}},[l,f]);const g=x.useCallback(m=>{t(m),!i&&l&&l.scrollTo(m)},[l,t,i]);return p.jsxs("div",{ref:d,className:K("relative mx-auto",e),style:{width:"fit-content",maxWidth:"100%"},children:[i?p.jsx("div",{className:"flex",role:"tablist",children:s==null?void 0:s.map((m,h)=>p.jsx("button",{ref:y=>u.current[h]=y,role:"tab","aria-selected":n===h,className:K("shrink-0 text-center relative h-12 mx-4 py-2 text-sm md:text-base whitespace-nowrap transition-all",n===h?"text-primary":"text-on_surface_v"),onClick:()=>g(h),children:r==="ru"?m.title:m.titleEn},m.id))}):p.jsx("div",{ref:c,className:"",role:"tablist",children:p.jsx("div",{className:"flex",children:s==null?void 0:s.map((m,h)=>p.jsx("button",{ref:y=>u.current[h]=y,role:"tab","aria-selected":n===h,className:K("shrink-0 text-center relative after:transition-all after:rounded after:w-full after:h-0.5 after:bg-primary after:opacity-0 after:absolute after:bottom-0 after:left-0 h-12 mx-4 py-2 text-sm md:text-base whitespace-nowrap transition-all",n===h?"text-primary after:opacity-100":"text-on_surface_v"),onClick:()=>g(h),children:r==="ru"?m.title:m.titleEn},m.id))})}),p.jsx("div",{className:"absolute md:block hidden bottom-0 h-[3px] rounded-t-[2px] bg-primary transition-all duration-200",style:o})]})},b1=({className:e,index:t,name:n,image:s,image_country:r,country:i,about:o,arr:a})=>{const c=Pe(l=>l.lang);return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:K("flex border-b md:hidden py-2 border-outline_v",e),children:[p.jsxs("div",{className:"flex flex-1 flex-col items-start gap-4",children:[p.jsx("div",{className:"flex items-center w-full",children:p.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[p.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Название":"Company",":"]}),p.jsx("h4",{className:"text-xs flex-[0_0_70%]",children:n})]})}),p.jsx("div",{className:"flex items-center gap-3",children:p.jsx("div",{className:"flex items-center w-full",children:p.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[p.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Страна":"Country",":"]}),p.jsxs("div",{className:"flex items-center flex-[0_0_50%] gap-2",children:[p.jsx("img",{src:r==null?void 0:r.path,alt:"flag",className:"size-4 flex-[0_0_16px] object-contain"}),p.jsx("h4",{className:"text-xs flex-1",children:i})]})]})})}),p.jsx("div",{className:"flex items-center ",children:p.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[p.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Сфера":"Industry",":"]}),p.jsx("h4",{className:"text-xs flex-1",children:o})]})})]}),p.jsx("div",{className:"flex-[0_0_88px] size-[88px] bg-white ",children:p.jsx("img",{src:s==null?void 0:s.path,alt:"company",className:"size-full object-contain"})})]},t),p.jsxs("div",{className:K("md:flex hidden p-4 ",a!==t+1&&"border-b border-outline_v"),children:[p.jsxs("div",{className:"flex-[0_0_45.54%] flex gap-8",children:[p.jsx("div",{className:"flex-[0_0_88px] sm:flex-[0_0_128px] size-[88px] bg-white sm:size-[128px]",children:p.jsx("img",{src:s==null?void 0:s.path,alt:"company",className:"size-full object-contain"})}),p.jsx("h3",{className:"text-lg xl:mr-20 mr-10",children:n})]}),p.jsxs("div",{className:"flex-[0_0_19.80%] flex gap-2.5",children:[p.jsx("img",{src:r==null?void 0:r.path,alt:"flag",className:"size-4"}),p.jsx("h4",{className:"text-sm normal",children:i})]}),p.jsx("h3",{className:"text-sm normal md:ml-1 flex-[0_0_34.65%]",children:o})]})]})};var Pi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xs=typeof window>"u"||"Deno"in globalThis;function Tt(){}function dk(e,t){return typeof e=="function"?e(t):e}function Ac(e){return typeof e=="number"&&e>=0&&e!==1/0}function Oy(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Is(e,t){return typeof e=="function"?e(t):e}function Ot(e,t){return typeof e=="function"?e(t):e}function Wf(e,t){const{type:n="all",exact:s,fetchStatus:r,predicate:i,queryKey:o,stale:a}=e;if(o){if(s){if(t.queryHash!==au(o,t.options))return!1}else if(!fi(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||r&&r!==t.state.fetchStatus||i&&!i(t))}function Hf(e,t){const{exact:n,status:s,predicate:r,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(di(t.options.mutationKey)!==di(i))return!1}else if(!fi(t.options.mutationKey,i))return!1}return!(s&&t.state.status!==s||r&&!r(t))}function au(e,t){return((t==null?void 0:t.queryKeyHashFn)||di)(e)}function di(e){return JSON.stringify(e,(t,n)=>Rc(n)?Object.keys(n).sort().reduce((s,r)=>(s[r]=n[r],s),{}):n)}function fi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!fi(e[n],t[n])):!1}function jy(e,t){if(e===t)return e;const n=qf(e)&&qf(t);if(n||Rc(e)&&Rc(t)){const s=n?e:Object.keys(e),r=s.length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{};let c=0;for(let l=0;l{setTimeout(t,e)})}function kc(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?jy(e,t):t}function hk(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function pk(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var cu=Symbol();function Dy(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===cu?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Jn,En,Vs,th,mk=(th=class extends Pi{constructor(){super();te(this,Jn);te(this,En);te(this,Vs);H(this,Vs,t=>{if(!xs&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,En)||this.setEventListener(T(this,Vs))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,En))==null||t.call(this),H(this,En,void 0))}setEventListener(t){var n;H(this,Vs,t),(n=T(this,En))==null||n.call(this),H(this,En,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){T(this,Jn)!==t&&(H(this,Jn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,Jn)=="boolean"?T(this,Jn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Jn=new WeakMap,En=new WeakMap,Vs=new WeakMap,th),lu=new mk,Bs,An,Us,nh,gk=(nh=class extends Pi{constructor(){super();te(this,Bs,!0);te(this,An);te(this,Us);H(this,Us,t=>{if(!xs&&window.addEventListener){const n=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",s)}}})}onSubscribe(){T(this,An)||this.setEventListener(T(this,Us))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,An))==null||t.call(this),H(this,An,void 0))}setEventListener(t){var n;H(this,Us,t),(n=T(this,An))==null||n.call(this),H(this,An,t(this.setOnline.bind(this)))}setOnline(t){T(this,Bs)!==t&&(H(this,Bs,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return T(this,Bs)}},Bs=new WeakMap,An=new WeakMap,Us=new WeakMap,nh),Po=new gk;function Nc(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});n.status="pending",n.catch(()=>{});function s(r){Object.assign(n,r),delete n.resolve,delete n.reject}return n.resolve=r=>{s({status:"fulfilled",value:r}),e(r)},n.reject=r=>{s({status:"rejected",reason:r}),t(r)},n}function yk(e){return Math.min(1e3*2**e,3e4)}function My(e){return(e??"online")==="online"?Po.isOnline():!0}var Fy=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Fa(e){return e instanceof Fy}function Ly(e){let t=!1,n=0,s=!1,r;const i=Nc(),o=h=>{var y;s||(f(new Fy(h)),(y=e.abort)==null||y.call(e))},a=()=>{t=!0},c=()=>{t=!1},l=()=>lu.isFocused()&&(e.networkMode==="always"||Po.isOnline())&&e.canRun(),u=()=>My(e.networkMode)&&e.canRun(),d=h=>{var y;s||(s=!0,(y=e.onSuccess)==null||y.call(e,h),r==null||r(),i.resolve(h))},f=h=>{var y;s||(s=!0,(y=e.onError)==null||y.call(e,h),r==null||r(),i.reject(h))},g=()=>new Promise(h=>{var y;r=v=>{(s||l())&&h(v)},(y=e.onPause)==null||y.call(e)}).then(()=>{var h;r=void 0,s||(h=e.onContinue)==null||h.call(e)}),m=()=>{if(s)return;let h;const y=n===0?e.initialPromise:void 0;try{h=y??e.fn()}catch(v){h=Promise.reject(v)}Promise.resolve(h).then(d).catch(v=>{var A;if(s)return;const b=e.retry??(xs?0:3),w=e.retryDelay??yk,C=typeof w=="function"?w(n,v):w,S=b===!0||typeof b=="number"&&nl()?void 0:g()).then(()=>{t?f(v):m()})})};return{promise:i,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:a,continueRetry:c,canStart:u,start:()=>(u()?m():g().then(m),i)}}function vk(){let e=[],t=0,n=a=>{a()},s=a=>{a()},r=a=>setTimeout(a,0);const i=a=>{t?e.push(a):r(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&r(()=>{s(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||o()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{s=a},setScheduler:a=>{r=a}}}var ze=vk(),es,sh,Iy=(sh=class{constructor(){te(this,es)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ac(this.gcTime)&&H(this,es,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(xs?1/0:5*60*1e3))}clearGcTimeout(){T(this,es)&&(clearTimeout(T(this,es)),H(this,es,void 0))}},es=new WeakMap,sh),$s,zs,Ct,ts,qe,hi,ns,kt,dn,rh,xk=(rh=class extends Iy{constructor(t){super();te(this,kt);te(this,$s);te(this,zs);te(this,Ct);te(this,ts);te(this,qe);te(this,hi);te(this,ns);H(this,ns,!1),H(this,hi,t.defaultOptions),this.setOptions(t.options),this.observers=[],H(this,ts,t.client),H(this,Ct,T(this,ts).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,H(this,$s,bk(this.options)),this.state=t.state??T(this,$s),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,qe))==null?void 0:t.promise}setOptions(t){this.options={...T(this,hi),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,Ct).remove(this)}setData(t,n){const s=kc(this.state.data,t,this.options);return fe(this,kt,dn).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){fe(this,kt,dn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,r;const n=(s=T(this,qe))==null?void 0:s.promise;return(r=T(this,qe))==null||r.cancel(t),n?n.then(Tt).catch(Tt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,$s))}isActive(){return this.observers.some(t=>Ot(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===cu||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Oy(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,qe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,qe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,Ct).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,qe)&&(T(this,ns)?T(this,qe).cancel({revert:!0}):T(this,qe).cancelRetry()),this.scheduleGc()),T(this,Ct).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||fe(this,kt,dn).call(this,{type:"invalidate"})}fetch(t,n){var c,l,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,qe))return T(this,qe).continueRetry(),T(this,qe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const s=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(H(this,ns,!0),s.signal)})},i=()=>{const d=Dy(this.options,n),f={client:T(this,ts),queryKey:this.queryKey,meta:this.meta};return r(f),H(this,ns,!1),this.options.persister?this.options.persister(d,f,this):d(f)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,ts),state:this.state,fetchFn:i};r(o),(c=this.options.behavior)==null||c.onFetch(o,this),H(this,zs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=o.fetchOptions)==null?void 0:l.meta))&&fe(this,kt,dn).call(this,{type:"fetch",meta:(u=o.fetchOptions)==null?void 0:u.meta});const a=d=>{var f,g,m,h;Fa(d)&&d.silent||fe(this,kt,dn).call(this,{type:"error",error:d}),Fa(d)||((g=(f=T(this,Ct).config).onError)==null||g.call(f,d,this),(h=(m=T(this,Ct).config).onSettled)==null||h.call(m,this.state.data,d,this)),this.scheduleGc()};return H(this,qe,Ly({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:s.abort.bind(s),onSuccess:d=>{var f,g,m,h;if(d===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(y){a(y);return}(g=(f=T(this,Ct).config).onSuccess)==null||g.call(f,d,this),(h=(m=T(this,Ct).config).onSettled)==null||h.call(m,d,this.state.error,this),this.scheduleGc()},onError:a,onFail:(d,f)=>{fe(this,kt,dn).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{fe(this,kt,dn).call(this,{type:"pause"})},onContinue:()=>{fe(this,kt,dn).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),T(this,qe).start()}},$s=new WeakMap,zs=new WeakMap,Ct=new WeakMap,ts=new WeakMap,qe=new WeakMap,hi=new WeakMap,ns=new WeakMap,kt=new WeakSet,dn=function(t){const n=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Vy(s.data,this.options),fetchMeta:t.meta??null};case"success":return{...s,data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=t.error;return Fa(r)&&r.revert&&T(this,zs)?{...T(this,zs),fetchStatus:"idle"}:{...s,error:r,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=n(this.state),ze.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),T(this,Ct).notify({query:this,type:"updated",action:t})})},rh);function Vy(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:My(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function bk(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var qt,ih,wk=(ih=class extends Pi{constructor(t={}){super();te(this,qt);this.config=t,H(this,qt,new Map)}build(t,n,s){const r=n.queryKey,i=n.queryHash??au(r,n);let o=this.get(i);return o||(o=new xk({client:t,queryKey:r,queryHash:i,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){T(this,qt).has(t.queryHash)||(T(this,qt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,qt).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,qt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ze.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,qt).get(t)}getAll(){return[...T(this,qt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Wf(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>Wf(t,s)):n}notify(t){ze.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ze.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ze.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},qt=new WeakMap,ih),Zt,Ye,ss,Kt,Cn,oh,Sk=(oh=class extends Iy{constructor(t){super();te(this,Kt);te(this,Zt);te(this,Ye);te(this,ss);this.mutationId=t.mutationId,H(this,Ye,t.mutationCache),H(this,Zt,[]),this.state=t.state||_k(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,Zt).includes(t)||(T(this,Zt).push(t),this.clearGcTimeout(),T(this,Ye).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){H(this,Zt,T(this,Zt).filter(n=>n!==t)),this.scheduleGc(),T(this,Ye).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,Zt).length||(this.state.status==="pending"?this.scheduleGc():T(this,Ye).remove(this))}continue(){var t;return((t=T(this,ss))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var r,i,o,a,c,l,u,d,f,g,m,h,y,v,b,w,C,S,A,R;H(this,ss,Ly({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(E,O)=>{fe(this,Kt,Cn).call(this,{type:"failed",failureCount:E,error:O})},onPause:()=>{fe(this,Kt,Cn).call(this,{type:"pause"})},onContinue:()=>{fe(this,Kt,Cn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Ye).canRun(this)}));const n=this.state.status==="pending",s=!T(this,ss).canStart();try{if(!n){fe(this,Kt,Cn).call(this,{type:"pending",variables:t,isPaused:s}),await((i=(r=T(this,Ye).config).onMutate)==null?void 0:i.call(r,t,this));const O=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t));O!==this.state.context&&fe(this,Kt,Cn).call(this,{type:"pending",context:O,variables:t,isPaused:s})}const E=await T(this,ss).start();return await((l=(c=T(this,Ye).config).onSuccess)==null?void 0:l.call(c,E,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,E,t,this.state.context)),await((g=(f=T(this,Ye).config).onSettled)==null?void 0:g.call(f,E,null,this.state.variables,this.state.context,this)),await((h=(m=this.options).onSettled)==null?void 0:h.call(m,E,null,t,this.state.context)),fe(this,Kt,Cn).call(this,{type:"success",data:E}),E}catch(E){try{throw await((v=(y=T(this,Ye).config).onError)==null?void 0:v.call(y,E,t,this.state.context,this)),await((w=(b=this.options).onError)==null?void 0:w.call(b,E,t,this.state.context)),await((S=(C=T(this,Ye).config).onSettled)==null?void 0:S.call(C,void 0,E,this.state.variables,this.state.context,this)),await((R=(A=this.options).onSettled)==null?void 0:R.call(A,void 0,E,t,this.state.context)),E}finally{fe(this,Kt,Cn).call(this,{type:"error",error:E})}}finally{T(this,Ye).runNext(this)}}},Zt=new WeakMap,Ye=new WeakMap,ss=new WeakMap,Kt=new WeakSet,Cn=function(t){const n=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ze.batch(()=>{T(this,Zt).forEach(s=>{s.onMutationUpdate(t)}),T(this,Ye).notify({mutation:this,type:"updated",action:t})})},oh);function _k(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hn,Nt,pi,ah,Ck=(ah=class extends Pi{constructor(t={}){super();te(this,hn);te(this,Nt);te(this,pi);this.config=t,H(this,hn,new Set),H(this,Nt,new Map),H(this,pi,0)}build(t,n,s){const r=new Sk({mutationCache:this,mutationId:++ki(this,pi)._,options:t.defaultMutationOptions(n),state:s});return this.add(r),r}add(t){T(this,hn).add(t);const n=$i(t);if(typeof n=="string"){const s=T(this,Nt).get(n);s?s.push(t):T(this,Nt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,hn).delete(t)){const n=$i(t);if(typeof n=="string"){const s=T(this,Nt).get(n);if(s)if(s.length>1){const r=s.indexOf(t);r!==-1&&s.splice(r,1)}else s[0]===t&&T(this,Nt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=$i(t);if(typeof n=="string"){const s=T(this,Nt).get(n),r=s==null?void 0:s.find(i=>i.state.status==="pending");return!r||r===t}else return!0}runNext(t){var s;const n=$i(t);if(typeof n=="string"){const r=(s=T(this,Nt).get(n))==null?void 0:s.find(i=>i!==t&&i.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ze.batch(()=>{T(this,hn).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,hn).clear(),T(this,Nt).clear()})}getAll(){return Array.from(T(this,hn))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Hf(n,s))}findAll(t={}){return this.getAll().filter(n=>Hf(t,n))}notify(t){ze.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ze.batch(()=>Promise.all(t.map(n=>n.continue().catch(Tt))))}},hn=new WeakMap,Nt=new WeakMap,pi=new WeakMap,ah);function $i(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Kf(e){return{onFetch:(t,n)=>{var u,d,f,g,m;const s=t.options,r=(f=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,i=((g=t.state.data)==null?void 0:g.pages)||[],o=((m=t.state.data)==null?void 0:m.pageParams)||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let h=!1;const y=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?h=!0:t.signal.addEventListener("abort",()=>{h=!0}),t.signal)})},v=Dy(t.options,t.fetchOptions),b=async(w,C,S)=>{if(h)return Promise.reject();if(C==null&&w.pages.length)return Promise.resolve(w);const A={client:t.client,queryKey:t.queryKey,pageParam:C,direction:S?"backward":"forward",meta:t.options.meta};y(A);const R=await v(A),{maxPages:E}=t.options,O=S?pk:hk;return{pages:O(w.pages,R,E),pageParams:O(w.pageParams,C,E)}};if(r&&i.length){const w=r==="backward",C=w?Tk:Gf,S={pages:i,pageParams:o},A=C(s,S);a=await b(S,A,w)}else{const w=e??i.length;do{const C=c===0?o[0]??s.initialPageParam:Gf(s,a);if(c>0&&C==null)break;a=await b(a,C),c++}while(c{var h,y;return(y=(h=t.options).persister)==null?void 0:y.call(h,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Gf(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function Tk(e,{pages:t,pageParams:n}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,n[0],n):void 0}var Re,Pn,Rn,Ws,Hs,kn,qs,Zs,ch,w1=(ch=class{constructor(e={}){te(this,Re);te(this,Pn);te(this,Rn);te(this,Ws);te(this,Hs);te(this,kn);te(this,qs);te(this,Zs);H(this,Re,e.queryCache||new wk),H(this,Pn,e.mutationCache||new Ck),H(this,Rn,e.defaultOptions||{}),H(this,Ws,new Map),H(this,Hs,new Map),H(this,kn,0)}mount(){ki(this,kn)._++,T(this,kn)===1&&(H(this,qs,lu.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Re).onFocus())})),H(this,Zs,Po.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Re).onOnline())})))}unmount(){var e,t;ki(this,kn)._--,T(this,kn)===0&&((e=T(this,qs))==null||e.call(this),H(this,qs,void 0),(t=T(this,Zs))==null||t.call(this),H(this,Zs,void 0))}isFetching(e){return T(this,Re).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,Pn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Re).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,Re).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Is(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return T(this,Re).findAll(e).map(({queryKey:t,state:n})=>{const s=n.data;return[t,s]})}setQueryData(e,t,n){const s=this.defaultQueryOptions({queryKey:e}),r=T(this,Re).get(s.queryHash),i=r==null?void 0:r.state.data,o=dk(t,i);if(o!==void 0)return T(this,Re).build(this,s).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ze.batch(()=>T(this,Re).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,Re).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,Re);ze.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,Re),s={type:"active",...e};return ze.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries(s,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=ze.batch(()=>T(this,Re).findAll(e).map(r=>r.cancel(n)));return Promise.all(s).then(Tt).catch(Tt)}invalidateQueries(e,t={}){return ze.batch(()=>{if(T(this,Re).findAll(e).forEach(s=>{s.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},s=ze.batch(()=>T(this,Re).findAll(e).filter(r=>!r.isDisabled()).map(r=>{let i=r.fetch(void 0,n);return n.throwOnError||(i=i.catch(Tt)),r.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(s).then(Tt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,Re).build(this,t);return n.isStaleByTime(Is(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Tt).catch(Tt)}fetchInfiniteQuery(e){return e.behavior=Kf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Tt).catch(Tt)}ensureInfiniteQueryData(e){return e.behavior=Kf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Po.isOnline()?T(this,Pn).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,Re)}getMutationCache(){return T(this,Pn)}getDefaultOptions(){return T(this,Rn)}setDefaultOptions(e){H(this,Rn,e)}setQueryDefaults(e,t){T(this,Ws).set(di(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,Ws).values()],n={};return t.forEach(s=>{fi(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){T(this,Hs).set(di(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,Hs).values()];let n={};return t.forEach(s=>{fi(e,s.mutationKey)&&(n={...n,...s.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,Rn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=au(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===cu&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,Rn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,Re).clear(),T(this,Pn).clear()}},Re=new WeakMap,Pn=new WeakMap,Rn=new WeakMap,Ws=new WeakMap,Hs=new WeakMap,kn=new WeakMap,qs=new WeakMap,Zs=new WeakMap,ch),at,he,mi,Je,rs,Ks,Nn,Gt,gi,Gs,Qs,is,os,On,Xs,be,Nr,Oc,jc,Dc,Mc,Fc,Lc,Ic,By,lh,Ek=(lh=class extends Pi{constructor(t,n){super();te(this,be);te(this,at);te(this,he);te(this,mi);te(this,Je);te(this,rs);te(this,Ks);te(this,Nn);te(this,Gt);te(this,gi);te(this,Gs);te(this,Qs);te(this,is);te(this,os);te(this,On);te(this,Xs,new Set);this.options=n,H(this,at,t),H(this,Gt,null),H(this,Nn,Nc()),this.options.experimental_prefetchInRender||T(this,Nn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,he).addObserver(this),Qf(T(this,he),this.options)?fe(this,be,Nr).call(this):this.updateResult(),fe(this,be,Mc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Vc(T(this,he),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Vc(T(this,he),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,fe(this,be,Fc).call(this),fe(this,be,Lc).call(this),T(this,he).removeObserver(this)}setOptions(t,n){const s=this.options,r=T(this,he);if(this.options=T(this,at).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ot(this.options.enabled,T(this,he))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");fe(this,be,Ic).call(this),T(this,he).setOptions(this.options),s._defaulted&&!Pc(this.options,s)&&T(this,at).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,he),observer:this});const i=this.hasListeners();i&&Xf(T(this,he),r,this.options,s)&&fe(this,be,Nr).call(this),this.updateResult(n),i&&(T(this,he)!==r||Ot(this.options.enabled,T(this,he))!==Ot(s.enabled,T(this,he))||Is(this.options.staleTime,T(this,he))!==Is(s.staleTime,T(this,he)))&&fe(this,be,Oc).call(this);const o=fe(this,be,jc).call(this);i&&(T(this,he)!==r||Ot(this.options.enabled,T(this,he))!==Ot(s.enabled,T(this,he))||o!==T(this,On))&&fe(this,be,Dc).call(this,o)}getOptimisticResult(t){const n=T(this,at).getQueryCache().build(T(this,at),t),s=this.createResult(n,t);return Pk(this,s)&&(H(this,Je,s),H(this,Ks,this.options),H(this,rs,T(this,he).state)),s}getCurrentResult(){return T(this,Je)}trackResult(t,n){const s={};return Object.keys(t).forEach(r=>{Object.defineProperty(s,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),n==null||n(r),t[r])})}),s}trackProp(t){T(this,Xs).add(t)}getCurrentQuery(){return T(this,he)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=T(this,at).defaultQueryOptions(t),s=T(this,at).getQueryCache().build(T(this,at),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){return fe(this,be,Nr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,Je)))}createResult(t,n){var E;const s=T(this,he),r=this.options,i=T(this,Je),o=T(this,rs),a=T(this,Ks),l=t!==s?t.state:T(this,mi),{state:u}=t;let d={...u},f=!1,g;if(n._optimisticResults){const O=this.hasListeners(),D=!O&&Qf(t,n),L=O&&Xf(t,s,n,r);(D||L)&&(d={...d,...Vy(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:h,status:y}=d;if(n.select&&d.data!==void 0)if(i&&d.data===(o==null?void 0:o.data)&&n.select===T(this,gi))g=T(this,Gs);else try{H(this,gi,n.select),g=n.select(d.data),g=kc(i==null?void 0:i.data,g,n),H(this,Gs,g),H(this,Gt,null)}catch(O){H(this,Gt,O)}else g=d.data;if(n.placeholderData!==void 0&&g===void 0&&y==="pending"){let O;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))O=i.data;else if(O=typeof n.placeholderData=="function"?n.placeholderData((E=T(this,Qs))==null?void 0:E.state.data,T(this,Qs)):n.placeholderData,n.select&&O!==void 0)try{O=n.select(O),H(this,Gt,null)}catch(D){H(this,Gt,D)}O!==void 0&&(y="success",g=kc(i==null?void 0:i.data,O,n),f=!0)}T(this,Gt)&&(m=T(this,Gt),g=T(this,Gs),h=Date.now(),y="error");const v=d.fetchStatus==="fetching",b=y==="pending",w=y==="error",C=b&&v,S=g!==void 0,R={status:y,fetchStatus:d.fetchStatus,isPending:b,isSuccess:y==="success",isError:w,isInitialLoading:C,isLoading:C,data:g,dataUpdatedAt:d.dataUpdatedAt,error:m,errorUpdatedAt:h,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!b,isLoadingError:w&&!S,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:w&&S,isStale:uu(t,n),refetch:this.refetch,promise:T(this,Nn)};if(this.options.experimental_prefetchInRender){const O=j=>{R.status==="error"?j.reject(R.error):R.data!==void 0&&j.resolve(R.data)},D=()=>{const j=H(this,Nn,R.promise=Nc());O(j)},L=T(this,Nn);switch(L.status){case"pending":t.queryHash===s.queryHash&&O(L);break;case"fulfilled":(R.status==="error"||R.data!==L.value)&&D();break;case"rejected":(R.status!=="error"||R.error!==L.reason)&&D();break}}return R}updateResult(t){const n=T(this,Je),s=this.createResult(T(this,he),this.options);if(H(this,rs,T(this,he).state),H(this,Ks,this.options),T(this,rs).data!==void 0&&H(this,Qs,T(this,he)),Pc(s,n))return;H(this,Je,s);const r={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!T(this,Xs).size)return!0;const c=new Set(a??T(this,Xs));return this.options.throwOnError&&c.add("error"),Object.keys(T(this,Je)).some(l=>{const u=l;return T(this,Je)[u]!==n[u]&&c.has(u)})};(t==null?void 0:t.listeners)!==!1&&i()&&(r.listeners=!0),fe(this,be,By).call(this,{...r,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&fe(this,be,Mc).call(this)}},at=new WeakMap,he=new WeakMap,mi=new WeakMap,Je=new WeakMap,rs=new WeakMap,Ks=new WeakMap,Nn=new WeakMap,Gt=new WeakMap,gi=new WeakMap,Gs=new WeakMap,Qs=new WeakMap,is=new WeakMap,os=new WeakMap,On=new WeakMap,Xs=new WeakMap,be=new WeakSet,Nr=function(t){fe(this,be,Ic).call(this);let n=T(this,he).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Tt)),n},Oc=function(){fe(this,be,Fc).call(this);const t=Is(this.options.staleTime,T(this,he));if(xs||T(this,Je).isStale||!Ac(t))return;const s=Oy(T(this,Je).dataUpdatedAt,t)+1;H(this,is,setTimeout(()=>{T(this,Je).isStale||this.updateResult()},s))},jc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,he)):this.options.refetchInterval)??!1},Dc=function(t){fe(this,be,Lc).call(this),H(this,On,t),!(xs||Ot(this.options.enabled,T(this,he))===!1||!Ac(T(this,On))||T(this,On)===0)&&H(this,os,setInterval(()=>{(this.options.refetchIntervalInBackground||lu.isFocused())&&fe(this,be,Nr).call(this)},T(this,On)))},Mc=function(){fe(this,be,Oc).call(this),fe(this,be,Dc).call(this,fe(this,be,jc).call(this))},Fc=function(){T(this,is)&&(clearTimeout(T(this,is)),H(this,is,void 0))},Lc=function(){T(this,os)&&(clearInterval(T(this,os)),H(this,os,void 0))},Ic=function(){const t=T(this,at).getQueryCache().build(T(this,at),this.options);if(t===T(this,he))return;const n=T(this,he);H(this,he,t),H(this,mi,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},By=function(t){ze.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(T(this,Je))}),T(this,at).getQueryCache().notify({query:T(this,he),type:"observerResultsUpdated"})})},lh);function Ak(e,t){return Ot(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Qf(e,t){return Ak(e,t)||e.state.data!==void 0&&Vc(e,t,t.refetchOnMount)}function Vc(e,t,n){if(Ot(t.enabled,e)!==!1){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&uu(e,t)}return!1}function Xf(e,t,n,s){return(e!==t||Ot(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&uu(e,n)}function uu(e,t){return Ot(t.enabled,e)!==!1&&e.isStaleByTime(Is(t.staleTime,e))}function Pk(e,t){return!Pc(e.getCurrentResult(),t)}var Uy=x.createContext(void 0),Rk=e=>{const t=x.useContext(Uy);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},S1=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),p.jsx(Uy.Provider,{value:e,children:t})),$y=x.createContext(!1),kk=()=>x.useContext($y);$y.Provider;function Nk(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ok=x.createContext(Nk()),jk=()=>x.useContext(Ok);function Dk(e,t){return typeof e=="function"?e(...t):!!e}function Yf(){}var Mk=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Fk=e=>{x.useEffect(()=>{e.clearReset()},[e])},Lk=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(r&&e.data===void 0||Dk(n,[e.error,s])),Ik=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Vk=(e,t)=>e.isLoading&&e.isFetching&&!t,Bk=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Jf=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Uk(e,t,n){var d,f,g,m,h;const s=Rk(),r=kk(),i=jk(),o=s.defaultQueryOptions(e);(f=(d=s.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||f.call(d,o),o._optimisticResults=r?"isRestoring":"optimistic",Ik(o),Mk(o,i),Fk(i);const a=!s.getQueryCache().get(o.queryHash),[c]=x.useState(()=>new t(s,o)),l=c.getOptimisticResult(o),u=!r&&e.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(y=>{const v=u?c.subscribe(ze.batchCalls(y)):Yf;return c.updateResult(),v},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),x.useEffect(()=>{c.setOptions(o,{listeners:!1})},[o,c]),Bk(o,l))throw Jf(o,c,i);if(Lk({result:l,errorResetBoundary:i,throwOnError:o.throwOnError,query:s.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw l.error;if((m=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||m.call(g,o,l),o.experimental_prefetchInRender&&!xs&&Vk(l,r)){const y=a?Jf(o,c,i):(h=s.getQueryCache().get(o.queryHash))==null?void 0:h.promise;y==null||y.catch(Yf).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?l:c.trackResult(l)}function Ss(e,t){return Uk(e,Ek)}const $k=e=>{const{data:t,isPending:n,isError:s}=Ss({queryKey:["photos",e],queryFn:()=>TR(e),select:({data:r})=>r.data});return{data:t,isPending:n,isError:s}},zk=e=>{const{data:t,isPending:n,isError:s}=Ss({queryKey:["videos",e],queryFn:()=>ER(e),select:({data:r})=>r.data});return{data:t,isPending:n,isError:s}},_1=({className:e,setIsOpen:t,activeItem:n})=>{var f,g;const[s,r]=ws({align:"center",loop:!1,dragFree:!1,slidesToScroll:1}),{data:i}=$k(1),{data:o}=zk(1);AC();const[a,c]=x.useState(!1),[l,u]=x.useState(!1);x.useEffect(()=>{if(!r)return;const m=()=>{c(r.canScrollPrev()),u(r.canScrollNext())};return r.on("select",m),m(),()=>{r.off("select",m)}},[r]),x.useEffect(()=>{!r||!i||r.scrollTo(n.id,!0)},[r,i,n.id]);const d=n.type==="photo"?(f=i==null?void 0:i.photos)==null?void 0:f.map(m=>{var h;return p.jsx("div",{className:"embla__slide flex-[0_0_100%] h-[350px] md:h-[500px] lg:h-[700px] lg:px-[20%] flex items-center justify-center",children:p.jsx("img",{src:(h=m==null?void 0:m.photo)==null?void 0:h.path,alt:m.photo.file_name,className:"max-h-full max-w-full object-contain"})},m.id)}):(g=o==null?void 0:o.videos)==null?void 0:g.map(m=>{var h;return p.jsx("div",{className:"embla__slide flex-[0_0_100%] h-[350px] md:h-[500px] lg:h-[700px] lg:px-[20%] flex items-center justify-center",children:p.jsx("video",{src:((h=m==null?void 0:m.video)==null?void 0:h.path)??"",controls:!0,autoPlay:!0,muted:!0,className:"max-h-full max-w-full object-contain"})},m.id)});return p.jsxs(Fr.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:K("fixed z-[100] top-0 left-0 pb-40 pt-28 lg:px-28 px-6 overflow-hidden min-h-screen w-full bg-black/90",e),children:[p.jsx(Yc,{onClick:()=>t(!1),className:"absolute top-10 right-6 p-3 md:size-20 size-16 cursor-pointer z-50 text-white hover:scale-110 transition-all duration-300"}),p.jsxs("div",{className:"hidden md:block",children:[p.jsx(Dx,{onClick:()=>a&&(r==null?void 0:r.scrollPrev()),className:K("absolute left-10 top-1/2 -translate-y-1/2 text-white size-20 cursor-pointer hover:scale-110 transition-all duration-300 z-40",!a&&"opacity-20 pointer-events-none")}),p.jsx(Fx,{onClick:()=>l&&(r==null?void 0:r.scrollNext()),className:K("absolute right-10 top-1/2 -translate-y-1/2 text-white size-20 cursor-pointer hover:scale-110 transition-all duration-300 z-40",!l&&"opacity-20 pointer-events-none")})]}),p.jsx("div",{ref:s,className:"embla overflow-hidden",children:p.jsx("div",{className:"embla__container flex",children:d})})]})},ut=e=>e===lt.RU?0:1,Bc=[{title:"Тематические направления выставки",bottom_text:` + Участники смогут продемонстрировать свои инновационные решения, наладить взаимовыгодные партнерства и выйти на новые рынки.`,data:[{title:"Текстильные машины и оборудование",img:"/theme/1.svg"},{title:"Одежда, обувь, кожаные изделия",img:"/theme/2.svg"},{title:"Переработка натуральных волокон",img:"/theme/3.svg"},{title:"Домашний текстиль и эко-текстиль",img:"/theme/4.svg"},{title:"Запасные части и вспомогательные материалы",img:"/theme/5.svg"},{title:"Химические средства и красители",img:"/theme/6.svg"},{title:"Аксессуары и швейная фурнитура",img:"/theme/7.svg"},{title:"Мода и дизайн",img:"/theme/8.svg"}]},{title:"Thematic areas of the exhibition",bottom_text:` + Participants will be able to showcase innovative solutions, establish mutually beneficial partnerships, and enter new markets.`,data:[{title:"Textile machinery and equipment",img:"/theme/1.svg"},{title:"Clothing, footwear, leather goods",img:"/theme/2.svg"},{title:"Natural fibre processing",img:"/theme/3.svg"},{title:"Home textiles and eco-textiles",img:"/theme/4.svg"},{title:"Spare parts and auxiliary materials",img:"/theme/5.svg"},{title:"Chemicals and dyes",img:"/theme/6.svg"},{title:"Accessories and sewing supplies",img:"/theme/7.svg"},{title:"Fashion and design",img:"/theme/8.svg"}]}],zy=()=>{const e=Pe(s=>s.lang),{data:t,isPending:n}=Ss({queryKey:["industries",e],queryFn:()=>_R(e),select:({data:s})=>s.data});return{data:t,isPending:n}},C1=({className:e})=>{const t=Pe(r=>r.lang),{data:n,isPending:s}=zy();return p.jsx("section",{className:K("relative w-full bg-[#FDEDEE] -z-10 py-10",e),children:p.jsx(st,{children:s?p.jsx(mr,{}):p.jsxs(p.Fragment,{children:[p.jsx("h3",{className:"h2 mb-4",children:Bc[ut(t)].title}),p.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:n==null?void 0:n.map((r,i)=>p.jsx(ap,{...r},i))}),p.jsxs("div",{className:"flex items-center gap-3 mt-8 text-on_surface_v text-lg",children:[p.jsx("div",{className:"md:w-1 w-4 md:h-[38px] h-40 bg-teritary_08"}),p.jsx("p",{className:"text-18",children:Bc[ut(t)].bottom_text})]})]})})})},Wy=[{title:"Время выставки",data:[{name:"Монтаж выставки",date:"12 Мая – 10 Июня 2025 года"},{name:"Работа",date:"11–13 Июня 2025 года"},{name:"Демонтаж",date:"13–14 Июня 2025 года"}]},{title:"Exhibition time",data:[{name:"Exhibition assembly",date:"12 May — 10 June 2025"},{name:"Exhibition days",date:"11–13 June 2025"},{name:"Exhibition dismantling",date:"13–14 June 2025"}]}],Hy=()=>{const e=Pe(s=>s.lang),{data:t,isPending:n}=Ss({queryKey:["exhibiton-time",e],queryFn:()=>CR(e),select:({data:s})=>s.data});return{data:t,isPending:n}},T1=({className:e})=>{const t=Pe(r=>r.lang),{data:n,isPending:s}=Hy();return p.jsx("section",{className:K("bg-surface_container py-10 md:py-20",e),children:p.jsx(st,{children:s?p.jsx(mr,{}):p.jsxs(p.Fragment,{children:[p.jsx("h2",{className:"h2 mb-6",children:Wy[ut(t)].title}),p.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:n==null?void 0:n.map((r,i)=>x.createElement(cp,{bottomClassName:"!bg-white rounded-b-[2px]",...r,key:i,className:"w-full"}))})]})})})},eh=[{title:"Место проведения",data:["Выставочный центр Торгово-промышленной палаты Туркменистана – это современная площадка для проведения международных выставок, конференций, форумов и деловых встреч","Центр оснащен передовыми техническими решениями, включая мультимедийное оборудование, системы звукоусиления и освещения, конференц-залы с синхронным переводом, а также удобные зоны для переговоров. Просторные выставочные павильоны обеспечивают комфортные условия для демонстрации продукции и услуг. "]},{title:"Venue",data:["The Exhibition Centre of the Chamber of Commerce and Industry of Turkmenistan is a modern venue designed for international exhibitions, conferences, forums, and business meetings.","The centre is equipped with cutting-edge technical solutions, including multimedia equipment, sound and lighting systems, conference rooms with simultaneous translation, and comfortable areas for negotiations. Spacious exhibition pavilions provide ideal conditions for showcasing products and services."]}],E1=({className:e})=>{const t=Pe(n=>n.lang);return p.jsx("section",{className:K("gap-6 relative overflow-hidden",e),children:p.jsxs(st,{className:"md:py-20 py-10 grid-cols-1 lg:grid-cols-2 lg:gap-12 gap-0 grid",children:[p.jsxs("div",{className:"flex-[0_0_50%]",children:[p.jsx("h3",{className:"h2 mb-6",children:eh[ut(t)].title}),p.jsx("div",{className:"text-lg flex flex-col gap-6 text-on_surface_v normal mb-10",children:eh[ut(t)].data.map(n=>p.jsx("p",{children:n},n))})]}),p.jsx("div",{className:"h-full max-size-[600px] flex-[0_0_50%]",children:p.jsx("img",{src:"/about-place.jpg",alt:"",className:"size-full object-contain"})})]})})},zi=[{title:"Приглашение к участию",p:"Министерство текстильной промышленности Туркменистана приглашает бизнес-сообщество со всего мира присоединиться к этому уникальному событию, которое станет важным шагом к укреплению позиций Туркменистана в международной экономической арене.",button1:"Забронировать стенд",button2:"B2B | B2G встречи"},{title:"Invitation to Participate",p:"Ministry of Textile Industry of Turkmenistan invites the global business community to join this unique event, which will be a significant step toward strengthening Turkmenistan’s position on the global economic stage",button1:"Book a stand",button2:"B2B | B2G meetings"}],A1=({className:e})=>{const t=Pe(n=>n.lang);return p.jsxs("section",{className:K("md:py-20 py-10 relative overflow-hidden",e),children:[p.jsx("img",{src:"/CTA.png",className:"absolute top-0 left-0 size-full -z-10 object-cover"}),p.jsxs(st,{children:[p.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:zi[ut(t)].title}),p.jsx("p",{className:"text-center md:text-lg text-sm text-primary_03 max-w-[828px] px-5 mx-auto mb-10",children:zi[ut(t)].p}),p.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[p.jsx(Me,{to:"/stend-form",className:"w-full",children:p.jsx(ft,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:zi[ut(t)].button1})}),p.jsx(Me,{to:"/B2B-B2GS",className:"w-full",children:p.jsx(ft,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:zi[ut(t)].button2})})]})]})]})},qy=e=>{const t=Pe(r=>r.lang),{data:n,isPending:s}=Ss({queryKey:["static-words",t,e],queryFn:()=>bR(t,e),select:({data:r})=>r.data});return{data:n,isPending:s}},P1=()=>{var f,g,m,h,y,v,b,w;const e=Pe(C=>C.lang),{t}=Do("about"),{data:n,isPending:s}=qy("2"),r=(f=n==null?void 0:n.find(C=>C.key==="about_1"))==null?void 0:f.text,i=(g=n==null?void 0:n.find(C=>C.key==="about_2"))==null?void 0:g.text,o=(m=n==null?void 0:n.find(C=>C.key==="about_3"))==null?void 0:m.text,a=(h=n==null?void 0:n.find(C=>C.key==="about_4"))==null?void 0:h.text,c=(y=n==null?void 0:n.find(C=>C.key==="about_5"))==null?void 0:y.list,l=(v=n==null?void 0:n.find(C=>C.key==="about_6"))==null?void 0:v.text,u=(b=n==null?void 0:n.find(C=>C.key==="about_7"))==null?void 0:b.text,d=(w=n==null?void 0:n.find(C=>C.key==="about_8"))==null?void 0:w.list;return s?p.jsx(mr,{}):p.jsxs(st,{className:"flex flex-col md:my-20 my-10 gap-16",children:[p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h2",{className:"h2",children:r}),p.jsx("div",{className:"flex flex-col p gap-3",dangerouslySetInnerHTML:{__html:i??""}})]}),p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h3",{className:"h2",children:o}),p.jsx("h4",{className:"p",children:a}),p.jsx("ol",{type:"1",className:"list-decimal pl-8 flex flex-col gap-3 ",children:c==null?void 0:c.map((C,S)=>p.jsx("li",{className:"p",children:e==="ru"?C.text_ru:C.text_en},S))})]}),p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h2",{className:"h2",children:l}),p.jsx("h3",{className:"p",children:u}),p.jsx("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:d==null?void 0:d.map((C,S)=>p.jsxs("li",{children:[" ",e==="ru"?C.text_ru:C.text_en]},S))})]}),p.jsx(Me,{className:"w-fit mx-auto",to:"/become-sponsor",children:p.jsx(ft,{children:t("main.button")})})]})},Wk=[{lang:lt.RU,data:[{title:"План выставки",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf",blank:!0},{title:"Забронировать стенд",link:"/stend-form"},{title:"Список участников",link:""},{title:"B2B | B2G встречи",link:"/B2B-B2G"}]},{lang:lt.EN,data:[{title:"Floor Plan",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf",blank:!0},{title:"Book a stand",link:"/stend-form"},{title:"List of participants",link:"/"},{title:"B2B | B2G meetings",link:"/B2B-B2G"}]}],R1=()=>{const[e]=ws(),t=Pe(o=>o.lang),{t:n}=Do("home"),s=co("(min-width: 1024px)"),r=co("(min-width: 768px)");function i(){return n(s?"banners.lg":r?"banners.md":"banners.sm")}return p.jsxs("section",{className:"flex flex-col gap-5",children:[p.jsx("div",{ref:e,className:"embla",children:p.jsx("div",{className:"embla__container",children:p.jsx("div",{className:"embla__slide",children:p.jsx("img",{src:i(),alt:"",className:"size-full object-cover lg:max-h-[600px] lg:min-h-[320px]"})})})}),p.jsx(st,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 items-center gap-6 text-2xl",children:Wk[ut(t)].data.map(({title:o,link:a,blank:c})=>p.jsx(Me,{target:c?"_blank":"",to:a,className:"w-full",children:p.jsx(ft,{size:"lg",variant:"teritary",className:"w-full drop-shadow-sm shadow-md text-xl bg-teritary text-on_teritary hover:bg-teritary/90",children:o})},o))})]})},Hk=()=>{const e=Pe(s=>s.lang),{data:t,isPending:n}=Ss({queryKey:["home-contacts",e],queryFn:()=>SR(e),select:({data:s})=>s.data});return{data:t,isPending:n}},k1=({className:e})=>{const t=Pe(i=>i.lang),{data:n,isPending:s}=Hy(),{data:r}=Hk();return s?p.jsx(mr,{}):p.jsx("section",{className:K("bg-surface_high pt-10 pb-20",e),children:p.jsxs(st,{children:[p.jsx("h2",{className:"h2 mb-6",children:Wy[ut(t)].title}),p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:n==null?void 0:n.map((i,o)=>x.createElement(cp,{...i,key:o,className:"w-full"}))}),p.jsx("div",{className:"md:p-10 pt-16 flex flex-col md:flex-row items-center gap-6",children:r==null?void 0:r.map((i,o)=>x.createElement(Yb,{...i,key:o,className:"w-full"}))}),p.jsx(Me,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:p.jsx(ft,{className:"w-full",children:t===lt.RU?"Забронируйте стенд":"Book a stand"})})]})]})})},qk=[{h2:"Выставка-ярмарка «TurkmenTextile Expo-2025» в Ашхабаде",p:`Международная выставка-ярмарка, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. + Наша миссия – укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии. + + `,p_2:`Выставка станет платформой для изучения устойчивых практик, современных технологий и дизайнерских решений, вдохновляя на развитие индустрии. + «Turkmentextile Expo-2025» – это платформа, соединяющий традиции и инновации, производителей и потребителей, Туркменистан и весь мир!`,data:[{nums:"10,000 m²",text:"Выставочной площади"},{nums:"10000+",text:"Ожидаемых посетителей "},{nums:"100+",text:"Экспонентов из более чем 30 стран"},{nums:"80%",text:"Участников топ-менеджмента"}],button:"Подробнее о выставке"},{h2:"TurkmenTextile Expo-2025 in Ashgabat",p:`An international exhibition will unite global industry leaders, innovative manufacturers, and creative designers. + Our mission is to strengthen Turkmenistan's position as a key hub for the textile and fashion industry. + `,p_2:"The exhibition will serve as a platform to explore sustainable practices, modern technologies, and design solutions, inspiring the development of the industry.",data:[{nums:"10,000 m²",text:"Exhibition area"},{nums:"10000+",text:"Expected visitors "},{nums:"100+",text:"Exhibitors from over 30 countries"},{nums:"80%",text:"Participants are top-management"}],button:"More about the exhibition"}],Zk=()=>{const e=Pe(s=>s.lang),{data:t,isPending:n}=Ss({queryKey:["stats",e],queryFn:()=>wR(e),select:({data:s})=>s.data});return{data:t,isPending:n}},N1=()=>{var a,c;const[e]=ws(),t=Pe(l=>l.lang),{data:n,isPending:s}=qy("1"),{data:r}=Zk(),i=(a=n==null?void 0:n.find(l=>l.key==="index_1"))==null?void 0:a.text,o=(c=n==null?void 0:n.find(l=>l.key==="index_2"))==null?void 0:c.text;return s?p.jsx(mr,{}):p.jsx("section",{children:p.jsxs(st,{className:"flex flex-col gap-6",children:[p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 items-center",children:[p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h2",{className:"h2 text-left",children:i}),p.jsx("div",{dangerouslySetInnerHTML:{__html:o||""},className:"md:text-base flex flex-col gap-6 text-sm normal text-left text-[#454545]"}),p.jsx(Me,{to:"/about",className:"w-fit",children:p.jsx(ft,{variant:"outline",children:qk[ut(t)].button})})]}),p.jsx("video",{src:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/video/Textile2025.mp4",muted:!0,controls:!0,autoPlay:!0,loop:!0,className:"w-full h-auto"})]}),p.jsx("div",{ref:e,className:"embla overflow-hidden",children:p.jsx("div",{className:"flex embla__container items-center gap-6",children:r==null?void 0:r.map(l=>p.jsx(Qb,{...l,className:"embla__slide flex-[0_0_288px]"},l.text))})})]})})},O1=()=>{const e=Pe(s=>s.lang),{data:t,isPending:n}=zy();return n?p.jsx(mr,{}):p.jsx("section",{className:"",children:p.jsxs(st,{children:[p.jsx("h2",{className:"h2 mb-10 text-center",children:Bc[ut(e)].title}),p.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:t==null?void 0:t.map((s,r)=>p.jsx(ap,{...s},r))})]})})},Kk=[{data:[{img:"/offer-1.png",title:"Гостиницы, трансфер, визы",btnText:"Скачать путеводитель",text:"По вопросам размещения в гостиницах, визовой поддержки, транспортного и экскурсионного обслуживания Вы можете ознакомиться с путеводителем",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_ru.pdf"},{img:"/offer-2.png",title:"Ознакомьтесь с планом выставки TurkmenTextile Expo 2025",btnText:"Скачать план выставки",text:"Как выбрать лучшее место на выставке? Вы всегда должны помнить, что удачное расположение выставочной экспозиции повышает Ваши шансы привлечь внимание Ваших потенциальных клиентов",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]},{data:[{img:"/offer-2.png",title:"Hotels, transfer, visas;",btnText:"Download Travel Guide",text:"For inquiries regarding hotel accommodations, visa support, transportation, and tour services, please refer to the travel guide;",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_eng.pdf"},{img:"/offer-2.png",title:"Explore “TurkmenTextile Expo-2025” plan;",btnText:"Download exhibition plan.",text:"How to choose the best location at the exhibition? A prime spot increases your chances to attract potential clients;",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]}],j1=()=>{const[e,t]=ws({align:"start"}),[n,s]=x.useState(0),r=Pe(o=>o.lang),i=x.useCallback(o=>{t&&t.scrollTo(o)},[t]);return x.useEffect(()=>{if(!t)return;const o=()=>{s(t.selectedScrollSnap())};return t.on("select",o),()=>{t.off("select",o)}},[t]),p.jsx("section",{className:"bg-surface_high py-10 relative overflow-hidden",children:p.jsx(st,{children:p.jsxs("div",{ref:e,className:"embla ",children:[p.jsx("div",{className:"mb-2 flex gap-6 embla__container",children:Kk[ut(r)].data.map(o=>x.createElement(Xb,{...o,key:o.title,className:"embla__slide flex-[0_0_300px] sm:flex-[0_0_600px]"}))}),p.jsx(XC,{className:"xl:hidden",scrollTo:i,active:n,slides:2})]})})})},Gk=()=>{const{t:e}=Do("nav"),t=Pe(i=>i.lang),n=_c(i=>i.sheet),s=_c(i=>i.setSheet),r=e("navigation",{returnObjects:!0});return p.jsxs(Ab,{onOpenChange:()=>s(!n),open:n,children:[p.jsx(Pb,{children:p.jsxs("div",{className:"flex flex-col gap-1 lg:hidden items-center justify-center size-10",children:[p.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),p.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),p.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"})]})}),p.jsxs(tp,{className:"overflow-y-auto",children:[p.jsx(Rb,{}),p.jsxs(np,{className:"mt-16 flex flex-col gap-2",children:[p.jsx(Me,{to:t===lt.RU?"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf":"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_eng.pdf",children:p.jsx(ft,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:t==="ru"?"Официальная поддержка":"Official Support"})}),p.jsx(Me,{to:"/become-sponsor",children:p.jsx(ft,{variant:"secondary",size:"sm",className:"bg-primary w-full text-white hover:bg-primary/90",children:t==="ru"?"Стать спонсором":"Become a sponsor"})})]}),p.jsx("hr",{className:"border-slate-500/20 my-8"}),p.jsx("div",{className:"flex flex-col gap-6",children:r.map(i=>i.drop?p.jsx(Cc,{className:"w-full",triggerClassName:"justify-between",color:"black",dropDownContent:i.dropDownContent,title:i.title},i.title):p.jsx(Me,{target:i.blank??"",className:"py-2",to:i.link||"",onClick:()=>s(!1),children:i.title},i.title))})]})]})},D1=()=>{const e=Pe(s=>s.lang),{t}=Do("nav"),n=t("navigation",{returnObjects:!0});return p.jsxs("header",{children:[p.jsx("div",{className:"h-12 hidden lg:flex bg-sur text-surface-bg items-center overflow-hidden",children:p.jsxs(st,{className:"flex items-center justify-between",children:[p.jsxs("div",{className:"gap-8 flex items-center justify-between",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx($x,{}),p.jsx("h4",{className:"text-sm",children:e==="ru"?"Ашхабад, Туркменистан":"Ashgabat, Turkmenistan"})]}),p.jsx("nav",{className:"flex items-center gap-6",children:n.slice(0,3).map(s=>s.drop?p.jsx(Cc,{color:"black",dropDownContent:s.dropDownContent,title:s.title},s.title):p.jsx(Me,{target:s.blank?"_blank":"",className:"py-2",to:s.link||"",children:s.title},s.title))})]}),p.jsxs("div",{className:"flex items-center gap-6",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Hx,{size:16,strokeWidth:"3px"}),p.jsx("h4",{className:"text-sm",children:"+99371871812"})]}),p.jsx(wf,{className:"!text-on_surface"})]})]})}),p.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:p.jsxs(st,{className:"flex items-center justify-between ",children:[p.jsxs("div",{className:"flex items-center gap-8",children:[p.jsx(Me,{to:"/",children:p.jsx(op,{})}),p.jsx("nav",{className:"lg:flex hidden items-center gap-6 text-white",children:n.slice(3,6).map(s=>s.drop?p.jsx(Cc,{dropDownContent:s.dropDownContent,title:s.title,color:"white"},s.title):p.jsx(Me,{className:"py-2",to:s.link||"",children:s.title},s.title))})]}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(wf,{className:"lg:hidden",light:!0}),p.jsx(Gk,{})]}),p.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[p.jsx(Me,{to:e===lt.RU?"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf":"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_eng.pdf",target:"_blank",children:p.jsx(ft,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90",children:e==="ru"?"Официальная поддержка":"Official Support"})}),p.jsx(Me,{to:"/become-sponsor",children:p.jsx(ft,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90",children:e==="ru"?"Стать спонсором":"Become a sponsor"})})]})]})})]})},M1=()=>{const e=Pe(t=>t.lang);return p.jsxs("footer",{children:[p.jsx(Py,{}),p.jsx("div",{className:"py-5 bg-primary",children:p.jsxs(st,{className:"flex flex-col gap-6",children:[p.jsxs("div",{className:"flex flex-col md:flex-row gap-6 md:items-end md:justify-between items-center",children:[p.jsx(op,{}),p.jsxs("div",{className:"flex items-center gap-6",children:[p.jsx(Me,{target:"_blank",to:"https://www.facebook.com/profile.php?id=61567254728028",children:p.jsx(Ix,{className:"text-white"})}),p.jsx(Me,{target:"_blank",to:"https://www.instagram.com/turkmenexpo_tm?igsh=bnhkOWpmNWcwcHBq",children:p.jsx("img",{src:"/inst.svg"})}),p.jsx(Me,{target:"_blank",to:"https://www.linkedin.com/company/turkmen-expo",children:p.jsx("img",{src:"/in.svg"})}),p.jsx(Me,{target:"_blank",to:"https://x.com/turkmenexpo?t=D-XSa8d0AC8GAv5peAzteA&s=09",children:p.jsx("img",{src:"/x.svg"})})]})]}),p.jsx("hr",{className:"border-white/50"}),p.jsx("h5",{className:"text-base text-center normal text-white",children:e===lt.RU?"©2025 Все права защищены":"All rights reserved"})]})})]})},st=({className:e,children:t})=>p.jsx("div",{className:K("w-full mx-auto max-w-[1240px] px-4",e),children:t}),F1=({title:e})=>p.jsxs("div",{className:"relative flex items-center h-[216px] w-full justify-center",children:[p.jsx("img",{src:"/cover.png",className:"-z-10 absolute size-full object-cover top-0 left-0"}),p.jsx("h1",{className:"text-on_primary md:text-5xl text-3xl",children:e})]});export{ar as $,P1 as A,og as B,st as C,l1 as D,ft as E,M1 as F,t1 as G,D1 as H,qC as I,c1 as J,r1 as K,lt as L,u1 as M,ME as N,Ve as O,a1 as P,w1 as Q,h1 as R,f1 as S,Uc as T,Bt as U,or as V,fh as W,jn as X,rt as Y,gt as Z,Wi as _,S1 as a,XT as a0,Kh as a1,p1 as a2,mr as a3,y1 as a4,e1 as a5,g1 as a6,v1 as a7,x1 as a8,b1 as a9,$k as aa,zk as ab,_1 as ac,n1 as ad,Ss as b,ws as c,Do as d,K as e,R1 as f,m1 as g,N1 as h,s1 as i,p as j,j1 as k,O1 as l,k1 as m,F1 as n,C1 as o,T1 as p,E1 as q,A1 as r,$o as s,Fr as t,Pe as u,ut as v,GC as w,rg as x,ig as y,Tf as z}; diff --git a/dist/assets/use-news-9Z2rsr5T.js b/dist/assets/use-news-DRGMJQe9.js similarity index 86% rename from dist/assets/use-news-9Z2rsr5T.js rename to dist/assets/use-news-DRGMJQe9.js index c29099b..4df4d14 100644 --- a/dist/assets/use-news-9Z2rsr5T.js +++ b/dist/assets/use-news-DRGMJQe9.js @@ -1 +1 @@ -import{j as s,e as r,a5 as i,b as x,a6 as o}from"./ui-library-BrD2Svyn.js";import{L as j}from"./react-vendor-Y0eyvj1J.js";const d=({className:a,featured_images:e,title:t,id:c,published_at:n})=>{var l;return s.jsx(j,{to:`/news/${c}`,children:s.jsxs("article",{className:r("bg-surface_container justify-between h-[400px] flex flex-col gap-6",a),children:[s.jsxs("div",{className:"flex flex-col gap-4 px-6 pt-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("h4",{children:n.slice(0,10).split("-").reverse().join(".")}),s.jsx(i,{})]}),s.jsx("hr",{}),s.jsx("h3",{className:"text-[20px] leading-[130%] line-clamp-3",children:t})]}),s.jsx("img",{src:((l=e==null?void 0:e[0])==null?void 0:l.path)||"",alt:"news image",className:"w-full h-[220px] object-cover"})]})})},m=a=>{const{data:e,isPending:t}=x({queryKey:["news",a],queryFn:()=>o(a),select:({data:c})=>c.data});return{data:e,isPending:t}};export{d as N,m as u}; +import{j as s,e as r,a5 as i,b as x,a6 as o}from"./ui-library-DpZprY9x.js";import{L as j}from"./react-vendor-Y0eyvj1J.js";const d=({className:a,featured_images:e,title:t,id:c,published_at:n})=>{var l;return s.jsx(j,{to:`/news/${c}`,children:s.jsxs("article",{className:r("bg-surface_container justify-between h-[400px] flex flex-col gap-6",a),children:[s.jsxs("div",{className:"flex flex-col gap-4 px-6 pt-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("h4",{children:n.slice(0,10).split("-").reverse().join(".")}),s.jsx(i,{})]}),s.jsx("hr",{}),s.jsx("h3",{className:"text-[20px] leading-[130%] line-clamp-3",children:t})]}),s.jsx("img",{src:((l=e==null?void 0:e[0])==null?void 0:l.path)||"",alt:"news image",className:"w-full h-[220px] object-cover"})]})})},m=a=>{const{data:e,isPending:t}=x({queryKey:["news",a],queryFn:()=>o(a),select:({data:c})=>c.data});return{data:e,isPending:t}};export{d as N,m as u}; diff --git a/dist/index.html b/dist/index.html index 55194a5..e76b670 100644 --- a/dist/index.html +++ b/dist/index.html @@ -66,10 +66,10 @@ })(window, document, "script", "dataLayer", "GTM-NK394LVK"); Turkmen Textile - + - - + +