diff --git a/dist/assets/about-qfmgkWzS.js b/dist/assets/about-D7AMFxSg.js similarity index 85% rename from dist/assets/about-qfmgkWzS.js rename to dist/assets/about-D7AMFxSg.js index 79205d7..307eeb8 100644 --- a/dist/assets/about-qfmgkWzS.js +++ b/dist/assets/about-D7AMFxSg.js @@ -1 +1 @@ -import{u as t,j as s,f as e,C as u,L as n,A as r,g as i,h as x,i as j,k as l}from"./ui-library-D6J3nmrf.js";import"./react-vendor-OnsDvTPE.js";import{u as m}from"./use-scroll-top-ByehxtTO.js";function f(){m();const o=t(a=>a.lang);return s.jsxs("div",{className:e(""),children:[s.jsx(u,{title:o===n.RU?"О выставке":"About exhibition"}),s.jsx(r,{}),s.jsx(i,{}),s.jsx(x,{}),s.jsx(j,{}),s.jsx(l,{})]})}export{f as default}; +import{u as t,j as s,f as e,C as u,L as n,A as r,g as i,h as x,i as j,k as l}from"./ui-library-DfsjY96d.js";import"./react-vendor-OnsDvTPE.js";import{u as m}from"./use-scroll-top-ByehxtTO.js";function f(){m();const o=t(a=>a.lang);return s.jsxs("div",{className:e(""),children:[s.jsx(u,{title:o===n.RU?"О выставке":"About exhibition"}),s.jsx(r,{}),s.jsx(i,{}),s.jsx(x,{}),s.jsx(j,{}),s.jsx(l,{})]})}export{f as default}; diff --git a/dist/assets/b2b-Ctaw9qnF.js b/dist/assets/b2b-Vj2StMPJ.js similarity index 99% rename from dist/assets/b2b-Ctaw9qnF.js rename to dist/assets/b2b-Vj2StMPJ.js index 3f55834..d26e714 100644 --- a/dist/assets/b2b-Ctaw9qnF.js +++ b/dist/assets/b2b-Vj2StMPJ.js @@ -1 +1 @@ -import{l as B,u as f,j as e,m as S,n as r,o as R,p as j,q as y,L as u,r as v,s as o,B as h,t as V,v as D,w as q,x as N,y as z,C as E,z as L}from"./ui-library-D6J3nmrf.js";import{a as w}from"./react-vendor-OnsDvTPE.js";import{z as l,t as H,a as U}from"./index-Doh9iehP.js";import{R as A,a as C}from"./radio-group-0T_K4mIX.js";import{u as T}from"./use-scroll-top-ByehxtTO.js";const I=l.object({type:l.string(),company_name:l.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),representative_name:l.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:l.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:l.string().min(1,{message:"Укажите количество участников"}),country:l.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email_address:l.string().email({message:"Укажите корректный email"}),phone_number:l.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:l.string().optional(),meeting_objective:l.string().min(3,{message:"Укажите цель встречи"}),proposal_description:l.string().optional(),government_agency:l.string().optional(),sector_industry:l.string().optional(),key_services:l.string().optional(),government_experience:l.string().optional(),preferred_meeting_datetime:l.string().optional(),meeting_mode:l.string().optional(),language_preference:l.string().optional(),technical_requirements:l.string().optional(),company_profile:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),proposal_presentation:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),relevant_certification:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional()}),J={type:"B2B",company_name:"",representative_name:"",job_title:"",participants_number:"",country:"",email_address:"",phone_number:"",website:"",meeting_objective:"",proposal_description:"",government_agency:"",sector_industry:"",key_services:"",government_experience:"",preferred_meeting_datetime:"",meeting_mode:"",language_preference:"",technical_requirements:""},m=[{h2:"Информация об экспоненте:",data:[{label:"Название компании/организации"},{label:"Имя представителя"},{label:"Название должности/позиция"},{label:"Количество участников"},{label:"Страна"},{label:"E-mail адрес"},{label:"Номер телефона"},{label:"Вебсайт"}]},{h2:"Applicant Information:",data:[{label:"Company/Organization Name"},{label:"Name of Representative"},{label:"Job title/Position"},{label:"Number of the participants"},{label:"Country"},{label:"E-mail address"},{label:"Phone number"},{label:"Website"}]}],p=[{h2:"Цели встречи:",secondH2:"Информация о компании/организации:",data:[{label:"Основная цель встречи"},{label:"Краткое описание вашего предложения/проекта/запроса"},{label:"Соответствующее государственное учреждение/департамент"},{label:"Отраслевая промышленность"},{label:"Ключевые услуги/продукты"},{label:"Предыдущий опыт работы с правительствами (если применимо)"}]},{h2:"Meeting Purpose: ",secondH2:"Company/Organization Profile:",data:[{label:"Primary objective of the meeting"},{label:"Brief description of your proposal/project/request"},{label:"Relevant government agency/department"},{label:"Sector Industry "},{label:"Key Services/Products"},{label:"Previous Experience working with Governments (if applicable)"}]}],c=[{h2:"Логистика встречи:",secondH2:"Логистика встречи:",subtitle:"(Пожалуйста приложите следующие документы, если это необходимо)",data:[{label:"Предпочтительная дата и время"},{label:"Предпочтительный способ проведения встречи (лично, виртуально (через zoom/ teams/другое), гибридный)"},{label:"Предпочитаемый язык (английский, туркменский, русский, другой)"},{label:"Дополнительные технические или логистические требования (например, аудио-видео оборудование, переводчики и т.д.)"},{label:"Название компании/организации"},{label:"Предложение/презентация"},{label:"Соответствующие сертификаты/лицензии"}],button:"Отправить"},{h2:"Meeting Logistics:",secondH2:"Attachments",subtitle:"(Please attach the following documents as applicable)",data:[{label:"Preferred date and time for the meeting"},{label:"Preferred mode of meeting (in-person, virtual (via zoom/teams/other), hybrid)"},{label:"Language preference (English, turkmen, Russian, other)"},{label:"Additional technical or logistical requirements (e.g. AV equipment, interpreters, etc)"},{label:"Company/organization profile"},{label:"Proposal presentation"},{label:"Relevant certification/licenses"}],button:"Send"}],O=({handleNext:s})=>{const{control:n,formState:t}=B(),a=f(i=>i.lang);return e.jsxs(S.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:"100%",transition:{duration:.2}},className:"w-full",children:[e.jsx("h2",{className:"h2 mb-8",children:m[r(a)].h2}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(R,{defaultValue:1,control:n,name:"type",render:({field:i})=>e.jsxs(j,{className:"space-y-3",children:[e.jsx(y,{className:"text-xl",children:a===u.RU?"Тип:":"Type:"}),e.jsx(v,{children:e.jsxs(A,{onValueChange:i.onChange,defaultValue:i.value,className:"flex flex-col space-y-4",children:[e.jsxs(j,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(v,{children:e.jsx(C,{value:"B2B",checked:i.value==="B2B"})}),e.jsx(y,{className:"text-base",children:"B2B"})]}),e.jsxs(j,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(v,{children:e.jsx(C,{value:"B2G",checked:i.value==="B2G"})}),e.jsx(y,{className:"text-base",children:"B2G"})]})]})})]})}),e.jsx(o,{control:n,name:"company_name",error:t.errors.company_name,placeholder:"",label:m[r(a)].data[0].label}),e.jsx(o,{control:n,name:"representative_name",error:t.errors.representative_name,placeholder:"",label:m[r(a)].data[1].label}),e.jsx(o,{control:n,name:"job_title",error:t.errors.job_title,placeholder:"",label:m[r(a)].data[2].label}),e.jsx(o,{control:n,name:"participants_number",error:t.errors.participants_number,placeholder:"",label:m[r(a)].data[3].label}),e.jsx(o,{control:n,name:"country",error:t.errors.country,placeholder:"",label:m[r(a)].data[4].label}),e.jsx(o,{control:n,name:"email_address",error:t.errors.email_address,placeholder:"",label:m[r(a)].data[5].label}),e.jsx(o,{control:n,name:"phone_number",error:t.errors.phone_number,placeholder:"",label:m[r(a)].data[6].label}),e.jsx(o,{control:n,name:"website",placeholder:"",label:m[r(a)].data[7].label})]}),e.jsx(h,{variant:"secondary",type:"button",onClick:s,className:"w-full mt-10",children:a===u.RU?"Далее":"Next"})]})},M=({handleNext:s,handlePrev:n})=>{const t=f(x=>x.lang),{control:a,formState:i}=B();return e.jsxs(S.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},exit:{opacity:0,y:100},children:[e.jsx("h2",{className:"h2 mb-8",children:p[r(t)].h2}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(o,{control:a,name:"meeting_objective",error:i.errors.meeting_objective,placeholder:"",label:p[r(t)].data[0].label}),e.jsx(o,{control:a,name:"proposal_description",error:i.errors.proposal_description,placeholder:"",label:p[r(t)].data[1].label}),e.jsx(o,{control:a,name:"government_agency",error:i.errors.government_agency,placeholder:"",label:p[r(t)].data[2].label}),e.jsx("h2",{className:"h2 mt-4",children:p[r(t)].secondH2}),e.jsx(o,{control:a,name:"sector_industry",error:i.errors.sector_industry,placeholder:"",label:p[r(t)].data[3].label}),e.jsx(o,{control:a,name:"key_services",error:i.errors.key_services,placeholder:"",label:p[r(t)].data[4].label}),e.jsx(o,{control:a,name:"government_experience",error:i.errors.government_experience,placeholder:"",label:p[r(t)].data[5].label})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(h,{type:"button",onClick:n,variant:"outline",className:"text-on_surface",children:t===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{variant:"secondary",type:"button",onClick:s,className:"w-full",children:t===u.RU?"Далее":"Next"})]})]})},$=({handlePrev:s})=>{const{control:n,formState:t}=B(),a=f(i=>i.lang);return e.jsxs(S.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},transition:{duration:1},children:[e.jsx("h2",{className:"h2 mb-8",children:c[r(a)].h2}),e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsx(o,{control:n,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:c[r(a)].data[0].label}),e.jsx(o,{control:n,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:c[r(a)].data[1].label}),e.jsx(o,{control:n,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:c[r(a)].data[2].label}),e.jsx(o,{control:n,name:"additional_technical",error:t.errors.additional_technical,placeholder:"",label:c[r(a)].data[3].label})]}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"h2 mt-10",children:c[r(a)].secondH2}),e.jsx("h5",{className:"text-on_surface_v",children:c[r(a)].subtitle})]}),e.jsx(o,{control:n,name:"company_profile",label:c[r(a)].data[4].label,type:"file",textDark:!0}),e.jsx(o,{control:n,name:"proposal_presentation",label:c[r(a)].data[5].label,type:"file",textDark:!0}),e.jsx(o,{control:n,name:"relevant_certification",label:c[r(a)].data[6].label,type:"file",textDark:!0})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(h,{type:"button",onClick:s,variant:"outline",className:"text-on_surface",children:a===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{disabled:t.isSubmitting,type:"submit",className:"w-full",children:t.isSubmitting?e.jsx(V,{className:"animate-spin"}):c[r(a)].button})]})]})},K=({stage:s,setStage:n,success:t,setSuccess:a})=>{const i=D({resolver:H(I),defaultValues:J,mode:"onChange"}),x=d=>{switch(d){case 1:return["type","company_name","representative_name","job_title","participants_number","country","email_address","phone_number","website"];case 2:return["meeting_objective","proposal_description","government_agency","sector_industry","key_services","government_experience"];case 3:return["preferred_meeting_datetime","meeting_mode","language_preference","technical_requirements","company_profile","proposal_presentation","relevant_certification"];default:return[]}},P=async()=>{const d=x(s);await i.trigger(d)&&n(k=>k+1)},F=()=>n(d=>d-1),G=async d=>{try{const b=new FormData;Object.entries(d).forEach(([_,g])=>{g instanceof File?(console.log(`Добавляем файл: ${_}`,g),b.append(_,g)):g!==void 0&&(console.log(`Добавляем поле: ${_}`,g),b.append(_,g))}),(await U.post("https://turkmentextile.turkmenexpo.com/app/api/v1/form",b,{headers:{"Content-Type":"multipart/form-data"}})).status===201&&a(!0)}catch(b){console.error("Ошибка при отправке B2B формы:",b)}};return e.jsx(q,{...i,children:e.jsx("form",{onSubmit:i.handleSubmit(G),children:e.jsxs("div",{className:"relative",children:[e.jsx(N,{children:s===1&&e.jsx(O,{handleNext:P})}),e.jsx(N,{children:s===2&&e.jsx(M,{handleNext:P,handlePrev:F})}),e.jsx(N,{children:s===3&&t===!1&&e.jsx($,{handlePrev:F})}),t&&e.jsx(z,{})]})})})};function ee(){T();const s=f(x=>x.lang),[n,t]=w.useState(1),[a,i]=w.useState(!1);return e.jsxs("div",{className:"pb-[120px]",children:[e.jsx(E,{title:s===u.RU?"B2B | B2G встречи":"B2B | B2G meetings"}),!a&&n!==0&&e.jsx(L,{stage:n}),e.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:e.jsx(K,{success:a,setSuccess:i,stage:n,setStage:t})})]})}export{ee as default}; +import{l as B,u as f,j as e,m as S,n as r,o as R,p as j,q as y,L as u,r as v,s as o,B as h,t as V,v as D,w as q,x as N,y as z,C as E,z as L}from"./ui-library-DfsjY96d.js";import{a as w}from"./react-vendor-OnsDvTPE.js";import{z as l,t as H,a as U}from"./index-Cut7DAH_.js";import{R as A,a as C}from"./radio-group-CW7nH-dd.js";import{u as T}from"./use-scroll-top-ByehxtTO.js";const I=l.object({type:l.string(),company_name:l.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),representative_name:l.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:l.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:l.string().min(1,{message:"Укажите количество участников"}),country:l.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email_address:l.string().email({message:"Укажите корректный email"}),phone_number:l.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:l.string().optional(),meeting_objective:l.string().min(3,{message:"Укажите цель встречи"}),proposal_description:l.string().optional(),government_agency:l.string().optional(),sector_industry:l.string().optional(),key_services:l.string().optional(),government_experience:l.string().optional(),preferred_meeting_datetime:l.string().optional(),meeting_mode:l.string().optional(),language_preference:l.string().optional(),technical_requirements:l.string().optional(),company_profile:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),proposal_presentation:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional(),relevant_certification:l.custom(s=>s instanceof File,{message:"Выберите корректный файл"}).refine(s=>s&&["image/jpeg","image/png","application/pdf"].includes(s.type),{message:"Допускаются только файлы JPG, PNG и PDF"}).optional()}),J={type:"B2B",company_name:"",representative_name:"",job_title:"",participants_number:"",country:"",email_address:"",phone_number:"",website:"",meeting_objective:"",proposal_description:"",government_agency:"",sector_industry:"",key_services:"",government_experience:"",preferred_meeting_datetime:"",meeting_mode:"",language_preference:"",technical_requirements:""},m=[{h2:"Информация об экспоненте:",data:[{label:"Название компании/организации"},{label:"Имя представителя"},{label:"Название должности/позиция"},{label:"Количество участников"},{label:"Страна"},{label:"E-mail адрес"},{label:"Номер телефона"},{label:"Вебсайт"}]},{h2:"Applicant Information:",data:[{label:"Company/Organization Name"},{label:"Name of Representative"},{label:"Job title/Position"},{label:"Number of the participants"},{label:"Country"},{label:"E-mail address"},{label:"Phone number"},{label:"Website"}]}],p=[{h2:"Цели встречи:",secondH2:"Информация о компании/организации:",data:[{label:"Основная цель встречи"},{label:"Краткое описание вашего предложения/проекта/запроса"},{label:"Соответствующее государственное учреждение/департамент"},{label:"Отраслевая промышленность"},{label:"Ключевые услуги/продукты"},{label:"Предыдущий опыт работы с правительствами (если применимо)"}]},{h2:"Meeting Purpose: ",secondH2:"Company/Organization Profile:",data:[{label:"Primary objective of the meeting"},{label:"Brief description of your proposal/project/request"},{label:"Relevant government agency/department"},{label:"Sector Industry "},{label:"Key Services/Products"},{label:"Previous Experience working with Governments (if applicable)"}]}],c=[{h2:"Логистика встречи:",secondH2:"Логистика встречи:",subtitle:"(Пожалуйста приложите следующие документы, если это необходимо)",data:[{label:"Предпочтительная дата и время"},{label:"Предпочтительный способ проведения встречи (лично, виртуально (через zoom/ teams/другое), гибридный)"},{label:"Предпочитаемый язык (английский, туркменский, русский, другой)"},{label:"Дополнительные технические или логистические требования (например, аудио-видео оборудование, переводчики и т.д.)"},{label:"Название компании/организации"},{label:"Предложение/презентация"},{label:"Соответствующие сертификаты/лицензии"}],button:"Отправить"},{h2:"Meeting Logistics:",secondH2:"Attachments",subtitle:"(Please attach the following documents as applicable)",data:[{label:"Preferred date and time for the meeting"},{label:"Preferred mode of meeting (in-person, virtual (via zoom/teams/other), hybrid)"},{label:"Language preference (English, turkmen, Russian, other)"},{label:"Additional technical or logistical requirements (e.g. AV equipment, interpreters, etc)"},{label:"Company/organization profile"},{label:"Proposal presentation"},{label:"Relevant certification/licenses"}],button:"Send"}],O=({handleNext:s})=>{const{control:n,formState:t}=B(),a=f(i=>i.lang);return e.jsxs(S.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:"100%",transition:{duration:.2}},className:"w-full",children:[e.jsx("h2",{className:"h2 mb-8",children:m[r(a)].h2}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(R,{defaultValue:1,control:n,name:"type",render:({field:i})=>e.jsxs(j,{className:"space-y-3",children:[e.jsx(y,{className:"text-xl",children:a===u.RU?"Тип:":"Type:"}),e.jsx(v,{children:e.jsxs(A,{onValueChange:i.onChange,defaultValue:i.value,className:"flex flex-col space-y-4",children:[e.jsxs(j,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(v,{children:e.jsx(C,{value:"B2B",checked:i.value==="B2B"})}),e.jsx(y,{className:"text-base",children:"B2B"})]}),e.jsxs(j,{className:"flex items-center space-x-3 space-y-0",children:[e.jsx(v,{children:e.jsx(C,{value:"B2G",checked:i.value==="B2G"})}),e.jsx(y,{className:"text-base",children:"B2G"})]})]})})]})}),e.jsx(o,{control:n,name:"company_name",error:t.errors.company_name,placeholder:"",label:m[r(a)].data[0].label}),e.jsx(o,{control:n,name:"representative_name",error:t.errors.representative_name,placeholder:"",label:m[r(a)].data[1].label}),e.jsx(o,{control:n,name:"job_title",error:t.errors.job_title,placeholder:"",label:m[r(a)].data[2].label}),e.jsx(o,{control:n,name:"participants_number",error:t.errors.participants_number,placeholder:"",label:m[r(a)].data[3].label}),e.jsx(o,{control:n,name:"country",error:t.errors.country,placeholder:"",label:m[r(a)].data[4].label}),e.jsx(o,{control:n,name:"email_address",error:t.errors.email_address,placeholder:"",label:m[r(a)].data[5].label}),e.jsx(o,{control:n,name:"phone_number",error:t.errors.phone_number,placeholder:"",label:m[r(a)].data[6].label}),e.jsx(o,{control:n,name:"website",placeholder:"",label:m[r(a)].data[7].label})]}),e.jsx(h,{variant:"secondary",type:"button",onClick:s,className:"w-full mt-10",children:a===u.RU?"Далее":"Next"})]})},M=({handleNext:s,handlePrev:n})=>{const t=f(x=>x.lang),{control:a,formState:i}=B();return e.jsxs(S.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},exit:{opacity:0,y:100},children:[e.jsx("h2",{className:"h2 mb-8",children:p[r(t)].h2}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsx(o,{control:a,name:"meeting_objective",error:i.errors.meeting_objective,placeholder:"",label:p[r(t)].data[0].label}),e.jsx(o,{control:a,name:"proposal_description",error:i.errors.proposal_description,placeholder:"",label:p[r(t)].data[1].label}),e.jsx(o,{control:a,name:"government_agency",error:i.errors.government_agency,placeholder:"",label:p[r(t)].data[2].label}),e.jsx("h2",{className:"h2 mt-4",children:p[r(t)].secondH2}),e.jsx(o,{control:a,name:"sector_industry",error:i.errors.sector_industry,placeholder:"",label:p[r(t)].data[3].label}),e.jsx(o,{control:a,name:"key_services",error:i.errors.key_services,placeholder:"",label:p[r(t)].data[4].label}),e.jsx(o,{control:a,name:"government_experience",error:i.errors.government_experience,placeholder:"",label:p[r(t)].data[5].label})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(h,{type:"button",onClick:n,variant:"outline",className:"text-on_surface",children:t===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{variant:"secondary",type:"button",onClick:s,className:"w-full",children:t===u.RU?"Далее":"Next"})]})]})},$=({handlePrev:s})=>{const{control:n,formState:t}=B(),a=f(i=>i.lang);return e.jsxs(S.div,{initial:{opacity:0,y:-100},animate:{opacity:1,y:0,transition:{delay:.5,duration:.3}},transition:{duration:1},children:[e.jsx("h2",{className:"h2 mb-8",children:c[r(a)].h2}),e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsx(o,{control:n,name:"preferred_meeting_datetime",error:t.errors.preferred_meeting_datetime,placeholder:"",label:c[r(a)].data[0].label}),e.jsx(o,{control:n,name:"preferred_mode",error:t.errors.preferred_mode,placeholder:"",label:c[r(a)].data[1].label}),e.jsx(o,{control:n,name:"language_preference",error:t.errors.language_preference,placeholder:"",label:c[r(a)].data[2].label}),e.jsx(o,{control:n,name:"additional_technical",error:t.errors.additional_technical,placeholder:"",label:c[r(a)].data[3].label})]}),e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"h2 mt-10",children:c[r(a)].secondH2}),e.jsx("h5",{className:"text-on_surface_v",children:c[r(a)].subtitle})]}),e.jsx(o,{control:n,name:"company_profile",label:c[r(a)].data[4].label,type:"file",textDark:!0}),e.jsx(o,{control:n,name:"proposal_presentation",label:c[r(a)].data[5].label,type:"file",textDark:!0}),e.jsx(o,{control:n,name:"relevant_certification",label:c[r(a)].data[6].label,type:"file",textDark:!0})]}),e.jsxs("div",{className:"flex items-center gap-6 mt-10",children:[e.jsx(h,{type:"button",onClick:s,variant:"outline",className:"text-on_surface",children:a===u.RU?"Вернуться назад":"Back"}),e.jsx(h,{disabled:t.isSubmitting,type:"submit",className:"w-full",children:t.isSubmitting?e.jsx(V,{className:"animate-spin"}):c[r(a)].button})]})]})},K=({stage:s,setStage:n,success:t,setSuccess:a})=>{const i=D({resolver:H(I),defaultValues:J,mode:"onChange"}),x=d=>{switch(d){case 1:return["type","company_name","representative_name","job_title","participants_number","country","email_address","phone_number","website"];case 2:return["meeting_objective","proposal_description","government_agency","sector_industry","key_services","government_experience"];case 3:return["preferred_meeting_datetime","meeting_mode","language_preference","technical_requirements","company_profile","proposal_presentation","relevant_certification"];default:return[]}},P=async()=>{const d=x(s);await i.trigger(d)&&n(k=>k+1)},F=()=>n(d=>d-1),G=async d=>{try{const b=new FormData;Object.entries(d).forEach(([_,g])=>{g instanceof File?(console.log(`Добавляем файл: ${_}`,g),b.append(_,g)):g!==void 0&&(console.log(`Добавляем поле: ${_}`,g),b.append(_,g))}),(await U.post("https://turkmentextile.turkmenexpo.com/app/api/v1/form",b,{headers:{"Content-Type":"multipart/form-data"}})).status===201&&a(!0)}catch(b){console.error("Ошибка при отправке B2B формы:",b)}};return e.jsx(q,{...i,children:e.jsx("form",{onSubmit:i.handleSubmit(G),children:e.jsxs("div",{className:"relative",children:[e.jsx(N,{children:s===1&&e.jsx(O,{handleNext:P})}),e.jsx(N,{children:s===2&&e.jsx(M,{handleNext:P,handlePrev:F})}),e.jsx(N,{children:s===3&&t===!1&&e.jsx($,{handlePrev:F})}),t&&e.jsx(z,{})]})})})};function ee(){T();const s=f(x=>x.lang),[n,t]=w.useState(1),[a,i]=w.useState(!1);return e.jsxs("div",{className:"pb-[120px]",children:[e.jsx(E,{title:s===u.RU?"B2B | B2G встречи":"B2B | B2G meetings"}),!a&&n!==0&&e.jsx(L,{stage:n}),e.jsx("div",{className:"max-w-[808px] md:mx-auto mx-5",children:e.jsx(K,{success:a,setSuccess:i,stage:n,setStage:t})})]})}export{ee as default}; diff --git a/dist/assets/become-sponsor-L8wk3SU0.js b/dist/assets/become-sponsor-Bkv5QoXJ.js similarity index 92% rename from dist/assets/become-sponsor-L8wk3SU0.js rename to dist/assets/become-sponsor-Bkv5QoXJ.js index d750bdb..94edf8d 100644 --- a/dist/assets/become-sponsor-L8wk3SU0.js +++ b/dist/assets/become-sponsor-Bkv5QoXJ.js @@ -1 +1 @@ -import{u as h,v as _,j as e,C as g,L as f,x as y,w as S,m as v,s as l,n as o,o as F,p as c,q as i,r as p,B as N,t as w,y as C}from"./ui-library-D6J3nmrf.js";import{a as L}from"./react-vendor-OnsDvTPE.js";import{R,a as j}from"./radio-group-0T_K4mIX.js";import{z as t,t as B}from"./index-Doh9iehP.js";import{p as V}from"./service-BBxXYXSW.js";import{u as T}from"./use-scroll-top-ByehxtTO.js";import{s as r}from"./stend.data-MYN6KI5Y.js";const k=t.object({company_name:t.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:t.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:t.string().min(3,{message:"Должность должна быть не менее 3 символов"}),country:t.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:t.string().email({message:"Укажите корректный email"}),phone:t.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:t.string().optional(),visa_support:t.string().optional()}),D={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""};function O(){T();const a=h(n=>n.lang),[x,b]=L.useState(!1),s=_({resolver:B(k),defaultValues:D}),d=async n=>{try{await V(n)&&b(!0)}catch(u){console.error("POST sponsor error",u)}},{errors:m}=s.formState;return e.jsxs("div",{children:[e.jsx(g,{title:a===f.RU?"Стать спонсором":"Become a sponsor"}),e.jsx(y,{children:!x&&e.jsx(S,{...s,children:e.jsxs(v.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] mx-auto px-5 md:mt-20 mt-10 mb-20 md:mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(d),children:[e.jsx(l,{label:r[o(a)].label_1,name:"company_name",control:s.control,error:m.company_name}),e.jsx(l,{label:r[o(a)].label_2,name:"rep_name",control:s.control,error:m.rep_name}),e.jsx(l,{label:r[o(a)].label_3,name:"job_title",control:s.control,error:m.job_title}),e.jsx(l,{label:r[o(a)].label_4,name:"country",control:s.control,error:m.country}),e.jsx(l,{label:r[o(a)].label_5,name:"email",control:s.control,error:m.email}),e.jsx(l,{label:r[o(a)].label_6,name:"phone",control:s.control,error:m.phone}),e.jsx(l,{label:r[o(a)].label_7,name:"website",control:s.control}),e.jsx(F,{control:s.control,name:"visa_support",render:({field:n})=>e.jsxs(c,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:r[o(a)].visa}),e.jsx(p,{children:e.jsxs(R,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(c,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(j,{value:"yes",checked:n.value==="yes"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio})]}),e.jsxs(c,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(p,{children:e.jsx(j,{value:"no",checked:n.value==="no"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio_2})]})]})})]})}),e.jsx(N,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?e.jsx(w,{className:"animate-spin"}):r[o(a)].button})]})})}),x&&e.jsx(C,{delay:.3})]})}export{O as default}; +import{u as h,v as _,j as e,C as g,L as f,x as y,w as S,m as v,s as l,n as o,o as F,p as c,q as i,r as p,B as N,t as w,y as C}from"./ui-library-DfsjY96d.js";import{a as L}from"./react-vendor-OnsDvTPE.js";import{R,a as j}from"./radio-group-CW7nH-dd.js";import{z as t,t as B}from"./index-Cut7DAH_.js";import{p as V}from"./service-BOgBrkXn.js";import{u as T}from"./use-scroll-top-ByehxtTO.js";import{s as r}from"./stend.data-MYN6KI5Y.js";const k=t.object({company_name:t.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:t.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:t.string().min(3,{message:"Должность должна быть не менее 3 символов"}),country:t.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:t.string().email({message:"Укажите корректный email"}),phone:t.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:t.string().optional(),visa_support:t.string().optional()}),D={company_name:"",rep_name:"",job_title:"",country:"",email:"",phone:"",website:"",visa_support:""};function O(){T();const a=h(n=>n.lang),[x,b]=L.useState(!1),s=_({resolver:B(k),defaultValues:D}),d=async n=>{try{await V(n)&&b(!0)}catch(u){console.error("POST sponsor error",u)}},{errors:m}=s.formState;return e.jsxs("div",{children:[e.jsx(g,{title:a===f.RU?"Стать спонсором":"Become a sponsor"}),e.jsx(y,{children:!x&&e.jsx(S,{...s,children:e.jsxs(v.form,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"max-w-[828px] mx-auto px-5 md:mt-20 mt-10 mb-20 md:mb-[120px] flex flex-col gap-8",onSubmit:s.handleSubmit(d),children:[e.jsx(l,{label:r[o(a)].label_1,name:"company_name",control:s.control,error:m.company_name}),e.jsx(l,{label:r[o(a)].label_2,name:"rep_name",control:s.control,error:m.rep_name}),e.jsx(l,{label:r[o(a)].label_3,name:"job_title",control:s.control,error:m.job_title}),e.jsx(l,{label:r[o(a)].label_4,name:"country",control:s.control,error:m.country}),e.jsx(l,{label:r[o(a)].label_5,name:"email",control:s.control,error:m.email}),e.jsx(l,{label:r[o(a)].label_6,name:"phone",control:s.control,error:m.phone}),e.jsx(l,{label:r[o(a)].label_7,name:"website",control:s.control}),e.jsx(F,{control:s.control,name:"visa_support",render:({field:n})=>e.jsxs(c,{className:"space-y-5",children:[e.jsx(i,{className:"text-xl",children:r[o(a)].visa}),e.jsx(p,{children:e.jsxs(R,{onValueChange:n.onChange,defaultValue:n.value,className:"flex flex-col space-y-4 ml-3",children:[e.jsxs(c,{className:"flex items-center space-x-5 space-y-0",children:[e.jsx(p,{children:e.jsx(j,{value:"yes",checked:n.value==="yes"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio})]}),e.jsxs(c,{className:"flex items-center space-x-5 space-y-0 ",children:[e.jsx(p,{children:e.jsx(j,{value:"no",checked:n.value==="no"})}),e.jsx(i,{className:"text-base",children:r[o(a)].visa_radio_2})]})]})})]})}),e.jsx(N,{disabled:s.formState.isSubmitting,className:"mt-5",children:s.formState.isSubmitting?e.jsx(w,{className:"animate-spin"}):r[o(a)].button})]})})}),x&&e.jsx(C,{delay:.3})]})}export{O as default}; diff --git a/dist/assets/contacts-BEJkrz2O.js b/dist/assets/contacts-q9NtjZib.js similarity index 95% rename from dist/assets/contacts-BEJkrz2O.js rename to dist/assets/contacts-q9NtjZib.js index 24af2c0..321fe1a 100644 --- a/dist/assets/contacts-BEJkrz2O.js +++ b/dist/assets/contacts-q9NtjZib.js @@ -1 +1 @@ -import{v as x,j as s,f as d,w as h,s as l,B as u,O as p,Q as g}from"./ui-library-D6J3nmrf.js";import{a as f}from"./react-vendor-OnsDvTPE.js";import{z as a,t as j}from"./index-Doh9iehP.js";import{b}from"./service-BBxXYXSW.js";import{u as N}from"./use-scroll-top-ByehxtTO.js";const v=a.object({name:a.string().min(2,"error"),email:a.string().email(),phone:a.string().min(8,"error"),company:a.string().min(2,"error"),msg:a.string().min(5,"error")}),C={name:"",email:"",phone:"",company:"",msg:""},w=({className:n})=>{const[c,o]=f.useState(!1),e=x({resolver:j(v),defaultValues:C});async function m(i){try{const t=await b(i);o(t)}catch(t){console.error("POST contact",t)}}const{errors:r}=e.formState;return s.jsx("div",{className:d("bg-primary rounded-[8px] py-8 px-6 ",n),children:s.jsx(h,{...e,children:s.jsxs("form",{onSubmit:e.handleSubmit(m),children:[s.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:"Связаться с нами"}),s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsx(l,{onPrimary:!0,name:"name",control:e.control,label:"Имя",error:r.name}),s.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[s.jsx(l,{onPrimary:!0,name:"email",control:e.control,label:"E-mail",error:r.email}),s.jsx(l,{onPrimary:!0,name:"phone",control:e.control,label:"Телефон",error:r.phone})]}),s.jsx(l,{onPrimary:!0,name:"company",control:e.control,label:"Название компании",error:r.name}),s.jsx(l,{onPrimary:!0,textArea:!0,name:"msg",label:"Сообщение",control:e.control,error:r.msg}),s.jsx(u,{disabled:e.formState.isSubmitting||c,className:"w-full h-12 overflow-hidden",variant:"secondary",children:c?"Форма отправлена":e.formState.isSubmitting?s.jsx(p,{className:"animate-spin text-white"}):"Отправить"})]})]})})})};function F(){return N(),s.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[s.jsx(g,{children:s.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[s.jsx(w,{}),s.jsxs("div",{className:"p-6 bg-bg_surface_container rounded-[8px]",children:[s.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:"Контакты"}),s.jsxs("div",{className:"flex flex-col gap-20",children:[s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/map.svg",alt:"address"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Адрес офиса:"}),s.jsx("address",{className:"text-base normal not-italic",children:"744000, г. Ашхабад, просп. Битарап Туркменистан, 183"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Телефон:"}),s.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/fax.svg",alt:"fax"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Факс:"}),s.jsx("h4",{className:"text-base normal",children:"+99312454111"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/email.svg",alt:"email"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"E-mail:"}),s.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),s.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:s.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1443.0869986358682!2d58.35620779177324!3d37.921200202365405!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3f7001fd7afd2a95%3A0x9ce9dca95ea4b87e!2z0JDQstC40LDQutCw0YHRgdCwINCw0LLQuNCw0LrQvtC80L_QsNC90LjQuCDCq9CR0LXQu9Cw0LLQuNCwwrsg0LIg0KLRg9GA0LrQvNC10L3QuNGB0YLQsNC90LU!5e0!3m2!1sru!2sru!4v1738063695919!5m2!1sru!2sru",className:"absolute inset-0 w-full h-full ",style:{border:0},allowFullScreen:!0,loading:"lazy"})})]})}export{F as default}; +import{v as x,j as s,f as d,w as h,s as l,B as u,O as p,Q as g}from"./ui-library-DfsjY96d.js";import{a as f}from"./react-vendor-OnsDvTPE.js";import{z as a,t as j}from"./index-Cut7DAH_.js";import{b}from"./service-BOgBrkXn.js";import{u as N}from"./use-scroll-top-ByehxtTO.js";const v=a.object({name:a.string().min(2,"error"),email:a.string().email(),phone:a.string().min(8,"error"),company:a.string().min(2,"error"),msg:a.string().min(5,"error")}),C={name:"",email:"",phone:"",company:"",msg:""},w=({className:n})=>{const[c,o]=f.useState(!1),e=x({resolver:j(v),defaultValues:C});async function m(i){try{const t=await b(i);o(t)}catch(t){console.error("POST contact",t)}}const{errors:r}=e.formState;return s.jsx("div",{className:d("bg-primary rounded-[8px] py-8 px-6 ",n),children:s.jsx(h,{...e,children:s.jsxs("form",{onSubmit:e.handleSubmit(m),children:[s.jsx("h2",{className:"h2 !text-on_primary lg:mb-8 mb-6",children:"Связаться с нами"}),s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsx(l,{onPrimary:!0,name:"name",control:e.control,label:"Имя",error:r.name}),s.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[s.jsx(l,{onPrimary:!0,name:"email",control:e.control,label:"E-mail",error:r.email}),s.jsx(l,{onPrimary:!0,name:"phone",control:e.control,label:"Телефон",error:r.phone})]}),s.jsx(l,{onPrimary:!0,name:"company",control:e.control,label:"Название компании",error:r.name}),s.jsx(l,{onPrimary:!0,textArea:!0,name:"msg",label:"Сообщение",control:e.control,error:r.msg}),s.jsx(u,{disabled:e.formState.isSubmitting||c,className:"w-full h-12 overflow-hidden",variant:"secondary",children:c?"Форма отправлена":e.formState.isSubmitting?s.jsx(p,{className:"animate-spin text-white"}):"Отправить"})]})]})})})};function F(){return N(),s.jsxs("div",{className:"flex flex-col gap-20 pt-10 md:pt-20",children:[s.jsx(g,{children:s.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-20 lg:gap-6",children:[s.jsx(w,{}),s.jsxs("div",{className:"p-6 bg-bg_surface_container rounded-[8px]",children:[s.jsx("h2",{className:"h2 mb-10 xl:mb-8",children:"Контакты"}),s.jsxs("div",{className:"flex flex-col gap-20",children:[s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/map.svg",alt:"address"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Адрес офиса:"}),s.jsx("address",{className:"text-base normal not-italic",children:"744000, г. Ашхабад, просп. Битарап Туркменистан, 183"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/phone.svg",alt:"phone"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Телефон:"}),s.jsx("h4",{className:"text-base normal",children:"+99371871812; 99363719588"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/fax.svg",alt:"fax"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"Факс:"}),s.jsx("h4",{className:"text-base normal",children:"+99312454111"})]})]}),s.jsxs("div",{className:"flex items-center gap-6",children:[s.jsx("img",{src:"/contacts/email.svg",alt:"email"}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-xl mb-2",children:"E-mail:"}),s.jsx("h4",{className:"text-base normal",children:"contact@turkmenexpo.com"})]})]})]})]})]})}),s.jsx("section",{className:"relative w-full h-[300px] sm:h-[350px] md:h-[400px] lg:h-[600px]",children:s.jsx("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d1443.0869986358682!2d58.35620779177324!3d37.921200202365405!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3f7001fd7afd2a95%3A0x9ce9dca95ea4b87e!2z0JDQstC40LDQutCw0YHRgdCwINCw0LLQuNCw0LrQvtC80L_QsNC90LjQuCDCq9CR0LXQu9Cw0LLQuNCwwrsg0LIg0KLRg9GA0LrQvNC10L3QuNGB0YLQsNC90LU!5e0!3m2!1sru!2sru!4v1738063695919!5m2!1sru!2sru",className:"absolute inset-0 w-full h-full ",style:{border:0},allowFullScreen:!0,loading:"lazy"})})]})}export{F as default}; diff --git a/dist/assets/home-Cw4C8Or8.js b/dist/assets/home-CvDe8KgA.js similarity index 76% rename from dist/assets/home-Cw4C8Or8.js rename to dist/assets/home-CvDe8KgA.js index 816a54e..1be881a 100644 --- a/dist/assets/home-Cw4C8Or8.js +++ b/dist/assets/home-CvDe8KgA.js @@ -1 +1 @@ -import{j as e,a as s,b as o,c as m,d as a,e as x}from"./ui-library-D6J3nmrf.js";import"./react-vendor-OnsDvTPE.js";function j(){return e.jsxs("div",{className:"flex flex-col gap-20",children:[e.jsx(s,{}),e.jsx(o,{}),e.jsx(m,{}),e.jsx(a,{}),e.jsx(x,{})]})}export{j as default}; +import{j as e,a as s,b as o,c as m,d as a,e as x}from"./ui-library-DfsjY96d.js";import"./react-vendor-OnsDvTPE.js";function j(){return e.jsxs("div",{className:"flex flex-col gap-20",children:[e.jsx(s,{}),e.jsx(o,{}),e.jsx(m,{}),e.jsx(a,{}),e.jsx(x,{})]})}export{j as default}; diff --git a/dist/assets/index-CB3dgGuq.js b/dist/assets/index-B_Au6dIL.js similarity index 73% rename from dist/assets/index-CB3dgGuq.js rename to dist/assets/index-B_Au6dIL.js index 45ab135..9451ac4 100644 --- a/dist/assets/index-CB3dgGuq.js +++ b/dist/assets/index-B_Au6dIL.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/home-Cw4C8Or8.js","assets/ui-library-D6J3nmrf.js","assets/react-vendor-OnsDvTPE.js","assets/about-qfmgkWzS.js","assets/use-scroll-top-ByehxtTO.js","assets/b2b-Ctaw9qnF.js","assets/index-Doh9iehP.js","assets/radio-group-0T_K4mIX.js","assets/become-sponsor-L8wk3SU0.js","assets/service-BBxXYXSW.js","assets/stend.data-MYN6KI5Y.js","assets/stend-form-BOpxzbVB.js","assets/contacts-BEJkrz2O.js"])))=>i.map(i=>d[i]); -import{j as o,H as R,F as j}from"./ui-library-D6J3nmrf.js";import{f as P,O as v,a as c,g,h as O}from"./react-vendor-OnsDvTPE.js";(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))p(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const t of r.addedNodes)t.tagName==="LINK"&&t.rel==="modulepreload"&&p(t)}).observe(document,{childList:!0,subtree:!0});function d(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function p(e){if(e.ep)return;e.ep=!0;const r=d(e);fetch(e.href,r)}})();const L="modulepreload",b=function(l){return"/"+l},h={},a=function(u,d,p){let e=Promise.resolve();if(d&&d.length>0){document.getElementsByTagName("link");const t=document.querySelector("meta[property=csp-nonce]"),n=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));e=Promise.allSettled(d.map(s=>{if(s=b(s),s in h)return;h[s]=!0;const m=s.endsWith(".css"),y=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${y}`))return;const i=document.createElement("link");if(i.rel=m?"stylesheet":L,m||(i.as="script"),i.crossOrigin="",i.href=s,n&&i.setAttribute("nonce",n),document.head.appendChild(i),m)return new Promise((E,x)=>{i.addEventListener("load",E),i.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${s}`)))})}))}function r(t){const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=t,window.dispatchEvent(n),!n.defaultPrevented)throw t}return e.then(t=>{for(const n of t||[])n.status==="rejected"&&r(n.reason);return u().catch(r)})};var f={},_;function A(){if(_)return f;_=1;var l=P();return f.createRoot=l.createRoot,f.hydrateRoot=l.hydrateRoot,f}var S=A();function w(){return o.jsxs("main",{className:"flex flex-col min-h-screen",children:[o.jsx(R,{}),o.jsx("div",{className:"flex-auto",children:o.jsx(v,{})}),o.jsx(j,{})]})}const B=c.lazy(()=>a(()=>import("./home-Cw4C8Or8.js"),__vite__mapDeps([0,1,2]))),I=c.lazy(()=>a(()=>import("./about-qfmgkWzS.js"),__vite__mapDeps([3,1,2,4]))),D=c.lazy(()=>a(()=>import("./b2b-Ctaw9qnF.js"),__vite__mapDeps([5,1,2,6,7,4]))),T=c.lazy(()=>a(()=>import("./become-sponsor-L8wk3SU0.js"),__vite__mapDeps([8,1,2,7,6,9,4,10]))),q=c.lazy(()=>a(()=>import("./stend-form-BOpxzbVB.js"),__vite__mapDeps([11,1,2,7,6,9,10]))),z=c.lazy(()=>a(()=>import("./contacts-BEJkrz2O.js"),__vite__mapDeps([12,1,2,6,9,4]))),C=g([{element:o.jsx(w,{}),path:"/",children:[{element:o.jsx(B,{}),path:""},{element:o.jsx(I,{}),path:"/about"},{element:o.jsx(D,{}),path:"/B2B-B2G"},{element:o.jsx(T,{}),path:"/become-sponsor"},{element:o.jsx(q,{}),path:"/stend-form"},{element:o.jsx(z,{}),path:"/contacts"}]}]);S.createRoot(document.getElementById("root")).render(o.jsx(c.StrictMode,{children:o.jsx(O,{router:C})})); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/home-CvDe8KgA.js","assets/ui-library-DfsjY96d.js","assets/react-vendor-OnsDvTPE.js","assets/about-D7AMFxSg.js","assets/use-scroll-top-ByehxtTO.js","assets/b2b-Vj2StMPJ.js","assets/index-Cut7DAH_.js","assets/radio-group-CW7nH-dd.js","assets/become-sponsor-Bkv5QoXJ.js","assets/service-BOgBrkXn.js","assets/stend.data-MYN6KI5Y.js","assets/stend-form-BhZ0BJ3g.js","assets/contacts-q9NtjZib.js"])))=>i.map(i=>d[i]); +import{j as o,H as R,F as j}from"./ui-library-DfsjY96d.js";import{f as P,O as v,a as c,g,h as O}from"./react-vendor-OnsDvTPE.js";(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))p(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const t of r.addedNodes)t.tagName==="LINK"&&t.rel==="modulepreload"&&p(t)}).observe(document,{childList:!0,subtree:!0});function d(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function p(e){if(e.ep)return;e.ep=!0;const r=d(e);fetch(e.href,r)}})();const L="modulepreload",b=function(l){return"/"+l},h={},a=function(u,d,p){let e=Promise.resolve();if(d&&d.length>0){document.getElementsByTagName("link");const t=document.querySelector("meta[property=csp-nonce]"),n=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));e=Promise.allSettled(d.map(s=>{if(s=b(s),s in h)return;h[s]=!0;const m=s.endsWith(".css"),y=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${y}`))return;const i=document.createElement("link");if(i.rel=m?"stylesheet":L,m||(i.as="script"),i.crossOrigin="",i.href=s,n&&i.setAttribute("nonce",n),document.head.appendChild(i),m)return new Promise((E,x)=>{i.addEventListener("load",E),i.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${s}`)))})}))}function r(t){const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=t,window.dispatchEvent(n),!n.defaultPrevented)throw t}return e.then(t=>{for(const n of t||[])n.status==="rejected"&&r(n.reason);return u().catch(r)})};var f={},_;function A(){if(_)return f;_=1;var l=P();return f.createRoot=l.createRoot,f.hydrateRoot=l.hydrateRoot,f}var S=A();function w(){return o.jsxs("main",{className:"flex flex-col min-h-screen",children:[o.jsx(R,{}),o.jsx("div",{className:"flex-auto",children:o.jsx(v,{})}),o.jsx(j,{})]})}const B=c.lazy(()=>a(()=>import("./home-CvDe8KgA.js"),__vite__mapDeps([0,1,2]))),I=c.lazy(()=>a(()=>import("./about-D7AMFxSg.js"),__vite__mapDeps([3,1,2,4]))),D=c.lazy(()=>a(()=>import("./b2b-Vj2StMPJ.js"),__vite__mapDeps([5,1,2,6,7,4]))),T=c.lazy(()=>a(()=>import("./become-sponsor-Bkv5QoXJ.js"),__vite__mapDeps([8,1,2,7,6,9,4,10]))),q=c.lazy(()=>a(()=>import("./stend-form-BhZ0BJ3g.js"),__vite__mapDeps([11,1,2,7,6,9,10]))),z=c.lazy(()=>a(()=>import("./contacts-q9NtjZib.js"),__vite__mapDeps([12,1,2,6,9,4]))),C=g([{element:o.jsx(w,{}),path:"/",children:[{element:o.jsx(B,{}),path:""},{element:o.jsx(I,{}),path:"/about"},{element:o.jsx(D,{}),path:"/B2B-B2G"},{element:o.jsx(T,{}),path:"/become-sponsor"},{element:o.jsx(q,{}),path:"/stend-form"},{element:o.jsx(z,{}),path:"/contacts"}]}]);S.createRoot(document.getElementById("root")).render(o.jsx(c.StrictMode,{children:o.jsx(O,{router:C})})); diff --git a/dist/assets/index-Doh9iehP.js b/dist/assets/index-Cut7DAH_.js similarity index 99% rename from dist/assets/index-Doh9iehP.js rename to dist/assets/index-Cut7DAH_.js index 62a4485..3e00916 100644 --- a/dist/assets/index-Doh9iehP.js +++ b/dist/assets/index-Cut7DAH_.js @@ -1,4 +1,4 @@ -import{R as lt,T as at,U as Rn}from"./ui-library-D6J3nmrf.js";const Ot=(t,e,n)=>{if(t&&"reportValidity"in t){const r=lt(n,e);t.setCustomValidity(r&&r.message||""),t.reportValidity()}},qt=(t,e)=>{for(const n in e.fields){const r=e.fields[n];r&&r.ref&&"reportValidity"in r.ref?Ot(r.ref,n,t):r.refs&&r.refs.forEach(s=>Ot(s,n,t))}},On=(t,e)=>{e.shouldUseNativeValidation&&qt(t,e);const n={};for(const r in t){const s=lt(e.fields,r),a=Object.assign(t[r]||{},{ref:s&&s.ref});if(An(e.names||Object.keys(t),r)){const i=Object.assign({},lt(n,r));at(i,"root",a),at(n,r,i)}else at(n,r,a)}return n},An=(t,e)=>t.some(n=>n.startsWith(e+"."));var Cn=function(t,e){for(var n={};t.length;){var r=t[0],s=r.code,a=r.message,i=r.path.join(".");if(!n[i])if("unionErrors"in r){var o=r.unionErrors[0].errors[0];n[i]={message:o.message,type:o.code}}else n[i]={message:a,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(l){return l.errors.forEach(function(p){return t.push(p)})}),e){var u=n[i].types,c=u&&u[r.code];n[i]=Rn(i,e,n,s,c?[].concat(c,r.message):r.message)}t.shift()}return n},ma=function(t,e,n){return n===void 0&&(n={}),function(r,s,a){try{return Promise.resolve(function(i,o){try{var u=Promise.resolve(t[n.mode==="sync"?"parse":"parseAsync"](r,e)).then(function(c){return a.shouldUseNativeValidation&&qt({},a),{errors:{},values:n.raw?r:c}})}catch(c){return o(c)}return u&&u.then?u.then(void 0,o):u}(0,function(i){if(function(o){return Array.isArray(o==null?void 0:o.errors)}(i))return{values:{},errors:On(Cn(i.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw i}))}catch(i){return Promise.reject(i)}}};function Ht(t,e){return function(){return t.apply(e,arguments)}}const{toString:Nn}=Object.prototype,{getPrototypeOf:xt}=Object,Ye=(t=>e=>{const n=Nn.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),V=t=>(t=t.toLowerCase(),e=>Ye(e)===t),Qe=t=>e=>typeof e===t,{isArray:ge}=Array,xe=Qe("undefined");function jn(t){return t!==null&&!xe(t)&&t.constructor!==null&&!xe(t.constructor)&&U(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Wt=V("ArrayBuffer");function Pn(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Wt(t.buffer),e}const Zn=Qe("string"),U=Qe("function"),Jt=Qe("number"),et=t=>t!==null&&typeof t=="object",In=t=>t===!0||t===!1,Fe=t=>{if(Ye(t)!=="object")return!1;const e=xt(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Ln=V("Date"),Dn=V("File"),Un=V("Blob"),Mn=V("FileList"),Fn=t=>et(t)&&U(t.pipe),Bn=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||U(t.append)&&((e=Ye(t))==="formdata"||e==="object"&&U(t.toString)&&t.toString()==="[object FormData]"))},$n=V("URLSearchParams"),[Vn,zn,qn,Hn]=["ReadableStream","Request","Response","Headers"].map(V),Wn=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Le(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),ge(t))for(r=0,s=t.length;r0;)if(s=n[r],e===s.toLowerCase())return s;return null}const se=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gt=t=>!xe(t)&&t!==se;function ft(){const{caseless:t}=Gt(this)&&this||{},e={},n=(r,s)=>{const a=t&&Kt(e,s)||s;Fe(e[a])&&Fe(r)?e[a]=ft(e[a],r):Fe(r)?e[a]=ft({},r):ge(r)?e[a]=r.slice():e[a]=r};for(let r=0,s=arguments.length;r(Le(e,(s,a)=>{n&&U(s)?t[a]=Ht(s,n):t[a]=s},{allOwnKeys:r}),t),Kn=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Gn=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Xn=(t,e,n,r)=>{let s,a,i;const o={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),a=s.length;a-- >0;)i=s[a],(!r||r(i,t,e))&&!o[i]&&(e[i]=t[i],o[i]=!0);t=n!==!1&&xt(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Yn=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Qn=t=>{if(!t)return null;if(ge(t))return t;let e=t.length;if(!Jt(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},er=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&xt(Uint8Array)),tr=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const a=s.value;e.call(t,a[0],a[1])}},nr=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},rr=V("HTMLFormElement"),sr=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),At=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ar=V("RegExp"),Xt=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Le(n,(s,a)=>{let i;(i=e(s,a,t))!==!1&&(r[a]=i||s)}),Object.defineProperties(t,r)},ir=t=>{Xt(t,(e,n)=>{if(U(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(U(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},or=(t,e)=>{const n={},r=s=>{s.forEach(a=>{n[a]=!0})};return ge(t)?r(t):r(String(t).split(e)),n},cr=()=>{},ur=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,it="abcdefghijklmnopqrstuvwxyz",Ct="0123456789",Yt={DIGIT:Ct,ALPHA:it,ALPHA_DIGIT:it+it.toUpperCase()+Ct},dr=(t=16,e=Yt.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function lr(t){return!!(t&&U(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const fr=t=>{const e=new Array(10),n=(r,s)=>{if(et(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const a=ge(r)?[]:{};return Le(r,(i,o)=>{const u=n(i,s+1);!xe(u)&&(a[o]=u)}),e[s]=void 0,a}}return r};return n(t,0)},hr=V("AsyncFunction"),pr=t=>t&&(et(t)||U(t))&&U(t.then)&&U(t.catch),Qt=((t,e)=>t?setImmediate:e?((n,r)=>(se.addEventListener("message",({source:s,data:a})=>{s===se&&a===n&&r.length&&r.shift()()},!1),s=>{r.push(s),se.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",U(se.postMessage)),mr=typeof queueMicrotask<"u"?queueMicrotask.bind(se):typeof process<"u"&&process.nextTick||Qt,d={isArray:ge,isArrayBuffer:Wt,isBuffer:jn,isFormData:Bn,isArrayBufferView:Pn,isString:Zn,isNumber:Jt,isBoolean:In,isObject:et,isPlainObject:Fe,isReadableStream:Vn,isRequest:zn,isResponse:qn,isHeaders:Hn,isUndefined:xe,isDate:Ln,isFile:Dn,isBlob:Un,isRegExp:ar,isFunction:U,isStream:Fn,isURLSearchParams:$n,isTypedArray:er,isFileList:Mn,forEach:Le,merge:ft,extend:Jn,trim:Wn,stripBOM:Kn,inherits:Gn,toFlatObject:Xn,kindOf:Ye,kindOfTest:V,endsWith:Yn,toArray:Qn,forEachEntry:tr,matchAll:nr,isHTMLForm:rr,hasOwnProperty:At,hasOwnProp:At,reduceDescriptors:Xt,freezeMethods:ir,toObjectSet:or,toCamelCase:sr,noop:cr,toFiniteNumber:ur,findKey:Kt,global:se,isContextDefined:Gt,ALPHABET:Yt,generateString:dr,isSpecCompliantForm:lr,toJSONObject:fr,isAsyncFn:hr,isThenable:pr,setImmediate:Qt,asap:mr};function w(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}d.inherits(w,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:d.toJSONObject(this.config),code:this.code,status:this.status}}});const en=w.prototype,tn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{tn[t]={value:t}});Object.defineProperties(w,tn);Object.defineProperty(en,"isAxiosError",{value:!0});w.from=(t,e,n,r,s,a)=>{const i=Object.create(en);return d.toFlatObject(t,i,function(u){return u!==Error.prototype},o=>o!=="isAxiosError"),w.call(i,t.message,e,n,r,s),i.cause=t,i.name=t.name,a&&Object.assign(i,a),i};const yr=null;function ht(t){return d.isPlainObject(t)||d.isArray(t)}function nn(t){return d.endsWith(t,"[]")?t.slice(0,-2):t}function Nt(t,e,n){return t?t.concat(e).map(function(s,a){return s=nn(s),!n&&a?"["+s+"]":s}).join(n?".":""):e}function gr(t){return d.isArray(t)&&!t.some(ht)}const _r=d.toFlatObject(d,{},null,function(e){return/^is[A-Z]/.test(e)});function tt(t,e,n){if(!d.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=d.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,_){return!d.isUndefined(_[k])});const r=n.metaTokens,s=n.visitor||l,a=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&d.isSpecCompliantForm(e);if(!d.isFunction(s))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(d.isDate(g))return g.toISOString();if(!u&&d.isBlob(g))throw new w("Blob is not supported. Use a Buffer instead.");return d.isArrayBuffer(g)||d.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function l(g,k,_){let A=g;if(g&&!_&&typeof g=="object"){if(d.endsWith(k,"{}"))k=r?k:k.slice(0,-2),g=JSON.stringify(g);else if(d.isArray(g)&&gr(g)||(d.isFileList(g)||d.endsWith(k,"[]"))&&(A=d.toArray(g)))return k=nn(k),A.forEach(function(j,J){!(d.isUndefined(j)||j===null)&&e.append(i===!0?Nt([k],J,a):i===null?k:k+"[]",c(j))}),!1}return ht(g)?!0:(e.append(Nt(_,k,a),c(g)),!1)}const p=[],S=Object.assign(_r,{defaultVisitor:l,convertValue:c,isVisitable:ht});function R(g,k){if(!d.isUndefined(g)){if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+k.join("."));p.push(g),d.forEach(g,function(A,C){(!(d.isUndefined(A)||A===null)&&s.call(e,A,d.isString(C)?C.trim():C,k,S))===!0&&R(A,k?k.concat(C):[C])}),p.pop()}}if(!d.isObject(t))throw new TypeError("data must be an object");return R(t),e}function jt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function kt(t,e){this._pairs=[],t&&tt(t,this,e)}const rn=kt.prototype;rn.append=function(e,n){this._pairs.push([e,n])};rn.toString=function(e){const n=e?function(r){return e.call(this,r,jt)}:jt;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function vr(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function sn(t,e,n){if(!e)return t;const r=n&&n.encode||vr;d.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let a;if(s?a=s(e,n):a=d.isURLSearchParams(e)?e.toString():new kt(e,n).toString(r),a){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class Pt{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){d.forEach(this.handlers,function(r){r!==null&&e(r)})}}const an={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},br=typeof URLSearchParams<"u"?URLSearchParams:kt,wr=typeof FormData<"u"?FormData:null,xr=typeof Blob<"u"?Blob:null,kr={isBrowser:!0,classes:{URLSearchParams:br,FormData:wr,Blob:xr},protocols:["http","https","file","blob","url","data"]},Tt=typeof window<"u"&&typeof document<"u",pt=typeof navigator=="object"&&navigator||void 0,Tr=Tt&&(!pt||["ReactNative","NativeScript","NS"].indexOf(pt.product)<0),Er=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Sr=Tt&&window.location.href||"http://localhost",Rr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Tt,hasStandardBrowserEnv:Tr,hasStandardBrowserWebWorkerEnv:Er,navigator:pt,origin:Sr},Symbol.toStringTag,{value:"Module"})),P={...Rr,...kr};function Or(t,e){return tt(t,new P.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,a){return P.isNode&&d.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function Ar(t){return d.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Cr(t){const e={},n=Object.keys(t);let r;const s=n.length;let a;for(r=0;r=n.length;return i=!i&&d.isArray(s)?s.length:i,u?(d.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!o):((!s[i]||!d.isObject(s[i]))&&(s[i]=[]),e(n,r,s[i],a)&&d.isArray(s[i])&&(s[i]=Cr(s[i])),!o)}if(d.isFormData(t)&&d.isFunction(t.entries)){const n={};return d.forEachEntry(t,(r,s)=>{e(Ar(r),s,n,0)}),n}return null}function Nr(t,e,n){if(d.isString(t))try{return(e||JSON.parse)(t),d.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const De={transitional:an,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,a=d.isObject(e);if(a&&d.isHTMLForm(e)&&(e=new FormData(e)),d.isFormData(e))return s?JSON.stringify(on(e)):e;if(d.isArrayBuffer(e)||d.isBuffer(e)||d.isStream(e)||d.isFile(e)||d.isBlob(e)||d.isReadableStream(e))return e;if(d.isArrayBufferView(e))return e.buffer;if(d.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Or(e,this.formSerializer).toString();if((o=d.isFileList(e))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return tt(o?{"files[]":e}:e,u&&new u,this.formSerializer)}}return a||s?(n.setContentType("application/json",!1),Nr(e)):e}],transformResponse:[function(e){const n=this.transitional||De.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(d.isResponse(e)||d.isReadableStream(e))return e;if(e&&d.isString(e)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(o){if(i)throw o.name==="SyntaxError"?w.from(o,w.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:P.classes.FormData,Blob:P.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};d.forEach(["delete","get","head","post","put","patch"],t=>{De.headers[t]={}});const jr=d.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Pr=t=>{const e={};let n,r,s;return t&&t.split(` +import{R as lt,T as at,U as Rn}from"./ui-library-DfsjY96d.js";const Ot=(t,e,n)=>{if(t&&"reportValidity"in t){const r=lt(n,e);t.setCustomValidity(r&&r.message||""),t.reportValidity()}},qt=(t,e)=>{for(const n in e.fields){const r=e.fields[n];r&&r.ref&&"reportValidity"in r.ref?Ot(r.ref,n,t):r.refs&&r.refs.forEach(s=>Ot(s,n,t))}},On=(t,e)=>{e.shouldUseNativeValidation&&qt(t,e);const n={};for(const r in t){const s=lt(e.fields,r),a=Object.assign(t[r]||{},{ref:s&&s.ref});if(An(e.names||Object.keys(t),r)){const i=Object.assign({},lt(n,r));at(i,"root",a),at(n,r,i)}else at(n,r,a)}return n},An=(t,e)=>t.some(n=>n.startsWith(e+"."));var Cn=function(t,e){for(var n={};t.length;){var r=t[0],s=r.code,a=r.message,i=r.path.join(".");if(!n[i])if("unionErrors"in r){var o=r.unionErrors[0].errors[0];n[i]={message:o.message,type:o.code}}else n[i]={message:a,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(l){return l.errors.forEach(function(p){return t.push(p)})}),e){var u=n[i].types,c=u&&u[r.code];n[i]=Rn(i,e,n,s,c?[].concat(c,r.message):r.message)}t.shift()}return n},ma=function(t,e,n){return n===void 0&&(n={}),function(r,s,a){try{return Promise.resolve(function(i,o){try{var u=Promise.resolve(t[n.mode==="sync"?"parse":"parseAsync"](r,e)).then(function(c){return a.shouldUseNativeValidation&&qt({},a),{errors:{},values:n.raw?r:c}})}catch(c){return o(c)}return u&&u.then?u.then(void 0,o):u}(0,function(i){if(function(o){return Array.isArray(o==null?void 0:o.errors)}(i))return{values:{},errors:On(Cn(i.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw i}))}catch(i){return Promise.reject(i)}}};function Ht(t,e){return function(){return t.apply(e,arguments)}}const{toString:Nn}=Object.prototype,{getPrototypeOf:xt}=Object,Ye=(t=>e=>{const n=Nn.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),V=t=>(t=t.toLowerCase(),e=>Ye(e)===t),Qe=t=>e=>typeof e===t,{isArray:ge}=Array,xe=Qe("undefined");function jn(t){return t!==null&&!xe(t)&&t.constructor!==null&&!xe(t.constructor)&&U(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Wt=V("ArrayBuffer");function Pn(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Wt(t.buffer),e}const Zn=Qe("string"),U=Qe("function"),Jt=Qe("number"),et=t=>t!==null&&typeof t=="object",In=t=>t===!0||t===!1,Fe=t=>{if(Ye(t)!=="object")return!1;const e=xt(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Ln=V("Date"),Dn=V("File"),Un=V("Blob"),Mn=V("FileList"),Fn=t=>et(t)&&U(t.pipe),Bn=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||U(t.append)&&((e=Ye(t))==="formdata"||e==="object"&&U(t.toString)&&t.toString()==="[object FormData]"))},$n=V("URLSearchParams"),[Vn,zn,qn,Hn]=["ReadableStream","Request","Response","Headers"].map(V),Wn=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Le(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),ge(t))for(r=0,s=t.length;r0;)if(s=n[r],e===s.toLowerCase())return s;return null}const se=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gt=t=>!xe(t)&&t!==se;function ft(){const{caseless:t}=Gt(this)&&this||{},e={},n=(r,s)=>{const a=t&&Kt(e,s)||s;Fe(e[a])&&Fe(r)?e[a]=ft(e[a],r):Fe(r)?e[a]=ft({},r):ge(r)?e[a]=r.slice():e[a]=r};for(let r=0,s=arguments.length;r(Le(e,(s,a)=>{n&&U(s)?t[a]=Ht(s,n):t[a]=s},{allOwnKeys:r}),t),Kn=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Gn=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Xn=(t,e,n,r)=>{let s,a,i;const o={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),a=s.length;a-- >0;)i=s[a],(!r||r(i,t,e))&&!o[i]&&(e[i]=t[i],o[i]=!0);t=n!==!1&&xt(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Yn=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Qn=t=>{if(!t)return null;if(ge(t))return t;let e=t.length;if(!Jt(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},er=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&xt(Uint8Array)),tr=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const a=s.value;e.call(t,a[0],a[1])}},nr=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},rr=V("HTMLFormElement"),sr=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),At=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ar=V("RegExp"),Xt=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Le(n,(s,a)=>{let i;(i=e(s,a,t))!==!1&&(r[a]=i||s)}),Object.defineProperties(t,r)},ir=t=>{Xt(t,(e,n)=>{if(U(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(U(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},or=(t,e)=>{const n={},r=s=>{s.forEach(a=>{n[a]=!0})};return ge(t)?r(t):r(String(t).split(e)),n},cr=()=>{},ur=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,it="abcdefghijklmnopqrstuvwxyz",Ct="0123456789",Yt={DIGIT:Ct,ALPHA:it,ALPHA_DIGIT:it+it.toUpperCase()+Ct},dr=(t=16,e=Yt.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function lr(t){return!!(t&&U(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const fr=t=>{const e=new Array(10),n=(r,s)=>{if(et(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const a=ge(r)?[]:{};return Le(r,(i,o)=>{const u=n(i,s+1);!xe(u)&&(a[o]=u)}),e[s]=void 0,a}}return r};return n(t,0)},hr=V("AsyncFunction"),pr=t=>t&&(et(t)||U(t))&&U(t.then)&&U(t.catch),Qt=((t,e)=>t?setImmediate:e?((n,r)=>(se.addEventListener("message",({source:s,data:a})=>{s===se&&a===n&&r.length&&r.shift()()},!1),s=>{r.push(s),se.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",U(se.postMessage)),mr=typeof queueMicrotask<"u"?queueMicrotask.bind(se):typeof process<"u"&&process.nextTick||Qt,d={isArray:ge,isArrayBuffer:Wt,isBuffer:jn,isFormData:Bn,isArrayBufferView:Pn,isString:Zn,isNumber:Jt,isBoolean:In,isObject:et,isPlainObject:Fe,isReadableStream:Vn,isRequest:zn,isResponse:qn,isHeaders:Hn,isUndefined:xe,isDate:Ln,isFile:Dn,isBlob:Un,isRegExp:ar,isFunction:U,isStream:Fn,isURLSearchParams:$n,isTypedArray:er,isFileList:Mn,forEach:Le,merge:ft,extend:Jn,trim:Wn,stripBOM:Kn,inherits:Gn,toFlatObject:Xn,kindOf:Ye,kindOfTest:V,endsWith:Yn,toArray:Qn,forEachEntry:tr,matchAll:nr,isHTMLForm:rr,hasOwnProperty:At,hasOwnProp:At,reduceDescriptors:Xt,freezeMethods:ir,toObjectSet:or,toCamelCase:sr,noop:cr,toFiniteNumber:ur,findKey:Kt,global:se,isContextDefined:Gt,ALPHABET:Yt,generateString:dr,isSpecCompliantForm:lr,toJSONObject:fr,isAsyncFn:hr,isThenable:pr,setImmediate:Qt,asap:mr};function w(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}d.inherits(w,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:d.toJSONObject(this.config),code:this.code,status:this.status}}});const en=w.prototype,tn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{tn[t]={value:t}});Object.defineProperties(w,tn);Object.defineProperty(en,"isAxiosError",{value:!0});w.from=(t,e,n,r,s,a)=>{const i=Object.create(en);return d.toFlatObject(t,i,function(u){return u!==Error.prototype},o=>o!=="isAxiosError"),w.call(i,t.message,e,n,r,s),i.cause=t,i.name=t.name,a&&Object.assign(i,a),i};const yr=null;function ht(t){return d.isPlainObject(t)||d.isArray(t)}function nn(t){return d.endsWith(t,"[]")?t.slice(0,-2):t}function Nt(t,e,n){return t?t.concat(e).map(function(s,a){return s=nn(s),!n&&a?"["+s+"]":s}).join(n?".":""):e}function gr(t){return d.isArray(t)&&!t.some(ht)}const _r=d.toFlatObject(d,{},null,function(e){return/^is[A-Z]/.test(e)});function tt(t,e,n){if(!d.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=d.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,_){return!d.isUndefined(_[k])});const r=n.metaTokens,s=n.visitor||l,a=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&d.isSpecCompliantForm(e);if(!d.isFunction(s))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(d.isDate(g))return g.toISOString();if(!u&&d.isBlob(g))throw new w("Blob is not supported. Use a Buffer instead.");return d.isArrayBuffer(g)||d.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function l(g,k,_){let A=g;if(g&&!_&&typeof g=="object"){if(d.endsWith(k,"{}"))k=r?k:k.slice(0,-2),g=JSON.stringify(g);else if(d.isArray(g)&&gr(g)||(d.isFileList(g)||d.endsWith(k,"[]"))&&(A=d.toArray(g)))return k=nn(k),A.forEach(function(j,J){!(d.isUndefined(j)||j===null)&&e.append(i===!0?Nt([k],J,a):i===null?k:k+"[]",c(j))}),!1}return ht(g)?!0:(e.append(Nt(_,k,a),c(g)),!1)}const p=[],S=Object.assign(_r,{defaultVisitor:l,convertValue:c,isVisitable:ht});function R(g,k){if(!d.isUndefined(g)){if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+k.join("."));p.push(g),d.forEach(g,function(A,C){(!(d.isUndefined(A)||A===null)&&s.call(e,A,d.isString(C)?C.trim():C,k,S))===!0&&R(A,k?k.concat(C):[C])}),p.pop()}}if(!d.isObject(t))throw new TypeError("data must be an object");return R(t),e}function jt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function kt(t,e){this._pairs=[],t&&tt(t,this,e)}const rn=kt.prototype;rn.append=function(e,n){this._pairs.push([e,n])};rn.toString=function(e){const n=e?function(r){return e.call(this,r,jt)}:jt;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function vr(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function sn(t,e,n){if(!e)return t;const r=n&&n.encode||vr;d.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let a;if(s?a=s(e,n):a=d.isURLSearchParams(e)?e.toString():new kt(e,n).toString(r),a){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class Pt{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){d.forEach(this.handlers,function(r){r!==null&&e(r)})}}const an={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},br=typeof URLSearchParams<"u"?URLSearchParams:kt,wr=typeof FormData<"u"?FormData:null,xr=typeof Blob<"u"?Blob:null,kr={isBrowser:!0,classes:{URLSearchParams:br,FormData:wr,Blob:xr},protocols:["http","https","file","blob","url","data"]},Tt=typeof window<"u"&&typeof document<"u",pt=typeof navigator=="object"&&navigator||void 0,Tr=Tt&&(!pt||["ReactNative","NativeScript","NS"].indexOf(pt.product)<0),Er=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Sr=Tt&&window.location.href||"http://localhost",Rr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Tt,hasStandardBrowserEnv:Tr,hasStandardBrowserWebWorkerEnv:Er,navigator:pt,origin:Sr},Symbol.toStringTag,{value:"Module"})),P={...Rr,...kr};function Or(t,e){return tt(t,new P.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,a){return P.isNode&&d.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function Ar(t){return d.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Cr(t){const e={},n=Object.keys(t);let r;const s=n.length;let a;for(r=0;r=n.length;return i=!i&&d.isArray(s)?s.length:i,u?(d.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!o):((!s[i]||!d.isObject(s[i]))&&(s[i]=[]),e(n,r,s[i],a)&&d.isArray(s[i])&&(s[i]=Cr(s[i])),!o)}if(d.isFormData(t)&&d.isFunction(t.entries)){const n={};return d.forEachEntry(t,(r,s)=>{e(Ar(r),s,n,0)}),n}return null}function Nr(t,e,n){if(d.isString(t))try{return(e||JSON.parse)(t),d.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const De={transitional:an,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,a=d.isObject(e);if(a&&d.isHTMLForm(e)&&(e=new FormData(e)),d.isFormData(e))return s?JSON.stringify(on(e)):e;if(d.isArrayBuffer(e)||d.isBuffer(e)||d.isStream(e)||d.isFile(e)||d.isBlob(e)||d.isReadableStream(e))return e;if(d.isArrayBufferView(e))return e.buffer;if(d.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Or(e,this.formSerializer).toString();if((o=d.isFileList(e))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return tt(o?{"files[]":e}:e,u&&new u,this.formSerializer)}}return a||s?(n.setContentType("application/json",!1),Nr(e)):e}],transformResponse:[function(e){const n=this.transitional||De.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(d.isResponse(e)||d.isReadableStream(e))return e;if(e&&d.isString(e)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(o){if(i)throw o.name==="SyntaxError"?w.from(o,w.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:P.classes.FormData,Blob:P.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};d.forEach(["delete","get","head","post","put","patch"],t=>{De.headers[t]={}});const jr=d.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Pr=t=>{const e={};let n,r,s;return t&&t.split(` `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||e[n]&&jr[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Zt=Symbol("internals");function ve(t){return t&&String(t).trim().toLowerCase()}function Be(t){return t===!1||t==null?t:d.isArray(t)?t.map(Be):String(t)}function Zr(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Ir=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ot(t,e,n,r,s){if(d.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!d.isString(e)){if(d.isString(r))return e.indexOf(r)!==-1;if(d.isRegExp(r))return r.test(e)}}function Lr(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Dr(t,e){const n=d.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,a,i){return this[r].call(this,e,s,a,i)},configurable:!0})})}class D{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function a(o,u,c){const l=ve(u);if(!l)throw new Error("header name must be a non-empty string");const p=d.findKey(s,l);(!p||s[p]===void 0||c===!0||c===void 0&&s[p]!==!1)&&(s[p||u]=Be(o))}const i=(o,u)=>d.forEach(o,(c,l)=>a(c,l,u));if(d.isPlainObject(e)||e instanceof this.constructor)i(e,n);else if(d.isString(e)&&(e=e.trim())&&!Ir(e))i(Pr(e),n);else if(d.isHeaders(e))for(const[o,u]of e.entries())a(u,o,r);else e!=null&&a(n,e,r);return this}get(e,n){if(e=ve(e),e){const r=d.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return Zr(s);if(d.isFunction(n))return n.call(this,s,r);if(d.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=ve(e),e){const r=d.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||ot(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function a(i){if(i=ve(i),i){const o=d.findKey(r,i);o&&(!n||ot(r,r[o],o,n))&&(delete r[o],s=!0)}}return d.isArray(e)?e.forEach(a):a(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const a=n[r];(!e||ot(this,this[a],a,e,!0))&&(delete this[a],s=!0)}return s}normalize(e){const n=this,r={};return d.forEach(this,(s,a)=>{const i=d.findKey(r,a);if(i){n[i]=Be(s),delete n[a];return}const o=e?Lr(a):String(a).trim();o!==a&&delete n[a],n[o]=Be(s),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return d.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&d.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[Zt]=this[Zt]={accessors:{}}).accessors,s=this.prototype;function a(i){const o=ve(i);r[o]||(Dr(s,i),r[o]=!0)}return d.isArray(e)?e.forEach(a):a(e),this}}D.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);d.reduceDescriptors(D.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});d.freezeMethods(D);function ct(t,e){const n=this||De,r=e||n,s=D.from(r.headers);let a=r.data;return d.forEach(t,function(o){a=o.call(n,a,s.normalize(),e?e.status:void 0)}),s.normalize(),a}function cn(t){return!!(t&&t.__CANCEL__)}function _e(t,e,n){w.call(this,t??"canceled",w.ERR_CANCELED,e,n),this.name="CanceledError"}d.inherits(_e,w,{__CANCEL__:!0});function un(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new w("Request failed with status code "+n.status,[w.ERR_BAD_REQUEST,w.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Ur(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Mr(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,a=0,i;return e=e!==void 0?e:1e3,function(u){const c=Date.now(),l=r[a];i||(i=c),n[s]=u,r[s]=c;let p=a,S=0;for(;p!==s;)S+=n[p++],p=p%t;if(s=(s+1)%t,s===a&&(a=(a+1)%t),c-i{n=l,s=null,a&&(clearTimeout(a),a=null),t.apply(null,c)};return[(...c)=>{const l=Date.now(),p=l-n;p>=r?i(c,l):(s=c,a||(a=setTimeout(()=>{a=null,i(s)},r-p)))},()=>s&&i(s)]}const Ve=(t,e,n=3)=>{let r=0;const s=Mr(50,250);return Fr(a=>{const i=a.loaded,o=a.lengthComputable?a.total:void 0,u=i-r,c=s(u),l=i<=o;r=i;const p={loaded:i,total:o,progress:o?i/o:void 0,bytes:u,rate:c||void 0,estimated:c&&o&&l?(o-i)/c:void 0,event:a,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(p)},n)},It=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Lt=t=>(...e)=>d.asap(()=>t(...e)),Br=P.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,P.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(P.origin),P.navigator&&/(msie|trident)/i.test(P.navigator.userAgent)):()=>!0,$r=P.hasStandardBrowserEnv?{write(t,e,n,r,s,a){const i=[t+"="+encodeURIComponent(e)];d.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),d.isString(r)&&i.push("path="+r),d.isString(s)&&i.push("domain="+s),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Vr(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function zr(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function dn(t,e){return t&&!Vr(e)?zr(t,e):e}const Dt=t=>t instanceof D?{...t}:t;function oe(t,e){e=e||{};const n={};function r(c,l,p,S){return d.isPlainObject(c)&&d.isPlainObject(l)?d.merge.call({caseless:S},c,l):d.isPlainObject(l)?d.merge({},l):d.isArray(l)?l.slice():l}function s(c,l,p,S){if(d.isUndefined(l)){if(!d.isUndefined(c))return r(void 0,c,p,S)}else return r(c,l,p,S)}function a(c,l){if(!d.isUndefined(l))return r(void 0,l)}function i(c,l){if(d.isUndefined(l)){if(!d.isUndefined(c))return r(void 0,c)}else return r(void 0,l)}function o(c,l,p){if(p in e)return r(c,l);if(p in t)return r(void 0,c)}const u={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:o,headers:(c,l,p)=>s(Dt(c),Dt(l),p,!0)};return d.forEach(Object.keys(Object.assign({},t,e)),function(l){const p=u[l]||s,S=p(t[l],e[l],l);d.isUndefined(S)&&p!==o||(n[l]=S)}),n}const ln=t=>{const e=oe({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:a,headers:i,auth:o}=e;e.headers=i=D.from(i),e.url=sn(dn(e.baseURL,e.url),t.params,t.paramsSerializer),o&&i.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let u;if(d.isFormData(n)){if(P.hasStandardBrowserEnv||P.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((u=i.getContentType())!==!1){const[c,...l]=u?u.split(";").map(p=>p.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...l].join("; "))}}if(P.hasStandardBrowserEnv&&(r&&d.isFunction(r)&&(r=r(e)),r||r!==!1&&Br(e.url))){const c=s&&a&&$r.read(a);c&&i.set(s,c)}return e},qr=typeof XMLHttpRequest<"u",Hr=qr&&function(t){return new Promise(function(n,r){const s=ln(t);let a=s.data;const i=D.from(s.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:c}=s,l,p,S,R,g;function k(){R&&R(),g&&g(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let _=new XMLHttpRequest;_.open(s.method.toUpperCase(),s.url,!0),_.timeout=s.timeout;function A(){if(!_)return;const j=D.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),L={data:!o||o==="text"||o==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:j,config:t,request:_};un(function(re){n(re),k()},function(re){r(re),k()},L),_=null}"onloadend"in _?_.onloadend=A:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(A)},_.onabort=function(){_&&(r(new w("Request aborted",w.ECONNABORTED,t,_)),_=null)},_.onerror=function(){r(new w("Network Error",w.ERR_NETWORK,t,_)),_=null},_.ontimeout=function(){let J=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const L=s.transitional||an;s.timeoutErrorMessage&&(J=s.timeoutErrorMessage),r(new w(J,L.clarifyTimeoutError?w.ETIMEDOUT:w.ECONNABORTED,t,_)),_=null},a===void 0&&i.setContentType(null),"setRequestHeader"in _&&d.forEach(i.toJSON(),function(J,L){_.setRequestHeader(L,J)}),d.isUndefined(s.withCredentials)||(_.withCredentials=!!s.withCredentials),o&&o!=="json"&&(_.responseType=s.responseType),c&&([S,g]=Ve(c,!0),_.addEventListener("progress",S)),u&&_.upload&&([p,R]=Ve(u),_.upload.addEventListener("progress",p),_.upload.addEventListener("loadend",R)),(s.cancelToken||s.signal)&&(l=j=>{_&&(r(!j||j.type?new _e(null,t,_):j),_.abort(),_=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const C=Ur(s.url);if(C&&P.protocols.indexOf(C)===-1){r(new w("Unsupported protocol "+C+":",w.ERR_BAD_REQUEST,t));return}_.send(a||null)})},Wr=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,s;const a=function(c){if(!s){s=!0,o();const l=c instanceof Error?c:this.reason;r.abort(l instanceof w?l:new _e(l instanceof Error?l.message:l))}};let i=e&&setTimeout(()=>{i=null,a(new w(`timeout ${e} of ms exceeded`,w.ETIMEDOUT))},e);const o=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),t=null)};t.forEach(c=>c.addEventListener("abort",a));const{signal:u}=r;return u.unsubscribe=()=>d.asap(o),u}},Jr=function*(t,e){let n=t.byteLength;if(n{const s=Kr(t,e);let a=0,i,o=u=>{i||(i=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:l}=await s.next();if(c){o(),u.close();return}let p=l.byteLength;if(n){let S=a+=p;n(S)}u.enqueue(new Uint8Array(l))}catch(c){throw o(c),c}},cancel(u){return o(u),s.return()}},{highWaterMark:2})},nt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",fn=nt&&typeof ReadableStream=="function",Xr=nt&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),hn=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Yr=fn&&hn(()=>{let t=!1;const e=new Request(P.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Mt=64*1024,mt=fn&&hn(()=>d.isReadableStream(new Response("").body)),ze={stream:mt&&(t=>t.body)};nt&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ze[e]&&(ze[e]=d.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new w(`Response type '${e}' is not supported`,w.ERR_NOT_SUPPORT,r)})})})(new Response);const Qr=async t=>{if(t==null)return 0;if(d.isBlob(t))return t.size;if(d.isSpecCompliantForm(t))return(await new Request(P.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(d.isArrayBufferView(t)||d.isArrayBuffer(t))return t.byteLength;if(d.isURLSearchParams(t)&&(t=t+""),d.isString(t))return(await Xr(t)).byteLength},es=async(t,e)=>{const n=d.toFiniteNumber(t.getContentLength());return n??Qr(e)},ts=nt&&(async t=>{let{url:e,method:n,data:r,signal:s,cancelToken:a,timeout:i,onDownloadProgress:o,onUploadProgress:u,responseType:c,headers:l,withCredentials:p="same-origin",fetchOptions:S}=ln(t);c=c?(c+"").toLowerCase():"text";let R=Wr([s,a&&a.toAbortSignal()],i),g;const k=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let _;try{if(u&&Yr&&n!=="get"&&n!=="head"&&(_=await es(l,r))!==0){let L=new Request(e,{method:"POST",body:r,duplex:"half"}),Y;if(d.isFormData(r)&&(Y=L.headers.get("content-type"))&&l.setContentType(Y),L.body){const[re,Me]=It(_,Ve(Lt(u)));r=Ut(L.body,Mt,re,Me)}}d.isString(p)||(p=p?"include":"omit");const A="credentials"in Request.prototype;g=new Request(e,{...S,signal:R,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:A?p:void 0});let C=await fetch(g);const j=mt&&(c==="stream"||c==="response");if(mt&&(o||j&&k)){const L={};["status","statusText","headers"].forEach(Rt=>{L[Rt]=C[Rt]});const Y=d.toFiniteNumber(C.headers.get("content-length")),[re,Me]=o&&It(Y,Ve(Lt(o),!0))||[];C=new Response(Ut(C.body,Mt,re,()=>{Me&&Me(),k&&k()}),L)}c=c||"text";let J=await ze[d.findKey(ze,c)||"text"](C,t);return!j&&k&&k(),await new Promise((L,Y)=>{un(L,Y,{data:J,headers:D.from(C.headers),status:C.status,statusText:C.statusText,config:t,request:g})})}catch(A){throw k&&k(),A&&A.name==="TypeError"&&/fetch/i.test(A.message)?Object.assign(new w("Network Error",w.ERR_NETWORK,t,g),{cause:A.cause||A}):w.from(A,A&&A.code,t,g)}}),yt={http:yr,xhr:Hr,fetch:ts};d.forEach(yt,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Ft=t=>`- ${t}`,ns=t=>d.isFunction(t)||t===null||t===!1,pn={getAdapter:t=>{t=d.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let a=0;a`adapter ${o} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=e?a.length>1?`since : `+a.map(Ft).join(` diff --git a/dist/assets/radio-group-0T_K4mIX.js b/dist/assets/radio-group-CW7nH-dd.js similarity index 99% rename from dist/assets/radio-group-0T_K4mIX.js rename to dist/assets/radio-group-CW7nH-dd.js index 1117fb4..040a769 100644 --- a/dist/assets/radio-group-0T_K4mIX.js +++ b/dist/assets/radio-group-CW7nH-dd.js @@ -1 +1 @@ -import{D as N,E as F,j as d,S as L,G as K,I as fe,P as A,J as y,K as pe,M as me,N as ve,f as U}from"./ui-library-D6J3nmrf.js";import{d as w,a as s}from"./react-vendor-OnsDvTPE.js";function Re(e){const o=e+"CollectionProvider",[t,n]=N(o),[a,i]=t(o,{collectionRef:{current:null},itemMap:new Map}),p=c=>{const{scope:r,children:l}=c,m=w.useRef(null),v=w.useRef(new Map).current;return d.jsx(a,{scope:r,itemMap:v,collectionRef:m,children:l})};p.displayName=o;const C=e+"CollectionSlot",f=w.forwardRef((c,r)=>{const{scope:l,children:m}=c,v=i(C,l),I=F(r,v.collectionRef);return d.jsx(L,{ref:I,children:m})});f.displayName=C;const u=e+"CollectionItemSlot",g="data-radix-collection-item",R=w.forwardRef((c,r)=>{const{scope:l,children:m,...v}=c,I=w.useRef(null),h=F(r,I),S=i(u,l);return w.useEffect(()=>(S.itemMap.set(I,{ref:I,...v}),()=>void S.itemMap.delete(I))),d.jsx(L,{[g]:"",ref:h,children:m})});R.displayName=u;function b(c){const r=i(e+"CollectionConsumer",c);return w.useCallback(()=>{const m=r.collectionRef.current;if(!m)return[];const v=Array.from(m.querySelectorAll(`[${g}]`));return Array.from(r.itemMap.values()).sort((S,_)=>v.indexOf(S.ref.current)-v.indexOf(_.ref.current))},[r.collectionRef,r.itemMap])}return[{Provider:p,Slot:f,ItemSlot:R},b,n]}var be=s.createContext(void 0);function V(e){const o=s.useContext(be);return e||o||"ltr"}var G="rovingFocusGroup.onEntryFocus",Ie={bubbles:!1,cancelable:!0},P="RovingFocusGroup",[k,B,Ce]=Re(P),[ge,q]=N(P,[Ce]),[xe,ye]=ge(P),z=s.forwardRef((e,o)=>d.jsx(k.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(k.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Ee,{...e,ref:o})})}));z.displayName=P;var Ee=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,orientation:n,loop:a=!1,dir:i,currentTabStopId:p,defaultCurrentTabStopId:C,onCurrentTabStopIdChange:f,onEntryFocus:u,preventScrollOnEntryFocus:g=!1,...R}=e,b=s.useRef(null),c=F(o,b),r=V(i),[l=null,m]=K({prop:p,defaultProp:C,onChange:f}),[v,I]=s.useState(!1),h=fe(u),S=B(t),_=s.useRef(!1),[ae,j]=s.useState(0);return s.useEffect(()=>{const x=b.current;if(x)return x.addEventListener(G,h),()=>x.removeEventListener(G,h)},[h]),d.jsx(xe,{scope:t,orientation:n,dir:r,loop:a,currentTabStopId:l,onItemFocus:s.useCallback(x=>m(x),[m]),onItemShiftTab:s.useCallback(()=>I(!0),[]),onFocusableItemAdd:s.useCallback(()=>j(x=>x+1),[]),onFocusableItemRemove:s.useCallback(()=>j(x=>x-1),[]),children:d.jsx(A.div,{tabIndex:v||ae===0?-1:0,"data-orientation":n,...R,ref:c,style:{outline:"none",...e.style},onMouseDown:y(e.onMouseDown,()=>{_.current=!0}),onFocus:y(e.onFocus,x=>{const ie=!_.current;if(x.target===x.currentTarget&&ie&&!v){const O=new CustomEvent(G,Ie);if(x.currentTarget.dispatchEvent(O),!O.defaultPrevented){const T=S().filter(E=>E.focusable),ue=T.find(E=>E.active),de=T.find(E=>E.id===l),le=[ue,de,...T].filter(Boolean).map(E=>E.ref.current);H(le,g)}}_.current=!1}),onBlur:y(e.onBlur,()=>I(!1))})})}),Y="RovingFocusGroupItem",$=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,focusable:n=!0,active:a=!1,tabStopId:i,...p}=e,C=pe(),f=i||C,u=ye(Y,t),g=u.currentTabStopId===f,R=B(t),{onFocusableItemAdd:b,onFocusableItemRemove:c}=u;return s.useEffect(()=>{if(n)return b(),()=>c()},[n,b,c]),d.jsx(k.ItemSlot,{scope:t,id:f,focusable:n,active:a,children:d.jsx(A.span,{tabIndex:g?0:-1,"data-orientation":u.orientation,...p,ref:o,onMouseDown:y(e.onMouseDown,r=>{n?u.onItemFocus(f):r.preventDefault()}),onFocus:y(e.onFocus,()=>u.onItemFocus(f)),onKeyDown:y(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){u.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const l=Se(r,u.orientation,u.dir);if(l!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let v=R().filter(I=>I.focusable).map(I=>I.ref.current);if(l==="last")v.reverse();else if(l==="prev"||l==="next"){l==="prev"&&v.reverse();const I=v.indexOf(r.currentTarget);v=u.loop?_e(v,I+1):v.slice(I+1)}setTimeout(()=>H(v))}})})})});$.displayName=Y;var we={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function he(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Se(e,o,t){const n=he(e.key,t);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return we[n]}function H(e,o=!1){const t=document.activeElement;for(const n of e)if(n===t||(n.focus({preventScroll:o}),document.activeElement!==t))return}function _e(e,o){return e.map((t,n)=>e[(o+n)%e.length])}var Fe=z,Ae=$;function Ne(e){const o=s.useRef({value:e,previous:e});return s.useMemo(()=>(o.current.value!==e&&(o.current.previous=o.current.value,o.current.value=e),o.current.previous),[e])}var M="Radio",[Pe,J]=N(M),[Te,Ge]=Pe(M),W=s.forwardRef((e,o)=>{const{__scopeRadio:t,name:n,checked:a=!1,required:i,disabled:p,value:C="on",onCheck:f,form:u,...g}=e,[R,b]=s.useState(null),c=F(o,m=>b(m)),r=s.useRef(!1),l=R?u||!!R.closest("form"):!0;return d.jsxs(Te,{scope:t,checked:a,disabled:p,children:[d.jsx(A.button,{type:"button",role:"radio","aria-checked":a,"data-state":Z(a),"data-disabled":p?"":void 0,disabled:p,value:C,...g,ref:c,onClick:y(e.onClick,m=>{a||f==null||f(),l&&(r.current=m.isPropagationStopped(),r.current||m.stopPropagation())})}),l&&d.jsx(ke,{control:R,bubbles:!r.current,name:n,value:C,checked:a,required:i,disabled:p,form:u,style:{transform:"translateX(-100%)"}})]})});W.displayName=M;var X="RadioIndicator",Q=s.forwardRef((e,o)=>{const{__scopeRadio:t,forceMount:n,...a}=e,i=Ge(X,t);return d.jsx(me,{present:n||i.checked,children:d.jsx(A.span,{"data-state":Z(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:o})})});Q.displayName=X;var ke=e=>{const{control:o,checked:t,bubbles:n=!0,...a}=e,i=s.useRef(null),p=Ne(t),C=ve(o);return s.useEffect(()=>{const f=i.current,u=window.HTMLInputElement.prototype,R=Object.getOwnPropertyDescriptor(u,"checked").set;if(p!==t&&R){const b=new Event("click",{bubbles:n});R.call(f,t),f.dispatchEvent(b)}},[p,t,n]),d.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:i,style:{...e.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Z(e){return e?"checked":"unchecked"}var Me=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],D="RadioGroup",[De,Ye]=N(D,[q,J]),ee=q(),oe=J(),[je,Oe]=De(D),te=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,name:n,defaultValue:a,value:i,required:p=!1,disabled:C=!1,orientation:f,dir:u,loop:g=!0,onValueChange:R,...b}=e,c=ee(t),r=V(u),[l,m]=K({prop:i,defaultProp:a,onChange:R});return d.jsx(je,{scope:t,name:n,required:p,disabled:C,value:l,onValueChange:m,children:d.jsx(Fe,{asChild:!0,...c,orientation:f,dir:r,loop:g,children:d.jsx(A.div,{role:"radiogroup","aria-required":p,"aria-orientation":f,"data-disabled":C?"":void 0,dir:r,...b,ref:o})})})});te.displayName=D;var re="RadioGroupItem",ne=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,disabled:n,...a}=e,i=Oe(re,t),p=i.disabled||n,C=ee(t),f=oe(t),u=s.useRef(null),g=F(o,u),R=i.value===a.value,b=s.useRef(!1);return s.useEffect(()=>{const c=l=>{Me.includes(l.key)&&(b.current=!0)},r=()=>b.current=!1;return document.addEventListener("keydown",c),document.addEventListener("keyup",r),()=>{document.removeEventListener("keydown",c),document.removeEventListener("keyup",r)}},[]),d.jsx(Ae,{asChild:!0,...C,focusable:!p,active:R,children:d.jsx(W,{disabled:p,required:i.required,checked:R,...f,...a,name:i.name,ref:g,onCheck:()=>i.onValueChange(a.value),onKeyDown:y(c=>{c.key==="Enter"&&c.preventDefault()}),onFocus:y(a.onFocus,()=>{var c;b.current&&((c=u.current)==null||c.click())})})})});ne.displayName=re;var Le="RadioGroupIndicator",Ke=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,...n}=e,a=oe(t);return d.jsx(Q,{...a,...n,ref:o})});Ke.displayName=Le;var se=te,ce=ne;const Ue=s.forwardRef(({className:e,...o},t)=>d.jsx(se,{className:U("grid gap-2",e),...o,ref:t}));Ue.displayName=se.displayName;const Ve=s.forwardRef(({className:e,...o},t)=>d.jsx(ce,{ref:t,className:U(o.checked?"border-primary after:bg-opacity-1":"border-on_surface bg-transparent after:bg-opacity-0","size-5 rounded-full border-[2px] after:size-[9px] after:bg-primary before:scale-0 hover:before:scale-100 before:size-10 before:rounded-full before:transition-all before:absolute before:-top-3 before:-left-3 before:bg-on_surface/[8%] duration-300 after:rounded-full flex relative items-center justify-center text-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring transition-all disabled:cursor-not-allowed disabled:opacity-50",e),...o}));Ve.displayName=ce.displayName;export{Ue as R,Ve as a}; +import{D as N,E as F,j as d,S as L,G as K,I as fe,P as A,J as y,K as pe,M as me,N as ve,f as U}from"./ui-library-DfsjY96d.js";import{d as w,a as s}from"./react-vendor-OnsDvTPE.js";function Re(e){const o=e+"CollectionProvider",[t,n]=N(o),[a,i]=t(o,{collectionRef:{current:null},itemMap:new Map}),p=c=>{const{scope:r,children:l}=c,m=w.useRef(null),v=w.useRef(new Map).current;return d.jsx(a,{scope:r,itemMap:v,collectionRef:m,children:l})};p.displayName=o;const C=e+"CollectionSlot",f=w.forwardRef((c,r)=>{const{scope:l,children:m}=c,v=i(C,l),I=F(r,v.collectionRef);return d.jsx(L,{ref:I,children:m})});f.displayName=C;const u=e+"CollectionItemSlot",g="data-radix-collection-item",R=w.forwardRef((c,r)=>{const{scope:l,children:m,...v}=c,I=w.useRef(null),h=F(r,I),S=i(u,l);return w.useEffect(()=>(S.itemMap.set(I,{ref:I,...v}),()=>void S.itemMap.delete(I))),d.jsx(L,{[g]:"",ref:h,children:m})});R.displayName=u;function b(c){const r=i(e+"CollectionConsumer",c);return w.useCallback(()=>{const m=r.collectionRef.current;if(!m)return[];const v=Array.from(m.querySelectorAll(`[${g}]`));return Array.from(r.itemMap.values()).sort((S,_)=>v.indexOf(S.ref.current)-v.indexOf(_.ref.current))},[r.collectionRef,r.itemMap])}return[{Provider:p,Slot:f,ItemSlot:R},b,n]}var be=s.createContext(void 0);function V(e){const o=s.useContext(be);return e||o||"ltr"}var G="rovingFocusGroup.onEntryFocus",Ie={bubbles:!1,cancelable:!0},P="RovingFocusGroup",[k,B,Ce]=Re(P),[ge,q]=N(P,[Ce]),[xe,ye]=ge(P),z=s.forwardRef((e,o)=>d.jsx(k.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(k.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(Ee,{...e,ref:o})})}));z.displayName=P;var Ee=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,orientation:n,loop:a=!1,dir:i,currentTabStopId:p,defaultCurrentTabStopId:C,onCurrentTabStopIdChange:f,onEntryFocus:u,preventScrollOnEntryFocus:g=!1,...R}=e,b=s.useRef(null),c=F(o,b),r=V(i),[l=null,m]=K({prop:p,defaultProp:C,onChange:f}),[v,I]=s.useState(!1),h=fe(u),S=B(t),_=s.useRef(!1),[ae,j]=s.useState(0);return s.useEffect(()=>{const x=b.current;if(x)return x.addEventListener(G,h),()=>x.removeEventListener(G,h)},[h]),d.jsx(xe,{scope:t,orientation:n,dir:r,loop:a,currentTabStopId:l,onItemFocus:s.useCallback(x=>m(x),[m]),onItemShiftTab:s.useCallback(()=>I(!0),[]),onFocusableItemAdd:s.useCallback(()=>j(x=>x+1),[]),onFocusableItemRemove:s.useCallback(()=>j(x=>x-1),[]),children:d.jsx(A.div,{tabIndex:v||ae===0?-1:0,"data-orientation":n,...R,ref:c,style:{outline:"none",...e.style},onMouseDown:y(e.onMouseDown,()=>{_.current=!0}),onFocus:y(e.onFocus,x=>{const ie=!_.current;if(x.target===x.currentTarget&&ie&&!v){const O=new CustomEvent(G,Ie);if(x.currentTarget.dispatchEvent(O),!O.defaultPrevented){const T=S().filter(E=>E.focusable),ue=T.find(E=>E.active),de=T.find(E=>E.id===l),le=[ue,de,...T].filter(Boolean).map(E=>E.ref.current);H(le,g)}}_.current=!1}),onBlur:y(e.onBlur,()=>I(!1))})})}),Y="RovingFocusGroupItem",$=s.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:t,focusable:n=!0,active:a=!1,tabStopId:i,...p}=e,C=pe(),f=i||C,u=ye(Y,t),g=u.currentTabStopId===f,R=B(t),{onFocusableItemAdd:b,onFocusableItemRemove:c}=u;return s.useEffect(()=>{if(n)return b(),()=>c()},[n,b,c]),d.jsx(k.ItemSlot,{scope:t,id:f,focusable:n,active:a,children:d.jsx(A.span,{tabIndex:g?0:-1,"data-orientation":u.orientation,...p,ref:o,onMouseDown:y(e.onMouseDown,r=>{n?u.onItemFocus(f):r.preventDefault()}),onFocus:y(e.onFocus,()=>u.onItemFocus(f)),onKeyDown:y(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){u.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const l=Se(r,u.orientation,u.dir);if(l!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let v=R().filter(I=>I.focusable).map(I=>I.ref.current);if(l==="last")v.reverse();else if(l==="prev"||l==="next"){l==="prev"&&v.reverse();const I=v.indexOf(r.currentTarget);v=u.loop?_e(v,I+1):v.slice(I+1)}setTimeout(()=>H(v))}})})})});$.displayName=Y;var we={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function he(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Se(e,o,t){const n=he(e.key,t);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return we[n]}function H(e,o=!1){const t=document.activeElement;for(const n of e)if(n===t||(n.focus({preventScroll:o}),document.activeElement!==t))return}function _e(e,o){return e.map((t,n)=>e[(o+n)%e.length])}var Fe=z,Ae=$;function Ne(e){const o=s.useRef({value:e,previous:e});return s.useMemo(()=>(o.current.value!==e&&(o.current.previous=o.current.value,o.current.value=e),o.current.previous),[e])}var M="Radio",[Pe,J]=N(M),[Te,Ge]=Pe(M),W=s.forwardRef((e,o)=>{const{__scopeRadio:t,name:n,checked:a=!1,required:i,disabled:p,value:C="on",onCheck:f,form:u,...g}=e,[R,b]=s.useState(null),c=F(o,m=>b(m)),r=s.useRef(!1),l=R?u||!!R.closest("form"):!0;return d.jsxs(Te,{scope:t,checked:a,disabled:p,children:[d.jsx(A.button,{type:"button",role:"radio","aria-checked":a,"data-state":Z(a),"data-disabled":p?"":void 0,disabled:p,value:C,...g,ref:c,onClick:y(e.onClick,m=>{a||f==null||f(),l&&(r.current=m.isPropagationStopped(),r.current||m.stopPropagation())})}),l&&d.jsx(ke,{control:R,bubbles:!r.current,name:n,value:C,checked:a,required:i,disabled:p,form:u,style:{transform:"translateX(-100%)"}})]})});W.displayName=M;var X="RadioIndicator",Q=s.forwardRef((e,o)=>{const{__scopeRadio:t,forceMount:n,...a}=e,i=Ge(X,t);return d.jsx(me,{present:n||i.checked,children:d.jsx(A.span,{"data-state":Z(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:o})})});Q.displayName=X;var ke=e=>{const{control:o,checked:t,bubbles:n=!0,...a}=e,i=s.useRef(null),p=Ne(t),C=ve(o);return s.useEffect(()=>{const f=i.current,u=window.HTMLInputElement.prototype,R=Object.getOwnPropertyDescriptor(u,"checked").set;if(p!==t&&R){const b=new Event("click",{bubbles:n});R.call(f,t),f.dispatchEvent(b)}},[p,t,n]),d.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:i,style:{...e.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Z(e){return e?"checked":"unchecked"}var Me=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],D="RadioGroup",[De,Ye]=N(D,[q,J]),ee=q(),oe=J(),[je,Oe]=De(D),te=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,name:n,defaultValue:a,value:i,required:p=!1,disabled:C=!1,orientation:f,dir:u,loop:g=!0,onValueChange:R,...b}=e,c=ee(t),r=V(u),[l,m]=K({prop:i,defaultProp:a,onChange:R});return d.jsx(je,{scope:t,name:n,required:p,disabled:C,value:l,onValueChange:m,children:d.jsx(Fe,{asChild:!0,...c,orientation:f,dir:r,loop:g,children:d.jsx(A.div,{role:"radiogroup","aria-required":p,"aria-orientation":f,"data-disabled":C?"":void 0,dir:r,...b,ref:o})})})});te.displayName=D;var re="RadioGroupItem",ne=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,disabled:n,...a}=e,i=Oe(re,t),p=i.disabled||n,C=ee(t),f=oe(t),u=s.useRef(null),g=F(o,u),R=i.value===a.value,b=s.useRef(!1);return s.useEffect(()=>{const c=l=>{Me.includes(l.key)&&(b.current=!0)},r=()=>b.current=!1;return document.addEventListener("keydown",c),document.addEventListener("keyup",r),()=>{document.removeEventListener("keydown",c),document.removeEventListener("keyup",r)}},[]),d.jsx(Ae,{asChild:!0,...C,focusable:!p,active:R,children:d.jsx(W,{disabled:p,required:i.required,checked:R,...f,...a,name:i.name,ref:g,onCheck:()=>i.onValueChange(a.value),onKeyDown:y(c=>{c.key==="Enter"&&c.preventDefault()}),onFocus:y(a.onFocus,()=>{var c;b.current&&((c=u.current)==null||c.click())})})})});ne.displayName=re;var Le="RadioGroupIndicator",Ke=s.forwardRef((e,o)=>{const{__scopeRadioGroup:t,...n}=e,a=oe(t);return d.jsx(Q,{...a,...n,ref:o})});Ke.displayName=Le;var se=te,ce=ne;const Ue=s.forwardRef(({className:e,...o},t)=>d.jsx(se,{className:U("grid gap-2",e),...o,ref:t}));Ue.displayName=se.displayName;const Ve=s.forwardRef(({className:e,...o},t)=>d.jsx(ce,{ref:t,className:U(o.checked?"border-primary after:bg-opacity-1":"border-on_surface bg-transparent after:bg-opacity-0","size-5 rounded-full border-[2px] after:size-[9px] after:bg-primary before:scale-0 hover:before:scale-100 before:size-10 before:rounded-full before:transition-all before:absolute before:-top-3 before:-left-3 before:bg-on_surface/[8%] duration-300 after:rounded-full flex relative items-center justify-center text-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring transition-all disabled:cursor-not-allowed disabled:opacity-50",e),...o}));Ve.displayName=ce.displayName;export{Ue as R,Ve as a}; diff --git a/dist/assets/service-BBxXYXSW.js b/dist/assets/service-BOgBrkXn.js similarity index 80% rename from dist/assets/service-BBxXYXSW.js rename to dist/assets/service-BOgBrkXn.js index 7021619..717a95d 100644 --- a/dist/assets/service-BBxXYXSW.js +++ b/dist/assets/service-BOgBrkXn.js @@ -1 +1 @@ -import{a as s}from"./index-Doh9iehP.js";const o="https://turkmentextile.turkmenexpo.com/app/api/v1",n=async t=>(await s.post(`${o}/book_stand_form`,t)).status===201,e=async t=>(await s.post(`${o}/become_sponsor_form`,t)).status===201,p=async t=>(await s.post(`${o}/contact_form`,t)).status===201;export{n as a,p as b,e as p}; +import{a as s}from"./index-Cut7DAH_.js";const o="https://turkmentextile.turkmenexpo.com/app/api/v1",n=async t=>(await s.post(`${o}/book_stand_form`,t)).status===201,e=async t=>(await s.post(`${o}/become_sponsor_form`,t)).status===201,p=async t=>(await s.post(`${o}/contact_form`,t)).status===201;export{n as a,p as b,e as p}; diff --git a/dist/assets/stend-form-BOpxzbVB.js b/dist/assets/stend-form-BhZ0BJ3g.js similarity index 94% rename from dist/assets/stend-form-BOpxzbVB.js rename to dist/assets/stend-form-BhZ0BJ3g.js index e2375fb..52d2007 100644 --- a/dist/assets/stend-form-BOpxzbVB.js +++ b/dist/assets/stend-form-BhZ0BJ3g.js @@ -1 +1 @@ -import{u as g,v as f,j as e,C as y,n as s,x as v,w as N,m as S,o as d,p as m,q as i,r as p,s as l,B as F,t as k,y as w}from"./ui-library-D6J3nmrf.js";import{a as j}from"./react-vendor-OnsDvTPE.js";import{R as b,a as x}from"./radio-group-0T_K4mIX.js";import{z as o,t as C}from"./index-Doh9iehP.js";import{a as V}from"./service-BBxXYXSW.js";import{s as t}from"./stend.data-MYN6KI5Y.js";const R=o.object({space_package:o.string(),company_name:o.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:o.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:o.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:o.preprocess(a=>Number(a),o.number().min(1,"Укажите количество участников")),country:o.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:o.string().email({message:"Укажите корректный email"}),phone:o.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:o.string().optional(),visa_support:o.string().optional()}),E={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""};function z(){const a=g(n=>n.lang),[u,h]=j.useState(!1),r=f({resolver:C(R),defaultValues:E}),_=async n=>{await V(n)&&h(!0)};j.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[status]);const{errors:c}=r.formState;return e.jsxs("div",{children:[e.jsx(y,{title:t[s(a)].cover}),e.jsx(v,{children:!u&&e.jsx(N,{...r,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:r.handleSubmit(_),children:[e.jsx(d,{control:r.control,name:"space_package",render:({field:n})=>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:n.onChange,defaultValue:n.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:n.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:n.value==="package"})}),e.jsx(i,{className:"text-base",children:t[s(a)].radio_2})]})]})})]})}),e.jsx(l,{label:t[s(a)].label_1,name:"company_name",control:r.control,error:c.company_name}),e.jsx(l,{label:t[s(a)].label_2,name:"rep_name",control:r.control,error:c.rep_name}),e.jsx(l,{label:t[s(a)].label_3,name:"job_title",control:r.control,error:c.job_title}),e.jsx(l,{label:t[s(a)].number_of_participants,type:"number",name:"participants_number",control:r.control,error:c.participants_number}),e.jsx(l,{label:t[s(a)].label_4,name:"country",control:r.control,error:c.country}),e.jsx(l,{label:t[s(a)].label_5,name:"email",control:r.control,error:c.email}),e.jsx(l,{label:t[s(a)].label_6,name:"phone",control:r.control,error:c.phone}),e.jsx(l,{label:t[s(a)].label_7,name:"website",control:r.control}),e.jsx(d,{control:r.control,name:"visa_support",render:({field:n})=>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:n.onChange,defaultValue:n.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:n.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:n.value==="no"})}),e.jsx(i,{className:"text-base",children:t[s(a)].visa_radio_2})]})]})})]})}),e.jsx(F,{disabled:r.formState.isSubmitting,className:"mt-5",children:r.formState.isSubmitting?e.jsx(k,{className:"animate-spin"}):t[s(a)].button})]})})}),u&&e.jsx(w,{delay:.3})]})}export{z as default}; +import{u as g,v as f,j as e,C as y,n as s,x as v,w as N,m as S,o as d,p as m,q as i,r as p,s as l,B as F,t as k,y as w}from"./ui-library-DfsjY96d.js";import{a as j}from"./react-vendor-OnsDvTPE.js";import{R as b,a as x}from"./radio-group-CW7nH-dd.js";import{z as o,t as C}from"./index-Cut7DAH_.js";import{a as V}from"./service-BOgBrkXn.js";import{s as t}from"./stend.data-MYN6KI5Y.js";const R=o.object({space_package:o.string(),company_name:o.string().min(3,{message:"Название компании должно быть не менее 3 символов"}),rep_name:o.string().min(3,{message:"Имя представителя должно быть не менее 3 символов"}),job_title:o.string().min(3,{message:"Должность должна быть не менее 3 символов"}),participants_number:o.preprocess(a=>Number(a),o.number().min(1,"Укажите количество участников")),country:o.string().min(3,{message:"Название страны должно быть не менее 3 символов"}),email:o.string().email({message:"Укажите корректный email"}),phone:o.string().min(8,{message:"Номер телефона должен быть не менее 8 символов"}),website:o.string().optional(),visa_support:o.string().optional()}),E={space_package:"space",company_name:"",rep_name:"",job_title:"",participants_number:1,country:"",email:"",phone:"",website:"",visa_support:""};function z(){const a=g(n=>n.lang),[u,h]=j.useState(!1),r=f({resolver:C(R),defaultValues:E}),_=async n=>{await V(n)&&h(!0)};j.useEffect(()=>{window.scrollTo({behavior:"smooth",top:0})},[status]);const{errors:c}=r.formState;return e.jsxs("div",{children:[e.jsx(y,{title:t[s(a)].cover}),e.jsx(v,{children:!u&&e.jsx(N,{...r,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:r.handleSubmit(_),children:[e.jsx(d,{control:r.control,name:"space_package",render:({field:n})=>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:n.onChange,defaultValue:n.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:n.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:n.value==="package"})}),e.jsx(i,{className:"text-base",children:t[s(a)].radio_2})]})]})})]})}),e.jsx(l,{label:t[s(a)].label_1,name:"company_name",control:r.control,error:c.company_name}),e.jsx(l,{label:t[s(a)].label_2,name:"rep_name",control:r.control,error:c.rep_name}),e.jsx(l,{label:t[s(a)].label_3,name:"job_title",control:r.control,error:c.job_title}),e.jsx(l,{label:t[s(a)].number_of_participants,type:"number",name:"participants_number",control:r.control,error:c.participants_number}),e.jsx(l,{label:t[s(a)].label_4,name:"country",control:r.control,error:c.country}),e.jsx(l,{label:t[s(a)].label_5,name:"email",control:r.control,error:c.email}),e.jsx(l,{label:t[s(a)].label_6,name:"phone",control:r.control,error:c.phone}),e.jsx(l,{label:t[s(a)].label_7,name:"website",control:r.control}),e.jsx(d,{control:r.control,name:"visa_support",render:({field:n})=>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:n.onChange,defaultValue:n.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:n.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:n.value==="no"})}),e.jsx(i,{className:"text-base",children:t[s(a)].visa_radio_2})]})]})})]})}),e.jsx(F,{disabled:r.formState.isSubmitting,className:"mt-5",children:r.formState.isSubmitting?e.jsx(k,{className:"animate-spin"}):t[s(a)].button})]})})}),u&&e.jsx(w,{delay:.3})]})}export{z as default}; diff --git a/dist/assets/ui-library-D6J3nmrf.js b/dist/assets/ui-library-DfsjY96d.js similarity index 53% rename from dist/assets/ui-library-D6J3nmrf.js rename to dist/assets/ui-library-DfsjY96d.js index 9b6dc63..5d56009 100644 --- a/dist/assets/ui-library-D6J3nmrf.js +++ b/dist/assets/ui-library-DfsjY96d.js @@ -1,4 +1,4 @@ -import{r as mf,a as y,R as pf,b as Dl,c as gf,d as ne,L as Re,e as nr}from"./react-vendor-OnsDvTPE.js";var es={exports:{}},vn={};/** +import{r as gf,a as y,R as yf,b as Nl,c as vf,d as ne,L as De,e as nr}from"./react-vendor-OnsDvTPE.js";var ns={exports:{}},vn={};/** * @license React * react-jsx-runtime.production.min.js * @@ -6,8 +6,8 @@ import{r as mf,a as y,R as pf,b as Dl,c as gf,d as ne,L as Re,e as nr}from"./rea * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var So;function yf(){if(So)return vn;So=1;var e=mf(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,l,c){var u,d={},f=null,m=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(m=l.ref);for(u in l)r.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:a,key:f,ref:m,props:d,_owner:s.current}}return vn.Fragment=n,vn.jsx=o,vn.jsxs=o,vn}var Ao;function vf(){return Ao||(Ao=1,es.exports=yf()),es.exports}var p=vf();function Oe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Co(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function jl(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Co(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s{const{children:o,...a}=i,l=y.useMemo(()=>a,Object.values(a));return p.jsx(n.Provider,{value:l,children:o})};r.displayName=e+"Provider";function s(i){const o=y.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function si(e,t=[]){let n=[];function r(i,o){const a=y.createContext(o),l=n.length;n=[...n,o];const c=d=>{var v;const{scope:f,children:m,...g}=d,h=((v=f==null?void 0:f[e])==null?void 0:v[l])||a,x=y.useMemo(()=>g,Object.values(g));return p.jsx(h.Provider,{value:x,children:m})};c.displayName=i+"Provider";function u(d,f){var h;const m=((h=f==null?void 0:f[e])==null?void 0:h[l])||a,g=y.useContext(m);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const s=()=>{const i=n.map(o=>y.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,bf(s,...t)]}function bf(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...a,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var It=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},wf=pf.useId||(()=>{}),Sf=0;function hr(e){const[t,n]=y.useState(wf());return It(()=>{n(r=>r??String(Sf++))},[e]),t?`radix-${t}`:""}function At(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Nl({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,s]=Af({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:r,a=At(n),l=y.useCallback(c=>{if(i){const d=typeof c=="function"?c(e):c;d!==e&&a(d)}else s(c)},[i,e,s,a]);return[o,l]}function Af({defaultProp:e,onChange:t}){const n=y.useState(e),[r]=n,s=y.useRef(r),i=At(t);return y.useEffect(()=>{s.current!==r&&(i(r),s.current=r)},[r,s,i]),n}var cn=y.forwardRef((e,t)=>{const{children:n,...r}=e,s=y.Children.toArray(n),i=s.find(Pf);if(i){const o=i.props.children,a=s.map(l=>l===i?y.Children.count(o)>1?y.Children.only(null):y.isValidElement(o)?o.props.children:null:l);return p.jsx(Es,{...r,ref:t,children:y.isValidElement(o)?y.cloneElement(o,void 0,a):null})}return p.jsx(Es,{...r,ref:t,children:n})});cn.displayName="Slot";var Es=y.forwardRef((e,t)=>{const{children:n,...r}=e;if(y.isValidElement(n)){const s=Ef(n);return y.cloneElement(n,{...Tf(r,n.props),ref:t?jl(t,s):s})}return y.Children.count(n)>1?y.Children.only(null):null});Es.displayName="SlotClone";var Cf=({children:e})=>p.jsx(p.Fragment,{children:e});function Pf(e){return y.isValidElement(e)&&e.type===Cf}function Tf(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{i(...a),s(...a)}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function Ef(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Rf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],je=Rf.reduce((e,t)=>{const n=y.forwardRef((r,s)=>{const{asChild:i,...o}=r,a=i?cn:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(a,{...o,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Df(e,t){e&&Dl.flushSync(()=>e.dispatchEvent(t))}function jf(e,t=globalThis==null?void 0:globalThis.document){const n=At(e);y.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Nf="DismissableLayer",Rs="dismissableLayer.update",Mf="dismissableLayer.pointerDownOutside",kf="dismissableLayer.focusOutside",Po,Ml=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ii=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,c=y.useContext(Ml),[u,d]=y.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=y.useState({}),g=Qe(t,E=>d(E)),h=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(x),b=u?h.indexOf(u):-1,A=c.layersWithOutsidePointerEventsDisabled.size>0,P=b>=v,S=Of(E=>{const D=E.target,M=[...c.branches].some(V=>V.contains(D));!P||M||(s==null||s(E),o==null||o(E),E.defaultPrevented||a==null||a())},f),T=Ff(E=>{const D=E.target;[...c.branches].some(V=>V.contains(D))||(i==null||i(E),o==null||o(E),E.defaultPrevented||a==null||a())},f);return jf(E=>{b===c.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},f),y.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Po=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),To(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Po)}},[u,f,n,c]),y.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),To())},[u,c]),y.useEffect(()=>{const E=()=>m({});return document.addEventListener(Rs,E),()=>document.removeEventListener(Rs,E)},[]),p.jsx(je.div,{...l,ref:g,style:{pointerEvents:A?P?"auto":"none":void 0,...e.style},onFocusCapture:Oe(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Oe(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Oe(e.onPointerDownCapture,S.onPointerDownCapture)})});ii.displayName=Nf;var Vf="DismissableLayerBranch",_f=y.forwardRef((e,t)=>{const n=y.useContext(Ml),r=y.useRef(null),s=Qe(t,r);return y.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(je.div,{...e,ref:s})});_f.displayName=Vf;function Of(e,t=globalThis==null?void 0:globalThis.document){const n=At(e),r=y.useRef(!1),s=y.useRef(()=>{});return y.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){kl(Mf,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ff(e,t=globalThis==null?void 0:globalThis.document){const n=At(e),r=y.useRef(!1);return y.useEffect(()=>{const s=i=>{i.target&&!r.current&&kl(kf,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function To(){const e=new CustomEvent(Rs);document.dispatchEvent(e)}function kl(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Df(s,i):s.dispatchEvent(i)}var ts="focusScope.autoFocusOnMount",ns="focusScope.autoFocusOnUnmount",Eo={bubbles:!1,cancelable:!0},Lf="FocusScope",oi=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,l]=y.useState(null),c=At(s),u=At(i),d=y.useRef(null),f=Qe(t,h=>l(h)),m=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let h=function(A){if(m.paused||!a)return;const P=A.target;a.contains(P)?d.current=P:bt(d.current,{select:!0})},x=function(A){if(m.paused||!a)return;const P=A.relatedTarget;P!==null&&(a.contains(P)||bt(d.current,{select:!0}))},v=function(A){if(document.activeElement===document.body)for(const S of A)S.removedNodes.length>0&&bt(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",x);const b=new MutationObserver(v);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),b.disconnect()}}},[r,a,m.paused]),y.useEffect(()=>{if(a){Do.add(m);const h=document.activeElement;if(!a.contains(h)){const v=new CustomEvent(ts,Eo);a.addEventListener(ts,c),a.dispatchEvent(v),v.defaultPrevented||(If(Wf(Vl(a)),{select:!0}),document.activeElement===h&&bt(a))}return()=>{a.removeEventListener(ts,c),setTimeout(()=>{const v=new CustomEvent(ns,Eo);a.addEventListener(ns,u),a.dispatchEvent(v),v.defaultPrevented||bt(h??document.body,{select:!0}),a.removeEventListener(ns,u),Do.remove(m)},0)}}},[a,c,u,m]);const g=y.useCallback(h=>{if(!n&&!r||m.paused)return;const x=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,v=document.activeElement;if(x&&v){const b=h.currentTarget,[A,P]=Bf(b);A&&P?!h.shiftKey&&v===P?(h.preventDefault(),n&&bt(A,{select:!0})):h.shiftKey&&v===A&&(h.preventDefault(),n&&bt(P,{select:!0})):v===b&&h.preventDefault()}},[n,r,m.paused]);return p.jsx(je.div,{tabIndex:-1,...o,ref:f,onKeyDown:g})});oi.displayName=Lf;function If(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(bt(r,{select:t}),document.activeElement!==n)return}function Bf(e){const t=Vl(e),n=Ro(t,e),r=Ro(t.reverse(),e);return[n,r]}function Vl(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ro(e,t){for(const n of e)if(!Uf(n,{upTo:t}))return n}function Uf(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 $f(e){return e instanceof HTMLInputElement&&"select"in e}function bt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$f(e)&&t&&e.select()}}var Do=zf();function zf(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=jo(e,t),e.unshift(t)},remove(t){var n;e=jo(e,t),(n=e[0])==null||n.resume()}}}function jo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Wf(e){return e.filter(t=>t.tagName!=="A")}var Hf="Portal",ai=y.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=y.useState(!1);It(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?gf.createPortal(p.jsx(je.div,{...r,ref:t}),o):null});ai.displayName=Hf;function Gf(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var un=e=>{const{present:t,children:n}=e,r=Kf(t),s=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),i=Qe(r.ref,qf(s));return typeof n=="function"||r.isPresent?y.cloneElement(s,{ref:i}):null};un.displayName="Presence";function Kf(e){const[t,n]=y.useState(),r=y.useRef({}),s=y.useRef(e),i=y.useRef("none"),o=e?"mounted":"unmounted",[a,l]=Gf(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const c=rr(r.current);i.current=a==="mounted"?c:"none"},[a]),It(()=>{const c=r.current,u=s.current;if(u!==e){const f=i.current,m=rr(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&f!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),It(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=m=>{const h=rr(r.current).includes(m.animationName);if(m.target===t&&h&&(l("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=m=>{m.target===t&&(i.current=rr(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function rr(e){return(e==null?void 0:e.animationName)||"none"}function qf(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var rs=0;function _l(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??No()),document.body.insertAdjacentElement("beforeend",e[1]??No()),rs++,()=>{rs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),rs--}},[])}function No(){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 rt=function(){return rt=Object.assign||function(t){for(var n,r=1,s=arguments.length;r"u")return dh;var t=fh(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},mh=Il(),en="data-scroll-locked",ph=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` - .`.concat(Yf,` { + */var Co;function xf(){if(Co)return vn;Co=1;var e=gf(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,l,c){var u,d={},f=null,m=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(m=l.ref);for(u in l)r.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:a,key:f,ref:m,props:d,_owner:s.current}}return vn.Fragment=n,vn.jsx=o,vn.jsxs=o,vn}var Po;function bf(){return Po||(Po=1,ns.exports=xf()),ns.exports}var p=bf();function Fe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function To(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ml(...e){return t=>{let n=!1;const r=e.map(s=>{const i=To(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s{const{children:o,...a}=i,l=y.useMemo(()=>a,Object.values(a));return p.jsx(n.Provider,{value:l,children:o})};r.displayName=e+"Provider";function s(i){const o=y.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function oi(e,t=[]){let n=[];function r(i,o){const a=y.createContext(o),l=n.length;n=[...n,o];const c=d=>{var v;const{scope:f,children:m,...g}=d,h=((v=f==null?void 0:f[e])==null?void 0:v[l])||a,x=y.useMemo(()=>g,Object.values(g));return p.jsx(h.Provider,{value:x,children:m})};c.displayName=i+"Provider";function u(d,f){var h;const m=((h=f==null?void 0:f[e])==null?void 0:h[l])||a,g=y.useContext(m);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const s=()=>{const i=n.map(o=>y.createContext(o));return function(a){const l=(a==null?void 0:a[e])||i;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return s.scopeName=e,[r,Sf(s,...t)]}function Sf(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...a,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var It=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},Af=yf.useId||(()=>{}),Cf=0;function pr(e){const[t,n]=y.useState(Af());return It(()=>{n(r=>r??String(Cf++))},[e]),t?`radix-${t}`:""}function At(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function kl({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,s]=Pf({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:r,a=At(n),l=y.useCallback(c=>{if(i){const d=typeof c=="function"?c(e):c;d!==e&&a(d)}else s(c)},[i,e,s,a]);return[o,l]}function Pf({defaultProp:e,onChange:t}){const n=y.useState(e),[r]=n,s=y.useRef(r),i=At(t);return y.useEffect(()=>{s.current!==r&&(i(r),s.current=r)},[r,s,i]),n}var cn=y.forwardRef((e,t)=>{const{children:n,...r}=e,s=y.Children.toArray(n),i=s.find(Ef);if(i){const o=i.props.children,a=s.map(l=>l===i?y.Children.count(o)>1?y.Children.only(null):y.isValidElement(o)?o.props.children:null:l);return p.jsx(Ds,{...r,ref:t,children:y.isValidElement(o)?y.cloneElement(o,void 0,a):null})}return p.jsx(Ds,{...r,ref:t,children:n})});cn.displayName="Slot";var Ds=y.forwardRef((e,t)=>{const{children:n,...r}=e;if(y.isValidElement(n)){const s=Df(n);return y.cloneElement(n,{...Rf(r,n.props),ref:t?Ml(t,s):s})}return y.Children.count(n)>1?y.Children.only(null):null});Ds.displayName="SlotClone";var Tf=({children:e})=>p.jsx(p.Fragment,{children:e});function Ef(e){return y.isValidElement(e)&&e.type===Tf}function Rf(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{i(...a),s(...a)}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function Df(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var jf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ne=jf.reduce((e,t)=>{const n=y.forwardRef((r,s)=>{const{asChild:i,...o}=r,a=i?cn:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(a,{...o,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Nf(e,t){e&&Nl.flushSync(()=>e.dispatchEvent(t))}function Mf(e,t=globalThis==null?void 0:globalThis.document){const n=At(e);y.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var kf="DismissableLayer",js="dismissableLayer.update",Vf="dismissableLayer.pointerDownOutside",_f="dismissableLayer.focusOutside",Eo,Vl=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ai=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...l}=e,c=y.useContext(Vl),[u,d]=y.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=y.useState({}),g=Qe(t,E=>d(E)),h=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(x),b=u?h.indexOf(u):-1,A=c.layersWithOutsidePointerEventsDisabled.size>0,P=b>=v,S=Lf(E=>{const D=E.target,M=[...c.branches].some(V=>V.contains(D));!P||M||(s==null||s(E),o==null||o(E),E.defaultPrevented||a==null||a())},f),T=If(E=>{const D=E.target;[...c.branches].some(V=>V.contains(D))||(i==null||i(E),o==null||o(E),E.defaultPrevented||a==null||a())},f);return Mf(E=>{b===c.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},f),y.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Eo=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),Ro(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Eo)}},[u,f,n,c]),y.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),Ro())},[u,c]),y.useEffect(()=>{const E=()=>m({});return document.addEventListener(js,E),()=>document.removeEventListener(js,E)},[]),p.jsx(Ne.div,{...l,ref:g,style:{pointerEvents:A?P?"auto":"none":void 0,...e.style},onFocusCapture:Fe(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Fe(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Fe(e.onPointerDownCapture,S.onPointerDownCapture)})});ai.displayName=kf;var Of="DismissableLayerBranch",Ff=y.forwardRef((e,t)=>{const n=y.useContext(Vl),r=y.useRef(null),s=Qe(t,r);return y.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(Ne.div,{...e,ref:s})});Ff.displayName=Of;function Lf(e,t=globalThis==null?void 0:globalThis.document){const n=At(e),r=y.useRef(!1),s=y.useRef(()=>{});return y.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){_l(Vf,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=l,t.addEventListener("click",s.current,{once:!0})):l()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function If(e,t=globalThis==null?void 0:globalThis.document){const n=At(e),r=y.useRef(!1);return y.useEffect(()=>{const s=i=>{i.target&&!r.current&&_l(_f,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ro(){const e=new CustomEvent(js);document.dispatchEvent(e)}function _l(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Nf(s,i):s.dispatchEvent(i)}var rs="focusScope.autoFocusOnMount",ss="focusScope.autoFocusOnUnmount",Do={bubbles:!1,cancelable:!0},Bf="FocusScope",li=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=e,[a,l]=y.useState(null),c=At(s),u=At(i),d=y.useRef(null),f=Qe(t,h=>l(h)),m=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let h=function(A){if(m.paused||!a)return;const P=A.target;a.contains(P)?d.current=P:bt(d.current,{select:!0})},x=function(A){if(m.paused||!a)return;const P=A.relatedTarget;P!==null&&(a.contains(P)||bt(d.current,{select:!0}))},v=function(A){if(document.activeElement===document.body)for(const S of A)S.removedNodes.length>0&&bt(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",x);const b=new MutationObserver(v);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),b.disconnect()}}},[r,a,m.paused]),y.useEffect(()=>{if(a){No.add(m);const h=document.activeElement;if(!a.contains(h)){const v=new CustomEvent(rs,Do);a.addEventListener(rs,c),a.dispatchEvent(v),v.defaultPrevented||(Uf(Gf(Ol(a)),{select:!0}),document.activeElement===h&&bt(a))}return()=>{a.removeEventListener(rs,c),setTimeout(()=>{const v=new CustomEvent(ss,Do);a.addEventListener(ss,u),a.dispatchEvent(v),v.defaultPrevented||bt(h??document.body,{select:!0}),a.removeEventListener(ss,u),No.remove(m)},0)}}},[a,c,u,m]);const g=y.useCallback(h=>{if(!n&&!r||m.paused)return;const x=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,v=document.activeElement;if(x&&v){const b=h.currentTarget,[A,P]=$f(b);A&&P?!h.shiftKey&&v===P?(h.preventDefault(),n&&bt(A,{select:!0})):h.shiftKey&&v===A&&(h.preventDefault(),n&&bt(P,{select:!0})):v===b&&h.preventDefault()}},[n,r,m.paused]);return p.jsx(Ne.div,{tabIndex:-1,...o,ref:f,onKeyDown:g})});li.displayName=Bf;function Uf(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(bt(r,{select:t}),document.activeElement!==n)return}function $f(e){const t=Ol(e),n=jo(t,e),r=jo(t.reverse(),e);return[n,r]}function Ol(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function jo(e,t){for(const n of e)if(!zf(n,{upTo:t}))return n}function zf(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 Wf(e){return e instanceof HTMLInputElement&&"select"in e}function bt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Wf(e)&&t&&e.select()}}var No=Hf();function Hf(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Mo(e,t),e.unshift(t)},remove(t){var n;e=Mo(e,t),(n=e[0])==null||n.resume()}}}function Mo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Gf(e){return e.filter(t=>t.tagName!=="A")}var Kf="Portal",ci=y.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[s,i]=y.useState(!1);It(()=>i(!0),[]);const o=n||s&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?vf.createPortal(p.jsx(Ne.div,{...r,ref:t}),o):null});ci.displayName=Kf;function qf(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var un=e=>{const{present:t,children:n}=e,r=Xf(t),s=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),i=Qe(r.ref,Yf(s));return typeof n=="function"||r.isPresent?y.cloneElement(s,{ref:i}):null};un.displayName="Presence";function Xf(e){const[t,n]=y.useState(),r=y.useRef({}),s=y.useRef(e),i=y.useRef("none"),o=e?"mounted":"unmounted",[a,l]=qf(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const c=rr(r.current);i.current=a==="mounted"?c:"none"},[a]),It(()=>{const c=r.current,u=s.current;if(u!==e){const f=i.current,m=rr(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&f!==m?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,l]),It(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=m=>{const h=rr(r.current).includes(m.animationName);if(m.target===t&&h&&(l("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=m=>{m.target===t&&(i.current=rr(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:y.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function rr(e){return(e==null?void 0:e.animationName)||"none"}function Yf(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var is=0;function Fl(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ko()),document.body.insertAdjacentElement("beforeend",e[1]??ko()),is++,()=>{is===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),is--}},[])}function ko(){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 rt=function(){return rt=Object.assign||function(t){for(var n,r=1,s=arguments.length;r"u")return hh;var t=mh(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},gh=Ul(),en="data-scroll-locked",yh=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),` + .`.concat(Jf,` { overflow: hidden `).concat(r,`; padding-right: `).concat(a,"px ").concat(r,`; } @@ -24,88 +24,88 @@ import{r as mf,a as y,R as pf,b as Dl,c as gf,d as ne,L as Re,e as nr}from"./rea `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` } - .`).concat(mr,` { + .`).concat(gr,` { right: `).concat(a,"px ").concat(r,`; } - .`).concat(pr,` { + .`).concat(yr,` { margin-right: `).concat(a,"px ").concat(r,`; } - .`).concat(mr," .").concat(mr,` { + .`).concat(gr," .").concat(gr,` { right: 0 `).concat(r,`; } - .`).concat(pr," .").concat(pr,` { + .`).concat(yr," .").concat(yr,` { margin-right: 0 `).concat(r,`; } body[`).concat(en,`] { - `).concat(Zf,": ").concat(a,`px; + `).concat(Qf,": ").concat(a,`px; } -`)},ko=function(){var e=parseInt(document.body.getAttribute(en)||"0",10);return isFinite(e)?e:0},gh=function(){y.useEffect(function(){return document.body.setAttribute(en,(ko()+1).toString()),function(){var e=ko()-1;e<=0?document.body.removeAttribute(en):document.body.setAttribute(en,e.toString())}},[])},yh=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;gh();var i=y.useMemo(function(){return hh(s)},[s]);return y.createElement(mh,{styles:ph(i,!t,s,n?"":"!important")})},Ds=!1;if(typeof window<"u")try{var sr=Object.defineProperty({},"passive",{get:function(){return Ds=!0,!0}});window.addEventListener("test",sr,sr),window.removeEventListener("test",sr,sr)}catch{Ds=!1}var Ht=Ds?{passive:!1}:!1,vh=function(e){return e.tagName==="TEXTAREA"},Bl=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!vh(e)&&n[t]==="visible")},xh=function(e){return Bl(e,"overflowY")},bh=function(e){return Bl(e,"overflowX")},Vo=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=Ul(e,r);if(s){var i=$l(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},wh=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Sh=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ul=function(e,t){return e==="v"?xh(t):bh(t)},$l=function(e,t){return e==="v"?wh(t):Sh(t)},Ah=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ch=function(e,t,n,r,s){var i=Ah(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,l=t.contains(a),c=!1,u=o>0,d=0,f=0;do{var m=$l(e,a),g=m[0],h=m[1],x=m[2],v=h-x-i*g;(g||v)&&Ul(e,a)&&(d+=v,f+=g),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(c=!0),c},ir=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_o=function(e){return[e.deltaX,e.deltaY]},Oo=function(e){return e&&"current"in e?e.current:e},Ph=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Th=function(e){return` +`)},_o=function(){var e=parseInt(document.body.getAttribute(en)||"0",10);return isFinite(e)?e:0},vh=function(){y.useEffect(function(){return document.body.setAttribute(en,(_o()+1).toString()),function(){var e=_o()-1;e<=0?document.body.removeAttribute(en):document.body.setAttribute(en,e.toString())}},[])},xh=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;vh();var i=y.useMemo(function(){return ph(s)},[s]);return y.createElement(gh,{styles:yh(i,!t,s,n?"":"!important")})},Ns=!1;if(typeof window<"u")try{var sr=Object.defineProperty({},"passive",{get:function(){return Ns=!0,!0}});window.addEventListener("test",sr,sr),window.removeEventListener("test",sr,sr)}catch{Ns=!1}var Ht=Ns?{passive:!1}:!1,bh=function(e){return e.tagName==="TEXTAREA"},$l=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!bh(e)&&n[t]==="visible")},wh=function(e){return $l(e,"overflowY")},Sh=function(e){return $l(e,"overflowX")},Oo=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=zl(e,r);if(s){var i=Wl(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ah=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Ch=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},zl=function(e,t){return e==="v"?wh(t):Sh(t)},Wl=function(e,t){return e==="v"?Ah(t):Ch(t)},Ph=function(e,t){return e==="h"&&t==="rtl"?-1:1},Th=function(e,t,n,r,s){var i=Ph(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,l=t.contains(a),c=!1,u=o>0,d=0,f=0;do{var m=Wl(e,a),g=m[0],h=m[1],x=m[2],v=h-x-i*g;(g||v)&&zl(e,a)&&(d+=v,f+=g),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(c=!0),c},ir=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fo=function(e){return[e.deltaX,e.deltaY]},Lo=function(e){return e&&"current"in e?e.current:e},Eh=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Rh=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},Eh=0,Gt=[];function Rh(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),s=y.useState(Eh++)[0],i=y.useState(Il)[0],o=y.useRef(e);y.useEffect(function(){o.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var h=Xf([e.lockRef.current],(e.shards||[]).map(Oo),!0).filter(Boolean);return h.forEach(function(x){return x.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),h.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=y.useCallback(function(h,x){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!o.current.allowPinchZoom;var v=ir(h),b=n.current,A="deltaX"in h?h.deltaX:b[0]-v[0],P="deltaY"in h?h.deltaY:b[1]-v[1],S,T=h.target,E=Math.abs(A)>Math.abs(P)?"h":"v";if("touches"in h&&E==="h"&&T.type==="range")return!1;var D=Vo(E,T);if(!D)return!0;if(D?S=E:(S=E==="v"?"h":"v",D=Vo(E,T)),!D)return!1;if(!r.current&&"changedTouches"in h&&(A||P)&&(r.current=S),!S)return!0;var M=r.current||S;return Ch(M,x,h,M==="h"?A:P)},[]),l=y.useCallback(function(h){var x=h;if(!(!Gt.length||Gt[Gt.length-1]!==i)){var v="deltaY"in x?_o(x):ir(x),b=t.current.filter(function(S){return S.name===x.type&&(S.target===x.target||x.target===S.shadowParent)&&Ph(S.delta,v)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var A=(o.current.shards||[]).map(Oo).filter(Boolean).filter(function(S){return S.contains(x.target)}),P=A.length>0?a(x,A[0]):!o.current.noIsolation;P&&x.cancelable&&x.preventDefault()}}},[]),c=y.useCallback(function(h,x,v,b){var A={name:h,delta:x,target:v,should:b,shadowParent:Dh(v)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(P){return P!==A})},1)},[]),u=y.useCallback(function(h){n.current=ir(h),r.current=void 0},[]),d=y.useCallback(function(h){c(h.type,_o(h),h.target,a(h,e.lockRef.current))},[]),f=y.useCallback(function(h){c(h.type,ir(h),h.target,a(h,e.lockRef.current))},[]);y.useEffect(function(){return Gt.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Ht),document.addEventListener("touchmove",l,Ht),document.addEventListener("touchstart",u,Ht),function(){Gt=Gt.filter(function(h){return h!==i}),document.removeEventListener("wheel",l,Ht),document.removeEventListener("touchmove",l,Ht),document.removeEventListener("touchstart",u,Ht)}},[]);var m=e.removeScrollBar,g=e.inert;return y.createElement(y.Fragment,null,g?y.createElement(i,{styles:Th(s)}):null,m?y.createElement(yh,{gapMode:e.gapMode}):null)}function Dh(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const jh=sh(Ll,Rh);var li=y.forwardRef(function(e,t){return y.createElement(Ir,rt({},e,{ref:t,sideCar:jh}))});li.classNames=Ir.classNames;var Nh=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Kt=new WeakMap,or=new WeakMap,ar={},as=0,zl=function(e){return e&&(e.host||zl(e.parentNode))},Mh=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=zl(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},kh=function(e,t,n,r){var s=Mh(t,Array.isArray(e)?e:[e]);ar[n]||(ar[n]=new WeakMap);var i=ar[n],o=[],a=new Set,l=new Set(s),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};s.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var m=f.getAttribute(r),g=m!==null&&m!=="false",h=(Kt.get(f)||0)+1,x=(i.get(f)||0)+1;Kt.set(f,h),i.set(f,x),o.push(f),h===1&&g&&or.set(f,!0),x===1&&f.setAttribute(n,"true"),g||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),a.clear(),as++,function(){o.forEach(function(d){var f=Kt.get(d)-1,m=i.get(d)-1;Kt.set(d,f),i.set(d,m),f||(or.has(d)||d.removeAttribute(r),or.delete(d)),m||d.removeAttribute(n)}),as--,as||(Kt=new WeakMap,Kt=new WeakMap,or=new WeakMap,ar={})}},Wl=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=Nh(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),kh(r,s,n,"aria-hidden")):function(){return null}},ci="Dialog",[Hl,f0]=si(ci),[Vh,et]=Hl(ci),Gl=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,a=y.useRef(null),l=y.useRef(null),[c=!1,u]=Nl({prop:r,defaultProp:s,onChange:i});return p.jsx(Vh,{scope:t,triggerRef:a,contentRef:l,contentId:hr(),titleId:hr(),descriptionId:hr(),open:c,onOpenChange:u,onOpenToggle:y.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};Gl.displayName=ci;var Kl="DialogTrigger",ql=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=et(Kl,n),i=Qe(t,s.triggerRef);return p.jsx(je.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":fi(s.open),...r,ref:i,onClick:Oe(e.onClick,s.onOpenToggle)})});ql.displayName=Kl;var ui="DialogPortal",[_h,Xl]=Hl(ui,{forceMount:void 0}),Yl=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=et(ui,t);return p.jsx(_h,{scope:t,forceMount:n,children:y.Children.map(r,o=>p.jsx(un,{present:n||i.open,children:p.jsx(ai,{asChild:!0,container:s,children:o})}))})};Yl.displayName=ui;var Sr="DialogOverlay",Zl=y.forwardRef((e,t)=>{const n=Xl(Sr,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=et(Sr,e.__scopeDialog);return i.modal?p.jsx(un,{present:r||i.open,children:p.jsx(Oh,{...s,ref:t})}):null});Zl.displayName=Sr;var Oh=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=et(Sr,n);return p.jsx(li,{as:cn,allowPinchZoom:!0,shards:[s.contentRef],children:p.jsx(je.div,{"data-state":fi(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Bt="DialogContent",Jl=y.forwardRef((e,t)=>{const n=Xl(Bt,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=et(Bt,e.__scopeDialog);return p.jsx(un,{present:r||i.open,children:i.modal?p.jsx(Fh,{...s,ref:t}):p.jsx(Lh,{...s,ref:t})})});Jl.displayName=Bt;var Fh=y.forwardRef((e,t)=>{const n=et(Bt,e.__scopeDialog),r=y.useRef(null),s=Qe(t,n.contentRef,r);return y.useEffect(()=>{const i=r.current;if(i)return Wl(i)},[]),p.jsx(Ql,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Oe(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Oe(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:Oe(e.onFocusOutside,i=>i.preventDefault())})}),Lh=y.forwardRef((e,t)=>{const n=et(Bt,e.__scopeDialog),r=y.useRef(!1),s=y.useRef(!1);return p.jsx(Ql,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),Ql=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,a=et(Bt,n),l=y.useRef(null),c=Qe(t,l);return _l(),p.jsxs(p.Fragment,{children:[p.jsx(oi,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:p.jsx(ii,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":fi(a.open),...o,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(Ih,{titleId:a.titleId}),p.jsx(Uh,{contentRef:l,descriptionId:a.descriptionId})]})]})}),di="DialogTitle",ec=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=et(di,n);return p.jsx(je.h2,{id:s.titleId,...r,ref:t})});ec.displayName=di;var tc="DialogDescription",nc=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=et(tc,n);return p.jsx(je.p,{id:s.descriptionId,...r,ref:t})});nc.displayName=tc;var rc="DialogClose",sc=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=et(rc,n);return p.jsx(je.button,{type:"button",...r,ref:t,onClick:Oe(e.onClick,()=>s.onOpenChange(!1))})});sc.displayName=rc;function fi(e){return e?"open":"closed"}var ic="DialogTitleWarning",[h0,oc]=xf(ic,{contentName:Bt,titleName:di,docsSlug:"dialog"}),Ih=({titleId:e})=>{const t=oc(ic),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. +`)},Dh=0,Gt=[];function jh(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),s=y.useState(Dh++)[0],i=y.useState(Ul)[0],o=y.useRef(e);y.useEffect(function(){o.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var h=Zf([e.lockRef.current],(e.shards||[]).map(Lo),!0).filter(Boolean);return h.forEach(function(x){return x.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),h.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=y.useCallback(function(h,x){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!o.current.allowPinchZoom;var v=ir(h),b=n.current,A="deltaX"in h?h.deltaX:b[0]-v[0],P="deltaY"in h?h.deltaY:b[1]-v[1],S,T=h.target,E=Math.abs(A)>Math.abs(P)?"h":"v";if("touches"in h&&E==="h"&&T.type==="range")return!1;var D=Oo(E,T);if(!D)return!0;if(D?S=E:(S=E==="v"?"h":"v",D=Oo(E,T)),!D)return!1;if(!r.current&&"changedTouches"in h&&(A||P)&&(r.current=S),!S)return!0;var M=r.current||S;return Th(M,x,h,M==="h"?A:P)},[]),l=y.useCallback(function(h){var x=h;if(!(!Gt.length||Gt[Gt.length-1]!==i)){var v="deltaY"in x?Fo(x):ir(x),b=t.current.filter(function(S){return S.name===x.type&&(S.target===x.target||x.target===S.shadowParent)&&Eh(S.delta,v)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var A=(o.current.shards||[]).map(Lo).filter(Boolean).filter(function(S){return S.contains(x.target)}),P=A.length>0?a(x,A[0]):!o.current.noIsolation;P&&x.cancelable&&x.preventDefault()}}},[]),c=y.useCallback(function(h,x,v,b){var A={name:h,delta:x,target:v,should:b,shadowParent:Nh(v)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(P){return P!==A})},1)},[]),u=y.useCallback(function(h){n.current=ir(h),r.current=void 0},[]),d=y.useCallback(function(h){c(h.type,Fo(h),h.target,a(h,e.lockRef.current))},[]),f=y.useCallback(function(h){c(h.type,ir(h),h.target,a(h,e.lockRef.current))},[]);y.useEffect(function(){return Gt.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Ht),document.addEventListener("touchmove",l,Ht),document.addEventListener("touchstart",u,Ht),function(){Gt=Gt.filter(function(h){return h!==i}),document.removeEventListener("wheel",l,Ht),document.removeEventListener("touchmove",l,Ht),document.removeEventListener("touchstart",u,Ht)}},[]);var m=e.removeScrollBar,g=e.inert;return y.createElement(y.Fragment,null,g?y.createElement(i,{styles:Rh(s)}):null,m?y.createElement(xh,{gapMode:e.gapMode}):null)}function Nh(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Mh=oh(Bl,jh);var ui=y.forwardRef(function(e,t){return y.createElement(Ur,rt({},e,{ref:t,sideCar:Mh}))});ui.classNames=Ur.classNames;var kh=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Kt=new WeakMap,or=new WeakMap,ar={},cs=0,Hl=function(e){return e&&(e.host||Hl(e.parentNode))},Vh=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Hl(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},_h=function(e,t,n,r){var s=Vh(t,Array.isArray(e)?e:[e]);ar[n]||(ar[n]=new WeakMap);var i=ar[n],o=[],a=new Set,l=new Set(s),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};s.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var m=f.getAttribute(r),g=m!==null&&m!=="false",h=(Kt.get(f)||0)+1,x=(i.get(f)||0)+1;Kt.set(f,h),i.set(f,x),o.push(f),h===1&&g&&or.set(f,!0),x===1&&f.setAttribute(n,"true"),g||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),a.clear(),cs++,function(){o.forEach(function(d){var f=Kt.get(d)-1,m=i.get(d)-1;Kt.set(d,f),i.set(d,m),f||(or.has(d)||d.removeAttribute(r),or.delete(d)),m||d.removeAttribute(n)}),cs--,cs||(Kt=new WeakMap,Kt=new WeakMap,or=new WeakMap,ar={})}},Gl=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=kh(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),_h(r,s,n,"aria-hidden")):function(){return null}},di="Dialog",[Kl,h0]=oi(di),[Oh,et]=Kl(di),ql=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,a=y.useRef(null),l=y.useRef(null),[c=!1,u]=kl({prop:r,defaultProp:s,onChange:i});return p.jsx(Oh,{scope:t,triggerRef:a,contentRef:l,contentId:pr(),titleId:pr(),descriptionId:pr(),open:c,onOpenChange:u,onOpenToggle:y.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};ql.displayName=di;var Xl="DialogTrigger",Yl=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=et(Xl,n),i=Qe(t,s.triggerRef);return p.jsx(Ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":mi(s.open),...r,ref:i,onClick:Fe(e.onClick,s.onOpenToggle)})});Yl.displayName=Xl;var fi="DialogPortal",[Fh,Zl]=Kl(fi,{forceMount:void 0}),Jl=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=et(fi,t);return p.jsx(Fh,{scope:t,forceMount:n,children:y.Children.map(r,o=>p.jsx(un,{present:n||i.open,children:p.jsx(ci,{asChild:!0,container:s,children:o})}))})};Jl.displayName=fi;var Cr="DialogOverlay",Ql=y.forwardRef((e,t)=>{const n=Zl(Cr,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=et(Cr,e.__scopeDialog);return i.modal?p.jsx(un,{present:r||i.open,children:p.jsx(Lh,{...s,ref:t})}):null});Ql.displayName=Cr;var Lh=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=et(Cr,n);return p.jsx(ui,{as:cn,allowPinchZoom:!0,shards:[s.contentRef],children:p.jsx(Ne.div,{"data-state":mi(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Bt="DialogContent",ec=y.forwardRef((e,t)=>{const n=Zl(Bt,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=et(Bt,e.__scopeDialog);return p.jsx(un,{present:r||i.open,children:i.modal?p.jsx(Ih,{...s,ref:t}):p.jsx(Bh,{...s,ref:t})})});ec.displayName=Bt;var Ih=y.forwardRef((e,t)=>{const n=et(Bt,e.__scopeDialog),r=y.useRef(null),s=Qe(t,n.contentRef,r);return y.useEffect(()=>{const i=r.current;if(i)return Gl(i)},[]),p.jsx(tc,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Fe(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Fe(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:Fe(e.onFocusOutside,i=>i.preventDefault())})}),Bh=y.forwardRef((e,t)=>{const n=et(Bt,e.__scopeDialog),r=y.useRef(!1),s=y.useRef(!1);return p.jsx(tc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),tc=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,a=et(Bt,n),l=y.useRef(null),c=Qe(t,l);return Fl(),p.jsxs(p.Fragment,{children:[p.jsx(li,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:p.jsx(ai,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":mi(a.open),...o,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(Uh,{titleId:a.titleId}),p.jsx(zh,{contentRef:l,descriptionId:a.descriptionId})]})]})}),hi="DialogTitle",nc=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=et(hi,n);return p.jsx(Ne.h2,{id:s.titleId,...r,ref:t})});nc.displayName=hi;var rc="DialogDescription",sc=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=et(rc,n);return p.jsx(Ne.p,{id:s.descriptionId,...r,ref:t})});sc.displayName=rc;var ic="DialogClose",oc=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=et(ic,n);return p.jsx(Ne.button,{type:"button",...r,ref:t,onClick:Fe(e.onClick,()=>s.onOpenChange(!1))})});oc.displayName=ic;function mi(e){return e?"open":"closed"}var ac="DialogTitleWarning",[m0,lc]=wf(ac,{contentName:Bt,titleName:hi,docsSlug:"dialog"}),Uh=({titleId:e})=>{const t=lc(ac),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 y.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Bh="DialogDescriptionWarning",Uh=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${oc(Bh).contentName}}.`;return y.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},$h=Gl,zh=ql,Wh=Yl,ac=Zl,lc=Jl,cc=ec,uc=nc,dc=sc;function fc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Lo=hc,hi=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Lo(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const f=Fo(u)||Fo(d);return s[c][f]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:f,...m}=u;return Object.entries(m).every(g=>{let[h,x]=g;return Array.isArray(x)?x.includes({...i,...a}[h]):{...i,...a}[h]===x})?[...c,d,f]:c},[]);return Lo(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** +For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},$h="DialogDescriptionWarning",zh=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${lc($h).contentName}}.`;return y.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Wh=ql,Hh=Yl,Gh=Jl,cc=Ql,uc=ec,dc=nc,fc=sc,hc=oc;function mc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Bo=pc,pi=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Bo(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const f=Io(u)||Io(d);return s[c][f]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:f,...m}=u;return Object.entries(m).every(g=>{let[h,x]=g;return Array.isArray(x)?x.includes({...i,...a}[h]):{...i,...a}[h]===x})?[...c,d,f]:c},[]);return Bo(e,o,l,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 Hh=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mc=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** + */const Kh=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gc=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.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 Gh={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"};/** + */var qh={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 Kh=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>y.createElement("svg",{ref:l,...Gh,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:mc("lucide",s),...a},[...o.map(([c,u])=>y.createElement(c,u)),...Array.isArray(i)?i:[i]]));/** + */const Xh=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},l)=>y.createElement("svg",{ref:l,...qh,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:gc("lucide",s),...a},[...o.map(([c,u])=>y.createElement(c,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 zt=(e,t)=>{const n=y.forwardRef(({className:r,...s},i)=>y.createElement(Kh,{ref:i,iconNode:t,className:mc(`lucide-${Hh(e)}`,r),...s}));return n.displayName=`${e}`,n};/** + */const zt=(e,t)=>{const n=y.forwardRef(({className:r,...s},i)=>y.createElement(Xh,{ref:i,iconNode:t,className:gc(`lucide-${Kh(e)}`,r),...s}));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 qh=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Xh=zt("ArrowUpRight",qh);/** + */const Yh=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Zh=zt("ArrowUpRight",Yh);/** * @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 Yh=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],m0=zt("LoaderCircle",Yh);/** + */const Jh=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],p0=zt("LoaderCircle",Jh);/** * @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 Zh=[["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"}]],p0=zt("Loader",Zh);/** + */const Qh=[["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"}]],g0=zt("Loader",Qh);/** * @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 Jh=[["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"}]],Qh=zt("MapPin",Jh);/** + */const em=[["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"}]],tm=zt("MapPin",em);/** * @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 em=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],tm=zt("Smartphone",em);/** + */const nm=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],rm=zt("Smartphone",nm);/** * @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 nm=[["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"}]],rm=zt("Upload",nm);/** + */const sm=[["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"}]],im=zt("Upload",sm);/** * @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 sm=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],im=zt("X",sm),mi="-",om=e=>{const t=lm(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(mi);return a[0]===""&&a.length!==1&&a.shift(),pc(a,t)||am(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},pc=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?pc(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(mi);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Io=/^\[(.+)\]$/,am=e=>{if(Io.test(e)){const t=Io.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},lm=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return um(Object.entries(e.classGroups),n).forEach(([i,o])=>{js(o,r,i,t)}),r},js=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Bo(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(cm(s)){js(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{js(o,Bo(t,i),n,r)})})},Bo=(e,t)=>{let n=e;return t.split(mi).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},cm=e=>e.isThemeGetter,um=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,dm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},gc="!",fm=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const l=[];let c=0,u=0,d;for(let x=0;xu?d-u:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:o}):o},hm=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},mm=e=>({cache:dm(e.cacheSize),parseClassName:fm(e),...om(e)}),pm=/\s+/,gm=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(pm);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:m}=n(c);let g=!!m,h=r(g?f.substring(0,m):f);if(!h){if(!g){a=c+(a.length>0?" "+a:a);continue}if(h=r(f),!h){a=c+(a.length>0?" "+a:a);continue}g=!1}const x=hm(u).join(":"),v=d?x+gc:x,b=v+h;if(i.includes(b))continue;i.push(b);const A=s(h,g);for(let P=0;P0?" "+a:a)}return a};function ym(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rd(u),e());return n=mm(c),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=gm(l,n);return s(l,u),u}return function(){return i(ym.apply(null,arguments))}}const oe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},vc=/^\[(?:([a-z-]+):)?(.+)\]$/i,xm=/^\d+\/\d+$/,bm=new Set(["px","full","screen"]),wm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Sm=/\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$/,Am=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Cm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Pm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dt=e=>tn(e)||bm.has(e)||xm.test(e),vt=e=>dn(e,"length",km),tn=e=>!!e&&!Number.isNaN(Number(e)),ls=e=>dn(e,"number",tn),xn=e=>!!e&&Number.isInteger(Number(e)),Tm=e=>e.endsWith("%")&&tn(e.slice(0,-1)),Y=e=>vc.test(e),xt=e=>wm.test(e),Em=new Set(["length","size","percentage"]),Rm=e=>dn(e,Em,xc),Dm=e=>dn(e,"position",xc),jm=new Set(["image","url"]),Nm=e=>dn(e,jm,_m),Mm=e=>dn(e,"",Vm),bn=()=>!0,dn=(e,t,n)=>{const r=vc.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},km=e=>Sm.test(e)&&!Am.test(e),xc=()=>!1,Vm=e=>Cm.test(e),_m=e=>Pm.test(e),Om=()=>{const e=oe("colors"),t=oe("spacing"),n=oe("blur"),r=oe("brightness"),s=oe("borderColor"),i=oe("borderRadius"),o=oe("borderSpacing"),a=oe("borderWidth"),l=oe("contrast"),c=oe("grayscale"),u=oe("hueRotate"),d=oe("invert"),f=oe("gap"),m=oe("gradientColorStops"),g=oe("gradientColorStopPositions"),h=oe("inset"),x=oe("margin"),v=oe("opacity"),b=oe("padding"),A=oe("saturate"),P=oe("scale"),S=oe("sepia"),T=oe("skew"),E=oe("space"),D=oe("translate"),M=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",Y,t],j=()=>[Y,t],F=()=>["",dt,vt],L=()=>["auto",tn,Y],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>["start","end","center","between","around","evenly","stretch"],K=()=>["","0",Y],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>[tn,Y];return{cacheSize:500,separator:":",theme:{colors:[bn],spacing:[dt,vt],blur:["none","",xt,Y],brightness:ee(),borderColor:[e],borderRadius:["none","","full",xt,Y],borderSpacing:j(),borderWidth:F(),contrast:ee(),grayscale:K(),hueRotate:ee(),invert:K(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[Tm,vt],inset:I(),margin:I(),opacity:ee(),padding:j(),saturate:ee(),scale:ee(),sepia:K(),skew:ee(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[xt]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"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:[...G(),Y]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],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",xn,Y]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Y]}],grow:[{grow:K()}],shrink:[{shrink:K()}],order:[{order:["first","last","none",xn,Y]}],"grid-cols":[{"grid-cols":[bn]}],"col-start-end":[{col:["auto",{span:["full",xn,Y]},Y]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[bn]}],"row-start-end":[{row:["auto",{span:[xn,Y]},Y]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...B()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...B(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...B(),"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:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Y,t]}],"min-w":[{"min-w":[Y,t,"min","max","fit"]}],"max-w":[{"max-w":[Y,t,"none","full","min","max","fit","prose",{screen:[xt]},xt]}],h:[{h:[Y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xt,vt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ls]}],"font-family":[{font:[bn]}],"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",Y]}],"line-clamp":[{"line-clamp":["none",tn,ls]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",dt,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"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:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",dt,vt]}],"underline-offset":[{"underline-offset":["auto",dt,Y]}],"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",Y]}],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",Y]}],"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:[...G(),Dm]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Rm]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Nm]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],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:[...W(),"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:W()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[dt,Y]}],"outline-w":[{outline:[dt,vt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[dt,vt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xt,Mm]}],"shadow-color":[{shadow:[bn]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",xt,Y]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[A]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"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",Y]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-y":[{"scale-y":[P]}],rotate:[{rotate:[xn,Y]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Y]}],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",Y]}],"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",Y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[dt,vt,ls]}],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"]}}},Fm=vm(Om);function q(...e){return Fm(hc(e))}const Lm=$h,Im=zh,Bm=dc,Um=Wh,bc=y.forwardRef(({className:e,...t},n)=>p.jsx(ac,{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}));bc.displayName=ac.displayName;const $m=hi("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"}}),wc=y.forwardRef(({side:e="right",className:t,children:n,...r},s)=>p.jsxs(Um,{children:[p.jsx(bc,{}),p.jsxs(lc,{ref:s,className:q($m({side:e}),t),...r,children:[p.jsxs(dc,{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(im,{className:"size-8"}),p.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));wc.displayName=lc.displayName;const Sc=({className:e,...t})=>p.jsx("div",{className:q("flex flex-col space-y-2 text-center sm:text-left",e),...t});Sc.displayName="SheetHeader";const zm=y.forwardRef(({className:e,...t},n)=>p.jsx(cc,{ref:n,className:q("text-lg font-semibold text-foreground",e),...t}));zm.displayName=cc.displayName;const Wm=y.forwardRef(({className:e,...t},n)=>p.jsx(uc,{ref:n,className:q("text-sm text-muted-foreground",e),...t}));Wm.displayName=uc.displayName;const Hm=hi("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"}}),He=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?cn:"button";return p.jsx(o,{className:q(Hm({variant:t,size:n,className:e})),ref:i,...s})});He.displayName="Button";const Uo=e=>{let t;const n=new Set,r=(c,u)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const f=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(m=>m(t,f))}},s=()=>t,a={setState:r,getState:s,getInitialState:()=>l,subscribe:c=>(n.add(c),()=>n.delete(c))},l=t=e(r,s,a);return a},Gm=e=>e?Uo(e):Uo,Km=e=>e;function qm(e,t=Km){const n=ne.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return ne.useDebugValue(n),n}const Xm=e=>{const t=Gm(e),n=r=>qm(t,r);return Object.assign(n,t),n},Ym=e=>Xm;function Zm(e,t){let n;try{n=e()}catch{return}return{getItem:s=>{var i;const o=l=>l===null?null:JSON.parse(l,void 0),a=(i=n.getItem(s))!=null?i:null;return a instanceof Promise?a.then(o):o(a)},setItem:(s,i)=>n.setItem(s,JSON.stringify(i,void 0)),removeItem:s=>n.removeItem(s)}}const Ns=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Ns(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Ns(r)(n)}}}},Jm=(e,t)=>(n,r,s)=>{let i={storage:Zm(()=>localStorage),partialize:h=>h,version:0,merge:(h,x)=>({...x,...h}),...t},o=!1;const a=new Set,l=new Set;let c=i.storage;if(!c)return e((...h)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...h)},r,s);const u=()=>{const h=i.partialize({...r()});return c.setItem(i.name,{state:h,version:i.version})},d=s.setState;s.setState=(h,x)=>{d(h,x),u()};const f=e((...h)=>{n(...h),u()},r,s);s.getInitialState=()=>f;let m;const g=()=>{var h,x;if(!c)return;o=!1,a.forEach(b=>{var A;return b((A=r())!=null?A:f)});const v=((x=i.onRehydrateStorage)==null?void 0:x.call(i,(h=r())!=null?h:f))||void 0;return Ns(c.getItem.bind(c))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate){const A=i.migrate(b.state,b.version);return A instanceof Promise?A.then(P=>[!0,P]):[!0,A]}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 A;const[P,S]=b;if(m=i.merge(S,(A=r())!=null?A:f),n(m,!0),P)return u()}).then(()=>{v==null||v(m,void 0),m=r(),o=!0,l.forEach(b=>b(m))}).catch(b=>{v==null||v(void 0,b)})};return s.persist={setOptions:h=>{i={...i,...h},h.storage&&(c=h.storage)},clearStorage:()=>{c==null||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:h=>(a.add(h),()=>{a.delete(h)}),onFinishHydration:h=>(l.add(h),()=>{l.delete(h)})},i.skipHydration||g(),m||f},Qm=Jm;var be=(e=>(e.EN="en",e.RU="ru",e))(be||{});const Ye=Ym()(Qm(e=>({lang:"en",setLang:t=>e({lang:t})}),{name:"lang-storage"})),Ms=[{lang:be.RU,data:[{title:"Медиа",link:""},{title:"Контакты",link:"/contacts"},{title:"О выставке",link:"/about"},{title:"Посетителям",link:""},{title:"Экспонентам",link:""}]},{lang:be.EN,data:[{title:"Media",link:""},{title:"Contacts",link:"/contacts"},{title:"About exhibition",link:"/about"},{title:"To the Visitors",link:""},{title:"To the Exhibitors",link:""}]}],Fe=e=>e===be.RU?0:1,ep=()=>{const[e,t]=y.useState(!1),n=Ye(r=>r.lang);return p.jsxs(Lm,{onOpenChange:()=>t(!e),open:e,children:[p.jsx(Im,{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(wc,{className:"overflow-y-auto",children:[p.jsx(Bm,{}),p.jsxs(Sc,{className:"mt-16 flex flex-col gap-2",children:[p.jsx(Re,{to:"",children:p.jsx(He,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:"Официальная поддержка"})}),p.jsx(Re,{to:"/B2B-B2G",onClick:()=>t(!1),children:p.jsx(He,{className:"text-base w-full",size:"sm",children:"B2B | B2G встречи"})})]}),p.jsx("hr",{className:"border-slate-500/20 my-8"}),p.jsx("div",{className:"flex flex-col gap-6",children:Ms[Fe(n)].data.map(r=>p.jsx(Re,{onClick:()=>t(!1),className:"h-10 text-on_surface",to:r.link,children:r.title},r.title))})]})]})},Ac=({className:e})=>p.jsx("div",{className:q("",e),children:p.jsx("img",{src:"/logo.svg",alt:"logo",className:"md:size-auto h-10"})}),Cc=({className:e,img:t,title:n,iconClassName:r})=>p.jsxs("article",{className:q("bg-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:q("md:size-[84px] size-12 bg-teritary p-3",r),children:p.jsx("img",{src:t,alt:"theme icon"})}),p.jsx("h3",{className:"md:mt-6 mt-2 md:text-xl text-sm",children:n})]}),tp=({className:e,nums:t,text:n})=>p.jsxs("article",{className:q("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:t}),p.jsx("h4",{className:"text-on_surface normal text-base",children:n})]}),np=({className:e,title:t,text:n,img:r,link:s,btnText:i})=>p.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:[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:r,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(Re,{className:"absolute bottom-0 left-0",target:"_blank",to:s,children:p.jsxs(He,{className:"text-sm px-0 h-fit py-0 z-20",variant:"link",children:[i," ",p.jsx(Xh,{})]})})]})]}),Pc=({className:e,name:t,date:n,bottomClassName:r})=>p.jsxs("div",{className:q("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:q("h-14 bg-bg_surface_container semibold flex items-center text-lg px-4",r),children:n})]}),rp=({className:e,subtitle:t,title:n,img:r})=>p.jsxs("div",{className:q("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:r,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:t}),p.jsx("h4",{className:"text-[#171717] semibold",children:n})]})]}),pi=y.createContext({});function gi(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const Br=y.createContext(null),yi=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class sp extends y.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,s=r instanceof HTMLElement&&r.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=s-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function ip({children:e,isPresent:t,anchorX:n}){const r=y.useId(),s=y.useRef(null),i=y.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=y.useContext(yi);return y.useInsertionEffect(()=>{const{width:a,height:l,top:c,left:u,right:d}=i.current;if(t||!s.current||!a||!l)return;const f=n==="left"?`left: ${u}`:`right: ${d}`;s.current.dataset.motionPopId=r;const m=document.createElement("style");return o&&(m.nonce=o),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(` + */const om=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],am=zt("X",om),gi="-",lm=e=>{const t=um(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(gi);return a[0]===""&&a.length!==1&&a.shift(),yc(a,t)||cm(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},yc=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?yc(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(gi);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Uo=/^\[(.+)\]$/,cm=e=>{if(Uo.test(e)){const t=Uo.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},um=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return fm(Object.entries(e.classGroups),n).forEach(([i,o])=>{Ms(o,r,i,t)}),r},Ms=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:$o(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(dm(s)){Ms(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Ms(o,$o(t,i),n,r)})})},$o=(e,t)=>{let n=e;return t.split(gi).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},dm=e=>e.isThemeGetter,fm=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,hm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},vc="!",mm=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const l=[];let c=0,u=0,d;for(let x=0;xu?d-u:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:o}):o},pm=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},gm=e=>({cache:hm(e.cacheSize),parseClassName:mm(e),...lm(e)}),ym=/\s+/,vm=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(ym);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:m}=n(c);let g=!!m,h=r(g?f.substring(0,m):f);if(!h){if(!g){a=c+(a.length>0?" "+a:a);continue}if(h=r(f),!h){a=c+(a.length>0?" "+a:a);continue}g=!1}const x=pm(u).join(":"),v=d?x+vc:x,b=v+h;if(i.includes(b))continue;i.push(b);const A=s(h,g);for(let P=0;P0?" "+a:a)}return a};function xm(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rd(u),e());return n=gm(c),r=n.cache.get,s=n.cache.set,i=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=vm(l,n);return s(l,u),u}return function(){return i(xm.apply(null,arguments))}}const oe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},bc=/^\[(?:([a-z-]+):)?(.+)\]$/i,wm=/^\d+\/\d+$/,Sm=new Set(["px","full","screen"]),Am=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Cm=/\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$/,Pm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Tm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Em=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dt=e=>tn(e)||Sm.has(e)||wm.test(e),vt=e=>dn(e,"length",_m),tn=e=>!!e&&!Number.isNaN(Number(e)),us=e=>dn(e,"number",tn),xn=e=>!!e&&Number.isInteger(Number(e)),Rm=e=>e.endsWith("%")&&tn(e.slice(0,-1)),Y=e=>bc.test(e),xt=e=>Am.test(e),Dm=new Set(["length","size","percentage"]),jm=e=>dn(e,Dm,wc),Nm=e=>dn(e,"position",wc),Mm=new Set(["image","url"]),km=e=>dn(e,Mm,Fm),Vm=e=>dn(e,"",Om),bn=()=>!0,dn=(e,t,n)=>{const r=bc.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},_m=e=>Cm.test(e)&&!Pm.test(e),wc=()=>!1,Om=e=>Tm.test(e),Fm=e=>Em.test(e),Lm=()=>{const e=oe("colors"),t=oe("spacing"),n=oe("blur"),r=oe("brightness"),s=oe("borderColor"),i=oe("borderRadius"),o=oe("borderSpacing"),a=oe("borderWidth"),l=oe("contrast"),c=oe("grayscale"),u=oe("hueRotate"),d=oe("invert"),f=oe("gap"),m=oe("gradientColorStops"),g=oe("gradientColorStopPositions"),h=oe("inset"),x=oe("margin"),v=oe("opacity"),b=oe("padding"),A=oe("saturate"),P=oe("scale"),S=oe("sepia"),T=oe("skew"),E=oe("space"),D=oe("translate"),M=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",Y,t],j=()=>[Y,t],F=()=>["",dt,vt],L=()=>["auto",tn,Y],G=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>["start","end","center","between","around","evenly","stretch"],K=()=>["","0",Y],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ee=()=>[tn,Y];return{cacheSize:500,separator:":",theme:{colors:[bn],spacing:[dt,vt],blur:["none","",xt,Y],brightness:ee(),borderColor:[e],borderRadius:["none","","full",xt,Y],borderSpacing:j(),borderWidth:F(),contrast:ee(),grayscale:K(),hueRotate:ee(),invert:K(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[Rm,vt],inset:I(),margin:I(),opacity:ee(),padding:j(),saturate:ee(),scale:ee(),sepia:K(),skew:ee(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[xt]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"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:[...G(),Y]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],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",xn,Y]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Y]}],grow:[{grow:K()}],shrink:[{shrink:K()}],order:[{order:["first","last","none",xn,Y]}],"grid-cols":[{"grid-cols":[bn]}],"col-start-end":[{col:["auto",{span:["full",xn,Y]},Y]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[bn]}],"row-start-end":[{row:["auto",{span:[xn,Y]},Y]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...B()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...B(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...B(),"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:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Y,t]}],"min-w":[{"min-w":[Y,t,"min","max","fit"]}],"max-w":[{"max-w":[Y,t,"none","full","min","max","fit","prose",{screen:[xt]},xt]}],h:[{h:[Y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xt,vt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",us]}],"font-family":[{font:[bn]}],"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",Y]}],"line-clamp":[{"line-clamp":["none",tn,us]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",dt,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"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:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",dt,vt]}],"underline-offset":[{"underline-offset":["auto",dt,Y]}],"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",Y]}],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",Y]}],"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:[...G(),Nm]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",jm]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},km]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],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:[...W(),"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:W()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[dt,Y]}],"outline-w":[{outline:[dt,vt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[dt,vt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xt,Vm]}],"shadow-color":[{shadow:[bn]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",xt,Y]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[A]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"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",Y]}],duration:[{duration:ee()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:ee()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-y":[{"scale-y":[P]}],rotate:[{rotate:[xn,Y]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Y]}],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",Y]}],"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",Y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[dt,vt,us]}],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"]}}},Im=bm(Lm);function q(...e){return Im(pc(e))}const Bm=Wh,Um=Hh,$m=hc,zm=Gh,Sc=y.forwardRef(({className:e,...t},n)=>p.jsx(cc,{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}));Sc.displayName=cc.displayName;const Wm=pi("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"}}),Ac=y.forwardRef(({side:e="right",className:t,children:n,...r},s)=>p.jsxs(zm,{children:[p.jsx(Sc,{}),p.jsxs(uc,{ref:s,className:q(Wm({side:e}),t),...r,children:[p.jsxs(hc,{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(am,{className:"size-8"}),p.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));Ac.displayName=uc.displayName;const Cc=({className:e,...t})=>p.jsx("div",{className:q("flex flex-col space-y-2 text-center sm:text-left",e),...t});Cc.displayName="SheetHeader";const Hm=y.forwardRef(({className:e,...t},n)=>p.jsx(dc,{ref:n,className:q("text-lg font-semibold text-foreground",e),...t}));Hm.displayName=dc.displayName;const Gm=y.forwardRef(({className:e,...t},n)=>p.jsx(fc,{ref:n,className:q("text-sm text-muted-foreground",e),...t}));Gm.displayName=fc.displayName;const Km=pi("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"}}),He=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const o=r?cn:"button";return p.jsx(o,{className:q(Km({variant:t,size:n,className:e})),ref:i,...s})});He.displayName="Button";const zo=e=>{let t;const n=new Set,r=(c,u)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const f=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(m=>m(t,f))}},s=()=>t,a={setState:r,getState:s,getInitialState:()=>l,subscribe:c=>(n.add(c),()=>n.delete(c))},l=t=e(r,s,a);return a},qm=e=>e?zo(e):zo,Xm=e=>e;function Ym(e,t=Xm){const n=ne.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return ne.useDebugValue(n),n}const Zm=e=>{const t=qm(e),n=r=>Ym(t,r);return Object.assign(n,t),n},Jm=e=>Zm;function Qm(e,t){let n;try{n=e()}catch{return}return{getItem:s=>{var i;const o=l=>l===null?null:JSON.parse(l,void 0),a=(i=n.getItem(s))!=null?i:null;return a instanceof Promise?a.then(o):o(a)},setItem:(s,i)=>n.setItem(s,JSON.stringify(i,void 0)),removeItem:s=>n.removeItem(s)}}const ks=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return ks(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return ks(r)(n)}}}},ep=(e,t)=>(n,r,s)=>{let i={storage:Qm(()=>localStorage),partialize:h=>h,version:0,merge:(h,x)=>({...x,...h}),...t},o=!1;const a=new Set,l=new Set;let c=i.storage;if(!c)return e((...h)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...h)},r,s);const u=()=>{const h=i.partialize({...r()});return c.setItem(i.name,{state:h,version:i.version})},d=s.setState;s.setState=(h,x)=>{d(h,x),u()};const f=e((...h)=>{n(...h),u()},r,s);s.getInitialState=()=>f;let m;const g=()=>{var h,x;if(!c)return;o=!1,a.forEach(b=>{var A;return b((A=r())!=null?A:f)});const v=((x=i.onRehydrateStorage)==null?void 0:x.call(i,(h=r())!=null?h:f))||void 0;return ks(c.getItem.bind(c))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate){const A=i.migrate(b.state,b.version);return A instanceof Promise?A.then(P=>[!0,P]):[!0,A]}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 A;const[P,S]=b;if(m=i.merge(S,(A=r())!=null?A:f),n(m,!0),P)return u()}).then(()=>{v==null||v(m,void 0),m=r(),o=!0,l.forEach(b=>b(m))}).catch(b=>{v==null||v(void 0,b)})};return s.persist={setOptions:h=>{i={...i,...h},h.storage&&(c=h.storage)},clearStorage:()=>{c==null||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:h=>(a.add(h),()=>{a.delete(h)}),onFinishHydration:h=>(l.add(h),()=>{l.delete(h)})},i.skipHydration||g(),m||f},tp=ep;var Se=(e=>(e.EN="en",e.RU="ru",e))(Se||{});const Ge=Jm()(tp(e=>({lang:"en",setLang:t=>e({lang:t})}),{name:"lang-storage"})),Vs=[{lang:Se.RU,data:[{title:"Медиа",link:""},{title:"Контакты",link:"/contacts"},{title:"О выставке",link:"/about"},{title:"Посетителям",link:""},{title:"Экспонентам",link:""}]},{lang:Se.EN,data:[{title:"Media",link:""},{title:"Contacts",link:"/contacts"},{title:"About exhibition",link:"/about"},{title:"To the Visitors",link:""},{title:"To the Exhibitors",link:""}]}],ve=e=>e===Se.RU?0:1,np=()=>{const[e,t]=y.useState(!1),n=Ge(r=>r.lang);return p.jsxs(Bm,{onOpenChange:()=>t(!e),open:e,children:[p.jsx(Um,{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(Ac,{className:"overflow-y-auto",children:[p.jsx($m,{}),p.jsxs(Cc,{className:"mt-16 flex flex-col gap-2",children:[p.jsx(De,{to:"",children:p.jsx(He,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:"Официальная поддержка"})}),p.jsx(De,{to:"/B2B-B2G",onClick:()=>t(!1),children:p.jsx(He,{className:"text-base w-full",size:"sm",children:"B2B | B2G встречи"})})]}),p.jsx("hr",{className:"border-slate-500/20 my-8"}),p.jsx("div",{className:"flex flex-col gap-6",children:Vs[ve(n)].data.map(r=>p.jsx(De,{onClick:()=>t(!1),className:"h-10 text-on_surface",to:r.link,children:r.title},r.title))})]})]})},Pc=({className:e})=>p.jsx("div",{className:q("",e),children:p.jsx("img",{src:"/logo.svg",alt:"logo",className:"md:size-auto h-10"})}),Tc=({className:e,img:t,title:n,iconClassName:r})=>p.jsxs("article",{className:q("bg-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:q("md:size-[84px] size-12 bg-teritary p-3",r),children:p.jsx("img",{src:t,alt:"theme icon"})}),p.jsx("h3",{className:"md:mt-6 mt-2 md:text-xl text-sm",children:n})]}),rp=({className:e,nums:t,text:n})=>p.jsxs("article",{className:q("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:t}),p.jsx("h4",{className:"text-on_surface normal text-base",children:n})]}),sp=({className:e,title:t,text:n,img:r,link:s,btnText:i})=>p.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:[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:r,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(De,{className:"absolute bottom-0 left-0",target:"_blank",to:s,children:p.jsxs(He,{className:"text-sm px-0 h-fit py-0 z-20",variant:"link",children:[i," ",p.jsx(Zh,{})]})})]})]}),Ec=({className:e,name:t,date:n,bottomClassName:r})=>p.jsxs("div",{className:q("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:q("h-14 bg-bg_surface_container semibold flex items-center text-lg px-4",r),children:n})]}),ip=({className:e,subtitle:t,title:n,img:r})=>p.jsxs("div",{className:q("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:r,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:t}),p.jsx("h4",{className:"text-[#171717] semibold",children:n})]})]}),yi=y.createContext({});function vi(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const $r=y.createContext(null),xi=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class op extends y.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,s=r instanceof HTMLElement&&r.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=s-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function ap({children:e,isPresent:t,anchorX:n}){const r=y.useId(),s=y.useRef(null),i=y.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=y.useContext(xi);return y.useInsertionEffect(()=>{const{width:a,height:l,top:c,left:u,right:d}=i.current;if(t||!s.current||!a||!l)return;const f=n==="left"?`left: ${u}`:`right: ${d}`;s.current.dataset.motionPopId=r;const m=document.createElement("style");return o&&(m.nonce=o),document.head.appendChild(m),m.sheet&&m.sheet.insertRule(` [data-motion-pop-id="${r}"] { position: absolute !important; width: ${a}px !important; @@ -113,6 +113,10 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do ${f}px !important; top: ${c}px !important; } - `),()=>{document.head.removeChild(m)}},[t]),p.jsx(sp,{isPresent:t,childRef:s,sizeRef:i,children:y.cloneElement(e,{ref:s})})}const op=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const l=gi(ap),c=y.useId(),u=y.useCallback(f=>{l.set(f,!0);for(const m of l.values())if(!m)return;r&&r()},[l,r]),d=y.useMemo(()=>({id:c,initial:t,isPresent:n,custom:s,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),i?[Math.random(),u]:[n,u]);return y.useMemo(()=>{l.forEach((f,m)=>l.set(m,!1))},[n]),y.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=p.jsx(ip,{isPresent:n,anchorX:a,children:e})),p.jsx(Br.Provider,{value:d,children:e})};function ap(){return new Map}function Tc(e=!0){const t=y.useContext(Br);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=y.useId();y.useEffect(()=>{e&&s(i)},[e]);const o=y.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const lr=e=>e.key||"";function $o(e){const t=[];return y.Children.forEach(e,n=>{y.isValidElement(n)&&t.push(n)}),t}const vi=typeof window<"u",Ec=vi?y.useLayoutEffect:y.useEffect,g0=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[l,c]=Tc(o),u=y.useMemo(()=>$o(e),[e]),d=o&&!l?[]:u.map(lr),f=y.useRef(!0),m=y.useRef(u),g=gi(()=>new Map),[h,x]=y.useState(u),[v,b]=y.useState(u);Ec(()=>{f.current=!1,m.current=u;for(let S=0;S{const T=lr(S),E=o&&!l?!1:u===v||d.includes(T),D=()=>{if(g.has(T))g.set(T,!0);else return;let M=!0;g.forEach(V=>{V||(M=!1)}),M&&(P==null||P(),b(m.current),o&&(c==null||c()),r&&r())};return p.jsx(op,{isPresent:E,initial:!f.current||n?void 0:!1,custom:E?void 0:t,presenceAffectsLayout:s,mode:i,onExitComplete:E?void 0:D,anchorX:a,children:S},T)})})},Le=e=>e;let ks=Le;const lp={skipAnimations:!1,useManualTiming:!1};function cp(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,u=!1,d=!1)=>{const m=d&&r?t:n;return u&&i.add(c),m.has(c)||m.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(o=c,r){s=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,s&&(s=!1,l.process(c))}};return l}const cr=["read","resolveKeyframes","update","preRender","render","postRender"],up=40;function Rc(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=cr.reduce((v,b)=>(v[b]=cp(i),v),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=o,m=()=>{const v=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,up),1),s.timestamp=v,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),d.process(s),f.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(m))},g=()=>{n=!0,r=!0,s.isProcessing||e(m)};return{schedule:cr.reduce((v,b)=>{const A=o[b];return v[b]=(P,S=!1,T=!1)=>(n||g(),A.schedule(P,S,T)),v},{}),cancel:v=>{for(let b=0;bzo[e].some(n=>!!t[n])};function dp(e){for(const t in e)rn[t]={...rn[t],...e[t]}}const fp=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 Ar(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||fp.has(e)}let jc=e=>!Ar(e);function hp(e){e&&(jc=t=>t.startsWith("on")?!Ar(t):e(t))}try{hp(require("@emotion/is-prop-valid").default)}catch{}function mp(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(jc(s)||n===!0&&Ar(s)||!t&&!Ar(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function pp(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const Ur=y.createContext({});function _n(e){return typeof e=="string"||Array.isArray(e)}function $r(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const xi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bi=["initial",...xi];function zr(e){return $r(e.animate)||bi.some(t=>_n(e[t]))}function Nc(e){return!!(zr(e)||e.variants)}function gp(e,t){if(zr(e)){const{initial:n,animate:r}=e;return{initial:n===!1||_n(n)?n:void 0,animate:_n(r)?r:void 0}}return e.inherit!==!1?t:{}}function yp(e){const{initial:t,animate:n}=gp(e,y.useContext(Ur));return y.useMemo(()=>({initial:t,animate:n}),[Wo(t),Wo(n)])}function Wo(e){return Array.isArray(e)?e.join(" "):e}const vp=Symbol.for("motionComponentSymbol");function Xt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function xp(e,t,n){return y.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Xt(n)&&(n.current=r))},[t])}const wi=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),bp="framerAppearId",Mc="data-"+wi(bp),{schedule:Si,cancel:y0}=Rc(queueMicrotask,!1),kc=y.createContext({});function wp(e,t,n,r,s){var i,o;const{visualElement:a}=y.useContext(Ur),l=y.useContext(Dc),c=y.useContext(Br),u=y.useContext(yi).reducedMotion,d=y.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,m=y.useContext(kc);f&&!f.projection&&s&&(f.type==="html"||f.type==="svg")&&Sp(d.current,n,s,m);const g=y.useRef(!1);y.useInsertionEffect(()=>{f&&g.current&&f.update(n,c)});const h=n[Mc],x=y.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 Ec(()=>{f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Si.render(f.render),x.current&&f.animationState&&f.animationState.animateChanges())}),y.useEffect(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,h)}),x.current=!1))}),f}function Sp(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Vc(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Xt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function Vc(e){if(e)return e.options.allowProjection!==!1?e.projection:Vc(e.parent)}function Ap({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var i,o;e&&dp(e);function a(c,u){let d;const f={...y.useContext(yi),...c,layoutId:Cp(c)},{isStatic:m}=f,g=yp(c),h=r(c,m);if(!m&&vi){Pp();const x=Tp(f);d=x.MeasureLayout,g.visualElement=wp(s,h,f,t,x.ProjectionNode)}return p.jsxs(Ur.Provider,{value:g,children:[d&&g.visualElement?p.jsx(d,{visualElement:g.visualElement,...f}):null,n(s,c,xp(h,g.visualElement,u),h,m,g.visualElement)]})}a.displayName=`motion.${typeof s=="string"?s:`create(${(o=(i=s.displayName)!==null&&i!==void 0?i:s.name)!==null&&o!==void 0?o:""})`}`;const l=y.forwardRef(a);return l[vp]=s,l}function Cp({layoutId:e}){const t=y.useContext(pi).id;return t&&e!==void 0?t+"-"+e:e}function Pp(e,t){y.useContext(Dc).strict}function Tp(e){const{drag:t,layout:n}=rn;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Ep=["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 Ai(e){return typeof e!="string"||e.includes("-")?!1:!!(Ep.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ho(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ci(e,t,n,r){if(typeof t=="function"){const[s,i]=Ho(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=Ho(r);t=t(n!==void 0?n:e.custom,s,i)}return t}const Vs=e=>Array.isArray(e),Rp=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Dp=e=>Vs(e)?e[e.length-1]||0:e,Pe=e=>!!(e&&e.getVelocity);function gr(e){const t=Pe(e)?e.get():e;return Rp(t)?t.toValue():t}function jp({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,i){const o={latestValues:Np(r,s,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const _c=e=>(t,n)=>{const r=y.useContext(Ur),s=y.useContext(Br),i=()=>jp(e,t,r,s);return n?i():gi(i)};function Np(e,t,n,r){const s={},i=r(e,{});for(const f in i)s[f]=gr(i[f]);let{initial:o,animate:a}=e;const l=zr(e),c=Nc(e);t&&c&&!l&&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"&&!$r(d)){const f=Array.isArray(d)?d:[d];for(let m=0;mt=>typeof t=="string"&&t.startsWith(e),Pi=Oc("--"),Mp=Oc("var(--"),Ti=e=>Mp(e)?kp.test(e.split("/*")[0].trim()):!1,kp=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Fc=(e,t)=>t&&typeof e=="number"?t.transform(e):e,pt=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},On={...hn,transform:e=>pt(0,1,e)},ur={...hn,default:1},Gn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),wt=Gn("deg"),ot=Gn("%"),H=Gn("px"),Vp=Gn("vh"),_p=Gn("vw"),Go={...ot,parse:e=>ot.parse(e)/100,transform:e=>ot.transform(e*100)},Op={borderWidth:H,borderTopWidth:H,borderRightWidth:H,borderBottomWidth:H,borderLeftWidth:H,borderRadius:H,radius:H,borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomRightRadius:H,borderBottomLeftRadius:H,width:H,maxWidth:H,height:H,maxHeight:H,top:H,right:H,bottom:H,left:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,backgroundPositionX:H,backgroundPositionY:H},Fp={rotate:wt,rotateX:wt,rotateY:wt,rotateZ:wt,scale:ur,scaleX:ur,scaleY:ur,scaleZ:ur,skew:wt,skewX:wt,skewY:wt,distance:H,translateX:H,translateY:H,translateZ:H,x:H,y:H,z:H,perspective:H,transformPerspective:H,opacity:On,originX:Go,originY:Go,originZ:H},Ko={...hn,transform:Math.round},Ei={...Op,...Fp,zIndex:Ko,size:H,fillOpacity:On,strokeOpacity:On,numOctaves:Ko},Lp={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ip=fn.length;function Bp(e,t,n){let r="",s=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}}),Lc=()=>({...ji(),attrs:{}}),Ni=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Ic(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Bc=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 Uc(e,t,n,r){Ic(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Bc.has(s)?s:wi(s),t.attrs[s])}const Fn={};function Hp(e){for(const t in e)Fn[t]=e[t],Pi(t)&&(Fn[t].isCSSVariable=!0)}function $c(e,{layout:t,layoutId:n}){return Wt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Fn[e]||e==="opacity")}function Mi(e,t,n){var r;const{style:s}=e,i={};for(const o in s)(Pe(s[o])||t.style&&Pe(t.style[o])||$c(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[o]=s[o]);return i}function zc(e,t,n){const r=Mi(e,t,n);for(const s in e)if(Pe(e[s])||Pe(t[s])){const i=fn.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}function Gp(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 Xo=["x","y","width","height","cx","cy","r"],Kp={useVisualState:_c({scrapeMotionValuesFromProps:zc,createRenderState:Lc,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let i=!!e.drag;if(!i){for(const a in s)if(Wt.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a{Gp(n,r),ae.render(()=>{Di(r,s,Ni(n.tagName),e.transformTemplate),Uc(n,r)})})}})},qp={useVisualState:_c({scrapeMotionValuesFromProps:Mi,createRenderState:ji})};function Wc(e,t,n){for(const r in t)!Pe(t[r])&&!$c(r,n)&&(e[r]=t[r])}function Xp({transformTemplate:e},t){return y.useMemo(()=>{const n=ji();return Ri(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Yp(e,t){const n=e.style||{},r={};return Wc(r,n,e),Object.assign(r,Xp(e,t)),r}function Zp(e,t){const n={},r=Yp(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.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=r,n}function Jp(e,t,n,r){const s=y.useMemo(()=>{const i=Lc();return Di(i,t,Ni(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Wc(i,e.style,e),s.style={...i,...s.style}}return s}function Qp(e=!1){return(n,r,s,{latestValues:i},o)=>{const l=(Ai(n)?Jp:Zp)(r,i,o,n),c=mp(r,typeof n=="string",e),u=n!==y.Fragment?{...c,...l,ref:s}:{},{children:d}=r,f=y.useMemo(()=>Pe(d)?d.get():d,[d]);return y.createElement(n,{...u,children:f})}}function eg(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...Ai(r)?Kp:qp,preloadedFeatures:e,useRender:Qp(s),createVisualElement:t,Component:r};return Ap(o)}}function Hc(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r(yr===void 0&&at.set(we.isProcessing||lp.useManualTiming?we.timestamp:performance.now()),yr),set:e=>{yr=e,queueMicrotask(tg)}};function Vi(e,t){e.indexOf(t)===-1&&e.push(t)}function _i(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Oi{constructor(){this.subscriptions=[]}add(t){return Vi(this.subscriptions,t),()=>_i(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class rg{constructor(t,n={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=at.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&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=at.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ng(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 Oi);const r=this.events[t].add(n);return t==="change"?()=>{r(),ae.read(()=>{this.events.change.getSize()||this.stop()})}:r}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,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}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=at.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Yo)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Yo);return Kc(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 Ln(e,t){return new rg(e,t)}function sg(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ln(n))}function ig(e,t){const n=Wr(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=Dp(i[o]);sg(e,o,a)}}function og(e){return!!(Pe(e)&&e.add)}function _s(e,t){const n=e.getValue("willChange");if(og(n))return n.add(t)}function qc(e){return e.props[Mc]}function Fi(e){let t;return()=>(t===void 0&&(t=e()),t)}const ag=Fi(()=>window.ScrollTimeline!==void 0);class lg{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 r=0;r{if(ag()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,i)=>{s&&s(),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 cg extends lg{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const ht=e=>e*1e3,mt=e=>e/1e3;function Li(e){return typeof e=="function"}function Zo(e,t){e.timeline=t,e.onfinish=null}const Ii=e=>Array.isArray(e)&&typeof e[0]=="number",ug={linearEasing:void 0};function dg(e,t){const n=Fi(e);return()=>{var r;return(r=ug[t])!==null&&r!==void 0?r:n()}}const Cr=dg(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),sn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Xc=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Os={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Cn([0,.65,.55,1]),circOut:Cn([.55,0,1,.45]),backIn:Cn([.31,.01,.66,-.59]),backOut:Cn([.33,1.53,.69,.99])};function Zc(e,t){if(e)return typeof e=="function"&&Cr()?Xc(e,t):Ii(e)?Cn(e):Array.isArray(e)?e.map(n=>Zc(n,t)||Os.easeOut):Os[e]}const Jc=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,fg=1e-7,hg=12;function mg(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=Jc(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>fg&&++amg(i,0,1,e,n);return i=>i===0||i===1?i:Jc(s(i),t,r)}const Qc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,eu=e=>t=>1-e(1-t),tu=Kn(.33,1.53,.69,.99),Bi=eu(tu),nu=Qc(Bi),ru=e=>(e*=2)<1?.5*Bi(e):.5*(2-Math.pow(2,-10*(e-1))),Ui=e=>1-Math.sin(Math.acos(e)),su=eu(Ui),iu=Qc(Ui),ou=e=>/^0[^.\s]+$/u.test(e);function pg(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ou(e):!0}const Rn=e=>Math.round(e*1e5)/1e5,$i=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function gg(e){return e==null}const yg=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,zi=(e,t)=>n=>!!(typeof n=="string"&&yg.test(n)&&n.startsWith(e)||t&&!gg(n)&&Object.prototype.hasOwnProperty.call(n,t)),au=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match($i);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},vg=e=>pt(0,255,e),us={...hn,transform:e=>Math.round(vg(e))},Ot={test:zi("rgb","red"),parse:au("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+us.transform(e)+", "+us.transform(t)+", "+us.transform(n)+", "+Rn(On.transform(r))+")"};function xg(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Fs={test:zi("#"),parse:xg,transform:Ot.transform},Yt={test:zi("hsl","hue"),parse:au("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ot.transform(Rn(t))+", "+ot.transform(Rn(n))+", "+Rn(On.transform(r))+")"},Ce={test:e=>Ot.test(e)||Fs.test(e)||Yt.test(e),parse:e=>Ot.test(e)?Ot.parse(e):Yt.test(e)?Yt.parse(e):Fs.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ot.transform(e):Yt.transform(e)},bg=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function wg(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match($i))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(bg))===null||n===void 0?void 0:n.length)||0)>0}const lu="number",cu="color",Sg="var",Ag="var(",Jo="${}",Cg=/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 In(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(Cg,l=>(Ce.test(l)?(r.color.push(i),s.push(cu),n.push(Ce.parse(l))):l.startsWith(Ag)?(r.var.push(i),s.push(Sg),n.push(l)):(r.number.push(i),s.push(lu),n.push(parseFloat(l))),++i,Jo)).split(Jo);return{values:n,split:a,indexes:r,types:s}}function uu(e){return In(e).values}function du(e){const{split:t,types:n}=In(e),r=t.length;return s=>{let i="";for(let o=0;otypeof e=="number"?0:e;function Tg(e){const t=uu(e);return du(e)(t.map(Pg))}const Pt={test:wg,parse:uu,createTransformer:du,getAnimatableNone:Tg},Eg=new Set(["brightness","contrast","saturate","opacity"]);function Rg(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match($i)||[];if(!r)return e;const s=n.replace(r,"");let i=Eg.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const Dg=/\b([a-z-]*)\(.*?\)/gu,Ls={...Pt,getAnimatableNone:e=>{const t=e.match(Dg);return t?t.map(Rg).join(" "):e}},jg={...Ei,color:Ce,backgroundColor:Ce,outlineColor:Ce,fill:Ce,stroke:Ce,borderColor:Ce,borderTopColor:Ce,borderRightColor:Ce,borderBottomColor:Ce,borderLeftColor:Ce,filter:Ls,WebkitFilter:Ls},Wi=e=>jg[e];function fu(e,t){let n=Wi(e);return n!==Ls&&(n=Pt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ng=new Set(["auto","none","0"]);function Mg(e,t,n){let r=0,s;for(;re===hn||e===H,ea=(e,t)=>parseFloat(e.split(", ")[t]),ta=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return ea(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?ea(i[1],e):0}},kg=new Set(["x","y","z"]),Vg=fn.filter(e=>!kg.has(e));function _g(e){const t=[];return Vg.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const on={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:ta(4,13),y:ta(5,14)};on.translateX=on.x;on.translateY=on.y;const Lt=new Set;let Is=!1,Bs=!1;function hu(){if(Bs){const e=Array.from(Lt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=_g(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Bs=!1,Is=!1,Lt.forEach(e=>e.complete()),Lt.clear()}function mu(){Lt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Bs=!0)})}function Og(){mu(),hu()}class Hi{constructor(t,n,r,s,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Lt.add(this),Is||(Is=!0,ae.read(mu),ae.resolveKeyframes(hu))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let i=0;i/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Fg=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Lg(e){const t=Fg.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function gu(e,t,n=1){const[r,s]=Lg(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return pu(o)?parseFloat(o):o}return Ti(s)?gu(s,t,n+1):s}const yu=e=>t=>t.test(e),Ig={test:e=>e==="auto",parse:e=>e},vu=[hn,H,ot,wt,_p,Vp,Ig],na=e=>vu.find(yu(e));class xu extends Hi{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const ra=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Pt.test(e)||e==="0")&&!e.startsWith("url("));function Bg(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function Hr(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter($g),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const zg=40;class bu{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=at.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>zg?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Og(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=at.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:o,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!Ug(t,r,s,i))if(o)this.options.duration=0;else{l&&l(Hr(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 Us=2e4;function wu(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Us?1/0:t}const le=(e,t,n)=>e+(t-e)*n;function ds(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 Wg({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=ds(l,a,e+1/3),i=ds(l,a,e),o=ds(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Pr(e,t){return n=>n>0?t:e}const fs=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},Hg=[Fs,Ot,Yt],Gg=e=>Hg.find(t=>t.test(e));function sa(e){const t=Gg(e);if(!t)return!1;let n=t.parse(e);return t===Yt&&(n=Wg(n)),n}const ia=(e,t)=>{const n=sa(e),r=sa(t);if(!n||!r)return Pr(e,t);const s={...n};return i=>(s.red=fs(n.red,r.red,i),s.green=fs(n.green,r.green,i),s.blue=fs(n.blue,r.blue,i),s.alpha=le(n.alpha,r.alpha,i),Ot.transform(s))},Kg=(e,t)=>n=>t(e(n)),qn=(...e)=>e.reduce(Kg),$s=new Set(["none","hidden"]);function qg(e,t){return $s.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Xg(e,t){return n=>le(e,t,n)}function Gi(e){return typeof e=="number"?Xg:typeof e=="string"?Ti(e)?Pr:Ce.test(e)?ia:Jg:Array.isArray(e)?Su:typeof e=="object"?Ce.test(e)?ia:Yg:Pr}function Su(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Gi(i)(i,t[o]));return i=>{for(let o=0;o{for(const i in r)n[i]=r[i](s);return n}}function Zg(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i{const n=Pt.createTransformer(t),r=In(e),s=In(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?$s.has(e)&&!s.values.length||$s.has(t)&&!r.values.length?qg(e,t):qn(Su(Zg(r,s),s.values),n):Pr(e,t)};function Au(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?le(e,t,n):Gi(e)(e,t)}const Qg=5;function Cu(e,t,n){const r=Math.max(t-Qg,0);return Kc(n-e(r),t-r)}const ue={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},oa=.001;function ey({duration:e=ue.duration,bounce:t=ue.bounce,velocity:n=ue.velocity,mass:r=ue.mass}){let s,i,o=1-t;o=pt(ue.minDamping,ue.maxDamping,o),e=pt(ue.minDuration,ue.maxDuration,mt(e)),o<1?(s=c=>{const u=c*o,d=u*e,f=u-n,m=zs(c,o),g=Math.exp(-d);return oa-f/m*g},i=c=>{const d=c*o*e,f=d*n+n,m=Math.pow(o,2)*Math.pow(c,2)*e,g=Math.exp(-d),h=zs(Math.pow(c,2),o);return(-s(c)+oa>0?-1:1)*((f-m)*g)/h}):(s=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-.001+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=ny(s,i,a);if(e=ht(e),isNaN(l))return{stiffness:ue.stiffness,damping:ue.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const ty=12;function ny(e,t,n){let r=n;for(let s=1;se[n]!==void 0)}function iy(e){let t={velocity:ue.velocity,stiffness:ue.stiffness,damping:ue.damping,mass:ue.mass,isResolvedFromDuration:!1,...e};if(!aa(e,sy)&&aa(e,ry))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*pt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:ue.mass,stiffness:s,damping:i}}else{const n=ey(e);t={...t,...n,mass:ue.mass},t.isResolvedFromDuration=!0}return t}function Pu(e=ue.visualDuration,t=ue.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:m}=iy({...n,velocity:-mt(n.velocity||0)}),g=f||0,h=c/(2*Math.sqrt(l*u)),x=o-i,v=mt(Math.sqrt(l/u)),b=Math.abs(x)<5;r||(r=b?ue.restSpeed.granular:ue.restSpeed.default),s||(s=b?ue.restDelta.granular:ue.restDelta.default);let A;if(h<1){const S=zs(v,h);A=T=>{const E=Math.exp(-h*v*T);return o-E*((g+h*v*x)/S*Math.sin(S*T)+x*Math.cos(S*T))}}else if(h===1)A=S=>o-Math.exp(-v*S)*(x+(g+v*x)*S);else{const S=v*Math.sqrt(h*h-1);A=T=>{const E=Math.exp(-h*v*T),D=Math.min(S*T,300);return o-E*((g+h*v*x)*Math.sinh(D)+S*x*Math.cosh(D))/S}}const P={calculatedDuration:m&&d||null,next:S=>{const T=A(S);if(m)a.done=S>=d;else{let E=0;h<1&&(E=S===0?ht(g):Cu(A,S,T));const D=Math.abs(E)<=r,M=Math.abs(o-T)<=s;a.done=D&&M}return a.value=a.done?o:T,a},toString:()=>{const S=Math.min(wu(P),Us),T=Xc(E=>P.next(S*E).value,S,30);return S+"ms "+T}};return P}function la({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},m=D=>a!==void 0&&Dl,g=D=>a===void 0?l:l===void 0||Math.abs(a-D)-h*Math.exp(-D/r),A=D=>v+b(D),P=D=>{const M=b(D),V=A(D);f.done=Math.abs(M)<=c,f.value=f.done?v:V};let S,T;const E=D=>{m(f.value)&&(S=D,T=Pu({keyframes:[f.value,g(f.value)],velocity:Cu(A,D,f.value),damping:s,stiffness:i,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:D=>{let M=!1;return!T&&S===void 0&&(M=!0,P(D),E(D)),S!==void 0&&D>=S?T.next(D-S):(!M&&P(D),f)}}}const oy=Kn(.42,0,1,1),ay=Kn(0,0,.58,1),Tu=Kn(.42,0,.58,1),ly=e=>Array.isArray(e)&&typeof e[0]!="number",ca={linear:Le,easeIn:oy,easeInOut:Tu,easeOut:ay,circIn:Ui,circInOut:iu,circOut:su,backIn:Bi,backInOut:nu,backOut:tu,anticipate:ru},ua=e=>{if(Ii(e)){ks(e.length===4);const[t,n,r,s]=e;return Kn(t,n,r,s)}else if(typeof e=="string")return ks(ca[e]!==void 0),ca[e];return e};function cy(e,t,n){const r=[],s=n||Au,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=cy(t,r,s),l=a.length,c=u=>{if(o&&u1)for(;dc(pt(e[0],e[i-1],u)):c}function dy(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=sn(0,t,r);e.push(le(n,1,s))}}function fy(e){const t=[0];return dy(t,e.length-1),t}function hy(e,t){return e.map(n=>n*t)}function my(e,t){return e.map(()=>t||Tu).splice(0,e.length-1)}function Tr({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=ly(r)?r.map(ua):ua(r),i={done:!1,value:t[0]},o=hy(n&&n.length===t.length?n:fy(t),e),a=uy(o,t,{ease:Array.isArray(s)?s:my(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const py=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ae.update(t,!0),stop:()=>Ct(t),now:()=>we.isProcessing?we.timestamp:at.now()}},gy={decay:la,inertia:la,tween:Tr,keyframes:Tr,spring:Pu},yy=e=>e/100;class Ki extends bu{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:l}=this.options;l&&l()};const{name:n,motionValue:r,element:s,keyframes:i}=this.options,o=(s==null?void 0:s.KeyframeResolver)||Hi,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new o(i,a,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=this.options,a=Li(n)?n:gy[n]||Tr;let l,c;a!==Tr&&typeof t[0]!="number"&&(l=qn(yy,Au(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});i==="mirror"&&(c=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=wu(u));const{calculatedDuration:d}=u,f=d+s,m=f*(r+1)-s;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:m}}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:r}=this;if(!r){const{keyframes:D}=this.options;return{done:!0,value:D[D.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:m,repeatType:g,repeatDelay:h,onUpdate:x}=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 A=this.currentTime,P=i;if(m){const D=Math.min(this.currentTime,u)/d;let M=Math.floor(D),V=D%1;!V&&D>=1&&(V=1),V===1&&M--,M=Math.min(M,m+1),!!(M%2)&&(g==="reverse"?(V=1-V,h&&(V-=h/d)):g==="mirror"&&(P=o)),A=pt(0,1,V)*d}const S=b?{done:!1,value:l[0]}:P.next(A);a&&(S.value=a(S.value));let{done:T}=S;!b&&c!==null&&(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return E&&s!==void 0&&(S.value=Hr(l,this.options,s)),x&&x(S.value),E&&this.finish(),S}get duration(){const{resolved:t}=this;return t?mt(t.calculatedDuration):0}get time(){return mt(this.currentTime)}set time(t){t=ht(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=mt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=py,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??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 vy=new Set(["opacity","clipPath","filter","transform"]);function xy(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Zc(a,s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const by=Fi(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Er=10,wy=2e4;function Sy(e){return Li(e.type)||e.type==="spring"||!Yc(e.ease)}function Ay(e,t){const n=new Ki({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(o,a),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:i,type:o,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&Cr()&&Cy(i)&&(i=Eu[i]),Sy(this.options)){const{onComplete:d,onUpdate:f,motionValue:m,element:g,...h}=this.options,x=Ay(t,h);t=x.keyframes,t.length===1&&(t[1]=t[0]),r=x.duration,s=x.times,i=x.ease,o="keyframes"}const u=xy(a.owner.current,l,t,{...this.options,duration:r,times:s,ease:i});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(Zo(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(Hr(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:s,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return mt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return mt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ht(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:r}=n;r.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 Le;const{animation:r}=n;Zo(r,t)}return Le}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:r,duration:s,type:i,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:d,element:f,...m}=this.options,g=new Ki({...m,keyframes:r,duration:s,type:i,ease:o,times:a,isGenerator:!0}),h=ht(this.time);c.setWithVelocity(g.sample(h-Er).value,g.sample(h).value,Er)}const{onStop:l}=this.options;l&&l(),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:r,repeatDelay:s,repeatType:i,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return by()&&r&&vy.has(r)&&!l&&!c&&!s&&i!=="mirror"&&o!==0&&a!=="inertia"}}const Py={type:"spring",stiffness:500,damping:25,restSpeed:10},Ty=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ey={type:"keyframes",duration:.8},Ry={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Dy=(e,{keyframes:t})=>t.length>2?Ey:Wt.has(e)?e.startsWith("scale")?Ty(t[1]):Py:Ry;function jy({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const qi=(e,t,n,r={},s,i)=>o=>{const a=ki(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-ht(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};jy(a)||(u={...u,...Dy(e,u)}),u.duration&&(u.duration=ht(u.duration)),u.repeatDelay&&(u.repeatDelay=ht(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=Hr(u.keyframes,a);if(f!==void 0)return ae.update(()=>{u.onUpdate(f),u.onComplete()}),new cg([])}return!i&&da.supports(u)?new da(u):new Ki(u)};function Ny({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ru(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(o=r);const c=[],u=s&&e.animationState&&e.animationState.getState()[s];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),m=l[d];if(m===void 0||u&&Ny(u,d))continue;const g={delay:n,...ki(o||{},d)};let h=!1;if(window.MotionHandoffAnimation){const v=qc(e);if(v){const b=window.MotionHandoffAnimation(v,d,ae);b!==null&&(g.startTime=b,h=!0)}}_s(e,d),f.start(qi(d,f,m,e.shouldReduceMotion&&Gc.has(d)?{type:!1}:g,e,h));const x=f.animation;x&&c.push(x)}return a&&Promise.all(c).then(()=>{ae.update(()=>{a&&ig(e,a)})}),c}function Ws(e,t,n={}){var r;const s=Wr(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Ru(e,s,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return My(e,t,u+c,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,u]=l==="beforeChildren"?[o,a]:[a,o];return c().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function My(e,t,n=0,r=0,s=1,i){const o=[],a=(e.variantChildren.size-1)*r,l=s===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(ky).forEach((c,u)=>{c.notify("AnimationStart",t),o.push(Ws(c,t,{...i,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(o)}function ky(e,t){return e.sortNodePosition(t)}function Vy(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>Ws(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=Ws(e,t,n);else{const s=typeof t=="function"?Wr(e,t,n.custom):t;r=Promise.all(Ru(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const _y=bi.length;function Du(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Du(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<_y;n++){const r=bi[n],s=e.props[r];(_n(s)||s===!1)&&(t[r]=s)}return t}const Oy=[...xi].reverse(),Fy=xi.length;function Ly(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Vy(e,n,r)))}function Iy(e){let t=Ly(e),n=fa(),r=!0;const s=l=>(c,u)=>{var d;const f=Wr(e,u,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:m,transitionEnd:g,...h}=f;c={...c,...h,...g}}return c};function i(l){t=l(e)}function o(l){const{props:c}=e,u=Du(e.parent)||{},d=[],f=new Set;let m={},g=1/0;for(let x=0;xg&&P,M=!1;const V=Array.isArray(A)?A:[A];let I=V.reduce(s(v),{});S===!1&&(I={});const{prevResolvedValues:j={}}=b,F={...j,...I},L=U=>{D=!0,f.has(U)&&(M=!0,f.delete(U)),b.needsAnimating[U]=!0;const B=e.getValue(U);B&&(B.liveStyle=!1)};for(const U in F){const B=I[U],K=j[U];if(m.hasOwnProperty(U))continue;let Q=!1;Vs(B)&&Vs(K)?Q=!Hc(B,K):Q=B!==K,Q?B!=null?L(U):f.add(U):B!==void 0&&f.has(U)?L(U):b.protectedKeys[U]=!0}b.prevProp=A,b.prevResolvedValues=I,b.isActive&&(m={...m,...I}),r&&e.blockInitialAnimation&&(D=!1),D&&(!(T&&E)||M)&&d.push(...V.map(U=>({animation:U,options:{type:v}})))}if(f.size){const x={};f.forEach(v=>{const b=e.getBaseTarget(v),A=e.getValue(v);A&&(A.liveStyle=!0),x[v]=b??null}),d.push({animation:x})}let h=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(h=!1),r=!1,h?t(d):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(f=>{var m;return(m=f.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),n[l].isActive=c;const d=o(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=fa(),r=!0}}}function By(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Hc(t,e):!1}function kt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fa(){return{animate:kt(!0),whileInView:kt(),whileHover:kt(),whileTap:kt(),whileDrag:kt(),whileFocus:kt(),exit:kt()}}class Dt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Uy extends Dt{constructor(t){super(t),t.animationState||(t.animationState=Iy(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();$r(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 $y=0;class zy extends Dt{constructor(){super(...arguments),this.id=$y++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Wy={animation:{Feature:Uy},exit:{Feature:zy}},Ke={x:!1,y:!1};function ju(){return Ke.x||Ke.y}function Hy(e){return e==="x"||e==="y"?Ke[e]?null:(Ke[e]=!0,()=>{Ke[e]=!1}):Ke.x||Ke.y?null:(Ke.x=Ke.y=!0,()=>{Ke.x=Ke.y=!1})}const Xi=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Bn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Xn(e){return{point:{x:e.pageX,y:e.pageY}}}const Gy=e=>t=>Xi(t)&&e(t,Xn(t));function Dn(e,t,n,r){return Bn(e,t,Gy(n),r)}const ha=(e,t)=>Math.abs(e-t);function Ky(e,t){const n=ha(e.x,t.x),r=ha(e.y,t.y);return Math.sqrt(n**2+r**2)}class Nu{constructor(t,n,{transformPagePoint:r,contextWindow:s,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=ms(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,m=Ky(d.offset,{x:0,y:0})>=3;if(!f&&!m)return;const{point:g}=d,{timestamp:h}=we;this.history.push({...g,timestamp:h});const{onStart:x,onMove:v}=this.handlers;f||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=hs(f,this.transformPagePoint),ae.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=ms(d.type==="pointercancel"?this.lastMoveEventInfo:hs(f,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,x),g&&g(d,x)},!Xi(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const o=Xn(t),a=hs(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=we;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,ms(a,this.history)),this.removeListeners=qn(Dn(this.contextWindow,"pointermove",this.handlePointerMove),Dn(this.contextWindow,"pointerup",this.handlePointerUp),Dn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ct(this.updatePoint)}}function hs(e,t){return t?{point:t(e.point)}:e}function ma(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ms({point:e},t){return{point:e,delta:ma(e,Mu(t)),offset:ma(e,qy(t)),velocity:Xy(t,.1)}}function qy(e){return e[0]}function Mu(e){return e[e.length-1]}function Xy(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=Mu(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>ht(t)));)n--;if(!r)return{x:0,y:0};const i=mt(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const ku=1e-4,Yy=1-ku,Zy=1+ku,Vu=.01,Jy=0-Vu,Qy=0+Vu;function De(e){return e.max-e.min}function ev(e,t,n){return Math.abs(e-t)<=n}function pa(e,t,n,r=.5){e.origin=r,e.originPoint=le(t.min,t.max,e.origin),e.scale=De(n)/De(t),e.translate=le(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Yy&&e.scale<=Zy||isNaN(e.scale))&&(e.scale=1),(e.translate>=Jy&&e.translate<=Qy||isNaN(e.translate))&&(e.translate=0)}function jn(e,t,n,r){pa(e.x,t.x,n.x,r?r.originX:void 0),pa(e.y,t.y,n.y,r?r.originY:void 0)}function ga(e,t,n){e.min=n.min+t.min,e.max=e.min+De(t)}function tv(e,t,n){ga(e.x,t.x,n.x),ga(e.y,t.y,n.y)}function ya(e,t,n){e.min=t.min-n.min,e.max=e.min+De(t)}function Nn(e,t,n){ya(e.x,t.x,n.x),ya(e.y,t.y,n.y)}function nv(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?le(n,e,r.max):Math.min(e,n)),e}function va(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 rv(e,{top:t,left:n,bottom:r,right:s}){return{x:va(e.x,n,s),y:va(e.y,t,r)}}function xa(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=sn(t.min,t.max-r,e.min):r>s&&(n=sn(e.min,e.max-s,t.min)),pt(0,1,n)}function ov(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 Hs=.35;function av(e=Hs){return e===!1?e=0:e===!0&&(e=Hs),{x:ba(e,"left","right"),y:ba(e,"top","bottom")}}function ba(e,t,n){return{min:wa(e,t),max:wa(e,n)}}function wa(e,t){return typeof e=="number"?e:e[t]||0}const Sa=()=>({translate:0,scale:1,origin:0,originPoint:0}),Zt=()=>({x:Sa(),y:Sa()}),Aa=()=>({min:0,max:0}),he=()=>({x:Aa(),y:Aa()});function ze(e){return[e("x"),e("y")]}function _u({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function lv({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function cv(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ps(e){return e===void 0||e===1}function Gs({scale:e,scaleX:t,scaleY:n}){return!ps(e)||!ps(t)||!ps(n)}function Vt(e){return Gs(e)||Ou(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ou(e){return Ca(e.x)||Ca(e.y)}function Ca(e){return e&&e!=="0%"}function Rr(e,t,n){const r=e-n,s=t*r;return n+s}function Pa(e,t,n,r,s){return s!==void 0&&(e=Rr(e,s,r)),Rr(e,n,r)+t}function Ks(e,t=0,n=1,r,s){e.min=Pa(e.min,t,n,r,s),e.max=Pa(e.max,t,n,r,s)}function Fu(e,{x:t,y:n}){Ks(e.x,t.translate,t.scale,t.originPoint),Ks(e.y,n.translate,n.scale,n.originPoint)}const Ta=.999999999999,Ea=1.0000000000001;function uv(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let a=0;aTa&&(t.x=1),t.yTa&&(t.y=1)}function Jt(e,t){e.min=e.min+t,e.max=e.max+t}function Ra(e,t,n,r,s=.5){const i=le(e.min,e.max,s);Ks(e,t,n,i,r)}function Qt(e,t){Ra(e.x,t.x,t.scaleX,t.scale,t.originX),Ra(e.y,t.y,t.scaleY,t.scale,t.originY)}function Lu(e,t){return _u(cv(e.getBoundingClientRect(),t))}function dv(e,t,n){const r=Lu(e,n),{scroll:s}=t;return s&&(Jt(r.x,s.offset.x),Jt(r.y,s.offset.y)),r}const Iu=({current:e})=>e?e.ownerDocument.defaultView:null,fv=new WeakMap;class hv{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=he(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Xn(u).point)},i=(u,d)=>{const{drag:f,dragPropagation:m,onDragStart:g}=this.getProps();if(f&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Hy(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),ze(x=>{let v=this.getAxisMotionValue(x).get()||0;if(ot.test(v)){const{projection:b}=this.visualElement;if(b&&b.layout){const A=b.layout.layoutBox[x];A&&(v=De(A)*(parseFloat(v)/100))}}this.originPoint[x]=v}),g&&ae.postRender(()=>g(u,d)),_s(this.visualElement,"transform");const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:f,dragDirectionLock:m,onDirectionLock:g,onDrag:h}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:x}=d;if(m&&this.currentDirection===null){this.currentDirection=mv(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),h&&h(u,d)},a=(u,d)=>this.stop(u,d),l=()=>ze(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Nu(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Iu(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&ae.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:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!dr(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=nv(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=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&&Xt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=rv(s.layoutBox,n):this.constraints=!1,this.elastic=av(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&ze(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=ov(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Xt(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=dv(r,s.root,this.visualElement.getTransformPagePoint());let o=sv(s.layout.layoutBox,i);if(n){const a=n(lv(o));this.hasMutatedConstraints=!!a,a&&(o=_u(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=ze(u=>{if(!dr(u,n,this.currentDirection))return;let d=l[u]||{};o&&(d={min:0,max:0});const f=s?200:1e6,m=s?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,g)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return _s(this.visualElement,t),r.start(qi(t,r,0,n,this.visualElement,!1))}stopAnimation(){ze(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ze(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()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ze(n=>{const{drag:r}=this.getProps();if(!dr(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n];i.set(t[n]-le(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Xt(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};ze(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=iv({min:l,max:l},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ze(o=>{if(!dr(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(le(l,c,s[o]))})}addListeners(){if(!this.visualElement.current)return;fv.set(this.visualElement,this);const t=this.visualElement.current,n=Dn(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Xt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),ae.read(r);const o=Bn(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(ze(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=Hs,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function dr(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function mv(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class pv extends Dt{constructor(t){super(t),this.removeGroupControls=Le,this.removeListeners=Le,this.controls=new hv(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Le}unmount(){this.removeGroupControls(),this.removeListeners()}}const Da=e=>(t,n)=>{e&&ae.postRender(()=>e(t,n))};class gv extends Dt{constructor(){super(...arguments),this.removePointerDownListener=Le}onPointerDown(t){this.session=new Nu(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Iu(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Da(t),onStart:Da(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&ae.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=Dn(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 vr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ja(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const wn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(H.test(e))e=parseFloat(e);else return e;const n=ja(e,t.target.x),r=ja(e,t.target.y);return`${n}% ${r}%`}},yv={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Pt.parse(e);if(s.length>5)return r;const i=Pt.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const c=le(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}};class vv extends y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;Hp(xv),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),vr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,s||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||ae.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Si.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Bu(e){const[t,n]=Tc(),r=y.useContext(pi);return p.jsx(vv,{...e,layoutGroup:r,switchLayoutGroup:y.useContext(kc),isPresent:t,safeToRemove:n})}const xv={borderRadius:{...wn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wn,borderTopRightRadius:wn,borderBottomLeftRadius:wn,borderBottomRightRadius:wn,boxShadow:yv};function bv(e,t,n){const r=Pe(e)?e:Ln(e);return r.start(qi("",r,t,n)),r.animation}function wv(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Sv=(e,t)=>e.depth-t.depth;class Av{constructor(){this.children=[],this.isDirty=!1}add(t){Vi(this.children,t),this.isDirty=!0}remove(t){_i(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Sv),this.isDirty=!1,this.children.forEach(t)}}function Cv(e,t){const n=at.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Ct(r),e(i-t))};return ae.read(r,!0),()=>Ct(r)}const Uu=["TopLeft","TopRight","BottomLeft","BottomRight"],Pv=Uu.length,Na=e=>typeof e=="string"?parseFloat(e):e,Ma=e=>typeof e=="number"||H.test(e);function Tv(e,t,n,r,s,i){s?(e.opacity=le(0,n.opacity!==void 0?n.opacity:1,Ev(r)),e.opacityExit=le(t.opacity!==void 0?t.opacity:1,0,Rv(r))):i&&(e.opacity=le(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;ort?1:n(sn(e,t,r))}function Va(e,t){e.min=t.min,e.max=t.max}function $e(e,t){Va(e.x,t.x),Va(e.y,t.y)}function _a(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Oa(e,t,n,r,s){return e-=t,e=Rr(e,1/n,r),s!==void 0&&(e=Rr(e,1/s,r)),e}function Dv(e,t=0,n=1,r=.5,s,i=e,o=e){if(ot.test(t)&&(t=parseFloat(t),t=le(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=le(i.min,i.max,r);e===i&&(a-=t),e.min=Oa(e.min,t,n,a,s),e.max=Oa(e.max,t,n,a,s)}function Fa(e,t,[n,r,s],i,o){Dv(e,t[n],t[r],t[s],t.scale,i,o)}const jv=["x","scaleX","originX"],Nv=["y","scaleY","originY"];function La(e,t,n,r){Fa(e.x,t,jv,n?n.x:void 0,r?r.x:void 0),Fa(e.y,t,Nv,n?n.y:void 0,r?r.y:void 0)}function Ia(e){return e.translate===0&&e.scale===1}function zu(e){return Ia(e.x)&&Ia(e.y)}function Ba(e,t){return e.min===t.min&&e.max===t.max}function Mv(e,t){return Ba(e.x,t.x)&&Ba(e.y,t.y)}function Ua(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Wu(e,t){return Ua(e.x,t.x)&&Ua(e.y,t.y)}function $a(e){return De(e.x)/De(e.y)}function za(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class kv{constructor(){this.members=[]}add(t){Vi(this.members,t),t.scheduleRender()}remove(t){if(_i(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(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Vv(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:m,skewY:g}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),m&&(r+=`skewX(${m}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const _t={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Pn=typeof window<"u"&&window.MotionDebug!==void 0,gs=["","X","Y","Z"],_v={visibility:"hidden"},Wa=1e3;let Ov=0;function ys(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Hu(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=qc(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ae,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Hu(r)}function Gu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=Ov++,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,Pn&&(_t.totalNodes=_t.resolvedTargetDeltas=_t.recalculatedProjection=0),this.nodes.forEach(Iv),this.nodes.forEach(Wv),this.nodes.forEach(Hv),this.nodes.forEach(Bv),Pn&&window.MotionDebug.record(_t)},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 l=0;lthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=Cv(f,250),vr.hasAnimatedSinceResize&&(vr.hasAnimatedSinceResize=!1,this.nodes.forEach(Ga))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:m,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||u.getDefaultTransition()||Yv,{onLayoutAnimationStart:x,onLayoutAnimationComplete:v}=u.getProps(),b=!this.targetLayout||!Wu(this.targetLayout,g),A=!f&&m;if(this.options.layoutRoot||this.resumeFrom||A||f&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,A);const P={...ki(h,"layout"),onPlay:x,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else f||Ga(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}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,Ct(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(Gv),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&&Hu(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&&!De(this.snapshot.measuredBox.x)&&!De(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 l=0;l{const S=P/1e3;Ka(d.x,o.x,S),Ka(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Nn(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),qv(this.relativeTarget,this.relativeTargetOrigin,f,S),A&&Mv(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=he()),$e(A,this.relativeTarget)),h&&(this.animationValues=u,Tv(u,c,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&&(Ct(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ae.update(()=>{vr.hasAnimatedSinceResize=!0,this.currentAnimation=bv(0,Wa,{...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(Wa),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&Ku(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||he();const d=De(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=De(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}$e(a,l),Qt(a,u),jn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new kv),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.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:l}={}){const c=this.getStack();c&&c.promote(this,l),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:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&ys("z",o,c,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(Ha),this.root.sharedNodes.clear()}}}function Fv(e){e.updateLayout()}function Lv(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:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?ze(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],m=De(f);f.min=r[d].min,f.max=f.min+m}):Ku(i,n.layoutBox,r)&&ze(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],m=De(r[d]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+m)});const a=Zt();jn(a,r,n.layoutBox);const l=Zt();o?jn(l,e.applyTransform(s,!0),n.measuredBox):jn(l,r,n.layoutBox);const c=!zu(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:m}=d;if(f&&m){const g=he();Nn(g,n.layoutBox,f.layoutBox);const h=he();Nn(h,r,m.layoutBox),Wu(g,h)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Iv(e){Pn&&_t.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 Bv(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Uv(e){e.clearSnapshot()}function Ha(e){e.clearMeasurements()}function $v(e){e.isLayoutDirty=!1}function zv(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ga(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Wv(e){e.resolveTargetDelta()}function Hv(e){e.calcProjection()}function Gv(e){e.resetSkewAndRotation()}function Kv(e){e.removeLeadSnapshot()}function Ka(e,t,n){e.translate=le(t.translate,0,n),e.scale=le(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function qa(e,t,n,r){e.min=le(t.min,n.min,r),e.max=le(t.max,n.max,r)}function qv(e,t,n,r){qa(e.x,t.x,n.x,r),qa(e.y,t.y,n.y,r)}function Xv(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Yv={duration:.45,ease:[.4,0,.1,1]},Xa=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ya=Xa("applewebkit/")&&!Xa("chrome/")?Math.round:Le;function Za(e){e.min=Ya(e.min),e.max=Ya(e.max)}function Zv(e){Za(e.x),Za(e.y)}function Ku(e,t,n){return e==="position"||e==="preserve-aspect"&&!ev($a(t),$a(n),.2)}function Jv(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Qv=Gu({attachResizeListener:(e,t)=>Bn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),vs={current:void 0},qu=Gu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!vs.current){const e=new Qv({});e.mount(window),e.setOptions({layoutScroll:!0}),vs.current=e}return vs.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ex={pan:{Feature:gv},drag:{Feature:pv,ProjectionNode:qu,MeasureLayout:Bu}};function tx(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;const i=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Xu(e,t){const n=tx(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function Ja(e){return!(e.pointerType==="touch"||ju())}function nx(e,t,n={}){const[r,s,i]=Xu(e,n),o=a=>{if(!Ja(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const u=d=>{Ja(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,s)};return r.forEach(a=>{a.addEventListener("pointerenter",o,s)}),i}function Qa(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&ae.postRender(()=>i(t,Xn(t)))}class rx extends Dt{mount(){const{current:t}=this.node;t&&(this.unmount=nx(t,(n,r)=>(Qa(this.node,r,"Start"),s=>Qa(this.node,s,"End"))))}unmount(){}}class sx extends Dt{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=qn(Bn(this.node.current,"focus",()=>this.onFocus()),Bn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Yu=(e,t)=>t?e===t?!0:Yu(e,t.parentElement):!1,ix=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ox(e){return ix.has(e.tagName)||e.tabIndex!==-1}const Tn=new WeakSet;function el(e){return t=>{t.key==="Enter"&&e(t)}}function xs(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const ax=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=el(()=>{if(Tn.has(n))return;xs(n,"down");const s=el(()=>{xs(n,"up")}),i=()=>xs(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function tl(e){return Xi(e)&&!ju()}function lx(e,t,n={}){const[r,s,i]=Xu(e,n),o=a=>{const l=a.currentTarget;if(!tl(a)||Tn.has(l))return;Tn.add(l);const c=t(l,a),u=(m,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!tl(m)||!Tn.has(l))&&(Tn.delete(l),typeof c=="function"&&c(m,{success:g}))},d=m=>{u(m,n.useGlobalTarget||Yu(l,m.target))},f=m=>{u(m,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",f,s)};return r.forEach(a=>{!ox(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),a.addEventListener("focus",c=>ax(c,s),s)}),i}function nl(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&ae.postRender(()=>i(t,Xn(t)))}class cx extends Dt{mount(){const{current:t}=this.node;t&&(this.unmount=lx(t,(n,r)=>(nl(this.node,r,"Start"),(s,{success:i})=>nl(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const qs=new WeakMap,bs=new WeakMap,ux=e=>{const t=qs.get(e.target);t&&t(e)},dx=e=>{e.forEach(ux)};function fx({root:e,...t}){const n=e||document;bs.has(n)||bs.set(n,{});const r=bs.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(dx,{root:e,...t})),r[s]}function hx(e,t,n){const r=fx(t);return qs.set(e,n),r.observe(e),()=>{qs.delete(e),r.unobserve(e)}}const mx={some:0,all:1};class px extends Dt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:mx[s]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return hx(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(gx(t,n))&&this.startObserver()}unmount(){}}function gx({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const yx={inView:{Feature:px},tap:{Feature:cx},focus:{Feature:sx},hover:{Feature:rx}},vx={layout:{ProjectionNode:qu,MeasureLayout:Bu}},Xs={current:null},Zu={current:!1};function xx(){if(Zu.current=!0,!!vi)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Xs.current=e.matches;e.addListener(t),t()}else Xs.current=!1}const bx=[...vu,Ce,Pt],wx=e=>bx.find(yu(e)),rl=new WeakMap;function Sx(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Pe(s))e.addValue(r,s);else if(Pe(i))e.addValue(r,Ln(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,Ln(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const sl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ax{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,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=Hi,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 m=at.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),Zu.current||xx(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Xs.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){rl.delete(this.current),this.projection&&this.projection.unmount(),Ct(this.notifyUpdate),Ct(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 r=Wt.has(t),s=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ae.preRender(this.notifyUpdate),r&&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,()=>{s(),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 rn){const n=rn[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(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):he()}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 r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&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 r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ln(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(pu(s)||ou(s))?s=parseFloat(s):!wx(s)&&Pt.test(n)&&(s=fu(t,n)),this.setBaseTarget(t,Pe(s)?s.get():s)),Pe(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const o=Ci(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(s=o[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Pe(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Oi),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Ju extends Ax{constructor(){super(...arguments),this.KeyframeResolver=xu}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:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Pe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Cx(e){return window.getComputedStyle(e)}class Px extends Ju{constructor(){super(...arguments),this.type="html",this.renderInstance=Ic}readValueFromInstance(t,n){if(Wt.has(n)){const r=Wi(n);return r&&r.default||0}else{const r=Cx(t),s=(Pi(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Lu(t,n)}build(t,n,r){Ri(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Mi(t,n,r)}}class Tx extends Ju{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=he}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Wt.has(n)){const r=Wi(n);return r&&r.default||0}return n=Bc.has(n)?n:wi(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return zc(t,n,r)}build(t,n,r){Di(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){Uc(t,n,r,s)}mount(t){this.isSVGTag=Ni(t.tagName),super.mount(t)}}const Ex=(e,t)=>Ai(e)?new Tx(t):new Px(t,{allowProjection:e!==y.Fragment}),Rx=eg({...Wy,...yx,...ex,...vx},Ex),xr=pp(Rx);var ws,il;function Dx(){if(il)return ws;il=1;var e="Expected a function",t=NaN,n="[object Symbol]",r=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,l=typeof nr=="object"&&nr&&nr.Object===Object&&nr,c=typeof self=="object"&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype,f=d.toString,m=Math.max,g=Math.min,h=function(){return u.Date.now()};function x(S,T,E){var D,M,V,I,j,F,L=0,G=!1,W=!1,U=!0;if(typeof S!="function")throw new TypeError(e);T=P(T)||0,v(E)&&(G=!!E.leading,W="maxWait"in E,V=W?m(P(E.maxWait)||0,T):V,U="trailing"in E?!!E.trailing:U);function B(Z){var te=D,de=M;return D=M=void 0,L=Z,I=S.apply(de,te),I}function K(Z){return L=Z,j=setTimeout(Se,T),G?B(Z):I}function Q(Z){var te=Z-F,de=Z-L,ge=T-te;return W?g(ge,V-de):ge}function ee(Z){var te=Z-F,de=Z-L;return F===void 0||te>=T||te<0||W&&de>=V}function Se(){var Z=h();if(ee(Z))return ke(Z);j=setTimeout(Se,Q(Z))}function ke(Z){return j=void 0,U&&D?B(Z):(D=M=void 0,I)}function Ae(){j!==void 0&&clearTimeout(j),L=0,D=F=M=j=void 0}function Ge(){return j===void 0?I:ke(h())}function Te(){var Z=h(),te=ee(Z);if(D=arguments,M=this,F=Z,te){if(j===void 0)return K(F);if(W)return j=setTimeout(Se,T),B(F)}return j===void 0&&(j=setTimeout(Se,T)),I}return Te.cancel=Ae,Te.flush=Ge,Te}function v(S){var T=typeof S;return!!S&&(T=="object"||T=="function")}function b(S){return!!S&&typeof S=="object"}function A(S){return typeof S=="symbol"||b(S)&&f.call(S)==n}function P(S){if(typeof S=="number")return S;if(A(S))return t;if(v(S)){var T=typeof S.valueOf=="function"?S.valueOf():S;S=v(T)?T+"":T}if(typeof S!="string")return S===0?S:+S;S=S.replace(r,"");var E=i.test(S);return E||o.test(S)?a(S.slice(2),E?2:8):s.test(S)?t:+S}return ws=x,ws}Dx();var jx=typeof window<"u"?y.useLayoutEffect:y.useEffect,Nx=typeof window>"u";function Ys(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const r=a=>Nx?t:window.matchMedia(a).matches,[s,i]=y.useState(()=>n?r(e):t);function o(){i(r(e))}return jx(()=>{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]),s}const x0=({className:e,stage:t})=>{const n=Ys("(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:q("h-2 absolute bg-[#D0D3D8] rounded-[2px] w-full top-0 left-0")}),p.jsx(xr.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})}),p.jsx(xr.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")}),p.jsx(xr.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"}),p.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"}),p.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 Yn=e=>e.type==="checkbox",Ft=e=>e instanceof Date,Ee=e=>e==null;const Qu=e=>typeof e=="object";var pe=e=>!Ee(e)&&!Array.isArray(e)&&Qu(e)&&!Ft(e),ed=e=>pe(e)&&e.target?Yn(e.target)?e.target.checked:e.target.value:e,Mx=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,td=(e,t)=>e.has(Mx(t)),kx=e=>{const t=e.constructor&&e.constructor.prototype;return pe(t)&&t.hasOwnProperty("isPrototypeOf")},Yi=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ne(e){let t;const n=Array.isArray(e),r=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(!(Yi&&(e instanceof Blob||r))&&(n||pe(e)))if(t=n?[]:{},!n&&!kx(e))t=e;else for(const s in e)e.hasOwnProperty(s)&&(t[s]=Ne(e[s]));else return e;return t}var Gr=e=>Array.isArray(e)?e.filter(Boolean):[],me=e=>e===void 0,O=(e,t,n)=>{if(!t||!pe(e))return n;const r=Gr(t.split(/[,[\].]+?/)).reduce((s,i)=>Ee(s)?s:s[i],e);return me(r)||r===e?me(e[t])?n:e[t]:r},We=e=>typeof e=="boolean",Zi=e=>/^\w*$/.test(e),nd=e=>Gr(e.replace(/["|']|\]/g,"").split(/\.|\[/)),se=(e,t,n)=>{let r=-1;const s=Zi(t)?[t]:nd(t),i=s.length,o=i-1;for(;++rne.useContext(rd),Vx=e=>{const{children:t,...n}=e;return ne.createElement(rd.Provider,{value:n},t)};var sd=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==qe.all&&(t._proxyFormState[o]=!r||qe.all),n&&(n[o]=!0),e[o]}});return s},Me=e=>pe(e)&&!Object.keys(e).length,id=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return Me(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!r||qe.all))},Mn=e=>Array.isArray(e)?e:[e],od=(e,t,n)=>!e||!t||e===t||Mn(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Ji(e){const t=ne.useRef(e);t.current=e,ne.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function _x(e){const t=Kr(),{control:n=t.control,disabled:r,name:s,exact:i}=e,[o,a]=ne.useState(n._formState),l=ne.useRef(!0),c=ne.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=ne.useRef(s);return u.current=s,Ji({disabled:r,next:d=>l.current&&od(u.current,d.name,i)&&id(d,c.current,n._updateFormState)&&a({...n._formState,...d}),subject:n._subjects.state}),ne.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),ne.useMemo(()=>sd(o,n,c.current,!1),[o,n])}var it=e=>typeof e=="string",ad=(e,t,n,r,s)=>it(e)?(r&&t.watch.add(e),O(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),O(n,i))):(r&&(t.watchAll=!0),n);function Ox(e){const t=Kr(),{control:n=t.control,name:r,defaultValue:s,disabled:i,exact:o}=e,a=ne.useRef(r);a.current=r,Ji({disabled:i,subject:n._subjects.values,next:u=>{od(a.current,u.name,o)&&c(Ne(ad(a.current,n._names,u.values||n._formValues,!1,s)))}});const[l,c]=ne.useState(n._getWatch(r,s));return ne.useEffect(()=>n._removeUnmounted()),l}function Fx(e){const t=Kr(),{name:n,disabled:r,control:s=t.control,shouldUnregister:i}=e,o=td(s._names.array,n),a=Ox({control:s,name:n,defaultValue:O(s._formValues,n,O(s._defaultValues,n,e.defaultValue)),exact:!0}),l=_x({control:s,name:n,exact:!0}),c=ne.useRef(s.register(n,{...e.rules,value:a,...We(e.disabled)?{disabled:e.disabled}:{}})),u=ne.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!O(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!O(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!O(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!O(l.validatingFields,n)},error:{enumerable:!0,get:()=>O(l.errors,n)}}),[l,n]),d=ne.useMemo(()=>({name:n,value:a,...We(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:f=>c.current.onChange({target:{value:ed(f),name:n},type:Dr.CHANGE}),onBlur:()=>c.current.onBlur({target:{value:O(s._formValues,n),name:n},type:Dr.BLUR}),ref:f=>{const m=O(s._fields,n);m&&f&&(m._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:g=>f.setCustomValidity(g),reportValidity:()=>f.reportValidity()})}}),[n,s._formValues,r,l.disabled,a,s._fields]);return ne.useEffect(()=>{const f=s._options.shouldUnregister||i,m=(g,h)=>{const x=O(s._fields,g);x&&x._f&&(x._f.mount=h)};if(m(n,!0),f){const g=Ne(O(s._options.defaultValues,n));se(s._defaultValues,n,g),me(O(s._formValues,n))&&se(s._formValues,n,g)}return!o&&s.register(n),()=>{(o?f&&!s._state.action:f)?s.unregister(n):m(n,!1)}},[n,s,o,i]),ne.useEffect(()=>{s._updateDisabledField({disabled:r,fields:s._fields,name:n})},[r,n,s]),ne.useMemo(()=>({field:d,formState:l,fieldState:u}),[d,l,u])}const Lx=e=>e.render(Fx(e));var Ix=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},ol=e=>({isOnSubmit:!e||e===qe.onSubmit,isOnBlur:e===qe.onBlur,isOnChange:e===qe.onChange,isOnAll:e===qe.all,isOnTouch:e===qe.onTouched}),al=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const kn=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=O(e,s);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(kn(a,t))break}else if(pe(a)&&kn(a,t))break}}};var Bx=(e,t,n)=>{const r=Mn(O(e,n));return se(r,"root",t[n]),se(e,n,r),e},Qi=e=>e.type==="file",st=e=>typeof e=="function",jr=e=>{if(!Yi)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},br=e=>it(e),eo=e=>e.type==="radio",Nr=e=>e instanceof RegExp;const ll={value:!1,isValid:!1},cl={value:!0,isValid:!0};var ld=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&&!me(e[0].attributes.value)?me(e[0].value)||e[0].value===""?cl:{value:e[0].value,isValid:!0}:cl:ll}return ll};const ul={isValid:!1,value:null};var cd=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,ul):ul;function dl(e,t,n="validate"){if(br(e)||Array.isArray(e)&&e.every(br)||We(e)&&!e)return{type:n,message:br(e)?e:"",ref:t}}var qt=e=>pe(e)&&!Nr(e)?e:{value:e,message:""},fl=async(e,t,n,r,s,i)=>{const{ref:o,refs:a,required:l,maxLength:c,minLength:u,min:d,max:f,pattern:m,validate:g,name:h,valueAsNumber:x,mount:v}=e._f,b=O(n,h);if(!v||t.has(h))return{};const A=a?a[0]:o,P=j=>{s&&A.reportValidity&&(A.setCustomValidity(We(j)?"":j||""),A.reportValidity())},S={},T=eo(o),E=Yn(o),D=T||E,M=(x||Qi(o))&&me(o.value)&&me(b)||jr(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,V=Ix.bind(null,h,r,S),I=(j,F,L,G=ft.maxLength,W=ft.minLength)=>{const U=j?F:L;S[h]={type:j?G:W,message:U,ref:o,...V(j?G:W,U)}};if(i?!Array.isArray(b)||!b.length:l&&(!D&&(M||Ee(b))||We(b)&&!b||E&&!ld(a).isValid||T&&!cd(a).isValid)){const{value:j,message:F}=br(l)?{value:!!l,message:l}:qt(l);if(j&&(S[h]={type:ft.required,message:F,ref:A,...V(ft.required,F)},!r))return P(F),S}if(!M&&(!Ee(d)||!Ee(f))){let j,F;const L=qt(f),G=qt(d);if(!Ee(b)&&!isNaN(b)){const W=o.valueAsNumber||b&&+b;Ee(L.value)||(j=W>L.value),Ee(G.value)||(F=Wnew Date(new Date().toDateString()+" "+Q),B=o.type=="time",K=o.type=="week";it(L.value)&&b&&(j=B?U(b)>U(L.value):K?b>L.value:W>new Date(L.value)),it(G.value)&&b&&(F=B?U(b)+j.value,G=!Ee(F.value)&&b.length<+F.value;if((L||G)&&(I(L,j.message,F.message),!r))return P(S[h].message),S}if(m&&!M&&it(b)){const{value:j,message:F}=qt(m);if(Nr(j)&&!b.match(j)&&(S[h]={type:ft.pattern,message:F,ref:o,...V(ft.pattern,F)},!r))return P(F),S}if(g){if(st(g)){const j=await g(b,n),F=dl(j,A);if(F&&(S[h]={...F,...V(ft.validate,F.message)},!r))return P(F.message),S}else if(pe(g)){let j={};for(const F in g){if(!Me(j)&&!r)break;const L=dl(await g[F](b,n),A,F);L&&(j={...L,...V(F,L.message)},P(L.message),r&&(S[h]=j))}if(!Me(j)&&(S[h]={ref:A,...j},!r))return S}}return P(!0),S};function Ux(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},Zs=e=>Ee(e)||!Qu(e);function St(e,t){if(Zs(e)||Zs(t))return e===t;if(Ft(e)&&Ft(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n){const i=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const o=t[s];if(Ft(i)&&Ft(o)||pe(i)&&pe(o)||Array.isArray(i)&&Array.isArray(o)?!St(i,o):i!==o)return!1}}return!0}var ud=e=>e.type==="select-multiple",zx=e=>eo(e)||Yn(e),As=e=>jr(e)&&e.isConnected,dd=e=>{for(const t in e)if(st(e[t]))return!0;return!1};function Mr(e,t={}){const n=Array.isArray(e);if(pe(e)||n)for(const r in e)Array.isArray(e[r])||pe(e[r])&&!dd(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Mr(e[r],t[r])):Ee(e[r])||(t[r]=!0);return t}function fd(e,t,n){const r=Array.isArray(e);if(pe(e)||r)for(const s in e)Array.isArray(e[s])||pe(e[s])&&!dd(e[s])?me(t)||Zs(n[s])?n[s]=Array.isArray(e[s])?Mr(e[s],[]):{...Mr(e[s])}:fd(e[s],Ee(t)?{}:t[s],n[s]):n[s]=!St(e[s],t[s]);return n}var Sn=(e,t)=>fd(e,t,Mr(t)),hd=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>me(e)?e:t?e===""?NaN:e&&+e:n&&it(e)?new Date(e):r?r(e):e;function Cs(e){const t=e.ref;return Qi(t)?t.files:eo(t)?cd(e.refs).value:ud(t)?[...t.selectedOptions].map(({value:n})=>n):Yn(t)?ld(e.refs).value:hd(me(t.value)?e.ref.value:t.value,e)}var Wx=(e,t,n,r)=>{const s={};for(const i of e){const o=O(t,i);o&&se(s,i,o._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},An=e=>me(e)?e:Nr(e)?e.source:pe(e)?Nr(e.value)?e.value.source:e.value:e;const hl="AsyncFunction";var Hx=e=>!!e&&!!e.validate&&!!(st(e.validate)&&e.validate.constructor.name===hl||pe(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===hl)),Gx=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ml(e,t,n){const r=O(e,n);if(r||Zi(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),o=O(t,i),a=O(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};s.pop()}return{name:n}}var Kx=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,qx=(e,t)=>!Gr(O(e,t)).length&&ve(e,t);const Xx={mode:qe.onSubmit,reValidateMode:qe.onChange,shouldFocusError:!0};function Yx(e={}){let t={...Xx,...e},n={submitCount:0,isDirty:!1,isLoading:st(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},s=pe(t.defaultValues)||pe(t.values)?Ne(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:Ne(s),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Ss(),array:Ss(),state:Ss()},f=ol(t.mode),m=ol(t.reValidateMode),g=t.criteriaMode===qe.all,h=w=>C=>{clearTimeout(c),c=setTimeout(w,C)},x=async w=>{if(!t.disabled&&(u.isValid||w)){const C=t.resolver?Me((await D()).errors):await V(r,!0);C!==n.isValid&&d.state.next({isValid:C})}},v=(w,C)=>{!t.disabled&&(u.isValidating||u.validatingFields)&&((w||Array.from(a.mount)).forEach(R=>{R&&(C?se(n.validatingFields,R,C):ve(n.validatingFields,R))}),d.state.next({validatingFields:n.validatingFields,isValidating:!Me(n.validatingFields)}))},b=(w,C=[],R,_,k=!0,N=!0)=>{if(_&&R&&!t.disabled){if(o.action=!0,N&&Array.isArray(O(r,w))){const z=R(O(r,w),_.argA,_.argB);k&&se(r,w,z)}if(N&&Array.isArray(O(n.errors,w))){const z=R(O(n.errors,w),_.argA,_.argB);k&&se(n.errors,w,z),qx(n.errors,w)}if(u.touchedFields&&N&&Array.isArray(O(n.touchedFields,w))){const z=R(O(n.touchedFields,w),_.argA,_.argB);k&&se(n.touchedFields,w,z)}u.dirtyFields&&(n.dirtyFields=Sn(s,i)),d.state.next({name:w,isDirty:j(w,C),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else se(i,w,C)},A=(w,C)=>{se(n.errors,w,C),d.state.next({errors:n.errors})},P=w=>{n.errors=w,d.state.next({errors:n.errors,isValid:!1})},S=(w,C,R,_)=>{const k=O(r,w);if(k){const N=O(i,w,me(R)?O(s,w):R);me(N)||_&&_.defaultChecked||C?se(i,w,C?N:Cs(k._f)):G(w,N),o.mount&&x()}},T=(w,C,R,_,k)=>{let N=!1,z=!1;const X={name:w};if(!t.disabled){const ye=!!(O(r,w)&&O(r,w)._f&&O(r,w)._f.disabled);if(!R||_){u.isDirty&&(z=n.isDirty,n.isDirty=X.isDirty=j(),N=z!==X.isDirty);const fe=ye||St(O(s,w),C);z=!!(!ye&&O(n.dirtyFields,w)),fe||ye?ve(n.dirtyFields,w):se(n.dirtyFields,w,!0),X.dirtyFields=n.dirtyFields,N=N||u.dirtyFields&&z!==!fe}if(R){const fe=O(n.touchedFields,w);fe||(se(n.touchedFields,w,R),X.touchedFields=n.touchedFields,N=N||u.touchedFields&&fe!==R)}N&&k&&d.state.next(X)}return N?X:{}},E=(w,C,R,_)=>{const k=O(n.errors,w),N=u.isValid&&We(C)&&n.isValid!==C;if(t.delayError&&R?(l=h(()=>A(w,R)),l(t.delayError)):(clearTimeout(c),l=null,R?se(n.errors,w,R):ve(n.errors,w)),(R?!St(k,R):k)||!Me(_)||N){const z={..._,...N&&We(C)?{isValid:C}:{},errors:n.errors,name:w};n={...n,...z},d.state.next(z)}},D=async w=>{v(w,!0);const C=await t.resolver(i,t.context,Wx(w||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return v(w),C},M=async w=>{const{errors:C}=await D(w);if(w)for(const R of w){const _=O(C,R);_?se(n.errors,R,_):ve(n.errors,R)}else n.errors=C;return C},V=async(w,C,R={valid:!0})=>{for(const _ in w){const k=w[_];if(k){const{_f:N,...z}=k;if(N){const X=a.array.has(N.name),ye=k._f&&Hx(k._f);ye&&u.validatingFields&&v([_],!0);const fe=await fl(k,a.disabled,i,g,t.shouldUseNativeValidation&&!C,X);if(ye&&u.validatingFields&&v([_]),fe[N.name]&&(R.valid=!1,C))break;!C&&(O(fe,N.name)?X?Bx(n.errors,fe,N.name):se(n.errors,N.name,fe[N.name]):ve(n.errors,N.name))}!Me(z)&&await V(z,C,R)}}return R.valid},I=()=>{for(const w of a.unMount){const C=O(r,w);C&&(C._f.refs?C._f.refs.every(R=>!As(R)):!As(C._f.ref))&&Te(w)}a.unMount=new Set},j=(w,C)=>!t.disabled&&(w&&C&&se(i,w,C),!St(ee(),s)),F=(w,C,R)=>ad(w,a,{...o.mount?i:me(C)?s:it(w)?{[w]:C}:C},R,C),L=w=>Gr(O(o.mount?i:s,w,t.shouldUnregister?O(s,w,[]):[])),G=(w,C,R={})=>{const _=O(r,w);let k=C;if(_){const N=_._f;N&&(!N.disabled&&se(i,w,hd(C,N)),k=jr(N.ref)&&Ee(C)?"":C,ud(N.ref)?[...N.ref.options].forEach(z=>z.selected=k.includes(z.value)):N.refs?Yn(N.ref)?N.refs.length>1?N.refs.forEach(z=>(!z.defaultChecked||!z.disabled)&&(z.checked=Array.isArray(k)?!!k.find(X=>X===z.value):k===z.value)):N.refs[0]&&(N.refs[0].checked=!!k):N.refs.forEach(z=>z.checked=z.value===k):Qi(N.ref)?N.ref.value="":(N.ref.value=k,N.ref.type||d.values.next({name:w,values:{...i}})))}(R.shouldDirty||R.shouldTouch)&&T(w,k,R.shouldTouch,R.shouldDirty,!0),R.shouldValidate&&Q(w)},W=(w,C,R)=>{for(const _ in C){const k=C[_],N=`${w}.${_}`,z=O(r,N);(a.array.has(w)||pe(k)||z&&!z._f)&&!Ft(k)?W(N,k,R):G(N,k,R)}},U=(w,C,R={})=>{const _=O(r,w),k=a.array.has(w),N=Ne(C);se(i,w,N),k?(d.array.next({name:w,values:{...i}}),(u.isDirty||u.dirtyFields)&&R.shouldDirty&&d.state.next({name:w,dirtyFields:Sn(s,i),isDirty:j(w,N)})):_&&!_._f&&!Ee(N)?W(w,N,R):G(w,N,R),al(w,a)&&d.state.next({...n}),d.values.next({name:o.mount?w:void 0,values:{...i}})},B=async w=>{o.mount=!0;const C=w.target;let R=C.name,_=!0;const k=O(r,R),N=()=>C.type?Cs(k._f):ed(w),z=X=>{_=Number.isNaN(X)||Ft(X)&&isNaN(X.getTime())||St(X,O(i,R,X))};if(k){let X,ye;const fe=N(),tt=w.type===Dr.BLUR||w.type===Dr.FOCUS_OUT,gn=!Gx(k._f)&&!t.resolver&&!O(n.errors,R)&&!k._f.deps||Kx(tt,O(n.touchedFields,R),n.isSubmitted,m,f),nt=al(R,a,tt);se(i,R,fe),tt?(k._f.onBlur&&k._f.onBlur(w),l&&l(0)):k._f.onChange&&k._f.onChange(w);const Nt=T(R,fe,tt,!1),yn=!Me(Nt)||nt;if(!tt&&d.values.next({name:R,type:w.type,values:{...i}}),gn)return u.isValid&&(t.mode==="onBlur"&&tt?x():tt||x()),yn&&d.state.next({name:R,...nt?{}:Nt});if(!tt&&nt&&d.state.next({...n}),t.resolver){const{errors:Mt}=await D([R]);if(z(fe),_){const Qr=ml(n.errors,r,R),tr=ml(Mt,r,Qr.name||R);X=tr.error,R=tr.name,ye=Me(Mt)}}else v([R],!0),X=(await fl(k,a.disabled,i,g,t.shouldUseNativeValidation))[R],v([R]),z(fe),_&&(X?ye=!1:u.isValid&&(ye=await V(r,!0)));_&&(k._f.deps&&Q(k._f.deps),E(R,ye,X,Nt))}},K=(w,C)=>{if(O(n.errors,C)&&w.focus)return w.focus(),1},Q=async(w,C={})=>{let R,_;const k=Mn(w);if(t.resolver){const N=await M(me(w)?w:k);R=Me(N),_=w?!k.some(z=>O(N,z)):R}else w?(_=(await Promise.all(k.map(async N=>{const z=O(r,N);return await V(z&&z._f?{[N]:z}:z)}))).every(Boolean),!(!_&&!n.isValid)&&x()):_=R=await V(r);return d.state.next({...!it(w)||u.isValid&&R!==n.isValid?{}:{name:w},...t.resolver||!w?{isValid:R}:{},errors:n.errors}),C.shouldFocus&&!_&&kn(r,K,w?k:a.mount),_},ee=w=>{const C={...o.mount?i:s};return me(w)?C:it(w)?O(C,w):w.map(R=>O(C,R))},Se=(w,C)=>({invalid:!!O((C||n).errors,w),isDirty:!!O((C||n).dirtyFields,w),error:O((C||n).errors,w),isValidating:!!O(n.validatingFields,w),isTouched:!!O((C||n).touchedFields,w)}),ke=w=>{w&&Mn(w).forEach(C=>ve(n.errors,C)),d.state.next({errors:w?n.errors:{}})},Ae=(w,C,R)=>{const _=(O(r,w,{_f:{}})._f||{}).ref,k=O(n.errors,w)||{},{ref:N,message:z,type:X,...ye}=k;se(n.errors,w,{...ye,...C,ref:_}),d.state.next({name:w,errors:n.errors,isValid:!1}),R&&R.shouldFocus&&_&&_.focus&&_.focus()},Ge=(w,C)=>st(w)?d.values.subscribe({next:R=>w(F(void 0,C),R)}):F(w,C,!0),Te=(w,C={})=>{for(const R of w?Mn(w):a.mount)a.mount.delete(R),a.array.delete(R),C.keepValue||(ve(r,R),ve(i,R)),!C.keepError&&ve(n.errors,R),!C.keepDirty&&ve(n.dirtyFields,R),!C.keepTouched&&ve(n.touchedFields,R),!C.keepIsValidating&&ve(n.validatingFields,R),!t.shouldUnregister&&!C.keepDefaultValue&&ve(s,R);d.values.next({values:{...i}}),d.state.next({...n,...C.keepDirty?{isDirty:j()}:{}}),!C.keepIsValid&&x()},Z=({disabled:w,name:C,field:R,fields:_})=>{(We(w)&&o.mount||w||a.disabled.has(C))&&(w?a.disabled.add(C):a.disabled.delete(C),T(C,Cs(R?R._f:O(_,C)._f),!1,!1,!0))},te=(w,C={})=>{let R=O(r,w);const _=We(C.disabled)||We(t.disabled);return se(r,w,{...R||{},_f:{...R&&R._f?R._f:{ref:{name:w}},name:w,mount:!0,...C}}),a.mount.add(w),R?Z({field:R,disabled:We(C.disabled)?C.disabled:t.disabled,name:w}):S(w,!0,C.value),{..._?{disabled:C.disabled||t.disabled}:{},...t.progressive?{required:!!C.required,min:An(C.min),max:An(C.max),minLength:An(C.minLength),maxLength:An(C.maxLength),pattern:An(C.pattern)}:{},name:w,onChange:B,onBlur:B,ref:k=>{if(k){te(w,C),R=O(r,w);const N=me(k.value)&&k.querySelectorAll&&k.querySelectorAll("input,select,textarea")[0]||k,z=zx(N),X=R._f.refs||[];if(z?X.find(ye=>ye===N):N===R._f.ref)return;se(r,w,{_f:{...R._f,...z?{refs:[...X.filter(As),N,...Array.isArray(O(s,w))?[{}]:[]],ref:{type:N.type,name:w}}:{ref:N}}}),S(w,!1,void 0,N)}else R=O(r,w,{}),R._f&&(R._f.mount=!1),(t.shouldUnregister||C.shouldUnregister)&&!(td(a.array,w)&&o.action)&&a.unMount.add(w)}}},de=()=>t.shouldFocusError&&kn(r,K,a.mount),ge=w=>{We(w)&&(d.state.next({disabled:w}),kn(r,(C,R)=>{const _=O(r,R);_&&(C.disabled=_._f.disabled||w,Array.isArray(_._f.refs)&&_._f.refs.forEach(k=>{k.disabled=_._f.disabled||w}))},0,!1))},re=(w,C)=>async R=>{let _;R&&(R.preventDefault&&R.preventDefault(),R.persist&&R.persist());let k=Ne(i);if(a.disabled.size)for(const N of a.disabled)se(k,N,void 0);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:N,values:z}=await D();n.errors=N,k=z}else await V(r);if(ve(n.errors,"root"),Me(n.errors)){d.state.next({errors:{}});try{await w(k,R)}catch(N){_=N}}else C&&await C({...n.errors},R),de(),setTimeout(de);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Me(n.errors)&&!_,submitCount:n.submitCount+1,errors:n.errors}),_)throw _},$=(w,C={})=>{O(r,w)&&(me(C.defaultValue)?U(w,Ne(O(s,w))):(U(w,C.defaultValue),se(s,w,Ne(C.defaultValue))),C.keepTouched||ve(n.touchedFields,w),C.keepDirty||(ve(n.dirtyFields,w),n.isDirty=C.defaultValue?j(w,Ne(O(s,w))):j()),C.keepError||(ve(n.errors,w),u.isValid&&x()),d.state.next({...n}))},J=(w,C={})=>{const R=w?Ne(w):s,_=Ne(R),k=Me(w),N=k?s:_;if(C.keepDefaultValues||(s=R),!C.keepValues){if(C.keepDirtyValues){const z=new Set([...a.mount,...Object.keys(Sn(s,i))]);for(const X of Array.from(z))O(n.dirtyFields,X)?se(N,X,O(i,X)):U(X,O(N,X))}else{if(Yi&&me(w))for(const z of a.mount){const X=O(r,z);if(X&&X._f){const ye=Array.isArray(X._f.refs)?X._f.refs[0]:X._f.ref;if(jr(ye)){const fe=ye.closest("form");if(fe){fe.reset();break}}}}r={}}i=t.shouldUnregister?C.keepDefaultValues?Ne(s):{}:Ne(N),d.array.next({values:{...N}}),d.values.next({values:{...N}})}a={mount:C.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!C.keepIsValid||!!C.keepDirtyValues,o.watch=!!t.shouldUnregister,d.state.next({submitCount:C.keepSubmitCount?n.submitCount:0,isDirty:k?!1:C.keepDirty?n.isDirty:!!(C.keepDefaultValues&&!St(w,s)),isSubmitted:C.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:k?{}:C.keepDirtyValues?C.keepDefaultValues&&i?Sn(s,i):n.dirtyFields:C.keepDefaultValues&&w?Sn(s,w):C.keepDirty?n.dirtyFields:{},touchedFields:C.keepTouched?n.touchedFields:{},errors:C.keepErrors?n.errors:{},isSubmitSuccessful:C.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},ie=(w,C)=>J(st(w)?w(i):w,C);return{control:{register:te,unregister:Te,getFieldState:Se,handleSubmit:re,setError:Ae,_executeSchema:D,_getWatch:F,_getDirty:j,_updateValid:x,_removeUnmounted:I,_updateFieldArray:b,_updateDisabledField:Z,_getFieldArray:L,_reset:J,_resetDefaultValues:()=>st(t.defaultValues)&&t.defaultValues().then(w=>{ie(w,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:w=>{n={...n,...w}},_disableForm:ge,_subjects:d,_proxyFormState:u,_setErrors:P,get _fields(){return r},get _formValues(){return i},get _state(){return o},set _state(w){o=w},get _defaultValues(){return s},get _names(){return a},set _names(w){a=w},get _formState(){return n},set _formState(w){n=w},get _options(){return t},set _options(w){t={...t,...w}}},trigger:Q,register:te,handleSubmit:re,watch:Ge,setValue:U,getValues:ee,reset:ie,resetField:$,clearErrors:ke,unregister:Te,setError:Ae,setFocus:(w,C={})=>{const R=O(r,w),_=R&&R._f;if(_){const k=_.refs?_.refs[0]:_.ref;k.focus&&(k.focus(),C.shouldSelect&&st(k.select)&&k.select())}},getFieldState:Se}}function b0(e={}){const t=ne.useRef(void 0),n=ne.useRef(void 0),[r,s]=ne.useState({isDirty:!1,isValidating:!1,isLoading:st(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:st(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Yx(e),formState:r});const i=t.current.control;return i._options=e,Ji({subject:i._subjects.state,next:o=>{id(o,i._proxyFormState,i._updateFormState,!0)&&s({...i._formState})}}),ne.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),ne.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),ne.useEffect(()=>{e.values&&!St(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),ne.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),ne.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()}),ne.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=sd(r,i),t.current}var Zx="Label",md=y.forwardRef((e,t)=>p.jsx(je.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));md.displayName=Zx;var pd=md;const Jx=hi("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),gd=y.forwardRef(({className:e,...t},n)=>p.jsx(pd,{ref:n,className:q(Jx(),e),...t}));gd.displayName=pd.displayName;const w0=Vx,yd=y.createContext({}),Qx=({...e})=>p.jsx(yd.Provider,{value:{name:e.name},children:p.jsx(Lx,{...e})}),qr=()=>{const e=y.useContext(yd),t=y.useContext(vd),{getFieldState:n,formState:r}=Kr(),s=n(e.name,r);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`,...s}},vd=y.createContext({}),xd=y.forwardRef(({className:e,...t},n)=>{const r=y.useId();return p.jsx(vd.Provider,{value:{id:r},children:p.jsx("div",{ref:n,className:q("space-y-2",e),...t})})});xd.displayName="FormItem";const bd=y.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:s}=qr();return p.jsx(gd,{ref:n,className:q(r&&"text-destructive",e),htmlFor:s,...t})});bd.displayName="FormLabel";const wd=y.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:s,formMessageId:i}=qr();return p.jsx(cn,{ref:t,id:r,"aria-describedby":n?`${s} ${i}`:`${s}`,"aria-invalid":!!n,...e})});wd.displayName="FormControl";const eb=y.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=qr();return p.jsx("p",{ref:n,id:r,className:q("text-[0.8rem] text-muted-foreground",e),...t})});eb.displayName="FormDescription";const Sd=y.forwardRef(({className:e,children:t,...n},r)=>{const{error:s,formMessageId:i}=qr(),o=s?String(s==null?void 0:s.message):t;return o?p.jsx("p",{ref:r,id:i,className:q("text-[0.8rem] font-medium text-destructive",e),...n,children:o}):null});Sd.displayName="FormMessage";const Js=y.forwardRef(({className:e,type:t,...n},r)=>t!=="file"?p.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:r,...n}):p.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[p.jsx("input",{ref:r,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}),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(rm,{className:"cursor-pointer",size:16})," Upload file"]})]}));Js.displayName="Input";const Ad=y.forwardRef(({className:e,...t},n)=>p.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}));Ad.displayName="Textarea";const S0=({control:e,name:t,label:n,placeholder:r,error:s,type:i="text",className:o,disabled:a,textArea:l=!1,textDark:c,supporText:u,handleChange:d,onPrimary:f=!1})=>p.jsx(Qx,{control:e,name:t,render:({field:m})=>p.jsxs(xd,{className:q(o,"flex flex-col w-full relative"),children:[p.jsx(bd,{className:q("text-xl",f&&"!text-on_primary",c?"text-on_surface":"text-on_surface_v"),children:n}),p.jsx(wd,{children:p.jsx(p.Fragment,{children:l?p.jsx(Ad,{rows:3,...m,placeholder:r,className:q(s&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):i!=="file"?p.jsx(Js,{...m,type:i,placeholder:r,disabled:a,className:q(s&&"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(Js,{type:"file",placeholder:r,onChange:g=>{var x;const h=((x=g.target.files)==null?void 0:x[0])||null;console.log("Выбранный файл:",h),m.onChange(h),d&&d(g)},disabled:a}),m.value&&p.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:["Выбранный файл: ",m.value.name]})]})})}),p.jsx(Sd,{className:q("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",s&&f?"text-teritary_04":"text-[#BA1A1A]"),children:s?s.message:u})]})}),A0=({className:e,delay:t=.15})=>p.jsxs(xr.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:[p.jsx("h3",{className:"text-3xl text-center",children:"Форма успешно отправлена!"}),p.jsx(Re,{className:"w-fit mx-auto",to:"/",children:p.jsx(He,{variant:"outline",children:"Вернуться на главную"})})]}),tb=({className:e,slides:t,active:n,scrollTo:r})=>p.jsx("div",{className:q("flex items-center justify-center gap-2",e),children:Array.from({length:t}).map((s,i)=>p.jsx("span",{onClick:()=>r==null?void 0:r(i),className:q(n===i?"dot-active":"dot")},i))}),nb=["top","right","bottom","left"],Tt=Math.min,_e=Math.max,kr=Math.round,fr=Math.floor,lt=e=>({x:e,y:e}),rb={left:"right",right:"left",bottom:"top",top:"bottom"},sb={start:"end",end:"start"};function Qs(e,t,n){return _e(e,Tt(t,n))}function gt(e,t){return typeof e=="function"?e(t):e}function yt(e){return e.split("-")[0]}function mn(e){return e.split("-")[1]}function to(e){return e==="x"?"y":"x"}function no(e){return e==="y"?"height":"width"}function Et(e){return["top","bottom"].includes(yt(e))?"y":"x"}function ro(e){return to(Et(e))}function ib(e,t,n){n===void 0&&(n=!1);const r=mn(e),s=ro(e),i=no(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Vr(o)),[o,Vr(o)]}function ob(e){const t=Vr(e);return[ei(e),t,ei(t)]}function ei(e){return e.replace(/start|end/g,t=>sb[t])}function ab(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function lb(e,t,n,r){const s=mn(e);let i=ab(yt(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(ei)))),i}function Vr(e){return e.replace(/left|right|bottom|top/g,t=>rb[t])}function cb(e){return{top:0,right:0,bottom:0,left:0,...e}}function Cd(e){return typeof e!="number"?cb(e):{top:e,right:e,bottom:e,left:e}}function _r(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function pl(e,t,n){let{reference:r,floating:s}=e;const i=Et(t),o=ro(t),a=no(o),l=yt(t),c=i==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,f=r[a]/2-s[a]/2;let m;switch(l){case"top":m={x:u,y:r.y-s.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-s.width,y:d};break;default:m={x:r.x,y:r.y}}switch(mn(t)){case"start":m[o]-=f*(n&&c?-1:1);break;case"end":m[o]+=f*(n&&c?-1:1);break}return m}const ub=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=pl(c,r,l),f=r,m={},g=0;for(let h=0;h({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=gt(e,t)||{};if(c==null)return{};const d=Cd(u),f={x:n,y:r},m=ro(s),g=no(m),h=await o.getDimensions(c),x=m==="y",v=x?"top":"left",b=x?"bottom":"right",A=x?"clientHeight":"clientWidth",P=i.reference[g]+i.reference[m]-f[m]-i.floating[g],S=f[m]-i.reference[m],T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let E=T?T[A]:0;(!E||!await(o.isElement==null?void 0:o.isElement(T)))&&(E=a.floating[A]||i.floating[g]);const D=P/2-S/2,M=E/2-h[g]/2-1,V=Tt(d[v],M),I=Tt(d[b],M),j=V,F=E-h[g]-I,L=E/2-h[g]/2+D,G=Qs(j,L,F),W=!l.arrow&&mn(s)!=null&&L!==G&&i.reference[g]/2-(LL<=0)){var I,j;const L=(((I=i.flip)==null?void 0:I.index)||0)+1,G=E[L];if(G)return{data:{index:L,overflows:V},reset:{placement:G}};let W=(j=V.filter(U=>U.overflows[0]<=0).sort((U,B)=>U.overflows[1]-B.overflows[1])[0])==null?void 0:j.placement;if(!W)switch(m){case"bestFit":{var F;const U=(F=V.filter(B=>{if(T){const K=Et(B.placement);return K===b||K==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(K=>K>0).reduce((K,Q)=>K+Q,0)]).sort((B,K)=>B[1]-K[1])[0])==null?void 0:F[0];U&&(W=U);break}case"initialPlacement":W=a;break}if(s!==W)return{reset:{placement:W}}}return{}}}};function gl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function yl(e){return nb.some(t=>e[t]>=0)}const hb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=gt(e,t);switch(r){case"referenceHidden":{const i=await Un(t,{...s,elementContext:"reference"}),o=gl(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:yl(o)}}}case"escaped":{const i=await Un(t,{...s,altBoundary:!0}),o=gl(i,n.floating);return{data:{escapedOffsets:o,escaped:yl(o)}}}default:return{}}}}};async function mb(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=yt(n),a=mn(n),l=Et(n)==="y",c=["left","top"].includes(o)?-1:1,u=i&&l?-1:1,d=gt(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(m=a==="end"?g*-1:g),l?{x:m*u,y:f*c}:{x:f*c,y:m*u}}const pb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await mb(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},gb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:v,y:b}=x;return{x:v,y:b}}},...l}=gt(e,t),c={x:n,y:r},u=await Un(t,l),d=Et(yt(s)),f=to(d);let m=c[f],g=c[d];if(i){const x=f==="y"?"top":"left",v=f==="y"?"bottom":"right",b=m+u[x],A=m-u[v];m=Qs(b,m,A)}if(o){const x=d==="y"?"top":"left",v=d==="y"?"bottom":"right",b=g+u[x],A=g-u[v];g=Qs(b,g,A)}const h=a.fn({...t,[f]:m,[d]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:o}}}}}},yb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=gt(e,t),u={x:n,y:r},d=Et(s),f=to(d);let m=u[f],g=u[d];const h=gt(a,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const A=f==="y"?"height":"width",P=i.reference[f]-i.floating[A]+x.mainAxis,S=i.reference[f]+i.reference[A]-x.mainAxis;mS&&(m=S)}if(c){var v,b;const A=f==="y"?"width":"height",P=["top","left"].includes(yt(s)),S=i.reference[d]-i.floating[A]+(P&&((v=o.offset)==null?void 0:v[d])||0)+(P?0:x.crossAxis),T=i.reference[d]+i.reference[A]+(P?0:((b=o.offset)==null?void 0:b[d])||0)-(P?x.crossAxis:0);gT&&(g=T)}return{[f]:m,[d]:g}}}},vb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...c}=gt(e,t),u=await Un(t,c),d=yt(s),f=mn(s),m=Et(s)==="y",{width:g,height:h}=i.floating;let x,v;d==="top"||d==="bottom"?(x=d,v=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,x=f==="end"?"top":"bottom");const b=h-u.top-u.bottom,A=g-u.left-u.right,P=Tt(h-u[x],b),S=Tt(g-u[v],A),T=!t.middlewareData.shift;let E=P,D=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=b),T&&!f){const V=_e(u.left,0),I=_e(u.right,0),j=_e(u.top,0),F=_e(u.bottom,0);m?D=g-2*(V!==0||I!==0?V+I:_e(u.left,u.right)):E=h-2*(j!==0||F!==0?j+F:_e(u.top,u.bottom))}await l({...t,availableWidth:D,availableHeight:E});const M=await o.getDimensions(a.floating);return g!==M.width||h!==M.height?{reset:{rects:!0}}:{}}}};function Xr(){return typeof window<"u"}function pn(e){return Pd(e)?(e.nodeName||"").toLowerCase():"#document"}function Ie(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ut(e){var t;return(t=(Pd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Pd(e){return Xr()?e instanceof Node||e instanceof Ie(e).Node:!1}function Ze(e){return Xr()?e instanceof Element||e instanceof Ie(e).Element:!1}function ct(e){return Xr()?e instanceof HTMLElement||e instanceof Ie(e).HTMLElement:!1}function vl(e){return!Xr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ie(e).ShadowRoot}function Zn(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Je(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function xb(e){return["table","td","th"].includes(pn(e))}function Yr(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function so(e){const t=io(),n=Ze(e)?Je(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="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(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function bb(e){let t=Rt(e);for(;ct(t)&&!an(t);){if(so(t))return t;if(Yr(t))return null;t=Rt(t)}return null}function io(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function an(e){return["html","body","#document"].includes(pn(e))}function Je(e){return Ie(e).getComputedStyle(e)}function Zr(e){return Ze(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rt(e){if(pn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vl(e)&&e.host||ut(e);return vl(t)?t.host:t}function Td(e){const t=Rt(e);return an(t)?e.ownerDocument?e.ownerDocument.body:e.body:ct(t)&&Zn(t)?t:Td(t)}function $n(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Td(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Ie(s);if(i){const a=ti(o);return t.concat(o,o.visualViewport||[],Zn(s)?s:[],a&&n?$n(a):[])}return t.concat(s,$n(s,[],n))}function ti(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ed(e){const t=Je(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=ct(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=kr(n)!==i||kr(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function oo(e){return Ze(e)?e:e.contextElement}function nn(e){const t=oo(e);if(!ct(t))return lt(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=Ed(t);let o=(i?kr(n.width):n.width)/r,a=(i?kr(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const wb=lt(0);function Rd(e){const t=Ie(e);return!io()||!t.visualViewport?wb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Sb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ie(e)?!1:t}function Ut(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=oo(e);let o=lt(1);t&&(r?Ze(r)&&(o=nn(r)):o=nn(e));const a=Sb(i,n,r)?Rd(i):lt(0);let l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const f=Ie(i),m=r&&Ze(r)?Ie(r):r;let g=f,h=ti(g);for(;h&&r&&m!==g;){const x=nn(h),v=h.getBoundingClientRect(),b=Je(h),A=v.left+(h.clientLeft+parseFloat(b.paddingLeft))*x.x,P=v.top+(h.clientTop+parseFloat(b.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=A,c+=P,g=Ie(h),h=ti(g)}}return _r({width:u,height:d,x:l,y:c})}function ao(e,t){const n=Zr(e).scrollLeft;return t?t.left+n:Ut(ut(e)).left+n}function Dd(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:ao(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function Ab(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=ut(r),a=t?Yr(t.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=lt(1);const u=lt(0),d=ct(r);if((d||!d&&!i)&&((pn(r)!=="body"||Zn(o))&&(l=Zr(r)),ct(r))){const m=Ut(r);c=nn(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const f=o&&!d&&!i?Dd(o,l,!0):lt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function Cb(e){return Array.from(e.getClientRects())}function Pb(e){const t=ut(e),n=Zr(e),r=e.ownerDocument.body,s=_e(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=_e(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+ao(e);const a=-n.scrollTop;return Je(r).direction==="rtl"&&(o+=_e(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function Tb(e,t){const n=Ie(e),r=ut(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const c=io();(!c||c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}function Eb(e,t){const n=Ut(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=ct(e)?nn(e):lt(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,c=r*i.y;return{width:o,height:a,x:l,y:c}}function xl(e,t,n){let r;if(t==="viewport")r=Tb(e,n);else if(t==="document")r=Pb(ut(e));else if(Ze(t))r=Eb(t,n);else{const s=Rd(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return _r(r)}function jd(e,t){const n=Rt(e);return n===t||!Ze(n)||an(n)?!1:Je(n).position==="fixed"||jd(n,t)}function Rb(e,t){const n=t.get(e);if(n)return n;let r=$n(e,[],!1).filter(a=>Ze(a)&&pn(a)!=="body"),s=null;const i=Je(e).position==="fixed";let o=i?Rt(e):e;for(;Ze(o)&&!an(o);){const a=Je(o),l=so(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Zn(o)&&!l&&jd(e,o))?r=r.filter(u=>u!==o):s=a,o=Rt(o)}return t.set(e,r),r}function Db(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?Yr(t)?[]:Rb(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,u)=>{const d=xl(t,u,s);return c.top=_e(d.top,c.top),c.right=Tt(d.right,c.right),c.bottom=Tt(d.bottom,c.bottom),c.left=_e(d.left,c.left),c},xl(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function jb(e){const{width:t,height:n}=Ed(e);return{width:t,height:n}}function Nb(e,t,n){const r=ct(t),s=ut(t),i=n==="fixed",o=Ut(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=lt(0);if(r||!r&&!i)if((pn(t)!=="body"||Zn(s))&&(a=Zr(t)),r){const f=Ut(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else s&&(l.x=ao(s));const c=s&&!r&&!i?Dd(s,a):lt(0),u=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:o.width,height:o.height}}function Ps(e){return Je(e).position==="static"}function bl(e,t){if(!ct(e)||Je(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ut(e)===n&&(n=n.ownerDocument.body),n}function Nd(e,t){const n=Ie(e);if(Yr(e))return n;if(!ct(e)){let s=Rt(e);for(;s&&!an(s);){if(Ze(s)&&!Ps(s))return s;s=Rt(s)}return n}let r=bl(e,t);for(;r&&xb(r)&&Ps(r);)r=bl(r,t);return r&&an(r)&&Ps(r)&&!so(r)?n:r||bb(e)||n}const Mb=async function(e){const t=this.getOffsetParent||Nd,n=this.getDimensions,r=await n(e.floating);return{reference:Nb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function kb(e){return Je(e).direction==="rtl"}const Vb={convertOffsetParentRelativeRectToViewportRelativeRect:Ab,getDocumentElement:ut,getClippingRect:Db,getOffsetParent:Nd,getElementRects:Mb,getClientRects:Cb,getDimensions:jb,getScale:nn,isElement:Ze,isRTL:kb};function Md(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _b(e,t){let n=null,r;const s=ut(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:m}=c;if(a||t(),!f||!m)return;const g=fr(d),h=fr(s.clientWidth-(u+f)),x=fr(s.clientHeight-(d+m)),v=fr(u),A={rootMargin:-g+"px "+-h+"px "+-x+"px "+-v+"px",threshold:_e(0,Tt(1,l))||1};let P=!0;function S(T){const E=T[0].intersectionRatio;if(E!==l){if(!P)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!Md(c,e.getBoundingClientRect())&&o(),P=!1}try{n=new IntersectionObserver(S,{...A,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,A)}n.observe(e)}return o(!0),i}function Ob(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=oo(e),u=s||i?[...c?$n(c):[],...$n(t)]:[];u.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=c&&a?_b(c,n):null;let f=-1,m=null;o&&(m=new ResizeObserver(v=>{let[b]=v;b&&b.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var A;(A=m)==null||A.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let g,h=l?Ut(e):null;l&&x();function x(){const v=Ut(e);h&&!Md(h,v)&&n(),h=v,g=requestAnimationFrame(x)}return n(),()=>{var v;u.forEach(b=>{s&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(v=m)==null||v.disconnect(),m=null,l&&cancelAnimationFrame(g)}}const Fb=pb,Lb=gb,Ib=fb,Bb=vb,Ub=hb,wl=db,$b=yb,zb=(e,t,n)=>{const r=new Map,s={platform:Vb,...n},i={...s.platform,_c:r};return ub(e,t,{...s,platform:i})};var wr=typeof document<"u"?y.useLayoutEffect:y.useEffect;function Or(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Or(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!Or(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function kd(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sl(e,t){const n=kd(e);return Math.round(t*n)/n}function Ts(e){const t=y.useRef(e);return wr(()=>{t.current=e}),t}function Wb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=y.useState(r);Or(f,r)||m(r);const[g,h]=y.useState(null),[x,v]=y.useState(null),b=y.useCallback(B=>{B!==T.current&&(T.current=B,h(B))},[]),A=y.useCallback(B=>{B!==E.current&&(E.current=B,v(B))},[]),P=i||g,S=o||x,T=y.useRef(null),E=y.useRef(null),D=y.useRef(u),M=l!=null,V=Ts(l),I=Ts(s),j=Ts(c),F=y.useCallback(()=>{if(!T.current||!E.current)return;const B={placement:t,strategy:n,middleware:f};I.current&&(B.platform=I.current),zb(T.current,E.current,B).then(K=>{const Q={...K,isPositioned:j.current!==!1};L.current&&!Or(D.current,Q)&&(D.current=Q,Dl.flushSync(()=>{d(Q)}))})},[f,t,n,I,j]);wr(()=>{c===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,d(B=>({...B,isPositioned:!1})))},[c]);const L=y.useRef(!1);wr(()=>(L.current=!0,()=>{L.current=!1}),[]),wr(()=>{if(P&&(T.current=P),S&&(E.current=S),P&&S){if(V.current)return V.current(P,S,F);F()}},[P,S,F,V,M]);const G=y.useMemo(()=>({reference:T,floating:E,setReference:b,setFloating:A}),[b,A]),W=y.useMemo(()=>({reference:P,floating:S}),[P,S]),U=y.useMemo(()=>{const B={position:n,left:0,top:0};if(!W.floating)return B;const K=Sl(W.floating,u.x),Q=Sl(W.floating,u.y);return a?{...B,transform:"translate("+K+"px, "+Q+"px)",...kd(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:Q}},[n,a,W.floating,u.x,u.y]);return y.useMemo(()=>({...u,update:F,refs:G,elements:W,floatingStyles:U}),[u,F,G,W,U])}const Hb=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?wl({element:r.current,padding:s}).fn(n):{}:r?wl({element:r,padding:s}).fn(n):{}}}},Gb=(e,t)=>({...Fb(e),options:[e,t]}),Kb=(e,t)=>({...Lb(e),options:[e,t]}),qb=(e,t)=>({...$b(e),options:[e,t]}),Xb=(e,t)=>({...Ib(e),options:[e,t]}),Yb=(e,t)=>({...Bb(e),options:[e,t]}),Zb=(e,t)=>({...Ub(e),options:[e,t]}),Jb=(e,t)=>({...Hb(e),options:[e,t]});var Qb="Arrow",Vd=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return p.jsx(je.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Vd.displayName=Qb;var ew=Vd;function tw(e){const[t,n]=y.useState(void 0);return It(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var lo="Popper",[_d,Od]=si(lo),[nw,Fd]=_d(lo),Ld=e=>{const{__scopePopper:t,children:n}=e,[r,s]=y.useState(null);return p.jsx(nw,{scope:t,anchor:r,onAnchorChange:s,children:n})};Ld.displayName=lo;var Id="PopperAnchor",Bd=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=Fd(Id,n),o=y.useRef(null),a=Qe(t,o);return y.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:p.jsx(je.div,{...s,ref:a})});Bd.displayName=Id;var co="PopperContent",[rw,sw]=_d(co),Ud=y.forwardRef((e,t)=>{var Z,te,de,ge,re,$;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:g,...h}=e,x=Fd(co,n),[v,b]=y.useState(null),A=Qe(t,J=>b(J)),[P,S]=y.useState(null),T=tw(P),E=(T==null?void 0:T.width)??0,D=(T==null?void 0:T.height)??0,M=r+(i!=="center"?"-"+i:""),V=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},I=Array.isArray(c)?c:[c],j=I.length>0,F={padding:V,boundary:I.filter(ow),altBoundary:j},{refs:L,floatingStyles:G,placement:W,isPositioned:U,middlewareData:B}=Wb({strategy:"fixed",placement:M,whileElementsMounted:(...J)=>Ob(...J,{animationFrame:m==="always"}),elements:{reference:x.anchor},middleware:[Gb({mainAxis:s+D,alignmentAxis:o}),l&&Kb({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?qb():void 0,...F}),l&&Xb({...F}),Yb({...F,apply:({elements:J,rects:ie,availableWidth:xe,availableHeight:Ve})=>{const{width:Ue,height:w}=ie.reference,C=J.floating.style;C.setProperty("--radix-popper-available-width",`${xe}px`),C.setProperty("--radix-popper-available-height",`${Ve}px`),C.setProperty("--radix-popper-anchor-width",`${Ue}px`),C.setProperty("--radix-popper-anchor-height",`${w}px`)}}),P&&Jb({element:P,padding:a}),aw({arrowWidth:E,arrowHeight:D}),f&&Zb({strategy:"referenceHidden",...F})]}),[K,Q]=Wd(W),ee=At(g);It(()=>{U&&(ee==null||ee())},[U,ee]);const Se=(Z=B.arrow)==null?void 0:Z.x,ke=(te=B.arrow)==null?void 0:te.y,Ae=((de=B.arrow)==null?void 0:de.centerOffset)!==0,[Ge,Te]=y.useState();return It(()=>{v&&Te(window.getComputedStyle(v).zIndex)},[v]),p.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:U?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ge,"--radix-popper-transform-origin":[(ge=B.transformOrigin)==null?void 0:ge.x,(re=B.transformOrigin)==null?void 0:re.y].join(" "),...(($=B.hide)==null?void 0:$.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(rw,{scope:n,placedSide:K,onArrowChange:S,arrowX:Se,arrowY:ke,shouldHideArrow:Ae,children:p.jsx(je.div,{"data-side":K,"data-align":Q,...h,ref:A,style:{...h.style,animation:U?void 0:"none"}})})})});Ud.displayName=co;var $d="PopperArrow",iw={top:"bottom",right:"left",bottom:"top",left:"right"},zd=y.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=sw($d,r),o=iw[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(ew,{...s,ref:n,style:{...s.style,display:"block"}})})});zd.displayName=$d;function ow(e){return e!==null}var aw=e=>({name:"transformOrigin",options:e,fn(t){var x,v,b;const{placement:n,rects:r,middlewareData:s}=t,o=((x=s.arrow)==null?void 0:x.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,u]=Wd(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((v=s.arrow)==null?void 0:v.x)??0)+a/2,m=(((b=s.arrow)==null?void 0:b.y)??0)+l/2;let g="",h="";return c==="bottom"?(g=o?d:`${f}px`,h=`${-l}px`):c==="top"?(g=o?d:`${f}px`,h=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,h=o?d:`${m}px`):c==="left"&&(g=`${r.floating.width+l}px`,h=o?d:`${m}px`),{data:{x:g,y:h}}}});function Wd(e){const[t,n="center"]=e.split("-");return[t,n]}var lw=Ld,Hd=Bd,cw=Ud,uw=zd,uo="Popover",[Gd,C0]=si(uo,[Od]),Jn=Od(),[dw,jt]=Gd(uo),Kd=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!1}=e,a=Jn(t),l=y.useRef(null),[c,u]=y.useState(!1),[d=!1,f]=Nl({prop:r,defaultProp:s,onChange:i});return p.jsx(lw,{...a,children:p.jsx(dw,{scope:t,contentId:hr(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:y.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:c,onCustomAnchorAdd:y.useCallback(()=>u(!0),[]),onCustomAnchorRemove:y.useCallback(()=>u(!1),[]),modal:o,children:n})})};Kd.displayName=uo;var qd="PopoverAnchor",fw=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=jt(qd,n),i=Jn(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=s;return y.useEffect(()=>(o(),()=>a()),[o,a]),p.jsx(Hd,{...i,...r,ref:t})});fw.displayName=qd;var Xd="PopoverTrigger",Yd=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=jt(Xd,n),i=Jn(n),o=Qe(t,s.triggerRef),a=p.jsx(je.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":tf(s.open),...r,ref:o,onClick:Oe(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?a:p.jsx(Hd,{asChild:!0,...i,children:a})});Yd.displayName=Xd;var fo="PopoverPortal",[hw,mw]=Gd(fo,{forceMount:void 0}),Zd=e=>{const{__scopePopover:t,forceMount:n,children:r,container:s}=e,i=jt(fo,t);return p.jsx(hw,{scope:t,forceMount:n,children:p.jsx(un,{present:n||i.open,children:p.jsx(ai,{asChild:!0,container:s,children:r})})})};Zd.displayName=fo;var ln="PopoverContent",Jd=y.forwardRef((e,t)=>{const n=mw(ln,e.__scopePopover),{forceMount:r=n.forceMount,...s}=e,i=jt(ln,e.__scopePopover);return p.jsx(un,{present:r||i.open,children:i.modal?p.jsx(pw,{...s,ref:t}):p.jsx(gw,{...s,ref:t})})});Jd.displayName=ln;var pw=y.forwardRef((e,t)=>{const n=jt(ln,e.__scopePopover),r=y.useRef(null),s=Qe(t,r),i=y.useRef(!1);return y.useEffect(()=>{const o=r.current;if(o)return Wl(o)},[]),p.jsx(li,{as:cn,allowPinchZoom:!0,children:p.jsx(Qd,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Oe(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Oe(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,c=a.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:Oe(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),gw=y.forwardRef((e,t)=>{const n=jt(ln,e.__scopePopover),r=y.useRef(!1),s=y.useRef(!1);return p.jsx(Qd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),Qd=y.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,f=jt(ln,n),m=Jn(n);return _l(),p.jsx(oi,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:p.jsx(ii,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:p.jsx(cw,{"data-state":tf(f.open),role:"dialog",id:f.contentId,...m,...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)"}})})})}),ef="PopoverClose",yw=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=jt(ef,n);return p.jsx(je.button,{type:"button",...r,ref:t,onClick:Oe(e.onClick,()=>s.onOpenChange(!1))})});yw.displayName=ef;var vw="PopoverArrow",xw=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Jn(n);return p.jsx(uw,{...s,...r,ref:t})});xw.displayName=vw;function tf(e){return e?"open":"closed"}var bw=Kd,ww=Yd,Sw=Zd,nf=Jd;const Aw=bw,Cw=ww,rf=y.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},s)=>p.jsx(Sw,{children:p.jsx(nf,{ref:s,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),...r})}));rf.displayName=nf.displayName;const Al=[{lang:be.RU},{lang:be.EN}],Pw=({className:e})=>{const t=Ye(i=>i.lang),n=Ye(i=>i.setLang),[r,s]=y.useState(!1);return console.log(Al.filter(i=>i.lang===t)),p.jsxs(Aw,{open:r,onOpenChange:()=>s(!r),children:[p.jsxs(Cw,{className:q("flex items-center gap-2",e),children:[p.jsx("img",{src:t===be.RU?"/ru.svg":"/en.svg",alt:""}),t===be.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",{"fill-rule":"evenodd","clip-rule":"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:"#2C2828"})})]}),p.jsx(rf,{className:"flex flex-col gap-6",children:Al.filter(i=>i.lang!==t).map((i,o)=>p.jsxs("div",{onClick:()=>{n(i.lang),s(!1)},className:"flex gap-3 py-1 items-center cursor-pointer",children:[p.jsx("img",{src:i.lang===be.RU?"/ru.svg":"/en.svg",alt:"flag"}),p.jsx("h5",{children:i.lang===be.RU?"Русский":"English"})]},o))})]})},Cl=[{h1:"Тематические направления выставки",data:[{title:"Пищевая продукция и сельское хозяйство",img:"/theme/1.svg"},{title:"Товары и услуги",img:"/theme/2.svg"},{title:"E-commerce",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",data:[{title:"Пищевая продукция и сельское хозяйство",img:"/theme/1.svg"},{title:"Товары и услуги",img:"/theme/2.svg"},{title:"E-commerce",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"}]}],Tw=[{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"}],P0=()=>{const e=Ye(t=>t.lang);return p.jsx("section",{className:"",children:p.jsxs(Be,{children:[p.jsx("h2",{className:"h2 mb-10 text-center",children:Cl[Fe(e)].title}),p.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:Cl[Fe(e)].data.map(t=>p.jsx(Cc,{...t,iconClassName:"bg-teritary_04"},t.title))})]})})},T0=({className:e})=>p.jsx("section",{className:q("relative w-full bg-[#FDEDEE] -z-10 py-10",e),children:p.jsxs(Be,{children:[p.jsx("h3",{className:"h2 mb-4",children:"Отрасли"}),p.jsx("p",{className:"text-lg text-primary_09 mb-6",children:"Мероприятие объединит ключевых игроков в таких отраслях, как:"}),p.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:Tw.map(t=>p.jsx(Cc,{className:"!bg-[#F5F4F4]",...t},t.title))}),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-primary_09"}),p.jsx("p",{className:"text-18 !text-primary_09",children:"Участники смогут продемонстрировать свои инновационные решения, наладить взаимовыгодные партнерства и выйти на новые рынки."})]})]})}),Fr=[{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:"1 — 27 april 2025"},{name:"Exhibition days",date:"29 — 1 may 2025"},{name:"Exhibition dismantling",date:"1 — 2 may 2025"}]}],E0=({className:e})=>{const t=Ye(n=>n.lang);return p.jsx("section",{className:q("bg-bg_surface_container py-10 md:py-[160px]",e),children:p.jsxs(Be,{children:[p.jsx("h2",{className:"h2 mb-6",children:Fr[Fe(t)].title}),p.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:Fr[Fe(t)].data.map(n=>y.createElement(Pc,{bottomClassName:"!bg-white rounded-b-[2px]",...n,key:n.name,className:"w-full"}))})]})})},R0=({className:e})=>p.jsxs("section",{className:q(" gap-6 relative overflow-hidden",e),children:[p.jsxs(Be,{className:"md:py-20 py-10 ",children:[p.jsx("h3",{className:"h2 mb-6 xl:max-w-[496px]",children:"Место проведения"}),p.jsx("p",{className:"text-lg text-on_surface_v normal xl:max-w-[496px] mb-10",children:"Торгово-промышленная палата Туркменистана создана в целях содействия развитию экономики Туркменистана, ее интегрированию в мировую хозяйственную систему, формированию современной промышленной, финансовой и торговой инфраструктуры, создания благоприятных условий для предпринимательской деятельности, оказания содействия в установлении торгово-экономических, научных и технических связей с зарубежными партнерами."}),p.jsx("div",{className:"size-full xl:hidden",children:p.jsx("img",{src:"/map.png",alt:"map",className:"size-full object-cover"})})]}),p.jsx("div",{className:"h-full 2xl:w-[850px] xl:w-[650px] xl:block hidden absolute top-0 right-0",children:p.jsx("img",{src:"/map.png",alt:"",className:"size-full object-cover"})})]}),D0=({className:e})=>p.jsxs("section",{className:q("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(Be,{children:[p.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:"Приглашение к участию"}),p.jsx("p",{className:"text-center md:text-lg text-sm text-primary_03 max-w-[828px] px-5 mx-auto mb-10",children:"Торгово-промышленная палата Туркменистана приглашает бизнес-сообщество со всего мира присоединиться к этому уникальному событию, которое станет важным шагом к укреплению позиций Туркменистана на глобальной экономической арене."}),p.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[p.jsx(Re,{to:"/stend-form",className:"w-full",children:p.jsx(He,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:"Забронировать стенд"})}),p.jsx(Re,{to:"/B2B-B2G",className:"w-full",children:p.jsx(He,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:"B2B | B2G встречи"})})]})]})]}),j0=()=>p.jsxs(Be,{className:"flex flex-col md:my-20 my-10 gap-16",children:[p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h3",{className:"h2",children:"Выставка-ярмарка «TurkmenTextile Expo 2025» "}),p.jsxs("p",{className:"p",children:["Глобальная выставка и ярмарка текстиля и моды, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. Наша миссия — укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии. Выставка станет платформой для изучения устойчивых практик, современных технологий и новых дизайнерских решений, вдохновляя на развитие индустрии."," "]})]}),p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h3",{className:"h2",children:"Перспективы"}),p.jsx("h4",{className:"p",children:"TurkmenTextile Expo-2025 открывает широкие перспективы для участников:"}),p.jsxs("ol",{type:"1",className:"list-decimal pl-8 flex flex-col gap-3 p",children:[p.jsx("li",{children:"Расширение деловых связей — уникальная возможность для B2B и B2G-встреч, заключения торговых соглашений и установления стратегических партнёрств."}),p.jsx("li",{children:"Доступ к инновациям — знакомство с передовыми технологиями текстильного производства, экологичными материалами и трендами устойчивого дизайна."}),p.jsx("li",{children:"Повышение экспортного потенциала — участие в форумах и семинарах, посвящённых продвижению продукции на новые рынки."}),p.jsx("li",{children:"Обучение и развитие — мастер-классы и лекции от ведущих мировых экспертов помогут участникам углубить знания и освоить современные подходы в области текстильной индустрии."}),p.jsx("li",{children:"Культурный обмен — возможность продемонстрировать богатое текстильное наследие Туркменистана и вдохновиться культурными традициями других стран."})]})]}),p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h3",{className:"h2",children:"Направления"}),p.jsx("h4",{className:"p",children:"Выставка охватывает ключевые аспекты текстильной и модной индустрии, включая:"}),p.jsxs("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:[p.jsx("li",{children:"Традиционный текстиль: экспозиции, шёлковым изделиям и ремесленным техникам Туркменистана."}),p.jsx("li",{children:"Инновационные материалы и технологии: зоны, где демонстрируются устойчивые материалы, 3D-ткацкие технологии и экологически чистые красители."}),p.jsx("li",{children:"Модные показы: ежедневные подиумные шоу с участием местных и международных дизайнеров, включая зарубежных модельеров."}),p.jsx("li",{children:"Маркетплейс для переговоров: пространство для встреч между экспортёрами и импортёрами."}),p.jsx("li",{children:"Оборудование для текстильной промышленности: современные технологии и машины для повышения эффективности и конкурентоспособности."}),p.jsx("li",{children:"Образовательные зоны: интерактивные экспозиции и семинары на тему устойчивости, дизайна и переработки."})]}),p.jsx("p",{className:"text-18",children:"Участники смогут обсудить современные технологии, лучшие практики и эффективные стратегии для устойчивого бизнеса."})]}),p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h3",{className:"h2",children:"Партнёрство и спонсорство"}),p.jsx("h4",{className:"p",children:"TurkmenTextile Expo-2025 приглашает к сотрудничеству международные организации, ассоциации и бренды для продвижения своих продуктов и услуг. Партнёры получат:"}),p.jsxs("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:[p.jsx("li",{children:"Признание на международной арене — участие в масштабном событии, привлекающем ведущих игроков текстильной и модной индустрий."}),p.jsx("li",{children:"Рекламные возможности — интеграция бренда в маркетинговую кампанию выставки, включая digital и офлайн-каналы."}),p.jsx("li",{children:"Вклад в развитие индустрии — поддержка инноваций, устойчивых практик и культурного наследия."})]})]})]});function Ew(e){return Object.prototype.toString.call(e)==="[object Object]"}function Pl(e){return Ew(e)||Array.isArray(e)}function Rw(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ho(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return s!==i?!1:n.every(o=>{const a=e[o],l=t[o];return typeof a=="function"?`${a}`==`${l}`:!Pl(a)||!Pl(l)?a===l:ho(a,l)})}function Tl(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function Dw(e,t){if(e.length!==t.length)return!1;const n=Tl(e),r=Tl(t);return n.every((s,i)=>{const o=r[i];return ho(s,o)})}function mo(e){return typeof e=="number"}function ni(e){return typeof e=="string"}function Jr(e){return typeof e=="boolean"}function El(e){return Object.prototype.toString.call(e)==="[object Object]"}function ce(e){return Math.abs(e)}function po(e){return Math.sign(e)}function Vn(e,t){return ce(e-t)}function jw(e,t){if(e===0||t===0||ce(e)<=ce(t))return 0;const n=Vn(ce(e),ce(t));return ce(n/e)}function Nw(e){return Math.round(e*100)/100}function zn(e){return Wn(e).map(Number)}function Xe(e){return e[Qn(e)]}function Qn(e){return Math.max(0,e.length-1)}function go(e,t){return t===Qn(e)}function Rl(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Wn(e){return Object.keys(e)}function sf(e,t){return[e,t].reduce((n,r)=>(Wn(r).forEach(s=>{const i=n[s],o=r[s],a=El(i)&&El(o);n[s]=a?sf(i,o):o}),n),{})}function ri(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function Mw(e,t){const n={start:r,center:s,end:i};function r(){return 0}function s(l){return i(l)/2}function i(l){return t-l}function o(l,c){return ni(e)?n[e](l):e(t,l,c)}return{measure:o}}function Hn(){let e=[];function t(s,i,o,a={passive:!0}){let l;if("addEventListener"in s)s.addEventListener(i,o,a),l=()=>s.removeEventListener(i,o,a);else{const c=s;c.addListener(o),l=()=>c.removeListener(o)}return e.push(l),r}function n(){e=e.filter(s=>s())}const r={add:t,clear:n};return r}function kw(e,t,n,r){const s=Hn(),i=1e3/60;let o=null,a=0,l=0;function c(){s.add(e,"visibilitychange",()=>{e.hidden&&g()})}function u(){m(),s.clear()}function d(x){if(!l)return;o||(o=x,n(),n());const v=x-o;for(o=x,a+=v;a>=i;)n(),a-=i;const b=a/i;r(b),l&&(l=t.requestAnimationFrame(d))}function f(){l||(l=t.requestAnimationFrame(d))}function m(){t.cancelAnimationFrame(l),o=null,a=0,l=0}function g(){o=null,a=0}return{init:c,destroy:u,start:f,stop:m,update:n,render:r}}function Vw(e,t){const n=t==="rtl",r=e==="y",s=r?"y":"x",i=r?"x":"y",o=!r&&n?-1:1,a=u(),l=d();function c(g){const{height:h,width:x}=g;return r?h:x}function u(){return r?"top":n?"right":"left"}function d(){return r?"bottom":n?"left":"right"}function f(g){return g*o}return{scroll:s,cross:i,startEdge:a,endEdge:l,measureSize:c,direction:f}}function $t(e=0,t=0){const n=ce(e-t);function r(c){return ct}function i(c){return r(c)||s(c)}function o(c){return i(c)?r(c)?e:t:c}function a(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:o,reachedAny:i,reachedMax:s,reachedMin:r,removeOffset:a}}function of(e,t,n){const{constrain:r}=$t(0,e),s=e+1;let i=o(t);function o(f){return n?ce((s+f)%s):r(f)}function a(){return i}function l(f){return i=o(f),d}function c(f){return u().set(a()+f)}function u(){return of(e,a(),n)}const d={get:a,set:l,add:c,clone:u};return d}function _w(e,t,n,r,s,i,o,a,l,c,u,d,f,m,g,h,x,v,b){const{cross:A,direction:P}=e,S=["INPUT","SELECT","TEXTAREA"],T={passive:!1},E=Hn(),D=Hn(),M=$t(50,225).constrain(m.measure(20)),V={mouse:300,touch:400},I={mouse:500,touch:600},j=g?43:25;let F=!1,L=0,G=0,W=!1,U=!1,B=!1,K=!1;function Q($){if(!b)return;function J(xe){(Jr(b)||b($,xe))&&Te(xe)}const ie=t;E.add(ie,"dragstart",xe=>xe.preventDefault(),T).add(ie,"touchmove",()=>{},T).add(ie,"touchend",()=>{}).add(ie,"touchstart",J).add(ie,"mousedown",J).add(ie,"touchcancel",te).add(ie,"contextmenu",te).add(ie,"click",de,!0)}function ee(){E.clear(),D.clear()}function Se(){const $=K?n:t;D.add($,"touchmove",Z,T).add($,"touchend",te).add($,"mousemove",Z,T).add($,"mouseup",te)}function ke($){const J=$.nodeName||"";return S.includes(J)}function Ae(){return(g?I:V)[K?"mouse":"touch"]}function Ge($,J){const ie=d.add(po($)*-1),xe=u.byDistance($,!g).distance;return g||ce($)=2,!(J&&$.button!==0)&&(ke($.target)||(W=!0,i.pointerDown($),c.useFriction(0).useDuration(0),s.set(o),Se(),L=i.readPoint($),G=i.readPoint($,A),f.emit("pointerDown")))}function Z($){if(!ri($,r)&&$.touches.length>=2)return te($);const ie=i.readPoint($),xe=i.readPoint($,A),Ve=Vn(ie,L),Ue=Vn(xe,G);if(!U&&!K&&(!$.cancelable||(U=Ve>Ue,!U)))return te($);const w=i.pointerMove($);Ve>h&&(B=!0),c.useFriction(.3).useDuration(.75),a.start(),s.add(P(w)),$.preventDefault()}function te($){const ie=u.byDistance(0,!1).index!==d.get(),xe=i.pointerUp($)*Ae(),Ve=Ge(P(xe),ie),Ue=jw(xe,Ve),w=j-10*Ue,C=v+Ue/50;U=!1,W=!1,D.clear(),c.useDuration(w).useFriction(C),l.distance(Ve,!g),K=!1,f.emit("pointerUp")}function de($){B&&($.stopPropagation(),$.preventDefault(),B=!1)}function ge(){return W}return{init:Q,destroy:ee,pointerDown:ge}}function Ow(e,t){let r,s;function i(d){return d.timeStamp}function o(d,f){const g=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(ri(d,t)?d:d.touches[0])[g]}function a(d){return r=d,s=d,o(d)}function l(d){const f=o(d)-o(s),m=i(d)-i(r)>170;return s=d,m&&(r=d),f}function c(d){if(!r||!s)return 0;const f=o(s)-o(r),m=i(d)-i(r),g=i(d)-i(s)>170,h=f/m;return m&&!g&&ce(h)>.1?h:0}return{pointerDown:a,pointerMove:l,pointerUp:c,readPoint:o}}function Fw(){function e(n){const{offsetTop:r,offsetLeft:s,offsetWidth:i,offsetHeight:o}=n;return{top:r,right:s+i,bottom:r+o,left:s,width:i,height:o}}return{measure:e}}function Lw(e){function t(r){return e*(r/100)}return{measure:t}}function Iw(e,t,n,r,s,i,o){const a=[e].concat(r);let l,c,u=[],d=!1;function f(x){return s.measureSize(o.measure(x))}function m(x){if(!i)return;c=f(e),u=r.map(f);function v(b){for(const A of b){if(d)return;const P=A.target===e,S=r.indexOf(A.target),T=P?c:u[S],E=f(P?e:r[S]);if(ce(E-T)>=.5){x.reInit(),t.emit("resize");break}}}l=new ResizeObserver(b=>{(Jr(i)||i(x,b))&&v(b)}),n.requestAnimationFrame(()=>{a.forEach(b=>l.observe(b))})}function g(){d=!0,l&&l.disconnect()}return{init:m,destroy:g}}function Bw(e,t,n,r,s,i){let o=0,a=0,l=s,c=i,u=e.get(),d=0;function f(){const T=r.get()-e.get(),E=!l;let D=0;return E?(o=0,n.set(r),e.set(r),D=T):(n.set(e),o+=T/l,o*=c,u+=o,e.add(o),D=u-d),a=po(D),d=u,S}function m(){const T=r.get()-t.get();return ce(T)<.001}function g(){return l}function h(){return a}function x(){return o}function v(){return A(s)}function b(){return P(i)}function A(T){return l=T,S}function P(T){return c=T,S}const S={direction:h,duration:g,velocity:x,seek:f,settled:m,useBaseFriction:b,useBaseDuration:v,useFriction:P,useDuration:A};return S}function Uw(e,t,n,r,s){const i=s.measure(10),o=s.measure(50),a=$t(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(m){if(!c())return;const g=e.reachedMin(t.get())?"min":"max",h=ce(e[g]-t.get()),x=n.get()-t.get(),v=a.constrain(h/o);n.subtract(x*v),!m&&ce(x){const{min:x,max:v}=i,b=i.constrain(g),A=!h,P=go(n,h);return A?v:P||c(x,b)?x:c(v,b)?v:b}).map(g=>parseFloat(g.toFixed(3)))}function f(){if(t<=e+s)return[i.max];if(r==="keepSnaps")return o;const{min:g,max:h}=a;return o.slice(g,h)}return{snapsContained:l,scrollContainLimit:a}}function zw(e,t,n){const r=t[0],s=n?r-e:Xe(t);return{limit:$t(s,r)}}function Ww(e,t,n,r){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:l}=$t(i,o);function c(f){return f===1?l(n.get()):f===-1?a(n.get()):!1}function u(f){if(!c(f))return;const m=e*(f*-1);r.forEach(g=>g.add(m))}return{loop:u}}function Hw(e){const{max:t,length:n}=e;function r(i){const o=i-t;return n?o/-n:0}return{get:r}}function Gw(e,t,n,r,s){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=s,l=d().map(t.measure),c=f(),u=m();function d(){return a(r).map(h=>Xe(h)[o]-h[0][i]).map(ce)}function f(){return r.map(h=>n[i]-h[i]).map(h=>-ce(h))}function m(){return a(c).map(h=>h[0]).map((h,x)=>h+l[x])}return{snaps:c,snapsAligned:u}}function Kw(e,t,n,r,s,i){const{groupSlides:o}=s,{min:a,max:l}=r,c=u();function u(){const f=o(i),m=!e||t==="keepSnaps";return n.length===1?[i]:m?f:f.slice(a,l).map((g,h,x)=>{const v=!h,b=go(x,h);if(v){const A=Xe(x[0])+1;return Rl(A)}if(b){const A=Qn(i)-Xe(x)[0]+1;return Rl(A,Xe(x)[0])}return g})}return{slideRegistry:c}}function qw(e,t,n,r,s){const{reachedAny:i,removeOffset:o,constrain:a}=r;function l(g){return g.concat().sort((h,x)=>ce(h)-ce(x))[0]}function c(g){const h=e?o(g):a(g),x=t.map((b,A)=>({diff:u(b-h,0),index:A})).sort((b,A)=>ce(b.diff)-ce(A.diff)),{index:v}=x[0];return{index:v,distance:h}}function u(g,h){const x=[g,g+n,g-n];if(!e)return g;if(!h)return l(x);const v=x.filter(b=>po(b)===h);return v.length?l(v):Xe(x)-n}function d(g,h){const x=t[g]-s.get(),v=u(x,h);return{index:g,distance:v}}function f(g,h){const x=s.get()+g,{index:v,distance:b}=c(x),A=!e&&i(x);if(!h||A)return{index:v,distance:g};const P=t[v]-b,S=g+u(P,0);return{index:v,distance:S}}return{byDistance:f,byIndex:d,shortcut:u}}function Xw(e,t,n,r,s,i,o){function a(d){const f=d.distance,m=d.index!==t.get();i.add(f),f&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),m&&(n.set(t.get()),t.set(d.index),o.emit("select"))}function l(d,f){const m=s.byDistance(d,f);a(m)}function c(d,f){const m=t.clone().set(d),g=s.byIndex(m.get(),f);a(g)}return{distance:l,index:c}}function Yw(e,t,n,r,s,i,o,a){const l={passive:!0,capture:!0};let c=0;function u(m){if(!a)return;function g(h){if(new Date().getTime()-c>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(A=>A.includes(h));mo(b)&&(s.useDuration(0),r.index(b,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((h,x)=>{i.add(h,"focus",v=>{(Jr(a)||a(m,v))&&g(x)},l)})}function d(m){m.code==="Tab"&&(c=new Date().getTime())}return{init:u}}function En(e){let t=e;function n(){return t}function r(l){t=o(l)}function s(l){t+=o(l)}function i(l){t-=o(l)}function o(l){return mo(l)?l:l.get()}return{get:n,set:r,add:s,subtract:i}}function af(e,t){const n=e.scroll==="x"?o:a,r=t.style;let s=null,i=!1;function o(f){return`translate3d(${f}px,0px,0px)`}function a(f){return`translate3d(0px,${f}px,0px)`}function l(f){if(i)return;const m=Nw(e.direction(f));m!==s&&(r.transform=n(m),s=m)}function c(f){i=!f}function u(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:l,toggleActive:c}}function Zw(e,t,n,r,s,i,o,a,l){const u=zn(s),d=zn(s).reverse(),f=v().concat(b());function m(E,D){return E.reduce((M,V)=>M-s[V],D)}function g(E,D){return E.reduce((M,V)=>m(M,D)>0?M.concat([V]):M,[])}function h(E){return i.map((D,M)=>({start:D-r[M]+.5+E,end:D+t-.5+E}))}function x(E,D,M){const V=h(D);return E.map(I=>{const j=M?0:-n,F=M?n:0,L=M?"end":"start",G=V[I][L];return{index:I,loopPoint:G,slideLocation:En(-1),translate:af(e,l[I]),target:()=>a.get()>G?j:F}})}function v(){const E=o[0],D=g(d,E);return x(D,n,!1)}function b(){const E=t-o[0]-1,D=g(u,E);return x(D,-n,!0)}function A(){return f.every(({index:E})=>{const D=u.filter(M=>M!==E);return m(D,t)<=.1})}function P(){f.forEach(E=>{const{target:D,translate:M,slideLocation:V}=E,I=D();I!==V.get()&&(M.to(I),V.set(I))})}function S(){f.forEach(E=>E.translate.clear())}return{canLoop:A,clear:S,loop:P,loopPoints:f}}function Jw(e,t,n){let r,s=!1;function i(l){if(!n)return;function c(u){for(const d of u)if(d.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(u=>{s||(Jr(n)||n(l,u))&&c(u)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),s=!0}return{init:i,destroy:o}}function Qw(e,t,n,r){const s={};let i=null,o=null,a,l=!1;function c(){a=new IntersectionObserver(g=>{l||(g.forEach(h=>{const x=t.indexOf(h.target);s[x]=h}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(g=>a.observe(g))}function u(){a&&a.disconnect(),l=!0}function d(g){return Wn(s).reduce((h,x)=>{const v=parseInt(x),{isIntersecting:b}=s[v];return(g&&b||!g&&!b)&&h.push(v),h},[])}function f(g=!0){if(g&&i)return i;if(!g&&o)return o;const h=d(g);return g&&(i=h),g||(o=h),h}return{init:c,destroy:u,get:f}}function e0(e,t,n,r,s,i){const{measureSize:o,startEdge:a,endEdge:l}=e,c=n[0]&&s,u=g(),d=h(),f=n.map(o),m=x();function g(){if(!c)return 0;const b=n[0];return ce(t[a]-b[a])}function h(){if(!c)return 0;const b=i.getComputedStyle(Xe(r));return parseFloat(b.getPropertyValue(`margin-${l}`))}function x(){return n.map((b,A,P)=>{const S=!A,T=go(P,A);return S?f[A]+u:T?f[A]+d:P[A+1][a]-b[a]}).map(ce)}return{slideSizes:f,slideSizesWithGaps:m,startGap:u,endGap:d}}function t0(e,t,n,r,s,i,o,a,l){const{startEdge:c,endEdge:u,direction:d}=e,f=mo(n);function m(v,b){return zn(v).filter(A=>A%b===0).map(A=>v.slice(A,A+b))}function g(v){return v.length?zn(v).reduce((b,A,P)=>{const S=Xe(b)||0,T=S===0,E=A===Qn(v),D=s[c]-i[S][c],M=s[c]-i[A][u],V=!r&&T?d(o):0,I=!r&&E?d(a):0,j=ce(M-I-(D+V));return P&&j>t+l&&b.push(A),E&&b.push(v.length),b},[]).map((b,A,P)=>{const S=Math.max(P[A-1]||0);return v.slice(S,b)}):[]}function h(v){return f?m(v,n):g(v)}return{groupSlides:h}}function n0(e,t,n,r,s,i,o){const{align:a,axis:l,direction:c,startIndex:u,loop:d,duration:f,dragFree:m,dragThreshold:g,inViewThreshold:h,slidesToScroll:x,skipSnaps:v,containScroll:b,watchResize:A,watchSlides:P,watchDrag:S,watchFocus:T}=i,E=2,D=Fw(),M=D.measure(t),V=n.map(D.measure),I=Vw(l,c),j=I.measureSize(M),F=Lw(j),L=Mw(a,j),G=!d&&!!b,W=d||!!b,{slideSizes:U,slideSizesWithGaps:B,startGap:K,endGap:Q}=e0(I,M,V,n,W,s),ee=t0(I,j,x,d,M,V,K,Q,E),{snaps:Se,snapsAligned:ke}=Gw(I,L,M,V,ee),Ae=-Xe(Se)+Xe(B),{snapsContained:Ge,scrollContainLimit:Te}=$w(j,Ae,ke,b,E),Z=G?Ge:ke,{limit:te}=zw(Ae,Z,d),de=of(Qn(Z),u,d),ge=de.clone(),re=zn(n),$=({dragHandler:nt,scrollBody:Nt,scrollBounds:yn,options:{loop:Mt}})=>{Mt||yn.constrain(nt.pointerDown()),Nt.seek()},J=({scrollBody:nt,translate:Nt,location:yn,offsetLocation:Mt,previousLocation:Qr,scrollLooper:tr,slideLooper:lf,dragHandler:cf,animation:uf,eventHandler:yo,scrollBounds:df,options:{loop:vo}},xo)=>{const bo=nt.settled(),ff=!df.shouldConstrain(),wo=vo?bo:bo&&ff;wo&&!cf.pointerDown()&&(uf.stop(),yo.emit("settle")),wo||yo.emit("scroll");const hf=yn.get()*xo+Qr.get()*(1-xo);Mt.set(hf),vo&&(tr.loop(nt.direction()),lf.loop()),Nt.to(Mt.get())},ie=kw(r,s,()=>$(gn),nt=>J(gn,nt)),xe=.68,Ve=Z[de.get()],Ue=En(Ve),w=En(Ve),C=En(Ve),R=En(Ve),_=Bw(Ue,C,w,R,f,xe),k=qw(d,Z,Ae,te,R),N=Xw(ie,de,ge,_,k,R,o),z=Hw(te),X=Hn(),ye=Qw(t,n,o,h),{slideRegistry:fe}=Kw(G,b,Z,Te,ee,re),tt=Yw(e,n,fe,N,_,X,o,T),gn={ownerDocument:r,ownerWindow:s,eventHandler:o,containerRect:M,slideRects:V,animation:ie,axis:I,dragHandler:_w(I,e,r,s,R,Ow(I,s),Ue,ie,N,_,k,de,o,F,m,g,v,xe,S),eventStore:X,percentOfView:F,index:de,indexPrevious:ge,limit:te,location:Ue,offsetLocation:C,previousLocation:w,options:i,resizeHandler:Iw(t,o,s,n,I,A,D),scrollBody:_,scrollBounds:Uw(te,C,R,_,F),scrollLooper:Ww(Ae,te,C,[Ue,C,w,R]),scrollProgress:z,scrollSnapList:Z.map(z.get),scrollSnaps:Z,scrollTarget:k,scrollTo:N,slideLooper:Zw(I,j,Ae,U,B,Se,Z,C,n),slideFocus:tt,slidesHandler:Jw(t,o,P),slidesInView:ye,slideIndexes:re,slideRegistry:fe,slidesToScroll:ee,target:R,translate:af(I,t)};return gn}function r0(){let e={},t;function n(c){t=c}function r(c){return e[c]||[]}function s(c){return r(c).forEach(u=>u(t,c)),l}function i(c,u){return e[c]=r(c).concat([u]),l}function o(c,u){return e[c]=r(c).filter(d=>d!==u),l}function a(){e={}}const l={init:n,emit:s,off:o,on:i,clear:a};return l}const s0={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 i0(e){function t(i,o){return sf(i,o||{})}function n(i){const o=i.breakpoints||{},a=Wn(o).filter(l=>e.matchMedia(l).matches).map(l=>o[l]).reduce((l,c)=>t(l,c),{});return t(i,a)}function r(i){return i.map(o=>Wn(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function o0(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,l)=>Object.assign(a,{[l.name]:l}),{})}function r(){t=t.filter(i=>i.destroy())}return{init:n,destroy:r}}function Lr(e,t,n){const r=e.ownerDocument,s=r.defaultView,i=i0(s),o=o0(i),a=Hn(),l=r0(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:f,off:m,emit:g}=l,h=I;let x=!1,v,b=c(s0,Lr.globalOptions),A=c(b),P=[],S,T,E;function D(){const{container:re,slides:$}=A;T=(ni(re)?e.querySelector(re):re)||e.children[0];const ie=ni($)?T.querySelectorAll($):$;E=[].slice.call(ie||T.children)}function M(re){const $=n0(e,T,E,r,s,re,l);if(re.loop&&!$.slideLooper.canLoop()){const J=Object.assign({},re,{loop:!1});return M(J)}return $}function V(re,$){x||(b=c(b,re),A=u(b),P=$||P,D(),v=M(A),d([b,...P.map(({options:J})=>J)]).forEach(J=>a.add(J,"change",I)),A.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(ge),v.eventHandler.init(ge),v.resizeHandler.init(ge),v.slidesHandler.init(ge),v.options.loop&&v.slideLooper.loop(),T.offsetParent&&E.length&&v.dragHandler.init(ge),S=o.init(ge,P)))}function I(re,$){const J=ee();j(),V(c({startIndex:J},re),$),l.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 F(){x||(x=!0,a.clear(),j(),l.emit("destroy"),l.clear())}function L(re,$,J){!A.active||x||(v.scrollBody.useBaseFriction().useDuration($===!0?0:A.duration),v.scrollTo.index(re,J||0))}function G(re){const $=v.index.add(1).get();L($,re,-1)}function W(re){const $=v.index.add(-1).get();L($,re,1)}function U(){return v.index.add(1).get()!==ee()}function B(){return v.index.add(-1).get()!==ee()}function K(){return v.scrollSnapList}function Q(){return v.scrollProgress.get(v.location.get())}function ee(){return v.index.get()}function Se(){return v.indexPrevious.get()}function ke(){return v.slidesInView.get()}function Ae(){return v.slidesInView.get(!1)}function Ge(){return S}function Te(){return v}function Z(){return e}function te(){return T}function de(){return E}const ge={canScrollNext:U,canScrollPrev:B,containerNode:te,internalEngine:Te,destroy:F,off:m,on:f,emit:g,plugins:Ge,previousScrollSnap:Se,reInit:h,rootNode:Z,scrollNext:G,scrollPrev:W,scrollProgress:Q,scrollSnapList:K,scrollTo:L,selectedScrollSnap:ee,slideNodes:de,slidesInView:ke,slidesNotInView:Ae};return V(t,n),setTimeout(()=>l.emit("init"),0),ge}Lr.globalOptions=void 0;function er(e={},t=[]){const n=y.useRef(e),r=y.useRef(t),[s,i]=y.useState(),[o,a]=y.useState(),l=y.useCallback(()=>{s&&s.reInit(n.current,r.current)},[s]);return y.useEffect(()=>{ho(n.current,e)||(n.current=e,l())},[e,l]),y.useEffect(()=>{Dw(r.current,t)||(r.current=t,l())},[t,l]),y.useEffect(()=>{if(Rw()&&o){Lr.globalOptions=er.globalOptions;const c=Lr(o,n.current,r.current);return i(c),()=>c.destroy()}else i(void 0)},[o,i]),[a,s]}er.globalOptions=void 0;const a0=[{lang:be.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:be.EN,data:[{title:"Floor Plan",link:"https://itse.turkmenexpo.com/app/storage/app/media/Floor%20plan/Floor%20plan.pdf",blank:!0},{title:"Book a stand",link:"/stend-form"},{title:"Participants list",link:"/"},{title:"B2B | B2G meetings",link:"/B2B-B2G"}]}],N0=()=>{const[e]=er(),t=Ye(o=>o.lang),n=Ys("(min-width: 1024px)"),r=Ys("(min-width: 768px)"),s=t===be.RU?be.RU:be.EN;function i(){return n?`/banners/${s}/l.jpg`:r?`/banners/${s}/m.jpg`:`/banners/${s}/s.jpg`}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(Be,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 items-center gap-6 text-2xl",children:a0[Fe(t)].data.map(({title:o,link:a,blank:l})=>p.jsx(Re,{target:l?"_blank":"",to:a,className:"w-full",children:p.jsx(He,{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))})]})},l0=[{data:[{title:"contact@turkmenexpo.com",subtitle:"Адрес электронной почты",img:"/contacts/home/mail.svg"},{title:"здание ТПП Туркменистана",subtitle:"Адрес выставки",img:"/contacts/home/location.svg"},{title:"+99371871812; 99363719588",subtitle:"Контактный номер",img:"/contacts/home/mobile.svg"}]},{data:[{title:"contact@turkmenexpo.com",subtitle:"E-mail Address",img:"/contacts/home/mail.svg"},{title:"Building of the CCI of Turkmenistan",subtitle:"Exhibition address",img:"/contacts/home/location.svg"},{title:"+99371871812; 99363719588",subtitle:"Contact Number",img:"/contacts/home/mobile.svg"}]}],M0=({className:e})=>{const t=Ye(n=>n.lang);return p.jsx("section",{className:q("bg-surface_high pt-10 pb-20",e),children:p.jsxs(Be,{children:[p.jsx("h2",{className:"h2 mb-6",children:Fr[Fe(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:Fr[Fe(t)].data.map(n=>y.createElement(Pc,{...n,key:n.name,className:"w-full"}))}),p.jsx("div",{className:"md:p-10 pt-16 flex flex-col md:flex-row items-center gap-6",children:l0[Fe(t)].data.map(n=>y.createElement(rp,{...n,key:n.title,className:"w-full"}))}),p.jsx(Re,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:p.jsx(He,{className:"w-full",children:t===be.RU?"Забронируйте стенд":"Book a stand"})})]})]})})},c0=[{data:[{nums:"8,400 m²",text:"выставочной площади"},{nums:"10000+",text:"Посетители посетят выставку"},{nums:"100+",text:"Экспоненты из более чем 30 стран"},{nums:"80%",text:"Участники принимают участие в принятии решений о закупках"}]},{data:[{nums:"8,400 m²",text:"Of the exhibition area"},{nums:"10000+",text:"Visitors and specialists attend the exhibition"},{nums:"100+",text:"More than 100 exhibitors from 30 countries "},{nums:"80%",text:"Visitors are involved in procurement decisions"}]}],k0=()=>{const[e]=er(),t=Ye(n=>n.lang);return p.jsx("section",{children:p.jsxs(Be,{className:"flex flex-col gap-6",children:[p.jsxs("div",{className:"text-center",children:[p.jsx("h2",{className:"h2 md:mb-3 mb-6 text-left sm:text-center",children:"Выставка-ярмарка «TurkmenTextile Expo 2025» в Ашхабаде"}),p.jsxs("p",{className:"md:text-base text-sm normal text-left sm:text-center text-[#454545]",children:["Глобальная выставка и ярмарка текстиля и моды, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. Наша миссия — укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии. Выставка станет платформой для изучения устойчивых практик, современных технологий и новых дизайнерских решений, вдохновляя на развитие индустрии."," "]})]}),p.jsx("div",{ref:e,className:"embla overflow-hidden",children:p.jsx("div",{className:"flex embla__container items-center gap-6",children:c0[Fe(t)].data.map(n=>p.jsx(tp,{...n,className:"embla__slide flex-[0_0_288px]"},n.text))})}),p.jsx(Re,{to:"/about",className:"mx-auto",children:p.jsx(He,{variant:"outline",children:t===be.RU?"Подробнее о выставке":"More about the exhibition"})})]})})},u0=[{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, transfers, visa",btnText:"Download the Travel guide",text:`Regarding hotel accommodation, visa support, + `),()=>{document.head.removeChild(m)}},[t]),p.jsx(op,{isPresent:t,childRef:s,sizeRef:i,children:y.cloneElement(e,{ref:s})})}const lp=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const l=vi(cp),c=y.useId(),u=y.useCallback(f=>{l.set(f,!0);for(const m of l.values())if(!m)return;r&&r()},[l,r]),d=y.useMemo(()=>({id:c,initial:t,isPresent:n,custom:s,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),i?[Math.random(),u]:[n,u]);return y.useMemo(()=>{l.forEach((f,m)=>l.set(m,!1))},[n]),y.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=p.jsx(ap,{isPresent:n,anchorX:a,children:e})),p.jsx($r.Provider,{value:d,children:e})};function cp(){return new Map}function Rc(e=!0){const t=y.useContext($r);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=y.useId();y.useEffect(()=>{e&&s(i)},[e]);const o=y.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const lr=e=>e.key||"";function Wo(e){const t=[];return y.Children.forEach(e,n=>{y.isValidElement(n)&&t.push(n)}),t}const bi=typeof window<"u",Dc=bi?y.useLayoutEffect:y.useEffect,y0=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[l,c]=Rc(o),u=y.useMemo(()=>Wo(e),[e]),d=o&&!l?[]:u.map(lr),f=y.useRef(!0),m=y.useRef(u),g=vi(()=>new Map),[h,x]=y.useState(u),[v,b]=y.useState(u);Dc(()=>{f.current=!1,m.current=u;for(let S=0;S{const T=lr(S),E=o&&!l?!1:u===v||d.includes(T),D=()=>{if(g.has(T))g.set(T,!0);else return;let M=!0;g.forEach(V=>{V||(M=!1)}),M&&(P==null||P(),b(m.current),o&&(c==null||c()),r&&r())};return p.jsx(lp,{isPresent:E,initial:!f.current||n?void 0:!1,custom:E?void 0:t,presenceAffectsLayout:s,mode:i,onExitComplete:E?void 0:D,anchorX:a,children:S},T)})})},Le=e=>e;let _s=Le;const up={skipAnimations:!1,useManualTiming:!1};function dp(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,u=!1,d=!1)=>{const m=d&&r?t:n;return u&&i.add(c),m.has(c)||m.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(o=c,r){s=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,s&&(s=!1,l.process(c))}};return l}const cr=["read","resolveKeyframes","update","preRender","render","postRender"],fp=40;function jc(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=cr.reduce((v,b)=>(v[b]=dp(i),v),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=o,m=()=>{const v=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,fp),1),s.timestamp=v,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),d.process(s),f.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(m))},g=()=>{n=!0,r=!0,s.isProcessing||e(m)};return{schedule:cr.reduce((v,b)=>{const A=o[b];return v[b]=(P,S=!1,T=!1)=>(n||g(),A.schedule(P,S,T)),v},{}),cancel:v=>{for(let b=0;bHo[e].some(n=>!!t[n])};function hp(e){for(const t in e)rn[t]={...rn[t],...e[t]}}const mp=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 Pr(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||mp.has(e)}let Mc=e=>!Pr(e);function pp(e){e&&(Mc=t=>t.startsWith("on")?!Pr(t):e(t))}try{pp(require("@emotion/is-prop-valid").default)}catch{}function gp(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(Mc(s)||n===!0&&Pr(s)||!t&&!Pr(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function yp(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const zr=y.createContext({});function _n(e){return typeof e=="string"||Array.isArray(e)}function Wr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const wi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Si=["initial",...wi];function Hr(e){return Wr(e.animate)||Si.some(t=>_n(e[t]))}function kc(e){return!!(Hr(e)||e.variants)}function vp(e,t){if(Hr(e)){const{initial:n,animate:r}=e;return{initial:n===!1||_n(n)?n:void 0,animate:_n(r)?r:void 0}}return e.inherit!==!1?t:{}}function xp(e){const{initial:t,animate:n}=vp(e,y.useContext(zr));return y.useMemo(()=>({initial:t,animate:n}),[Go(t),Go(n)])}function Go(e){return Array.isArray(e)?e.join(" "):e}const bp=Symbol.for("motionComponentSymbol");function Xt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function wp(e,t,n){return y.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Xt(n)&&(n.current=r))},[t])}const Ai=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Sp="framerAppearId",Vc="data-"+Ai(Sp),{schedule:Ci,cancel:v0}=jc(queueMicrotask,!1),_c=y.createContext({});function Ap(e,t,n,r,s){var i,o;const{visualElement:a}=y.useContext(zr),l=y.useContext(Nc),c=y.useContext($r),u=y.useContext(xi).reducedMotion,d=y.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,m=y.useContext(_c);f&&!f.projection&&s&&(f.type==="html"||f.type==="svg")&&Cp(d.current,n,s,m);const g=y.useRef(!1);y.useInsertionEffect(()=>{f&&g.current&&f.update(n,c)});const h=n[Vc],x=y.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 Dc(()=>{f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Ci.render(f.render),x.current&&f.animationState&&f.animationState.animateChanges())}),y.useEffect(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,h)}),x.current=!1))}),f}function Cp(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Oc(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Xt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function Oc(e){if(e)return e.options.allowProjection!==!1?e.projection:Oc(e.parent)}function Pp({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var i,o;e&&hp(e);function a(c,u){let d;const f={...y.useContext(xi),...c,layoutId:Tp(c)},{isStatic:m}=f,g=xp(c),h=r(c,m);if(!m&&bi){Ep();const x=Rp(f);d=x.MeasureLayout,g.visualElement=Ap(s,h,f,t,x.ProjectionNode)}return p.jsxs(zr.Provider,{value:g,children:[d&&g.visualElement?p.jsx(d,{visualElement:g.visualElement,...f}):null,n(s,c,wp(h,g.visualElement,u),h,m,g.visualElement)]})}a.displayName=`motion.${typeof s=="string"?s:`create(${(o=(i=s.displayName)!==null&&i!==void 0?i:s.name)!==null&&o!==void 0?o:""})`}`;const l=y.forwardRef(a);return l[bp]=s,l}function Tp({layoutId:e}){const t=y.useContext(yi).id;return t&&e!==void 0?t+"-"+e:e}function Ep(e,t){y.useContext(Nc).strict}function Rp(e){const{drag:t,layout:n}=rn;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Dp=["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 Pi(e){return typeof e!="string"||e.includes("-")?!1:!!(Dp.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ko(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ti(e,t,n,r){if(typeof t=="function"){const[s,i]=Ko(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=Ko(r);t=t(n!==void 0?n:e.custom,s,i)}return t}const Os=e=>Array.isArray(e),jp=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Np=e=>Os(e)?e[e.length-1]||0:e,Te=e=>!!(e&&e.getVelocity);function vr(e){const t=Te(e)?e.get():e;return jp(t)?t.toValue():t}function Mp({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,i){const o={latestValues:kp(r,s,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const Fc=e=>(t,n)=>{const r=y.useContext(zr),s=y.useContext($r),i=()=>Mp(e,t,r,s);return n?i():vi(i)};function kp(e,t,n,r){const s={},i=r(e,{});for(const f in i)s[f]=vr(i[f]);let{initial:o,animate:a}=e;const l=Hr(e),c=kc(e);t&&c&&!l&&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"&&!Wr(d)){const f=Array.isArray(d)?d:[d];for(let m=0;mt=>typeof t=="string"&&t.startsWith(e),Ei=Lc("--"),Vp=Lc("var(--"),Ri=e=>Vp(e)?_p.test(e.split("/*")[0].trim()):!1,_p=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ic=(e,t)=>t&&typeof e=="number"?t.transform(e):e,pt=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},On={...hn,transform:e=>pt(0,1,e)},ur={...hn,default:1},Gn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),wt=Gn("deg"),ot=Gn("%"),H=Gn("px"),Op=Gn("vh"),Fp=Gn("vw"),qo={...ot,parse:e=>ot.parse(e)/100,transform:e=>ot.transform(e*100)},Lp={borderWidth:H,borderTopWidth:H,borderRightWidth:H,borderBottomWidth:H,borderLeftWidth:H,borderRadius:H,radius:H,borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomRightRadius:H,borderBottomLeftRadius:H,width:H,maxWidth:H,height:H,maxHeight:H,top:H,right:H,bottom:H,left:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,backgroundPositionX:H,backgroundPositionY:H},Ip={rotate:wt,rotateX:wt,rotateY:wt,rotateZ:wt,scale:ur,scaleX:ur,scaleY:ur,scaleZ:ur,skew:wt,skewX:wt,skewY:wt,distance:H,translateX:H,translateY:H,translateZ:H,x:H,y:H,z:H,perspective:H,transformPerspective:H,opacity:On,originX:qo,originY:qo,originZ:H},Xo={...hn,transform:Math.round},Di={...Lp,...Ip,zIndex:Xo,size:H,fillOpacity:On,strokeOpacity:On,numOctaves:Xo},Bp={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Up=fn.length;function $p(e,t,n){let r="",s=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}}),Bc=()=>({...Mi(),attrs:{}}),ki=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Uc(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const $c=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 zc(e,t,n,r){Uc(e,t,void 0,r);for(const s in t.attrs)e.setAttribute($c.has(s)?s:Ai(s),t.attrs[s])}const Fn={};function Kp(e){for(const t in e)Fn[t]=e[t],Ei(t)&&(Fn[t].isCSSVariable=!0)}function Wc(e,{layout:t,layoutId:n}){return Wt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Fn[e]||e==="opacity")}function Vi(e,t,n){var r;const{style:s}=e,i={};for(const o in s)(Te(s[o])||t.style&&Te(t.style[o])||Wc(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[o]=s[o]);return i}function Hc(e,t,n){const r=Vi(e,t,n);for(const s in e)if(Te(e[s])||Te(t[s])){const i=fn.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}function qp(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 Zo=["x","y","width","height","cx","cy","r"],Xp={useVisualState:Fc({scrapeMotionValuesFromProps:Hc,createRenderState:Bc,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let i=!!e.drag;if(!i){for(const a in s)if(Wt.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a{qp(n,r),ae.render(()=>{Ni(r,s,ki(n.tagName),e.transformTemplate),zc(n,r)})})}})},Yp={useVisualState:Fc({scrapeMotionValuesFromProps:Vi,createRenderState:Mi})};function Gc(e,t,n){for(const r in t)!Te(t[r])&&!Wc(r,n)&&(e[r]=t[r])}function Zp({transformTemplate:e},t){return y.useMemo(()=>{const n=Mi();return ji(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Jp(e,t){const n=e.style||{},r={};return Gc(r,n,e),Object.assign(r,Zp(e,t)),r}function Qp(e,t){const n={},r=Jp(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.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=r,n}function eg(e,t,n,r){const s=y.useMemo(()=>{const i=Bc();return Ni(i,t,ki(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Gc(i,e.style,e),s.style={...i,...s.style}}return s}function tg(e=!1){return(n,r,s,{latestValues:i},o)=>{const l=(Pi(n)?eg:Qp)(r,i,o,n),c=gp(r,typeof n=="string",e),u=n!==y.Fragment?{...c,...l,ref:s}:{},{children:d}=r,f=y.useMemo(()=>Te(d)?d.get():d,[d]);return y.createElement(n,{...u,children:f})}}function ng(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...Pi(r)?Xp:Yp,preloadedFeatures:e,useRender:tg(s),createVisualElement:t,Component:r};return Pp(o)}}function Kc(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r(xr===void 0&&at.set(we.isProcessing||up.useManualTiming?we.timestamp:performance.now()),xr),set:e=>{xr=e,queueMicrotask(rg)}};function Oi(e,t){e.indexOf(t)===-1&&e.push(t)}function Fi(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Li{constructor(){this.subscriptions=[]}add(t){return Oi(this.subscriptions,t),()=>Fi(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class ig{constructor(t,n={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=at.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&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=at.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=sg(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 Li);const r=this.events[t].add(n);return t==="change"?()=>{r(),ae.read(()=>{this.events.change.getSize()||this.stop()})}:r}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,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}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=at.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Jo)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Jo);return Xc(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 Ln(e,t){return new ig(e,t)}function og(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ln(n))}function ag(e,t){const n=Gr(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=Np(i[o]);og(e,o,a)}}function lg(e){return!!(Te(e)&&e.add)}function Fs(e,t){const n=e.getValue("willChange");if(lg(n))return n.add(t)}function Yc(e){return e.props[Vc]}function Ii(e){let t;return()=>(t===void 0&&(t=e()),t)}const cg=Ii(()=>window.ScrollTimeline!==void 0);class ug{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 r=0;r{if(cg()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,i)=>{s&&s(),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 dg extends ug{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const ht=e=>e*1e3,mt=e=>e/1e3;function Bi(e){return typeof e=="function"}function Qo(e,t){e.timeline=t,e.onfinish=null}const Ui=e=>Array.isArray(e)&&typeof e[0]=="number",fg={linearEasing:void 0};function hg(e,t){const n=Ii(e);return()=>{var r;return(r=fg[t])!==null&&r!==void 0?r:n()}}const Tr=hg(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),sn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Zc=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ls={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Cn([0,.65,.55,1]),circOut:Cn([.55,0,1,.45]),backIn:Cn([.31,.01,.66,-.59]),backOut:Cn([.33,1.53,.69,.99])};function Qc(e,t){if(e)return typeof e=="function"&&Tr()?Zc(e,t):Ui(e)?Cn(e):Array.isArray(e)?e.map(n=>Qc(n,t)||Ls.easeOut):Ls[e]}const eu=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,mg=1e-7,pg=12;function gg(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=eu(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>mg&&++agg(i,0,1,e,n);return i=>i===0||i===1?i:eu(s(i),t,r)}const tu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,nu=e=>t=>1-e(1-t),ru=Kn(.33,1.53,.69,.99),$i=nu(ru),su=tu($i),iu=e=>(e*=2)<1?.5*$i(e):.5*(2-Math.pow(2,-10*(e-1))),zi=e=>1-Math.sin(Math.acos(e)),ou=nu(zi),au=tu(zi),lu=e=>/^0[^.\s]+$/u.test(e);function yg(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||lu(e):!0}const Rn=e=>Math.round(e*1e5)/1e5,Wi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function vg(e){return e==null}const xg=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Hi=(e,t)=>n=>!!(typeof n=="string"&&xg.test(n)&&n.startsWith(e)||t&&!vg(n)&&Object.prototype.hasOwnProperty.call(n,t)),cu=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(Wi);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},bg=e=>pt(0,255,e),fs={...hn,transform:e=>Math.round(bg(e))},Ot={test:Hi("rgb","red"),parse:cu("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+fs.transform(e)+", "+fs.transform(t)+", "+fs.transform(n)+", "+Rn(On.transform(r))+")"};function wg(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Is={test:Hi("#"),parse:wg,transform:Ot.transform},Yt={test:Hi("hsl","hue"),parse:cu("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ot.transform(Rn(t))+", "+ot.transform(Rn(n))+", "+Rn(On.transform(r))+")"},Pe={test:e=>Ot.test(e)||Is.test(e)||Yt.test(e),parse:e=>Ot.test(e)?Ot.parse(e):Yt.test(e)?Yt.parse(e):Is.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ot.transform(e):Yt.transform(e)},Sg=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ag(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Wi))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Sg))===null||n===void 0?void 0:n.length)||0)>0}const uu="number",du="color",Cg="var",Pg="var(",ea="${}",Tg=/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 In(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(Tg,l=>(Pe.test(l)?(r.color.push(i),s.push(du),n.push(Pe.parse(l))):l.startsWith(Pg)?(r.var.push(i),s.push(Cg),n.push(l)):(r.number.push(i),s.push(uu),n.push(parseFloat(l))),++i,ea)).split(ea);return{values:n,split:a,indexes:r,types:s}}function fu(e){return In(e).values}function hu(e){const{split:t,types:n}=In(e),r=t.length;return s=>{let i="";for(let o=0;otypeof e=="number"?0:e;function Rg(e){const t=fu(e);return hu(e)(t.map(Eg))}const Pt={test:Ag,parse:fu,createTransformer:hu,getAnimatableNone:Rg},Dg=new Set(["brightness","contrast","saturate","opacity"]);function jg(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Wi)||[];if(!r)return e;const s=n.replace(r,"");let i=Dg.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const Ng=/\b([a-z-]*)\(.*?\)/gu,Bs={...Pt,getAnimatableNone:e=>{const t=e.match(Ng);return t?t.map(jg).join(" "):e}},Mg={...Di,color:Pe,backgroundColor:Pe,outlineColor:Pe,fill:Pe,stroke:Pe,borderColor:Pe,borderTopColor:Pe,borderRightColor:Pe,borderBottomColor:Pe,borderLeftColor:Pe,filter:Bs,WebkitFilter:Bs},Gi=e=>Mg[e];function mu(e,t){let n=Gi(e);return n!==Bs&&(n=Pt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const kg=new Set(["auto","none","0"]);function Vg(e,t,n){let r=0,s;for(;re===hn||e===H,na=(e,t)=>parseFloat(e.split(", ")[t]),ra=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return na(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?na(i[1],e):0}},_g=new Set(["x","y","z"]),Og=fn.filter(e=>!_g.has(e));function Fg(e){const t=[];return Og.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const on={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:ra(4,13),y:ra(5,14)};on.translateX=on.x;on.translateY=on.y;const Lt=new Set;let Us=!1,$s=!1;function pu(){if($s){const e=Array.from(Lt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=Fg(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}$s=!1,Us=!1,Lt.forEach(e=>e.complete()),Lt.clear()}function gu(){Lt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&($s=!0)})}function Lg(){gu(),pu()}class Ki{constructor(t,n,r,s,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Lt.add(this),Us||(Us=!0,ae.read(gu),ae.resolveKeyframes(pu))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let i=0;i/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ig=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Bg(e){const t=Ig.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function vu(e,t,n=1){const[r,s]=Bg(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return yu(o)?parseFloat(o):o}return Ri(s)?vu(s,t,n+1):s}const xu=e=>t=>t.test(e),Ug={test:e=>e==="auto",parse:e=>e},bu=[hn,H,ot,wt,Fp,Op,Ug],sa=e=>bu.find(xu(e));class wu extends Ki{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const ia=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Pt.test(e)||e==="0")&&!e.startsWith("url("));function $g(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function Kr(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(Wg),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const Hg=40;class Su{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=at.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Hg?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Lg(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=at.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:o,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!zg(t,r,s,i))if(o)this.options.duration=0;else{l&&l(Kr(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 zs=2e4;function Au(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=zs?1/0:t}const le=(e,t,n)=>e+(t-e)*n;function hs(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 Gg({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=hs(l,a,e+1/3),i=hs(l,a,e),o=hs(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Er(e,t){return n=>n>0?t:e}const ms=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},Kg=[Is,Ot,Yt],qg=e=>Kg.find(t=>t.test(e));function oa(e){const t=qg(e);if(!t)return!1;let n=t.parse(e);return t===Yt&&(n=Gg(n)),n}const aa=(e,t)=>{const n=oa(e),r=oa(t);if(!n||!r)return Er(e,t);const s={...n};return i=>(s.red=ms(n.red,r.red,i),s.green=ms(n.green,r.green,i),s.blue=ms(n.blue,r.blue,i),s.alpha=le(n.alpha,r.alpha,i),Ot.transform(s))},Xg=(e,t)=>n=>t(e(n)),qn=(...e)=>e.reduce(Xg),Ws=new Set(["none","hidden"]);function Yg(e,t){return Ws.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Zg(e,t){return n=>le(e,t,n)}function qi(e){return typeof e=="number"?Zg:typeof e=="string"?Ri(e)?Er:Pe.test(e)?aa:ey:Array.isArray(e)?Cu:typeof e=="object"?Pe.test(e)?aa:Jg:Er}function Cu(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>qi(i)(i,t[o]));return i=>{for(let o=0;o{for(const i in r)n[i]=r[i](s);return n}}function Qg(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i{const n=Pt.createTransformer(t),r=In(e),s=In(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Ws.has(e)&&!s.values.length||Ws.has(t)&&!r.values.length?Yg(e,t):qn(Cu(Qg(r,s),s.values),n):Er(e,t)};function Pu(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?le(e,t,n):qi(e)(e,t)}const ty=5;function Tu(e,t,n){const r=Math.max(t-ty,0);return Xc(n-e(r),t-r)}const ue={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},la=.001;function ny({duration:e=ue.duration,bounce:t=ue.bounce,velocity:n=ue.velocity,mass:r=ue.mass}){let s,i,o=1-t;o=pt(ue.minDamping,ue.maxDamping,o),e=pt(ue.minDuration,ue.maxDuration,mt(e)),o<1?(s=c=>{const u=c*o,d=u*e,f=u-n,m=Hs(c,o),g=Math.exp(-d);return la-f/m*g},i=c=>{const d=c*o*e,f=d*n+n,m=Math.pow(o,2)*Math.pow(c,2)*e,g=Math.exp(-d),h=Hs(Math.pow(c,2),o);return(-s(c)+la>0?-1:1)*((f-m)*g)/h}):(s=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-.001+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=sy(s,i,a);if(e=ht(e),isNaN(l))return{stiffness:ue.stiffness,damping:ue.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const ry=12;function sy(e,t,n){let r=n;for(let s=1;se[n]!==void 0)}function ay(e){let t={velocity:ue.velocity,stiffness:ue.stiffness,damping:ue.damping,mass:ue.mass,isResolvedFromDuration:!1,...e};if(!ca(e,oy)&&ca(e,iy))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*pt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:ue.mass,stiffness:s,damping:i}}else{const n=ny(e);t={...t,...n,mass:ue.mass},t.isResolvedFromDuration=!0}return t}function Eu(e=ue.visualDuration,t=ue.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:m}=ay({...n,velocity:-mt(n.velocity||0)}),g=f||0,h=c/(2*Math.sqrt(l*u)),x=o-i,v=mt(Math.sqrt(l/u)),b=Math.abs(x)<5;r||(r=b?ue.restSpeed.granular:ue.restSpeed.default),s||(s=b?ue.restDelta.granular:ue.restDelta.default);let A;if(h<1){const S=Hs(v,h);A=T=>{const E=Math.exp(-h*v*T);return o-E*((g+h*v*x)/S*Math.sin(S*T)+x*Math.cos(S*T))}}else if(h===1)A=S=>o-Math.exp(-v*S)*(x+(g+v*x)*S);else{const S=v*Math.sqrt(h*h-1);A=T=>{const E=Math.exp(-h*v*T),D=Math.min(S*T,300);return o-E*((g+h*v*x)*Math.sinh(D)+S*x*Math.cosh(D))/S}}const P={calculatedDuration:m&&d||null,next:S=>{const T=A(S);if(m)a.done=S>=d;else{let E=0;h<1&&(E=S===0?ht(g):Tu(A,S,T));const D=Math.abs(E)<=r,M=Math.abs(o-T)<=s;a.done=D&&M}return a.value=a.done?o:T,a},toString:()=>{const S=Math.min(Au(P),zs),T=Zc(E=>P.next(S*E).value,S,30);return S+"ms "+T}};return P}function ua({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},m=D=>a!==void 0&&Dl,g=D=>a===void 0?l:l===void 0||Math.abs(a-D)-h*Math.exp(-D/r),A=D=>v+b(D),P=D=>{const M=b(D),V=A(D);f.done=Math.abs(M)<=c,f.value=f.done?v:V};let S,T;const E=D=>{m(f.value)&&(S=D,T=Eu({keyframes:[f.value,g(f.value)],velocity:Tu(A,D,f.value),damping:s,stiffness:i,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:D=>{let M=!1;return!T&&S===void 0&&(M=!0,P(D),E(D)),S!==void 0&&D>=S?T.next(D-S):(!M&&P(D),f)}}}const ly=Kn(.42,0,1,1),cy=Kn(0,0,.58,1),Ru=Kn(.42,0,.58,1),uy=e=>Array.isArray(e)&&typeof e[0]!="number",da={linear:Le,easeIn:ly,easeInOut:Ru,easeOut:cy,circIn:zi,circInOut:au,circOut:ou,backIn:$i,backInOut:su,backOut:ru,anticipate:iu},fa=e=>{if(Ui(e)){_s(e.length===4);const[t,n,r,s]=e;return Kn(t,n,r,s)}else if(typeof e=="string")return _s(da[e]!==void 0),da[e];return e};function dy(e,t,n){const r=[],s=n||Pu,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=dy(t,r,s),l=a.length,c=u=>{if(o&&u1)for(;dc(pt(e[0],e[i-1],u)):c}function hy(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=sn(0,t,r);e.push(le(n,1,s))}}function my(e){const t=[0];return hy(t,e.length-1),t}function py(e,t){return e.map(n=>n*t)}function gy(e,t){return e.map(()=>t||Ru).splice(0,e.length-1)}function Rr({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=uy(r)?r.map(fa):fa(r),i={done:!1,value:t[0]},o=py(n&&n.length===t.length?n:my(t),e),a=fy(o,t,{ease:Array.isArray(s)?s:gy(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const yy=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ae.update(t,!0),stop:()=>Ct(t),now:()=>we.isProcessing?we.timestamp:at.now()}},vy={decay:ua,inertia:ua,tween:Rr,keyframes:Rr,spring:Eu},xy=e=>e/100;class Xi extends Su{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:l}=this.options;l&&l()};const{name:n,motionValue:r,element:s,keyframes:i}=this.options,o=(s==null?void 0:s.KeyframeResolver)||Ki,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new o(i,a,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=this.options,a=Bi(n)?n:vy[n]||Rr;let l,c;a!==Rr&&typeof t[0]!="number"&&(l=qn(xy,Pu(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});i==="mirror"&&(c=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=Au(u));const{calculatedDuration:d}=u,f=d+s,m=f*(r+1)-s;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:m}}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:r}=this;if(!r){const{keyframes:D}=this.options;return{done:!0,value:D[D.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:m,repeatType:g,repeatDelay:h,onUpdate:x}=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 A=this.currentTime,P=i;if(m){const D=Math.min(this.currentTime,u)/d;let M=Math.floor(D),V=D%1;!V&&D>=1&&(V=1),V===1&&M--,M=Math.min(M,m+1),!!(M%2)&&(g==="reverse"?(V=1-V,h&&(V-=h/d)):g==="mirror"&&(P=o)),A=pt(0,1,V)*d}const S=b?{done:!1,value:l[0]}:P.next(A);a&&(S.value=a(S.value));let{done:T}=S;!b&&c!==null&&(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return E&&s!==void 0&&(S.value=Kr(l,this.options,s)),x&&x(S.value),E&&this.finish(),S}get duration(){const{resolved:t}=this;return t?mt(t.calculatedDuration):0}get time(){return mt(this.currentTime)}set time(t){t=ht(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=mt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=yy,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??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 by=new Set(["opacity","clipPath","filter","transform"]);function wy(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Qc(a,s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const Sy=Ii(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Dr=10,Ay=2e4;function Cy(e){return Bi(e.type)||e.type==="spring"||!Jc(e.ease)}function Py(e,t){const n=new Xi({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(o,a),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:i,type:o,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&Tr()&&Ty(i)&&(i=Du[i]),Cy(this.options)){const{onComplete:d,onUpdate:f,motionValue:m,element:g,...h}=this.options,x=Py(t,h);t=x.keyframes,t.length===1&&(t[1]=t[0]),r=x.duration,s=x.times,i=x.ease,o="keyframes"}const u=wy(a.owner.current,l,t,{...this.options,duration:r,times:s,ease:i});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(Qo(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(Kr(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:s,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return mt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return mt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ht(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:r}=n;r.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 Le;const{animation:r}=n;Qo(r,t)}return Le}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:r,duration:s,type:i,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:d,element:f,...m}=this.options,g=new Xi({...m,keyframes:r,duration:s,type:i,ease:o,times:a,isGenerator:!0}),h=ht(this.time);c.setWithVelocity(g.sample(h-Dr).value,g.sample(h).value,Dr)}const{onStop:l}=this.options;l&&l(),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:r,repeatDelay:s,repeatType:i,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return Sy()&&r&&by.has(r)&&!l&&!c&&!s&&i!=="mirror"&&o!==0&&a!=="inertia"}}const Ey={type:"spring",stiffness:500,damping:25,restSpeed:10},Ry=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Dy={type:"keyframes",duration:.8},jy={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ny=(e,{keyframes:t})=>t.length>2?Dy:Wt.has(e)?e.startsWith("scale")?Ry(t[1]):Ey:jy;function My({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Yi=(e,t,n,r={},s,i)=>o=>{const a=_i(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-ht(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};My(a)||(u={...u,...Ny(e,u)}),u.duration&&(u.duration=ht(u.duration)),u.repeatDelay&&(u.repeatDelay=ht(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=Kr(u.keyframes,a);if(f!==void 0)return ae.update(()=>{u.onUpdate(f),u.onComplete()}),new dg([])}return!i&&ha.supports(u)?new ha(u):new Xi(u)};function ky({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ju(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(o=r);const c=[],u=s&&e.animationState&&e.animationState.getState()[s];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),m=l[d];if(m===void 0||u&&ky(u,d))continue;const g={delay:n,..._i(o||{},d)};let h=!1;if(window.MotionHandoffAnimation){const v=Yc(e);if(v){const b=window.MotionHandoffAnimation(v,d,ae);b!==null&&(g.startTime=b,h=!0)}}Fs(e,d),f.start(Yi(d,f,m,e.shouldReduceMotion&&qc.has(d)?{type:!1}:g,e,h));const x=f.animation;x&&c.push(x)}return a&&Promise.all(c).then(()=>{ae.update(()=>{a&&ag(e,a)})}),c}function Gs(e,t,n={}){var r;const s=Gr(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(ju(e,s,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return Vy(e,t,u+c,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,u]=l==="beforeChildren"?[o,a]:[a,o];return c().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function Vy(e,t,n=0,r=0,s=1,i){const o=[],a=(e.variantChildren.size-1)*r,l=s===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(_y).forEach((c,u)=>{c.notify("AnimationStart",t),o.push(Gs(c,t,{...i,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(o)}function _y(e,t){return e.sortNodePosition(t)}function Oy(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>Gs(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=Gs(e,t,n);else{const s=typeof t=="function"?Gr(e,t,n.custom):t;r=Promise.all(ju(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Fy=Si.length;function Nu(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Nu(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:r})=>Oy(e,n,r)))}function Uy(e){let t=By(e),n=ma(),r=!0;const s=l=>(c,u)=>{var d;const f=Gr(e,u,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:m,transitionEnd:g,...h}=f;c={...c,...h,...g}}return c};function i(l){t=l(e)}function o(l){const{props:c}=e,u=Nu(e.parent)||{},d=[],f=new Set;let m={},g=1/0;for(let x=0;xg&&P,M=!1;const V=Array.isArray(A)?A:[A];let I=V.reduce(s(v),{});S===!1&&(I={});const{prevResolvedValues:j={}}=b,F={...j,...I},L=U=>{D=!0,f.has(U)&&(M=!0,f.delete(U)),b.needsAnimating[U]=!0;const B=e.getValue(U);B&&(B.liveStyle=!1)};for(const U in F){const B=I[U],K=j[U];if(m.hasOwnProperty(U))continue;let Q=!1;Os(B)&&Os(K)?Q=!Kc(B,K):Q=B!==K,Q?B!=null?L(U):f.add(U):B!==void 0&&f.has(U)?L(U):b.protectedKeys[U]=!0}b.prevProp=A,b.prevResolvedValues=I,b.isActive&&(m={...m,...I}),r&&e.blockInitialAnimation&&(D=!1),D&&(!(T&&E)||M)&&d.push(...V.map(U=>({animation:U,options:{type:v}})))}if(f.size){const x={};f.forEach(v=>{const b=e.getBaseTarget(v),A=e.getValue(v);A&&(A.liveStyle=!0),x[v]=b??null}),d.push({animation:x})}let h=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(h=!1),r=!1,h?t(d):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(f=>{var m;return(m=f.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),n[l].isActive=c;const d=o(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=ma(),r=!0}}}function $y(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Kc(t,e):!1}function kt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ma(){return{animate:kt(!0),whileInView:kt(),whileHover:kt(),whileTap:kt(),whileDrag:kt(),whileFocus:kt(),exit:kt()}}class Dt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class zy extends Dt{constructor(t){super(t),t.animationState||(t.animationState=Uy(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Wr(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 Wy=0;class Hy extends Dt{constructor(){super(...arguments),this.id=Wy++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Gy={animation:{Feature:zy},exit:{Feature:Hy}},qe={x:!1,y:!1};function Mu(){return qe.x||qe.y}function Ky(e){return e==="x"||e==="y"?qe[e]?null:(qe[e]=!0,()=>{qe[e]=!1}):qe.x||qe.y?null:(qe.x=qe.y=!0,()=>{qe.x=qe.y=!1})}const Zi=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Bn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Xn(e){return{point:{x:e.pageX,y:e.pageY}}}const qy=e=>t=>Zi(t)&&e(t,Xn(t));function Dn(e,t,n,r){return Bn(e,t,qy(n),r)}const pa=(e,t)=>Math.abs(e-t);function Xy(e,t){const n=pa(e.x,t.x),r=pa(e.y,t.y);return Math.sqrt(n**2+r**2)}class ku{constructor(t,n,{transformPagePoint:r,contextWindow:s,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=gs(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,m=Xy(d.offset,{x:0,y:0})>=3;if(!f&&!m)return;const{point:g}=d,{timestamp:h}=we;this.history.push({...g,timestamp:h});const{onStart:x,onMove:v}=this.handlers;f||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=ps(f,this.transformPagePoint),ae.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=gs(d.type==="pointercancel"?this.lastMoveEventInfo:ps(f,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,x),g&&g(d,x)},!Zi(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const o=Xn(t),a=ps(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=we;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,gs(a,this.history)),this.removeListeners=qn(Dn(this.contextWindow,"pointermove",this.handlePointerMove),Dn(this.contextWindow,"pointerup",this.handlePointerUp),Dn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ct(this.updatePoint)}}function ps(e,t){return t?{point:t(e.point)}:e}function ga(e,t){return{x:e.x-t.x,y:e.y-t.y}}function gs({point:e},t){return{point:e,delta:ga(e,Vu(t)),offset:ga(e,Yy(t)),velocity:Zy(t,.1)}}function Yy(e){return e[0]}function Vu(e){return e[e.length-1]}function Zy(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=Vu(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>ht(t)));)n--;if(!r)return{x:0,y:0};const i=mt(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const _u=1e-4,Jy=1-_u,Qy=1+_u,Ou=.01,ev=0-Ou,tv=0+Ou;function je(e){return e.max-e.min}function nv(e,t,n){return Math.abs(e-t)<=n}function ya(e,t,n,r=.5){e.origin=r,e.originPoint=le(t.min,t.max,e.origin),e.scale=je(n)/je(t),e.translate=le(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Jy&&e.scale<=Qy||isNaN(e.scale))&&(e.scale=1),(e.translate>=ev&&e.translate<=tv||isNaN(e.translate))&&(e.translate=0)}function jn(e,t,n,r){ya(e.x,t.x,n.x,r?r.originX:void 0),ya(e.y,t.y,n.y,r?r.originY:void 0)}function va(e,t,n){e.min=n.min+t.min,e.max=e.min+je(t)}function rv(e,t,n){va(e.x,t.x,n.x),va(e.y,t.y,n.y)}function xa(e,t,n){e.min=t.min-n.min,e.max=e.min+je(t)}function Nn(e,t,n){xa(e.x,t.x,n.x),xa(e.y,t.y,n.y)}function sv(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?le(n,e,r.max):Math.min(e,n)),e}function ba(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 iv(e,{top:t,left:n,bottom:r,right:s}){return{x:ba(e.x,n,s),y:ba(e.y,t,r)}}function wa(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=sn(t.min,t.max-r,e.min):r>s&&(n=sn(e.min,e.max-s,t.min)),pt(0,1,n)}function lv(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 Ks=.35;function cv(e=Ks){return e===!1?e=0:e===!0&&(e=Ks),{x:Sa(e,"left","right"),y:Sa(e,"top","bottom")}}function Sa(e,t,n){return{min:Aa(e,t),max:Aa(e,n)}}function Aa(e,t){return typeof e=="number"?e:e[t]||0}const Ca=()=>({translate:0,scale:1,origin:0,originPoint:0}),Zt=()=>({x:Ca(),y:Ca()}),Pa=()=>({min:0,max:0}),he=()=>({x:Pa(),y:Pa()});function ze(e){return[e("x"),e("y")]}function Fu({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function uv({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function dv(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ys(e){return e===void 0||e===1}function qs({scale:e,scaleX:t,scaleY:n}){return!ys(e)||!ys(t)||!ys(n)}function Vt(e){return qs(e)||Lu(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Lu(e){return Ta(e.x)||Ta(e.y)}function Ta(e){return e&&e!=="0%"}function jr(e,t,n){const r=e-n,s=t*r;return n+s}function Ea(e,t,n,r,s){return s!==void 0&&(e=jr(e,s,r)),jr(e,n,r)+t}function Xs(e,t=0,n=1,r,s){e.min=Ea(e.min,t,n,r,s),e.max=Ea(e.max,t,n,r,s)}function Iu(e,{x:t,y:n}){Xs(e.x,t.translate,t.scale,t.originPoint),Xs(e.y,n.translate,n.scale,n.originPoint)}const Ra=.999999999999,Da=1.0000000000001;function fv(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let a=0;aRa&&(t.x=1),t.yRa&&(t.y=1)}function Jt(e,t){e.min=e.min+t,e.max=e.max+t}function ja(e,t,n,r,s=.5){const i=le(e.min,e.max,s);Xs(e,t,n,i,r)}function Qt(e,t){ja(e.x,t.x,t.scaleX,t.scale,t.originX),ja(e.y,t.y,t.scaleY,t.scale,t.originY)}function Bu(e,t){return Fu(dv(e.getBoundingClientRect(),t))}function hv(e,t,n){const r=Bu(e,n),{scroll:s}=t;return s&&(Jt(r.x,s.offset.x),Jt(r.y,s.offset.y)),r}const Uu=({current:e})=>e?e.ownerDocument.defaultView:null,mv=new WeakMap;class pv{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=he(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Xn(u).point)},i=(u,d)=>{const{drag:f,dragPropagation:m,onDragStart:g}=this.getProps();if(f&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ky(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),ze(x=>{let v=this.getAxisMotionValue(x).get()||0;if(ot.test(v)){const{projection:b}=this.visualElement;if(b&&b.layout){const A=b.layout.layoutBox[x];A&&(v=je(A)*(parseFloat(v)/100))}}this.originPoint[x]=v}),g&&ae.postRender(()=>g(u,d)),Fs(this.visualElement,"transform");const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:f,dragDirectionLock:m,onDirectionLock:g,onDrag:h}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:x}=d;if(m&&this.currentDirection===null){this.currentDirection=gv(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),h&&h(u,d)},a=(u,d)=>this.stop(u,d),l=()=>ze(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new ku(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Uu(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&ae.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:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!dr(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=sv(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=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&&Xt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=iv(s.layoutBox,n):this.constraints=!1,this.elastic=cv(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&ze(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=lv(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Xt(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=hv(r,s.root,this.visualElement.getTransformPagePoint());let o=ov(s.layout.layoutBox,i);if(n){const a=n(uv(o));this.hasMutatedConstraints=!!a,a&&(o=Fu(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=ze(u=>{if(!dr(u,n,this.currentDirection))return;let d=l[u]||{};o&&(d={min:0,max:0});const f=s?200:1e6,m=s?40:1e7,g={type:"inertia",velocity:r?t[u]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,g)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Fs(this.visualElement,t),r.start(Yi(t,r,0,n,this.visualElement,!1))}stopAnimation(){ze(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ze(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()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ze(n=>{const{drag:r}=this.getProps();if(!dr(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n];i.set(t[n]-le(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Xt(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};ze(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=av({min:l,max:l},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ze(o=>{if(!dr(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(le(l,c,s[o]))})}addListeners(){if(!this.visualElement.current)return;mv.set(this.visualElement,this);const t=this.visualElement.current,n=Dn(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Xt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),ae.read(r);const o=Bn(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(ze(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=Ks,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function dr(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function gv(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class yv extends Dt{constructor(t){super(t),this.removeGroupControls=Le,this.removeListeners=Le,this.controls=new pv(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Le}unmount(){this.removeGroupControls(),this.removeListeners()}}const Na=e=>(t,n)=>{e&&ae.postRender(()=>e(t,n))};class vv extends Dt{constructor(){super(...arguments),this.removePointerDownListener=Le}onPointerDown(t){this.session=new ku(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Uu(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:Na(t),onStart:Na(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&ae.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=Dn(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 br={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ma(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const wn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(H.test(e))e=parseFloat(e);else return e;const n=Ma(e,t.target.x),r=Ma(e,t.target.y);return`${n}% ${r}%`}},xv={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Pt.parse(e);if(s.length>5)return r;const i=Pt.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const c=le(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}};class bv extends y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;Kp(wv),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),br.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,s||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||ae.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ci.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function $u(e){const[t,n]=Rc(),r=y.useContext(yi);return p.jsx(bv,{...e,layoutGroup:r,switchLayoutGroup:y.useContext(_c),isPresent:t,safeToRemove:n})}const wv={borderRadius:{...wn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wn,borderTopRightRadius:wn,borderBottomLeftRadius:wn,borderBottomRightRadius:wn,boxShadow:xv};function Sv(e,t,n){const r=Te(e)?e:Ln(e);return r.start(Yi("",r,t,n)),r.animation}function Av(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Cv=(e,t)=>e.depth-t.depth;class Pv{constructor(){this.children=[],this.isDirty=!1}add(t){Oi(this.children,t),this.isDirty=!0}remove(t){Fi(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Cv),this.isDirty=!1,this.children.forEach(t)}}function Tv(e,t){const n=at.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Ct(r),e(i-t))};return ae.read(r,!0),()=>Ct(r)}const zu=["TopLeft","TopRight","BottomLeft","BottomRight"],Ev=zu.length,ka=e=>typeof e=="string"?parseFloat(e):e,Va=e=>typeof e=="number"||H.test(e);function Rv(e,t,n,r,s,i){s?(e.opacity=le(0,n.opacity!==void 0?n.opacity:1,Dv(r)),e.opacityExit=le(t.opacity!==void 0?t.opacity:1,0,jv(r))):i&&(e.opacity=le(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;ort?1:n(sn(e,t,r))}function Oa(e,t){e.min=t.min,e.max=t.max}function $e(e,t){Oa(e.x,t.x),Oa(e.y,t.y)}function Fa(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function La(e,t,n,r,s){return e-=t,e=jr(e,1/n,r),s!==void 0&&(e=jr(e,1/s,r)),e}function Nv(e,t=0,n=1,r=.5,s,i=e,o=e){if(ot.test(t)&&(t=parseFloat(t),t=le(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=le(i.min,i.max,r);e===i&&(a-=t),e.min=La(e.min,t,n,a,s),e.max=La(e.max,t,n,a,s)}function Ia(e,t,[n,r,s],i,o){Nv(e,t[n],t[r],t[s],t.scale,i,o)}const Mv=["x","scaleX","originX"],kv=["y","scaleY","originY"];function Ba(e,t,n,r){Ia(e.x,t,Mv,n?n.x:void 0,r?r.x:void 0),Ia(e.y,t,kv,n?n.y:void 0,r?r.y:void 0)}function Ua(e){return e.translate===0&&e.scale===1}function Hu(e){return Ua(e.x)&&Ua(e.y)}function $a(e,t){return e.min===t.min&&e.max===t.max}function Vv(e,t){return $a(e.x,t.x)&&$a(e.y,t.y)}function za(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Gu(e,t){return za(e.x,t.x)&&za(e.y,t.y)}function Wa(e){return je(e.x)/je(e.y)}function Ha(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class _v{constructor(){this.members=[]}add(t){Oi(this.members,t),t.scheduleRender()}remove(t){if(Fi(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(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ov(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:m,skewY:g}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),m&&(r+=`skewX(${m}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const _t={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Pn=typeof window<"u"&&window.MotionDebug!==void 0,vs=["","X","Y","Z"],Fv={visibility:"hidden"},Ga=1e3;let Lv=0;function xs(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ku(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Yc(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ae,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ku(r)}function qu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=Lv++,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,Pn&&(_t.totalNodes=_t.resolvedTargetDeltas=_t.recalculatedProjection=0),this.nodes.forEach(Uv),this.nodes.forEach(Gv),this.nodes.forEach(Kv),this.nodes.forEach($v),Pn&&window.MotionDebug.record(_t)},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 l=0;lthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=Tv(f,250),br.hasAnimatedSinceResize&&(br.hasAnimatedSinceResize=!1,this.nodes.forEach(qa))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:m,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||u.getDefaultTransition()||Jv,{onLayoutAnimationStart:x,onLayoutAnimationComplete:v}=u.getProps(),b=!this.targetLayout||!Gu(this.targetLayout,g),A=!f&&m;if(this.options.layoutRoot||this.resumeFrom||A||f&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,A);const P={..._i(h,"layout"),onPlay:x,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else f||qa(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}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,Ct(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(qv),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&&Ku(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&&!je(this.snapshot.measuredBox.x)&&!je(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 l=0;l{const S=P/1e3;Xa(d.x,o.x,S),Xa(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Nn(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Yv(this.relativeTarget,this.relativeTargetOrigin,f,S),A&&Vv(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=he()),$e(A,this.relativeTarget)),h&&(this.animationValues=u,Rv(u,c,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&&(Ct(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ae.update(()=>{br.hasAnimatedSinceResize=!0,this.currentAnimation=Sv(0,Ga,{...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(Ga),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&Xu(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||he();const d=je(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=je(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}$e(a,l),Qt(a,u),jn(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new _v),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.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:l}={}){const c=this.getStack();c&&c.promote(this,l),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:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&xs("z",o,c,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(Ka),this.root.sharedNodes.clear()}}}function Iv(e){e.updateLayout()}function Bv(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:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?ze(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],m=je(f);f.min=r[d].min,f.max=f.min+m}):Xu(i,n.layoutBox,r)&&ze(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],m=je(r[d]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+m)});const a=Zt();jn(a,r,n.layoutBox);const l=Zt();o?jn(l,e.applyTransform(s,!0),n.measuredBox):jn(l,r,n.layoutBox);const c=!Hu(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:m}=d;if(f&&m){const g=he();Nn(g,n.layoutBox,f.layoutBox);const h=he();Nn(h,r,m.layoutBox),Gu(g,h)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Uv(e){Pn&&_t.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 $v(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function zv(e){e.clearSnapshot()}function Ka(e){e.clearMeasurements()}function Wv(e){e.isLayoutDirty=!1}function Hv(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function qa(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Gv(e){e.resolveTargetDelta()}function Kv(e){e.calcProjection()}function qv(e){e.resetSkewAndRotation()}function Xv(e){e.removeLeadSnapshot()}function Xa(e,t,n){e.translate=le(t.translate,0,n),e.scale=le(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ya(e,t,n,r){e.min=le(t.min,n.min,r),e.max=le(t.max,n.max,r)}function Yv(e,t,n,r){Ya(e.x,t.x,n.x,r),Ya(e.y,t.y,n.y,r)}function Zv(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Jv={duration:.45,ease:[.4,0,.1,1]},Za=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ja=Za("applewebkit/")&&!Za("chrome/")?Math.round:Le;function Qa(e){e.min=Ja(e.min),e.max=Ja(e.max)}function Qv(e){Qa(e.x),Qa(e.y)}function Xu(e,t,n){return e==="position"||e==="preserve-aspect"&&!nv(Wa(t),Wa(n),.2)}function ex(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const tx=qu({attachResizeListener:(e,t)=>Bn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),bs={current:void 0},Yu=qu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!bs.current){const e=new tx({});e.mount(window),e.setOptions({layoutScroll:!0}),bs.current=e}return bs.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),nx={pan:{Feature:vv},drag:{Feature:yv,ProjectionNode:Yu,MeasureLayout:$u}};function rx(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;const i=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Zu(e,t){const n=rx(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function el(e){return!(e.pointerType==="touch"||Mu())}function sx(e,t,n={}){const[r,s,i]=Zu(e,n),o=a=>{if(!el(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const u=d=>{el(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,s)};return r.forEach(a=>{a.addEventListener("pointerenter",o,s)}),i}function tl(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&ae.postRender(()=>i(t,Xn(t)))}class ix extends Dt{mount(){const{current:t}=this.node;t&&(this.unmount=sx(t,(n,r)=>(tl(this.node,r,"Start"),s=>tl(this.node,s,"End"))))}unmount(){}}class ox extends Dt{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=qn(Bn(this.node.current,"focus",()=>this.onFocus()),Bn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Ju=(e,t)=>t?e===t?!0:Ju(e,t.parentElement):!1,ax=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function lx(e){return ax.has(e.tagName)||e.tabIndex!==-1}const Tn=new WeakSet;function nl(e){return t=>{t.key==="Enter"&&e(t)}}function ws(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const cx=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=nl(()=>{if(Tn.has(n))return;ws(n,"down");const s=nl(()=>{ws(n,"up")}),i=()=>ws(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function rl(e){return Zi(e)&&!Mu()}function ux(e,t,n={}){const[r,s,i]=Zu(e,n),o=a=>{const l=a.currentTarget;if(!rl(a)||Tn.has(l))return;Tn.add(l);const c=t(l,a),u=(m,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!rl(m)||!Tn.has(l))&&(Tn.delete(l),typeof c=="function"&&c(m,{success:g}))},d=m=>{u(m,n.useGlobalTarget||Ju(l,m.target))},f=m=>{u(m,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",f,s)};return r.forEach(a=>{!lx(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),a.addEventListener("focus",c=>cx(c,s),s)}),i}function sl(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&ae.postRender(()=>i(t,Xn(t)))}class dx extends Dt{mount(){const{current:t}=this.node;t&&(this.unmount=ux(t,(n,r)=>(sl(this.node,r,"Start"),(s,{success:i})=>sl(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ys=new WeakMap,Ss=new WeakMap,fx=e=>{const t=Ys.get(e.target);t&&t(e)},hx=e=>{e.forEach(fx)};function mx({root:e,...t}){const n=e||document;Ss.has(n)||Ss.set(n,{});const r=Ss.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(hx,{root:e,...t})),r[s]}function px(e,t,n){const r=mx(t);return Ys.set(e,n),r.observe(e),()=>{Ys.delete(e),r.unobserve(e)}}const gx={some:0,all:1};class yx extends Dt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:gx[s]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return px(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(vx(t,n))&&this.startObserver()}unmount(){}}function vx({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const xx={inView:{Feature:yx},tap:{Feature:dx},focus:{Feature:ox},hover:{Feature:ix}},bx={layout:{ProjectionNode:Yu,MeasureLayout:$u}},Zs={current:null},Qu={current:!1};function wx(){if(Qu.current=!0,!!bi)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Zs.current=e.matches;e.addListener(t),t()}else Zs.current=!1}const Sx=[...bu,Pe,Pt],Ax=e=>Sx.find(xu(e)),il=new WeakMap;function Cx(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Te(s))e.addValue(r,s);else if(Te(i))e.addValue(r,Ln(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,Ln(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ol=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Px{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,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=Ki,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 m=at.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),Qu.current||wx(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Zs.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){il.delete(this.current),this.projection&&this.projection.unmount(),Ct(this.notifyUpdate),Ct(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 r=Wt.has(t),s=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ae.preRender(this.notifyUpdate),r&&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,()=>{s(),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 rn){const n=rn[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(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):he()}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 r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&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 r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ln(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(yu(s)||lu(s))?s=parseFloat(s):!Ax(s)&&Pt.test(n)&&(s=mu(t,n)),this.setBaseTarget(t,Te(s)?s.get():s)),Te(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const o=Ti(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(s=o[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Te(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Li),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class ed extends Px{constructor(){super(...arguments),this.KeyframeResolver=wu}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:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Te(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Tx(e){return window.getComputedStyle(e)}class Ex extends ed{constructor(){super(...arguments),this.type="html",this.renderInstance=Uc}readValueFromInstance(t,n){if(Wt.has(n)){const r=Gi(n);return r&&r.default||0}else{const r=Tx(t),s=(Ei(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Bu(t,n)}build(t,n,r){ji(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Vi(t,n,r)}}class Rx extends ed{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=he}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Wt.has(n)){const r=Gi(n);return r&&r.default||0}return n=$c.has(n)?n:Ai(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Hc(t,n,r)}build(t,n,r){Ni(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){zc(t,n,r,s)}mount(t){this.isSVGTag=ki(t.tagName),super.mount(t)}}const Dx=(e,t)=>Pi(e)?new Rx(t):new Ex(t,{allowProjection:e!==y.Fragment}),jx=ng({...Gy,...xx,...nx,...bx},Dx),wr=yp(jx);var As,al;function Nx(){if(al)return As;al=1;var e="Expected a function",t=NaN,n="[object Symbol]",r=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,l=typeof nr=="object"&&nr&&nr.Object===Object&&nr,c=typeof self=="object"&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype,f=d.toString,m=Math.max,g=Math.min,h=function(){return u.Date.now()};function x(S,T,E){var D,M,V,I,j,F,L=0,G=!1,W=!1,U=!0;if(typeof S!="function")throw new TypeError(e);T=P(T)||0,v(E)&&(G=!!E.leading,W="maxWait"in E,V=W?m(P(E.maxWait)||0,T):V,U="trailing"in E?!!E.trailing:U);function B(Z){var te=D,de=M;return D=M=void 0,L=Z,I=S.apply(de,te),I}function K(Z){return L=Z,j=setTimeout(Ae,T),G?B(Z):I}function Q(Z){var te=Z-F,de=Z-L,ge=T-te;return W?g(ge,V-de):ge}function ee(Z){var te=Z-F,de=Z-L;return F===void 0||te>=T||te<0||W&&de>=V}function Ae(){var Z=h();if(ee(Z))return Ve(Z);j=setTimeout(Ae,Q(Z))}function Ve(Z){return j=void 0,U&&D?B(Z):(D=M=void 0,I)}function Ce(){j!==void 0&&clearTimeout(j),L=0,D=F=M=j=void 0}function Ke(){return j===void 0?I:Ve(h())}function Ee(){var Z=h(),te=ee(Z);if(D=arguments,M=this,F=Z,te){if(j===void 0)return K(F);if(W)return j=setTimeout(Ae,T),B(F)}return j===void 0&&(j=setTimeout(Ae,T)),I}return Ee.cancel=Ce,Ee.flush=Ke,Ee}function v(S){var T=typeof S;return!!S&&(T=="object"||T=="function")}function b(S){return!!S&&typeof S=="object"}function A(S){return typeof S=="symbol"||b(S)&&f.call(S)==n}function P(S){if(typeof S=="number")return S;if(A(S))return t;if(v(S)){var T=typeof S.valueOf=="function"?S.valueOf():S;S=v(T)?T+"":T}if(typeof S!="string")return S===0?S:+S;S=S.replace(r,"");var E=i.test(S);return E||o.test(S)?a(S.slice(2),E?2:8):s.test(S)?t:+S}return As=x,As}Nx();var Mx=typeof window<"u"?y.useLayoutEffect:y.useEffect,kx=typeof window>"u";function Js(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const r=a=>kx?t:window.matchMedia(a).matches,[s,i]=y.useState(()=>n?r(e):t);function o(){i(r(e))}return Mx(()=>{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]),s}const b0=({className:e,stage:t})=>{const n=Js("(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:q("h-2 absolute bg-[#D0D3D8] rounded-[2px] w-full top-0 left-0")}),p.jsx(wr.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})}),p.jsx(wr.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")}),p.jsx(wr.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"}),p.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"}),p.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 Yn=e=>e.type==="checkbox",Ft=e=>e instanceof Date,Re=e=>e==null;const td=e=>typeof e=="object";var pe=e=>!Re(e)&&!Array.isArray(e)&&td(e)&&!Ft(e),nd=e=>pe(e)&&e.target?Yn(e.target)?e.target.checked:e.target.value:e,Vx=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,rd=(e,t)=>e.has(Vx(t)),_x=e=>{const t=e.constructor&&e.constructor.prototype;return pe(t)&&t.hasOwnProperty("isPrototypeOf")},Ji=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Me(e){let t;const n=Array.isArray(e),r=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(!(Ji&&(e instanceof Blob||r))&&(n||pe(e)))if(t=n?[]:{},!n&&!_x(e))t=e;else for(const s in e)e.hasOwnProperty(s)&&(t[s]=Me(e[s]));else return e;return t}var qr=e=>Array.isArray(e)?e.filter(Boolean):[],me=e=>e===void 0,O=(e,t,n)=>{if(!t||!pe(e))return n;const r=qr(t.split(/[,[\].]+?/)).reduce((s,i)=>Re(s)?s:s[i],e);return me(r)||r===e?me(e[t])?n:e[t]:r},We=e=>typeof e=="boolean",Qi=e=>/^\w*$/.test(e),sd=e=>qr(e.replace(/["|']|\]/g,"").split(/\.|\[/)),se=(e,t,n)=>{let r=-1;const s=Qi(t)?[t]:sd(t),i=s.length,o=i-1;for(;++rne.useContext(id),Ox=e=>{const{children:t,...n}=e;return ne.createElement(id.Provider,{value:n},t)};var od=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==Xe.all&&(t._proxyFormState[o]=!r||Xe.all),n&&(n[o]=!0),e[o]}});return s},ke=e=>pe(e)&&!Object.keys(e).length,ad=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return ke(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!r||Xe.all))},Mn=e=>Array.isArray(e)?e:[e],ld=(e,t,n)=>!e||!t||e===t||Mn(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function eo(e){const t=ne.useRef(e);t.current=e,ne.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function Fx(e){const t=Xr(),{control:n=t.control,disabled:r,name:s,exact:i}=e,[o,a]=ne.useState(n._formState),l=ne.useRef(!0),c=ne.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=ne.useRef(s);return u.current=s,eo({disabled:r,next:d=>l.current&&ld(u.current,d.name,i)&&ad(d,c.current,n._updateFormState)&&a({...n._formState,...d}),subject:n._subjects.state}),ne.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),ne.useMemo(()=>od(o,n,c.current,!1),[o,n])}var it=e=>typeof e=="string",cd=(e,t,n,r,s)=>it(e)?(r&&t.watch.add(e),O(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),O(n,i))):(r&&(t.watchAll=!0),n);function Lx(e){const t=Xr(),{control:n=t.control,name:r,defaultValue:s,disabled:i,exact:o}=e,a=ne.useRef(r);a.current=r,eo({disabled:i,subject:n._subjects.values,next:u=>{ld(a.current,u.name,o)&&c(Me(cd(a.current,n._names,u.values||n._formValues,!1,s)))}});const[l,c]=ne.useState(n._getWatch(r,s));return ne.useEffect(()=>n._removeUnmounted()),l}function Ix(e){const t=Xr(),{name:n,disabled:r,control:s=t.control,shouldUnregister:i}=e,o=rd(s._names.array,n),a=Lx({control:s,name:n,defaultValue:O(s._formValues,n,O(s._defaultValues,n,e.defaultValue)),exact:!0}),l=Fx({control:s,name:n,exact:!0}),c=ne.useRef(s.register(n,{...e.rules,value:a,...We(e.disabled)?{disabled:e.disabled}:{}})),u=ne.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!O(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!O(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!O(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!O(l.validatingFields,n)},error:{enumerable:!0,get:()=>O(l.errors,n)}}),[l,n]),d=ne.useMemo(()=>({name:n,value:a,...We(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:f=>c.current.onChange({target:{value:nd(f),name:n},type:Nr.CHANGE}),onBlur:()=>c.current.onBlur({target:{value:O(s._formValues,n),name:n},type:Nr.BLUR}),ref:f=>{const m=O(s._fields,n);m&&f&&(m._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:g=>f.setCustomValidity(g),reportValidity:()=>f.reportValidity()})}}),[n,s._formValues,r,l.disabled,a,s._fields]);return ne.useEffect(()=>{const f=s._options.shouldUnregister||i,m=(g,h)=>{const x=O(s._fields,g);x&&x._f&&(x._f.mount=h)};if(m(n,!0),f){const g=Me(O(s._options.defaultValues,n));se(s._defaultValues,n,g),me(O(s._formValues,n))&&se(s._formValues,n,g)}return!o&&s.register(n),()=>{(o?f&&!s._state.action:f)?s.unregister(n):m(n,!1)}},[n,s,o,i]),ne.useEffect(()=>{s._updateDisabledField({disabled:r,fields:s._fields,name:n})},[r,n,s]),ne.useMemo(()=>({field:d,formState:l,fieldState:u}),[d,l,u])}const Bx=e=>e.render(Ix(e));var Ux=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},ll=e=>({isOnSubmit:!e||e===Xe.onSubmit,isOnBlur:e===Xe.onBlur,isOnChange:e===Xe.onChange,isOnAll:e===Xe.all,isOnTouch:e===Xe.onTouched}),cl=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const kn=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=O(e,s);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(kn(a,t))break}else if(pe(a)&&kn(a,t))break}}};var $x=(e,t,n)=>{const r=Mn(O(e,n));return se(r,"root",t[n]),se(e,n,r),e},to=e=>e.type==="file",st=e=>typeof e=="function",Mr=e=>{if(!Ji)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Sr=e=>it(e),no=e=>e.type==="radio",kr=e=>e instanceof RegExp;const ul={value:!1,isValid:!1},dl={value:!0,isValid:!0};var ud=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&&!me(e[0].attributes.value)?me(e[0].value)||e[0].value===""?dl:{value:e[0].value,isValid:!0}:dl:ul}return ul};const fl={isValid:!1,value:null};var dd=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,fl):fl;function hl(e,t,n="validate"){if(Sr(e)||Array.isArray(e)&&e.every(Sr)||We(e)&&!e)return{type:n,message:Sr(e)?e:"",ref:t}}var qt=e=>pe(e)&&!kr(e)?e:{value:e,message:""},ml=async(e,t,n,r,s,i)=>{const{ref:o,refs:a,required:l,maxLength:c,minLength:u,min:d,max:f,pattern:m,validate:g,name:h,valueAsNumber:x,mount:v}=e._f,b=O(n,h);if(!v||t.has(h))return{};const A=a?a[0]:o,P=j=>{s&&A.reportValidity&&(A.setCustomValidity(We(j)?"":j||""),A.reportValidity())},S={},T=no(o),E=Yn(o),D=T||E,M=(x||to(o))&&me(o.value)&&me(b)||Mr(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,V=Ux.bind(null,h,r,S),I=(j,F,L,G=ft.maxLength,W=ft.minLength)=>{const U=j?F:L;S[h]={type:j?G:W,message:U,ref:o,...V(j?G:W,U)}};if(i?!Array.isArray(b)||!b.length:l&&(!D&&(M||Re(b))||We(b)&&!b||E&&!ud(a).isValid||T&&!dd(a).isValid)){const{value:j,message:F}=Sr(l)?{value:!!l,message:l}:qt(l);if(j&&(S[h]={type:ft.required,message:F,ref:A,...V(ft.required,F)},!r))return P(F),S}if(!M&&(!Re(d)||!Re(f))){let j,F;const L=qt(f),G=qt(d);if(!Re(b)&&!isNaN(b)){const W=o.valueAsNumber||b&&+b;Re(L.value)||(j=W>L.value),Re(G.value)||(F=Wnew Date(new Date().toDateString()+" "+Q),B=o.type=="time",K=o.type=="week";it(L.value)&&b&&(j=B?U(b)>U(L.value):K?b>L.value:W>new Date(L.value)),it(G.value)&&b&&(F=B?U(b)+j.value,G=!Re(F.value)&&b.length<+F.value;if((L||G)&&(I(L,j.message,F.message),!r))return P(S[h].message),S}if(m&&!M&&it(b)){const{value:j,message:F}=qt(m);if(kr(j)&&!b.match(j)&&(S[h]={type:ft.pattern,message:F,ref:o,...V(ft.pattern,F)},!r))return P(F),S}if(g){if(st(g)){const j=await g(b,n),F=hl(j,A);if(F&&(S[h]={...F,...V(ft.validate,F.message)},!r))return P(F.message),S}else if(pe(g)){let j={};for(const F in g){if(!ke(j)&&!r)break;const L=hl(await g[F](b,n),A,F);L&&(j={...L,...V(F,L.message)},P(L.message),r&&(S[h]=j))}if(!ke(j)&&(S[h]={ref:A,...j},!r))return S}}return P(!0),S};function zx(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},Qs=e=>Re(e)||!td(e);function St(e,t){if(Qs(e)||Qs(t))return e===t;if(Ft(e)&&Ft(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n){const i=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const o=t[s];if(Ft(i)&&Ft(o)||pe(i)&&pe(o)||Array.isArray(i)&&Array.isArray(o)?!St(i,o):i!==o)return!1}}return!0}var fd=e=>e.type==="select-multiple",Hx=e=>no(e)||Yn(e),Ps=e=>Mr(e)&&e.isConnected,hd=e=>{for(const t in e)if(st(e[t]))return!0;return!1};function Vr(e,t={}){const n=Array.isArray(e);if(pe(e)||n)for(const r in e)Array.isArray(e[r])||pe(e[r])&&!hd(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Vr(e[r],t[r])):Re(e[r])||(t[r]=!0);return t}function md(e,t,n){const r=Array.isArray(e);if(pe(e)||r)for(const s in e)Array.isArray(e[s])||pe(e[s])&&!hd(e[s])?me(t)||Qs(n[s])?n[s]=Array.isArray(e[s])?Vr(e[s],[]):{...Vr(e[s])}:md(e[s],Re(t)?{}:t[s],n[s]):n[s]=!St(e[s],t[s]);return n}var Sn=(e,t)=>md(e,t,Vr(t)),pd=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>me(e)?e:t?e===""?NaN:e&&+e:n&&it(e)?new Date(e):r?r(e):e;function Ts(e){const t=e.ref;return to(t)?t.files:no(t)?dd(e.refs).value:fd(t)?[...t.selectedOptions].map(({value:n})=>n):Yn(t)?ud(e.refs).value:pd(me(t.value)?e.ref.value:t.value,e)}var Gx=(e,t,n,r)=>{const s={};for(const i of e){const o=O(t,i);o&&se(s,i,o._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},An=e=>me(e)?e:kr(e)?e.source:pe(e)?kr(e.value)?e.value.source:e.value:e;const pl="AsyncFunction";var Kx=e=>!!e&&!!e.validate&&!!(st(e.validate)&&e.validate.constructor.name===pl||pe(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===pl)),qx=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function gl(e,t,n){const r=O(e,n);if(r||Qi(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),o=O(t,i),a=O(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};s.pop()}return{name:n}}var Xx=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,Yx=(e,t)=>!qr(O(e,t)).length&&xe(e,t);const Zx={mode:Xe.onSubmit,reValidateMode:Xe.onChange,shouldFocusError:!0};function Jx(e={}){let t={...Zx,...e},n={submitCount:0,isDirty:!1,isLoading:st(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},s=pe(t.defaultValues)||pe(t.values)?Me(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:Me(s),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Cs(),array:Cs(),state:Cs()},f=ll(t.mode),m=ll(t.reValidateMode),g=t.criteriaMode===Xe.all,h=w=>C=>{clearTimeout(c),c=setTimeout(w,C)},x=async w=>{if(!t.disabled&&(u.isValid||w)){const C=t.resolver?ke((await D()).errors):await V(r,!0);C!==n.isValid&&d.state.next({isValid:C})}},v=(w,C)=>{!t.disabled&&(u.isValidating||u.validatingFields)&&((w||Array.from(a.mount)).forEach(R=>{R&&(C?se(n.validatingFields,R,C):xe(n.validatingFields,R))}),d.state.next({validatingFields:n.validatingFields,isValidating:!ke(n.validatingFields)}))},b=(w,C=[],R,_,k=!0,N=!0)=>{if(_&&R&&!t.disabled){if(o.action=!0,N&&Array.isArray(O(r,w))){const z=R(O(r,w),_.argA,_.argB);k&&se(r,w,z)}if(N&&Array.isArray(O(n.errors,w))){const z=R(O(n.errors,w),_.argA,_.argB);k&&se(n.errors,w,z),Yx(n.errors,w)}if(u.touchedFields&&N&&Array.isArray(O(n.touchedFields,w))){const z=R(O(n.touchedFields,w),_.argA,_.argB);k&&se(n.touchedFields,w,z)}u.dirtyFields&&(n.dirtyFields=Sn(s,i)),d.state.next({name:w,isDirty:j(w,C),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else se(i,w,C)},A=(w,C)=>{se(n.errors,w,C),d.state.next({errors:n.errors})},P=w=>{n.errors=w,d.state.next({errors:n.errors,isValid:!1})},S=(w,C,R,_)=>{const k=O(r,w);if(k){const N=O(i,w,me(R)?O(s,w):R);me(N)||_&&_.defaultChecked||C?se(i,w,C?N:Ts(k._f)):G(w,N),o.mount&&x()}},T=(w,C,R,_,k)=>{let N=!1,z=!1;const X={name:w};if(!t.disabled){const ye=!!(O(r,w)&&O(r,w)._f&&O(r,w)._f.disabled);if(!R||_){u.isDirty&&(z=n.isDirty,n.isDirty=X.isDirty=j(),N=z!==X.isDirty);const fe=ye||St(O(s,w),C);z=!!(!ye&&O(n.dirtyFields,w)),fe||ye?xe(n.dirtyFields,w):se(n.dirtyFields,w,!0),X.dirtyFields=n.dirtyFields,N=N||u.dirtyFields&&z!==!fe}if(R){const fe=O(n.touchedFields,w);fe||(se(n.touchedFields,w,R),X.touchedFields=n.touchedFields,N=N||u.touchedFields&&fe!==R)}N&&k&&d.state.next(X)}return N?X:{}},E=(w,C,R,_)=>{const k=O(n.errors,w),N=u.isValid&&We(C)&&n.isValid!==C;if(t.delayError&&R?(l=h(()=>A(w,R)),l(t.delayError)):(clearTimeout(c),l=null,R?se(n.errors,w,R):xe(n.errors,w)),(R?!St(k,R):k)||!ke(_)||N){const z={..._,...N&&We(C)?{isValid:C}:{},errors:n.errors,name:w};n={...n,...z},d.state.next(z)}},D=async w=>{v(w,!0);const C=await t.resolver(i,t.context,Gx(w||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return v(w),C},M=async w=>{const{errors:C}=await D(w);if(w)for(const R of w){const _=O(C,R);_?se(n.errors,R,_):xe(n.errors,R)}else n.errors=C;return C},V=async(w,C,R={valid:!0})=>{for(const _ in w){const k=w[_];if(k){const{_f:N,...z}=k;if(N){const X=a.array.has(N.name),ye=k._f&&Kx(k._f);ye&&u.validatingFields&&v([_],!0);const fe=await ml(k,a.disabled,i,g,t.shouldUseNativeValidation&&!C,X);if(ye&&u.validatingFields&&v([_]),fe[N.name]&&(R.valid=!1,C))break;!C&&(O(fe,N.name)?X?$x(n.errors,fe,N.name):se(n.errors,N.name,fe[N.name]):xe(n.errors,N.name))}!ke(z)&&await V(z,C,R)}}return R.valid},I=()=>{for(const w of a.unMount){const C=O(r,w);C&&(C._f.refs?C._f.refs.every(R=>!Ps(R)):!Ps(C._f.ref))&&Ee(w)}a.unMount=new Set},j=(w,C)=>!t.disabled&&(w&&C&&se(i,w,C),!St(ee(),s)),F=(w,C,R)=>cd(w,a,{...o.mount?i:me(C)?s:it(w)?{[w]:C}:C},R,C),L=w=>qr(O(o.mount?i:s,w,t.shouldUnregister?O(s,w,[]):[])),G=(w,C,R={})=>{const _=O(r,w);let k=C;if(_){const N=_._f;N&&(!N.disabled&&se(i,w,pd(C,N)),k=Mr(N.ref)&&Re(C)?"":C,fd(N.ref)?[...N.ref.options].forEach(z=>z.selected=k.includes(z.value)):N.refs?Yn(N.ref)?N.refs.length>1?N.refs.forEach(z=>(!z.defaultChecked||!z.disabled)&&(z.checked=Array.isArray(k)?!!k.find(X=>X===z.value):k===z.value)):N.refs[0]&&(N.refs[0].checked=!!k):N.refs.forEach(z=>z.checked=z.value===k):to(N.ref)?N.ref.value="":(N.ref.value=k,N.ref.type||d.values.next({name:w,values:{...i}})))}(R.shouldDirty||R.shouldTouch)&&T(w,k,R.shouldTouch,R.shouldDirty,!0),R.shouldValidate&&Q(w)},W=(w,C,R)=>{for(const _ in C){const k=C[_],N=`${w}.${_}`,z=O(r,N);(a.array.has(w)||pe(k)||z&&!z._f)&&!Ft(k)?W(N,k,R):G(N,k,R)}},U=(w,C,R={})=>{const _=O(r,w),k=a.array.has(w),N=Me(C);se(i,w,N),k?(d.array.next({name:w,values:{...i}}),(u.isDirty||u.dirtyFields)&&R.shouldDirty&&d.state.next({name:w,dirtyFields:Sn(s,i),isDirty:j(w,N)})):_&&!_._f&&!Re(N)?W(w,N,R):G(w,N,R),cl(w,a)&&d.state.next({...n}),d.values.next({name:o.mount?w:void 0,values:{...i}})},B=async w=>{o.mount=!0;const C=w.target;let R=C.name,_=!0;const k=O(r,R),N=()=>C.type?Ts(k._f):nd(w),z=X=>{_=Number.isNaN(X)||Ft(X)&&isNaN(X.getTime())||St(X,O(i,R,X))};if(k){let X,ye;const fe=N(),tt=w.type===Nr.BLUR||w.type===Nr.FOCUS_OUT,gn=!qx(k._f)&&!t.resolver&&!O(n.errors,R)&&!k._f.deps||Xx(tt,O(n.touchedFields,R),n.isSubmitted,m,f),nt=cl(R,a,tt);se(i,R,fe),tt?(k._f.onBlur&&k._f.onBlur(w),l&&l(0)):k._f.onChange&&k._f.onChange(w);const Nt=T(R,fe,tt,!1),yn=!ke(Nt)||nt;if(!tt&&d.values.next({name:R,type:w.type,values:{...i}}),gn)return u.isValid&&(t.mode==="onBlur"&&tt?x():tt||x()),yn&&d.state.next({name:R,...nt?{}:Nt});if(!tt&&nt&&d.state.next({...n}),t.resolver){const{errors:Mt}=await D([R]);if(z(fe),_){const ts=gl(n.errors,r,R),tr=gl(Mt,r,ts.name||R);X=tr.error,R=tr.name,ye=ke(Mt)}}else v([R],!0),X=(await ml(k,a.disabled,i,g,t.shouldUseNativeValidation))[R],v([R]),z(fe),_&&(X?ye=!1:u.isValid&&(ye=await V(r,!0)));_&&(k._f.deps&&Q(k._f.deps),E(R,ye,X,Nt))}},K=(w,C)=>{if(O(n.errors,C)&&w.focus)return w.focus(),1},Q=async(w,C={})=>{let R,_;const k=Mn(w);if(t.resolver){const N=await M(me(w)?w:k);R=ke(N),_=w?!k.some(z=>O(N,z)):R}else w?(_=(await Promise.all(k.map(async N=>{const z=O(r,N);return await V(z&&z._f?{[N]:z}:z)}))).every(Boolean),!(!_&&!n.isValid)&&x()):_=R=await V(r);return d.state.next({...!it(w)||u.isValid&&R!==n.isValid?{}:{name:w},...t.resolver||!w?{isValid:R}:{},errors:n.errors}),C.shouldFocus&&!_&&kn(r,K,w?k:a.mount),_},ee=w=>{const C={...o.mount?i:s};return me(w)?C:it(w)?O(C,w):w.map(R=>O(C,R))},Ae=(w,C)=>({invalid:!!O((C||n).errors,w),isDirty:!!O((C||n).dirtyFields,w),error:O((C||n).errors,w),isValidating:!!O(n.validatingFields,w),isTouched:!!O((C||n).touchedFields,w)}),Ve=w=>{w&&Mn(w).forEach(C=>xe(n.errors,C)),d.state.next({errors:w?n.errors:{}})},Ce=(w,C,R)=>{const _=(O(r,w,{_f:{}})._f||{}).ref,k=O(n.errors,w)||{},{ref:N,message:z,type:X,...ye}=k;se(n.errors,w,{...ye,...C,ref:_}),d.state.next({name:w,errors:n.errors,isValid:!1}),R&&R.shouldFocus&&_&&_.focus&&_.focus()},Ke=(w,C)=>st(w)?d.values.subscribe({next:R=>w(F(void 0,C),R)}):F(w,C,!0),Ee=(w,C={})=>{for(const R of w?Mn(w):a.mount)a.mount.delete(R),a.array.delete(R),C.keepValue||(xe(r,R),xe(i,R)),!C.keepError&&xe(n.errors,R),!C.keepDirty&&xe(n.dirtyFields,R),!C.keepTouched&&xe(n.touchedFields,R),!C.keepIsValidating&&xe(n.validatingFields,R),!t.shouldUnregister&&!C.keepDefaultValue&&xe(s,R);d.values.next({values:{...i}}),d.state.next({...n,...C.keepDirty?{isDirty:j()}:{}}),!C.keepIsValid&&x()},Z=({disabled:w,name:C,field:R,fields:_})=>{(We(w)&&o.mount||w||a.disabled.has(C))&&(w?a.disabled.add(C):a.disabled.delete(C),T(C,Ts(R?R._f:O(_,C)._f),!1,!1,!0))},te=(w,C={})=>{let R=O(r,w);const _=We(C.disabled)||We(t.disabled);return se(r,w,{...R||{},_f:{...R&&R._f?R._f:{ref:{name:w}},name:w,mount:!0,...C}}),a.mount.add(w),R?Z({field:R,disabled:We(C.disabled)?C.disabled:t.disabled,name:w}):S(w,!0,C.value),{..._?{disabled:C.disabled||t.disabled}:{},...t.progressive?{required:!!C.required,min:An(C.min),max:An(C.max),minLength:An(C.minLength),maxLength:An(C.maxLength),pattern:An(C.pattern)}:{},name:w,onChange:B,onBlur:B,ref:k=>{if(k){te(w,C),R=O(r,w);const N=me(k.value)&&k.querySelectorAll&&k.querySelectorAll("input,select,textarea")[0]||k,z=Hx(N),X=R._f.refs||[];if(z?X.find(ye=>ye===N):N===R._f.ref)return;se(r,w,{_f:{...R._f,...z?{refs:[...X.filter(Ps),N,...Array.isArray(O(s,w))?[{}]:[]],ref:{type:N.type,name:w}}:{ref:N}}}),S(w,!1,void 0,N)}else R=O(r,w,{}),R._f&&(R._f.mount=!1),(t.shouldUnregister||C.shouldUnregister)&&!(rd(a.array,w)&&o.action)&&a.unMount.add(w)}}},de=()=>t.shouldFocusError&&kn(r,K,a.mount),ge=w=>{We(w)&&(d.state.next({disabled:w}),kn(r,(C,R)=>{const _=O(r,R);_&&(C.disabled=_._f.disabled||w,Array.isArray(_._f.refs)&&_._f.refs.forEach(k=>{k.disabled=_._f.disabled||w}))},0,!1))},re=(w,C)=>async R=>{let _;R&&(R.preventDefault&&R.preventDefault(),R.persist&&R.persist());let k=Me(i);if(a.disabled.size)for(const N of a.disabled)se(k,N,void 0);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:N,values:z}=await D();n.errors=N,k=z}else await V(r);if(xe(n.errors,"root"),ke(n.errors)){d.state.next({errors:{}});try{await w(k,R)}catch(N){_=N}}else C&&await C({...n.errors},R),de(),setTimeout(de);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ke(n.errors)&&!_,submitCount:n.submitCount+1,errors:n.errors}),_)throw _},$=(w,C={})=>{O(r,w)&&(me(C.defaultValue)?U(w,Me(O(s,w))):(U(w,C.defaultValue),se(s,w,Me(C.defaultValue))),C.keepTouched||xe(n.touchedFields,w),C.keepDirty||(xe(n.dirtyFields,w),n.isDirty=C.defaultValue?j(w,Me(O(s,w))):j()),C.keepError||(xe(n.errors,w),u.isValid&&x()),d.state.next({...n}))},J=(w,C={})=>{const R=w?Me(w):s,_=Me(R),k=ke(w),N=k?s:_;if(C.keepDefaultValues||(s=R),!C.keepValues){if(C.keepDirtyValues){const z=new Set([...a.mount,...Object.keys(Sn(s,i))]);for(const X of Array.from(z))O(n.dirtyFields,X)?se(N,X,O(i,X)):U(X,O(N,X))}else{if(Ji&&me(w))for(const z of a.mount){const X=O(r,z);if(X&&X._f){const ye=Array.isArray(X._f.refs)?X._f.refs[0]:X._f.ref;if(Mr(ye)){const fe=ye.closest("form");if(fe){fe.reset();break}}}}r={}}i=t.shouldUnregister?C.keepDefaultValues?Me(s):{}:Me(N),d.array.next({values:{...N}}),d.values.next({values:{...N}})}a={mount:C.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!C.keepIsValid||!!C.keepDirtyValues,o.watch=!!t.shouldUnregister,d.state.next({submitCount:C.keepSubmitCount?n.submitCount:0,isDirty:k?!1:C.keepDirty?n.isDirty:!!(C.keepDefaultValues&&!St(w,s)),isSubmitted:C.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:k?{}:C.keepDirtyValues?C.keepDefaultValues&&i?Sn(s,i):n.dirtyFields:C.keepDefaultValues&&w?Sn(s,w):C.keepDirty?n.dirtyFields:{},touchedFields:C.keepTouched?n.touchedFields:{},errors:C.keepErrors?n.errors:{},isSubmitSuccessful:C.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},ie=(w,C)=>J(st(w)?w(i):w,C);return{control:{register:te,unregister:Ee,getFieldState:Ae,handleSubmit:re,setError:Ce,_executeSchema:D,_getWatch:F,_getDirty:j,_updateValid:x,_removeUnmounted:I,_updateFieldArray:b,_updateDisabledField:Z,_getFieldArray:L,_reset:J,_resetDefaultValues:()=>st(t.defaultValues)&&t.defaultValues().then(w=>{ie(w,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:w=>{n={...n,...w}},_disableForm:ge,_subjects:d,_proxyFormState:u,_setErrors:P,get _fields(){return r},get _formValues(){return i},get _state(){return o},set _state(w){o=w},get _defaultValues(){return s},get _names(){return a},set _names(w){a=w},get _formState(){return n},set _formState(w){n=w},get _options(){return t},set _options(w){t={...t,...w}}},trigger:Q,register:te,handleSubmit:re,watch:Ke,setValue:U,getValues:ee,reset:ie,resetField:$,clearErrors:Ve,unregister:Ee,setError:Ce,setFocus:(w,C={})=>{const R=O(r,w),_=R&&R._f;if(_){const k=_.refs?_.refs[0]:_.ref;k.focus&&(k.focus(),C.shouldSelect&&st(k.select)&&k.select())}},getFieldState:Ae}}function w0(e={}){const t=ne.useRef(void 0),n=ne.useRef(void 0),[r,s]=ne.useState({isDirty:!1,isValidating:!1,isLoading:st(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:st(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Jx(e),formState:r});const i=t.current.control;return i._options=e,eo({subject:i._subjects.state,next:o=>{ad(o,i._proxyFormState,i._updateFormState,!0)&&s({...i._formState})}}),ne.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),ne.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),ne.useEffect(()=>{e.values&&!St(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),ne.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),ne.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()}),ne.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=od(r,i),t.current}var Qx="Label",gd=y.forwardRef((e,t)=>p.jsx(Ne.label,{...e,ref:t,onMouseDown:n=>{var s;n.target.closest("button, input, select, textarea")||((s=e.onMouseDown)==null||s.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));gd.displayName=Qx;var yd=gd;const eb=pi("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),vd=y.forwardRef(({className:e,...t},n)=>p.jsx(yd,{ref:n,className:q(eb(),e),...t}));vd.displayName=yd.displayName;const S0=Ox,xd=y.createContext({}),tb=({...e})=>p.jsx(xd.Provider,{value:{name:e.name},children:p.jsx(Bx,{...e})}),Yr=()=>{const e=y.useContext(xd),t=y.useContext(bd),{getFieldState:n,formState:r}=Xr(),s=n(e.name,r);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`,...s}},bd=y.createContext({}),wd=y.forwardRef(({className:e,...t},n)=>{const r=y.useId();return p.jsx(bd.Provider,{value:{id:r},children:p.jsx("div",{ref:n,className:q("space-y-2",e),...t})})});wd.displayName="FormItem";const Sd=y.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:s}=Yr();return p.jsx(vd,{ref:n,className:q(r&&"text-destructive",e),htmlFor:s,...t})});Sd.displayName="FormLabel";const Ad=y.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:s,formMessageId:i}=Yr();return p.jsx(cn,{ref:t,id:r,"aria-describedby":n?`${s} ${i}`:`${s}`,"aria-invalid":!!n,...e})});Ad.displayName="FormControl";const nb=y.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=Yr();return p.jsx("p",{ref:n,id:r,className:q("text-[0.8rem] text-muted-foreground",e),...t})});nb.displayName="FormDescription";const Cd=y.forwardRef(({className:e,children:t,...n},r)=>{const{error:s,formMessageId:i}=Yr(),o=s?String(s==null?void 0:s.message):t;return o?p.jsx("p",{ref:r,id:i,className:q("text-[0.8rem] font-medium text-destructive",e),...n,children:o}):null});Cd.displayName="FormMessage";const ei=y.forwardRef(({className:e,type:t,...n},r)=>t!=="file"?p.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:r,...n}):p.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[p.jsx("input",{ref:r,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}),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(im,{className:"cursor-pointer",size:16})," Upload file"]})]}));ei.displayName="Input";const Pd=y.forwardRef(({className:e,...t},n)=>p.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}));Pd.displayName="Textarea";const A0=({control:e,name:t,label:n,placeholder:r,error:s,type:i="text",className:o,disabled:a,textArea:l=!1,textDark:c,supporText:u,handleChange:d,onPrimary:f=!1})=>p.jsx(tb,{control:e,name:t,render:({field:m})=>p.jsxs(wd,{className:q(o,"flex flex-col w-full relative"),children:[p.jsx(Sd,{className:q("text-xl",f&&"!text-on_primary",c?"text-on_surface":"text-on_surface_v"),children:n}),p.jsx(Ad,{children:p.jsx(p.Fragment,{children:l?p.jsx(Pd,{rows:3,...m,placeholder:r,className:q(s&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):i!=="file"?p.jsx(ei,{...m,type:i,placeholder:r,disabled:a,className:q(s&&"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(ei,{type:"file",placeholder:r,onChange:g=>{var x;const h=((x=g.target.files)==null?void 0:x[0])||null;console.log("Выбранный файл:",h),m.onChange(h),d&&d(g)},disabled:a}),m.value&&p.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:["Выбранный файл: ",m.value.name]})]})})}),p.jsx(Cd,{className:q("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",s&&f?"text-teritary_04":"text-[#BA1A1A]"),children:s?s.message:u})]})}),C0=({className:e,delay:t=.15})=>p.jsxs(wr.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:[p.jsx("h3",{className:"text-3xl text-center",children:"Форма успешно отправлена!"}),p.jsx(De,{className:"w-fit mx-auto",to:"/",children:p.jsx(He,{variant:"outline",children:"Вернуться на главную"})})]}),rb=({className:e,slides:t,active:n,scrollTo:r})=>p.jsx("div",{className:q("flex items-center justify-center gap-2",e),children:Array.from({length:t}).map((s,i)=>p.jsx("span",{onClick:()=>r==null?void 0:r(i),className:q(n===i?"dot-active":"dot")},i))}),sb=["top","right","bottom","left"],Tt=Math.min,Oe=Math.max,_r=Math.round,fr=Math.floor,lt=e=>({x:e,y:e}),ib={left:"right",right:"left",bottom:"top",top:"bottom"},ob={start:"end",end:"start"};function ti(e,t,n){return Oe(e,Tt(t,n))}function gt(e,t){return typeof e=="function"?e(t):e}function yt(e){return e.split("-")[0]}function mn(e){return e.split("-")[1]}function ro(e){return e==="x"?"y":"x"}function so(e){return e==="y"?"height":"width"}function Et(e){return["top","bottom"].includes(yt(e))?"y":"x"}function io(e){return ro(Et(e))}function ab(e,t,n){n===void 0&&(n=!1);const r=mn(e),s=io(e),i=so(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Or(o)),[o,Or(o)]}function lb(e){const t=Or(e);return[ni(e),t,ni(t)]}function ni(e){return e.replace(/start|end/g,t=>ob[t])}function cb(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function ub(e,t,n,r){const s=mn(e);let i=cb(yt(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(ni)))),i}function Or(e){return e.replace(/left|right|bottom|top/g,t=>ib[t])}function db(e){return{top:0,right:0,bottom:0,left:0,...e}}function Td(e){return typeof e!="number"?db(e):{top:e,right:e,bottom:e,left:e}}function Fr(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function yl(e,t,n){let{reference:r,floating:s}=e;const i=Et(t),o=io(t),a=so(o),l=yt(t),c=i==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,f=r[a]/2-s[a]/2;let m;switch(l){case"top":m={x:u,y:r.y-s.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-s.width,y:d};break;default:m={x:r.x,y:r.y}}switch(mn(t)){case"start":m[o]-=f*(n&&c?-1:1);break;case"end":m[o]+=f*(n&&c?-1:1);break}return m}const fb=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:d}=yl(c,r,l),f=r,m={},g=0;for(let h=0;h({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=gt(e,t)||{};if(c==null)return{};const d=Td(u),f={x:n,y:r},m=io(s),g=so(m),h=await o.getDimensions(c),x=m==="y",v=x?"top":"left",b=x?"bottom":"right",A=x?"clientHeight":"clientWidth",P=i.reference[g]+i.reference[m]-f[m]-i.floating[g],S=f[m]-i.reference[m],T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let E=T?T[A]:0;(!E||!await(o.isElement==null?void 0:o.isElement(T)))&&(E=a.floating[A]||i.floating[g]);const D=P/2-S/2,M=E/2-h[g]/2-1,V=Tt(d[v],M),I=Tt(d[b],M),j=V,F=E-h[g]-I,L=E/2-h[g]/2+D,G=ti(j,L,F),W=!l.arrow&&mn(s)!=null&&L!==G&&i.reference[g]/2-(LL<=0)){var I,j;const L=(((I=i.flip)==null?void 0:I.index)||0)+1,G=E[L];if(G)return{data:{index:L,overflows:V},reset:{placement:G}};let W=(j=V.filter(U=>U.overflows[0]<=0).sort((U,B)=>U.overflows[1]-B.overflows[1])[0])==null?void 0:j.placement;if(!W)switch(m){case"bestFit":{var F;const U=(F=V.filter(B=>{if(T){const K=Et(B.placement);return K===b||K==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(K=>K>0).reduce((K,Q)=>K+Q,0)]).sort((B,K)=>B[1]-K[1])[0])==null?void 0:F[0];U&&(W=U);break}case"initialPlacement":W=a;break}if(s!==W)return{reset:{placement:W}}}return{}}}};function vl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xl(e){return sb.some(t=>e[t]>=0)}const pb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=gt(e,t);switch(r){case"referenceHidden":{const i=await Un(t,{...s,elementContext:"reference"}),o=vl(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:xl(o)}}}case"escaped":{const i=await Un(t,{...s,altBoundary:!0}),o=vl(i,n.floating);return{data:{escapedOffsets:o,escaped:xl(o)}}}default:return{}}}}};async function gb(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=yt(n),a=mn(n),l=Et(n)==="y",c=["left","top"].includes(o)?-1:1,u=i&&l?-1:1,d=gt(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(m=a==="end"?g*-1:g),l?{x:m*u,y:f*c}:{x:f*c,y:m*u}}const yb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await gb(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},vb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:x=>{let{x:v,y:b}=x;return{x:v,y:b}}},...l}=gt(e,t),c={x:n,y:r},u=await Un(t,l),d=Et(yt(s)),f=ro(d);let m=c[f],g=c[d];if(i){const x=f==="y"?"top":"left",v=f==="y"?"bottom":"right",b=m+u[x],A=m-u[v];m=ti(b,m,A)}if(o){const x=d==="y"?"top":"left",v=d==="y"?"bottom":"right",b=g+u[x],A=g-u[v];g=ti(b,g,A)}const h=a.fn({...t,[f]:m,[d]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:o}}}}}},xb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=gt(e,t),u={x:n,y:r},d=Et(s),f=ro(d);let m=u[f],g=u[d];const h=gt(a,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const A=f==="y"?"height":"width",P=i.reference[f]-i.floating[A]+x.mainAxis,S=i.reference[f]+i.reference[A]-x.mainAxis;mS&&(m=S)}if(c){var v,b;const A=f==="y"?"width":"height",P=["top","left"].includes(yt(s)),S=i.reference[d]-i.floating[A]+(P&&((v=o.offset)==null?void 0:v[d])||0)+(P?0:x.crossAxis),T=i.reference[d]+i.reference[A]+(P?0:((b=o.offset)==null?void 0:b[d])||0)-(P?x.crossAxis:0);gT&&(g=T)}return{[f]:m,[d]:g}}}},bb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:l=()=>{},...c}=gt(e,t),u=await Un(t,c),d=yt(s),f=mn(s),m=Et(s)==="y",{width:g,height:h}=i.floating;let x,v;d==="top"||d==="bottom"?(x=d,v=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,x=f==="end"?"top":"bottom");const b=h-u.top-u.bottom,A=g-u.left-u.right,P=Tt(h-u[x],b),S=Tt(g-u[v],A),T=!t.middlewareData.shift;let E=P,D=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=b),T&&!f){const V=Oe(u.left,0),I=Oe(u.right,0),j=Oe(u.top,0),F=Oe(u.bottom,0);m?D=g-2*(V!==0||I!==0?V+I:Oe(u.left,u.right)):E=h-2*(j!==0||F!==0?j+F:Oe(u.top,u.bottom))}await l({...t,availableWidth:D,availableHeight:E});const M=await o.getDimensions(a.floating);return g!==M.width||h!==M.height?{reset:{rects:!0}}:{}}}};function Zr(){return typeof window<"u"}function pn(e){return Ed(e)?(e.nodeName||"").toLowerCase():"#document"}function Ie(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ut(e){var t;return(t=(Ed(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ed(e){return Zr()?e instanceof Node||e instanceof Ie(e).Node:!1}function Ze(e){return Zr()?e instanceof Element||e instanceof Ie(e).Element:!1}function ct(e){return Zr()?e instanceof HTMLElement||e instanceof Ie(e).HTMLElement:!1}function bl(e){return!Zr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ie(e).ShadowRoot}function Zn(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Je(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function wb(e){return["table","td","th"].includes(pn(e))}function Jr(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function oo(e){const t=ao(),n=Ze(e)?Je(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="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(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Sb(e){let t=Rt(e);for(;ct(t)&&!an(t);){if(oo(t))return t;if(Jr(t))return null;t=Rt(t)}return null}function ao(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function an(e){return["html","body","#document"].includes(pn(e))}function Je(e){return Ie(e).getComputedStyle(e)}function Qr(e){return Ze(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rt(e){if(pn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||bl(e)&&e.host||ut(e);return bl(t)?t.host:t}function Rd(e){const t=Rt(e);return an(t)?e.ownerDocument?e.ownerDocument.body:e.body:ct(t)&&Zn(t)?t:Rd(t)}function $n(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Rd(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Ie(s);if(i){const a=ri(o);return t.concat(o,o.visualViewport||[],Zn(s)?s:[],a&&n?$n(a):[])}return t.concat(s,$n(s,[],n))}function ri(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dd(e){const t=Je(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=ct(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=_r(n)!==i||_r(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function lo(e){return Ze(e)?e:e.contextElement}function nn(e){const t=lo(e);if(!ct(t))return lt(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=Dd(t);let o=(i?_r(n.width):n.width)/r,a=(i?_r(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const Ab=lt(0);function jd(e){const t=Ie(e);return!ao()||!t.visualViewport?Ab:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Cb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ie(e)?!1:t}function Ut(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=lo(e);let o=lt(1);t&&(r?Ze(r)&&(o=nn(r)):o=nn(e));const a=Cb(i,n,r)?jd(i):lt(0);let l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const f=Ie(i),m=r&&Ze(r)?Ie(r):r;let g=f,h=ri(g);for(;h&&r&&m!==g;){const x=nn(h),v=h.getBoundingClientRect(),b=Je(h),A=v.left+(h.clientLeft+parseFloat(b.paddingLeft))*x.x,P=v.top+(h.clientTop+parseFloat(b.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=A,c+=P,g=Ie(h),h=ri(g)}}return Fr({width:u,height:d,x:l,y:c})}function co(e,t){const n=Qr(e).scrollLeft;return t?t.left+n:Ut(ut(e)).left+n}function Nd(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:co(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function Pb(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=ut(r),a=t?Jr(t.floating):!1;if(r===o||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=lt(1);const u=lt(0),d=ct(r);if((d||!d&&!i)&&((pn(r)!=="body"||Zn(o))&&(l=Qr(r)),ct(r))){const m=Ut(r);c=nn(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const f=o&&!d&&!i?Nd(o,l,!0):lt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function Tb(e){return Array.from(e.getClientRects())}function Eb(e){const t=ut(e),n=Qr(e),r=e.ownerDocument.body,s=Oe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Oe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+co(e);const a=-n.scrollTop;return Je(r).direction==="rtl"&&(o+=Oe(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function Rb(e,t){const n=Ie(e),r=ut(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const c=ao();(!c||c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}function Db(e,t){const n=Ut(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=ct(e)?nn(e):lt(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,c=r*i.y;return{width:o,height:a,x:l,y:c}}function wl(e,t,n){let r;if(t==="viewport")r=Rb(e,n);else if(t==="document")r=Eb(ut(e));else if(Ze(t))r=Db(t,n);else{const s=jd(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Fr(r)}function Md(e,t){const n=Rt(e);return n===t||!Ze(n)||an(n)?!1:Je(n).position==="fixed"||Md(n,t)}function jb(e,t){const n=t.get(e);if(n)return n;let r=$n(e,[],!1).filter(a=>Ze(a)&&pn(a)!=="body"),s=null;const i=Je(e).position==="fixed";let o=i?Rt(e):e;for(;Ze(o)&&!an(o);){const a=Je(o),l=oo(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||Zn(o)&&!l&&Md(e,o))?r=r.filter(u=>u!==o):s=a,o=Rt(o)}return t.set(e,r),r}function Nb(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?Jr(t)?[]:jb(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((c,u)=>{const d=wl(t,u,s);return c.top=Oe(d.top,c.top),c.right=Tt(d.right,c.right),c.bottom=Tt(d.bottom,c.bottom),c.left=Oe(d.left,c.left),c},wl(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Mb(e){const{width:t,height:n}=Dd(e);return{width:t,height:n}}function kb(e,t,n){const r=ct(t),s=ut(t),i=n==="fixed",o=Ut(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=lt(0);if(r||!r&&!i)if((pn(t)!=="body"||Zn(s))&&(a=Qr(t)),r){const f=Ut(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else s&&(l.x=co(s));const c=s&&!r&&!i?Nd(s,a):lt(0),u=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:o.width,height:o.height}}function Es(e){return Je(e).position==="static"}function Sl(e,t){if(!ct(e)||Je(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ut(e)===n&&(n=n.ownerDocument.body),n}function kd(e,t){const n=Ie(e);if(Jr(e))return n;if(!ct(e)){let s=Rt(e);for(;s&&!an(s);){if(Ze(s)&&!Es(s))return s;s=Rt(s)}return n}let r=Sl(e,t);for(;r&&wb(r)&&Es(r);)r=Sl(r,t);return r&&an(r)&&Es(r)&&!oo(r)?n:r||Sb(e)||n}const Vb=async function(e){const t=this.getOffsetParent||kd,n=this.getDimensions,r=await n(e.floating);return{reference:kb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function _b(e){return Je(e).direction==="rtl"}const Ob={convertOffsetParentRelativeRectToViewportRelativeRect:Pb,getDocumentElement:ut,getClippingRect:Nb,getOffsetParent:kd,getElementRects:Vb,getClientRects:Tb,getDimensions:Mb,getScale:nn,isElement:Ze,isRTL:_b};function Vd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Fb(e,t){let n=null,r;const s=ut(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:m}=c;if(a||t(),!f||!m)return;const g=fr(d),h=fr(s.clientWidth-(u+f)),x=fr(s.clientHeight-(d+m)),v=fr(u),A={rootMargin:-g+"px "+-h+"px "+-x+"px "+-v+"px",threshold:Oe(0,Tt(1,l))||1};let P=!0;function S(T){const E=T[0].intersectionRatio;if(E!==l){if(!P)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!Vd(c,e.getBoundingClientRect())&&o(),P=!1}try{n=new IntersectionObserver(S,{...A,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,A)}n.observe(e)}return o(!0),i}function Lb(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=lo(e),u=s||i?[...c?$n(c):[],...$n(t)]:[];u.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=c&&a?Fb(c,n):null;let f=-1,m=null;o&&(m=new ResizeObserver(v=>{let[b]=v;b&&b.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var A;(A=m)==null||A.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let g,h=l?Ut(e):null;l&&x();function x(){const v=Ut(e);h&&!Vd(h,v)&&n(),h=v,g=requestAnimationFrame(x)}return n(),()=>{var v;u.forEach(b=>{s&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(v=m)==null||v.disconnect(),m=null,l&&cancelAnimationFrame(g)}}const Ib=yb,Bb=vb,Ub=mb,$b=bb,zb=pb,Al=hb,Wb=xb,Hb=(e,t,n)=>{const r=new Map,s={platform:Ob,...n},i={...s.platform,_c:r};return fb(e,t,{...s,platform:i})};var Ar=typeof document<"u"?y.useLayoutEffect:y.useEffect;function Lr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Lr(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!Lr(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function _d(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Cl(e,t){const n=_d(e);return Math.round(t*n)/n}function Rs(e){const t=y.useRef(e);return Ar(()=>{t.current=e}),t}function Gb(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=y.useState(r);Lr(f,r)||m(r);const[g,h]=y.useState(null),[x,v]=y.useState(null),b=y.useCallback(B=>{B!==T.current&&(T.current=B,h(B))},[]),A=y.useCallback(B=>{B!==E.current&&(E.current=B,v(B))},[]),P=i||g,S=o||x,T=y.useRef(null),E=y.useRef(null),D=y.useRef(u),M=l!=null,V=Rs(l),I=Rs(s),j=Rs(c),F=y.useCallback(()=>{if(!T.current||!E.current)return;const B={placement:t,strategy:n,middleware:f};I.current&&(B.platform=I.current),Hb(T.current,E.current,B).then(K=>{const Q={...K,isPositioned:j.current!==!1};L.current&&!Lr(D.current,Q)&&(D.current=Q,Nl.flushSync(()=>{d(Q)}))})},[f,t,n,I,j]);Ar(()=>{c===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,d(B=>({...B,isPositioned:!1})))},[c]);const L=y.useRef(!1);Ar(()=>(L.current=!0,()=>{L.current=!1}),[]),Ar(()=>{if(P&&(T.current=P),S&&(E.current=S),P&&S){if(V.current)return V.current(P,S,F);F()}},[P,S,F,V,M]);const G=y.useMemo(()=>({reference:T,floating:E,setReference:b,setFloating:A}),[b,A]),W=y.useMemo(()=>({reference:P,floating:S}),[P,S]),U=y.useMemo(()=>{const B={position:n,left:0,top:0};if(!W.floating)return B;const K=Cl(W.floating,u.x),Q=Cl(W.floating,u.y);return a?{...B,transform:"translate("+K+"px, "+Q+"px)",..._d(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:Q}},[n,a,W.floating,u.x,u.y]);return y.useMemo(()=>({...u,update:F,refs:G,elements:W,floatingStyles:U}),[u,F,G,W,U])}const Kb=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Al({element:r.current,padding:s}).fn(n):{}:r?Al({element:r,padding:s}).fn(n):{}}}},qb=(e,t)=>({...Ib(e),options:[e,t]}),Xb=(e,t)=>({...Bb(e),options:[e,t]}),Yb=(e,t)=>({...Wb(e),options:[e,t]}),Zb=(e,t)=>({...Ub(e),options:[e,t]}),Jb=(e,t)=>({...$b(e),options:[e,t]}),Qb=(e,t)=>({...zb(e),options:[e,t]}),ew=(e,t)=>({...Kb(e),options:[e,t]});var tw="Arrow",Od=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return p.jsx(Ne.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Od.displayName=tw;var nw=Od;function rw(e){const[t,n]=y.useState(void 0);return It(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var uo="Popper",[Fd,Ld]=oi(uo),[sw,Id]=Fd(uo),Bd=e=>{const{__scopePopper:t,children:n}=e,[r,s]=y.useState(null);return p.jsx(sw,{scope:t,anchor:r,onAnchorChange:s,children:n})};Bd.displayName=uo;var Ud="PopperAnchor",$d=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=Id(Ud,n),o=y.useRef(null),a=Qe(t,o);return y.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:p.jsx(Ne.div,{...s,ref:a})});$d.displayName=Ud;var fo="PopperContent",[iw,ow]=Fd(fo),zd=y.forwardRef((e,t)=>{var Z,te,de,ge,re,$;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:g,...h}=e,x=Id(fo,n),[v,b]=y.useState(null),A=Qe(t,J=>b(J)),[P,S]=y.useState(null),T=rw(P),E=(T==null?void 0:T.width)??0,D=(T==null?void 0:T.height)??0,M=r+(i!=="center"?"-"+i:""),V=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},I=Array.isArray(c)?c:[c],j=I.length>0,F={padding:V,boundary:I.filter(lw),altBoundary:j},{refs:L,floatingStyles:G,placement:W,isPositioned:U,middlewareData:B}=Gb({strategy:"fixed",placement:M,whileElementsMounted:(...J)=>Lb(...J,{animationFrame:m==="always"}),elements:{reference:x.anchor},middleware:[qb({mainAxis:s+D,alignmentAxis:o}),l&&Xb({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Yb():void 0,...F}),l&&Zb({...F}),Jb({...F,apply:({elements:J,rects:ie,availableWidth:be,availableHeight:_e})=>{const{width:Ue,height:w}=ie.reference,C=J.floating.style;C.setProperty("--radix-popper-available-width",`${be}px`),C.setProperty("--radix-popper-available-height",`${_e}px`),C.setProperty("--radix-popper-anchor-width",`${Ue}px`),C.setProperty("--radix-popper-anchor-height",`${w}px`)}}),P&&ew({element:P,padding:a}),cw({arrowWidth:E,arrowHeight:D}),f&&Qb({strategy:"referenceHidden",...F})]}),[K,Q]=Gd(W),ee=At(g);It(()=>{U&&(ee==null||ee())},[U,ee]);const Ae=(Z=B.arrow)==null?void 0:Z.x,Ve=(te=B.arrow)==null?void 0:te.y,Ce=((de=B.arrow)==null?void 0:de.centerOffset)!==0,[Ke,Ee]=y.useState();return It(()=>{v&&Ee(window.getComputedStyle(v).zIndex)},[v]),p.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:U?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ke,"--radix-popper-transform-origin":[(ge=B.transformOrigin)==null?void 0:ge.x,(re=B.transformOrigin)==null?void 0:re.y].join(" "),...(($=B.hide)==null?void 0:$.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(iw,{scope:n,placedSide:K,onArrowChange:S,arrowX:Ae,arrowY:Ve,shouldHideArrow:Ce,children:p.jsx(Ne.div,{"data-side":K,"data-align":Q,...h,ref:A,style:{...h.style,animation:U?void 0:"none"}})})})});zd.displayName=fo;var Wd="PopperArrow",aw={top:"bottom",right:"left",bottom:"top",left:"right"},Hd=y.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=ow(Wd,r),o=aw[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(nw,{...s,ref:n,style:{...s.style,display:"block"}})})});Hd.displayName=Wd;function lw(e){return e!==null}var cw=e=>({name:"transformOrigin",options:e,fn(t){var x,v,b;const{placement:n,rects:r,middlewareData:s}=t,o=((x=s.arrow)==null?void 0:x.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,u]=Gd(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((v=s.arrow)==null?void 0:v.x)??0)+a/2,m=(((b=s.arrow)==null?void 0:b.y)??0)+l/2;let g="",h="";return c==="bottom"?(g=o?d:`${f}px`,h=`${-l}px`):c==="top"?(g=o?d:`${f}px`,h=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,h=o?d:`${m}px`):c==="left"&&(g=`${r.floating.width+l}px`,h=o?d:`${m}px`),{data:{x:g,y:h}}}});function Gd(e){const[t,n="center"]=e.split("-");return[t,n]}var uw=Bd,Kd=$d,dw=zd,fw=Hd,ho="Popover",[qd,P0]=oi(ho,[Ld]),Jn=Ld(),[hw,jt]=qd(ho),Xd=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!1}=e,a=Jn(t),l=y.useRef(null),[c,u]=y.useState(!1),[d=!1,f]=kl({prop:r,defaultProp:s,onChange:i});return p.jsx(uw,{...a,children:p.jsx(hw,{scope:t,contentId:pr(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:y.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:c,onCustomAnchorAdd:y.useCallback(()=>u(!0),[]),onCustomAnchorRemove:y.useCallback(()=>u(!1),[]),modal:o,children:n})})};Xd.displayName=ho;var Yd="PopoverAnchor",mw=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=jt(Yd,n),i=Jn(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=s;return y.useEffect(()=>(o(),()=>a()),[o,a]),p.jsx(Kd,{...i,...r,ref:t})});mw.displayName=Yd;var Zd="PopoverTrigger",Jd=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=jt(Zd,n),i=Jn(n),o=Qe(t,s.triggerRef),a=p.jsx(Ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":rf(s.open),...r,ref:o,onClick:Fe(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?a:p.jsx(Kd,{asChild:!0,...i,children:a})});Jd.displayName=Zd;var mo="PopoverPortal",[pw,gw]=qd(mo,{forceMount:void 0}),Qd=e=>{const{__scopePopover:t,forceMount:n,children:r,container:s}=e,i=jt(mo,t);return p.jsx(pw,{scope:t,forceMount:n,children:p.jsx(un,{present:n||i.open,children:p.jsx(ci,{asChild:!0,container:s,children:r})})})};Qd.displayName=mo;var ln="PopoverContent",ef=y.forwardRef((e,t)=>{const n=gw(ln,e.__scopePopover),{forceMount:r=n.forceMount,...s}=e,i=jt(ln,e.__scopePopover);return p.jsx(un,{present:r||i.open,children:i.modal?p.jsx(yw,{...s,ref:t}):p.jsx(vw,{...s,ref:t})})});ef.displayName=ln;var yw=y.forwardRef((e,t)=>{const n=jt(ln,e.__scopePopover),r=y.useRef(null),s=Qe(t,r),i=y.useRef(!1);return y.useEffect(()=>{const o=r.current;if(o)return Gl(o)},[]),p.jsx(ui,{as:cn,allowPinchZoom:!0,children:p.jsx(tf,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Fe(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Fe(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,c=a.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:Fe(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),vw=y.forwardRef((e,t)=>{const n=jt(ln,e.__scopePopover),r=y.useRef(!1),s=y.useRef(!1);return p.jsx(tf,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),tf=y.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,f=jt(ln,n),m=Jn(n);return Fl(),p.jsx(li,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:p.jsx(ai,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:p.jsx(dw,{"data-state":rf(f.open),role:"dialog",id:f.contentId,...m,...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)"}})})})}),nf="PopoverClose",xw=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=jt(nf,n);return p.jsx(Ne.button,{type:"button",...r,ref:t,onClick:Fe(e.onClick,()=>s.onOpenChange(!1))})});xw.displayName=nf;var bw="PopoverArrow",ww=y.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=Jn(n);return p.jsx(fw,{...s,...r,ref:t})});ww.displayName=bw;function rf(e){return e?"open":"closed"}var Sw=Xd,Aw=Jd,Cw=Qd,sf=ef;const Pw=Sw,Tw=Aw,of=y.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},s)=>p.jsx(Cw,{children:p.jsx(sf,{ref:s,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),...r})}));of.displayName=sf.displayName;const Pl=[{lang:Se.RU},{lang:Se.EN}],Ew=({className:e})=>{const t=Ge(i=>i.lang),n=Ge(i=>i.setLang),[r,s]=y.useState(!1);return console.log(Pl.filter(i=>i.lang===t)),p.jsxs(Pw,{open:r,onOpenChange:()=>s(!r),children:[p.jsxs(Tw,{className:q("flex items-center gap-2",e),children:[p.jsx("img",{src:t===Se.RU?"/ru.svg":"/en.svg",alt:""}),t===Se.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",{"fill-rule":"evenodd","clip-rule":"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:"#2C2828"})})]}),p.jsx(of,{className:"flex flex-col gap-6",children:Pl.filter(i=>i.lang!==t).map((i,o)=>p.jsxs("div",{onClick:()=>{n(i.lang),s(!1)},className:"flex gap-3 py-1 items-center cursor-pointer",children:[p.jsx("img",{src:i.lang===Se.RU?"/ru.svg":"/en.svg",alt:"flag"}),p.jsx("h5",{children:i.lang===Se.RU?"Русский":"English"})]},o))})]})},Tl=[{h1:"Тематические направления выставки",data:[{title:"Пищевая продукция и сельское хозяйство",img:"/theme/1.svg"},{title:"Товары и услуги",img:"/theme/2.svg"},{title:"E-commerce",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",data:[{title:"Пищевая продукция и сельское хозяйство",img:"/theme/1.svg"},{title:"Товары и услуги",img:"/theme/2.svg"},{title:"E-commerce",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"}]}],Rw=[{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"}],T0=()=>{const e=Ge(t=>t.lang);return p.jsx("section",{className:"",children:p.jsxs(Be,{children:[p.jsx("h2",{className:"h2 mb-10 text-center",children:Tl[ve(e)].title}),p.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:Tl[ve(e)].data.map(t=>p.jsx(Tc,{...t,iconClassName:"bg-teritary_04"},t.title))})]})})},E0=({className:e})=>p.jsx("section",{className:q("relative w-full bg-[#FDEDEE] -z-10 py-10",e),children:p.jsxs(Be,{children:[p.jsx("h3",{className:"h2 mb-4",children:"Отрасли"}),p.jsx("p",{className:"text-lg text-primary_09 mb-6",children:"Мероприятие объединит ключевых игроков в таких отраслях, как:"}),p.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:Rw.map(t=>p.jsx(Tc,{className:"!bg-[#F5F4F4]",...t},t.title))}),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-primary_09"}),p.jsx("p",{className:"text-18 !text-primary_09",children:"Участники смогут продемонстрировать свои инновационные решения, наладить взаимовыгодные партнерства и выйти на новые рынки."})]})]})}),Ir=[{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:"1 — 27 april 2025"},{name:"Exhibition days",date:"29 — 1 may 2025"},{name:"Exhibition dismantling",date:"1 — 2 may 2025"}]}],R0=({className:e})=>{const t=Ge(n=>n.lang);return p.jsx("section",{className:q("bg-bg_surface_container py-10 md:py-[160px]",e),children:p.jsxs(Be,{children:[p.jsx("h2",{className:"h2 mb-6",children:Ir[ve(t)].title}),p.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:Ir[ve(t)].data.map(n=>y.createElement(Ec,{bottomClassName:"!bg-white rounded-b-[2px]",...n,key:n.name,className:"w-full"}))})]})})},D0=({className:e})=>p.jsxs("section",{className:q(" gap-6 relative overflow-hidden",e),children:[p.jsxs(Be,{className:"md:py-20 py-10 ",children:[p.jsx("h3",{className:"h2 mb-6 xl:max-w-[496px]",children:"Место проведения"}),p.jsx("p",{className:"text-lg text-on_surface_v normal xl:max-w-[496px] mb-10",children:"Торгово-промышленная палата Туркменистана создана в целях содействия развитию экономики Туркменистана, ее интегрированию в мировую хозяйственную систему, формированию современной промышленной, финансовой и торговой инфраструктуры, создания благоприятных условий для предпринимательской деятельности, оказания содействия в установлении торгово-экономических, научных и технических связей с зарубежными партнерами."}),p.jsx("div",{className:"size-full xl:hidden",children:p.jsx("img",{src:"/map.png",alt:"map",className:"size-full object-cover"})})]}),p.jsx("div",{className:"h-full 2xl:w-[850px] xl:w-[650px] xl:block hidden absolute top-0 right-0",children:p.jsx("img",{src:"/map.png",alt:"",className:"size-full object-cover"})})]}),hr=[{title:"Приглашение к участию",p:"Торгово-промышленная палата Туркменистана приглашает бизнес-сообщество со всего мира присоединиться к этому уникальному событию, которое станет важным шагом к укреплению позиций Туркменистана на глобальной экономической арене.",button1:"Забронировать стенд",button2:"B2B | B2G встречи"},{title:"Invitation to Participate",p:"The Chamber of Commerce and 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"}],j0=({className:e})=>{const t=Ge(n=>n.lang);return p.jsxs("section",{className:q("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(Be,{children:[p.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:hr[ve(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:hr[ve(t)].p}),p.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[p.jsx(De,{to:"/stend-form",className:"w-full",children:p.jsx(He,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:hr[ve(t)].button1})}),p.jsx(De,{to:"/B2B-B2G",className:"w-full",children:p.jsx(He,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:hr[ve(t)].button2})})]})]})]})},N0=()=>p.jsxs(Be,{className:"flex flex-col md:my-20 my-10 gap-16",children:[p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h3",{className:"h2",children:"Выставка-ярмарка «TurkmenTextile Expo 2025» "}),p.jsxs("p",{className:"p",children:["Глобальная выставка и ярмарка текстиля и моды, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. Наша миссия — укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии. Выставка станет платформой для изучения устойчивых практик, современных технологий и новых дизайнерских решений, вдохновляя на развитие индустрии."," "]})]}),p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h3",{className:"h2",children:"Перспективы"}),p.jsx("h4",{className:"p",children:"TurkmenTextile Expo-2025 открывает широкие перспективы для участников:"}),p.jsxs("ol",{type:"1",className:"list-decimal pl-8 flex flex-col gap-3 p",children:[p.jsx("li",{children:"Расширение деловых связей — уникальная возможность для B2B и B2G-встреч, заключения торговых соглашений и установления стратегических партнёрств."}),p.jsx("li",{children:"Доступ к инновациям — знакомство с передовыми технологиями текстильного производства, экологичными материалами и трендами устойчивого дизайна."}),p.jsx("li",{children:"Повышение экспортного потенциала — участие в форумах и семинарах, посвящённых продвижению продукции на новые рынки."}),p.jsx("li",{children:"Обучение и развитие — мастер-классы и лекции от ведущих мировых экспертов помогут участникам углубить знания и освоить современные подходы в области текстильной индустрии."}),p.jsx("li",{children:"Культурный обмен — возможность продемонстрировать богатое текстильное наследие Туркменистана и вдохновиться культурными традициями других стран."})]})]}),p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h3",{className:"h2",children:"Направления"}),p.jsx("h4",{className:"p",children:"Выставка охватывает ключевые аспекты текстильной и модной индустрии, включая:"}),p.jsxs("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:[p.jsx("li",{children:"Традиционный текстиль: экспозиции, шёлковым изделиям и ремесленным техникам Туркменистана."}),p.jsx("li",{children:"Инновационные материалы и технологии: зоны, где демонстрируются устойчивые материалы, 3D-ткацкие технологии и экологически чистые красители."}),p.jsx("li",{children:"Модные показы: ежедневные подиумные шоу с участием местных и международных дизайнеров, включая зарубежных модельеров."}),p.jsx("li",{children:"Маркетплейс для переговоров: пространство для встреч между экспортёрами и импортёрами."}),p.jsx("li",{children:"Оборудование для текстильной промышленности: современные технологии и машины для повышения эффективности и конкурентоспособности."}),p.jsx("li",{children:"Образовательные зоны: интерактивные экспозиции и семинары на тему устойчивости, дизайна и переработки."})]}),p.jsx("p",{className:"text-18",children:"Участники смогут обсудить современные технологии, лучшие практики и эффективные стратегии для устойчивого бизнеса."})]}),p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h3",{className:"h2",children:"Партнёрство и спонсорство"}),p.jsx("h4",{className:"p",children:"TurkmenTextile Expo-2025 приглашает к сотрудничеству международные организации, ассоциации и бренды для продвижения своих продуктов и услуг. Партнёры получат:"}),p.jsxs("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:[p.jsx("li",{children:"Признание на международной арене — участие в масштабном событии, привлекающем ведущих игроков текстильной и модной индустрий."}),p.jsx("li",{children:"Рекламные возможности — интеграция бренда в маркетинговую кампанию выставки, включая digital и офлайн-каналы."}),p.jsx("li",{children:"Вклад в развитие индустрии — поддержка инноваций, устойчивых практик и культурного наследия."})]})]})]});function Dw(e){return Object.prototype.toString.call(e)==="[object Object]"}function El(e){return Dw(e)||Array.isArray(e)}function jw(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function po(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return s!==i?!1:n.every(o=>{const a=e[o],l=t[o];return typeof a=="function"?`${a}`==`${l}`:!El(a)||!El(l)?a===l:po(a,l)})}function Rl(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function Nw(e,t){if(e.length!==t.length)return!1;const n=Rl(e),r=Rl(t);return n.every((s,i)=>{const o=r[i];return po(s,o)})}function go(e){return typeof e=="number"}function si(e){return typeof e=="string"}function es(e){return typeof e=="boolean"}function Dl(e){return Object.prototype.toString.call(e)==="[object Object]"}function ce(e){return Math.abs(e)}function yo(e){return Math.sign(e)}function Vn(e,t){return ce(e-t)}function Mw(e,t){if(e===0||t===0||ce(e)<=ce(t))return 0;const n=Vn(ce(e),ce(t));return ce(n/e)}function kw(e){return Math.round(e*100)/100}function zn(e){return Wn(e).map(Number)}function Ye(e){return e[Qn(e)]}function Qn(e){return Math.max(0,e.length-1)}function vo(e,t){return t===Qn(e)}function jl(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Wn(e){return Object.keys(e)}function af(e,t){return[e,t].reduce((n,r)=>(Wn(r).forEach(s=>{const i=n[s],o=r[s],a=Dl(i)&&Dl(o);n[s]=a?af(i,o):o}),n),{})}function ii(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function Vw(e,t){const n={start:r,center:s,end:i};function r(){return 0}function s(l){return i(l)/2}function i(l){return t-l}function o(l,c){return si(e)?n[e](l):e(t,l,c)}return{measure:o}}function Hn(){let e=[];function t(s,i,o,a={passive:!0}){let l;if("addEventListener"in s)s.addEventListener(i,o,a),l=()=>s.removeEventListener(i,o,a);else{const c=s;c.addListener(o),l=()=>c.removeListener(o)}return e.push(l),r}function n(){e=e.filter(s=>s())}const r={add:t,clear:n};return r}function _w(e,t,n,r){const s=Hn(),i=1e3/60;let o=null,a=0,l=0;function c(){s.add(e,"visibilitychange",()=>{e.hidden&&g()})}function u(){m(),s.clear()}function d(x){if(!l)return;o||(o=x,n(),n());const v=x-o;for(o=x,a+=v;a>=i;)n(),a-=i;const b=a/i;r(b),l&&(l=t.requestAnimationFrame(d))}function f(){l||(l=t.requestAnimationFrame(d))}function m(){t.cancelAnimationFrame(l),o=null,a=0,l=0}function g(){o=null,a=0}return{init:c,destroy:u,start:f,stop:m,update:n,render:r}}function Ow(e,t){const n=t==="rtl",r=e==="y",s=r?"y":"x",i=r?"x":"y",o=!r&&n?-1:1,a=u(),l=d();function c(g){const{height:h,width:x}=g;return r?h:x}function u(){return r?"top":n?"right":"left"}function d(){return r?"bottom":n?"left":"right"}function f(g){return g*o}return{scroll:s,cross:i,startEdge:a,endEdge:l,measureSize:c,direction:f}}function $t(e=0,t=0){const n=ce(e-t);function r(c){return ct}function i(c){return r(c)||s(c)}function o(c){return i(c)?r(c)?e:t:c}function a(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:o,reachedAny:i,reachedMax:s,reachedMin:r,removeOffset:a}}function lf(e,t,n){const{constrain:r}=$t(0,e),s=e+1;let i=o(t);function o(f){return n?ce((s+f)%s):r(f)}function a(){return i}function l(f){return i=o(f),d}function c(f){return u().set(a()+f)}function u(){return lf(e,a(),n)}const d={get:a,set:l,add:c,clone:u};return d}function Fw(e,t,n,r,s,i,o,a,l,c,u,d,f,m,g,h,x,v,b){const{cross:A,direction:P}=e,S=["INPUT","SELECT","TEXTAREA"],T={passive:!1},E=Hn(),D=Hn(),M=$t(50,225).constrain(m.measure(20)),V={mouse:300,touch:400},I={mouse:500,touch:600},j=g?43:25;let F=!1,L=0,G=0,W=!1,U=!1,B=!1,K=!1;function Q($){if(!b)return;function J(be){(es(b)||b($,be))&&Ee(be)}const ie=t;E.add(ie,"dragstart",be=>be.preventDefault(),T).add(ie,"touchmove",()=>{},T).add(ie,"touchend",()=>{}).add(ie,"touchstart",J).add(ie,"mousedown",J).add(ie,"touchcancel",te).add(ie,"contextmenu",te).add(ie,"click",de,!0)}function ee(){E.clear(),D.clear()}function Ae(){const $=K?n:t;D.add($,"touchmove",Z,T).add($,"touchend",te).add($,"mousemove",Z,T).add($,"mouseup",te)}function Ve($){const J=$.nodeName||"";return S.includes(J)}function Ce(){return(g?I:V)[K?"mouse":"touch"]}function Ke($,J){const ie=d.add(yo($)*-1),be=u.byDistance($,!g).distance;return g||ce($)=2,!(J&&$.button!==0)&&(Ve($.target)||(W=!0,i.pointerDown($),c.useFriction(0).useDuration(0),s.set(o),Ae(),L=i.readPoint($),G=i.readPoint($,A),f.emit("pointerDown")))}function Z($){if(!ii($,r)&&$.touches.length>=2)return te($);const ie=i.readPoint($),be=i.readPoint($,A),_e=Vn(ie,L),Ue=Vn(be,G);if(!U&&!K&&(!$.cancelable||(U=_e>Ue,!U)))return te($);const w=i.pointerMove($);_e>h&&(B=!0),c.useFriction(.3).useDuration(.75),a.start(),s.add(P(w)),$.preventDefault()}function te($){const ie=u.byDistance(0,!1).index!==d.get(),be=i.pointerUp($)*Ce(),_e=Ke(P(be),ie),Ue=Mw(be,_e),w=j-10*Ue,C=v+Ue/50;U=!1,W=!1,D.clear(),c.useDuration(w).useFriction(C),l.distance(_e,!g),K=!1,f.emit("pointerUp")}function de($){B&&($.stopPropagation(),$.preventDefault(),B=!1)}function ge(){return W}return{init:Q,destroy:ee,pointerDown:ge}}function Lw(e,t){let r,s;function i(d){return d.timeStamp}function o(d,f){const g=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(ii(d,t)?d:d.touches[0])[g]}function a(d){return r=d,s=d,o(d)}function l(d){const f=o(d)-o(s),m=i(d)-i(r)>170;return s=d,m&&(r=d),f}function c(d){if(!r||!s)return 0;const f=o(s)-o(r),m=i(d)-i(r),g=i(d)-i(s)>170,h=f/m;return m&&!g&&ce(h)>.1?h:0}return{pointerDown:a,pointerMove:l,pointerUp:c,readPoint:o}}function Iw(){function e(n){const{offsetTop:r,offsetLeft:s,offsetWidth:i,offsetHeight:o}=n;return{top:r,right:s+i,bottom:r+o,left:s,width:i,height:o}}return{measure:e}}function Bw(e){function t(r){return e*(r/100)}return{measure:t}}function Uw(e,t,n,r,s,i,o){const a=[e].concat(r);let l,c,u=[],d=!1;function f(x){return s.measureSize(o.measure(x))}function m(x){if(!i)return;c=f(e),u=r.map(f);function v(b){for(const A of b){if(d)return;const P=A.target===e,S=r.indexOf(A.target),T=P?c:u[S],E=f(P?e:r[S]);if(ce(E-T)>=.5){x.reInit(),t.emit("resize");break}}}l=new ResizeObserver(b=>{(es(i)||i(x,b))&&v(b)}),n.requestAnimationFrame(()=>{a.forEach(b=>l.observe(b))})}function g(){d=!0,l&&l.disconnect()}return{init:m,destroy:g}}function $w(e,t,n,r,s,i){let o=0,a=0,l=s,c=i,u=e.get(),d=0;function f(){const T=r.get()-e.get(),E=!l;let D=0;return E?(o=0,n.set(r),e.set(r),D=T):(n.set(e),o+=T/l,o*=c,u+=o,e.add(o),D=u-d),a=yo(D),d=u,S}function m(){const T=r.get()-t.get();return ce(T)<.001}function g(){return l}function h(){return a}function x(){return o}function v(){return A(s)}function b(){return P(i)}function A(T){return l=T,S}function P(T){return c=T,S}const S={direction:h,duration:g,velocity:x,seek:f,settled:m,useBaseFriction:b,useBaseDuration:v,useFriction:P,useDuration:A};return S}function zw(e,t,n,r,s){const i=s.measure(10),o=s.measure(50),a=$t(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(m){if(!c())return;const g=e.reachedMin(t.get())?"min":"max",h=ce(e[g]-t.get()),x=n.get()-t.get(),v=a.constrain(h/o);n.subtract(x*v),!m&&ce(x){const{min:x,max:v}=i,b=i.constrain(g),A=!h,P=vo(n,h);return A?v:P||c(x,b)?x:c(v,b)?v:b}).map(g=>parseFloat(g.toFixed(3)))}function f(){if(t<=e+s)return[i.max];if(r==="keepSnaps")return o;const{min:g,max:h}=a;return o.slice(g,h)}return{snapsContained:l,scrollContainLimit:a}}function Hw(e,t,n){const r=t[0],s=n?r-e:Ye(t);return{limit:$t(s,r)}}function Gw(e,t,n,r){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:l}=$t(i,o);function c(f){return f===1?l(n.get()):f===-1?a(n.get()):!1}function u(f){if(!c(f))return;const m=e*(f*-1);r.forEach(g=>g.add(m))}return{loop:u}}function Kw(e){const{max:t,length:n}=e;function r(i){const o=i-t;return n?o/-n:0}return{get:r}}function qw(e,t,n,r,s){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=s,l=d().map(t.measure),c=f(),u=m();function d(){return a(r).map(h=>Ye(h)[o]-h[0][i]).map(ce)}function f(){return r.map(h=>n[i]-h[i]).map(h=>-ce(h))}function m(){return a(c).map(h=>h[0]).map((h,x)=>h+l[x])}return{snaps:c,snapsAligned:u}}function Xw(e,t,n,r,s,i){const{groupSlides:o}=s,{min:a,max:l}=r,c=u();function u(){const f=o(i),m=!e||t==="keepSnaps";return n.length===1?[i]:m?f:f.slice(a,l).map((g,h,x)=>{const v=!h,b=vo(x,h);if(v){const A=Ye(x[0])+1;return jl(A)}if(b){const A=Qn(i)-Ye(x)[0]+1;return jl(A,Ye(x)[0])}return g})}return{slideRegistry:c}}function Yw(e,t,n,r,s){const{reachedAny:i,removeOffset:o,constrain:a}=r;function l(g){return g.concat().sort((h,x)=>ce(h)-ce(x))[0]}function c(g){const h=e?o(g):a(g),x=t.map((b,A)=>({diff:u(b-h,0),index:A})).sort((b,A)=>ce(b.diff)-ce(A.diff)),{index:v}=x[0];return{index:v,distance:h}}function u(g,h){const x=[g,g+n,g-n];if(!e)return g;if(!h)return l(x);const v=x.filter(b=>yo(b)===h);return v.length?l(v):Ye(x)-n}function d(g,h){const x=t[g]-s.get(),v=u(x,h);return{index:g,distance:v}}function f(g,h){const x=s.get()+g,{index:v,distance:b}=c(x),A=!e&&i(x);if(!h||A)return{index:v,distance:g};const P=t[v]-b,S=g+u(P,0);return{index:v,distance:S}}return{byDistance:f,byIndex:d,shortcut:u}}function Zw(e,t,n,r,s,i,o){function a(d){const f=d.distance,m=d.index!==t.get();i.add(f),f&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),m&&(n.set(t.get()),t.set(d.index),o.emit("select"))}function l(d,f){const m=s.byDistance(d,f);a(m)}function c(d,f){const m=t.clone().set(d),g=s.byIndex(m.get(),f);a(g)}return{distance:l,index:c}}function Jw(e,t,n,r,s,i,o,a){const l={passive:!0,capture:!0};let c=0;function u(m){if(!a)return;function g(h){if(new Date().getTime()-c>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(A=>A.includes(h));go(b)&&(s.useDuration(0),r.index(b,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((h,x)=>{i.add(h,"focus",v=>{(es(a)||a(m,v))&&g(x)},l)})}function d(m){m.code==="Tab"&&(c=new Date().getTime())}return{init:u}}function En(e){let t=e;function n(){return t}function r(l){t=o(l)}function s(l){t+=o(l)}function i(l){t-=o(l)}function o(l){return go(l)?l:l.get()}return{get:n,set:r,add:s,subtract:i}}function cf(e,t){const n=e.scroll==="x"?o:a,r=t.style;let s=null,i=!1;function o(f){return`translate3d(${f}px,0px,0px)`}function a(f){return`translate3d(0px,${f}px,0px)`}function l(f){if(i)return;const m=kw(e.direction(f));m!==s&&(r.transform=n(m),s=m)}function c(f){i=!f}function u(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:l,toggleActive:c}}function Qw(e,t,n,r,s,i,o,a,l){const u=zn(s),d=zn(s).reverse(),f=v().concat(b());function m(E,D){return E.reduce((M,V)=>M-s[V],D)}function g(E,D){return E.reduce((M,V)=>m(M,D)>0?M.concat([V]):M,[])}function h(E){return i.map((D,M)=>({start:D-r[M]+.5+E,end:D+t-.5+E}))}function x(E,D,M){const V=h(D);return E.map(I=>{const j=M?0:-n,F=M?n:0,L=M?"end":"start",G=V[I][L];return{index:I,loopPoint:G,slideLocation:En(-1),translate:cf(e,l[I]),target:()=>a.get()>G?j:F}})}function v(){const E=o[0],D=g(d,E);return x(D,n,!1)}function b(){const E=t-o[0]-1,D=g(u,E);return x(D,-n,!0)}function A(){return f.every(({index:E})=>{const D=u.filter(M=>M!==E);return m(D,t)<=.1})}function P(){f.forEach(E=>{const{target:D,translate:M,slideLocation:V}=E,I=D();I!==V.get()&&(M.to(I),V.set(I))})}function S(){f.forEach(E=>E.translate.clear())}return{canLoop:A,clear:S,loop:P,loopPoints:f}}function e0(e,t,n){let r,s=!1;function i(l){if(!n)return;function c(u){for(const d of u)if(d.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(u=>{s||(es(n)||n(l,u))&&c(u)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),s=!0}return{init:i,destroy:o}}function t0(e,t,n,r){const s={};let i=null,o=null,a,l=!1;function c(){a=new IntersectionObserver(g=>{l||(g.forEach(h=>{const x=t.indexOf(h.target);s[x]=h}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(g=>a.observe(g))}function u(){a&&a.disconnect(),l=!0}function d(g){return Wn(s).reduce((h,x)=>{const v=parseInt(x),{isIntersecting:b}=s[v];return(g&&b||!g&&!b)&&h.push(v),h},[])}function f(g=!0){if(g&&i)return i;if(!g&&o)return o;const h=d(g);return g&&(i=h),g||(o=h),h}return{init:c,destroy:u,get:f}}function n0(e,t,n,r,s,i){const{measureSize:o,startEdge:a,endEdge:l}=e,c=n[0]&&s,u=g(),d=h(),f=n.map(o),m=x();function g(){if(!c)return 0;const b=n[0];return ce(t[a]-b[a])}function h(){if(!c)return 0;const b=i.getComputedStyle(Ye(r));return parseFloat(b.getPropertyValue(`margin-${l}`))}function x(){return n.map((b,A,P)=>{const S=!A,T=vo(P,A);return S?f[A]+u:T?f[A]+d:P[A+1][a]-b[a]}).map(ce)}return{slideSizes:f,slideSizesWithGaps:m,startGap:u,endGap:d}}function r0(e,t,n,r,s,i,o,a,l){const{startEdge:c,endEdge:u,direction:d}=e,f=go(n);function m(v,b){return zn(v).filter(A=>A%b===0).map(A=>v.slice(A,A+b))}function g(v){return v.length?zn(v).reduce((b,A,P)=>{const S=Ye(b)||0,T=S===0,E=A===Qn(v),D=s[c]-i[S][c],M=s[c]-i[A][u],V=!r&&T?d(o):0,I=!r&&E?d(a):0,j=ce(M-I-(D+V));return P&&j>t+l&&b.push(A),E&&b.push(v.length),b},[]).map((b,A,P)=>{const S=Math.max(P[A-1]||0);return v.slice(S,b)}):[]}function h(v){return f?m(v,n):g(v)}return{groupSlides:h}}function s0(e,t,n,r,s,i,o){const{align:a,axis:l,direction:c,startIndex:u,loop:d,duration:f,dragFree:m,dragThreshold:g,inViewThreshold:h,slidesToScroll:x,skipSnaps:v,containScroll:b,watchResize:A,watchSlides:P,watchDrag:S,watchFocus:T}=i,E=2,D=Iw(),M=D.measure(t),V=n.map(D.measure),I=Ow(l,c),j=I.measureSize(M),F=Bw(j),L=Vw(a,j),G=!d&&!!b,W=d||!!b,{slideSizes:U,slideSizesWithGaps:B,startGap:K,endGap:Q}=n0(I,M,V,n,W,s),ee=r0(I,j,x,d,M,V,K,Q,E),{snaps:Ae,snapsAligned:Ve}=qw(I,L,M,V,ee),Ce=-Ye(Ae)+Ye(B),{snapsContained:Ke,scrollContainLimit:Ee}=Ww(j,Ce,Ve,b,E),Z=G?Ke:Ve,{limit:te}=Hw(Ce,Z,d),de=lf(Qn(Z),u,d),ge=de.clone(),re=zn(n),$=({dragHandler:nt,scrollBody:Nt,scrollBounds:yn,options:{loop:Mt}})=>{Mt||yn.constrain(nt.pointerDown()),Nt.seek()},J=({scrollBody:nt,translate:Nt,location:yn,offsetLocation:Mt,previousLocation:ts,scrollLooper:tr,slideLooper:uf,dragHandler:df,animation:ff,eventHandler:xo,scrollBounds:hf,options:{loop:bo}},wo)=>{const So=nt.settled(),mf=!hf.shouldConstrain(),Ao=bo?So:So&&mf;Ao&&!df.pointerDown()&&(ff.stop(),xo.emit("settle")),Ao||xo.emit("scroll");const pf=yn.get()*wo+ts.get()*(1-wo);Mt.set(pf),bo&&(tr.loop(nt.direction()),uf.loop()),Nt.to(Mt.get())},ie=_w(r,s,()=>$(gn),nt=>J(gn,nt)),be=.68,_e=Z[de.get()],Ue=En(_e),w=En(_e),C=En(_e),R=En(_e),_=$w(Ue,C,w,R,f,be),k=Yw(d,Z,Ce,te,R),N=Zw(ie,de,ge,_,k,R,o),z=Kw(te),X=Hn(),ye=t0(t,n,o,h),{slideRegistry:fe}=Xw(G,b,Z,Ee,ee,re),tt=Jw(e,n,fe,N,_,X,o,T),gn={ownerDocument:r,ownerWindow:s,eventHandler:o,containerRect:M,slideRects:V,animation:ie,axis:I,dragHandler:Fw(I,e,r,s,R,Lw(I,s),Ue,ie,N,_,k,de,o,F,m,g,v,be,S),eventStore:X,percentOfView:F,index:de,indexPrevious:ge,limit:te,location:Ue,offsetLocation:C,previousLocation:w,options:i,resizeHandler:Uw(t,o,s,n,I,A,D),scrollBody:_,scrollBounds:zw(te,C,R,_,F),scrollLooper:Gw(Ce,te,C,[Ue,C,w,R]),scrollProgress:z,scrollSnapList:Z.map(z.get),scrollSnaps:Z,scrollTarget:k,scrollTo:N,slideLooper:Qw(I,j,Ce,U,B,Ae,Z,C,n),slideFocus:tt,slidesHandler:e0(t,o,P),slidesInView:ye,slideIndexes:re,slideRegistry:fe,slidesToScroll:ee,target:R,translate:cf(I,t)};return gn}function i0(){let e={},t;function n(c){t=c}function r(c){return e[c]||[]}function s(c){return r(c).forEach(u=>u(t,c)),l}function i(c,u){return e[c]=r(c).concat([u]),l}function o(c,u){return e[c]=r(c).filter(d=>d!==u),l}function a(){e={}}const l={init:n,emit:s,off:o,on:i,clear:a};return l}const o0={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 a0(e){function t(i,o){return af(i,o||{})}function n(i){const o=i.breakpoints||{},a=Wn(o).filter(l=>e.matchMedia(l).matches).map(l=>o[l]).reduce((l,c)=>t(l,c),{});return t(i,a)}function r(i){return i.map(o=>Wn(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function l0(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,l)=>Object.assign(a,{[l.name]:l}),{})}function r(){t=t.filter(i=>i.destroy())}return{init:n,destroy:r}}function Br(e,t,n){const r=e.ownerDocument,s=r.defaultView,i=a0(s),o=l0(i),a=Hn(),l=i0(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:f,off:m,emit:g}=l,h=I;let x=!1,v,b=c(o0,Br.globalOptions),A=c(b),P=[],S,T,E;function D(){const{container:re,slides:$}=A;T=(si(re)?e.querySelector(re):re)||e.children[0];const ie=si($)?T.querySelectorAll($):$;E=[].slice.call(ie||T.children)}function M(re){const $=s0(e,T,E,r,s,re,l);if(re.loop&&!$.slideLooper.canLoop()){const J=Object.assign({},re,{loop:!1});return M(J)}return $}function V(re,$){x||(b=c(b,re),A=u(b),P=$||P,D(),v=M(A),d([b,...P.map(({options:J})=>J)]).forEach(J=>a.add(J,"change",I)),A.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(ge),v.eventHandler.init(ge),v.resizeHandler.init(ge),v.slidesHandler.init(ge),v.options.loop&&v.slideLooper.loop(),T.offsetParent&&E.length&&v.dragHandler.init(ge),S=o.init(ge,P)))}function I(re,$){const J=ee();j(),V(c({startIndex:J},re),$),l.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 F(){x||(x=!0,a.clear(),j(),l.emit("destroy"),l.clear())}function L(re,$,J){!A.active||x||(v.scrollBody.useBaseFriction().useDuration($===!0?0:A.duration),v.scrollTo.index(re,J||0))}function G(re){const $=v.index.add(1).get();L($,re,-1)}function W(re){const $=v.index.add(-1).get();L($,re,1)}function U(){return v.index.add(1).get()!==ee()}function B(){return v.index.add(-1).get()!==ee()}function K(){return v.scrollSnapList}function Q(){return v.scrollProgress.get(v.location.get())}function ee(){return v.index.get()}function Ae(){return v.indexPrevious.get()}function Ve(){return v.slidesInView.get()}function Ce(){return v.slidesInView.get(!1)}function Ke(){return S}function Ee(){return v}function Z(){return e}function te(){return T}function de(){return E}const ge={canScrollNext:U,canScrollPrev:B,containerNode:te,internalEngine:Ee,destroy:F,off:m,on:f,emit:g,plugins:Ke,previousScrollSnap:Ae,reInit:h,rootNode:Z,scrollNext:G,scrollPrev:W,scrollProgress:Q,scrollSnapList:K,scrollTo:L,selectedScrollSnap:ee,slideNodes:de,slidesInView:Ve,slidesNotInView:Ce};return V(t,n),setTimeout(()=>l.emit("init"),0),ge}Br.globalOptions=void 0;function er(e={},t=[]){const n=y.useRef(e),r=y.useRef(t),[s,i]=y.useState(),[o,a]=y.useState(),l=y.useCallback(()=>{s&&s.reInit(n.current,r.current)},[s]);return y.useEffect(()=>{po(n.current,e)||(n.current=e,l())},[e,l]),y.useEffect(()=>{Nw(r.current,t)||(r.current=t,l())},[t,l]),y.useEffect(()=>{if(jw()&&o){Br.globalOptions=er.globalOptions;const c=Br(o,n.current,r.current);return i(c),()=>c.destroy()}else i(void 0)},[o,i]),[a,s]}er.globalOptions=void 0;const c0=[{lang:Se.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:Se.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:"Participants list",link:"/"},{title:"B2B | B2G meetings",link:"/B2B-B2G"}]}],M0=()=>{const[e]=er(),t=Ge(o=>o.lang),n=Js("(min-width: 1024px)"),r=Js("(min-width: 768px)"),s=t===Se.RU?Se.RU:Se.EN;function i(){return n?`/banners/${s}/l.jpg`:r?`/banners/${s}/m.jpg`:`/banners/${s}/s.jpg`}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(Be,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 items-center gap-6 text-2xl",children:c0[ve(t)].data.map(({title:o,link:a,blank:l})=>p.jsx(De,{target:l?"_blank":"",to:a,className:"w-full",children:p.jsx(He,{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))})]})},u0=[{data:[{title:"contact@turkmenexpo.com",subtitle:"Адрес электронной почты",img:"/contacts/home/mail.svg"},{title:"здание ТПП Туркменистана",subtitle:"Адрес выставки",img:"/contacts/home/location.svg"},{title:"+99371871812; 99363719588",subtitle:"Контактный номер",img:"/contacts/home/mobile.svg"}]},{data:[{title:"contact@turkmenexpo.com",subtitle:"E-mail Address",img:"/contacts/home/mail.svg"},{title:"Building of the CCI of Turkmenistan",subtitle:"Exhibition address",img:"/contacts/home/location.svg"},{title:"+99371871812; 99363719588",subtitle:"Contact Number",img:"/contacts/home/mobile.svg"}]}],k0=({className:e})=>{const t=Ge(n=>n.lang);return p.jsx("section",{className:q("bg-surface_high pt-10 pb-20",e),children:p.jsxs(Be,{children:[p.jsx("h2",{className:"h2 mb-6",children:Ir[ve(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:Ir[ve(t)].data.map(n=>y.createElement(Ec,{...n,key:n.name,className:"w-full"}))}),p.jsx("div",{className:"md:p-10 pt-16 flex flex-col md:flex-row items-center gap-6",children:u0[ve(t)].data.map(n=>y.createElement(ip,{...n,key:n.title,className:"w-full"}))}),p.jsx(De,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:p.jsx(He,{className:"w-full",children:t===Se.RU?"Забронируйте стенд":"Book a stand"})})]})]})})},mr=[{h2:"Выставка-ярмарка «TurkmenTextile Expo 2025» в Ашхабаде",p:`Международная выставка-ярмарка, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров. + Наша миссия – укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии. Выставка станет платформой для изучения устойчивых практик, современных технологий и дизайнерских решений, вдохновляя на развитие индустрии + `,data:[{nums:"8,400 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. The exhibition will serve as a platform to explore sustainable practices, modern technologies, and design solutions, inspiring the development of the industry. + `,data:[{nums:"8,400 m²",text:"Of the exhibition area"},{nums:"10000+",text:"Visitors and specialists attend the exhibition"},{nums:"100+",text:"More than 100 exhibitors from 30 countries "},{nums:"80%",text:"Visitors are involved in procurement decisions"}],button:"More about the exhibition"}],V0=()=>{const[e]=er(),t=Ge(n=>n.lang);return p.jsx("section",{children:p.jsxs(Be,{className:"flex flex-col gap-6",children:[p.jsxs("div",{className:"text-center",children:[p.jsx("h2",{className:"h2 md:mb-3 mb-6 text-left sm:text-center",children:mr[ve(t)].h2}),p.jsx("p",{className:"md:text-base text-sm normal text-left sm:text-center text-[#454545]",children:mr[ve(t)].p})]}),p.jsx("div",{ref:e,className:"embla overflow-hidden",children:p.jsx("div",{className:"flex embla__container items-center gap-6",children:mr[ve(t)].data.map(n=>p.jsx(rp,{...n,className:"embla__slide flex-[0_0_288px]"},n.text))})}),p.jsx(De,{to:"/about",className:"mx-auto",children:p.jsx(He,{variant:"outline",children:mr[ve(t)].button})})]})})},d0=[{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, transfers, visa",btnText:"Download the Travel guide",text:`Regarding hotel accommodation, visa support, transportation and excursion services you can check out the Travel guide`,link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_ru.pdf"},{img:"/offer-2.png",title:"Check out the Turkmen Textile 2025 Exhibition plan ",btnText:"Download the Floor plan",text:`How to choose the best place in the exhibition? - You should always remember that the good location of the exhibition increases your chance to attract the attention of your potential customers…`,link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]}],V0=()=>{const[e,t]=er({align:"start"}),[n,r]=y.useState(0),s=Ye(o=>o.lang),i=y.useCallback(o=>{t&&t.scrollTo(o)},[t]);return y.useEffect(()=>{if(!t)return;const o=()=>{r(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(Be,{children:p.jsxs("div",{ref:e,className:"embla ",children:[p.jsx("div",{className:"mb-2 flex gap-6 embla__container",children:u0[Fe(s)].data.map(o=>y.createElement(np,{...o,key:o.title}))}),p.jsx(tb,{className:"xl:hidden",scrollTo:i,active:n,slides:2})]})})})},_0=()=>{const e=Ye(t=>t.lang);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(Be,{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(Qh,{}),p.jsx("h4",{className:"text-sm",children:e==="ru"?"Ашхабад, Туркменистан":"Ashgabat, Turkmenistan"})]}),p.jsx("nav",{className:"flex items-center gap-6",children:Ms[Fe(e)].data.slice(0,2).map(({title:t,link:n})=>p.jsx(Re,{className:"py-2",to:n,children:t},t))})]}),p.jsxs("div",{className:"flex items-center gap-6",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(tm,{size:16,strokeWidth:"3px"}),p.jsx("h4",{className:"text-sm ",children:"+99371871812"})]}),p.jsx(Pw,{})]})]})}),p.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:p.jsxs(Be,{className:"flex items-center justify-between ",children:[p.jsxs("div",{className:"flex items-center gap-8",children:[p.jsx(Re,{to:"/",children:p.jsx(Ac,{})}),p.jsx("nav",{className:"lg:flex hidden items-center gap-6 text-white",children:Ms[Fe(e)].data.slice(2,5).map(({title:t,link:n})=>p.jsxs(Re,{to:n,className:"flex items-center gap-2",children:[t," ",p.jsx("img",{src:"/chevron.svg"})]},t))})]}),p.jsx("div",{className:"flex items-center",children:p.jsx(ep,{})}),p.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[p.jsx(Re,{to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf",target:"_blank",children:p.jsx(He,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90",children:e==="ru"?"Официальная поддержка":"Official Support"})}),p.jsx(Re,{to:"/become-sponsor",children:p.jsx(He,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90",children:e==="ru"?"Стать спонсором":"Become a sponsor"})})]})]})})]})},O0=()=>{const e=Ye(t=>t.lang);return p.jsx("footer",{className:"py-5 bg-primary",children:p.jsxs(Be,{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(Ac,{}),p.jsxs("div",{className:"flex items-center gap-6",children:[p.jsx("img",{src:"/inst.svg"}),p.jsx("img",{src:"/in.svg"}),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===be.RU?"©2025 Все права защищены":"All rights reserved"})]})})},Be=({className:e,children:t})=>p.jsx("div",{className:q("w-full mx-auto max-w-[1240px] px-4",e),children:t}),F0=({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{j0 as A,He as B,F0 as C,si as D,Qe as E,O0 as F,Nl as G,_0 as H,At as I,Oe as J,hr as K,be as L,un as M,tw as N,m0 as O,je as P,Be as Q,O as R,cn as S,se as T,Ix as U,N0 as a,k0 as b,V0 as c,P0 as d,M0 as e,q as f,T0 as g,E0 as h,R0 as i,p as j,D0 as k,Kr as l,xr as m,Fe as n,Qx as o,xd as p,bd as q,wd as r,S0 as s,p0 as t,Ye as u,b0 as v,w0 as w,g0 as x,A0 as y,x0 as z}; + You should always remember that the good location of the exhibition increases your chance to attract the attention of your potential customers…`,link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]}],_0=()=>{const[e,t]=er({align:"start"}),[n,r]=y.useState(0),s=Ge(o=>o.lang),i=y.useCallback(o=>{t&&t.scrollTo(o)},[t]);return y.useEffect(()=>{if(!t)return;const o=()=>{r(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(Be,{children:p.jsxs("div",{ref:e,className:"embla ",children:[p.jsx("div",{className:"mb-2 flex gap-6 embla__container",children:d0[ve(s)].data.map(o=>y.createElement(sp,{...o,key:o.title}))}),p.jsx(rb,{className:"xl:hidden",scrollTo:i,active:n,slides:2})]})})})},O0=()=>{const e=Ge(t=>t.lang);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(Be,{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(tm,{}),p.jsx("h4",{className:"text-sm",children:e==="ru"?"Ашхабад, Туркменистан":"Ashgabat, Turkmenistan"})]}),p.jsx("nav",{className:"flex items-center gap-6",children:Vs[ve(e)].data.slice(0,2).map(({title:t,link:n})=>p.jsx(De,{className:"py-2",to:n,children:t},t))})]}),p.jsxs("div",{className:"flex items-center gap-6",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(rm,{size:16,strokeWidth:"3px"}),p.jsx("h4",{className:"text-sm",children:"+99371871812"})]}),p.jsx(Ew,{})]})]})}),p.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:p.jsxs(Be,{className:"flex items-center justify-between ",children:[p.jsxs("div",{className:"flex items-center gap-8",children:[p.jsx(De,{to:"/",children:p.jsx(Pc,{})}),p.jsx("nav",{className:"lg:flex hidden items-center gap-6 text-white",children:Vs[ve(e)].data.slice(2,5).map(({title:t,link:n})=>p.jsxs(De,{to:n,className:"flex items-center gap-2",children:[t," ",p.jsx("img",{src:"/chevron.svg"})]},t))})]}),p.jsx("div",{className:"flex items-center",children:p.jsx(np,{})}),p.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[p.jsx(De,{to:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf",target:"_blank",children:p.jsx(He,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90",children:e==="ru"?"Официальная поддержка":"Official Support"})}),p.jsx(De,{to:"/become-sponsor",children:p.jsx(He,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90",children:e==="ru"?"Стать спонсором":"Become a sponsor"})})]})]})})]})},F0=()=>{const e=Ge(t=>t.lang);return p.jsx("footer",{className:"py-5 bg-primary",children:p.jsxs(Be,{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(Pc,{}),p.jsxs("div",{className:"flex items-center gap-6",children:[p.jsx("img",{src:"/inst.svg"}),p.jsx("img",{src:"/in.svg"}),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===Se.RU?"©2025 Все права защищены":"All rights reserved"})]})})},Be=({className:e,children:t})=>p.jsx("div",{className:q("w-full mx-auto max-w-[1240px] px-4",e),children:t}),L0=({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{N0 as A,He as B,L0 as C,oi as D,Qe as E,F0 as F,kl as G,O0 as H,At as I,Fe as J,pr as K,Se as L,un as M,rw as N,p0 as O,Ne as P,Be as Q,O as R,cn as S,se as T,Ux as U,M0 as a,V0 as b,_0 as c,T0 as d,k0 as e,q as f,E0 as g,R0 as h,D0 as i,p as j,j0 as k,Xr as l,wr as m,ve as n,tb as o,wd as p,Sd as q,Ad as r,A0 as s,g0 as t,Ge as u,w0 as v,S0 as w,y0 as x,C0 as y,b0 as z}; diff --git a/dist/index.html b/dist/index.html index f2cf68c..139045f 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,9 +5,9 @@ Turkmen Textile - + - +