diff --git a/client/dist/assets/ChatPage-463faca3.js b/client/dist/assets/ChatPage-186f86cb.js similarity index 99% rename from client/dist/assets/ChatPage-463faca3.js rename to client/dist/assets/ChatPage-186f86cb.js index 4ecb1ba..28236e7 100644 --- a/client/dist/assets/ChatPage-463faca3.js +++ b/client/dist/assets/ChatPage-186f86cb.js @@ -1,4 +1,4 @@ -import{X as hooks,j as jsxRuntimeExports,C as CONSTANTS_COMMON,u as useSelector,r as reactExports,a as useDispatch,Q,T as TOAST_ACTION,t as setSelectedChat,Y as setFetchUserChatsAgain,b as react,Z as ChatLoading,_ as searchUsers,k,A as AiOutlineCloseCircle,L as Link,$ as ConfirmDeleteToast,a0 as setChats,a1 as commonjsGlobal,a2 as getDefaultExportFromCjs,a3 as React,a4 as getAllMessagesFromChat,D as classnames,a5 as InputEmojiWithRef,a6 as ImAttachment,a7 as sendMessageWithImg,a8 as sendMessage,a9 as setJoinVideoRoom,aa as FaArrowLeft,v as setOpenVideoCall,q as MdVideoCall,ab as SlOptionsVertical,ac as BiSearchAlt,ad as AiOutlinePlusCircle,m as useNavigate,c as getUserInfo,s as store,d as setCredentials,P as isAxiosError}from"./index-cbb70753.js";import{u as updateGroupChat,a as addGroupDp,r as removeFromGroup,g as groupRemove,f as fetchOtherUserChat,c as createGroupChat,b as fetchChats}from"./index-0cc34895.js";const getSender=(e,r)=>r[0]._id===e?r[1]:r[0],groupByDate=e=>e.reduce((r,s)=>{const d=hooks(s.createdAt).format("LL");return r[d]||(r[d]=[]),r[d].push(s),r},{}),truncate=(e,r)=>{if(!(!e||typeof e!="string"))return e.length<=r?e:e.slice(0,r)+"..."},UserCard=({user:e})=>jsxRuntimeExports.jsx("div",{className:`flex w-full px-4 py-2 mb-5 items-center justify-between transition duration-100 +import{X as hooks,j as jsxRuntimeExports,C as CONSTANTS_COMMON,u as useSelector,r as reactExports,a as useDispatch,Q,T as TOAST_ACTION,t as setSelectedChat,Y as setFetchUserChatsAgain,b as react,Z as ChatLoading,_ as searchUsers,k,A as AiOutlineCloseCircle,L as Link,$ as ConfirmDeleteToast,a0 as setChats,a1 as commonjsGlobal,a2 as getDefaultExportFromCjs,a3 as React,a4 as getAllMessagesFromChat,D as classnames,a5 as InputEmojiWithRef,a6 as ImAttachment,a7 as sendMessageWithImg,a8 as sendMessage,a9 as setJoinVideoRoom,aa as FaArrowLeft,v as setOpenVideoCall,q as MdVideoCall,ab as SlOptionsVertical,ac as BiSearchAlt,ad as AiOutlinePlusCircle,m as useNavigate,c as getUserInfo,s as store,d as setCredentials,P as isAxiosError}from"./index-1d851ad5.js";import{u as updateGroupChat,a as addGroupDp,r as removeFromGroup,g as groupRemove,f as fetchOtherUserChat,c as createGroupChat,b as fetchChats}from"./index-22aae0e6.js";const getSender=(e,r)=>r[0]._id===e?r[1]:r[0],groupByDate=e=>e.reduce((r,s)=>{const d=hooks(s.createdAt).format("LL");return r[d]||(r[d]=[]),r[d].push(s),r},{}),truncate=(e,r)=>{if(!(!e||typeof e!="string"))return e.length<=r?e:e.slice(0,r)+"..."},UserCard=({user:e})=>jsxRuntimeExports.jsx("div",{className:`flex w-full px-4 py-2 mb-5 items-center justify-between transition duration-100 ease-in-out rounded-lg shadow-md hover:scale-95 hover:rounded-lg cursor-pointer bg-[#E8E8E8] hover:bg-blue-gray-600 group`,children:jsxRuntimeExports.jsxs("div",{className:"s) => setLimt-3 flex items-center space-x-2",children:[jsxRuntimeExports.jsx("img",{className:"inline-block h-12 w-12 rounded-full",src:e.dp?e.dp:CONSTANTS_COMMON.DEFAULT_IMG,alt:"user dp"}),jsxRuntimeExports.jsxs("span",{className:"flex flex-col",children:[jsxRuntimeExports.jsx("span",{className:"text-[14px] font-medium text-gray-900 group-hover:text-white group-hover:font-bold",children:e.name}),jsxRuntimeExports.jsxs("span",{className:"text-[11px] font-medium text-gray-500 group-hover:text-white group-hover:font-bold",children:["@",e.username]})]})]})}),AdminGroupEdit=({updateGroup:e,setUpdateGroup:r,handleOpenOptions:s,setDisableUpdate:d,socket:f})=>{const _=useSelector(cE=>cE.chat.selectedChat),C=useSelector(cE=>{var _E;return(_E=cE.auth.user)==null?void 0:_E._id}),[P,x]=reactExports.useState((_==null?void 0:_.chatName)??""),[B,_t]=reactExports.useState(""),[ue,Wt]=reactExports.useState((_==null?void 0:_.users)??[]),[_n,_i]=reactExports.useState(),[Ei,_a]=reactExports.useState([]),[Di,_o]=reactExports.useState(!1),[_s,_c]=reactExports.useState(new FormData),[_m,Qm]=reactExports.useState(new FormData),tE=useDispatch();reactExports.useEffect(()=>{(_==null?void 0:_.chatName)===P&&(_==null?void 0:_.users)===ue?d(!0):d(!1),_n&&d(!1)},[P,ue,_n]),reactExports.useEffect(()=>{let cE;const _E=async()=>{try{_o(!0);const iE=await searchUsers(B);_o(!1),_a(iE.users)}catch{Q.dismiss(),Q.error("Failed to load search results",TOAST_ACTION)}};return B.length>0&&(cE=setTimeout(_E,500)),()=>{clearTimeout(cE)}},[B]),reactExports.useEffect(()=>{e&&aE()},[r,e]);const aE=async()=>{if(P.trim().length===0&&ue.length===0){Q.dismiss(),Q.error("Group name and members cannot be empty",TOAST_ACTION);return}if(P!==(_==null?void 0:_.chatName)&&_s.append("chatName",P),ue!==(_==null?void 0:_.users)){const cE=ue.map(_E=>_E._id);_s.append("users",JSON.stringify(cE))}_n&&_m.append("groupDp",_n);try{let cE;Q.info("Updating group...",{...TOAST_ACTION,autoClose:!1}),(P!==(_==null?void 0:_.chatName)||ue!==(_==null?void 0:_.users))&&(cE=_&&await updateGroupChat(_==null?void 0:_._id,_s)),_n&&(cE=_&&await addGroupDp(_._id,_m)),cE&&tE(setSelectedChat(cE.groupChat)),tE(setFetchUserChatsAgain(!0)),cE&&f.emit("group updation",cE.groupChat),Q.dismiss(),r(!1),Q.success("Group updated successfully",TOAST_ACTION),Qm(new FormData),_c(new FormData),s()}catch{Q.dismiss(),Q.error("Failed to update group",TOAST_ACTION)}},CE=cE=>{Wt(ue.filter(_E=>_E!==cE))},lE=cE=>{if(ue.some(_E=>_E._id===cE._id)){Q.dismiss(),Q.warn("User already added",TOAST_ACTION);return}else Wt([...ue,cE])},gE=cE=>{cE.target.files&&cE.target.files.length>0&&_i(cE.target.files[0])};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(react.Typography,{className:"-mb-2",variant:"h6",children:"Add Image"}),jsxRuntimeExports.jsxs("div",{className:"mx-auto",children:[jsxRuntimeExports.jsx("input",{type:"file",accept:"image/*",id:"newGroup-image",className:"hidden",onChange:gE}),jsxRuntimeExports.jsx("label",{htmlFor:"newGroup-image",children:jsxRuntimeExports.jsx("img",{src:_n instanceof File?URL.createObjectURL(_n):_==null?void 0:_.groupDp,className:"h-36 w-36 rounded-full border-4 border-gray-500 border-dashed bg-white m-2 flex items-center justify-center cursor-pointer p-2"})})]}),jsxRuntimeExports.jsx(react.Typography,{className:"-mb-2",variant:"h6",children:"Group Name"}),jsxRuntimeExports.jsx(react.Input,{label:"Enter the name",size:"lg",value:P,onChange:cE=>x(cE.target.value)}),jsxRuntimeExports.jsx(react.Typography,{className:"-mb-2",variant:"h6",children:"Add Members"}),jsxRuntimeExports.jsx(react.Input,{label:"Enter the members",size:"lg",onChange:cE=>_t(cE.target.value)}),jsxRuntimeExports.jsx("div",{className:"max-h-36 overflow-y-scroll flex items-center justify-center flex-wrap gap-2 no-scrollbar",children:ue.map(cE=>cE._id!==C&&jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(react.Chip,{variant:"ghost",animate:{mount:{y:0},unmount:{y:50}},value:cE.name,onClose:()=>CE(cE),className:"rounded-full",color:"green"})},`selected-${cE._id}`))}),Di?jsxRuntimeExports.jsx("div",{className:"overflow-y-hidden flex flex-col gap-4",children:Array(3).fill(0).map((cE,_E)=>jsxRuntimeExports.jsx(ChatLoading,{},_E))}):jsxRuntimeExports.jsx("div",{className:"max-h-64 overflow-y-scroll overflow-x-hidden no-scrollbar mx-4",children:Ei==null?void 0:Ei.slice(0,4).map(cE=>cE._id!==C&&jsxRuntimeExports.jsx("div",{className:"w-full",onClick:()=>lE(cE),children:jsxRuntimeExports.jsx(UserCard,{user:cE})},`search-${cE._id}`))})]})},OptionsDialog=({openOptions:e,handleOpenOptions:r,socket:s})=>{const d=useSelector(Ei=>Ei.chat.selectedChat),f=useSelector(Ei=>{var _a;return(_a=Ei.auth.user)==null?void 0:_a._id}),_=useSelector(Ei=>Ei.chat.chats),[C,P]=reactExports.useState(!1),[x,B]=reactExports.useState(!1),_t=useDispatch(),ue=async()=>{Q.dismiss(),Q(jsxRuntimeExports.jsx(ConfirmDeleteToast,{onDelete:Wt,message:"Are you sure you want to leave this Group?"}),{...TOAST_ACTION,closeButton:!1})},Wt=async()=>{const Ei=d&&f&&await removeFromGroup(d==null?void 0:d._id,f);Ei&&(Ei==null?void 0:Ei.status)==="success"&&(Q.dismiss(),_t(setSelectedChat("")),_t(setChats(_.filter(_a=>_a._id!==(d==null?void 0:d._id)))),Q.success("Successfully left the group"),r())},_n=async()=>{Q.dismiss(),Q(jsxRuntimeExports.jsx(ConfirmDeleteToast,{onDelete:_i,message:"Are you sure you want to delete this group?"}),{...TOAST_ACTION,closeButton:!1})},_i=async()=>{const Ei=d&&await groupRemove(d==null?void 0:d._id);Ei&&(Ei==null?void 0:Ei.status)==="success"&&(Q.dismiss(),_t(setSelectedChat("")),_t(setChats(_.filter(_a=>_a._id!==(d==null?void 0:d._id)))),Q.success("Successfully deleted the group"),r())};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs(react.Dialog,{size:"xs",dismiss:{enabled:!1},open:e,handler:r,className:"bg-transparent shadow-none",children:[jsxRuntimeExports.jsx(k,{}),jsxRuntimeExports.jsxs(react.Card,{className:"mx-auto w-full ",children:[jsxRuntimeExports.jsxs(react.CardBody,{className:"flex flex-col gap-4",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntimeExports.jsx("h1",{className:"text-2xl font-medium text-black",children:d!=null&&d.isGroupChat?d.chatName:"User Info"}),jsxRuntimeExports.jsx(AiOutlineCloseCircle,{className:"text-3xl cursor-pointer text-black",onClick:Ei=>{Ei.stopPropagation(),r()}})]}),d&&!d.isGroupChat?jsxRuntimeExports.jsxs("div",{className:"relative h-60 md:h-80 w-60 md:w-80 rounded-md mx-auto overflow-hidden",children:[jsxRuntimeExports.jsx("img",{src:f&&getSender(f,d.users).dp?getSender(f,d.users).dp:CONSTANTS_COMMON.DEFAULT_IMG,alt:"user dp",className:"z-0 h-full w-full rounded-md object-cover"}),jsxRuntimeExports.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-gray-900 to-transparent"}),jsxRuntimeExports.jsxs("div",{className:"absolute bottom-4 left-4 text-left",children:[jsxRuntimeExports.jsx("h1",{className:"text-lg font-semibold text-white",children:f&&getSender(f,d.users).name}),jsxRuntimeExports.jsxs("h1",{className:"text-xs font-light text-white",children:["@",f&&getSender(f,d.users).username]}),jsxRuntimeExports.jsx(Link,{to:`/profile/${f&&getSender(f,d.users)._id}`,children:jsxRuntimeExports.jsx("button",{className:"mt-2 inline-flex cursor-pointer items-center text-sm font-semibold text-white",children:"View Profile →"})})]})]}):(d==null?void 0:d.groupAdmin._id)===f?jsxRuntimeExports.jsx(AdminGroupEdit,{updateGroup:C,setUpdateGroup:P,handleOpenOptions:r,setDisableUpdate:B,socket:s}):jsxRuntimeExports.jsxs("div",{className:"max-h-96 overflow-y-scroll overflow-x-hidden no-scrollbar mx-4",children:[jsxRuntimeExports.jsx("img",{src:d==null?void 0:d.groupDp,className:"h-48 w-48 rounded-full border-4 border-gray-500 border-dashed bg-white mx-auto flex items-center justify-center p-2"}),jsxRuntimeExports.jsxs("div",{className:"flex gap-2 items-center mb-2",children:[jsxRuntimeExports.jsx("h1",{className:"text-lg font-medium",children:"Admin"}),jsxRuntimeExports.jsx("span",{className:`inline-flex items-center justify-center px-2 py-1 mr-2 text-xs font-bold leading-none text-white bg-socioverse-400 rounded-full`,children:d&&(d==null?void 0:d.users.filter(Ei=>Ei._id===d.groupAdmin._id).length)})]}),d==null?void 0:d.users.map(Ei=>Ei._id===d.groupAdmin._id&&jsxRuntimeExports.jsx(UserCard,{user:Ei},Ei._id)),jsxRuntimeExports.jsxs("div",{className:"flex gap-2 items-center mb-2",children:[jsxRuntimeExports.jsx("h1",{className:"text-lg font-medium",children:"Members"}),jsxRuntimeExports.jsx("span",{className:`inline-flex items-center justify-center px-2 py-1 mr-2 text-xs diff --git a/client/dist/assets/HomePage-037e9dce.js b/client/dist/assets/HomePage-4bb27794.js similarity index 99% rename from client/dist/assets/HomePage-037e9dce.js rename to client/dist/assets/HomePage-4bb27794.js index fb57822..387a6e1 100644 --- a/client/dist/assets/HomePage-037e9dce.js +++ b/client/dist/assets/HomePage-4bb27794.js @@ -1,3 +1,3 @@ -import{u as H,r as a,a as E,g as te,j as e,k as O,H as ue,L as B,C as L,R as ae,b as l,A as V,c as J,s as X,d as Y,f as pe,Q as w,T as M,e as ge,h as fe,i as je,l as ve,m as Z,n as Q,o as be,M as ne,p as le,B as G,q as W,t as re,v as we,G as Ne,w as ye,x as ke,y as Ce,z as Se,D as oe,E as _e,F as Ie,I as Ue,J as De,K as Fe,N as Me,O as Le,P as xe,S as ie,U as Ae,V as Be,W as Te}from"./index-cbb70753.js";import{T as ce}from"./index.esm-66cfb03e.js";import{f as de}from"./index-0cc34895.js";import{u as Oe,I as Ee}from"./ImageCropper-05d72e4c.js";function He({handleFollowingAdd:i,handleFollowingRemove:j}){const p=H(t=>{var m;return(m=t==null?void 0:t.auth)==null?void 0:m.user}),[u,c]=a.useState(null),[n,x]=a.useState(),[g,d]=a.useState([]),[b,h]=a.useState(!1),S=()=>h(!b),y=E();a.useEffect(()=>{const t=async()=>{if(!p){const r=await m();c(r)}},m=async()=>{const{user:r}=await J(),{accessToken:f}=X.getState().auth;return y(Y({user:r,accessToken:f})),r};t(),te().then(r=>d(r.suggestions))},[]),a.useEffect(()=>{p&&x(p.following)},[p]);const _=(t,m)=>{pe(t).then(()=>{i(!0),w.dismiss(),w.success(`Following ${m}`,{...M,position:"bottom-left"})}),!(n!=null&&n.includes(t))&&x([...n,t]),y(ge(t))},I=(t,m)=>{fe(t).then(()=>{j(!0),w.dismiss(),w.success(`Unfollowed ${m}`,{...M,position:"bottom-left"})}),x(n==null?void 0:n.filter(r=>r!==t)),y(je(t))},k=()=>{te().then(t=>d(t.suggestions))};return e.jsxs(e.Fragment,{children:[e.jsx(O,{}),e.jsx("div",{className:"flex max-w-2xl flex-col rounded-lg border shadow-lg p-2",children:e.jsx("div",{children:e.jsx("div",{className:"p-4",children:e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"text-2xl",children:e.jsx(ue,{})}),e.jsx("h1",{className:"inline-flex items-center text-lg font-semibold",children:"People you may know"})]}),e.jsx("div",{className:"flex flex-col gap-2 ",children:g.slice(0,5).map(t=>{var m,r;return e.jsxs("div",{className:"flex p-2 items-center justify-between transition duration-100 ease-in-out hover:shadow-md hover:scale-105 hover:rounded-lg",children:[e.jsx(B,{to:`/profile/${t._id}`,children:e.jsxs("div",{className:"s) => setLimt-3 flex items-center space-x-2",children:[e.jsx("img",{className:"inline-block h-12 w-12 rounded-full",src:t.dp?t.dp:L.DEFAULT_IMG,alt:"user dp"}),e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:"text-[14px] font-medium text-gray-900",children:t==null?void 0:t.name}),e.jsx("span",{className:"text-[11px] font-medium text-gray-500",children:t.username?`@${t.username}`:"@ -"})]})]})}),n!=null&&n.includes(t._id)||p&&((m=t.followers)!=null&&m.includes(p._id))||u&&((r=t.followers)!=null&&r.includes(u._id))?e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-500 rounded-full cursor-pointer border-2 border-blue-gray-700 hover:border-red-700 hover:bg-white hover:border-3 group",onClick:()=>I(t._id,t.name),children:e.jsx(ae,{className:"text-xl text-white group-hover:text-red-500"})}):e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-100 rounded-full cursor-pointer border-2 border-blue-gray-500 hover:bg-white hover:border-3 group",onClick:()=>_(t._id,t.name),children:e.jsx(ce,{className:"text-xl text-socioverse-500 group-hover:text-blue-gray-500"})})]},t._id)})}),e.jsx("div",{className:"inline-block",children:e.jsxs(l.Button,{variant:"text",className:"flex items-center gap-2 text-black capitalize shadow-none text-sm font-semibold",onClick:()=>{k(),S()},disabled:g.length<=5,children:["View More",e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"h-4 w-4",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 8.25L21 12m0 0l-3.75 3.75M21 12H3"})})]})})]})})})}),e.jsxs(l.Dialog,{open:b,size:"xs",handler:S,animate:{mount:{scale:1,y:0},unmount:{scale:.9,y:-100}},children:[e.jsx(l.DialogHeader,{children:e.jsxs("div",{className:"flex justify-between items-center w-full",children:[e.jsx("h1",{className:"text-xl font-semibold",children:"People you may know"}),e.jsx("div",{children:e.jsx(V,{className:"text-3xl cursor-pointer",onClick:S})})]})}),e.jsx(O,{}),e.jsx(l.DialogBody,{className:"flex flex-col gap-4 lg:mx-4 lg:my-0 m-2 max-h-[20.5rem] overflow-y-scroll",children:e.jsx("div",{className:"flex flex-col gap-2 ",children:g.map(t=>{var m,r;return e.jsxs("div",{className:"flex p-2 items-center justify-between transition duration-100 ease-in-out hover:shadow-md hover:scale-105 hover:rounded-lg",children:[e.jsx(B,{to:`/profile/${t._id}`,children:e.jsxs("div",{className:"mt-3 flex items-center space-x-2",children:[e.jsx("img",{className:"inline-block h-12 w-12 rounded-full",src:t.dp?t.dp:L.DEFAULT_IMG,alt:"user dp"}),e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:"text-[14px] font-medium text-gray-900",children:t==null?void 0:t.name}),e.jsx("span",{className:"text-[11px] font-medium text-gray-500",children:t.username?`@${t.username}`:"@ -"})]})]})}),n!=null&&n.includes(t._id)||p&&((m=t.followers)!=null&&m.includes(p._id))||u&&((r=t.followers)!=null&&r.includes(u._id))?e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-500 rounded-full cursor-pointer border-2 border-blue-gray-700 hover:border-red-700 hover:bg-white hover:border-3 group",onClick:()=>I(t._id,t.name),children:e.jsx(ae,{className:"text-xl text-white group-hover:text-red-500"})}):e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-100 rounded-full cursor-pointer border-2 border-blue-gray-500 hover:bg-white hover:border-3 group",onClick:()=>_(t._id,t.name),children:e.jsx(ce,{className:"text-xl text-socioverse-500 group-hover:text-blue-gray-500"})})]},t._id)})})}),e.jsx(l.DialogFooter,{children:void 0})]})]})}function Ve({newFollowing:i,handleFollowingAdd:j,removeFollowing:p,handleFollowingRemove:u,socket:c}){const n=E(),x=ve(),g=Z(),[d,b]=a.useState([]),[h,S]=a.useState([]),[y,_]=a.useState(!1),[I,k]=a.useState(!1),t=()=>_(!y),m=()=>k(!I),r=H(s=>s.auth.user);a.useEffect(()=>{r&&(Q(r._id).then(s=>{b(s.following)}),be(r._id).then(s=>{S(s.followers)}))},[r]);const[f,A]=a.useState(1),T=s=>A(f===s?0:s);i&&(r&&Q(r._id).then(s=>{b(s.following)}),j(!1)),p&&(r&&Q(r._id).then(s=>{b(s.following)}),u(!1));const C=async s=>{const U=await de(s);n(re(U.chat)),x.pathname!=="/message"&&g("/message")},F=async s=>{const U=await de(s);n(re(U.chat)),c&&c.emit("call-user",r,U.chat),n(we(!0)),x.pathname!=="/message"&&g("/message")};return e.jsxs(e.Fragment,{children:[e.jsxs(l.Accordion,{open:f===2,className:"mb-5 rounded-lg border px-2 shadow-lg",children:[e.jsxs("div",{onClick:()=>T(2),className:`border-b-0 transition-colors flex items-center justify-between p-4 cursor-pointer +import{u as H,r as a,a as E,g as te,j as e,k as O,H as ue,L as B,C as L,R as ae,b as l,A as V,c as J,s as X,d as Y,f as pe,Q as w,T as M,e as ge,h as fe,i as je,l as ve,m as Z,n as Q,o as be,M as ne,p as le,B as G,q as W,t as re,v as we,G as Ne,w as ye,x as ke,y as Ce,z as Se,D as oe,E as _e,F as Ie,I as Ue,J as De,K as Fe,N as Me,O as Le,P as xe,S as ie,U as Ae,V as Be,W as Te}from"./index-1d851ad5.js";import{T as ce}from"./index.esm-6c8cf853.js";import{f as de}from"./index-22aae0e6.js";import{u as Oe,I as Ee}from"./ImageCropper-625f0d73.js";function He({handleFollowingAdd:i,handleFollowingRemove:j}){const p=H(t=>{var m;return(m=t==null?void 0:t.auth)==null?void 0:m.user}),[u,c]=a.useState(null),[n,x]=a.useState(),[g,d]=a.useState([]),[b,h]=a.useState(!1),S=()=>h(!b),y=E();a.useEffect(()=>{const t=async()=>{if(!p){const r=await m();c(r)}},m=async()=>{const{user:r}=await J(),{accessToken:f}=X.getState().auth;return y(Y({user:r,accessToken:f})),r};t(),te().then(r=>d(r.suggestions))},[]),a.useEffect(()=>{p&&x(p.following)},[p]);const _=(t,m)=>{pe(t).then(()=>{i(!0),w.dismiss(),w.success(`Following ${m}`,{...M,position:"bottom-left"})}),!(n!=null&&n.includes(t))&&x([...n,t]),y(ge(t))},I=(t,m)=>{fe(t).then(()=>{j(!0),w.dismiss(),w.success(`Unfollowed ${m}`,{...M,position:"bottom-left"})}),x(n==null?void 0:n.filter(r=>r!==t)),y(je(t))},k=()=>{te().then(t=>d(t.suggestions))};return e.jsxs(e.Fragment,{children:[e.jsx(O,{}),e.jsx("div",{className:"flex max-w-2xl flex-col rounded-lg border shadow-lg p-2",children:e.jsx("div",{children:e.jsx("div",{className:"p-4",children:e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"text-2xl",children:e.jsx(ue,{})}),e.jsx("h1",{className:"inline-flex items-center text-lg font-semibold",children:"People you may know"})]}),e.jsx("div",{className:"flex flex-col gap-2 ",children:g.slice(0,5).map(t=>{var m,r;return e.jsxs("div",{className:"flex p-2 items-center justify-between transition duration-100 ease-in-out hover:shadow-md hover:scale-105 hover:rounded-lg",children:[e.jsx(B,{to:`/profile/${t._id}`,children:e.jsxs("div",{className:"s) => setLimt-3 flex items-center space-x-2",children:[e.jsx("img",{className:"inline-block h-12 w-12 rounded-full",src:t.dp?t.dp:L.DEFAULT_IMG,alt:"user dp"}),e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:"text-[14px] font-medium text-gray-900",children:t==null?void 0:t.name}),e.jsx("span",{className:"text-[11px] font-medium text-gray-500",children:t.username?`@${t.username}`:"@ -"})]})]})}),n!=null&&n.includes(t._id)||p&&((m=t.followers)!=null&&m.includes(p._id))||u&&((r=t.followers)!=null&&r.includes(u._id))?e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-500 rounded-full cursor-pointer border-2 border-blue-gray-700 hover:border-red-700 hover:bg-white hover:border-3 group",onClick:()=>I(t._id,t.name),children:e.jsx(ae,{className:"text-xl text-white group-hover:text-red-500"})}):e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-100 rounded-full cursor-pointer border-2 border-blue-gray-500 hover:bg-white hover:border-3 group",onClick:()=>_(t._id,t.name),children:e.jsx(ce,{className:"text-xl text-socioverse-500 group-hover:text-blue-gray-500"})})]},t._id)})}),e.jsx("div",{className:"inline-block",children:e.jsxs(l.Button,{variant:"text",className:"flex items-center gap-2 text-black capitalize shadow-none text-sm font-semibold",onClick:()=>{k(),S()},disabled:g.length<=5,children:["View More",e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"h-4 w-4",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 8.25L21 12m0 0l-3.75 3.75M21 12H3"})})]})})]})})})}),e.jsxs(l.Dialog,{open:b,size:"xs",handler:S,animate:{mount:{scale:1,y:0},unmount:{scale:.9,y:-100}},children:[e.jsx(l.DialogHeader,{children:e.jsxs("div",{className:"flex justify-between items-center w-full",children:[e.jsx("h1",{className:"text-xl font-semibold",children:"People you may know"}),e.jsx("div",{children:e.jsx(V,{className:"text-3xl cursor-pointer",onClick:S})})]})}),e.jsx(O,{}),e.jsx(l.DialogBody,{className:"flex flex-col gap-4 lg:mx-4 lg:my-0 m-2 max-h-[20.5rem] overflow-y-scroll",children:e.jsx("div",{className:"flex flex-col gap-2 ",children:g.map(t=>{var m,r;return e.jsxs("div",{className:"flex p-2 items-center justify-between transition duration-100 ease-in-out hover:shadow-md hover:scale-105 hover:rounded-lg",children:[e.jsx(B,{to:`/profile/${t._id}`,children:e.jsxs("div",{className:"mt-3 flex items-center space-x-2",children:[e.jsx("img",{className:"inline-block h-12 w-12 rounded-full",src:t.dp?t.dp:L.DEFAULT_IMG,alt:"user dp"}),e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:"text-[14px] font-medium text-gray-900",children:t==null?void 0:t.name}),e.jsx("span",{className:"text-[11px] font-medium text-gray-500",children:t.username?`@${t.username}`:"@ -"})]})]})}),n!=null&&n.includes(t._id)||p&&((m=t.followers)!=null&&m.includes(p._id))||u&&((r=t.followers)!=null&&r.includes(u._id))?e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-500 rounded-full cursor-pointer border-2 border-blue-gray-700 hover:border-red-700 hover:bg-white hover:border-3 group",onClick:()=>I(t._id,t.name),children:e.jsx(ae,{className:"text-xl text-white group-hover:text-red-500"})}):e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-100 rounded-full cursor-pointer border-2 border-blue-gray-500 hover:bg-white hover:border-3 group",onClick:()=>_(t._id,t.name),children:e.jsx(ce,{className:"text-xl text-socioverse-500 group-hover:text-blue-gray-500"})})]},t._id)})})}),e.jsx(l.DialogFooter,{children:void 0})]})]})}function Ve({newFollowing:i,handleFollowingAdd:j,removeFollowing:p,handleFollowingRemove:u,socket:c}){const n=E(),x=ve(),g=Z(),[d,b]=a.useState([]),[h,S]=a.useState([]),[y,_]=a.useState(!1),[I,k]=a.useState(!1),t=()=>_(!y),m=()=>k(!I),r=H(s=>s.auth.user);a.useEffect(()=>{r&&(Q(r._id).then(s=>{b(s.following)}),be(r._id).then(s=>{S(s.followers)}))},[r]);const[f,A]=a.useState(1),T=s=>A(f===s?0:s);i&&(r&&Q(r._id).then(s=>{b(s.following)}),j(!1)),p&&(r&&Q(r._id).then(s=>{b(s.following)}),u(!1));const C=async s=>{const U=await de(s);n(re(U.chat)),x.pathname!=="/message"&&g("/message")},F=async s=>{const U=await de(s);n(re(U.chat)),c&&c.emit("call-user",r,U.chat),n(we(!0)),x.pathname!=="/message"&&g("/message")};return e.jsxs(e.Fragment,{children:[e.jsxs(l.Accordion,{open:f===2,className:"mb-5 rounded-lg border px-2 shadow-lg",children:[e.jsxs("div",{onClick:()=>T(2),className:`border-b-0 transition-colors flex items-center justify-between p-4 cursor-pointer `,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h1",{className:"text-lg font-semibold",children:"Followers"}),e.jsx(l.Chip,{value:h==null?void 0:h.length,size:"sm",variant:"ghost",color:"blue-gray",className:"rounded-full"})]}),e.jsx("div",{className:"text-2xl",children:f===2?e.jsx(ne,{}):e.jsx(le,{})})]}),e.jsx(l.AccordionBody,{className:"pt-0 text-base font-normal",children:e.jsxs("div",{className:"flex flex-col gap-4 px-4",children:[e.jsx("div",{className:"flex flex-col gap-2 ",children:h!=null&&h.length&&h?h.slice(0,5).map((s,U)=>e.jsxs("div",{className:"flex p-2 items-center justify-between transition duration-100 ease-in-out rounded-lg hover:shadow-md hover:scale-105 hover:rounded-lg",children:[e.jsx(B,{to:`/profile/${s._id}`,children:e.jsxs("div",{className:"mt-3 flex items-center space-x-2",children:[e.jsx("img",{className:"inline-block h-12 w-12 rounded-full",src:s.dp?s.dp:L.DEFAULT_IMG,alt:"user dp"}),e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:"text-[14px] font-medium text-gray-900",children:s.name}),e.jsxs("span",{className:"text-[11px] font-medium text-gray-500",children:["@",s.username]})]})]})}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-100 rounded-full cursor-pointer border-2 border-blue-gray-500 hover:border-green-500 hover:bg-white hover:border-3 group",onClick:()=>C(s._id),children:e.jsx(G,{className:"text-md text-socioverse-500 group-hover:text-green-500"})}),e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-100 rounded-full cursor-pointer border-2 border-blue-gray-500 hover:border-green-500 hover:bg-white hover:border-3 group",onClick:()=>F(s._id),children:e.jsx(W,{className:"text-xl text-socioverse-500 group-hover:text-green-500"})})]})]},U)):e.jsx("div",{children:"No followers"})}),h!=null&&h.length?e.jsx("div",{className:"inline-block",children:e.jsxs(l.Button,{variant:"text",className:"flex items-center gap-2 text-black capitalize shadow-none text-sm font-semibold",onClick:t,disabled:(h==null?void 0:h.length)<6,children:["View All",e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"h-4 w-4",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 8.25L21 12m0 0l-3.75 3.75M21 12H3"})})]})}):""]})})]}),e.jsxs(l.Accordion,{open:f===3,className:"mb-5 rounded-lg border px-2 shadow-lg",children:[e.jsxs("div",{onClick:()=>T(3),className:`border-b-0 transition-colors flex items-center justify-between p-4 cursor-pointer `,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h1",{className:"text-lg font-semibold",children:"Following"}),e.jsx(l.Chip,{value:d==null?void 0:d.length,size:"sm",variant:"ghost",color:"blue-gray",className:"rounded-full"})]}),e.jsx("div",{className:"text-2xl",children:f===3?e.jsx(ne,{}):e.jsx(le,{})})]}),e.jsx(l.AccordionBody,{className:"pt-0 text-base font-normal",children:e.jsxs("div",{className:"flex flex-col gap-4 px-4",children:[e.jsx("div",{className:"flex flex-col gap-2 ",children:d!=null&&d.length&&d?d.slice(0,5).map(s=>e.jsxs("div",{className:"flex p-2 items-center justify-between transition duration-100 ease-in-out hover:shadow-md hover:scale-105 hover:rounded-lg",children:[e.jsx(B,{to:`/profile/${s._id}`,children:e.jsxs("div",{className:"mt-3 flex items-center space-x-2",children:[e.jsx("img",{className:"inline-block h-12 w-12 rounded-full",src:s.dp?s.dp:L.DEFAULT_IMG,alt:"user dp"}),e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:"text-[14px] font-medium text-gray-900",children:s.name}),e.jsxs("span",{className:"text-[11px] font-medium text-gray-500",children:["@",s.username]})]})]})}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-100 rounded-full cursor-pointer border-2 border-blue-gray-500 hover:border-green-500 hover:bg-white hover:border-3 group",children:e.jsx(G,{className:"text-md text-socioverse-500 group-hover:text-green-500",onClick:()=>C(s._id)})}),e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-100 rounded-full cursor-pointer border-2 border-blue-gray-500 hover:border-green-500 hover:bg-white hover:border-3 group",onClick:()=>F(s._id),children:e.jsx(W,{className:"text-xl text-socioverse-500 group-hover:text-green-500"})})]})]},s._id)):e.jsx("div",{children:"No following"})}),d!=null&&d.length?e.jsx("div",{className:"inline-block",children:e.jsxs(l.Button,{variant:"text",className:"flex items-center gap-2 text-black capitalize shadow-none text-sm font-semibold",onClick:m,disabled:(d==null?void 0:d.length)<6,children:["View All",e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"h-4 w-4",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 8.25L21 12m0 0l-3.75 3.75M21 12H3"})})]})}):""]})})]}),e.jsxs(l.Dialog,{open:y,size:"xs",handler:t,animate:{mount:{scale:1,y:0},unmount:{scale:.9,y:-100}},children:[e.jsx(l.DialogHeader,{children:e.jsxs("div",{className:"flex justify-between items-center w-full",children:[e.jsx("h1",{className:"text-xl font-semibold",children:"Followers List"}),e.jsx("div",{children:e.jsx(V,{className:"text-3xl cursor-pointer",onClick:t})})]})}),e.jsx(O,{}),e.jsx(l.DialogBody,{className:"flex flex-col gap-4 lg:mx-4 lg:my-0 m-2 max-h-[20.5rem] overflow-y-scroll",children:e.jsx("div",{className:"flex flex-col gap-2 ",children:h.map(s=>e.jsxs("div",{className:"flex p-2 items-center justify-between transition duration-100 ease-in-out hover:shadow-md hover:scale-105 hover:rounded-lg",children:[e.jsx(B,{to:`/profile/${s._id}`,children:e.jsxs("div",{className:"mt-3 flex items-center space-x-2",children:[e.jsx("img",{className:"inline-block h-12 w-12 rounded-full",src:s.dp?s.dp:L.DEFAULT_IMG,alt:"user dp"}),e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:"text-[14px] font-medium text-gray-900",children:s==null?void 0:s.name}),e.jsx("span",{className:"text-[11px] font-medium text-gray-500",children:s.username?`@${s.username}`:"@ -"})]})]})}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-100 rounded-full cursor-pointer border-2 border-blue-gray-500 hover:border-green-500 hover:bg-white hover:border-3 group",onClick:()=>C(s._id),children:e.jsx(G,{className:"text-md text-socioverse-500 group-hover:text-green-500"})}),e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-100 rounded-full cursor-pointer border-2 border-blue-gray-500 hover:border-green-500 hover:bg-white hover:border-3 group",onClick:()=>F(s._id),children:e.jsx(W,{className:"text-xl text-socioverse-500 group-hover:text-green-500"})})]})]},s._id))})}),e.jsx(l.DialogFooter,{children:void 0})]}),e.jsxs(l.Dialog,{open:I,size:"xs",handler:m,animate:{mount:{scale:1,y:0},unmount:{scale:.9,y:-100}},children:[e.jsx(l.DialogHeader,{children:e.jsxs("div",{className:"flex justify-between items-center w-full",children:[e.jsx("h1",{className:"text-xl font-semibold",children:"Following List"}),e.jsx("div",{children:e.jsx(V,{className:"text-3xl cursor-pointer",onClick:m})})]})}),e.jsx(O,{}),e.jsx(l.DialogBody,{className:"flex flex-col gap-4 lg:mx-4 lg:my-0 m-2 max-h-[20.5rem] overflow-y-scroll",children:e.jsx("div",{className:"flex flex-col gap-2 ",children:d.map(s=>e.jsxs("div",{className:"flex p-2 items-center justify-between transition duration-100 ease-in-out hover:shadow-md hover:scale-105 hover:rounded-lg",children:[e.jsx(B,{to:`/profile/${s._id}`,children:e.jsxs("div",{className:"mt-3 flex items-center space-x-2",children:[e.jsx("img",{className:"inline-block h-12 w-12 rounded-full",src:s.dp?s.dp:L.DEFAULT_IMG,alt:"user dp"}),e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:"text-[14px] font-medium text-gray-900",children:s==null?void 0:s.name}),e.jsx("span",{className:"text-[11px] font-medium text-gray-500",children:s.username?`@${s.username}`:"@ -"})]})]})}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-100 rounded-full cursor-pointer border-2 border-blue-gray-500 hover:border-green-500 hover:bg-white hover:border-3 group",onClick:()=>C(s._id),children:e.jsx(G,{className:"text-md text-socioverse-500 group-hover:text-green-500"})}),e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-100 rounded-full cursor-pointer border-2 border-blue-gray-500 hover:border-green-500 hover:bg-white hover:border-3 group",onClick:()=>F(s._id),children:e.jsx(W,{className:"text-xl text-socioverse-500 group-hover:text-green-500"})})]})]},s._id))})}),e.jsx(l.DialogFooter,{children:void 0})]})]})}function ze(){return e.jsxs("div",{className:"flex w-full flex-row items-center gap-2 rounded-[99px] border shadow-md border-black/40 bg-blue-gray-100/30 p-1 md:p-2",children:[e.jsx(l.Textarea,{rows:1,resize:!1,placeholder:"Start your post here...",className:"min-h-full !border-0 focus:border-transparent",containerProps:{className:"grid h-full"},labelProps:{className:"before:content-none after:content-none"}}),e.jsx("div",{children:e.jsx(l.IconButton,{variant:"text",className:"rounded-full text-blue-gray-700",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,className:"h-5 w-5",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12L3.269 3.126A59.768 59.768 0 0121.485 12 59.77 59.77 0 013.27 20.876L5.999 12zm0 0h7.5"})})})})]})}function $e(i){return Ne({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"}},{tag:"circle",attr:{cx:"12",cy:"13",r:"4"}}]})(i)}const Re=()=>{const i=E();return Oe(async j=>await ke(j),{onSuccess:j=>{i(ye(j))}})},Ge=({open:i,handleOpen:j,setIsLastPage:p,setPostCreated:u})=>{const c=H(o=>o.auth.user),[n,x]=a.useState(!1),[g,d]=a.useState(null),[b,h]=a.useState(null),[S,y]=a.useState(!1),[_,I]=a.useState(null),[k,t]=a.useState(new FormData),[m,r]=a.useState([]),f=H(o=>o.post.image),A=E(),T=()=>x(!n),C=()=>y(!S),F=Re(),s=async(o,N)=>{if(o.length>0)try{o.forEach((D,K)=>{N.append("files",D,`image${K}.jpg`)})}catch(D){console.error("Upload error:",D)}},U=o=>{r(N=>[...N,{blob:o,image:URL.createObjectURL(o)}]),C()},z=o=>{var N;if((N=o.target.files)!=null&&N.length&&o.target.files[0]){const D=o.target.files[0];D.type.startsWith("image/")?(I(D),y(!0)):w.warn("Only image files are allowed!",M)}},$=async()=>{if(f&&f.length>0){const o=m.map(N=>N.blob);await s(o,k)}if(g&&k.append("description",g),b&&k.append("hashtags",b),!g&&!b&&(!f||f.length===0))w.dismiss(),w.error("All the fields cannot be empty!",M);else try{const o=F.mutateAsync(k);w.promise(o,{pending:"Uploading the post...",success:"Post uploaded successfully",error:"Upload failed!"},{...M,position:"bottom-left",closeButton:!1}),await(o||F.isSuccess)?(p(!1),w.dismiss(),u((await o).post)):w.dismiss(),j(),h(null),d(null),I(null),A(Ie()),r([])}catch{w.dismiss(),w.error("Upload failed!",{...M,position:"bottom-left"})}t(new FormData)},q=o=>{A(Ue(o)),r(N=>N.filter(D=>D.image!==o))};return e.jsxs(e.Fragment,{children:[e.jsxs(l.Dialog,{open:i,size:"md",handler:j,dismiss:{enabled:!1},animate:{mount:{scale:1,y:0},unmount:{scale:.9,y:-100}},children:[e.jsx(O,{}),e.jsx(l.DialogHeader,{children:e.jsxs("div",{className:"flex justify-between items-center w-full",children:[e.jsx("div",{className:"flex items-center justify-between gap-5 transition-transform duration-300 mx-1 px-2 pb-3 rounded-lg cursor-pointer hover:bg-gray-200 hover:scale-105",children:c&&e.jsx(B,{to:`/profile/${c._id}`,children:e.jsxs("div",{className:"mt-3 flex items-center space-x-2",children:[e.jsx("img",{className:"inline-block h-12 w-12 rounded-full",src:c.dp?c.dp:L.DEFAULT_IMG,alt:"user dp"}),e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:"text-[14px] font-bold text-gray-900",children:c.name}),e.jsx("span",{className:"text-[11px] font-bold text-green-500",children:"Post to Connections"})]})]})})}),e.jsx("div",{children:e.jsx(V,{className:"text-3xl cursor-pointer",onClick:j})})]})}),e.jsxs(l.DialogBody,{className:"flex flex-col gap-4 lg:mx-4 my-0 mx-2 px-4 py-0 md:px-4 md:py-4 max-h-[20.5rem] overflow-y-scroll",children:[e.jsx("div",{className:"w-full mb-20 sm:mb-12",children:e.jsx(Ce,{textValue:g,setTextValue:d})}),n&&e.jsx("div",{className:"w-full",children:e.jsx(l.Input,{label:"Hashtags",value:b||"",onChange:o=>h(o.target.value)})}),f&&f.length>0&&e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsx("div",{className:"border border-black/20 py-5 md:py-10 flex flex-col gap-2 md:gap-5",children:f.map((o,N)=>e.jsx("div",{className:"h-56 md:h-[19rem] w-full relative",style:{backgroundImage:`url(${o})`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"center"},children:e.jsx("div",{className:"absolute flex gap-3 bottom-5 right-4 md:bottom-3 md:right-16",children:e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-500 rounded-full cursor-pointer border-2 border-blue-gray-700 hover:border-red-700 hover:bg-white hover:border-3 group opacity-70 hover:opacity-100",children:e.jsx(Se,{className:"text-xl text-white group-hover:text-red-500",onClick:()=>q(o)})})})},N))}),f.length===5&&e.jsx("em",{className:"text-sm font-light text-right pr-1",children:"* Max of 5 images are allowed!"})]})]}),e.jsx(l.DialogFooter,{children:e.jsxs("div",{className:"float-left mx-4 mb-4 flex justify-between items-center w-full",children:[e.jsxs("div",{className:"flex justify-between items-center gap-3 mx-2",children:[e.jsx("div",{className:oe("flex justify-center items-center border-2 w-8 h-8 rounded-full cursor-pointer hover:border-socioverse-500 group",{"border-socioverse-500":n},{"border-black":!n}),onClick:T,children:e.jsx(_e,{className:oe("text-2xl group-hover:text-socioverse-500",{"text-socioverse-500":n},{"text-black":!n})})}),e.jsx("input",{type:"file",accept:"image/*",id:"image-input",className:"hidden",onChange:z,disabled:(f==null?void 0:f.length)===5}),e.jsx("label",{htmlFor:"image-input",className:"flex justify-center items-center text-black border-black border-2 w-8 h-8 rounded-full cursor-pointer hover:border-socioverse-500 group",children:e.jsx($e,{className:"text-xl group-hover:text-socioverse-500"})})]}),e.jsx(l.Button,{size:"sm",className:"rounded-full bg-socioverse-500",onClick:$,children:"Post"})]})})]}),e.jsxs(l.Dialog,{open:S,size:"lg",handler:C,animate:{mount:{scale:1,y:0},unmount:{scale:.9,y:-100}},children:[e.jsx(l.DialogHeader,{children:e.jsxs("div",{className:"flex justify-between items-center w-full",children:[e.jsx("div",{className:"text-2xl",children:"Image"}),e.jsx("div",{children:e.jsx(V,{className:"text-3xl cursor-pointer",onClick:C})})]})}),e.jsx(l.DialogBody,{className:"lg:m-4 m-2",children:_?e.jsx("div",{className:"w-auto lg:h-[28rem] h-96 ",children:e.jsx(Ee,{image:URL.createObjectURL(_),getImage:U,aspectRatio:1.5/1})}):" "})]})]})},We=({handleUsernameInputPopup:i,usernameInputPopupOpen:j,setIsUsernameAvailable:p})=>{const u=De().shape({username:Fe().trim().matches(/^\S+$/,"Username cannot contain whitespace characters").min(3,"Username should be atleast 3 characters").required("Username is required")}),c=Me({initialValues:{username:""},validationSchema:u,onSubmit:async n=>{try{const x=await Le(n.username);x.status==="success"?(p(!0),w.success("Username added successfully",{...M,position:"bottom-left"}),p(!0),i()):w.error(x.message,M)}catch(x){if(xe(x)){const g=x;if(g.response&&g.response.status>=400&&g.response.status<=500){const d=g.response.data.message;w.error(d,M)}}}}});return e.jsxs(l.Dialog,{open:j,size:"md",handler:i,dismiss:{enabled:!1},animate:{mount:{scale:1,y:0},unmount:{scale:.9,y:-100}},children:[e.jsx(l.DialogHeader,{children:e.jsxs("div",{className:"flex justify-between items-center w-full",children:[e.jsx("div",{className:"text-2xl",children:"User Info"}),e.jsx("div",{})]})}),e.jsx(O,{}),e.jsx(l.DialogBody,{className:"mx-4 mb-8",children:e.jsxs("div",{className:"flex flex-col",children:[e.jsx("div",{className:"text-md mb-6 border-2 p-4 rounded-lg bg-green-50 border-green-500",children:"Enter your username to continue, it should be unique!"}),e.jsxs("form",{onSubmit:c.handleSubmit,className:"flex items-start gap-5 justify-center",children:[e.jsx("div",{className:"w-[20rem]",children:e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx(l.Input,{type:"text",label:"Username",name:"username",value:c.values.username,onChange:c.handleChange,onBlur:c.handleBlur}),c.touched.username&&c.errors.username&&e.jsx("div",{className:"text-red-500 mt-[0.5rem] text-sm inline",children:c.errors.username})]})}),e.jsx(l.Button,{size:"lg",className:"bg-socioverse-500 hover:scale-105 text-white px-4 py-2 rounded-lg",disabled:!c.values.username,type:"submit",children:"Continue"})]})]})})]})},qe=({user:i,socket:j})=>{const p=E(),[u,c]=a.useState([]),[n,x]=a.useState(!1),[g,d]=a.useState(1),[b,h]=a.useState(!1),[S,y]=a.useState(null),[_,I]=a.useState(null),[k,t]=a.useState(null),[m,r]=a.useState(null),[f,A]=a.useState(!0),[T,C]=a.useState(!1),F=Z();a.useEffect(()=>{i&&A(!!i.username)},[i]),a.useEffect(()=>{i&&C(!f)},[f,i]);const s=()=>{C(v=>!v)},U=async()=>{const v=await ie(g);c(v.posts),d(g+1),x(!1)};a.useEffect(()=>{U()},[]),a.useEffect(()=>{const v=document.getElementById("sentinel"),R=new IntersectionObserver(async he=>{if(he[0].isIntersecting&&!n&&!b){x(!0);const se=await ie(g);if(se.posts.length===0){h(!0),x(!1);return}else h(!1);c([...u,...se.posts]),d(g+1),x(!1)}});return R.observe(v),()=>{R.unobserve(v)}},[n,u,g,b]),a.useEffect(()=>{i||J().then(v=>{p(Y({user:v.user,accessToken:X.getState().auth.accessToken}))})},[p,i]);const[z,$]=a.useState(!1),q=()=>$(!z),o=()=>{$(!0)},[N,D]=a.useState(!1),[K,me]=a.useState(!1),P=v=>{D(v)},ee=v=>{me(v)};return S&&(c(u.filter(v=>v._id!==S)),y(null)),a.useEffect(()=>{_&&(c(u.filter(v=>v._id!==_)),I(null))},[u,_]),a.useEffect(()=>{k&&(c([{...k,newPostCreated:!0},...u]),t(null))},[k,u]),a.useEffect(()=>{m&&(c(u.map(v=>v._id===m._id?m:v)),r(null))},[m,u]),e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"lg:flex gap-3 items-start justify-between h-[80vh] lg:h-[85vh]",children:[e.jsx("aside",{className:"hidden lg:block w-3/12 px-3 sticky top-28 overflow-y-auto h-[80vh] no-scrollbar",children:e.jsx(Ve,{newFollowing:N,handleFollowingAdd:P,removeFollowing:K,handleFollowingRemove:ee,socket:j})}),e.jsxs("main",{className:"w-full lg:w-6/12 px-3 md:px-6 overflow-x-hidden overflow-y-auto h-[85vh] no-scrollbar flex flex-col items-center p-2",children:[e.jsxs("div",{className:"flex items-center justify-between w-full md:p-2 mb-8 gap-3 md:gap-5 sticky top-0 z-40",children:[e.jsx(l.Avatar,{variant:"circular",alt:"user dp",className:"border h-12 w-12 md:h-14 md:w-14 border-gray-500 p-0.5 cursor-pointer",src:i&&i.dp?i.dp:L.DEFAULT_IMG,onClick:()=>F(`/profile/${i&&i._id}`)}),e.jsx("div",{className:"w-full",onClick:o,children:e.jsx(ze,{})})]}),e.jsxs("div",{className:" overflow-y-auto h-[85vh] w-full no-scrollbar flex flex-col items-center",children:[e.jsxs("div",{className:"mb-10 max-w-[30rem] w-full",children:[u.map((v,R)=>e.jsx("div",{className:"mb-10 w-full",children:e.jsx(Ae,{postData:v,setDeletedPostId:y,setReportedPostId:I,setPostEdited:r})},R)),n&&e.jsx("div",{className:"w-full px-2",children:e.jsx(Be,{})}),e.jsx(Ge,{open:z,handleOpen:q,setIsLastPage:h,setPostCreated:t})]}),b&&e.jsx("div",{children:" No posts..."}),e.jsx("div",{id:"sentinel",style:{height:"1px"},className:"w-full mb-4",children:!b&&e.jsx("div",{children:e.jsx("img",{src:Te,className:"w-20 h-20 mx-auto mt-2 lg:mt-4"})})})]})]}),e.jsx("aside",{className:"hidden lg:block w-3/12 px-3 pb-5 sticky top-28 overflow-hidden",children:e.jsx(He,{handleFollowingAdd:P,handleFollowingRemove:ee})})]}),e.jsx(We,{handleUsernameInputPopup:s,usernameInputPopupOpen:T,setIsUsernameAvailable:A})]})},Ke=({user:i,socket:j})=>e.jsx(e.Fragment,{children:e.jsx(qe,{user:i,socket:j})}),Ze=({socket:i})=>{const j=H(n=>n.auth),p=Z(),u=E();a.useEffect(()=>{j.isAuthenticated||c()||p("/error")},[j]);const c=async()=>{try{const{user:n}=await J(),{accessToken:x}=X.getState().auth;return u(Y({user:n,accessToken:x})),n}catch(n){if(xe(n)){const x=n;x.response&&x.response.status>=400&&x.response.status<=500&&p("/login")}}};return e.jsx(e.Fragment,{children:e.jsx(Ke,{user:j.user,socket:i})})};export{Ze as default}; diff --git a/client/dist/assets/ImageCropper-05d72e4c.js b/client/dist/assets/ImageCropper-625f0d73.js similarity index 99% rename from client/dist/assets/ImageCropper-05d72e4c.js rename to client/dist/assets/ImageCropper-625f0d73.js index 82bbef9..40ed534 100644 --- a/client/dist/assets/ImageCropper-05d72e4c.js +++ b/client/dist/assets/ImageCropper-625f0d73.js @@ -1,4 +1,4 @@ -import{ax as dt,ay as ft,az as vt,aA as et,aB as mt,aC as gt,aD as wt,r as w,a2 as Ct,a3 as b,a as yt,aE as xt,j as g,b as L,D as bt}from"./index-cbb70753.js";class Rt extends dt{constructor(r,t){super(),this.client=r,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var t;const e=this.options;this.options=this.client.defaultMutationOptions(r),ft(e,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(t=this.currentMutation)==null||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var r;(r=this.currentMutation)==null||r.removeObserver(this)}}onMutationUpdate(r){this.updateResult();const t={listeners:!0};r.type==="success"?t.onSuccess=!0:r.type==="error"&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(r,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof r<"u"?r:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const r=this.currentMutation?this.currentMutation.state:vt(),t={...r,isLoading:r.status==="loading",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(r){et.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(r.onSuccess){var t,e,n,i;(t=(e=this.mutateOptions).onSuccess)==null||t.call(e,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(n=(i=this.mutateOptions).onSettled)==null||n.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(r.onError){var a,s,c,u;(a=(s=this.mutateOptions).onError)==null||a.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(c=(u=this.mutateOptions).onSettled)==null||c.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}r.listeners&&this.listeners.forEach(({listener:h})=>{h(this.currentResult)})})}}const St=mt.useSyncExternalStore;function Et(o,r){return typeof o=="function"?o(...r):!!o}function ee(o,r,t){const e=gt(o,r,t),n=wt({context:e.context}),[i]=w.useState(()=>new Rt(n,e));w.useEffect(()=>{i.setOptions(e)},[i,e]);const a=St(w.useCallback(c=>i.subscribe(et.batchCalls(c)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=w.useCallback((c,u)=>{i.mutate(c,u).catch(Mt)},[i]);if(a.error&&Et(i.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}function Mt(){}/*! ***************************************************************************** +import{ax as dt,ay as ft,az as vt,aA as et,aB as mt,aC as gt,aD as wt,r as w,a2 as Ct,a3 as b,a as yt,aE as xt,j as g,b as L,D as bt}from"./index-1d851ad5.js";class Rt extends dt{constructor(r,t){super(),this.client=r,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var t;const e=this.options;this.options=this.client.defaultMutationOptions(r),ft(e,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(t=this.currentMutation)==null||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var r;(r=this.currentMutation)==null||r.removeObserver(this)}}onMutationUpdate(r){this.updateResult();const t={listeners:!0};r.type==="success"?t.onSuccess=!0:r.type==="error"&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(r,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof r<"u"?r:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const r=this.currentMutation?this.currentMutation.state:vt(),t={...r,isLoading:r.status==="loading",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(r){et.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(r.onSuccess){var t,e,n,i;(t=(e=this.mutateOptions).onSuccess)==null||t.call(e,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(n=(i=this.mutateOptions).onSettled)==null||n.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(r.onError){var a,s,c,u;(a=(s=this.mutateOptions).onError)==null||a.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(c=(u=this.mutateOptions).onSettled)==null||c.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}r.listeners&&this.listeners.forEach(({listener:h})=>{h(this.currentResult)})})}}const St=mt.useSyncExternalStore;function Et(o,r){return typeof o=="function"?o(...r):!!o}function ee(o,r,t){const e=gt(o,r,t),n=wt({context:e.context}),[i]=w.useState(()=>new Rt(n,e));w.useEffect(()=>{i.setOptions(e)},[i,e]);const a=St(w.useCallback(c=>i.subscribe(et.batchCalls(c)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=w.useCallback((c,u)=>{i.mutate(c,u).catch(Mt)},[i]);if(a.error&&Et(i.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}function Mt(){}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any diff --git a/client/dist/assets/PeoplePage-c15938c0.js b/client/dist/assets/PeoplePage-410fb227.js similarity index 97% rename from client/dist/assets/PeoplePage-c15938c0.js rename to client/dist/assets/PeoplePage-410fb227.js index b3d3d43..06c1096 100644 --- a/client/dist/assets/PeoplePage-c15938c0.js +++ b/client/dist/assets/PeoplePage-410fb227.js @@ -1 +1 @@ -import{a as N,m as T,u as _,r as c,n as E,o as O,g as B,j as e,k as D,b as u,C as w,L as M,B as V,q as $,R,t as v,v as G,h as q,Q as m,T as j,i as H,f as L,e as Q,c as z,s as I,d as J,P as K}from"./index-cbb70753.js";import{f as y}from"./index-0cc34895.js";import{T as W}from"./index.esm-66cfb03e.js";const X=({socket:g})=>{const l=N(),d=T(),o=_(s=>s.auth.user),[h,r]=c.useState([]),[i,C]=c.useState([]),[b,S]=c.useState([]),[n,x]=c.useState();c.useEffect(()=>{o&&(E(o._id).then(s=>{C(s.following)}),O(o._id).then(s=>{r(s.followers)}),B().then(s=>{S(s.suggestions)}))},[o,l]),c.useEffect(()=>{o&&x(o.following)},[o]);const f=[{label:"Followers",value:"followers",desc:h.length>0?h:"No followers yet..."},{label:"Following",value:"following",desc:i.length>0?i:"No following yet..."},{label:"Suggested",value:"suggested",desc:b.length>0?b:"No suggestions available..."}],A=async s=>{const a=await y(s);l(v(a.chat)),location.pathname!=="/message"&&d("/message")},k=async s=>{const a=await y(s);l(v(a.chat)),g&&g.emit("call-user",o,a.chat),l(G(!0)),location.pathname!=="/message"&&d("/message")},U=(s,a)=>{q(s).then(()=>{m.dismiss(),m.success(`Unfollowed ${a}`,j)}),x(n==null?void 0:n.filter(t=>t!==s)),l(H(s))},F=(s,a)=>{L(s).then(()=>{m.dismiss(),m.success(`Following ${a}`,j)}),!(n!=null&&n.includes(s))&&x([...n,s]),l(Q(s))};return e.jsxs(e.Fragment,{children:[e.jsx(D,{}),e.jsxs(u.Tabs,{id:"custom-animation",value:"followers",children:[e.jsx(u.TabsHeader,{className:"sticky",children:f.map(({label:s,value:a})=>e.jsx(u.Tab,{value:a,children:s},a))}),e.jsx(u.TabsBody,{animate:{initial:{y:250},mount:{y:0},unmount:{y:250}},className:"overflow-y-auto h-[75vh] md:no-scrollbar",children:f.map(({value:s,desc:a})=>e.jsx(u.TabPanel,{value:s,children:typeof a=="string"?e.jsxs("div",{className:"flex flex-col items-center justify-center mt-4",children:[e.jsx("div",{className:"w-80 mx-auto",children:e.jsx("img",{src:w.NO_DATA_AVAILABLE_SVG,alt:"no data available"})}),e.jsx("h1",{children:a})]}):e.jsx("div",{className:"flex flex-col gap-4 max-w-[24rem] mx-auto mt-4",children:a.map(t=>{var p;return e.jsxs("div",{className:"flex bg-gray-100 rounded-lg p-2 items-center justify-between transition duration-100 ease-in-out shadow-md ",children:[e.jsx(M,{to:`/profile/${t._id}`,children:e.jsxs("div",{className:"mt-3 flex items-center space-x-2",children:[e.jsx("img",{className:"inline-block h-10 w-10 rounded-full",src:t.dp?t.dp:w.DEFAULT_IMG,alt:"user dp"}),e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:"text-[14px] font-medium text-gray-900",children:t==null?void 0:t.name}),e.jsx("span",{className:"text-[11px] font-medium text-gray-500",children:t.username?`@${t.username}`:"@ -"})]})]})}),s!=="suggested"?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-100 rounded-full cursor-pointer border-2 border-blue-gray-500 hover:border-green-500 hover:bg-white hover:border-3 group",onClick:()=>A(t._id),children:e.jsx(V,{className:"text-md text-socioverse-500 group-hover:text-green-500"})}),e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-100 rounded-full cursor-pointer border-2 border-blue-gray-500 hover:border-green-500 hover:bg-white hover:border-3 group",onClick:()=>k(t._id),children:e.jsx($,{className:"text-xl text-socioverse-500 group-hover:text-green-500"})})]}):n!=null&&n.includes(t._id)||o&&((p=t.followers)!=null&&p.includes(o._id))?e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-500 rounded-full cursor-pointer border-2 border-blue-gray-700 hover:border-red-700 hover:bg-white hover:border-3 group",onClick:()=>U(t._id,t.name),children:e.jsx(R,{className:"text-xl text-white group-hover:text-red-500"})}):e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-100 rounded-full cursor-pointer border-2 border-blue-gray-500 hover:bg-white hover:border-3 group",onClick:()=>F(t._id,t.name),children:e.jsx(W,{className:"text-xl text-socioverse-500 group-hover:text-blue-gray-500"})})]},t._id)})})},s))})]})]})},ee=({socket:g})=>{const l=N(),d=T(),o=_(r=>r.auth.user);c.useEffect(()=>{o||h()||d("/error")},[o]);const h=async()=>{try{const{user:r}=await z(),{accessToken:i}=I.getState().auth;return l(J({user:r,accessToken:i})),r}catch(r){if(K(r)){const i=r;i.response&&i.response.status>=400&&i.response.status<=500&&d("/login")}}};return e.jsx("div",{className:"lg:hidden block",children:e.jsx(X,{socket:g})})};export{ee as default}; +import{a as N,m as T,u as _,r as c,n as E,o as O,g as B,j as e,k as D,b as u,C as w,L as M,B as V,q as $,R,t as v,v as G,h as q,Q as m,T as j,i as H,f as L,e as Q,c as z,s as I,d as J,P as K}from"./index-1d851ad5.js";import{f as y}from"./index-22aae0e6.js";import{T as W}from"./index.esm-6c8cf853.js";const X=({socket:g})=>{const l=N(),d=T(),o=_(s=>s.auth.user),[h,r]=c.useState([]),[i,C]=c.useState([]),[b,S]=c.useState([]),[n,x]=c.useState();c.useEffect(()=>{o&&(E(o._id).then(s=>{C(s.following)}),O(o._id).then(s=>{r(s.followers)}),B().then(s=>{S(s.suggestions)}))},[o,l]),c.useEffect(()=>{o&&x(o.following)},[o]);const f=[{label:"Followers",value:"followers",desc:h.length>0?h:"No followers yet..."},{label:"Following",value:"following",desc:i.length>0?i:"No following yet..."},{label:"Suggested",value:"suggested",desc:b.length>0?b:"No suggestions available..."}],A=async s=>{const a=await y(s);l(v(a.chat)),location.pathname!=="/message"&&d("/message")},k=async s=>{const a=await y(s);l(v(a.chat)),g&&g.emit("call-user",o,a.chat),l(G(!0)),location.pathname!=="/message"&&d("/message")},U=(s,a)=>{q(s).then(()=>{m.dismiss(),m.success(`Unfollowed ${a}`,j)}),x(n==null?void 0:n.filter(t=>t!==s)),l(H(s))},F=(s,a)=>{L(s).then(()=>{m.dismiss(),m.success(`Following ${a}`,j)}),!(n!=null&&n.includes(s))&&x([...n,s]),l(Q(s))};return e.jsxs(e.Fragment,{children:[e.jsx(D,{}),e.jsxs(u.Tabs,{id:"custom-animation",value:"followers",children:[e.jsx(u.TabsHeader,{className:"sticky",children:f.map(({label:s,value:a})=>e.jsx(u.Tab,{value:a,children:s},a))}),e.jsx(u.TabsBody,{animate:{initial:{y:250},mount:{y:0},unmount:{y:250}},className:"overflow-y-auto h-[75vh] md:no-scrollbar",children:f.map(({value:s,desc:a})=>e.jsx(u.TabPanel,{value:s,children:typeof a=="string"?e.jsxs("div",{className:"flex flex-col items-center justify-center mt-4",children:[e.jsx("div",{className:"w-80 mx-auto",children:e.jsx("img",{src:w.NO_DATA_AVAILABLE_SVG,alt:"no data available"})}),e.jsx("h1",{children:a})]}):e.jsx("div",{className:"flex flex-col gap-4 max-w-[24rem] mx-auto mt-4",children:a.map(t=>{var p;return e.jsxs("div",{className:"flex bg-gray-100 rounded-lg p-2 items-center justify-between transition duration-100 ease-in-out shadow-md ",children:[e.jsx(M,{to:`/profile/${t._id}`,children:e.jsxs("div",{className:"mt-3 flex items-center space-x-2",children:[e.jsx("img",{className:"inline-block h-10 w-10 rounded-full",src:t.dp?t.dp:w.DEFAULT_IMG,alt:"user dp"}),e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:"text-[14px] font-medium text-gray-900",children:t==null?void 0:t.name}),e.jsx("span",{className:"text-[11px] font-medium text-gray-500",children:t.username?`@${t.username}`:"@ -"})]})]})}),s!=="suggested"?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-100 rounded-full cursor-pointer border-2 border-blue-gray-500 hover:border-green-500 hover:bg-white hover:border-3 group",onClick:()=>A(t._id),children:e.jsx(V,{className:"text-md text-socioverse-500 group-hover:text-green-500"})}),e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-100 rounded-full cursor-pointer border-2 border-blue-gray-500 hover:border-green-500 hover:bg-white hover:border-3 group",onClick:()=>k(t._id),children:e.jsx($,{className:"text-xl text-socioverse-500 group-hover:text-green-500"})})]}):n!=null&&n.includes(t._id)||o&&((p=t.followers)!=null&&p.includes(o._id))?e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-500 rounded-full cursor-pointer border-2 border-blue-gray-700 hover:border-red-700 hover:bg-white hover:border-3 group",onClick:()=>U(t._id,t.name),children:e.jsx(R,{className:"text-xl text-white group-hover:text-red-500"})}):e.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-100 rounded-full cursor-pointer border-2 border-blue-gray-500 hover:bg-white hover:border-3 group",onClick:()=>F(t._id,t.name),children:e.jsx(W,{className:"text-xl text-socioverse-500 group-hover:text-blue-gray-500"})})]},t._id)})})},s))})]})]})},ee=({socket:g})=>{const l=N(),d=T(),o=_(r=>r.auth.user);c.useEffect(()=>{o||h()||d("/error")},[o]);const h=async()=>{try{const{user:r}=await z(),{accessToken:i}=I.getState().auth;return l(J({user:r,accessToken:i})),r}catch(r){if(K(r)){const i=r;i.response&&i.response.status>=400&&i.response.status<=500&&d("/login")}}};return e.jsx("div",{className:"lg:hidden block",children:e.jsx(X,{socket:g})})};export{ee as default}; diff --git a/client/dist/assets/ProfilePage-c0b4e7e2.js b/client/dist/assets/ProfilePage-06b97914.js similarity index 62% rename from client/dist/assets/ProfilePage-c0b4e7e2.js rename to client/dist/assets/ProfilePage-06b97914.js index 5dc77f1..fb7fbdb 100644 --- a/client/dist/assets/ProfilePage-c0b4e7e2.js +++ b/client/dist/assets/ProfilePage-06b97914.js @@ -1,7 +1,7 @@ -import{G as Tt,ag as w,r as i,a3 as Rt,a as xt,u as ge,d as $e,ah as Lt,Q as O,T as K,j as n,k as Ee,ai as Mt,b as x,A as Fe,m as It,n as zt,o as $t,ab as Bt,C as Ye,c as Ze,s as qe,aj as vt,P as Ht,z as Ve,$ as Je,ak as Kt,f as Ut,e as Wt,h as Gt,i as Yt,al as Zt,am as qt,an as Vt,ao as Jt,ap as Qe,aq as Xe,ar as et,as as tt,U as Qt,W as Xt,at as rt,l as er,au as tr,D as nt,av as rr,aw as nr}from"./index-cbb70753.js";import{u as sr,I as yt}from"./ImageCropper-05d72e4c.js";function st(e){return Tt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M16 9C16 11.2091 14.2091 13 12 13C9.79086 13 8 11.2091 8 9C8 6.79086 9.79086 5 12 5C14.2091 5 16 6.79086 16 9ZM14 9C14 10.1046 13.1046 11 12 11C10.8954 11 10 10.1046 10 9C10 7.89543 10.8954 7 12 7C13.1046 7 14 7.89543 14 9Z",fill:"currentColor"}},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM3 12C3 14.0902 3.71255 16.014 4.90798 17.5417C6.55245 15.3889 9.14627 14 12.0645 14C14.9448 14 17.5092 15.3531 19.1565 17.4583C20.313 15.9443 21 14.0524 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12ZM12 21C9.84977 21 7.87565 20.2459 6.32767 18.9878C7.59352 17.1812 9.69106 16 12.0645 16C14.4084 16 16.4833 17.1521 17.7538 18.9209C16.1939 20.2191 14.1881 21 12 21Z",fill:"currentColor"}}]})(e)}function he(e,t,r,s){function a(o){return o instanceof r?o:new r(function(u){u(o)})}return new(r||(r=Promise))(function(o,u){function f(v){try{l(s.next(v))}catch(j){u(j)}}function g(v){try{l(s.throw(v))}catch(j){u(j)}}function l(v){v.done?o(v.value):a(v.value).then(f,g)}l((s=s.apply(e,t||[])).next())})}function xe(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},s,a,o,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(l){return function(v){return g([l,v])}}function g(l){if(s)throw new TypeError("Generator is already executing.");for(;u&&(u=0,l[0]&&(r=0)),r;)try{if(s=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0)&&!(a=s.next()).done;)o.push(a.value)}catch(f){u={error:f}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(u)throw u.error}}return o}function at(e,t,r){if(r||arguments.length===2)for(var s=0,a=t.length,o;s0?s:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function ar(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var s=t.split(".").pop().toLowerCase(),a=or.get(s);a&&Object.defineProperty(e,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return e}var ir=[".DS_Store","Thumbs.db"];function lr(e){return he(this,void 0,void 0,function(){return xe(this,function(t){return Oe(e)&&cr(e.dataTransfer)?[2,pr(e.dataTransfer,e.type)]:ur(e)?[2,fr(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,dr(e)]:[2,[]]})})}function cr(e){return Oe(e)}function ur(e){return Oe(e)&&Oe(e.target)}function Oe(e){return typeof e=="object"&&e!==null}function fr(e){return Be(e.target.files).map(function(t){return Pe(t)})}function dr(e){return he(this,void 0,void 0,function(){var t;return xe(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(s){return s.getFile()}))];case 1:return t=r.sent(),[2,t.map(function(s){return Pe(s)})]}})})}function pr(e,t){return he(this,void 0,void 0,function(){var r,s;return xe(this,function(a){switch(a.label){case 0:return e.items?(r=Be(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map(mr))]):[3,2];case 1:return s=a.sent(),[2,it(bt(s))];case 2:return[2,it(Be(e.files).map(function(o){return Pe(o)}))]}})})}function it(e){return e.filter(function(t){return ir.indexOf(t.name)===-1})}function Be(e){if(e===null)return[];for(var t=[],r=0;re.length)&&(t=e.length);for(var r=0,s=new Array(t);rr)return[!1,dt(r)];if(e.sizer)return[!1,dt(r)]}return[!0,null]}function ue(e){return e!=null}function Nr(e){var t=e.files,r=e.accept,s=e.minSize,a=e.maxSize,o=e.multiple,u=e.maxFiles,f=e.validator;return!o&&t.length>1||o&&u>=1&&t.length>u?!1:t.every(function(g){var l=Dt(g,r),v=je(l,1),j=v[0],P=Ct(g,s,a),k=je(P,1),N=k[0],M=f?f(g):null;return j&&N&&!M})}function Ae(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Ce(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function mt(e){e.preventDefault()}function Sr(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function kr(e){return e.indexOf("Edge/")!==-1}function _r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Sr(e)||kr(e)}function J(){for(var e=arguments.length,t=new Array(e),r=0;r1?a-1:0),u=1;ue.length)&&(t=e.length);for(var r=0,s=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(r[s]=e[s])}return r}function Vr(e,t){if(e==null)return{};var r={},s=Object.keys(e),a,o;for(o=0;o=0)&&(r[a]=e[a]);return r}var Ge=i.forwardRef(function(e,t){var r=e.children,s=Ne(e,zr),a=Nt(s),o=a.open,u=Ne(a,$r);return i.useImperativeHandle(t,function(){return{open:o}},[o]),Rt.createElement(i.Fragment,null,r(C(C({},u),{},{open:o})))});Ge.displayName="Dropzone";var At={disabled:!1,getFilesFromEvent:lr,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Ge.defaultProps=At;Ge.propTypes={children:w.func,accept:w.objectOf(w.arrayOf(w.string)),multiple:w.bool,preventDropOnDocument:w.bool,noClick:w.bool,noKeyboard:w.bool,noDrag:w.bool,noDragEventsBubbling:w.bool,minSize:w.number,maxSize:w.number,maxFiles:w.number,disabled:w.bool,getFilesFromEvent:w.func,onFileDialogCancel:w.func,onFileDialogOpen:w.func,useFsAccessApi:w.bool,autoFocus:w.bool,onDragEnter:w.func,onDragLeave:w.func,onDragOver:w.func,onDrop:w.func,onDropAccepted:w.func,onDropRejected:w.func,onError:w.func,validator:w.func};var We={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Nt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=C(C({},At),e),r=t.accept,s=t.disabled,a=t.getFilesFromEvent,o=t.maxSize,u=t.minSize,f=t.multiple,g=t.maxFiles,l=t.onDragEnter,v=t.onDragLeave,j=t.onDragOver,P=t.onDrop,k=t.onDropAccepted,N=t.onDropRejected,M=t.onFileDialogCancel,$=t.onFileDialogOpen,Z=t.useFsAccessApi,U=t.autoFocus,te=t.preventDropOnDocument,Q=t.noClick,S=t.noKeyboard,W=t.noDrag,E=t.noDragEventsBubbling,I=t.onError,G=t.validator,L=i.useMemo(function(){return Lr(r)},[r]),re=i.useMemo(function(){return Rr(r)},[r]),q=i.useMemo(function(){return typeof $=="function"?$:ht},[$]),X=i.useMemo(function(){return typeof M=="function"?M:ht},[M]),F=i.useRef(null),_=i.useRef(null),ee=i.useReducer(Jr,We),fe=ze(ee,2),se=fe[0],T=fe[1],ve=se.isFocused,de=se.isFileDialogActive,B=i.useRef(typeof window<"u"&&window.isSecureContext&&Z&&Tr()),oe=function(){!B.current&&de&&setTimeout(function(){if(_.current){var p=_.current.files;p.length||(T({type:"closeDialog"}),X())}},300)};i.useEffect(function(){return window.addEventListener("focus",oe,!1),function(){window.removeEventListener("focus",oe,!1)}},[_,de,X,B]);var Y=i.useRef([]),ae=function(p){F.current&&F.current.contains(p.target)||(p.preventDefault(),Y.current=[])};i.useEffect(function(){return te&&(document.addEventListener("dragover",mt,!1),document.addEventListener("drop",ae,!1)),function(){te&&(document.removeEventListener("dragover",mt),document.removeEventListener("drop",ae))}},[F,te]),i.useEffect(function(){return!s&&U&&F.current&&F.current.focus(),function(){}},[F,U,s]);var z=i.useCallback(function(c){I?I(c):console.error(c)},[I]),V=i.useCallback(function(c){c.preventDefault(),c.persist(),ce(c),Y.current=[].concat(Kr(Y.current),[c.target]),Ce(c)&&Promise.resolve(a(c)).then(function(p){if(!(Ae(c)&&!E)){var A=p.length,R=A>0&&Nr({files:p,accept:L,minSize:u,maxSize:o,multiple:f,maxFiles:g,validator:G}),H=A>0&&!R;T({isDragAccept:R,isDragReject:H,isDragActive:!0,type:"setDraggedFiles"}),l&&l(c)}}).catch(function(p){return z(p)})},[a,l,z,E,L,u,o,f,g,G]),m=i.useCallback(function(c){c.preventDefault(),c.persist(),ce(c);var p=Ce(c);if(p&&c.dataTransfer)try{c.dataTransfer.dropEffect="copy"}catch{}return p&&j&&j(c),!1},[j,E]),h=i.useCallback(function(c){c.preventDefault(),c.persist(),ce(c);var p=Y.current.filter(function(R){return F.current&&F.current.contains(R)}),A=p.indexOf(c.target);A!==-1&&p.splice(A,1),Y.current=p,!(p.length>0)&&(T({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Ce(c)&&v&&v(c))},[F,v,E]),b=i.useCallback(function(c,p){var A=[],R=[];c.forEach(function(H){var we=Dt(H,L),me=ze(we,2),ke=me[0],_e=me[1],Te=Ct(H,u,o),De=ze(Te,2),Re=De[0],Le=De[1],Me=G?G(H):null;if(ke&&Re&&!Me)A.push(H);else{var Ie=[_e,Le];Me&&(Ie=Ie.concat(Me)),R.push({file:H,errors:Ie.filter(function(_t){return _t})})}}),(!f&&A.length>1||f&&g>=1&&A.length>g)&&(A.forEach(function(H){R.push({file:H,errors:[Ar]})}),A.splice(0)),T({acceptedFiles:A,fileRejections:R,type:"setFiles"}),P&&P(A,R,p),R.length>0&&N&&N(R,p),A.length>0&&k&&k(A,p)},[T,f,L,u,o,g,P,k,N,G]),ie=i.useCallback(function(c){c.preventDefault(),c.persist(),ce(c),Y.current=[],Ce(c)&&Promise.resolve(a(c)).then(function(p){Ae(c)&&!E||b(p,c)}).catch(function(p){return z(p)}),T({type:"reset"})},[a,b,z,E]),d=i.useCallback(function(){if(B.current){T({type:"openDialog"}),q();var c={multiple:f,types:re};window.showOpenFilePicker(c).then(function(p){return a(p)}).then(function(p){b(p,null),T({type:"closeDialog"})}).catch(function(p){Mr(p)?(X(p),T({type:"closeDialog"})):Ir(p)?(B.current=!1,_.current?(_.current.value=null,_.current.click()):z(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):z(p)});return}_.current&&(T({type:"openDialog"}),q(),_.current.value=null,_.current.click())},[T,q,X,Z,b,z,re,f]),y=i.useCallback(function(c){!F.current||!F.current.isEqualNode(c.target)||(c.key===" "||c.key==="Enter"||c.keyCode===32||c.keyCode===13)&&(c.preventDefault(),d())},[F,d]),D=i.useCallback(function(){T({type:"focus"})},[]),le=i.useCallback(function(){T({type:"blur"})},[]),ye=i.useCallback(function(){Q||(_r()?setTimeout(d,0):d())},[Q,d]),ne=function(p){return s?null:p},be=function(p){return S?null:ne(p)},pe=function(p){return W?null:ne(p)},ce=function(p){E&&p.stopPropagation()},Se=i.useMemo(function(){return function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=c.refKey,A=p===void 0?"ref":p,R=c.role,H=c.onKeyDown,we=c.onFocus,me=c.onBlur,ke=c.onClick,_e=c.onDragEnter,Te=c.onDragOver,De=c.onDragLeave,Re=c.onDrop,Le=Ne(c,Br);return C(C(Ue({onKeyDown:be(J(H,y)),onFocus:be(J(we,D)),onBlur:be(J(me,le)),onClick:ne(J(ke,ye)),onDragEnter:pe(J(_e,V)),onDragOver:pe(J(Te,m)),onDragLeave:pe(J(De,h)),onDrop:pe(J(Re,ie)),role:typeof R=="string"&&R!==""?R:"presentation"},A,F),!s&&!S?{tabIndex:0}:{}),Le)}},[F,y,D,le,ye,V,m,h,ie,S,W,s]),St=i.useCallback(function(c){c.stopPropagation()},[]),kt=i.useMemo(function(){return function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=c.refKey,A=p===void 0?"ref":p,R=c.onChange,H=c.onClick,we=Ne(c,Hr),me=Ue({accept:L,multiple:f,type:"file",style:{display:"none"},onChange:ne(J(R,ie)),onClick:ne(J(H,St)),tabIndex:-1},A,_);return C(C({},me),we)}},[_,r,f,ie,s]);return C(C({},se),{},{isFocused:ve&&!s,getRootProps:Se,getInputProps:kt,rootRef:F,inputRef:_,open:ne(d)})}function Jr(e,t){switch(t.type){case"focus":return C(C({},e),{},{isFocused:!0});case"blur":return C(C({},e),{},{isFocused:!1});case"openDialog":return C(C({},We),{},{isFileDialogActive:!0});case"closeDialog":return C(C({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return C(C({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return C(C({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return C({},We);default:return e}}function ht(){}const Qr=()=>{const e=xt(),t=ge(s=>s.auth.user),r=ge(s=>s.auth.accessToken);return sr(async s=>await Lt(s),{onSuccess:s=>{e($e({user:{...t,coverPhoto:s.coverPhoto},accessToken:r}))}})},Xr=()=>{const[e,t]=i.useState(null),[r,s]=i.useState(!1),a=Qr();i.useEffect(()=>{O.dismiss(),a.isLoading?O.warn("Uploading...",K):a.isSuccess?O.success("Cover photo updated successfully",K):a.isError&&O.error("Updation failed!",K)},[a.isLoading,a.isSuccess,a.isError]);const o=async P=>{if(P)try{const k=new FormData,N=new FileReader;N.onload=M=>{var $;if(($=M.target)!=null&&$.result){const Z=M.target.result,U=new Blob([Z],{type:P.type});k.append("file",U,"image.jpg"),a.mutate(k)}},N.readAsArrayBuffer(P)}catch(k){console.error("Upload error:",k)}},u=P=>{o(P),f()},f=()=>s(!r),g=i.useCallback(P=>{(P==null?void 0:P.length)===0?O.error("Invalid action!",K):(t(P[0]),s(!0))},[e]),{getRootProps:l,getInputProps:v,isDragActive:j}=Nt({onDrop:g,maxFiles:1,accept:{"image/*":[]}});return n.jsxs(n.Fragment,{children:[n.jsx(Ee,{}),n.jsxs("div",{...l(),children:[n.jsx("input",{...v()}),!j&&n.jsxs("div",{className:" h-44 md:h-60 lg:h-80 px-1 cursor-pointer rounded-lg w-full bg-white lg:border-4 border-2 border-gray-500 border-dashed flex items-center justify-center gap-10",children:[n.jsx(Mt,{className:"lg:text-9xl text-6xl text-gray-500"}),n.jsxs("div",{className:"flex flex-col justify-center items-start",children:[n.jsx("h1",{className:"lg:text-[1.125rem] text-base",children:"Drag the image here or click to select the file"}),n.jsx("p",{className:"text-gray-500 font-light lg:text-base text-sm",children:"Multiple files are not allowed"})]})]})]}),n.jsxs(x.Dialog,{open:r,size:"lg",handler:f,animate:{mount:{scale:1,y:0},unmount:{scale:.9,y:-100}},children:[n.jsx(x.DialogHeader,{children:n.jsxs("div",{className:"flex justify-between items-center w-full",children:[n.jsx("div",{className:"text-2xl",children:"Cover Photo"}),n.jsx("div",{children:n.jsx(Fe,{className:"text-3xl cursor-pointer",onClick:f})})]})}),n.jsx(x.DialogBody,{className:"lg:m-4 m-2",children:e?n.jsx("div",{className:"w-auto lg:h-[28rem] h-96 ",children:n.jsx(yt,{image:URL.createObjectURL(e),getImage:u,aspectRatio:4/1})}):" "})]})]})},en=({id:e,ifOtherUser:t})=>{var m,h,b,ie;const r=ge(d=>{var y;return(y=d==null?void 0:d.auth)==null?void 0:y.user}),[s,a]=i.useState(null),[o,u]=i.useState(null),[f,g]=i.useState(!1),[l,v]=i.useState(null),[j,P]=i.useState(!1),[k,N]=i.useState(!1),[M,$]=i.useState(!1),[Z,U]=i.useState([]),[te,Q]=i.useState([]),S=xt(),W=It();i.useEffect(()=>{const d=async()=>{if(r)e===(r==null?void 0:r._id)&&(a((r==null?void 0:r.coverPhoto)||null),u((r==null?void 0:r.dp)||null));else{const D=await y();e===(D==null?void 0:D._id)&&(D!=null&&D.coverPhoto&&a(D.coverPhoto),D!=null&&D.dp&&u(D.dp))}},y=async()=>{const{user:D}=await Ze(),{accessToken:le}=qe.getState().auth;return S($e({user:D,accessToken:le})),D};d()},[S,e,r]);const E=async d=>{try{const{otherUser:y}=await vt(d);v(y),y!=null&&y.coverPhoto&&a(y.coverPhoto),y!=null&&y.dp&&u(y.dp)}catch(y){if(Ht(y)){const D=y;D.response&&D.response.status>=400&&D.response.status<=500&&W("/error")}}};i.useEffect(()=>{var d;e!==(r==null?void 0:r._id)?(g(!0),t(!0),E(e),(d=r==null?void 0:r.following)!=null&&d.includes(e)?P(!0):P(!1)):(g(!1),t(!1))},[e,t,r]),i.useEffect(()=>{e&&zt(e).then(d=>{U(d.following)})},[e,k]),i.useEffect(()=>{e&&$t(e).then(d=>{Q(d.followers)})},[e,M]);const[I,G]=i.useState(!1),L=()=>G(!I),[re,q]=i.useState(null),X=async d=>{if(d)try{const y=new FileReader;y.onload=async D=>{var le;if((le=D.target)!=null&&le.result){const ye=new FormData,ne=D.target.result,be=new Blob([ne],{type:d.type});ye.append("file",be,"image.jpg");const pe=qt(ye);await O.promise(pe,{pending:"Image is uploading.....",success:"Successfully updated Profile Photo",error:"Failed to update Profile Photo"},K).then(async ce=>{if(ce){u(ce.dp);const{user:Se}=await Ze();S($e({user:Se,accessToken:qe.getState().auth.accessToken}))}})}},y.readAsArrayBuffer(d)}catch(y){console.error("Upload error:",y)}},F=d=>{X(d),L()},_=d=>{d.target.files&&d.target.files.length>0&&(q(d.target.files[0]),G(!0))},ee=()=>{O.dismiss(),O(n.jsx(Je,{onDelete:()=>fe(),message:"Are you sure you want to delete this DP?"}),K)},fe=async()=>{(await Zt()).status==="success"?(O.dismiss(),O.success("DP deleted successfully",K)):(O.dismiss(),O.error("Error deleting the DP",K))},se=()=>s?n.jsxs(n.Fragment,{children:[n.jsx("img",{src:s,className:"h-full rounded-lg w-full object-fit relative"}),!f&&n.jsx("div",{className:"absolute bottom-2 lg:bottom-4 right-4 lg:right-20",children:n.jsx("div",{className:"flex gap-3",children:n.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-500 rounded-full cursor-pointer border-2 border-blue-gray-700 hover:border-red-700 hover:bg-white hover:border-3 group opacity-70 hover:opacity-100",children:n.jsx(Ve,{className:"text-xl text-white group-hover:text-red-500",onClick:ve})})})})]}):f?n.jsx("div",{className:"h-full w-full bg-gray-300 rounded-lg"}):n.jsx(Xr,{}),T=()=>o?n.jsxs("div",{className:"absolute -bottom-24 lg:left-14 p-4 hover:scale-105 group",children:[n.jsx("img",{className:"h-32 w-32 md:h-36 md:w-36 lg:h-40 lg:w-40 rounded-full border-4 border-white",src:o}),!f&&n.jsx("div",{className:"absolute bottom-7 left-16 md:left-[4.5rem] lg:left-[5rem]",children:n.jsx("div",{className:"flex gap-3",children:n.jsx("div",{className:`flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-500 rounded-full cursor-pointer border-2 - border-blue-gray-700 hover:border-red-700 hover:bg-white group-hover:border-3 opacity-0 group-hover:opacity-100`,children:n.jsx(Ve,{className:"text-xl text-white hover:text-red-500",onClick:ee})})})})]}):f?n.jsx("div",{className:"absolute -bottom-24 lg:left-14 p-4 ",children:n.jsx("div",{className:"h-32 w-32 md:h-36 md:w-36 lg:h-40 lg:w-40 rounded-full border-2 lg:border-4 border-gray-500 border-dashed bg-white m-2 flex items-center justify-center",children:n.jsx(st,{className:"text-5xl text-gray-500 inline-flex"})})}):n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"absolute -bottom-24 lg:left-14 p-4 ",children:[n.jsx("input",{type:"file",accept:"image/*",id:"image-input",className:"hidden",onChange:_}),n.jsx("label",{htmlFor:"image-input",className:"h-32 w-32 md:h-36 md:w-36 lg:h-40 lg:w-40 rounded-full border-4 border-gray-500 border-dashed bg-white m-2 flex items-center justify-center cursor-pointer",children:n.jsx(st,{className:"text-5xl text-gray-500 inline-flex"})})]}),n.jsxs(x.Dialog,{open:I,size:"lg",handler:L,animate:{mount:{scale:1,y:0},unmount:{scale:.9,y:-100}},children:[n.jsx(x.DialogHeader,{children:n.jsxs("div",{className:"flex justify-between items-center w-full",children:[n.jsx("div",{className:"text-2xl",children:"Profile Photo"}),n.jsx("div",{children:n.jsx(Fe,{className:"text-3xl cursor-pointer",onClick:L})})]})}),n.jsx(x.DialogBody,{className:"lg:m-4 m-2",children:re?n.jsx("div",{className:"w-auto lg:h-[28rem] h-96 ",children:n.jsx(yt,{image:URL.createObjectURL(re),getImage:F,aspectRatio:4/4})}):" "})]})]}),ve=()=>{O.dismiss(),O(n.jsx(Je,{onDelete:de,message:"Are you sure you want to delete the cover photo?"}),K)},de=async()=>{(await Kt()).status==="success"?(O.dismiss(),O.success("Cover photo deleted successfully",K),a(null)):(O.dismiss(),O.error("Error deleting cover photo",K))},B=()=>{W(`/profile/${r==null?void 0:r._id}/settings`)},oe=()=>{W(`/profile/${r==null?void 0:r._id}/edit-profile`)},Y=async(d,y)=>{Ut(d).then(()=>{P(!1),O.dismiss(),O.success(`Following ${y}`,{...K,position:"bottom-left"}),S(Wt(d))})},ae=async(d,y)=>{Gt(d).then(()=>{P(!1),O.dismiss(),O.success(`Unfollowed ${y}`,{...K,position:"bottom-left"}),S(Yt(d))})},z=()=>N(!k),V=()=>$(!M);return n.jsxs(n.Fragment,{children:[n.jsx(Ee,{}),n.jsxs("div",{className:"relative w-full h-44 md:h-60 lg:h-80 px-1 lg:px-10",children:[se(),T(),n.jsxs("div",{className:"flex flex-col justify-between items-start absolute left-40 md:left-44 lg:left-64 -bottom-16",children:[n.jsxs("div",{className:"flex md:flex-row flex-col md:items-center md:gap-2",children:[n.jsx("h2",{className:"mt-2 lg:text-xl text-base font-bold text-black inline",children:f?l==null?void 0:l.name:r==null?void 0:r.name}),n.jsxs("p",{className:"text-sm font-light text-gray-600 md:mt-2",children:["@",f?l==null?void 0:l.username:r==null?void 0:r.username]})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("span",{className:"lg:text-sm text-xs font-bold text-socioverse-500 cursor-pointer",onClick:z,children:[f?(m=l==null?void 0:l.following)==null?void 0:m.length:(h=r==null?void 0:r.following)==null?void 0:h.length," ","following"]}),n.jsxs("span",{className:"lg:text-sm text-xs font-bold text-socioverse-500 cursor-pointer",onClick:V,children:[f?(b=l==null?void 0:l.followers)==null?void 0:b.length:(ie=r==null?void 0:r.followers)==null?void 0:ie.length," ","followers"]})]})]}),n.jsx("div",{className:"md:flex items-center justify-between gap-5 absolute hidden md:-bottom-14 md:right-20",children:f?n.jsx(n.Fragment,{children:j?n.jsx(x.Button,{variant:"outlined",className:"rounded-full text-black border-black",onClick:()=>ae(e,l==null?void 0:l.name),children:"Following"}):n.jsx(x.Button,{className:"rounded-full bg-socioverse-500",onClick:()=>Y(e,l==null?void 0:l.name),children:"Follow"})}):n.jsxs(n.Fragment,{children:[n.jsx(x.Button,{variant:"outlined",className:"rounded-full text-black border-black",onClick:B,children:"Settings"}),n.jsx(x.Button,{className:"rounded-full bg-socioverse-500",onClick:oe,children:"Edit Profile"})]})}),n.jsx("div",{className:"flex md:hidden absolute right-0 -bottom-14",children:n.jsxs(x.Menu,{placement:"bottom-start",children:[n.jsx(x.MenuHandler,{children:n.jsx(x.Button,{color:"blue-gray",size:"sm",variant:"text",className:"focus:outline-none",children:n.jsx(Bt,{className:"text-lg transition duration-150 ease-in-out hover:scale-105"})})}),n.jsx(x.MenuList,{className:"z-50",children:f?j?n.jsx(x.MenuItem,{onClick:()=>ae(e,l==null?void 0:l.name),className:"hover:bg-blue-gray-50",children:"Unfollow"}):n.jsx(x.MenuItem,{onClick:()=>Y(e,l==null?void 0:l.name),className:"hover:bg-blue-gray-50",children:"Follow"}):n.jsxs(n.Fragment,{children:[n.jsx(x.MenuItem,{onClick:B,className:"hover:bg-blue-gray-50",children:"Settings"}),n.jsx(x.MenuItem,{onClick:oe,className:"hover:bg-blue-gray-50",children:"Edit Profile"})]})})]})})]}),n.jsxs(x.Dialog,{open:k,size:"xs",handler:z,animate:{mount:{scale:1,y:0},unmount:{scale:.9,y:-100}},children:[n.jsx(x.DialogHeader,{children:n.jsxs("div",{className:"flex justify-between items-center w-full",children:[n.jsx("h1",{className:"text-xl font-semibold",children:"Following List"}),n.jsx("div",{children:n.jsx(Fe,{className:"text-3xl cursor-pointer",onClick:z})})]})}),n.jsx(Ee,{}),n.jsx(x.DialogBody,{className:"flex flex-col gap-4 lg:mx-4 lg:my-0 m-2 max-h-[20.5rem] overflow-y-scroll",children:n.jsx("div",{className:"flex flex-col gap-2 ",children:Z.map(d=>n.jsx("div",{className:"flex p-2 items-center justify-between transition duration-100 ease-in-out hover:shadow-md hover:scale-105 hover:rounded-lg",children:n.jsxs("div",{className:"mt-3 flex items-center space-x-2",onClick:()=>{z(),W(`/profile/${d._id}`)},children:[n.jsx("img",{className:"inline-block h-12 w-12 rounded-full",src:d.dp?d.dp:Ye.DEFAULT_IMG,alt:"user dp"}),n.jsxs("span",{className:"flex flex-col",children:[n.jsx("span",{className:"text-[14px] font-medium text-gray-900",children:d==null?void 0:d.name}),n.jsx("span",{className:"text-[11px] font-medium text-gray-500",children:d.username?`@${d.username}`:"@ -"})]})]})},d._id))})}),n.jsx(x.DialogFooter,{children:void 0})]}),n.jsxs(x.Dialog,{open:M,size:"xs",handler:V,animate:{mount:{scale:1,y:0},unmount:{scale:.9,y:-100}},children:[n.jsx(x.DialogHeader,{children:n.jsxs("div",{className:"flex justify-between items-center w-full",children:[n.jsx("h1",{className:"text-xl font-semibold",children:"Followers List"}),n.jsx("div",{children:n.jsx(Fe,{className:"text-3xl cursor-pointer",onClick:V})})]})}),n.jsx(Ee,{}),n.jsx(x.DialogBody,{className:"flex flex-col gap-4 lg:mx-4 lg:my-0 m-2 max-h-[20.5rem] overflow-y-scroll",children:n.jsx("div",{className:"flex flex-col gap-2 ",children:te.map(d=>n.jsx("div",{className:"flex p-2 items-center justify-between transition duration-100 ease-in-out hover:shadow-md hover:scale-105 hover:rounded-lg",children:n.jsxs("div",{className:"mt-3 flex items-center space-x-2",onClick:()=>{V(),W(`/profile/${d._id}`)},children:[n.jsx("img",{className:"inline-block h-12 w-12 rounded-full",src:d.dp?d.dp:Ye.DEFAULT_IMG,alt:"user dp"}),n.jsxs("span",{className:"flex flex-col",children:[n.jsx("span",{className:"text-[14px] font-medium text-gray-900",children:d==null?void 0:d.name}),n.jsx("span",{className:"text-[11px] font-medium text-gray-500",children:d.username?`@${d.username}`:"@ -"})]})]})},d._id))})}),n.jsx(x.DialogFooter,{children:void 0})]})]})},tn=({id:e,otherUser:t})=>{const r=ge(o=>{var u;return(u=o==null?void 0:o.auth)==null?void 0:u.user}),[s,a]=i.useState(null);return i.useEffect(()=>{t&&e&&vt(e).then(o=>{a(o.otherUser)})},[e,t]),n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"flex flex-col w-full h-fit justify-start shadow-lg rounded-lg px-5 py-5 border overflow-auto whitespace-normal",children:[n.jsx("h2",{className:" lg:text-xl text-base font-bold text-black inline",children:"Bio"}),n.jsx("p",{className:"text-sm font-light text-gray-600 mt-2",children:t&&s?s==null?void 0:s.bio:r==null?void 0:r.bio})]}),n.jsxs("div",{className:`flex flex-col w-full h-fit justify-start shadow-lg rounded-lg px-5 py-5 - border mt-8 overflow-auto whitespace-normal`,children:[n.jsx("h2",{className:" lg:text-xl text-base font-bold text-black inline mb-3",children:"Contact"}),n.jsxs("div",{className:"flex flex-col items-start justify-start gap-4",children:[n.jsxs("div",{className:"flex items-center gap-4",children:[n.jsx("div",{className:"w-8 h-8 rounded-full bg-blue-gray-100/50 flex items-center justify-center",children:n.jsx(Vt,{className:"text-xl text-socioverse-500"})}),n.jsx("p",{className:"text-sm font-light text-gray-600",children:t&&s?s==null?void 0:s.email:r==null?void 0:r.email})]}),n.jsxs("div",{className:"flex items-center gap-4",children:[n.jsx("div",{className:"w-8 h-8 rounded-full bg-blue-gray-100/50 flex items-center justify-center",children:n.jsx(Jt,{className:"text-xl text-socioverse-500"})}),n.jsx("p",{className:"text-sm font-light text-gray-600",children:t&&s?s==null?void 0:s.phoneNumber:r==null?void 0:r.phoneNumber})]})]})]})]})};function rn({userId:e}){const t=ge(m=>{var h,b;return(b=(h=m==null?void 0:m.auth)==null?void 0:h.user)==null?void 0:b._id}),[r,s]=i.useState([]),[a,o]=i.useState([]),[u,f]=i.useState([]),[g,l]=i.useState([]),[v,j]=i.useState(null),[P,k]=i.useState(null),[N,M]=i.useState(null),[$,Z]=i.useState(null),[U,te]=i.useState(null),[Q,S]=i.useState(!1),[W,E]=i.useState(!1),[I,G]=i.useState(1),[L,re]=i.useState(1),[q,X]=i.useState(1),[F,_]=i.useState(1),[ee,fe]=i.useState("myPosts"),[se,T]=i.useState(!1),[ve,de]=i.useState(!1),B=i.useRef(null);i.useEffect(()=>{S(!1)},[e]),i.useEffect(()=>{I===1&&e===t&&(E(!0),oe(),E(!1))},[I,e,t]),i.useEffect(()=>{L===1&&e&&e!==t&&(E(!0),Y(),E(!1))},[L]),i.useEffect(()=>{v&&(s(r.filter(m=>m._id!==v)),f(u.filter(m=>m._id!==v)),l(g.filter(m=>m._id!==v)),j(null)),P&&k(null),N&&(s(r.map(m=>m._id===N._id?N:m)),f(u.map(m=>m._id===N._id?N:m)),l(g.map(m=>m._id===N._id?N:m)),M(null))},[v,P,N]),i.useEffect(()=>{$&&((async()=>{if($.action){const h=await rt($.postId);f([h.post,...u])}else f(u.filter(h=>h._id!==$.postId));Z(null)})(),Z(null)),U&&((async()=>{if(U.action){const h=await rt(U.postId);l([h.post,...g])}else l(g.filter(h=>h._id!==U.postId))})(),te(null))},[$,U]),i.useEffect(()=>{S(!1)},[ee]);const oe=async()=>{const m=await Qe(I);s(m.posts),G(I+1),m.posts.length<3&&S(!0)},Y=async()=>{if(e&&e!==t){const m=await Xe(e,I);o(m.posts),re(L+1),m.posts.length<3&&S(!0)}},ae=async m=>{if(E(!0),m==="saved"&&!ve){const h=await et(F);l(h.posts),_(F+1),de(!0)}else if(m==="liked"&&!se){const h=await tt(q);f(h.posts),X(q+1),T(!0)}E(!1)},z=[{label:"My Posts",value:"myPosts",desc:r.length>0?r:"No posts yet posted by the user"},{label:"Liked",value:"liked",desc:u.length>0?u:"No posts yet liked by the user"},{label:"Saved",value:"saved",desc:g.length>0?g:"No posts yet saved by the user"}],V=[{label:"My Posts",value:"myPosts",desc:a.length>0?a:"No posts yet posted by the user"}];return i.useEffect(()=>{const m=new IntersectionObserver(async h=>{if(h[0].isIntersecting&&!W&&!Q){if(E(!0),e===t){if(ee==="myPosts"){const b=await Qe(I);if(b.posts.length===0){E(!1),S(!0);return}s([...r,...b.posts]),G(I+1)}else if(ee==="saved"){const b=await et(F);if(b.posts.length===0){E(!1),S(!0);return}l([...g,...b.posts]),_(F+1)}else if(ee==="liked"){const b=await tt(q);if(b.posts.length===0){E(!1),S(!0);return}f([...u,...b.posts]),X(q+1)}}else{const b=e&&await Xe(e,L);if(b&&b.posts.length===0){E(!1),S(!0);return}b&&o([...a,...b.posts]),re(L+1)}E(!1)}},{threshold:1});return B.current&&m.observe(B.current),()=>{B.current&&m.unobserve(B.current)}},[W,I,Q,ee,e,L]),n.jsxs(x.Tabs,{id:"custom-animation",value:"myPosts",children:[n.jsx(x.TabsHeader,{className:"sticky overflow-y-hidden",children:(t===e?z:V).map(({label:m,value:h})=>n.jsx(x.Tab,{value:h,onClick:()=>{ae(h),fe(h)},children:n.jsx("h4",{className:"lg:text-base text-sm",children:m})},h))}),n.jsx(x.TabsBody,{animate:{initial:{y:250},mount:{y:0},unmount:{y:250}},className:"overflow-y-auto h-[80vh] no-scrollbar",children:(t===e?z:V).map(({value:m,desc:h})=>n.jsx(x.TabPanel,{value:m,className:"mx-auto",children:typeof h=="string"?n.jsx("h1",{className:"",children:h}):n.jsxs("div",{className:"flex flex-col gap-5 lg:w-[30rem] md:w-96 w-80 mx-auto",children:[h.map(b=>n.jsx(n.Fragment,{children:n.jsx(Qt,{postData:b,setDeletedPostId:j,setReportedPostId:k,setPostEdited:M,setSavedPostId:te,setLikedPostId:Z},b._id+m)})),Q&&n.jsx("div",{className:"text-center mt-5",children:" No posts..."}),n.jsx("div",{id:"sentinel",style:{height:"1px"},className:"mt-10 mb-20",ref:B,children:!Q&&n.jsx("img",{src:Xt,className:"w-20 h-20 mx-auto"})})]})},m))})]})}const nn=()=>{const e=er(),t=ge(u=>{var f;return(f=u==null?void 0:u.auth)==null?void 0:f.user}),{userId:r}=tr(),[s,a]=i.useState(!1),o=u=>{a(u)};return n.jsx(n.Fragment,{children:n.jsxs("div",{className:"flex flex-col justify-evenly items-start lg:mx-5 ",children:[n.jsx("div",{className:" no-scrollbar overflow-y-hidden w-full lg:h-[26rem] md:h-80 h-64",children:n.jsx(en,{id:r||null,ifOtherUser:o})}),n.jsxs("div",{className:"flex flex-col md:flex-row items-start w-full gap-5 md:h-[85vh] lg:h-[90vh]",children:[n.jsx("div",{className:nt("flex flex-col lg:px-10 px-2 w-full md:w-4/12 mt-8 sticky overflow-y-hidden md:h-[85vh]",{"hidden md:block":e.pathname===`/profile/${t==null?void 0:t._id}/settings`||e.pathname===`/profile/${t==null?void 0:t._id}/edit-profile`}),children:n.jsx(tn,{id:r||null,otherUser:s})}),n.jsx("div",{className:nt("flex flex-col lg:pr-10 w-full md:w-8/12 mt-8 sticky overflow-y-auto",{"h-[55vh] md:h-[60vh]":e.pathname===`/profile/${t==null?void 0:t._id}/settings`},{"h-[95vh] md:h-[90vh]":e.pathname===`/profile/${t==null?void 0:t._id}/edit-profile`},{"h-[80vh]":e.pathname===`/profile/${t==null?void 0:t._id}`}),children:e.pathname===`/profile/${t==null?void 0:t._id}/settings`&&t?n.jsx(rr,{}):e.pathname===`/profile/${t==null?void 0:t._id}/edit-profile`&&t?n.jsx("div",{className:"mb-10 overflow-y-hidden",children:n.jsx(nr,{})}):n.jsx("div",{className:"overflow-y-hidden no-scrollbar",children:n.jsx(rn,{userId:r})})})]})]})})},an=()=>n.jsx(n.Fragment,{children:n.jsx(nn,{})});export{an as default}; +import{G as Tt,ag as w,r as i,a3 as Rt,a as xt,u as ge,d as $e,ah as Lt,Q as O,T as K,j as n,k as Ee,ai as Mt,b as x,A as Fe,m as It,n as zt,o as $t,ab as Bt,C as Ye,c as Ze,s as qe,aj as vt,P as Ht,z as Ve,$ as Je,ak as Kt,f as Ut,e as Wt,h as Gt,i as Yt,al as Zt,am as qt,an as Vt,ao as Jt,ap as Qe,aq as Xe,ar as et,as as tt,U as Qt,V as Xt,W as er,at as rt,l as tr,au as rr,D as nt,av as nr,aw as sr}from"./index-1d851ad5.js";import{u as or,I as yt}from"./ImageCropper-625f0d73.js";function st(e){return Tt({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M16 9C16 11.2091 14.2091 13 12 13C9.79086 13 8 11.2091 8 9C8 6.79086 9.79086 5 12 5C14.2091 5 16 6.79086 16 9ZM14 9C14 10.1046 13.1046 11 12 11C10.8954 11 10 10.1046 10 9C10 7.89543 10.8954 7 12 7C13.1046 7 14 7.89543 14 9Z",fill:"currentColor"}},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM3 12C3 14.0902 3.71255 16.014 4.90798 17.5417C6.55245 15.3889 9.14627 14 12.0645 14C14.9448 14 17.5092 15.3531 19.1565 17.4583C20.313 15.9443 21 14.0524 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12ZM12 21C9.84977 21 7.87565 20.2459 6.32767 18.9878C7.59352 17.1812 9.69106 16 12.0645 16C14.4084 16 16.4833 17.1521 17.7538 18.9209C16.1939 20.2191 14.1881 21 12 21Z",fill:"currentColor"}}]})(e)}function he(e,t,r,s){function a(o){return o instanceof r?o:new r(function(u){u(o)})}return new(r||(r=Promise))(function(o,u){function f(v){try{l(s.next(v))}catch(j){u(j)}}function g(v){try{l(s.throw(v))}catch(j){u(j)}}function l(v){v.done?o(v.value):a(v.value).then(f,g)}l((s=s.apply(e,t||[])).next())})}function xe(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},s,a,o,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(l){return function(v){return g([l,v])}}function g(l){if(s)throw new TypeError("Generator is already executing.");for(;u&&(u=0,l[0]&&(r=0)),r;)try{if(s=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]0)&&!(a=s.next()).done;)o.push(a.value)}catch(f){u={error:f}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(u)throw u.error}}return o}function at(e,t,r){if(r||arguments.length===2)for(var s=0,a=t.length,o;s0?s:e.name,writable:!1,configurable:!1,enumerable:!0})}return r}function ir(e){var t=e.name,r=t&&t.lastIndexOf(".")!==-1;if(r&&!e.type){var s=t.split(".").pop().toLowerCase(),a=ar.get(s);a&&Object.defineProperty(e,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return e}var lr=[".DS_Store","Thumbs.db"];function cr(e){return he(this,void 0,void 0,function(){return xe(this,function(t){return Oe(e)&&ur(e.dataTransfer)?[2,mr(e.dataTransfer,e.type)]:fr(e)?[2,dr(e)]:Array.isArray(e)&&e.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,pr(e)]:[2,[]]})})}function ur(e){return Oe(e)}function fr(e){return Oe(e)&&Oe(e.target)}function Oe(e){return typeof e=="object"&&e!==null}function dr(e){return Be(e.target.files).map(function(t){return Pe(t)})}function pr(e){return he(this,void 0,void 0,function(){var t;return xe(this,function(r){switch(r.label){case 0:return[4,Promise.all(e.map(function(s){return s.getFile()}))];case 1:return t=r.sent(),[2,t.map(function(s){return Pe(s)})]}})})}function mr(e,t){return he(this,void 0,void 0,function(){var r,s;return xe(this,function(a){switch(a.label){case 0:return e.items?(r=Be(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,r]:[4,Promise.all(r.map(gr))]):[3,2];case 1:return s=a.sent(),[2,it(bt(s))];case 2:return[2,it(Be(e.files).map(function(o){return Pe(o)}))]}})})}function it(e){return e.filter(function(t){return lr.indexOf(t.name)===-1})}function Be(e){if(e===null)return[];for(var t=[],r=0;re.length)&&(t=e.length);for(var r=0,s=new Array(t);rr)return[!1,dt(r)];if(e.sizer)return[!1,dt(r)]}return[!0,null]}function ue(e){return e!=null}function Sr(e){var t=e.files,r=e.accept,s=e.minSize,a=e.maxSize,o=e.multiple,u=e.maxFiles,f=e.validator;return!o&&t.length>1||o&&u>=1&&t.length>u?!1:t.every(function(g){var l=Dt(g,r),v=je(l,1),j=v[0],P=Ct(g,s,a),k=je(P,1),N=k[0],M=f?f(g):null;return j&&N&&!M})}function Ae(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Ce(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function mt(e){e.preventDefault()}function kr(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function _r(e){return e.indexOf("Edge/")!==-1}function Tr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return kr(e)||_r(e)}function Q(){for(var e=arguments.length,t=new Array(e),r=0;r1?a-1:0),u=1;ue.length)&&(t=e.length);for(var r=0,s=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(r[s]=e[s])}return r}function Jr(e,t){if(e==null)return{};var r={},s=Object.keys(e),a,o;for(o=0;o=0)&&(r[a]=e[a]);return r}var Ge=i.forwardRef(function(e,t){var r=e.children,s=Ne(e,$r),a=Nt(s),o=a.open,u=Ne(a,Br);return i.useImperativeHandle(t,function(){return{open:o}},[o]),Rt.createElement(i.Fragment,null,r(C(C({},u),{},{open:o})))});Ge.displayName="Dropzone";var At={disabled:!1,getFilesFromEvent:cr,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Ge.defaultProps=At;Ge.propTypes={children:w.func,accept:w.objectOf(w.arrayOf(w.string)),multiple:w.bool,preventDropOnDocument:w.bool,noClick:w.bool,noKeyboard:w.bool,noDrag:w.bool,noDragEventsBubbling:w.bool,minSize:w.number,maxSize:w.number,maxFiles:w.number,disabled:w.bool,getFilesFromEvent:w.func,onFileDialogCancel:w.func,onFileDialogOpen:w.func,useFsAccessApi:w.bool,autoFocus:w.bool,onDragEnter:w.func,onDragLeave:w.func,onDragOver:w.func,onDrop:w.func,onDropAccepted:w.func,onDropRejected:w.func,onError:w.func,validator:w.func};var We={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Nt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=C(C({},At),e),r=t.accept,s=t.disabled,a=t.getFilesFromEvent,o=t.maxSize,u=t.minSize,f=t.multiple,g=t.maxFiles,l=t.onDragEnter,v=t.onDragLeave,j=t.onDragOver,P=t.onDrop,k=t.onDropAccepted,N=t.onDropRejected,M=t.onFileDialogCancel,$=t.onFileDialogOpen,Z=t.useFsAccessApi,U=t.autoFocus,te=t.preventDropOnDocument,q=t.noClick,S=t.noKeyboard,W=t.noDrag,E=t.noDragEventsBubbling,I=t.onError,G=t.validator,L=i.useMemo(function(){return Mr(r)},[r]),re=i.useMemo(function(){return Lr(r)},[r]),V=i.useMemo(function(){return typeof $=="function"?$:ht},[$]),X=i.useMemo(function(){return typeof M=="function"?M:ht},[M]),F=i.useRef(null),_=i.useRef(null),ee=i.useReducer(Qr,We),fe=ze(ee,2),se=fe[0],T=fe[1],ve=se.isFocused,de=se.isFileDialogActive,B=i.useRef(typeof window<"u"&&window.isSecureContext&&Z&&Rr()),oe=function(){!B.current&&de&&setTimeout(function(){if(_.current){var p=_.current.files;p.length||(T({type:"closeDialog"}),X())}},300)};i.useEffect(function(){return window.addEventListener("focus",oe,!1),function(){window.removeEventListener("focus",oe,!1)}},[_,de,X,B]);var Y=i.useRef([]),ae=function(p){F.current&&F.current.contains(p.target)||(p.preventDefault(),Y.current=[])};i.useEffect(function(){return te&&(document.addEventListener("dragover",mt,!1),document.addEventListener("drop",ae,!1)),function(){te&&(document.removeEventListener("dragover",mt),document.removeEventListener("drop",ae))}},[F,te]),i.useEffect(function(){return!s&&U&&F.current&&F.current.focus(),function(){}},[F,U,s]);var z=i.useCallback(function(c){I?I(c):console.error(c)},[I]),J=i.useCallback(function(c){c.preventDefault(),c.persist(),ce(c),Y.current=[].concat(Ur(Y.current),[c.target]),Ce(c)&&Promise.resolve(a(c)).then(function(p){if(!(Ae(c)&&!E)){var A=p.length,R=A>0&&Sr({files:p,accept:L,minSize:u,maxSize:o,multiple:f,maxFiles:g,validator:G}),H=A>0&&!R;T({isDragAccept:R,isDragReject:H,isDragActive:!0,type:"setDraggedFiles"}),l&&l(c)}}).catch(function(p){return z(p)})},[a,l,z,E,L,u,o,f,g,G]),m=i.useCallback(function(c){c.preventDefault(),c.persist(),ce(c);var p=Ce(c);if(p&&c.dataTransfer)try{c.dataTransfer.dropEffect="copy"}catch{}return p&&j&&j(c),!1},[j,E]),h=i.useCallback(function(c){c.preventDefault(),c.persist(),ce(c);var p=Y.current.filter(function(R){return F.current&&F.current.contains(R)}),A=p.indexOf(c.target);A!==-1&&p.splice(A,1),Y.current=p,!(p.length>0)&&(T({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Ce(c)&&v&&v(c))},[F,v,E]),b=i.useCallback(function(c,p){var A=[],R=[];c.forEach(function(H){var we=Dt(H,L),me=ze(we,2),ke=me[0],_e=me[1],Te=Ct(H,u,o),De=ze(Te,2),Re=De[0],Le=De[1],Me=G?G(H):null;if(ke&&Re&&!Me)A.push(H);else{var Ie=[_e,Le];Me&&(Ie=Ie.concat(Me)),R.push({file:H,errors:Ie.filter(function(_t){return _t})})}}),(!f&&A.length>1||f&&g>=1&&A.length>g)&&(A.forEach(function(H){R.push({file:H,errors:[Nr]})}),A.splice(0)),T({acceptedFiles:A,fileRejections:R,type:"setFiles"}),P&&P(A,R,p),R.length>0&&N&&N(R,p),A.length>0&&k&&k(A,p)},[T,f,L,u,o,g,P,k,N,G]),ie=i.useCallback(function(c){c.preventDefault(),c.persist(),ce(c),Y.current=[],Ce(c)&&Promise.resolve(a(c)).then(function(p){Ae(c)&&!E||b(p,c)}).catch(function(p){return z(p)}),T({type:"reset"})},[a,b,z,E]),d=i.useCallback(function(){if(B.current){T({type:"openDialog"}),V();var c={multiple:f,types:re};window.showOpenFilePicker(c).then(function(p){return a(p)}).then(function(p){b(p,null),T({type:"closeDialog"})}).catch(function(p){Ir(p)?(X(p),T({type:"closeDialog"})):zr(p)?(B.current=!1,_.current?(_.current.value=null,_.current.click()):z(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):z(p)});return}_.current&&(T({type:"openDialog"}),V(),_.current.value=null,_.current.click())},[T,V,X,Z,b,z,re,f]),y=i.useCallback(function(c){!F.current||!F.current.isEqualNode(c.target)||(c.key===" "||c.key==="Enter"||c.keyCode===32||c.keyCode===13)&&(c.preventDefault(),d())},[F,d]),D=i.useCallback(function(){T({type:"focus"})},[]),le=i.useCallback(function(){T({type:"blur"})},[]),ye=i.useCallback(function(){q||(Tr()?setTimeout(d,0):d())},[q,d]),ne=function(p){return s?null:p},be=function(p){return S?null:ne(p)},pe=function(p){return W?null:ne(p)},ce=function(p){E&&p.stopPropagation()},Se=i.useMemo(function(){return function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=c.refKey,A=p===void 0?"ref":p,R=c.role,H=c.onKeyDown,we=c.onFocus,me=c.onBlur,ke=c.onClick,_e=c.onDragEnter,Te=c.onDragOver,De=c.onDragLeave,Re=c.onDrop,Le=Ne(c,Hr);return C(C(Ue({onKeyDown:be(Q(H,y)),onFocus:be(Q(we,D)),onBlur:be(Q(me,le)),onClick:ne(Q(ke,ye)),onDragEnter:pe(Q(_e,J)),onDragOver:pe(Q(Te,m)),onDragLeave:pe(Q(De,h)),onDrop:pe(Q(Re,ie)),role:typeof R=="string"&&R!==""?R:"presentation"},A,F),!s&&!S?{tabIndex:0}:{}),Le)}},[F,y,D,le,ye,J,m,h,ie,S,W,s]),St=i.useCallback(function(c){c.stopPropagation()},[]),kt=i.useMemo(function(){return function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=c.refKey,A=p===void 0?"ref":p,R=c.onChange,H=c.onClick,we=Ne(c,Kr),me=Ue({accept:L,multiple:f,type:"file",style:{display:"none"},onChange:ne(Q(R,ie)),onClick:ne(Q(H,St)),tabIndex:-1},A,_);return C(C({},me),we)}},[_,r,f,ie,s]);return C(C({},se),{},{isFocused:ve&&!s,getRootProps:Se,getInputProps:kt,rootRef:F,inputRef:_,open:ne(d)})}function Qr(e,t){switch(t.type){case"focus":return C(C({},e),{},{isFocused:!0});case"blur":return C(C({},e),{},{isFocused:!1});case"openDialog":return C(C({},We),{},{isFileDialogActive:!0});case"closeDialog":return C(C({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return C(C({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return C(C({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return C({},We);default:return e}}function ht(){}const Xr=()=>{const e=xt(),t=ge(s=>s.auth.user),r=ge(s=>s.auth.accessToken);return or(async s=>await Lt(s),{onSuccess:s=>{e($e({user:{...t,coverPhoto:s.coverPhoto},accessToken:r}))}})},en=()=>{const[e,t]=i.useState(null),[r,s]=i.useState(!1),a=Xr();i.useEffect(()=>{O.dismiss(),a.isLoading?O.warn("Uploading...",K):a.isSuccess?O.success("Cover photo updated successfully",K):a.isError&&O.error("Updation failed!",K)},[a.isLoading,a.isSuccess,a.isError]);const o=async P=>{if(P)try{const k=new FormData,N=new FileReader;N.onload=M=>{var $;if(($=M.target)!=null&&$.result){const Z=M.target.result,U=new Blob([Z],{type:P.type});k.append("file",U,"image.jpg"),a.mutate(k)}},N.readAsArrayBuffer(P)}catch(k){console.error("Upload error:",k)}},u=P=>{o(P),f()},f=()=>s(!r),g=i.useCallback(P=>{(P==null?void 0:P.length)===0?O.error("Invalid action!",K):(t(P[0]),s(!0))},[e]),{getRootProps:l,getInputProps:v,isDragActive:j}=Nt({onDrop:g,maxFiles:1,accept:{"image/*":[]}});return n.jsxs(n.Fragment,{children:[n.jsx(Ee,{}),n.jsxs("div",{...l(),children:[n.jsx("input",{...v()}),!j&&n.jsxs("div",{className:" h-44 md:h-60 lg:h-80 px-1 cursor-pointer rounded-lg w-full bg-white lg:border-4 border-2 border-gray-500 border-dashed flex items-center justify-center gap-10",children:[n.jsx(Mt,{className:"lg:text-9xl text-6xl text-gray-500"}),n.jsxs("div",{className:"flex flex-col justify-center items-start",children:[n.jsx("h1",{className:"lg:text-[1.125rem] text-base",children:"Drag the image here or click to select the file"}),n.jsx("p",{className:"text-gray-500 font-light lg:text-base text-sm",children:"Multiple files are not allowed"})]})]})]}),n.jsxs(x.Dialog,{open:r,size:"lg",handler:f,animate:{mount:{scale:1,y:0},unmount:{scale:.9,y:-100}},children:[n.jsx(x.DialogHeader,{children:n.jsxs("div",{className:"flex justify-between items-center w-full",children:[n.jsx("div",{className:"text-2xl",children:"Cover Photo"}),n.jsx("div",{children:n.jsx(Fe,{className:"text-3xl cursor-pointer",onClick:f})})]})}),n.jsx(x.DialogBody,{className:"lg:m-4 m-2",children:e?n.jsx("div",{className:"w-auto lg:h-[28rem] h-96 ",children:n.jsx(yt,{image:URL.createObjectURL(e),getImage:u,aspectRatio:4/1})}):" "})]})]})},tn=({id:e,ifOtherUser:t})=>{var m,h,b,ie;const r=ge(d=>{var y;return(y=d==null?void 0:d.auth)==null?void 0:y.user}),[s,a]=i.useState(null),[o,u]=i.useState(null),[f,g]=i.useState(!1),[l,v]=i.useState(null),[j,P]=i.useState(!1),[k,N]=i.useState(!1),[M,$]=i.useState(!1),[Z,U]=i.useState([]),[te,q]=i.useState([]),S=xt(),W=It();i.useEffect(()=>{const d=async()=>{if(r)e===(r==null?void 0:r._id)&&(a((r==null?void 0:r.coverPhoto)||null),u((r==null?void 0:r.dp)||null));else{const D=await y();e===(D==null?void 0:D._id)&&(D!=null&&D.coverPhoto&&a(D.coverPhoto),D!=null&&D.dp&&u(D.dp))}},y=async()=>{const{user:D}=await Ze(),{accessToken:le}=qe.getState().auth;return S($e({user:D,accessToken:le})),D};d()},[S,e,r]);const E=async d=>{try{const{otherUser:y}=await vt(d);v(y),y!=null&&y.coverPhoto&&a(y.coverPhoto),y!=null&&y.dp&&u(y.dp)}catch(y){if(Ht(y)){const D=y;D.response&&D.response.status>=400&&D.response.status<=500&&W("/error")}}};i.useEffect(()=>{var d;e!==(r==null?void 0:r._id)?(g(!0),t(!0),E(e),(d=r==null?void 0:r.following)!=null&&d.includes(e)?P(!0):P(!1)):(g(!1),t(!1))},[e,t,r]),i.useEffect(()=>{e&&zt(e).then(d=>{U(d.following)})},[e,k]),i.useEffect(()=>{e&&$t(e).then(d=>{q(d.followers)})},[e,M]);const[I,G]=i.useState(!1),L=()=>G(!I),[re,V]=i.useState(null),X=async d=>{if(d)try{const y=new FileReader;y.onload=async D=>{var le;if((le=D.target)!=null&&le.result){const ye=new FormData,ne=D.target.result,be=new Blob([ne],{type:d.type});ye.append("file",be,"image.jpg");const pe=qt(ye);await O.promise(pe,{pending:"Image is uploading.....",success:"Successfully updated Profile Photo",error:"Failed to update Profile Photo"},K).then(async ce=>{if(ce){u(ce.dp);const{user:Se}=await Ze();S($e({user:Se,accessToken:qe.getState().auth.accessToken}))}})}},y.readAsArrayBuffer(d)}catch(y){console.error("Upload error:",y)}},F=d=>{X(d),L()},_=d=>{d.target.files&&d.target.files.length>0&&(V(d.target.files[0]),G(!0))},ee=()=>{O.dismiss(),O(n.jsx(Je,{onDelete:()=>fe(),message:"Are you sure you want to delete this DP?"}),K)},fe=async()=>{(await Zt()).status==="success"?(O.dismiss(),O.success("DP deleted successfully",K)):(O.dismiss(),O.error("Error deleting the DP",K))},se=()=>s?n.jsxs(n.Fragment,{children:[n.jsx("img",{src:s,className:"h-full rounded-lg w-full object-fit relative"}),!f&&n.jsx("div",{className:"absolute bottom-2 lg:bottom-4 right-4 lg:right-20",children:n.jsx("div",{className:"flex gap-3",children:n.jsx("div",{className:"flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-500 rounded-full cursor-pointer border-2 border-blue-gray-700 hover:border-red-700 hover:bg-white hover:border-3 group opacity-70 hover:opacity-100",children:n.jsx(Ve,{className:"text-xl text-white group-hover:text-red-500",onClick:ve})})})})]}):f?n.jsx("div",{className:"h-full w-full bg-gray-300 rounded-lg"}):n.jsx(en,{}),T=()=>o?n.jsxs("div",{className:"absolute -bottom-24 lg:left-14 p-4 hover:scale-105 group",children:[n.jsx("img",{className:"h-32 w-32 md:h-36 md:w-36 lg:h-40 lg:w-40 rounded-full border-4 border-white",src:o}),!f&&n.jsx("div",{className:"absolute bottom-7 left-16 md:left-[4.5rem] lg:left-[5rem]",children:n.jsx("div",{className:"flex gap-3",children:n.jsx("div",{className:`flex justify-center items-center w-8 h-8 transition duration-300 ease-in-out bg-blue-gray-500 rounded-full cursor-pointer border-2 + border-blue-gray-700 hover:border-red-700 hover:bg-white group-hover:border-3 opacity-0 group-hover:opacity-100`,children:n.jsx(Ve,{className:"text-xl text-white hover:text-red-500",onClick:ee})})})})]}):f?n.jsx("div",{className:"absolute -bottom-24 lg:left-14 p-4 ",children:n.jsx("div",{className:"h-32 w-32 md:h-36 md:w-36 lg:h-40 lg:w-40 rounded-full border-2 lg:border-4 border-gray-500 border-dashed bg-white m-2 flex items-center justify-center",children:n.jsx(st,{className:"text-5xl text-gray-500 inline-flex"})})}):n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"absolute -bottom-24 lg:left-14 p-4 ",children:[n.jsx("input",{type:"file",accept:"image/*",id:"image-input",className:"hidden",onChange:_}),n.jsx("label",{htmlFor:"image-input",className:"h-32 w-32 md:h-36 md:w-36 lg:h-40 lg:w-40 rounded-full border-4 border-gray-500 border-dashed bg-white m-2 flex items-center justify-center cursor-pointer",children:n.jsx(st,{className:"text-5xl text-gray-500 inline-flex"})})]}),n.jsxs(x.Dialog,{open:I,size:"lg",handler:L,animate:{mount:{scale:1,y:0},unmount:{scale:.9,y:-100}},children:[n.jsx(x.DialogHeader,{children:n.jsxs("div",{className:"flex justify-between items-center w-full",children:[n.jsx("div",{className:"text-2xl",children:"Profile Photo"}),n.jsx("div",{children:n.jsx(Fe,{className:"text-3xl cursor-pointer",onClick:L})})]})}),n.jsx(x.DialogBody,{className:"lg:m-4 m-2",children:re?n.jsx("div",{className:"w-auto lg:h-[28rem] h-96 ",children:n.jsx(yt,{image:URL.createObjectURL(re),getImage:F,aspectRatio:4/4})}):" "})]})]}),ve=()=>{O.dismiss(),O(n.jsx(Je,{onDelete:de,message:"Are you sure you want to delete the cover photo?"}),K)},de=async()=>{(await Kt()).status==="success"?(O.dismiss(),O.success("Cover photo deleted successfully",K),a(null)):(O.dismiss(),O.error("Error deleting cover photo",K))},B=()=>{W(`/profile/${r==null?void 0:r._id}/settings`)},oe=()=>{W(`/profile/${r==null?void 0:r._id}/edit-profile`)},Y=async(d,y)=>{Ut(d).then(()=>{P(!1),O.dismiss(),O.success(`Following ${y}`,{...K,position:"bottom-left"}),S(Wt(d))})},ae=async(d,y)=>{Gt(d).then(()=>{P(!1),O.dismiss(),O.success(`Unfollowed ${y}`,{...K,position:"bottom-left"}),S(Yt(d))})},z=()=>N(!k),J=()=>$(!M);return n.jsxs(n.Fragment,{children:[n.jsx(Ee,{}),n.jsxs("div",{className:"relative w-full h-44 md:h-60 lg:h-80 px-1 lg:px-10",children:[se(),T(),n.jsxs("div",{className:"flex flex-col justify-between items-start absolute left-40 md:left-44 lg:left-64 -bottom-16",children:[n.jsxs("div",{className:"flex md:flex-row flex-col md:items-center md:gap-2",children:[n.jsx("h2",{className:"mt-2 lg:text-xl text-base font-bold text-black inline",children:f?l==null?void 0:l.name:r==null?void 0:r.name}),n.jsxs("p",{className:"text-sm font-light text-gray-600 md:mt-2",children:["@",f?l==null?void 0:l.username:r==null?void 0:r.username]})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("span",{className:"lg:text-sm text-xs font-bold text-socioverse-500 cursor-pointer",onClick:z,children:[f?(m=l==null?void 0:l.following)==null?void 0:m.length:(h=r==null?void 0:r.following)==null?void 0:h.length," ","following"]}),n.jsxs("span",{className:"lg:text-sm text-xs font-bold text-socioverse-500 cursor-pointer",onClick:J,children:[f?(b=l==null?void 0:l.followers)==null?void 0:b.length:(ie=r==null?void 0:r.followers)==null?void 0:ie.length," ","followers"]})]})]}),n.jsx("div",{className:"md:flex items-center justify-between gap-5 absolute hidden md:-bottom-14 md:right-20",children:f?n.jsx(n.Fragment,{children:j?n.jsx(x.Button,{variant:"outlined",className:"rounded-full text-black border-black",onClick:()=>ae(e,l==null?void 0:l.name),children:"Following"}):n.jsx(x.Button,{className:"rounded-full bg-socioverse-500",onClick:()=>Y(e,l==null?void 0:l.name),children:"Follow"})}):n.jsxs(n.Fragment,{children:[n.jsx(x.Button,{variant:"outlined",className:"rounded-full text-black border-black",onClick:B,children:"Settings"}),n.jsx(x.Button,{className:"rounded-full bg-socioverse-500",onClick:oe,children:"Edit Profile"})]})}),n.jsx("div",{className:"flex md:hidden absolute right-0 -bottom-14",children:n.jsxs(x.Menu,{placement:"bottom-start",children:[n.jsx(x.MenuHandler,{children:n.jsx(x.Button,{color:"blue-gray",size:"sm",variant:"text",className:"focus:outline-none",children:n.jsx(Bt,{className:"text-lg transition duration-150 ease-in-out hover:scale-105"})})}),n.jsx(x.MenuList,{className:"z-50",children:f?j?n.jsx(x.MenuItem,{onClick:()=>ae(e,l==null?void 0:l.name),className:"hover:bg-blue-gray-50",children:"Unfollow"}):n.jsx(x.MenuItem,{onClick:()=>Y(e,l==null?void 0:l.name),className:"hover:bg-blue-gray-50",children:"Follow"}):n.jsxs(n.Fragment,{children:[n.jsx(x.MenuItem,{onClick:B,className:"hover:bg-blue-gray-50",children:"Settings"}),n.jsx(x.MenuItem,{onClick:oe,className:"hover:bg-blue-gray-50",children:"Edit Profile"})]})})]})})]}),n.jsxs(x.Dialog,{open:k,size:"xs",handler:z,animate:{mount:{scale:1,y:0},unmount:{scale:.9,y:-100}},children:[n.jsx(x.DialogHeader,{children:n.jsxs("div",{className:"flex justify-between items-center w-full",children:[n.jsx("h1",{className:"text-xl font-semibold",children:"Following List"}),n.jsx("div",{children:n.jsx(Fe,{className:"text-3xl cursor-pointer",onClick:z})})]})}),n.jsx(Ee,{}),n.jsx(x.DialogBody,{className:"flex flex-col gap-4 lg:mx-4 lg:my-0 m-2 max-h-[20.5rem] overflow-y-scroll",children:n.jsx("div",{className:"flex flex-col gap-2 ",children:Z.map(d=>n.jsx("div",{className:"flex p-2 items-center justify-between transition duration-100 ease-in-out hover:shadow-md hover:scale-105 hover:rounded-lg",children:n.jsxs("div",{className:"mt-3 flex items-center space-x-2",onClick:()=>{z(),W(`/profile/${d._id}`)},children:[n.jsx("img",{className:"inline-block h-12 w-12 rounded-full",src:d.dp?d.dp:Ye.DEFAULT_IMG,alt:"user dp"}),n.jsxs("span",{className:"flex flex-col",children:[n.jsx("span",{className:"text-[14px] font-medium text-gray-900",children:d==null?void 0:d.name}),n.jsx("span",{className:"text-[11px] font-medium text-gray-500",children:d.username?`@${d.username}`:"@ -"})]})]})},d._id))})}),n.jsx(x.DialogFooter,{children:void 0})]}),n.jsxs(x.Dialog,{open:M,size:"xs",handler:J,animate:{mount:{scale:1,y:0},unmount:{scale:.9,y:-100}},children:[n.jsx(x.DialogHeader,{children:n.jsxs("div",{className:"flex justify-between items-center w-full",children:[n.jsx("h1",{className:"text-xl font-semibold",children:"Followers List"}),n.jsx("div",{children:n.jsx(Fe,{className:"text-3xl cursor-pointer",onClick:J})})]})}),n.jsx(Ee,{}),n.jsx(x.DialogBody,{className:"flex flex-col gap-4 lg:mx-4 lg:my-0 m-2 max-h-[20.5rem] overflow-y-scroll",children:n.jsx("div",{className:"flex flex-col gap-2 ",children:te.map(d=>n.jsx("div",{className:"flex p-2 items-center justify-between transition duration-100 ease-in-out hover:shadow-md hover:scale-105 hover:rounded-lg",children:n.jsxs("div",{className:"mt-3 flex items-center space-x-2",onClick:()=>{J(),W(`/profile/${d._id}`)},children:[n.jsx("img",{className:"inline-block h-12 w-12 rounded-full",src:d.dp?d.dp:Ye.DEFAULT_IMG,alt:"user dp"}),n.jsxs("span",{className:"flex flex-col",children:[n.jsx("span",{className:"text-[14px] font-medium text-gray-900",children:d==null?void 0:d.name}),n.jsx("span",{className:"text-[11px] font-medium text-gray-500",children:d.username?`@${d.username}`:"@ -"})]})]})},d._id))})}),n.jsx(x.DialogFooter,{children:void 0})]})]})},rn=({id:e,otherUser:t})=>{const r=ge(o=>{var u;return(u=o==null?void 0:o.auth)==null?void 0:u.user}),[s,a]=i.useState(null);return i.useEffect(()=>{t&&e&&vt(e).then(o=>{a(o.otherUser)})},[e,t]),n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"flex flex-col w-full h-fit justify-start shadow-lg rounded-lg px-5 py-5 border overflow-auto whitespace-normal",children:[n.jsx("h2",{className:" lg:text-xl text-base font-bold text-black inline",children:"Bio"}),n.jsx("p",{className:"text-sm font-light text-gray-600 mt-2",children:t&&s?s==null?void 0:s.bio:r==null?void 0:r.bio})]}),n.jsxs("div",{className:`flex flex-col w-full h-fit justify-start shadow-lg rounded-lg px-5 py-5 + border mt-8 overflow-auto whitespace-normal`,children:[n.jsx("h2",{className:" lg:text-xl text-base font-bold text-black inline mb-3",children:"Contact"}),n.jsxs("div",{className:"flex flex-col items-start justify-start gap-4",children:[n.jsxs("div",{className:"flex items-center gap-4",children:[n.jsx("div",{className:"w-8 h-8 rounded-full bg-blue-gray-100/50 flex items-center justify-center",children:n.jsx(Vt,{className:"text-xl text-socioverse-500"})}),n.jsx("p",{className:"text-sm font-light text-gray-600",children:t&&s?s==null?void 0:s.email:r==null?void 0:r.email})]}),n.jsxs("div",{className:"flex items-center gap-4",children:[n.jsx("div",{className:"w-8 h-8 rounded-full bg-blue-gray-100/50 flex items-center justify-center",children:n.jsx(Jt,{className:"text-xl text-socioverse-500"})}),n.jsx("p",{className:"text-sm font-light text-gray-600",children:t&&s?s==null?void 0:s.phoneNumber:r==null?void 0:r.phoneNumber})]})]})]})]})};function nn({userId:e}){const t=ge(m=>{var h,b;return(b=(h=m==null?void 0:m.auth)==null?void 0:h.user)==null?void 0:b._id}),[r,s]=i.useState([]),[a,o]=i.useState([]),[u,f]=i.useState([]),[g,l]=i.useState([]),[v,j]=i.useState(null),[P,k]=i.useState(null),[N,M]=i.useState(null),[$,Z]=i.useState(null),[U,te]=i.useState(null),[q,S]=i.useState(!1),[W,E]=i.useState(!1),[I,G]=i.useState(1),[L,re]=i.useState(1),[V,X]=i.useState(1),[F,_]=i.useState(1),[ee,fe]=i.useState("myPosts"),[se,T]=i.useState(!1),[ve,de]=i.useState(!1),B=i.useRef(null);i.useEffect(()=>{S(!1)},[e]),i.useEffect(()=>{I===1&&e===t&&(E(!0),oe(),E(!1))},[I,e,t]),i.useEffect(()=>{L===1&&e&&e!==t&&(E(!0),Y(),E(!1))},[L]),i.useEffect(()=>{v&&(s(r.filter(m=>m._id!==v)),f(u.filter(m=>m._id!==v)),l(g.filter(m=>m._id!==v)),j(null)),P&&k(null),N&&(s(r.map(m=>m._id===N._id?N:m)),f(u.map(m=>m._id===N._id?N:m)),l(g.map(m=>m._id===N._id?N:m)),M(null))},[v,P,N]),i.useEffect(()=>{$&&((async()=>{if($.action){const h=await rt($.postId);f([h.post,...u])}else f(u.filter(h=>h._id!==$.postId));Z(null)})(),Z(null)),U&&((async()=>{if(U.action){const h=await rt(U.postId);l([h.post,...g])}else l(g.filter(h=>h._id!==U.postId))})(),te(null))},[$,U]),i.useEffect(()=>{S(!1)},[ee]);const oe=async()=>{const m=await Qe(I);s(m.posts),G(I+1),m.posts.length<3&&S(!0)},Y=async()=>{if(e&&e!==t){const m=await Xe(e,I);o(m.posts),re(L+1),m.posts.length<3&&S(!0)}},ae=async m=>{if(E(!0),m==="saved"&&!ve){const h=await et(F);l(h.posts),_(F+1),de(!0)}else if(m==="liked"&&!se){const h=await tt(V);f(h.posts),X(V+1),T(!0)}E(!1)},z=[{label:"My Posts",value:"myPosts",desc:r.length>0?r:"No posts yet posted by the user"},{label:"Liked",value:"liked",desc:u.length>0?u:"No posts yet liked by the user"},{label:"Saved",value:"saved",desc:g.length>0?g:"No posts yet saved by the user"}],J=[{label:"My Posts",value:"myPosts",desc:a.length>0?a:"No posts yet posted by the user"}];return i.useEffect(()=>{const m=new IntersectionObserver(async h=>{if(h[0].isIntersecting&&!W&&!q){if(E(!0),e===t){if(ee==="myPosts"){const b=await Qe(I);if(b.posts.length===0){E(!1),S(!0);return}s([...r,...b.posts]),G(I+1)}else if(ee==="saved"){const b=await et(F);if(b.posts.length===0){E(!1),S(!0);return}l([...g,...b.posts]),_(F+1)}else if(ee==="liked"){const b=await tt(V);if(b.posts.length===0){E(!1),S(!0);return}f([...u,...b.posts]),X(V+1)}}else{const b=e&&await Xe(e,L);if(b&&b.posts.length===0){E(!1),S(!0);return}b&&o([...a,...b.posts]),re(L+1)}E(!1)}},{threshold:1});return B.current&&m.observe(B.current),()=>{B.current&&m.unobserve(B.current)}},[W,I,q,ee,e,L]),n.jsxs(x.Tabs,{id:"custom-animation",value:"myPosts",children:[n.jsx(x.TabsHeader,{className:"sticky overflow-y-hidden",children:(t===e?z:J).map(({label:m,value:h})=>n.jsx(x.Tab,{value:h,onClick:()=>{ae(h),fe(h)},children:n.jsx("h4",{className:"lg:text-base text-sm",children:m})},h))}),n.jsx(x.TabsBody,{animate:{initial:{y:250},mount:{y:0},unmount:{y:250}},className:"overflow-y-auto h-[80vh] no-scrollbar",children:(t===e?z:J).map(({value:m,desc:h})=>n.jsx(x.TabPanel,{value:m,className:"mx-auto",children:typeof h=="string"?n.jsx("h1",{className:"",children:h}):n.jsxs("div",{className:"flex flex-col gap-5 lg:w-[30rem] md:w-96 w-80 mx-auto",children:[h.map(b=>n.jsx(n.Fragment,{children:n.jsx(Qt,{postData:b,setDeletedPostId:j,setReportedPostId:k,setPostEdited:M,setSavedPostId:te,setLikedPostId:Z},b._id+m)})),!q&&n.jsx("div",{className:"w-full px-2 mt-5",children:n.jsx(Xt,{})}),q&&n.jsx("div",{className:"text-center mt-5",children:" No posts..."}),n.jsx("div",{id:"sentinel",style:{height:"1px"},className:"mt-10 mb-20",ref:B,children:!q&&n.jsx("img",{src:er,className:"w-20 h-20 mx-auto"})})]})},m))})]})}const sn=()=>{const e=tr(),t=ge(u=>{var f;return(f=u==null?void 0:u.auth)==null?void 0:f.user}),{userId:r}=rr(),[s,a]=i.useState(!1),o=u=>{a(u)};return n.jsx(n.Fragment,{children:n.jsxs("div",{className:"flex flex-col justify-evenly items-start lg:mx-5 ",children:[n.jsx("div",{className:" no-scrollbar overflow-y-hidden w-full lg:h-[26rem] md:h-80 h-64",children:n.jsx(tn,{id:r||null,ifOtherUser:o})}),n.jsxs("div",{className:"flex flex-col md:flex-row items-start w-full gap-5 md:h-[85vh] lg:h-[90vh]",children:[n.jsx("div",{className:nt("flex flex-col lg:px-10 px-2 w-full md:w-4/12 mt-8 sticky overflow-y-hidden md:h-[85vh]",{"hidden md:block":e.pathname===`/profile/${t==null?void 0:t._id}/settings`||e.pathname===`/profile/${t==null?void 0:t._id}/edit-profile`}),children:n.jsx(rn,{id:r||null,otherUser:s})}),n.jsx("div",{className:nt("flex flex-col lg:pr-10 w-full md:w-8/12 mt-8 sticky overflow-y-auto",{"h-[55vh] md:h-[60vh]":e.pathname===`/profile/${t==null?void 0:t._id}/settings`},{"h-[95vh] md:h-[90vh]":e.pathname===`/profile/${t==null?void 0:t._id}/edit-profile`},{"h-[80vh]":e.pathname===`/profile/${t==null?void 0:t._id}`}),children:e.pathname===`/profile/${t==null?void 0:t._id}/settings`&&t?n.jsx(nr,{}):e.pathname===`/profile/${t==null?void 0:t._id}/edit-profile`&&t?n.jsx("div",{className:"mb-10 overflow-y-hidden",children:n.jsx(sr,{})}):n.jsx("div",{className:"overflow-y-hidden no-scrollbar",children:n.jsx(nn,{userId:r})})})]})]})})},ln=()=>n.jsx(n.Fragment,{children:n.jsx(sn,{})});export{ln as default}; diff --git a/client/dist/assets/SharedPostPage-54639153.js b/client/dist/assets/SharedPostPage-5adb93cb.js similarity index 96% rename from client/dist/assets/SharedPostPage-54639153.js rename to client/dist/assets/SharedPostPage-5adb93cb.js index 7af7d19..82bccb8 100644 --- a/client/dist/assets/SharedPostPage-54639153.js +++ b/client/dist/assets/SharedPostPage-5adb93cb.js @@ -1,2 +1,2 @@ -import{m,a as x,j as e,b as i,C as b,aF as N,u as v,au as w,r as o,aG as u,c as P,s as S,d as y,P as D,at as A,U as I}from"./index-cbb70753.js";const E=({openAlert:a,handleOpenAlert:n,postId:l})=>{const r=m(),c=x();return e.jsxs(i.Dialog,{open:a,size:"md",handler:n,dismiss:{enabled:!1},animate:{mount:{scale:1,y:0},unmount:{scale:.9,y:-100}},children:[e.jsx(i.DialogHeader,{children:e.jsxs("div",{className:"flex justify-between items-center w-full",children:[e.jsx("div",{className:"text-2xl",children:"Login Alert"}),e.jsx("div",{})]})}),e.jsx(i.DialogBody,{className:"mx-4 mb-8",children:e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"text-md w-full border-2 p-4 rounded-lg bg-red-50 border-red-500",children:"Inorder to view the post, user must be logged in."}),e.jsx("div",{className:"w-96 h-96 mb-4 px-4 md:px-0",children:e.jsx("img",{src:b.LOGIN_ALERT_SVG,alt:"login alert svg"})}),e.jsx(i.Button,{className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded ml-auto ",onClick:()=>{c(N(l)),r("/login")},children:"Login"})]})})]})},O=()=>{const a=x(),n=m(),l=v(s=>s.auth.user),{postId:r}=w(),[c,f]=o.useState(null),[h,d]=o.useState(!1),g=()=>{d(s=>!s)};o.useEffect(()=>(a(u(!0)),()=>{a(u(!1))}),[]),o.useEffect(()=>{j(r)},[r]),o.useEffect(()=>{l||p()||n("/error")},[l]);const p=async()=>{try{const{user:s}=await P(),{accessToken:t}=S.getState().auth;return a(y({user:s,accessToken:t})),s}catch(s){if(D(s)){const t=s;t.response&&t.response.status>=400&&t.response.status<=500&&d(!0)}}},j=async s=>{const t=await A(s);t.post?f(t.post):n("/error")};return e.jsxs(e.Fragment,{children:[c&&e.jsx("div",{className:`flex items-center justify-center lg:w-[30rem] +import{m,a as x,j as e,b as i,C as b,aF as N,u as v,au as w,r as o,aG as u,c as P,s as S,d as y,P as D,at as A,U as I}from"./index-1d851ad5.js";const E=({openAlert:a,handleOpenAlert:n,postId:l})=>{const r=m(),c=x();return e.jsxs(i.Dialog,{open:a,size:"md",handler:n,dismiss:{enabled:!1},animate:{mount:{scale:1,y:0},unmount:{scale:.9,y:-100}},children:[e.jsx(i.DialogHeader,{children:e.jsxs("div",{className:"flex justify-between items-center w-full",children:[e.jsx("div",{className:"text-2xl",children:"Login Alert"}),e.jsx("div",{})]})}),e.jsx(i.DialogBody,{className:"mx-4 mb-8",children:e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"text-md w-full border-2 p-4 rounded-lg bg-red-50 border-red-500",children:"Inorder to view the post, user must be logged in."}),e.jsx("div",{className:"w-96 h-96 mb-4 px-4 md:px-0",children:e.jsx("img",{src:b.LOGIN_ALERT_SVG,alt:"login alert svg"})}),e.jsx(i.Button,{className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded ml-auto ",onClick:()=>{c(N(l)),r("/login")},children:"Login"})]})})]})},O=()=>{const a=x(),n=m(),l=v(s=>s.auth.user),{postId:r}=w(),[c,f]=o.useState(null),[h,d]=o.useState(!1),g=()=>{d(s=>!s)};o.useEffect(()=>(a(u(!0)),()=>{a(u(!1))}),[]),o.useEffect(()=>{j(r)},[r]),o.useEffect(()=>{l||p()||n("/error")},[l]);const p=async()=>{try{const{user:s}=await P(),{accessToken:t}=S.getState().auth;return a(y({user:s,accessToken:t})),s}catch(s){if(D(s)){const t=s;t.response&&t.response.status>=400&&t.response.status<=500&&d(!0)}}},j=async s=>{const t=await A(s);t.post?f(t.post):n("/error")};return e.jsxs(e.Fragment,{children:[c&&e.jsx("div",{className:`flex items-center justify-center lg:w-[30rem] md:w-96 w-80 mx-auto mt-8`,children:e.jsx(I,{postData:c})}),e.jsx(E,{openAlert:h,handleOpenAlert:g,postId:r})]})};export{O as default}; diff --git a/client/dist/assets/index-cbb70753.js b/client/dist/assets/index-1d851ad5.js similarity index 85% rename from client/dist/assets/index-cbb70753.js rename to client/dist/assets/index-1d851ad5.js index 17997a2..6bce620 100644 --- a/client/dist/assets/index-cbb70753.js +++ b/client/dist/assets/index-1d851ad5.js @@ -1,4 +1,4 @@ -var ole=Object.defineProperty;var ale=(e,t,r)=>t in e?ole(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var wt=(e,t,r)=>(ale(e,typeof t!="symbol"?t+"":t,r),r);function ile(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var ho=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){if(this instanceof n){var o=[null];o.push.apply(o,arguments);var a=Function.bind.apply(t,o);return new a}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var hH={exports:{}},r8={},pH={exports:{}},Ot={};/** +var ile=Object.defineProperty;var sle=(e,t,r)=>t in e?ile(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var wt=(e,t,r)=>(sle(e,typeof t!="symbol"?t+"":t,r),r);function lle(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var ho=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){if(this instanceof n){var o=[null];o.push.apply(o,arguments);var a=Function.bind.apply(t,o);return new a}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var hH={exports:{}},r8={},pH={exports:{}},Ot={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var ole=Object.defineProperty;var ale=(e,t,r)=>t in e?ole(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var M1=Symbol.for("react.element"),sle=Symbol.for("react.portal"),lle=Symbol.for("react.fragment"),cle=Symbol.for("react.strict_mode"),ule=Symbol.for("react.profiler"),dle=Symbol.for("react.provider"),fle=Symbol.for("react.context"),hle=Symbol.for("react.forward_ref"),ple=Symbol.for("react.suspense"),mle=Symbol.for("react.memo"),gle=Symbol.for("react.lazy"),ZI=Symbol.iterator;function vle(e){return e===null||typeof e!="object"?null:(e=ZI&&e[ZI]||e["@@iterator"],typeof e=="function"?e:null)}var mH={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},gH=Object.assign,vH={};function cf(e,t,r){this.props=e,this.context=t,this.refs=vH,this.updater=r||mH}cf.prototype.isReactComponent={};cf.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};cf.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bH(){}bH.prototype=cf.prototype;function YS(e,t,r){this.props=e,this.context=t,this.refs=vH,this.updater=r||mH}var XS=YS.prototype=new bH;XS.constructor=YS;gH(XS,cf.prototype);XS.isPureReactComponent=!0;var QI=Array.isArray,yH=Object.prototype.hasOwnProperty,ZS={current:null},wH={key:!0,ref:!0,__self:!0,__source:!0};function xH(e,t,r){var n,o={},a=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)yH.call(t,n)&&!wH.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1t in e?ole(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var _le=O,Ele=Symbol.for("react.element"),Cle=Symbol.for("react.fragment"),Ole=Object.prototype.hasOwnProperty,kle=_le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Rle={key:!0,ref:!0,__self:!0,__source:!0};function _H(e,t,r){var n,o={},a=null,i=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)Ole.call(t,n)&&!Rle.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:Ele,type:e,key:a,ref:i,props:o,_owner:kle.current}}r8.Fragment=Cle;r8.jsx=_H;r8.jsxs=_H;hH.exports=r8;var M=hH.exports,nk={},EH={exports:{}},Co={},CH={exports:{}},OH={};/** + */var Cle=O,Ole=Symbol.for("react.element"),kle=Symbol.for("react.fragment"),Rle=Object.prototype.hasOwnProperty,Sle=Cle.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Tle={key:!0,ref:!0,__self:!0,__source:!0};function _H(e,t,r){var n,o={},a=null,i=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)Rle.call(t,n)&&!Tle.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:Ole,type:e,key:a,ref:i,props:o,_owner:Sle.current}}r8.Fragment=kle;r8.jsx=_H;r8.jsxs=_H;hH.exports=r8;var M=hH.exports,nk={},EH={exports:{}},Co={},CH={exports:{}},OH={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var ole=Object.defineProperty;var ale=(e,t,r)=>t in e?ole(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(q,z){var F=q.length;q.push(z);e:for(;0>>1,W=q[N];if(0>>1;No(Z,F))Uo(J,Z)?(q[N]=J,q[U]=F,N=U):(q[N]=Z,q[Q]=F,N=Q);else if(Uo(J,F))q[N]=J,q[U]=F,N=U;else break e}}return z}function o(q,z){var F=q.sortIndex-z.sortIndex;return F!==0?F:q.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],c=[],u=1,p=null,h=3,g=!1,x=!1,y=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(q){for(var z=r(c);z!==null;){if(z.callback===null)n(c);else if(z.startTime<=q)n(c),z.sortIndex=z.expirationTime,t(l,z);else break;z=r(c)}}function d(q){if(y=!1,v(q),!x)if(r(l)!==null)x=!0,B(w);else{var z=r(c);z!==null&&V(d,z.startTime-q)}}function w(q,z){x=!1,y&&(y=!1,m(k),k=-1),g=!0;var F=h;try{for(v(z),p=r(l);p!==null&&(!(p.expirationTime>z)||q&&!T());){var N=p.callback;if(typeof N=="function"){p.callback=null,h=p.priorityLevel;var W=N(p.expirationTime<=z);z=e.unstable_now(),typeof W=="function"?p.callback=W:p===r(l)&&n(l),v(z)}else n(l);p=r(l)}if(p!==null)var G=!0;else{var Q=r(c);Q!==null&&V(d,Q.startTime-z),G=!1}return G}finally{p=null,h=F,g=!1}}var _=!1,E=null,k=-1,S=5,R=-1;function T(){return!(e.unstable_now()-Rq||125N?(q.sortIndex=F,t(c,q),r(l)===null&&q===r(c)&&(y?(m(k),k=-1):y=!0,V(d,F-N))):(q.sortIndex=W,t(l,q),x||g||(x=!0,B(w))),q},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(q){var z=h;return function(){var F=h;h=z;try{return q.apply(this,arguments)}finally{h=F}}}})(OH);CH.exports=OH;var Sle=CH.exports;/** + */(function(e){function t(q,z){var F=q.length;q.push(z);e:for(;0>>1,W=q[N];if(0>>1;No(Z,F))Uo(J,Z)?(q[N]=J,q[U]=F,N=U):(q[N]=Z,q[Q]=F,N=Q);else if(Uo(J,F))q[N]=J,q[U]=F,N=U;else break e}}return z}function o(q,z){var F=q.sortIndex-z.sortIndex;return F!==0?F:q.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],c=[],u=1,p=null,h=3,g=!1,x=!1,y=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(q){for(var z=r(c);z!==null;){if(z.callback===null)n(c);else if(z.startTime<=q)n(c),z.sortIndex=z.expirationTime,t(l,z);else break;z=r(c)}}function d(q){if(y=!1,v(q),!x)if(r(l)!==null)x=!0,B(w);else{var z=r(c);z!==null&&V(d,z.startTime-q)}}function w(q,z){x=!1,y&&(y=!1,m(k),k=-1),g=!0;var F=h;try{for(v(z),p=r(l);p!==null&&(!(p.expirationTime>z)||q&&!T());){var N=p.callback;if(typeof N=="function"){p.callback=null,h=p.priorityLevel;var W=N(p.expirationTime<=z);z=e.unstable_now(),typeof W=="function"?p.callback=W:p===r(l)&&n(l),v(z)}else n(l);p=r(l)}if(p!==null)var G=!0;else{var Q=r(c);Q!==null&&V(d,Q.startTime-z),G=!1}return G}finally{p=null,h=F,g=!1}}var _=!1,E=null,k=-1,S=5,R=-1;function T(){return!(e.unstable_now()-Rq||125N?(q.sortIndex=F,t(c,q),r(l)===null&&q===r(c)&&(y?(m(k),k=-1):y=!0,V(d,F-N))):(q.sortIndex=W,t(l,q),x||g||(x=!0,B(w))),q},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(q){var z=h;return function(){var F=h;h=z;try{return q.apply(this,arguments)}finally{h=F}}}})(OH);CH.exports=OH;var Ple=CH.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var ole=Object.defineProperty;var ale=(e,t,r)=>t in e?ole(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var kH=O,wo=Sle;function Le(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ok=Object.prototype.hasOwnProperty,Tle=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,eL={},tL={};function Ple(e){return ok.call(tL,e)?!0:ok.call(eL,e)?!1:Tle.test(e)?tL[e]=!0:(eL[e]=!0,!1)}function Mle(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ale(e,t,r,n){if(t===null||typeof t>"u"||Mle(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ln(e,t,r,n,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var un={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){un[e]=new Ln(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];un[t]=new Ln(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){un[e]=new Ln(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){un[e]=new Ln(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){un[e]=new Ln(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){un[e]=new Ln(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){un[e]=new Ln(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){un[e]=new Ln(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){un[e]=new Ln(e,5,!1,e.toLowerCase(),null,!1,!1)});var eT=/[\-:]([a-z])/g;function tT(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(eT,tT);un[t]=new Ln(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(eT,tT);un[t]=new Ln(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(eT,tT);un[t]=new Ln(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){un[e]=new Ln(e,1,!1,e.toLowerCase(),null,!1,!1)});un.xlinkHref=new Ln("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){un[e]=new Ln(e,1,!1,e.toLowerCase(),null,!0,!0)});function rT(e,t,r,n){var o=un.hasOwnProperty(t)?un[t]:null;(o!==null?o.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ok=Object.prototype.hasOwnProperty,Mle=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,eL={},tL={};function Ale(e){return ok.call(tL,e)?!0:ok.call(eL,e)?!1:Mle.test(e)?tL[e]=!0:(eL[e]=!0,!1)}function jle(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ile(e,t,r,n){if(t===null||typeof t>"u"||jle(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ln(e,t,r,n,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var un={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){un[e]=new Ln(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];un[t]=new Ln(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){un[e]=new Ln(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){un[e]=new Ln(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){un[e]=new Ln(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){un[e]=new Ln(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){un[e]=new Ln(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){un[e]=new Ln(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){un[e]=new Ln(e,5,!1,e.toLowerCase(),null,!1,!1)});var eT=/[\-:]([a-z])/g;function tT(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(eT,tT);un[t]=new Ln(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(eT,tT);un[t]=new Ln(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(eT,tT);un[t]=new Ln(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){un[e]=new Ln(e,1,!1,e.toLowerCase(),null,!1,!1)});un.xlinkHref=new Ln("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){un[e]=new Ln(e,1,!1,e.toLowerCase(),null,!0,!0)});function rT(e,t,r,n){var o=un.hasOwnProperty(t)?un[t]:null;(o!==null?o.type!==0:n||!(2s||o[i]!==a[s]){var l=` -`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{JE=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?S0(e):""}function jle(e){switch(e.tag){case 5:return S0(e.type);case 16:return S0("Lazy");case 13:return S0("Suspense");case 19:return S0("SuspenseList");case 0:case 2:case 15:return e=eC(e.type,!1),e;case 11:return e=eC(e.type.render,!1),e;case 1:return e=eC(e.type,!0),e;default:return""}}function lk(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fu:return"Fragment";case Du:return"Portal";case ak:return"Profiler";case nT:return"StrictMode";case ik:return"Suspense";case sk:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case TH:return(e.displayName||"Context")+".Consumer";case SH:return(e._context.displayName||"Context")+".Provider";case oT:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case aT:return t=e.displayName||null,t!==null?t:lk(e.type)||"Memo";case Cs:t=e._payload,e=e._init;try{return lk(e(t))}catch{}}return null}function Ile(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return lk(t);case 8:return t===nT?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function hl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function MH(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Lle(e){var t=MH(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){n=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function B5(e){e._valueTracker||(e._valueTracker=Lle(e))}function AH(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=MH(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function sx(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ck(e,t){var r=t.checked;return Rr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function nL(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=hl(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function jH(e,t){t=t.checked,t!=null&&rT(e,"checked",t,!1)}function uk(e,t){jH(e,t);var r=hl(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?dk(e,t.type,r):t.hasOwnProperty("defaultValue")&&dk(e,t.type,hl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function oL(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function dk(e,t,r){(t!=="number"||sx(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var T0=Array.isArray;function cd(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=V5.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ip(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var rp={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$le=["Webkit","ms","Moz","O"];Object.keys(rp).forEach(function(e){$le.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rp[t]=rp[e]})});function NH(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||rp.hasOwnProperty(e)&&rp[e]?(""+t).trim():t+"px"}function DH(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=NH(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var Nle=Rr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function pk(e,t){if(t){if(Nle[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Le(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Le(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Le(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Le(62))}}function mk(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var gk=null;function iT(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vk=null,ud=null,dd=null;function sL(e){if(e=I1(e)){if(typeof vk!="function")throw Error(Le(280));var t=e.stateNode;t&&(t=s8(t),vk(e.stateNode,e.type,t))}}function FH(e){ud?dd?dd.push(e):dd=[e]:ud=e}function zH(){if(ud){var e=ud,t=dd;if(dd=ud=null,sL(e),t)for(e=0;e>>=0,e===0?32:31-(Kle(e)/Yle|0)|0}var H5=64,U5=4194304;function P0(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dx(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~o;s!==0?n=P0(s):(a&=i,a!==0&&(n=P0(a)))}else i=r&~o,i!==0?n=P0(i):a!==0&&(n=P0(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function A1(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wa(t),e[t]=r}function Jle(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=op),gL=String.fromCharCode(32),vL=!1;function iU(e,t){switch(e){case"keyup":return Rce.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sU(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zu=!1;function Tce(e,t){switch(e){case"compositionend":return sU(t);case"keypress":return t.which!==32?null:(vL=!0,gL);case"textInput":return e=t.data,e===gL&&vL?null:e;default:return null}}function Pce(e,t){if(zu)return e==="compositionend"||!pT&&iU(e,t)?(e=oU(),Km=dT=Is=null,zu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=xL(r)}}function dU(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dU(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fU(){for(var e=window,t=sx();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=sx(e.document)}return t}function mT(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Fce(e){var t=fU(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&dU(r.ownerDocument.documentElement,r)){if(n!==null&&mT(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=n.end===void 0?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=_L(r,a);var i=_L(r,n);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Bu=null,Ek=null,ip=null,Ck=!1;function EL(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ck||Bu==null||Bu!==sx(n)||(n=Bu,"selectionStart"in n&&mT(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ip&&zp(ip,n)||(ip=n,n=px(Ek,"onSelect"),0Uu||(e.current=Pk[Uu],Pk[Uu]=null,Uu--)}function or(e,t){Uu++,Pk[Uu]=e.current,e.current=t}var pl={},En=kl(pl),Qn=kl(!1),Tc=pl;function jd(e,t){var r=e.type.contextTypes;if(!r)return pl;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in r)o[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Jn(e){return e=e.childContextTypes,e!=null}function gx(){lr(Qn),lr(En)}function PL(e,t,r){if(En.current!==pl)throw Error(Le(168));or(En,t),or(Qn,r)}function xU(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(Le(108,Ile(e)||"Unknown",o));return Rr({},r,n)}function vx(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pl,Tc=En.current,or(En,e),or(Qn,Qn.current),!0}function ML(e,t,r){var n=e.stateNode;if(!n)throw Error(Le(169));r?(e=xU(e,t,Tc),n.__reactInternalMemoizedMergedChildContext=e,lr(Qn),lr(En),or(En,e)):lr(Qn),or(Qn,r)}var _i=null,l8=!1,pC=!1;function _U(e){_i===null?_i=[e]:_i.push(e)}function Zce(e){l8=!0,_U(e)}function Rl(){if(!pC&&_i!==null){pC=!0;var e=0,t=qt;try{var r=_i;for(qt=1;e>=i,o-=i,ki=1<<32-wa(t)+o|r<k?(S=E,E=null):S=E.sibling;var R=h(m,E,v[k],d);if(R===null){E===null&&(E=S);break}e&&E&&R.alternate===null&&t(m,E),f=a(R,f,k),_===null?w=R:_.sibling=R,_=R,E=S}if(k===v.length)return r(m,E),vr&&ec(m,k),w;if(E===null){for(;kk?(S=E,E=null):S=E.sibling;var T=h(m,E,R.value,d);if(T===null){E===null&&(E=S);break}e&&E&&T.alternate===null&&t(m,E),f=a(T,f,k),_===null?w=T:_.sibling=T,_=T,E=S}if(R.done)return r(m,E),vr&&ec(m,k),w;if(E===null){for(;!R.done;k++,R=v.next())R=p(m,R.value,d),R!==null&&(f=a(R,f,k),_===null?w=R:_.sibling=R,_=R);return vr&&ec(m,k),w}for(E=n(m,E);!R.done;k++,R=v.next())R=g(E,m,k,R.value,d),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?k:R.key),f=a(R,f,k),_===null?w=R:_.sibling=R,_=R);return e&&E.forEach(function(P){return t(m,P)}),vr&&ec(m,k),w}function b(m,f,v,d){if(typeof v=="object"&&v!==null&&v.type===Fu&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case z5:e:{for(var w=v.key,_=f;_!==null;){if(_.key===w){if(w=v.type,w===Fu){if(_.tag===7){r(m,_.sibling),f=o(_,v.props.children),f.return=m,m=f;break e}}else if(_.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Cs&&DL(w)===_.type){r(m,_.sibling),f=o(_,v.props),f.ref=o0(m,_,v),f.return=m,m=f;break e}r(m,_);break}else t(m,_);_=_.sibling}v.type===Fu?(f=xc(v.props.children,m.mode,d,v.key),f.return=m,m=f):(d=rg(v.type,v.key,v.props,null,m.mode,d),d.ref=o0(m,f,v),d.return=m,m=d)}return i(m);case Du:e:{for(_=v.key;f!==null;){if(f.key===_)if(f.tag===4&&f.stateNode.containerInfo===v.containerInfo&&f.stateNode.implementation===v.implementation){r(m,f.sibling),f=o(f,v.children||[]),f.return=m,m=f;break e}else{r(m,f);break}else t(m,f);f=f.sibling}f=_C(v,m.mode,d),f.return=m,m=f}return i(m);case Cs:return _=v._init,b(m,f,_(v._payload),d)}if(T0(v))return x(m,f,v,d);if(Jf(v))return y(m,f,v,d);Z5(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,f!==null&&f.tag===6?(r(m,f.sibling),f=o(f,v),f.return=m,m=f):(r(m,f),f=xC(v,m.mode,d),f.return=m,m=f),i(m)):r(m,f)}return b}var Ld=PU(!0),MU=PU(!1),L1={},Wa=kl(L1),Up=kl(L1),Wp=kl(L1);function pc(e){if(e===L1)throw Error(Le(174));return e}function CT(e,t){switch(or(Wp,t),or(Up,e),or(Wa,L1),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:hk(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=hk(t,e)}lr(Wa),or(Wa,t)}function $d(){lr(Wa),lr(Up),lr(Wp)}function AU(e){pc(Wp.current);var t=pc(Wa.current),r=hk(t,e.type);t!==r&&(or(Up,e),or(Wa,r))}function OT(e){Up.current===e&&(lr(Wa),lr(Up))}var Er=kl(0);function Ex(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mC=[];function kT(){for(var e=0;er?r:4,e(!0);var n=gC.transition;gC.transition={};try{e(!1),t()}finally{qt=r,gC.transition=n}}function KU(){return Xo().memoizedState}function tue(e,t,r){var n=Zs(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},YU(e))XU(t,r);else if(r=kU(e,t,r,n),r!==null){var o=jn();xa(r,e,n,o),ZU(r,t,n)}}function rue(e,t,r){var n=Zs(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(YU(e))XU(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,_a(s,i)){var l=t.interleaved;l===null?(o.next=o,_T(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=kU(e,t,o,n),r!==null&&(o=jn(),xa(r,e,n,o),ZU(r,t,n))}}function YU(e){var t=e.alternate;return e===kr||t!==null&&t===kr}function XU(e,t){sp=Cx=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function ZU(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,lT(e,r)}}var Ox={readContext:Yo,useCallback:pn,useContext:pn,useEffect:pn,useImperativeHandle:pn,useInsertionEffect:pn,useLayoutEffect:pn,useMemo:pn,useReducer:pn,useRef:pn,useState:pn,useDebugValue:pn,useDeferredValue:pn,useTransition:pn,useMutableSource:pn,useSyncExternalStore:pn,useId:pn,unstable_isNewReconciler:!1},nue={readContext:Yo,useCallback:function(e,t){return $a().memoizedState=[e,t===void 0?null:t],e},useContext:Yo,useEffect:zL,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Qm(4194308,4,HU.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Qm(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qm(4,2,e,t)},useMemo:function(e,t){var r=$a();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=$a();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=tue.bind(null,kr,e),[n.memoizedState,e]},useRef:function(e){var t=$a();return e={current:e},t.memoizedState=e},useState:FL,useDebugValue:MT,useDeferredValue:function(e){return $a().memoizedState=e},useTransition:function(){var e=FL(!1),t=e[0];return e=eue.bind(null,e[1]),$a().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=kr,o=$a();if(vr){if(r===void 0)throw Error(Le(407));r=r()}else{if(r=t(),Qr===null)throw Error(Le(349));Mc&30||LU(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,zL(NU.bind(null,n,a,e),[e]),n.flags|=2048,Kp(9,$U.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=$a(),t=Qr.identifierPrefix;if(vr){var r=Ri,n=ki;r=(n&~(1<<32-wa(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=qp++,0")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{JE=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?S0(e):""}function Lle(e){switch(e.tag){case 5:return S0(e.type);case 16:return S0("Lazy");case 13:return S0("Suspense");case 19:return S0("SuspenseList");case 0:case 2:case 15:return e=eC(e.type,!1),e;case 11:return e=eC(e.type.render,!1),e;case 1:return e=eC(e.type,!0),e;default:return""}}function lk(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fu:return"Fragment";case Du:return"Portal";case ak:return"Profiler";case nT:return"StrictMode";case ik:return"Suspense";case sk:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case TH:return(e.displayName||"Context")+".Consumer";case SH:return(e._context.displayName||"Context")+".Provider";case oT:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case aT:return t=e.displayName||null,t!==null?t:lk(e.type)||"Memo";case Cs:t=e._payload,e=e._init;try{return lk(e(t))}catch{}}return null}function $le(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return lk(t);case 8:return t===nT?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function hl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function MH(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Nle(e){var t=MH(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){n=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function B5(e){e._valueTracker||(e._valueTracker=Nle(e))}function AH(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=MH(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function sx(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ck(e,t){var r=t.checked;return Rr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function nL(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=hl(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function jH(e,t){t=t.checked,t!=null&&rT(e,"checked",t,!1)}function uk(e,t){jH(e,t);var r=hl(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?dk(e,t.type,r):t.hasOwnProperty("defaultValue")&&dk(e,t.type,hl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function oL(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function dk(e,t,r){(t!=="number"||sx(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var T0=Array.isArray;function cd(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=V5.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ip(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var rp={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Dle=["Webkit","ms","Moz","O"];Object.keys(rp).forEach(function(e){Dle.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rp[t]=rp[e]})});function NH(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||rp.hasOwnProperty(e)&&rp[e]?(""+t).trim():t+"px"}function DH(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=NH(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var Fle=Rr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function pk(e,t){if(t){if(Fle[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Le(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Le(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Le(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Le(62))}}function mk(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var gk=null;function iT(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vk=null,ud=null,dd=null;function sL(e){if(e=I1(e)){if(typeof vk!="function")throw Error(Le(280));var t=e.stateNode;t&&(t=s8(t),vk(e.stateNode,e.type,t))}}function FH(e){ud?dd?dd.push(e):dd=[e]:ud=e}function zH(){if(ud){var e=ud,t=dd;if(dd=ud=null,sL(e),t)for(e=0;e>>=0,e===0?32:31-(Xle(e)/Zle|0)|0}var H5=64,U5=4194304;function P0(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dx(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~o;s!==0?n=P0(s):(a&=i,a!==0&&(n=P0(a)))}else i=r&~o,i!==0?n=P0(i):a!==0&&(n=P0(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function A1(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wa(t),e[t]=r}function tce(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=op),gL=String.fromCharCode(32),vL=!1;function iU(e,t){switch(e){case"keyup":return Tce.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sU(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zu=!1;function Mce(e,t){switch(e){case"compositionend":return sU(t);case"keypress":return t.which!==32?null:(vL=!0,gL);case"textInput":return e=t.data,e===gL&&vL?null:e;default:return null}}function Ace(e,t){if(zu)return e==="compositionend"||!pT&&iU(e,t)?(e=oU(),Km=dT=Is=null,zu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=xL(r)}}function dU(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dU(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fU(){for(var e=window,t=sx();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=sx(e.document)}return t}function mT(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Bce(e){var t=fU(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&dU(r.ownerDocument.documentElement,r)){if(n!==null&&mT(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=n.end===void 0?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=_L(r,a);var i=_L(r,n);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Bu=null,Ek=null,ip=null,Ck=!1;function EL(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ck||Bu==null||Bu!==sx(n)||(n=Bu,"selectionStart"in n&&mT(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ip&&zp(ip,n)||(ip=n,n=px(Ek,"onSelect"),0Uu||(e.current=Pk[Uu],Pk[Uu]=null,Uu--)}function or(e,t){Uu++,Pk[Uu]=e.current,e.current=t}var pl={},En=kl(pl),Qn=kl(!1),Tc=pl;function jd(e,t){var r=e.type.contextTypes;if(!r)return pl;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in r)o[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Jn(e){return e=e.childContextTypes,e!=null}function gx(){lr(Qn),lr(En)}function PL(e,t,r){if(En.current!==pl)throw Error(Le(168));or(En,t),or(Qn,r)}function xU(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(Le(108,$le(e)||"Unknown",o));return Rr({},r,n)}function vx(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pl,Tc=En.current,or(En,e),or(Qn,Qn.current),!0}function ML(e,t,r){var n=e.stateNode;if(!n)throw Error(Le(169));r?(e=xU(e,t,Tc),n.__reactInternalMemoizedMergedChildContext=e,lr(Qn),lr(En),or(En,e)):lr(Qn),or(Qn,r)}var _i=null,l8=!1,pC=!1;function _U(e){_i===null?_i=[e]:_i.push(e)}function Jce(e){l8=!0,_U(e)}function Rl(){if(!pC&&_i!==null){pC=!0;var e=0,t=qt;try{var r=_i;for(qt=1;e>=i,o-=i,ki=1<<32-wa(t)+o|r<k?(S=E,E=null):S=E.sibling;var R=h(m,E,v[k],d);if(R===null){E===null&&(E=S);break}e&&E&&R.alternate===null&&t(m,E),f=a(R,f,k),_===null?w=R:_.sibling=R,_=R,E=S}if(k===v.length)return r(m,E),vr&&ec(m,k),w;if(E===null){for(;kk?(S=E,E=null):S=E.sibling;var T=h(m,E,R.value,d);if(T===null){E===null&&(E=S);break}e&&E&&T.alternate===null&&t(m,E),f=a(T,f,k),_===null?w=T:_.sibling=T,_=T,E=S}if(R.done)return r(m,E),vr&&ec(m,k),w;if(E===null){for(;!R.done;k++,R=v.next())R=p(m,R.value,d),R!==null&&(f=a(R,f,k),_===null?w=R:_.sibling=R,_=R);return vr&&ec(m,k),w}for(E=n(m,E);!R.done;k++,R=v.next())R=g(E,m,k,R.value,d),R!==null&&(e&&R.alternate!==null&&E.delete(R.key===null?k:R.key),f=a(R,f,k),_===null?w=R:_.sibling=R,_=R);return e&&E.forEach(function(P){return t(m,P)}),vr&&ec(m,k),w}function b(m,f,v,d){if(typeof v=="object"&&v!==null&&v.type===Fu&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case z5:e:{for(var w=v.key,_=f;_!==null;){if(_.key===w){if(w=v.type,w===Fu){if(_.tag===7){r(m,_.sibling),f=o(_,v.props.children),f.return=m,m=f;break e}}else if(_.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Cs&&DL(w)===_.type){r(m,_.sibling),f=o(_,v.props),f.ref=o0(m,_,v),f.return=m,m=f;break e}r(m,_);break}else t(m,_);_=_.sibling}v.type===Fu?(f=xc(v.props.children,m.mode,d,v.key),f.return=m,m=f):(d=rg(v.type,v.key,v.props,null,m.mode,d),d.ref=o0(m,f,v),d.return=m,m=d)}return i(m);case Du:e:{for(_=v.key;f!==null;){if(f.key===_)if(f.tag===4&&f.stateNode.containerInfo===v.containerInfo&&f.stateNode.implementation===v.implementation){r(m,f.sibling),f=o(f,v.children||[]),f.return=m,m=f;break e}else{r(m,f);break}else t(m,f);f=f.sibling}f=_C(v,m.mode,d),f.return=m,m=f}return i(m);case Cs:return _=v._init,b(m,f,_(v._payload),d)}if(T0(v))return x(m,f,v,d);if(Jf(v))return y(m,f,v,d);Z5(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,f!==null&&f.tag===6?(r(m,f.sibling),f=o(f,v),f.return=m,m=f):(r(m,f),f=xC(v,m.mode,d),f.return=m,m=f),i(m)):r(m,f)}return b}var Ld=PU(!0),MU=PU(!1),L1={},Wa=kl(L1),Up=kl(L1),Wp=kl(L1);function pc(e){if(e===L1)throw Error(Le(174));return e}function CT(e,t){switch(or(Wp,t),or(Up,e),or(Wa,L1),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:hk(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=hk(t,e)}lr(Wa),or(Wa,t)}function $d(){lr(Wa),lr(Up),lr(Wp)}function AU(e){pc(Wp.current);var t=pc(Wa.current),r=hk(t,e.type);t!==r&&(or(Up,e),or(Wa,r))}function OT(e){Up.current===e&&(lr(Wa),lr(Up))}var Er=kl(0);function Ex(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mC=[];function kT(){for(var e=0;er?r:4,e(!0);var n=gC.transition;gC.transition={};try{e(!1),t()}finally{qt=r,gC.transition=n}}function KU(){return Xo().memoizedState}function nue(e,t,r){var n=Zs(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},YU(e))XU(t,r);else if(r=kU(e,t,r,n),r!==null){var o=jn();xa(r,e,n,o),ZU(r,t,n)}}function oue(e,t,r){var n=Zs(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(YU(e))XU(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,_a(s,i)){var l=t.interleaved;l===null?(o.next=o,_T(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=kU(e,t,o,n),r!==null&&(o=jn(),xa(r,e,n,o),ZU(r,t,n))}}function YU(e){var t=e.alternate;return e===kr||t!==null&&t===kr}function XU(e,t){sp=Cx=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function ZU(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,lT(e,r)}}var Ox={readContext:Yo,useCallback:pn,useContext:pn,useEffect:pn,useImperativeHandle:pn,useInsertionEffect:pn,useLayoutEffect:pn,useMemo:pn,useReducer:pn,useRef:pn,useState:pn,useDebugValue:pn,useDeferredValue:pn,useTransition:pn,useMutableSource:pn,useSyncExternalStore:pn,useId:pn,unstable_isNewReconciler:!1},aue={readContext:Yo,useCallback:function(e,t){return $a().memoizedState=[e,t===void 0?null:t],e},useContext:Yo,useEffect:zL,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Qm(4194308,4,HU.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Qm(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qm(4,2,e,t)},useMemo:function(e,t){var r=$a();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=$a();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=nue.bind(null,kr,e),[n.memoizedState,e]},useRef:function(e){var t=$a();return e={current:e},t.memoizedState=e},useState:FL,useDebugValue:MT,useDeferredValue:function(e){return $a().memoizedState=e},useTransition:function(){var e=FL(!1),t=e[0];return e=rue.bind(null,e[1]),$a().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=kr,o=$a();if(vr){if(r===void 0)throw Error(Le(407));r=r()}else{if(r=t(),Qr===null)throw Error(Le(349));Mc&30||LU(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,zL(NU.bind(null,n,a,e),[e]),n.flags|=2048,Kp(9,$U.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=$a(),t=Qr.identifierPrefix;if(vr){var r=Ri,n=ki;r=(n&~(1<<32-wa(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=qp++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[Ba]=t,e[Hp]=n,iW(e,t,!1,!1),t.stateNode=e;e:{switch(i=mk(r,n),r){case"dialog":ar("cancel",e),ar("close",e),o=n;break;case"iframe":case"object":case"embed":ar("load",e),o=n;break;case"video":case"audio":for(o=0;oDd&&(t.flags|=128,n=!0,a0(a,!1),t.lanes=4194304)}else{if(!n)if(e=Ex(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),a0(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!vr)return mn(t),null}else 2*Mr()-a.renderingStartTime>Dd&&r!==1073741824&&(t.flags|=128,n=!0,a0(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(r=a.last,r!==null?r.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Mr(),t.sibling=null,r=Er.current,or(Er,n?r&1|2:r&1),t):(mn(t),null);case 22:case 23:return NT(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?co&1073741824&&(mn(t),t.subtreeFlags&6&&(t.flags|=8192)):mn(t),null;case 24:return null;case 25:return null}throw Error(Le(156,t.tag))}function due(e,t){switch(vT(t),t.tag){case 1:return Jn(t.type)&&gx(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $d(),lr(Qn),lr(En),kT(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return OT(t),null;case 13:if(lr(Er),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Le(340));Id()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return lr(Er),null;case 4:return $d(),null;case 10:return xT(t.type._context),null;case 22:case 23:return NT(),null;case 24:return null;default:return null}}var J5=!1,xn=!1,fue=typeof WeakSet=="function"?WeakSet:Set,We=null;function Ku(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Sr(e,t,n)}else r.current=null}function Vk(e,t,r){try{r()}catch(n){Sr(e,t,n)}}var YL=!1;function hue(e,t){if(Ok=fx,e=fU(),mT(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var i=0,s=-1,l=-1,c=0,u=0,p=e,h=null;t:for(;;){for(var g;p!==r||o!==0&&p.nodeType!==3||(s=i+o),p!==a||n!==0&&p.nodeType!==3||(l=i+n),p.nodeType===3&&(i+=p.nodeValue.length),(g=p.firstChild)!==null;)h=p,p=g;for(;;){if(p===e)break t;if(h===r&&++c===o&&(s=i),h===a&&++u===n&&(l=i),(g=p.nextSibling)!==null)break;p=h,h=p.parentNode}p=g}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(kk={focusedElem:e,selectionRange:r},fx=!1,We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){t=We;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,b=x.memoizedState,m=t.stateNode,f=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:la(t.type,y),b);m.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Le(163))}}catch(d){Sr(t,t.return,d)}if(e=t.sibling,e!==null){e.return=t.return,We=e;break}We=t.return}return x=YL,YL=!1,x}function lp(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&Vk(t,r,a)}o=o.next}while(o!==n)}}function d8(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Hk(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function cW(e){var t=e.alternate;t!==null&&(e.alternate=null,cW(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ba],delete t[Hp],delete t[Tk],delete t[Yce],delete t[Xce])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function uW(e){return e.tag===5||e.tag===3||e.tag===4}function XL(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||uW(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Uk(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=mx));else if(n!==4&&(e=e.child,e!==null))for(Uk(e,t,r),e=e.sibling;e!==null;)Uk(e,t,r),e=e.sibling}function Wk(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Wk(e,t,r),e=e.sibling;e!==null;)Wk(e,t,r),e=e.sibling}var an=null,ua=!1;function gs(e,t,r){for(r=r.child;r!==null;)dW(e,t,r),r=r.sibling}function dW(e,t,r){if(Ua&&typeof Ua.onCommitFiberUnmount=="function")try{Ua.onCommitFiberUnmount(n8,r)}catch{}switch(r.tag){case 5:xn||Ku(r,t);case 6:var n=an,o=ua;an=null,gs(e,t,r),an=n,ua=o,an!==null&&(ua?(e=an,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):an.removeChild(r.stateNode));break;case 18:an!==null&&(ua?(e=an,r=r.stateNode,e.nodeType===8?hC(e.parentNode,r):e.nodeType===1&&hC(e,r),Dp(e)):hC(an,r.stateNode));break;case 4:n=an,o=ua,an=r.stateNode.containerInfo,ua=!0,gs(e,t,r),an=n,ua=o;break;case 0:case 11:case 14:case 15:if(!xn&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&Vk(r,t,i),o=o.next}while(o!==n)}gs(e,t,r);break;case 1:if(!xn&&(Ku(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Sr(r,t,s)}gs(e,t,r);break;case 21:gs(e,t,r);break;case 22:r.mode&1?(xn=(n=xn)||r.memoizedState!==null,gs(e,t,r),xn=n):gs(e,t,r);break;default:gs(e,t,r)}}function ZL(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new fue),t.forEach(function(n){var o=_ue.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function na(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=i),n&=~a}if(n=o,n=Mr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*mue(n/1960))-n,10e?16:e,Ls===null)var n=!1;else{if(e=Ls,Ls=null,Sx=0,Lt&6)throw Error(Le(331));var o=Lt;for(Lt|=4,We=e.current;We!==null;){var a=We,i=a.child;if(We.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lMr()-LT?wc(e,0):IT|=r),eo(e,t)}function yW(e,t){t===0&&(e.mode&1?(t=U5,U5<<=1,!(U5&130023424)&&(U5=4194304)):t=1);var r=jn();e=qi(e,t),e!==null&&(A1(e,t,r),eo(e,r))}function xue(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),yW(e,r)}function _ue(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Le(314))}n!==null&&n.delete(t),yW(e,r)}var wW;wW=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qn.current)Yn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Yn=!1,cue(e,t,r);Yn=!!(e.flags&131072)}else Yn=!1,vr&&t.flags&1048576&&EU(t,yx,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Jm(e,t),e=t.pendingProps;var o=jd(t,En.current);hd(t,r),o=ST(null,t,n,e,o,r);var a=TT();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Jn(n)?(a=!0,vx(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ET(t),o.updater=c8,t.stateNode=o,o._reactInternals=t,Lk(t,n,e,r),t=Dk(null,t,n,!0,a,r)):(t.tag=0,vr&&a&&gT(t),Mn(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Jm(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=Cue(n),e=la(n,e),o){case 0:t=Nk(null,t,n,e,r);break e;case 1:t=qL(null,t,n,e,r);break e;case 11:t=UL(null,t,n,e,r);break e;case 14:t=WL(null,t,n,la(n.type,e),r);break e}throw Error(Le(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:la(n,o),Nk(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:la(n,o),qL(e,t,n,o,r);case 3:e:{if(nW(t),e===null)throw Error(Le(387));n=t.pendingProps,a=t.memoizedState,o=a.element,RU(e,t),_x(t,n,null,r);var i=t.memoizedState;if(n=i.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Nd(Error(Le(423)),t),t=GL(e,t,n,r,o);break e}else if(n!==o){o=Nd(Error(Le(424)),t),t=GL(e,t,n,r,o);break e}else for(po=Ks(t.stateNode.containerInfo.firstChild),bo=t,vr=!0,ha=null,r=MU(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Id(),n===o){t=Gi(e,t,r);break e}Mn(e,t,n,r)}t=t.child}return t;case 5:return AU(t),e===null&&Ak(t),n=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,Rk(n,o)?i=null:a!==null&&Rk(n,a)&&(t.flags|=32),rW(e,t),Mn(e,t,i,r),t.child;case 6:return e===null&&Ak(t),null;case 13:return oW(e,t,r);case 4:return CT(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ld(t,null,n,r):Mn(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:la(n,o),UL(e,t,n,o,r);case 7:return Mn(e,t,t.pendingProps,r),t.child;case 8:return Mn(e,t,t.pendingProps.children,r),t.child;case 12:return Mn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,or(wx,n._currentValue),n._currentValue=i,a!==null)if(_a(a.value,i)){if(a.children===o.children&&!Qn.current){t=Gi(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=Ii(-1,r&-r),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),jk(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(Le(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),jk(i,r,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Mn(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,hd(t,r),o=Yo(o),n=n(o),t.flags|=1,Mn(e,t,n,r),t.child;case 14:return n=t.type,o=la(n,t.pendingProps),o=la(n.type,o),WL(e,t,n,o,r);case 15:return eW(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:la(n,o),Jm(e,t),t.tag=1,Jn(n)?(e=!0,vx(t)):e=!1,hd(t,r),TU(t,n,o),Lk(t,n,o,r),Dk(null,t,n,!0,e,r);case 19:return aW(e,t,r);case 22:return tW(e,t,r)}throw Error(Le(156,t.tag))};function xW(e,t){return GH(e,t)}function Eue(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ho(e,t,r,n){return new Eue(e,t,r,n)}function FT(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Cue(e){if(typeof e=="function")return FT(e)?1:0;if(e!=null){if(e=e.$$typeof,e===oT)return 11;if(e===aT)return 14}return 2}function Qs(e,t){var r=e.alternate;return r===null?(r=Ho(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function rg(e,t,r,n,o,a){var i=2;if(n=e,typeof e=="function")FT(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Fu:return xc(r.children,o,a,t);case nT:i=8,o|=8;break;case ak:return e=Ho(12,r,t,o|2),e.elementType=ak,e.lanes=a,e;case ik:return e=Ho(13,r,t,o),e.elementType=ik,e.lanes=a,e;case sk:return e=Ho(19,r,t,o),e.elementType=sk,e.lanes=a,e;case PH:return h8(r,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case SH:i=10;break e;case TH:i=9;break e;case oT:i=11;break e;case aT:i=14;break e;case Cs:i=16,n=null;break e}throw Error(Le(130,e==null?e:typeof e,""))}return t=Ho(i,r,t,o),t.elementType=e,t.type=n,t.lanes=a,t}function xc(e,t,r,n){return e=Ho(7,e,n,t),e.lanes=r,e}function h8(e,t,r,n){return e=Ho(22,e,n,t),e.elementType=PH,e.lanes=r,e.stateNode={isHidden:!1},e}function xC(e,t,r){return e=Ho(6,e,null,t),e.lanes=r,e}function _C(e,t,r){return t=Ho(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Oue(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rC(0),this.expirationTimes=rC(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rC(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zT(e,t,r,n,o,a,i,s,l){return e=new Oue(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Ho(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ET(a),e}function kue(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(OW)}catch(e){console.error(e)}}OW(),EH.exports=Co;var Zo=EH.exports;const Mue=Cl(Zo);var a$=Zo;nk.createRoot=a$.createRoot,nk.hydrateRoot=a$.hydrateRoot;/** +`+a.stack}return{value:e,source:t,stack:o,digest:null}}function yC(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function $k(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var lue=typeof WeakMap=="function"?WeakMap:Map;function QU(e,t,r){r=Ii(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Rx||(Rx=!0,qk=n),$k(e,t)},r}function JU(e,t,r){r=Ii(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){$k(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){$k(e,t),typeof n!="function"&&(Xs===null?Xs=new Set([this]):Xs.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function BL(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new lue;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=_ue.bind(null,e,t,r),t.then(e,e))}function VL(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function HL(e,t,r,n,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Ii(-1,1),t.tag=2,Ys(r,t,1))),r.lanes|=1),e)}var cue=Ji.ReactCurrentOwner,Yn=!1;function Mn(e,t,r,n){t.child=e===null?MU(t,null,r,n):Ld(t,e.child,r,n)}function UL(e,t,r,n,o){r=r.render;var a=t.ref;return hd(t,o),n=ST(e,t,r,n,a,o),r=TT(),e!==null&&!Yn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gi(e,t,o)):(vr&&r&&gT(t),t.flags|=1,Mn(e,t,n,o),t.child)}function WL(e,t,r,n,o){if(e===null){var a=r.type;return typeof a=="function"&&!FT(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,eW(e,t,a,n,o)):(e=rg(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if(r=r.compare,r=r!==null?r:zp,r(i,n)&&e.ref===t.ref)return Gi(e,t,o)}return t.flags|=1,e=Qs(a,n),e.ref=t.ref,e.return=t,t.child=e}function eW(e,t,r,n,o){if(e!==null){var a=e.memoizedProps;if(zp(a,n)&&e.ref===t.ref)if(Yn=!1,t.pendingProps=n=a,(e.lanes&o)!==0)e.flags&131072&&(Yn=!0);else return t.lanes=e.lanes,Gi(e,t,o)}return Nk(e,t,r,n,o)}function tW(e,t,r){var n=t.pendingProps,o=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},or(Yu,co),co|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,or(Yu,co),co|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,or(Yu,co),co|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,or(Yu,co),co|=n;return Mn(e,t,o,r),t.child}function rW(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Nk(e,t,r,n,o){var a=Jn(r)?Tc:En.current;return a=jd(t,a),hd(t,o),r=ST(e,t,r,n,a,o),n=TT(),e!==null&&!Yn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gi(e,t,o)):(vr&&n&&gT(t),t.flags|=1,Mn(e,t,r,o),t.child)}function qL(e,t,r,n,o){if(Jn(r)){var a=!0;vx(t)}else a=!1;if(hd(t,o),t.stateNode===null)Jm(e,t),TU(t,r,n),Lk(t,r,n,o),n=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=r.contextType;typeof c=="object"&&c!==null?c=Yo(c):(c=Jn(r)?Tc:En.current,c=jd(t,c));var u=r.getDerivedStateFromProps,p=typeof u=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==n||l!==c)&&NL(t,i,n,c),Os=!1;var h=t.memoizedState;i.state=h,_x(t,n,i,o),l=t.memoizedState,s!==n||h!==l||Qn.current||Os?(typeof u=="function"&&(Ik(t,r,u,n),l=t.memoizedState),(s=Os||$L(t,r,s,n,h,l,c))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),i.props=n,i.state=l,i.context=c,n=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,RU(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:la(t.type,s),i.props=c,p=t.pendingProps,h=i.context,l=r.contextType,typeof l=="object"&&l!==null?l=Yo(l):(l=Jn(r)?Tc:En.current,l=jd(t,l));var g=r.getDerivedStateFromProps;(u=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==p||h!==l)&&NL(t,i,n,l),Os=!1,h=t.memoizedState,i.state=h,_x(t,n,i,o);var x=t.memoizedState;s!==p||h!==x||Qn.current||Os?(typeof g=="function"&&(Ik(t,r,g,n),x=t.memoizedState),(c=Os||$L(t,r,c,n,h,x,l)||!1)?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,x,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,x,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=x),i.props=n,i.state=x,i.context=l,n=c):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return Dk(e,t,r,n,a,o)}function Dk(e,t,r,n,o,a){rW(e,t);var i=(t.flags&128)!==0;if(!n&&!i)return o&&ML(t,r,!1),Gi(e,t,a);n=t.stateNode,cue.current=t;var s=i&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&i?(t.child=Ld(t,e.child,null,a),t.child=Ld(t,null,s,a)):Mn(e,t,s,a),t.memoizedState=n.state,o&&ML(t,r,!0),t.child}function nW(e){var t=e.stateNode;t.pendingContext?PL(e,t.pendingContext,t.pendingContext!==t.context):t.context&&PL(e,t.context,!1),CT(e,t.containerInfo)}function GL(e,t,r,n,o){return Id(),bT(o),t.flags|=256,Mn(e,t,r,n),t.child}var Fk={dehydrated:null,treeContext:null,retryLane:0};function zk(e){return{baseLanes:e,cachePool:null,transitions:null}}function oW(e,t,r){var n=t.pendingProps,o=Er.current,a=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),or(Er,o&1),e===null)return Ak(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=n.children,e=n.fallback,a?(n=t.mode,a=t.child,i={mode:"hidden",children:i},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=i):a=h8(i,n,0,null),e=xc(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=zk(r),t.memoizedState=Fk,e):AT(t,i));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return uue(e,t,i,n,s,o,r);if(a){a=n.fallback,i=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:n.children};return!(i&1)&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Qs(o,l),n.subtreeFlags=o.subtreeFlags&14680064),s!==null?a=Qs(s,a):(a=xc(a,i,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,i=e.child.memoizedState,i=i===null?zk(r):{baseLanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},a.memoizedState=i,a.childLanes=e.childLanes&~r,t.memoizedState=Fk,n}return a=e.child,e=a.sibling,n=Qs(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function AT(e,t){return t=h8({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Q5(e,t,r,n){return n!==null&&bT(n),Ld(t,e.child,null,r),e=AT(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uue(e,t,r,n,o,a,i){if(r)return t.flags&256?(t.flags&=-257,n=yC(Error(Le(422))),Q5(e,t,i,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,o=t.mode,n=h8({mode:"visible",children:n.children},o,0,null),a=xc(a,o,i,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&Ld(t,e.child,null,i),t.child.memoizedState=zk(i),t.memoizedState=Fk,a);if(!(t.mode&1))return Q5(e,t,i,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var s=n.dgst;return n=s,a=Error(Le(419)),n=yC(a,n,void 0),Q5(e,t,i,n)}if(s=(i&e.childLanes)!==0,Yn||s){if(n=Qr,n!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(n.suspendedLanes|i)?0:o,o!==0&&o!==a.retryLane&&(a.retryLane=o,qi(e,o),xa(n,e,o,-1))}return DT(),n=yC(Error(Le(421))),Q5(e,t,i,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Eue.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,po=Ks(o.nextSibling),bo=t,vr=!0,ha=null,e!==null&&(Fo[zo++]=ki,Fo[zo++]=Ri,Fo[zo++]=Pc,ki=e.id,Ri=e.overflow,Pc=t),t=AT(t,n.children),t.flags|=4096,t)}function KL(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),jk(e.return,t,r)}function wC(e,t,r,n,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=o)}function aW(e,t,r){var n=t.pendingProps,o=n.revealOrder,a=n.tail;if(Mn(e,t,n.children,r),n=Er.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&KL(e,r,t);else if(e.tag===19)KL(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(or(Er,n),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&Ex(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),wC(t,!1,o,r,a);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ex(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}wC(t,!0,r,null,a);break;case"together":wC(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Jm(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gi(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ac|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Le(153));if(t.child!==null){for(e=t.child,r=Qs(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Qs(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function due(e,t,r){switch(t.tag){case 3:nW(t),Id();break;case 5:AU(t);break;case 1:Jn(t.type)&&vx(t);break;case 4:CT(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;or(wx,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(or(Er,Er.current&1),t.flags|=128,null):r&t.child.childLanes?oW(e,t,r):(or(Er,Er.current&1),e=Gi(e,t,r),e!==null?e.sibling:null);or(Er,Er.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return aW(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),or(Er,Er.current),n)break;return null;case 22:case 23:return t.lanes=0,tW(e,t,r)}return Gi(e,t,r)}var iW,Bk,sW,lW;iW=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Bk=function(){};sW=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,pc(Wa.current);var a=null;switch(r){case"input":o=ck(e,o),n=ck(e,n),a=[];break;case"select":o=Rr({},o,{value:void 0}),n=Rr({},n,{value:void 0}),a=[];break;case"textarea":o=fk(e,o),n=fk(e,n),a=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=mx)}pk(r,n);var i;r=null;for(c in o)if(!n.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var s=o[c];for(i in s)s.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(jp.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in n){var l=n[c];if(s=o!=null?o[c]:void 0,n.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(i in s)!s.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in l)l.hasOwnProperty(i)&&s[i]!==l[i]&&(r||(r={}),r[i]=l[i])}else r||(a||(a=[]),a.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(jp.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&ar("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}r&&(a=a||[]).push("style",r);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};lW=function(e,t,r,n){r!==n&&(t.flags|=4)};function a0(e,t){if(!vr)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function mn(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function fue(e,t,r){var n=t.pendingProps;switch(vT(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mn(t),null;case 1:return Jn(t.type)&&gx(),mn(t),null;case 3:return n=t.stateNode,$d(),lr(Qn),lr(En),kT(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(X5(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ha!==null&&(Yk(ha),ha=null))),Bk(e,t),mn(t),null;case 5:OT(t);var o=pc(Wp.current);if(r=t.type,e!==null&&t.stateNode!=null)sW(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Le(166));return mn(t),null}if(e=pc(Wa.current),X5(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Ba]=t,n[Hp]=a,e=(t.mode&1)!==0,r){case"dialog":ar("cancel",n),ar("close",n);break;case"iframe":case"object":case"embed":ar("load",n);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[Ba]=t,e[Hp]=n,iW(e,t,!1,!1),t.stateNode=e;e:{switch(i=mk(r,n),r){case"dialog":ar("cancel",e),ar("close",e),o=n;break;case"iframe":case"object":case"embed":ar("load",e),o=n;break;case"video":case"audio":for(o=0;oDd&&(t.flags|=128,n=!0,a0(a,!1),t.lanes=4194304)}else{if(!n)if(e=Ex(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),a0(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!vr)return mn(t),null}else 2*Mr()-a.renderingStartTime>Dd&&r!==1073741824&&(t.flags|=128,n=!0,a0(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(r=a.last,r!==null?r.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Mr(),t.sibling=null,r=Er.current,or(Er,n?r&1|2:r&1),t):(mn(t),null);case 22:case 23:return NT(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?co&1073741824&&(mn(t),t.subtreeFlags&6&&(t.flags|=8192)):mn(t),null;case 24:return null;case 25:return null}throw Error(Le(156,t.tag))}function hue(e,t){switch(vT(t),t.tag){case 1:return Jn(t.type)&&gx(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $d(),lr(Qn),lr(En),kT(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return OT(t),null;case 13:if(lr(Er),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Le(340));Id()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return lr(Er),null;case 4:return $d(),null;case 10:return xT(t.type._context),null;case 22:case 23:return NT(),null;case 24:return null;default:return null}}var J5=!1,xn=!1,pue=typeof WeakSet=="function"?WeakSet:Set,We=null;function Ku(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Sr(e,t,n)}else r.current=null}function Vk(e,t,r){try{r()}catch(n){Sr(e,t,n)}}var YL=!1;function mue(e,t){if(Ok=fx,e=fU(),mT(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var i=0,s=-1,l=-1,c=0,u=0,p=e,h=null;t:for(;;){for(var g;p!==r||o!==0&&p.nodeType!==3||(s=i+o),p!==a||n!==0&&p.nodeType!==3||(l=i+n),p.nodeType===3&&(i+=p.nodeValue.length),(g=p.firstChild)!==null;)h=p,p=g;for(;;){if(p===e)break t;if(h===r&&++c===o&&(s=i),h===a&&++u===n&&(l=i),(g=p.nextSibling)!==null)break;p=h,h=p.parentNode}p=g}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(kk={focusedElem:e,selectionRange:r},fx=!1,We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){t=We;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,b=x.memoizedState,m=t.stateNode,f=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:la(t.type,y),b);m.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Le(163))}}catch(d){Sr(t,t.return,d)}if(e=t.sibling,e!==null){e.return=t.return,We=e;break}We=t.return}return x=YL,YL=!1,x}function lp(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&Vk(t,r,a)}o=o.next}while(o!==n)}}function d8(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Hk(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function cW(e){var t=e.alternate;t!==null&&(e.alternate=null,cW(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ba],delete t[Hp],delete t[Tk],delete t[Zce],delete t[Qce])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function uW(e){return e.tag===5||e.tag===3||e.tag===4}function XL(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||uW(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Uk(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=mx));else if(n!==4&&(e=e.child,e!==null))for(Uk(e,t,r),e=e.sibling;e!==null;)Uk(e,t,r),e=e.sibling}function Wk(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Wk(e,t,r),e=e.sibling;e!==null;)Wk(e,t,r),e=e.sibling}var an=null,ua=!1;function gs(e,t,r){for(r=r.child;r!==null;)dW(e,t,r),r=r.sibling}function dW(e,t,r){if(Ua&&typeof Ua.onCommitFiberUnmount=="function")try{Ua.onCommitFiberUnmount(n8,r)}catch{}switch(r.tag){case 5:xn||Ku(r,t);case 6:var n=an,o=ua;an=null,gs(e,t,r),an=n,ua=o,an!==null&&(ua?(e=an,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):an.removeChild(r.stateNode));break;case 18:an!==null&&(ua?(e=an,r=r.stateNode,e.nodeType===8?hC(e.parentNode,r):e.nodeType===1&&hC(e,r),Dp(e)):hC(an,r.stateNode));break;case 4:n=an,o=ua,an=r.stateNode.containerInfo,ua=!0,gs(e,t,r),an=n,ua=o;break;case 0:case 11:case 14:case 15:if(!xn&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&Vk(r,t,i),o=o.next}while(o!==n)}gs(e,t,r);break;case 1:if(!xn&&(Ku(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Sr(r,t,s)}gs(e,t,r);break;case 21:gs(e,t,r);break;case 22:r.mode&1?(xn=(n=xn)||r.memoizedState!==null,gs(e,t,r),xn=n):gs(e,t,r);break;default:gs(e,t,r)}}function ZL(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new pue),t.forEach(function(n){var o=Cue.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function na(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=i),n&=~a}if(n=o,n=Mr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*vue(n/1960))-n,10e?16:e,Ls===null)var n=!1;else{if(e=Ls,Ls=null,Sx=0,Lt&6)throw Error(Le(331));var o=Lt;for(Lt|=4,We=e.current;We!==null;){var a=We,i=a.child;if(We.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lMr()-LT?wc(e,0):IT|=r),eo(e,t)}function yW(e,t){t===0&&(e.mode&1?(t=U5,U5<<=1,!(U5&130023424)&&(U5=4194304)):t=1);var r=jn();e=qi(e,t),e!==null&&(A1(e,t,r),eo(e,r))}function Eue(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),yW(e,r)}function Cue(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Le(314))}n!==null&&n.delete(t),yW(e,r)}var wW;wW=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qn.current)Yn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Yn=!1,due(e,t,r);Yn=!!(e.flags&131072)}else Yn=!1,vr&&t.flags&1048576&&EU(t,yx,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Jm(e,t),e=t.pendingProps;var o=jd(t,En.current);hd(t,r),o=ST(null,t,n,e,o,r);var a=TT();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Jn(n)?(a=!0,vx(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ET(t),o.updater=c8,t.stateNode=o,o._reactInternals=t,Lk(t,n,e,r),t=Dk(null,t,n,!0,a,r)):(t.tag=0,vr&&a&&gT(t),Mn(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Jm(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=kue(n),e=la(n,e),o){case 0:t=Nk(null,t,n,e,r);break e;case 1:t=qL(null,t,n,e,r);break e;case 11:t=UL(null,t,n,e,r);break e;case 14:t=WL(null,t,n,la(n.type,e),r);break e}throw Error(Le(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:la(n,o),Nk(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:la(n,o),qL(e,t,n,o,r);case 3:e:{if(nW(t),e===null)throw Error(Le(387));n=t.pendingProps,a=t.memoizedState,o=a.element,RU(e,t),_x(t,n,null,r);var i=t.memoizedState;if(n=i.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Nd(Error(Le(423)),t),t=GL(e,t,n,r,o);break e}else if(n!==o){o=Nd(Error(Le(424)),t),t=GL(e,t,n,r,o);break e}else for(po=Ks(t.stateNode.containerInfo.firstChild),bo=t,vr=!0,ha=null,r=MU(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Id(),n===o){t=Gi(e,t,r);break e}Mn(e,t,n,r)}t=t.child}return t;case 5:return AU(t),e===null&&Ak(t),n=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,Rk(n,o)?i=null:a!==null&&Rk(n,a)&&(t.flags|=32),rW(e,t),Mn(e,t,i,r),t.child;case 6:return e===null&&Ak(t),null;case 13:return oW(e,t,r);case 4:return CT(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ld(t,null,n,r):Mn(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:la(n,o),UL(e,t,n,o,r);case 7:return Mn(e,t,t.pendingProps,r),t.child;case 8:return Mn(e,t,t.pendingProps.children,r),t.child;case 12:return Mn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,or(wx,n._currentValue),n._currentValue=i,a!==null)if(_a(a.value,i)){if(a.children===o.children&&!Qn.current){t=Gi(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=Ii(-1,r&-r),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),jk(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(Le(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),jk(i,r,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Mn(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,hd(t,r),o=Yo(o),n=n(o),t.flags|=1,Mn(e,t,n,r),t.child;case 14:return n=t.type,o=la(n,t.pendingProps),o=la(n.type,o),WL(e,t,n,o,r);case 15:return eW(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:la(n,o),Jm(e,t),t.tag=1,Jn(n)?(e=!0,vx(t)):e=!1,hd(t,r),TU(t,n,o),Lk(t,n,o,r),Dk(null,t,n,!0,e,r);case 19:return aW(e,t,r);case 22:return tW(e,t,r)}throw Error(Le(156,t.tag))};function xW(e,t){return GH(e,t)}function Oue(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ho(e,t,r,n){return new Oue(e,t,r,n)}function FT(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kue(e){if(typeof e=="function")return FT(e)?1:0;if(e!=null){if(e=e.$$typeof,e===oT)return 11;if(e===aT)return 14}return 2}function Qs(e,t){var r=e.alternate;return r===null?(r=Ho(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function rg(e,t,r,n,o,a){var i=2;if(n=e,typeof e=="function")FT(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Fu:return xc(r.children,o,a,t);case nT:i=8,o|=8;break;case ak:return e=Ho(12,r,t,o|2),e.elementType=ak,e.lanes=a,e;case ik:return e=Ho(13,r,t,o),e.elementType=ik,e.lanes=a,e;case sk:return e=Ho(19,r,t,o),e.elementType=sk,e.lanes=a,e;case PH:return h8(r,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case SH:i=10;break e;case TH:i=9;break e;case oT:i=11;break e;case aT:i=14;break e;case Cs:i=16,n=null;break e}throw Error(Le(130,e==null?e:typeof e,""))}return t=Ho(i,r,t,o),t.elementType=e,t.type=n,t.lanes=a,t}function xc(e,t,r,n){return e=Ho(7,e,n,t),e.lanes=r,e}function h8(e,t,r,n){return e=Ho(22,e,n,t),e.elementType=PH,e.lanes=r,e.stateNode={isHidden:!1},e}function xC(e,t,r){return e=Ho(6,e,null,t),e.lanes=r,e}function _C(e,t,r){return t=Ho(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rue(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rC(0),this.expirationTimes=rC(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rC(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zT(e,t,r,n,o,a,i,s,l){return e=new Rue(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Ho(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ET(a),e}function Sue(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(OW)}catch(e){console.error(e)}}OW(),EH.exports=Co;var Zo=EH.exports;const jue=Cl(Zo);var a$=Zo;nk.createRoot=a$.createRoot,nk.hydrateRoot=a$.hydrateRoot;/** * @remix-run/router v1.7.2 * * Copyright (c) Remix Software Inc. @@ -46,8 +46,8 @@ Error generating stack: `+a.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fd(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function jue(){return Math.random().toString(36).substr(2,8)}function s$(e,t){return{usr:e.state,key:e.key,idx:t}}function Xp(e,t,r,n){return r===void 0&&(r=null),mr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?es(t):t,{state:r,key:t&&t.key||n||jue()})}function Ic(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function es(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Iue(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:a=!1}=n,i=o.history,s=$r.Pop,l=null,c=u();c==null&&(c=0,i.replaceState(mr({},i.state,{idx:c}),""));function u(){return(i.state||{idx:null}).idx}function p(){s=$r.Pop;let b=u(),m=b==null?null:b-c;c=b,l&&l({action:s,location:y.location,delta:m})}function h(b,m){s=$r.Push;let f=Xp(y.location,b,m);r&&r(f,b),c=u()+1;let v=s$(f,c),d=y.createHref(f);try{i.pushState(v,"",d)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;o.location.assign(d)}a&&l&&l({action:s,location:y.location,delta:1})}function g(b,m){s=$r.Replace;let f=Xp(y.location,b,m);r&&r(f,b),c=u();let v=s$(f,c),d=y.createHref(f);i.replaceState(v,"",d),a&&l&&l({action:s,location:y.location,delta:0})}function x(b){let m=o.location.origin!=="null"?o.location.origin:o.location.href,f=typeof b=="string"?b:Ic(b);return xt(m,"No window.location.(origin|href) available to create URL for href: "+f),new URL(f,m)}let y={get action(){return s},get location(){return e(o,i)},listen(b){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(i$,p),l=b,()=>{o.removeEventListener(i$,p),l=null}},createHref(b){return t(o,b)},createURL:x,encodeLocation(b){let m=x(b);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:g,go(b){return i.go(b)}};return y}var zr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zr||(zr={}));const Lue=new Set(["lazy","caseSensitive","path","id","index","children"]);function $ue(e){return e.index===!0}function Xk(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((o,a)=>{let i=[...r,a],s=typeof o.id=="string"?o.id:i.join("-");if(xt(o.index!==!0||!o.children,"Cannot specify children on an index route"),xt(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),$ue(o)){let l=mr({},o,t(o),{id:s});return n[s]=l,l}else{let l=mr({},o,t(o),{id:s,children:void 0});return n[s]=l,o.children&&(l.children=Xk(o.children,t,i,n)),l}})}function Xu(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?es(t):t,o=ff(n.pathname||"/",r);if(o==null)return null;let a=kW(e);Nue(a);let i=null;for(let s=0;i==null&&s{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};l.relativePath.startsWith("/")&&(xt(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=Li([n,l.relativePath]),u=r.concat(l);a.children&&a.children.length>0&&(xt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),kW(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:Uue(c,a.index),routesMeta:u})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let l of RW(a.path))o(a,i,l)}),t}function RW(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let i=RW(n.join("/")),s=[];return s.push(...i.map(l=>l===""?a:[a,l].join("/"))),o&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Nue(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Wue(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Due=/^:\w+$/,Fue=3,zue=2,Bue=1,Vue=10,Hue=-2,l$=e=>e==="*";function Uue(e,t){let r=e.split("/"),n=r.length;return r.some(l$)&&(n+=Hue),t&&(n+=zue),r.filter(o=>!l$(o)).reduce((o,a)=>o+(Due.test(a)?Fue:a===""?Bue:Vue),n)}function Wue(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function que(e,t){let{routesMeta:r}=e,n={},o="/",a=[];for(let i=0;i{if(u==="*"){let h=s[p]||"";i=a.slice(0,a.length-h.length).replace(/(.)\/+$/,"$1")}return c[u]=Xue(s[p]||"",u),c},{}),pathname:a,pathnameBase:i,pattern:e}}function Kue(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Fd(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(i,s)=>(n.push(s),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function Yue(e){try{return decodeURI(e)}catch(t){return Fd(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Xue(e,t){try{return decodeURIComponent(e)}catch(r){return Fd(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function ff(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Zue(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?es(e):e;return{pathname:r?r.startsWith("/")?r:Que(r,t):t,search:ede(n),hash:tde(o)}}function Que(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function EC(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function $1(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function b8(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=es(e):(o=mr({},e),xt(!o.pathname||!o.pathname.includes("?"),EC("?","pathname","search",o)),xt(!o.pathname||!o.pathname.includes("#"),EC("#","pathname","hash",o)),xt(!o.search||!o.search.includes("#"),EC("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(n||i==null)s=r;else{let p=t.length-1;if(i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),p-=1;o.pathname=h.join("/")}s=p>=0?t[p]:"/"}let l=Zue(o,s),c=i&&i!=="/"&&i.endsWith("/"),u=(a||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Li=e=>e.join("/").replace(/\/\/+/g,"/"),Jue=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ede=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,tde=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class UT{constructor(t,r,n,o){o===void 0&&(o=!1),this.status=t,this.statusText=r||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function SW(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const TW=["post","put","patch","delete"],rde=new Set(TW),nde=["get",...TW],ode=new Set(nde),ade=new Set([301,302,303,307,308]),ide=new Set([307,308]),CC={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},sde={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},s0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},PW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lde=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function cde(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;xt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let ge=e.detectErrorBoundary;o=ve=>({hasErrorBoundary:ge(ve)})}else o=lde;let a={},i=Xk(e.routes,o,void 0,a),s,l=e.basename||"/",c=mr({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),u=null,p=new Set,h=null,g=null,x=null,y=e.hydrationData!=null,b=Xu(i,e.history.location,l),m=null;if(b==null){let ge=$o(404,{pathname:e.history.location.pathname}),{matches:ve,route:Ae}=g$(i);b=ve,m={[Ae.id]:ge}}let f=!b.some(ge=>ge.route.lazy)&&(!b.some(ge=>ge.route.loader)||e.hydrationData!=null),v,d={historyAction:e.history.action,location:e.history.location,matches:b,initialized:f,navigation:CC,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||m,fetchers:new Map,blockers:new Map},w=$r.Pop,_=!1,E,k=!1,S=!1,R=[],T=[],P=new Map,j=0,L=-1,D=new Map,B=new Set,V=new Map,q=new Map,z=new Map,F=!1;function N(){return u=e.history.listen(ge=>{let{action:ve,location:Ae,delta:He}=ge;if(F){F=!1;return}Fd(z.size===0||He!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let rt=tt({currentLocation:d.location,nextLocation:Ae,historyAction:ve});if(rt&&He!=null){F=!0,e.history.go(He*-1),Be(rt,{state:"blocked",location:Ae,proceed(){Be(rt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ae}),e.history.go(He)},reset(){let st=new Map(d.blockers);st.set(rt,s0),Q({blockers:st})}});return}return ae(ve,Ae)}),d.initialized||ae($r.Pop,d.location),v}function W(){u&&u(),p.clear(),E&&E.abort(),d.fetchers.forEach((ge,ve)=>be(ve)),d.blockers.forEach((ge,ve)=>Ee(ve))}function G(ge){return p.add(ge),()=>p.delete(ge)}function Q(ge){d=mr({},d,ge),p.forEach(ve=>ve(d))}function Z(ge,ve){var Ae,He;let rt=d.actionData!=null&&d.navigation.formMethod!=null&&da(d.navigation.formMethod)&&d.navigation.state==="loading"&&((Ae=ge.state)==null?void 0:Ae._isRedirect)!==!0,st;ve.actionData?Object.keys(ve.actionData).length>0?st=ve.actionData:st=null:rt?st=d.actionData:st=null;let ut=ve.loaderData?m$(d.loaderData,ve.loaderData,ve.matches||[],ve.errors):d.loaderData,Xe=d.blockers;Xe.size>0&&(Xe=new Map(Xe),Xe.forEach((At,$t)=>Xe.set($t,s0)));let Ke=_===!0||d.navigation.formMethod!=null&&da(d.navigation.formMethod)&&((He=ge.state)==null?void 0:He._isRedirect)!==!0;s&&(i=s,s=void 0),k||w===$r.Pop||(w===$r.Push?e.history.push(ge,ge.state):w===$r.Replace&&e.history.replace(ge,ge.state)),Q(mr({},ve,{actionData:st,loaderData:ut,historyAction:w,location:ge,initialized:!0,navigation:CC,revalidation:"idle",restoreScrollPosition:Nn(ge,ve.matches||d.matches),preventScrollReset:Ke,blockers:Xe})),w=$r.Pop,_=!1,k=!1,S=!1,R=[],T=[]}async function U(ge,ve){if(typeof ge=="number"){e.history.go(ge);return}let Ae=Zk(d.location,d.matches,l,c.v7_prependBasename,ge,ve==null?void 0:ve.fromRouteId,ve==null?void 0:ve.relative),{path:He,submission:rt,error:st}=c$(c.v7_normalizeFormMethod,!1,Ae,ve),ut=d.location,Xe=Xp(d.location,He,ve&&ve.state);Xe=mr({},Xe,e.history.encodeLocation(Xe));let Ke=ve&&ve.replace!=null?ve.replace:void 0,At=$r.Push;Ke===!0?At=$r.Replace:Ke===!1||rt!=null&&da(rt.formMethod)&&rt.formAction===d.location.pathname+d.location.search&&(At=$r.Replace);let $t=ve&&"preventScrollReset"in ve?ve.preventScrollReset===!0:void 0,kt=tt({currentLocation:ut,nextLocation:Xe,historyAction:At});if(kt){Be(kt,{state:"blocked",location:Xe,proceed(){Be(kt,{state:"proceeding",proceed:void 0,reset:void 0,location:Xe}),U(ge,ve)},reset(){let er=new Map(d.blockers);er.set(kt,s0),Q({blockers:er})}});return}return await ae(At,Xe,{submission:rt,pendingError:st,preventScrollReset:$t,replace:ve&&ve.replace})}function J(){if(Ie(),Q({revalidation:"loading"}),d.navigation.state!=="submitting"){if(d.navigation.state==="idle"){ae(d.historyAction,d.location,{startUninterruptedRevalidation:!0});return}ae(w||d.historyAction,d.navigation.location,{overrideNavigation:d.navigation})}}async function ae(ge,ve,Ae){E&&E.abort(),E=null,w=ge,k=(Ae&&Ae.startUninterruptedRevalidation)===!0,Mt(d.location,d.matches),_=(Ae&&Ae.preventScrollReset)===!0;let He=s||i,rt=Ae&&Ae.overrideNavigation,st=Xu(He,ve,l);if(!st){let er=$o(404,{pathname:ve.pathname}),{matches:xr,route:fn}=g$(He);qe(),Z(ve,{matches:xr,loaderData:{},errors:{[fn.id]:er}});return}if(d.initialized&&!S&&pde(d.location,ve)&&!(Ae&&Ae.submission&&da(Ae.submission.formMethod))){Z(ve,{matches:st});return}E=new AbortController;let ut=c0(e.history,ve,E.signal,Ae&&Ae.submission),Xe,Ke;if(Ae&&Ae.pendingError)Ke={[Zu(st).route.id]:Ae.pendingError};else if(Ae&&Ae.submission&&da(Ae.submission.formMethod)){let er=await ee(ut,ve,Ae.submission,st,{replace:Ae.replace});if(er.shortCircuited)return;Xe=er.pendingActionData,Ke=er.pendingActionError,rt=rm(ve,Ae.submission),ut=new Request(ut.url,{signal:ut.signal})}let{shortCircuited:At,loaderData:$t,errors:kt}=await se(ut,ve,st,rt,Ae&&Ae.submission,Ae&&Ae.fetcherSubmission,Ae&&Ae.replace,Xe,Ke);At||(E=null,Z(ve,mr({matches:st},Xe?{actionData:Xe}:{},{loaderData:$t,errors:kt})))}async function ee(ge,ve,Ae,He,rt){rt===void 0&&(rt={}),Ie();let st=yde(ve,Ae);Q({navigation:st});let ut,Xe=Jk(He,ve);if(!Xe.route.action&&!Xe.route.lazy)ut={type:zr.error,error:$o(405,{method:ge.method,pathname:ve.pathname,routeId:Xe.route.id})};else if(ut=await l0("action",ge,Xe,He,a,o,l),ge.signal.aborted)return{shortCircuited:!0};if(md(ut)){let Ke;return rt&&rt.replace!=null?Ke=rt.replace:Ke=ut.location===d.location.pathname+d.location.search,await Se(d,ut,{submission:Ae,replace:Ke}),{shortCircuited:!0}}if(dp(ut)){let Ke=Zu(He,Xe.route.id);return(rt&&rt.replace)!==!0&&(w=$r.Push),{pendingActionData:{},pendingActionError:{[Ke.route.id]:ut.error}}}if(mc(ut))throw $o(400,{type:"defer-action"});return{pendingActionData:{[Xe.route.id]:ut.data}}}async function se(ge,ve,Ae,He,rt,st,ut,Xe,Ke){let At=He||rm(ve,rt),$t=rt||st||y$(At),kt=s||i,[er,xr]=u$(e.history,d,Ae,$t,ve,S,R,T,V,B,kt,l,Xe,Ke);if(qe(Nt=>!(Ae&&Ae.some(on=>on.route.id===Nt))||er&&er.some(on=>on.route.id===Nt)),L=++j,er.length===0&&xr.length===0){let Nt=le();return Z(ve,mr({matches:Ae,loaderData:{},errors:Ke||null},Xe?{actionData:Xe}:{},Nt?{fetchers:new Map(d.fetchers)}:{})),{shortCircuited:!0}}if(!k){xr.forEach(on=>{let Bn=d.fetchers.get(on.key),Il=u0(void 0,Bn?Bn.data:void 0);d.fetchers.set(on.key,Il)});let Nt=Xe||d.actionData;Q(mr({navigation:At},Nt?Object.keys(Nt).length===0?{actionData:null}:{actionData:Nt}:{},xr.length>0?{fetchers:new Map(d.fetchers)}:{}))}xr.forEach(Nt=>{P.has(Nt.key)&&ke(Nt.key),Nt.controller&&P.set(Nt.key,Nt.controller)});let fn=()=>xr.forEach(Nt=>ke(Nt.key));E&&E.signal.addEventListener("abort",fn);let{results:oo,loaderResults:nn,fetcherResults:Ta}=await Pe(d.matches,Ae,er,xr,ge);if(ge.signal.aborted)return{shortCircuited:!0};E&&E.signal.removeEventListener("abort",fn),xr.forEach(Nt=>P.delete(Nt.key));let hn=v$(oo);if(hn){if(hn.idx>=er.length){let Nt=xr[hn.idx-er.length].key;B.add(Nt)}return await Se(d,hn.result,{replace:ut}),{shortCircuited:!0}}let{loaderData:Fn,errors:ta}=p$(d,Ae,er,nn,Ke,xr,Ta,q);q.forEach((Nt,on)=>{Nt.subscribe(Bn=>{(Bn||Nt.done)&&q.delete(on)})});let zn=le(),jl=xe(L),fi=zn||jl||xr.length>0;return mr({loaderData:Fn,errors:ta},fi?{fetchers:new Map(d.fetchers)}:{})}function ue(ge){return d.fetchers.get(ge)||sde}function we(ge,ve,Ae,He){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");P.has(ge)&&ke(ge);let rt=s||i,st=Zk(d.location,d.matches,l,c.v7_prependBasename,Ae,ve,He==null?void 0:He.relative),ut=Xu(rt,st,l);if(!ut){me(ge,ve,$o(404,{pathname:st}));return}let{path:Xe,submission:Ke,error:At}=c$(c.v7_normalizeFormMethod,!0,st,He);if(At){me(ge,ve,At);return}let $t=Jk(ut,Xe);if(_=(He&&He.preventScrollReset)===!0,Ke&&da(Ke.formMethod)){Oe(ge,ve,Xe,$t,ut,Ke);return}V.set(ge,{routeId:ve,path:Xe}),Te(ge,ve,Xe,$t,ut,Ke)}async function Oe(ge,ve,Ae,He,rt,st){if(Ie(),V.delete(ge),!He.route.action&&!He.route.lazy){let Dt=$o(405,{method:st.formMethod,pathname:Ae,routeId:ve});me(ge,ve,Dt);return}let ut=d.fetchers.get(ge),Xe=wde(st,ut);d.fetchers.set(ge,Xe),Q({fetchers:new Map(d.fetchers)});let Ke=new AbortController,At=c0(e.history,Ae,Ke.signal,st);P.set(ge,Ke);let $t=j,kt=await l0("action",At,He,rt,a,o,l);if(At.signal.aborted){P.get(ge)===Ke&&P.delete(ge);return}if(md(kt))if(P.delete(ge),L>$t){let Dt=Eu(void 0);d.fetchers.set(ge,Dt),Q({fetchers:new Map(d.fetchers)});return}else{B.add(ge);let Dt=u0(st);return d.fetchers.set(ge,Dt),Q({fetchers:new Map(d.fetchers)}),Se(d,kt,{submission:st,isFetchActionRedirect:!0})}if(dp(kt)){me(ge,ve,kt.error);return}if(mc(kt))throw $o(400,{type:"defer-action"});let er=d.navigation.location||d.location,xr=c0(e.history,er,Ke.signal),fn=s||i,oo=d.navigation.state!=="idle"?Xu(fn,d.navigation.location,l):d.matches;xt(oo,"Didn't find any matches after fetcher action");let nn=++j;D.set(ge,nn);let Ta=u0(st,kt.data);d.fetchers.set(ge,Ta);let[hn,Fn]=u$(e.history,d,oo,st,er,S,R,T,V,B,fn,l,{[He.route.id]:kt.data},void 0);Fn.filter(Dt=>Dt.key!==ge).forEach(Dt=>{let So=Dt.key,Ll=d.fetchers.get(So),$l=u0(void 0,Ll?Ll.data:void 0);d.fetchers.set(So,$l),P.has(So)&&ke(So),Dt.controller&&P.set(So,Dt.controller)}),Q({fetchers:new Map(d.fetchers)});let ta=()=>Fn.forEach(Dt=>ke(Dt.key));Ke.signal.addEventListener("abort",ta);let{results:zn,loaderResults:jl,fetcherResults:fi}=await Pe(d.matches,oo,hn,Fn,xr);if(Ke.signal.aborted)return;Ke.signal.removeEventListener("abort",ta),D.delete(ge),P.delete(ge),Fn.forEach(Dt=>P.delete(Dt.key));let Nt=v$(zn);if(Nt){if(Nt.idx>=hn.length){let Dt=Fn[Nt.idx-hn.length].key;B.add(Dt)}return Se(d,Nt.result)}let{loaderData:on,errors:Bn}=p$(d,d.matches,hn,jl,void 0,Fn,fi,q);if(d.fetchers.has(ge)){let Dt=Eu(kt.data);d.fetchers.set(ge,Dt)}let Il=xe(nn);d.navigation.state==="loading"&&nn>L?(xt(w,"Expected pending action"),E&&E.abort(),Z(d.navigation.location,{matches:oo,loaderData:on,errors:Bn,fetchers:new Map(d.fetchers)})):(Q(mr({errors:Bn,loaderData:m$(d.loaderData,on,oo,Bn)},Il||Fn.length>0?{fetchers:new Map(d.fetchers)}:{})),S=!1)}async function Te(ge,ve,Ae,He,rt,st){let ut=d.fetchers.get(ge),Xe=u0(st,ut?ut.data:void 0);d.fetchers.set(ge,Xe),Q({fetchers:new Map(d.fetchers)});let Ke=new AbortController,At=c0(e.history,Ae,Ke.signal);P.set(ge,Ke);let $t=j,kt=await l0("loader",At,He,rt,a,o,l);if(mc(kt)&&(kt=await jW(kt,At.signal,!0)||kt),P.get(ge)===Ke&&P.delete(ge),At.signal.aborted)return;if(md(kt))if(L>$t){let xr=Eu(void 0);d.fetchers.set(ge,xr),Q({fetchers:new Map(d.fetchers)});return}else{B.add(ge),await Se(d,kt);return}if(dp(kt)){let xr=Zu(d.matches,ve);d.fetchers.delete(ge),Q({fetchers:new Map(d.fetchers),errors:{[xr.route.id]:kt.error}});return}xt(!mc(kt),"Unhandled fetcher deferred data");let er=Eu(kt.data);d.fetchers.set(ge,er),Q({fetchers:new Map(d.fetchers)})}async function Se(ge,ve,Ae){let{submission:He,replace:rt,isFetchActionRedirect:st}=Ae===void 0?{}:Ae;ve.revalidate&&(S=!0);let ut=Xp(ge.location,ve.location,mr({_isRedirect:!0},st?{_isFetchActionRedirect:!0}:{}));if(xt(ut,"Expected a location on the redirect navigation"),PW.test(ve.location)&&r){let At=e.history.createURL(ve.location),$t=ff(At.pathname,l)==null;if(t.location.origin!==At.origin||$t){rt?t.location.replace(ve.location):t.location.assign(ve.location);return}}E=null;let Xe=rt===!0?$r.Replace:$r.Push,Ke=He||y$(ge.navigation);if(ide.has(ve.status)&&Ke&&da(Ke.formMethod))await ae(Xe,ut,{submission:mr({},Ke,{formAction:ve.location}),preventScrollReset:_});else if(st)await ae(Xe,ut,{overrideNavigation:rm(ut),fetcherSubmission:Ke,preventScrollReset:_});else{let At=rm(ut,Ke);await ae(Xe,ut,{overrideNavigation:At,preventScrollReset:_})}}async function Pe(ge,ve,Ae,He,rt){let st=await Promise.all([...Ae.map(Ke=>l0("loader",rt,Ke,ve,a,o,l)),...He.map(Ke=>Ke.matches&&Ke.match&&Ke.controller?l0("loader",c0(e.history,Ke.path,Ke.controller.signal),Ke.match,Ke.matches,a,o,l):{type:zr.error,error:$o(404,{pathname:Ke.path})})]),ut=st.slice(0,Ae.length),Xe=st.slice(Ae.length);return await Promise.all([b$(ge,Ae,ut,ut.map(()=>rt.signal),!1,d.loaderData),b$(ge,He.map(Ke=>Ke.match),Xe,He.map(Ke=>Ke.controller?Ke.controller.signal:null),!0)]),{results:st,loaderResults:ut,fetcherResults:Xe}}function Ie(){S=!0,R.push(...qe()),V.forEach((ge,ve)=>{P.has(ve)&&(T.push(ve),ke(ve))})}function me(ge,ve,Ae){let He=Zu(d.matches,ve);be(ge),Q({errors:{[He.route.id]:Ae},fetchers:new Map(d.fetchers)})}function be(ge){let ve=d.fetchers.get(ge);P.has(ge)&&!(ve&&ve.state==="loading"&&D.has(ge))&&ke(ge),V.delete(ge),D.delete(ge),B.delete(ge),d.fetchers.delete(ge)}function ke(ge){let ve=P.get(ge);xt(ve,"Expected fetch controller: "+ge),ve.abort(),P.delete(ge)}function je(ge){for(let ve of ge){let Ae=ue(ve),He=Eu(Ae.data);d.fetchers.set(ve,He)}}function le(){let ge=[],ve=!1;for(let Ae of B){let He=d.fetchers.get(Ae);xt(He,"Expected fetcher: "+Ae),He.state==="loading"&&(B.delete(Ae),ge.push(Ae),ve=!0)}return je(ge),ve}function xe(ge){let ve=[];for(let[Ae,He]of D)if(He0}function _e(ge,ve){let Ae=d.blockers.get(ge)||s0;return z.get(ge)!==ve&&z.set(ge,ve),Ae}function Ee(ge){d.blockers.delete(ge),z.delete(ge)}function Be(ge,ve){let Ae=d.blockers.get(ge)||s0;xt(Ae.state==="unblocked"&&ve.state==="blocked"||Ae.state==="blocked"&&ve.state==="blocked"||Ae.state==="blocked"&&ve.state==="proceeding"||Ae.state==="blocked"&&ve.state==="unblocked"||Ae.state==="proceeding"&&ve.state==="unblocked","Invalid blocker state transition: "+Ae.state+" -> "+ve.state);let He=new Map(d.blockers);He.set(ge,ve),Q({blockers:He})}function tt(ge){let{currentLocation:ve,nextLocation:Ae,historyAction:He}=ge;if(z.size===0)return;z.size>1&&Fd(!1,"A router only supports one blocker at a time");let rt=Array.from(z.entries()),[st,ut]=rt[rt.length-1],Xe=d.blockers.get(st);if(!(Xe&&Xe.state==="proceeding")&&ut({currentLocation:ve,nextLocation:Ae,historyAction:He}))return st}function qe(ge){let ve=[];return q.forEach((Ae,He)=>{(!ge||ge(He))&&(Ae.cancel(),ve.push(He),q.delete(He))}),ve}function jr(ge,ve,Ae){if(h=ge,x=ve,g=Ae||null,!y&&d.navigation===CC){y=!0;let He=Nn(d.location,d.matches);He!=null&&Q({restoreScrollPosition:He})}return()=>{h=null,x=null,g=null}}function St(ge,ve){return g&&g(ge,ve.map(He=>bde(He,d.loaderData)))||ge.key}function Mt(ge,ve){if(h&&x){let Ae=St(ge,ve);h[Ae]=x()}}function Nn(ge,ve){if(h){let Ae=St(ge,ve),He=h[Ae];if(typeof He=="number")return He}return null}function Dn(ge){a={},s=Xk(ge,o,void 0,a)}return v={get basename(){return l},get state(){return d},get routes(){return i},initialize:N,subscribe:G,enableScrollRestoration:jr,navigate:U,fetch:we,revalidate:J,createHref:ge=>e.history.createHref(ge),encodeLocation:ge=>e.history.encodeLocation(ge),getFetcher:ue,deleteFetcher:be,dispose:W,getBlocker:_e,deleteBlocker:Ee,_internalFetchControllers:P,_internalActiveDeferreds:q,_internalSetRoutes:Dn},v}function ude(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Zk(e,t,r,n,o,a,i){let s,l;if(a!=null&&i!=="path"){s=[];for(let u of t)if(s.push(u),u.route.id===a){l=u;break}}else s=t,l=t[t.length-1];let c=b8(o||".",$1(s).map(u=>u.pathnameBase),ff(e.pathname,r)||e.pathname,i==="path");return o==null&&(c.search=e.search,c.hash=e.hash),(o==null||o===""||o===".")&&l&&l.route.index&&!WT(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:Li([r,c.pathname])),Ic(c)}function c$(e,t,r,n){if(!n||!ude(n))return{path:r};if(n.formMethod&&!vde(n.formMethod))return{path:r,error:$o(405,{method:n.formMethod})};let o=()=>({path:r,error:$o(400,{type:"invalid-body"})}),a=n.formMethod||"get",i=e?a.toUpperCase():a.toLowerCase(),s=AW(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!da(i))return o();let h=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((g,x)=>{let[y,b]=x;return""+g+y+"="+b+` -`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:h}}}else if(n.formEncType==="application/json"){if(!da(i))return o();try{let h=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:h,text:void 0}}}catch{return o()}}}xt(typeof FormData=="function","FormData is not available in this environment");let l,c;if(n.formData)l=Qk(n.formData),c=n.formData;else if(n.body instanceof FormData)l=Qk(n.body),c=n.body;else if(n.body instanceof URLSearchParams)l=n.body,c=h$(l);else if(n.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(n.body),c=h$(l)}catch{return o()}let u={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(da(u.formMethod))return{path:r,submission:u};let p=es(r);return t&&p.search&&WT(p.search)&&l.append("index",""),p.search="?"+l,{path:Ic(p),submission:u}}function dde(e,t){let r=e;if(t){let n=e.findIndex(o=>o.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function u$(e,t,r,n,o,a,i,s,l,c,u,p,h,g){let x=g?Object.values(g)[0]:h?Object.values(h)[0]:void 0,y=e.createURL(t.location),b=e.createURL(o),m=g?Object.keys(g)[0]:void 0,v=dde(r,m).filter((w,_)=>{if(w.route.lazy)return!0;if(w.route.loader==null)return!1;if(fde(t.loaderData,t.matches[_],w)||i.some(S=>S===w.route.id))return!0;let E=t.matches[_],k=w;return d$(w,mr({currentUrl:y,currentParams:E.params,nextUrl:b,nextParams:k.params},n,{actionResult:x,defaultShouldRevalidate:a||y.pathname+y.search===b.pathname+b.search||y.search!==b.search||MW(E,k)}))}),d=[];return l.forEach((w,_)=>{if(!r.some(T=>T.route.id===w.routeId))return;let E=Xu(u,w.path,p);if(!E){d.push({key:_,routeId:w.routeId,path:w.path,matches:null,match:null,controller:null});return}let k=t.fetchers.get(_),S=Jk(E,w.path),R=!1;c.has(_)?R=!1:s.includes(_)?R=!0:k&&k.state!=="idle"&&k.data===void 0?R=a:R=d$(S,mr({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:x,defaultShouldRevalidate:a})),R&&d.push({key:_,routeId:w.routeId,path:w.path,matches:E,match:S,controller:new AbortController})}),[v,d]}function fde(e,t,r){let n=!t||r.route.id!==t.route.id,o=e[r.route.id]===void 0;return n||o}function MW(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function d$(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function f$(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let o=r[e.id];xt(o,"No route found in manifest");let a={};for(let i in n){let l=o[i]!==void 0&&i!=="hasErrorBoundary";Fd(!l,'Route "'+o.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!l&&!Lue.has(i)&&(a[i]=n[i])}Object.assign(o,a),Object.assign(o,mr({},t(o),{lazy:void 0}))}async function l0(e,t,r,n,o,a,i,s){s===void 0&&(s={});let l,c,u,p=x=>{let y,b=new Promise((m,f)=>y=f);return u=()=>y(),t.signal.addEventListener("abort",u),Promise.race([x({request:t,params:r.params,context:s.requestContext}),b])};try{let x=r.route[e];if(r.route.lazy)if(x)c=(await Promise.all([p(x),f$(r.route,a,o)]))[0];else if(await f$(r.route,a,o),x=r.route[e],x)c=await p(x);else if(e==="action"){let y=new URL(t.url),b=y.pathname+y.search;throw $o(405,{method:t.method,pathname:b,routeId:r.route.id})}else return{type:zr.data,data:void 0};else if(x)c=await p(x);else{let y=new URL(t.url),b=y.pathname+y.search;throw $o(404,{pathname:b})}xt(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(x){l=zr.error,c=x}finally{u&&t.signal.removeEventListener("abort",u)}if(gde(c)){let x=c.status;if(ade.has(x)){let m=c.headers.get("Location");if(xt(m,"Redirects returned/thrown from loaders/actions must have a Location header"),!PW.test(m))m=Zk(new URL(t.url),n.slice(0,n.indexOf(r)+1),i,!0,m);else if(!s.isStaticRequest){let f=new URL(t.url),v=m.startsWith("//")?new URL(f.protocol+m):new URL(m),d=ff(v.pathname,i)!=null;v.origin===f.origin&&d&&(m=v.pathname+v.search+v.hash)}if(s.isStaticRequest)throw c.headers.set("Location",m),c;return{type:zr.redirect,status:x,location:m,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(s.isRouteRequest)throw{type:l||zr.data,response:c};let y,b=c.headers.get("Content-Type");return b&&/\bapplication\/json\b/.test(b)?y=await c.json():y=await c.text(),l===zr.error?{type:l,error:new UT(x,c.statusText,y),headers:c.headers}:{type:zr.data,data:y,statusCode:c.status,headers:c.headers}}if(l===zr.error)return{type:l,error:c};if(mde(c)){var h,g;return{type:zr.deferred,deferredData:c,statusCode:(h=c.init)==null?void 0:h.status,headers:((g=c.init)==null?void 0:g.headers)&&new Headers(c.init.headers)}}return{type:zr.data,data:c}}function c0(e,t,r,n){let o=e.createURL(AW(t)).toString(),a={signal:r};if(n&&da(n.formMethod)){let{formMethod:i,formEncType:s}=n;a.method=i.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(n.json)):s==="text/plain"?a.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?a.body=Qk(n.formData):a.body=n.formData}return new Request(o,a)}function Qk(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function h$(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function hde(e,t,r,n,o){let a={},i=null,s,l=!1,c={};return r.forEach((u,p)=>{let h=t[p].route.id;if(xt(!md(u),"Cannot handle redirect results in processLoaderData"),dp(u)){let g=Zu(e,h),x=u.error;n&&(x=Object.values(n)[0],n=void 0),i=i||{},i[g.route.id]==null&&(i[g.route.id]=x),a[h]=void 0,l||(l=!0,s=SW(u.error)?u.error.status:500),u.headers&&(c[h]=u.headers)}else mc(u)?(o.set(h,u.deferredData),a[h]=u.deferredData.data):a[h]=u.data,u.statusCode!=null&&u.statusCode!==200&&!l&&(s=u.statusCode),u.headers&&(c[h]=u.headers)}),n&&(i=n,a[Object.keys(n)[0]]=void 0),{loaderData:a,errors:i,statusCode:s||200,loaderHeaders:c}}function p$(e,t,r,n,o,a,i,s){let{loaderData:l,errors:c}=hde(t,r,n,o,s);for(let u=0;un.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function g$(e){let t=e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function $o(e,t){let{pathname:r,routeId:n,method:o,type:a}=t===void 0?{}:t,i="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(i="Bad Request",o&&r&&n?s="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":a==="defer-action"?s="defer() is not supported in actions":a==="invalid-body"&&(s="Unable to encode submission body")):e===403?(i="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):e===404?(i="Not Found",s='No route matches URL "'+r+'"'):e===405&&(i="Method Not Allowed",o&&r&&n?s="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new UT(e||500,i,new Error(s),!0)}function v$(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(md(r))return{result:r,idx:t}}}function AW(e){let t=typeof e=="string"?es(e):e;return Ic(mr({},t,{hash:""}))}function pde(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function mc(e){return e.type===zr.deferred}function dp(e){return e.type===zr.error}function md(e){return(e&&e.type)===zr.redirect}function mde(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function gde(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function vde(e){return ode.has(e.toLowerCase())}function da(e){return rde.has(e.toLowerCase())}async function b$(e,t,r,n,o,a){for(let i=0;ip.route.id===l.route.id),u=c!=null&&!MW(c,l)&&(a&&a[l.route.id])!==void 0;if(mc(s)&&(o||u)){let p=n[i];xt(p,"Expected an AbortSignal for revalidating fetcher deferred result"),await jW(s,p,o).then(h=>{h&&(r[i]=h||r[i])})}}}async function jW(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:zr.data,data:e.deferredData.unwrappedData}}catch(o){return{type:zr.error,error:o}}return{type:zr.data,data:e.deferredData.data}}}function WT(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function bde(e,t){let{route:r,pathname:n,params:o}=e;return{id:r.id,pathname:n,params:o,data:t[r.id],handle:r.handle}}function Jk(e,t){let r=typeof t=="string"?es(t).search:t.search;if(e[e.length-1].route.index&&WT(r||""))return e[e.length-1];let n=$1(e);return n[n.length-1]}function y$(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:a,json:i}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:a,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function rm(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function yde(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function u0(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function wde(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0," _hasFetcherDoneAnything ":!0}}function Eu(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/** + */function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fd(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Lue(){return Math.random().toString(36).substr(2,8)}function s$(e,t){return{usr:e.state,key:e.key,idx:t}}function Xp(e,t,r,n){return r===void 0&&(r=null),mr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?es(t):t,{state:r,key:t&&t.key||n||Lue()})}function Ic(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function es(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function $ue(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:a=!1}=n,i=o.history,s=$r.Pop,l=null,c=u();c==null&&(c=0,i.replaceState(mr({},i.state,{idx:c}),""));function u(){return(i.state||{idx:null}).idx}function p(){s=$r.Pop;let b=u(),m=b==null?null:b-c;c=b,l&&l({action:s,location:y.location,delta:m})}function h(b,m){s=$r.Push;let f=Xp(y.location,b,m);r&&r(f,b),c=u()+1;let v=s$(f,c),d=y.createHref(f);try{i.pushState(v,"",d)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;o.location.assign(d)}a&&l&&l({action:s,location:y.location,delta:1})}function g(b,m){s=$r.Replace;let f=Xp(y.location,b,m);r&&r(f,b),c=u();let v=s$(f,c),d=y.createHref(f);i.replaceState(v,"",d),a&&l&&l({action:s,location:y.location,delta:0})}function x(b){let m=o.location.origin!=="null"?o.location.origin:o.location.href,f=typeof b=="string"?b:Ic(b);return xt(m,"No window.location.(origin|href) available to create URL for href: "+f),new URL(f,m)}let y={get action(){return s},get location(){return e(o,i)},listen(b){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(i$,p),l=b,()=>{o.removeEventListener(i$,p),l=null}},createHref(b){return t(o,b)},createURL:x,encodeLocation(b){let m=x(b);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:g,go(b){return i.go(b)}};return y}var zr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zr||(zr={}));const Nue=new Set(["lazy","caseSensitive","path","id","index","children"]);function Due(e){return e.index===!0}function Xk(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((o,a)=>{let i=[...r,a],s=typeof o.id=="string"?o.id:i.join("-");if(xt(o.index!==!0||!o.children,"Cannot specify children on an index route"),xt(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Due(o)){let l=mr({},o,t(o),{id:s});return n[s]=l,l}else{let l=mr({},o,t(o),{id:s,children:void 0});return n[s]=l,o.children&&(l.children=Xk(o.children,t,i,n)),l}})}function Xu(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?es(t):t,o=ff(n.pathname||"/",r);if(o==null)return null;let a=kW(e);Fue(a);let i=null;for(let s=0;i==null&&s{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};l.relativePath.startsWith("/")&&(xt(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=Li([n,l.relativePath]),u=r.concat(l);a.children&&a.children.length>0&&(xt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),kW(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:que(c,a.index),routesMeta:u})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let l of RW(a.path))o(a,i,l)}),t}function RW(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let i=RW(n.join("/")),s=[];return s.push(...i.map(l=>l===""?a:[a,l].join("/"))),o&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Fue(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Gue(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const zue=/^:\w+$/,Bue=3,Vue=2,Hue=1,Uue=10,Wue=-2,l$=e=>e==="*";function que(e,t){let r=e.split("/"),n=r.length;return r.some(l$)&&(n+=Wue),t&&(n+=Vue),r.filter(o=>!l$(o)).reduce((o,a)=>o+(zue.test(a)?Bue:a===""?Hue:Uue),n)}function Gue(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function Kue(e,t){let{routesMeta:r}=e,n={},o="/",a=[];for(let i=0;i{if(u==="*"){let h=s[p]||"";i=a.slice(0,a.length-h.length).replace(/(.)\/+$/,"$1")}return c[u]=Que(s[p]||"",u),c},{}),pathname:a,pathnameBase:i,pattern:e}}function Xue(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Fd(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(i,s)=>(n.push(s),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function Zue(e){try{return decodeURI(e)}catch(t){return Fd(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Que(e,t){try{return decodeURIComponent(e)}catch(r){return Fd(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function ff(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Jue(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?es(e):e;return{pathname:r?r.startsWith("/")?r:ede(r,t):t,search:rde(n),hash:nde(o)}}function ede(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function EC(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function $1(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function b8(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=es(e):(o=mr({},e),xt(!o.pathname||!o.pathname.includes("?"),EC("?","pathname","search",o)),xt(!o.pathname||!o.pathname.includes("#"),EC("#","pathname","hash",o)),xt(!o.search||!o.search.includes("#"),EC("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(n||i==null)s=r;else{let p=t.length-1;if(i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),p-=1;o.pathname=h.join("/")}s=p>=0?t[p]:"/"}let l=Jue(o,s),c=i&&i!=="/"&&i.endsWith("/"),u=(a||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Li=e=>e.join("/").replace(/\/\/+/g,"/"),tde=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),rde=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nde=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class UT{constructor(t,r,n,o){o===void 0&&(o=!1),this.status=t,this.statusText=r||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function SW(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const TW=["post","put","patch","delete"],ode=new Set(TW),ade=["get",...TW],ide=new Set(ade),sde=new Set([301,302,303,307,308]),lde=new Set([307,308]),CC={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},cde={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},s0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},PW=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ude=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function dde(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;xt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let ge=e.detectErrorBoundary;o=ve=>({hasErrorBoundary:ge(ve)})}else o=ude;let a={},i=Xk(e.routes,o,void 0,a),s,l=e.basename||"/",c=mr({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),u=null,p=new Set,h=null,g=null,x=null,y=e.hydrationData!=null,b=Xu(i,e.history.location,l),m=null;if(b==null){let ge=$o(404,{pathname:e.history.location.pathname}),{matches:ve,route:Ae}=g$(i);b=ve,m={[Ae.id]:ge}}let f=!b.some(ge=>ge.route.lazy)&&(!b.some(ge=>ge.route.loader)||e.hydrationData!=null),v,d={historyAction:e.history.action,location:e.history.location,matches:b,initialized:f,navigation:CC,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||m,fetchers:new Map,blockers:new Map},w=$r.Pop,_=!1,E,k=!1,S=!1,R=[],T=[],P=new Map,j=0,L=-1,D=new Map,B=new Set,V=new Map,q=new Map,z=new Map,F=!1;function N(){return u=e.history.listen(ge=>{let{action:ve,location:Ae,delta:He}=ge;if(F){F=!1;return}Fd(z.size===0||He!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let rt=tt({currentLocation:d.location,nextLocation:Ae,historyAction:ve});if(rt&&He!=null){F=!0,e.history.go(He*-1),Be(rt,{state:"blocked",location:Ae,proceed(){Be(rt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ae}),e.history.go(He)},reset(){let st=new Map(d.blockers);st.set(rt,s0),Q({blockers:st})}});return}return ae(ve,Ae)}),d.initialized||ae($r.Pop,d.location),v}function W(){u&&u(),p.clear(),E&&E.abort(),d.fetchers.forEach((ge,ve)=>be(ve)),d.blockers.forEach((ge,ve)=>Ee(ve))}function G(ge){return p.add(ge),()=>p.delete(ge)}function Q(ge){d=mr({},d,ge),p.forEach(ve=>ve(d))}function Z(ge,ve){var Ae,He;let rt=d.actionData!=null&&d.navigation.formMethod!=null&&da(d.navigation.formMethod)&&d.navigation.state==="loading"&&((Ae=ge.state)==null?void 0:Ae._isRedirect)!==!0,st;ve.actionData?Object.keys(ve.actionData).length>0?st=ve.actionData:st=null:rt?st=d.actionData:st=null;let ut=ve.loaderData?m$(d.loaderData,ve.loaderData,ve.matches||[],ve.errors):d.loaderData,Xe=d.blockers;Xe.size>0&&(Xe=new Map(Xe),Xe.forEach((At,$t)=>Xe.set($t,s0)));let Ke=_===!0||d.navigation.formMethod!=null&&da(d.navigation.formMethod)&&((He=ge.state)==null?void 0:He._isRedirect)!==!0;s&&(i=s,s=void 0),k||w===$r.Pop||(w===$r.Push?e.history.push(ge,ge.state):w===$r.Replace&&e.history.replace(ge,ge.state)),Q(mr({},ve,{actionData:st,loaderData:ut,historyAction:w,location:ge,initialized:!0,navigation:CC,revalidation:"idle",restoreScrollPosition:Nn(ge,ve.matches||d.matches),preventScrollReset:Ke,blockers:Xe})),w=$r.Pop,_=!1,k=!1,S=!1,R=[],T=[]}async function U(ge,ve){if(typeof ge=="number"){e.history.go(ge);return}let Ae=Zk(d.location,d.matches,l,c.v7_prependBasename,ge,ve==null?void 0:ve.fromRouteId,ve==null?void 0:ve.relative),{path:He,submission:rt,error:st}=c$(c.v7_normalizeFormMethod,!1,Ae,ve),ut=d.location,Xe=Xp(d.location,He,ve&&ve.state);Xe=mr({},Xe,e.history.encodeLocation(Xe));let Ke=ve&&ve.replace!=null?ve.replace:void 0,At=$r.Push;Ke===!0?At=$r.Replace:Ke===!1||rt!=null&&da(rt.formMethod)&&rt.formAction===d.location.pathname+d.location.search&&(At=$r.Replace);let $t=ve&&"preventScrollReset"in ve?ve.preventScrollReset===!0:void 0,kt=tt({currentLocation:ut,nextLocation:Xe,historyAction:At});if(kt){Be(kt,{state:"blocked",location:Xe,proceed(){Be(kt,{state:"proceeding",proceed:void 0,reset:void 0,location:Xe}),U(ge,ve)},reset(){let er=new Map(d.blockers);er.set(kt,s0),Q({blockers:er})}});return}return await ae(At,Xe,{submission:rt,pendingError:st,preventScrollReset:$t,replace:ve&&ve.replace})}function J(){if(Ie(),Q({revalidation:"loading"}),d.navigation.state!=="submitting"){if(d.navigation.state==="idle"){ae(d.historyAction,d.location,{startUninterruptedRevalidation:!0});return}ae(w||d.historyAction,d.navigation.location,{overrideNavigation:d.navigation})}}async function ae(ge,ve,Ae){E&&E.abort(),E=null,w=ge,k=(Ae&&Ae.startUninterruptedRevalidation)===!0,Mt(d.location,d.matches),_=(Ae&&Ae.preventScrollReset)===!0;let He=s||i,rt=Ae&&Ae.overrideNavigation,st=Xu(He,ve,l);if(!st){let er=$o(404,{pathname:ve.pathname}),{matches:xr,route:fn}=g$(He);qe(),Z(ve,{matches:xr,loaderData:{},errors:{[fn.id]:er}});return}if(d.initialized&&!S&&gde(d.location,ve)&&!(Ae&&Ae.submission&&da(Ae.submission.formMethod))){Z(ve,{matches:st});return}E=new AbortController;let ut=c0(e.history,ve,E.signal,Ae&&Ae.submission),Xe,Ke;if(Ae&&Ae.pendingError)Ke={[Zu(st).route.id]:Ae.pendingError};else if(Ae&&Ae.submission&&da(Ae.submission.formMethod)){let er=await ee(ut,ve,Ae.submission,st,{replace:Ae.replace});if(er.shortCircuited)return;Xe=er.pendingActionData,Ke=er.pendingActionError,rt=rm(ve,Ae.submission),ut=new Request(ut.url,{signal:ut.signal})}let{shortCircuited:At,loaderData:$t,errors:kt}=await se(ut,ve,st,rt,Ae&&Ae.submission,Ae&&Ae.fetcherSubmission,Ae&&Ae.replace,Xe,Ke);At||(E=null,Z(ve,mr({matches:st},Xe?{actionData:Xe}:{},{loaderData:$t,errors:kt})))}async function ee(ge,ve,Ae,He,rt){rt===void 0&&(rt={}),Ie();let st=xde(ve,Ae);Q({navigation:st});let ut,Xe=Jk(He,ve);if(!Xe.route.action&&!Xe.route.lazy)ut={type:zr.error,error:$o(405,{method:ge.method,pathname:ve.pathname,routeId:Xe.route.id})};else if(ut=await l0("action",ge,Xe,He,a,o,l),ge.signal.aborted)return{shortCircuited:!0};if(md(ut)){let Ke;return rt&&rt.replace!=null?Ke=rt.replace:Ke=ut.location===d.location.pathname+d.location.search,await Se(d,ut,{submission:Ae,replace:Ke}),{shortCircuited:!0}}if(dp(ut)){let Ke=Zu(He,Xe.route.id);return(rt&&rt.replace)!==!0&&(w=$r.Push),{pendingActionData:{},pendingActionError:{[Ke.route.id]:ut.error}}}if(mc(ut))throw $o(400,{type:"defer-action"});return{pendingActionData:{[Xe.route.id]:ut.data}}}async function se(ge,ve,Ae,He,rt,st,ut,Xe,Ke){let At=He||rm(ve,rt),$t=rt||st||y$(At),kt=s||i,[er,xr]=u$(e.history,d,Ae,$t,ve,S,R,T,V,B,kt,l,Xe,Ke);if(qe(Nt=>!(Ae&&Ae.some(on=>on.route.id===Nt))||er&&er.some(on=>on.route.id===Nt)),L=++j,er.length===0&&xr.length===0){let Nt=le();return Z(ve,mr({matches:Ae,loaderData:{},errors:Ke||null},Xe?{actionData:Xe}:{},Nt?{fetchers:new Map(d.fetchers)}:{})),{shortCircuited:!0}}if(!k){xr.forEach(on=>{let Bn=d.fetchers.get(on.key),Il=u0(void 0,Bn?Bn.data:void 0);d.fetchers.set(on.key,Il)});let Nt=Xe||d.actionData;Q(mr({navigation:At},Nt?Object.keys(Nt).length===0?{actionData:null}:{actionData:Nt}:{},xr.length>0?{fetchers:new Map(d.fetchers)}:{}))}xr.forEach(Nt=>{P.has(Nt.key)&&ke(Nt.key),Nt.controller&&P.set(Nt.key,Nt.controller)});let fn=()=>xr.forEach(Nt=>ke(Nt.key));E&&E.signal.addEventListener("abort",fn);let{results:oo,loaderResults:nn,fetcherResults:Ta}=await Pe(d.matches,Ae,er,xr,ge);if(ge.signal.aborted)return{shortCircuited:!0};E&&E.signal.removeEventListener("abort",fn),xr.forEach(Nt=>P.delete(Nt.key));let hn=v$(oo);if(hn){if(hn.idx>=er.length){let Nt=xr[hn.idx-er.length].key;B.add(Nt)}return await Se(d,hn.result,{replace:ut}),{shortCircuited:!0}}let{loaderData:Fn,errors:ta}=p$(d,Ae,er,nn,Ke,xr,Ta,q);q.forEach((Nt,on)=>{Nt.subscribe(Bn=>{(Bn||Nt.done)&&q.delete(on)})});let zn=le(),jl=xe(L),fi=zn||jl||xr.length>0;return mr({loaderData:Fn,errors:ta},fi?{fetchers:new Map(d.fetchers)}:{})}function ue(ge){return d.fetchers.get(ge)||cde}function we(ge,ve,Ae,He){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");P.has(ge)&&ke(ge);let rt=s||i,st=Zk(d.location,d.matches,l,c.v7_prependBasename,Ae,ve,He==null?void 0:He.relative),ut=Xu(rt,st,l);if(!ut){me(ge,ve,$o(404,{pathname:st}));return}let{path:Xe,submission:Ke,error:At}=c$(c.v7_normalizeFormMethod,!0,st,He);if(At){me(ge,ve,At);return}let $t=Jk(ut,Xe);if(_=(He&&He.preventScrollReset)===!0,Ke&&da(Ke.formMethod)){Oe(ge,ve,Xe,$t,ut,Ke);return}V.set(ge,{routeId:ve,path:Xe}),Te(ge,ve,Xe,$t,ut,Ke)}async function Oe(ge,ve,Ae,He,rt,st){if(Ie(),V.delete(ge),!He.route.action&&!He.route.lazy){let Dt=$o(405,{method:st.formMethod,pathname:Ae,routeId:ve});me(ge,ve,Dt);return}let ut=d.fetchers.get(ge),Xe=_de(st,ut);d.fetchers.set(ge,Xe),Q({fetchers:new Map(d.fetchers)});let Ke=new AbortController,At=c0(e.history,Ae,Ke.signal,st);P.set(ge,Ke);let $t=j,kt=await l0("action",At,He,rt,a,o,l);if(At.signal.aborted){P.get(ge)===Ke&&P.delete(ge);return}if(md(kt))if(P.delete(ge),L>$t){let Dt=Eu(void 0);d.fetchers.set(ge,Dt),Q({fetchers:new Map(d.fetchers)});return}else{B.add(ge);let Dt=u0(st);return d.fetchers.set(ge,Dt),Q({fetchers:new Map(d.fetchers)}),Se(d,kt,{submission:st,isFetchActionRedirect:!0})}if(dp(kt)){me(ge,ve,kt.error);return}if(mc(kt))throw $o(400,{type:"defer-action"});let er=d.navigation.location||d.location,xr=c0(e.history,er,Ke.signal),fn=s||i,oo=d.navigation.state!=="idle"?Xu(fn,d.navigation.location,l):d.matches;xt(oo,"Didn't find any matches after fetcher action");let nn=++j;D.set(ge,nn);let Ta=u0(st,kt.data);d.fetchers.set(ge,Ta);let[hn,Fn]=u$(e.history,d,oo,st,er,S,R,T,V,B,fn,l,{[He.route.id]:kt.data},void 0);Fn.filter(Dt=>Dt.key!==ge).forEach(Dt=>{let So=Dt.key,Ll=d.fetchers.get(So),$l=u0(void 0,Ll?Ll.data:void 0);d.fetchers.set(So,$l),P.has(So)&&ke(So),Dt.controller&&P.set(So,Dt.controller)}),Q({fetchers:new Map(d.fetchers)});let ta=()=>Fn.forEach(Dt=>ke(Dt.key));Ke.signal.addEventListener("abort",ta);let{results:zn,loaderResults:jl,fetcherResults:fi}=await Pe(d.matches,oo,hn,Fn,xr);if(Ke.signal.aborted)return;Ke.signal.removeEventListener("abort",ta),D.delete(ge),P.delete(ge),Fn.forEach(Dt=>P.delete(Dt.key));let Nt=v$(zn);if(Nt){if(Nt.idx>=hn.length){let Dt=Fn[Nt.idx-hn.length].key;B.add(Dt)}return Se(d,Nt.result)}let{loaderData:on,errors:Bn}=p$(d,d.matches,hn,jl,void 0,Fn,fi,q);if(d.fetchers.has(ge)){let Dt=Eu(kt.data);d.fetchers.set(ge,Dt)}let Il=xe(nn);d.navigation.state==="loading"&&nn>L?(xt(w,"Expected pending action"),E&&E.abort(),Z(d.navigation.location,{matches:oo,loaderData:on,errors:Bn,fetchers:new Map(d.fetchers)})):(Q(mr({errors:Bn,loaderData:m$(d.loaderData,on,oo,Bn)},Il||Fn.length>0?{fetchers:new Map(d.fetchers)}:{})),S=!1)}async function Te(ge,ve,Ae,He,rt,st){let ut=d.fetchers.get(ge),Xe=u0(st,ut?ut.data:void 0);d.fetchers.set(ge,Xe),Q({fetchers:new Map(d.fetchers)});let Ke=new AbortController,At=c0(e.history,Ae,Ke.signal);P.set(ge,Ke);let $t=j,kt=await l0("loader",At,He,rt,a,o,l);if(mc(kt)&&(kt=await jW(kt,At.signal,!0)||kt),P.get(ge)===Ke&&P.delete(ge),At.signal.aborted)return;if(md(kt))if(L>$t){let xr=Eu(void 0);d.fetchers.set(ge,xr),Q({fetchers:new Map(d.fetchers)});return}else{B.add(ge),await Se(d,kt);return}if(dp(kt)){let xr=Zu(d.matches,ve);d.fetchers.delete(ge),Q({fetchers:new Map(d.fetchers),errors:{[xr.route.id]:kt.error}});return}xt(!mc(kt),"Unhandled fetcher deferred data");let er=Eu(kt.data);d.fetchers.set(ge,er),Q({fetchers:new Map(d.fetchers)})}async function Se(ge,ve,Ae){let{submission:He,replace:rt,isFetchActionRedirect:st}=Ae===void 0?{}:Ae;ve.revalidate&&(S=!0);let ut=Xp(ge.location,ve.location,mr({_isRedirect:!0},st?{_isFetchActionRedirect:!0}:{}));if(xt(ut,"Expected a location on the redirect navigation"),PW.test(ve.location)&&r){let At=e.history.createURL(ve.location),$t=ff(At.pathname,l)==null;if(t.location.origin!==At.origin||$t){rt?t.location.replace(ve.location):t.location.assign(ve.location);return}}E=null;let Xe=rt===!0?$r.Replace:$r.Push,Ke=He||y$(ge.navigation);if(lde.has(ve.status)&&Ke&&da(Ke.formMethod))await ae(Xe,ut,{submission:mr({},Ke,{formAction:ve.location}),preventScrollReset:_});else if(st)await ae(Xe,ut,{overrideNavigation:rm(ut),fetcherSubmission:Ke,preventScrollReset:_});else{let At=rm(ut,Ke);await ae(Xe,ut,{overrideNavigation:At,preventScrollReset:_})}}async function Pe(ge,ve,Ae,He,rt){let st=await Promise.all([...Ae.map(Ke=>l0("loader",rt,Ke,ve,a,o,l)),...He.map(Ke=>Ke.matches&&Ke.match&&Ke.controller?l0("loader",c0(e.history,Ke.path,Ke.controller.signal),Ke.match,Ke.matches,a,o,l):{type:zr.error,error:$o(404,{pathname:Ke.path})})]),ut=st.slice(0,Ae.length),Xe=st.slice(Ae.length);return await Promise.all([b$(ge,Ae,ut,ut.map(()=>rt.signal),!1,d.loaderData),b$(ge,He.map(Ke=>Ke.match),Xe,He.map(Ke=>Ke.controller?Ke.controller.signal:null),!0)]),{results:st,loaderResults:ut,fetcherResults:Xe}}function Ie(){S=!0,R.push(...qe()),V.forEach((ge,ve)=>{P.has(ve)&&(T.push(ve),ke(ve))})}function me(ge,ve,Ae){let He=Zu(d.matches,ve);be(ge),Q({errors:{[He.route.id]:Ae},fetchers:new Map(d.fetchers)})}function be(ge){let ve=d.fetchers.get(ge);P.has(ge)&&!(ve&&ve.state==="loading"&&D.has(ge))&&ke(ge),V.delete(ge),D.delete(ge),B.delete(ge),d.fetchers.delete(ge)}function ke(ge){let ve=P.get(ge);xt(ve,"Expected fetch controller: "+ge),ve.abort(),P.delete(ge)}function je(ge){for(let ve of ge){let Ae=ue(ve),He=Eu(Ae.data);d.fetchers.set(ve,He)}}function le(){let ge=[],ve=!1;for(let Ae of B){let He=d.fetchers.get(Ae);xt(He,"Expected fetcher: "+Ae),He.state==="loading"&&(B.delete(Ae),ge.push(Ae),ve=!0)}return je(ge),ve}function xe(ge){let ve=[];for(let[Ae,He]of D)if(He0}function _e(ge,ve){let Ae=d.blockers.get(ge)||s0;return z.get(ge)!==ve&&z.set(ge,ve),Ae}function Ee(ge){d.blockers.delete(ge),z.delete(ge)}function Be(ge,ve){let Ae=d.blockers.get(ge)||s0;xt(Ae.state==="unblocked"&&ve.state==="blocked"||Ae.state==="blocked"&&ve.state==="blocked"||Ae.state==="blocked"&&ve.state==="proceeding"||Ae.state==="blocked"&&ve.state==="unblocked"||Ae.state==="proceeding"&&ve.state==="unblocked","Invalid blocker state transition: "+Ae.state+" -> "+ve.state);let He=new Map(d.blockers);He.set(ge,ve),Q({blockers:He})}function tt(ge){let{currentLocation:ve,nextLocation:Ae,historyAction:He}=ge;if(z.size===0)return;z.size>1&&Fd(!1,"A router only supports one blocker at a time");let rt=Array.from(z.entries()),[st,ut]=rt[rt.length-1],Xe=d.blockers.get(st);if(!(Xe&&Xe.state==="proceeding")&&ut({currentLocation:ve,nextLocation:Ae,historyAction:He}))return st}function qe(ge){let ve=[];return q.forEach((Ae,He)=>{(!ge||ge(He))&&(Ae.cancel(),ve.push(He),q.delete(He))}),ve}function jr(ge,ve,Ae){if(h=ge,x=ve,g=Ae||null,!y&&d.navigation===CC){y=!0;let He=Nn(d.location,d.matches);He!=null&&Q({restoreScrollPosition:He})}return()=>{h=null,x=null,g=null}}function St(ge,ve){return g&&g(ge,ve.map(He=>wde(He,d.loaderData)))||ge.key}function Mt(ge,ve){if(h&&x){let Ae=St(ge,ve);h[Ae]=x()}}function Nn(ge,ve){if(h){let Ae=St(ge,ve),He=h[Ae];if(typeof He=="number")return He}return null}function Dn(ge){a={},s=Xk(ge,o,void 0,a)}return v={get basename(){return l},get state(){return d},get routes(){return i},initialize:N,subscribe:G,enableScrollRestoration:jr,navigate:U,fetch:we,revalidate:J,createHref:ge=>e.history.createHref(ge),encodeLocation:ge=>e.history.encodeLocation(ge),getFetcher:ue,deleteFetcher:be,dispose:W,getBlocker:_e,deleteBlocker:Ee,_internalFetchControllers:P,_internalActiveDeferreds:q,_internalSetRoutes:Dn},v}function fde(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Zk(e,t,r,n,o,a,i){let s,l;if(a!=null&&i!=="path"){s=[];for(let u of t)if(s.push(u),u.route.id===a){l=u;break}}else s=t,l=t[t.length-1];let c=b8(o||".",$1(s).map(u=>u.pathnameBase),ff(e.pathname,r)||e.pathname,i==="path");return o==null&&(c.search=e.search,c.hash=e.hash),(o==null||o===""||o===".")&&l&&l.route.index&&!WT(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:Li([r,c.pathname])),Ic(c)}function c$(e,t,r,n){if(!n||!fde(n))return{path:r};if(n.formMethod&&!yde(n.formMethod))return{path:r,error:$o(405,{method:n.formMethod})};let o=()=>({path:r,error:$o(400,{type:"invalid-body"})}),a=n.formMethod||"get",i=e?a.toUpperCase():a.toLowerCase(),s=AW(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!da(i))return o();let h=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((g,x)=>{let[y,b]=x;return""+g+y+"="+b+` +`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:h}}}else if(n.formEncType==="application/json"){if(!da(i))return o();try{let h=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:h,text:void 0}}}catch{return o()}}}xt(typeof FormData=="function","FormData is not available in this environment");let l,c;if(n.formData)l=Qk(n.formData),c=n.formData;else if(n.body instanceof FormData)l=Qk(n.body),c=n.body;else if(n.body instanceof URLSearchParams)l=n.body,c=h$(l);else if(n.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(n.body),c=h$(l)}catch{return o()}let u={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(da(u.formMethod))return{path:r,submission:u};let p=es(r);return t&&p.search&&WT(p.search)&&l.append("index",""),p.search="?"+l,{path:Ic(p),submission:u}}function hde(e,t){let r=e;if(t){let n=e.findIndex(o=>o.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function u$(e,t,r,n,o,a,i,s,l,c,u,p,h,g){let x=g?Object.values(g)[0]:h?Object.values(h)[0]:void 0,y=e.createURL(t.location),b=e.createURL(o),m=g?Object.keys(g)[0]:void 0,v=hde(r,m).filter((w,_)=>{if(w.route.lazy)return!0;if(w.route.loader==null)return!1;if(pde(t.loaderData,t.matches[_],w)||i.some(S=>S===w.route.id))return!0;let E=t.matches[_],k=w;return d$(w,mr({currentUrl:y,currentParams:E.params,nextUrl:b,nextParams:k.params},n,{actionResult:x,defaultShouldRevalidate:a||y.pathname+y.search===b.pathname+b.search||y.search!==b.search||MW(E,k)}))}),d=[];return l.forEach((w,_)=>{if(!r.some(T=>T.route.id===w.routeId))return;let E=Xu(u,w.path,p);if(!E){d.push({key:_,routeId:w.routeId,path:w.path,matches:null,match:null,controller:null});return}let k=t.fetchers.get(_),S=Jk(E,w.path),R=!1;c.has(_)?R=!1:s.includes(_)?R=!0:k&&k.state!=="idle"&&k.data===void 0?R=a:R=d$(S,mr({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:x,defaultShouldRevalidate:a})),R&&d.push({key:_,routeId:w.routeId,path:w.path,matches:E,match:S,controller:new AbortController})}),[v,d]}function pde(e,t,r){let n=!t||r.route.id!==t.route.id,o=e[r.route.id]===void 0;return n||o}function MW(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function d$(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function f$(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let o=r[e.id];xt(o,"No route found in manifest");let a={};for(let i in n){let l=o[i]!==void 0&&i!=="hasErrorBoundary";Fd(!l,'Route "'+o.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!l&&!Nue.has(i)&&(a[i]=n[i])}Object.assign(o,a),Object.assign(o,mr({},t(o),{lazy:void 0}))}async function l0(e,t,r,n,o,a,i,s){s===void 0&&(s={});let l,c,u,p=x=>{let y,b=new Promise((m,f)=>y=f);return u=()=>y(),t.signal.addEventListener("abort",u),Promise.race([x({request:t,params:r.params,context:s.requestContext}),b])};try{let x=r.route[e];if(r.route.lazy)if(x)c=(await Promise.all([p(x),f$(r.route,a,o)]))[0];else if(await f$(r.route,a,o),x=r.route[e],x)c=await p(x);else if(e==="action"){let y=new URL(t.url),b=y.pathname+y.search;throw $o(405,{method:t.method,pathname:b,routeId:r.route.id})}else return{type:zr.data,data:void 0};else if(x)c=await p(x);else{let y=new URL(t.url),b=y.pathname+y.search;throw $o(404,{pathname:b})}xt(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(x){l=zr.error,c=x}finally{u&&t.signal.removeEventListener("abort",u)}if(bde(c)){let x=c.status;if(sde.has(x)){let m=c.headers.get("Location");if(xt(m,"Redirects returned/thrown from loaders/actions must have a Location header"),!PW.test(m))m=Zk(new URL(t.url),n.slice(0,n.indexOf(r)+1),i,!0,m);else if(!s.isStaticRequest){let f=new URL(t.url),v=m.startsWith("//")?new URL(f.protocol+m):new URL(m),d=ff(v.pathname,i)!=null;v.origin===f.origin&&d&&(m=v.pathname+v.search+v.hash)}if(s.isStaticRequest)throw c.headers.set("Location",m),c;return{type:zr.redirect,status:x,location:m,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(s.isRouteRequest)throw{type:l||zr.data,response:c};let y,b=c.headers.get("Content-Type");return b&&/\bapplication\/json\b/.test(b)?y=await c.json():y=await c.text(),l===zr.error?{type:l,error:new UT(x,c.statusText,y),headers:c.headers}:{type:zr.data,data:y,statusCode:c.status,headers:c.headers}}if(l===zr.error)return{type:l,error:c};if(vde(c)){var h,g;return{type:zr.deferred,deferredData:c,statusCode:(h=c.init)==null?void 0:h.status,headers:((g=c.init)==null?void 0:g.headers)&&new Headers(c.init.headers)}}return{type:zr.data,data:c}}function c0(e,t,r,n){let o=e.createURL(AW(t)).toString(),a={signal:r};if(n&&da(n.formMethod)){let{formMethod:i,formEncType:s}=n;a.method=i.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(n.json)):s==="text/plain"?a.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?a.body=Qk(n.formData):a.body=n.formData}return new Request(o,a)}function Qk(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function h$(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function mde(e,t,r,n,o){let a={},i=null,s,l=!1,c={};return r.forEach((u,p)=>{let h=t[p].route.id;if(xt(!md(u),"Cannot handle redirect results in processLoaderData"),dp(u)){let g=Zu(e,h),x=u.error;n&&(x=Object.values(n)[0],n=void 0),i=i||{},i[g.route.id]==null&&(i[g.route.id]=x),a[h]=void 0,l||(l=!0,s=SW(u.error)?u.error.status:500),u.headers&&(c[h]=u.headers)}else mc(u)?(o.set(h,u.deferredData),a[h]=u.deferredData.data):a[h]=u.data,u.statusCode!=null&&u.statusCode!==200&&!l&&(s=u.statusCode),u.headers&&(c[h]=u.headers)}),n&&(i=n,a[Object.keys(n)[0]]=void 0),{loaderData:a,errors:i,statusCode:s||200,loaderHeaders:c}}function p$(e,t,r,n,o,a,i,s){let{loaderData:l,errors:c}=mde(t,r,n,o,s);for(let u=0;un.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function g$(e){let t=e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function $o(e,t){let{pathname:r,routeId:n,method:o,type:a}=t===void 0?{}:t,i="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(i="Bad Request",o&&r&&n?s="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":a==="defer-action"?s="defer() is not supported in actions":a==="invalid-body"&&(s="Unable to encode submission body")):e===403?(i="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):e===404?(i="Not Found",s='No route matches URL "'+r+'"'):e===405&&(i="Method Not Allowed",o&&r&&n?s="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new UT(e||500,i,new Error(s),!0)}function v$(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(md(r))return{result:r,idx:t}}}function AW(e){let t=typeof e=="string"?es(e):e;return Ic(mr({},t,{hash:""}))}function gde(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function mc(e){return e.type===zr.deferred}function dp(e){return e.type===zr.error}function md(e){return(e&&e.type)===zr.redirect}function vde(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function bde(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function yde(e){return ide.has(e.toLowerCase())}function da(e){return ode.has(e.toLowerCase())}async function b$(e,t,r,n,o,a){for(let i=0;ip.route.id===l.route.id),u=c!=null&&!MW(c,l)&&(a&&a[l.route.id])!==void 0;if(mc(s)&&(o||u)){let p=n[i];xt(p,"Expected an AbortSignal for revalidating fetcher deferred result"),await jW(s,p,o).then(h=>{h&&(r[i]=h||r[i])})}}}async function jW(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:zr.data,data:e.deferredData.unwrappedData}}catch(o){return{type:zr.error,error:o}}return{type:zr.data,data:e.deferredData.data}}}function WT(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function wde(e,t){let{route:r,pathname:n,params:o}=e;return{id:r.id,pathname:n,params:o,data:t[r.id],handle:r.handle}}function Jk(e,t){let r=typeof t=="string"?es(t).search:t.search;if(e[e.length-1].route.index&&WT(r||""))return e[e.length-1];let n=$1(e);return n[n.length-1]}function y$(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:a,json:i}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:a,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function rm(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function xde(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function u0(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function _de(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0," _hasFetcherDoneAnything ":!0}}function Eu(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/** * React Router v6.14.2 * * Copyright (c) Remix Software Inc. @@ -56,7 +56,7 @@ Error generating stack: `+a.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Mx(){return Mx=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),i=O.useRef(!1);return $W(()=>{i.current=!0}),O.useCallback(function(l,c){if(c===void 0&&(c={}),!i.current)return;if(typeof l=="number"){r.go(l);return}let u=b8(l,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Li([t,u.pathname])),(c.replace?r.replace:r.push)(u,c.state,c)},[t,r,a,o,e])}const Ede=O.createContext(null);function Cde(e){let t=O.useContext(ai).outlet;return t&&O.createElement(Ede.Provider,{value:e},t)}function qT(){let{matches:e}=O.useContext(ai),t=e[e.length-1];return t?t.params:{}}function NW(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=O.useContext(ai),{pathname:o}=ii(),a=JSON.stringify($1(n).map(i=>i.pathnameBase));return O.useMemo(()=>b8(e,JSON.parse(a),o,r==="path"),[e,a,o,r])}function Ode(e,t,r){pf()||xt(!1);let{navigator:n}=O.useContext(hf),{matches:o}=O.useContext(ai),a=o[o.length-1],i=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let l=ii(),c;if(t){var u;let y=typeof t=="string"?es(t):t;s==="/"||(u=y.pathname)!=null&&u.startsWith(s)||xt(!1),c=y}else c=l;let p=c.pathname||"/",h=s==="/"?p:p.slice(s.length)||"/",g=Xu(e,{pathname:h}),x=Pde(g&&g.map(y=>Object.assign({},y,{params:Object.assign({},i,y.params),pathname:Li([s,n.encodeLocation?n.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:Li([s,n.encodeLocation?n.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,r);return t&&x?O.createElement(w8.Provider,{value:{location:Mx({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:$r.Pop}},x):x}function kde(){let e=Ide(),t=SW(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),r?O.createElement("pre",{style:o},r):null,a)}const Rde=O.createElement(kde,null);class Sde extends O.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?O.createElement(ai.Provider,{value:this.props.routeContext},O.createElement(LW.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Tde(e){let{routeContext:t,match:r,children:n}=e,o=O.useContext(y8);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),O.createElement(ai.Provider,{value:t},n)}function Pde(e,t,r){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let a=e,i=(n=r)==null?void 0:n.errors;if(i!=null){let s=a.findIndex(l=>l.route.id&&(i==null?void 0:i[l.route.id]));s>=0||xt(!1),a=a.slice(0,Math.min(a.length,s+1))}return a.reduceRight((s,l,c)=>{let u=l.route.id?i==null?void 0:i[l.route.id]:null,p=null;r&&(p=l.route.errorElement||Rde);let h=t.concat(a.slice(0,c+1)),g=()=>{let x;return u?x=p:l.route.Component?x=O.createElement(l.route.Component,null):l.route.element?x=l.route.element:x=s,O.createElement(Tde,{match:l,routeContext:{outlet:s,matches:h,isDataRoute:r!=null},children:x})};return r&&(l.route.ErrorBoundary||l.route.errorElement||c===0)?O.createElement(Sde,{location:r.location,revalidation:r.revalidation,component:p,error:u,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):g()},null)}var eR;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(eR||(eR={}));var Zp;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(Zp||(Zp={}));function Mde(e){let t=O.useContext(y8);return t||xt(!1),t}function Ade(e){let t=O.useContext(IW);return t||xt(!1),t}function jde(e){let t=O.useContext(ai);return t||xt(!1),t}function DW(e){let t=jde(),r=t.matches[t.matches.length-1];return r.route.id||xt(!1),r.route.id}function Ide(){var e;let t=O.useContext(LW),r=Ade(Zp.UseRouteError),n=DW(Zp.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function Lde(){let{router:e}=Mde(eR.UseNavigateStable),t=DW(Zp.UseNavigateStable),r=O.useRef(!1);return $W(()=>{r.current=!0}),O.useCallback(function(o,a){a===void 0&&(a={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Mx({fromRouteId:t},a)))},[e,t])}const $de="startTransition",w$=JS[$de];function Nde(e){let{fallbackElement:t,router:r,future:n}=e,[o,a]=O.useState(r.state),{v7_startTransition:i}=n||{},s=O.useCallback(p=>{i&&w$?w$(()=>a(p)):a(p)},[a,i]);O.useLayoutEffect(()=>r.subscribe(s),[r,s]);let l=O.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:p=>r.navigate(p),push:(p,h,g)=>r.navigate(p,{state:h,preventScrollReset:g==null?void 0:g.preventScrollReset}),replace:(p,h,g)=>r.navigate(p,{replace:!0,state:h,preventScrollReset:g==null?void 0:g.preventScrollReset})}),[r]),c=r.basename||"/",u=O.useMemo(()=>({router:r,navigator:l,static:!1,basename:c}),[r,l,c]);return O.createElement(O.Fragment,null,O.createElement(y8.Provider,{value:u},O.createElement(IW.Provider,{value:o},O.createElement(Fde,{basename:c,location:o.location,navigationType:o.historyAction,navigator:l},o.initialized?O.createElement(Dde,{routes:r.routes,state:o}):t))),null)}function Dde(e){let{routes:t,state:r}=e;return Ode(t,void 0,r)}function d0(e){let{to:t,replace:r,state:n,relative:o}=e;pf()||xt(!1);let{matches:a}=O.useContext(ai),{pathname:i}=ii(),s=$n(),l=b8(t,$1(a).map(u=>u.pathnameBase),i,o==="path"),c=JSON.stringify(l);return O.useEffect(()=>s(JSON.parse(c),{replace:r,state:n,relative:o}),[s,c,o,r,n]),null}function GT(e){return Cde(e.context)}function Fde(e){let{basename:t="/",children:r=null,location:n,navigationType:o=$r.Pop,navigator:a,static:i=!1}=e;pf()&&xt(!1);let s=t.replace(/^\/*/,"/"),l=O.useMemo(()=>({basename:s,navigator:a,static:i}),[s,a,i]);typeof n=="string"&&(n=es(n));let{pathname:c="/",search:u="",hash:p="",state:h=null,key:g="default"}=n,x=O.useMemo(()=>{let y=ff(c,s);return y==null?null:{location:{pathname:y,search:u,hash:p,state:h,key:g},navigationType:o}},[s,c,u,p,h,g,o]);return x==null?null:O.createElement(hf.Provider,{value:l},O.createElement(w8.Provider,{children:r,value:x}))}var x$;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(x$||(x$={}));new Promise(()=>{});function zde(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:O.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:O.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function Mx(){return Mx=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),i=O.useRef(!1);return $W(()=>{i.current=!0}),O.useCallback(function(l,c){if(c===void 0&&(c={}),!i.current)return;if(typeof l=="number"){r.go(l);return}let u=b8(l,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Li([t,u.pathname])),(c.replace?r.replace:r.push)(u,c.state,c)},[t,r,a,o,e])}const Ode=O.createContext(null);function kde(e){let t=O.useContext(ai).outlet;return t&&O.createElement(Ode.Provider,{value:e},t)}function qT(){let{matches:e}=O.useContext(ai),t=e[e.length-1];return t?t.params:{}}function NW(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=O.useContext(ai),{pathname:o}=ii(),a=JSON.stringify($1(n).map(i=>i.pathnameBase));return O.useMemo(()=>b8(e,JSON.parse(a),o,r==="path"),[e,a,o,r])}function Rde(e,t,r){pf()||xt(!1);let{navigator:n}=O.useContext(hf),{matches:o}=O.useContext(ai),a=o[o.length-1],i=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let l=ii(),c;if(t){var u;let y=typeof t=="string"?es(t):t;s==="/"||(u=y.pathname)!=null&&u.startsWith(s)||xt(!1),c=y}else c=l;let p=c.pathname||"/",h=s==="/"?p:p.slice(s.length)||"/",g=Xu(e,{pathname:h}),x=Ade(g&&g.map(y=>Object.assign({},y,{params:Object.assign({},i,y.params),pathname:Li([s,n.encodeLocation?n.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:Li([s,n.encodeLocation?n.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,r);return t&&x?O.createElement(w8.Provider,{value:{location:Mx({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:$r.Pop}},x):x}function Sde(){let e=$de(),t=SW(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),r?O.createElement("pre",{style:o},r):null,a)}const Tde=O.createElement(Sde,null);class Pde extends O.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?O.createElement(ai.Provider,{value:this.props.routeContext},O.createElement(LW.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Mde(e){let{routeContext:t,match:r,children:n}=e,o=O.useContext(y8);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),O.createElement(ai.Provider,{value:t},n)}function Ade(e,t,r){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let a=e,i=(n=r)==null?void 0:n.errors;if(i!=null){let s=a.findIndex(l=>l.route.id&&(i==null?void 0:i[l.route.id]));s>=0||xt(!1),a=a.slice(0,Math.min(a.length,s+1))}return a.reduceRight((s,l,c)=>{let u=l.route.id?i==null?void 0:i[l.route.id]:null,p=null;r&&(p=l.route.errorElement||Tde);let h=t.concat(a.slice(0,c+1)),g=()=>{let x;return u?x=p:l.route.Component?x=O.createElement(l.route.Component,null):l.route.element?x=l.route.element:x=s,O.createElement(Mde,{match:l,routeContext:{outlet:s,matches:h,isDataRoute:r!=null},children:x})};return r&&(l.route.ErrorBoundary||l.route.errorElement||c===0)?O.createElement(Pde,{location:r.location,revalidation:r.revalidation,component:p,error:u,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):g()},null)}var eR;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(eR||(eR={}));var Zp;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(Zp||(Zp={}));function jde(e){let t=O.useContext(y8);return t||xt(!1),t}function Ide(e){let t=O.useContext(IW);return t||xt(!1),t}function Lde(e){let t=O.useContext(ai);return t||xt(!1),t}function DW(e){let t=Lde(),r=t.matches[t.matches.length-1];return r.route.id||xt(!1),r.route.id}function $de(){var e;let t=O.useContext(LW),r=Ide(Zp.UseRouteError),n=DW(Zp.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function Nde(){let{router:e}=jde(eR.UseNavigateStable),t=DW(Zp.UseNavigateStable),r=O.useRef(!1);return $W(()=>{r.current=!0}),O.useCallback(function(o,a){a===void 0&&(a={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Mx({fromRouteId:t},a)))},[e,t])}const Dde="startTransition",w$=JS[Dde];function Fde(e){let{fallbackElement:t,router:r,future:n}=e,[o,a]=O.useState(r.state),{v7_startTransition:i}=n||{},s=O.useCallback(p=>{i&&w$?w$(()=>a(p)):a(p)},[a,i]);O.useLayoutEffect(()=>r.subscribe(s),[r,s]);let l=O.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:p=>r.navigate(p),push:(p,h,g)=>r.navigate(p,{state:h,preventScrollReset:g==null?void 0:g.preventScrollReset}),replace:(p,h,g)=>r.navigate(p,{replace:!0,state:h,preventScrollReset:g==null?void 0:g.preventScrollReset})}),[r]),c=r.basename||"/",u=O.useMemo(()=>({router:r,navigator:l,static:!1,basename:c}),[r,l,c]);return O.createElement(O.Fragment,null,O.createElement(y8.Provider,{value:u},O.createElement(IW.Provider,{value:o},O.createElement(Bde,{basename:c,location:o.location,navigationType:o.historyAction,navigator:l},o.initialized?O.createElement(zde,{routes:r.routes,state:o}):t))),null)}function zde(e){let{routes:t,state:r}=e;return Rde(t,void 0,r)}function d0(e){let{to:t,replace:r,state:n,relative:o}=e;pf()||xt(!1);let{matches:a}=O.useContext(ai),{pathname:i}=ii(),s=$n(),l=b8(t,$1(a).map(u=>u.pathnameBase),i,o==="path"),c=JSON.stringify(l);return O.useEffect(()=>s(JSON.parse(c),{replace:r,state:n,relative:o}),[s,c,o,r,n]),null}function GT(e){return kde(e.context)}function Bde(e){let{basename:t="/",children:r=null,location:n,navigationType:o=$r.Pop,navigator:a,static:i=!1}=e;pf()&&xt(!1);let s=t.replace(/^\/*/,"/"),l=O.useMemo(()=>({basename:s,navigator:a,static:i}),[s,a,i]);typeof n=="string"&&(n=es(n));let{pathname:c="/",search:u="",hash:p="",state:h=null,key:g="default"}=n,x=O.useMemo(()=>{let y=ff(c,s);return y==null?null:{location:{pathname:y,search:u,hash:p,state:h,key:g},navigationType:o}},[s,c,u,p,h,g,o]);return x==null?null:O.createElement(hf.Provider,{value:l},O.createElement(w8.Provider,{children:r,value:x}))}var x$;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(x$||(x$={}));new Promise(()=>{});function Vde(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:O.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:O.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.14.2 * * Copyright (c) Remix Software Inc. @@ -65,7 +65,7 @@ Error generating stack: `+a.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Qp(){return Qp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function Vde(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Hde(e,t){return e.button===0&&(!t||t==="_self")&&!Vde(e)}const Ude=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function Wde(e,t){return cde({basename:t==null?void 0:t.basename,future:Qp({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Aue({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||qde(),routes:e,mapRouteProperties:zde}).initialize()}function qde(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Qp({},t,{errors:Gde(t.errors)})),t}function Gde(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,o]of t)if(o&&o.__type==="RouteErrorResponse")r[n]=new UT(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let a=window[o.__subType];if(typeof a=="function")try{let i=new a(o.message);i.stack="",r[n]=i}catch{}}if(r[n]==null){let a=new Error(o.message);a.stack="",r[n]=a}}else r[n]=o;return r}const Kde=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Yde=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ln=O.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:a,replace:i,state:s,target:l,to:c,preventScrollReset:u}=t,p=Bde(t,Ude),{basename:h}=O.useContext(hf),g,x=!1;if(typeof c=="string"&&Yde.test(c)&&(g=c,Kde))try{let f=new URL(window.location.href),v=c.startsWith("//")?new URL(f.protocol+c):new URL(c),d=ff(v.pathname,h);v.origin===f.origin&&d!=null?c=d+v.search+v.hash:x=!0}catch{}let y=xde(c,{relative:o}),b=Xde(c,{replace:i,state:s,target:l,preventScrollReset:u,relative:o});function m(f){n&&n(f),f.defaultPrevented||b(f)}return O.createElement("a",Qp({},p,{href:g||y,onClick:x||a?n:m,ref:r,target:l}))});var _$;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(_$||(_$={}));var E$;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(E$||(E$={}));function Xde(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:i}=t===void 0?{}:t,s=$n(),l=ii(),c=NW(e,{relative:i});return O.useCallback(u=>{if(Hde(u,r)){u.preventDefault();let p=n!==void 0?n:Ic(l)===Ic(c);s(e,{replace:p,state:o,preventScrollReset:a,relative:i})}},[l,s,c,n,o,r,e,a,i])}var FW={exports:{}},zW={};/** + */function Qp(){return Qp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function Ude(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Wde(e,t){return e.button===0&&(!t||t==="_self")&&!Ude(e)}const qde=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function Gde(e,t){return dde({basename:t==null?void 0:t.basename,future:Qp({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Iue({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||Kde(),routes:e,mapRouteProperties:Vde}).initialize()}function Kde(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Qp({},t,{errors:Yde(t.errors)})),t}function Yde(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,o]of t)if(o&&o.__type==="RouteErrorResponse")r[n]=new UT(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let a=window[o.__subType];if(typeof a=="function")try{let i=new a(o.message);i.stack="",r[n]=i}catch{}}if(r[n]==null){let a=new Error(o.message);a.stack="",r[n]=a}}else r[n]=o;return r}const Xde=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Zde=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ln=O.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:a,replace:i,state:s,target:l,to:c,preventScrollReset:u}=t,p=Hde(t,qde),{basename:h}=O.useContext(hf),g,x=!1;if(typeof c=="string"&&Zde.test(c)&&(g=c,Xde))try{let f=new URL(window.location.href),v=c.startsWith("//")?new URL(f.protocol+c):new URL(c),d=ff(v.pathname,h);v.origin===f.origin&&d!=null?c=d+v.search+v.hash:x=!0}catch{}let y=Ede(c,{relative:o}),b=Qde(c,{replace:i,state:s,target:l,preventScrollReset:u,relative:o});function m(f){n&&n(f),f.defaultPrevented||b(f)}return O.createElement("a",Qp({},p,{href:g||y,onClick:x||a?n:m,ref:r,target:l}))});var _$;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(_$||(_$={}));var E$;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(E$||(E$={}));function Qde(e,t){let{target:r,replace:n,state:o,preventScrollReset:a,relative:i}=t===void 0?{}:t,s=$n(),l=ii(),c=NW(e,{relative:i});return O.useCallback(u=>{if(Wde(u,r)){u.preventDefault();let p=n!==void 0?n:Ic(l)===Ic(c);s(e,{replace:p,state:o,preventScrollReset:a,relative:i})}},[l,s,c,n,o,r,e,a,i])}var FW={exports:{}},zW={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -73,7 +73,7 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var zd=O;function Zde(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qde=typeof Object.is=="function"?Object.is:Zde,Jde=zd.useState,efe=zd.useEffect,tfe=zd.useLayoutEffect,rfe=zd.useDebugValue;function nfe(e,t){var r=t(),n=Jde({inst:{value:r,getSnapshot:t}}),o=n[0].inst,a=n[1];return tfe(function(){o.value=r,o.getSnapshot=t,OC(o)&&a({inst:o})},[e,r,t]),efe(function(){return OC(o)&&a({inst:o}),e(function(){OC(o)&&a({inst:o})})},[e]),rfe(r),r}function OC(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Qde(e,r)}catch{return!0}}function ofe(e,t){return t()}var afe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ofe:nfe;zW.useSyncExternalStore=zd.useSyncExternalStore!==void 0?zd.useSyncExternalStore:afe;FW.exports=zW;var ife=FW.exports,BW={exports:{}},VW={};/** + */var zd=O;function Jde(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var efe=typeof Object.is=="function"?Object.is:Jde,tfe=zd.useState,rfe=zd.useEffect,nfe=zd.useLayoutEffect,ofe=zd.useDebugValue;function afe(e,t){var r=t(),n=tfe({inst:{value:r,getSnapshot:t}}),o=n[0].inst,a=n[1];return nfe(function(){o.value=r,o.getSnapshot=t,OC(o)&&a({inst:o})},[e,r,t]),rfe(function(){return OC(o)&&a({inst:o}),e(function(){OC(o)&&a({inst:o})})},[e]),ofe(r),r}function OC(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!efe(e,r)}catch{return!0}}function ife(e,t){return t()}var sfe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ife:afe;zW.useSyncExternalStore=zd.useSyncExternalStore!==void 0?zd.useSyncExternalStore:sfe;FW.exports=zW;var lfe=FW.exports,BW={exports:{}},VW={};/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -81,14 +81,14 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var x8=O,sfe=ife;function lfe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cfe=typeof Object.is=="function"?Object.is:lfe,ufe=sfe.useSyncExternalStore,dfe=x8.useRef,ffe=x8.useEffect,hfe=x8.useMemo,pfe=x8.useDebugValue;VW.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var a=dfe(null);if(a.current===null){var i={hasValue:!1,value:null};a.current=i}else i=a.current;a=hfe(function(){function l(g){if(!c){if(c=!0,u=g,g=n(g),o!==void 0&&i.hasValue){var x=i.value;if(o(x,g))return p=x}return p=g}if(x=p,cfe(u,g))return x;var y=n(g);return o!==void 0&&o(x,y)?x:(u=g,p=y)}var c=!1,u,p,h=r===void 0?null:r;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,r,n,o]);var s=ufe(e,a[0],a[1]);return ffe(function(){i.hasValue=!0,i.value=s},[s]),pfe(s),s};BW.exports=VW;var mfe=BW.exports;function gfe(e){e()}let HW=gfe;const vfe=e=>HW=e,bfe=()=>HW,C$=Symbol.for(`react-redux-context-${O.version}`),O$=globalThis;function yfe(){let e=O$[C$];return e||(e=O.createContext(null),O$[C$]=e),e}const ml=new Proxy({},new Proxy({},{get(e,t){const r=yfe();return(n,...o)=>Reflect[t](r,...o)}}));function KT(e=ml){return function(){return O.useContext(e)}}const UW=KT(),wfe=()=>{throw new Error("uSES not initialized!")};let WW=wfe;const xfe=e=>{WW=e},_fe=(e,t)=>e===t;function Efe(e=ml){const t=e===ml?UW:KT(e);return function(n,o={}){const{equalityFn:a=_fe,stabilityCheck:i=void 0,noopCheck:s=void 0}=typeof o=="function"?{equalityFn:o}:o,{store:l,subscription:c,getServerState:u,stabilityCheck:p,noopCheck:h}=t();O.useRef(!0);const g=O.useCallback({[n.name](y){return n(y)}}[n.name],[n,p,i]),x=WW(c.addNestedSub,l.getState,u||l.getState,g,a);return O.useDebugValue(x),x}}const Jr=Efe();var qW={exports:{}},Gt={};/** @license React v16.13.1 + */var x8=O,cfe=lfe;function ufe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dfe=typeof Object.is=="function"?Object.is:ufe,ffe=cfe.useSyncExternalStore,hfe=x8.useRef,pfe=x8.useEffect,mfe=x8.useMemo,gfe=x8.useDebugValue;VW.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var a=hfe(null);if(a.current===null){var i={hasValue:!1,value:null};a.current=i}else i=a.current;a=mfe(function(){function l(g){if(!c){if(c=!0,u=g,g=n(g),o!==void 0&&i.hasValue){var x=i.value;if(o(x,g))return p=x}return p=g}if(x=p,dfe(u,g))return x;var y=n(g);return o!==void 0&&o(x,y)?x:(u=g,p=y)}var c=!1,u,p,h=r===void 0?null:r;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,r,n,o]);var s=ffe(e,a[0],a[1]);return pfe(function(){i.hasValue=!0,i.value=s},[s]),gfe(s),s};BW.exports=VW;var vfe=BW.exports;function bfe(e){e()}let HW=bfe;const yfe=e=>HW=e,wfe=()=>HW,C$=Symbol.for(`react-redux-context-${O.version}`),O$=globalThis;function xfe(){let e=O$[C$];return e||(e=O.createContext(null),O$[C$]=e),e}const ml=new Proxy({},new Proxy({},{get(e,t){const r=xfe();return(n,...o)=>Reflect[t](r,...o)}}));function KT(e=ml){return function(){return O.useContext(e)}}const UW=KT(),_fe=()=>{throw new Error("uSES not initialized!")};let WW=_fe;const Efe=e=>{WW=e},Cfe=(e,t)=>e===t;function Ofe(e=ml){const t=e===ml?UW:KT(e);return function(n,o={}){const{equalityFn:a=Cfe,stabilityCheck:i=void 0,noopCheck:s=void 0}=typeof o=="function"?{equalityFn:o}:o,{store:l,subscription:c,getServerState:u,stabilityCheck:p,noopCheck:h}=t();O.useRef(!0);const g=O.useCallback({[n.name](y){return n(y)}}[n.name],[n,p,i]),x=WW(c.addNestedSub,l.getState,u||l.getState,g,a);return O.useDebugValue(x),x}}const Jr=Ofe();var qW={exports:{}},Gt={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var tn=typeof Symbol=="function"&&Symbol.for,YT=tn?Symbol.for("react.element"):60103,XT=tn?Symbol.for("react.portal"):60106,_8=tn?Symbol.for("react.fragment"):60107,E8=tn?Symbol.for("react.strict_mode"):60108,C8=tn?Symbol.for("react.profiler"):60114,O8=tn?Symbol.for("react.provider"):60109,k8=tn?Symbol.for("react.context"):60110,ZT=tn?Symbol.for("react.async_mode"):60111,R8=tn?Symbol.for("react.concurrent_mode"):60111,S8=tn?Symbol.for("react.forward_ref"):60112,T8=tn?Symbol.for("react.suspense"):60113,Cfe=tn?Symbol.for("react.suspense_list"):60120,P8=tn?Symbol.for("react.memo"):60115,M8=tn?Symbol.for("react.lazy"):60116,Ofe=tn?Symbol.for("react.block"):60121,kfe=tn?Symbol.for("react.fundamental"):60117,Rfe=tn?Symbol.for("react.responder"):60118,Sfe=tn?Symbol.for("react.scope"):60119;function ko(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case YT:switch(e=e.type,e){case ZT:case R8:case _8:case C8:case E8:case T8:return e;default:switch(e=e&&e.$$typeof,e){case k8:case S8:case M8:case P8:case O8:return e;default:return t}}case XT:return t}}}function GW(e){return ko(e)===R8}Gt.AsyncMode=ZT;Gt.ConcurrentMode=R8;Gt.ContextConsumer=k8;Gt.ContextProvider=O8;Gt.Element=YT;Gt.ForwardRef=S8;Gt.Fragment=_8;Gt.Lazy=M8;Gt.Memo=P8;Gt.Portal=XT;Gt.Profiler=C8;Gt.StrictMode=E8;Gt.Suspense=T8;Gt.isAsyncMode=function(e){return GW(e)||ko(e)===ZT};Gt.isConcurrentMode=GW;Gt.isContextConsumer=function(e){return ko(e)===k8};Gt.isContextProvider=function(e){return ko(e)===O8};Gt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===YT};Gt.isForwardRef=function(e){return ko(e)===S8};Gt.isFragment=function(e){return ko(e)===_8};Gt.isLazy=function(e){return ko(e)===M8};Gt.isMemo=function(e){return ko(e)===P8};Gt.isPortal=function(e){return ko(e)===XT};Gt.isProfiler=function(e){return ko(e)===C8};Gt.isStrictMode=function(e){return ko(e)===E8};Gt.isSuspense=function(e){return ko(e)===T8};Gt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===_8||e===R8||e===C8||e===E8||e===T8||e===Cfe||typeof e=="object"&&e!==null&&(e.$$typeof===M8||e.$$typeof===P8||e.$$typeof===O8||e.$$typeof===k8||e.$$typeof===S8||e.$$typeof===kfe||e.$$typeof===Rfe||e.$$typeof===Sfe||e.$$typeof===Ofe)};Gt.typeOf=ko;qW.exports=Gt;var Tfe=qW.exports,KW=Tfe,Pfe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Mfe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},YW={};YW[KW.ForwardRef]=Pfe;YW[KW.Memo]=Mfe;var Xt={};/** + */var tn=typeof Symbol=="function"&&Symbol.for,YT=tn?Symbol.for("react.element"):60103,XT=tn?Symbol.for("react.portal"):60106,_8=tn?Symbol.for("react.fragment"):60107,E8=tn?Symbol.for("react.strict_mode"):60108,C8=tn?Symbol.for("react.profiler"):60114,O8=tn?Symbol.for("react.provider"):60109,k8=tn?Symbol.for("react.context"):60110,ZT=tn?Symbol.for("react.async_mode"):60111,R8=tn?Symbol.for("react.concurrent_mode"):60111,S8=tn?Symbol.for("react.forward_ref"):60112,T8=tn?Symbol.for("react.suspense"):60113,kfe=tn?Symbol.for("react.suspense_list"):60120,P8=tn?Symbol.for("react.memo"):60115,M8=tn?Symbol.for("react.lazy"):60116,Rfe=tn?Symbol.for("react.block"):60121,Sfe=tn?Symbol.for("react.fundamental"):60117,Tfe=tn?Symbol.for("react.responder"):60118,Pfe=tn?Symbol.for("react.scope"):60119;function ko(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case YT:switch(e=e.type,e){case ZT:case R8:case _8:case C8:case E8:case T8:return e;default:switch(e=e&&e.$$typeof,e){case k8:case S8:case M8:case P8:case O8:return e;default:return t}}case XT:return t}}}function GW(e){return ko(e)===R8}Gt.AsyncMode=ZT;Gt.ConcurrentMode=R8;Gt.ContextConsumer=k8;Gt.ContextProvider=O8;Gt.Element=YT;Gt.ForwardRef=S8;Gt.Fragment=_8;Gt.Lazy=M8;Gt.Memo=P8;Gt.Portal=XT;Gt.Profiler=C8;Gt.StrictMode=E8;Gt.Suspense=T8;Gt.isAsyncMode=function(e){return GW(e)||ko(e)===ZT};Gt.isConcurrentMode=GW;Gt.isContextConsumer=function(e){return ko(e)===k8};Gt.isContextProvider=function(e){return ko(e)===O8};Gt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===YT};Gt.isForwardRef=function(e){return ko(e)===S8};Gt.isFragment=function(e){return ko(e)===_8};Gt.isLazy=function(e){return ko(e)===M8};Gt.isMemo=function(e){return ko(e)===P8};Gt.isPortal=function(e){return ko(e)===XT};Gt.isProfiler=function(e){return ko(e)===C8};Gt.isStrictMode=function(e){return ko(e)===E8};Gt.isSuspense=function(e){return ko(e)===T8};Gt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===_8||e===R8||e===C8||e===E8||e===T8||e===kfe||typeof e=="object"&&e!==null&&(e.$$typeof===M8||e.$$typeof===P8||e.$$typeof===O8||e.$$typeof===k8||e.$$typeof===S8||e.$$typeof===Sfe||e.$$typeof===Tfe||e.$$typeof===Pfe||e.$$typeof===Rfe)};Gt.typeOf=ko;qW.exports=Gt;var Mfe=qW.exports,KW=Mfe,Afe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},jfe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},YW={};YW[KW.ForwardRef]=Afe;YW[KW.Memo]=jfe;var Xt={};/** * @license React * react-is.production.min.js * @@ -96,19 +96,19 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var QT=Symbol.for("react.element"),JT=Symbol.for("react.portal"),A8=Symbol.for("react.fragment"),j8=Symbol.for("react.strict_mode"),I8=Symbol.for("react.profiler"),L8=Symbol.for("react.provider"),$8=Symbol.for("react.context"),Afe=Symbol.for("react.server_context"),N8=Symbol.for("react.forward_ref"),D8=Symbol.for("react.suspense"),F8=Symbol.for("react.suspense_list"),z8=Symbol.for("react.memo"),B8=Symbol.for("react.lazy"),jfe=Symbol.for("react.offscreen"),XW;XW=Symbol.for("react.module.reference");function Qo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case QT:switch(e=e.type,e){case A8:case I8:case j8:case D8:case F8:return e;default:switch(e=e&&e.$$typeof,e){case Afe:case $8:case N8:case B8:case z8:case L8:return e;default:return t}}case JT:return t}}}Xt.ContextConsumer=$8;Xt.ContextProvider=L8;Xt.Element=QT;Xt.ForwardRef=N8;Xt.Fragment=A8;Xt.Lazy=B8;Xt.Memo=z8;Xt.Portal=JT;Xt.Profiler=I8;Xt.StrictMode=j8;Xt.Suspense=D8;Xt.SuspenseList=F8;Xt.isAsyncMode=function(){return!1};Xt.isConcurrentMode=function(){return!1};Xt.isContextConsumer=function(e){return Qo(e)===$8};Xt.isContextProvider=function(e){return Qo(e)===L8};Xt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===QT};Xt.isForwardRef=function(e){return Qo(e)===N8};Xt.isFragment=function(e){return Qo(e)===A8};Xt.isLazy=function(e){return Qo(e)===B8};Xt.isMemo=function(e){return Qo(e)===z8};Xt.isPortal=function(e){return Qo(e)===JT};Xt.isProfiler=function(e){return Qo(e)===I8};Xt.isStrictMode=function(e){return Qo(e)===j8};Xt.isSuspense=function(e){return Qo(e)===D8};Xt.isSuspenseList=function(e){return Qo(e)===F8};Xt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===A8||e===I8||e===j8||e===D8||e===F8||e===jfe||typeof e=="object"&&e!==null&&(e.$$typeof===B8||e.$$typeof===z8||e.$$typeof===L8||e.$$typeof===$8||e.$$typeof===N8||e.$$typeof===XW||e.getModuleId!==void 0)};Xt.typeOf=Qo;function Ife(){const e=bfe();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],o=t;for(;o;)n.push(o),o=o.next;return n},subscribe(n){let o=!0,a=r={callback:n,next:null,prev:r};return a.prev?a.prev.next=a:t=a,function(){!o||t===null||(o=!1,a.next?a.next.prev=a.prev:r=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const k$={notify(){},get:()=>[]};function Lfe(e,t){let r,n=k$;function o(p){return l(),n.subscribe(p)}function a(){n.notify()}function i(){u.onStateChange&&u.onStateChange()}function s(){return!!r}function l(){r||(r=t?t.addNestedSub(i):e.subscribe(i),n=Ife())}function c(){r&&(r(),r=void 0,n.clear(),n=k$)}const u={addNestedSub:o,notifyNestedSubs:a,handleChangeWrapper:i,isSubscribed:s,trySubscribe:l,tryUnsubscribe:c,getListeners:()=>n};return u}const $fe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Nfe=$fe?O.useLayoutEffect:O.useEffect;function Dfe({store:e,context:t,children:r,serverState:n,stabilityCheck:o="once",noopCheck:a="once"}){const i=O.useMemo(()=>{const c=Lfe(e);return{store:e,subscription:c,getServerState:n?()=>n:void 0,stabilityCheck:o,noopCheck:a}},[e,n,o,a]),s=O.useMemo(()=>e.getState(),[e]);Nfe(()=>{const{subscription:c}=i;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[i,s]);const l=t||ml;return Fe.createElement(l.Provider,{value:i},r)}function ZW(e=ml){const t=e===ml?UW:KT(e);return function(){const{store:n}=t();return n}}const Ffe=ZW();function zfe(e=ml){const t=e===ml?Ffe:ZW(e);return function(){return t().dispatch}}const no=zfe();xfe(mfe.useSyncExternalStoreWithSelector);vfe(Zo.unstable_batchedUpdates);var ie={},QW={},JW={exports:{}};/*! + */var QT=Symbol.for("react.element"),JT=Symbol.for("react.portal"),A8=Symbol.for("react.fragment"),j8=Symbol.for("react.strict_mode"),I8=Symbol.for("react.profiler"),L8=Symbol.for("react.provider"),$8=Symbol.for("react.context"),Ife=Symbol.for("react.server_context"),N8=Symbol.for("react.forward_ref"),D8=Symbol.for("react.suspense"),F8=Symbol.for("react.suspense_list"),z8=Symbol.for("react.memo"),B8=Symbol.for("react.lazy"),Lfe=Symbol.for("react.offscreen"),XW;XW=Symbol.for("react.module.reference");function Qo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case QT:switch(e=e.type,e){case A8:case I8:case j8:case D8:case F8:return e;default:switch(e=e&&e.$$typeof,e){case Ife:case $8:case N8:case B8:case z8:case L8:return e;default:return t}}case JT:return t}}}Xt.ContextConsumer=$8;Xt.ContextProvider=L8;Xt.Element=QT;Xt.ForwardRef=N8;Xt.Fragment=A8;Xt.Lazy=B8;Xt.Memo=z8;Xt.Portal=JT;Xt.Profiler=I8;Xt.StrictMode=j8;Xt.Suspense=D8;Xt.SuspenseList=F8;Xt.isAsyncMode=function(){return!1};Xt.isConcurrentMode=function(){return!1};Xt.isContextConsumer=function(e){return Qo(e)===$8};Xt.isContextProvider=function(e){return Qo(e)===L8};Xt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===QT};Xt.isForwardRef=function(e){return Qo(e)===N8};Xt.isFragment=function(e){return Qo(e)===A8};Xt.isLazy=function(e){return Qo(e)===B8};Xt.isMemo=function(e){return Qo(e)===z8};Xt.isPortal=function(e){return Qo(e)===JT};Xt.isProfiler=function(e){return Qo(e)===I8};Xt.isStrictMode=function(e){return Qo(e)===j8};Xt.isSuspense=function(e){return Qo(e)===D8};Xt.isSuspenseList=function(e){return Qo(e)===F8};Xt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===A8||e===I8||e===j8||e===D8||e===F8||e===Lfe||typeof e=="object"&&e!==null&&(e.$$typeof===B8||e.$$typeof===z8||e.$$typeof===L8||e.$$typeof===$8||e.$$typeof===N8||e.$$typeof===XW||e.getModuleId!==void 0)};Xt.typeOf=Qo;function $fe(){const e=wfe();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],o=t;for(;o;)n.push(o),o=o.next;return n},subscribe(n){let o=!0,a=r={callback:n,next:null,prev:r};return a.prev?a.prev.next=a:t=a,function(){!o||t===null||(o=!1,a.next?a.next.prev=a.prev:r=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const k$={notify(){},get:()=>[]};function Nfe(e,t){let r,n=k$;function o(p){return l(),n.subscribe(p)}function a(){n.notify()}function i(){u.onStateChange&&u.onStateChange()}function s(){return!!r}function l(){r||(r=t?t.addNestedSub(i):e.subscribe(i),n=$fe())}function c(){r&&(r(),r=void 0,n.clear(),n=k$)}const u={addNestedSub:o,notifyNestedSubs:a,handleChangeWrapper:i,isSubscribed:s,trySubscribe:l,tryUnsubscribe:c,getListeners:()=>n};return u}const Dfe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ffe=Dfe?O.useLayoutEffect:O.useEffect;function zfe({store:e,context:t,children:r,serverState:n,stabilityCheck:o="once",noopCheck:a="once"}){const i=O.useMemo(()=>{const c=Nfe(e);return{store:e,subscription:c,getServerState:n?()=>n:void 0,stabilityCheck:o,noopCheck:a}},[e,n,o,a]),s=O.useMemo(()=>e.getState(),[e]);Ffe(()=>{const{subscription:c}=i;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[i,s]);const l=t||ml;return Fe.createElement(l.Provider,{value:i},r)}function ZW(e=ml){const t=e===ml?UW:KT(e);return function(){const{store:n}=t();return n}}const Bfe=ZW();function Vfe(e=ml){const t=e===ml?Bfe:ZW(e);return function(){return t().dispatch}}const no=Vfe();Efe(vfe.useSyncExternalStoreWithSelector);yfe(Zo.unstable_batchedUpdates);var ie={},QW={},JW={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],o=0;oe&&(t=0,n=r,r=new Map)}return{get:function(a){var i=r.get(a);return i!==void 0?i:(i=n.get(a))!==void 0?(o(a,i),i):void 0},set:function(a,i){r.has(a)?r.set(a,i):o(a,i)}}}var nq="!";function Hfe(e){var t=e.separator||":",r=t.length===1,n=t[0],o=t.length;return function(a){for(var i,s=[],l=0,c=0,u=0;uc?i-c:void 0}}}var Ufe=/\s+/;function rR(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),n=1;nl.length)&&(c=l.length);for(var u=0,p=new Array(c);ub.length)&&(m=b.length);for(var f=0,v=new Array(m);ff.length)&&(v=f.length);for(var d=0,w=new Array(v);df.length)&&(v=f.length);for(var d=0,w=new Array(v);dE.length)&&(k=E.length);for(var S=0,R=new Array(k);Sd.length)&&(w=d.length);for(var _=0,E=new Array(w);_m.length)&&(f=m.length);for(var v=0,d=new Array(f);vw.length)&&(_=w.length);for(var E=0,k=new Array(_);E<_;E++)k[E]=w[E];return k}function a(w){if(Array.isArray(w))return o(w)}function i(w){return w&&w.__esModule?w:{default:w}}function s(w){if(typeof Symbol<"u"&&w[Symbol.iterator]!=null||w["@@iterator"]!=null)return Array.from(w)}function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(w){return a(w)||s(w)||u(w)||l()}function u(w,_){if(w){if(typeof w=="string")return o(w,_);var E=Object.prototype.toString.call(w).slice(8,-1);if(E==="Object"&&w.constructor&&(E=w.constructor.name),E==="Map"||E==="Set")return Array.from(E);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return o(w,_)}}var p=["white"].concat(c(n.propTypesColors)),h=r.default.bool,g=r.default.bool,x=["circular","square"],y=["top-start","top-end","bottom-start","bottom-end"],b=r.default.string,m=r.default.node,f=r.default.node.isRequired,v=r.default.instanceOf(Object),d=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(mP);var tK={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{backgroud:"bg-white",color:"text-blue-gray-900"},"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white"},gray:{backgroud:"bg-gray-500",color:"text-white"},brown:{backgroud:"bg-brown-500",color:"text-white"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white"},orange:{backgroud:"bg-orange-500",color:"text-white"},amber:{backgroud:"bg-amber-500",color:"text-black"},yellow:{backgroud:"bg-yellow-500",color:"text-black"},lime:{backgroud:"bg-lime-500",color:"text-black"},"light-green":{backgroud:"bg-light-green-500",color:"text-white"},green:{backgroud:"bg-green-500",color:"text-white"},teal:{backgroud:"bg-teal-500",color:"text-white"},cyan:{backgroud:"bg-cyan-500",color:"text-white"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white"},blue:{backgroud:"bg-blue-500",color:"text-white"},indigo:{backgroud:"bg-indigo-500",color:"text-white"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white"},purple:{backgroud:"bg-purple-500",color:"text-white"},pink:{backgroud:"bg-pink-500",color:"text-white"},red:{backgroud:"bg-red-500",color:"text-white"}},r=t})(tK);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var c in l)Object.defineProperty(s,c,{enumerable:!0,get:l[c]})}t(e,{badge:function(){return a},default:function(){return i}});var r=mP,n=o(tK);function o(s){return s&&s.__esModule?s:{default:s}}var a={defaultProps:{color:"red",invisible:!1,withBorder:!1,overlap:"square",content:void 0,placement:"top-end",className:void 0,containerProps:void 0},valid:{colors:r.propTypesColor,overlaps:r.propTypesOverlap,placements:r.propTypesPlacement},styles:{base:{container:{position:"relative",display:"inline-flex"},badge:{initial:{position:"absolute",minWidth:"min-w-[12px]",minHeight:"min-h-[12px]",borderRadius:"rounded-full",paddingY:"py-1",paddingX:"px-1",fontSize:"text-xs",fontWeight:"font-medium",content:"content-['']",lineHeight:"leading-none",display:"grid",placeItems:"place-items-center"},withBorder:{borderWidth:"border-2",borderColor:"border-white"},withContent:{minWidth:"min-w-[24px]",minHeight:"min-h-[24px]"}}},placements:{"top-start":{square:{top:"top-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"}},"top-end":{square:{top:"top-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"}},"bottom-start":{square:{bottom:"bottom-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"}},"bottom-end":{square:{bottom:"bottom-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"}}},colors:n.default}},i=a})(eK);var rK={},gP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,d){for(var w in d)Object.defineProperty(v,w,{enumerable:!0,get:d[w]})}t(e,{propTypesCount:function(){return p},propTypesValue:function(){return h},propTypesRatedIcon:function(){return g},propTypesUnratedIcon:function(){return x},propTypesColor:function(){return y},propTypesOnChange:function(){return b},propTypesClassName:function(){return m},propTypesReadonly:function(){return f}});var r=i(et),n=ur;function o(v,d){(d==null||d>v.length)&&(d=v.length);for(var w=0,_=new Array(d);wg.length)&&(x=g.length);for(var y=0,b=new Array(x);yy.length)&&(b=y.length);for(var m=0,f=new Array(b);m"u"?s[c]=i.cloneUnlessOtherwiseSpecified(l,i):i.isMergeableObject(l)?s[c]=(0,t.default)(o[c],l,i):o.indexOf(l)===-1&&s.push(l)}),s}})(kK);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,x){for(var y in x)Object.defineProperty(g,y,{enumerable:!0,get:x[y]})}t(e,{MaterialTailwindTheme:function(){return u},ThemeProvider:function(){return p},useTheme:function(){return h}});var r=c(O),n=s(et),o=s(dn),a=s(rP),i=s(kK);function s(g){return g&&g.__esModule?g:{default:g}}function l(g){if(typeof WeakMap!="function")return null;var x=new WeakMap,y=new WeakMap;return(l=function(b){return b?y:x})(g)}function c(g,x){if(!x&&g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var y=l(x);if(y&&y.has(g))return y.get(g);var b={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in g)if(f!=="default"&&Object.prototype.hasOwnProperty.call(g,f)){var v=m?Object.getOwnPropertyDescriptor(g,f):null;v&&(v.get||v.set)?Object.defineProperty(b,f,v):b[f]=g[f]}return b.default=g,y&&y.set(g,b),b}var u=(0,r.createContext)(a.default);u.displayName="MaterialTailwindThemeProvider";function p(g){var x=g.value,y=x===void 0?a.default:x,b=g.children,m=(0,o.default)(a.default,y,{arrayMerge:i.default});return r.default.createElement(u.Provider,{value:m},b)}var h=function(){return(0,r.useContext)(u)};p.propTypes={value:n.default.instanceOf(Object),children:n.default.node.isRequired}})(Ye);var H8={},F1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,g){for(var x in g)Object.defineProperty(h,x,{enumerable:!0,get:g[x]})}t(e,{propTypesOpen:function(){return a},propTypesIcon:function(){return i},propTypesAnimate:function(){return s},propTypesDisabled:function(){return l},propTypesClassName:function(){return c},propTypesValue:function(){return u},propTypesChildren:function(){return p}});var r=o(et),n=ur;function o(h){return h&&h.__esModule?h:{default:h}}var a=r.default.bool.isRequired,i=r.default.node,s=n.propTypesAnimation,l=r.default.bool,c=r.default.string,u=r.default.instanceOf(Object).isRequired,p=r.default.node.isRequired})(F1);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,c){for(var u in c)Object.defineProperty(l,u,{enumerable:!0,get:c[u]})}t(e,{AccordionContext:function(){return a},useAccordion:function(){return i},AccordionContextProvider:function(){return s}});var r=o(O),n=F1;function o(l){return l&&l.__esModule?l:{default:l}}var a=r.default.createContext(null);a.displayName="MaterialTailwind.AccordionContext";function i(){var l=r.default.useContext(a);if(!l)throw new Error("useAccordion() must be used within an Accordion. It happens when you use AccordionHeader or AccordionBody components outside the Accordion component.");return l}var s=function(l){var c=l.value,u=l.children;return r.default.createElement(a.Provider,{value:c},u)};s.propTypes={value:n.propTypesValue,children:n.propTypesChildren},s.displayName="MaterialTailwind.AccordionContextProvider"})(H8);var RK={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,m){for(var f in m)Object.defineProperty(b,f,{enumerable:!0,get:m[f]})}t(e,{AccordionHeader:function(){return x},default:function(){return y}});var r=p(O),n=p(ct),o=Je,a=p(Ze),i=H8,s=Ye,l=F1;function c(b,m,f){return m in b?Object.defineProperty(b,m,{value:f,enumerable:!0,configurable:!0,writable:!0}):b[m]=f,b}function u(){return u=Object.assign||function(b){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(b,v)&&(f[v]=b[v])}return f}function g(b,m){if(b==null)return{};var f={},v=Object.keys(b),d,w;for(w=0;w=0)&&(f[d]=b[d]);return f}var x=r.default.forwardRef(function(b,m){var f=b.className,v=b.children,d=h(b,["className","children"]),w=(0,i.useAccordion)(),_=w.open,E=w.icon,k=w.disabled,S=(0,s.useTheme)().accordion,R=S.styles.base;f=f??"";var T=(0,o.twMerge)((0,n.default)((0,a.default)(R.header.initial),c({},(0,a.default)(R.header.active),_)),f),P=(0,n.default)((0,a.default)(R.header.icon));return r.default.createElement("button",u({},d,{ref:m,type:"button",disabled:k,className:T}),v,r.default.createElement("span",{className:P},E??(_?r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5 10a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1z",clipRule:"evenodd"})):r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})))))});x.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},x.displayName="MaterialTailwind.AccordionHeader";var y=x})(RK);var SK={},rn={},nR=function(e,t){return nR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},nR(e,t)};function TK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");nR(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var jx=function(){return jx=Object.assign||function(t){for(var r,n=1,o=arguments.length;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function AK(e,t){return function(r,n){t(r,n,e)}}function KLe(e,t,r,n,o,a){function i(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var s=n.kind,l=s==="getter"?"get":s==="setter"?"set":"value",c=!t&&e?n.static?e:e.prototype:null,u=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),p,h=!1,g=r.length-1;g>=0;g--){var x={};for(var y in n)x[y]=y==="access"?{}:n[y];for(var y in n.access)x.access[y]=n.access[y];x.addInitializer=function(m){if(h)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(m||null))};var b=(0,r[g])(s==="accessor"?{get:u.get,set:u.set}:u[l],x);if(s==="accessor"){if(b===void 0)continue;if(b===null||typeof b!="object")throw new TypeError("Object expected");(p=i(b.get))&&(u.get=p),(p=i(b.set))&&(u.set=p),(p=i(b.init))&&o.unshift(p)}else(p=i(b))&&(s==="field"?o.unshift(p):u[l]=p)}c&&Object.defineProperty(c,n.name,u),h=!0}function YLe(e,t,r){for(var n=arguments.length>2,o=0;o0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function yP(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return a}function NK(){for(var e=[],t=0;t1||s(h,g)})})}function s(h,g){try{l(n[h](g))}catch(x){p(a[0][3],x)}}function l(h){h.value instanceof Vd?Promise.resolve(h.value.v).then(c,u):p(a[0][2],h)}function c(h){s("next",h)}function u(h){s("throw",h)}function p(h,g){h(g),a.shift(),a.length&&s(a[0][0],a[0][1])}}function BK(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,a){t[o]=e[o]?function(i){return(r=!r)?{value:Vd(e[o](i)),done:!1}:a?a(i):i}:a}}function VK(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Ix=="function"?Ix(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(i){return new Promise(function(s,l){i=e[a](i),o(s,l,i.done,i.value)})}}function o(a,i,s,l){Promise.resolve(l).then(function(c){a({value:c,done:s})},i)}}function HK(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var QLe=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function UK(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&U8(t,e,r);return QLe(t,e),t}function WK(e){return e&&e.__esModule?e:{default:e}}function qK(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function GK(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}function KK(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function YK(e,t,r){if(t!=null){if(typeof t!="object")throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if(typeof n!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var JLe=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function XK(e){function t(n){e.error=e.hasError?new JLe(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,function(a){return t(a),r()})}catch(a){t(a)}}if(e.hasError)throw e.error}return r()}const e$e={__extends:TK,__assign:jx,__rest:PK,__decorate:MK,__param:AK,__metadata:jK,__awaiter:IK,__generator:LK,__createBinding:U8,__exportStar:$K,__values:Ix,__read:yP,__spread:NK,__spreadArrays:DK,__spreadArray:FK,__await:Vd,__asyncGenerator:zK,__asyncDelegator:BK,__asyncValues:VK,__makeTemplateObject:HK,__importStar:UK,__importDefault:WK,__classPrivateFieldGet:qK,__classPrivateFieldSet:GK,__classPrivateFieldIn:KK,__addDisposableResource:YK,__disposeResources:XK},t$e=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:YK,get __assign(){return jx},__asyncDelegator:BK,__asyncGenerator:zK,__asyncValues:VK,__await:Vd,__awaiter:IK,__classPrivateFieldGet:qK,__classPrivateFieldIn:KK,__classPrivateFieldSet:GK,__createBinding:U8,__decorate:MK,__disposeResources:XK,__esDecorate:KLe,__exportStar:$K,__extends:TK,__generator:LK,__importDefault:WK,__importStar:UK,__makeTemplateObject:HK,__metadata:jK,__param:AK,__propKey:XLe,__read:yP,__rest:PK,__runInitializers:YLe,__setFunctionName:ZLe,__spread:NK,__spreadArray:FK,__spreadArrays:DK,__values:Ix,default:e$e},Symbol.toStringTag,{value:"Module"})),r$e=lf(t$e);var n$e=function(){},ZK=function(){};const o$e=Object.freeze(Object.defineProperty({__proto__:null,invariant:ZK,warning:n$e},Symbol.toStringTag,{value:"Module"})),QK=lf(o$e);var qr={};Object.defineProperty(qr,"__esModule",{value:!0});const JK=(e,t)=>r=>Math.max(Math.min(r,t),e),fp=e=>e%1?Number(e.toFixed(5)):e,e1=/(-)?([\d]*\.?[\d])+/g,oR=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,a$e=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function z1(e){return typeof e=="string"}const B1={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},wP=Object.assign(Object.assign({},B1),{transform:JK(0,1)}),i$e=Object.assign(Object.assign({},B1),{default:1}),V1=e=>({test:t=>z1(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),s$e=V1("deg"),gd=V1("%"),l$e=V1("px"),c$e=V1("vh"),u$e=V1("vw"),d$e=Object.assign(Object.assign({},gd),{parse:e=>gd.parse(e)/100,transform:e=>gd.transform(e*100)}),xP=(e,t)=>r=>!!(z1(r)&&a$e.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),eY=(e,t,r)=>n=>{if(!z1(n))return n;const[o,a,i,s]=n.match(e1);return{[e]:parseFloat(o),[t]:parseFloat(a),[r]:parseFloat(i),alpha:s!==void 0?parseFloat(s):1}},qh={test:xP("hsl","hue"),parse:eY("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+gd.transform(fp(t))+", "+gd.transform(fp(r))+", "+fp(wP.transform(n))+")"},f$e=JK(0,255),C6=Object.assign(Object.assign({},B1),{transform:e=>Math.round(f$e(e))}),Ju={test:xP("rgb","red"),parse:eY("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+C6.transform(e)+", "+C6.transform(t)+", "+C6.transform(r)+", "+fp(wP.transform(n))+")"};function h$e(e){let t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const aR={test:xP("#"),parse:h$e,transform:Ju.transform},_P={test:e=>Ju.test(e)||aR.test(e)||qh.test(e),parse:e=>Ju.test(e)?Ju.parse(e):qh.test(e)?qh.parse(e):aR.parse(e),transform:e=>z1(e)?e:e.hasOwnProperty("red")?Ju.transform(e):qh.transform(e)},tY="${c}",rY="${n}";function p$e(e){var t,r,n,o;return isNaN(e)&&z1(e)&&((r=(t=e.match(e1))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((o=(n=e.match(oR))===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0)>0}function nY(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(oR);n&&(r=n.length,e=e.replace(oR,tY),t.push(...n.map(_P.parse)));const o=e.match(e1);return o&&(e=e.replace(e1,rY),t.push(...o.map(B1.parse))),{values:t,numColors:r,tokenised:e}}function oY(e){return nY(e).values}function aY(e){const{values:t,numColors:r,tokenised:n}=nY(e),o=t.length;return a=>{let i=n;for(let s=0;stypeof e=="number"?0:e;function g$e(e){const t=oY(e);return aY(e)(t.map(m$e))}const iY={test:p$e,parse:oY,createTransformer:aY,getAnimatableNone:g$e},v$e=new Set(["brightness","contrast","saturate","opacity"]);function b$e(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(e1)||[];if(!n)return e;const o=r.replace(n,"");let a=v$e.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+o+")"}const y$e=/([a-z-]*)\(.*?\)/g,w$e=Object.assign(Object.assign({},iY),{getAnimatableNone:e=>{const t=e.match(y$e);return t?t.map(b$e).join(" "):e}});qr.alpha=wP;qr.color=_P;qr.complex=iY;qr.degrees=s$e;qr.filter=w$e;qr.hex=aR;qr.hsla=qh;qr.number=B1;qr.percent=gd;qr.progressPercentage=d$e;qr.px=l$e;qr.rgbUnit=C6;qr.rgba=Ju;qr.scale=i$e;qr.vh=c$e;qr.vw=u$e;var it={},iR=function(e,t){return iR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},iR(e,t)};function sY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");iR(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Lx=function(){return Lx=Object.assign||function(t){for(var r,n=1,o=arguments.length;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function uY(e,t){return function(r,n){t(r,n,e)}}function x$e(e,t,r,n,o,a){function i(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var s=n.kind,l=s==="getter"?"get":s==="setter"?"set":"value",c=!t&&e?n.static?e:e.prototype:null,u=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),p,h=!1,g=r.length-1;g>=0;g--){var x={};for(var y in n)x[y]=y==="access"?{}:n[y];for(var y in n.access)x.access[y]=n.access[y];x.addInitializer=function(m){if(h)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(m||null))};var b=(0,r[g])(s==="accessor"?{get:u.get,set:u.set}:u[l],x);if(s==="accessor"){if(b===void 0)continue;if(b===null||typeof b!="object")throw new TypeError("Object expected");(p=i(b.get))&&(u.get=p),(p=i(b.set))&&(u.set=p),(p=i(b.init))&&o.unshift(p)}else(p=i(b))&&(s==="field"?o.unshift(p):u[l]=p)}c&&Object.defineProperty(c,n.name,u),h=!0}function _$e(e,t,r){for(var n=arguments.length>2,o=0;o0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function EP(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return a}function mY(){for(var e=[],t=0;t1||s(h,g)})})}function s(h,g){try{l(n[h](g))}catch(x){p(a[0][3],x)}}function l(h){h.value instanceof Hd?Promise.resolve(h.value.v).then(c,u):p(a[0][2],h)}function c(h){s("next",h)}function u(h){s("throw",h)}function p(h,g){h(g),a.shift(),a.length&&s(a[0][0],a[0][1])}}function yY(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,a){t[o]=e[o]?function(i){return(r=!r)?{value:Hd(e[o](i)),done:!1}:a?a(i):i}:a}}function wY(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof $x=="function"?$x(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(i){return new Promise(function(s,l){i=e[a](i),o(s,l,i.done,i.value)})}}function o(a,i,s,l){Promise.resolve(l).then(function(c){a({value:c,done:s})},i)}}function xY(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var O$e=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function _Y(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&W8(t,e,r);return O$e(t,e),t}function EY(e){return e&&e.__esModule?e:{default:e}}function CY(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function OY(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}function kY(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function RY(e,t,r){if(t!=null){if(typeof t!="object")throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if(typeof n!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var k$e=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function SY(e){function t(n){e.error=e.hasError?new k$e(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,function(a){return t(a),r()})}catch(a){t(a)}}if(e.hasError)throw e.error}return r()}const R$e={__extends:sY,__assign:Lx,__rest:lY,__decorate:cY,__param:uY,__metadata:dY,__awaiter:fY,__generator:hY,__createBinding:W8,__exportStar:pY,__values:$x,__read:EP,__spread:mY,__spreadArrays:gY,__spreadArray:vY,__await:Hd,__asyncGenerator:bY,__asyncDelegator:yY,__asyncValues:wY,__makeTemplateObject:xY,__importStar:_Y,__importDefault:EY,__classPrivateFieldGet:CY,__classPrivateFieldSet:OY,__classPrivateFieldIn:kY,__addDisposableResource:RY,__disposeResources:SY},S$e=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:RY,get __assign(){return Lx},__asyncDelegator:yY,__asyncGenerator:bY,__asyncValues:wY,__await:Hd,__awaiter:fY,__classPrivateFieldGet:CY,__classPrivateFieldIn:kY,__classPrivateFieldSet:OY,__createBinding:W8,__decorate:cY,__disposeResources:SY,__esDecorate:x$e,__exportStar:pY,__extends:sY,__generator:hY,__importDefault:EY,__importStar:_Y,__makeTemplateObject:xY,__metadata:dY,__param:uY,__propKey:E$e,__read:EP,__rest:lY,__runInitializers:_$e,__setFunctionName:C$e,__spread:mY,__spreadArray:vY,__spreadArrays:gY,__values:$x,default:R$e},Symbol.toStringTag,{value:"Module"})),T$e=lf(S$e);var Qc={};Object.defineProperty(Qc,"__esModule",{value:!0});const TY=1/60*1e3,P$e=typeof performance<"u"?()=>performance.now():()=>Date.now(),PY=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(P$e()),TY);function M$e(e){let t=[],r=[],n=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(l,c=!1,u=!1)=>{const p=u&&o,h=p?t:r;return c&&i.add(l),h.indexOf(l)===-1&&(h.push(l),p&&o&&(n=t.length)),l},cancel:l=>{const c=r.indexOf(l);c!==-1&&r.splice(c,1),i.delete(l)},process:l=>{if(o){a=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let c=0;c(e[t]=M$e(()=>t1=!0),e),{}),j$e=H1.reduce((e,t)=>{const r=q8[t];return e[t]=(n,o=!1,a=!1)=>(t1||N$e(),r.schedule(n,o,a)),e},{}),I$e=H1.reduce((e,t)=>(e[t]=q8[t].cancel,e),{}),L$e=H1.reduce((e,t)=>(e[t]=()=>q8[t].process(vd),e),{}),$$e=e=>q8[e].process(vd),MY=e=>{t1=!1,vd.delta=sR?TY:Math.max(Math.min(e-vd.timestamp,A$e),1),vd.timestamp=e,lR=!0,H1.forEach($$e),lR=!1,t1&&(sR=!1,PY(MY))},N$e=()=>{t1=!0,sR=!0,lR||PY(MY)},D$e=()=>vd;Qc.cancelSync=I$e;Qc.default=j$e;Qc.flushSync=L$e;Qc.getFrameData=D$e;Object.defineProperty(it,"__esModule",{value:!0});var AY=T$e,Ud=QK,ga=qr,G8=Qc;function F$e(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var z$e=F$e(G8);const r1=(e,t,r)=>Math.min(Math.max(r,e),t),kC=.001,B$e=.01,A$=10,V$e=.05,H$e=1;function U$e({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,a;Ud.warning(e<=A$*1e3,"Spring duration must be 10 seconds or less");let i=1-t;i=r1(V$e,H$e,i),e=r1(B$e,A$,e/1e3),i<1?(o=c=>{const u=c*i,p=u*e,h=u-r,g=cR(c,i),x=Math.exp(-p);return kC-h/g*x},a=c=>{const p=c*i*e,h=p*r+r,g=Math.pow(i,2)*Math.pow(c,2)*e,x=Math.exp(-p),y=cR(Math.pow(c,2),i);return(-o(c)+kC>0?-1:1)*((h-g)*x)/y}):(o=c=>{const u=Math.exp(-c*e),p=(c-r)*e+1;return-kC+u*p},a=c=>{const u=Math.exp(-c*e),p=(r-c)*(e*e);return u*p});const s=5/e,l=q$e(o,a,s);if(e=e*1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:i*2*Math.sqrt(n*c),duration:e}}}const W$e=12;function q$e(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function Y$e(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!j$(e,K$e)&&j$(e,G$e)){const r=U$e(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function K8(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:o}=e,a=AY.__rest(e,["from","to","restSpeed","restDelta"]);const i={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:p,isResolvedFromDuration:h}=Y$e(a),g=I$,x=I$;function y(){const b=u?-(u/1e3):0,m=r-t,f=l/(2*Math.sqrt(s*c)),v=Math.sqrt(s/c)/1e3;if(o===void 0&&(o=Math.min(Math.abs(r-t)/100,.4)),f<1){const d=cR(v,f);g=w=>{const _=Math.exp(-f*v*w);return r-_*((b+f*v*m)/d*Math.sin(d*w)+m*Math.cos(d*w))},x=w=>{const _=Math.exp(-f*v*w);return f*v*_*(Math.sin(d*w)*(b+f*v*m)/d+m*Math.cos(d*w))-_*(Math.cos(d*w)*(b+f*v*m)-d*m*Math.sin(d*w))}}else if(f===1)g=d=>r-Math.exp(-v*d)*(m+(b+v*m)*d);else{const d=v*Math.sqrt(f*f-1);g=w=>{const _=Math.exp(-f*v*w),E=Math.min(d*w,300);return r-_*((b+f*v*m)*Math.sinh(E)+d*m*Math.cosh(E))/d}}}return y(),{next:b=>{const m=g(b);if(h)i.done=b>=p;else{const f=x(b)*1e3,v=Math.abs(f)<=n,d=Math.abs(r-m)<=o;i.done=v&&d}return i.value=i.done?r:m,i},flipTarget:()=>{u=-u,[t,r]=[r,t],y()}}}K8.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const I$=e=>0,CP=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Y8=(e,t,r)=>-r*e+r*t+e;function RC(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function L$({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,a=0,i=0;if(!t)o=a=i=r;else{const s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=RC(l,s,e+1/3),a=RC(l,s,e),i=RC(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(i*255),alpha:n}}const X$e=(e,t,r)=>{const n=e*e,o=t*t;return Math.sqrt(Math.max(0,r*(o-n)+n))},Z$e=[ga.hex,ga.rgba,ga.hsla],$$=e=>Z$e.find(t=>t.test(e)),N$=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,OP=(e,t)=>{let r=$$(e),n=$$(t);Ud.invariant(!!r,N$(e)),Ud.invariant(!!n,N$(t));let o=r.parse(e),a=n.parse(t);r===ga.hsla&&(o=L$(o),r=ga.rgba),n===ga.hsla&&(a=L$(a),n=ga.rgba);const i=Object.assign({},o);return s=>{for(const l in i)l!=="alpha"&&(i[l]=X$e(o[l],a[l],s));return i.alpha=Y8(o.alpha,a.alpha,s),r.transform(i)}},Q$e={x:0,y:0,z:0},uR=e=>typeof e=="number",J$e=(e,t)=>r=>t(e(r)),kP=(...e)=>e.reduce(J$e);function jY(e,t){return uR(e)?r=>Y8(e,t,r):ga.color.test(e)?OP(e,t):RP(e,t)}const IY=(e,t)=>{const r=[...e],n=r.length,o=e.map((a,i)=>jY(a,t[i]));return a=>{for(let i=0;i{const r=Object.assign(Object.assign({},e),t),n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=jY(e[o],t[o]));return o=>{for(const a in n)r[a]=n[a](o);return r}};function D$(e){const t=ga.complex.parse(e),r=t.length;let n=0,o=0,a=0;for(let i=0;i{const r=ga.complex.createTransformer(t),n=D$(e),o=D$(t);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&n.numNumbers>=o.numNumbers?kP(IY(n.parsed,o.parsed),r):(Ud.warning(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),i=>`${i>0?t:e}`)},tNe=(e,t)=>r=>Y8(e,t,r);function rNe(e){if(typeof e=="number")return tNe;if(typeof e=="string")return ga.color.test(e)?OP:RP;if(Array.isArray(e))return IY;if(typeof e=="object")return eNe}function nNe(e,t,r){const n=[],o=r||rNe(e[0]),a=e.length-1;for(let i=0;ir(CP(e,t,n))}function aNe(e,t){const r=e.length,n=r-1;return o=>{let a=0,i=!1;if(o<=e[0]?i=!0:o>=e[n]&&(a=n-1,i=!0),!i){let l=1;for(;lo||l===n);l++);a=l-1}const s=CP(e[a],e[a+1],o);return t[a](s)}}function SP(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const a=e.length;Ud.invariant(a===t.length,"Both input and output ranges must be the same length"),Ud.invariant(!n||!Array.isArray(n)||n.length===a-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=nNe(t,n,o),s=a===2?oNe(e,i):aNe(e,i);return r?l=>s(r1(e[0],e[a-1],l)):s}const U1=e=>t=>1-e(1-t),X8=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,LY=e=>t=>Math.pow(t,e),TP=e=>t=>t*t*((e+1)*t-e),$Y=e=>{const t=TP(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},NY=1.525,iNe=4/11,sNe=8/11,lNe=9/10,DY=e=>e,PP=LY(2),cNe=U1(PP),FY=X8(PP),zY=e=>1-Math.sin(Math.acos(e)),BY=U1(zY),uNe=X8(BY),MP=TP(NY),dNe=U1(MP),fNe=X8(MP),hNe=$Y(NY),pNe=4356/361,mNe=35442/1805,gNe=16061/1805,Nx=e=>{if(e===1||e===0)return e;const t=e*e;return ee<.5?.5*(1-Nx(1-e*2)):.5*Nx(e*2-1)+.5;function yNe(e,t){return e.map(()=>t||FY).splice(0,e.length-1)}function wNe(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function xNe(e,t){return e.map(r=>r*t)}function hp({from:e=0,to:t=1,ease:r,offset:n,duration:o=300}){const a={done:!1,value:e},i=Array.isArray(t)?t:[e,t],s=xNe(n&&n.length===i.length?n:wNe(i),o);function l(){return SP(s,i,{ease:Array.isArray(r)?r:yNe(i,r)})}let c=l();return{next:u=>(a.value=c(u),a.done=u>=o,a),flipTarget:()=>{i.reverse(),c=l()}}}function VY({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:a}){const i={done:!1,value:t};let s=r*e;const l=t+s,c=a===void 0?l:a(l);return c!==l&&(s=c-t),{next:u=>{const p=-s*Math.exp(-u/n);return i.done=!(p>o||p<-o),i.value=i.done?c:c+p,i},flipTarget:()=>{}}}const F$={keyframes:hp,spring:K8,decay:VY};function _Ne(e){if(Array.isArray(e.to))return hp;if(F$[e.type])return F$[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?hp:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?K8:hp}function HY(e,t,r=0){return e-t-r}function ENe(e,t,r=0,n=!0){return n?HY(t+-e,t,r):t-(e-t)+r}function CNe(e,t,r,n){return n?e>=t+r:e<=-r}const ONe=e=>{const t=({delta:r})=>e(r);return{start:()=>z$e.default.update(t,!0),stop:()=>G8.cancelSync.update(t)}};function UY(e){var t,r,{from:n,autoplay:o=!0,driver:a=ONe,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:p,onComplete:h,onRepeat:g,onUpdate:x}=e,y=AY.__rest(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:b}=y,m,f=0,v=y.duration,d,w=!1,_=!0,E;const k=_Ne(y);!((r=(t=k).needsInterpolation)===null||r===void 0)&&r.call(t,n,b)&&(E=SP([0,100],[n,b],{clamp:!1}),n=0,b=100);const S=k(Object.assign(Object.assign({},y),{from:n,to:b}));function R(){f++,l==="reverse"?(_=f%2===0,i=ENe(i,v,c,_)):(i=HY(i,v,c),l==="mirror"&&S.flipTarget()),w=!1,g&&g()}function T(){m.stop(),h&&h()}function P(L){if(_||(L=-L),i+=L,!w){const D=S.next(Math.max(0,i));d=D.value,E&&(d=E(d)),w=_?D.done:i<=0}x==null||x(d),w&&(f===0&&(v??(v=i)),f{p==null||p(),m.stop()}}}function WY(e,t){return t?e*(1e3/t):0}function kNe({from:e=0,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:a=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:p,onComplete:h,onStop:g}){let x;function y(v){return r!==void 0&&vn}function b(v){return r===void 0?n:n===void 0||Math.abs(r-v){var w;p==null||p(d),(w=v.onUpdate)===null||w===void 0||w.call(v,d)},onComplete:h,onStop:g}))}function f(v){m(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:l},v))}if(y(e))f({from:e,velocity:t,to:b(e)});else{let v=o*t+e;typeof c<"u"&&(v=c(v));const d=b(v),w=d===r?-1:1;let _,E;const k=S=>{_=E,E=S,t=WY(S-_,G8.getFrameData().delta),(w===1&&S>d||w===-1&&Sx==null?void 0:x.stop()}}const qY=e=>e*180/Math.PI,RNe=(e,t=Q$e)=>qY(Math.atan2(t.y-e.y,t.x-e.x)),SNe=(e,t)=>{let r=!0;return t===void 0&&(t=e,r=!1),n=>r?n-e+t:(e=n,r=!0,t)},TNe=e=>e,AP=(e=TNe)=>(t,r,n)=>{const o=r-n,a=-(0-t+1)*(0-e(Math.abs(o)));return o<=0?r+a:r-a},PNe=AP(),MNe=AP(Math.sqrt),GY=e=>e*Math.PI/180,Dx=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),dR=e=>Dx(e)&&e.hasOwnProperty("z"),nm=(e,t)=>Math.abs(e-t);function ANe(e,t){if(uR(e)&&uR(t))return nm(e,t);if(Dx(e)&&Dx(t)){const r=nm(e.x,t.x),n=nm(e.y,t.y),o=dR(e)&&dR(t)?nm(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(o,2))}}const jNe=(e,t,r)=>(t=GY(t),{x:r*Math.cos(t)+e.x,y:r*Math.sin(t)+e.y}),KY=(e,t=2)=>(t=Math.pow(10,t),Math.round(e*t)/t),YY=(e,t,r,n=0)=>KY(e+r*(t-e)/Math.max(n,r)),INe=(e=50)=>{let t=0,r=0;return n=>{const o=G8.getFrameData().timestamp,a=o!==r?o-r:0,i=a?YY(t,n,a,e):t;return r=o,t=i,i}},LNe=e=>{if(typeof e=="number")return t=>Math.round(t/e)*e;{let t=0;const r=e.length;return n=>{let o=Math.abs(e[0]-n);for(t=1;to)return e[t-1];if(t===r-1)return a;o=i}}}};function $Ne(e,t){return e/(1e3/t)}const NNe=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e},XY=(e,t)=>1-3*t+3*e,ZY=(e,t)=>3*t-6*e,QY=e=>3*e,Fx=(e,t,r)=>((XY(t,r)*e+ZY(t,r))*e+QY(t))*e,JY=(e,t,r)=>3*XY(t,r)*e*e+2*ZY(t,r)*e+QY(t),DNe=1e-7,FNe=10;function zNe(e,t,r,n,o){let a,i,s=0;do i=t+(r-t)/2,a=Fx(i,n,o)-e,a>0?r=i:t=i;while(Math.abs(a)>DNe&&++s=VNe?HNe(i,p,e,r):h===0?p:zNe(i,s,s+om,e,r)}return i=>i===0||i===1?i:Fx(a(i),t,n)}const WNe=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return r1(0,1,o/e)};it.angle=RNe;it.animate=UY;it.anticipate=hNe;it.applyOffset=SNe;it.attract=PNe;it.attractExpo=MNe;it.backIn=MP;it.backInOut=fNe;it.backOut=dNe;it.bounceIn=vNe;it.bounceInOut=bNe;it.bounceOut=Nx;it.circIn=zY;it.circInOut=uNe;it.circOut=BY;it.clamp=r1;it.createAnticipate=$Y;it.createAttractor=AP;it.createBackIn=TP;it.createExpoIn=LY;it.cubicBezier=UNe;it.decay=VY;it.degreesToRadians=GY;it.distance=ANe;it.easeIn=PP;it.easeInOut=FY;it.easeOut=cNe;it.inertia=kNe;it.interpolate=SP;it.isPoint=Dx;it.isPoint3D=dR;it.keyframes=hp;it.linear=DY;it.mirrorEasing=X8;it.mix=Y8;it.mixColor=OP;it.mixComplex=RP;it.pipe=kP;it.pointFromVector=jNe;it.progress=CP;it.radiansToDegrees=qY;it.reverseEasing=U1;it.smooth=INe;it.smoothFrame=YY;it.snap=LNe;it.spring=K8;it.steps=WNe;it.toDecimal=KY;it.velocityPerFrame=$Ne;it.velocityPerSecond=WY;it.wrap=NNe;let qNe=class{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}};const SC=new WeakMap;function jP(e){return SC.has(e)||SC.set(e,{transforms:[],values:new Map}),SC.get(e)}function GNe(e,t){return e.has(t)||e.set(t,new qNe),e.get(t)}function eX(e,t){e.indexOf(t)===-1&&e.push(t)}function tX(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const rX=(e,t,r)=>Math.min(Math.max(r,e),t),Gn={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},Ki=e=>typeof e=="number",n1=e=>Array.isArray(e)&&!Ki(e[0]),KNe=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e};function nX(e,t){return n1(e)?e[KNe(0,e.length,t)]:e}const IP=(e,t,r)=>-r*e+r*t+e,LP=()=>{},$i=e=>e,Z8=(e,t,r)=>t-e===0?1:(r-e)/(t-e);function $P(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=Z8(0,t,n);e.push(IP(r,1,o))}}function NP(e){const t=[0];return $P(t,e-1),t}function oX(e,t=NP(e.length),r=$i){const n=e.length,o=n-t.length;return o>0&&$P(t,o),a=>{let i=0;for(;iArray.isArray(e)&&Ki(e[0]),zx=e=>typeof e=="object"&&!!e.createAnimation,YNe=e=>typeof e=="function",DP=e=>typeof e=="string",_c={ms:e=>e*1e3,s:e=>e/1e3};function iX(e,t){return t?e*(1e3/t):0}const XNe=["","X","Y","Z"],ZNe=["translate","scale","rotate","skew"],Wd={x:"translateX",y:"translateY",z:"translateZ"},z$={syntax:"",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},QNe={translate:{syntax:"",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:z$,scale:{syntax:"",initialValue:1,toDefaultUnit:$i},skew:z$},qd=new Map,Q8=e=>`--motion-${e}`,Bx=["x","y","z"];ZNe.forEach(e=>{XNe.forEach(t=>{Bx.push(e+t),qd.set(Q8(e+t),QNe[e])})});const JNe=(e,t)=>Bx.indexOf(e)-Bx.indexOf(t),eDe=new Set(Bx),J8=e=>eDe.has(e),tDe=(e,t)=>{Wd[t]&&(t=Wd[t]);const{transforms:r}=jP(e);eX(r,t),e.style.transform=sX(r)},sX=e=>e.sort(JNe).reduce(rDe,"").trim(),rDe=(e,t)=>`${e} ${t}(var(${Q8(t)}))`,fR=e=>e.startsWith("--"),B$=new Set;function nDe(e){if(!B$.has(e)){B$.add(e);try{const{syntax:t,initialValue:r}=qd.has(e)?qd.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:r})}catch{}}}const lX=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,oDe=1e-7,aDe=12;function iDe(e,t,r,n,o){let a,i,s=0;do i=t+(r-t)/2,a=lX(i,n,o)-e,a>0?r=i:t=i;while(Math.abs(a)>oDe&&++siDe(a,0,1,e,r);return a=>a===0||a===1?a:lX(o(a),t,n)}const sDe=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return rX(0,1,o/e)},V$={ease:Gh(.25,.1,.25,1),"ease-in":Gh(.42,0,1,1),"ease-in-out":Gh(.42,0,.58,1),"ease-out":Gh(0,0,.58,1)},lDe=/\((.*?)\)/;function hR(e){if(YNe(e))return e;if(aX(e))return Gh(...e);if(V$[e])return V$[e];if(e.startsWith("steps")){const t=lDe.exec(e);if(t){const r=t[1].split(",");return sDe(parseFloat(r[0]),r[1].trim())}}return $i}let cDe=class{constructor(t,r=[0,1],{easing:n,duration:o=Gn.duration,delay:a=Gn.delay,endDelay:i=Gn.endDelay,repeat:s=Gn.repeat,offset:l,direction:c="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=$i,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((p,h)=>{this.resolve=p,this.reject=h}),n=n||Gn.easing,zx(n)){const p=n.createAnimation(r);n=p.easing,r=p.keyframes||r,o=p.duration||o}this.repeat=s,this.easing=n1(n)?$i:hR(n),this.updateDuration(o);const u=oX(r,l,n1(n)?n.map(hR):$i);this.tick=p=>{var h;a=a;let g=0;this.pauseTime!==void 0?g=this.pauseTime:g=(p-this.startTime)*this.rate,this.t=g,g/=1e3,g=Math.max(g-a,0),this.playState==="finished"&&this.pauseTime===void 0&&(g=this.totalDuration);const x=g/this.duration;let y=Math.floor(x),b=x%1;!b&&x>=1&&(b=1),b===1&&y--;const m=y%2;(c==="reverse"||c==="alternate"&&m||c==="alternate-reverse"&&!m)&&(b=1-b);const f=g>=this.totalDuration?1:Math.min(b,1),v=u(this.easing(f));t(v),this.pauseTime===void 0&&(this.playState==="finished"||g>=this.totalDuration+i)?(this.playState="finished",(h=this.resolve)===null||h===void 0||h.call(this,v)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}};const H$=e=>aX(e)?uDe(e):e,uDe=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,U$=e=>document.createElement("div").animate(e,{duration:.001}),W$={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{U$({opacity:[1]})}catch{return!1}return!0},finished:()=>!!U$({opacity:[0,1]}).finished},TC={},k6={};for(const e in W$)k6[e]=()=>(TC[e]===void 0&&(TC[e]=W$[e]()),TC[e]);function dDe(e,t){for(let r=0;rArray.isArray(e)?e:[e];function Vx(e){return Wd[e]&&(e=Wd[e]),J8(e)?Q8(e):e}const ed={get:(e,t)=>{t=Vx(t);let r=fR(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!r&&r!==0){const n=qd.get(t);n&&(r=n.initialValue)}return r},set:(e,t,r)=>{t=Vx(t),fR(t)?e.style.setProperty(t,r):e.style[t]=r}};function uX(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function fDe(){return window.__MOTION_DEV_TOOLS_RECORD}function e9(e,t,r,n={}){const o=fDe(),a=n.record!==!1&&o;let i,{duration:s=Gn.duration,delay:l=Gn.delay,endDelay:c=Gn.endDelay,repeat:u=Gn.repeat,easing:p=Gn.easing,direction:h,offset:g,allowWebkitAcceleration:x=!1}=n;const y=jP(e);let b=k6.waapi();const m=J8(t);m&&tDe(e,t);const f=Vx(t),v=GNe(y.values,f),d=qd.get(f);return uX(v.animation,!(zx(p)&&v.generator)&&n.record!==!1),()=>{const w=()=>{var E,k;return(k=(E=ed.get(e,f))!==null&&E!==void 0?E:d==null?void 0:d.initialValue)!==null&&k!==void 0?k:0};let _=dDe(cX(r),w);if(zx(p)){const E=p.createAnimation(_,w,m,f,v);p=E.easing,E.keyframes!==void 0&&(_=E.keyframes),E.duration!==void 0&&(s=E.duration)}if(fR(f)&&(k6.cssRegisterProperty()?nDe(f):b=!1),b){d&&(_=_.map(S=>Ki(S)?d.toDefaultUnit(S):S)),_.length===1&&(!k6.partialKeyframes()||a)&&_.unshift(w());const E={delay:_c.ms(l),duration:_c.ms(s),endDelay:_c.ms(c),easing:n1(p)?void 0:H$(p),direction:h,iterations:u+1,fill:"both"};i=e.animate({[f]:_,offset:g,easing:n1(p)?p.map(H$):void 0},E),i.finished||(i.finished=new Promise((S,R)=>{i.onfinish=S,i.oncancel=R}));const k=_[_.length-1];i.finished.then(()=>{ed.set(e,f,k),i.cancel()}).catch(LP),x||(i.playbackRate=1.000001)}else if(m){_=_.map(k=>typeof k=="string"?parseFloat(k):k),_.length===1&&_.unshift(parseFloat(w()));const E=k=>{d&&(k=d.toDefaultUnit(k)),ed.set(e,f,k)};i=new cDe(E,_,Object.assign(Object.assign({},n),{duration:s,easing:p}))}else{const E=_[_.length-1];ed.set(e,f,d&&Ki(E)?d.toDefaultUnit(E):E)}return a&&o(e,t,_,{duration:s,delay:l,easing:p,repeat:u,offset:g},"motion-one"),v.setAnimation(i),i}}const FP=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function t9(e,t){var r;return typeof e=="string"?t?((r=t[e])!==null&&r!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}const hDe=e=>e(),zP=(e,t,r=Gn.duration)=>new Proxy({animations:e.map(hDe).filter(Boolean),duration:r,options:t},mDe),pDe=e=>e.animations[0],mDe={get:(e,t)=>{const r=pDe(e);switch(t){case"duration":return e.duration;case"currentTime":return _c.s((r==null?void 0:r[t])||0);case"playbackRate":case"playState":return r==null?void 0:r[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(gDe)).catch(LP)),e.finished;case"stop":return()=>{e.animations.forEach(n=>uX(n))};case"forEachNative":return n=>{e.animations.forEach(o=>n(o,e))};default:return typeof(r==null?void 0:r[t])>"u"?void 0:()=>e.animations.forEach(n=>n[t]())}},set:(e,t,r)=>{switch(t){case"currentTime":r=_c.ms(r);case"currentTime":case"playbackRate":for(let n=0;ne.finished;function vDe(e=.1,{start:t=0,from:r=0,easing:n}={}){return(o,a)=>{const i=Ki(r)?r:bDe(r,a),s=Math.abs(i-o);let l=e*s;if(n){const c=a*e;l=hR(n)(l/c)*c}return t+l}}function bDe(e,t){if(e==="first")return 0;{const r=t-1;return e==="last"?r:r/2}}function dX(e,t,r){return typeof e=="function"?e(t,r):e}function yDe(e,t,r={}){e=t9(e);const n=e.length,o=[];for(let a=0;at&&o.ate9(...a)).filter(Boolean);return zP(o,t,(r=n[0])===null||r===void 0?void 0:r[3].duration)}function CDe(e,t={}){var{defaultOptions:r={}}=t,n=r9(t,["defaultOptions"]);const o=[],a=new Map,i={},s=new Map;let l=0,c=0,u=0;for(let p=0;p"0",V);T=q.easing,q.keyframes!==void 0&&(k=q.keyframes),q.duration!==void 0&&(R=q.duration)}const P=dX(y.delay,v,f)||0,j=c+P,L=j+R;let{offset:D=NP(k.length)}=S;D.length===1&&D[0]===0&&(D[1]=1);const B=length-k.length;B>0&&$P(D,B),k.length===1&&k.unshift(null),xDe(E,k,T,D,j,L),b=Math.max(P+R,b),u=Math.max(L,u)}}l=c,c+=b}return a.forEach((p,h)=>{for(const g in p){const x=p[g];x.sort(_De);const y=[],b=[],m=[];for(let f=0;ft/(2*Math.sqrt(e*r));function TDe(e,t,r){return e=t||e>t&&r<=t}const fX=({stiffness:e=bd.stiffness,damping:t=bd.damping,mass:r=bd.mass,from:n=0,to:o=1,velocity:a=0,restSpeed:i=2,restDistance:s=.5}={})=>{a=a?_c.s(a):0;const l={done:!1,hasReachedTarget:!1,current:n,target:o},c=o-n,u=Math.sqrt(e/r)/1e3,p=SDe(e,t,r);let h;if(p<1){const g=u*Math.sqrt(1-p*p);h=x=>o-Math.exp(-p*u*x)*((-a+p*u*c)/g*Math.sin(g*x)+c*Math.cos(g*x))}else h=g=>o-Math.exp(-u*g)*(c+(-a+u*c)*g);return g=>{l.current=h(g);const x=g===0?a:BP(h,g,l.current),y=Math.abs(x)<=i,b=Math.abs(o-l.current)<=s;return l.done=y&&b,l.hasReachedTarget=TDe(n,o,l.current),l}},PDe=({from:e=0,velocity:t=0,power:r=.8,decay:n=.325,bounceDamping:o,bounceStiffness:a,changeTarget:i,min:s,max:l,restDistance:c=.5,restSpeed:u})=>{n=_c.ms(n);const p={hasReachedTarget:!1,done:!1,current:e,target:e},h=E=>s!==void 0&&El,g=E=>s===void 0?l:l===void 0||Math.abs(s-E)-x*Math.exp(-E/n),f=E=>b+m(E),v=E=>{const k=m(E),S=f(E);p.done=Math.abs(k)<=c,p.current=p.done?b:S};let d,w;const _=E=>{h(p.current)&&(d=E,w=fX({from:p.current,to:g(p.current),velocity:BP(f,E,p.current),damping:o,stiffness:a,restDistance:c,restSpeed:u}))};return _(0),E=>{let k=!1;return!w&&d===void 0&&(k=!0,v(E),_(E)),d!==void 0&&E>d?(p.hasReachedTarget=!0,w(E-d)):(p.hasReachedTarget=!1,!k&&v(E),p)}},PC=10,MDe=1e4;function ADe(e,t=$i){let r,n=PC,o=e(0);const a=[t(o.current)];for(;!o.done&&n{const n=new Map,o=(i=0,s=100,l=0,c=!1)=>{const u=`${i}-${s}-${l}-${c}`;return n.has(u)||n.set(u,e(Object.assign({from:i,to:s,velocity:l,restSpeed:c?.05:2,restDistance:c?.01:.5},r))),n.get(u)},a=i=>(t.has(i)||t.set(i,ADe(i)),t.get(i));return{createAnimation:(i,s,l,c,u)=>{var p,h;let g;const x=i.length;if(l&&x<=2&&i.every(jDe)){const b=i[x-1],m=x===1?null:i[0];let f=0,v=0;const d=u==null?void 0:u.generator;if(d){const{animation:E,generatorStartTime:k}=u,S=(E==null?void 0:E.startTime)||k||0,R=(E==null?void 0:E.currentTime)||performance.now()-S,T=d(R).current;v=(p=m)!==null&&p!==void 0?p:T,(x===1||x===2&&i[0]===null)&&(f=BP(P=>d(P).current,R,T))}else v=(h=m)!==null&&h!==void 0?h:parseFloat(s());const w=o(v,b,f,c==null?void 0:c.includes("scale")),_=a(w);g=Object.assign(Object.assign({},_),{easing:"linear"}),u&&(u.generator=w,u.generatorStartTime=performance.now())}else g={easing:"ease",duration:a(o(0,100)).overshootDuration};return g}}}}const jDe=e=>typeof e!="string",IDe=hX(fX),LDe=hX(PDe),$De={any:0,all:1};function pX(e,t,{root:r,margin:n,amount:o="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};const a=t9(e),i=new WeakMap,s=c=>{c.forEach(u=>{const p=i.get(u.target);if(u.isIntersecting!==!!p)if(u.isIntersecting){const h=t(u);typeof h=="function"?i.set(u.target,h):l.unobserve(u.target)}else p&&(p(u),i.delete(u.target))})},l=new IntersectionObserver(s,{root:r,rootMargin:n,threshold:typeof o=="number"?o:$De[o]});return a.forEach(c=>l.observe(c)),()=>l.disconnect()}const R6=new WeakMap;let ws;function NDe(e,t){if(t){const{inlineSize:r,blockSize:n}=t[0];return{width:r,height:n}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function DDe({target:e,contentRect:t,borderBoxSize:r}){var n;(n=R6.get(e))===null||n===void 0||n.forEach(o=>{o({target:e,contentSize:t,get size(){return NDe(e,r)}})})}function FDe(e){e.forEach(DDe)}function zDe(){typeof ResizeObserver>"u"||(ws=new ResizeObserver(FDe))}function BDe(e,t){ws||zDe();const r=t9(e);return r.forEach(n=>{let o=R6.get(n);o||(o=new Set,R6.set(n,o)),o.add(t),ws==null||ws.observe(n)}),()=>{r.forEach(n=>{const o=R6.get(n);o==null||o.delete(t),o!=null&&o.size||ws==null||ws.unobserve(n)})}}const S6=new Set;let pp;function VDe(){pp=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};S6.forEach(r=>r(t))},window.addEventListener("resize",pp)}function HDe(e){return S6.add(e),pp||VDe(),()=>{S6.delete(e),!S6.size&&pp&&(pp=void 0)}}function mX(e,t){return typeof e=="function"?HDe(e):BDe(e,t)}const UDe=50,G$=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),WDe=()=>({time:0,x:G$(),y:G$()}),qDe={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function K$(e,t,r,n){const o=r[t],{length:a,position:i}=qDe[t],s=o.current,l=r.time;o.current=e["scroll"+i],o.scrollLength=e["scroll"+a]-e["client"+a],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=Z8(0,o.scrollLength,o.current);const c=n-l;o.velocity=c>UDe?0:iX(o.current-s,c)}function GDe(e,t,r){K$(e,"x",t,r),K$(e,"y",t,r),t.time=r}function KDe(e,t){let r={x:0,y:0},n=e;for(;n&&n!==t;)if(n instanceof HTMLElement)r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if(n instanceof SVGGraphicsElement&&"getBBox"in n){const{top:o,left:a}=n.getBBox();for(r.x+=a,r.y+=o;n&&n.tagName!=="svg";)n=n.parentNode}return r}const gX={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},pR={start:0,center:.5,end:1};function Y$(e,t,r=0){let n=0;if(pR[e]!==void 0&&(e=pR[e]),DP(e)){const o=parseFloat(e);e.endsWith("px")?n=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?n=o/100*document.documentElement.clientWidth:e.endsWith("vh")?n=o/100*document.documentElement.clientHeight:e=o}return Ki(e)&&(n=t*e),r+n}const YDe=[0,0];function XDe(e,t,r,n){let o=Array.isArray(e)?e:YDe,a=0,i=0;return Ki(e)?o=[e,e]:DP(e)&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,pR[e]?e:"0"]),a=Y$(o[0],r,n),i=Y$(o[1],t),a-i}const ZDe={x:0,y:0};function QDe(e,t,r){let{offset:n=gX.All}=r;const{target:o=e,axis:a="y"}=r,i=a==="y"?"height":"width",s=o!==e?KDe(o,e):ZDe,l=o===e?{width:e.scrollWidth,height:e.scrollHeight}:{width:o.clientWidth,height:o.clientHeight},c={width:e.clientWidth,height:e.clientHeight};t[a].offset.length=0;let u=!t[a].interpolate;const p=n.length;for(let h=0;hJDe(e,n.target,r),update:a=>{GDe(e,r,a),(n.offset||n.target)&&QDe(e,r,n)},notify:typeof t=="function"?()=>t(r):tFe(t,r[o])}}function tFe(e,t){return e.pause(),e.forEachNative((r,{easing:n})=>{var o,a;if(r.updateDuration)n||(r.easing=$i),r.updateDuration(1);else{const i={duration:1e3};n||(i.easing="linear"),(a=(o=r.effect)===null||o===void 0?void 0:o.updateTiming)===null||a===void 0||a.call(o,i)}}),()=>{e.currentTime=t.progress}}const f0=new WeakMap,X$=new WeakMap,MC=new WeakMap,Z$=e=>e===document.documentElement?window:e;function rFe(e,t={}){var{container:r=document.documentElement}=t,n=r9(t,["container"]);let o=MC.get(r);o||(o=new Set,MC.set(r,o));const a=WDe(),i=eFe(r,e,a,n);if(o.add(i),!f0.has(r)){const c=()=>{const p=performance.now();for(const h of o)h.measure();for(const h of o)h.update(p);for(const h of o)h.notify()};f0.set(r,c);const u=Z$(r);window.addEventListener("resize",c,{passive:!0}),r!==document.documentElement&&X$.set(r,mX(r,c)),u.addEventListener("scroll",c,{passive:!0})}const s=f0.get(r),l=requestAnimationFrame(s);return()=>{var c;typeof e!="function"&&e.stop(),cancelAnimationFrame(l);const u=MC.get(r);if(!u||(u.delete(i),u.size))return;const p=f0.get(r);f0.delete(r),p&&(Z$(r).removeEventListener("scroll",p),(c=X$.get(r))===null||c===void 0||c(),window.removeEventListener("resize",p))}}function nFe(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!oFe(e,t):e!==t}function oFe(e,t){const r=t.length;if(r!==e.length)return!1;for(let n=0;ne.getDepth()-t.getDepth(),cFe=e=>e.animateUpdates(),J$=e=>e.next(),eN=(e,t)=>new CustomEvent(e,{detail:{target:t}});function mR(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:r}}))}function tN(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:r}}))}const uFe={isActive:e=>!!e.inView,subscribe:(e,{enable:t,disable:r},{inViewOptions:n={}})=>{const{once:o}=n,a=r9(n,["once"]);return pX(e,i=>{if(t(),tN(e,"viewenter",i),!o)return s=>{r(),tN(e,"viewleave",s)}},a)}},rN=(e,t,r)=>n=>{n.pointerType&&n.pointerType!=="mouse"||(r(),mR(e,t,n))},dFe={isActive:e=>!!e.hover,subscribe:(e,{enable:t,disable:r})=>{const n=rN(e,"hoverstart",t),o=rN(e,"hoverend",r);return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",o),()=>{e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",o)}}},fFe={isActive:e=>!!e.press,subscribe:(e,{enable:t,disable:r})=>{const n=a=>{r(),mR(e,"pressend",a),window.removeEventListener("pointerup",n)},o=a=>{t(),mR(e,"pressstart",a),window.addEventListener("pointerup",n)};return e.addEventListener("pointerdown",o),()=>{e.removeEventListener("pointerdown",o),window.removeEventListener("pointerup",n)}}},T6={inView:uFe,hover:dFe,press:fFe},nN=["initial","animate",...Object.keys(T6),"exit"],gR=new WeakMap;function hFe(e={},t){let r,n=t?t.getDepth()+1:0;const o={initial:!0,animate:!0},a={},i={};for(const y of nN)i[y]=typeof e[y]=="string"?e[y]:t==null?void 0:t.getContext()[y];const s=e.initial===!1?"animate":"initial";let l=Q$(e[s]||i[s],e.variants)||{},c=r9(l,["transition"]);const u=Object.assign({},c);function*p(){var y,b;const m=c;c={};const f={};for(const E of nN){if(!o[E])continue;const k=Q$(e[E]);if(k)for(const S in k)S!=="transition"&&(c[S]=k[S],f[S]=FP((b=(y=k.transition)!==null&&y!==void 0?y:e.transition)!==null&&b!==void 0?b:{},S))}const v=new Set([...Object.keys(c),...Object.keys(m)]),d=[];v.forEach(E=>{var k;c[E]===void 0&&(c[E]=u[E]),nFe(m[E],c[E])&&((k=u[E])!==null&&k!==void 0||(u[E]=ed.get(r,E)),d.push(e9(r,E,c[E],f[E])))}),yield;const w=d.map(E=>E()).filter(Boolean);if(!w.length)return;const _=c;r.dispatchEvent(eN("motionstart",_)),Promise.all(w.map(E=>E.finished)).then(()=>{r.dispatchEvent(eN("motioncomplete",_))}).catch(LP)}const h=(y,b)=>()=>{o[y]=b,AC(x)},g=()=>{for(const y in T6){const b=T6[y].isActive(e),m=a[y];b&&!m?a[y]=T6[y].subscribe(r,{enable:h(y,!0),disable:h(y,!1)},e):!b&&m&&(m(),delete a[y])}},x={update:y=>{r&&(e=y,g(),AC(x))},setActive:(y,b)=>{r&&(o[y]=b,AC(x))},animateUpdates:p,getDepth:()=>n,getTarget:()=>c,getOptions:()=>e,getContext:()=>i,mount:y=>(r=y,gR.set(r,x),g(),()=>{gR.delete(r),sFe(x);for(const b in a)a[b]()}),isMounted:()=>!!r};return x}function vX(e){const t={},r=[];for(let n in e){const o=e[n];J8(n)&&(Wd[n]&&(n=Wd[n]),r.push(n),n=Q8(n));let a=Array.isArray(o)?o[0]:o;const i=qd.get(n);i&&(a=Ki(o)?i.toDefaultUnit(o):o),t[n]=a}return r.length&&(t.transform=sX(r)),t}const pFe=e=>`-${e.toLowerCase()}`,mFe=e=>e.replace(/[A-Z]/g,pFe);function gFe(e={}){const t=vX(e);let r="";for(const n in t)r+=n.startsWith("--")?n:mFe(n),r+=`: ${t[n]}; `;return r}const vFe=Object.freeze(Object.defineProperty({__proto__:null,ScrollOffset:gX,animate:yDe,animateStyle:e9,createMotionState:hFe,createStyleString:gFe,createStyles:vX,getAnimationData:jP,getStyleName:Vx,glide:LDe,inView:pX,mountedStates:gR,resize:mX,scroll:rFe,spring:IDe,stagger:vDe,style:ed,timeline:EDe,withControls:zP},Symbol.toStringTag,{value:"Module"})),bFe=lf(vFe);function yFe(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var wFe=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,xFe=yFe(function(e){return wFe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const _Fe=Object.freeze(Object.defineProperty({__proto__:null,default:xFe},Symbol.toStringTag,{value:"Module"})),EFe=lf(_Fe);(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=r$e,r=O,n=QK,o=qr,a=it,i=Qc,s=bFe;function l(C){return C&&typeof C=="object"&&"default"in C?C:{default:C}}function c(C){if(C&&C.__esModule)return C;var A=Object.create(null);return C&&Object.keys(C).forEach(function(I){if(I!=="default"){var $=Object.getOwnPropertyDescriptor(C,I);Object.defineProperty(A,I,$.get?$:{enumerable:!0,get:function(){return C[I]}})}}),A.default=C,Object.freeze(A)}var u=c(r),p=l(r),h=l(i),g="production",x=typeof process>"u"||process.env===void 0?g:"production",y=function(C){return{isEnabled:function(A){return C.some(function(I){return!!A[I]})}}},b={measureLayout:y(["layout","layoutId","drag"]),animation:y(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:y(["exit"]),drag:y(["drag","dragControls"]),focus:y(["whileFocus"]),hover:y(["whileHover","onHoverStart","onHoverEnd"]),tap:y(["whileTap","onTap","onTapStart","onTapCancel"]),pan:y(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:y(["whileInView","onViewportEnter","onViewportLeave"])};function m(C){for(var A in C)C[A]!==null&&(A==="projectionNodeConstructor"?b.projectionNodeConstructor=C[A]:b[A].Component=C[A])}var f=r.createContext({strict:!1}),v=Object.keys(b),d=v.length;function w(C,A,I){var $=[],H=r.useContext(f);if(!A)return null;x!=="production"&&I&&H.strict&&n.invariant(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var Y=0;Y"u")return A;var I=new Map;return new Proxy(A,{get:function($,H){return I.has(H)||I.set(H,A(H)),I.get(H)}})}var le=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function xe(C){return typeof C!="string"||C.includes("-")?!1:!!(le.indexOf(C)>-1||/[A-Z]/.test(C))}var _e={};function Ee(C){Object.assign(_e,C)}var Be=["","X","Y","Z"],tt=["translate","scale","rotate","skew"],qe=["transformPerspective","x","y","z"];tt.forEach(function(C){return Be.forEach(function(A){return qe.push(C+A)})});function jr(C,A){return qe.indexOf(C)-qe.indexOf(A)}var St=new Set(qe);function Mt(C){return St.has(C)}var Nn=new Set(["originX","originY","originZ"]);function Dn(C){return Nn.has(C)}function ge(C,A){var I=A.layout,$=A.layoutId;return Mt(C)||Dn(C)||(I||$!==void 0)&&(!!_e[C]||C==="opacity")}var ve=function(C){return!!(C!==null&&typeof C=="object"&&C.getVelocity)},Ae={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function He(C,A,I,$){var H=C.transform,Y=C.transformKeys,X=A.enableHardwareAcceleration,K=X===void 0?!0:X,ne=A.allowTransformNone,oe=ne===void 0?!0:ne,ce="";Y.sort(jr);for(var de=!1,fe=Y.length,he=0;he"u"?yae:bae;oe(ne,K.current,A,X)}var vae={some:0,all:1};function bae(C,A,I,$){var H=$.root,Y=$.margin,X=$.amount,K=X===void 0?"some":X,ne=$.once;r.useEffect(function(){if(C){var oe={root:H==null?void 0:H.current,rootMargin:Y,threshold:typeof K=="number"?K:vae[K]},ce=function(de){var fe,he=de.isIntersecting;if(A.isInView!==he&&(A.isInView=he,!(ne&&!he&&A.hasEnteredView))){he&&(A.hasEnteredView=!0),(fe=I.animationState)===null||fe===void 0||fe.setActive(e.AnimationType.InView,he);var pe=I.getProps(),ye=he?pe.onViewportEnter:pe.onViewportLeave;ye==null||ye(de)}};return mae(I.getInstance(),oe,ce)}},[C,H,Y,K])}function yae(C,A,I,$){var H=$.fallback,Y=H===void 0?!0:H;r.useEffect(function(){!C||!Y||(x!=="production"&&bE(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var X;A.hasEnteredView=!0;var K=I.getProps().onViewportEnter;K==null||K(null),(X=I.animationState)===null||X===void 0||X.setActive(e.AnimationType.InView,!0)}))},[C])}var cs=function(C){return function(A){return C(A),null}},gj={inView:cs(gae),tap:cs(dae),focus:cs(Ir),hover:cs(uae)},wae=0,xae=function(){return wae++},vj=function(){return ue(xae)};function xE(){var C=r.useContext(S);if(C===null)return[!0,null];var A=C.isPresent,I=C.onExitComplete,$=C.register,H=vj();r.useEffect(function(){return $(H)},[]);var Y=function(){return I==null?void 0:I(H)};return!A&&I?[!1,Y]:[!0]}function _ae(){return Eae(r.useContext(S))}function Eae(C){return C===null?!0:C.isPresent}function bj(C,A){if(!Array.isArray(A))return!1;var I=A.length;if(I!==C.length)return!1;for(var $=0;$-1&&C.splice(I,1)}function $ae(C,A,I){var $=t.__read(C),H=$.slice(0),Y=A<0?H.length+A:A;if(Y>=0&&YQe&&Po,ms=Array.isArray(hr)?hr:[hr],Mo=ms.reduce(Y,{});Sn===!1&&(Mo={});var Zf=jt.prevResolvedValues,gu=Zf===void 0?{}:Zf,N5=t.__assign(t.__assign({},gu),Mo),vu=function(dt){ps=!0,Ne.delete(dt),jt.needsAnimating[dt]=!0};for(var Vn in N5){var Vt=Mo[Vn],Ge=gu[Vn];Ve.hasOwnProperty(Vn)||(Vt!==Ge?Nl(Vt)&&Nl(Ge)?!bj(Vt,Ge)||hs?vu(Vn):jt.protectedKeys[Vn]=!0:Vt!==void 0?vu(Vn):Ne.add(Vn):Vt!==void 0&&Ne.has(Vn)?vu(Vn):jt.protectedKeys[Vn]=!0)}jt.prevProp=hr,jt.prevResolvedValues=Mo,jt.isActive&&(Ve=t.__assign(t.__assign({},Ve),Mo)),H&&C.blockInitialAnimation&&(ps=!1),ps&&!ao&&ye.push.apply(ye,t.__spreadArray([],t.__read(ms.map(function(dt){return{animation:dt,options:t.__assign({type:yt},ce)}})),!1))},mt=0;mt=3;if(!(!he&&!pe)){var ye=fe.point,Ne=i.getFrameData().timestamp;H.history.push(t.__assign(t.__assign({},ye),{timestamp:Ne}));var Ve=H.handlers,Qe=Ve.onStart,ht=Ve.onMove;he||(Qe&&Qe(H.lastMoveEvent,fe),H.startEvent=H.lastMoveEvent),ht&&ht(H.lastMoveEvent,fe)}}},this.handlePointerMove=function(fe,he){if(H.lastMoveEvent=fe,H.lastMoveEventInfo=$E(he,H.transformPagePoint),_r(fe)&&fe.buttons===0){H.handlePointerUp(fe,he);return}h.default.update(H.updatePoint,!0)},this.handlePointerUp=function(fe,he){H.end();var pe=H.handlers,ye=pe.onEnd,Ne=pe.onSessionEnd,Ve=NE($E(he,H.transformPagePoint),H.history);H.startEvent&&ye&&ye(fe,Ve),Ne&&Ne(fe,Ve)},!(Pa(A)&&A.touches.length>1)){this.handlers=I,this.transformPagePoint=X;var K=mE(A),ne=$E(K,this.transformPagePoint),oe=ne.point,ce=i.getFrameData().timestamp;this.history=[t.__assign(t.__assign({},oe),{timestamp:ce})];var de=I.onSessionStart;de&&de(A,NE(ne,this.history)),this.removeListeners=a.pipe(Bl(window,"pointermove",this.handlePointerMove),Bl(window,"pointerup",this.handlePointerUp),Bl(window,"pointercancel",this.handlePointerUp))}}return C.prototype.updateHandlers=function(A){this.handlers=A},C.prototype.end=function(){this.removeListeners&&this.removeListeners(),i.cancelSync.update(this.updatePoint)},C}();function $E(C,A){return A?{point:A(C.point)}:C}function Aj(C,A){return{x:C.x-A.x,y:C.y-A.y}}function NE(C,A){var I=C.point;return{point:I,delta:Aj(I,jj(A)),offset:Aj(I,eie(A)),velocity:tie(A,.1)}}function eie(C){return C[0]}function jj(C){return C[C.length-1]}function tie(C,A){if(C.length<2)return{x:0,y:0};for(var I=C.length-1,$=null,H=jj(C);I>=0&&($=C[I],!(H.timestamp-$.timestamp>R5(A)));)I--;if(!$)return{x:0,y:0};var Y=(H.timestamp-$.timestamp)/1e3;if(Y===0)return{x:0,y:0};var X={x:(H.x-$.x)/Y,y:(H.y-$.y)/Y};return X.x===1/0&&(X.x=0),X.y===1/0&&(X.y=0),X}function Ma(C){return C.max-C.min}function Ij(C,A,I){return A===void 0&&(A=0),I===void 0&&(I=.01),a.distance(C,A)H&&(C=I?a.mix(H,C,I.max):Math.min(C,H)),C}function Dj(C,A,I){return{min:A!==void 0?C.min+A:void 0,max:I!==void 0?C.max+I-(C.max-C.min):void 0}}function oie(C,A){var I=A.top,$=A.left,H=A.bottom,Y=A.right;return{x:Dj(C.x,$,Y),y:Dj(C.y,I,H)}}function Fj(C,A){var I,$=A.min-C.min,H=A.max-C.max;return A.max-A.min$?I=a.progress(A.min,A.max-$,C.min):$>H&&(I=a.progress(C.min,C.max-H,A.min)),a.clamp(0,1,I)}function sie(C,A){var I={};return A.min!==void 0&&(I.min=A.min-C.min),A.max!==void 0&&(I.max=A.max-C.min),I}var DE=.35;function lie(C){return C===void 0&&(C=DE),C===!1?C=0:C===!0&&(C=DE),{x:zj(C,"left","right"),y:zj(C,"top","bottom")}}function zj(C,A,I){return{min:Bj(C,A),max:Bj(C,I)}}function Bj(C,A){var I;return typeof C=="number"?C:(I=C[A])!==null&&I!==void 0?I:0}var Vj=function(){return{translate:0,scale:1,origin:0,originPoint:0}},Yf=function(){return{x:Vj(),y:Vj()}},Hj=function(){return{min:0,max:0}},Kr=function(){return{x:Hj(),y:Hj()}};function Aa(C){return[C("x"),C("y")]}function Uj(C){var A=C.top,I=C.left,$=C.right,H=C.bottom;return{x:{min:I,max:$},y:{min:A,max:H}}}function cie(C){var A=C.x,I=C.y;return{top:I.min,right:A.max,bottom:I.max,left:A.min}}function uie(C,A){if(!A)return C;var I=A({x:C.left,y:C.top}),$=A({x:C.right,y:C.bottom});return{top:I.y,left:I.x,bottom:$.y,right:$.x}}function FE(C){return C===void 0||C===1}function Wj(C){var A=C.scale,I=C.scaleX,$=C.scaleY;return!FE(A)||!FE(I)||!FE($)}function us(C){return Wj(C)||qj(C.x)||qj(C.y)||C.z||C.rotate||C.rotateX||C.rotateY}function qj(C){return C&&C!=="0%"}function P5(C,A,I){var $=C-I,H=A*$;return I+H}function Gj(C,A,I,$,H){return H!==void 0&&(C=P5(C,H,$)),P5(C,I,$)+A}function zE(C,A,I,$,H){A===void 0&&(A=0),I===void 0&&(I=1),C.min=Gj(C.min,A,I,$,H),C.max=Gj(C.max,A,I,$,H)}function Kj(C,A){var I=A.x,$=A.y;zE(C.x,I.translate,I.scale,I.originPoint),zE(C.y,$.translate,$.scale,$.originPoint)}function die(C,A,I,$){var H,Y;$===void 0&&($=!1);var X=I.length;if(X){A.x=A.y=1;for(var K,ne,oe=0;oeA?I="y":Math.abs(C.x)>A&&(I="x"),I}function bie(C){var A=C.dragControls,I=C.visualElement,$=ue(function(){return new gie(I)});r.useEffect(function(){return A&&A.subscribe($)},[$,A]),r.useEffect(function(){return $.addListeners()},[$])}function yie(C){var A=C.onPan,I=C.onPanStart,$=C.onPanEnd,H=C.onPanSessionStart,Y=C.visualElement,X=A||I||$||H,K=r.useRef(null),ne=r.useContext(_).transformPagePoint,oe={onSessionStart:H,onStart:I,onMove:A,onEnd:function(de,fe){K.current=null,$&&$(de,fe)}};r.useEffect(function(){K.current!==null&&K.current.updateHandlers(oe)});function ce(de){K.current=new Mj(de,oe,{transformPagePoint:ne})}O5(Y,"pointerdown",X&&ce),k5(function(){return K.current&&K.current.end()})}var Zj={pan:cs(yie),drag:cs(bie)},A5=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function wie(){var C=A5.map(function(){return new Wf}),A={},I={clearAllListeners:function(){return C.forEach(function($){return $.clear()})},updatePropListeners:function($){A5.forEach(function(H){var Y,X="on"+H,K=$[X];(Y=A[H])===null||Y===void 0||Y.call(A),K&&(A[H]=I[X](K))})}};return C.forEach(function($,H){I["on"+A5[H]]=function(Y){return $.add(Y)},I["notify"+A5[H]]=function(){for(var Y=[],X=0;X=0?window.pageYOffset:null,oe=Mie(A,C,K);return Y.length&&Y.forEach(function(ce){var de=t.__read(ce,2),fe=de[0],he=de[1];C.getValue(fe).set(he)}),C.syncRender(),ne!==null&&window.scrollTo({top:ne}),{target:oe,transitionEnd:$}}else return{target:A,transitionEnd:$}};function jie(C,A,I,$){return Rie(A)?Aie(C,A,I,$):{target:A,transitionEnd:$}}var Iie=function(C,A,I,$){var H=Oie(C,A,$);return A=H.target,$=H.transitionEnd,jie(C,A,I,$)};function Lie(C){return window.getComputedStyle(C)}var iI={treeType:"dom",readValueFromInstance:function(C,A){if(Mt(A)){var I=EE(A);return I&&I.default||0}else{var $=Lie(C);return(st(A)?$.getPropertyValue(A):$[A])||0}},sortNodePosition:function(C,A){return C.compareDocumentPosition(A)&2?1:-1},getBaseTarget:function(C,A){var I;return(I=C.style)===null||I===void 0?void 0:I[A]},measureViewportBox:function(C,A){var I=A.transformPagePoint;return Xj(C,I)},resetTransform:function(C,A,I){var $=I.transformTemplate;A.style.transform=$?$({},""):"none",C.scheduleRender()},restoreTransform:function(C,A){C.style.transform=A.style.transform},removeValueFromRenderState:function(C,A){var I=A.vars,$=A.style;delete I[C],delete $[C]},makeTargetAnimatable:function(C,A,I,$){var H=I.transformValues;$===void 0&&($=!0);var Y=A.transition,X=A.transitionEnd,K=t.__rest(A,["transition","transitionEnd"]),ne=Tj(K,Y||{},C);if(H&&(X&&(X=H(X)),K&&(K=H(K)),ne&&(ne=H(ne))),$){AE(C,K,ne);var oe=Iie(C,K,ne,X);X=oe.transitionEnd,K=oe.target}return t.__assign({transition:Y,transitionEnd:X},K)},scrapeMotionValuesFromProps:Df,build:function(C,A,I,$,H){C.isVisible!==void 0&&(A.style.visibility=C.isVisible?"visible":"hidden"),At(A,I,$,H.transformTemplate)},render:_5},$ie=j5(iI),Nie=j5(t.__assign(t.__assign({},iI),{getBaseTarget:function(C,A){return C[A]},readValueFromInstance:function(C,A){var I;return Mt(A)?((I=EE(A))===null||I===void 0?void 0:I.default)||0:(A=$f.has(A)?A:$l(A),C.getAttribute(A))},scrapeMotionValuesFromProps:Ff,build:function(C,A,I,$,H){on(A,I,$,H.transformTemplate)},render:Nf})),HE=function(C,A){return xe(C)?Nie(A,{enableHardwareAcceleration:!1}):$ie(A,{enableHardwareAcceleration:!0})};function sI(C,A){return A.max===A.min?0:C/(A.max-A.min)*100}var Xf={correct:function(C,A){if(!A.target)return C;if(typeof C=="string")if(o.px.test(C))C=parseFloat(C);else return C;var I=sI(C,A.target.x),$=sI(C,A.target.y);return"".concat(I,"% ").concat($,"%")}},lI="_$css",Die={correct:function(C,A){var I=A.treeScale,$=A.projectionDelta,H=C,Y=C.includes("var("),X=[];Y&&(C=C.replace(Jj,function(ye){return X.push(ye),lI}));var K=o.complex.parse(C);if(K.length>5)return H;var ne=o.complex.createTransformer(C),oe=typeof K[0]!="number"?1:0,ce=$.x.scale*I.x,de=$.y.scale*I.y;K[0+oe]/=ce,K[1+oe]/=de;var fe=a.mix(ce,de,.5);typeof K[2+oe]=="number"&&(K[2+oe]/=fe),typeof K[3+oe]=="number"&&(K[3+oe]/=fe);var he=ne(K);if(Y){var pe=0;he=he.replace(lI,function(){var ye=X[pe];return pe++,ye})}return he}},Fie=function(C){t.__extends(A,C);function A(){return C!==null&&C.apply(this,arguments)||this}return A.prototype.componentDidMount=function(){var I=this,$=this.props,H=$.visualElement,Y=$.layoutGroup,X=$.switchLayoutGroup,K=$.layoutId,ne=H.projection;Ee(Bie),ne&&(Y!=null&&Y.group&&Y.group.add(ne),X!=null&&X.register&&K&&X.register(ne),ne.root.didUpdate(),ne.addEventListener("animationComplete",function(){I.safeToRemove()}),ne.setOptions(t.__assign(t.__assign({},ne.options),{onExitComplete:function(){return I.safeToRemove()}}))),we.hasEverUpdated=!0},A.prototype.getSnapshotBeforeUpdate=function(I){var $=this,H=this.props,Y=H.layoutDependency,X=H.visualElement,K=H.drag,ne=H.isPresent,oe=X.projection;return oe&&(oe.isPresent=ne,K||I.layoutDependency!==Y||Y===void 0?oe.willUpdate():this.safeToRemove(),I.isPresent!==ne&&(ne?oe.promote():oe.relegate()||h.default.postRender(function(){var ce;!((ce=oe.getStack())===null||ce===void 0)&&ce.members.length||$.safeToRemove()}))),null},A.prototype.componentDidUpdate=function(){var I=this.props.visualElement.projection;I&&(I.root.didUpdate(),!I.currentAnimation&&I.isLead()&&this.safeToRemove())},A.prototype.componentWillUnmount=function(){var I=this.props,$=I.visualElement,H=I.layoutGroup,Y=I.switchLayoutGroup,X=$.projection;X&&(X.scheduleCheckAfterUnmount(),H!=null&&H.group&&H.group.remove(X),Y!=null&&Y.deregister&&Y.deregister(X))},A.prototype.safeToRemove=function(){var I=this.props.safeToRemove;I==null||I()},A.prototype.render=function(){return null},A}(p.default.Component);function zie(C){var A=t.__read(xE(),2),I=A[0],$=A[1],H=r.useContext(Se);return p.default.createElement(Fie,t.__assign({},C,{layoutGroup:H,switchLayoutGroup:r.useContext(Pe),isPresent:I,safeToRemove:$}))}var Bie={borderRadius:t.__assign(t.__assign({},Xf),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Xf,borderTopRightRadius:Xf,borderBottomLeftRadius:Xf,borderBottomRightRadius:Xf,boxShadow:Die},cI={measureLayout:zie};function uI(C,A,I){I===void 0&&(I={});var $=ve(C)?C:To(C);return RE("",$,A,I),{stop:function(){return $.stop()},isAnimating:function(){return $.isAnimating()}}}var dI=["TopLeft","TopRight","BottomLeft","BottomRight"],Vie=dI.length,fI=function(C){return typeof C=="string"?parseFloat(C):C},hI=function(C){return typeof C=="number"||o.px.test(C)};function Hie(C,A,I,$,H,Y){var X,K,ne,oe;H?(C.opacity=a.mix(0,(X=I.opacity)!==null&&X!==void 0?X:1,Uie($)),C.opacityExit=a.mix((K=A.opacity)!==null&&K!==void 0?K:1,0,Wie($))):Y&&(C.opacity=a.mix((ne=A.opacity)!==null&&ne!==void 0?ne:1,(oe=I.opacity)!==null&&oe!==void 0?oe:1,$));for(var ce=0;ceA?1:I(a.progress(C,A,$))}}function gI(C,A){C.min=A.min,C.max=A.max}function ra(C,A){gI(C.x,A.x),gI(C.y,A.y)}function vI(C,A,I,$,H){return C-=A,C=P5(C,1/I,$),H!==void 0&&(C=P5(C,1/H,$)),C}function qie(C,A,I,$,H,Y,X){if(A===void 0&&(A=0),I===void 0&&(I=1),$===void 0&&($=.5),Y===void 0&&(Y=C),X===void 0&&(X=C),o.percent.test(A)){A=parseFloat(A);var K=a.mix(X.min,X.max,A/100);A=K-X.min}if(typeof A=="number"){var ne=a.mix(Y.min,Y.max,$);C===Y&&(ne-=A),C.min=vI(C.min,A,I,ne,H),C.max=vI(C.max,A,I,ne,H)}}function bI(C,A,I,$,H){var Y=t.__read(I,3),X=Y[0],K=Y[1],ne=Y[2];qie(C,A[X],A[K],A[ne],A.scale,$,H)}var Gie=["x","scaleX","originX"],Kie=["y","scaleY","originY"];function yI(C,A,I,$){bI(C.x,A,Gie,I==null?void 0:I.x,$==null?void 0:$.x),bI(C.y,A,Kie,I==null?void 0:I.y,$==null?void 0:$.y)}function wI(C){return C.translate===0&&C.scale===1}function xI(C){return wI(C.x)&&wI(C.y)}function _I(C,A){return C.x.min===A.x.min&&C.x.max===A.x.max&&C.y.min===A.y.min&&C.y.max===A.y.max}var Yie=function(){function C(){this.members=[]}return C.prototype.add=function(A){SE(this.members,A),A.scheduleRender()},C.prototype.remove=function(A){if(TE(this.members,A),A===this.prevLead&&(this.prevLead=void 0),A===this.lead){var I=this.members[this.members.length-1];I&&this.promote(I)}},C.prototype.relegate=function(A){var I=this.members.findIndex(function(X){return A===X});if(I===0)return!1;for(var $,H=I;H>=0;H--){var Y=this.members[H];if(Y.isPresent!==!1){$=Y;break}}return $?(this.promote($),!0):!1},C.prototype.promote=function(A,I){var $,H=this.lead;if(A!==H&&(this.prevLead=H,this.lead=A,A.show(),H)){H.instance&&H.scheduleRender(),A.scheduleRender(),A.resumeFrom=H,I&&(A.resumeFrom.preserveOpacity=!0),H.snapshot&&(A.snapshot=H.snapshot,A.snapshot.latestValues=H.animationValues||H.latestValues,A.snapshot.isShared=!0),!(($=A.root)===null||$===void 0)&&$.isUpdating&&(A.isLayoutDirty=!0);var Y=A.options.crossfade;Y===!1&&H.hide()}},C.prototype.exitAnimationComplete=function(){this.members.forEach(function(A){var I,$,H,Y,X;($=(I=A.options).onExitComplete)===null||$===void 0||$.call(I),(X=(H=A.resumingFrom)===null||H===void 0?void 0:(Y=H.options).onExitComplete)===null||X===void 0||X.call(Y)})},C.prototype.scheduleRender=function(){this.members.forEach(function(A){A.instance&&A.scheduleRender(!1)})},C.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},C}(),Xie="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function EI(C,A,I){var $=C.x.translate/A.x,H=C.y.translate/A.y,Y="translate3d(".concat($,"px, ").concat(H,"px, 0) ");if(Y+="scale(".concat(1/A.x,", ").concat(1/A.y,") "),I){var X=I.rotate,K=I.rotateX,ne=I.rotateY;X&&(Y+="rotate(".concat(X,"deg) ")),K&&(Y+="rotateX(".concat(K,"deg) ")),ne&&(Y+="rotateY(".concat(ne,"deg) "))}var oe=C.x.scale*A.x,ce=C.y.scale*A.y;return Y+="scale(".concat(oe,", ").concat(ce,")"),Y===Xie?"none":Y}var Zie=function(C,A){return C.depth-A.depth},CI=function(){function C(){this.children=[],this.isDirty=!1}return C.prototype.add=function(A){SE(this.children,A),this.isDirty=!0},C.prototype.remove=function(A){TE(this.children,A),this.isDirty=!0},C.prototype.forEach=function(A){this.isDirty&&this.children.sort(Zie),this.isDirty=!1,this.children.forEach(A)},C}(),OI=1e3;function kI(C){var A=C.attachResizeListener,I=C.defaultParent,$=C.measureScroll,H=C.checkIsScrollRoot,Y=C.resetTransform;return function(){function X(K,ne,oe){var ce=this;ne===void 0&&(ne={}),oe===void 0&&(oe=I==null?void 0:I()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){ce.isUpdating&&(ce.isUpdating=!1,ce.clearAllSnapshots())},this.updateProjection=function(){ce.nodes.forEach(nse),ce.nodes.forEach(ose)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=K,this.latestValues=ne,this.root=oe?oe.root||oe:this,this.path=oe?t.__spreadArray(t.__spreadArray([],t.__read(oe.path),!1),[oe],!1):[],this.parent=oe,this.depth=oe?oe.depth+1:0,K&&this.root.registerPotentialNode(K,this);for(var de=0;de=0;$--)if(C.path[$].instance){I=C.path[$];break}var H=I&&I!==C.root?I.instance:document,Y=H.querySelector('[data-projection-id="'.concat(A,'"]'));Y&&C.mount(Y,!0)}function PI(C){C.min=Math.round(C.min),C.max=Math.round(C.max)}function MI(C){PI(C.x),PI(C.y)}var dse=kI({attachResizeListener:function(C,A){return Fl(C,"resize",A)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Ul={current:void 0},UE=kI({measureScroll:function(C){return{x:C.scrollLeft,y:C.scrollTop}},defaultParent:function(){if(!Ul.current){var C=new dse(0,{});C.mount(window),C.setOptions({layoutScroll:!0}),Ul.current=C}return Ul.current},resetTransform:function(C,A){C.style.transform=A??"none"},checkIsScrollRoot:function(C){return window.getComputedStyle(C).position==="fixed"}}),AI=t.__assign(t.__assign(t.__assign(t.__assign({},LE),gj),Zj),cI),WE=je(function(C,A){return Hf(C,A,AI,HE,UE)});function fse(C){return be(Hf(C,{forwardMotionProps:!1},AI,HE,UE))}var hse=je(Hf);function jI(){var C=r.useRef(!1);return T(function(){return C.current=!0,function(){C.current=!1}},[]),C}function L5(){var C=jI(),A=t.__read(r.useState(0),2),I=A[0],$=A[1],H=r.useCallback(function(){C.current&&$(I+1)},[I]),Y=r.useCallback(function(){return h.default.postRender(H)},[H]);return[Y,I]}var qE=function(C){var A=C.children,I=C.initial,$=C.isPresent,H=C.onExitComplete,Y=C.custom,X=C.presenceAffectsLayout,K=ue(pse),ne=vj(),oe=r.useMemo(function(){return{id:ne,initial:I,isPresent:$,custom:Y,onExitComplete:function(ce){var de,fe;K.set(ce,!0);try{for(var he=t.__values(K.values()),pe=he.next();!pe.done;pe=he.next()){var ye=pe.value;if(!ye)return}}catch(Ne){de={error:Ne}}finally{try{pe&&!pe.done&&(fe=he.return)&&fe.call(he)}finally{if(de)throw de.error}}H==null||H()},register:function(ce){return K.set(ce,!1),function(){return K.delete(ce)}}}},X?void 0:[$]);return r.useMemo(function(){K.forEach(function(ce,de){return K.set(de,!1)})},[$]),u.useEffect(function(){!$&&!K.size&&(H==null||H())},[$]),u.createElement(S.Provider,{value:oe},A)};function pse(){return new Map}var mu=function(C){return C.key||""};function mse(C,A){C.forEach(function(I){var $=mu(I);A.set($,I)})}function gse(C){var A=[];return r.Children.forEach(C,function(I){r.isValidElement(I)&&A.push(I)}),A}var vse=function(C){var A=C.children,I=C.custom,$=C.initial,H=$===void 0?!0:$,Y=C.onExitComplete,X=C.exitBeforeEnter,K=C.presenceAffectsLayout,ne=K===void 0?!0:K,oe=t.__read(L5(),1),ce=oe[0],de=r.useContext(Se).forceRender;de&&(ce=de);var fe=jI(),he=gse(A),pe=he,ye=new Set,Ne=r.useRef(pe),Ve=r.useRef(new Map).current,Qe=r.useRef(!0);if(T(function(){Qe.current=!1,mse(he,Ve),Ne.current=pe}),k5(function(){Qe.current=!0,Ve.clear(),ye.clear()}),Qe.current)return u.createElement(u.Fragment,null,pe.map(function(yt){return u.createElement(qE,{key:mu(yt),isPresent:!0,initial:H?void 0:!1,presenceAffectsLayout:ne},yt)}));pe=t.__spreadArray([],t.__read(pe),!1);for(var ht=Ne.current.map(mu),mt=he.map(mu),gt=ht.length,Kt=0;Kt1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),u.createElement(u.Fragment,null,ye.size?pe:pe.map(function(yt){return r.cloneElement(yt)}))},II=r.createContext(null),bse=function(C){return!C.isLayoutDirty&&C.willUpdate(!1)};function LI(){var C=new Set,A=new WeakMap,I=function(){return C.forEach(bse)};return{add:function($){C.add($),A.set($,$.addEventListener("willUpdate",I))},remove:function($){var H;C.delete($),(H=A.get($))===null||H===void 0||H(),A.delete($),I()},dirty:I}}var $I=function(C){return C===!0},yse=function(C){return $I(C===!0)||C==="id"},NI=function(C){var A,I,$=C.children,H=C.id,Y=C.inheritId,X=C.inherit,K=X===void 0?!0:X;Y!==void 0&&(K=Y);var ne=r.useContext(Se),oe=r.useContext(II),ce=t.__read(L5(),2),de=ce[0],fe=ce[1],he=r.useRef(null),pe=(A=ne.id)!==null&&A!==void 0?A:oe;he.current===null&&(yse(K)&&pe&&(H=H?pe+"-"+H:pe),he.current={id:H,group:$I(K)&&(I=ne==null?void 0:ne.group)!==null&&I!==void 0?I:LI()});var ye=r.useMemo(function(){return t.__assign(t.__assign({},he.current),{forceRender:de})},[fe]);return u.createElement(Se.Provider,{value:ye},$)},wse=0,xse=function(C){var A=C.children;return u.useEffect(function(){n.warning(!1,"AnimateSharedLayout is deprecated: https://www.framer.com/docs/guide-upgrade/##shared-layout-animations")},[]),u.createElement(NI,{id:ue(function(){return"asl-".concat(wse++)})},A)};function _se(C){var A=C.children,I=C.isValidProp,$=t.__rest(C,["children","isValidProp"]);I&&hn(I),$=t.__assign(t.__assign({},r.useContext(_)),$),$.isStatic=ue(function(){return $.isStatic});var H=r.useMemo(function(){return $},[JSON.stringify($.transition),$.transformPagePoint,$.reducedMotion]);return u.createElement(_.Provider,{value:H},A)}function Ese(C){var A=C.children,I=C.features,$=C.strict,H=$===void 0?!1:$,Y=t.__read(r.useState(!GE(I)),2),X=Y[1],K=r.useRef(void 0);if(!GE(I)){var ne=I.renderer,oe=t.__rest(I,["renderer"]);K.current=ne,m(oe)}return r.useEffect(function(){GE(I)&&I().then(function(ce){var de=ce.renderer,fe=t.__rest(ce,["renderer"]);m(fe),K.current=de,X(!0)})},[]),u.createElement(f.Provider,{value:{renderer:K.current,strict:H}},A)}function GE(C){return typeof C=="function"}var DI=r.createContext(null);function Cse(C,A,I,$){if(!$)return C;var H=C.findIndex(function(ce){return ce.value===A});if(H===-1)return C;var Y=$>0?1:-1,X=C[H+Y];if(!X)return C;var K=C[H],ne=X.layout,oe=a.mix(ne.min,ne.max,.5);return Y===1&&K.layout.max+I>oe||Y===-1&&K.layout.min+I.001?1/C:rle},XI=!1;function nle(C){var A=fs(1),I=fs(1),$=k();n.invariant(!!(C||$),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),n.warning(XI,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),XI=!0,C?(A=C.scaleX||A,I=C.scaleY||I):$&&(A=$.getValue("scaleX",1),I=$.getValue("scaleY",1));var H=$5(A,YI),Y=$5(I,YI);return{scaleX:H,scaleY:Y}}e.AnimatePresence=vse,e.AnimateSharedLayout=xse,e.DeprecatedLayoutGroupContext=II,e.DragControls=GI,e.FlatTree=CI,e.LayoutGroup=NI,e.LayoutGroupContext=Se,e.LazyMotion=Ese,e.MotionConfig=_se,e.MotionConfigContext=_,e.MotionContext=E,e.MotionValue=kj,e.PresenceContext=S,e.Reorder=Lse,e.SwitchLayoutGroupContext=Pe,e.addPointerEvent=Bl,e.addScaleCorrector=Ee,e.animate=uI,e.animateVisualElement=T5,e.animationControls=WI,e.animations=LE,e.calcLength=Ma,e.checkTargetForNewValues=AE,e.createBox=Kr,e.createDomMotionComponent=fse,e.createMotionComponent=be,e.domAnimation=HI,e.domMax=$se,e.filterProps=Fn,e.isBrowser=R,e.isDragActive=vE,e.isMotionValue=ve,e.isValidMotionProp=nn,e.m=hse,e.makeUseVisualState=hu,e.motion=WE,e.motionValue=To,e.resolveMotionValue=Dl,e.transform=FI,e.useAnimation=Wse,e.useAnimationControls=qI,e.useAnimationFrame=UI,e.useCycle=qse,e.useDeprecatedAnimatedState=tle,e.useDeprecatedInvertedScale=nle,e.useDomEvent=fr,e.useDragControls=Yse,e.useElementScroll=Bse,e.useForceUpdate=L5,e.useInView=Gse,e.useInstantLayoutTransition=KI,e.useInstantTransition=Zse,e.useIsPresent=_ae,e.useIsomorphicLayoutEffect=T,e.useMotionTemplate=Nse,e.useMotionValue=fs,e.usePresence=xE,e.useReducedMotion=D,e.useReducedMotionConfig=B,e.useResetProjection=Qse,e.useScroll=KE,e.useSpring=Dse,e.useTime=Use,e.useTransform=$5,e.useUnmountEffect=k5,e.useVelocity=Fse,e.useViewportScroll=Vse,e.useVisualElementContext=k,e.visualElement=j5,e.wrapHandler=gE})(rn);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,f){for(var v in f)Object.defineProperty(m,v,{enumerable:!0,get:f[v]})}t(e,{AccordionBody:function(){return y},default:function(){return b}});var r=h(O),n=rn,o=h(ct),a=h(dn),i=h(Ze),s=Je,l=H8,c=Ye,u=F1;function p(){return p=Object.assign||function(m){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.className,d=m.children,w=g(m,["className","children"]),_=(0,l.useAccordion)(),E=_.open,k=_.animate,S=(0,c.useTheme)().accordion,R=S.styles.base;v=v??"";var T=(0,s.twMerge)((0,o.default)((0,i.default)(R.body)),v),P={unmount:{height:"0px",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.2,times:[.4,0,.2,1]}}},j={unmount:{transition:{duration:.3,ease:"linear"}},mount:{transition:{duration:.3,ease:"linear"}}},L=(0,a.default)(j,k);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(n.m.div,{className:"overflow-hidden",initial:"unmount",exit:"unmount",animate:E?"mount":"unmount",variants:P},r.default.createElement(n.m.div,p({},w,{ref:f,className:T,initial:"unmount",exit:"unmount",animate:E?"mount":"unmount",variants:L}),d)))});y.propTypes={className:u.propTypesClassName,children:u.propTypesChildren},y.displayName="MaterialTailwind.AccordionBody";var b=y})(SK);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,v){for(var d in v)Object.defineProperty(f,d,{enumerable:!0,get:v[d]})}t(e,{Accordion:function(){return b},AccordionHeader:function(){return c.AccordionHeader},AccordionBody:function(){return u.AccordionBody},useAccordion:function(){return s.useAccordion},default:function(){return m}});var r=g(O),n=g(ct),o=Je,a=g(Ze),i=Ye,s=H8,l=F1,c=RK,u=SK;function p(f,v,d){return v in f?Object.defineProperty(f,v,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[v]=d,f}function h(){return h=Object.assign||function(f){for(var v=1;v=0)&&Object.prototype.propertyIsEnumerable.call(f,w)&&(d[w]=f[w])}return d}function y(f,v){if(f==null)return{};var d={},w=Object.keys(f),_,E;for(E=0;E=0)&&(d[_]=f[_]);return d}var b=r.default.forwardRef(function(f,v){var d=f.open,w=f.icon,_=f.animate,E=f.className,k=f.disabled,S=f.children,R=x(f,["open","icon","animate","className","disabled","children"]),T=(0,i.useTheme)().accordion,P=T.defaultProps,j=T.styles.base;w=w??P.icon,_=_??P.animate,E=E??P.className,k=k??P.disabled;var L=(0,o.twMerge)((0,n.default)((0,a.default)(j.container),p({},(0,a.default)(j.disabled),k)),E),D=r.default.useMemo(function(){return{open:d,icon:w,animate:_,disabled:k}},[d,w,_,k]);return r.default.createElement(s.AccordionContextProvider,{value:D},r.default.createElement("div",h({},R,{ref:v,className:L}),S))});b.propTypes={open:l.propTypesOpen,icon:l.propTypesIcon,animate:l.propTypesAnimate,disabled:l.propTypesDisabled,className:l.propTypesClassName,children:l.propTypesChildren},b.displayName="MaterialTailwind.Accordion";var m=Object.assign(b,{Header:c.AccordionHeader,Body:u.AccordionBody})})(QW);var bX={},wr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n,o,a){var i=n.findIndex(function(s){return s===o});return i>=0?o:a}var r=t})(wr);var n9={},gf=class{constructor(){this.x=0,this.y=0,this.z=0}findFurthestPoint(t,r,n,o,a,i){return this.x=t-n>r/2?0:r,this.y=o-i>a/2?0:a,this.z=Math.hypot(this.x-(t-n),this.y-(o-i)),this.z}appyStyles(t,r,n,o,a){t.classList.add("ripple"),t.style.backgroundColor=r==="dark"?"rgba(0,0,0, 0.2)":"rgba(255,255,255, 0.3)",t.style.borderRadius="50%",t.style.pointerEvents="none",t.style.position="absolute",t.style.left=a.clientX-n.left-o+"px",t.style.top=a.clientY-n.top-o+"px",t.style.width=t.style.height=o*2+"px"}applyAnimation(t){t.animate([{transform:"scale(0)",opacity:1},{transform:"scale(1.5)",opacity:0}],{duration:500,easing:"linear"})}create(t,r){const n=t.currentTarget;n.style.position="relative",n.style.overflow="hidden";const o=n.getBoundingClientRect(),a=this.findFurthestPoint(t.clientX,n.offsetWidth,o.left,t.clientY,n.offsetHeight,o.top),i=document.createElement("span");this.appyStyles(i,r,o,a,t),this.applyAnimation(i),n.appendChild(i),setTimeout(()=>i.remove(),500)}};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,f){for(var v in f)Object.defineProperty(m,v,{enumerable:!0,get:f[v]})}t(e,{IconButton:function(){return y},default:function(){return b}});var r=h(O),n=h(et),o=h(gf),a=h(ct),i=Je,s=h(wr),l=h(Ze),c=Ye,u=Yc;function p(){return p=Object.assign||function(m){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.variant,d=m.size,w=m.color,_=m.ripple,E=m.className,k=m.children;m.fullWidth;var S=g(m,["variant","size","color","ripple","className","children","fullWidth"]),R=(0,c.useTheme)().iconButton,T=R.valid,P=R.defaultProps,j=R.styles,L=j.base,D=j.variants,B=j.sizes;v=v??P.variant,d=d??P.size,w=w??P.color,_=_??P.ripple,E=E??P.className;var V=_!==void 0&&new o.default,q=(0,l.default)(L),z=(0,l.default)(D[(0,s.default)(T.variants,v,"filled")][(0,s.default)(T.colors,w,"blue")]),F=(0,l.default)(B[(0,s.default)(T.sizes,d,"md")]),N=(0,i.twMerge)((0,a.default)(q,F,z),E);return r.default.createElement("button",p({},S,{ref:f,className:N,type:S.type||"button",onMouseDown:function(W){var G=S==null?void 0:S.onMouseDown;return _&&V.create(W,(v==="filled"||v==="gradient")&&w!=="white"?"light":"dark"),typeof G=="function"&&G(W)}}),r.default.createElement("span",{className:"absolute top-1/2 left-1/2 transform -translate-y-1/2 -translate-x-1/2"},k))});y.propTypes={variant:n.default.oneOf(u.propTypesVariant),size:n.default.oneOf(u.propTypesSize),color:n.default.oneOf(u.propTypesColor),ripple:u.propTypesRipple,className:u.propTypesClassName,children:u.propTypesChildren},y.displayName="MaterialTailwind.IconButton";var b=y})(n9);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,w){for(var _ in w)Object.defineProperty(d,_,{enumerable:!0,get:w[_]})}t(e,{Alert:function(){return f},default:function(){return v}});var r=y(O),n=y(et),o=rn,a=te,i=y(ct),s=y(dn),l=Je,c=y(wr),u=y(Ze),p=Ye,h=nP,g=y(n9);function x(){return x=Object.assign||function(d){for(var w=1;w=0)&&Object.prototype.propertyIsEnumerable.call(d,E)&&(_[E]=d[E])}return _}function m(d,w){if(d==null)return{};var _={},E=Object.keys(d),k,S;for(S=0;S=0)&&(_[k]=d[k]);return _}var f=r.default.forwardRef(function(d,w){var _=d.variant,E=d.color,k=d.icon,S=d.open,R=d.action,T=d.onClose,P=d.animate,j=d.className,L=d.children,D=b(d,["variant","color","icon","open","action","onClose","animate","className","children"]),B=(0,p.useTheme)().alert,V=B.defaultProps,q=B.valid,z=B.styles,F=z.base,N=z.variants;_=_??V.variant,E=E??V.color,j=j??V.className,P=P??V.animate,S=S??V.open,R=R??V.action,T=T??V.onClose;var W=(0,u.default)(F.alert),G=(0,u.default)(F.action),Q=(0,u.default)(N[(0,c.default)(q.variants,_,"filled")][(0,c.default)(q.colors,E,"blue")]),Z=(0,l.twMerge)((0,i.default)(W,Q),j),U=(0,i.default)(G),J={unmount:{opacity:0},mount:{opacity:1}},ae=(0,s.default)(J,P),ee=r.default.createElement("div",{className:"shrink-0"},k),se=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(se,null,S&&r.default.createElement(o.m.div,x({},D,{ref:w,role:"alert",className:"".concat(Z," flex"),initial:"unmount",exit:"unmount",animate:S?"mount":"unmount",variants:ae}),k&&ee,r.default.createElement("div",{className:"".concat(k?"ml-3":""," mr-12")},L),T&&!R&&r.default.createElement(g.default,{onClick:T,size:"sm",variant:"text",color:_==="outlined"||_==="ghost"?E:"white",className:U},r.default.createElement(a.XMarkIcon,{className:"h-6 w-6",strokeWidth:2})),R||null)))});f.propTypes={variant:n.default.oneOf(h.propTypesVariant),color:n.default.oneOf(h.propTypesColor),icon:h.propTypesIcon,open:h.propTypesOpen,action:h.propTypesAction,onClose:h.propTypesOnClose,animate:h.propTypesAnimate,className:h.propTypesClassName,children:h.propTypesChildren},f.displayName="MaterialTailwind.Alert";var v=f})(bX);var yX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,f){for(var v in f)Object.defineProperty(m,v,{enumerable:!0,get:f[v]})}t(e,{Avatar:function(){return y},default:function(){return b}});var r=h(O),n=h(et),o=h(ct),a=Je,i=h(wr),s=h(Ze),l=Ye,c=oP;function u(m,f,v){return f in m?Object.defineProperty(m,f,{value:v,enumerable:!0,configurable:!0,writable:!0}):m[f]=v,m}function p(){return p=Object.assign||function(m){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.variant,d=m.size,w=m.className,_=m.color,E=m.withBorder,k=g(m,["variant","size","className","color","withBorder"]),S=(0,l.useTheme)().avatar,R=S.valid,T=S.defaultProps,P=S.styles,j=P.base,L=P.variants,D=P.sizes,B=P.borderColor;v=v??T.variant,d=d??T.size,w=w??T.className,E=E??T.withBorder,_=_??T.color;var V=(0,s.default)(L[(0,i.default)(R.variants,v,"rounded")]),q=(0,s.default)(D[(0,i.default)(R.sizes,d,"md")]),z=(0,s.default)(B[(0,i.default)(R.colors,_,"blue")]),F,N=(0,a.twMerge)((0,o.default)((0,s.default)(j.initial),V,q,(F={},u(F,(0,s.default)(j.withBorder),E),u(F,z,E),F)),w);return r.default.createElement("img",p({},k,{ref:f,className:N}))});y.propTypes={variant:n.default.oneOf(c.propTypesVariant),size:n.default.oneOf(c.propTypesSize),className:c.propTypesClassName,withBorder:c.propTypesWithBorder,color:n.default.oneOf(c.propTypesColor)},y.displayName="MaterialTailwind.Avatar";var b=y})(yX);var wX={},xX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,c){for(var u in c)Object.defineProperty(l,u,{enumerable:!0,get:c[u]})}t(e,{propTypesSeparator:function(){return o},propTypesFullWidth:function(){return a},propTypesClassName:function(){return i},propTypesChildren:function(){return s}});var r=n(et);function n(l){return l&&l.__esModule?l:{default:l}}var o=r.default.node,a=r.default.bool,i=r.default.string,s=r.default.node.isRequired})(xX);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,f){for(var v in f)Object.defineProperty(m,v,{enumerable:!0,get:f[v]})}t(e,{Breadcrumbs:function(){return y},default:function(){return b}});var r=h(O),n=u(ct),o=Je,a=u(Ze),i=Ye,s=xX;function l(m,f,v){return f in m?Object.defineProperty(m,f,{value:v,enumerable:!0,configurable:!0,writable:!0}):m[f]=v,m}function c(){return c=Object.assign||function(m){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=(0,r.forwardRef)(function(m,f){var v=m.separator,d=m.fullWidth,w=m.className,_=m.children,E=g(m,["separator","fullWidth","className","children"]),k=(0,i.useTheme)().breadcrumbs,S=k.defaultProps,R=k.styles.base;v=v??S.separator,d=d??S.fullWidth,w=w??S.className;var T=(0,n.default)((0,a.default)(R.root.initial),l({},(0,a.default)(R.root.fullWidth),d)),P=(0,o.twMerge)((0,n.default)((0,a.default)(R.list)),w),j=(0,n.default)((0,a.default)(R.item.initial)),L=(0,n.default)((0,a.default)(R.separator));return r.default.createElement("nav",{"aria-label":"breadcrumb",className:T},r.default.createElement("ol",c({},E,{ref:f,className:P}),r.Children.map(_,function(D,B){if((0,r.isValidElement)(D)){var V;return r.default.createElement("li",{className:(0,n.default)(j,l({},(0,a.default)(R.item.disabled),D==null||(V=D.props)===null||V===void 0?void 0:V.disabled))},D,B!==r.Children.count(_)-1&&r.default.createElement("span",{className:L},v))}return null})))});y.propTypes={separator:s.propTypesSeparator,fullWidth:s.propTypesFullWidth,className:s.propTypesClassName,children:s.propTypesChildren},y.displayName="MaterialTailwind.Breadcrumbs";var b=y})(wX);var _X={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,v){for(var d in v)Object.defineProperty(f,d,{enumerable:!0,get:v[d]})}t(e,{Button:function(){return b},default:function(){return m}});var r=g(O),n=g(et),o=g(gf),a=g(ct),i=Je,s=g(wr),l=g(Ze),c=Ye,u=Yc;function p(f,v,d){return v in f?Object.defineProperty(f,v,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[v]=d,f}function h(){return h=Object.assign||function(f){for(var v=1;v=0)&&Object.prototype.propertyIsEnumerable.call(f,w)&&(d[w]=f[w])}return d}function y(f,v){if(f==null)return{};var d={},w=Object.keys(f),_,E;for(E=0;E=0)&&(d[_]=f[_]);return d}var b=r.default.forwardRef(function(f,v){var d=f.variant,w=f.size,_=f.color,E=f.fullWidth,k=f.ripple,S=f.className,R=f.children,T=x(f,["variant","size","color","fullWidth","ripple","className","children"]),P=(0,c.useTheme)().button,j=P.valid,L=P.defaultProps,D=P.styles,B=D.base,V=D.variants,q=D.sizes;d=d??L.variant,w=w??L.size,_=_??L.color,E=E??L.fullWidth,k=k??L.ripple,S=S??L.className;var z=k!==void 0&&new o.default,F=(0,l.default)(B.initial),N=(0,l.default)(V[(0,s.default)(j.variants,d,"filled")][(0,s.default)(j.colors,_,"blue")]),W=(0,l.default)(q[(0,s.default)(j.sizes,w,"md")]),G=(0,i.twMerge)((0,a.default)(F,W,N,p({},(0,l.default)(B.fullWidth),E)),S);return r.default.createElement("button",h({},T,{ref:v,className:G,type:T.type||"button",onMouseDown:function(Q){var Z=T==null?void 0:T.onMouseDown;return k&&z.create(Q,(d==="filled"||d==="gradient")&&_!=="white"?"light":"dark"),typeof Z=="function"&&Z(Q)}}),R)});b.propTypes={variant:n.default.oneOf(u.propTypesVariant),size:n.default.oneOf(u.propTypesSize),color:n.default.oneOf(u.propTypesColor),fullWidth:u.propTypesFullWidth,ripple:u.propTypesRipple,className:u.propTypesClassName,children:u.propTypesChildren},b.displayName="MaterialTailwind.Button";var m=b})(_X);var EX={},CX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,f){for(var v in f)Object.defineProperty(m,v,{enumerable:!0,get:f[v]})}t(e,{CardHeader:function(){return y},default:function(){return b}});var r=h(O),n=h(et),o=h(ct),a=Je,i=h(wr),s=h(Ze),l=Ye,c=Xc;function u(m,f,v){return f in m?Object.defineProperty(m,f,{value:v,enumerable:!0,configurable:!0,writable:!0}):m[f]=v,m}function p(){return p=Object.assign||function(m){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.variant,d=m.color,w=m.shadow,_=m.floated,E=m.className,k=m.children,S=g(m,["variant","color","shadow","floated","className","children"]),R=(0,l.useTheme)().cardHeader,T=R.defaultProps,P=R.styles,j=R.valid,L=P.base,D=P.variants;v=v??T.variant,d=d??T.color,w=w??T.shadow,_=_??T.floated,E=E??T.className;var B=(0,s.default)(L.initial),V=(0,s.default)(D[(0,i.default)(j.variants,v,"filled")][(0,i.default)(j.colors,d,"white")]),q=(0,a.twMerge)((0,o.default)(B,V,u({},(0,s.default)(L.shadow),w),u({},(0,s.default)(L.floated),_)),E);return r.default.createElement("div",p({},S,{ref:f,className:q}),k)});y.propTypes={variant:n.default.oneOf(c.propTypesVariant),color:n.default.oneOf(c.propTypesColor),shadow:c.propTypesShadow,floated:c.propTypesFloated,className:c.propTypesClassName,children:c.propTypesChildren},y.displayName="MaterialTailwind.CardHeader";var b=y})(CX);var OX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(x,y){for(var b in y)Object.defineProperty(x,b,{enumerable:!0,get:y[b]})}t(e,{CardBody:function(){return h},default:function(){return g}});var r=c(O),n=c(ct),o=Je,a=c(Ze),i=Ye,s=Xc;function l(){return l=Object.assign||function(x){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(x,m)&&(b[m]=x[m])}return b}function p(x,y){if(x==null)return{};var b={},m=Object.keys(x),f,v;for(v=0;v=0)&&(b[f]=x[f]);return b}var h=r.default.forwardRef(function(x,y){var b=x.className,m=x.children,f=u(x,["className","children"]),v=(0,i.useTheme)().cardBody,d=v.defaultProps,w=v.styles.base;b=b??d.className;var _=(0,o.twMerge)((0,n.default)((0,a.default)(w)),b);return r.default.createElement("div",l({},f,{ref:y,className:_}),m)});h.propTypes={className:s.propTypesClassName,children:s.propTypesChildren},h.displayName="MaterialTailwind.CardBody";var g=h})(OX);var kX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,b){for(var m in b)Object.defineProperty(y,m,{enumerable:!0,get:b[m]})}t(e,{CardFooter:function(){return g},default:function(){return x}});var r=u(O),n=u(ct),o=Je,a=u(Ze),i=Ye,s=Xc;function l(y,b,m){return b in y?Object.defineProperty(y,b,{value:m,enumerable:!0,configurable:!0,writable:!0}):y[b]=m,y}function c(){return c=Object.assign||function(y){for(var b=1;b=0)&&Object.prototype.propertyIsEnumerable.call(y,f)&&(m[f]=y[f])}return m}function h(y,b){if(y==null)return{};var m={},f=Object.keys(y),v,d;for(d=0;d=0)&&(m[v]=y[v]);return m}var g=r.default.forwardRef(function(y,b){var m=y.divider,f=y.className,v=y.children,d=p(y,["divider","className","children"]),w=(0,i.useTheme)().cardFooter,_=w.defaultProps,E=w.styles.base;f=f??_.className,m=m??_.divider;var k=(0,o.twMerge)((0,n.default)((0,a.default)(E.initial),l({},(0,a.default)(E.divider),m)),f);return r.default.createElement("div",c({},d,{ref:b,className:k}),v)});g.propTypes={divider:s.propTypesDivider,className:s.propTypesClassName,children:s.propTypesChildren},g.displayName="MaterialTailwind.CardFooter";var x=g})(kX);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,w){for(var _ in w)Object.defineProperty(d,_,{enumerable:!0,get:w[_]})}t(e,{Card:function(){return f},CardHeader:function(){return c.CardHeader},CardBody:function(){return u.CardBody},CardFooter:function(){return p.CardFooter},default:function(){return v}});var r=y(O),n=y(et),o=y(ct),a=Je,i=y(wr),s=y(Ze),l=Ye,c=CX,u=OX,p=kX,h=Xc;function g(d,w,_){return w in d?Object.defineProperty(d,w,{value:_,enumerable:!0,configurable:!0,writable:!0}):d[w]=_,d}function x(){return x=Object.assign||function(d){for(var w=1;w=0)&&Object.prototype.propertyIsEnumerable.call(d,E)&&(_[E]=d[E])}return _}function m(d,w){if(d==null)return{};var _={},E=Object.keys(d),k,S;for(S=0;S=0)&&(_[k]=d[k]);return _}var f=r.default.forwardRef(function(d,w){var _=d.variant,E=d.color,k=d.shadow,S=d.className,R=d.children,T=b(d,["variant","color","shadow","className","children"]),P=(0,l.useTheme)().card,j=P.defaultProps,L=P.styles,D=P.valid,B=L.base,V=L.variants;_=_??j.variant,E=E??j.color,k=k??j.shadow,S=S??j.className;var q=(0,s.default)(B.initial),z=(0,s.default)(V[(0,i.default)(D.variants,_,"filled")][(0,i.default)(D.colors,E,"white")]),F=(0,a.twMerge)((0,o.default)(q,z,g({},(0,s.default)(B.shadow),k)),S);return r.default.createElement("div",x({},T,{ref:w,className:F}),R)});f.propTypes={variant:n.default.oneOf(h.propTypesVariant),color:n.default.oneOf(h.propTypesColor),shadow:h.propTypesShadow,className:h.propTypesClassName,children:h.propTypesChildren},f.displayName="MaterialTailwind.Card";var v=Object.assign(f,{Header:c.CardHeader,Body:u.CardBody,Footer:p.CardFooter})})(EX);var RX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,v){for(var d in v)Object.defineProperty(f,d,{enumerable:!0,get:v[d]})}t(e,{Checkbox:function(){return b},default:function(){return m}});var r=g(O),n=g(et),o=g(gf),a=g(ct),i=Je,s=g(wr),l=g(Ze),c=Ye,u=Zc;function p(f,v,d){return v in f?Object.defineProperty(f,v,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[v]=d,f}function h(){return h=Object.assign||function(f){for(var v=1;v=0)&&Object.prototype.propertyIsEnumerable.call(f,w)&&(d[w]=f[w])}return d}function y(f,v){if(f==null)return{};var d={},w=Object.keys(f),_,E;for(E=0;E=0)&&(d[_]=f[_]);return d}var b=r.default.forwardRef(function(f,v){var d=f.color,w=f.label,_=f.icon,E=f.ripple,k=f.className,S=f.disabled,R=f.containerProps,T=f.labelProps,P=f.iconProps,j=f.inputRef,L=x(f,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),D=(0,c.useTheme)().checkbox,B=D.defaultProps,V=D.valid,q=D.styles,z=q.base,F=q.colors,N=r.default.useId();d=d??B.color,w=w??B.label,_=_??B.icon,E=E??B.ripple,k=k??B.className,S=S??B.disabled,R=R??B.containerProps,T=T??B.labelProps,P=P??B.iconProps;var W=E!==void 0&&new o.default,G=(0,a.default)((0,l.default)(z.root),p({},(0,l.default)(z.disabled),S)),Q=(0,i.twMerge)((0,a.default)((0,l.default)(z.container)),R==null?void 0:R.className),Z=(0,i.twMerge)((0,a.default)((0,l.default)(z.input),(0,l.default)(F[(0,s.default)(V.colors,d,"blue")])),k),U=(0,i.twMerge)((0,a.default)((0,l.default)(z.label)),T==null?void 0:T.className),J=(0,i.twMerge)((0,a.default)((0,l.default)(z.icon)),P==null?void 0:P.className);return r.default.createElement("div",{ref:v,className:G},r.default.createElement("label",h({},R,{className:Q,htmlFor:L.id||N,onMouseDown:function(ae){var ee=R==null?void 0:R.onMouseDown;return E&&W.create(ae,"dark"),typeof ee=="function"&&ee(ae)}}),r.default.createElement("input",h({},L,{ref:j,type:"checkbox",disabled:S,className:Z,id:L.id||N})),r.default.createElement("span",{className:J},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor",strokeWidth:1},r.default.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})))),w&&r.default.createElement("label",h({},T,{className:U,htmlFor:L.id||N}),w))});b.propTypes={color:n.default.oneOf(u.propTypesColor),label:u.propTypesLabel,icon:u.propTypesIcon,ripple:u.propTypesRipple,className:u.propTypesClassName,disabled:u.propTypesDisabled,containerProps:u.propTypesObject,labelProps:u.propTypesObject},b.displayName="MaterialTailwind.Checkbox";var m=b})(RX);var SX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,w){for(var _ in w)Object.defineProperty(d,_,{enumerable:!0,get:w[_]})}t(e,{Chip:function(){return f},default:function(){return v}});var r=y(O),n=y(et),o=rn,a=te,i=y(ct),s=y(dn),l=Je,c=y(wr),u=y(Ze),p=Ye,h=dP,g=y(n9);function x(){return x=Object.assign||function(d){for(var w=1;w=0)&&Object.prototype.propertyIsEnumerable.call(d,E)&&(_[E]=d[E])}return _}function m(d,w){if(d==null)return{};var _={},E=Object.keys(d),k,S;for(S=0;S=0)&&(_[k]=d[k]);return _}var f=r.default.forwardRef(function(d,w){var _=d.variant,E=d.size,k=d.color,S=d.icon,R=d.open,T=d.onClose,P=d.action,j=d.animate,L=d.className,D=d.value,B=b(d,["variant","size","color","icon","open","onClose","action","animate","className","value"]),V=(0,p.useTheme)().chip,q=V.defaultProps,z=V.valid,F=V.styles,N=F.base,W=F.variants,G=F.sizes;_=_??q.variant,E=E??q.size,k=k??q.color,L=L??q.className,j=j??q.animate,R=R??q.open,P=P??q.action,T=T??q.onClose;var Q=(0,u.default)(N.chip),Z=(0,u.default)(N.action),U=(0,u.default)(N.icon),J=(0,u.default)(W[(0,c.default)(z.variants,_,"filled")][(0,c.default)(z.colors,k,"blue")]),ae=(0,u.default)(G[(0,c.default)(z.sizes,E,"md")].chip),ee=(0,u.default)(G[(0,c.default)(z.sizes,E,"md")].action),se=(0,u.default)(G[(0,c.default)(z.sizes,E,"md")].icon),ue=(0,l.twMerge)((0,i.default)(Q,J,ae),L),we=(0,i.default)(Z,ee),Oe=(0,i.default)(U,se),Te=(0,i.default)({"ml-4":S&&E==="sm","ml-[18px]":S&&E==="md","ml-5":S&&E==="lg","mr-5":T}),Se={unmount:{opacity:0},mount:{opacity:1}},Pe=(0,s.default)(Se,j),Ie=r.default.createElement("div",{className:Oe},S),me=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(me,null,R&&r.default.createElement(o.m.div,x({},B,{ref:w,className:ue,initial:"unmount",exit:"unmount",animate:R?"mount":"unmount",variants:Pe}),S&&Ie,r.default.createElement("span",{className:Te},D),T&&!P&&r.default.createElement(g.default,{onClick:T,size:"sm",variant:"text",color:_==="outlined"||_==="ghost"?k:"white",className:we},r.default.createElement(a.XMarkIcon,{className:(0,i.default)({"h-3.5 w-3.5":E==="sm","h-4 w-4":E==="md","h-5 w-5":E==="lg"}),strokeWidth:2})),P||null)))});f.propTypes={variant:n.default.oneOf(h.propTypesVariant),size:n.default.oneOf(h.propTypesSize),color:n.default.oneOf(h.propTypesColor),icon:h.propTypesIcon,open:h.propTypesOpen,onClose:h.propTypesOnClose,action:h.propTypesAction,animate:h.propTypesAnimate,className:h.propTypesClassName,value:h.propTypesValue},f.displayName="MaterialTailwind.Chip";var v=f})(SX);var TX={},CFe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},yu=new WeakMap,am=new WeakMap,im={},jC=0,PX=function(e){return e&&(e.host||PX(e.parentNode))},OFe=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=PX(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},kFe=function(e,t,r,n){var o=OFe(t,Array.isArray(e)?e:[e]);im[r]||(im[r]=new WeakMap);var a=im[r],i=[],s=new Set,l=new Set(o),c=function(p){!p||s.has(p)||(s.add(p),c(p.parentNode))};o.forEach(c);var u=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(h){if(s.has(h))u(h);else{var g=h.getAttribute(n),x=g!==null&&g!=="false",y=(yu.get(h)||0)+1,b=(a.get(h)||0)+1;yu.set(h,y),a.set(h,b),i.push(h),y===1&&x&&am.set(h,!0),b===1&&h.setAttribute(r,"true"),x||h.setAttribute(n,"true")}})};return u(t),s.clear(),jC++,function(){i.forEach(function(p){var h=yu.get(p)-1,g=a.get(p)-1;yu.set(p,h),a.set(p,g),h||(am.has(p)||p.removeAttribute(n),am.delete(p)),g||p.removeAttribute(r)}),jC--,jC||(yu=new WeakMap,yu=new WeakMap,am=new WeakMap,im={})}},RFe=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||CFe(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),kFe(n,o,r,"aria-hidden")):function(){return null}};/*! +*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],o=0;oe&&(t=0,n=r,r=new Map)}return{get:function(a){var i=r.get(a);return i!==void 0?i:(i=n.get(a))!==void 0?(o(a,i),i):void 0},set:function(a,i){r.has(a)?r.set(a,i):o(a,i)}}}var nq="!";function Wfe(e){var t=e.separator||":",r=t.length===1,n=t[0],o=t.length;return function(a){for(var i,s=[],l=0,c=0,u=0;uc?i-c:void 0}}}var qfe=/\s+/;function rR(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),n=1;nl.length)&&(c=l.length);for(var u=0,p=new Array(c);ub.length)&&(m=b.length);for(var f=0,v=new Array(m);ff.length)&&(v=f.length);for(var d=0,w=new Array(v);df.length)&&(v=f.length);for(var d=0,w=new Array(v);dE.length)&&(k=E.length);for(var S=0,R=new Array(k);Sd.length)&&(w=d.length);for(var _=0,E=new Array(w);_m.length)&&(f=m.length);for(var v=0,d=new Array(f);vw.length)&&(_=w.length);for(var E=0,k=new Array(_);E<_;E++)k[E]=w[E];return k}function a(w){if(Array.isArray(w))return o(w)}function i(w){return w&&w.__esModule?w:{default:w}}function s(w){if(typeof Symbol<"u"&&w[Symbol.iterator]!=null||w["@@iterator"]!=null)return Array.from(w)}function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(w){return a(w)||s(w)||u(w)||l()}function u(w,_){if(w){if(typeof w=="string")return o(w,_);var E=Object.prototype.toString.call(w).slice(8,-1);if(E==="Object"&&w.constructor&&(E=w.constructor.name),E==="Map"||E==="Set")return Array.from(E);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return o(w,_)}}var p=["white"].concat(c(n.propTypesColors)),h=r.default.bool,g=r.default.bool,x=["circular","square"],y=["top-start","top-end","bottom-start","bottom-end"],b=r.default.string,m=r.default.node,f=r.default.node.isRequired,v=r.default.instanceOf(Object),d=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(mP);var tK={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});var t={white:{backgroud:"bg-white",color:"text-blue-gray-900"},"blue-gray":{backgroud:"bg-blue-gray-500",color:"text-white"},gray:{backgroud:"bg-gray-500",color:"text-white"},brown:{backgroud:"bg-brown-500",color:"text-white"},"deep-orange":{backgroud:"bg-deep-orange-500",color:"text-white"},orange:{backgroud:"bg-orange-500",color:"text-white"},amber:{backgroud:"bg-amber-500",color:"text-black"},yellow:{backgroud:"bg-yellow-500",color:"text-black"},lime:{backgroud:"bg-lime-500",color:"text-black"},"light-green":{backgroud:"bg-light-green-500",color:"text-white"},green:{backgroud:"bg-green-500",color:"text-white"},teal:{backgroud:"bg-teal-500",color:"text-white"},cyan:{backgroud:"bg-cyan-500",color:"text-white"},"light-blue":{backgroud:"bg-light-blue-500",color:"text-white"},blue:{backgroud:"bg-blue-500",color:"text-white"},indigo:{backgroud:"bg-indigo-500",color:"text-white"},"deep-purple":{backgroud:"bg-deep-purple-500",color:"text-white"},purple:{backgroud:"bg-purple-500",color:"text-white"},pink:{backgroud:"bg-pink-500",color:"text-white"},red:{backgroud:"bg-red-500",color:"text-white"}},r=t})(tK);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,l){for(var c in l)Object.defineProperty(s,c,{enumerable:!0,get:l[c]})}t(e,{badge:function(){return a},default:function(){return i}});var r=mP,n=o(tK);function o(s){return s&&s.__esModule?s:{default:s}}var a={defaultProps:{color:"red",invisible:!1,withBorder:!1,overlap:"square",content:void 0,placement:"top-end",className:void 0,containerProps:void 0},valid:{colors:r.propTypesColor,overlaps:r.propTypesOverlap,placements:r.propTypesPlacement},styles:{base:{container:{position:"relative",display:"inline-flex"},badge:{initial:{position:"absolute",minWidth:"min-w-[12px]",minHeight:"min-h-[12px]",borderRadius:"rounded-full",paddingY:"py-1",paddingX:"px-1",fontSize:"text-xs",fontWeight:"font-medium",content:"content-['']",lineHeight:"leading-none",display:"grid",placeItems:"place-items-center"},withBorder:{borderWidth:"border-2",borderColor:"border-white"},withContent:{minWidth:"min-w-[24px]",minHeight:"min-h-[24px]"}}},placements:{"top-start":{square:{top:"top-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"-translate-y-2/4"}},"top-end":{square:{top:"top-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"},circular:{top:"top-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"-translate-y-2/4"}},"bottom-start":{square:{bottom:"bottom-[4%]",left:"left-[2%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",left:"left-[14%]",translateX:"-translate-x-2/4",translateY:"translate-y-2/4"}},"bottom-end":{square:{bottom:"bottom-[4%]",right:"right-[2%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"},circular:{bottom:"bottom-[14%]",right:"right-[14%]",translateX:"translate-x-2/4",translateY:"translate-y-2/4"}}},colors:n.default}},i=a})(eK);var rK={},gP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,d){for(var w in d)Object.defineProperty(v,w,{enumerable:!0,get:d[w]})}t(e,{propTypesCount:function(){return p},propTypesValue:function(){return h},propTypesRatedIcon:function(){return g},propTypesUnratedIcon:function(){return x},propTypesColor:function(){return y},propTypesOnChange:function(){return b},propTypesClassName:function(){return m},propTypesReadonly:function(){return f}});var r=i(et),n=ur;function o(v,d){(d==null||d>v.length)&&(d=v.length);for(var w=0,_=new Array(d);wg.length)&&(x=g.length);for(var y=0,b=new Array(x);yy.length)&&(b=y.length);for(var m=0,f=new Array(b);m"u"?s[c]=i.cloneUnlessOtherwiseSpecified(l,i):i.isMergeableObject(l)?s[c]=(0,t.default)(o[c],l,i):o.indexOf(l)===-1&&s.push(l)}),s}})(kK);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,x){for(var y in x)Object.defineProperty(g,y,{enumerable:!0,get:x[y]})}t(e,{MaterialTailwindTheme:function(){return u},ThemeProvider:function(){return p},useTheme:function(){return h}});var r=c(O),n=s(et),o=s(dn),a=s(rP),i=s(kK);function s(g){return g&&g.__esModule?g:{default:g}}function l(g){if(typeof WeakMap!="function")return null;var x=new WeakMap,y=new WeakMap;return(l=function(b){return b?y:x})(g)}function c(g,x){if(!x&&g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var y=l(x);if(y&&y.has(g))return y.get(g);var b={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in g)if(f!=="default"&&Object.prototype.hasOwnProperty.call(g,f)){var v=m?Object.getOwnPropertyDescriptor(g,f):null;v&&(v.get||v.set)?Object.defineProperty(b,f,v):b[f]=g[f]}return b.default=g,y&&y.set(g,b),b}var u=(0,r.createContext)(a.default);u.displayName="MaterialTailwindThemeProvider";function p(g){var x=g.value,y=x===void 0?a.default:x,b=g.children,m=(0,o.default)(a.default,y,{arrayMerge:i.default});return r.default.createElement(u.Provider,{value:m},b)}var h=function(){return(0,r.useContext)(u)};p.propTypes={value:n.default.instanceOf(Object),children:n.default.node.isRequired}})(Ye);var H8={},F1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,g){for(var x in g)Object.defineProperty(h,x,{enumerable:!0,get:g[x]})}t(e,{propTypesOpen:function(){return a},propTypesIcon:function(){return i},propTypesAnimate:function(){return s},propTypesDisabled:function(){return l},propTypesClassName:function(){return c},propTypesValue:function(){return u},propTypesChildren:function(){return p}});var r=o(et),n=ur;function o(h){return h&&h.__esModule?h:{default:h}}var a=r.default.bool.isRequired,i=r.default.node,s=n.propTypesAnimation,l=r.default.bool,c=r.default.string,u=r.default.instanceOf(Object).isRequired,p=r.default.node.isRequired})(F1);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,c){for(var u in c)Object.defineProperty(l,u,{enumerable:!0,get:c[u]})}t(e,{AccordionContext:function(){return a},useAccordion:function(){return i},AccordionContextProvider:function(){return s}});var r=o(O),n=F1;function o(l){return l&&l.__esModule?l:{default:l}}var a=r.default.createContext(null);a.displayName="MaterialTailwind.AccordionContext";function i(){var l=r.default.useContext(a);if(!l)throw new Error("useAccordion() must be used within an Accordion. It happens when you use AccordionHeader or AccordionBody components outside the Accordion component.");return l}var s=function(l){var c=l.value,u=l.children;return r.default.createElement(a.Provider,{value:c},u)};s.propTypes={value:n.propTypesValue,children:n.propTypesChildren},s.displayName="MaterialTailwind.AccordionContextProvider"})(H8);var RK={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,m){for(var f in m)Object.defineProperty(b,f,{enumerable:!0,get:m[f]})}t(e,{AccordionHeader:function(){return x},default:function(){return y}});var r=p(O),n=p(ct),o=Je,a=p(Ze),i=H8,s=Ye,l=F1;function c(b,m,f){return m in b?Object.defineProperty(b,m,{value:f,enumerable:!0,configurable:!0,writable:!0}):b[m]=f,b}function u(){return u=Object.assign||function(b){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(b,v)&&(f[v]=b[v])}return f}function g(b,m){if(b==null)return{};var f={},v=Object.keys(b),d,w;for(w=0;w=0)&&(f[d]=b[d]);return f}var x=r.default.forwardRef(function(b,m){var f=b.className,v=b.children,d=h(b,["className","children"]),w=(0,i.useAccordion)(),_=w.open,E=w.icon,k=w.disabled,S=(0,s.useTheme)().accordion,R=S.styles.base;f=f??"";var T=(0,o.twMerge)((0,n.default)((0,a.default)(R.header.initial),c({},(0,a.default)(R.header.active),_)),f),P=(0,n.default)((0,a.default)(R.header.icon));return r.default.createElement("button",u({},d,{ref:m,type:"button",disabled:k,className:T}),v,r.default.createElement("span",{className:P},E??(_?r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5 10a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1z",clipRule:"evenodd"})):r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})))))});x.propTypes={className:l.propTypesClassName,children:l.propTypesChildren},x.displayName="MaterialTailwind.AccordionHeader";var y=x})(RK);var SK={},rn={},nR=function(e,t){return nR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},nR(e,t)};function TK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");nR(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var jx=function(){return jx=Object.assign||function(t){for(var r,n=1,o=arguments.length;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function AK(e,t){return function(r,n){t(r,n,e)}}function XLe(e,t,r,n,o,a){function i(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var s=n.kind,l=s==="getter"?"get":s==="setter"?"set":"value",c=!t&&e?n.static?e:e.prototype:null,u=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),p,h=!1,g=r.length-1;g>=0;g--){var x={};for(var y in n)x[y]=y==="access"?{}:n[y];for(var y in n.access)x.access[y]=n.access[y];x.addInitializer=function(m){if(h)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(m||null))};var b=(0,r[g])(s==="accessor"?{get:u.get,set:u.set}:u[l],x);if(s==="accessor"){if(b===void 0)continue;if(b===null||typeof b!="object")throw new TypeError("Object expected");(p=i(b.get))&&(u.get=p),(p=i(b.set))&&(u.set=p),(p=i(b.init))&&o.unshift(p)}else(p=i(b))&&(s==="field"?o.unshift(p):u[l]=p)}c&&Object.defineProperty(c,n.name,u),h=!0}function ZLe(e,t,r){for(var n=arguments.length>2,o=0;o0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function yP(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return a}function NK(){for(var e=[],t=0;t1||s(h,g)})})}function s(h,g){try{l(n[h](g))}catch(x){p(a[0][3],x)}}function l(h){h.value instanceof Vd?Promise.resolve(h.value.v).then(c,u):p(a[0][2],h)}function c(h){s("next",h)}function u(h){s("throw",h)}function p(h,g){h(g),a.shift(),a.length&&s(a[0][0],a[0][1])}}function BK(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,a){t[o]=e[o]?function(i){return(r=!r)?{value:Vd(e[o](i)),done:!1}:a?a(i):i}:a}}function VK(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Ix=="function"?Ix(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(i){return new Promise(function(s,l){i=e[a](i),o(s,l,i.done,i.value)})}}function o(a,i,s,l){Promise.resolve(l).then(function(c){a({value:c,done:s})},i)}}function HK(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var e$e=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function UK(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&U8(t,e,r);return e$e(t,e),t}function WK(e){return e&&e.__esModule?e:{default:e}}function qK(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function GK(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}function KK(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function YK(e,t,r){if(t!=null){if(typeof t!="object")throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if(typeof n!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var t$e=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function XK(e){function t(n){e.error=e.hasError?new t$e(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,function(a){return t(a),r()})}catch(a){t(a)}}if(e.hasError)throw e.error}return r()}const r$e={__extends:TK,__assign:jx,__rest:PK,__decorate:MK,__param:AK,__metadata:jK,__awaiter:IK,__generator:LK,__createBinding:U8,__exportStar:$K,__values:Ix,__read:yP,__spread:NK,__spreadArrays:DK,__spreadArray:FK,__await:Vd,__asyncGenerator:zK,__asyncDelegator:BK,__asyncValues:VK,__makeTemplateObject:HK,__importStar:UK,__importDefault:WK,__classPrivateFieldGet:qK,__classPrivateFieldSet:GK,__classPrivateFieldIn:KK,__addDisposableResource:YK,__disposeResources:XK},n$e=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:YK,get __assign(){return jx},__asyncDelegator:BK,__asyncGenerator:zK,__asyncValues:VK,__await:Vd,__awaiter:IK,__classPrivateFieldGet:qK,__classPrivateFieldIn:KK,__classPrivateFieldSet:GK,__createBinding:U8,__decorate:MK,__disposeResources:XK,__esDecorate:XLe,__exportStar:$K,__extends:TK,__generator:LK,__importDefault:WK,__importStar:UK,__makeTemplateObject:HK,__metadata:jK,__param:AK,__propKey:QLe,__read:yP,__rest:PK,__runInitializers:ZLe,__setFunctionName:JLe,__spread:NK,__spreadArray:FK,__spreadArrays:DK,__values:Ix,default:r$e},Symbol.toStringTag,{value:"Module"})),o$e=lf(n$e);var a$e=function(){},ZK=function(){};const i$e=Object.freeze(Object.defineProperty({__proto__:null,invariant:ZK,warning:a$e},Symbol.toStringTag,{value:"Module"})),QK=lf(i$e);var qr={};Object.defineProperty(qr,"__esModule",{value:!0});const JK=(e,t)=>r=>Math.max(Math.min(r,t),e),fp=e=>e%1?Number(e.toFixed(5)):e,e1=/(-)?([\d]*\.?[\d])+/g,oR=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,s$e=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function z1(e){return typeof e=="string"}const B1={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},wP=Object.assign(Object.assign({},B1),{transform:JK(0,1)}),l$e=Object.assign(Object.assign({},B1),{default:1}),V1=e=>({test:t=>z1(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),c$e=V1("deg"),gd=V1("%"),u$e=V1("px"),d$e=V1("vh"),f$e=V1("vw"),h$e=Object.assign(Object.assign({},gd),{parse:e=>gd.parse(e)/100,transform:e=>gd.transform(e*100)}),xP=(e,t)=>r=>!!(z1(r)&&s$e.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),eY=(e,t,r)=>n=>{if(!z1(n))return n;const[o,a,i,s]=n.match(e1);return{[e]:parseFloat(o),[t]:parseFloat(a),[r]:parseFloat(i),alpha:s!==void 0?parseFloat(s):1}},qh={test:xP("hsl","hue"),parse:eY("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+gd.transform(fp(t))+", "+gd.transform(fp(r))+", "+fp(wP.transform(n))+")"},p$e=JK(0,255),C6=Object.assign(Object.assign({},B1),{transform:e=>Math.round(p$e(e))}),Ju={test:xP("rgb","red"),parse:eY("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+C6.transform(e)+", "+C6.transform(t)+", "+C6.transform(r)+", "+fp(wP.transform(n))+")"};function m$e(e){let t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const aR={test:xP("#"),parse:m$e,transform:Ju.transform},_P={test:e=>Ju.test(e)||aR.test(e)||qh.test(e),parse:e=>Ju.test(e)?Ju.parse(e):qh.test(e)?qh.parse(e):aR.parse(e),transform:e=>z1(e)?e:e.hasOwnProperty("red")?Ju.transform(e):qh.transform(e)},tY="${c}",rY="${n}";function g$e(e){var t,r,n,o;return isNaN(e)&&z1(e)&&((r=(t=e.match(e1))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((o=(n=e.match(oR))===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0)>0}function nY(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(oR);n&&(r=n.length,e=e.replace(oR,tY),t.push(...n.map(_P.parse)));const o=e.match(e1);return o&&(e=e.replace(e1,rY),t.push(...o.map(B1.parse))),{values:t,numColors:r,tokenised:e}}function oY(e){return nY(e).values}function aY(e){const{values:t,numColors:r,tokenised:n}=nY(e),o=t.length;return a=>{let i=n;for(let s=0;stypeof e=="number"?0:e;function b$e(e){const t=oY(e);return aY(e)(t.map(v$e))}const iY={test:g$e,parse:oY,createTransformer:aY,getAnimatableNone:b$e},y$e=new Set(["brightness","contrast","saturate","opacity"]);function w$e(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(e1)||[];if(!n)return e;const o=r.replace(n,"");let a=y$e.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+o+")"}const x$e=/([a-z-]*)\(.*?\)/g,_$e=Object.assign(Object.assign({},iY),{getAnimatableNone:e=>{const t=e.match(x$e);return t?t.map(w$e).join(" "):e}});qr.alpha=wP;qr.color=_P;qr.complex=iY;qr.degrees=c$e;qr.filter=_$e;qr.hex=aR;qr.hsla=qh;qr.number=B1;qr.percent=gd;qr.progressPercentage=h$e;qr.px=u$e;qr.rgbUnit=C6;qr.rgba=Ju;qr.scale=l$e;qr.vh=d$e;qr.vw=f$e;var it={},iR=function(e,t){return iR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},iR(e,t)};function sY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");iR(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Lx=function(){return Lx=Object.assign||function(t){for(var r,n=1,o=arguments.length;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function uY(e,t){return function(r,n){t(r,n,e)}}function E$e(e,t,r,n,o,a){function i(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var s=n.kind,l=s==="getter"?"get":s==="setter"?"set":"value",c=!t&&e?n.static?e:e.prototype:null,u=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),p,h=!1,g=r.length-1;g>=0;g--){var x={};for(var y in n)x[y]=y==="access"?{}:n[y];for(var y in n.access)x.access[y]=n.access[y];x.addInitializer=function(m){if(h)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(m||null))};var b=(0,r[g])(s==="accessor"?{get:u.get,set:u.set}:u[l],x);if(s==="accessor"){if(b===void 0)continue;if(b===null||typeof b!="object")throw new TypeError("Object expected");(p=i(b.get))&&(u.get=p),(p=i(b.set))&&(u.set=p),(p=i(b.init))&&o.unshift(p)}else(p=i(b))&&(s==="field"?o.unshift(p):u[l]=p)}c&&Object.defineProperty(c,n.name,u),h=!0}function C$e(e,t,r){for(var n=arguments.length>2,o=0;o0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function EP(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return a}function mY(){for(var e=[],t=0;t1||s(h,g)})})}function s(h,g){try{l(n[h](g))}catch(x){p(a[0][3],x)}}function l(h){h.value instanceof Hd?Promise.resolve(h.value.v).then(c,u):p(a[0][2],h)}function c(h){s("next",h)}function u(h){s("throw",h)}function p(h,g){h(g),a.shift(),a.length&&s(a[0][0],a[0][1])}}function yY(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,a){t[o]=e[o]?function(i){return(r=!r)?{value:Hd(e[o](i)),done:!1}:a?a(i):i}:a}}function wY(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof $x=="function"?$x(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(i){return new Promise(function(s,l){i=e[a](i),o(s,l,i.done,i.value)})}}function o(a,i,s,l){Promise.resolve(l).then(function(c){a({value:c,done:s})},i)}}function xY(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var R$e=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function _Y(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&W8(t,e,r);return R$e(t,e),t}function EY(e){return e&&e.__esModule?e:{default:e}}function CY(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function OY(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}function kY(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function RY(e,t,r){if(t!=null){if(typeof t!="object")throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if(typeof n!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var S$e=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function SY(e){function t(n){e.error=e.hasError?new S$e(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,function(a){return t(a),r()})}catch(a){t(a)}}if(e.hasError)throw e.error}return r()}const T$e={__extends:sY,__assign:Lx,__rest:lY,__decorate:cY,__param:uY,__metadata:dY,__awaiter:fY,__generator:hY,__createBinding:W8,__exportStar:pY,__values:$x,__read:EP,__spread:mY,__spreadArrays:gY,__spreadArray:vY,__await:Hd,__asyncGenerator:bY,__asyncDelegator:yY,__asyncValues:wY,__makeTemplateObject:xY,__importStar:_Y,__importDefault:EY,__classPrivateFieldGet:CY,__classPrivateFieldSet:OY,__classPrivateFieldIn:kY,__addDisposableResource:RY,__disposeResources:SY},P$e=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:RY,get __assign(){return Lx},__asyncDelegator:yY,__asyncGenerator:bY,__asyncValues:wY,__await:Hd,__awaiter:fY,__classPrivateFieldGet:CY,__classPrivateFieldIn:kY,__classPrivateFieldSet:OY,__createBinding:W8,__decorate:cY,__disposeResources:SY,__esDecorate:E$e,__exportStar:pY,__extends:sY,__generator:hY,__importDefault:EY,__importStar:_Y,__makeTemplateObject:xY,__metadata:dY,__param:uY,__propKey:O$e,__read:EP,__rest:lY,__runInitializers:C$e,__setFunctionName:k$e,__spread:mY,__spreadArray:vY,__spreadArrays:gY,__values:$x,default:T$e},Symbol.toStringTag,{value:"Module"})),M$e=lf(P$e);var Qc={};Object.defineProperty(Qc,"__esModule",{value:!0});const TY=1/60*1e3,A$e=typeof performance<"u"?()=>performance.now():()=>Date.now(),PY=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(A$e()),TY);function j$e(e){let t=[],r=[],n=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(l,c=!1,u=!1)=>{const p=u&&o,h=p?t:r;return c&&i.add(l),h.indexOf(l)===-1&&(h.push(l),p&&o&&(n=t.length)),l},cancel:l=>{const c=r.indexOf(l);c!==-1&&r.splice(c,1),i.delete(l)},process:l=>{if(o){a=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let c=0;c(e[t]=j$e(()=>t1=!0),e),{}),L$e=H1.reduce((e,t)=>{const r=q8[t];return e[t]=(n,o=!1,a=!1)=>(t1||F$e(),r.schedule(n,o,a)),e},{}),$$e=H1.reduce((e,t)=>(e[t]=q8[t].cancel,e),{}),N$e=H1.reduce((e,t)=>(e[t]=()=>q8[t].process(vd),e),{}),D$e=e=>q8[e].process(vd),MY=e=>{t1=!1,vd.delta=sR?TY:Math.max(Math.min(e-vd.timestamp,I$e),1),vd.timestamp=e,lR=!0,H1.forEach(D$e),lR=!1,t1&&(sR=!1,PY(MY))},F$e=()=>{t1=!0,sR=!0,lR||PY(MY)},z$e=()=>vd;Qc.cancelSync=$$e;Qc.default=L$e;Qc.flushSync=N$e;Qc.getFrameData=z$e;Object.defineProperty(it,"__esModule",{value:!0});var AY=M$e,Ud=QK,ga=qr,G8=Qc;function B$e(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var V$e=B$e(G8);const r1=(e,t,r)=>Math.min(Math.max(r,e),t),kC=.001,H$e=.01,A$=10,U$e=.05,W$e=1;function q$e({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,a;Ud.warning(e<=A$*1e3,"Spring duration must be 10 seconds or less");let i=1-t;i=r1(U$e,W$e,i),e=r1(H$e,A$,e/1e3),i<1?(o=c=>{const u=c*i,p=u*e,h=u-r,g=cR(c,i),x=Math.exp(-p);return kC-h/g*x},a=c=>{const p=c*i*e,h=p*r+r,g=Math.pow(i,2)*Math.pow(c,2)*e,x=Math.exp(-p),y=cR(Math.pow(c,2),i);return(-o(c)+kC>0?-1:1)*((h-g)*x)/y}):(o=c=>{const u=Math.exp(-c*e),p=(c-r)*e+1;return-kC+u*p},a=c=>{const u=Math.exp(-c*e),p=(r-c)*(e*e);return u*p});const s=5/e,l=K$e(o,a,s);if(e=e*1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:i*2*Math.sqrt(n*c),duration:e}}}const G$e=12;function K$e(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function Z$e(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!j$(e,X$e)&&j$(e,Y$e)){const r=q$e(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function K8(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:o}=e,a=AY.__rest(e,["from","to","restSpeed","restDelta"]);const i={done:!1,value:t};let{stiffness:s,damping:l,mass:c,velocity:u,duration:p,isResolvedFromDuration:h}=Z$e(a),g=I$,x=I$;function y(){const b=u?-(u/1e3):0,m=r-t,f=l/(2*Math.sqrt(s*c)),v=Math.sqrt(s/c)/1e3;if(o===void 0&&(o=Math.min(Math.abs(r-t)/100,.4)),f<1){const d=cR(v,f);g=w=>{const _=Math.exp(-f*v*w);return r-_*((b+f*v*m)/d*Math.sin(d*w)+m*Math.cos(d*w))},x=w=>{const _=Math.exp(-f*v*w);return f*v*_*(Math.sin(d*w)*(b+f*v*m)/d+m*Math.cos(d*w))-_*(Math.cos(d*w)*(b+f*v*m)-d*m*Math.sin(d*w))}}else if(f===1)g=d=>r-Math.exp(-v*d)*(m+(b+v*m)*d);else{const d=v*Math.sqrt(f*f-1);g=w=>{const _=Math.exp(-f*v*w),E=Math.min(d*w,300);return r-_*((b+f*v*m)*Math.sinh(E)+d*m*Math.cosh(E))/d}}}return y(),{next:b=>{const m=g(b);if(h)i.done=b>=p;else{const f=x(b)*1e3,v=Math.abs(f)<=n,d=Math.abs(r-m)<=o;i.done=v&&d}return i.value=i.done?r:m,i},flipTarget:()=>{u=-u,[t,r]=[r,t],y()}}}K8.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const I$=e=>0,CP=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Y8=(e,t,r)=>-r*e+r*t+e;function RC(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function L$({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,a=0,i=0;if(!t)o=a=i=r;else{const s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=RC(l,s,e+1/3),a=RC(l,s,e),i=RC(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(i*255),alpha:n}}const Q$e=(e,t,r)=>{const n=e*e,o=t*t;return Math.sqrt(Math.max(0,r*(o-n)+n))},J$e=[ga.hex,ga.rgba,ga.hsla],$$=e=>J$e.find(t=>t.test(e)),N$=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,OP=(e,t)=>{let r=$$(e),n=$$(t);Ud.invariant(!!r,N$(e)),Ud.invariant(!!n,N$(t));let o=r.parse(e),a=n.parse(t);r===ga.hsla&&(o=L$(o),r=ga.rgba),n===ga.hsla&&(a=L$(a),n=ga.rgba);const i=Object.assign({},o);return s=>{for(const l in i)l!=="alpha"&&(i[l]=Q$e(o[l],a[l],s));return i.alpha=Y8(o.alpha,a.alpha,s),r.transform(i)}},eNe={x:0,y:0,z:0},uR=e=>typeof e=="number",tNe=(e,t)=>r=>t(e(r)),kP=(...e)=>e.reduce(tNe);function jY(e,t){return uR(e)?r=>Y8(e,t,r):ga.color.test(e)?OP(e,t):RP(e,t)}const IY=(e,t)=>{const r=[...e],n=r.length,o=e.map((a,i)=>jY(a,t[i]));return a=>{for(let i=0;i{const r=Object.assign(Object.assign({},e),t),n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=jY(e[o],t[o]));return o=>{for(const a in n)r[a]=n[a](o);return r}};function D$(e){const t=ga.complex.parse(e),r=t.length;let n=0,o=0,a=0;for(let i=0;i{const r=ga.complex.createTransformer(t),n=D$(e),o=D$(t);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&n.numNumbers>=o.numNumbers?kP(IY(n.parsed,o.parsed),r):(Ud.warning(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),i=>`${i>0?t:e}`)},nNe=(e,t)=>r=>Y8(e,t,r);function oNe(e){if(typeof e=="number")return nNe;if(typeof e=="string")return ga.color.test(e)?OP:RP;if(Array.isArray(e))return IY;if(typeof e=="object")return rNe}function aNe(e,t,r){const n=[],o=r||oNe(e[0]),a=e.length-1;for(let i=0;ir(CP(e,t,n))}function sNe(e,t){const r=e.length,n=r-1;return o=>{let a=0,i=!1;if(o<=e[0]?i=!0:o>=e[n]&&(a=n-1,i=!0),!i){let l=1;for(;lo||l===n);l++);a=l-1}const s=CP(e[a],e[a+1],o);return t[a](s)}}function SP(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const a=e.length;Ud.invariant(a===t.length,"Both input and output ranges must be the same length"),Ud.invariant(!n||!Array.isArray(n)||n.length===a-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=aNe(t,n,o),s=a===2?iNe(e,i):sNe(e,i);return r?l=>s(r1(e[0],e[a-1],l)):s}const U1=e=>t=>1-e(1-t),X8=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,LY=e=>t=>Math.pow(t,e),TP=e=>t=>t*t*((e+1)*t-e),$Y=e=>{const t=TP(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},NY=1.525,lNe=4/11,cNe=8/11,uNe=9/10,DY=e=>e,PP=LY(2),dNe=U1(PP),FY=X8(PP),zY=e=>1-Math.sin(Math.acos(e)),BY=U1(zY),fNe=X8(BY),MP=TP(NY),hNe=U1(MP),pNe=X8(MP),mNe=$Y(NY),gNe=4356/361,vNe=35442/1805,bNe=16061/1805,Nx=e=>{if(e===1||e===0)return e;const t=e*e;return ee<.5?.5*(1-Nx(1-e*2)):.5*Nx(e*2-1)+.5;function xNe(e,t){return e.map(()=>t||FY).splice(0,e.length-1)}function _Ne(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function ENe(e,t){return e.map(r=>r*t)}function hp({from:e=0,to:t=1,ease:r,offset:n,duration:o=300}){const a={done:!1,value:e},i=Array.isArray(t)?t:[e,t],s=ENe(n&&n.length===i.length?n:_Ne(i),o);function l(){return SP(s,i,{ease:Array.isArray(r)?r:xNe(i,r)})}let c=l();return{next:u=>(a.value=c(u),a.done=u>=o,a),flipTarget:()=>{i.reverse(),c=l()}}}function VY({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:a}){const i={done:!1,value:t};let s=r*e;const l=t+s,c=a===void 0?l:a(l);return c!==l&&(s=c-t),{next:u=>{const p=-s*Math.exp(-u/n);return i.done=!(p>o||p<-o),i.value=i.done?c:c+p,i},flipTarget:()=>{}}}const F$={keyframes:hp,spring:K8,decay:VY};function CNe(e){if(Array.isArray(e.to))return hp;if(F$[e.type])return F$[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?hp:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?K8:hp}function HY(e,t,r=0){return e-t-r}function ONe(e,t,r=0,n=!0){return n?HY(t+-e,t,r):t-(e-t)+r}function kNe(e,t,r,n){return n?e>=t+r:e<=-r}const RNe=e=>{const t=({delta:r})=>e(r);return{start:()=>V$e.default.update(t,!0),stop:()=>G8.cancelSync.update(t)}};function UY(e){var t,r,{from:n,autoplay:o=!0,driver:a=RNe,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:p,onComplete:h,onRepeat:g,onUpdate:x}=e,y=AY.__rest(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:b}=y,m,f=0,v=y.duration,d,w=!1,_=!0,E;const k=CNe(y);!((r=(t=k).needsInterpolation)===null||r===void 0)&&r.call(t,n,b)&&(E=SP([0,100],[n,b],{clamp:!1}),n=0,b=100);const S=k(Object.assign(Object.assign({},y),{from:n,to:b}));function R(){f++,l==="reverse"?(_=f%2===0,i=ONe(i,v,c,_)):(i=HY(i,v,c),l==="mirror"&&S.flipTarget()),w=!1,g&&g()}function T(){m.stop(),h&&h()}function P(L){if(_||(L=-L),i+=L,!w){const D=S.next(Math.max(0,i));d=D.value,E&&(d=E(d)),w=_?D.done:i<=0}x==null||x(d),w&&(f===0&&(v??(v=i)),f{p==null||p(),m.stop()}}}function WY(e,t){return t?e*(1e3/t):0}function SNe({from:e=0,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:a=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:p,onComplete:h,onStop:g}){let x;function y(v){return r!==void 0&&vn}function b(v){return r===void 0?n:n===void 0||Math.abs(r-v){var w;p==null||p(d),(w=v.onUpdate)===null||w===void 0||w.call(v,d)},onComplete:h,onStop:g}))}function f(v){m(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:l},v))}if(y(e))f({from:e,velocity:t,to:b(e)});else{let v=o*t+e;typeof c<"u"&&(v=c(v));const d=b(v),w=d===r?-1:1;let _,E;const k=S=>{_=E,E=S,t=WY(S-_,G8.getFrameData().delta),(w===1&&S>d||w===-1&&Sx==null?void 0:x.stop()}}const qY=e=>e*180/Math.PI,TNe=(e,t=eNe)=>qY(Math.atan2(t.y-e.y,t.x-e.x)),PNe=(e,t)=>{let r=!0;return t===void 0&&(t=e,r=!1),n=>r?n-e+t:(e=n,r=!0,t)},MNe=e=>e,AP=(e=MNe)=>(t,r,n)=>{const o=r-n,a=-(0-t+1)*(0-e(Math.abs(o)));return o<=0?r+a:r-a},ANe=AP(),jNe=AP(Math.sqrt),GY=e=>e*Math.PI/180,Dx=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),dR=e=>Dx(e)&&e.hasOwnProperty("z"),nm=(e,t)=>Math.abs(e-t);function INe(e,t){if(uR(e)&&uR(t))return nm(e,t);if(Dx(e)&&Dx(t)){const r=nm(e.x,t.x),n=nm(e.y,t.y),o=dR(e)&&dR(t)?nm(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(o,2))}}const LNe=(e,t,r)=>(t=GY(t),{x:r*Math.cos(t)+e.x,y:r*Math.sin(t)+e.y}),KY=(e,t=2)=>(t=Math.pow(10,t),Math.round(e*t)/t),YY=(e,t,r,n=0)=>KY(e+r*(t-e)/Math.max(n,r)),$Ne=(e=50)=>{let t=0,r=0;return n=>{const o=G8.getFrameData().timestamp,a=o!==r?o-r:0,i=a?YY(t,n,a,e):t;return r=o,t=i,i}},NNe=e=>{if(typeof e=="number")return t=>Math.round(t/e)*e;{let t=0;const r=e.length;return n=>{let o=Math.abs(e[0]-n);for(t=1;to)return e[t-1];if(t===r-1)return a;o=i}}}};function DNe(e,t){return e/(1e3/t)}const FNe=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e},XY=(e,t)=>1-3*t+3*e,ZY=(e,t)=>3*t-6*e,QY=e=>3*e,Fx=(e,t,r)=>((XY(t,r)*e+ZY(t,r))*e+QY(t))*e,JY=(e,t,r)=>3*XY(t,r)*e*e+2*ZY(t,r)*e+QY(t),zNe=1e-7,BNe=10;function VNe(e,t,r,n,o){let a,i,s=0;do i=t+(r-t)/2,a=Fx(i,n,o)-e,a>0?r=i:t=i;while(Math.abs(a)>zNe&&++s=UNe?WNe(i,p,e,r):h===0?p:VNe(i,s,s+om,e,r)}return i=>i===0||i===1?i:Fx(a(i),t,n)}const GNe=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return r1(0,1,o/e)};it.angle=TNe;it.animate=UY;it.anticipate=mNe;it.applyOffset=PNe;it.attract=ANe;it.attractExpo=jNe;it.backIn=MP;it.backInOut=pNe;it.backOut=hNe;it.bounceIn=yNe;it.bounceInOut=wNe;it.bounceOut=Nx;it.circIn=zY;it.circInOut=fNe;it.circOut=BY;it.clamp=r1;it.createAnticipate=$Y;it.createAttractor=AP;it.createBackIn=TP;it.createExpoIn=LY;it.cubicBezier=qNe;it.decay=VY;it.degreesToRadians=GY;it.distance=INe;it.easeIn=PP;it.easeInOut=FY;it.easeOut=dNe;it.inertia=SNe;it.interpolate=SP;it.isPoint=Dx;it.isPoint3D=dR;it.keyframes=hp;it.linear=DY;it.mirrorEasing=X8;it.mix=Y8;it.mixColor=OP;it.mixComplex=RP;it.pipe=kP;it.pointFromVector=LNe;it.progress=CP;it.radiansToDegrees=qY;it.reverseEasing=U1;it.smooth=$Ne;it.smoothFrame=YY;it.snap=NNe;it.spring=K8;it.steps=GNe;it.toDecimal=KY;it.velocityPerFrame=DNe;it.velocityPerSecond=WY;it.wrap=FNe;let KNe=class{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}};const SC=new WeakMap;function jP(e){return SC.has(e)||SC.set(e,{transforms:[],values:new Map}),SC.get(e)}function YNe(e,t){return e.has(t)||e.set(t,new KNe),e.get(t)}function eX(e,t){e.indexOf(t)===-1&&e.push(t)}function tX(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const rX=(e,t,r)=>Math.min(Math.max(r,e),t),Gn={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},Ki=e=>typeof e=="number",n1=e=>Array.isArray(e)&&!Ki(e[0]),XNe=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e};function nX(e,t){return n1(e)?e[XNe(0,e.length,t)]:e}const IP=(e,t,r)=>-r*e+r*t+e,LP=()=>{},$i=e=>e,Z8=(e,t,r)=>t-e===0?1:(r-e)/(t-e);function $P(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=Z8(0,t,n);e.push(IP(r,1,o))}}function NP(e){const t=[0];return $P(t,e-1),t}function oX(e,t=NP(e.length),r=$i){const n=e.length,o=n-t.length;return o>0&&$P(t,o),a=>{let i=0;for(;iArray.isArray(e)&&Ki(e[0]),zx=e=>typeof e=="object"&&!!e.createAnimation,ZNe=e=>typeof e=="function",DP=e=>typeof e=="string",_c={ms:e=>e*1e3,s:e=>e/1e3};function iX(e,t){return t?e*(1e3/t):0}const QNe=["","X","Y","Z"],JNe=["translate","scale","rotate","skew"],Wd={x:"translateX",y:"translateY",z:"translateZ"},z$={syntax:"",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},eDe={translate:{syntax:"",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:z$,scale:{syntax:"",initialValue:1,toDefaultUnit:$i},skew:z$},qd=new Map,Q8=e=>`--motion-${e}`,Bx=["x","y","z"];JNe.forEach(e=>{QNe.forEach(t=>{Bx.push(e+t),qd.set(Q8(e+t),eDe[e])})});const tDe=(e,t)=>Bx.indexOf(e)-Bx.indexOf(t),rDe=new Set(Bx),J8=e=>rDe.has(e),nDe=(e,t)=>{Wd[t]&&(t=Wd[t]);const{transforms:r}=jP(e);eX(r,t),e.style.transform=sX(r)},sX=e=>e.sort(tDe).reduce(oDe,"").trim(),oDe=(e,t)=>`${e} ${t}(var(${Q8(t)}))`,fR=e=>e.startsWith("--"),B$=new Set;function aDe(e){if(!B$.has(e)){B$.add(e);try{const{syntax:t,initialValue:r}=qd.has(e)?qd.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:r})}catch{}}}const lX=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,iDe=1e-7,sDe=12;function lDe(e,t,r,n,o){let a,i,s=0;do i=t+(r-t)/2,a=lX(i,n,o)-e,a>0?r=i:t=i;while(Math.abs(a)>iDe&&++slDe(a,0,1,e,r);return a=>a===0||a===1?a:lX(o(a),t,n)}const cDe=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return rX(0,1,o/e)},V$={ease:Gh(.25,.1,.25,1),"ease-in":Gh(.42,0,1,1),"ease-in-out":Gh(.42,0,.58,1),"ease-out":Gh(0,0,.58,1)},uDe=/\((.*?)\)/;function hR(e){if(ZNe(e))return e;if(aX(e))return Gh(...e);if(V$[e])return V$[e];if(e.startsWith("steps")){const t=uDe.exec(e);if(t){const r=t[1].split(",");return cDe(parseFloat(r[0]),r[1].trim())}}return $i}let dDe=class{constructor(t,r=[0,1],{easing:n,duration:o=Gn.duration,delay:a=Gn.delay,endDelay:i=Gn.endDelay,repeat:s=Gn.repeat,offset:l,direction:c="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=$i,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((p,h)=>{this.resolve=p,this.reject=h}),n=n||Gn.easing,zx(n)){const p=n.createAnimation(r);n=p.easing,r=p.keyframes||r,o=p.duration||o}this.repeat=s,this.easing=n1(n)?$i:hR(n),this.updateDuration(o);const u=oX(r,l,n1(n)?n.map(hR):$i);this.tick=p=>{var h;a=a;let g=0;this.pauseTime!==void 0?g=this.pauseTime:g=(p-this.startTime)*this.rate,this.t=g,g/=1e3,g=Math.max(g-a,0),this.playState==="finished"&&this.pauseTime===void 0&&(g=this.totalDuration);const x=g/this.duration;let y=Math.floor(x),b=x%1;!b&&x>=1&&(b=1),b===1&&y--;const m=y%2;(c==="reverse"||c==="alternate"&&m||c==="alternate-reverse"&&!m)&&(b=1-b);const f=g>=this.totalDuration?1:Math.min(b,1),v=u(this.easing(f));t(v),this.pauseTime===void 0&&(this.playState==="finished"||g>=this.totalDuration+i)?(this.playState="finished",(h=this.resolve)===null||h===void 0||h.call(this,v)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}};const H$=e=>aX(e)?fDe(e):e,fDe=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,U$=e=>document.createElement("div").animate(e,{duration:.001}),W$={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{U$({opacity:[1]})}catch{return!1}return!0},finished:()=>!!U$({opacity:[0,1]}).finished},TC={},k6={};for(const e in W$)k6[e]=()=>(TC[e]===void 0&&(TC[e]=W$[e]()),TC[e]);function hDe(e,t){for(let r=0;rArray.isArray(e)?e:[e];function Vx(e){return Wd[e]&&(e=Wd[e]),J8(e)?Q8(e):e}const ed={get:(e,t)=>{t=Vx(t);let r=fR(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!r&&r!==0){const n=qd.get(t);n&&(r=n.initialValue)}return r},set:(e,t,r)=>{t=Vx(t),fR(t)?e.style.setProperty(t,r):e.style[t]=r}};function uX(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function pDe(){return window.__MOTION_DEV_TOOLS_RECORD}function e9(e,t,r,n={}){const o=pDe(),a=n.record!==!1&&o;let i,{duration:s=Gn.duration,delay:l=Gn.delay,endDelay:c=Gn.endDelay,repeat:u=Gn.repeat,easing:p=Gn.easing,direction:h,offset:g,allowWebkitAcceleration:x=!1}=n;const y=jP(e);let b=k6.waapi();const m=J8(t);m&&nDe(e,t);const f=Vx(t),v=YNe(y.values,f),d=qd.get(f);return uX(v.animation,!(zx(p)&&v.generator)&&n.record!==!1),()=>{const w=()=>{var E,k;return(k=(E=ed.get(e,f))!==null&&E!==void 0?E:d==null?void 0:d.initialValue)!==null&&k!==void 0?k:0};let _=hDe(cX(r),w);if(zx(p)){const E=p.createAnimation(_,w,m,f,v);p=E.easing,E.keyframes!==void 0&&(_=E.keyframes),E.duration!==void 0&&(s=E.duration)}if(fR(f)&&(k6.cssRegisterProperty()?aDe(f):b=!1),b){d&&(_=_.map(S=>Ki(S)?d.toDefaultUnit(S):S)),_.length===1&&(!k6.partialKeyframes()||a)&&_.unshift(w());const E={delay:_c.ms(l),duration:_c.ms(s),endDelay:_c.ms(c),easing:n1(p)?void 0:H$(p),direction:h,iterations:u+1,fill:"both"};i=e.animate({[f]:_,offset:g,easing:n1(p)?p.map(H$):void 0},E),i.finished||(i.finished=new Promise((S,R)=>{i.onfinish=S,i.oncancel=R}));const k=_[_.length-1];i.finished.then(()=>{ed.set(e,f,k),i.cancel()}).catch(LP),x||(i.playbackRate=1.000001)}else if(m){_=_.map(k=>typeof k=="string"?parseFloat(k):k),_.length===1&&_.unshift(parseFloat(w()));const E=k=>{d&&(k=d.toDefaultUnit(k)),ed.set(e,f,k)};i=new dDe(E,_,Object.assign(Object.assign({},n),{duration:s,easing:p}))}else{const E=_[_.length-1];ed.set(e,f,d&&Ki(E)?d.toDefaultUnit(E):E)}return a&&o(e,t,_,{duration:s,delay:l,easing:p,repeat:u,offset:g},"motion-one"),v.setAnimation(i),i}}const FP=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function t9(e,t){var r;return typeof e=="string"?t?((r=t[e])!==null&&r!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}const mDe=e=>e(),zP=(e,t,r=Gn.duration)=>new Proxy({animations:e.map(mDe).filter(Boolean),duration:r,options:t},vDe),gDe=e=>e.animations[0],vDe={get:(e,t)=>{const r=gDe(e);switch(t){case"duration":return e.duration;case"currentTime":return _c.s((r==null?void 0:r[t])||0);case"playbackRate":case"playState":return r==null?void 0:r[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(bDe)).catch(LP)),e.finished;case"stop":return()=>{e.animations.forEach(n=>uX(n))};case"forEachNative":return n=>{e.animations.forEach(o=>n(o,e))};default:return typeof(r==null?void 0:r[t])>"u"?void 0:()=>e.animations.forEach(n=>n[t]())}},set:(e,t,r)=>{switch(t){case"currentTime":r=_c.ms(r);case"currentTime":case"playbackRate":for(let n=0;ne.finished;function yDe(e=.1,{start:t=0,from:r=0,easing:n}={}){return(o,a)=>{const i=Ki(r)?r:wDe(r,a),s=Math.abs(i-o);let l=e*s;if(n){const c=a*e;l=hR(n)(l/c)*c}return t+l}}function wDe(e,t){if(e==="first")return 0;{const r=t-1;return e==="last"?r:r/2}}function dX(e,t,r){return typeof e=="function"?e(t,r):e}function xDe(e,t,r={}){e=t9(e);const n=e.length,o=[];for(let a=0;at&&o.ate9(...a)).filter(Boolean);return zP(o,t,(r=n[0])===null||r===void 0?void 0:r[3].duration)}function kDe(e,t={}){var{defaultOptions:r={}}=t,n=r9(t,["defaultOptions"]);const o=[],a=new Map,i={},s=new Map;let l=0,c=0,u=0;for(let p=0;p"0",V);T=q.easing,q.keyframes!==void 0&&(k=q.keyframes),q.duration!==void 0&&(R=q.duration)}const P=dX(y.delay,v,f)||0,j=c+P,L=j+R;let{offset:D=NP(k.length)}=S;D.length===1&&D[0]===0&&(D[1]=1);const B=length-k.length;B>0&&$P(D,B),k.length===1&&k.unshift(null),EDe(E,k,T,D,j,L),b=Math.max(P+R,b),u=Math.max(L,u)}}l=c,c+=b}return a.forEach((p,h)=>{for(const g in p){const x=p[g];x.sort(CDe);const y=[],b=[],m=[];for(let f=0;ft/(2*Math.sqrt(e*r));function MDe(e,t,r){return e=t||e>t&&r<=t}const fX=({stiffness:e=bd.stiffness,damping:t=bd.damping,mass:r=bd.mass,from:n=0,to:o=1,velocity:a=0,restSpeed:i=2,restDistance:s=.5}={})=>{a=a?_c.s(a):0;const l={done:!1,hasReachedTarget:!1,current:n,target:o},c=o-n,u=Math.sqrt(e/r)/1e3,p=PDe(e,t,r);let h;if(p<1){const g=u*Math.sqrt(1-p*p);h=x=>o-Math.exp(-p*u*x)*((-a+p*u*c)/g*Math.sin(g*x)+c*Math.cos(g*x))}else h=g=>o-Math.exp(-u*g)*(c+(-a+u*c)*g);return g=>{l.current=h(g);const x=g===0?a:BP(h,g,l.current),y=Math.abs(x)<=i,b=Math.abs(o-l.current)<=s;return l.done=y&&b,l.hasReachedTarget=MDe(n,o,l.current),l}},ADe=({from:e=0,velocity:t=0,power:r=.8,decay:n=.325,bounceDamping:o,bounceStiffness:a,changeTarget:i,min:s,max:l,restDistance:c=.5,restSpeed:u})=>{n=_c.ms(n);const p={hasReachedTarget:!1,done:!1,current:e,target:e},h=E=>s!==void 0&&El,g=E=>s===void 0?l:l===void 0||Math.abs(s-E)-x*Math.exp(-E/n),f=E=>b+m(E),v=E=>{const k=m(E),S=f(E);p.done=Math.abs(k)<=c,p.current=p.done?b:S};let d,w;const _=E=>{h(p.current)&&(d=E,w=fX({from:p.current,to:g(p.current),velocity:BP(f,E,p.current),damping:o,stiffness:a,restDistance:c,restSpeed:u}))};return _(0),E=>{let k=!1;return!w&&d===void 0&&(k=!0,v(E),_(E)),d!==void 0&&E>d?(p.hasReachedTarget=!0,w(E-d)):(p.hasReachedTarget=!1,!k&&v(E),p)}},PC=10,jDe=1e4;function IDe(e,t=$i){let r,n=PC,o=e(0);const a=[t(o.current)];for(;!o.done&&n{const n=new Map,o=(i=0,s=100,l=0,c=!1)=>{const u=`${i}-${s}-${l}-${c}`;return n.has(u)||n.set(u,e(Object.assign({from:i,to:s,velocity:l,restSpeed:c?.05:2,restDistance:c?.01:.5},r))),n.get(u)},a=i=>(t.has(i)||t.set(i,IDe(i)),t.get(i));return{createAnimation:(i,s,l,c,u)=>{var p,h;let g;const x=i.length;if(l&&x<=2&&i.every(LDe)){const b=i[x-1],m=x===1?null:i[0];let f=0,v=0;const d=u==null?void 0:u.generator;if(d){const{animation:E,generatorStartTime:k}=u,S=(E==null?void 0:E.startTime)||k||0,R=(E==null?void 0:E.currentTime)||performance.now()-S,T=d(R).current;v=(p=m)!==null&&p!==void 0?p:T,(x===1||x===2&&i[0]===null)&&(f=BP(P=>d(P).current,R,T))}else v=(h=m)!==null&&h!==void 0?h:parseFloat(s());const w=o(v,b,f,c==null?void 0:c.includes("scale")),_=a(w);g=Object.assign(Object.assign({},_),{easing:"linear"}),u&&(u.generator=w,u.generatorStartTime=performance.now())}else g={easing:"ease",duration:a(o(0,100)).overshootDuration};return g}}}}const LDe=e=>typeof e!="string",$De=hX(fX),NDe=hX(ADe),DDe={any:0,all:1};function pX(e,t,{root:r,margin:n,amount:o="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};const a=t9(e),i=new WeakMap,s=c=>{c.forEach(u=>{const p=i.get(u.target);if(u.isIntersecting!==!!p)if(u.isIntersecting){const h=t(u);typeof h=="function"?i.set(u.target,h):l.unobserve(u.target)}else p&&(p(u),i.delete(u.target))})},l=new IntersectionObserver(s,{root:r,rootMargin:n,threshold:typeof o=="number"?o:DDe[o]});return a.forEach(c=>l.observe(c)),()=>l.disconnect()}const R6=new WeakMap;let ws;function FDe(e,t){if(t){const{inlineSize:r,blockSize:n}=t[0];return{width:r,height:n}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function zDe({target:e,contentRect:t,borderBoxSize:r}){var n;(n=R6.get(e))===null||n===void 0||n.forEach(o=>{o({target:e,contentSize:t,get size(){return FDe(e,r)}})})}function BDe(e){e.forEach(zDe)}function VDe(){typeof ResizeObserver>"u"||(ws=new ResizeObserver(BDe))}function HDe(e,t){ws||VDe();const r=t9(e);return r.forEach(n=>{let o=R6.get(n);o||(o=new Set,R6.set(n,o)),o.add(t),ws==null||ws.observe(n)}),()=>{r.forEach(n=>{const o=R6.get(n);o==null||o.delete(t),o!=null&&o.size||ws==null||ws.unobserve(n)})}}const S6=new Set;let pp;function UDe(){pp=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};S6.forEach(r=>r(t))},window.addEventListener("resize",pp)}function WDe(e){return S6.add(e),pp||UDe(),()=>{S6.delete(e),!S6.size&&pp&&(pp=void 0)}}function mX(e,t){return typeof e=="function"?WDe(e):HDe(e,t)}const qDe=50,G$=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),GDe=()=>({time:0,x:G$(),y:G$()}),KDe={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function K$(e,t,r,n){const o=r[t],{length:a,position:i}=KDe[t],s=o.current,l=r.time;o.current=e["scroll"+i],o.scrollLength=e["scroll"+a]-e["client"+a],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=Z8(0,o.scrollLength,o.current);const c=n-l;o.velocity=c>qDe?0:iX(o.current-s,c)}function YDe(e,t,r){K$(e,"x",t,r),K$(e,"y",t,r),t.time=r}function XDe(e,t){let r={x:0,y:0},n=e;for(;n&&n!==t;)if(n instanceof HTMLElement)r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if(n instanceof SVGGraphicsElement&&"getBBox"in n){const{top:o,left:a}=n.getBBox();for(r.x+=a,r.y+=o;n&&n.tagName!=="svg";)n=n.parentNode}return r}const gX={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},pR={start:0,center:.5,end:1};function Y$(e,t,r=0){let n=0;if(pR[e]!==void 0&&(e=pR[e]),DP(e)){const o=parseFloat(e);e.endsWith("px")?n=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?n=o/100*document.documentElement.clientWidth:e.endsWith("vh")?n=o/100*document.documentElement.clientHeight:e=o}return Ki(e)&&(n=t*e),r+n}const ZDe=[0,0];function QDe(e,t,r,n){let o=Array.isArray(e)?e:ZDe,a=0,i=0;return Ki(e)?o=[e,e]:DP(e)&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,pR[e]?e:"0"]),a=Y$(o[0],r,n),i=Y$(o[1],t),a-i}const JDe={x:0,y:0};function eFe(e,t,r){let{offset:n=gX.All}=r;const{target:o=e,axis:a="y"}=r,i=a==="y"?"height":"width",s=o!==e?XDe(o,e):JDe,l=o===e?{width:e.scrollWidth,height:e.scrollHeight}:{width:o.clientWidth,height:o.clientHeight},c={width:e.clientWidth,height:e.clientHeight};t[a].offset.length=0;let u=!t[a].interpolate;const p=n.length;for(let h=0;htFe(e,n.target,r),update:a=>{YDe(e,r,a),(n.offset||n.target)&&eFe(e,r,n)},notify:typeof t=="function"?()=>t(r):nFe(t,r[o])}}function nFe(e,t){return e.pause(),e.forEachNative((r,{easing:n})=>{var o,a;if(r.updateDuration)n||(r.easing=$i),r.updateDuration(1);else{const i={duration:1e3};n||(i.easing="linear"),(a=(o=r.effect)===null||o===void 0?void 0:o.updateTiming)===null||a===void 0||a.call(o,i)}}),()=>{e.currentTime=t.progress}}const f0=new WeakMap,X$=new WeakMap,MC=new WeakMap,Z$=e=>e===document.documentElement?window:e;function oFe(e,t={}){var{container:r=document.documentElement}=t,n=r9(t,["container"]);let o=MC.get(r);o||(o=new Set,MC.set(r,o));const a=GDe(),i=rFe(r,e,a,n);if(o.add(i),!f0.has(r)){const c=()=>{const p=performance.now();for(const h of o)h.measure();for(const h of o)h.update(p);for(const h of o)h.notify()};f0.set(r,c);const u=Z$(r);window.addEventListener("resize",c,{passive:!0}),r!==document.documentElement&&X$.set(r,mX(r,c)),u.addEventListener("scroll",c,{passive:!0})}const s=f0.get(r),l=requestAnimationFrame(s);return()=>{var c;typeof e!="function"&&e.stop(),cancelAnimationFrame(l);const u=MC.get(r);if(!u||(u.delete(i),u.size))return;const p=f0.get(r);f0.delete(r),p&&(Z$(r).removeEventListener("scroll",p),(c=X$.get(r))===null||c===void 0||c(),window.removeEventListener("resize",p))}}function aFe(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!iFe(e,t):e!==t}function iFe(e,t){const r=t.length;if(r!==e.length)return!1;for(let n=0;ne.getDepth()-t.getDepth(),dFe=e=>e.animateUpdates(),J$=e=>e.next(),eN=(e,t)=>new CustomEvent(e,{detail:{target:t}});function mR(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:r}}))}function tN(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:r}}))}const fFe={isActive:e=>!!e.inView,subscribe:(e,{enable:t,disable:r},{inViewOptions:n={}})=>{const{once:o}=n,a=r9(n,["once"]);return pX(e,i=>{if(t(),tN(e,"viewenter",i),!o)return s=>{r(),tN(e,"viewleave",s)}},a)}},rN=(e,t,r)=>n=>{n.pointerType&&n.pointerType!=="mouse"||(r(),mR(e,t,n))},hFe={isActive:e=>!!e.hover,subscribe:(e,{enable:t,disable:r})=>{const n=rN(e,"hoverstart",t),o=rN(e,"hoverend",r);return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",o),()=>{e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",o)}}},pFe={isActive:e=>!!e.press,subscribe:(e,{enable:t,disable:r})=>{const n=a=>{r(),mR(e,"pressend",a),window.removeEventListener("pointerup",n)},o=a=>{t(),mR(e,"pressstart",a),window.addEventListener("pointerup",n)};return e.addEventListener("pointerdown",o),()=>{e.removeEventListener("pointerdown",o),window.removeEventListener("pointerup",n)}}},T6={inView:fFe,hover:hFe,press:pFe},nN=["initial","animate",...Object.keys(T6),"exit"],gR=new WeakMap;function mFe(e={},t){let r,n=t?t.getDepth()+1:0;const o={initial:!0,animate:!0},a={},i={};for(const y of nN)i[y]=typeof e[y]=="string"?e[y]:t==null?void 0:t.getContext()[y];const s=e.initial===!1?"animate":"initial";let l=Q$(e[s]||i[s],e.variants)||{},c=r9(l,["transition"]);const u=Object.assign({},c);function*p(){var y,b;const m=c;c={};const f={};for(const E of nN){if(!o[E])continue;const k=Q$(e[E]);if(k)for(const S in k)S!=="transition"&&(c[S]=k[S],f[S]=FP((b=(y=k.transition)!==null&&y!==void 0?y:e.transition)!==null&&b!==void 0?b:{},S))}const v=new Set([...Object.keys(c),...Object.keys(m)]),d=[];v.forEach(E=>{var k;c[E]===void 0&&(c[E]=u[E]),aFe(m[E],c[E])&&((k=u[E])!==null&&k!==void 0||(u[E]=ed.get(r,E)),d.push(e9(r,E,c[E],f[E])))}),yield;const w=d.map(E=>E()).filter(Boolean);if(!w.length)return;const _=c;r.dispatchEvent(eN("motionstart",_)),Promise.all(w.map(E=>E.finished)).then(()=>{r.dispatchEvent(eN("motioncomplete",_))}).catch(LP)}const h=(y,b)=>()=>{o[y]=b,AC(x)},g=()=>{for(const y in T6){const b=T6[y].isActive(e),m=a[y];b&&!m?a[y]=T6[y].subscribe(r,{enable:h(y,!0),disable:h(y,!1)},e):!b&&m&&(m(),delete a[y])}},x={update:y=>{r&&(e=y,g(),AC(x))},setActive:(y,b)=>{r&&(o[y]=b,AC(x))},animateUpdates:p,getDepth:()=>n,getTarget:()=>c,getOptions:()=>e,getContext:()=>i,mount:y=>(r=y,gR.set(r,x),g(),()=>{gR.delete(r),cFe(x);for(const b in a)a[b]()}),isMounted:()=>!!r};return x}function vX(e){const t={},r=[];for(let n in e){const o=e[n];J8(n)&&(Wd[n]&&(n=Wd[n]),r.push(n),n=Q8(n));let a=Array.isArray(o)?o[0]:o;const i=qd.get(n);i&&(a=Ki(o)?i.toDefaultUnit(o):o),t[n]=a}return r.length&&(t.transform=sX(r)),t}const gFe=e=>`-${e.toLowerCase()}`,vFe=e=>e.replace(/[A-Z]/g,gFe);function bFe(e={}){const t=vX(e);let r="";for(const n in t)r+=n.startsWith("--")?n:vFe(n),r+=`: ${t[n]}; `;return r}const yFe=Object.freeze(Object.defineProperty({__proto__:null,ScrollOffset:gX,animate:xDe,animateStyle:e9,createMotionState:mFe,createStyleString:bFe,createStyles:vX,getAnimationData:jP,getStyleName:Vx,glide:NDe,inView:pX,mountedStates:gR,resize:mX,scroll:oFe,spring:$De,stagger:yDe,style:ed,timeline:ODe,withControls:zP},Symbol.toStringTag,{value:"Module"})),wFe=lf(yFe);function xFe(e){var t={};return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var _Fe=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,EFe=xFe(function(e){return _Fe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const CFe=Object.freeze(Object.defineProperty({__proto__:null,default:EFe},Symbol.toStringTag,{value:"Module"})),OFe=lf(CFe);(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=o$e,r=O,n=QK,o=qr,a=it,i=Qc,s=wFe;function l(C){return C&&typeof C=="object"&&"default"in C?C:{default:C}}function c(C){if(C&&C.__esModule)return C;var A=Object.create(null);return C&&Object.keys(C).forEach(function(I){if(I!=="default"){var $=Object.getOwnPropertyDescriptor(C,I);Object.defineProperty(A,I,$.get?$:{enumerable:!0,get:function(){return C[I]}})}}),A.default=C,Object.freeze(A)}var u=c(r),p=l(r),h=l(i),g="production",x=typeof process>"u"||process.env===void 0?g:"production",y=function(C){return{isEnabled:function(A){return C.some(function(I){return!!A[I]})}}},b={measureLayout:y(["layout","layoutId","drag"]),animation:y(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:y(["exit"]),drag:y(["drag","dragControls"]),focus:y(["whileFocus"]),hover:y(["whileHover","onHoverStart","onHoverEnd"]),tap:y(["whileTap","onTap","onTapStart","onTapCancel"]),pan:y(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:y(["whileInView","onViewportEnter","onViewportLeave"])};function m(C){for(var A in C)C[A]!==null&&(A==="projectionNodeConstructor"?b.projectionNodeConstructor=C[A]:b[A].Component=C[A])}var f=r.createContext({strict:!1}),v=Object.keys(b),d=v.length;function w(C,A,I){var $=[],H=r.useContext(f);if(!A)return null;x!=="production"&&I&&H.strict&&n.invariant(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var Y=0;Y"u")return A;var I=new Map;return new Proxy(A,{get:function($,H){return I.has(H)||I.set(H,A(H)),I.get(H)}})}var le=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function xe(C){return typeof C!="string"||C.includes("-")?!1:!!(le.indexOf(C)>-1||/[A-Z]/.test(C))}var _e={};function Ee(C){Object.assign(_e,C)}var Be=["","X","Y","Z"],tt=["translate","scale","rotate","skew"],qe=["transformPerspective","x","y","z"];tt.forEach(function(C){return Be.forEach(function(A){return qe.push(C+A)})});function jr(C,A){return qe.indexOf(C)-qe.indexOf(A)}var St=new Set(qe);function Mt(C){return St.has(C)}var Nn=new Set(["originX","originY","originZ"]);function Dn(C){return Nn.has(C)}function ge(C,A){var I=A.layout,$=A.layoutId;return Mt(C)||Dn(C)||(I||$!==void 0)&&(!!_e[C]||C==="opacity")}var ve=function(C){return!!(C!==null&&typeof C=="object"&&C.getVelocity)},Ae={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function He(C,A,I,$){var H=C.transform,Y=C.transformKeys,X=A.enableHardwareAcceleration,K=X===void 0?!0:X,ne=A.allowTransformNone,oe=ne===void 0?!0:ne,ce="";Y.sort(jr);for(var de=!1,fe=Y.length,he=0;he"u"?xae:wae;oe(ne,K.current,A,X)}var yae={some:0,all:1};function wae(C,A,I,$){var H=$.root,Y=$.margin,X=$.amount,K=X===void 0?"some":X,ne=$.once;r.useEffect(function(){if(C){var oe={root:H==null?void 0:H.current,rootMargin:Y,threshold:typeof K=="number"?K:yae[K]},ce=function(de){var fe,he=de.isIntersecting;if(A.isInView!==he&&(A.isInView=he,!(ne&&!he&&A.hasEnteredView))){he&&(A.hasEnteredView=!0),(fe=I.animationState)===null||fe===void 0||fe.setActive(e.AnimationType.InView,he);var pe=I.getProps(),ye=he?pe.onViewportEnter:pe.onViewportLeave;ye==null||ye(de)}};return vae(I.getInstance(),oe,ce)}},[C,H,Y,K])}function xae(C,A,I,$){var H=$.fallback,Y=H===void 0?!0:H;r.useEffect(function(){!C||!Y||(x!=="production"&&bE(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var X;A.hasEnteredView=!0;var K=I.getProps().onViewportEnter;K==null||K(null),(X=I.animationState)===null||X===void 0||X.setActive(e.AnimationType.InView,!0)}))},[C])}var cs=function(C){return function(A){return C(A),null}},gj={inView:cs(bae),tap:cs(hae),focus:cs(Ir),hover:cs(fae)},_ae=0,Eae=function(){return _ae++},vj=function(){return ue(Eae)};function xE(){var C=r.useContext(S);if(C===null)return[!0,null];var A=C.isPresent,I=C.onExitComplete,$=C.register,H=vj();r.useEffect(function(){return $(H)},[]);var Y=function(){return I==null?void 0:I(H)};return!A&&I?[!1,Y]:[!0]}function Cae(){return Oae(r.useContext(S))}function Oae(C){return C===null?!0:C.isPresent}function bj(C,A){if(!Array.isArray(A))return!1;var I=A.length;if(I!==C.length)return!1;for(var $=0;$-1&&C.splice(I,1)}function Dae(C,A,I){var $=t.__read(C),H=$.slice(0),Y=A<0?H.length+A:A;if(Y>=0&&YQe&&Po,ms=Array.isArray(hr)?hr:[hr],Mo=ms.reduce(Y,{});Sn===!1&&(Mo={});var Zf=jt.prevResolvedValues,gu=Zf===void 0?{}:Zf,N5=t.__assign(t.__assign({},gu),Mo),vu=function(dt){ps=!0,Ne.delete(dt),jt.needsAnimating[dt]=!0};for(var Vn in N5){var Vt=Mo[Vn],Ge=gu[Vn];Ve.hasOwnProperty(Vn)||(Vt!==Ge?Nl(Vt)&&Nl(Ge)?!bj(Vt,Ge)||hs?vu(Vn):jt.protectedKeys[Vn]=!0:Vt!==void 0?vu(Vn):Ne.add(Vn):Vt!==void 0&&Ne.has(Vn)?vu(Vn):jt.protectedKeys[Vn]=!0)}jt.prevProp=hr,jt.prevResolvedValues=Mo,jt.isActive&&(Ve=t.__assign(t.__assign({},Ve),Mo)),H&&C.blockInitialAnimation&&(ps=!1),ps&&!ao&&ye.push.apply(ye,t.__spreadArray([],t.__read(ms.map(function(dt){return{animation:dt,options:t.__assign({type:yt},ce)}})),!1))},mt=0;mt=3;if(!(!he&&!pe)){var ye=fe.point,Ne=i.getFrameData().timestamp;H.history.push(t.__assign(t.__assign({},ye),{timestamp:Ne}));var Ve=H.handlers,Qe=Ve.onStart,ht=Ve.onMove;he||(Qe&&Qe(H.lastMoveEvent,fe),H.startEvent=H.lastMoveEvent),ht&&ht(H.lastMoveEvent,fe)}}},this.handlePointerMove=function(fe,he){if(H.lastMoveEvent=fe,H.lastMoveEventInfo=$E(he,H.transformPagePoint),_r(fe)&&fe.buttons===0){H.handlePointerUp(fe,he);return}h.default.update(H.updatePoint,!0)},this.handlePointerUp=function(fe,he){H.end();var pe=H.handlers,ye=pe.onEnd,Ne=pe.onSessionEnd,Ve=NE($E(he,H.transformPagePoint),H.history);H.startEvent&&ye&&ye(fe,Ve),Ne&&Ne(fe,Ve)},!(Pa(A)&&A.touches.length>1)){this.handlers=I,this.transformPagePoint=X;var K=mE(A),ne=$E(K,this.transformPagePoint),oe=ne.point,ce=i.getFrameData().timestamp;this.history=[t.__assign(t.__assign({},oe),{timestamp:ce})];var de=I.onSessionStart;de&&de(A,NE(ne,this.history)),this.removeListeners=a.pipe(Bl(window,"pointermove",this.handlePointerMove),Bl(window,"pointerup",this.handlePointerUp),Bl(window,"pointercancel",this.handlePointerUp))}}return C.prototype.updateHandlers=function(A){this.handlers=A},C.prototype.end=function(){this.removeListeners&&this.removeListeners(),i.cancelSync.update(this.updatePoint)},C}();function $E(C,A){return A?{point:A(C.point)}:C}function Aj(C,A){return{x:C.x-A.x,y:C.y-A.y}}function NE(C,A){var I=C.point;return{point:I,delta:Aj(I,jj(A)),offset:Aj(I,rie(A)),velocity:nie(A,.1)}}function rie(C){return C[0]}function jj(C){return C[C.length-1]}function nie(C,A){if(C.length<2)return{x:0,y:0};for(var I=C.length-1,$=null,H=jj(C);I>=0&&($=C[I],!(H.timestamp-$.timestamp>R5(A)));)I--;if(!$)return{x:0,y:0};var Y=(H.timestamp-$.timestamp)/1e3;if(Y===0)return{x:0,y:0};var X={x:(H.x-$.x)/Y,y:(H.y-$.y)/Y};return X.x===1/0&&(X.x=0),X.y===1/0&&(X.y=0),X}function Ma(C){return C.max-C.min}function Ij(C,A,I){return A===void 0&&(A=0),I===void 0&&(I=.01),a.distance(C,A)H&&(C=I?a.mix(H,C,I.max):Math.min(C,H)),C}function Dj(C,A,I){return{min:A!==void 0?C.min+A:void 0,max:I!==void 0?C.max+I-(C.max-C.min):void 0}}function iie(C,A){var I=A.top,$=A.left,H=A.bottom,Y=A.right;return{x:Dj(C.x,$,Y),y:Dj(C.y,I,H)}}function Fj(C,A){var I,$=A.min-C.min,H=A.max-C.max;return A.max-A.min$?I=a.progress(A.min,A.max-$,C.min):$>H&&(I=a.progress(C.min,C.max-H,A.min)),a.clamp(0,1,I)}function cie(C,A){var I={};return A.min!==void 0&&(I.min=A.min-C.min),A.max!==void 0&&(I.max=A.max-C.min),I}var DE=.35;function uie(C){return C===void 0&&(C=DE),C===!1?C=0:C===!0&&(C=DE),{x:zj(C,"left","right"),y:zj(C,"top","bottom")}}function zj(C,A,I){return{min:Bj(C,A),max:Bj(C,I)}}function Bj(C,A){var I;return typeof C=="number"?C:(I=C[A])!==null&&I!==void 0?I:0}var Vj=function(){return{translate:0,scale:1,origin:0,originPoint:0}},Yf=function(){return{x:Vj(),y:Vj()}},Hj=function(){return{min:0,max:0}},Kr=function(){return{x:Hj(),y:Hj()}};function Aa(C){return[C("x"),C("y")]}function Uj(C){var A=C.top,I=C.left,$=C.right,H=C.bottom;return{x:{min:I,max:$},y:{min:A,max:H}}}function die(C){var A=C.x,I=C.y;return{top:I.min,right:A.max,bottom:I.max,left:A.min}}function fie(C,A){if(!A)return C;var I=A({x:C.left,y:C.top}),$=A({x:C.right,y:C.bottom});return{top:I.y,left:I.x,bottom:$.y,right:$.x}}function FE(C){return C===void 0||C===1}function Wj(C){var A=C.scale,I=C.scaleX,$=C.scaleY;return!FE(A)||!FE(I)||!FE($)}function us(C){return Wj(C)||qj(C.x)||qj(C.y)||C.z||C.rotate||C.rotateX||C.rotateY}function qj(C){return C&&C!=="0%"}function P5(C,A,I){var $=C-I,H=A*$;return I+H}function Gj(C,A,I,$,H){return H!==void 0&&(C=P5(C,H,$)),P5(C,I,$)+A}function zE(C,A,I,$,H){A===void 0&&(A=0),I===void 0&&(I=1),C.min=Gj(C.min,A,I,$,H),C.max=Gj(C.max,A,I,$,H)}function Kj(C,A){var I=A.x,$=A.y;zE(C.x,I.translate,I.scale,I.originPoint),zE(C.y,$.translate,$.scale,$.originPoint)}function hie(C,A,I,$){var H,Y;$===void 0&&($=!1);var X=I.length;if(X){A.x=A.y=1;for(var K,ne,oe=0;oeA?I="y":Math.abs(C.x)>A&&(I="x"),I}function wie(C){var A=C.dragControls,I=C.visualElement,$=ue(function(){return new bie(I)});r.useEffect(function(){return A&&A.subscribe($)},[$,A]),r.useEffect(function(){return $.addListeners()},[$])}function xie(C){var A=C.onPan,I=C.onPanStart,$=C.onPanEnd,H=C.onPanSessionStart,Y=C.visualElement,X=A||I||$||H,K=r.useRef(null),ne=r.useContext(_).transformPagePoint,oe={onSessionStart:H,onStart:I,onMove:A,onEnd:function(de,fe){K.current=null,$&&$(de,fe)}};r.useEffect(function(){K.current!==null&&K.current.updateHandlers(oe)});function ce(de){K.current=new Mj(de,oe,{transformPagePoint:ne})}O5(Y,"pointerdown",X&&ce),k5(function(){return K.current&&K.current.end()})}var Zj={pan:cs(xie),drag:cs(wie)},A5=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function _ie(){var C=A5.map(function(){return new Wf}),A={},I={clearAllListeners:function(){return C.forEach(function($){return $.clear()})},updatePropListeners:function($){A5.forEach(function(H){var Y,X="on"+H,K=$[X];(Y=A[H])===null||Y===void 0||Y.call(A),K&&(A[H]=I[X](K))})}};return C.forEach(function($,H){I["on"+A5[H]]=function(Y){return $.add(Y)},I["notify"+A5[H]]=function(){for(var Y=[],X=0;X=0?window.pageYOffset:null,oe=jie(A,C,K);return Y.length&&Y.forEach(function(ce){var de=t.__read(ce,2),fe=de[0],he=de[1];C.getValue(fe).set(he)}),C.syncRender(),ne!==null&&window.scrollTo({top:ne}),{target:oe,transitionEnd:$}}else return{target:A,transitionEnd:$}};function Lie(C,A,I,$){return Tie(A)?Iie(C,A,I,$):{target:A,transitionEnd:$}}var $ie=function(C,A,I,$){var H=Rie(C,A,$);return A=H.target,$=H.transitionEnd,Lie(C,A,I,$)};function Nie(C){return window.getComputedStyle(C)}var iI={treeType:"dom",readValueFromInstance:function(C,A){if(Mt(A)){var I=EE(A);return I&&I.default||0}else{var $=Nie(C);return(st(A)?$.getPropertyValue(A):$[A])||0}},sortNodePosition:function(C,A){return C.compareDocumentPosition(A)&2?1:-1},getBaseTarget:function(C,A){var I;return(I=C.style)===null||I===void 0?void 0:I[A]},measureViewportBox:function(C,A){var I=A.transformPagePoint;return Xj(C,I)},resetTransform:function(C,A,I){var $=I.transformTemplate;A.style.transform=$?$({},""):"none",C.scheduleRender()},restoreTransform:function(C,A){C.style.transform=A.style.transform},removeValueFromRenderState:function(C,A){var I=A.vars,$=A.style;delete I[C],delete $[C]},makeTargetAnimatable:function(C,A,I,$){var H=I.transformValues;$===void 0&&($=!0);var Y=A.transition,X=A.transitionEnd,K=t.__rest(A,["transition","transitionEnd"]),ne=Tj(K,Y||{},C);if(H&&(X&&(X=H(X)),K&&(K=H(K)),ne&&(ne=H(ne))),$){AE(C,K,ne);var oe=$ie(C,K,ne,X);X=oe.transitionEnd,K=oe.target}return t.__assign({transition:Y,transitionEnd:X},K)},scrapeMotionValuesFromProps:Df,build:function(C,A,I,$,H){C.isVisible!==void 0&&(A.style.visibility=C.isVisible?"visible":"hidden"),At(A,I,$,H.transformTemplate)},render:_5},Die=j5(iI),Fie=j5(t.__assign(t.__assign({},iI),{getBaseTarget:function(C,A){return C[A]},readValueFromInstance:function(C,A){var I;return Mt(A)?((I=EE(A))===null||I===void 0?void 0:I.default)||0:(A=$f.has(A)?A:$l(A),C.getAttribute(A))},scrapeMotionValuesFromProps:Ff,build:function(C,A,I,$,H){on(A,I,$,H.transformTemplate)},render:Nf})),HE=function(C,A){return xe(C)?Fie(A,{enableHardwareAcceleration:!1}):Die(A,{enableHardwareAcceleration:!0})};function sI(C,A){return A.max===A.min?0:C/(A.max-A.min)*100}var Xf={correct:function(C,A){if(!A.target)return C;if(typeof C=="string")if(o.px.test(C))C=parseFloat(C);else return C;var I=sI(C,A.target.x),$=sI(C,A.target.y);return"".concat(I,"% ").concat($,"%")}},lI="_$css",zie={correct:function(C,A){var I=A.treeScale,$=A.projectionDelta,H=C,Y=C.includes("var("),X=[];Y&&(C=C.replace(Jj,function(ye){return X.push(ye),lI}));var K=o.complex.parse(C);if(K.length>5)return H;var ne=o.complex.createTransformer(C),oe=typeof K[0]!="number"?1:0,ce=$.x.scale*I.x,de=$.y.scale*I.y;K[0+oe]/=ce,K[1+oe]/=de;var fe=a.mix(ce,de,.5);typeof K[2+oe]=="number"&&(K[2+oe]/=fe),typeof K[3+oe]=="number"&&(K[3+oe]/=fe);var he=ne(K);if(Y){var pe=0;he=he.replace(lI,function(){var ye=X[pe];return pe++,ye})}return he}},Bie=function(C){t.__extends(A,C);function A(){return C!==null&&C.apply(this,arguments)||this}return A.prototype.componentDidMount=function(){var I=this,$=this.props,H=$.visualElement,Y=$.layoutGroup,X=$.switchLayoutGroup,K=$.layoutId,ne=H.projection;Ee(Hie),ne&&(Y!=null&&Y.group&&Y.group.add(ne),X!=null&&X.register&&K&&X.register(ne),ne.root.didUpdate(),ne.addEventListener("animationComplete",function(){I.safeToRemove()}),ne.setOptions(t.__assign(t.__assign({},ne.options),{onExitComplete:function(){return I.safeToRemove()}}))),we.hasEverUpdated=!0},A.prototype.getSnapshotBeforeUpdate=function(I){var $=this,H=this.props,Y=H.layoutDependency,X=H.visualElement,K=H.drag,ne=H.isPresent,oe=X.projection;return oe&&(oe.isPresent=ne,K||I.layoutDependency!==Y||Y===void 0?oe.willUpdate():this.safeToRemove(),I.isPresent!==ne&&(ne?oe.promote():oe.relegate()||h.default.postRender(function(){var ce;!((ce=oe.getStack())===null||ce===void 0)&&ce.members.length||$.safeToRemove()}))),null},A.prototype.componentDidUpdate=function(){var I=this.props.visualElement.projection;I&&(I.root.didUpdate(),!I.currentAnimation&&I.isLead()&&this.safeToRemove())},A.prototype.componentWillUnmount=function(){var I=this.props,$=I.visualElement,H=I.layoutGroup,Y=I.switchLayoutGroup,X=$.projection;X&&(X.scheduleCheckAfterUnmount(),H!=null&&H.group&&H.group.remove(X),Y!=null&&Y.deregister&&Y.deregister(X))},A.prototype.safeToRemove=function(){var I=this.props.safeToRemove;I==null||I()},A.prototype.render=function(){return null},A}(p.default.Component);function Vie(C){var A=t.__read(xE(),2),I=A[0],$=A[1],H=r.useContext(Se);return p.default.createElement(Bie,t.__assign({},C,{layoutGroup:H,switchLayoutGroup:r.useContext(Pe),isPresent:I,safeToRemove:$}))}var Hie={borderRadius:t.__assign(t.__assign({},Xf),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Xf,borderTopRightRadius:Xf,borderBottomLeftRadius:Xf,borderBottomRightRadius:Xf,boxShadow:zie},cI={measureLayout:Vie};function uI(C,A,I){I===void 0&&(I={});var $=ve(C)?C:To(C);return RE("",$,A,I),{stop:function(){return $.stop()},isAnimating:function(){return $.isAnimating()}}}var dI=["TopLeft","TopRight","BottomLeft","BottomRight"],Uie=dI.length,fI=function(C){return typeof C=="string"?parseFloat(C):C},hI=function(C){return typeof C=="number"||o.px.test(C)};function Wie(C,A,I,$,H,Y){var X,K,ne,oe;H?(C.opacity=a.mix(0,(X=I.opacity)!==null&&X!==void 0?X:1,qie($)),C.opacityExit=a.mix((K=A.opacity)!==null&&K!==void 0?K:1,0,Gie($))):Y&&(C.opacity=a.mix((ne=A.opacity)!==null&&ne!==void 0?ne:1,(oe=I.opacity)!==null&&oe!==void 0?oe:1,$));for(var ce=0;ceA?1:I(a.progress(C,A,$))}}function gI(C,A){C.min=A.min,C.max=A.max}function ra(C,A){gI(C.x,A.x),gI(C.y,A.y)}function vI(C,A,I,$,H){return C-=A,C=P5(C,1/I,$),H!==void 0&&(C=P5(C,1/H,$)),C}function Kie(C,A,I,$,H,Y,X){if(A===void 0&&(A=0),I===void 0&&(I=1),$===void 0&&($=.5),Y===void 0&&(Y=C),X===void 0&&(X=C),o.percent.test(A)){A=parseFloat(A);var K=a.mix(X.min,X.max,A/100);A=K-X.min}if(typeof A=="number"){var ne=a.mix(Y.min,Y.max,$);C===Y&&(ne-=A),C.min=vI(C.min,A,I,ne,H),C.max=vI(C.max,A,I,ne,H)}}function bI(C,A,I,$,H){var Y=t.__read(I,3),X=Y[0],K=Y[1],ne=Y[2];Kie(C,A[X],A[K],A[ne],A.scale,$,H)}var Yie=["x","scaleX","originX"],Xie=["y","scaleY","originY"];function yI(C,A,I,$){bI(C.x,A,Yie,I==null?void 0:I.x,$==null?void 0:$.x),bI(C.y,A,Xie,I==null?void 0:I.y,$==null?void 0:$.y)}function wI(C){return C.translate===0&&C.scale===1}function xI(C){return wI(C.x)&&wI(C.y)}function _I(C,A){return C.x.min===A.x.min&&C.x.max===A.x.max&&C.y.min===A.y.min&&C.y.max===A.y.max}var Zie=function(){function C(){this.members=[]}return C.prototype.add=function(A){SE(this.members,A),A.scheduleRender()},C.prototype.remove=function(A){if(TE(this.members,A),A===this.prevLead&&(this.prevLead=void 0),A===this.lead){var I=this.members[this.members.length-1];I&&this.promote(I)}},C.prototype.relegate=function(A){var I=this.members.findIndex(function(X){return A===X});if(I===0)return!1;for(var $,H=I;H>=0;H--){var Y=this.members[H];if(Y.isPresent!==!1){$=Y;break}}return $?(this.promote($),!0):!1},C.prototype.promote=function(A,I){var $,H=this.lead;if(A!==H&&(this.prevLead=H,this.lead=A,A.show(),H)){H.instance&&H.scheduleRender(),A.scheduleRender(),A.resumeFrom=H,I&&(A.resumeFrom.preserveOpacity=!0),H.snapshot&&(A.snapshot=H.snapshot,A.snapshot.latestValues=H.animationValues||H.latestValues,A.snapshot.isShared=!0),!(($=A.root)===null||$===void 0)&&$.isUpdating&&(A.isLayoutDirty=!0);var Y=A.options.crossfade;Y===!1&&H.hide()}},C.prototype.exitAnimationComplete=function(){this.members.forEach(function(A){var I,$,H,Y,X;($=(I=A.options).onExitComplete)===null||$===void 0||$.call(I),(X=(H=A.resumingFrom)===null||H===void 0?void 0:(Y=H.options).onExitComplete)===null||X===void 0||X.call(Y)})},C.prototype.scheduleRender=function(){this.members.forEach(function(A){A.instance&&A.scheduleRender(!1)})},C.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},C}(),Qie="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function EI(C,A,I){var $=C.x.translate/A.x,H=C.y.translate/A.y,Y="translate3d(".concat($,"px, ").concat(H,"px, 0) ");if(Y+="scale(".concat(1/A.x,", ").concat(1/A.y,") "),I){var X=I.rotate,K=I.rotateX,ne=I.rotateY;X&&(Y+="rotate(".concat(X,"deg) ")),K&&(Y+="rotateX(".concat(K,"deg) ")),ne&&(Y+="rotateY(".concat(ne,"deg) "))}var oe=C.x.scale*A.x,ce=C.y.scale*A.y;return Y+="scale(".concat(oe,", ").concat(ce,")"),Y===Qie?"none":Y}var Jie=function(C,A){return C.depth-A.depth},CI=function(){function C(){this.children=[],this.isDirty=!1}return C.prototype.add=function(A){SE(this.children,A),this.isDirty=!0},C.prototype.remove=function(A){TE(this.children,A),this.isDirty=!0},C.prototype.forEach=function(A){this.isDirty&&this.children.sort(Jie),this.isDirty=!1,this.children.forEach(A)},C}(),OI=1e3;function kI(C){var A=C.attachResizeListener,I=C.defaultParent,$=C.measureScroll,H=C.checkIsScrollRoot,Y=C.resetTransform;return function(){function X(K,ne,oe){var ce=this;ne===void 0&&(ne={}),oe===void 0&&(oe=I==null?void 0:I()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){ce.isUpdating&&(ce.isUpdating=!1,ce.clearAllSnapshots())},this.updateProjection=function(){ce.nodes.forEach(ase),ce.nodes.forEach(ise)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=K,this.latestValues=ne,this.root=oe?oe.root||oe:this,this.path=oe?t.__spreadArray(t.__spreadArray([],t.__read(oe.path),!1),[oe],!1):[],this.parent=oe,this.depth=oe?oe.depth+1:0,K&&this.root.registerPotentialNode(K,this);for(var de=0;de=0;$--)if(C.path[$].instance){I=C.path[$];break}var H=I&&I!==C.root?I.instance:document,Y=H.querySelector('[data-projection-id="'.concat(A,'"]'));Y&&C.mount(Y,!0)}function PI(C){C.min=Math.round(C.min),C.max=Math.round(C.max)}function MI(C){PI(C.x),PI(C.y)}var hse=kI({attachResizeListener:function(C,A){return Fl(C,"resize",A)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Ul={current:void 0},UE=kI({measureScroll:function(C){return{x:C.scrollLeft,y:C.scrollTop}},defaultParent:function(){if(!Ul.current){var C=new hse(0,{});C.mount(window),C.setOptions({layoutScroll:!0}),Ul.current=C}return Ul.current},resetTransform:function(C,A){C.style.transform=A??"none"},checkIsScrollRoot:function(C){return window.getComputedStyle(C).position==="fixed"}}),AI=t.__assign(t.__assign(t.__assign(t.__assign({},LE),gj),Zj),cI),WE=je(function(C,A){return Hf(C,A,AI,HE,UE)});function pse(C){return be(Hf(C,{forwardMotionProps:!1},AI,HE,UE))}var mse=je(Hf);function jI(){var C=r.useRef(!1);return T(function(){return C.current=!0,function(){C.current=!1}},[]),C}function L5(){var C=jI(),A=t.__read(r.useState(0),2),I=A[0],$=A[1],H=r.useCallback(function(){C.current&&$(I+1)},[I]),Y=r.useCallback(function(){return h.default.postRender(H)},[H]);return[Y,I]}var qE=function(C){var A=C.children,I=C.initial,$=C.isPresent,H=C.onExitComplete,Y=C.custom,X=C.presenceAffectsLayout,K=ue(gse),ne=vj(),oe=r.useMemo(function(){return{id:ne,initial:I,isPresent:$,custom:Y,onExitComplete:function(ce){var de,fe;K.set(ce,!0);try{for(var he=t.__values(K.values()),pe=he.next();!pe.done;pe=he.next()){var ye=pe.value;if(!ye)return}}catch(Ne){de={error:Ne}}finally{try{pe&&!pe.done&&(fe=he.return)&&fe.call(he)}finally{if(de)throw de.error}}H==null||H()},register:function(ce){return K.set(ce,!1),function(){return K.delete(ce)}}}},X?void 0:[$]);return r.useMemo(function(){K.forEach(function(ce,de){return K.set(de,!1)})},[$]),u.useEffect(function(){!$&&!K.size&&(H==null||H())},[$]),u.createElement(S.Provider,{value:oe},A)};function gse(){return new Map}var mu=function(C){return C.key||""};function vse(C,A){C.forEach(function(I){var $=mu(I);A.set($,I)})}function bse(C){var A=[];return r.Children.forEach(C,function(I){r.isValidElement(I)&&A.push(I)}),A}var yse=function(C){var A=C.children,I=C.custom,$=C.initial,H=$===void 0?!0:$,Y=C.onExitComplete,X=C.exitBeforeEnter,K=C.presenceAffectsLayout,ne=K===void 0?!0:K,oe=t.__read(L5(),1),ce=oe[0],de=r.useContext(Se).forceRender;de&&(ce=de);var fe=jI(),he=bse(A),pe=he,ye=new Set,Ne=r.useRef(pe),Ve=r.useRef(new Map).current,Qe=r.useRef(!0);if(T(function(){Qe.current=!1,vse(he,Ve),Ne.current=pe}),k5(function(){Qe.current=!0,Ve.clear(),ye.clear()}),Qe.current)return u.createElement(u.Fragment,null,pe.map(function(yt){return u.createElement(qE,{key:mu(yt),isPresent:!0,initial:H?void 0:!1,presenceAffectsLayout:ne},yt)}));pe=t.__spreadArray([],t.__read(pe),!1);for(var ht=Ne.current.map(mu),mt=he.map(mu),gt=ht.length,Kt=0;Kt1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),u.createElement(u.Fragment,null,ye.size?pe:pe.map(function(yt){return r.cloneElement(yt)}))},II=r.createContext(null),wse=function(C){return!C.isLayoutDirty&&C.willUpdate(!1)};function LI(){var C=new Set,A=new WeakMap,I=function(){return C.forEach(wse)};return{add:function($){C.add($),A.set($,$.addEventListener("willUpdate",I))},remove:function($){var H;C.delete($),(H=A.get($))===null||H===void 0||H(),A.delete($),I()},dirty:I}}var $I=function(C){return C===!0},xse=function(C){return $I(C===!0)||C==="id"},NI=function(C){var A,I,$=C.children,H=C.id,Y=C.inheritId,X=C.inherit,K=X===void 0?!0:X;Y!==void 0&&(K=Y);var ne=r.useContext(Se),oe=r.useContext(II),ce=t.__read(L5(),2),de=ce[0],fe=ce[1],he=r.useRef(null),pe=(A=ne.id)!==null&&A!==void 0?A:oe;he.current===null&&(xse(K)&&pe&&(H=H?pe+"-"+H:pe),he.current={id:H,group:$I(K)&&(I=ne==null?void 0:ne.group)!==null&&I!==void 0?I:LI()});var ye=r.useMemo(function(){return t.__assign(t.__assign({},he.current),{forceRender:de})},[fe]);return u.createElement(Se.Provider,{value:ye},$)},_se=0,Ese=function(C){var A=C.children;return u.useEffect(function(){n.warning(!1,"AnimateSharedLayout is deprecated: https://www.framer.com/docs/guide-upgrade/##shared-layout-animations")},[]),u.createElement(NI,{id:ue(function(){return"asl-".concat(_se++)})},A)};function Cse(C){var A=C.children,I=C.isValidProp,$=t.__rest(C,["children","isValidProp"]);I&&hn(I),$=t.__assign(t.__assign({},r.useContext(_)),$),$.isStatic=ue(function(){return $.isStatic});var H=r.useMemo(function(){return $},[JSON.stringify($.transition),$.transformPagePoint,$.reducedMotion]);return u.createElement(_.Provider,{value:H},A)}function Ose(C){var A=C.children,I=C.features,$=C.strict,H=$===void 0?!1:$,Y=t.__read(r.useState(!GE(I)),2),X=Y[1],K=r.useRef(void 0);if(!GE(I)){var ne=I.renderer,oe=t.__rest(I,["renderer"]);K.current=ne,m(oe)}return r.useEffect(function(){GE(I)&&I().then(function(ce){var de=ce.renderer,fe=t.__rest(ce,["renderer"]);m(fe),K.current=de,X(!0)})},[]),u.createElement(f.Provider,{value:{renderer:K.current,strict:H}},A)}function GE(C){return typeof C=="function"}var DI=r.createContext(null);function kse(C,A,I,$){if(!$)return C;var H=C.findIndex(function(ce){return ce.value===A});if(H===-1)return C;var Y=$>0?1:-1,X=C[H+Y];if(!X)return C;var K=C[H],ne=X.layout,oe=a.mix(ne.min,ne.max,.5);return Y===1&&K.layout.max+I>oe||Y===-1&&K.layout.min+I.001?1/C:ole},XI=!1;function ale(C){var A=fs(1),I=fs(1),$=k();n.invariant(!!(C||$),"If no scale values are provided, useInvertedScale must be used within a child of another motion component."),n.warning(XI,"useInvertedScale is deprecated and will be removed in 3.0. Use the layout prop instead."),XI=!0,C?(A=C.scaleX||A,I=C.scaleY||I):$&&(A=$.getValue("scaleX",1),I=$.getValue("scaleY",1));var H=$5(A,YI),Y=$5(I,YI);return{scaleX:H,scaleY:Y}}e.AnimatePresence=yse,e.AnimateSharedLayout=Ese,e.DeprecatedLayoutGroupContext=II,e.DragControls=GI,e.FlatTree=CI,e.LayoutGroup=NI,e.LayoutGroupContext=Se,e.LazyMotion=Ose,e.MotionConfig=Cse,e.MotionConfigContext=_,e.MotionContext=E,e.MotionValue=kj,e.PresenceContext=S,e.Reorder=Nse,e.SwitchLayoutGroupContext=Pe,e.addPointerEvent=Bl,e.addScaleCorrector=Ee,e.animate=uI,e.animateVisualElement=T5,e.animationControls=WI,e.animations=LE,e.calcLength=Ma,e.checkTargetForNewValues=AE,e.createBox=Kr,e.createDomMotionComponent=pse,e.createMotionComponent=be,e.domAnimation=HI,e.domMax=Dse,e.filterProps=Fn,e.isBrowser=R,e.isDragActive=vE,e.isMotionValue=ve,e.isValidMotionProp=nn,e.m=mse,e.makeUseVisualState=hu,e.motion=WE,e.motionValue=To,e.resolveMotionValue=Dl,e.transform=FI,e.useAnimation=Gse,e.useAnimationControls=qI,e.useAnimationFrame=UI,e.useCycle=Kse,e.useDeprecatedAnimatedState=nle,e.useDeprecatedInvertedScale=ale,e.useDomEvent=fr,e.useDragControls=Zse,e.useElementScroll=Hse,e.useForceUpdate=L5,e.useInView=Yse,e.useInstantLayoutTransition=KI,e.useInstantTransition=Jse,e.useIsPresent=Cae,e.useIsomorphicLayoutEffect=T,e.useMotionTemplate=Fse,e.useMotionValue=fs,e.usePresence=xE,e.useReducedMotion=D,e.useReducedMotionConfig=B,e.useResetProjection=ele,e.useScroll=KE,e.useSpring=zse,e.useTime=qse,e.useTransform=$5,e.useUnmountEffect=k5,e.useVelocity=Bse,e.useViewportScroll=Use,e.useVisualElementContext=k,e.visualElement=j5,e.wrapHandler=gE})(rn);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,f){for(var v in f)Object.defineProperty(m,v,{enumerable:!0,get:f[v]})}t(e,{AccordionBody:function(){return y},default:function(){return b}});var r=h(O),n=rn,o=h(ct),a=h(dn),i=h(Ze),s=Je,l=H8,c=Ye,u=F1;function p(){return p=Object.assign||function(m){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.className,d=m.children,w=g(m,["className","children"]),_=(0,l.useAccordion)(),E=_.open,k=_.animate,S=(0,c.useTheme)().accordion,R=S.styles.base;v=v??"";var T=(0,s.twMerge)((0,o.default)((0,i.default)(R.body)),v),P={unmount:{height:"0px",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.2,times:[.4,0,.2,1]}}},j={unmount:{transition:{duration:.3,ease:"linear"}},mount:{transition:{duration:.3,ease:"linear"}}},L=(0,a.default)(j,k);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(n.m.div,{className:"overflow-hidden",initial:"unmount",exit:"unmount",animate:E?"mount":"unmount",variants:P},r.default.createElement(n.m.div,p({},w,{ref:f,className:T,initial:"unmount",exit:"unmount",animate:E?"mount":"unmount",variants:L}),d)))});y.propTypes={className:u.propTypesClassName,children:u.propTypesChildren},y.displayName="MaterialTailwind.AccordionBody";var b=y})(SK);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,v){for(var d in v)Object.defineProperty(f,d,{enumerable:!0,get:v[d]})}t(e,{Accordion:function(){return b},AccordionHeader:function(){return c.AccordionHeader},AccordionBody:function(){return u.AccordionBody},useAccordion:function(){return s.useAccordion},default:function(){return m}});var r=g(O),n=g(ct),o=Je,a=g(Ze),i=Ye,s=H8,l=F1,c=RK,u=SK;function p(f,v,d){return v in f?Object.defineProperty(f,v,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[v]=d,f}function h(){return h=Object.assign||function(f){for(var v=1;v=0)&&Object.prototype.propertyIsEnumerable.call(f,w)&&(d[w]=f[w])}return d}function y(f,v){if(f==null)return{};var d={},w=Object.keys(f),_,E;for(E=0;E=0)&&(d[_]=f[_]);return d}var b=r.default.forwardRef(function(f,v){var d=f.open,w=f.icon,_=f.animate,E=f.className,k=f.disabled,S=f.children,R=x(f,["open","icon","animate","className","disabled","children"]),T=(0,i.useTheme)().accordion,P=T.defaultProps,j=T.styles.base;w=w??P.icon,_=_??P.animate,E=E??P.className,k=k??P.disabled;var L=(0,o.twMerge)((0,n.default)((0,a.default)(j.container),p({},(0,a.default)(j.disabled),k)),E),D=r.default.useMemo(function(){return{open:d,icon:w,animate:_,disabled:k}},[d,w,_,k]);return r.default.createElement(s.AccordionContextProvider,{value:D},r.default.createElement("div",h({},R,{ref:v,className:L}),S))});b.propTypes={open:l.propTypesOpen,icon:l.propTypesIcon,animate:l.propTypesAnimate,disabled:l.propTypesDisabled,className:l.propTypesClassName,children:l.propTypesChildren},b.displayName="MaterialTailwind.Accordion";var m=Object.assign(b,{Header:c.AccordionHeader,Body:u.AccordionBody})})(QW);var bX={},wr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n,o,a){var i=n.findIndex(function(s){return s===o});return i>=0?o:a}var r=t})(wr);var n9={},gf=class{constructor(){this.x=0,this.y=0,this.z=0}findFurthestPoint(t,r,n,o,a,i){return this.x=t-n>r/2?0:r,this.y=o-i>a/2?0:a,this.z=Math.hypot(this.x-(t-n),this.y-(o-i)),this.z}appyStyles(t,r,n,o,a){t.classList.add("ripple"),t.style.backgroundColor=r==="dark"?"rgba(0,0,0, 0.2)":"rgba(255,255,255, 0.3)",t.style.borderRadius="50%",t.style.pointerEvents="none",t.style.position="absolute",t.style.left=a.clientX-n.left-o+"px",t.style.top=a.clientY-n.top-o+"px",t.style.width=t.style.height=o*2+"px"}applyAnimation(t){t.animate([{transform:"scale(0)",opacity:1},{transform:"scale(1.5)",opacity:0}],{duration:500,easing:"linear"})}create(t,r){const n=t.currentTarget;n.style.position="relative",n.style.overflow="hidden";const o=n.getBoundingClientRect(),a=this.findFurthestPoint(t.clientX,n.offsetWidth,o.left,t.clientY,n.offsetHeight,o.top),i=document.createElement("span");this.appyStyles(i,r,o,a,t),this.applyAnimation(i),n.appendChild(i),setTimeout(()=>i.remove(),500)}};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,f){for(var v in f)Object.defineProperty(m,v,{enumerable:!0,get:f[v]})}t(e,{IconButton:function(){return y},default:function(){return b}});var r=h(O),n=h(et),o=h(gf),a=h(ct),i=Je,s=h(wr),l=h(Ze),c=Ye,u=Yc;function p(){return p=Object.assign||function(m){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.variant,d=m.size,w=m.color,_=m.ripple,E=m.className,k=m.children;m.fullWidth;var S=g(m,["variant","size","color","ripple","className","children","fullWidth"]),R=(0,c.useTheme)().iconButton,T=R.valid,P=R.defaultProps,j=R.styles,L=j.base,D=j.variants,B=j.sizes;v=v??P.variant,d=d??P.size,w=w??P.color,_=_??P.ripple,E=E??P.className;var V=_!==void 0&&new o.default,q=(0,l.default)(L),z=(0,l.default)(D[(0,s.default)(T.variants,v,"filled")][(0,s.default)(T.colors,w,"blue")]),F=(0,l.default)(B[(0,s.default)(T.sizes,d,"md")]),N=(0,i.twMerge)((0,a.default)(q,F,z),E);return r.default.createElement("button",p({},S,{ref:f,className:N,type:S.type||"button",onMouseDown:function(W){var G=S==null?void 0:S.onMouseDown;return _&&V.create(W,(v==="filled"||v==="gradient")&&w!=="white"?"light":"dark"),typeof G=="function"&&G(W)}}),r.default.createElement("span",{className:"absolute top-1/2 left-1/2 transform -translate-y-1/2 -translate-x-1/2"},k))});y.propTypes={variant:n.default.oneOf(u.propTypesVariant),size:n.default.oneOf(u.propTypesSize),color:n.default.oneOf(u.propTypesColor),ripple:u.propTypesRipple,className:u.propTypesClassName,children:u.propTypesChildren},y.displayName="MaterialTailwind.IconButton";var b=y})(n9);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,w){for(var _ in w)Object.defineProperty(d,_,{enumerable:!0,get:w[_]})}t(e,{Alert:function(){return f},default:function(){return v}});var r=y(O),n=y(et),o=rn,a=te,i=y(ct),s=y(dn),l=Je,c=y(wr),u=y(Ze),p=Ye,h=nP,g=y(n9);function x(){return x=Object.assign||function(d){for(var w=1;w=0)&&Object.prototype.propertyIsEnumerable.call(d,E)&&(_[E]=d[E])}return _}function m(d,w){if(d==null)return{};var _={},E=Object.keys(d),k,S;for(S=0;S=0)&&(_[k]=d[k]);return _}var f=r.default.forwardRef(function(d,w){var _=d.variant,E=d.color,k=d.icon,S=d.open,R=d.action,T=d.onClose,P=d.animate,j=d.className,L=d.children,D=b(d,["variant","color","icon","open","action","onClose","animate","className","children"]),B=(0,p.useTheme)().alert,V=B.defaultProps,q=B.valid,z=B.styles,F=z.base,N=z.variants;_=_??V.variant,E=E??V.color,j=j??V.className,P=P??V.animate,S=S??V.open,R=R??V.action,T=T??V.onClose;var W=(0,u.default)(F.alert),G=(0,u.default)(F.action),Q=(0,u.default)(N[(0,c.default)(q.variants,_,"filled")][(0,c.default)(q.colors,E,"blue")]),Z=(0,l.twMerge)((0,i.default)(W,Q),j),U=(0,i.default)(G),J={unmount:{opacity:0},mount:{opacity:1}},ae=(0,s.default)(J,P),ee=r.default.createElement("div",{className:"shrink-0"},k),se=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(se,null,S&&r.default.createElement(o.m.div,x({},D,{ref:w,role:"alert",className:"".concat(Z," flex"),initial:"unmount",exit:"unmount",animate:S?"mount":"unmount",variants:ae}),k&&ee,r.default.createElement("div",{className:"".concat(k?"ml-3":""," mr-12")},L),T&&!R&&r.default.createElement(g.default,{onClick:T,size:"sm",variant:"text",color:_==="outlined"||_==="ghost"?E:"white",className:U},r.default.createElement(a.XMarkIcon,{className:"h-6 w-6",strokeWidth:2})),R||null)))});f.propTypes={variant:n.default.oneOf(h.propTypesVariant),color:n.default.oneOf(h.propTypesColor),icon:h.propTypesIcon,open:h.propTypesOpen,action:h.propTypesAction,onClose:h.propTypesOnClose,animate:h.propTypesAnimate,className:h.propTypesClassName,children:h.propTypesChildren},f.displayName="MaterialTailwind.Alert";var v=f})(bX);var yX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,f){for(var v in f)Object.defineProperty(m,v,{enumerable:!0,get:f[v]})}t(e,{Avatar:function(){return y},default:function(){return b}});var r=h(O),n=h(et),o=h(ct),a=Je,i=h(wr),s=h(Ze),l=Ye,c=oP;function u(m,f,v){return f in m?Object.defineProperty(m,f,{value:v,enumerable:!0,configurable:!0,writable:!0}):m[f]=v,m}function p(){return p=Object.assign||function(m){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.variant,d=m.size,w=m.className,_=m.color,E=m.withBorder,k=g(m,["variant","size","className","color","withBorder"]),S=(0,l.useTheme)().avatar,R=S.valid,T=S.defaultProps,P=S.styles,j=P.base,L=P.variants,D=P.sizes,B=P.borderColor;v=v??T.variant,d=d??T.size,w=w??T.className,E=E??T.withBorder,_=_??T.color;var V=(0,s.default)(L[(0,i.default)(R.variants,v,"rounded")]),q=(0,s.default)(D[(0,i.default)(R.sizes,d,"md")]),z=(0,s.default)(B[(0,i.default)(R.colors,_,"blue")]),F,N=(0,a.twMerge)((0,o.default)((0,s.default)(j.initial),V,q,(F={},u(F,(0,s.default)(j.withBorder),E),u(F,z,E),F)),w);return r.default.createElement("img",p({},k,{ref:f,className:N}))});y.propTypes={variant:n.default.oneOf(c.propTypesVariant),size:n.default.oneOf(c.propTypesSize),className:c.propTypesClassName,withBorder:c.propTypesWithBorder,color:n.default.oneOf(c.propTypesColor)},y.displayName="MaterialTailwind.Avatar";var b=y})(yX);var wX={},xX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,c){for(var u in c)Object.defineProperty(l,u,{enumerable:!0,get:c[u]})}t(e,{propTypesSeparator:function(){return o},propTypesFullWidth:function(){return a},propTypesClassName:function(){return i},propTypesChildren:function(){return s}});var r=n(et);function n(l){return l&&l.__esModule?l:{default:l}}var o=r.default.node,a=r.default.bool,i=r.default.string,s=r.default.node.isRequired})(xX);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,f){for(var v in f)Object.defineProperty(m,v,{enumerable:!0,get:f[v]})}t(e,{Breadcrumbs:function(){return y},default:function(){return b}});var r=h(O),n=u(ct),o=Je,a=u(Ze),i=Ye,s=xX;function l(m,f,v){return f in m?Object.defineProperty(m,f,{value:v,enumerable:!0,configurable:!0,writable:!0}):m[f]=v,m}function c(){return c=Object.assign||function(m){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=(0,r.forwardRef)(function(m,f){var v=m.separator,d=m.fullWidth,w=m.className,_=m.children,E=g(m,["separator","fullWidth","className","children"]),k=(0,i.useTheme)().breadcrumbs,S=k.defaultProps,R=k.styles.base;v=v??S.separator,d=d??S.fullWidth,w=w??S.className;var T=(0,n.default)((0,a.default)(R.root.initial),l({},(0,a.default)(R.root.fullWidth),d)),P=(0,o.twMerge)((0,n.default)((0,a.default)(R.list)),w),j=(0,n.default)((0,a.default)(R.item.initial)),L=(0,n.default)((0,a.default)(R.separator));return r.default.createElement("nav",{"aria-label":"breadcrumb",className:T},r.default.createElement("ol",c({},E,{ref:f,className:P}),r.Children.map(_,function(D,B){if((0,r.isValidElement)(D)){var V;return r.default.createElement("li",{className:(0,n.default)(j,l({},(0,a.default)(R.item.disabled),D==null||(V=D.props)===null||V===void 0?void 0:V.disabled))},D,B!==r.Children.count(_)-1&&r.default.createElement("span",{className:L},v))}return null})))});y.propTypes={separator:s.propTypesSeparator,fullWidth:s.propTypesFullWidth,className:s.propTypesClassName,children:s.propTypesChildren},y.displayName="MaterialTailwind.Breadcrumbs";var b=y})(wX);var _X={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,v){for(var d in v)Object.defineProperty(f,d,{enumerable:!0,get:v[d]})}t(e,{Button:function(){return b},default:function(){return m}});var r=g(O),n=g(et),o=g(gf),a=g(ct),i=Je,s=g(wr),l=g(Ze),c=Ye,u=Yc;function p(f,v,d){return v in f?Object.defineProperty(f,v,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[v]=d,f}function h(){return h=Object.assign||function(f){for(var v=1;v=0)&&Object.prototype.propertyIsEnumerable.call(f,w)&&(d[w]=f[w])}return d}function y(f,v){if(f==null)return{};var d={},w=Object.keys(f),_,E;for(E=0;E=0)&&(d[_]=f[_]);return d}var b=r.default.forwardRef(function(f,v){var d=f.variant,w=f.size,_=f.color,E=f.fullWidth,k=f.ripple,S=f.className,R=f.children,T=x(f,["variant","size","color","fullWidth","ripple","className","children"]),P=(0,c.useTheme)().button,j=P.valid,L=P.defaultProps,D=P.styles,B=D.base,V=D.variants,q=D.sizes;d=d??L.variant,w=w??L.size,_=_??L.color,E=E??L.fullWidth,k=k??L.ripple,S=S??L.className;var z=k!==void 0&&new o.default,F=(0,l.default)(B.initial),N=(0,l.default)(V[(0,s.default)(j.variants,d,"filled")][(0,s.default)(j.colors,_,"blue")]),W=(0,l.default)(q[(0,s.default)(j.sizes,w,"md")]),G=(0,i.twMerge)((0,a.default)(F,W,N,p({},(0,l.default)(B.fullWidth),E)),S);return r.default.createElement("button",h({},T,{ref:v,className:G,type:T.type||"button",onMouseDown:function(Q){var Z=T==null?void 0:T.onMouseDown;return k&&z.create(Q,(d==="filled"||d==="gradient")&&_!=="white"?"light":"dark"),typeof Z=="function"&&Z(Q)}}),R)});b.propTypes={variant:n.default.oneOf(u.propTypesVariant),size:n.default.oneOf(u.propTypesSize),color:n.default.oneOf(u.propTypesColor),fullWidth:u.propTypesFullWidth,ripple:u.propTypesRipple,className:u.propTypesClassName,children:u.propTypesChildren},b.displayName="MaterialTailwind.Button";var m=b})(_X);var EX={},CX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,f){for(var v in f)Object.defineProperty(m,v,{enumerable:!0,get:f[v]})}t(e,{CardHeader:function(){return y},default:function(){return b}});var r=h(O),n=h(et),o=h(ct),a=Je,i=h(wr),s=h(Ze),l=Ye,c=Xc;function u(m,f,v){return f in m?Object.defineProperty(m,f,{value:v,enumerable:!0,configurable:!0,writable:!0}):m[f]=v,m}function p(){return p=Object.assign||function(m){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.variant,d=m.color,w=m.shadow,_=m.floated,E=m.className,k=m.children,S=g(m,["variant","color","shadow","floated","className","children"]),R=(0,l.useTheme)().cardHeader,T=R.defaultProps,P=R.styles,j=R.valid,L=P.base,D=P.variants;v=v??T.variant,d=d??T.color,w=w??T.shadow,_=_??T.floated,E=E??T.className;var B=(0,s.default)(L.initial),V=(0,s.default)(D[(0,i.default)(j.variants,v,"filled")][(0,i.default)(j.colors,d,"white")]),q=(0,a.twMerge)((0,o.default)(B,V,u({},(0,s.default)(L.shadow),w),u({},(0,s.default)(L.floated),_)),E);return r.default.createElement("div",p({},S,{ref:f,className:q}),k)});y.propTypes={variant:n.default.oneOf(c.propTypesVariant),color:n.default.oneOf(c.propTypesColor),shadow:c.propTypesShadow,floated:c.propTypesFloated,className:c.propTypesClassName,children:c.propTypesChildren},y.displayName="MaterialTailwind.CardHeader";var b=y})(CX);var OX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(x,y){for(var b in y)Object.defineProperty(x,b,{enumerable:!0,get:y[b]})}t(e,{CardBody:function(){return h},default:function(){return g}});var r=c(O),n=c(ct),o=Je,a=c(Ze),i=Ye,s=Xc;function l(){return l=Object.assign||function(x){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(x,m)&&(b[m]=x[m])}return b}function p(x,y){if(x==null)return{};var b={},m=Object.keys(x),f,v;for(v=0;v=0)&&(b[f]=x[f]);return b}var h=r.default.forwardRef(function(x,y){var b=x.className,m=x.children,f=u(x,["className","children"]),v=(0,i.useTheme)().cardBody,d=v.defaultProps,w=v.styles.base;b=b??d.className;var _=(0,o.twMerge)((0,n.default)((0,a.default)(w)),b);return r.default.createElement("div",l({},f,{ref:y,className:_}),m)});h.propTypes={className:s.propTypesClassName,children:s.propTypesChildren},h.displayName="MaterialTailwind.CardBody";var g=h})(OX);var kX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,b){for(var m in b)Object.defineProperty(y,m,{enumerable:!0,get:b[m]})}t(e,{CardFooter:function(){return g},default:function(){return x}});var r=u(O),n=u(ct),o=Je,a=u(Ze),i=Ye,s=Xc;function l(y,b,m){return b in y?Object.defineProperty(y,b,{value:m,enumerable:!0,configurable:!0,writable:!0}):y[b]=m,y}function c(){return c=Object.assign||function(y){for(var b=1;b=0)&&Object.prototype.propertyIsEnumerable.call(y,f)&&(m[f]=y[f])}return m}function h(y,b){if(y==null)return{};var m={},f=Object.keys(y),v,d;for(d=0;d=0)&&(m[v]=y[v]);return m}var g=r.default.forwardRef(function(y,b){var m=y.divider,f=y.className,v=y.children,d=p(y,["divider","className","children"]),w=(0,i.useTheme)().cardFooter,_=w.defaultProps,E=w.styles.base;f=f??_.className,m=m??_.divider;var k=(0,o.twMerge)((0,n.default)((0,a.default)(E.initial),l({},(0,a.default)(E.divider),m)),f);return r.default.createElement("div",c({},d,{ref:b,className:k}),v)});g.propTypes={divider:s.propTypesDivider,className:s.propTypesClassName,children:s.propTypesChildren},g.displayName="MaterialTailwind.CardFooter";var x=g})(kX);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,w){for(var _ in w)Object.defineProperty(d,_,{enumerable:!0,get:w[_]})}t(e,{Card:function(){return f},CardHeader:function(){return c.CardHeader},CardBody:function(){return u.CardBody},CardFooter:function(){return p.CardFooter},default:function(){return v}});var r=y(O),n=y(et),o=y(ct),a=Je,i=y(wr),s=y(Ze),l=Ye,c=CX,u=OX,p=kX,h=Xc;function g(d,w,_){return w in d?Object.defineProperty(d,w,{value:_,enumerable:!0,configurable:!0,writable:!0}):d[w]=_,d}function x(){return x=Object.assign||function(d){for(var w=1;w=0)&&Object.prototype.propertyIsEnumerable.call(d,E)&&(_[E]=d[E])}return _}function m(d,w){if(d==null)return{};var _={},E=Object.keys(d),k,S;for(S=0;S=0)&&(_[k]=d[k]);return _}var f=r.default.forwardRef(function(d,w){var _=d.variant,E=d.color,k=d.shadow,S=d.className,R=d.children,T=b(d,["variant","color","shadow","className","children"]),P=(0,l.useTheme)().card,j=P.defaultProps,L=P.styles,D=P.valid,B=L.base,V=L.variants;_=_??j.variant,E=E??j.color,k=k??j.shadow,S=S??j.className;var q=(0,s.default)(B.initial),z=(0,s.default)(V[(0,i.default)(D.variants,_,"filled")][(0,i.default)(D.colors,E,"white")]),F=(0,a.twMerge)((0,o.default)(q,z,g({},(0,s.default)(B.shadow),k)),S);return r.default.createElement("div",x({},T,{ref:w,className:F}),R)});f.propTypes={variant:n.default.oneOf(h.propTypesVariant),color:n.default.oneOf(h.propTypesColor),shadow:h.propTypesShadow,className:h.propTypesClassName,children:h.propTypesChildren},f.displayName="MaterialTailwind.Card";var v=Object.assign(f,{Header:c.CardHeader,Body:u.CardBody,Footer:p.CardFooter})})(EX);var RX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,v){for(var d in v)Object.defineProperty(f,d,{enumerable:!0,get:v[d]})}t(e,{Checkbox:function(){return b},default:function(){return m}});var r=g(O),n=g(et),o=g(gf),a=g(ct),i=Je,s=g(wr),l=g(Ze),c=Ye,u=Zc;function p(f,v,d){return v in f?Object.defineProperty(f,v,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[v]=d,f}function h(){return h=Object.assign||function(f){for(var v=1;v=0)&&Object.prototype.propertyIsEnumerable.call(f,w)&&(d[w]=f[w])}return d}function y(f,v){if(f==null)return{};var d={},w=Object.keys(f),_,E;for(E=0;E=0)&&(d[_]=f[_]);return d}var b=r.default.forwardRef(function(f,v){var d=f.color,w=f.label,_=f.icon,E=f.ripple,k=f.className,S=f.disabled,R=f.containerProps,T=f.labelProps,P=f.iconProps,j=f.inputRef,L=x(f,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),D=(0,c.useTheme)().checkbox,B=D.defaultProps,V=D.valid,q=D.styles,z=q.base,F=q.colors,N=r.default.useId();d=d??B.color,w=w??B.label,_=_??B.icon,E=E??B.ripple,k=k??B.className,S=S??B.disabled,R=R??B.containerProps,T=T??B.labelProps,P=P??B.iconProps;var W=E!==void 0&&new o.default,G=(0,a.default)((0,l.default)(z.root),p({},(0,l.default)(z.disabled),S)),Q=(0,i.twMerge)((0,a.default)((0,l.default)(z.container)),R==null?void 0:R.className),Z=(0,i.twMerge)((0,a.default)((0,l.default)(z.input),(0,l.default)(F[(0,s.default)(V.colors,d,"blue")])),k),U=(0,i.twMerge)((0,a.default)((0,l.default)(z.label)),T==null?void 0:T.className),J=(0,i.twMerge)((0,a.default)((0,l.default)(z.icon)),P==null?void 0:P.className);return r.default.createElement("div",{ref:v,className:G},r.default.createElement("label",h({},R,{className:Q,htmlFor:L.id||N,onMouseDown:function(ae){var ee=R==null?void 0:R.onMouseDown;return E&&W.create(ae,"dark"),typeof ee=="function"&&ee(ae)}}),r.default.createElement("input",h({},L,{ref:j,type:"checkbox",disabled:S,className:Z,id:L.id||N})),r.default.createElement("span",{className:J},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor",strokeWidth:1},r.default.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})))),w&&r.default.createElement("label",h({},T,{className:U,htmlFor:L.id||N}),w))});b.propTypes={color:n.default.oneOf(u.propTypesColor),label:u.propTypesLabel,icon:u.propTypesIcon,ripple:u.propTypesRipple,className:u.propTypesClassName,disabled:u.propTypesDisabled,containerProps:u.propTypesObject,labelProps:u.propTypesObject},b.displayName="MaterialTailwind.Checkbox";var m=b})(RX);var SX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,w){for(var _ in w)Object.defineProperty(d,_,{enumerable:!0,get:w[_]})}t(e,{Chip:function(){return f},default:function(){return v}});var r=y(O),n=y(et),o=rn,a=te,i=y(ct),s=y(dn),l=Je,c=y(wr),u=y(Ze),p=Ye,h=dP,g=y(n9);function x(){return x=Object.assign||function(d){for(var w=1;w=0)&&Object.prototype.propertyIsEnumerable.call(d,E)&&(_[E]=d[E])}return _}function m(d,w){if(d==null)return{};var _={},E=Object.keys(d),k,S;for(S=0;S=0)&&(_[k]=d[k]);return _}var f=r.default.forwardRef(function(d,w){var _=d.variant,E=d.size,k=d.color,S=d.icon,R=d.open,T=d.onClose,P=d.action,j=d.animate,L=d.className,D=d.value,B=b(d,["variant","size","color","icon","open","onClose","action","animate","className","value"]),V=(0,p.useTheme)().chip,q=V.defaultProps,z=V.valid,F=V.styles,N=F.base,W=F.variants,G=F.sizes;_=_??q.variant,E=E??q.size,k=k??q.color,L=L??q.className,j=j??q.animate,R=R??q.open,P=P??q.action,T=T??q.onClose;var Q=(0,u.default)(N.chip),Z=(0,u.default)(N.action),U=(0,u.default)(N.icon),J=(0,u.default)(W[(0,c.default)(z.variants,_,"filled")][(0,c.default)(z.colors,k,"blue")]),ae=(0,u.default)(G[(0,c.default)(z.sizes,E,"md")].chip),ee=(0,u.default)(G[(0,c.default)(z.sizes,E,"md")].action),se=(0,u.default)(G[(0,c.default)(z.sizes,E,"md")].icon),ue=(0,l.twMerge)((0,i.default)(Q,J,ae),L),we=(0,i.default)(Z,ee),Oe=(0,i.default)(U,se),Te=(0,i.default)({"ml-4":S&&E==="sm","ml-[18px]":S&&E==="md","ml-5":S&&E==="lg","mr-5":T}),Se={unmount:{opacity:0},mount:{opacity:1}},Pe=(0,s.default)(Se,j),Ie=r.default.createElement("div",{className:Oe},S),me=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(me,null,R&&r.default.createElement(o.m.div,x({},B,{ref:w,className:ue,initial:"unmount",exit:"unmount",animate:R?"mount":"unmount",variants:Pe}),S&&Ie,r.default.createElement("span",{className:Te},D),T&&!P&&r.default.createElement(g.default,{onClick:T,size:"sm",variant:"text",color:_==="outlined"||_==="ghost"?k:"white",className:we},r.default.createElement(a.XMarkIcon,{className:(0,i.default)({"h-3.5 w-3.5":E==="sm","h-4 w-4":E==="md","h-5 w-5":E==="lg"}),strokeWidth:2})),P||null)))});f.propTypes={variant:n.default.oneOf(h.propTypesVariant),size:n.default.oneOf(h.propTypesSize),color:n.default.oneOf(h.propTypesColor),icon:h.propTypesIcon,open:h.propTypesOpen,onClose:h.propTypesOnClose,action:h.propTypesAction,animate:h.propTypesAnimate,className:h.propTypesClassName,value:h.propTypesValue},f.displayName="MaterialTailwind.Chip";var v=f})(SX);var TX={},kFe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},yu=new WeakMap,am=new WeakMap,im={},jC=0,PX=function(e){return e&&(e.host||PX(e.parentNode))},RFe=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=PX(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},SFe=function(e,t,r,n){var o=RFe(t,Array.isArray(e)?e:[e]);im[r]||(im[r]=new WeakMap);var a=im[r],i=[],s=new Set,l=new Set(o),c=function(p){!p||s.has(p)||(s.add(p),c(p.parentNode))};o.forEach(c);var u=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(h){if(s.has(h))u(h);else{var g=h.getAttribute(n),x=g!==null&&g!=="false",y=(yu.get(h)||0)+1,b=(a.get(h)||0)+1;yu.set(h,y),a.set(h,b),i.push(h),y===1&&x&&am.set(h,!0),b===1&&h.setAttribute(r,"true"),x||h.setAttribute(n,"true")}})};return u(t),s.clear(),jC++,function(){i.forEach(function(p){var h=yu.get(p)-1,g=a.get(p)-1;yu.set(p,h),a.set(p,g),h||(am.has(p)||p.removeAttribute(n),am.delete(p)),g||p.removeAttribute(r)}),jC--,jC||(yu=new WeakMap,yu=new WeakMap,am=new WeakMap,im={})}},TFe=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||kFe(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),SFe(n,o,r,"aria-hidden")):function(){return null}};/*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE -*/var SFe=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],vR=SFe.join(","),MX=typeof Element>"u",o1=MX?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Hx=!MX&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Ux=function e(t,r){var n;r===void 0&&(r=!0);var o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),a=o===""||o==="true",i=a||r&&t&&e(t.parentNode);return i},TFe=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},PFe=function(t,r,n){if(Ux(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(vR));return r&&o1.call(t,vR)&&o.unshift(t),o=o.filter(n),o},MFe=function e(t,r,n){for(var o=[],a=Array.from(t);a.length;){var i=a.shift();if(!Ux(i,!1))if(i.tagName==="SLOT"){var s=i.assignedElements(),l=s.length?s:i.children,c=e(l,!0,n);n.flatten?o.push.apply(o,c):o.push({scopeParent:i,candidates:c})}else{var u=o1.call(i,vR);u&&n.filter(i)&&(r||!t.includes(i))&&o.push(i);var p=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),h=!Ux(p,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(p&&h){var g=e(p===!0?i.children:p.children,!0,n);n.flatten?o.push.apply(o,g):o.push({scopeParent:i,candidates:g})}else a.unshift.apply(a,i.children)}}return o},AX=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},jX=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||TFe(t))&&!AX(t)?0:t.tabIndex},AFe=function(t,r){var n=jX(t);return n<0&&r&&!AX(t)?0:n},jFe=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},IX=function(t){return t.tagName==="INPUT"},IFe=function(t){return IX(t)&&t.type==="hidden"},LFe=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},$Fe=function(t,r){for(var n=0;nsummary:first-of-type"),i=a?t.parentElement:t;if(o1.call(i,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof o=="function"){for(var s=t;t;){var l=t.parentElement,c=Hx(t);if(l&&!l.shadowRoot&&o(l)===!0)return oN(t);t.assignedSlot?t=t.assignedSlot:!l&&c!==t.ownerDocument?t=c.host:t=l}t=s}if(zFe(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return oN(t);return!1},VFe=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n=0)},WFe=function e(t){var r=[],n=[];return t.forEach(function(o,a){var i=!!o.scopeParent,s=i?o.scopeParent:o,l=AFe(s,i),c=i?e(o.candidates):s;l===0?i?r.push.apply(r,c):r.push(s):n.push({documentOrder:a,tabIndex:l,item:o,isScope:i,content:c})}),n.sort(jFe).reduce(function(o,a){return a.isScope?o.push.apply(o,a.content):o.push(a.content),o},[]).concat(r)},Wx=function(t,r){r=r||{};var n;return r.getShadowRoot?n=MFe([t],r.includeContainer,{filter:aN.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:UFe}):n=PFe(t,r.includeContainer,aN.bind(null,r)),WFe(n)};function pa(e){return e.split("-")[1]}function VP(e){return e==="y"?"height":"width"}function yo(e){return e.split("-")[0]}function Sl(e){return["top","bottom"].includes(yo(e))?"x":"y"}function iN(e,t,r){let{reference:n,floating:o}=e;const a=n.x+n.width/2-o.width/2,i=n.y+n.height/2-o.height/2,s=Sl(t),l=VP(s),c=n[l]/2-o[l]/2,u=s==="x";let p;switch(yo(t)){case"top":p={x:a,y:n.y-o.height};break;case"bottom":p={x:a,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:i};break;case"left":p={x:n.x-o.width,y:i};break;default:p={x:n.x,y:n.y}}switch(pa(t)){case"start":p[s]-=c*(r&&u?-1:1);break;case"end":p[s]+=c*(r&&u?-1:1)}return p}const qFe=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:p}=iN(c,n,l),h=n,g={},x=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s}=t,{element:l,padding:c=0}=Ea(e,t)||{};if(l==null)return{};const u=HP(c),p={x:r,y:n},h=Sl(o),g=VP(h),x=await i.getDimensions(l),y=h==="y",b=y?"top":"left",m=y?"bottom":"right",f=y?"clientHeight":"clientWidth",v=a.reference[g]+a.reference[h]-p[h]-a.floating[g],d=p[h]-a.reference[h],w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let _=w?w[f]:0;_&&await(i.isElement==null?void 0:i.isElement(w))||(_=s.floating[f]||a.floating[g]);const E=v/2-d/2,k=_/2-x[g]/2-1,S=gl(u[b],k),R=gl(u[m],k),T=S,P=_-x[g]-R,j=_/2-x[g]/2+E,L=bR(T,j,P),D=pa(o)!=null&&j!=L&&a.reference[g]/2-(je.concat(t,t+"-start",t+"-end"),[]),GFe={left:"right",right:"left",bottom:"top",top:"bottom"};function qx(e){return e.replace(/left|right|bottom|top/g,t=>GFe[t])}function $X(e,t,r){r===void 0&&(r=!1);const n=pa(e),o=Sl(e),a=VP(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=qx(i)),{main:i,cross:qx(i)}}const KFe={start:"end",end:"start"};function P6(e){return e.replace(/start|end/g,t=>KFe[t])}const YFe=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,o;const{rects:a,middlewareData:i,placement:s,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:p,allowedPlacements:h=lN,autoAlignment:g=!0,...x}=Ea(e,t),y=p!==void 0||h===lN?function(R,T,P){return(R?[...P.filter(j=>pa(j)===R),...P.filter(j=>pa(j)!==R)]:P.filter(j=>yo(j)===j)).filter(j=>!R||pa(j)===R||!!T&&P6(j)!==j)}(p||null,g,h):h,b=await qa(t,x),m=((r=i.autoPlacement)==null?void 0:r.index)||0,f=y[m];if(f==null)return{};const{main:v,cross:d}=$X(f,a,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(s!==f)return{reset:{placement:y[0]}};const w=[b[yo(f)],b[v],b[d]],_=[...((n=i.autoPlacement)==null?void 0:n.overflows)||[],{placement:f,overflows:w}],E=y[m+1];if(E)return{data:{index:m+1,overflows:_},reset:{placement:E}};const k=_.map(R=>{const T=pa(R.placement);return[R.placement,T&&u?R.overflows.slice(0,2).reduce((P,j)=>P+j,0):R.overflows[0],R.overflows]}).sort((R,T)=>R[1]-T[1]),S=((o=k.filter(R=>R[2].slice(0,pa(R[0])?2:3).every(T=>T<=0))[0])==null?void 0:o[0])||k[0][0];return S!==s?{data:{index:m+1,overflows:_},reset:{placement:S}}:{}}}},XFe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r;const{placement:n,middlewareData:o,rects:a,initialPlacement:i,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:x=!0,...y}=Ea(e,t),b=yo(n),m=yo(i)===i,f=await(s.isRTL==null?void 0:s.isRTL(l.floating)),v=p||(m||!x?[qx(i)]:function(T){const P=qx(T);return[P6(T),P,P6(P)]}(i));p||g==="none"||v.push(...function(T,P,j,L){const D=pa(T);let B=function(V,q,z){const F=["left","right"],N=["right","left"],W=["top","bottom"],G=["bottom","top"];switch(V){case"top":case"bottom":return z?q?N:F:q?F:N;case"left":case"right":return q?W:G;default:return[]}}(yo(T),j==="start",L);return D&&(B=B.map(V=>V+"-"+D),P&&(B=B.concat(B.map(P6)))),B}(i,x,g,f));const d=[i,...v],w=await qa(t,y),_=[];let E=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&_.push(w[b]),u){const{main:T,cross:P}=$X(n,a,f);_.push(w[T],w[P])}if(E=[...E,{placement:n,overflows:_}],!_.every(T=>T<=0)){var k,S;const T=(((k=o.flip)==null?void 0:k.index)||0)+1,P=d[T];if(P)return{data:{index:T,overflows:E},reset:{placement:P}};let j=(S=E.filter(L=>L.overflows[0]<=0).sort((L,D)=>L.overflows[1]-D.overflows[1])[0])==null?void 0:S.placement;if(!j)switch(h){case"bestFit":{var R;const L=(R=E.map(D=>[D.placement,D.overflows.filter(B=>B>0).reduce((B,V)=>B+V,0)]).sort((D,B)=>D[1]-B[1])[0])==null?void 0:R[0];L&&(j=L);break}case"initialPlacement":j=i}if(n!==j)return{reset:{placement:j}}}return{}}}};function cN(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function uN(e){return LX.some(t=>e[t]>=0)}const ZFe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ea(e,t);switch(n){case"referenceHidden":{const a=cN(await qa(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:uN(a)}}}case"escaped":{const a=cN(await qa(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:a,escaped:uN(a)}}}default:return{}}}}};function dN(e){const t=gl(...e.map(n=>n.left)),r=gl(...e.map(n=>n.top));return{x:t,y:r,width:za(...e.map(n=>n.right))-t,height:za(...e.map(n=>n.bottom))-r}}const QFe=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:r,elements:n,rects:o,platform:a,strategy:i}=t,{padding:s=2,x:l,y:c}=Ea(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(n.reference))||[]),p=function(y){const b=y.slice().sort((v,d)=>v.y-d.y),m=[];let f=null;for(let v=0;vf.height/2?m.push([d]):m[m.length-1].push(d),f=d}return m.map(v=>Gd(dN(v)))}(u),h=Gd(dN(u)),g=HP(s),x=await a.getElementRects({reference:{getBoundingClientRect:function(){if(p.length===2&&p[0].left>p[1].right&&l!=null&&c!=null)return p.find(y=>l>y.left-g.left&&ly.top-g.top&&c=2){if(Sl(r)==="x"){const w=p[0],_=p[p.length-1],E=yo(r)==="top",k=w.top,S=_.bottom,R=E?w.left:_.left,T=E?w.right:_.right;return{top:k,bottom:S,left:R,right:T,width:T-R,height:S-k,x:R,y:k}}const y=yo(r)==="left",b=za(...p.map(w=>w.right)),m=gl(...p.map(w=>w.left)),f=p.filter(w=>y?w.left===m:w.right===b),v=f[0].top,d=f[f.length-1].bottom;return{top:v,bottom:d,left:m,right:b,width:b-m,height:d-v,x:m,y:v}}return h}},floating:n.floating,strategy:i});return o.reference.x!==x.reference.x||o.reference.y!==x.reference.y||o.reference.width!==x.reference.width||o.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}},NX=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,o=await async function(a,i){const{placement:s,platform:l,elements:c}=a,u=await(l.isRTL==null?void 0:l.isRTL(c.floating)),p=yo(s),h=pa(s),g=Sl(s)==="x",x=["left","top"].includes(p)?-1:1,y=u&&g?-1:1,b=Ea(i,a);let{mainAxis:m,crossAxis:f,alignmentAxis:v}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...b};return h&&typeof v=="number"&&(f=h==="end"?-1*v:v),g?{x:f*y,y:m*x}:{x:m*x,y:f*y}}(t,e);return{x:r+o.x,y:n+o.y,data:o}}}};function DX(e){return e==="x"?"y":"x"}const JFe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:b=>{let{x:m,y:f}=b;return{x:m,y:f}}},...l}=Ea(e,t),c={x:r,y:n},u=await qa(t,l),p=Sl(yo(o)),h=DX(p);let g=c[p],x=c[h];if(a){const b=p==="y"?"bottom":"right";g=bR(g+u[p==="y"?"top":"left"],g,g-u[b])}if(i){const b=h==="y"?"bottom":"right";x=bR(x+u[h==="y"?"top":"left"],x,x-u[b])}const y=s.fn({...t,[p]:g,[h]:x});return{...y,data:{x:y.x-r,y:y.y-n}}}}},eze=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Ea(e,t),u={x:r,y:n},p=Sl(o),h=DX(p);let g=u[p],x=u[h];const y=Ea(s,t),b=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const v=p==="y"?"height":"width",d=a.reference[p]-a.floating[v]+b.mainAxis,w=a.reference[p]+a.reference[v]-b.mainAxis;gw&&(g=w)}if(c){var m,f;const v=p==="y"?"width":"height",d=["top","left"].includes(yo(o)),w=a.reference[h]-a.floating[v]+(d&&((m=i.offset)==null?void 0:m[h])||0)+(d?0:b.crossAxis),_=a.reference[h]+a.reference[v]+(d?0:((f=i.offset)==null?void 0:f[h])||0)-(d?b.crossAxis:0);x_&&(x=_)}return{[p]:g,[h]:x}}}},tze=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:a}=t,{apply:i=()=>{},...s}=Ea(e,t),l=await qa(t,s),c=yo(r),u=pa(r),p=Sl(r)==="x",{width:h,height:g}=n.floating;let x,y;c==="top"||c==="bottom"?(x=c,y=u===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(y=c,x=u==="end"?"top":"bottom");const b=g-l[x],m=h-l[y],f=!t.middlewareData.shift;let v=b,d=m;if(p){const _=h-l.left-l.right;d=u||f?gl(m,_):_}else{const _=g-l.top-l.bottom;v=u||f?gl(b,_):_}if(f&&!u){const _=za(l.left,0),E=za(l.right,0),k=za(l.top,0),S=za(l.bottom,0);p?d=h-2*(_!==0||E!==0?_+E:za(l.left,l.right)):v=g-2*(k!==0||S!==0?k+S:za(l.top,l.bottom))}await i({...t,availableWidth:d,availableHeight:v});const w=await o.getDimensions(a.floating);return h!==w.width||g!==w.height?{reset:{rects:!0}}:{}}}};function go(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ja(e){return go(e).getComputedStyle(e)}function FX(e){return e instanceof go(e).Node}function vl(e){return FX(e)?(e.nodeName||"").toLowerCase():"#document"}function Ca(e){return e instanceof HTMLElement||e instanceof go(e).HTMLElement}function fN(e){return typeof ShadowRoot<"u"&&(e instanceof go(e).ShadowRoot||e instanceof ShadowRoot)}function a1(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Ja(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function rze(e){return["table","td","th"].includes(vl(e))}function yR(e){const t=UP(),r=Ja(e);return r.transform!=="none"||r.perspective!=="none"||!!r.containerType&&r.containerType!=="normal"||!t&&!!r.backdropFilter&&r.backdropFilter!=="none"||!t&&!!r.filter&&r.filter!=="none"||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function UP(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function o9(e){return["html","body","#document"].includes(vl(e))}const wR=Math.min,yd=Math.max,Gx=Math.round,sm=Math.floor,bl=e=>({x:e,y:e});function zX(e){const t=Ja(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ca(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=Gx(r)!==a||Gx(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function Ni(e){return e instanceof Element||e instanceof go(e).Element}function WP(e){return Ni(e)?e:e.contextElement}function wd(e){const t=WP(e);if(!Ca(t))return bl(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=zX(t);let i=(a?Gx(r.width):r.width)/n,s=(a?Gx(r.height):r.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const nze=bl(0);function BX(e){const t=go(e);return UP()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:nze}function Lc(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=WP(e);let i=bl(1);t&&(n?Ni(n)&&(i=wd(n)):i=wd(e));const s=function(h,g,x){return g===void 0&&(g=!1),!(!x||g&&x!==go(h))&&g}(a,r,n)?BX(a):bl(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,p=o.height/i.y;if(a){const h=go(a),g=n&&Ni(n)?go(n):n;let x=h.frameElement;for(;x&&n&&g!==h;){const y=wd(x),b=x.getBoundingClientRect(),m=getComputedStyle(x),f=b.left+(x.clientLeft+parseFloat(m.paddingLeft))*y.x,v=b.top+(x.clientTop+parseFloat(m.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,p*=y.y,l+=f,c+=v,x=go(x).frameElement}}return Gd({width:u,height:p,x:l,y:c})}function a9(e){return Ni(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Di(e){var t;return(t=(FX(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function VX(e){return Lc(Di(e)).left+a9(e).scrollLeft}function Kd(e){if(vl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fN(e)&&e.host||Di(e);return fN(t)?t.host:t}function HX(e){const t=Kd(e);return o9(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ca(t)&&a1(t)?t:HX(t)}function el(e,t){var r;t===void 0&&(t=[]);const n=HX(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=go(n);return o?t.concat(a,a.visualViewport||[],a1(n)?n:[]):t.concat(n,el(n))}function hN(e,t,r){let n;if(t==="viewport")n=function(o,a){const i=go(o),s=Di(o),l=i.visualViewport;let c=s.clientWidth,u=s.clientHeight,p=0,h=0;if(l){c=l.width,u=l.height;const g=UP();(!g||g&&a==="fixed")&&(p=l.offsetLeft,h=l.offsetTop)}return{width:c,height:u,x:p,y:h}}(e,r);else if(t==="document")n=function(o){const a=Di(o),i=a9(o),s=o.ownerDocument.body,l=yd(a.scrollWidth,a.clientWidth,s.scrollWidth,s.clientWidth),c=yd(a.scrollHeight,a.clientHeight,s.scrollHeight,s.clientHeight);let u=-i.scrollLeft+VX(o);const p=-i.scrollTop;return Ja(s).direction==="rtl"&&(u+=yd(a.clientWidth,s.clientWidth)-l),{width:l,height:c,x:u,y:p}}(Di(e));else if(Ni(t))n=function(o,a){const i=Lc(o,!0,a==="fixed"),s=i.top+o.clientTop,l=i.left+o.clientLeft,c=Ca(o)?wd(o):bl(1);return{width:o.clientWidth*c.x,height:o.clientHeight*c.y,x:l*c.x,y:s*c.y}}(t,r);else{const o=BX(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return Gd(n)}function UX(e,t){const r=Kd(e);return!(r===t||!Ni(r)||o9(r))&&(Ja(r).position==="fixed"||UX(r,t))}function oze(e,t,r){const n=Ca(t),o=Di(t),a=r==="fixed",i=Lc(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=bl(0);if(n||!n&&!a)if((vl(t)!=="body"||a1(o))&&(s=a9(t)),Ca(t)){const c=Lc(t,!0,a,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else o&&(l.x=VX(o));return{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function pN(e,t){return Ca(e)&&Ja(e).position!=="fixed"?t?t(e):e.offsetParent:null}function mN(e,t){const r=go(e);if(!Ca(e))return r;let n=pN(e,t);for(;n&&rze(n)&&Ja(n).position==="static";)n=pN(n,t);return n&&(vl(n)==="html"||vl(n)==="body"&&Ja(n).position==="static"&&!yR(n))?r:n||function(o){let a=Kd(o);for(;Ca(a)&&!o9(a);){if(yR(a))return a;a=Kd(a)}return null}(e)||r}const WX={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=Ca(r),a=Di(r);if(r===a)return t;let i={scrollLeft:0,scrollTop:0},s=bl(1);const l=bl(0);if((o||!o&&n!=="fixed")&&((vl(r)!=="body"||a1(a))&&(i=a9(r)),Ca(r))){const c=Lc(r);s=wd(r),l.x=c.x+r.clientLeft,l.y=c.y+r.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-i.scrollLeft*s.x+l.x,y:t.y*s.y-i.scrollTop*s.y+l.y}},getDocumentElement:Di,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?function(l,c){const u=c.get(l);if(u)return u;let p=el(l).filter(y=>Ni(y)&&vl(y)!=="body"),h=null;const g=Ja(l).position==="fixed";let x=g?Kd(l):l;for(;Ni(x)&&!o9(x);){const y=Ja(x),b=yR(x);b||y.position!=="fixed"||(h=null),(g?!b&&!h:!b&&y.position==="static"&&h&&["absolute","fixed"].includes(h.position)||a1(x)&&!b&&UX(l,x))?p=p.filter(m=>m!==x):h=y,x=Kd(x)}return c.set(l,p),p}(t,this._c):[].concat(r),n],i=a[0],s=a.reduce((l,c)=>{const u=hN(t,c,o);return l.top=yd(u.top,l.top),l.right=wR(u.right,l.right),l.bottom=wR(u.bottom,l.bottom),l.left=yd(u.left,l.left),l},hN(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:mN,getElementRects:async function(e){let{reference:t,floating:r,strategy:n}=e;const o=this.getOffsetParent||mN,a=this.getDimensions;return{reference:oze(t,await o(r),n),floating:{x:0,y:0,...await a(r)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return zX(e)},getScale:wd,isElement:Ni,isRTL:function(e){return getComputedStyle(e).direction==="rtl"}};function aze(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=WP(e),u=o||a?[...c?el(c):[],...el(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),a&&b.addEventListener("resize",r)});const p=c&&s?function(b,m){let f,v=null;const d=Di(b);function w(){clearTimeout(f),v&&v.disconnect(),v=null}return function _(E,k){E===void 0&&(E=!1),k===void 0&&(k=1),w();const{left:S,top:R,width:T,height:P}=b.getBoundingClientRect();if(E||m(),!T||!P)return;const j={rootMargin:-sm(R)+"px "+-sm(d.clientWidth-(S+T))+"px "+-sm(d.clientHeight-(R+P))+"px "+-sm(S)+"px",threshold:yd(0,wR(1,k))||1};let L=!0;function D(B){const V=B[0].intersectionRatio;if(V!==k){if(!L)return _();V?_(!1,V):f=setTimeout(()=>{_(!1,1e-7)},100)}L=!1}try{v=new IntersectionObserver(D,{...j,root:d.ownerDocument})}catch{v=new IntersectionObserver(D,j)}v.observe(b)}(!0),w}(c,r):null;let h,g=-1,x=null;i&&(x=new ResizeObserver(b=>{let[m]=b;m&&m.target===c&&x&&(x.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{x&&x.observe(t)})),r()}),c&&!l&&x.observe(c),x.observe(t));let y=l?Lc(e):null;return l&&function b(){const m=Lc(e);!y||m.x===y.x&&m.y===y.y&&m.width===y.width&&m.height===y.height||r(),y=m,h=requestAnimationFrame(b)}(),r(),()=>{u.forEach(b=>{o&&b.removeEventListener("scroll",r),a&&b.removeEventListener("resize",r)}),p&&p(),x&&x.disconnect(),x=null,l&&cancelAnimationFrame(h)}}const qX=(e,t,r)=>{const n=new Map,o={platform:WX,...r},a={...o.platform,_c:n};return qFe(e,t,{...o,platform:a})},ize=e=>{const{element:t,padding:r}=e;function n(o){return Object.prototype.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){return n(t)?t.current!=null?sN({element:t.current,padding:r}).fn(o):{}:t?sN({element:t,padding:r}).fn(o):{}}}};var M6=typeof document<"u"?O.useLayoutEffect:O.useEffect;function Kx(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Kx(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Kx(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function gN(e){const t=O.useRef(e);return M6(()=>{t.current=e}),t}function sze(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,whileElementsMounted:a,open:i}=e,[s,l]=O.useState({x:null,y:null,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[c,u]=O.useState(n);Kx(c,n)||u(n);const p=O.useRef(null),h=O.useRef(null),g=O.useRef(s),x=gN(a),y=gN(o),[b,m]=O.useState(null),[f,v]=O.useState(null),d=O.useCallback(R=>{p.current!==R&&(p.current=R,m(R))},[]),w=O.useCallback(R=>{h.current!==R&&(h.current=R,v(R))},[]),_=O.useCallback(()=>{if(!p.current||!h.current)return;const R={placement:t,strategy:r,middleware:c};y.current&&(R.platform=y.current),qX(p.current,h.current,R).then(T=>{const P={...T,isPositioned:!0};E.current&&!Kx(g.current,P)&&(g.current=P,Zo.flushSync(()=>{l(P)}))})},[c,t,r,y]);M6(()=>{i===!1&&g.current.isPositioned&&(g.current.isPositioned=!1,l(R=>({...R,isPositioned:!1})))},[i]);const E=O.useRef(!1);M6(()=>(E.current=!0,()=>{E.current=!1}),[]),M6(()=>{if(b&&f){if(x.current)return x.current(b,f,_);_()}},[b,f,_,x]);const k=O.useMemo(()=>({reference:p,floating:h,setReference:d,setFloating:w}),[d,w]),S=O.useMemo(()=>({reference:b,floating:f}),[b,f]);return O.useMemo(()=>({...s,update:_,refs:k,elements:S,reference:d,floating:w}),[s,_,k,S,d,w])}var Cr=typeof document<"u"?O.useLayoutEffect:O.useEffect;let IC=!1,lze=0;const vN=()=>"floating-ui-"+lze++;function cze(){const[e,t]=O.useState(()=>IC?vN():void 0);return Cr(()=>{e==null&&t(vN())},[]),O.useEffect(()=>{IC||(IC=!0)},[]),e}const uze=JS["useId".toString()],i1=uze||cze;function GX(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(n=>n!==r))}}}const KX=O.createContext(null),YX=O.createContext(null),vf=()=>{var e;return((e=O.useContext(KX))==null?void 0:e.id)||null},Jc=()=>O.useContext(YX),dze=e=>{const t=i1(),r=Jc(),n=vf(),o=e||n;return Cr(()=>{const a={id:t,parentId:o};return r==null||r.addNode(a),()=>{r==null||r.removeNode(a)}},[r,t,o]),t},fze=e=>{let{children:t,id:r}=e;const n=vf();return O.createElement(KX.Provider,{value:O.useMemo(()=>({id:r,parentId:n}),[r,n])},t)},hze=e=>{let{children:t}=e;const r=O.useRef([]),n=O.useCallback(i=>{r.current=[...r.current,i]},[]),o=O.useCallback(i=>{r.current=r.current.filter(s=>s!==i)},[]),a=O.useState(()=>GX())[0];return O.createElement(YX.Provider,{value:O.useMemo(()=>({nodesRef:r,addNode:n,removeNode:o,events:a}),[r,n,o,a])},t)};function Xn(e){return(e==null?void 0:e.ownerDocument)||document}function qP(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function XX(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function GP(e){return Xn(e).defaultView||window}function Uo(e){return e?e instanceof GP(e).Element:!1}function $c(e){return e?e instanceof GP(e).HTMLElement:!1}function pze(e){if(typeof ShadowRoot>"u")return!1;const t=GP(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ZX(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(qP())||t.test(XX()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function QX(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function xR(){return/apple/i.test(navigator.vendor)}function JX(){return qP().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Yx(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function Wo(e){const t=O.useRef(e);return Cr(()=>{t.current=e}),t}const bN="data-floating-ui-safe-polygon";function A6(e,t,r){return r&&!Yx(r)?0:typeof e=="number"?e:e==null?void 0:e[t]}const mze=function(e,t){let{enabled:r=!0,delay:n=0,handleClose:o=null,mouseOnly:a=!1,restMs:i=0,move:s=!0}=t===void 0?{}:t;const{open:l,onOpenChange:c,dataRef:u,events:p,elements:{domReference:h,floating:g},refs:x}=e,y=Jc(),b=vf(),m=Wo(o),f=Wo(n),v=O.useRef(),d=O.useRef(),w=O.useRef(),_=O.useRef(),E=O.useRef(!0),k=O.useRef(!1),S=O.useRef(()=>{}),R=O.useCallback(()=>{var L;const D=(L=u.current.openEvent)==null?void 0:L.type;return(D==null?void 0:D.includes("mouse"))&&D!=="mousedown"},[u]);O.useEffect(()=>{if(!r)return;function L(){clearTimeout(d.current),clearTimeout(_.current),E.current=!0}return p.on("dismiss",L),()=>{p.off("dismiss",L)}},[r,p]),O.useEffect(()=>{if(!r||!m.current||!l)return;function L(){R()&&c(!1)}const D=Xn(g).documentElement;return D.addEventListener("mouseleave",L),()=>{D.removeEventListener("mouseleave",L)}},[g,l,c,r,m,u,R]);const T=O.useCallback(function(L){L===void 0&&(L=!0);const D=A6(f.current,"close",v.current);D&&!w.current?(clearTimeout(d.current),d.current=setTimeout(()=>c(!1),D)):L&&(clearTimeout(d.current),c(!1))},[f,c]),P=O.useCallback(()=>{S.current(),w.current=void 0},[]),j=O.useCallback(()=>{if(k.current){const L=Xn(x.floating.current).body;L.style.pointerEvents="",L.removeAttribute(bN),k.current=!1}},[x]);return O.useEffect(()=>{if(!r)return;function L(){return u.current.openEvent?["click","mousedown"].includes(u.current.openEvent.type):!1}function D(q){if(clearTimeout(d.current),E.current=!1,a&&!Yx(v.current)||i>0&&A6(f.current,"open")===0)return;u.current.openEvent=q;const z=A6(f.current,"open",v.current);z?d.current=setTimeout(()=>{c(!0)},z):c(!0)}function B(q){if(L())return;S.current();const z=Xn(g);if(clearTimeout(_.current),m.current){l||clearTimeout(d.current),w.current=m.current({...e,tree:y,x:q.clientX,y:q.clientY,onClose(){j(),P(),T()}});const F=w.current;z.addEventListener("mousemove",F),S.current=()=>{z.removeEventListener("mousemove",F)};return}T()}function V(q){L()||m.current==null||m.current({...e,tree:y,x:q.clientX,y:q.clientY,onClose(){j(),P(),T()}})(q)}if(Uo(h)){const q=h;return l&&q.addEventListener("mouseleave",V),g==null||g.addEventListener("mouseleave",V),s&&q.addEventListener("mousemove",D,{once:!0}),q.addEventListener("mouseenter",D),q.addEventListener("mouseleave",B),()=>{l&&q.removeEventListener("mouseleave",V),g==null||g.removeEventListener("mouseleave",V),s&&q.removeEventListener("mousemove",D),q.removeEventListener("mouseenter",D),q.removeEventListener("mouseleave",B)}}},[h,g,r,e,a,i,s,T,P,j,c,l,y,f,m,u]),Cr(()=>{var L;if(r&&l&&(L=m.current)!=null&&L.__options.blockPointerEvents&&R()){const V=Xn(g).body;if(V.setAttribute(bN,""),V.style.pointerEvents="none",k.current=!0,Uo(h)&&g){var D,B;const q=h,z=y==null||(D=y.nodesRef.current.find(F=>F.id===b))==null||(B=D.context)==null?void 0:B.elements.floating;return z&&(z.style.pointerEvents=""),q.style.pointerEvents="auto",g.style.pointerEvents="auto",()=>{q.style.pointerEvents="",g.style.pointerEvents=""}}}},[r,l,b,g,h,y,m,u,R]),Cr(()=>{l||(v.current=void 0,P(),j())},[l,P,j]),O.useEffect(()=>()=>{P(),clearTimeout(d.current),clearTimeout(_.current),j()},[r,P,j]),O.useMemo(()=>{if(!r)return{};function L(D){v.current=D.pointerType}return{reference:{onPointerDown:L,onPointerEnter:L,onMouseMove(){l||i===0||(clearTimeout(_.current),_.current=setTimeout(()=>{E.current||c(!0)},i))}},floating:{onMouseEnter(){clearTimeout(d.current)},onMouseLeave(){p.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),T(!1)}}}},[p,r,i,l,c,T])},eZ=O.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),tZ=()=>O.useContext(eZ),gze=e=>{let{children:t,delay:r,timeoutMs:n=0}=e;const[o,a]=O.useReducer((l,c)=>({...l,...c}),{delay:r,timeoutMs:n,initialDelay:r,currentId:null,isInstantPhase:!1}),i=O.useRef(null),s=O.useCallback(l=>{a({currentId:l})},[]);return Cr(()=>{o.currentId?i.current===null?i.current=o.currentId:a({isInstantPhase:!0}):(a({isInstantPhase:!1}),i.current=null)},[o.currentId]),O.createElement(eZ.Provider,{value:O.useMemo(()=>({...o,setState:a,setCurrentId:s}),[o,a,s])},t)},vze=(e,t)=>{let{open:r,onOpenChange:n}=e,{id:o}=t;const{currentId:a,setCurrentId:i,initialDelay:s,setState:l,timeoutMs:c}=tZ();O.useEffect(()=>{a&&(l({delay:{open:1,close:A6(s,"close")}}),a!==o&&n(!1))},[o,n,l,a,s]),O.useEffect(()=>{function u(){n(!1),l({delay:s,currentId:null})}if(!r&&a===o)if(c){const p=window.setTimeout(u,c);return()=>{clearTimeout(p)}}else u()},[r,l,a,o,n,s,c]),O.useEffect(()=>{r&&i(o)},[r,i,o])};function s1(){return s1=Object.assign||function(e){for(var t=1;te==null?void 0:e.focus({preventScroll:r});o?a():yN=requestAnimationFrame(a)}function bze(e,t){var r;let n=[],o=(r=e.find(a=>a.id===t))==null?void 0:r.parentId;for(;o;){const a=e.find(i=>i.id===o);o=a==null?void 0:a.parentId,a&&(n=n.concat(a))}return n}function mp(e,t){let r=e.filter(o=>{var a;return o.parentId===t&&((a=o.context)==null?void 0:a.open)})||[],n=r;for(;n.length;)n=e.filter(o=>{var a;return(a=n)==null?void 0:a.some(i=>{var s;return o.parentId===i.id&&((s=o.context)==null?void 0:s.open)})})||[],r=r.concat(n);return r}function i9(e){return"composedPath"in e?e.composedPath()[0]:e.target}const yze="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function rZ(e){return $c(e)&&e.matches(yze)}function No(e){e.preventDefault(),e.stopPropagation()}const Xx=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function nZ(e,t){const r=Wx(e,Xx());t==="prev"&&r.reverse();const n=r.indexOf(Nc(Xn(e)));return r.slice(n+1)[0]}function oZ(){return nZ(document.body,"next")}function aZ(){return nZ(document.body,"prev")}function gp(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!Wn(r,n)}function wze(e){Wx(e,Xx()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function xze(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const _ze=JS["useInsertionEffect".toString()],Eze=_ze||(e=>e());function bf(e){const t=O.useRef(()=>{});return Eze(()=>{t.current=e}),O.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o(xR()&&a("button"),document.addEventListener("keydown",wN),()=>{document.removeEventListener("keydown",wN)}),[]),O.createElement("span",s1({},t,{ref:r,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,"data-floating-ui-focus-guard":"",style:KP,onFocus:i=>{xR()&&JX()&&!Cze(i)?(i.persist(),YP=window.setTimeout(()=>{n(i)},50)):n(i)}}))}),iZ=O.createContext(null),sZ=function(e){let{id:t,enabled:r=!0}=e===void 0?{}:e;const[n,o]=O.useState(null),a=i1(),i=lZ();return Cr(()=>{if(!r)return;const s=t?document.getElementById(t):null;if(s)s.setAttribute("data-floating-ui-portal",""),o(s);else{const l=document.createElement("div");t!==""&&(l.id=t||a),l.setAttribute("data-floating-ui-portal",""),o(l);const c=(i==null?void 0:i.portalNode)||document.body;return c.appendChild(l),()=>{c.removeChild(l)}}},[t,i,a,r]),n},Oze=e=>{let{children:t,id:r,root:n=null,preserveTabOrder:o=!0}=e;const a=sZ({id:r,enabled:!n}),[i,s]=O.useState(null),l=O.useRef(null),c=O.useRef(null),u=O.useRef(null),p=O.useRef(null),h=!!i&&!i.modal&&!!(n||a)&&o;return O.useEffect(()=>{if(!a||!o||i!=null&&i.modal)return;function g(x){a&&gp(x)&&(x.type==="focusin"?xze:wze)(a)}return a.addEventListener("focusin",g,!0),a.addEventListener("focusout",g,!0),()=>{a.removeEventListener("focusin",g,!0),a.removeEventListener("focusout",g,!0)}},[a,o,i==null?void 0:i.modal]),O.createElement(iZ.Provider,{value:O.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:u,afterInsideRef:p,portalNode:a,setFocusManagerState:s}),[o,a])},h&&a&&O.createElement(Zx,{"data-type":"outside",ref:l,onFocus:g=>{if(gp(g,a)){var x;(x=u.current)==null||x.focus()}else{const y=aZ()||(i==null?void 0:i.refs.domReference.current);y==null||y.focus()}}}),h&&a&&O.createElement("span",{"aria-owns":a.id,style:KP}),n?Zo.createPortal(t,n):a?Zo.createPortal(t,a):null,h&&a&&O.createElement(Zx,{"data-type":"outside",ref:c,onFocus:g=>{if(gp(g,a)){var x;(x=p.current)==null||x.focus()}else{const y=oZ()||(i==null?void 0:i.refs.domReference.current);y==null||y.focus(),i!=null&&i.closeOnFocusOut&&(i==null||i.onOpenChange(!1))}}}))},lZ=()=>O.useContext(iZ),kze=O.forwardRef(function(t,r){return O.createElement("button",s1({},t,{type:"button",ref:r,tabIndex:-1,style:KP}))});function Rze(e){let{context:t,children:r,order:n=["content"],guards:o=!0,initialFocus:a=0,returnFocus:i=!0,modal:s=!0,visuallyHiddenDismiss:l=!1,closeOnFocusOut:c=!0}=e;const{refs:u,nodeId:p,onOpenChange:h,events:g,dataRef:x,elements:{domReference:y,floating:b}}=t,m=Wo(n),f=Jc(),v=lZ(),[d,w]=O.useState(null),_=typeof a=="number"&&a<0,E=O.useRef(null),k=O.useRef(null),S=O.useRef(!1),R=O.useRef(null),T=O.useRef(!1),P=v!=null,j=y&&y.getAttribute("role")==="combobox"&&rZ(y),L=O.useCallback(function(q){return q===void 0&&(q=b),q?Wx(q,Xx()):[]},[b]),D=O.useCallback(q=>{const z=L(q);return m.current.map(F=>y&&F==="reference"?y:b&&F==="floating"?b:z).filter(Boolean).flat()},[y,b,m,L]);O.useEffect(()=>{if(!s)return;function q(F){if(F.key==="Tab"){L().length===0&&!j&&No(F);const N=D(),W=i9(F);m.current[0]==="reference"&&W===y&&(No(F),F.shiftKey?xs(N[N.length-1]):xs(N[1])),m.current[1]==="floating"&&W===b&&F.shiftKey&&(No(F),xs(N[0]))}}const z=Xn(b);return z.addEventListener("keydown",q),()=>{z.removeEventListener("keydown",q)}},[y,b,s,m,u,j,L,D]),O.useEffect(()=>{if(!c)return;function q(){T.current=!0,setTimeout(()=>{T.current=!1})}function z(F){const N=F.relatedTarget,W=!(Wn(y,N)||Wn(b,N)||Wn(N,b)||Wn(v==null?void 0:v.portalNode,N)||N!=null&&N.hasAttribute("data-floating-ui-focus-guard")||f&&(mp(f.nodesRef.current,p).find(G=>{var Q,Z;return Wn((Q=G.context)==null?void 0:Q.elements.floating,N)||Wn((Z=G.context)==null?void 0:Z.elements.domReference,N)})||bze(f.nodesRef.current,p).find(G=>{var Q,Z;return((Q=G.context)==null?void 0:Q.elements.floating)===N||((Z=G.context)==null?void 0:Z.elements.domReference)===N})));N&&W&&!T.current&&N!==R.current&&(S.current=!0,setTimeout(()=>h(!1)))}if(b&&$c(y))return y.addEventListener("focusout",z),y.addEventListener("pointerdown",q),!s&&b.addEventListener("focusout",z),()=>{y.removeEventListener("focusout",z),y.removeEventListener("pointerdown",q),!s&&b.removeEventListener("focusout",z)}},[y,b,s,p,f,v,h,c]),O.useEffect(()=>{var q;const z=Array.from((v==null||(q=v.portalNode)==null?void 0:q.querySelectorAll("[data-floating-ui-portal]"))||[]);function F(){return[E.current,k.current].filter(Boolean)}if(b&&s){const N=[b,...z,...F()],W=RFe(m.current.includes("reference")||j?N.concat(y||[]):N);return()=>{W()}}},[y,b,s,m,v,j]),O.useEffect(()=>{if(s&&!o&&b){const q=[],z=Xx(),F=Wx(Xn(b).body,z),N=D(),W=F.filter(G=>!N.includes(G));return W.forEach((G,Q)=>{q[Q]=G.getAttribute("tabindex"),G.setAttribute("tabindex","-1")}),()=>{W.forEach((G,Q)=>{const Z=q[Q];Z==null?G.removeAttribute("tabindex"):G.setAttribute("tabindex",Z)})}}},[b,s,o,D]),Cr(()=>{if(!b)return;const q=Xn(b);let z=i,F=!1;const N=Nc(q),W=x.current;R.current=N;const G=D(b),Q=(typeof a=="number"?G[a]:a.current)||b;!_&&xs(Q,{preventScroll:Q===b});function Z(U){if(U.type==="escapeKey"&&u.domReference.current&&(R.current=u.domReference.current),["referencePress","escapeKey"].includes(U.type))return;const J=U.data.returnFocus;typeof J=="object"?(z=!0,F=J.preventScroll):z=J}return g.on("dismiss",Z),()=>{if(g.off("dismiss",Z),Wn(b,Nc(q))&&u.domReference.current&&(R.current=u.domReference.current),z&&$c(R.current)&&!S.current)if(!u.domReference.current||T.current)xs(R.current,{cancelPrevious:!1,preventScroll:F});else{var U;W.__syncReturnFocus=!0,(U=R.current)==null||U.focus({preventScroll:F}),setTimeout(()=>{delete W.__syncReturnFocus})}}},[b,D,a,i,x,u,g,_]),Cr(()=>{if(v)return v.setFocusManagerState({...t,modal:s,closeOnFocusOut:c}),()=>{v.setFocusManagerState(null)}},[v,s,c,t]),Cr(()=>{if(_||!b)return;function q(){w(L().length)}if(q(),typeof MutationObserver=="function"){const z=new MutationObserver(q);return z.observe(b,{childList:!0,subtree:!0}),()=>{z.disconnect()}}},[b,L,_,u]);const B=o&&(P||s)&&!j;function V(q){return l&&s?O.createElement(kze,{ref:q==="start"?E:k,onClick:()=>h(!1)},typeof l=="string"?l:"Dismiss"):null}return O.createElement(O.Fragment,null,B&&O.createElement(Zx,{"data-type":"inside",ref:v==null?void 0:v.beforeInsideRef,onFocus:q=>{if(s){const F=D();xs(n[0]==="reference"?F[0]:F[F.length-1])}else if(v!=null&&v.preserveTabOrder&&v.portalNode)if(S.current=!1,gp(q,v.portalNode)){const F=oZ()||y;F==null||F.focus()}else{var z;(z=v.beforeOutsideRef.current)==null||z.focus()}}}),j?null:V("start"),O.cloneElement(r,d===0||n.includes("floating")?{tabIndex:0}:{}),V("end"),B&&O.createElement(Zx,{"data-type":"inside",ref:v==null?void 0:v.afterInsideRef,onFocus:q=>{if(s)xs(D()[0]);else if(v!=null&&v.preserveTabOrder&&v.portalNode)if(S.current=!0,gp(q,v.portalNode)){const F=aZ()||y;F==null||F.focus()}else{var z;(z=v.afterOutsideRef.current)==null||z.focus()}}}))}const lm="data-floating-ui-scroll-lock",Sze=O.forwardRef(function(t,r){let{lockScroll:n=!1,...o}=t;return Cr(()=>{var a,i;if(!n||document.body.hasAttribute(lm))return;document.body.setAttribute(lm,"");const c=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",u=window.innerWidth-document.documentElement.clientWidth;if(!/iP(hone|ad|od)|iOS/.test(qP()))return Object.assign(document.body.style,{overflow:"hidden",[c]:u+"px"}),()=>{document.body.removeAttribute(lm),Object.assign(document.body.style,{overflow:"",[c]:""})};const p=((a=window.visualViewport)==null?void 0:a.offsetLeft)||0,h=((i=window.visualViewport)==null?void 0:i.offsetTop)||0,g=window.pageXOffset,x=window.pageYOffset;return Object.assign(document.body.style,{position:"fixed",overflow:"hidden",top:-(x-Math.floor(h))+"px",left:-(g-Math.floor(p))+"px",right:"0",[c]:u+"px"}),()=>{Object.assign(document.body.style,{position:"",overflow:"",top:"",left:"",right:"",[c]:""}),document.body.removeAttribute(lm),window.scrollTo(g,x)}},[n]),O.createElement("div",s1({ref:r},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function xN(e){return $c(e.target)&&e.target.tagName==="BUTTON"}function _N(e){return rZ(e)}const Tze=function(e,t){let{open:r,onOpenChange:n,dataRef:o,elements:{domReference:a}}=e,{enabled:i=!0,event:s="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:u=!0}=t===void 0?{}:t;const p=O.useRef();return O.useMemo(()=>i?{reference:{onPointerDown(h){p.current=h.pointerType},onMouseDown(h){h.button===0&&(Yx(p.current,!0)&&c||s!=="click"&&(r?l&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")&&n(!1):(h.preventDefault(),n(!0)),o.current.openEvent=h.nativeEvent))},onClick(h){if(!o.current.__syncReturnFocus){if(s==="mousedown"&&p.current){p.current=void 0;return}Yx(p.current,!0)&&c||(r?l&&(!o.current.openEvent||o.current.openEvent.type==="click")&&n(!1):n(!0),o.current.openEvent=h.nativeEvent)}},onKeyDown(h){p.current=void 0,u&&(xN(h)||(h.key===" "&&!_N(a)&&h.preventDefault(),h.key==="Enter"&&(r?l&&n(!1):n(!0))))},onKeyUp(h){u&&(xN(h)||_N(a)||h.key===" "&&(r?l&&n(!1):n(!0)))}}}:{},[i,o,s,c,u,a,l,r,n])};function j6(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}const Pze={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Mze={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Aze=function(e){var t,r;return e===void 0&&(e=!0),{escapeKeyBubbles:typeof e=="boolean"?e:(t=e.escapeKey)!=null?t:!0,outsidePressBubbles:typeof e=="boolean"?e:(r=e.outsidePress)!=null?r:!0}},jze=function(e,t){let{open:r,onOpenChange:n,events:o,nodeId:a,elements:{reference:i,domReference:s,floating:l},dataRef:c}=e,{enabled:u=!0,escapeKey:p=!0,outsidePress:h=!0,outsidePressEvent:g="pointerdown",referencePress:x=!1,referencePressEvent:y="pointerdown",ancestorScroll:b=!1,bubbles:m=!0}=t===void 0?{}:t;const f=Jc(),v=vf()!=null,d=bf(typeof h=="function"?h:()=>!1),w=typeof h=="function"?d:h,_=O.useRef(!1),{escapeKeyBubbles:E,outsidePressBubbles:k}=Aze(m);return O.useEffect(()=>{if(!r||!u)return;c.current.__escapeKeyBubbles=E,c.current.__outsidePressBubbles=k;function S(L){if(L.key==="Escape"){const D=f?mp(f.nodesRef.current,a):[];if(D.length>0){let B=!0;if(D.forEach(V=>{var q;if((q=V.context)!=null&&q.open&&!V.context.dataRef.current.__escapeKeyBubbles){B=!1;return}}),!B)return}o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),n(!1)}}function R(L){const D=_.current;if(_.current=!1,D||typeof w=="function"&&!w(L))return;const B=i9(L);if($c(B)&&l){const z=l.ownerDocument.defaultView||window,F=B.scrollWidth>B.clientWidth,N=B.scrollHeight>B.clientHeight;let W=N&&L.offsetX>B.clientWidth;if(N&&z.getComputedStyle(B).direction==="rtl"&&(W=L.offsetX<=B.offsetWidth-B.clientWidth),W||F&&L.offsetY>B.clientHeight)return}const V=f&&mp(f.nodesRef.current,a).some(z=>{var F;return j6(L,(F=z.context)==null?void 0:F.elements.floating)});if(j6(L,l)||j6(L,s)||V)return;const q=f?mp(f.nodesRef.current,a):[];if(q.length>0){let z=!0;if(q.forEach(F=>{var N;if((N=F.context)!=null&&N.open&&!F.context.dataRef.current.__outsidePressBubbles){z=!1;return}}),!z)return}o.emit("dismiss",{type:"outsidePress",data:{returnFocus:v?{preventScroll:!0}:ZX(L)||QX(L)}}),n(!1)}function T(){n(!1)}const P=Xn(l);p&&P.addEventListener("keydown",S),w&&P.addEventListener(g,R);let j=[];return b&&(Uo(s)&&(j=el(s)),Uo(l)&&(j=j.concat(el(l))),!Uo(i)&&i&&i.contextElement&&(j=j.concat(el(i.contextElement)))),j=j.filter(L=>{var D;return L!==((D=P.defaultView)==null?void 0:D.visualViewport)}),j.forEach(L=>{L.addEventListener("scroll",T,{passive:!0})}),()=>{p&&P.removeEventListener("keydown",S),w&&P.removeEventListener(g,R),j.forEach(L=>{L.removeEventListener("scroll",T)})}},[c,l,s,i,p,w,g,o,f,a,r,n,b,u,E,k,v]),O.useEffect(()=>{_.current=!1},[w,g]),O.useMemo(()=>u?{reference:{[Pze[y]]:()=>{x&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),n(!1))}},floating:{[Mze[g]]:()=>{_.current=!0}}}:{},[u,o,x,g,y,n])},Ize=function(e,t){let{open:r,onOpenChange:n,dataRef:o,events:a,refs:i,elements:{floating:s,domReference:l}}=e,{enabled:c=!0,keyboardOnly:u=!0}=t===void 0?{}:t;const p=O.useRef(""),h=O.useRef(!1),g=O.useRef();return O.useEffect(()=>{if(!c)return;const y=Xn(s).defaultView||window;function b(){!r&&$c(l)&&l===Nc(Xn(l))&&(h.current=!0)}return y.addEventListener("blur",b),()=>{y.removeEventListener("blur",b)}},[s,l,r,c]),O.useEffect(()=>{if(!c)return;function x(y){(y.type==="referencePress"||y.type==="escapeKey")&&(h.current=!0)}return a.on("dismiss",x),()=>{a.off("dismiss",x)}},[a,c]),O.useEffect(()=>()=>{clearTimeout(g.current)},[]),O.useMemo(()=>c?{reference:{onPointerDown(x){let{pointerType:y}=x;p.current=y,h.current=!!(y&&u)},onMouseLeave(){h.current=!1},onFocus(x){var y;h.current||x.type==="focus"&&((y=o.current.openEvent)==null?void 0:y.type)==="mousedown"&&o.current.openEvent&&j6(o.current.openEvent,l)||(o.current.openEvent=x.nativeEvent,n(!0))},onBlur(x){h.current=!1;const y=x.relatedTarget,b=Uo(y)&&y.hasAttribute("data-floating-ui-focus-guard")&&y.getAttribute("data-type")==="outside";g.current=setTimeout(()=>{Wn(i.floating.current,y)||Wn(l,y)||b||n(!1)})}}}:{},[c,u,l,i,o,n])};let EN=!1;const XP="ArrowUp",s9="ArrowDown",Yd="ArrowLeft",W1="ArrowRight";function cm(e,t,r){return Math.floor(e/t)!==r}function h0(e,t){return t<0||t>=e.current.length}function gn(e,t){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:a=1}=t===void 0?{}:t;const i=e.current;let s=r;do{var l,c;s=s+(n?-a:a)}while(s>=0&&s<=i.length-1&&(o?o.includes(s):i[s]==null||(l=i[s])!=null&&l.hasAttribute("disabled")||((c=i[s])==null?void 0:c.getAttribute("aria-disabled"))==="true"));return s}function l9(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function CN(e,t){return l9(t,e===XP||e===s9,e===Yd||e===W1)}function LC(e,t,r){return l9(t,e===s9,r?e===Yd:e===W1)||e==="Enter"||e==" "||e===""}function Lze(e,t,r){return l9(t,r?e===Yd:e===W1,e===s9)}function $ze(e,t,r){return l9(t,r?e===W1:e===Yd,e===XP)}function $C(e,t){return gn(e,{disabledIndices:t})}function ON(e,t){return gn(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}const Nze=function(e,t){let{open:r,onOpenChange:n,refs:o,elements:{domReference:a}}=e,{listRef:i,activeIndex:s,onNavigate:l=()=>{},enabled:c=!0,selectedIndex:u=null,allowEscape:p=!1,loop:h=!1,nested:g=!1,rtl:x=!1,virtual:y=!1,focusItemOnOpen:b="auto",focusItemOnHover:m=!0,openOnArrowKeyDown:f=!0,disabledIndices:v=void 0,orientation:d="vertical",cols:w=1,scrollItemIntoView:_=!0}=t===void 0?{listRef:{current:[]},activeIndex:null,onNavigate:()=>{}}:t;const E=vf(),k=Jc(),S=bf(l),R=O.useRef(b),T=O.useRef(u??-1),P=O.useRef(null),j=O.useRef(!0),L=O.useRef(S),D=O.useRef(r),B=O.useRef(!1),V=O.useRef(!1),q=Wo(v),z=Wo(r),F=Wo(_),[N,W]=O.useState(),G=O.useCallback(function(U,J,ae){ae===void 0&&(ae=!1);const ee=U.current[J.current];y?W(ee==null?void 0:ee.id):xs(ee,{preventScroll:!0,sync:JX()&&xR()?EN||B.current:!1}),requestAnimationFrame(()=>{const se=F.current;se&&ee&&(ae||!j.current)&&(ee.scrollIntoView==null||ee.scrollIntoView(typeof se=="boolean"?{block:"nearest",inline:"nearest"}:se))})},[y,F]);Cr(()=>{document.createElement("div").focus({get preventScroll(){return EN=!0,!1}})},[]),Cr(()=>{c&&(r?R.current&&u!=null&&(V.current=!0,S(u)):D.current&&(T.current=-1,L.current(null)))},[c,r,u,S]),Cr(()=>{if(c&&r)if(s==null){if(B.current=!1,u!=null)return;D.current&&(T.current=-1,G(i,T)),!D.current&&R.current&&(P.current!=null||R.current===!0&&P.current==null)&&(T.current=P.current==null||LC(P.current,d,x)||g?$C(i,q.current):ON(i,q.current),S(T.current))}else h0(i,s)||(T.current=s,G(i,T,V.current),V.current=!1)},[c,r,s,u,g,i,d,x,S,G,q]),Cr(()=>{if(c&&D.current&&!r){var U,J;const ae=k==null||(U=k.nodesRef.current.find(ee=>ee.id===E))==null||(J=U.context)==null?void 0:J.elements.floating;ae&&!Wn(ae,Nc(Xn(ae)))&&ae.focus({preventScroll:!0})}},[c,r,k,E]),Cr(()=>{P.current=null,L.current=S,D.current=r});const Q=s!=null,Z=O.useMemo(()=>{function U(ae){if(!r)return;const ee=i.current.indexOf(ae);ee!==-1&&S(ee)}return{onFocus(ae){let{currentTarget:ee}=ae;U(ee)},onClick:ae=>{let{currentTarget:ee}=ae;return ee.focus({preventScroll:!0})},...m&&{onMouseMove(ae){let{currentTarget:ee}=ae;U(ee)},onPointerLeave(){if(j.current&&(T.current=-1,G(i,T),Zo.flushSync(()=>S(null)),!y)){var ae;(ae=o.floating.current)==null||ae.focus({preventScroll:!0})}}}}},[r,o,G,m,i,S,y]);return O.useMemo(()=>{if(!c)return{};const U=q.current;function J(ue){if(j.current=!1,B.current=!0,!z.current&&ue.currentTarget===o.floating.current)return;if(g&&$ze(ue.key,d,x)){No(ue),n(!1),$c(a)&&a.focus();return}const we=T.current,Oe=$C(i,U),Te=ON(i,U);if(ue.key==="Home"&&(T.current=Oe,S(T.current)),ue.key==="End"&&(T.current=Te,S(T.current)),w>1){const Se=T.current;if(ue.key===XP){if(No(ue),Se===-1)T.current=Te;else if(T.current=gn(i,{startingIndex:Se,amount:w,decrement:!0,disabledIndices:U}),h&&(Se-wPe?me:me-w}h0(i,T.current)&&(T.current=Se),S(T.current)}if(ue.key===s9&&(No(ue),Se===-1?T.current=Oe:(T.current=gn(i,{startingIndex:Se,amount:w,disabledIndices:U}),h&&Se+w>Te&&(T.current=gn(i,{startingIndex:Se%w-w,amount:w,disabledIndices:U}))),h0(i,T.current)&&(T.current=Se),S(T.current)),d==="both"){const Pe=Math.floor(Se/w);ue.key===W1&&(No(ue),Se%w!==w-1?(T.current=gn(i,{startingIndex:Se,disabledIndices:U}),h&&cm(T.current,w,Pe)&&(T.current=gn(i,{startingIndex:Se-Se%w-1,disabledIndices:U}))):h&&(T.current=gn(i,{startingIndex:Se-Se%w-1,disabledIndices:U})),cm(T.current,w,Pe)&&(T.current=Se)),ue.key===Yd&&(No(ue),Se%w!==0?(T.current=gn(i,{startingIndex:Se,disabledIndices:U,decrement:!0}),h&&cm(T.current,w,Pe)&&(T.current=gn(i,{startingIndex:Se+(w-Se%w),decrement:!0,disabledIndices:U}))):h&&(T.current=gn(i,{startingIndex:Se+(w-Se%w),decrement:!0,disabledIndices:U})),cm(T.current,w,Pe)&&(T.current=Se));const Ie=Math.floor(Te/w)===Pe;h0(i,T.current)&&(h&&Ie?T.current=ue.key===Yd?Te:gn(i,{startingIndex:Se-Se%w-1,disabledIndices:U}):T.current=Se),S(T.current);return}}if(CN(ue.key,d)){if(No(ue),r&&!y&&Nc(ue.currentTarget.ownerDocument)===ue.currentTarget){T.current=LC(ue.key,d,x)?Oe:Te,S(T.current);return}LC(ue.key,d,x)?h?T.current=we>=Te?p&&we!==i.current.length?-1:Oe:gn(i,{startingIndex:we,disabledIndices:U}):T.current=Math.min(Te,gn(i,{startingIndex:we,disabledIndices:U})):h?T.current=we<=Oe?p&&we!==-1?i.current.length:Te:gn(i,{startingIndex:we,decrement:!0,disabledIndices:U}):T.current=Math.max(Oe,gn(i,{startingIndex:we,decrement:!0,disabledIndices:U})),h0(i,T.current)?S(null):S(T.current)}}function ae(ue){b==="auto"&&ZX(ue.nativeEvent)&&(R.current=!0)}function ee(ue){R.current=b,b==="auto"&&QX(ue.nativeEvent)&&(R.current=!0)}const se=y&&r&&Q&&{"aria-activedescendant":N};return{reference:{...se,onKeyDown(ue){j.current=!1;const we=ue.key.indexOf("Arrow")===0;if(y&&r)return J(ue);if(!r&&!f&&we)return;if((we||ue.key==="Enter"||ue.key===" "||ue.key==="")&&(P.current=ue.key),g){Lze(ue.key,d,x)&&(No(ue),r?(T.current=$C(i,U),S(T.current)):n(!0));return}CN(ue.key,d)&&(u!=null&&(T.current=u),No(ue),!r&&f?n(!0):J(ue),r&&S(T.current))},onFocus(){r&&S(null)},onPointerDown:ee,onMouseDown:ae,onClick:ae},floating:{"aria-orientation":d==="both"?void 0:d,...se,onKeyDown:J,onPointerMove(){j.current=!0}},item:Z}},[a,o,N,q,z,i,c,d,x,y,r,Q,g,u,f,p,w,h,b,S,n,Z])};function Dze(e){return O.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},e)}const Fze=function(e,t){let{open:r}=e,{enabled:n=!0,role:o="dialog"}=t===void 0?{}:t;const a=i1(),i=i1();return O.useMemo(()=>{const s={id:a,role:o};return n?o==="tooltip"?{reference:{"aria-describedby":r?a:void 0},floating:s}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":o==="alertdialog"?"dialog":o,"aria-controls":r?a:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:i}},floating:{...s,...o==="menu"&&{"aria-labelledby":i}}}:{}},[n,o,r,a,i])},kN=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,r)=>(r?"-":"")+t.toLowerCase());function zze(e,t){const[r,n]=O.useState(e);return e&&!r&&n(!0),O.useEffect(()=>{if(!e){const o=setTimeout(()=>n(!1),t);return()=>clearTimeout(o)}},[e,t]),r}function cZ(e,t){let{open:r,elements:{floating:n}}=e,{duration:o=250}=t===void 0?{}:t;const i=(typeof o=="number"?o:o.close)||0,[s,l]=O.useState(!1),[c,u]=O.useState("unmounted"),p=zze(r,i);return Cr(()=>{s&&!p&&u("unmounted")},[s,p]),Cr(()=>{if(n)if(r){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}else l(!0),u("close")},[r,n]),{isMounted:p,status:c}}function Bze(e,t){let{initial:r={opacity:0},open:n,close:o,common:a,duration:i=250}=t===void 0?{}:t;const s=e.placement,l=s.split("-")[0],[c,u]=O.useState({}),{isMounted:p,status:h}=cZ(e,{duration:i}),g=Wo(r),x=Wo(n),y=Wo(o),b=Wo(a),m=typeof i=="number",f=(m?i:i.open)||0,v=(m?i:i.close)||0;return Cr(()=>{const d={side:l,placement:s},w=g.current,_=y.current,E=x.current,k=b.current,S=typeof w=="function"?w(d):w,R=typeof _=="function"?_(d):_,T=typeof k=="function"?k(d):k,P=(typeof E=="function"?E(d):E)||Object.keys(S).reduce((j,L)=>(j[L]="",j),{});if((h==="initial"||h==="unmounted")&&u(j=>({transitionProperty:j.transitionProperty,...T,...S})),h==="open"&&u({transitionProperty:Object.keys(P).map(kN).join(","),transitionDuration:f+"ms",...T,...P}),h==="close"){const j=R||S;u({transitionProperty:Object.keys(j).map(kN).join(","),transitionDuration:v+"ms",...T,...j})}},[l,s,v,y,g,x,b,f,h]),{isMounted:p,styles:c}}const Vze=function(e,t){var r;let{open:n,dataRef:o,refs:a}=e,{listRef:i,activeIndex:s,onMatch:l=()=>{},enabled:c=!0,findMatch:u=null,resetMs:p=1e3,ignoreKeys:h=[],selectedIndex:g=null}=t===void 0?{listRef:{current:[]},activeIndex:null}:t;const x=O.useRef(),y=O.useRef(""),b=O.useRef((r=g??s)!=null?r:-1),m=O.useRef(null),f=bf(l),v=Wo(u),d=Wo(h);return Cr(()=>{n&&(clearTimeout(x.current),m.current=null,y.current="")},[n]),Cr(()=>{if(n&&y.current===""){var w;b.current=(w=g??s)!=null?w:-1}},[n,g,s]),O.useMemo(()=>{if(!c)return{};function w(_){var E;const k=i9(_.nativeEvent);if(Uo(k)&&(Nc(Xn(k))!==_.currentTarget?(E=a.floating.current)!=null&&E.contains(k)&&k.closest('[role="dialog"],[role="menu"],[role="listbox"],[role="tree"],[role="grid"]')!==_.currentTarget:!_.currentTarget.contains(k)))return;y.current.length>0&&y.current[0]!==" "&&(o.current.typing=!0,_.key===" "&&No(_));const S=i.current;if(S==null||d.current.includes(_.key)||_.key.length!==1||_.ctrlKey||_.metaKey||_.altKey)return;S.every(D=>{var B,V;return D?((B=D[0])==null?void 0:B.toLocaleLowerCase())!==((V=D[1])==null?void 0:V.toLocaleLowerCase()):!0})&&y.current===_.key&&(y.current="",b.current=m.current),y.current+=_.key,clearTimeout(x.current),x.current=setTimeout(()=>{y.current="",b.current=m.current,o.current.typing=!1},p);const T=b.current,P=[...S.slice((T||0)+1),...S.slice(0,(T||0)+1)],j=v.current?v.current(P,y.current):P.find(D=>(D==null?void 0:D.toLocaleLowerCase().indexOf(y.current.toLocaleLowerCase()))===0),L=j?S.indexOf(j):-1;L!==-1&&(f(L),m.current=L)}return{reference:{onKeyDown:w},floating:{onKeyDown:w}}},[c,o,i,p,d,v,f,a])};function RN(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const Hze=e=>({name:"inner",options:e,async fn(t){const{listRef:r,overflowRef:n,onFallbackChange:o,offset:a=0,index:i=0,minItemsVisible:s=4,referenceOverflowThreshold:l=0,scrollRef:c,...u}=e,{rects:p,elements:{floating:h}}=t,g=r.current[i];if(!g)return{};const x={...t,...await NX(-g.offsetTop-p.reference.height/2-g.offsetHeight/2-a).fn(t)},y=(c==null?void 0:c.current)||h,b=await qa(RN(x,y.scrollHeight),u),m=await qa(x,{...u,elementContext:"reference"}),f=Math.max(0,b.top),v=x.y+f,d=Math.max(0,y.scrollHeight-f-Math.max(0,b.bottom));return y.style.maxHeight=d+"px",y.scrollTop=f,o&&(y.offsetHeight=-l||m.bottom>=-l?Zo.flushSync(()=>o(!0)):Zo.flushSync(()=>o(!1))),n&&(n.current=await qa(RN({...x,y:v},y.offsetHeight),u)),{y:v}}}),Uze=(e,t)=>{let{open:r,elements:n}=e,{enabled:o=!0,overflowRef:a,scrollRef:i,onChange:s}=t;const l=bf(s),c=O.useRef(!1),u=O.useRef(null),p=O.useRef(null);return O.useEffect(()=>{if(!o)return;function h(x){if(x.ctrlKey||!g||a.current==null)return;const y=x.deltaY,b=a.current.top>=-.5,m=a.current.bottom>=-.5,f=g.scrollHeight-g.clientHeight,v=y<0?-1:1,d=y<0?"max":"min";g.scrollHeight<=g.clientHeight||(!b&&y>0||!m&&y<0?(x.preventDefault(),Zo.flushSync(()=>{l(w=>w+Math[d](y,f*v))})):/firefox/i.test(XX())&&(g.scrollTop+=y))}const g=(i==null?void 0:i.current)||n.floating;if(r&&g)return g.addEventListener("wheel",h),requestAnimationFrame(()=>{u.current=g.scrollTop,a.current!=null&&(p.current={...a.current})}),()=>{u.current=null,p.current=null,g.removeEventListener("wheel",h)}},[o,r,n.floating,a,i,l]),O.useMemo(()=>o?{floating:{onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const h=(i==null?void 0:i.current)||n.floating;if(!(!a.current||!h||!c.current)){if(u.current!==null){const g=h.scrollTop-u.current;(a.current.bottom<-.5&&g<-1||a.current.top<-.5&&g>1)&&Zo.flushSync(()=>l(x=>x+g))}requestAnimationFrame(()=>{u.current=h.scrollTop})}}}}:{},[o,a,n.floating,i,l])};function Wze(e,t){const[r,n]=e;let o=!1;const a=t.length;for(let i=0,s=a-1;i=n!=p>=n&&r<=(u-l)*(n-c)/(p-c)+l&&(o=!o)}return o}function qze(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Gze(e){let{restMs:t=0,buffer:r=.5,blockPointerEvents:n=!1}=e===void 0?{}:e,o,a=!1,i=!1;const s=l=>{let{x:c,y:u,placement:p,elements:h,onClose:g,nodeId:x,tree:y}=l;return function(m){function f(){clearTimeout(o),g()}if(clearTimeout(o),!h.domReference||!h.floating||p==null||c==null||u==null)return;const{clientX:v,clientY:d}=m,w=[v,d],_=i9(m),E=m.type==="mouseleave",k=Wn(h.floating,_),S=Wn(h.domReference,_),R=h.domReference.getBoundingClientRect(),T=h.floating.getBoundingClientRect(),P=p.split("-")[0],j=c>T.right-T.width/2,L=u>T.bottom-T.height/2,D=qze(w,R);if(k&&(i=!0,!E))return;if(S&&(i=!1),S&&!E){i=!0;return}if(E&&Uo(m.relatedTarget)&&Wn(h.floating,m.relatedTarget)||y&&mp(y.nodesRef.current,x).some(z=>{let{context:F}=z;return F==null?void 0:F.open}))return;if(P==="top"&&u>=R.bottom-1||P==="bottom"&&u<=R.top+1||P==="left"&&c>=R.right-1||P==="right"&&c<=R.left+1)return f();let B=[];switch(P){case"top":B=[[T.left,R.top+1],[T.left,T.bottom-1],[T.right,T.bottom-1],[T.right,R.top+1]],a=v>=T.left&&v<=T.right&&d>=T.top&&d<=R.top+1;break;case"bottom":B=[[T.left,T.top+1],[T.left,R.bottom-1],[T.right,R.bottom-1],[T.right,T.top+1]],a=v>=T.left&&v<=T.right&&d>=R.bottom-1&&d<=T.bottom;break;case"left":B=[[T.right-1,T.bottom],[T.right-1,T.top],[R.left+1,T.top],[R.left+1,T.bottom]],a=v>=T.left&&v<=R.left+1&&d>=T.top&&d<=T.bottom;break;case"right":B=[[R.right-1,T.bottom],[R.right-1,T.top],[T.left+1,T.top],[T.left+1,T.bottom]],a=v>=R.right-1&&v<=T.right&&d>=T.top&&d<=T.bottom;break}function V(z){let[F,N]=z;const W=T.width>R.width,G=T.height>R.height;switch(P){case"top":{const Q=[W?F+r/2:j?F+r*4:F-r*4,N+r+1],Z=[W?F-r/2:j?F+r*4:F-r*4,N+r+1],U=[[T.left,j||W?T.bottom-r:T.top],[T.right,j?W?T.bottom-r:T.top:T.bottom-r]];return[Q,Z,...U]}case"bottom":{const Q=[W?F+r/2:j?F+r*4:F-r*4,N-r],Z=[W?F-r/2:j?F+r*4:F-r*4,N-r],U=[[T.left,j||W?T.top+r:T.bottom],[T.right,j?W?T.top+r:T.bottom:T.top+r]];return[Q,Z,...U]}case"left":{const Q=[F+r+1,G?N+r/2:L?N+r*4:N-r*4],Z=[F+r+1,G?N-r/2:L?N+r*4:N-r*4];return[...[[L||G?T.right-r:T.left,T.top],[L?G?T.right-r:T.left:T.right-r,T.bottom]],Q,Z]}case"right":{const Q=[F-r,G?N+r/2:L?N+r*4:N-r*4],Z=[F-r,G?N-r/2:L?N+r*4:N-r*4],U=[[L||G?T.left+r:T.right,T.top],[L?G?T.left+r:T.right:T.left+r,T.bottom]];return[Q,Z,...U]}}}const q=a?B:V([c,u]);if(!a){if(i&&!D)return f();Wze([v,d],q)?t&&!i&&(o=setTimeout(f,t)):f()}}};return s.__options={blockPointerEvents:n},s}function Kze(e){e===void 0&&(e={});const{open:t=!1,onOpenChange:r,nodeId:n}=e,o=sze(e),a=Jc(),i=O.useRef(null),s=O.useRef({}),l=O.useState(()=>GX())[0],[c,u]=O.useState(null),p=O.useCallback(m=>{const f=Uo(m)?{getBoundingClientRect:()=>m.getBoundingClientRect(),contextElement:m}:m;o.refs.setReference(f)},[o.refs]),h=O.useCallback(m=>{(Uo(m)||m===null)&&(i.current=m,u(m)),(Uo(o.refs.reference.current)||o.refs.reference.current===null||m!==null&&!Uo(m))&&o.refs.setReference(m)},[o.refs]),g=O.useMemo(()=>({...o.refs,setReference:h,setPositionReference:p,domReference:i}),[o.refs,h,p]),x=O.useMemo(()=>({...o.elements,domReference:c}),[o.elements,c]),y=bf(r),b=O.useMemo(()=>({...o,refs:g,elements:x,dataRef:s,nodeId:n,events:l,open:t,onOpenChange:y}),[o,n,l,t,y,g,x]);return Cr(()=>{const m=a==null?void 0:a.nodesRef.current.find(f=>f.id===n);m&&(m.context=b)}),O.useMemo(()=>({...o,context:b,refs:g,reference:h,positionReference:p}),[o,g,b,h,p])}function NC(e,t,r){const n=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[r]:null).concat(e).reduce((o,a)=>(a&&Object.entries(a).forEach(i=>{let[s,l]=i;if(s.indexOf("on")===0){if(n.has(s)||n.set(s,[]),typeof l=="function"){var c;(c=n.get(s))==null||c.push(l),o[s]=function(){for(var u,p=arguments.length,h=new Array(p),g=0;gx(...h))}}}else o[s]=l}),o),{})}}const Yze=function(e){e===void 0&&(e=[]);const t=e,r=O.useCallback(a=>NC(a,e,"reference"),t),n=O.useCallback(a=>NC(a,e,"floating"),t),o=O.useCallback(a=>NC(a,e,"item"),e.map(a=>a==null?void 0:a.item));return O.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])},Xze=Object.freeze(Object.defineProperty({__proto__:null,FloatingDelayGroup:gze,FloatingFocusManager:Rze,FloatingNode:fze,FloatingOverlay:Sze,FloatingPortal:Oze,FloatingTree:hze,arrow:ize,autoPlacement:YFe,autoUpdate:aze,computePosition:qX,detectOverflow:qa,flip:XFe,getOverflowAncestors:el,hide:ZFe,inline:QFe,inner:Hze,limitShift:eze,offset:NX,platform:WX,safePolygon:Gze,shift:JFe,size:tze,useClick:Tze,useDelayGroup:vze,useDelayGroupContext:tZ,useDismiss:jze,useFloating:Kze,useFloatingNodeId:dze,useFloatingParentNodeId:vf,useFloatingPortalNode:sZ,useFloatingTree:Jc,useFocus:Ize,useHover:mze,useId:i1,useInnerOffset:Uze,useInteractions:Yze,useListNavigation:Nze,useMergeRefs:Dze,useRole:Fze,useTransitionStatus:cZ,useTransitionStyles:Bze,useTypeahead:Vze},Symbol.toStringTag,{value:"Module"})),Gr=lf(Xze);var uZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(x,y){for(var b in y)Object.defineProperty(x,b,{enumerable:!0,get:y[b]})}t(e,{DialogHeader:function(){return h},default:function(){return g}});var r=c(O),n=c(ct),o=Je,a=c(Ze),i=Ye,s=mf;function l(){return l=Object.assign||function(x){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(x,m)&&(b[m]=x[m])}return b}function p(x,y){if(x==null)return{};var b={},m=Object.keys(x),f,v;for(v=0;v=0)&&(b[f]=x[f]);return b}var h=r.default.forwardRef(function(x,y){var b=x.className,m=x.children,f=u(x,["className","children"]),v=(0,i.useTheme)().dialogHeader,d=v.defaultProps,w=v.styles.base;b=b??d.className;var _=(0,o.twMerge)((0,n.default)((0,a.default)(w)),b);return r.default.createElement("div",l({},f,{ref:y,className:_}),m)});h.propTypes={className:s.propTypesClassName,children:s.propTypesChildren},h.displayName="MaterialTailwind.DialogHeader";var g=h})(uZ);var dZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,b){for(var m in b)Object.defineProperty(y,m,{enumerable:!0,get:b[m]})}t(e,{DialogBody:function(){return g},default:function(){return x}});var r=u(O),n=u(ct),o=Je,a=u(Ze),i=Ye,s=mf;function l(y,b,m){return b in y?Object.defineProperty(y,b,{value:m,enumerable:!0,configurable:!0,writable:!0}):y[b]=m,y}function c(){return c=Object.assign||function(y){for(var b=1;b=0)&&Object.prototype.propertyIsEnumerable.call(y,f)&&(m[f]=y[f])}return m}function h(y,b){if(y==null)return{};var m={},f=Object.keys(y),v,d;for(d=0;d=0)&&(m[v]=y[v]);return m}var g=r.default.forwardRef(function(y,b){var m=y.divider,f=y.className,v=y.children,d=p(y,["divider","className","children"]),w=(0,i.useTheme)().dialogBody,_=w.defaultProps,E=w.styles.base;f=f??_.className;var k=(0,o.twMerge)((0,n.default)((0,a.default)(E.initial),l({},(0,a.default)(E.divider),m)),f);return r.default.createElement("div",c({},d,{ref:b,className:k}),v)});g.propTypes={divider:s.propTypesDivider,className:s.propTypesClassName,children:s.propTypesChildren},g.displayName="MaterialTailwind.DialogBody";var x=g})(dZ);var fZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(x,y){for(var b in y)Object.defineProperty(x,b,{enumerable:!0,get:y[b]})}t(e,{DialogFooter:function(){return h},default:function(){return g}});var r=c(O),n=c(ct),o=Je,a=c(Ze),i=Ye,s=mf;function l(){return l=Object.assign||function(x){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(x,m)&&(b[m]=x[m])}return b}function p(x,y){if(x==null)return{};var b={},m=Object.keys(x),f,v;for(v=0;v=0)&&(b[f]=x[f]);return b}var h=r.default.forwardRef(function(x,y){var b=x.className,m=x.children,f=u(x,["className","children"]),v=(0,i.useTheme)().dialogFooter,d=v.defaultProps,w=v.styles.base;b=b??d.className;var _=(0,o.twMerge)((0,n.default)((0,a.default)(w)),b);return r.default.createElement("div",l({},f,{ref:y,className:_}),m)});h.propTypes={className:s.propTypesClassName,children:s.propTypesChildren},h.displayName="MaterialTailwind.DialogFooter";var g=h})(fZ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,T){for(var P in T)Object.defineProperty(R,P,{enumerable:!0,get:T[P]})}t(e,{Dialog:function(){return k},DialogHeader:function(){return g.DialogHeader},DialogBody:function(){return x.DialogBody},DialogFooter:function(){return y.DialogFooter},default:function(){return S}});var r=f(O),n=f(et),o=Gr,a=rn,i=f(ct),s=f(dn),l=Je,c=f(wr),u=f(Ze),p=Ye,h=mf,g=uZ,x=dZ,y=fZ;function b(R,T,P){return T in R?Object.defineProperty(R,T,{value:P,enumerable:!0,configurable:!0,writable:!0}):R[T]=P,R}function m(){return m=Object.assign||function(R){for(var T=1;T=0)&&Object.prototype.propertyIsEnumerable.call(R,j)&&(P[j]=R[j])}return P}function E(R,T){if(R==null)return{};var P={},j=Object.keys(R),L,D;for(D=0;D=0)&&(P[L]=R[L]);return P}var k=r.default.forwardRef(function(R,T){var P=R.open,j=R.handler,L=R.size,D=R.dismiss,B=R.animate,V=R.className,q=R.children,z=_(R,["open","handler","size","dismiss","animate","className","children"]),F=(0,p.useTheme)().dialog,N=F.defaultProps,W=F.valid,G=F.styles,Q=G.base,Z=G.sizes;j=j??void 0,L=L??N.size,D=D??N.dismiss,B=B??N.animate,V=V??N.className;var U=(0,i.default)((0,u.default)(Q.backdrop)),J=(0,l.twMerge)((0,i.default)((0,u.default)(Q.container),(0,u.default)(Z[(0,c.default)(W.sizes,L,"md")])),V),ae={unmount:{opacity:0,y:-50,transition:{duration:.3}},mount:{opacity:1,y:0,transition:{duration:.3}}},ee={unmount:{opacity:0,transition:{delay:.2}},mount:{opacity:1}},se=(0,s.default)(ae,B),ue=(0,o.useFloating)({open:P,onOpenChange:j}),we=ue.floating,Oe=ue.context,Te=(0,o.useId)(),Se="".concat(Te,"-label"),Pe="".concat(Te,"-description"),Ie=(0,o.useInteractions)([(0,o.useClick)(Oe),(0,o.useRole)(Oe),(0,o.useDismiss)(Oe,D)]).getFloatingProps,me=(0,o.useMergeRefs)([T,we]),be=a.AnimatePresence;return r.default.createElement(a.LazyMotion,{features:a.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(be,null,P&&r.default.createElement(o.FloatingOverlay,{style:{zIndex:9999},lockScroll:!0},r.default.createElement(o.FloatingFocusManager,{context:Oe},r.default.createElement(a.m.div,{className:L==="xxl"?"":U,initial:"unmount",exit:"unmount",animate:P?"mount":"unmount",variants:ee,transition:{duration:.2}},r.default.createElement(a.m.div,m({},Ie(w(v({},z),{ref:me,className:J,"aria-labelledby":Se,"aria-describedby":Pe})),{initial:"unmount",exit:"unmount",animate:P?"mount":"unmount",variants:se}),q)))))))});k.propTypes={open:h.propTypesOpen,handler:h.propTypesHandler,size:n.default.oneOf(h.propTypesSize),dismiss:h.propTypesDismiss,animate:h.propTypesAnimate,className:h.propTypesClassName,children:h.propTypesChildren},k.displayName="MaterialTailwind.Dialog";var S=Object.assign(k,{Header:g.DialogHeader,Body:x.DialogBody,Footer:y.DialogFooter})})(TX);var hZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,m){for(var f in m)Object.defineProperty(b,f,{enumerable:!0,get:m[f]})}t(e,{Input:function(){return x},default:function(){return y}});var r=p(O),n=p(et),o=p(ct),a=p(wr),i=p(Ze),s=Ye,l=N1;function c(b,m,f){return m in b?Object.defineProperty(b,m,{value:f,enumerable:!0,configurable:!0,writable:!0}):b[m]=f,b}function u(){return u=Object.assign||function(b){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(b,v)&&(f[v]=b[v])}return f}function g(b,m){if(b==null)return{};var f={},v=Object.keys(b),d,w;for(w=0;w=0)&&(f[d]=b[d]);return f}var x=r.default.forwardRef(function(b,m){var f=b.variant,v=b.color,d=b.size,w=b.label,_=b.error,E=b.success,k=b.icon,S=b.containerProps,R=b.labelProps,T=b.className,P=b.shrink,j=b.inputRef,L=h(b,["variant","color","size","label","error","success","icon","containerProps","labelProps","className","shrink","inputRef"]),D=(0,s.useTheme)().input,B=D.defaultProps,V=D.valid,q=D.styles,z=q.base,F=q.variants;f=f??B.variant,d=d??B.size,v=v??B.color,w=w??B.label,R=R??B.labelProps,S=S??B.containerProps,T=T??B.className,P=P??B.shrink,k=k??B.icon;var N=F[(0,a.default)(V.variants,f,"outlined")],W=N.sizes[(0,a.default)(V.sizes,d,"md")],G=(0,i.default)(N.error.input),Q=(0,i.default)(N.success.input),Z=(0,i.default)(N.shrink.input),U=(0,i.default)(N.colors.input[(0,a.default)(V.colors,v,"blue")]),J=(0,i.default)(N.error.label),ae=(0,i.default)(N.success.label),ee=(0,i.default)(N.shrink.label),se=(0,i.default)(N.colors.label[(0,a.default)(V.colors,v,"blue")]),ue=(0,o.default)((0,i.default)(z.container),(0,i.default)(W.container),S==null?void 0:S.className),we=(0,o.default)((0,i.default)(z.input),(0,i.default)(N.base.input),(0,i.default)(W.input),c({},(0,i.default)(N.base.inputWithIcon),k),c({},U,!_&&!E),c({},G,_),c({},Q,E),c({},Z,P),T),Oe=(0,o.default)((0,i.default)(z.label),(0,i.default)(N.base.label),(0,i.default)(W.label),c({},se,!_&&!E),c({},J,_),c({},ae,E),c({},ee,P),R==null?void 0:R.className),Te=(0,o.default)((0,i.default)(z.icon),(0,i.default)(N.base.icon),(0,i.default)(W.icon)),Se=(0,o.default)((0,i.default)(z.asterisk));return r.default.createElement("div",u({},S,{ref:m,className:ue}),k&&r.default.createElement("div",{className:Te},k),r.default.createElement("input",u({},L,{ref:j,className:we,placeholder:(L==null?void 0:L.placeholder)||" "})),r.default.createElement("label",u({},R,{className:Oe}),w," ",L.required?r.default.createElement("span",{className:Se},"*"):""))});x.propTypes={variant:n.default.oneOf(l.propTypesVariant),size:n.default.oneOf(l.propTypesSize),color:n.default.oneOf(l.propTypesColor),label:l.propTypesLabel,error:l.propTypesError,success:l.propTypesSuccess,icon:l.propTypesIcon,labelProps:l.propTypesLabelProps,containerProps:l.propTypesContainerProps,shrink:l.propTypesShrink,className:l.propTypesClassName},x.displayName="MaterialTailwind.Input";var y=x})(hZ);var pZ={},q1={},yf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,w){for(var _ in w)Object.defineProperty(d,_,{enumerable:!0,get:w[_]})}t(e,{propTypesOpen:function(){return c},propTypesHandler:function(){return u},propTypesPlacement:function(){return p},propTypesOffset:function(){return h},propTypesDismiss:function(){return g},propTypesAnimate:function(){return x},propTypesLockScroll:function(){return y},propTypesDisabled:function(){return b},propTypesClassName:function(){return m},propTypesChildren:function(){return f},propTypesContextValue:function(){return v}});var r=a(et),n=ur;function o(d,w,_){return w in d?Object.defineProperty(d,w,{value:_,enumerable:!0,configurable:!0,writable:!0}):d[w]=_,d}function a(d){return d&&d.__esModule?d:{default:d}}function i(d){for(var w=1;wf.length)&&(v=f.length);for(var d=0,w=new Array(v);d=0)&&Object.prototype.propertyIsEnumerable.call(y,f)&&(m[f]=y[f])}return m}function h(y,b){if(y==null)return{};var m={},f=Object.keys(y),v,d;for(d=0;d=0)&&(m[v]=y[v]);return m}var g=r.default.forwardRef(function(y,b){var m=y.children,f=p(y,["children"]),v=(0,o.useMenu)(),d=v.getReferenceProps,w=v.reference,_=v.nested,E=(0,n.useMergeRefs)([b,w]);return r.default.cloneElement(m,l({},d(l(u(l({},f),{ref:E,onClick:function(S){S.stopPropagation()}}),_&&{role:"menuitem"}))))});g.propTypes={children:a.propTypesChildren},g.displayName="MaterialTailwind.MenuHandler";var x=g})(gZ);var vZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,f){for(var v in f)Object.defineProperty(m,v,{enumerable:!0,get:f[v]})}t(e,{MenuList:function(){return y},default:function(){return b}});var r=h(O),n=Gr,o=rn,a=h(ct),i=Je,s=h(Ze),l=Ye,c=q1,u=yf;function p(){return p=Object.assign||function(m){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.children,d=m.className,w=g(m,["children","className"]),_=(0,l.useTheme)().menu,E=_.styles.base,k=(0,c.useMenu)(),S=k.open,R=k.handler,T=k.strategy,P=k.x,j=k.y,L=k.floating,D=k.listItemsRef,B=k.getFloatingProps,V=k.getItemProps,q=k.appliedAnimation,z=k.lockScroll,F=k.context,N=k.activeIndex,W=k.tree,G=k.allowHover,Q=k.internalAllowHover,Z=k.setActiveIndex,U=k.nested;d=d??"";var J=(0,i.twMerge)((0,a.default)((0,s.default)(E.menu)),d),ae=(0,n.useMergeRefs)([f,L]),ee=o.AnimatePresence,se=r.default.createElement(o.m.div,p({},w,{ref:ae,style:{position:T,top:j??0,left:P??0},className:J},B({onKeyDown:function(we){we.key==="Tab"&&(R(!1),we.shiftKey&&we.preventDefault())}}),{initial:"unmount",exit:"unmount",animate:S?"mount":"unmount",variants:q}),r.default.Children.map(v,function(ue,we){return r.default.isValidElement(ue)&&r.default.cloneElement(ue,V({tabIndex:N===we?0:-1,role:"menuitem",className:ue.props.className,ref:function(Te){D.current[we]=Te},onClick:function(Te){if(ue.props.onClick){var Se,Pe;(Pe=(Se=ue.props).onClick)===null||Pe===void 0||Pe.call(Se,Te)}W==null||W.events.emit("click")},onMouseEnter:function(){(G&&S||Q&&S)&&Z(we)}}))}));return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(ee,null,S&&r.default.createElement(r.default.Fragment,null,z?r.default.createElement(n.FloatingOverlay,{lockScroll:!0},r.default.createElement(n.FloatingFocusManager,{context:F,modal:!U,initialFocus:U?-1:0,returnFocus:!U,visuallyHiddenDismiss:!0},se)):r.default.createElement(n.FloatingFocusManager,{context:F,modal:!U,initialFocus:U?-1:0,returnFocus:!U,visuallyHiddenDismiss:!0},se)))))});y.propTypes={className:u.propTypesClassName,children:u.propTypesChildren},y.displayName="MaterialTailwind.MenuList";var b=y})(vZ);var bZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,b){for(var m in b)Object.defineProperty(y,m,{enumerable:!0,get:b[m]})}t(e,{MenuItem:function(){return g},default:function(){return x}});var r=u(O),n=u(ct),o=Je,a=u(Ze),i=Ye,s=yf;function l(y,b,m){return b in y?Object.defineProperty(y,b,{value:m,enumerable:!0,configurable:!0,writable:!0}):y[b]=m,y}function c(){return c=Object.assign||function(y){for(var b=1;b=0)&&Object.prototype.propertyIsEnumerable.call(y,f)&&(m[f]=y[f])}return m}function h(y,b){if(y==null)return{};var m={},f=Object.keys(y),v,d;for(d=0;d=0)&&(m[v]=y[v]);return m}var g=r.default.forwardRef(function(y,b){var m=y.className,f=m===void 0?"":m,v=y.disabled,d=v===void 0?!1:v,w=y.children,_=p(y,["className","disabled","children"]),E=(0,i.useTheme)().menu,k=E.styles.base,S=(0,o.twMerge)((0,n.default)((0,a.default)(k.item.initial),l({},(0,a.default)(k.item.disabled),d)),f);return r.default.createElement("button",c({},_,{ref:b,role:"menuitem",className:S}),w)});g.propTypes={className:s.propTypesClassName,disabled:s.propTypesDisabled,children:s.propTypesChildren},g.displayName="MaterialTailwind.MenuItem";var x=g})(bZ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,x){for(var y in x)Object.defineProperty(g,y,{enumerable:!0,get:x[y]})}t(e,{Menu:function(){return p},MenuHandler:function(){return i.MenuHandler},MenuList:function(){return s.MenuList},MenuItem:function(){return l.MenuItem},useMenu:function(){return o.useMenu},default:function(){return h}});var r=u(O),n=Gr,o=q1,a=mZ,i=gZ,s=vZ,l=bZ;function c(){return c=Object.assign||function(g){for(var x=1;x=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.open,d=m.animate,w=m.className,_=m.children,E=g(m,["open","animate","className","children"]),k;console.error(` will be deprecated in the future versions of @material-tailwind/react use instead. +*/var PFe=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],vR=PFe.join(","),MX=typeof Element>"u",o1=MX?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Hx=!MX&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Ux=function e(t,r){var n;r===void 0&&(r=!0);var o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),a=o===""||o==="true",i=a||r&&t&&e(t.parentNode);return i},MFe=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},AFe=function(t,r,n){if(Ux(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(vR));return r&&o1.call(t,vR)&&o.unshift(t),o=o.filter(n),o},jFe=function e(t,r,n){for(var o=[],a=Array.from(t);a.length;){var i=a.shift();if(!Ux(i,!1))if(i.tagName==="SLOT"){var s=i.assignedElements(),l=s.length?s:i.children,c=e(l,!0,n);n.flatten?o.push.apply(o,c):o.push({scopeParent:i,candidates:c})}else{var u=o1.call(i,vR);u&&n.filter(i)&&(r||!t.includes(i))&&o.push(i);var p=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),h=!Ux(p,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(p&&h){var g=e(p===!0?i.children:p.children,!0,n);n.flatten?o.push.apply(o,g):o.push({scopeParent:i,candidates:g})}else a.unshift.apply(a,i.children)}}return o},AX=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},jX=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||MFe(t))&&!AX(t)?0:t.tabIndex},IFe=function(t,r){var n=jX(t);return n<0&&r&&!AX(t)?0:n},LFe=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},IX=function(t){return t.tagName==="INPUT"},$Fe=function(t){return IX(t)&&t.type==="hidden"},NFe=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},DFe=function(t,r){for(var n=0;nsummary:first-of-type"),i=a?t.parentElement:t;if(o1.call(i,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof o=="function"){for(var s=t;t;){var l=t.parentElement,c=Hx(t);if(l&&!l.shadowRoot&&o(l)===!0)return oN(t);t.assignedSlot?t=t.assignedSlot:!l&&c!==t.ownerDocument?t=c.host:t=l}t=s}if(VFe(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return oN(t);return!1},UFe=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n=0)},GFe=function e(t){var r=[],n=[];return t.forEach(function(o,a){var i=!!o.scopeParent,s=i?o.scopeParent:o,l=IFe(s,i),c=i?e(o.candidates):s;l===0?i?r.push.apply(r,c):r.push(s):n.push({documentOrder:a,tabIndex:l,item:o,isScope:i,content:c})}),n.sort(LFe).reduce(function(o,a){return a.isScope?o.push.apply(o,a.content):o.push(a.content),o},[]).concat(r)},Wx=function(t,r){r=r||{};var n;return r.getShadowRoot?n=jFe([t],r.includeContainer,{filter:aN.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:qFe}):n=AFe(t,r.includeContainer,aN.bind(null,r)),GFe(n)};function pa(e){return e.split("-")[1]}function VP(e){return e==="y"?"height":"width"}function yo(e){return e.split("-")[0]}function Sl(e){return["top","bottom"].includes(yo(e))?"x":"y"}function iN(e,t,r){let{reference:n,floating:o}=e;const a=n.x+n.width/2-o.width/2,i=n.y+n.height/2-o.height/2,s=Sl(t),l=VP(s),c=n[l]/2-o[l]/2,u=s==="x";let p;switch(yo(t)){case"top":p={x:a,y:n.y-o.height};break;case"bottom":p={x:a,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:i};break;case"left":p={x:n.x-o.width,y:i};break;default:p={x:n.x,y:n.y}}switch(pa(t)){case"start":p[s]-=c*(r&&u?-1:1);break;case"end":p[s]+=c*(r&&u?-1:1)}return p}const KFe=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:p}=iN(c,n,l),h=n,g={},x=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s}=t,{element:l,padding:c=0}=Ea(e,t)||{};if(l==null)return{};const u=HP(c),p={x:r,y:n},h=Sl(o),g=VP(h),x=await i.getDimensions(l),y=h==="y",b=y?"top":"left",m=y?"bottom":"right",f=y?"clientHeight":"clientWidth",v=a.reference[g]+a.reference[h]-p[h]-a.floating[g],d=p[h]-a.reference[h],w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let _=w?w[f]:0;_&&await(i.isElement==null?void 0:i.isElement(w))||(_=s.floating[f]||a.floating[g]);const E=v/2-d/2,k=_/2-x[g]/2-1,S=gl(u[b],k),R=gl(u[m],k),T=S,P=_-x[g]-R,j=_/2-x[g]/2+E,L=bR(T,j,P),D=pa(o)!=null&&j!=L&&a.reference[g]/2-(je.concat(t,t+"-start",t+"-end"),[]),YFe={left:"right",right:"left",bottom:"top",top:"bottom"};function qx(e){return e.replace(/left|right|bottom|top/g,t=>YFe[t])}function $X(e,t,r){r===void 0&&(r=!1);const n=pa(e),o=Sl(e),a=VP(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=qx(i)),{main:i,cross:qx(i)}}const XFe={start:"end",end:"start"};function P6(e){return e.replace(/start|end/g,t=>XFe[t])}const ZFe=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,o;const{rects:a,middlewareData:i,placement:s,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:p,allowedPlacements:h=lN,autoAlignment:g=!0,...x}=Ea(e,t),y=p!==void 0||h===lN?function(R,T,P){return(R?[...P.filter(j=>pa(j)===R),...P.filter(j=>pa(j)!==R)]:P.filter(j=>yo(j)===j)).filter(j=>!R||pa(j)===R||!!T&&P6(j)!==j)}(p||null,g,h):h,b=await qa(t,x),m=((r=i.autoPlacement)==null?void 0:r.index)||0,f=y[m];if(f==null)return{};const{main:v,cross:d}=$X(f,a,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(s!==f)return{reset:{placement:y[0]}};const w=[b[yo(f)],b[v],b[d]],_=[...((n=i.autoPlacement)==null?void 0:n.overflows)||[],{placement:f,overflows:w}],E=y[m+1];if(E)return{data:{index:m+1,overflows:_},reset:{placement:E}};const k=_.map(R=>{const T=pa(R.placement);return[R.placement,T&&u?R.overflows.slice(0,2).reduce((P,j)=>P+j,0):R.overflows[0],R.overflows]}).sort((R,T)=>R[1]-T[1]),S=((o=k.filter(R=>R[2].slice(0,pa(R[0])?2:3).every(T=>T<=0))[0])==null?void 0:o[0])||k[0][0];return S!==s?{data:{index:m+1,overflows:_},reset:{placement:S}}:{}}}},QFe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r;const{placement:n,middlewareData:o,rects:a,initialPlacement:i,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:x=!0,...y}=Ea(e,t),b=yo(n),m=yo(i)===i,f=await(s.isRTL==null?void 0:s.isRTL(l.floating)),v=p||(m||!x?[qx(i)]:function(T){const P=qx(T);return[P6(T),P,P6(P)]}(i));p||g==="none"||v.push(...function(T,P,j,L){const D=pa(T);let B=function(V,q,z){const F=["left","right"],N=["right","left"],W=["top","bottom"],G=["bottom","top"];switch(V){case"top":case"bottom":return z?q?N:F:q?F:N;case"left":case"right":return q?W:G;default:return[]}}(yo(T),j==="start",L);return D&&(B=B.map(V=>V+"-"+D),P&&(B=B.concat(B.map(P6)))),B}(i,x,g,f));const d=[i,...v],w=await qa(t,y),_=[];let E=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&_.push(w[b]),u){const{main:T,cross:P}=$X(n,a,f);_.push(w[T],w[P])}if(E=[...E,{placement:n,overflows:_}],!_.every(T=>T<=0)){var k,S;const T=(((k=o.flip)==null?void 0:k.index)||0)+1,P=d[T];if(P)return{data:{index:T,overflows:E},reset:{placement:P}};let j=(S=E.filter(L=>L.overflows[0]<=0).sort((L,D)=>L.overflows[1]-D.overflows[1])[0])==null?void 0:S.placement;if(!j)switch(h){case"bestFit":{var R;const L=(R=E.map(D=>[D.placement,D.overflows.filter(B=>B>0).reduce((B,V)=>B+V,0)]).sort((D,B)=>D[1]-B[1])[0])==null?void 0:R[0];L&&(j=L);break}case"initialPlacement":j=i}if(n!==j)return{reset:{placement:j}}}return{}}}};function cN(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function uN(e){return LX.some(t=>e[t]>=0)}const JFe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ea(e,t);switch(n){case"referenceHidden":{const a=cN(await qa(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:uN(a)}}}case"escaped":{const a=cN(await qa(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:a,escaped:uN(a)}}}default:return{}}}}};function dN(e){const t=gl(...e.map(n=>n.left)),r=gl(...e.map(n=>n.top));return{x:t,y:r,width:za(...e.map(n=>n.right))-t,height:za(...e.map(n=>n.bottom))-r}}const eze=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:r,elements:n,rects:o,platform:a,strategy:i}=t,{padding:s=2,x:l,y:c}=Ea(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(n.reference))||[]),p=function(y){const b=y.slice().sort((v,d)=>v.y-d.y),m=[];let f=null;for(let v=0;vf.height/2?m.push([d]):m[m.length-1].push(d),f=d}return m.map(v=>Gd(dN(v)))}(u),h=Gd(dN(u)),g=HP(s),x=await a.getElementRects({reference:{getBoundingClientRect:function(){if(p.length===2&&p[0].left>p[1].right&&l!=null&&c!=null)return p.find(y=>l>y.left-g.left&&ly.top-g.top&&c=2){if(Sl(r)==="x"){const w=p[0],_=p[p.length-1],E=yo(r)==="top",k=w.top,S=_.bottom,R=E?w.left:_.left,T=E?w.right:_.right;return{top:k,bottom:S,left:R,right:T,width:T-R,height:S-k,x:R,y:k}}const y=yo(r)==="left",b=za(...p.map(w=>w.right)),m=gl(...p.map(w=>w.left)),f=p.filter(w=>y?w.left===m:w.right===b),v=f[0].top,d=f[f.length-1].bottom;return{top:v,bottom:d,left:m,right:b,width:b-m,height:d-v,x:m,y:v}}return h}},floating:n.floating,strategy:i});return o.reference.x!==x.reference.x||o.reference.y!==x.reference.y||o.reference.width!==x.reference.width||o.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}},NX=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,o=await async function(a,i){const{placement:s,platform:l,elements:c}=a,u=await(l.isRTL==null?void 0:l.isRTL(c.floating)),p=yo(s),h=pa(s),g=Sl(s)==="x",x=["left","top"].includes(p)?-1:1,y=u&&g?-1:1,b=Ea(i,a);let{mainAxis:m,crossAxis:f,alignmentAxis:v}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...b};return h&&typeof v=="number"&&(f=h==="end"?-1*v:v),g?{x:f*y,y:m*x}:{x:m*x,y:f*y}}(t,e);return{x:r+o.x,y:n+o.y,data:o}}}};function DX(e){return e==="x"?"y":"x"}const tze=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:b=>{let{x:m,y:f}=b;return{x:m,y:f}}},...l}=Ea(e,t),c={x:r,y:n},u=await qa(t,l),p=Sl(yo(o)),h=DX(p);let g=c[p],x=c[h];if(a){const b=p==="y"?"bottom":"right";g=bR(g+u[p==="y"?"top":"left"],g,g-u[b])}if(i){const b=h==="y"?"bottom":"right";x=bR(x+u[h==="y"?"top":"left"],x,x-u[b])}const y=s.fn({...t,[p]:g,[h]:x});return{...y,data:{x:y.x-r,y:y.y-n}}}}},rze=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Ea(e,t),u={x:r,y:n},p=Sl(o),h=DX(p);let g=u[p],x=u[h];const y=Ea(s,t),b=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const v=p==="y"?"height":"width",d=a.reference[p]-a.floating[v]+b.mainAxis,w=a.reference[p]+a.reference[v]-b.mainAxis;gw&&(g=w)}if(c){var m,f;const v=p==="y"?"width":"height",d=["top","left"].includes(yo(o)),w=a.reference[h]-a.floating[v]+(d&&((m=i.offset)==null?void 0:m[h])||0)+(d?0:b.crossAxis),_=a.reference[h]+a.reference[v]+(d?0:((f=i.offset)==null?void 0:f[h])||0)-(d?b.crossAxis:0);x_&&(x=_)}return{[p]:g,[h]:x}}}},nze=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:a}=t,{apply:i=()=>{},...s}=Ea(e,t),l=await qa(t,s),c=yo(r),u=pa(r),p=Sl(r)==="x",{width:h,height:g}=n.floating;let x,y;c==="top"||c==="bottom"?(x=c,y=u===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(y=c,x=u==="end"?"top":"bottom");const b=g-l[x],m=h-l[y],f=!t.middlewareData.shift;let v=b,d=m;if(p){const _=h-l.left-l.right;d=u||f?gl(m,_):_}else{const _=g-l.top-l.bottom;v=u||f?gl(b,_):_}if(f&&!u){const _=za(l.left,0),E=za(l.right,0),k=za(l.top,0),S=za(l.bottom,0);p?d=h-2*(_!==0||E!==0?_+E:za(l.left,l.right)):v=g-2*(k!==0||S!==0?k+S:za(l.top,l.bottom))}await i({...t,availableWidth:d,availableHeight:v});const w=await o.getDimensions(a.floating);return h!==w.width||g!==w.height?{reset:{rects:!0}}:{}}}};function go(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ja(e){return go(e).getComputedStyle(e)}function FX(e){return e instanceof go(e).Node}function vl(e){return FX(e)?(e.nodeName||"").toLowerCase():"#document"}function Ca(e){return e instanceof HTMLElement||e instanceof go(e).HTMLElement}function fN(e){return typeof ShadowRoot<"u"&&(e instanceof go(e).ShadowRoot||e instanceof ShadowRoot)}function a1(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Ja(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function oze(e){return["table","td","th"].includes(vl(e))}function yR(e){const t=UP(),r=Ja(e);return r.transform!=="none"||r.perspective!=="none"||!!r.containerType&&r.containerType!=="normal"||!t&&!!r.backdropFilter&&r.backdropFilter!=="none"||!t&&!!r.filter&&r.filter!=="none"||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function UP(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function o9(e){return["html","body","#document"].includes(vl(e))}const wR=Math.min,yd=Math.max,Gx=Math.round,sm=Math.floor,bl=e=>({x:e,y:e});function zX(e){const t=Ja(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ca(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=Gx(r)!==a||Gx(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function Ni(e){return e instanceof Element||e instanceof go(e).Element}function WP(e){return Ni(e)?e:e.contextElement}function wd(e){const t=WP(e);if(!Ca(t))return bl(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=zX(t);let i=(a?Gx(r.width):r.width)/n,s=(a?Gx(r.height):r.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const aze=bl(0);function BX(e){const t=go(e);return UP()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:aze}function Lc(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=WP(e);let i=bl(1);t&&(n?Ni(n)&&(i=wd(n)):i=wd(e));const s=function(h,g,x){return g===void 0&&(g=!1),!(!x||g&&x!==go(h))&&g}(a,r,n)?BX(a):bl(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,p=o.height/i.y;if(a){const h=go(a),g=n&&Ni(n)?go(n):n;let x=h.frameElement;for(;x&&n&&g!==h;){const y=wd(x),b=x.getBoundingClientRect(),m=getComputedStyle(x),f=b.left+(x.clientLeft+parseFloat(m.paddingLeft))*y.x,v=b.top+(x.clientTop+parseFloat(m.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,p*=y.y,l+=f,c+=v,x=go(x).frameElement}}return Gd({width:u,height:p,x:l,y:c})}function a9(e){return Ni(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Di(e){var t;return(t=(FX(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function VX(e){return Lc(Di(e)).left+a9(e).scrollLeft}function Kd(e){if(vl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fN(e)&&e.host||Di(e);return fN(t)?t.host:t}function HX(e){const t=Kd(e);return o9(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ca(t)&&a1(t)?t:HX(t)}function el(e,t){var r;t===void 0&&(t=[]);const n=HX(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=go(n);return o?t.concat(a,a.visualViewport||[],a1(n)?n:[]):t.concat(n,el(n))}function hN(e,t,r){let n;if(t==="viewport")n=function(o,a){const i=go(o),s=Di(o),l=i.visualViewport;let c=s.clientWidth,u=s.clientHeight,p=0,h=0;if(l){c=l.width,u=l.height;const g=UP();(!g||g&&a==="fixed")&&(p=l.offsetLeft,h=l.offsetTop)}return{width:c,height:u,x:p,y:h}}(e,r);else if(t==="document")n=function(o){const a=Di(o),i=a9(o),s=o.ownerDocument.body,l=yd(a.scrollWidth,a.clientWidth,s.scrollWidth,s.clientWidth),c=yd(a.scrollHeight,a.clientHeight,s.scrollHeight,s.clientHeight);let u=-i.scrollLeft+VX(o);const p=-i.scrollTop;return Ja(s).direction==="rtl"&&(u+=yd(a.clientWidth,s.clientWidth)-l),{width:l,height:c,x:u,y:p}}(Di(e));else if(Ni(t))n=function(o,a){const i=Lc(o,!0,a==="fixed"),s=i.top+o.clientTop,l=i.left+o.clientLeft,c=Ca(o)?wd(o):bl(1);return{width:o.clientWidth*c.x,height:o.clientHeight*c.y,x:l*c.x,y:s*c.y}}(t,r);else{const o=BX(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return Gd(n)}function UX(e,t){const r=Kd(e);return!(r===t||!Ni(r)||o9(r))&&(Ja(r).position==="fixed"||UX(r,t))}function ize(e,t,r){const n=Ca(t),o=Di(t),a=r==="fixed",i=Lc(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=bl(0);if(n||!n&&!a)if((vl(t)!=="body"||a1(o))&&(s=a9(t)),Ca(t)){const c=Lc(t,!0,a,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else o&&(l.x=VX(o));return{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function pN(e,t){return Ca(e)&&Ja(e).position!=="fixed"?t?t(e):e.offsetParent:null}function mN(e,t){const r=go(e);if(!Ca(e))return r;let n=pN(e,t);for(;n&&oze(n)&&Ja(n).position==="static";)n=pN(n,t);return n&&(vl(n)==="html"||vl(n)==="body"&&Ja(n).position==="static"&&!yR(n))?r:n||function(o){let a=Kd(o);for(;Ca(a)&&!o9(a);){if(yR(a))return a;a=Kd(a)}return null}(e)||r}const WX={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=Ca(r),a=Di(r);if(r===a)return t;let i={scrollLeft:0,scrollTop:0},s=bl(1);const l=bl(0);if((o||!o&&n!=="fixed")&&((vl(r)!=="body"||a1(a))&&(i=a9(r)),Ca(r))){const c=Lc(r);s=wd(r),l.x=c.x+r.clientLeft,l.y=c.y+r.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-i.scrollLeft*s.x+l.x,y:t.y*s.y-i.scrollTop*s.y+l.y}},getDocumentElement:Di,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?function(l,c){const u=c.get(l);if(u)return u;let p=el(l).filter(y=>Ni(y)&&vl(y)!=="body"),h=null;const g=Ja(l).position==="fixed";let x=g?Kd(l):l;for(;Ni(x)&&!o9(x);){const y=Ja(x),b=yR(x);b||y.position!=="fixed"||(h=null),(g?!b&&!h:!b&&y.position==="static"&&h&&["absolute","fixed"].includes(h.position)||a1(x)&&!b&&UX(l,x))?p=p.filter(m=>m!==x):h=y,x=Kd(x)}return c.set(l,p),p}(t,this._c):[].concat(r),n],i=a[0],s=a.reduce((l,c)=>{const u=hN(t,c,o);return l.top=yd(u.top,l.top),l.right=wR(u.right,l.right),l.bottom=wR(u.bottom,l.bottom),l.left=yd(u.left,l.left),l},hN(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:mN,getElementRects:async function(e){let{reference:t,floating:r,strategy:n}=e;const o=this.getOffsetParent||mN,a=this.getDimensions;return{reference:ize(t,await o(r),n),floating:{x:0,y:0,...await a(r)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return zX(e)},getScale:wd,isElement:Ni,isRTL:function(e){return getComputedStyle(e).direction==="rtl"}};function sze(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=WP(e),u=o||a?[...c?el(c):[],...el(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),a&&b.addEventListener("resize",r)});const p=c&&s?function(b,m){let f,v=null;const d=Di(b);function w(){clearTimeout(f),v&&v.disconnect(),v=null}return function _(E,k){E===void 0&&(E=!1),k===void 0&&(k=1),w();const{left:S,top:R,width:T,height:P}=b.getBoundingClientRect();if(E||m(),!T||!P)return;const j={rootMargin:-sm(R)+"px "+-sm(d.clientWidth-(S+T))+"px "+-sm(d.clientHeight-(R+P))+"px "+-sm(S)+"px",threshold:yd(0,wR(1,k))||1};let L=!0;function D(B){const V=B[0].intersectionRatio;if(V!==k){if(!L)return _();V?_(!1,V):f=setTimeout(()=>{_(!1,1e-7)},100)}L=!1}try{v=new IntersectionObserver(D,{...j,root:d.ownerDocument})}catch{v=new IntersectionObserver(D,j)}v.observe(b)}(!0),w}(c,r):null;let h,g=-1,x=null;i&&(x=new ResizeObserver(b=>{let[m]=b;m&&m.target===c&&x&&(x.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{x&&x.observe(t)})),r()}),c&&!l&&x.observe(c),x.observe(t));let y=l?Lc(e):null;return l&&function b(){const m=Lc(e);!y||m.x===y.x&&m.y===y.y&&m.width===y.width&&m.height===y.height||r(),y=m,h=requestAnimationFrame(b)}(),r(),()=>{u.forEach(b=>{o&&b.removeEventListener("scroll",r),a&&b.removeEventListener("resize",r)}),p&&p(),x&&x.disconnect(),x=null,l&&cancelAnimationFrame(h)}}const qX=(e,t,r)=>{const n=new Map,o={platform:WX,...r},a={...o.platform,_c:n};return KFe(e,t,{...o,platform:a})},lze=e=>{const{element:t,padding:r}=e;function n(o){return Object.prototype.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){return n(t)?t.current!=null?sN({element:t.current,padding:r}).fn(o):{}:t?sN({element:t,padding:r}).fn(o):{}}}};var M6=typeof document<"u"?O.useLayoutEffect:O.useEffect;function Kx(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Kx(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Kx(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function gN(e){const t=O.useRef(e);return M6(()=>{t.current=e}),t}function cze(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,whileElementsMounted:a,open:i}=e,[s,l]=O.useState({x:null,y:null,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[c,u]=O.useState(n);Kx(c,n)||u(n);const p=O.useRef(null),h=O.useRef(null),g=O.useRef(s),x=gN(a),y=gN(o),[b,m]=O.useState(null),[f,v]=O.useState(null),d=O.useCallback(R=>{p.current!==R&&(p.current=R,m(R))},[]),w=O.useCallback(R=>{h.current!==R&&(h.current=R,v(R))},[]),_=O.useCallback(()=>{if(!p.current||!h.current)return;const R={placement:t,strategy:r,middleware:c};y.current&&(R.platform=y.current),qX(p.current,h.current,R).then(T=>{const P={...T,isPositioned:!0};E.current&&!Kx(g.current,P)&&(g.current=P,Zo.flushSync(()=>{l(P)}))})},[c,t,r,y]);M6(()=>{i===!1&&g.current.isPositioned&&(g.current.isPositioned=!1,l(R=>({...R,isPositioned:!1})))},[i]);const E=O.useRef(!1);M6(()=>(E.current=!0,()=>{E.current=!1}),[]),M6(()=>{if(b&&f){if(x.current)return x.current(b,f,_);_()}},[b,f,_,x]);const k=O.useMemo(()=>({reference:p,floating:h,setReference:d,setFloating:w}),[d,w]),S=O.useMemo(()=>({reference:b,floating:f}),[b,f]);return O.useMemo(()=>({...s,update:_,refs:k,elements:S,reference:d,floating:w}),[s,_,k,S,d,w])}var Cr=typeof document<"u"?O.useLayoutEffect:O.useEffect;let IC=!1,uze=0;const vN=()=>"floating-ui-"+uze++;function dze(){const[e,t]=O.useState(()=>IC?vN():void 0);return Cr(()=>{e==null&&t(vN())},[]),O.useEffect(()=>{IC||(IC=!0)},[]),e}const fze=JS["useId".toString()],i1=fze||dze;function GX(){const e=new Map;return{emit(t,r){var n;(n=e.get(t))==null||n.forEach(o=>o(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){e.set(t,(e.get(t)||[]).filter(n=>n!==r))}}}const KX=O.createContext(null),YX=O.createContext(null),vf=()=>{var e;return((e=O.useContext(KX))==null?void 0:e.id)||null},Jc=()=>O.useContext(YX),hze=e=>{const t=i1(),r=Jc(),n=vf(),o=e||n;return Cr(()=>{const a={id:t,parentId:o};return r==null||r.addNode(a),()=>{r==null||r.removeNode(a)}},[r,t,o]),t},pze=e=>{let{children:t,id:r}=e;const n=vf();return O.createElement(KX.Provider,{value:O.useMemo(()=>({id:r,parentId:n}),[r,n])},t)},mze=e=>{let{children:t}=e;const r=O.useRef([]),n=O.useCallback(i=>{r.current=[...r.current,i]},[]),o=O.useCallback(i=>{r.current=r.current.filter(s=>s!==i)},[]),a=O.useState(()=>GX())[0];return O.createElement(YX.Provider,{value:O.useMemo(()=>({nodesRef:r,addNode:n,removeNode:o,events:a}),[r,n,o,a])},t)};function Xn(e){return(e==null?void 0:e.ownerDocument)||document}function qP(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function XX(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:n}=t;return r+"/"+n}).join(" "):navigator.userAgent}function GP(e){return Xn(e).defaultView||window}function Uo(e){return e?e instanceof GP(e).Element:!1}function $c(e){return e?e instanceof GP(e).HTMLElement:!1}function gze(e){if(typeof ShadowRoot>"u")return!1;const t=GP(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ZX(e){if(e.mozInputSource===0&&e.isTrusted)return!0;const t=/Android/i;return(t.test(qP())||t.test(XX()))&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function QX(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType!=="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0}function xR(){return/apple/i.test(navigator.vendor)}function JX(){return qP().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Yx(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function Wo(e){const t=O.useRef(e);return Cr(()=>{t.current=e}),t}const bN="data-floating-ui-safe-polygon";function A6(e,t,r){return r&&!Yx(r)?0:typeof e=="number"?e:e==null?void 0:e[t]}const vze=function(e,t){let{enabled:r=!0,delay:n=0,handleClose:o=null,mouseOnly:a=!1,restMs:i=0,move:s=!0}=t===void 0?{}:t;const{open:l,onOpenChange:c,dataRef:u,events:p,elements:{domReference:h,floating:g},refs:x}=e,y=Jc(),b=vf(),m=Wo(o),f=Wo(n),v=O.useRef(),d=O.useRef(),w=O.useRef(),_=O.useRef(),E=O.useRef(!0),k=O.useRef(!1),S=O.useRef(()=>{}),R=O.useCallback(()=>{var L;const D=(L=u.current.openEvent)==null?void 0:L.type;return(D==null?void 0:D.includes("mouse"))&&D!=="mousedown"},[u]);O.useEffect(()=>{if(!r)return;function L(){clearTimeout(d.current),clearTimeout(_.current),E.current=!0}return p.on("dismiss",L),()=>{p.off("dismiss",L)}},[r,p]),O.useEffect(()=>{if(!r||!m.current||!l)return;function L(){R()&&c(!1)}const D=Xn(g).documentElement;return D.addEventListener("mouseleave",L),()=>{D.removeEventListener("mouseleave",L)}},[g,l,c,r,m,u,R]);const T=O.useCallback(function(L){L===void 0&&(L=!0);const D=A6(f.current,"close",v.current);D&&!w.current?(clearTimeout(d.current),d.current=setTimeout(()=>c(!1),D)):L&&(clearTimeout(d.current),c(!1))},[f,c]),P=O.useCallback(()=>{S.current(),w.current=void 0},[]),j=O.useCallback(()=>{if(k.current){const L=Xn(x.floating.current).body;L.style.pointerEvents="",L.removeAttribute(bN),k.current=!1}},[x]);return O.useEffect(()=>{if(!r)return;function L(){return u.current.openEvent?["click","mousedown"].includes(u.current.openEvent.type):!1}function D(q){if(clearTimeout(d.current),E.current=!1,a&&!Yx(v.current)||i>0&&A6(f.current,"open")===0)return;u.current.openEvent=q;const z=A6(f.current,"open",v.current);z?d.current=setTimeout(()=>{c(!0)},z):c(!0)}function B(q){if(L())return;S.current();const z=Xn(g);if(clearTimeout(_.current),m.current){l||clearTimeout(d.current),w.current=m.current({...e,tree:y,x:q.clientX,y:q.clientY,onClose(){j(),P(),T()}});const F=w.current;z.addEventListener("mousemove",F),S.current=()=>{z.removeEventListener("mousemove",F)};return}T()}function V(q){L()||m.current==null||m.current({...e,tree:y,x:q.clientX,y:q.clientY,onClose(){j(),P(),T()}})(q)}if(Uo(h)){const q=h;return l&&q.addEventListener("mouseleave",V),g==null||g.addEventListener("mouseleave",V),s&&q.addEventListener("mousemove",D,{once:!0}),q.addEventListener("mouseenter",D),q.addEventListener("mouseleave",B),()=>{l&&q.removeEventListener("mouseleave",V),g==null||g.removeEventListener("mouseleave",V),s&&q.removeEventListener("mousemove",D),q.removeEventListener("mouseenter",D),q.removeEventListener("mouseleave",B)}}},[h,g,r,e,a,i,s,T,P,j,c,l,y,f,m,u]),Cr(()=>{var L;if(r&&l&&(L=m.current)!=null&&L.__options.blockPointerEvents&&R()){const V=Xn(g).body;if(V.setAttribute(bN,""),V.style.pointerEvents="none",k.current=!0,Uo(h)&&g){var D,B;const q=h,z=y==null||(D=y.nodesRef.current.find(F=>F.id===b))==null||(B=D.context)==null?void 0:B.elements.floating;return z&&(z.style.pointerEvents=""),q.style.pointerEvents="auto",g.style.pointerEvents="auto",()=>{q.style.pointerEvents="",g.style.pointerEvents=""}}}},[r,l,b,g,h,y,m,u,R]),Cr(()=>{l||(v.current=void 0,P(),j())},[l,P,j]),O.useEffect(()=>()=>{P(),clearTimeout(d.current),clearTimeout(_.current),j()},[r,P,j]),O.useMemo(()=>{if(!r)return{};function L(D){v.current=D.pointerType}return{reference:{onPointerDown:L,onPointerEnter:L,onMouseMove(){l||i===0||(clearTimeout(_.current),_.current=setTimeout(()=>{E.current||c(!0)},i))}},floating:{onMouseEnter(){clearTimeout(d.current)},onMouseLeave(){p.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),T(!1)}}}},[p,r,i,l,c,T])},eZ=O.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),tZ=()=>O.useContext(eZ),bze=e=>{let{children:t,delay:r,timeoutMs:n=0}=e;const[o,a]=O.useReducer((l,c)=>({...l,...c}),{delay:r,timeoutMs:n,initialDelay:r,currentId:null,isInstantPhase:!1}),i=O.useRef(null),s=O.useCallback(l=>{a({currentId:l})},[]);return Cr(()=>{o.currentId?i.current===null?i.current=o.currentId:a({isInstantPhase:!0}):(a({isInstantPhase:!1}),i.current=null)},[o.currentId]),O.createElement(eZ.Provider,{value:O.useMemo(()=>({...o,setState:a,setCurrentId:s}),[o,a,s])},t)},yze=(e,t)=>{let{open:r,onOpenChange:n}=e,{id:o}=t;const{currentId:a,setCurrentId:i,initialDelay:s,setState:l,timeoutMs:c}=tZ();O.useEffect(()=>{a&&(l({delay:{open:1,close:A6(s,"close")}}),a!==o&&n(!1))},[o,n,l,a,s]),O.useEffect(()=>{function u(){n(!1),l({delay:s,currentId:null})}if(!r&&a===o)if(c){const p=window.setTimeout(u,c);return()=>{clearTimeout(p)}}else u()},[r,l,a,o,n,s,c]),O.useEffect(()=>{r&&i(o)},[r,i,o])};function s1(){return s1=Object.assign||function(e){for(var t=1;te==null?void 0:e.focus({preventScroll:r});o?a():yN=requestAnimationFrame(a)}function wze(e,t){var r;let n=[],o=(r=e.find(a=>a.id===t))==null?void 0:r.parentId;for(;o;){const a=e.find(i=>i.id===o);o=a==null?void 0:a.parentId,a&&(n=n.concat(a))}return n}function mp(e,t){let r=e.filter(o=>{var a;return o.parentId===t&&((a=o.context)==null?void 0:a.open)})||[],n=r;for(;n.length;)n=e.filter(o=>{var a;return(a=n)==null?void 0:a.some(i=>{var s;return o.parentId===i.id&&((s=o.context)==null?void 0:s.open)})})||[],r=r.concat(n);return r}function i9(e){return"composedPath"in e?e.composedPath()[0]:e.target}const xze="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function rZ(e){return $c(e)&&e.matches(xze)}function No(e){e.preventDefault(),e.stopPropagation()}const Xx=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function nZ(e,t){const r=Wx(e,Xx());t==="prev"&&r.reverse();const n=r.indexOf(Nc(Xn(e)));return r.slice(n+1)[0]}function oZ(){return nZ(document.body,"next")}function aZ(){return nZ(document.body,"prev")}function gp(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!Wn(r,n)}function _ze(e){Wx(e,Xx()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function Eze(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const Cze=JS["useInsertionEffect".toString()],Oze=Cze||(e=>e());function bf(e){const t=O.useRef(()=>{});return Oze(()=>{t.current=e}),O.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o(xR()&&a("button"),document.addEventListener("keydown",wN),()=>{document.removeEventListener("keydown",wN)}),[]),O.createElement("span",s1({},t,{ref:r,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,"data-floating-ui-focus-guard":"",style:KP,onFocus:i=>{xR()&&JX()&&!kze(i)?(i.persist(),YP=window.setTimeout(()=>{n(i)},50)):n(i)}}))}),iZ=O.createContext(null),sZ=function(e){let{id:t,enabled:r=!0}=e===void 0?{}:e;const[n,o]=O.useState(null),a=i1(),i=lZ();return Cr(()=>{if(!r)return;const s=t?document.getElementById(t):null;if(s)s.setAttribute("data-floating-ui-portal",""),o(s);else{const l=document.createElement("div");t!==""&&(l.id=t||a),l.setAttribute("data-floating-ui-portal",""),o(l);const c=(i==null?void 0:i.portalNode)||document.body;return c.appendChild(l),()=>{c.removeChild(l)}}},[t,i,a,r]),n},Rze=e=>{let{children:t,id:r,root:n=null,preserveTabOrder:o=!0}=e;const a=sZ({id:r,enabled:!n}),[i,s]=O.useState(null),l=O.useRef(null),c=O.useRef(null),u=O.useRef(null),p=O.useRef(null),h=!!i&&!i.modal&&!!(n||a)&&o;return O.useEffect(()=>{if(!a||!o||i!=null&&i.modal)return;function g(x){a&&gp(x)&&(x.type==="focusin"?Eze:_ze)(a)}return a.addEventListener("focusin",g,!0),a.addEventListener("focusout",g,!0),()=>{a.removeEventListener("focusin",g,!0),a.removeEventListener("focusout",g,!0)}},[a,o,i==null?void 0:i.modal]),O.createElement(iZ.Provider,{value:O.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:u,afterInsideRef:p,portalNode:a,setFocusManagerState:s}),[o,a])},h&&a&&O.createElement(Zx,{"data-type":"outside",ref:l,onFocus:g=>{if(gp(g,a)){var x;(x=u.current)==null||x.focus()}else{const y=aZ()||(i==null?void 0:i.refs.domReference.current);y==null||y.focus()}}}),h&&a&&O.createElement("span",{"aria-owns":a.id,style:KP}),n?Zo.createPortal(t,n):a?Zo.createPortal(t,a):null,h&&a&&O.createElement(Zx,{"data-type":"outside",ref:c,onFocus:g=>{if(gp(g,a)){var x;(x=p.current)==null||x.focus()}else{const y=oZ()||(i==null?void 0:i.refs.domReference.current);y==null||y.focus(),i!=null&&i.closeOnFocusOut&&(i==null||i.onOpenChange(!1))}}}))},lZ=()=>O.useContext(iZ),Sze=O.forwardRef(function(t,r){return O.createElement("button",s1({},t,{type:"button",ref:r,tabIndex:-1,style:KP}))});function Tze(e){let{context:t,children:r,order:n=["content"],guards:o=!0,initialFocus:a=0,returnFocus:i=!0,modal:s=!0,visuallyHiddenDismiss:l=!1,closeOnFocusOut:c=!0}=e;const{refs:u,nodeId:p,onOpenChange:h,events:g,dataRef:x,elements:{domReference:y,floating:b}}=t,m=Wo(n),f=Jc(),v=lZ(),[d,w]=O.useState(null),_=typeof a=="number"&&a<0,E=O.useRef(null),k=O.useRef(null),S=O.useRef(!1),R=O.useRef(null),T=O.useRef(!1),P=v!=null,j=y&&y.getAttribute("role")==="combobox"&&rZ(y),L=O.useCallback(function(q){return q===void 0&&(q=b),q?Wx(q,Xx()):[]},[b]),D=O.useCallback(q=>{const z=L(q);return m.current.map(F=>y&&F==="reference"?y:b&&F==="floating"?b:z).filter(Boolean).flat()},[y,b,m,L]);O.useEffect(()=>{if(!s)return;function q(F){if(F.key==="Tab"){L().length===0&&!j&&No(F);const N=D(),W=i9(F);m.current[0]==="reference"&&W===y&&(No(F),F.shiftKey?xs(N[N.length-1]):xs(N[1])),m.current[1]==="floating"&&W===b&&F.shiftKey&&(No(F),xs(N[0]))}}const z=Xn(b);return z.addEventListener("keydown",q),()=>{z.removeEventListener("keydown",q)}},[y,b,s,m,u,j,L,D]),O.useEffect(()=>{if(!c)return;function q(){T.current=!0,setTimeout(()=>{T.current=!1})}function z(F){const N=F.relatedTarget,W=!(Wn(y,N)||Wn(b,N)||Wn(N,b)||Wn(v==null?void 0:v.portalNode,N)||N!=null&&N.hasAttribute("data-floating-ui-focus-guard")||f&&(mp(f.nodesRef.current,p).find(G=>{var Q,Z;return Wn((Q=G.context)==null?void 0:Q.elements.floating,N)||Wn((Z=G.context)==null?void 0:Z.elements.domReference,N)})||wze(f.nodesRef.current,p).find(G=>{var Q,Z;return((Q=G.context)==null?void 0:Q.elements.floating)===N||((Z=G.context)==null?void 0:Z.elements.domReference)===N})));N&&W&&!T.current&&N!==R.current&&(S.current=!0,setTimeout(()=>h(!1)))}if(b&&$c(y))return y.addEventListener("focusout",z),y.addEventListener("pointerdown",q),!s&&b.addEventListener("focusout",z),()=>{y.removeEventListener("focusout",z),y.removeEventListener("pointerdown",q),!s&&b.removeEventListener("focusout",z)}},[y,b,s,p,f,v,h,c]),O.useEffect(()=>{var q;const z=Array.from((v==null||(q=v.portalNode)==null?void 0:q.querySelectorAll("[data-floating-ui-portal]"))||[]);function F(){return[E.current,k.current].filter(Boolean)}if(b&&s){const N=[b,...z,...F()],W=TFe(m.current.includes("reference")||j?N.concat(y||[]):N);return()=>{W()}}},[y,b,s,m,v,j]),O.useEffect(()=>{if(s&&!o&&b){const q=[],z=Xx(),F=Wx(Xn(b).body,z),N=D(),W=F.filter(G=>!N.includes(G));return W.forEach((G,Q)=>{q[Q]=G.getAttribute("tabindex"),G.setAttribute("tabindex","-1")}),()=>{W.forEach((G,Q)=>{const Z=q[Q];Z==null?G.removeAttribute("tabindex"):G.setAttribute("tabindex",Z)})}}},[b,s,o,D]),Cr(()=>{if(!b)return;const q=Xn(b);let z=i,F=!1;const N=Nc(q),W=x.current;R.current=N;const G=D(b),Q=(typeof a=="number"?G[a]:a.current)||b;!_&&xs(Q,{preventScroll:Q===b});function Z(U){if(U.type==="escapeKey"&&u.domReference.current&&(R.current=u.domReference.current),["referencePress","escapeKey"].includes(U.type))return;const J=U.data.returnFocus;typeof J=="object"?(z=!0,F=J.preventScroll):z=J}return g.on("dismiss",Z),()=>{if(g.off("dismiss",Z),Wn(b,Nc(q))&&u.domReference.current&&(R.current=u.domReference.current),z&&$c(R.current)&&!S.current)if(!u.domReference.current||T.current)xs(R.current,{cancelPrevious:!1,preventScroll:F});else{var U;W.__syncReturnFocus=!0,(U=R.current)==null||U.focus({preventScroll:F}),setTimeout(()=>{delete W.__syncReturnFocus})}}},[b,D,a,i,x,u,g,_]),Cr(()=>{if(v)return v.setFocusManagerState({...t,modal:s,closeOnFocusOut:c}),()=>{v.setFocusManagerState(null)}},[v,s,c,t]),Cr(()=>{if(_||!b)return;function q(){w(L().length)}if(q(),typeof MutationObserver=="function"){const z=new MutationObserver(q);return z.observe(b,{childList:!0,subtree:!0}),()=>{z.disconnect()}}},[b,L,_,u]);const B=o&&(P||s)&&!j;function V(q){return l&&s?O.createElement(Sze,{ref:q==="start"?E:k,onClick:()=>h(!1)},typeof l=="string"?l:"Dismiss"):null}return O.createElement(O.Fragment,null,B&&O.createElement(Zx,{"data-type":"inside",ref:v==null?void 0:v.beforeInsideRef,onFocus:q=>{if(s){const F=D();xs(n[0]==="reference"?F[0]:F[F.length-1])}else if(v!=null&&v.preserveTabOrder&&v.portalNode)if(S.current=!1,gp(q,v.portalNode)){const F=oZ()||y;F==null||F.focus()}else{var z;(z=v.beforeOutsideRef.current)==null||z.focus()}}}),j?null:V("start"),O.cloneElement(r,d===0||n.includes("floating")?{tabIndex:0}:{}),V("end"),B&&O.createElement(Zx,{"data-type":"inside",ref:v==null?void 0:v.afterInsideRef,onFocus:q=>{if(s)xs(D()[0]);else if(v!=null&&v.preserveTabOrder&&v.portalNode)if(S.current=!0,gp(q,v.portalNode)){const F=aZ()||y;F==null||F.focus()}else{var z;(z=v.afterOutsideRef.current)==null||z.focus()}}}))}const lm="data-floating-ui-scroll-lock",Pze=O.forwardRef(function(t,r){let{lockScroll:n=!1,...o}=t;return Cr(()=>{var a,i;if(!n||document.body.hasAttribute(lm))return;document.body.setAttribute(lm,"");const c=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",u=window.innerWidth-document.documentElement.clientWidth;if(!/iP(hone|ad|od)|iOS/.test(qP()))return Object.assign(document.body.style,{overflow:"hidden",[c]:u+"px"}),()=>{document.body.removeAttribute(lm),Object.assign(document.body.style,{overflow:"",[c]:""})};const p=((a=window.visualViewport)==null?void 0:a.offsetLeft)||0,h=((i=window.visualViewport)==null?void 0:i.offsetTop)||0,g=window.pageXOffset,x=window.pageYOffset;return Object.assign(document.body.style,{position:"fixed",overflow:"hidden",top:-(x-Math.floor(h))+"px",left:-(g-Math.floor(p))+"px",right:"0",[c]:u+"px"}),()=>{Object.assign(document.body.style,{position:"",overflow:"",top:"",left:"",right:"",[c]:""}),document.body.removeAttribute(lm),window.scrollTo(g,x)}},[n]),O.createElement("div",s1({ref:r},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function xN(e){return $c(e.target)&&e.target.tagName==="BUTTON"}function _N(e){return rZ(e)}const Mze=function(e,t){let{open:r,onOpenChange:n,dataRef:o,elements:{domReference:a}}=e,{enabled:i=!0,event:s="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:u=!0}=t===void 0?{}:t;const p=O.useRef();return O.useMemo(()=>i?{reference:{onPointerDown(h){p.current=h.pointerType},onMouseDown(h){h.button===0&&(Yx(p.current,!0)&&c||s!=="click"&&(r?l&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")&&n(!1):(h.preventDefault(),n(!0)),o.current.openEvent=h.nativeEvent))},onClick(h){if(!o.current.__syncReturnFocus){if(s==="mousedown"&&p.current){p.current=void 0;return}Yx(p.current,!0)&&c||(r?l&&(!o.current.openEvent||o.current.openEvent.type==="click")&&n(!1):n(!0),o.current.openEvent=h.nativeEvent)}},onKeyDown(h){p.current=void 0,u&&(xN(h)||(h.key===" "&&!_N(a)&&h.preventDefault(),h.key==="Enter"&&(r?l&&n(!1):n(!0))))},onKeyUp(h){u&&(xN(h)||_N(a)||h.key===" "&&(r?l&&n(!1):n(!0)))}}}:{},[i,o,s,c,u,a,l,r,n])};function j6(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}const Aze={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},jze={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ize=function(e){var t,r;return e===void 0&&(e=!0),{escapeKeyBubbles:typeof e=="boolean"?e:(t=e.escapeKey)!=null?t:!0,outsidePressBubbles:typeof e=="boolean"?e:(r=e.outsidePress)!=null?r:!0}},Lze=function(e,t){let{open:r,onOpenChange:n,events:o,nodeId:a,elements:{reference:i,domReference:s,floating:l},dataRef:c}=e,{enabled:u=!0,escapeKey:p=!0,outsidePress:h=!0,outsidePressEvent:g="pointerdown",referencePress:x=!1,referencePressEvent:y="pointerdown",ancestorScroll:b=!1,bubbles:m=!0}=t===void 0?{}:t;const f=Jc(),v=vf()!=null,d=bf(typeof h=="function"?h:()=>!1),w=typeof h=="function"?d:h,_=O.useRef(!1),{escapeKeyBubbles:E,outsidePressBubbles:k}=Ize(m);return O.useEffect(()=>{if(!r||!u)return;c.current.__escapeKeyBubbles=E,c.current.__outsidePressBubbles=k;function S(L){if(L.key==="Escape"){const D=f?mp(f.nodesRef.current,a):[];if(D.length>0){let B=!0;if(D.forEach(V=>{var q;if((q=V.context)!=null&&q.open&&!V.context.dataRef.current.__escapeKeyBubbles){B=!1;return}}),!B)return}o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),n(!1)}}function R(L){const D=_.current;if(_.current=!1,D||typeof w=="function"&&!w(L))return;const B=i9(L);if($c(B)&&l){const z=l.ownerDocument.defaultView||window,F=B.scrollWidth>B.clientWidth,N=B.scrollHeight>B.clientHeight;let W=N&&L.offsetX>B.clientWidth;if(N&&z.getComputedStyle(B).direction==="rtl"&&(W=L.offsetX<=B.offsetWidth-B.clientWidth),W||F&&L.offsetY>B.clientHeight)return}const V=f&&mp(f.nodesRef.current,a).some(z=>{var F;return j6(L,(F=z.context)==null?void 0:F.elements.floating)});if(j6(L,l)||j6(L,s)||V)return;const q=f?mp(f.nodesRef.current,a):[];if(q.length>0){let z=!0;if(q.forEach(F=>{var N;if((N=F.context)!=null&&N.open&&!F.context.dataRef.current.__outsidePressBubbles){z=!1;return}}),!z)return}o.emit("dismiss",{type:"outsidePress",data:{returnFocus:v?{preventScroll:!0}:ZX(L)||QX(L)}}),n(!1)}function T(){n(!1)}const P=Xn(l);p&&P.addEventListener("keydown",S),w&&P.addEventListener(g,R);let j=[];return b&&(Uo(s)&&(j=el(s)),Uo(l)&&(j=j.concat(el(l))),!Uo(i)&&i&&i.contextElement&&(j=j.concat(el(i.contextElement)))),j=j.filter(L=>{var D;return L!==((D=P.defaultView)==null?void 0:D.visualViewport)}),j.forEach(L=>{L.addEventListener("scroll",T,{passive:!0})}),()=>{p&&P.removeEventListener("keydown",S),w&&P.removeEventListener(g,R),j.forEach(L=>{L.removeEventListener("scroll",T)})}},[c,l,s,i,p,w,g,o,f,a,r,n,b,u,E,k,v]),O.useEffect(()=>{_.current=!1},[w,g]),O.useMemo(()=>u?{reference:{[Aze[y]]:()=>{x&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),n(!1))}},floating:{[jze[g]]:()=>{_.current=!0}}}:{},[u,o,x,g,y,n])},$ze=function(e,t){let{open:r,onOpenChange:n,dataRef:o,events:a,refs:i,elements:{floating:s,domReference:l}}=e,{enabled:c=!0,keyboardOnly:u=!0}=t===void 0?{}:t;const p=O.useRef(""),h=O.useRef(!1),g=O.useRef();return O.useEffect(()=>{if(!c)return;const y=Xn(s).defaultView||window;function b(){!r&&$c(l)&&l===Nc(Xn(l))&&(h.current=!0)}return y.addEventListener("blur",b),()=>{y.removeEventListener("blur",b)}},[s,l,r,c]),O.useEffect(()=>{if(!c)return;function x(y){(y.type==="referencePress"||y.type==="escapeKey")&&(h.current=!0)}return a.on("dismiss",x),()=>{a.off("dismiss",x)}},[a,c]),O.useEffect(()=>()=>{clearTimeout(g.current)},[]),O.useMemo(()=>c?{reference:{onPointerDown(x){let{pointerType:y}=x;p.current=y,h.current=!!(y&&u)},onMouseLeave(){h.current=!1},onFocus(x){var y;h.current||x.type==="focus"&&((y=o.current.openEvent)==null?void 0:y.type)==="mousedown"&&o.current.openEvent&&j6(o.current.openEvent,l)||(o.current.openEvent=x.nativeEvent,n(!0))},onBlur(x){h.current=!1;const y=x.relatedTarget,b=Uo(y)&&y.hasAttribute("data-floating-ui-focus-guard")&&y.getAttribute("data-type")==="outside";g.current=setTimeout(()=>{Wn(i.floating.current,y)||Wn(l,y)||b||n(!1)})}}}:{},[c,u,l,i,o,n])};let EN=!1;const XP="ArrowUp",s9="ArrowDown",Yd="ArrowLeft",W1="ArrowRight";function cm(e,t,r){return Math.floor(e/t)!==r}function h0(e,t){return t<0||t>=e.current.length}function gn(e,t){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:a=1}=t===void 0?{}:t;const i=e.current;let s=r;do{var l,c;s=s+(n?-a:a)}while(s>=0&&s<=i.length-1&&(o?o.includes(s):i[s]==null||(l=i[s])!=null&&l.hasAttribute("disabled")||((c=i[s])==null?void 0:c.getAttribute("aria-disabled"))==="true"));return s}function l9(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function CN(e,t){return l9(t,e===XP||e===s9,e===Yd||e===W1)}function LC(e,t,r){return l9(t,e===s9,r?e===Yd:e===W1)||e==="Enter"||e==" "||e===""}function Nze(e,t,r){return l9(t,r?e===Yd:e===W1,e===s9)}function Dze(e,t,r){return l9(t,r?e===W1:e===Yd,e===XP)}function $C(e,t){return gn(e,{disabledIndices:t})}function ON(e,t){return gn(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}const Fze=function(e,t){let{open:r,onOpenChange:n,refs:o,elements:{domReference:a}}=e,{listRef:i,activeIndex:s,onNavigate:l=()=>{},enabled:c=!0,selectedIndex:u=null,allowEscape:p=!1,loop:h=!1,nested:g=!1,rtl:x=!1,virtual:y=!1,focusItemOnOpen:b="auto",focusItemOnHover:m=!0,openOnArrowKeyDown:f=!0,disabledIndices:v=void 0,orientation:d="vertical",cols:w=1,scrollItemIntoView:_=!0}=t===void 0?{listRef:{current:[]},activeIndex:null,onNavigate:()=>{}}:t;const E=vf(),k=Jc(),S=bf(l),R=O.useRef(b),T=O.useRef(u??-1),P=O.useRef(null),j=O.useRef(!0),L=O.useRef(S),D=O.useRef(r),B=O.useRef(!1),V=O.useRef(!1),q=Wo(v),z=Wo(r),F=Wo(_),[N,W]=O.useState(),G=O.useCallback(function(U,J,ae){ae===void 0&&(ae=!1);const ee=U.current[J.current];y?W(ee==null?void 0:ee.id):xs(ee,{preventScroll:!0,sync:JX()&&xR()?EN||B.current:!1}),requestAnimationFrame(()=>{const se=F.current;se&&ee&&(ae||!j.current)&&(ee.scrollIntoView==null||ee.scrollIntoView(typeof se=="boolean"?{block:"nearest",inline:"nearest"}:se))})},[y,F]);Cr(()=>{document.createElement("div").focus({get preventScroll(){return EN=!0,!1}})},[]),Cr(()=>{c&&(r?R.current&&u!=null&&(V.current=!0,S(u)):D.current&&(T.current=-1,L.current(null)))},[c,r,u,S]),Cr(()=>{if(c&&r)if(s==null){if(B.current=!1,u!=null)return;D.current&&(T.current=-1,G(i,T)),!D.current&&R.current&&(P.current!=null||R.current===!0&&P.current==null)&&(T.current=P.current==null||LC(P.current,d,x)||g?$C(i,q.current):ON(i,q.current),S(T.current))}else h0(i,s)||(T.current=s,G(i,T,V.current),V.current=!1)},[c,r,s,u,g,i,d,x,S,G,q]),Cr(()=>{if(c&&D.current&&!r){var U,J;const ae=k==null||(U=k.nodesRef.current.find(ee=>ee.id===E))==null||(J=U.context)==null?void 0:J.elements.floating;ae&&!Wn(ae,Nc(Xn(ae)))&&ae.focus({preventScroll:!0})}},[c,r,k,E]),Cr(()=>{P.current=null,L.current=S,D.current=r});const Q=s!=null,Z=O.useMemo(()=>{function U(ae){if(!r)return;const ee=i.current.indexOf(ae);ee!==-1&&S(ee)}return{onFocus(ae){let{currentTarget:ee}=ae;U(ee)},onClick:ae=>{let{currentTarget:ee}=ae;return ee.focus({preventScroll:!0})},...m&&{onMouseMove(ae){let{currentTarget:ee}=ae;U(ee)},onPointerLeave(){if(j.current&&(T.current=-1,G(i,T),Zo.flushSync(()=>S(null)),!y)){var ae;(ae=o.floating.current)==null||ae.focus({preventScroll:!0})}}}}},[r,o,G,m,i,S,y]);return O.useMemo(()=>{if(!c)return{};const U=q.current;function J(ue){if(j.current=!1,B.current=!0,!z.current&&ue.currentTarget===o.floating.current)return;if(g&&Dze(ue.key,d,x)){No(ue),n(!1),$c(a)&&a.focus();return}const we=T.current,Oe=$C(i,U),Te=ON(i,U);if(ue.key==="Home"&&(T.current=Oe,S(T.current)),ue.key==="End"&&(T.current=Te,S(T.current)),w>1){const Se=T.current;if(ue.key===XP){if(No(ue),Se===-1)T.current=Te;else if(T.current=gn(i,{startingIndex:Se,amount:w,decrement:!0,disabledIndices:U}),h&&(Se-wPe?me:me-w}h0(i,T.current)&&(T.current=Se),S(T.current)}if(ue.key===s9&&(No(ue),Se===-1?T.current=Oe:(T.current=gn(i,{startingIndex:Se,amount:w,disabledIndices:U}),h&&Se+w>Te&&(T.current=gn(i,{startingIndex:Se%w-w,amount:w,disabledIndices:U}))),h0(i,T.current)&&(T.current=Se),S(T.current)),d==="both"){const Pe=Math.floor(Se/w);ue.key===W1&&(No(ue),Se%w!==w-1?(T.current=gn(i,{startingIndex:Se,disabledIndices:U}),h&&cm(T.current,w,Pe)&&(T.current=gn(i,{startingIndex:Se-Se%w-1,disabledIndices:U}))):h&&(T.current=gn(i,{startingIndex:Se-Se%w-1,disabledIndices:U})),cm(T.current,w,Pe)&&(T.current=Se)),ue.key===Yd&&(No(ue),Se%w!==0?(T.current=gn(i,{startingIndex:Se,disabledIndices:U,decrement:!0}),h&&cm(T.current,w,Pe)&&(T.current=gn(i,{startingIndex:Se+(w-Se%w),decrement:!0,disabledIndices:U}))):h&&(T.current=gn(i,{startingIndex:Se+(w-Se%w),decrement:!0,disabledIndices:U})),cm(T.current,w,Pe)&&(T.current=Se));const Ie=Math.floor(Te/w)===Pe;h0(i,T.current)&&(h&&Ie?T.current=ue.key===Yd?Te:gn(i,{startingIndex:Se-Se%w-1,disabledIndices:U}):T.current=Se),S(T.current);return}}if(CN(ue.key,d)){if(No(ue),r&&!y&&Nc(ue.currentTarget.ownerDocument)===ue.currentTarget){T.current=LC(ue.key,d,x)?Oe:Te,S(T.current);return}LC(ue.key,d,x)?h?T.current=we>=Te?p&&we!==i.current.length?-1:Oe:gn(i,{startingIndex:we,disabledIndices:U}):T.current=Math.min(Te,gn(i,{startingIndex:we,disabledIndices:U})):h?T.current=we<=Oe?p&&we!==-1?i.current.length:Te:gn(i,{startingIndex:we,decrement:!0,disabledIndices:U}):T.current=Math.max(Oe,gn(i,{startingIndex:we,decrement:!0,disabledIndices:U})),h0(i,T.current)?S(null):S(T.current)}}function ae(ue){b==="auto"&&ZX(ue.nativeEvent)&&(R.current=!0)}function ee(ue){R.current=b,b==="auto"&&QX(ue.nativeEvent)&&(R.current=!0)}const se=y&&r&&Q&&{"aria-activedescendant":N};return{reference:{...se,onKeyDown(ue){j.current=!1;const we=ue.key.indexOf("Arrow")===0;if(y&&r)return J(ue);if(!r&&!f&&we)return;if((we||ue.key==="Enter"||ue.key===" "||ue.key==="")&&(P.current=ue.key),g){Nze(ue.key,d,x)&&(No(ue),r?(T.current=$C(i,U),S(T.current)):n(!0));return}CN(ue.key,d)&&(u!=null&&(T.current=u),No(ue),!r&&f?n(!0):J(ue),r&&S(T.current))},onFocus(){r&&S(null)},onPointerDown:ee,onMouseDown:ae,onClick:ae},floating:{"aria-orientation":d==="both"?void 0:d,...se,onKeyDown:J,onPointerMove(){j.current=!0}},item:Z}},[a,o,N,q,z,i,c,d,x,y,r,Q,g,u,f,p,w,h,b,S,n,Z])};function zze(e){return O.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},e)}const Bze=function(e,t){let{open:r}=e,{enabled:n=!0,role:o="dialog"}=t===void 0?{}:t;const a=i1(),i=i1();return O.useMemo(()=>{const s={id:a,role:o};return n?o==="tooltip"?{reference:{"aria-describedby":r?a:void 0},floating:s}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":o==="alertdialog"?"dialog":o,"aria-controls":r?a:void 0,...o==="listbox"&&{role:"combobox"},...o==="menu"&&{id:i}},floating:{...s,...o==="menu"&&{"aria-labelledby":i}}}:{}},[n,o,r,a,i])},kN=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,r)=>(r?"-":"")+t.toLowerCase());function Vze(e,t){const[r,n]=O.useState(e);return e&&!r&&n(!0),O.useEffect(()=>{if(!e){const o=setTimeout(()=>n(!1),t);return()=>clearTimeout(o)}},[e,t]),r}function cZ(e,t){let{open:r,elements:{floating:n}}=e,{duration:o=250}=t===void 0?{}:t;const i=(typeof o=="number"?o:o.close)||0,[s,l]=O.useState(!1),[c,u]=O.useState("unmounted"),p=Vze(r,i);return Cr(()=>{s&&!p&&u("unmounted")},[s,p]),Cr(()=>{if(n)if(r){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}else l(!0),u("close")},[r,n]),{isMounted:p,status:c}}function Hze(e,t){let{initial:r={opacity:0},open:n,close:o,common:a,duration:i=250}=t===void 0?{}:t;const s=e.placement,l=s.split("-")[0],[c,u]=O.useState({}),{isMounted:p,status:h}=cZ(e,{duration:i}),g=Wo(r),x=Wo(n),y=Wo(o),b=Wo(a),m=typeof i=="number",f=(m?i:i.open)||0,v=(m?i:i.close)||0;return Cr(()=>{const d={side:l,placement:s},w=g.current,_=y.current,E=x.current,k=b.current,S=typeof w=="function"?w(d):w,R=typeof _=="function"?_(d):_,T=typeof k=="function"?k(d):k,P=(typeof E=="function"?E(d):E)||Object.keys(S).reduce((j,L)=>(j[L]="",j),{});if((h==="initial"||h==="unmounted")&&u(j=>({transitionProperty:j.transitionProperty,...T,...S})),h==="open"&&u({transitionProperty:Object.keys(P).map(kN).join(","),transitionDuration:f+"ms",...T,...P}),h==="close"){const j=R||S;u({transitionProperty:Object.keys(j).map(kN).join(","),transitionDuration:v+"ms",...T,...j})}},[l,s,v,y,g,x,b,f,h]),{isMounted:p,styles:c}}const Uze=function(e,t){var r;let{open:n,dataRef:o,refs:a}=e,{listRef:i,activeIndex:s,onMatch:l=()=>{},enabled:c=!0,findMatch:u=null,resetMs:p=1e3,ignoreKeys:h=[],selectedIndex:g=null}=t===void 0?{listRef:{current:[]},activeIndex:null}:t;const x=O.useRef(),y=O.useRef(""),b=O.useRef((r=g??s)!=null?r:-1),m=O.useRef(null),f=bf(l),v=Wo(u),d=Wo(h);return Cr(()=>{n&&(clearTimeout(x.current),m.current=null,y.current="")},[n]),Cr(()=>{if(n&&y.current===""){var w;b.current=(w=g??s)!=null?w:-1}},[n,g,s]),O.useMemo(()=>{if(!c)return{};function w(_){var E;const k=i9(_.nativeEvent);if(Uo(k)&&(Nc(Xn(k))!==_.currentTarget?(E=a.floating.current)!=null&&E.contains(k)&&k.closest('[role="dialog"],[role="menu"],[role="listbox"],[role="tree"],[role="grid"]')!==_.currentTarget:!_.currentTarget.contains(k)))return;y.current.length>0&&y.current[0]!==" "&&(o.current.typing=!0,_.key===" "&&No(_));const S=i.current;if(S==null||d.current.includes(_.key)||_.key.length!==1||_.ctrlKey||_.metaKey||_.altKey)return;S.every(D=>{var B,V;return D?((B=D[0])==null?void 0:B.toLocaleLowerCase())!==((V=D[1])==null?void 0:V.toLocaleLowerCase()):!0})&&y.current===_.key&&(y.current="",b.current=m.current),y.current+=_.key,clearTimeout(x.current),x.current=setTimeout(()=>{y.current="",b.current=m.current,o.current.typing=!1},p);const T=b.current,P=[...S.slice((T||0)+1),...S.slice(0,(T||0)+1)],j=v.current?v.current(P,y.current):P.find(D=>(D==null?void 0:D.toLocaleLowerCase().indexOf(y.current.toLocaleLowerCase()))===0),L=j?S.indexOf(j):-1;L!==-1&&(f(L),m.current=L)}return{reference:{onKeyDown:w},floating:{onKeyDown:w}}},[c,o,i,p,d,v,f,a])};function RN(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const Wze=e=>({name:"inner",options:e,async fn(t){const{listRef:r,overflowRef:n,onFallbackChange:o,offset:a=0,index:i=0,minItemsVisible:s=4,referenceOverflowThreshold:l=0,scrollRef:c,...u}=e,{rects:p,elements:{floating:h}}=t,g=r.current[i];if(!g)return{};const x={...t,...await NX(-g.offsetTop-p.reference.height/2-g.offsetHeight/2-a).fn(t)},y=(c==null?void 0:c.current)||h,b=await qa(RN(x,y.scrollHeight),u),m=await qa(x,{...u,elementContext:"reference"}),f=Math.max(0,b.top),v=x.y+f,d=Math.max(0,y.scrollHeight-f-Math.max(0,b.bottom));return y.style.maxHeight=d+"px",y.scrollTop=f,o&&(y.offsetHeight=-l||m.bottom>=-l?Zo.flushSync(()=>o(!0)):Zo.flushSync(()=>o(!1))),n&&(n.current=await qa(RN({...x,y:v},y.offsetHeight),u)),{y:v}}}),qze=(e,t)=>{let{open:r,elements:n}=e,{enabled:o=!0,overflowRef:a,scrollRef:i,onChange:s}=t;const l=bf(s),c=O.useRef(!1),u=O.useRef(null),p=O.useRef(null);return O.useEffect(()=>{if(!o)return;function h(x){if(x.ctrlKey||!g||a.current==null)return;const y=x.deltaY,b=a.current.top>=-.5,m=a.current.bottom>=-.5,f=g.scrollHeight-g.clientHeight,v=y<0?-1:1,d=y<0?"max":"min";g.scrollHeight<=g.clientHeight||(!b&&y>0||!m&&y<0?(x.preventDefault(),Zo.flushSync(()=>{l(w=>w+Math[d](y,f*v))})):/firefox/i.test(XX())&&(g.scrollTop+=y))}const g=(i==null?void 0:i.current)||n.floating;if(r&&g)return g.addEventListener("wheel",h),requestAnimationFrame(()=>{u.current=g.scrollTop,a.current!=null&&(p.current={...a.current})}),()=>{u.current=null,p.current=null,g.removeEventListener("wheel",h)}},[o,r,n.floating,a,i,l]),O.useMemo(()=>o?{floating:{onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const h=(i==null?void 0:i.current)||n.floating;if(!(!a.current||!h||!c.current)){if(u.current!==null){const g=h.scrollTop-u.current;(a.current.bottom<-.5&&g<-1||a.current.top<-.5&&g>1)&&Zo.flushSync(()=>l(x=>x+g))}requestAnimationFrame(()=>{u.current=h.scrollTop})}}}}:{},[o,a,n.floating,i,l])};function Gze(e,t){const[r,n]=e;let o=!1;const a=t.length;for(let i=0,s=a-1;i=n!=p>=n&&r<=(u-l)*(n-c)/(p-c)+l&&(o=!o)}return o}function Kze(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Yze(e){let{restMs:t=0,buffer:r=.5,blockPointerEvents:n=!1}=e===void 0?{}:e,o,a=!1,i=!1;const s=l=>{let{x:c,y:u,placement:p,elements:h,onClose:g,nodeId:x,tree:y}=l;return function(m){function f(){clearTimeout(o),g()}if(clearTimeout(o),!h.domReference||!h.floating||p==null||c==null||u==null)return;const{clientX:v,clientY:d}=m,w=[v,d],_=i9(m),E=m.type==="mouseleave",k=Wn(h.floating,_),S=Wn(h.domReference,_),R=h.domReference.getBoundingClientRect(),T=h.floating.getBoundingClientRect(),P=p.split("-")[0],j=c>T.right-T.width/2,L=u>T.bottom-T.height/2,D=Kze(w,R);if(k&&(i=!0,!E))return;if(S&&(i=!1),S&&!E){i=!0;return}if(E&&Uo(m.relatedTarget)&&Wn(h.floating,m.relatedTarget)||y&&mp(y.nodesRef.current,x).some(z=>{let{context:F}=z;return F==null?void 0:F.open}))return;if(P==="top"&&u>=R.bottom-1||P==="bottom"&&u<=R.top+1||P==="left"&&c>=R.right-1||P==="right"&&c<=R.left+1)return f();let B=[];switch(P){case"top":B=[[T.left,R.top+1],[T.left,T.bottom-1],[T.right,T.bottom-1],[T.right,R.top+1]],a=v>=T.left&&v<=T.right&&d>=T.top&&d<=R.top+1;break;case"bottom":B=[[T.left,T.top+1],[T.left,R.bottom-1],[T.right,R.bottom-1],[T.right,T.top+1]],a=v>=T.left&&v<=T.right&&d>=R.bottom-1&&d<=T.bottom;break;case"left":B=[[T.right-1,T.bottom],[T.right-1,T.top],[R.left+1,T.top],[R.left+1,T.bottom]],a=v>=T.left&&v<=R.left+1&&d>=T.top&&d<=T.bottom;break;case"right":B=[[R.right-1,T.bottom],[R.right-1,T.top],[T.left+1,T.top],[T.left+1,T.bottom]],a=v>=R.right-1&&v<=T.right&&d>=T.top&&d<=T.bottom;break}function V(z){let[F,N]=z;const W=T.width>R.width,G=T.height>R.height;switch(P){case"top":{const Q=[W?F+r/2:j?F+r*4:F-r*4,N+r+1],Z=[W?F-r/2:j?F+r*4:F-r*4,N+r+1],U=[[T.left,j||W?T.bottom-r:T.top],[T.right,j?W?T.bottom-r:T.top:T.bottom-r]];return[Q,Z,...U]}case"bottom":{const Q=[W?F+r/2:j?F+r*4:F-r*4,N-r],Z=[W?F-r/2:j?F+r*4:F-r*4,N-r],U=[[T.left,j||W?T.top+r:T.bottom],[T.right,j?W?T.top+r:T.bottom:T.top+r]];return[Q,Z,...U]}case"left":{const Q=[F+r+1,G?N+r/2:L?N+r*4:N-r*4],Z=[F+r+1,G?N-r/2:L?N+r*4:N-r*4];return[...[[L||G?T.right-r:T.left,T.top],[L?G?T.right-r:T.left:T.right-r,T.bottom]],Q,Z]}case"right":{const Q=[F-r,G?N+r/2:L?N+r*4:N-r*4],Z=[F-r,G?N-r/2:L?N+r*4:N-r*4],U=[[L||G?T.left+r:T.right,T.top],[L?G?T.left+r:T.right:T.left+r,T.bottom]];return[Q,Z,...U]}}}const q=a?B:V([c,u]);if(!a){if(i&&!D)return f();Gze([v,d],q)?t&&!i&&(o=setTimeout(f,t)):f()}}};return s.__options={blockPointerEvents:n},s}function Xze(e){e===void 0&&(e={});const{open:t=!1,onOpenChange:r,nodeId:n}=e,o=cze(e),a=Jc(),i=O.useRef(null),s=O.useRef({}),l=O.useState(()=>GX())[0],[c,u]=O.useState(null),p=O.useCallback(m=>{const f=Uo(m)?{getBoundingClientRect:()=>m.getBoundingClientRect(),contextElement:m}:m;o.refs.setReference(f)},[o.refs]),h=O.useCallback(m=>{(Uo(m)||m===null)&&(i.current=m,u(m)),(Uo(o.refs.reference.current)||o.refs.reference.current===null||m!==null&&!Uo(m))&&o.refs.setReference(m)},[o.refs]),g=O.useMemo(()=>({...o.refs,setReference:h,setPositionReference:p,domReference:i}),[o.refs,h,p]),x=O.useMemo(()=>({...o.elements,domReference:c}),[o.elements,c]),y=bf(r),b=O.useMemo(()=>({...o,refs:g,elements:x,dataRef:s,nodeId:n,events:l,open:t,onOpenChange:y}),[o,n,l,t,y,g,x]);return Cr(()=>{const m=a==null?void 0:a.nodesRef.current.find(f=>f.id===n);m&&(m.context=b)}),O.useMemo(()=>({...o,context:b,refs:g,reference:h,positionReference:p}),[o,g,b,h,p])}function NC(e,t,r){const n=new Map;return{...r==="floating"&&{tabIndex:-1},...e,...t.map(o=>o?o[r]:null).concat(e).reduce((o,a)=>(a&&Object.entries(a).forEach(i=>{let[s,l]=i;if(s.indexOf("on")===0){if(n.has(s)||n.set(s,[]),typeof l=="function"){var c;(c=n.get(s))==null||c.push(l),o[s]=function(){for(var u,p=arguments.length,h=new Array(p),g=0;gx(...h))}}}else o[s]=l}),o),{})}}const Zze=function(e){e===void 0&&(e=[]);const t=e,r=O.useCallback(a=>NC(a,e,"reference"),t),n=O.useCallback(a=>NC(a,e,"floating"),t),o=O.useCallback(a=>NC(a,e,"item"),e.map(a=>a==null?void 0:a.item));return O.useMemo(()=>({getReferenceProps:r,getFloatingProps:n,getItemProps:o}),[r,n,o])},Qze=Object.freeze(Object.defineProperty({__proto__:null,FloatingDelayGroup:bze,FloatingFocusManager:Tze,FloatingNode:pze,FloatingOverlay:Pze,FloatingPortal:Rze,FloatingTree:mze,arrow:lze,autoPlacement:ZFe,autoUpdate:sze,computePosition:qX,detectOverflow:qa,flip:QFe,getOverflowAncestors:el,hide:JFe,inline:eze,inner:Wze,limitShift:rze,offset:NX,platform:WX,safePolygon:Yze,shift:tze,size:nze,useClick:Mze,useDelayGroup:yze,useDelayGroupContext:tZ,useDismiss:Lze,useFloating:Xze,useFloatingNodeId:hze,useFloatingParentNodeId:vf,useFloatingPortalNode:sZ,useFloatingTree:Jc,useFocus:$ze,useHover:vze,useId:i1,useInnerOffset:qze,useInteractions:Zze,useListNavigation:Fze,useMergeRefs:zze,useRole:Bze,useTransitionStatus:cZ,useTransitionStyles:Hze,useTypeahead:Uze},Symbol.toStringTag,{value:"Module"})),Gr=lf(Qze);var uZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(x,y){for(var b in y)Object.defineProperty(x,b,{enumerable:!0,get:y[b]})}t(e,{DialogHeader:function(){return h},default:function(){return g}});var r=c(O),n=c(ct),o=Je,a=c(Ze),i=Ye,s=mf;function l(){return l=Object.assign||function(x){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(x,m)&&(b[m]=x[m])}return b}function p(x,y){if(x==null)return{};var b={},m=Object.keys(x),f,v;for(v=0;v=0)&&(b[f]=x[f]);return b}var h=r.default.forwardRef(function(x,y){var b=x.className,m=x.children,f=u(x,["className","children"]),v=(0,i.useTheme)().dialogHeader,d=v.defaultProps,w=v.styles.base;b=b??d.className;var _=(0,o.twMerge)((0,n.default)((0,a.default)(w)),b);return r.default.createElement("div",l({},f,{ref:y,className:_}),m)});h.propTypes={className:s.propTypesClassName,children:s.propTypesChildren},h.displayName="MaterialTailwind.DialogHeader";var g=h})(uZ);var dZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,b){for(var m in b)Object.defineProperty(y,m,{enumerable:!0,get:b[m]})}t(e,{DialogBody:function(){return g},default:function(){return x}});var r=u(O),n=u(ct),o=Je,a=u(Ze),i=Ye,s=mf;function l(y,b,m){return b in y?Object.defineProperty(y,b,{value:m,enumerable:!0,configurable:!0,writable:!0}):y[b]=m,y}function c(){return c=Object.assign||function(y){for(var b=1;b=0)&&Object.prototype.propertyIsEnumerable.call(y,f)&&(m[f]=y[f])}return m}function h(y,b){if(y==null)return{};var m={},f=Object.keys(y),v,d;for(d=0;d=0)&&(m[v]=y[v]);return m}var g=r.default.forwardRef(function(y,b){var m=y.divider,f=y.className,v=y.children,d=p(y,["divider","className","children"]),w=(0,i.useTheme)().dialogBody,_=w.defaultProps,E=w.styles.base;f=f??_.className;var k=(0,o.twMerge)((0,n.default)((0,a.default)(E.initial),l({},(0,a.default)(E.divider),m)),f);return r.default.createElement("div",c({},d,{ref:b,className:k}),v)});g.propTypes={divider:s.propTypesDivider,className:s.propTypesClassName,children:s.propTypesChildren},g.displayName="MaterialTailwind.DialogBody";var x=g})(dZ);var fZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(x,y){for(var b in y)Object.defineProperty(x,b,{enumerable:!0,get:y[b]})}t(e,{DialogFooter:function(){return h},default:function(){return g}});var r=c(O),n=c(ct),o=Je,a=c(Ze),i=Ye,s=mf;function l(){return l=Object.assign||function(x){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(x,m)&&(b[m]=x[m])}return b}function p(x,y){if(x==null)return{};var b={},m=Object.keys(x),f,v;for(v=0;v=0)&&(b[f]=x[f]);return b}var h=r.default.forwardRef(function(x,y){var b=x.className,m=x.children,f=u(x,["className","children"]),v=(0,i.useTheme)().dialogFooter,d=v.defaultProps,w=v.styles.base;b=b??d.className;var _=(0,o.twMerge)((0,n.default)((0,a.default)(w)),b);return r.default.createElement("div",l({},f,{ref:y,className:_}),m)});h.propTypes={className:s.propTypesClassName,children:s.propTypesChildren},h.displayName="MaterialTailwind.DialogFooter";var g=h})(fZ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,T){for(var P in T)Object.defineProperty(R,P,{enumerable:!0,get:T[P]})}t(e,{Dialog:function(){return k},DialogHeader:function(){return g.DialogHeader},DialogBody:function(){return x.DialogBody},DialogFooter:function(){return y.DialogFooter},default:function(){return S}});var r=f(O),n=f(et),o=Gr,a=rn,i=f(ct),s=f(dn),l=Je,c=f(wr),u=f(Ze),p=Ye,h=mf,g=uZ,x=dZ,y=fZ;function b(R,T,P){return T in R?Object.defineProperty(R,T,{value:P,enumerable:!0,configurable:!0,writable:!0}):R[T]=P,R}function m(){return m=Object.assign||function(R){for(var T=1;T=0)&&Object.prototype.propertyIsEnumerable.call(R,j)&&(P[j]=R[j])}return P}function E(R,T){if(R==null)return{};var P={},j=Object.keys(R),L,D;for(D=0;D=0)&&(P[L]=R[L]);return P}var k=r.default.forwardRef(function(R,T){var P=R.open,j=R.handler,L=R.size,D=R.dismiss,B=R.animate,V=R.className,q=R.children,z=_(R,["open","handler","size","dismiss","animate","className","children"]),F=(0,p.useTheme)().dialog,N=F.defaultProps,W=F.valid,G=F.styles,Q=G.base,Z=G.sizes;j=j??void 0,L=L??N.size,D=D??N.dismiss,B=B??N.animate,V=V??N.className;var U=(0,i.default)((0,u.default)(Q.backdrop)),J=(0,l.twMerge)((0,i.default)((0,u.default)(Q.container),(0,u.default)(Z[(0,c.default)(W.sizes,L,"md")])),V),ae={unmount:{opacity:0,y:-50,transition:{duration:.3}},mount:{opacity:1,y:0,transition:{duration:.3}}},ee={unmount:{opacity:0,transition:{delay:.2}},mount:{opacity:1}},se=(0,s.default)(ae,B),ue=(0,o.useFloating)({open:P,onOpenChange:j}),we=ue.floating,Oe=ue.context,Te=(0,o.useId)(),Se="".concat(Te,"-label"),Pe="".concat(Te,"-description"),Ie=(0,o.useInteractions)([(0,o.useClick)(Oe),(0,o.useRole)(Oe),(0,o.useDismiss)(Oe,D)]).getFloatingProps,me=(0,o.useMergeRefs)([T,we]),be=a.AnimatePresence;return r.default.createElement(a.LazyMotion,{features:a.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(be,null,P&&r.default.createElement(o.FloatingOverlay,{style:{zIndex:9999},lockScroll:!0},r.default.createElement(o.FloatingFocusManager,{context:Oe},r.default.createElement(a.m.div,{className:L==="xxl"?"":U,initial:"unmount",exit:"unmount",animate:P?"mount":"unmount",variants:ee,transition:{duration:.2}},r.default.createElement(a.m.div,m({},Ie(w(v({},z),{ref:me,className:J,"aria-labelledby":Se,"aria-describedby":Pe})),{initial:"unmount",exit:"unmount",animate:P?"mount":"unmount",variants:se}),q)))))))});k.propTypes={open:h.propTypesOpen,handler:h.propTypesHandler,size:n.default.oneOf(h.propTypesSize),dismiss:h.propTypesDismiss,animate:h.propTypesAnimate,className:h.propTypesClassName,children:h.propTypesChildren},k.displayName="MaterialTailwind.Dialog";var S=Object.assign(k,{Header:g.DialogHeader,Body:x.DialogBody,Footer:y.DialogFooter})})(TX);var hZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,m){for(var f in m)Object.defineProperty(b,f,{enumerable:!0,get:m[f]})}t(e,{Input:function(){return x},default:function(){return y}});var r=p(O),n=p(et),o=p(ct),a=p(wr),i=p(Ze),s=Ye,l=N1;function c(b,m,f){return m in b?Object.defineProperty(b,m,{value:f,enumerable:!0,configurable:!0,writable:!0}):b[m]=f,b}function u(){return u=Object.assign||function(b){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(b,v)&&(f[v]=b[v])}return f}function g(b,m){if(b==null)return{};var f={},v=Object.keys(b),d,w;for(w=0;w=0)&&(f[d]=b[d]);return f}var x=r.default.forwardRef(function(b,m){var f=b.variant,v=b.color,d=b.size,w=b.label,_=b.error,E=b.success,k=b.icon,S=b.containerProps,R=b.labelProps,T=b.className,P=b.shrink,j=b.inputRef,L=h(b,["variant","color","size","label","error","success","icon","containerProps","labelProps","className","shrink","inputRef"]),D=(0,s.useTheme)().input,B=D.defaultProps,V=D.valid,q=D.styles,z=q.base,F=q.variants;f=f??B.variant,d=d??B.size,v=v??B.color,w=w??B.label,R=R??B.labelProps,S=S??B.containerProps,T=T??B.className,P=P??B.shrink,k=k??B.icon;var N=F[(0,a.default)(V.variants,f,"outlined")],W=N.sizes[(0,a.default)(V.sizes,d,"md")],G=(0,i.default)(N.error.input),Q=(0,i.default)(N.success.input),Z=(0,i.default)(N.shrink.input),U=(0,i.default)(N.colors.input[(0,a.default)(V.colors,v,"blue")]),J=(0,i.default)(N.error.label),ae=(0,i.default)(N.success.label),ee=(0,i.default)(N.shrink.label),se=(0,i.default)(N.colors.label[(0,a.default)(V.colors,v,"blue")]),ue=(0,o.default)((0,i.default)(z.container),(0,i.default)(W.container),S==null?void 0:S.className),we=(0,o.default)((0,i.default)(z.input),(0,i.default)(N.base.input),(0,i.default)(W.input),c({},(0,i.default)(N.base.inputWithIcon),k),c({},U,!_&&!E),c({},G,_),c({},Q,E),c({},Z,P),T),Oe=(0,o.default)((0,i.default)(z.label),(0,i.default)(N.base.label),(0,i.default)(W.label),c({},se,!_&&!E),c({},J,_),c({},ae,E),c({},ee,P),R==null?void 0:R.className),Te=(0,o.default)((0,i.default)(z.icon),(0,i.default)(N.base.icon),(0,i.default)(W.icon)),Se=(0,o.default)((0,i.default)(z.asterisk));return r.default.createElement("div",u({},S,{ref:m,className:ue}),k&&r.default.createElement("div",{className:Te},k),r.default.createElement("input",u({},L,{ref:j,className:we,placeholder:(L==null?void 0:L.placeholder)||" "})),r.default.createElement("label",u({},R,{className:Oe}),w," ",L.required?r.default.createElement("span",{className:Se},"*"):""))});x.propTypes={variant:n.default.oneOf(l.propTypesVariant),size:n.default.oneOf(l.propTypesSize),color:n.default.oneOf(l.propTypesColor),label:l.propTypesLabel,error:l.propTypesError,success:l.propTypesSuccess,icon:l.propTypesIcon,labelProps:l.propTypesLabelProps,containerProps:l.propTypesContainerProps,shrink:l.propTypesShrink,className:l.propTypesClassName},x.displayName="MaterialTailwind.Input";var y=x})(hZ);var pZ={},q1={},yf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,w){for(var _ in w)Object.defineProperty(d,_,{enumerable:!0,get:w[_]})}t(e,{propTypesOpen:function(){return c},propTypesHandler:function(){return u},propTypesPlacement:function(){return p},propTypesOffset:function(){return h},propTypesDismiss:function(){return g},propTypesAnimate:function(){return x},propTypesLockScroll:function(){return y},propTypesDisabled:function(){return b},propTypesClassName:function(){return m},propTypesChildren:function(){return f},propTypesContextValue:function(){return v}});var r=a(et),n=ur;function o(d,w,_){return w in d?Object.defineProperty(d,w,{value:_,enumerable:!0,configurable:!0,writable:!0}):d[w]=_,d}function a(d){return d&&d.__esModule?d:{default:d}}function i(d){for(var w=1;wf.length)&&(v=f.length);for(var d=0,w=new Array(v);d=0)&&Object.prototype.propertyIsEnumerable.call(y,f)&&(m[f]=y[f])}return m}function h(y,b){if(y==null)return{};var m={},f=Object.keys(y),v,d;for(d=0;d=0)&&(m[v]=y[v]);return m}var g=r.default.forwardRef(function(y,b){var m=y.children,f=p(y,["children"]),v=(0,o.useMenu)(),d=v.getReferenceProps,w=v.reference,_=v.nested,E=(0,n.useMergeRefs)([b,w]);return r.default.cloneElement(m,l({},d(l(u(l({},f),{ref:E,onClick:function(S){S.stopPropagation()}}),_&&{role:"menuitem"}))))});g.propTypes={children:a.propTypesChildren},g.displayName="MaterialTailwind.MenuHandler";var x=g})(gZ);var vZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,f){for(var v in f)Object.defineProperty(m,v,{enumerable:!0,get:f[v]})}t(e,{MenuList:function(){return y},default:function(){return b}});var r=h(O),n=Gr,o=rn,a=h(ct),i=Je,s=h(Ze),l=Ye,c=q1,u=yf;function p(){return p=Object.assign||function(m){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.children,d=m.className,w=g(m,["children","className"]),_=(0,l.useTheme)().menu,E=_.styles.base,k=(0,c.useMenu)(),S=k.open,R=k.handler,T=k.strategy,P=k.x,j=k.y,L=k.floating,D=k.listItemsRef,B=k.getFloatingProps,V=k.getItemProps,q=k.appliedAnimation,z=k.lockScroll,F=k.context,N=k.activeIndex,W=k.tree,G=k.allowHover,Q=k.internalAllowHover,Z=k.setActiveIndex,U=k.nested;d=d??"";var J=(0,i.twMerge)((0,a.default)((0,s.default)(E.menu)),d),ae=(0,n.useMergeRefs)([f,L]),ee=o.AnimatePresence,se=r.default.createElement(o.m.div,p({},w,{ref:ae,style:{position:T,top:j??0,left:P??0},className:J},B({onKeyDown:function(we){we.key==="Tab"&&(R(!1),we.shiftKey&&we.preventDefault())}}),{initial:"unmount",exit:"unmount",animate:S?"mount":"unmount",variants:q}),r.default.Children.map(v,function(ue,we){return r.default.isValidElement(ue)&&r.default.cloneElement(ue,V({tabIndex:N===we?0:-1,role:"menuitem",className:ue.props.className,ref:function(Te){D.current[we]=Te},onClick:function(Te){if(ue.props.onClick){var Se,Pe;(Pe=(Se=ue.props).onClick)===null||Pe===void 0||Pe.call(Se,Te)}W==null||W.events.emit("click")},onMouseEnter:function(){(G&&S||Q&&S)&&Z(we)}}))}));return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(ee,null,S&&r.default.createElement(r.default.Fragment,null,z?r.default.createElement(n.FloatingOverlay,{lockScroll:!0},r.default.createElement(n.FloatingFocusManager,{context:F,modal:!U,initialFocus:U?-1:0,returnFocus:!U,visuallyHiddenDismiss:!0},se)):r.default.createElement(n.FloatingFocusManager,{context:F,modal:!U,initialFocus:U?-1:0,returnFocus:!U,visuallyHiddenDismiss:!0},se)))))});y.propTypes={className:u.propTypesClassName,children:u.propTypesChildren},y.displayName="MaterialTailwind.MenuList";var b=y})(vZ);var bZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,b){for(var m in b)Object.defineProperty(y,m,{enumerable:!0,get:b[m]})}t(e,{MenuItem:function(){return g},default:function(){return x}});var r=u(O),n=u(ct),o=Je,a=u(Ze),i=Ye,s=yf;function l(y,b,m){return b in y?Object.defineProperty(y,b,{value:m,enumerable:!0,configurable:!0,writable:!0}):y[b]=m,y}function c(){return c=Object.assign||function(y){for(var b=1;b=0)&&Object.prototype.propertyIsEnumerable.call(y,f)&&(m[f]=y[f])}return m}function h(y,b){if(y==null)return{};var m={},f=Object.keys(y),v,d;for(d=0;d=0)&&(m[v]=y[v]);return m}var g=r.default.forwardRef(function(y,b){var m=y.className,f=m===void 0?"":m,v=y.disabled,d=v===void 0?!1:v,w=y.children,_=p(y,["className","disabled","children"]),E=(0,i.useTheme)().menu,k=E.styles.base,S=(0,o.twMerge)((0,n.default)((0,a.default)(k.item.initial),l({},(0,a.default)(k.item.disabled),d)),f);return r.default.createElement("button",c({},_,{ref:b,role:"menuitem",className:S}),w)});g.propTypes={className:s.propTypesClassName,disabled:s.propTypesDisabled,children:s.propTypesChildren},g.displayName="MaterialTailwind.MenuItem";var x=g})(bZ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,x){for(var y in x)Object.defineProperty(g,y,{enumerable:!0,get:x[y]})}t(e,{Menu:function(){return p},MenuHandler:function(){return i.MenuHandler},MenuList:function(){return s.MenuList},MenuItem:function(){return l.MenuItem},useMenu:function(){return o.useMenu},default:function(){return h}});var r=u(O),n=Gr,o=q1,a=mZ,i=gZ,s=vZ,l=bZ;function c(){return c=Object.assign||function(g){for(var x=1;x=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.open,d=m.animate,w=m.className,_=m.children,E=g(m,["open","animate","className","children"]),k;console.error(` will be deprecated in the future versions of @material-tailwind/react use instead. More details: https://www.material-tailwind.com/docs/react/collapse - `);var S=r.default.useRef(null),R=(0,c.useTheme)().navbar,T=R.styles,P=T.base.mobileNav;d=d??{},w=w??"";var j=(0,s.twMerge)((0,i.default)((0,l.default)(P)),w),L={unmount:{height:0,opacity:0,transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}},mount:{opacity:1,height:"".concat((k=S.current)===null||k===void 0?void 0:k.scrollHeight,"px"),transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}}},D=(0,a.default)(L,d),B=n.AnimatePresence,V=(0,o.useMergeRefs)([f,S]);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(B,null,r.default.createElement(n.m.div,p({},E,{ref:V,className:j,initial:"unmount",exit:"unmount",animate:v?"mount":"unmount",variants:D}),_)))});y.displayName="MaterialTailwind.MobileNav",y.propTypes={open:u.propTypesOpen,animate:u.propTypesAnimate,className:u.propTypesClassName,children:u.propTypesChildren};var b=y})(wZ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,v){for(var d in v)Object.defineProperty(f,d,{enumerable:!0,get:v[d]})}t(e,{Navbar:function(){return b},MobileNav:function(){return c.MobileNav},default:function(){return m}});var r=g(O),n=g(et),o=g(ct),a=Je,i=g(wr),s=g(Ze),l=Ye,c=wZ,u=V8;function p(f,v,d){return v in f?Object.defineProperty(f,v,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[v]=d,f}function h(){return h=Object.assign||function(f){for(var v=1;v=0)&&Object.prototype.propertyIsEnumerable.call(f,w)&&(d[w]=f[w])}return d}function y(f,v){if(f==null)return{};var d={},w=Object.keys(f),_,E;for(E=0;E=0)&&(d[_]=f[_]);return d}var b=r.default.forwardRef(function(f,v){var d=f.variant,w=f.color,_=f.shadow,E=f.blurred,k=f.fullWidth,S=f.className,R=f.children,T=x(f,["variant","color","shadow","blurred","fullWidth","className","children"]),P=(0,l.useTheme)().navbar,j=P.defaultProps,L=P.valid,D=P.styles,B=D.base,V=D.variants;d=d??j.variant,w=w??j.color,_=_??j.shadow,E=E??j.blurred,k=k??j.fullWidth,S=S??j.className;var q,z=(0,o.default)((0,s.default)(B.navbar.initial),(q={},p(q,(0,s.default)(B.navbar.shadow),_),p(q,(0,s.default)(B.navbar.blurred),E&&w==="white"),p(q,(0,s.default)(B.navbar.fullWidth),k),q)),F=(0,o.default)((0,s.default)(V[(0,i.default)(L.variants,d,"filled")][(0,i.default)(L.colors,w,"white")])),N=(0,a.twMerge)((0,o.default)(z,F),S);return r.default.createElement("nav",h({},T,{ref:v,className:N}),R)});b.propTypes={variant:n.default.oneOf(u.propTypesVariant),color:n.default.oneOf(u.propTypesColor),shadow:u.propTypesShadow,blurred:u.propTypesBlurred,fullWidth:u.propTypesFullWidth,className:u.propTypesClassName,children:u.propTypesChildren},b.displayName="MaterialTailwind.Navbar";var m=Object.assign(b,{MobileNav:c.MobileNav})})(yZ);var xZ={},c9={},wf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,m){for(var f in m)Object.defineProperty(b,f,{enumerable:!0,get:m[f]})}t(e,{propTypesOpen:function(){return a},propTypesHandler:function(){return i},propTypesPlacement:function(){return s},propTypesOffset:function(){return l},propTypesDismiss:function(){return c},propTypesAnimate:function(){return u},propTypesContent:function(){return p},propTypesInteractive:function(){return h},propTypesClassName:function(){return g},propTypesChildren:function(){return x},propTypesContextValue:function(){return y}});var r=o(et),n=ur;function o(b){return b&&b.__esModule?b:{default:b}}var a=r.default.bool,i=r.default.func,s=n.propTypesPlacements,l=n.propTypesOffsetType,c=n.propTypesDismissType,u=n.propTypesAnimation,p=r.default.node,h=r.default.bool,g=r.default.string,x=r.default.node.isRequired,y=r.default.shape({open:r.default.bool.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number,y:r.default.number,context:r.default.instanceOf(Object).isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,appliedAnimation:u.isRequired,labelId:r.default.string.isRequired,descriptionId:r.default.string.isRequired}).isRequired})(wf);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,c){for(var u in c)Object.defineProperty(l,u,{enumerable:!0,get:c[u]})}t(e,{PopoverContext:function(){return a},usePopover:function(){return i},PopoverContextProvider:function(){return s}});var r=o(O),n=wf;function o(l){return l&&l.__esModule?l:{default:l}}var a=r.default.createContext(null);a.displayName="MaterialTailwind.PopoverContext";function i(){var l=r.default.useContext(a);if(!l)throw new Error("usePopover() must be used within a Popover. It happens when you use PopoverHandler or PopoverContent components outside the Popover component.");return l}var s=function(l){var c=l.value,u=l.children;return r.default.createElement(a.Provider,{value:c},u)};s.propTypes={value:n.propTypesContextValue,children:n.propTypesChildren},s.displayName="MaterialTailwind.PopoverContextProvider"})(c9);var _Z={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,b){for(var m in b)Object.defineProperty(y,m,{enumerable:!0,get:b[m]})}t(e,{PopoverHandler:function(){return g},default:function(){return x}});var r=s(O),n=Gr,o=c9,a=wf;function i(y,b,m){return b in y?Object.defineProperty(y,b,{value:m,enumerable:!0,configurable:!0,writable:!0}):y[b]=m,y}function s(y){return y&&y.__esModule?y:{default:y}}function l(y){for(var b=1;b=0)&&Object.prototype.propertyIsEnumerable.call(y,f)&&(m[f]=y[f])}return m}function h(y,b){if(y==null)return{};var m={},f=Object.keys(y),v,d;for(d=0;d=0)&&(m[v]=y[v]);return m}var g=r.default.forwardRef(function(y,b){var m=y.children,f=p(y,["children"]),v=(0,o.usePopover)(),d=v.getReferenceProps,w=v.reference,_=(0,n.useMergeRefs)([b,w]);return r.default.cloneElement(m,l({},d(u(l({},f),{ref:_}))))});g.propTypes={children:a.propTypesChildren},g.displayName="MaterialTailwind.PopoverHandler";var x=g})(_Z);var EZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,_){for(var E in _)Object.defineProperty(w,E,{enumerable:!0,get:_[E]})}t(e,{PopoverContent:function(){return v},default:function(){return d}});var r=g(O),n=Gr,o=rn,a=g(ct),i=Je,s=g(Ze),l=Ye,c=c9,u=wf;function p(w,_,E){return _ in w?Object.defineProperty(w,_,{value:E,enumerable:!0,configurable:!0,writable:!0}):w[_]=E,w}function h(){return h=Object.assign||function(w){for(var _=1;_=0)&&Object.prototype.propertyIsEnumerable.call(w,k)&&(E[k]=w[k])}return E}function f(w,_){if(w==null)return{};var E={},k=Object.keys(w),S,R;for(R=0;R=0)&&(E[S]=w[S]);return E}var v=r.default.forwardRef(function(w,_){var E=w.children,k=w.className,S=m(w,["children","className"]),R=(0,l.useTheme)().popover,T=R.defaultProps,P=R.styles.base,j=(0,c.usePopover)(),L=j.open,D=j.strategy,B=j.x,V=j.y,q=j.context,z=j.floating,F=j.getFloatingProps,N=j.appliedAnimation,W=j.labelId,G=j.descriptionId;k=k??T.className;var Q=(0,i.twMerge)((0,a.default)((0,s.default)(P)),k),Z=(0,n.useMergeRefs)([_,z]),U=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(U,null,L&&r.default.createElement(n.FloatingFocusManager,{context:q},r.default.createElement(o.m.div,h({},F(b(x({},S),{ref:Z,className:Q,style:{position:D,top:V??"",left:B??""},"aria-labelledby":W,"aria-describedby":G})),{initial:"unmount",exit:"unmount",animate:L?"mount":"unmount",variants:N}),E)))))});v.propTypes={className:u.propTypesClassName,children:u.propTypesChildren},v.displayName="MaterialTailwind.PopoverContent";var d=v})(EZ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,w){for(var _ in w)Object.defineProperty(d,_,{enumerable:!0,get:w[_]})}t(e,{Popover:function(){return f},PopoverHandler:function(){return c.PopoverHandler},PopoverContent:function(){return u.PopoverContent},usePopover:function(){return s.usePopover},default:function(){return v}});var r=g(O),n=g(et),o=Gr,a=g(dn),i=Ye,s=c9,l=wf,c=_Z,u=EZ;function p(d,w){(w==null||w>d.length)&&(w=d.length);for(var _=0,E=new Array(w);_=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.variant,d=m.color,w=m.size,_=m.value,E=m.label,k=m.className,S=m.barProps,R=g(m,["variant","color","size","value","label","className","barProps"]),T=(0,l.useTheme)().progress,P=T.defaultProps,j=T.valid,L=T.styles,D=L.base,B=L.variants,V=L.sizes;v=v??P.variant,d=d??P.color,w=w??P.size,E=E??P.label,k=k??P.className,S=S??P.barProps;var q=(0,s.default)(B[(0,i.default)(j.variants,v,"filled")][(0,i.default)(j.colors,d,"blue")]),z=(0,s.default)(V[(0,i.default)(j.sizes,w,"md")].container.initial),F=(0,o.default)((0,s.default)(D.container.initial),z),N=(0,s.default)(V[(0,i.default)(j.sizes,w,"md")].container.withLabel),W=(0,o.default)((0,s.default)(D.container.withLabel),N),G=(0,s.default)(V[(0,i.default)(j.sizes,w,"md")].bar),Q=(0,o.default)((0,s.default)(D.bar),G),Z=(0,a.twMerge)((0,o.default)(F,u({},W,E)),k),U=(0,a.twMerge)((0,o.default)(Q,q),S==null?void 0:S.className);return r.default.createElement("div",p({},R,{ref:f,className:Z}),r.default.createElement("div",p({},S,{className:U,style:{width:"".concat(_,"%")}}),E&&"".concat(_,"% ").concat(typeof E=="string"?E:"")))});y.propTypes={variant:n.default.oneOf(c.propTypesVariant),color:n.default.oneOf(c.propTypesColor),size:n.default.oneOf(c.propTypesSize),value:c.propTypesValue,label:c.propTypesLabel,barProps:c.propTypesBarProps,className:c.propTypesClassName},y.displayName="MaterialTailwind.Progress";var b=y})(CZ);var OZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,v){for(var d in v)Object.defineProperty(f,d,{enumerable:!0,get:v[d]})}t(e,{Radio:function(){return b},default:function(){return m}});var r=g(O),n=g(et),o=g(gf),a=g(ct),i=Je,s=g(wr),l=g(Ze),c=Ye,u=Zc;function p(f,v,d){return v in f?Object.defineProperty(f,v,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[v]=d,f}function h(){return h=Object.assign||function(f){for(var v=1;v=0)&&Object.prototype.propertyIsEnumerable.call(f,w)&&(d[w]=f[w])}return d}function y(f,v){if(f==null)return{};var d={},w=Object.keys(f),_,E;for(E=0;E=0)&&(d[_]=f[_]);return d}var b=r.default.forwardRef(function(f,v){var d=f.color,w=f.label,_=f.icon,E=f.ripple,k=f.className,S=f.disabled,R=f.containerProps,T=f.labelProps,P=f.iconProps,j=f.inputRef,L=x(f,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),D=(0,c.useTheme)().radio,B=D.defaultProps,V=D.valid,q=D.styles,z=q.base,F=q.colors,N=r.default.useId();d=d??B.color,w=w??B.label,_=_??B.icon,E=E??B.ripple,k=k??B.className,S=S??B.disabled,R=R??B.containerProps,T=T??B.labelProps,P=P??B.iconProps;var W=E!==void 0&&new o.default,G=(0,a.default)((0,l.default)(z.root),p({},(0,l.default)(z.disabled),S)),Q=(0,i.twMerge)((0,a.default)((0,l.default)(z.container)),R==null?void 0:R.className),Z=(0,i.twMerge)((0,a.default)((0,l.default)(z.input),(0,l.default)(F[(0,s.default)(V.colors,d,"blue")])),k),U=(0,i.twMerge)((0,a.default)((0,l.default)(z.label)),T==null?void 0:T.className),J=(0,a.default)((0,a.default)((0,l.default)(z.icon)),F[(0,s.default)(V.colors,d,"blue")].color,P==null?void 0:P.className);return r.default.createElement("div",{ref:v,className:G},r.default.createElement("label",h({},R,{className:Q,htmlFor:L.id||N,onMouseDown:function(ae){var ee=R==null?void 0:R.onMouseDown;return E&&W.create(ae,"dark"),typeof ee=="function"&&ee(ae)}}),r.default.createElement("input",h({},L,{ref:j,type:"radio",disabled:S,className:Z,id:L.id||N})),r.default.createElement("span",{className:J},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 16 16",fill:"currentColor"},r.default.createElement("circle",{"data-name":"ellipse",cx:"8",cy:"8",r:"8"})))),w&&r.default.createElement("label",h({},T,{className:U,htmlFor:L.id||N}),w))});b.propTypes={color:n.default.oneOf(u.propTypesColor),label:u.propTypesLabel,icon:u.propTypesIcon,ripple:u.propTypesRipple,className:u.propTypesClassName,disabled:u.propTypesDisabled,containerProps:u.propTypesObject,labelProps:u.propTypesObject},b.displayName="MaterialTailwind.Radio";var m=b})(OZ);var kZ={},ZP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,p){for(var h in p)Object.defineProperty(u,h,{enumerable:!0,get:p[h]})}t(e,{SelectContext:function(){return i},useSelect:function(){return s},usePrevious:function(){return l},SelectContextProvider:function(){return c}});var r=a(O),n=rn,o=D1;function a(u){return u&&u.__esModule?u:{default:u}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.SelectContext";function s(){var u=r.default.useContext(i);if(u===null)throw new Error("useSelect() must be used within a Select. It happens when you use SelectOption component outside the Select component.");return u}function l(u){var p=r.default.useRef();return(0,n.useIsomorphicLayoutEffect)(function(){p.current=u},[u]),p.current}var c=function(u){var p=u.value,h=u.children;return r.default.createElement(i.Provider,{value:p},h)};c.propTypes={value:o.propTypesContextValue,children:o.propTypesChildren},c.displayName="MaterialTailwind.SelectContextProvider"})(ZP);var RZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,m){for(var f in m)Object.defineProperty(b,f,{enumerable:!0,get:m[f]})}t(e,{SelectOption:function(){return x},default:function(){return y}});var r=p(O),n=p(ct),o=Je,a=p(Ze),i=Ye,s=ZP,l=D1;function c(b,m,f){return m in b?Object.defineProperty(b,m,{value:f,enumerable:!0,configurable:!0,writable:!0}):b[m]=f,b}function u(){return u=Object.assign||function(b){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(b,v)&&(f[v]=b[v])}return f}function g(b,m){if(b==null)return{};var f={},v=Object.keys(b),d,w;for(w=0;w=0)&&(f[d]=b[d]);return f}var x=function(b){var m=function(){q(_),N(d),F(!1),G(null)},f=function(we){(we.key==="Enter"||we.key===" "&&!Z.current.typing)&&(we.preventDefault(),m())},v=b.value,d=v===void 0?"":v,w=b.index,_=w===void 0?0:w,E=b.disabled,k=E===void 0?!1:E,S=b.className,R=S===void 0?"":S,T=b.children,P=h(b,["value","index","disabled","className","children"]),j=(0,i.useTheme)().select,L=j.styles,D=L.base,B=(0,s.useSelect)(),V=B.selectedIndex,q=B.setSelectedIndex,z=B.listRef,F=B.setOpen,N=B.onChange,W=B.activeIndex,G=B.setActiveIndex,Q=B.getItemProps,Z=B.dataRef,U=(0,a.default)(D.option.initial),J=(0,a.default)(D.option.active),ae=(0,a.default)(D.option.disabled),ee,se=(0,o.twMerge)((0,n.default)(U,(ee={},c(ee,J,V===_),c(ee,ae,k),ee)),R??"");return r.default.createElement("li",u({},P,{role:"option",ref:function(ue){return z.current[_]=ue},className:se,disabled:k,tabIndex:W===_?0:1,"aria-selected":W===_&&V===_,"data-selected":V===_},Q({onClick:function(ue){var we=P==null?void 0:P.onClick;typeof we=="function"&&(we(ue),m()),m()},onKeyDown:function(ue){var we=P==null?void 0:P.onKeyDown;typeof we=="function"&&(we(ue),f(ue)),f(ue)}})),T)};x.propTypes={value:l.propTypesValue,index:l.propTypesIndex,disabled:l.propTypesDisabled,className:l.propTypesClassName,children:l.propTypesChildren},x.displayName="MaterialTailwind.SelectOption";var y=x})(RZ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(z,F){for(var N in F)Object.defineProperty(z,N,{enumerable:!0,get:F[N]})}t(e,{Select:function(){return V},Option:function(){return x.SelectOption},useSelect:function(){return h.useSelect},usePrevious:function(){return h.usePrevious},default:function(){return q}});var r=d(O),n=d(et),o=Gr,a=rn,i=d(ct),s=Je,l=d(dn),c=d(wr),u=d(Ze),p=Ye,h=ZP,g=D1,x=RZ;function y(z,F){(F==null||F>z.length)&&(F=z.length);for(var N=0,W=new Array(F);N=0)&&Object.prototype.propertyIsEnumerable.call(z,W)&&(N[W]=z[W])}return N}function j(z,F){if(z==null)return{};var N={},W=Object.keys(z),G,Q;for(Q=0;Q=0)&&(N[G]=z[G]);return N}function L(z,F){return b(z)||_(z,F)||B(z,F)||E()}function D(z){return m(z)||w(z)||B(z)||k()}function B(z,F){if(z){if(typeof z=="string")return y(z,F);var N=Object.prototype.toString.call(z).slice(8,-1);if(N==="Object"&&z.constructor&&(N=z.constructor.name),N==="Map"||N==="Set")return Array.from(N);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return y(z,F)}}var V=r.default.forwardRef(function(z,F){var N=z.variant,W=z.color,G=z.size,Q=z.label,Z=z.error,U=z.success,J=z.arrow,ae=z.value,ee=z.onChange,se=z.selected,ue=z.offset,we=z.dismiss,Oe=z.animate,Te=z.lockScroll,Se=z.labelProps,Pe=z.menuProps,Ie=z.className,me=z.disabled,be=z.name,ke=z.children,je=z.containerProps,le=P(z,["variant","color","size","label","error","success","arrow","value","onChange","selected","offset","dismiss","animate","lockScroll","labelProps","menuProps","className","disabled","name","children","containerProps"]),xe,_e=(0,p.useTheme)().select,Ee=_e.defaultProps,Be=_e.valid,tt=_e.styles,qe=tt.base,jr=tt.variants,St=L(r.default.useState("close"),2),Mt=St[0],Nn=St[1];N=N??Ee.variant,W=W??Ee.color,G=G??Ee.size,Q=Q??Ee.label,Z=Z??Ee.error,U=U??Ee.success,J=J??Ee.arrow,ae=ae??Ee.value,ee=ee??Ee.onChange,se=se??Ee.selected,ue=ue??Ee.offset,we=we??Ee.dismiss,Oe=Oe??Ee.animate,Se=Se??Ee.labelProps,Pe=Pe??Ee.menuProps;var Dn;je=(Dn=(0,l.default)(je,(Ee==null?void 0:Ee.containerProps)||{}))!==null&&Dn!==void 0?Dn:Ee.containerProps,Ie=Ie??Ee.className;var ge=r.default.useRef([]),ve,Ae=r.default.useRef(D((ve=r.default.Children.map(ke,function(fr){var Ir=fr.props;return Ir==null?void 0:Ir.value}))!==null&&ve!==void 0?ve:[])),He=L(r.default.useState(!1),2),rt=He[0],st=He[1],ut=L(r.default.useState(null),2),Xe=ut[0],Ke=ut[1],At=L(r.default.useState(0),2),$t=At[0],kt=At[1],er=L(r.default.useState(!1),2),xr=er[0],fn=er[1],oo=(0,h.usePrevious)(Xe),nn=(0,o.useFloating)({placement:"bottom-start",open:rt,onOpenChange:st,whileElementsMounted:o.autoUpdate,middleware:[(0,o.offset)(5),(0,o.flip)({padding:10}),(0,o.size)({apply:function(Ir){var _r=Ir.rects,Pa=Ir.elements,zl,ls;Object.assign(Pa==null||(zl=Pa.floating)===null||zl===void 0?void 0:zl.style,{width:"".concat(_r==null||(ls=_r.reference)===null||ls===void 0?void 0:ls.width,"px"),zIndex:99})},padding:20})]}),Ta=nn.x,hn=nn.y,Fn=nn.strategy,ta=nn.refs,zn=nn.context;r.default.useEffect(function(){kt(Math.max(0,Ae.current.indexOf(ae)+1))},[ae]);var jl=ta.floating,fi=(0,o.useInteractions)([(0,o.useClick)(zn),(0,o.useRole)(zn,{role:"listbox"}),(0,o.useDismiss)(zn,S({},we)),(0,o.useListNavigation)(zn,{listRef:ge,activeIndex:Xe,selectedIndex:$t,onNavigate:Ke,loop:!0}),(0,o.useTypeahead)(zn,{listRef:Ae,activeIndex:Xe,selectedIndex:$t,onMatch:rt?Ke:kt})]),Nt=fi.getReferenceProps,on=fi.getFloatingProps,Bn=fi.getItemProps;(0,a.useIsomorphicLayoutEffect)(function(){var fr=jl.current;if(rt&&xr&&fr){var Ir=Xe!=null?ge.current[Xe]:$t!=null?ge.current[$t]:null;if(Ir&&oo!=null){var _r,Pa,zl=(Pa=(_r=ge.current[oo])===null||_r===void 0?void 0:_r.offsetHeight)!==null&&Pa!==void 0?Pa:0,ls=fr.offsetHeight,Uf=Ir.offsetTop,C5=Uf+zl;Ufls+fr.scrollTop&&(fr.scrollTop+=C5-ls-fr.scrollTop+5)}}},[rt,xr,oo,Xe]);var Il=r.default.useMemo(function(){return{selectedIndex:$t,setSelectedIndex:kt,listRef:ge,setOpen:st,onChange:ee||function(){},activeIndex:Xe,setActiveIndex:Ke,getItemProps:Bn,dataRef:zn.dataRef}},[$t,ee,Xe,Bn,zn.dataRef]);r.default.useEffect(function(){Nn(rt?"open":!rt&&$t||!rt&&ae?"withValue":"close")},[rt,ae,$t,se]);var Dt=jr[(0,c.default)(Be.variants,N,"outlined")],So=Dt.sizes[(0,c.default)(Be.sizes,G,"md")],Ll=Dt.error.select,$l=Dt.success.select,_5=Dt.colors.select[(0,c.default)(Be.colors,W,"blue")],$f=Dt.error.label,Nf=Dt.success.label,Df=Dt.colors.label[(0,c.default)(Be.colors,W,"blue")],Ff=Dt.states[Mt],zf=(0,i.default)((0,u.default)(qe.container),(0,u.default)(So.container),je==null?void 0:je.className),Nl=(0,s.twMerge)((0,i.default)((0,u.default)(qe.select),(0,u.default)(Dt.base.select),(0,u.default)(Ff.select),(0,u.default)(So.select),f({},(0,u.default)(_5[Mt]),!Z&&!U),f({},(0,u.default)(Ll.initial),Z),f({},(0,u.default)(Ll.states[Mt]),Z),f({},(0,u.default)($l.initial),U),f({},(0,u.default)($l.states[Mt]),U)),Ie),Bf,E5=(0,s.twMerge)((0,i.default)((0,u.default)(qe.label),(0,u.default)(Dt.base.label),(0,u.default)(Ff.label),(0,u.default)(So.label.initial),(0,u.default)(So.label.states[Mt]),f({},(0,u.default)(Df[Mt]),!Z&&!U),f({},(0,u.default)($f.initial),Z),f({},(0,u.default)($f.states[Mt]),Z),f({},(0,u.default)(Nf.initial),U),f({},(0,u.default)(Nf.states[Mt]),U)),(Bf=Se.className)!==null&&Bf!==void 0?Bf:""),Dl=(0,i.default)((0,u.default)(qe.arrow.initial),f({},(0,u.default)(qe.arrow.active),rt)),fu,hu=(0,s.twMerge)((0,i.default)((0,u.default)(qe.menu)),(fu=Pe.className)!==null&&fu!==void 0?fu:""),Vf=(0,i.default)("absolute top-2/4 -translate-y-2/4",N==="outlined"?"left-3 pt-0.5":"left-0 pt-3"),hE={unmount:{opacity:0,transformOrigin:"top",transform:"scale(0.95)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transformOrigin:"top",transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},pE=(0,l.default)(hE,Oe),Hf=a.AnimatePresence;r.default.useEffect(function(){ae&&!ee&&console.error("Warning: You provided a `value` prop to a select component without an `onChange` handler. This will render a read-only select. If the field should be mutable use `onChange` handler with `value` together.")},[ae,ee]);var Fl=r.default.createElement(o.FloatingFocusManager,{context:zn,modal:!1},r.default.createElement(a.m.ul,v({},on(T(S({},Pe),{ref:ta.setFloating,role:"listbox",className:hu,style:{position:Fn,top:hn??0,left:Ta??0,overflow:"auto"},onPointerEnter:function(Ir){var _r=Pe==null?void 0:Pe.onPointerEnter;typeof _r=="function"&&(_r(Ir),fn(!1)),fn(!1)},onPointerMove:function(Ir){var _r=Pe==null?void 0:Pe.onPointerMove;typeof _r=="function"&&(_r(Ir),fn(!1)),fn(!1)},onKeyDown:function(Ir){var _r=Pe==null?void 0:Pe.onKeyDown;typeof _r=="function"&&(_r(Ir),fn(!0)),fn(!0)}})),{initial:"unmount",exit:"unmount",animate:rt?"mount":"unmount",variants:pE}),r.default.Children.map(ke,function(fr,Ir){var _r;return r.default.isValidElement(fr)&&r.default.cloneElement(fr,T(S({},fr.props),{index:((_r=fr.props)===null||_r===void 0?void 0:_r.index)||Ir+1,id:"material-tailwind-select-".concat(Ir)}))})));return r.default.createElement(h.SelectContextProvider,{value:Il},r.default.createElement("div",v({},je,{ref:F,className:zf}),r.default.createElement("button",v({type:"button"},Nt(T(S({},le),{ref:ta.setReference,className:Nl,disabled:me,name:be}))),typeof se=="function"?r.default.createElement("span",{className:Vf},se(ke[$t-1],$t-1)):ae&&!ee?r.default.createElement("span",{className:Vf},ae):r.default.createElement("span",v({},(xe=ke[$t-1])===null||xe===void 0?void 0:xe.props,{className:Vf})),r.default.createElement("div",{className:Dl},J??r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})))),r.default.createElement("label",v({},Se,{className:E5}),Q),r.default.createElement(a.LazyMotion,{features:a.domAnimation},r.default.createElement(Hf,null,rt&&r.default.createElement(r.default.Fragment,null,Te?r.default.createElement(o.FloatingOverlay,{lockScroll:!0},Fl):Fl)))))});V.propTypes={variant:n.default.oneOf(g.propTypesVariant),color:n.default.oneOf(g.propTypesColor),size:n.default.oneOf(g.propTypesSize),label:g.propTypesLabel,error:g.propTypesError,success:g.propTypesSuccess,arrow:g.propTypesArrow,value:g.propTypesValue,onChange:g.propTypesOnChange,selected:g.propTypesSelected,offset:g.propTypesOffset,dismiss:g.propTypesDismiss,animate:g.propTypesAnimate,lockScroll:g.propTypesLockScroll,labelProps:g.propTypesLabelProps,menuProps:g.propTypesMenuProps,className:g.propTypesClassName,disabled:g.propTypesDisabled,name:g.propTypesName,children:g.propTypesChildren,containerProps:g.propTypesContainerProps},V.displayName="MaterialTailwind.Select";var q=Object.assign(V,{Option:x.SelectOption})})(kZ);var SZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,v){for(var d in v)Object.defineProperty(f,d,{enumerable:!0,get:v[d]})}t(e,{Switch:function(){return b},default:function(){return m}});var r=g(O),n=g(et),o=g(gf),a=g(ct),i=Je,s=g(wr),l=g(Ze),c=Ye,u=Zc;function p(f,v,d){return v in f?Object.defineProperty(f,v,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[v]=d,f}function h(){return h=Object.assign||function(f){for(var v=1;v=0)&&Object.prototype.propertyIsEnumerable.call(f,w)&&(d[w]=f[w])}return d}function y(f,v){if(f==null)return{};var d={},w=Object.keys(f),_,E;for(E=0;E=0)&&(d[_]=f[_]);return d}var b=r.default.forwardRef(function(f,v){var d=f.color,w=f.label,_=f.ripple,E=f.className,k=f.disabled,S=f.containerProps,R=f.circleProps,T=f.labelProps,P=f.inputRef,j=x(f,["color","label","ripple","className","disabled","containerProps","circleProps","labelProps","inputRef"]),L=(0,c.useTheme)(),D=L.switch,B=D.defaultProps,V=D.valid,q=D.styles,z=q.base,F=q.colors,N=r.default.useId();d=d??B.color,_=_??B.ripple,E=E??B.className,k=k??B.disabled,S=S??B.containerProps,T=T??B.labelProps,R=R??B.circleProps;var W=_!==void 0&&new o.default,G=(0,a.default)((0,l.default)(z.root),p({},(0,l.default)(z.disabled),k)),Q=(0,i.twMerge)((0,a.default)((0,l.default)(z.container)),S==null?void 0:S.className),Z=(0,i.twMerge)((0,a.default)((0,l.default)(z.input),(0,l.default)(F[(0,s.default)(V.colors,d,"blue")])),E),U=(0,i.twMerge)((0,a.default)((0,l.default)(z.circle),F[(0,s.default)(V.colors,d,"blue")].circle,F[(0,s.default)(V.colors,d,"blue")].before),R==null?void 0:R.className),J=(0,a.default)((0,l.default)(z.ripple)),ae=(0,i.twMerge)((0,a.default)((0,l.default)(z.label)),T==null?void 0:T.className);return r.default.createElement("div",{ref:v,className:G},r.default.createElement("div",h({},S,{className:Q}),r.default.createElement("input",h({},j,{ref:P,type:"checkbox",disabled:k,id:j.id||N,className:Z})),r.default.createElement("label",h({},R,{htmlFor:j.id||N,className:U}),_&&r.default.createElement("div",{className:J,onMouseDown:function(ee){var se=S==null?void 0:S.onMouseDown;return _&&W.create(ee,"dark"),typeof se=="function"&&se(ee)}}))),w&&r.default.createElement("label",h({},T,{htmlFor:j.id||N,className:ae}),w))});b.propTypes={color:n.default.oneOf(u.propTypesColor),label:u.propTypesLabel,ripple:u.propTypesRipple,className:u.propTypesClassName,disabled:u.propTypesDisabled,containerProps:u.propTypesObject,labelProps:u.propTypesObject,circleProps:u.propTypesObject},b.displayName="MaterialTailwind.Switch";var m=b})(SZ);var TZ={},xf={},eu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,x){for(var y in x)Object.defineProperty(g,y,{enumerable:!0,get:x[y]})}t(e,{propTypesId:function(){return a},propTypesValue:function(){return i},propTypesAnimate:function(){return s},propTypesDisabled:function(){return l},propTypesClassName:function(){return c},propTypesOrientation:function(){return u},propTypesIndicator:function(){return p},propTypesChildren:function(){return h}});var r=o(et),n=ur;function o(g){return g&&g.__esModule?g:{default:g}}var a=r.default.string,i=r.default.oneOfType([r.default.string,r.default.number]).isRequired,s=n.propTypesAnimation,l=r.default.bool,c=r.default.string,u=r.default.oneOf(["horizontal","vertical"]),p=r.default.instanceOf(Object),h=r.default.node.isRequired})(eu);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,R){for(var T in R)Object.defineProperty(S,T,{enumerable:!0,get:R[T]})}t(e,{TabsContext:function(){return b},useTabs:function(){return m},TabsContextProvider:function(){return f},setId:function(){return v},setActive:function(){return d},setAnimation:function(){return w},setIndicator:function(){return _},setIsInitial:function(){return E},setOrientation:function(){return k}});var r=s(O),n=eu;function o(S,R){(R==null||R>S.length)&&(R=S.length);for(var T=0,P=new Array(R);T=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.value,d=m.className,w=m.activeClassName,_=m.disabled,E=m.children,k=g(m,["value","className","activeClassName","disabled","children"]),S=(0,s.useTheme)(),R=S.tab,T=R.defaultProps,P=R.styles.base,j=(0,l.useTabs)(),L=j.state,D=j.dispatch,B=L.id,V=L.active,q=L.indicatorProps;d=d??T.className,w=w??T.activeClassName,_=_??T.disabled;var z,F=(0,a.twMerge)((0,o.default)((0,i.default)(P.tab.initial),(z={},u(z,(0,i.default)(P.tab.disabled),_),u(z,w,V===v),z)),d),N,W=(0,a.twMerge)((0,o.default)((0,i.default)(P.indicator)),(N=q==null?void 0:q.className)!==null&&N!==void 0?N:"");return r.default.createElement("li",p({},k,{ref:f,role:"tab",className:F,onClick:function(G){var Q=k==null?void 0:k.onClick;typeof Q=="function"&&((0,l.setActive)(D,v),(0,l.setIsInitial)(D,!1),Q(G)),(0,l.setIsInitial)(D,!1),(0,l.setActive)(D,v)},"data-value":v}),r.default.createElement("div",{className:"z-20 text-inherit"},E),V===v&&r.default.createElement(n.motion.div,p({},q,{transition:{duration:.5},className:W,layoutId:B})))});y.propTypes={value:c.propTypesValue,className:c.propTypesClassName,disabled:c.propTypesDisabled,children:c.propTypesChildren},y.displayName="MaterialTailwind.Tab";var b=y})(PZ);var MZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,f){for(var v in f)Object.defineProperty(m,v,{enumerable:!0,get:f[v]})}t(e,{TabsBody:function(){return y},default:function(){return b}});var r=h(O),n=rn,o=h(dn),a=h(ct),i=Je,s=h(Ze),l=Ye,c=xf,u=eu;function p(){return p=Object.assign||function(m){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.animate,d=m.className,w=m.children,_=g(m,["animate","className","children"]),E=(0,l.useTheme)().tabsBody,k=E.defaultProps,S=E.styles.base,R=(0,c.useTabs)().dispatch;d=d??k.className,v=v??k.animate;var T=(0,i.twMerge)((0,a.default)((0,s.default)(S)),d),P=r.default.useMemo(function(){return{initial:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:0}},unmount:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:.5,times:[.4,0,.2,1]}},mount:{opacity:1,position:"relative",zIndex:2,transition:{duration:.5,times:[.4,0,.2,1]}}}},[]),j=r.default.useMemo(function(){return(0,o.default)(P,v)},[v,P]);return(0,n.useIsomorphicLayoutEffect)(function(){(0,c.setAnimation)(R,j)},[j,R]),r.default.createElement("div",p({},_,{ref:f,className:T}),w)});y.propTypes={animate:u.propTypesAnimate,className:u.propTypesClassName,children:u.propTypesChildren},y.displayName="MaterialTailwind.TabsBody";var b=y})(MZ);var AZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,m){for(var f in m)Object.defineProperty(b,f,{enumerable:!0,get:m[f]})}t(e,{TabsHeader:function(){return x},default:function(){return y}});var r=p(O),n=p(ct),o=Je,a=p(Ze),i=Ye,s=xf,l=eu;function c(b,m,f){return m in b?Object.defineProperty(b,m,{value:f,enumerable:!0,configurable:!0,writable:!0}):b[m]=f,b}function u(){return u=Object.assign||function(b){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(b,v)&&(f[v]=b[v])}return f}function g(b,m){if(b==null)return{};var f={},v=Object.keys(b),d,w;for(w=0;w=0)&&(f[d]=b[d]);return f}var x=r.default.forwardRef(function(b,m){var f=b.indicatorProps,v=b.className,d=b.children,w=h(b,["indicatorProps","className","children"]),_=(0,i.useTheme)().tabsHeader,E=_.defaultProps,k=_.styles,S=(0,s.useTabs)(),R=S.state,T=S.dispatch,P=R.orientation;r.default.useEffect(function(){(0,s.setIndicator)(T,f)},[T,f]),v=v??E.className;var j=(0,o.twMerge)((0,n.default)((0,a.default)(k.base),c({},k[P]&&(0,a.default)(k[P]),P)),v);return r.default.createElement("nav",null,r.default.createElement("ul",u({},w,{ref:m,role:"tablist",className:j}),d))});x.propTypes={indicatorProps:l.propTypesIndicator,className:l.propTypesClassName,children:l.propTypesChildren},x.displayName="MaterialTailwind.TabsHeader";var y=x})(AZ);var jZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,m){for(var f in m)Object.defineProperty(b,f,{enumerable:!0,get:m[f]})}t(e,{TabPanel:function(){return x},default:function(){return y}});var r=p(O),n=rn,o=p(ct),a=Je,i=p(Ze),s=Ye,l=xf,c=eu;function u(){return u=Object.assign||function(b){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(b,v)&&(f[v]=b[v])}return f}function g(b,m){if(b==null)return{};var f={},v=Object.keys(b),d,w;for(w=0;w=0)&&(f[d]=b[d]);return f}var x=r.default.forwardRef(function(b,m){var f=b.value,v=b.className,d=b.children,w=h(b,["value","className","children"]),_=(0,s.useTheme)().tabPanel,E=_.defaultProps,k=_.styles.base,S=(0,l.useTabs)().state,R=S.active,T=S.appliedAnimation,P=S.isInitial;v=v??E.className;var j=(0,a.twMerge)((0,o.default)((0,i.default)(k)),v),L=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(L,{exitBeforeEnter:!0},r.default.createElement(n.m.div,u({},w,{ref:m,role:"tabpanel",className:j,initial:"unmount",exit:"unmount",animate:R===f?"mount":P?"initial":"unmount",variants:T,"data-value":f}),d)))});x.propTypes={value:c.propTypesValue,className:c.propTypesClassName,children:c.propTypesChildren},x.displayName="MaterialTailwind.TabPanel";var y=x})(jZ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,w){for(var _ in w)Object.defineProperty(d,_,{enumerable:!0,get:w[_]})}t(e,{Tabs:function(){return f},Tab:function(){return l.Tab},TabsBody:function(){return c.TabsBody},TabsHeader:function(){return u.TabsHeader},TabPanel:function(){return p.TabPanel},useTabs:function(){return s.useTabs},default:function(){return v}});var r=y(O),n=y(ct),o=Je,a=y(Ze),i=Ye,s=xf,l=PZ,c=MZ,u=AZ,p=jZ,h=eu;function g(d,w,_){return w in d?Object.defineProperty(d,w,{value:_,enumerable:!0,configurable:!0,writable:!0}):d[w]=_,d}function x(){return x=Object.assign||function(d){for(var w=1;w=0)&&Object.prototype.propertyIsEnumerable.call(d,E)&&(_[E]=d[E])}return _}function m(d,w){if(d==null)return{};var _={},E=Object.keys(d),k,S;for(S=0;S=0)&&(_[k]=d[k]);return _}var f=r.default.forwardRef(function(d,w){var _=d.value,E=d.className,k=d.orientation,S=d.children,R=b(d,["value","className","orientation","children"]),T=(0,i.useTheme)().tabs,P=T.defaultProps,j=T.styles,L=r.default.useId();E=E??P.className,k=k??P.orientation;var D=(0,o.twMerge)((0,n.default)((0,a.default)(j.base),g({},j[k]&&(0,a.default)(j[k]),k)),E);return r.default.createElement(s.TabsContextProvider,{id:L,value:_,orientation:k},r.default.createElement("div",x({},R,{ref:w,className:D}),S))});f.propTypes={id:h.propTypesId,value:h.propTypesValue,className:h.propTypesClassName,orientation:h.propTypesOrientation,children:h.propTypesChildren},f.displayName="MaterialTailwind.Tabs";var v=Object.assign(f,{Tab:l.Tab,Body:c.TabsBody,Header:u.TabsHeader,Panel:p.TabPanel})})(TZ);var IZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,m){for(var f in m)Object.defineProperty(b,f,{enumerable:!0,get:m[f]})}t(e,{Textarea:function(){return x},default:function(){return y}});var r=p(O),n=p(et),o=p(ct),a=p(wr),i=p(Ze),s=Ye,l=N1;function c(b,m,f){return m in b?Object.defineProperty(b,m,{value:f,enumerable:!0,configurable:!0,writable:!0}):b[m]=f,b}function u(){return u=Object.assign||function(b){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(b,v)&&(f[v]=b[v])}return f}function g(b,m){if(b==null)return{};var f={},v=Object.keys(b),d,w;for(w=0;w=0)&&(f[d]=b[d]);return f}var x=r.default.forwardRef(function(b,m){var f=b.variant,v=b.color,d=b.size,w=b.label,_=b.error,E=b.success,k=b.resize,S=b.labelProps,R=b.containerProps,T=b.shrink,P=b.className,j=h(b,["variant","color","size","label","error","success","resize","labelProps","containerProps","shrink","className"]),L=(0,s.useTheme)().textarea,D=L.defaultProps,B=L.valid,V=L.styles,q=V.base,z=V.variants;f=f??D.variant,d=d??D.size,v=v??D.color,w=w??D.label,S=S??D.labelProps,R=R??D.containerProps,T=T??D.shrink,P=P??D.className;var F=z[(0,a.default)(B.variants,f,"outlined")],N=(0,i.default)(F.error.textarea),W=(0,i.default)(F.success.textarea),G=(0,i.default)(F.shrink.textarea),Q=(0,i.default)(F.colors.textarea[(0,a.default)(B.colors,v,"blue")]),Z=(0,i.default)(F.error.label),U=(0,i.default)(F.success.label),J=(0,i.default)(F.shrink.label),ae=(0,i.default)(F.colors.label[(0,a.default)(B.colors,v,"blue")]),ee=(0,o.default)((0,i.default)(q.container),R==null?void 0:R.className),se=(0,o.default)((0,i.default)(q.textarea),(0,i.default)(F.base.textarea),(0,i.default)(F.sizes[(0,a.default)(B.sizes,d,"md")].textarea),c({},Q,!_&&!E),c({},N,_),c({},W,E),c({},G,T),k?"":"!resize-none",P),ue=(0,o.default)((0,i.default)(q.label),(0,i.default)(F.base.label),(0,i.default)(F.sizes[(0,a.default)(B.sizes,d,"md")].label),c({},ae,!_&&!E),c({},Z,_),c({},U,E),c({},J,T),S==null?void 0:S.className);return r.default.createElement("div",{ref:m,className:ee},r.default.createElement("textarea",u({},j,{className:se,placeholder:(j==null?void 0:j.placeholder)||" "})),r.default.createElement("label",{className:ue},w))});x.propTypes={variant:n.default.oneOf(l.propTypesVariant),size:n.default.oneOf(l.propTypesSize),color:n.default.oneOf(l.propTypesColor),label:l.propTypesLabel,error:l.propTypesError,success:l.propTypesSuccess,resize:l.propTypesResize,labelProps:l.propTypesLabelProps,containerProps:l.propTypesContainerProps,shrink:l.propTypesShrink,className:l.propTypesClassName},x.displayName="MaterialTailwind.Textarea";var y=x})(IZ);var LZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,j){for(var L in j)Object.defineProperty(P,L,{enumerable:!0,get:j[L]})}t(e,{Tooltip:function(){return R},default:function(){return T}});var r=b(O),n=b(et),o=Gr,a=rn,i=b(ct),s=Je,l=b(dn),c=b(Ze),u=Ye,p=wf;function h(P,j){(j==null||j>P.length)&&(j=P.length);for(var L=0,D=new Array(j);L=0)&&Object.prototype.propertyIsEnumerable.call(P,D)&&(L[D]=P[D])}return L}function E(P,j){if(P==null)return{};var L={},D=Object.keys(P),B,V;for(V=0;V=0)&&(L[B]=P[B]);return L}function k(P,j){return g(P)||m(P,j)||S(P,j)||f()}function S(P,j){if(P){if(typeof P=="string")return h(P,j);var L=Object.prototype.toString.call(P).slice(8,-1);if(L==="Object"&&P.constructor&&(L=P.constructor.name),L==="Map"||L==="Set")return Array.from(L);if(L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L))return h(P,j)}}var R=r.default.forwardRef(function(P,j){var L=P.open,D=P.handler,B=P.content,V=P.interactive,q=P.placement,z=P.offset,F=P.dismiss,N=P.animate,W=P.className,G=P.children,Q=_(P,["open","handler","content","interactive","placement","offset","dismiss","animate","className","children"]),Z=(0,u.useTheme)().tooltip,U=Z.defaultProps,J=Z.styles.base,ae=k(r.default.useState(!1),2),ee=ae[0],se=ae[1];L=L??ee,D=D??se,V=V??U.interactive,q=q??U.placement,z=z??U.offset,F=F??U.dismiss,N=N??U.animate,W=W??U.className;var ue=(0,s.twMerge)((0,i.default)((0,c.default)(J)),W),we={unmount:{opacity:0},mount:{opacity:1}},Oe=(0,l.default)(we,N),Te=(0,o.useFloating)({open:L,onOpenChange:D,middleware:[(0,o.offset)(z),(0,o.flip)(),(0,o.shift)()],placement:q}),Se=Te.x,Pe=Te.y,Ie=Te.reference,me=Te.floating,be=Te.strategy,ke=Te.refs,je=Te.update,le=Te.context,xe=(0,o.useInteractions)([(0,o.useClick)(le,{enabled:V}),(0,o.useFocus)(le),(0,o.useHover)(le),(0,o.useRole)(le,{role:"tooltip"}),(0,o.useDismiss)(le,F)]),_e=xe.getReferenceProps,Ee=xe.getFloatingProps;r.default.useEffect(function(){if(ke.reference.current&&ke.floating.current&&L)return(0,o.autoUpdate)(ke.reference.current,ke.floating.current,je)},[L,je,ke.reference,ke.floating]);var Be=(0,o.useMergeRefs)([j,me]),tt=(0,o.useMergeRefs)([j,Ie]),qe=a.AnimatePresence;return r.default.createElement(r.default.Fragment,null,typeof G=="string"?r.default.createElement("span",y({},_e({ref:tt})),G):r.default.cloneElement(G,v({},_e(w(v({},G==null?void 0:G.props),{ref:tt})))),r.default.createElement(a.LazyMotion,{features:a.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(qe,null,L&&r.default.createElement(a.m.div,y({},Ee(w(v({},Q),{ref:Be,className:ue,style:{position:be,top:Pe??"",left:Se??""}})),{initial:"unmount",exit:"unmount",animate:L?"mount":"unmount",variants:Oe}),B)))))});R.propTypes={open:p.propTypesOpen,handler:p.propTypesHandler,content:p.propTypesContent,interactive:p.propTypesInteractive,placement:n.default.oneOf(p.propTypesPlacement),offset:p.propTypesOffset,dismiss:p.propTypesDismiss,animate:p.propTypesAnimate,className:p.propTypesClassName,children:p.propTypesChildren},R.displayName="MaterialTailwind.Tooltip";var T=R})(LZ);var $Z={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,d){for(var w in d)Object.defineProperty(v,w,{enumerable:!0,get:d[w]})}t(e,{Typography:function(){return m},default:function(){return f}});var r=p(O),n=p(et),o=p(ct),a=Je,i=p(wr),s=p(Ze),l=Ye,c=hP;function u(v,d,w){return d in v?Object.defineProperty(v,d,{value:w,enumerable:!0,configurable:!0,writable:!0}):v[d]=w,v}function p(v){return v&&v.__esModule?v:{default:v}}function h(v){for(var d=1;d=0)&&Object.prototype.propertyIsEnumerable.call(v,_)&&(w[_]=v[_])}return w}function b(v,d){if(v==null)return{};var w={},_=Object.keys(v),E,k;for(k=0;k<_.length;k++)E=_[k],!(d.indexOf(E)>=0)&&(w[E]=v[E]);return w}var m=r.default.forwardRef(function(v,d){var w=v.variant,_=v.color,E=v.textGradient,k=v.as,S=v.className,R=v.children,T=y(v,["variant","color","textGradient","as","className","children"]),P=(0,l.useTheme)().typography,j=P.defaultProps,L=P.valid,D=P.styles,B=D.variants,V=D.colors,q=D.textGradient;w=w??j.variant,_=_??j.color,E=E||j.textGradient,k=k??void 0,S=S??j.className;var z=(0,s.default)(B[(0,i.default)(L.variants,w,"paragraph")]),F=V[(0,i.default)(L.colors,_,"inherit")],N=(0,s.default)(q),W=(0,a.twMerge)((0,o.default)(z,u({},F.color,!E),u({},N,E),u({},F.gradient,E)),S),G;switch(w){case"h1":G=r.default.createElement(k||"h1",x(h({},T),{ref:d,className:W}),R);break;case"h2":G=r.default.createElement(k||"h2",x(h({},T),{ref:d,className:W}),R);break;case"h3":G=r.default.createElement(k||"h3",x(h({},T),{ref:d,className:W}),R);break;case"h4":G=r.default.createElement(k||"h4",x(h({},T),{ref:d,className:W}),R);break;case"h5":G=r.default.createElement(k||"h5",x(h({},T),{ref:d,className:W}),R);break;case"h6":G=r.default.createElement(k||"h6",x(h({},T),{ref:d,className:W}),R);break;case"lead":G=r.default.createElement(k||"p",x(h({},T),{ref:d,className:W}),R);break;case"paragraph":G=r.default.createElement(k||"p",x(h({},T),{ref:d,className:W}),R);break;case"small":G=r.default.createElement(k||"p",x(h({},T),{ref:d,className:W}),R);break;default:G=r.default.createElement(k||"p",x(h({},T),{ref:d,className:W}),R);break}return G});m.propTypes={variant:n.default.oneOf(c.propTypesVariant),color:n.default.oneOf(c.propTypesColor),as:c.propTypesAs,textGradient:c.propTypesTextGradient,className:c.propTypesClassName,children:c.propTypesChildren},m.displayName="MaterialTailwind.Typography";var f=m})($Z);var NZ={},DZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,u){for(var p in u)Object.defineProperty(c,p,{enumerable:!0,get:u[p]})}t(e,{propTypesClassName:function(){return a},propTypesChildren:function(){return i},propTypesOpen:function(){return s},propTypesAnimate:function(){return l}});var r=o(et),n=ur;function o(c){return c&&c.__esModule?c:{default:c}}var a=r.default.string,i=r.default.node.isRequired,s=r.default.bool.isRequired,l=n.propTypesAnimation})(DZ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,f){for(var v in f)Object.defineProperty(m,v,{enumerable:!0,get:f[v]})}t(e,{Collapse:function(){return y},default:function(){return b}});var r=h(O),n=rn,o=Gr,a=h(dn),i=h(ct),s=Je,l=h(Ze),c=Ye,u=DZ;function p(){return p=Object.assign||function(m){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.open,d=m.animate,w=m.className,_=m.children,E=g(m,["open","animate","className","children"]),k=r.default.useRef(null),S=(0,c.useTheme)().collapse,R=S.styles,T=R.base;d=d??{},w=w??"";var P=(0,s.twMerge)((0,i.default)((0,l.default)(T)),w),j={unmount:{height:"0px",transition:{duration:.3,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.3,times:[.4,0,.2,1]}}},L=(0,a.default)(j,d),D=n.AnimatePresence,B=(0,o.useMergeRefs)([f,k]);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(D,null,r.default.createElement(n.m.div,p({},E,{ref:B,className:P,initial:"unmount",exit:"unmount",animate:v?"mount":"unmount",variants:L}),_)))});y.displayName="MaterialTailwind.Collapse",y.propTypes={open:u.propTypesOpen,animate:u.propTypesAnimate,className:u.propTypesClassName,children:u.propTypesChildren};var b=y})(NZ);var FZ={},G1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,u){for(var p in u)Object.defineProperty(c,p,{enumerable:!0,get:u[p]})}t(e,{propTypesClassName:function(){return o},propTypesDisabled:function(){return a},propTypesSelected:function(){return i},propTypesRipple:function(){return s},propTypesChildren:function(){return l}});var r=n(et);function n(c){return c&&c.__esModule?c:{default:c}}var o=r.default.string,a=r.default.bool,i=r.default.bool,s=r.default.bool,l=r.default.node.isRequired})(G1);var zZ={},QP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(x,y){for(var b in y)Object.defineProperty(x,b,{enumerable:!0,get:y[b]})}t(e,{ListItemPrefix:function(){return h},default:function(){return g}});var r=c(O),n=Ye,o=c(ct),a=Je,i=c(Ze),s=G1;function l(){return l=Object.assign||function(x){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(x,m)&&(b[m]=x[m])}return b}function p(x,y){if(x==null)return{};var b={},m=Object.keys(x),f,v;for(v=0;v=0)&&(b[f]=x[f]);return b}var h=r.default.forwardRef(function(x,y){var b=x.className,m=x.children,f=u(x,["className","children"]),v=(0,n.useTheme)().list,d=v.styles.base,w=(0,a.twMerge)((0,o.default)((0,i.default)(d.itemPrefix)),b);return r.default.createElement("div",l({},f,{ref:y,className:w}),m)});h.propTypes={className:s.propTypesClassName,children:s.propTypesChildren},h.displayName="MaterialTailwind.ListItemPrefix";var g=h})(QP);var JP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(x,y){for(var b in y)Object.defineProperty(x,b,{enumerable:!0,get:y[b]})}t(e,{ListItemSuffix:function(){return h},default:function(){return g}});var r=c(O),n=Ye,o=c(ct),a=Je,i=c(Ze),s=G1;function l(){return l=Object.assign||function(x){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(x,m)&&(b[m]=x[m])}return b}function p(x,y){if(x==null)return{};var b={},m=Object.keys(x),f,v;for(v=0;v=0)&&(b[f]=x[f]);return b}var h=r.default.forwardRef(function(x,y){var b=x.className,m=x.children,f=u(x,["className","children"]),v=(0,n.useTheme)().list,d=v.styles.base,w=(0,a.twMerge)((0,o.default)((0,i.default)(d.itemSuffix)),b);return r.default.createElement("div",l({},f,{ref:y,className:w}),m)});h.propTypes={className:s.propTypesClassName,children:s.propTypesChildren},h.displayName="MaterialTailwind.ListItemSuffix";var g=h})(JP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,v){for(var d in v)Object.defineProperty(f,d,{enumerable:!0,get:v[d]})}t(e,{ListItem:function(){return b},ListItemPrefix:function(){return c.ListItemPrefix},ListItemSuffix:function(){return u.ListItemSuffix},default:function(){return m}});var r=g(O),n=Ye,o=g(gf),a=g(ct),i=Je,s=g(Ze),l=G1,c=QP,u=JP;function p(f,v,d){return v in f?Object.defineProperty(f,v,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[v]=d,f}function h(){return h=Object.assign||function(f){for(var v=1;v=0)&&Object.prototype.propertyIsEnumerable.call(f,w)&&(d[w]=f[w])}return d}function y(f,v){if(f==null)return{};var d={},w=Object.keys(f),_,E;for(E=0;E=0)&&(d[_]=f[_]);return d}var b=r.default.forwardRef(function(f,v){var d=f.className,w=f.disabled,_=f.selected,E=f.ripple,k=f.children,S=x(f,["className","disabled","selected","ripple","children"]),R=(0,n.useTheme)().list,T=R.defaultProps,P=R.styles.base;E=E??T.ripple;var j=E!==void 0&&new o.default,L,D=(0,i.twMerge)((0,a.default)((0,s.default)(P.item.initial),(L={},p(L,(0,s.default)(P.item.disabled),w),p(L,(0,s.default)(P.item.selected),_&&!w),L)),d);return r.default.createElement("div",h({},S,{ref:v,role:"button",tabIndex:0,className:D,onMouseDown:function(B){var V=S==null?void 0:S.onMouseDown;return E&&j.create(B,"dark"),typeof V=="function"&&V(B)}}),k)});b.propTypes={className:l.propTypesClassName,selected:l.propTypesSelected,disabled:l.propTypesDisabled,ripple:l.propTypesRipple,children:l.propTypesChildren},b.displayName="MaterialTailwind.ListItem";var m=Object.assign(b,{Prefix:c.ListItemPrefix,Suffix:u.ListItemSuffix})})(zZ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,f){for(var v in f)Object.defineProperty(m,v,{enumerable:!0,get:f[v]})}t(e,{List:function(){return y},ListItem:function(){return l.ListItem},ListItemPrefix:function(){return c.ListItemPrefix},ListItemSuffix:function(){return u.ListItemSuffix},default:function(){return b}});var r=h(O),n=Ye,o=h(ct),a=Je,i=h(Ze),s=G1,l=zZ,c=QP,u=JP;function p(){return p=Object.assign||function(m){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.className,d=m.children,w=g(m,["className","children"]),_=(0,n.useTheme)().list,E=_.defaultProps,k=_.styles.base;v=v??E.className;var S=(0,a.twMerge)((0,o.default)((0,i.default)(k.list)),v);return r.default.createElement("nav",p({},w,{ref:f,className:S}),d)});y.propTypes={className:s.propTypesClassName,children:s.propTypesChildren},y.displayName="MaterialTailwind.List";var b=Object.assign(y,{Item:l.ListItem,ItemPrefix:c.ListItemPrefix,ItemSuffix:u.ListItemSuffix})})(FZ);var BZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,f){for(var v in f)Object.defineProperty(m,v,{enumerable:!0,get:f[v]})}t(e,{ButtonGroup:function(){return y},default:function(){return b}});var r=h(O),n=h(et),o=h(ct),a=Je,i=h(wr),s=h(Ze),l=Ye,c=Yc;function u(m,f,v){return f in m?Object.defineProperty(m,f,{value:v,enumerable:!0,configurable:!0,writable:!0}):m[f]=v,m}function p(){return p=Object.assign||function(m){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.variant,d=m.size,w=m.color,_=m.fullWidth,E=m.ripple,k=m.className,S=m.children,R=g(m,["variant","size","color","fullWidth","ripple","className","children"]),T=(0,l.useTheme)().buttonGroup,P=T.defaultProps,j=T.styles,L=T.valid,D=j.base,B=j.dividerColor;v=v??P.variant,d=d??P.size,w=w??P.color,E=E??P.ripple,_=_??P.fullWidth,k=k??P.className;var V,q=(0,a.twMerge)((0,o.default)((0,s.default)(D.initial),(V={},u(V,(0,s.default)(D.fullWidth),_),u(V,"divide-x",v!=="outlined"),u(V,(0,s.default)(B[(0,i.default)(L.colors,w,"blue")]),v!=="outlined"),V)),k);return r.default.createElement("div",p({},R,{ref:f,className:q}),r.default.Children.map(S,function(z,F){var N;return r.default.isValidElement(z)&&r.default.cloneElement(z,{variant:v,size:d,color:w,ripple:E,fullWidth:_,className:(0,a.twMerge)((0,o.default)({"rounded-r-none":F!==r.default.Children.count(S)-1,"border-r-0":F!==r.default.Children.count(S)-1,"rounded-l-none":F!==0}),(N=z.props)===null||N===void 0?void 0:N.className)})}))});y.propTypes={variant:n.default.oneOf(c.propTypesVariant),size:n.default.oneOf(c.propTypesSize),color:n.default.oneOf(c.propTypesColor),fullWidth:c.propTypesFullWidth,ripple:c.propTypesRipple,className:c.propTypesClassName,children:c.propTypesChildren},y.displayName="MaterialTailwind.ButtonGroup";var b=y})(BZ);var VZ={},HZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(x,y){for(var b in y)Object.defineProperty(x,b,{enumerable:!0,get:y[b]})}t(e,{propTypesClassName:function(){return o},propTypesPrevArrow:function(){return a},propTypesNextArrow:function(){return i},propTypesNavigation:function(){return s},propTypesAutoplay:function(){return l},propTypesAutoplayDelay:function(){return c},propTypesTransition:function(){return u},propTypesLoop:function(){return p},propTypesChildren:function(){return h},propTypesSlideRef:function(){return g}});var r=n(et);function n(x){return x&&x.__esModule?x:{default:x}}var o=r.default.string,a=r.default.func,i=r.default.func,s=r.default.func,l=r.default.bool,c=r.default.number,u=r.default.object,p=r.default.bool,h=r.default.node.isRequired,g=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(HZ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,E){for(var k in E)Object.defineProperty(_,k,{enumerable:!0,get:E[k]})}t(e,{Carousel:function(){return d},default:function(){return w}});var r=g(O),n=rn,o=Gr,a=g(ct),i=Je,s=g(Ze),l=Ye,c=HZ;function u(_,E){(E==null||E>_.length)&&(E=_.length);for(var k=0,S=new Array(E);k=0)&&Object.prototype.propertyIsEnumerable.call(_,S)&&(k[S]=_[S])}return k}function m(_,E){if(_==null)return{};var k={},S=Object.keys(_),R,T;for(T=0;T=0)&&(k[R]=_[R]);return k}function f(_,E){return p(_)||x(_,E)||v(_,E)||y()}function v(_,E){if(_){if(typeof _=="string")return u(_,E);var k=Object.prototype.toString.call(_).slice(8,-1);if(k==="Object"&&_.constructor&&(k=_.constructor.name),k==="Map"||k==="Set")return Array.from(k);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return u(_,E)}}var d=r.default.forwardRef(function(_,E){var k=_.children,S=_.prevArrow,R=_.nextArrow,T=_.navigation,P=_.autoplay,j=_.autoplayDelay,L=_.transition,D=_.loop,B=_.className,V=_.slideRef,q=b(_,["children","prevArrow","nextArrow","navigation","autoplay","autoplayDelay","transition","loop","className","slideRef"]),z=(0,l.useTheme)().carousel,F=z.defaultProps,N=z.styles.base,W=(0,n.useMotionValue)(0),G=r.default.useRef(null),Q=f(r.default.useState(0),2),Z=Q[0],U=Q[1],J=r.default.Children.toArray(k);B=B??F.className,S=S??F.prevArrow,R=R??F.nextArrow,T=T??F.navigation,P=P??F.autoplay,j=j??F.autoplayDelay,L=L??F.transition,D=D??F.loop;var ae=(0,i.twMerge)((0,a.default)((0,s.default)(N.carousel)),B),ee=(0,i.twMerge)((0,a.default)((0,s.default)(N.slide))),se=r.default.useCallback(function(){var Te;return-Z*(((Te=G.current)===null||Te===void 0?void 0:Te.clientWidth)||0)},[Z]),ue=r.default.useCallback(function(){var Te=D?0:Z;U(Z+1===J.length?Te:Z+1)},[Z,D,J.length]),we=function(){var Te=D?J.length-1:0;U(Z-1<0?Te:Z-1)};r.default.useEffect(function(){var Te=(0,n.animate)(W,se(),L);return Te.stop},[se,Z,W,L]),r.default.useEffect(function(){window.addEventListener("resize",function(){(0,n.animate)(W,se(),L)})},[se,L,W]),r.default.useEffect(function(){if(P){var Te=setInterval(function(){return ue()},j);return function(){return clearInterval(Te)}}},[P,ue,j]);var Oe=(0,o.useMergeRefs)([G,E]);return r.default.createElement("div",h({},q,{ref:Oe,className:ae}),J.map(function(Te,Se){return r.default.createElement(n.LazyMotion,{key:Se,features:n.domAnimation},r.default.createElement(n.m.div,{ref:V,className:ee,style:{x:W,left:"".concat(Se*100,"%"),right:"".concat(Se*100,"%")}},Te))}),S&&S({loop:D,handlePrev:we,activeIndex:Z,firstIndex:Z===0}),R&&R({loop:D,handleNext:ue,activeIndex:Z,lastIndex:Z===J.length-1}),T&&T({setActiveIndex:U,activeIndex:Z,length:J.length}))});d.propTypes={className:c.propTypesClassName,children:c.propTypesChildren,nextArrow:c.propTypesNextArrow,prevArrow:c.propTypesPrevArrow,navigation:c.propTypesNavigation,autoplay:c.propTypesAutoplay,autoplayDelay:c.propTypesAutoplayDelay,transition:c.propTypesTransition,loop:c.propTypesLoop,slideRef:c.propTypesSlideRef},d.displayName="MaterialTailwind.Carousel";var w=d})(VZ);var UZ={},WZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,m){for(var f in m)Object.defineProperty(b,f,{enumerable:!0,get:m[f]})}t(e,{propTypesOpen:function(){return a},propTypesSize:function(){return i},propTypesOverlay:function(){return s},propTypesChildren:function(){return l},propTypesPlacement:function(){return c},propTypesOverlayProps:function(){return u},propTypesClassName:function(){return p},propTypesOnClose:function(){return h},propTypesDismiss:function(){return g},propTypesTransition:function(){return x},propTypesOverlayRef:function(){return y}});var r=o(et),n=ur;function o(b){return b&&b.__esModule?b:{default:b}}var a=r.default.bool.isRequired,i=r.default.number,s=r.default.bool,l=r.default.node.isRequired,c=["top","right","bottom","left"],u=r.default.object,p=r.default.string,h=r.default.func,g=n.propTypesDismissType,x=r.default.object,y=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(WZ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,w){for(var _ in w)Object.defineProperty(d,_,{enumerable:!0,get:w[_]})}t(e,{Drawer:function(){return f},default:function(){return v}});var r=x(O),n=x(et),o=rn,a=Gr,i=x(dn),s=x(ct),l=Je,c=x(Ze),u=Ye,p=WZ;function h(d,w,_){return w in d?Object.defineProperty(d,w,{value:_,enumerable:!0,configurable:!0,writable:!0}):d[w]=_,d}function g(){return g=Object.assign||function(d){for(var w=1;w=0)&&Object.prototype.propertyIsEnumerable.call(d,E)&&(_[E]=d[E])}return _}function m(d,w){if(d==null)return{};var _={},E=Object.keys(d),k,S;for(S=0;S=0)&&(_[k]=d[k]);return _}var f=r.default.forwardRef(function(d,w){var _=d.open,E=d.size,k=d.overlay,S=d.children,R=d.placement,T=d.overlayProps,P=d.className,j=d.onClose,L=d.dismiss,D=d.transition,B=d.overlayRef,V=b(d,["open","size","overlay","children","placement","overlayProps","className","onClose","dismiss","transition","overlayRef"]),q=(0,u.useTheme)().drawer,z=q.defaultProps,F=q.styles.base,N=(0,o.useAnimation)();E=E??z.size,k=k??z.overlay,R=R??z.placement,P=P??z.className,T=T??z.overlayProps,j=j??z.onClose;var W;L=(W=(0,i.default)(z.dismiss,L||{}))!==null&&W!==void 0?W:z.dismiss,D=D??z.transition;var G=(0,l.twMerge)((0,s.default)((0,c.default)(F.drawer),{"top-0 right-0":R==="right","bottom-0 left-0":R==="bottom","top-0 left-0":R==="top"||R==="left"}),P),Q=(0,l.twMerge)((0,s.default)((0,c.default)(F.overlay)),T==null?void 0:T.className),Z=(0,a.useFloating)({open:_,onOpenChange:j}).context,U=(0,a.useInteractions)([(0,a.useDismiss)(Z,L)]).getFloatingProps;r.default.useEffect(function(){N.start(_?"open":"close")},[_,N,R]);var J={open:{x:0,y:0},close:{x:R==="left"?-E:R==="right"?E:0,y:R==="top"?-E:R==="bottom"?E:0}},ae={unmount:{opacity:0,transition:{delay:.3}},mount:{opacity:1}};return r.default.createElement(r.default.Fragment,null,r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(o.AnimatePresence,null,k&&_&&r.default.createElement(o.m.div,{ref:B,className:Q,initial:"unmount",exit:"unmount",animate:_?"mount":"unmount",variants:ae,transition:{duration:.3}})),r.default.createElement(o.m.div,g({},U(y({ref:w},V)),{className:G,style:{maxWidth:R==="left"||R==="right"?E:"100%",maxHeight:R==="top"||R==="bottom"?E:"100%",height:R==="left"||R==="right"?"100vh":"100%"},initial:"close",animate:N,variants:J,transition:D}),S)))});f.propTypes={open:p.propTypesOpen,size:p.propTypesSize,overlay:p.propTypesOverlay,children:p.propTypesChildren,placement:n.default.oneOf(p.propTypesPlacement),overlayProps:p.propTypesOverlayProps,className:p.propTypesClassName,onClose:p.propTypesOnClose,dismiss:p.propTypesDismiss,transition:p.propTypesTransition,overlayRef:p.propTypesOverlayRef},f.displayName="MaterialTailwind.Drawer";var v=f})(UZ);var qZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,v){for(var d in v)Object.defineProperty(f,d,{enumerable:!0,get:v[d]})}t(e,{Badge:function(){return b},default:function(){return m}});var r=g(O),n=g(et),o=g(dn),a=g(ct),i=Je,s=g(wr),l=g(Ze),c=Ye,u=mP;function p(f,v,d){return v in f?Object.defineProperty(f,v,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[v]=d,f}function h(){return h=Object.assign||function(f){for(var v=1;v=0)&&Object.prototype.propertyIsEnumerable.call(f,w)&&(d[w]=f[w])}return d}function y(f,v){if(f==null)return{};var d={},w=Object.keys(f),_,E;for(E=0;E=0)&&(d[_]=f[_]);return d}var b=r.default.forwardRef(function(f,v){var d=f.color,w=f.invisible,_=f.withBorder,E=f.overlap,k=f.placement,S=f.className,R=f.content,T=f.children,P=f.containerProps,j=f.containerRef,L=x(f,["color","invisible","withBorder","overlap","placement","className","content","children","containerProps","containerRef"]),D=(0,c.useTheme)().badge,B=D.valid,V=D.defaultProps,q=D.styles,z=q.base,F=q.placements,N=q.colors;d=d??V.color,w=w??V.invisible,_=_??V.withBorder,E=E??V.overlap,k=k??V.placement;var W;S=(W=(0,a.default)(S,V.className))!==null&&W!==void 0?W:V.className;var G;P=(G=(0,o.default)(P,V.containerProps||{}))!==null&&G!==void 0?G:V.containerProps;var Q=(0,l.default)(z.badge.initial),Z=(0,l.default)(z.badge.withBorder),U=(0,l.default)(z.badge.withContent),J=(0,l.default)(N[(0,s.default)(B.colors,d,"red")]),ae=(0,l.default)(F[(0,s.default)(B.placements,k,"top-end")][(0,s.default)(B.overlaps,E,"square")]),ee,se=(0,i.twMerge)((0,a.default)(Q,ae,J,(ee={},p(ee,Z,_),p(ee,U,R),ee)),S),ue=(0,i.twMerge)((0,a.default)((0,l.default)(z.container),P==null?void 0:P.className));return r.default.createElement("div",h({ref:j},P,{className:ue}),T,!w&&r.default.createElement("span",h({},L,{ref:v,className:se}),R))});b.propTypes={color:n.default.oneOf(u.propTypesColor),invisible:u.propTypesInvisible,withBorder:u.propTypesWithBorder,overlap:u.propTypesOverlap,className:u.propTypesClassName,content:u.propTypesContent,children:u.propTypesChildren,placement:u.propTypesPlacement,containerProps:u.propTypesContainerProps,containerRef:u.propTypesContainerRef},b.displayName="MaterialTailwind.Badge";var m=b})(qZ);var GZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,T){for(var P in T)Object.defineProperty(R,P,{enumerable:!0,get:T[P]})}t(e,{Rating:function(){return k},default:function(){return S}});var r=x(O),n=x(et),o=x(ct),a=Je,i=x(wr),s=x(Ze),l=Ye,c=gP;function u(R,T){(T==null||T>R.length)&&(T=R.length);for(var P=0,j=new Array(T);P=0)&&Object.prototype.propertyIsEnumerable.call(R,j)&&(P[j]=R[j])}return P}function d(R,T){if(R==null)return{};var P={},j=Object.keys(R),L,D;for(D=0;D=0)&&(P[L]=R[L]);return P}function w(R,T){return p(R)||b(R,T)||E(R,T)||m()}function _(R){return h(R)||y(R)||E(R)||f()}function E(R,T){if(R){if(typeof R=="string")return u(R,T);var P=Object.prototype.toString.call(R).slice(8,-1);if(P==="Object"&&R.constructor&&(P=R.constructor.name),P==="Map"||P==="Set")return Array.from(P);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return u(R,T)}}var k=r.default.forwardRef(function(R,T){var P=R.count,j=R.value,L=R.ratedIcon,D=R.unratedIcon,B=R.ratedColor,V=R.unratedColor,q=R.className,z=R.onChange,F=R.readonly,N=v(R,["count","value","ratedIcon","unratedIcon","ratedColor","unratedColor","className","onChange","readonly"]),W,G,Q=(0,l.useTheme)().rating,Z=Q.valid,U=Q.defaultProps,J=Q.styles,ae=J.base,ee=J.colors;P=P??U.count,j=j??U.value,L=L??U.ratedIcon,L=L??U.ratedIcon,D=D??U.unratedIcon,B=B??U.ratedColor,V=V??U.unratedColor,q=q??U.className,z=z??U.onChange,F=F??U.readonly;var se=w(r.default.useState(function(){return _(Array(j).fill("rated")).concat(_(Array(P-j).fill("un_rated")))}),2),ue=se[0],we=se[1],Oe=w(r.default.useState(function(){return _(Array(P).fill("un_rated"))}),2),Te=Oe[0],Se=Oe[1],Pe=w(r.default.useState(!1),2),Ie=Pe[0],me=Pe[1],be=(0,s.default)(ee[(0,i.default)(Z.colors,B,"yellow")]),ke=(0,s.default)(ee[(0,i.default)(Z.colors,V,"blue-gray")]),je=(0,a.twMerge)((0,o.default)((0,s.default)(ae.rating),q)),le=(0,s.default)(ae.icon),xe=L,_e=D,Ee=r.default.isValidElement(L)&&r.default.cloneElement(xe,{className:(0,a.twMerge)((0,o.default)(le,be,xe==null||(W=xe.props)===null||W===void 0?void 0:W.className))}),Be=r.default.isValidElement(L)&&r.default.cloneElement(_e,{className:(0,a.twMerge)((0,o.default)(le,ke,_e==null||(G=_e.props)===null||G===void 0?void 0:G.className))}),tt=!r.default.isValidElement(L)&&r.default.createElement(L,{className:(0,a.twMerge)((0,o.default)(le,be))}),qe=!r.default.isValidElement(L)&&r.default.createElement(D,{className:(0,a.twMerge)((0,o.default)(le,ke))}),jr=function(St){return St.map(function(Mt,Nn){return r.default.createElement("span",{key:Nn,onClick:function(){if(!F){var Dn=ue.map(function(ge,ve){return ve<=Nn?"rated":"un_rated"});we(Dn),z&&typeof z=="function"&&z(Dn.filter(function(ge){return ge==="rated"}).length)}},onMouseEnter:function(){if(!F){var Dn=Te.map(function(ge,ve){return ve<=Nn?"rated":"un_rated"});me(!0),Se(Dn)}},onMouseLeave:function(){return!F&&me(!1)}},r.default.isValidElement(Mt==="rated"?L:D)?Mt==="rated"?Ee:Be:Mt==="rated"?tt:qe)})};return r.default.createElement("div",g({},N,{ref:T,className:je}),jr(Ie?Te:ue))});k.propTypes={count:c.propTypesCount,value:c.propTypesValue,ratedIcon:c.propTypesRatedIcon,unratedIcon:c.propTypesUnratedIcon,ratedColor:n.default.oneOf(c.propTypesColor),unratedColor:n.default.oneOf(c.propTypesColor),className:c.propTypesClassName,onChange:c.propTypesOnChange,readonly:c.propTypesReadonly},k.displayName="MaterialTailwind.Rating";var S=k})(GZ);var KZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,k){for(var S in k)Object.defineProperty(E,S,{enumerable:!0,get:k[S]})}t(e,{Slider:function(){return w},default:function(){return _}});var r=x(O),n=x(et),o=x(dn),a=x(ct),i=Je,s=x(wr),l=x(Ze),c=Ye,u=vP;function p(E,k){(k==null||k>E.length)&&(k=E.length);for(var S=0,R=new Array(k);S=0)&&Object.prototype.propertyIsEnumerable.call(E,R)&&(S[R]=E[R])}return S}function f(E,k){if(E==null)return{};var S={},R=Object.keys(E),T,P;for(P=0;P=0)&&(S[T]=E[T]);return S}function v(E,k){return h(E)||y(E,k)||d(E,k)||b()}function d(E,k){if(E){if(typeof E=="string")return p(E,k);var S=Object.prototype.toString.call(E).slice(8,-1);if(S==="Object"&&E.constructor&&(S=E.constructor.name),S==="Map"||S==="Set")return Array.from(S);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return p(E,k)}}var w=r.default.forwardRef(function(E,k){var S=E.color,R=E.size,T=E.className,P=E.trackClassName,j=E.thumbClassName,L=E.barClassName,D=E.value,B=E.defaultValue,V=E.onChange,q=E.min,z=E.max,F=E.step,N=E.inputRef,W=E.inputProps,G=m(E,["color","size","className","trackClassName","thumbClassName","barClassName","value","defaultValue","onChange","min","max","step","inputRef","inputProps"]),Q=(0,c.useTheme)().slider,Z=Q.valid,U=Q.defaultProps,J=Q.styles,ae=J.base,ee=J.sizes,se=J.colors,ue=v(r.default.useState(B||0),2),we=ue[0],Oe=ue[1];r.default.useMemo(function(){B&&Oe(B)},[B]),S=S??U.color,R=R??U.size,q=q??U.min,z=z??U.max,F=F??U.step;var Te;T=(Te=(0,a.default)(U.className,T))!==null&&Te!==void 0?Te:U.className;var Se;j=(Se=(0,a.default)(U.thumbClassName,j))!==null&&Se!==void 0?Se:U.thumbClassName;var Pe;P=(Pe=(0,a.default)(U.trackClassName,P))!==null&&Pe!==void 0?Pe:U.trackClassName;var Ie;L=(Ie=(0,a.default)(U.barClassName,L))!==null&&Ie!==void 0?Ie:U.barClassName;var me;W=(me=(0,o.default)(W,(U==null?void 0:U.inputProps)||{}))!==null&&me!==void 0?me:U.inputProps;var be=(0,i.twMerge)((0,a.default)((0,l.default)(ae.container),(0,l.default)(se[(0,s.default)(Z.colors,S,"blue")]),(0,l.default)(ee[(0,s.default)(Z.sizes,R,"md")].container),T)),ke=(0,i.twMerge)((0,a.default)((0,l.default)(ae.bar),L)),je=(0,a.default)((0,l.default)(ae.track),(0,l.default)(ee[(0,s.default)(Z.sizes,R,"md")].track)),le=(0,a.default)((0,l.default)(ae.thumb),(0,l.default)(ee[(0,s.default)(Z.sizes,R,"md")].thumb)),xe=(0,a.default)((0,l.default)(ae.slider),(0,i.twMerge)(je,P),(0,i.twMerge)(le,j));return r.default.createElement("div",g({},G,{ref:k,className:be}),r.default.createElement("label",{className:ke,style:{width:"".concat(D||we,"%")}}),r.default.createElement("input",g({ref:N,type:"range",max:z,min:q,step:F,className:xe},D?{value:D}:null,{defaultValue:B,onChange:function(_e){return V?V(_e):Oe(Number(_e.target.value))}})))});w.propTypes={color:n.default.oneOf(u.propTypesColor),size:n.default.oneOf(u.propTypesSize),className:u.propTypesClassName,trackClassName:u.propTypesTrackClassName,thumbClassName:u.propTypesThumbClassName,barClassName:u.propTypesBarClassName,defaultValue:u.propTypesDefaultValue,value:u.propTypesValue,onChange:u.propTypesOnChange,min:u.propTypesMin,max:u.propTypesMax,step:u.propTypesStep,inputRef:u.propTypesInputRef,inputProps:u.propTypesInputProps},w.displayName="MaterialTailwind.Slider";var _=w})(KZ);var YZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,v){for(var d in v)Object.defineProperty(f,d,{enumerable:!0,get:v[d]})}t(e,{Spinner:function(){return b},default:function(){return m}});var r=p(et),n=g(O),o=p(ct),a=Je,i=p(wr),s=p(Ze),l=Ye,c=bP;function u(){return u=Object.assign||function(f){for(var v=1;v=0)&&Object.prototype.propertyIsEnumerable.call(f,w)&&(d[w]=f[w])}return d}function y(f,v){if(f==null)return{};var d={},w=Object.keys(f),_,E;for(E=0;E=0)&&(d[_]=f[_]);return d}var b=(0,n.forwardRef)(function(f,v){var d=f.color,w=f.className,_=x(f,["color","className"]),E=(0,l.useTheme)().spinner,k=E.defaultProps,S=E.valid,R=E.styles,T=R.base,P=R.colors;d=d??k.color;var j;w=(j=(0,o.default)(k.className,w))!==null&&j!==void 0?j:k.className;var L=(0,s.default)(P[(0,i.default)(S.colors,d,"blue")]),D=(0,a.twMerge)((0,o.default)((0,s.default)(T)),w),B,V;return n.default.createElement("svg",u({},_,{ref:v,className:D,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:(B=_==null?void 0:_.width)!==null&&B!==void 0?B:24,height:(V=_==null?void 0:_.height)!==null&&V!==void 0?V:24}),n.default.createElement("path",{d:"M32 3C35.8083 3 39.5794 3.75011 43.0978 5.20749C46.6163 6.66488 49.8132 8.80101 52.5061 11.4939C55.199 14.1868 57.3351 17.3837 58.7925 20.9022C60.2499 24.4206 61 28.1917 61 32C61 35.8083 60.2499 39.5794 58.7925 43.0978C57.3351 46.6163 55.199 49.8132 52.5061 52.5061C49.8132 55.199 46.6163 57.3351 43.0978 58.7925C39.5794 60.2499 35.8083 61 32 61C28.1917 61 24.4206 60.2499 20.9022 58.7925C17.3837 57.3351 14.1868 55.199 11.4939 52.5061C8.801 49.8132 6.66487 46.6163 5.20749 43.0978C3.7501 39.5794 3 35.8083 3 32C3 28.1917 3.75011 24.4206 5.2075 20.9022C6.66489 17.3837 8.80101 14.1868 11.4939 11.4939C14.1868 8.80099 17.3838 6.66487 20.9022 5.20749C24.4206 3.7501 28.1917 3 32 3L32 3Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M32 3C36.5778 3 41.0906 4.08374 45.1692 6.16256C49.2477 8.24138 52.7762 11.2562 55.466 14.9605C58.1558 18.6647 59.9304 22.9531 60.6448 27.4748C61.3591 31.9965 60.9928 36.6232 59.5759 40.9762",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round",className:L}))});b.propTypes={color:r.default.oneOf(c.propTypesColor),className:c.propTypesClassName},b.displayName="MaterialTailwind.Spinner";var m=b})(YZ);var XZ={},K1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,_){for(var E in _)Object.defineProperty(w,E,{enumerable:!0,get:_[E]})}t(e,{useTimelineItem:function(){return f},TimelineItem:function(){return v},default:function(){return d}});var r=u(O),n=Je,o=u(Ze),a=Ye,i=ts;function s(w,_){(_==null||_>w.length)&&(_=w.length);for(var E=0,k=new Array(_);E<_;E++)k[E]=w[E];return k}function l(w){if(Array.isArray(w))return w}function c(){return c=Object.assign||function(w){for(var _=1;_=0)&&Object.prototype.propertyIsEnumerable.call(w,k)&&(E[k]=w[k])}return E}function x(w,_){if(w==null)return{};var E={},k=Object.keys(w),S,R;for(R=0;R=0)&&(E[S]=w[S]);return E}function y(w,_){return l(w)||p(w,_)||b(w,_)||h()}function b(w,_){if(w){if(typeof w=="string")return s(w,_);var E=Object.prototype.toString.call(w).slice(8,-1);if(E==="Object"&&w.constructor&&(E=w.constructor.name),E==="Map"||E==="Set")return Array.from(E);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return s(w,_)}}var m=r.default.createContext(0);m.displayName="MaterialTailwind.TimelineItemContext";function f(){var w=r.default.useContext(m);if(!w)throw new Error("useTimelineItemContext() must be used within a TimelineItem. It happens when you use TimelineIcon, TimelineConnector or TimelineBody components outside the TimelineItem component.");return w}var v=r.default.forwardRef(function(w,_){var E=w.className,k=w.children,S=g(w,["className","children"]),R=(0,a.useTheme)().timelineItem,T=R.styles,P=T.base,j=y(r.default.useState(0),2),L=j[0],D=j[1],B=r.default.useMemo(function(){return[L,D]},[L,D]),V=(0,n.twMerge)((0,o.default)(P),E);return r.default.createElement(m.Provider,{value:B},r.default.createElement("li",c({ref:_},S,{className:V}),k))});v.propTypes={className:i.propTypeClassName,children:i.propTypeChildren.isRequired},v.displayName="MaterialTailwind.TimelineItem";var d=v})(K1);var ZZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,k){for(var S in k)Object.defineProperty(E,S,{enumerable:!0,get:k[S]})}t(e,{TimelineIcon:function(){return w},default:function(){return _}});var r=x(O),n=x(et),o=Gr,a=Je,i=x(wr),s=x(Ze),l=Ye,c=K1,u=ts;function p(E,k){(k==null||k>E.length)&&(k=E.length);for(var S=0,R=new Array(k);S=0)&&Object.prototype.propertyIsEnumerable.call(E,R)&&(S[R]=E[R])}return S}function f(E,k){if(E==null)return{};var S={},R=Object.keys(E),T,P;for(P=0;P=0)&&(S[T]=E[T]);return S}function v(E,k){return h(E)||y(E,k)||d(E,k)||b()}function d(E,k){if(E){if(typeof E=="string")return p(E,k);var S=Object.prototype.toString.call(E).slice(8,-1);if(S==="Object"&&E.constructor&&(S=E.constructor.name),S==="Map"||S==="Set")return Array.from(S);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return p(E,k)}}var w=r.default.forwardRef(function(E,k){var S=E.color,R=E.variant,T=E.className,P=E.children,j=m(E,["color","variant","className","children"]),L=(0,l.useTheme)().timelineIcon,D=L.styles,B=L.valid,V=D.base,q=D.variants,z=v((0,c.useTimelineItem)(),2),F=z[1],N=r.default.useRef(null),W=(0,o.useMergeRefs)([k,N]);r.default.useEffect(function(){var Z=N.current;if(Z){var U=Z.getBoundingClientRect().width;return F(U),function(){F(0)}}},[F,T,P]);var G=(0,s.default)(q[(0,i.default)(B.variants,R,"filled")][(0,i.default)(B.colors,S,"blue")]),Q=(0,a.twMerge)((0,s.default)(V),G,T);return r.default.createElement("span",g({ref:W},j,{className:Q}),P)});w.propTypes={children:u.propTypeChildren,className:u.propTypeClassName,color:n.default.oneOf(u.propTypeColor),variant:n.default.oneOf(u.propTypeVariant)},w.displayName="MaterialTailwind.TimelineIcon";var _=w})(ZZ);var QZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,w){for(var _ in w)Object.defineProperty(d,_,{enumerable:!0,get:w[_]})}t(e,{TimelineHeader:function(){return f},default:function(){return v}});var r=p(O),n=Je,o=p(Ze),a=Ye,i=K1,s=ts;function l(d,w){(w==null||w>d.length)&&(w=d.length);for(var _=0,E=new Array(w);_=0)&&Object.prototype.propertyIsEnumerable.call(d,E)&&(_[E]=d[E])}return _}function y(d,w){if(d==null)return{};var _={},E=Object.keys(d),k,S;for(S=0;S=0)&&(_[k]=d[k]);return _}function b(d,w){return c(d)||h(d,w)||m(d,w)||g()}function m(d,w){if(d){if(typeof d=="string")return l(d,w);var _=Object.prototype.toString.call(d).slice(8,-1);if(_==="Object"&&d.constructor&&(_=d.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return l(d,w)}}var f=r.default.forwardRef(function(d,w){var _=d.className,E=d.children,k=x(d,["className","children"]),S=(0,a.useTheme)().timelineBody,R=S.styles,T=R.base,P=b((0,i.useTimelineItem)(),1),j=P[0],L=(0,n.twMerge)((0,o.default)(T),_);return r.default.createElement("div",u({},k,{ref:w,className:L}),r.default.createElement("span",{className:"pointer-events-none invisible h-full flex-shrink-0",style:{width:"".concat(j,"px")}}),r.default.createElement("div",null,E))});f.propTypes={children:s.propTypeChildren,className:s.propTypeClassName},f.displayName="MaterialTailwind.TimelineHeader";var v=f})(QZ);var JZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,x){for(var y in x)Object.defineProperty(g,y,{enumerable:!0,get:x[y]})}t(e,{TimelineHeader:function(){return p},default:function(){return h}});var r=l(O),n=Je,o=l(Ze),a=Ye,i=ts;function s(){return s=Object.assign||function(g){for(var x=1;x=0)&&Object.prototype.propertyIsEnumerable.call(g,b)&&(y[b]=g[b])}return y}function u(g,x){if(g==null)return{};var y={},b=Object.keys(g),m,f;for(f=0;f=0)&&(y[m]=g[m]);return y}var p=r.default.forwardRef(function(g,x){var y=g.className,b=g.children,m=c(g,["className","children"]),f=(0,a.useTheme)().timelineHeader,v=f.styles,d=v.base,w=(0,n.twMerge)((0,o.default)(d),y);return r.default.createElement("div",s({},m,{ref:x,className:w}),b)});p.propTypes={children:i.propTypeChildren,className:i.propTypeClassName},p.displayName="MaterialTailwind.TimelineHeader";var h=p})(JZ);var eQ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,w){for(var _ in w)Object.defineProperty(d,_,{enumerable:!0,get:w[_]})}t(e,{TimelineConnector:function(){return f},default:function(){return v}});var r=p(O),n=Je,o=p(Ze),a=Ye,i=K1,s=ts;function l(d,w){(w==null||w>d.length)&&(w=d.length);for(var _=0,E=new Array(w);_=0)&&Object.prototype.propertyIsEnumerable.call(d,E)&&(_[E]=d[E])}return _}function y(d,w){if(d==null)return{};var _={},E=Object.keys(d),k,S;for(S=0;S=0)&&(_[k]=d[k]);return _}function b(d,w){return c(d)||h(d,w)||m(d,w)||g()}function m(d,w){if(d){if(typeof d=="string")return l(d,w);var _=Object.prototype.toString.call(d).slice(8,-1);if(_==="Object"&&d.constructor&&(_=d.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return l(d,w)}}var f=r.default.forwardRef(function(d,w){var _=d.className,E=d.children,k=x(d,["className","children"]),S,R=(0,a.useTheme)().timelineConnector,T=R.styles,P=T.base,j=b((0,i.useTimelineItem)(),1),L=j[0],D=(0,o.default)(P.line),B=(0,n.twMerge)((0,o.default)(P.container),_);return r.default.createElement("span",u({},k,{ref:w,className:B,style:{top:"".concat(L,"px"),width:"".concat(L,"px"),opacity:L?1:0,height:"calc(100% - ".concat(L,"px)")}}),E&&r.default.isValidElement(E)?r.default.cloneElement(E,{className:(0,n.twMerge)(D,(S=E.props)===null||S===void 0?void 0:S.className)}):r.default.createElement("span",{className:D}))});f.propTypes={children:s.propTypeChildren,className:s.propTypeClassName},f.displayName="MaterialTailwind.TimelineConnector";var v=f})(eQ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,v){for(var d in v)Object.defineProperty(f,d,{enumerable:!0,get:v[d]})}t(e,{Timeline:function(){return b},TimelineItem:function(){return s.default},TimelineIcon:function(){return l.default},TimelineBody:function(){return c.default},TimelineHeader:function(){return u.default},TimelineConnector:function(){return p.default},default:function(){return m}});var r=g(O),n=Je,o=g(Ze),a=Ye,i=ts,s=g(K1),l=g(ZZ),c=g(QZ),u=g(JZ),p=g(eQ);function h(){return h=Object.assign||function(f){for(var v=1;v=0)&&Object.prototype.propertyIsEnumerable.call(f,w)&&(d[w]=f[w])}return d}function y(f,v){if(f==null)return{};var d={},w=Object.keys(f),_,E;for(E=0;E=0)&&(d[_]=f[_]);return d}var b=r.default.forwardRef(function(f,v){var d=f.className,w=f.children,_=x(f,["className","children"]),E=(0,a.useTheme)().timeline,k=E.styles,S=k.base,R=(0,n.twMerge)((0,o.default)(S),d);return r.default.createElement("ul",h({ref:v},_,{className:R}),w)});b.propTypes={className:i.propTypeClassName,children:i.propTypeChildren},b.displayName="MaterialTailwind.Timeline";var m=Object.assign(b,{Item:s.default,Icon:l.default,Header:u.default,Body:c.default,Connector:p.default})})(XZ);var tQ={},rQ={},eM={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,u){for(var p in u)Object.defineProperty(c,p,{enumerable:!0,get:u[p]})}t(e,{propTypesActiveStep:function(){return o},propTypesIsLastStep:function(){return a},propTypesIsFirstStep:function(){return i},propTypesChildren:function(){return s},propTypesClassName:function(){return l}});var r=n(et);function n(c){return c&&c.__esModule?c:{default:c}}var o=r.default.number,a=r.default.func,i=r.default.func,s=r.default.node,l=r.default.string})(eM);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,x){for(var y in x)Object.defineProperty(g,y,{enumerable:!0,get:x[y]})}t(e,{Step:function(){return p},default:function(){return h}});var r=l(O),n=Je,o=l(Ze),a=Ye,i=eM;function s(){return s=Object.assign||function(g){for(var x=1;x=0)&&Object.prototype.propertyIsEnumerable.call(g,b)&&(y[b]=g[b])}return y}function u(g,x){if(g==null)return{};var y={},b=Object.keys(g),m,f;for(f=0;f=0)&&(y[m]=g[m]);return y}var p=r.default.forwardRef(function(g,x){var y=g.className;g.activeClassName,g.completedClassName;var b=g.children,m=c(g,["className","activeClassName","completedClassName","children"]),f=(0,a.useTheme)().step,v=f.styles.base,d=(0,n.twMerge)((0,o.default)(v.initial),y);return r.default.createElement("div",s({},m,{ref:x,className:d}),b)});p.propTypes={className:i.propTypesClassName,activeClassName:i.propTypesClassName,completedClassName:i.propTypesClassName,children:i.propTypesChildren},p.displayName="MaterialTailwind.Step";var h=p})(rQ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,R){for(var T in R)Object.defineProperty(S,T,{enumerable:!0,get:R[T]})}t(e,{Stepper:function(){return E},Step:function(){return s.default},default:function(){return k}});var r=g(O),n=Gr,o=Je,a=g(Ze),i=Ye,s=g(rQ),l=eM;function c(S,R){(R==null||R>S.length)&&(R=S.length);for(var T=0,P=new Array(R);T=0)&&Object.prototype.propertyIsEnumerable.call(S,P)&&(T[P]=S[P])}return T}function d(S,R){if(S==null)return{};var T={},P=Object.keys(S),j,L;for(L=0;L=0)&&(T[j]=S[j]);return T}function w(S,R){return u(S)||x(S,R)||_(S,R)||y()}function _(S,R){if(S){if(typeof S=="string")return c(S,R);var T=Object.prototype.toString.call(S).slice(8,-1);if(T==="Object"&&S.constructor&&(T=S.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return c(S,R)}}var E=r.default.forwardRef(function(S,R){var T=S.activeStep,P=S.isFirstStep,j=S.isLastStep,L=S.className,D=S.lineClassName,B=S.activeLineClassName,V=S.children,q=v(S,["activeStep","isFirstStep","isLastStep","className","lineClassName","activeLineClassName","children"]),z=(0,i.useTheme)(),F=z.stepper,N=z.step,W=F.styles.base,G=N.styles,Q=G.base,Z=r.default.useRef(null),U=w(r.default.useState(0),2),J=U[0],ae=U[1],ee=T===0,se=Array.isArray(V)&&T===V.length-1,ue=Array.isArray(V)&&T>V.length-1;r.default.useEffect(function(){if(Z.current){var me=V,be=Z.current.getBoundingClientRect().width,ke=be/(me.length-1);ae(ke)}},[V]);var we=r.default.useMemo(function(){if(!ue)return J*T},[T,ue,J]);(0,n.useMergeRefs)([R,Z]);var Oe=(0,o.twMerge)((0,a.default)(W.stepper),L),Te=(0,o.twMerge)((0,a.default)(W.line.initial),D),Se=(0,o.twMerge)(Te,(0,a.default)(W.line.active),B),Pe=(0,a.default)(Q.active),Ie=(0,a.default)(Q.completed);return r.default.useEffect(function(){j&&typeof j=="function"&&j(se),P&&typeof P=="function"&&P(ee)},[P,ee,j,se]),r.default.createElement("div",h({},q,{ref:Z,className:Oe}),r.default.createElement("div",{className:Te}),r.default.createElement("div",{className:Se,style:{width:"".concat(we,"px")}}),Array.isArray(V)?V.map(function(me,be){var ke,je;return r.default.cloneElement(me,f(b({key:be},me.props),{className:(0,o.twMerge)(me.props.className,be===T?(0,o.twMerge)(Pe,(ke=me.props)===null||ke===void 0?void 0:ke.activeClassName):be=0)&&Object.prototype.propertyIsEnumerable.call(b,v)&&(f[v]=b[v])}return f}function g(b,m){if(b==null)return{};var f={},v=Object.keys(b),d,w;for(w=0;w=0)&&(f[d]=b[d]);return f}var x=r.default.forwardRef(function(b,m){var f=b.children,v=h(b,["children"]),d,w=(0,o.useSpeedDial)(),_=w.getReferenceProps,E=w.refs,k=(0,n.useMergeRefs)([m,E.setReference]);return r.default.cloneElement(f,c({},_(p(c({},v),{ref:k,className:(0,a.twMerge)(f==null||(d=f.props)===null||d===void 0?void 0:d.className,v==null?void 0:v.className)}))))});x.propTypes={children:i.propTypesChildren},x.displayName="MaterialTailwind.SpeedDialHandler";var y=x}(FC)),FC}var zC={},TN;function Qze(){return TN||(TN=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,m){for(var f in m)Object.defineProperty(b,f,{enumerable:!0,get:m[f]})}t(e,{SpeedDialContent:function(){return x},default:function(){return y}});var r=p(O),n=rn,o=Gr,a=tM(),i=Ye,s=Je,l=p(Ze),c=Y1;function u(){return u=Object.assign||function(b){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(b,v)&&(f[v]=b[v])}return f}function g(b,m){if(b==null)return{};var f={},v=Object.keys(b),d,w;for(w=0;w=0)&&(f[d]=b[d]);return f}var x=r.default.forwardRef(function(b,m){var f=b.children,v=b.className,d=h(b,["children","className"]),w=(0,i.useTheme)(),_=w.speedDialContent.styles,E=(0,a.useSpeedDial)(),k=E.x,S=E.y,R=E.refs,T=E.open,P=E.strategy,j=E.getFloatingProps,L=E.animation,D=(0,o.useMergeRefs)([m,R.setFloating]),B=(0,s.twMerge)((0,l.default)(_),v),V=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(V,null,T&&r.default.createElement("div",u({},d,{ref:D,className:B,style:{position:P,top:S??0,left:k??0}},j()),r.default.Children.map(f,function(q){return r.default.createElement(n.m.div,{initial:"unmount",exit:"unmount",animate:T?"mount":"unmount",variants:L},q)}))))});x.propTypes={children:c.propTypesChildren,className:c.propTypesClassName},x.displayName="MaterialTailwind.SpeedDialContent";var y=x}(zC)),zC}var nQ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,p){for(var h in p)Object.defineProperty(u,h,{enumerable:!0,get:p[h]})}t(e,{SpeedDialAction:function(){return l},default:function(){return c}});var r=s(O),n=Ye,o=Je,a=s(Ze),i=Y1;function s(u){return u&&u.__esModule?u:{default:u}}var l=r.default.forwardRef(function(u,p){var h=u.className,g=u.children,x=(0,n.useTheme)(),y=x.speedDialAction.styles,b=(0,o.twMerge)((0,a.default)(y),h);return r.default.createElement("button",{ref:p,className:b},g)});l.propTypes={children:i.propTypesChildren,className:i.propTypesClassName},l.displayName="SpeedDialAction";var c=l})(nQ);var PN;function tM(){return PN||(PN=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,_){for(var E in _)Object.defineProperty(w,E,{enumerable:!0,get:_[E]})}t(e,{SpeedDialContext:function(){return m},useSpeedDial:function(){return f},SpeedDial:function(){return v},SpeedDialHandler:function(){return s.default},SpeedDialContent:function(){return l.default},SpeedDialAction:function(){return c.default},default:function(){return d}});var r=h(O),n=Gr,o=Ye,a=h(dn),i=Y1,s=h(Zze()),l=h(Qze()),c=h(nQ);function u(w,_){(_==null||_>w.length)&&(_=w.length);for(var E=0,k=new Array(_);E<_;E++)k[E]=w[E];return k}function p(w){if(Array.isArray(w))return w}function h(w){return w&&w.__esModule?w:{default:w}}function g(w,_){var E=w==null?null:typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(E!=null){var k=[],S=!0,R=!1,T,P;try{for(E=E.call(w);!(S=(T=E.next()).done)&&(k.push(T.value),!(_&&k.length===_));S=!0);}catch(j){R=!0,P=j}finally{try{!S&&E.return!=null&&E.return()}finally{if(R)throw P}}return k}}function x(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(w,_){return p(w)||g(w,_)||b(w,_)||x()}function b(w,_){if(w){if(typeof w=="string")return u(w,_);var E=Object.prototype.toString.call(w).slice(8,-1);if(E==="Object"&&w.constructor&&(E=w.constructor.name),E==="Map"||E==="Set")return Array.from(E);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return u(w,_)}}var m=r.default.createContext(null);function f(){var w=r.default.useContext(m);if(!w)throw new Error("useSpeedDial must be used within a .");return w}function v(w){var _=w.open,E=w.handler,k=w.placement,S=w.offset,R=w.dismiss,T=w.animate,P=w.children,j=(0,o.useTheme)(),L=j.speedDial.defaultProps,D=y(r.default.useState(!1),2),B=D[0],V=D[1];_=_??B,E=E??V,k=k??L.placement,S=S??L.offset,R=R??L.dismiss,T=T??L.animate;var q={unmount:{opacity:0,transform:"scale(0.5)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},z=(0,a.default)(q,T),F=(0,n.useFloatingNodeId)(),N=(0,n.useFloating)({open:_,nodeId:F,placement:k,onOpenChange:E,whileElementsMounted:n.autoUpdate,middleware:[(0,n.offset)(S),(0,n.flip)(),(0,n.shift)()]}),W=N.x,G=N.y,Q=N.strategy,Z=N.refs,U=N.context,J=(0,n.useInteractions)([(0,n.useHover)(U,{handleClose:(0,n.safePolygon)()}),(0,n.useDismiss)(U,R)]),ae=J.getReferenceProps,ee=J.getFloatingProps,se=r.default.useMemo(function(){return{x:W,y:G,strategy:Q,refs:Z,open:_,context:U,getReferenceProps:ae,getFloatingProps:ee,animation:z}},[U,ee,ae,Z,Q,W,G,_,z]);return r.default.createElement(m.Provider,{value:se},r.default.createElement("div",{className:"group"},r.default.createElement(n.FloatingNode,{id:F},P)))}v.propTypes={open:i.propTypesOpen,handler:i.propTypesHanlder,placement:i.propTypesPlacement,offset:i.propTypesOffset,dismiss:i.propTypesDismiss,className:i.propTypesClassName,children:i.propTypesChildren,animate:i.propTypesAnimate},v.displayName="MaterialTailwind.SpeedDial";var d=Object.assign(v,{Handler:s.default,Content:l.default,Action:c.default})}(DC)),DC}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),t(QW,e),t(bX,e),t(yX,e),t(wX,e),t(_X,e),t(EX,e),t(RX,e),t(SX,e),t(TX,e),t(n9,e),t(hZ,e),t(pZ,e),t(yZ,e),t(xZ,e),t(CZ,e),t(OZ,e),t(kZ,e),t(SZ,e),t(TZ,e),t(IZ,e),t(LZ,e),t($Z,e),t(NZ,e),t(FZ,e),t(BZ,e),t(VZ,e),t(UZ,e),t(qZ,e),t(GZ,e),t(KZ,e),t(YZ,e),t(XZ,e),t(tQ,e),t(tM(),e),t(Ye,e),t(rP,e);function t(r,n){return Object.keys(r).forEach(function(o){o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:function(){return r[o]}})}),r}})(ie);function ma(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:rM(e)?2:nM(e)?3:0}function xd(e,t){return _f(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Jze(e,t){return _f(e)===2?e.get(t):e[t]}function oQ(e,t,r){var n=_f(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function aQ(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function rM(e){return aBe&&e instanceof Map}function nM(e){return iBe&&e instanceof Set}function nc(e){return e.o||e.t}function oM(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=sQ(e);delete t[gr];for(var r=_d(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=eBe),Object.freeze(e),t&&Dc(e,function(r,n){return aM(n,!0)},!0)),e}function eBe(){ma(2)}function iM(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ga(e){var t=kR[e];return t||ma(18,e),t}function tBe(e,t){kR[e]||(kR[e]=t)}function ER(){return l1}function BC(e,t){t&&(Ga("Patches"),e.u=[],e.s=[],e.v=t)}function Qx(e){CR(e),e.p.forEach(rBe),e.p=null}function CR(e){e===l1&&(l1=e.l)}function MN(e){return l1={p:[],l:l1,h:e,m:!0,_:0}}function rBe(e){var t=e[gr];t.i===0||t.i===1?t.j():t.g=!0}function VC(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Ga("ES5").S(t,e,n),n?(r[gr].P&&(Qx(t),ma(4)),Yi(e)&&(e=Jx(t,e),t.l||e_(t,e)),t.u&&Ga("Patches").M(r[gr].t,e,t.u,t.s)):e=Jx(t,r,[]),Qx(t),t.u&&t.v(t.u,t.s),e!==iQ?e:void 0}function Jx(e,t,r){if(iM(t))return t;var n=t[gr];if(!n)return Dc(t,function(s,l){return AN(e,n,t,s,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return e_(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=oM(n.k):n.o,a=o,i=!1;n.i===3&&(a=new Set(o),o.clear(),i=!0),Dc(a,function(s,l){return AN(e,n,o,s,l,r,i)}),e_(e,o,!1),r&&e.u&&Ga("Patches").N(n,r,e.u,e.s)}return n.o}function AN(e,t,r,n,o,a,i){if(yl(o)){var s=Jx(e,o,a&&t&&t.i!==3&&!xd(t.R,n)?a.concat(n):void 0);if(oQ(r,n,s),!yl(s))return;e.m=!1}else i&&r.add(o);if(Yi(o)&&!iM(o)){if(!e.h.D&&e._<1)return;Jx(e,o),t&&t.A.l||e_(e,o)}}function e_(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&aM(t,r)}function HC(e,t){var r=e[gr];return(r?nc(r):e)[t]}function jN(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Ps(e){e.P||(e.P=!0,e.l&&Ps(e.l))}function UC(e){e.o||(e.o=oM(e.t))}function OR(e,t,r){var n=rM(t)?Ga("MapSet").F(t,r):nM(t)?Ga("MapSet").T(t,r):e.O?function(o,a){var i=Array.isArray(o),s={i:i?1:0,A:a?a.A:ER(),P:!1,I:!1,R:{},l:a,t:o,k:null,o:null,j:null,C:!1},l=s,c=c1;i&&(l=[s],c=Kh);var u=Proxy.revocable(l,c),p=u.revoke,h=u.proxy;return s.k=h,s.j=p,h}(t,r):Ga("ES5").J(t,r);return(r?r.A:ER()).p.push(n),n}function nBe(e){return yl(e)||ma(22,e),function t(r){if(!Yi(r))return r;var n,o=r[gr],a=_f(r);if(o){if(!o.P&&(o.i<4||!Ga("ES5").K(o)))return o.t;o.I=!0,n=IN(r,a),o.I=!1}else n=IN(r,a);return Dc(n,function(i,s){o&&Jze(o.t,i)===s||oQ(n,i,t(s))}),a===3?new Set(n):n}(e)}function IN(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return oM(e)}function oBe(){function e(a,i){var s=o[a];return s?s.enumerable=i:o[a]=s={configurable:!0,enumerable:i,get:function(){var l=this[gr];return c1.get(l,a)},set:function(l){var c=this[gr];c1.set(c,a,l)}},s}function t(a){for(var i=a.length-1;i>=0;i--){var s=a[i][gr];if(!s.P)switch(s.i){case 5:n(s)&&Ps(s);break;case 4:r(s)&&Ps(s)}}}function r(a){for(var i=a.t,s=a.k,l=_d(s),c=l.length-1;c>=0;c--){var u=l[c];if(u!==gr){var p=i[u];if(p===void 0&&!xd(i,u))return!0;var h=s[u],g=h&&h[gr];if(g?g.t!==p:!aQ(h,p))return!0}}var x=!!i[gr];return l.length!==_d(i).length+(x?0:1)}function n(a){var i=a.k;if(i.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(i,i.length-1);if(s&&!s.get)return!0;for(var l=0;l1?m-1:0),v=1;v1?u-1:0),h=1;h=0;o--){var a=n[o];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}o>-1&&(n=n.slice(o+1));var i=Ga("Patches").$;return yl(r)?i(r,n):this.produce(r,function(s){return i(s,n)})},e}(),xo=new lBe,lQ=xo.produce;xo.produceWithPatches.bind(xo);xo.setAutoFreeze.bind(xo);xo.setUseProxies.bind(xo);xo.applyPatches.bind(xo);xo.createDraft.bind(xo);xo.finishDraft.bind(xo);function u1(e){"@babel/helpers - typeof";return u1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u1(e)}function cBe(e,t){if(u1(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(u1(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uBe(e){var t=cBe(e,"string");return u1(t)==="symbol"?t:String(t)}function dBe(e,t,r){return t=uBe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function FN(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(bn(1));return r(cQ)(e,t)}if(typeof e!="function")throw new Error(bn(2));var o=e,a=t,i=[],s=i,l=!1;function c(){s===i&&(s=i.slice())}function u(){if(l)throw new Error(bn(3));return a}function p(y){if(typeof y!="function")throw new Error(bn(4));if(l)throw new Error(bn(5));var b=!0;return c(),s.push(y),function(){if(b){if(l)throw new Error(bn(6));b=!1,c();var f=s.indexOf(y);s.splice(f,1),i=null}}}function h(y){if(!fBe(y))throw new Error(bn(7));if(typeof y.type>"u")throw new Error(bn(8));if(l)throw new Error(bn(9));try{l=!0,a=o(a,y)}finally{l=!1}for(var b=i=s,m=0;m"u")throw new Error(bn(12));if(typeof r(void 0,{type:t_.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(bn(13))})}function pBe(e){for(var t=Object.keys(e),r={},n=0;n"u")throw c&&c.type,new Error(bn(14));p[g]=b,u=u||b!==y}return u=u||a.length!==Object.keys(l).length,u?p:l}}function r_(){for(var e=arguments.length,t=new Array(e),r=0;r0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]{const{user:r,accessToken:n}=t.payload;e.user=r,e.accessToken=n,e.isAuthenticated=!0},logout:e=>{e.isAuthenticated=!1,e.user=null,e.accessToken=null},removeFollower:(e,t)=>{var r,n,o,a;(a=(r=e.user)==null?void 0:r.following)==null||a.splice((o=(n=e.user)==null?void 0:n.following)==null?void 0:o.indexOf(t.payload),1)},addFollower:(e,t)=>{var r,n,o,a;(n=(r=e.user)==null?void 0:r.following)!=null&&n.includes(t.payload)||(a=(o=e.user)==null?void 0:o.following)==null||a.push(t.payload)}}}),{setCredentials:d1,logout:SR,removeFollower:wyt,addFollower:xyt}=pQ.actions,VBe=pQ.reducer;var mQ={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},qN=Fe.createContext&&Fe.createContext(mQ),nl=globalThis&&globalThis.__assign||function(){return nl=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt=>{const r=GBe.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),si=e=>(e=e.toLowerCase(),t=>u9(t)===e),d9=e=>t=>typeof t===e,{isArray:Ef}=Array,f1=d9("undefined");function KBe(e){return e!==null&&!f1(e)&&e.constructor!==null&&!f1(e.constructor)&&Ko(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xQ=si("ArrayBuffer");function YBe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&xQ(e.buffer),t}const XBe=d9("string"),Ko=d9("function"),_Q=d9("number"),f9=e=>e!==null&&typeof e=="object",ZBe=e=>e===!0||e===!1,I6=e=>{if(u9(e)!=="object")return!1;const t=cM(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},QBe=si("Date"),JBe=si("File"),eVe=si("Blob"),tVe=si("FileList"),rVe=e=>f9(e)&&Ko(e.pipe),nVe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ko(e.append)&&((t=u9(e))==="formdata"||t==="object"&&Ko(e.toString)&&e.toString()==="[object FormData]"))},oVe=si("URLSearchParams"),aVe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Z1(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Ef(e))for(n=0,o=e.length;n0;)if(o=r[n],t===o.toLowerCase())return o;return null}const CQ=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),OQ=e=>!f1(e)&&e!==CQ;function TR(){const{caseless:e}=OQ(this)&&this||{},t={},r=(n,o)=>{const a=e&&EQ(t,o)||o;I6(t[a])&&I6(n)?t[a]=TR(t[a],n):I6(n)?t[a]=TR({},n):Ef(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n(Z1(t,(o,a)=>{r&&Ko(o)?e[a]=wQ(o,r):e[a]=o},{allOwnKeys:n}),e),sVe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),lVe=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},cVe=(e,t,r,n)=>{let o,a,i;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!n||n(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=r!==!1&&cM(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},uVe=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},dVe=e=>{if(!e)return null;if(Ef(e))return e;let t=e.length;if(!_Q(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},fVe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&cM(Uint8Array)),hVe=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},pVe=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},mVe=si("HTMLFormElement"),gVe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),GN=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),vVe=si("RegExp"),kQ=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Z1(r,(o,a)=>{t(o,a,e)!==!1&&(n[a]=o)}),Object.defineProperties(e,n)},bVe=e=>{kQ(e,(t,r)=>{if(Ko(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ko(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},yVe=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return Ef(e)?n(e):n(String(e).split(t)),r},wVe=()=>{},xVe=(e,t)=>(e=+e,Number.isFinite(e)?e:t),KC="abcdefghijklmnopqrstuvwxyz",KN="0123456789",RQ={DIGIT:KN,ALPHA:KC,ALPHA_DIGIT:KC+KC.toUpperCase()+KN},_Ve=(e=16,t=RQ.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function EVe(e){return!!(e&&Ko(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const CVe=e=>{const t=new Array(10),r=(n,o)=>{if(f9(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const a=Ef(n)?[]:{};return Z1(n,(i,s)=>{const l=r(i,o+1);!f1(l)&&(a[s]=l)}),t[o]=void 0,a}}return n};return r(e,0)},OVe=si("AsyncFunction"),kVe=e=>e&&(f9(e)||Ko(e))&&Ko(e.then)&&Ko(e.catch),Re={isArray:Ef,isArrayBuffer:xQ,isBuffer:KBe,isFormData:nVe,isArrayBufferView:YBe,isString:XBe,isNumber:_Q,isBoolean:ZBe,isObject:f9,isPlainObject:I6,isUndefined:f1,isDate:QBe,isFile:JBe,isBlob:eVe,isRegExp:vVe,isFunction:Ko,isStream:rVe,isURLSearchParams:oVe,isTypedArray:fVe,isFileList:tVe,forEach:Z1,merge:TR,extend:iVe,trim:aVe,stripBOM:sVe,inherits:lVe,toFlatObject:cVe,kindOf:u9,kindOfTest:si,endsWith:uVe,toArray:dVe,forEachEntry:hVe,matchAll:pVe,isHTMLForm:mVe,hasOwnProperty:GN,hasOwnProp:GN,reduceDescriptors:kQ,freezeMethods:bVe,toObjectSet:yVe,toCamelCase:gVe,noop:wVe,toFiniteNumber:xVe,findKey:EQ,global:CQ,isContextDefined:OQ,ALPHABET:RQ,generateString:_Ve,isSpecCompliantForm:EVe,toJSONObject:CVe,isAsyncFn:OVe,isThenable:kVe};function It(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}Re.inherits(It,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:Re.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const SQ=It.prototype,TQ={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{TQ[e]={value:e}});Object.defineProperties(It,TQ);Object.defineProperty(SQ,"isAxiosError",{value:!0});It.from=(e,t,r,n,o,a)=>{const i=Object.create(SQ);return Re.toFlatObject(e,i,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),It.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const RVe=null;function PR(e){return Re.isPlainObject(e)||Re.isArray(e)}function PQ(e){return Re.endsWith(e,"[]")?e.slice(0,-2):e}function YN(e,t,r){return e?e.concat(t).map(function(o,a){return o=PQ(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function SVe(e){return Re.isArray(e)&&!e.some(PR)}const TVe=Re.toFlatObject(Re,{},null,function(t){return/^is[A-Z]/.test(t)});function h9(e,t,r){if(!Re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Re.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!Re.isUndefined(b[y])});const n=r.metaTokens,o=r.visitor||u,a=r.dots,i=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&Re.isSpecCompliantForm(t);if(!Re.isFunction(o))throw new TypeError("visitor must be a function");function c(x){if(x===null)return"";if(Re.isDate(x))return x.toISOString();if(!l&&Re.isBlob(x))throw new It("Blob is not supported. Use a Buffer instead.");return Re.isArrayBuffer(x)||Re.isTypedArray(x)?l&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function u(x,y,b){let m=x;if(x&&!b&&typeof x=="object"){if(Re.endsWith(y,"{}"))y=n?y:y.slice(0,-2),x=JSON.stringify(x);else if(Re.isArray(x)&&SVe(x)||(Re.isFileList(x)||Re.endsWith(y,"[]"))&&(m=Re.toArray(x)))return y=PQ(y),m.forEach(function(v,d){!(Re.isUndefined(v)||v===null)&&t.append(i===!0?YN([y],d,a):i===null?y:y+"[]",c(v))}),!1}return PR(x)?!0:(t.append(YN(b,y,a),c(x)),!1)}const p=[],h=Object.assign(TVe,{defaultVisitor:u,convertValue:c,isVisitable:PR});function g(x,y){if(!Re.isUndefined(x)){if(p.indexOf(x)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(x),Re.forEach(x,function(m,f){(!(Re.isUndefined(m)||m===null)&&o.call(t,m,Re.isString(f)?f.trim():f,y,h))===!0&&g(m,y?y.concat(f):[f])}),p.pop()}}if(!Re.isObject(e))throw new TypeError("data must be an object");return g(e),t}function XN(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function uM(e,t){this._pairs=[],e&&h9(e,this,t)}const MQ=uM.prototype;MQ.append=function(t,r){this._pairs.push([t,r])};MQ.toString=function(t){const r=t?function(n){return t.call(this,n,XN)}:XN;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function PVe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function AQ(e,t,r){if(!t)return e;const n=r&&r.encode||PVe,o=r&&r.serialize;let a;if(o?a=o(t,r):a=Re.isURLSearchParams(t)?t.toString():new uM(t,r).toString(n),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class MVe{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Re.forEach(this.handlers,function(n){n!==null&&t(n)})}}const ZN=MVe,jQ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},AVe=typeof URLSearchParams<"u"?URLSearchParams:uM,jVe=typeof FormData<"u"?FormData:null,IVe=typeof Blob<"u"?Blob:null,LVe=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),$Ve=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ha={isBrowser:!0,classes:{URLSearchParams:AVe,FormData:jVe,Blob:IVe},isStandardBrowserEnv:LVe,isStandardBrowserWebWorkerEnv:$Ve,protocols:["http","https","file","blob","url","data"]};function NVe(e,t){return h9(e,new Ha.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return Ha.isNode&&Re.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function DVe(e){return Re.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function FVe(e){const t={},r=Object.keys(e);let n;const o=r.length;let a;for(n=0;n=r.length;return i=!i&&Re.isArray(o)?o.length:i,l?(Re.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!s):((!o[i]||!Re.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],a)&&Re.isArray(o[i])&&(o[i]=FVe(o[i])),!s)}if(Re.isFormData(e)&&Re.isFunction(e.entries)){const r={};return Re.forEachEntry(e,(n,o)=>{t(DVe(n),o,r,0)}),r}return null}const zVe={"Content-Type":void 0};function BVe(e,t,r){if(Re.isString(e))try{return(t||JSON.parse)(e),Re.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const p9={transitional:jQ,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=Re.isObject(t);if(a&&Re.isHTMLForm(t)&&(t=new FormData(t)),Re.isFormData(t))return o&&o?JSON.stringify(IQ(t)):t;if(Re.isArrayBuffer(t)||Re.isBuffer(t)||Re.isStream(t)||Re.isFile(t)||Re.isBlob(t))return t;if(Re.isArrayBufferView(t))return t.buffer;if(Re.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return NVe(t,this.formSerializer).toString();if((s=Re.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return h9(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),BVe(t)):t}],transformResponse:[function(t){const r=this.transitional||p9.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(t&&Re.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?It.from(s,It.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ha.classes.FormData,Blob:Ha.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Re.forEach(["delete","get","head"],function(t){p9.headers[t]={}});Re.forEach(["post","put","patch"],function(t){p9.headers[t]=Re.merge(zVe)});const dM=p9,VVe=Re.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"]),HVe=e=>{const t={};let r,n,o;return e&&e.split(` -`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&VVe[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},QN=Symbol("internals");function p0(e){return e&&String(e).trim().toLowerCase()}function L6(e){return e===!1||e==null?e:Re.isArray(e)?e.map(L6):String(e)}function UVe(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const WVe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function YC(e,t,r,n,o){if(Re.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!Re.isString(t)){if(Re.isString(n))return t.indexOf(n)!==-1;if(Re.isRegExp(n))return n.test(t)}}function qVe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function GVe(e,t){const r=Re.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,i){return this[n].call(this,t,o,a,i)},configurable:!0})})}let m9=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function a(s,l,c){const u=p0(l);if(!u)throw new Error("header name must be a non-empty string");const p=Re.findKey(o,u);(!p||o[p]===void 0||c===!0||c===void 0&&o[p]!==!1)&&(o[p||l]=L6(s))}const i=(s,l)=>Re.forEach(s,(c,u)=>a(c,u,l));return Re.isPlainObject(t)||t instanceof this.constructor?i(t,r):Re.isString(t)&&(t=t.trim())&&!WVe(t)?i(HVe(t),r):t!=null&&a(r,t,n),this}get(t,r){if(t=p0(t),t){const n=Re.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return UVe(o);if(Re.isFunction(r))return r.call(this,o,n);if(Re.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=p0(t),t){const n=Re.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||YC(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function a(i){if(i=p0(i),i){const s=Re.findKey(n,i);s&&(!r||YC(n,n[s],s,r))&&(delete n[s],o=!0)}}return Re.isArray(t)?t.forEach(a):a(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const a=r[n];(!t||YC(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const r=this,n={};return Re.forEach(this,(o,a)=>{const i=Re.findKey(n,a);if(i){r[i]=L6(o),delete r[a];return}const s=t?qVe(a):String(a).trim();s!==a&&delete r[a],r[s]=L6(o),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Re.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&Re.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[QN]=this[QN]={accessors:{}}).accessors,o=this.prototype;function a(i){const s=p0(i);n[s]||(GVe(o,i),n[s]=!0)}return Re.isArray(t)?t.forEach(a):a(t),this}};m9.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Re.freezeMethods(m9.prototype);Re.freezeMethods(m9);const Fi=m9;function XC(e,t){const r=this||dM,n=t||r,o=Fi.from(n.headers);let a=n.data;return Re.forEach(e,function(s){a=s.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function LQ(e){return!!(e&&e.__CANCEL__)}function Q1(e,t,r){It.call(this,e??"canceled",It.ERR_CANCELED,t,r),this.name="CanceledError"}Re.inherits(Q1,It,{__CANCEL__:!0});function KVe(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new It("Request failed with status code "+r.status,[It.ERR_BAD_REQUEST,It.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const YVe=Ha.isStandardBrowserEnv?function(){return{write:function(r,n,o,a,i,s){const l=[];l.push(r+"="+encodeURIComponent(n)),Re.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),Re.isString(a)&&l.push("path="+a),Re.isString(i)&&l.push("domain="+i),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function XVe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ZVe(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function $Q(e,t){return e&&!XVe(t)?ZVe(e,t):t}const QVe=Ha.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(a){let i=a;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(i){const s=Re.isString(i)?o(i):i;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function JVe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function eHe(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[a];i||(i=c),r[o]=l,n[o]=c;let p=a,h=0;for(;p!==o;)h+=r[p++],p=p%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i{const a=o.loaded,i=o.lengthComputable?o.total:void 0,s=a-r,l=n(s),c=a<=i;r=a;const u={loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&c?(i-a)/l:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const tHe=typeof XMLHttpRequest<"u",rHe=tHe&&function(e){return new Promise(function(r,n){let o=e.data;const a=Fi.from(e.headers).normalize(),i=e.responseType;let s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}Re.isFormData(o)&&(Ha.isStandardBrowserEnv||Ha.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(g+":"+x))}const u=$Q(e.baseURL,e.url);c.open(e.method.toUpperCase(),AQ(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function p(){if(!c)return;const g=Fi.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),y={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:g,config:e,request:c};KVe(function(m){r(m),l()},function(m){n(m),l()},y),c=null}if("onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(p)},c.onabort=function(){c&&(n(new It("Request aborted",It.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new It("Network Error",It.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let x=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||jQ;e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),n(new It(x,y.clarifyTimeoutError?It.ETIMEDOUT:It.ECONNABORTED,e,c)),c=null},Ha.isStandardBrowserEnv){const g=(e.withCredentials||QVe(u))&&e.xsrfCookieName&&YVe.read(e.xsrfCookieName);g&&a.set(e.xsrfHeaderName,g)}o===void 0&&a.setContentType(null),"setRequestHeader"in c&&Re.forEach(a.toJSON(),function(x,y){c.setRequestHeader(y,x)}),Re.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",JN(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",JN(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=g=>{c&&(n(!g||g.type?new Q1(null,e,c):g),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const h=JVe(u);if(h&&Ha.protocols.indexOf(h)===-1){n(new It("Unsupported protocol "+h+":",It.ERR_BAD_REQUEST,e));return}c.send(o||null)})},$6={http:RVe,xhr:rHe};Re.forEach($6,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const nHe={getAdapter:e=>{e=Re.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let o=0;oe instanceof Fi?e.toJSON():e;function Zd(e,t){t=t||{};const r={};function n(c,u,p){return Re.isPlainObject(c)&&Re.isPlainObject(u)?Re.merge.call({caseless:p},c,u):Re.isPlainObject(u)?Re.merge({},u):Re.isArray(u)?u.slice():u}function o(c,u,p){if(Re.isUndefined(u)){if(!Re.isUndefined(c))return n(void 0,c,p)}else return n(c,u,p)}function a(c,u){if(!Re.isUndefined(u))return n(void 0,u)}function i(c,u){if(Re.isUndefined(u)){if(!Re.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function s(c,u,p){if(p in t)return n(c,u);if(p in e)return n(void 0,c)}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials: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:s,headers:(c,u)=>o(tD(c),tD(u),!0)};return Re.forEach(Object.keys(Object.assign({},e,t)),function(u){const p=l[u]||o,h=p(e[u],t[u],u);Re.isUndefined(h)&&p!==s||(r[u]=h)}),r}const NQ="1.4.0",fM={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{fM[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const rD={};fM.transitional=function(t,r,n){function o(a,i){return"[Axios v"+NQ+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,s)=>{if(t===!1)throw new It(o(i," has been removed"+(r?" in "+r:"")),It.ERR_DEPRECATED);return r&&!rD[i]&&(rD[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,s):!0}};function oHe(e,t,r){if(typeof e!="object")throw new It("options must be an object",It.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],i=t[a];if(i){const s=e[a],l=s===void 0||i(s,a,e);if(l!==!0)throw new It("option "+a+" must be "+l,It.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new It("Unknown option "+a,It.ERR_BAD_OPTION)}}const MR={assertOptions:oHe,validators:fM},vs=MR.validators;let n_=class{constructor(t){this.defaults=t,this.interceptors={request:new ZN,response:new ZN}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Zd(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&MR.assertOptions(n,{silentJSONParsing:vs.transitional(vs.boolean),forcedJSONParsing:vs.transitional(vs.boolean),clarifyTimeoutError:vs.transitional(vs.boolean)},!1),o!=null&&(Re.isFunction(o)?r.paramsSerializer={serialize:o}:MR.assertOptions(o,{encode:vs.function,serialize:vs.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i;i=a&&Re.merge(a.common,a[r.method]),i&&Re.forEach(["delete","get","head","post","put","patch","common"],x=>{delete a[x]}),r.headers=Fi.concat(i,a);const s=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(l=l&&y.synchronous,s.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let u,p=0,h;if(!l){const x=[eD.bind(this),void 0];for(x.unshift.apply(x,s),x.push.apply(x,c),h=x.length,u=Promise.resolve(r);p{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(s=>{n.subscribe(s),a=s}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,s){n.reason||(n.reason=new Q1(a,i,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new DQ(function(o){t=o}),cancel:t}}};const iHe=aHe;function sHe(e){return function(r){return e.apply(null,r)}}function lHe(e){return Re.isObject(e)&&e.isAxiosError===!0}const AR={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(AR).forEach(([e,t])=>{AR[t]=e});const cHe=AR;function FQ(e){const t=new N6(e),r=wQ(N6.prototype.request,t);return Re.extend(r,N6.prototype,t,{allOwnKeys:!0}),Re.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return FQ(Zd(e,o))},r}const Wr=FQ(dM);Wr.Axios=N6;Wr.CanceledError=Q1;Wr.CancelToken=iHe;Wr.isCancel=LQ;Wr.VERSION=NQ;Wr.toFormData=h9;Wr.AxiosError=It;Wr.Cancel=Wr.CanceledError;Wr.all=function(t){return Promise.all(t)};Wr.spread=sHe;Wr.isAxiosError=lHe;Wr.mergeConfig=Zd;Wr.AxiosHeaders=Fi;Wr.formToJSON=e=>IQ(Re.isHTMLForm(e)?new FormData(e):e);Wr.HttpStatusCode=cHe;Wr.default=Wr;const J1=Wr,{Axios:Ryt,AxiosError:Syt,CanceledError:Tyt,isCancel:Pyt,CancelToken:Myt,VERSION:Ayt,all:jyt,Cancel:Iyt,isAxiosError:ei,spread:Lyt,toFormData:$yt,AxiosHeaders:Nyt,HttpStatusCode:Dyt,formToJSON:Fyt,mergeConfig:zyt}=J1,Ut={API_BASE_URL:"https://socioverse.online",CLIENT_BASE_URL:"https://socioverse.online",DEFAULT_IMG:"https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_1280.png",ADMIN_LOGIN_SVG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381015/socioverse%20stock/AdminLoginSvg_ain9jo.svg",AUTHENTICATION_SVG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381022/socioverse%20stock/AuthenticationSvg_iirmb2.svg",CHAT_SVG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381151/socioverse%20stock/ChatSvg_acpykg.svg",GOOGLE_LOGO_SVG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381161/socioverse%20stock/GoogleLogoSvg_atvkrt.svg",LOADER_SVG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381169/socioverse%20stock/Loader_dofs8c.svg",LOADER_PNG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381177/socioverse%20stock/LoaderPng_ahqjxq.png",LOGIN_ALERT_SVG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381181/socioverse%20stock/LoginAlertSvg_yx47iz.svg",NO_DATA_AVAILABLE_SVG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381193/socioverse%20stock/NoDataAvailable_jovfkq.svg",PROFILE_SVG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381205/socioverse%20stock/profileSvg_mwpb71.svg",SETTING_SVG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381215/socioverse%20stock/Settings_lv6rse.svg",ERROR_NOT_FOUND_SVG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381003/socioverse%20stock/404_nvavnv.svg"},nt={position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"},uHe={coverPhoto:null,profilePhoto:null},dHe=X1({name:"image",initialState:uHe,reducers:{setCoverPhoto:(e,t)=>{e.coverPhoto=t.payload},setProfilePhoto:(e,t)=>{e.profilePhoto=t.payload}}}),fHe=dHe.reducer,hHe={description:null,image:null,hashtags:null,createdAt:null,updatedAt:null,hashtagSearch:null,hashtagSearchOn:!1,searchModeOn:!1,isSharedPost:!1,sharedPostId:null},zQ=X1({name:"post",initialState:hHe,reducers:{setPost:(e,t)=>{e.description=t.payload.description,e.image=t.payload.image,e.hashtags=t.payload.hashtags,e.createdAt=t.payload.createdAt,e.updatedAt=t.payload.updatedAt},setTempPostImage:(e,t)=>{e.image=e.image?[...e.image,t.payload]:[t.payload]},deleteTempPostImage:(e,t)=>{var r;e.image=(r=e.image)==null?void 0:r.filter(n=>n!==t.payload)},resetTempPostImage:e=>{e.image=null},setHashtagSearch:(e,t)=>{e.hashtagSearch=t.payload,e.hashtagSearchOn=!0},resetHashtagSearch:e=>{e.hashtagSearch=null,e.hashtagSearchOn=!1},enableSearchMode:e=>{e.searchModeOn=!0},disableSearchMode:e=>{e.searchModeOn=!1},setIsSharedPost:(e,t)=>{e.isSharedPost=t.payload},setSharedPostId:(e,t)=>{e.sharedPostId=t.payload}}}),{setPost:Byt,setTempPostImage:Vyt,deleteTempPostImage:Hyt,resetTempPostImage:Uyt,setHashtagSearch:BQ,resetHashtagSearch:pHe,enableSearchMode:VQ,disableSearchMode:HQ,setIsSharedPost:Wyt,setSharedPostId:qyt}=zQ.actions,mHe=zQ.reducer,gHe={accessToken:null,isAuthenticated:!1,searchTextForComments:"",searchTextForReplies:""},UQ=X1({name:"admin",initialState:gHe,reducers:{setAdminCredentials:(e,t)=>{const{accessToken:r}=t.payload;e.accessToken=r,e.isAuthenticated=!0},adminLogout:e=>{e.isAuthenticated=!1,e.accessToken=null},setSearchTextForComments:(e,t)=>{e.searchTextForComments=t.payload},setSearchTextForReplies:(e,t)=>{e.searchTextForReplies=t.payload}}}),{setAdminCredentials:jR,adminLogout:vHe,setSearchTextForComments:bHe,setSearchTextForReplies:yHe}=UQ.actions,wHe=UQ.reducer,xHe={selectedChat:null,chats:[],notification:[],fetchUserChatsAgain:!1,openVideoCall:!1,joinedVideoRoom:!1},WQ=X1({name:"chat",initialState:xHe,reducers:{setSelectedChat:(e,t)=>{e.selectedChat=t.payload},setChats:(e,t)=>{e.chats=t.payload},initializeNotification:(e,t)=>{e.notification=t.payload},setNotification:(e,t)=>{e.notification.some(r=>r._id===t.payload._id)||(e.notification=[t.payload,...e.notification])},setFetchUserChatsAgain:(e,t)=>{e.fetchUserChatsAgain=t.payload},deleteNotification:(e,t)=>{e.notification.some(r=>r._id===t.payload._id)&&(e.notification=e.notification.filter(r=>r._id!==t.payload._id))},setOpenVideoCall:(e,t)=>{e.openVideoCall=t.payload},setJoinVideoRoom:(e,t)=>{e.joinedVideoRoom=t.payload}}}),{setSelectedChat:qQ,setChats:Gyt,setNotification:_He,setFetchUserChatsAgain:EHe,deleteNotification:nD,initializeNotification:CHe,setOpenVideoCall:OHe,setJoinVideoRoom:kHe}=WQ.actions,RHe=WQ.reducer,_o=MBe({reducer:{auth:VBe,photo:fHe,post:mHe,admin:wHe,chat:RHe}});function GQ(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="number"&&!isNaN(e),Fc=e=>typeof e=="string",Zn=e=>typeof e=="function",D6=e=>Fc(e)||Zn(e)?e:null,QC=e=>O.isValidElement(e)||Fc(e)||Zn(e)||vp(e);function SHe(e,t,r){r===void 0&&(r=300);const{scrollHeight:n,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=n+"px",o.transition=`all ${r}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,r)})})}function g9(e){let{enter:t,exit:r,appendPosition:n=!1,collapse:o=!0,collapseDuration:a=300}=e;return function(i){let{children:s,position:l,preventExitTransition:c,done:u,nodeRef:p,isIn:h}=i;const g=n?`${t}--${l}`:t,x=n?`${r}--${l}`:r,y=O.useRef(0);return O.useLayoutEffect(()=>{const b=p.current,m=g.split(" "),f=v=>{v.target===p.current&&(b.dispatchEvent(new Event("d")),b.removeEventListener("animationend",f),b.removeEventListener("animationcancel",f),y.current===0&&v.type!=="animationcancel"&&b.classList.remove(...m))};b.classList.add(...m),b.addEventListener("animationend",f),b.addEventListener("animationcancel",f)},[]),O.useEffect(()=>{const b=p.current,m=()=>{b.removeEventListener("animationend",m),o?SHe(b,u,a):u()};h||(c?m():(y.current=1,b.className+=` ${x}`,b.addEventListener("animationend",m)))},[h]),Fe.createElement(Fe.Fragment,null,s)}}function oD(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Do={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const r=this.list.get(e).filter(n=>n!==t);return this.list.set(e,r),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const r=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(r)})}},um=e=>{let{theme:t,type:r,...n}=e;return Fe.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${r})`,...n})},JC={info:function(e){return Fe.createElement(um,{...e},Fe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return Fe.createElement(um,{...e},Fe.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return Fe.createElement(um,{...e},Fe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return Fe.createElement(um,{...e},Fe.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return Fe.createElement("div",{className:"Toastify__spinner"})}};function THe(e){const[,t]=O.useReducer(g=>g+1,0),[r,n]=O.useState([]),o=O.useRef(null),a=O.useRef(new Map).current,i=g=>r.indexOf(g)!==-1,s=O.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:i,getToast:g=>a.get(g)}).current;function l(g){let{containerId:x}=g;const{limit:y}=s.props;!y||x&&s.containerId!==x||(s.count-=s.queue.length,s.queue=[])}function c(g){n(x=>g==null?[]:x.filter(y=>y!==g))}function u(){const{toastContent:g,toastProps:x,staleId:y}=s.queue.shift();h(g,x,y)}function p(g,x){let{delay:y,staleId:b,...m}=x;if(!QC(g)||function(P){return!o.current||s.props.enableMultiContainer&&P.containerId!==s.props.containerId||a.has(P.toastId)&&P.updateId==null}(m))return;const{toastId:f,updateId:v,data:d}=m,{props:w}=s,_=()=>c(f),E=v==null;E&&s.count++;const k={...w,style:w.toastStyle,key:s.toastKey++,...Object.fromEntries(Object.entries(m).filter(P=>{let[j,L]=P;return L!=null})),toastId:f,updateId:v,data:d,closeToast:_,isIn:!1,className:D6(m.className||w.toastClassName),bodyClassName:D6(m.bodyClassName||w.bodyClassName),progressClassName:D6(m.progressClassName||w.progressClassName),autoClose:!m.isLoading&&(S=m.autoClose,R=w.autoClose,S===!1||vp(S)&&S>0?S:R),deleteToast(){const P=oD(a.get(f),"removed");a.delete(f),Do.emit(4,P);const j=s.queue.length;if(s.count=f==null?s.count-s.displayedToast:s.count-1,s.count<0&&(s.count=0),j>0){const L=f==null?s.props.limit:1;if(j===1||L===1)s.displayedToast++,u();else{const D=L>j?j:L;s.displayedToast=D;for(let B=0;Bz in JC)(L)&&(V=JC[L](q))),V}(k),Zn(m.onOpen)&&(k.onOpen=m.onOpen),Zn(m.onClose)&&(k.onClose=m.onClose),k.closeButton=w.closeButton,m.closeButton===!1||QC(m.closeButton)?k.closeButton=m.closeButton:m.closeButton===!0&&(k.closeButton=!QC(w.closeButton)||w.closeButton);let T=g;O.isValidElement(g)&&!Fc(g.type)?T=O.cloneElement(g,{closeToast:_,toastProps:k,data:d}):Zn(g)&&(T=g({closeToast:_,toastProps:k,data:d})),w.limit&&w.limit>0&&s.count>w.limit&&E?s.queue.push({toastContent:T,toastProps:k,staleId:b}):vp(y)?setTimeout(()=>{h(T,k,b)},y):h(T,k,b)}function h(g,x,y){const{toastId:b}=x;y&&a.delete(y);const m={content:g,props:x};a.set(b,m),n(f=>[...f,b].filter(v=>v!==y)),Do.emit(4,oD(m,m.props.updateId==null?"added":"updated"))}return O.useEffect(()=>(s.containerId=e.containerId,Do.cancelEmit(3).on(0,p).on(1,g=>o.current&&c(g)).on(5,l).emit(2,s),()=>{a.clear(),Do.emit(3,s)}),[]),O.useEffect(()=>{s.props=e,s.isToastActive=i,s.displayedToast=r.length}),{getToastToRender:function(g){const x=new Map,y=Array.from(a.values());return e.newestOnTop&&y.reverse(),y.forEach(b=>{const{position:m}=b.props;x.has(m)||x.set(m,[]),x.get(m).push(b)}),Array.from(x,b=>g(b[0],b[1]))},containerRef:o,isToastActive:i}}function aD(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function iD(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function PHe(e){const[t,r]=O.useState(!1),[n,o]=O.useState(!1),a=O.useRef(null),i=O.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,s=O.useRef(e),{autoClose:l,pauseOnHover:c,closeToast:u,onClick:p,closeOnClick:h}=e;function g(d){if(e.draggable){d.nativeEvent.type==="touchstart"&&d.nativeEvent.preventDefault(),i.didMove=!1,document.addEventListener("mousemove",m),document.addEventListener("mouseup",f),document.addEventListener("touchmove",m),document.addEventListener("touchend",f);const w=a.current;i.canCloseOnClick=!0,i.canDrag=!0,i.boundingRect=w.getBoundingClientRect(),w.style.transition="",i.x=aD(d.nativeEvent),i.y=iD(d.nativeEvent),e.draggableDirection==="x"?(i.start=i.x,i.removalDistance=w.offsetWidth*(e.draggablePercent/100)):(i.start=i.y,i.removalDistance=w.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function x(d){if(i.boundingRect){const{top:w,bottom:_,left:E,right:k}=i.boundingRect;d.nativeEvent.type!=="touchend"&&e.pauseOnHover&&i.x>=E&&i.x<=k&&i.y>=w&&i.y<=_?b():y()}}function y(){r(!0)}function b(){r(!1)}function m(d){const w=a.current;i.canDrag&&w&&(i.didMove=!0,t&&b(),i.x=aD(d),i.y=iD(d),i.delta=e.draggableDirection==="x"?i.x-i.start:i.y-i.start,i.start!==i.x&&(i.canCloseOnClick=!1),w.style.transform=`translate${e.draggableDirection}(${i.delta}px)`,w.style.opacity=""+(1-Math.abs(i.delta/i.removalDistance)))}function f(){document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",f),document.removeEventListener("touchmove",m),document.removeEventListener("touchend",f);const d=a.current;if(i.canDrag&&i.didMove&&d){if(i.canDrag=!1,Math.abs(i.delta)>i.removalDistance)return o(!0),void e.closeToast();d.style.transition="transform 0.2s, opacity 0.2s",d.style.transform=`translate${e.draggableDirection}(0)`,d.style.opacity="1"}}O.useEffect(()=>{s.current=e}),O.useEffect(()=>(a.current&&a.current.addEventListener("d",y,{once:!0}),Zn(e.onOpen)&&e.onOpen(O.isValidElement(e.children)&&e.children.props),()=>{const d=s.current;Zn(d.onClose)&&d.onClose(O.isValidElement(d.children)&&d.children.props)}),[]),O.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||b(),window.addEventListener("focus",y),window.addEventListener("blur",b)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",y),window.removeEventListener("blur",b))}),[e.pauseOnFocusLoss]);const v={onMouseDown:g,onTouchStart:g,onMouseUp:x,onTouchEnd:x};return l&&c&&(v.onMouseEnter=b,v.onMouseLeave=y),h&&(v.onClick=d=>{p&&p(d),i.canCloseOnClick&&u()}),{playToast:y,pauseToast:b,isRunning:t,preventExitTransition:n,toastRef:a,eventHandlers:v}}function KQ(e){let{closeToast:t,theme:r,ariaLabel:n="close"}=e;return Fe.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:o=>{o.stopPropagation(),t(o)},"aria-label":n},Fe.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Fe.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function MHe(e){let{delay:t,isRunning:r,closeToast:n,type:o="default",hide:a,className:i,style:s,controlledProgress:l,progress:c,rtl:u,isIn:p,theme:h}=e;const g=a||l&&c===0,x={...s,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused",opacity:g?0:1};l&&(x.transform=`scaleX(${c})`);const y=Ns("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),b=Zn(i)?i({rtl:u,type:o,defaultClassName:y}):Ns(y,i);return Fe.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:b,style:x,[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{p&&n()}})}const AHe=e=>{const{isRunning:t,preventExitTransition:r,toastRef:n,eventHandlers:o}=PHe(e),{closeButton:a,children:i,autoClose:s,onClick:l,type:c,hideProgressBar:u,closeToast:p,transition:h,position:g,className:x,style:y,bodyClassName:b,bodyStyle:m,progressClassName:f,progressStyle:v,updateId:d,role:w,progress:_,rtl:E,toastId:k,deleteToast:S,isIn:R,isLoading:T,iconOut:P,closeOnClick:j,theme:L}=e,D=Ns("Toastify__toast",`Toastify__toast-theme--${L}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":E},{"Toastify__toast--close-on-click":j}),B=Zn(x)?x({rtl:E,position:g,type:c,defaultClassName:D}):Ns(D,x),V=!!_||!s,q={closeToast:p,type:c,theme:L};let z=null;return a===!1||(z=Zn(a)?a(q):O.isValidElement(a)?O.cloneElement(a,q):KQ(q)),Fe.createElement(h,{isIn:R,done:S,position:g,preventExitTransition:r,nodeRef:n},Fe.createElement("div",{id:k,onClick:l,className:B,...o,style:y,ref:n},Fe.createElement("div",{...R&&{role:w},className:Zn(b)?b({type:c}):Ns("Toastify__toast-body",b),style:m},P!=null&&Fe.createElement("div",{className:Ns("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!T})},P),Fe.createElement("div",null,i)),z,Fe.createElement(MHe,{...d&&!V?{key:`pb-${d}`}:{},rtl:E,theme:L,delay:s,isRunning:t,isIn:R,closeToast:p,hide:u,type:c,style:v,className:f,controlledProgress:V,progress:_||0})))},v9=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},jHe=g9(v9("bounce",!0));g9(v9("slide",!0));g9(v9("zoom"));g9(v9("flip"));const to=O.forwardRef((e,t)=>{const{getToastToRender:r,containerRef:n,isToastActive:o}=THe(e),{className:a,style:i,rtl:s,containerId:l}=e;function c(u){const p=Ns("Toastify__toast-container",`Toastify__toast-container--${u}`,{"Toastify__toast-container--rtl":s});return Zn(a)?a({position:u,rtl:s,defaultClassName:p}):Ns(p,D6(a))}return O.useEffect(()=>{t&&(t.current=n.current)},[]),Fe.createElement("div",{ref:n,className:"Toastify",id:l},r((u,p)=>{const h=p.length?{...i}:{...i,pointerEvents:"none"};return Fe.createElement("div",{className:c(u),style:h,key:`container-${u}`},p.map((g,x)=>{let{content:y,props:b}=g;return Fe.createElement(AHe,{...b,isIn:o(b.toastId),style:{...b.style,"--nth":x+1,"--len":p.length},key:`toast-${b.key}`},y)}))}))});to.displayName="ToastContainer",to.defaultProps={position:"top-right",transition:jHe,autoClose:5e3,closeButton:KQ,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let eO,oc=new Map,Yh=[],IHe=1;function YQ(){return""+IHe++}function LHe(e){return e&&(Fc(e.toastId)||vp(e.toastId))?e.toastId:YQ()}function bp(e,t){return oc.size>0?Do.emit(0,e,t):Yh.push({content:e,options:t}),t.toastId}function o_(e,t){return{...t,type:t&&t.type||e,toastId:LHe(t)}}function dm(e){return(t,r)=>bp(t,o_(e,r))}function Ce(e,t){return bp(e,o_("default",t))}Ce.loading=(e,t)=>bp(e,o_("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Ce.promise=function(e,t,r){let n,{pending:o,error:a,success:i}=t;o&&(n=Fc(o)?Ce.loading(o,r):Ce.loading(o.render,{...r,...o}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(u,p,h)=>{if(p==null)return void Ce.dismiss(n);const g={type:u,...s,...r,data:h},x=Fc(p)?{render:p}:p;return n?Ce.update(n,{...g,...x}):Ce(x.render,{...g,...x}),h},c=Zn(e)?e():e;return c.then(u=>l("success",i,u)).catch(u=>l("error",a,u)),c},Ce.success=dm("success"),Ce.info=dm("info"),Ce.error=dm("error"),Ce.warning=dm("warning"),Ce.warn=Ce.warning,Ce.dark=(e,t)=>bp(e,o_("default",{theme:"dark",...t})),Ce.dismiss=e=>{oc.size>0?Do.emit(1,e):Yh=Yh.filter(t=>e!=null&&t.options.toastId!==e)},Ce.clearWaitingQueue=function(e){return e===void 0&&(e={}),Do.emit(5,e)},Ce.isActive=e=>{let t=!1;return oc.forEach(r=>{r.isToastActive&&r.isToastActive(e)&&(t=!0)}),t},Ce.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const r=function(n,o){let{containerId:a}=o;const i=oc.get(a||eO);return i&&i.getToast(n)}(e,t);if(r){const{props:n,content:o}=r,a={delay:100,...n,...t,toastId:t.toastId||e,updateId:YQ()};a.toastId!==e&&(a.staleId=e);const i=a.render||o;delete a.render,bp(i,a)}},0)},Ce.done=e=>{Ce.update(e,{progress:1})},Ce.onChange=e=>(Do.on(4,e),()=>{Do.off(4,e)}),Ce.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Ce.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},Do.on(2,e=>{eO=e.containerId||e,oc.set(eO,e),Yh.forEach(t=>{Do.emit(0,t.content,t.options)}),Yh=[]}).on(3,e=>{oc.delete(e.containerId||e),oc.size===0&&Do.off(0).off(1).off(5)});const at=J1.create({baseURL:Ut.API_BASE_URL,withCredentials:!0}),b9=J1.create({baseURL:Ut.API_BASE_URL,withCredentials:!0});at.interceptors.request.use(e=>{const{accessToken:t}=_o.getState().auth;return t&&(e.headers.authorization=`Bearer ${t}`),e},e=>Promise.reject(e));at.interceptors.response.use(e=>e,async e=>{const t=e.config;if(e.response&&e.response.status===401&&!t._retry)try{e.response.data.message==="User is blocked"&&(await IR(),Ce.dismiss(),Ce.error("Your account has been blocked. Please contact admin.",nt),_o.dispatch(SR()));const{accessToken:r}=await FHe();return _o.dispatch(d1({accessToken:r})),t.headers.authorization=`Bearer ${r}`,at(t)}catch(r){return Promise.reject(r)}return Promise.reject(e)});const De={LOGIN_USER:"api/auth/login",SIGNUP_USER:"api/auth/signup",LOGIN_GOOGLE:"api/auth/google_auth",LOGOUT_USER:"api/auth/logout",SEND_OTP:"api/auth/send_otp",VERIFY_OTP:"api/auth/verify_otp",RESET_PASSWORD:"api/auth/resetPassword",REFRESH_TOKEN:"api/auth/refresh",USERNAME_AVAILABILITY:"api/auth/checkUsernameAvailability/",UPLOAD_COVER_PHOTO:"api/profile/uploadCoverPhoto",UPLOAD_PROFILE_PHOTO:"api/profile/uploadProfilePhoto",GET_USER_INFO:"api/profile/getUserInfo",GET_OTHER_USER_INFO:"api/profile/getOtherUserInfo",DELETE_COVER_PHOTO:"api/profile/deleteCoverPhoto",DELETE_PROFILE_PHOTO:"api/profile/deleteProfilePhoto",CHANGE_PASSWORD:"api/profile/changePassword",EDIT_PROFILE:"api/profile/editProfile",SEARCH_USERS:"api/profile/searchUsers",ADD_USERNAME:"api/profile/addUsername",CREATE_POST:"api/post/createPost",EDIT_POST:"api/post/editPost",GET_POSTS:"api/post/getPosts",GET_POST:"api/post/getPost",GET_POST_DETAILS:"api/post/getPostDetails",DELETE_POST:"api/post/deletePost",SEARCH_POSTS:"api/post/searchPosts",GET_USER_POSTS:"api/post/getUserPosts",GET_OTHER_USER_POSTS:"api/post/getOtherUserPosts",GET_USER_LIKED_POSTS:"api/post/getUserLikedPosts",GET_USER_SAVED_POSTS:"api/post/getUserSavedPosts",GET_LIKED_USERS:"api/post/getLikedUsers",LIKE_POST:"api/post/likePost",SAVE_POST:"api/post/savePost",REPORT_POST:"api/post/reportPost",ADD_COMMENT:"api/post/addComment",GET_COMMENTS:"api/post/getComments",EDIT_COMMENT:"api/post/editComment",DELETE_COMMENT:"api/post/deleteComment",DELETE_REPLY:"api/post/deleteReply",REPORT_COMMENT:"api/post/reportComment",REPORT_REPLY:"api/post/reportReply",LIKE_COMMENT:"api/post/likeComment",LIKE_REPLY:"api/post/likeReply",ADD_REPLY:"api/post/addReply",GET_REPLIES:"api/post/getReplies",FOLLOW_USER:"api/user/followUser",UNFOLLOW_USER:"api/user/unfollowUser",GET_REST_OF_USERS:"api/user/getRestOfUsers",GET_REST_OF_ALL_USERS:"api/user/getRestOfAllUsers",GET_FOLLOWERS:"api/user/getFollowers",GET_FOLLOWING:"api/user/getFollowing",GET_SUGGESTIONS:"api/user/getSuggestions",ADD_NOTIFICATION:"api/user/addNotification",DELETE_NOTIFICATION:"api/user/deleteNotification",ADMIN_LOGIN:"api/admin/login",REFRESH_ADMIN_TOKEN:"api/admin/refresh",GET_USERS:"api/admin/getUsers",GET_ALL_USERS_COUNT:"api/admin/getAllUsersCount",GET_USERS_COUNT_ON_SEARCH:"api/admin/getUsersCountOnSearch",GET_USERS_ON_SEARCH:"api/admin/getUsersOnSearch",BLOCK_USER:"api/admin/blockUser",UNBLOCK_USER:"api/admin/unblockUser",GET_ALL_POSTS:"api/admin/getAllPosts",GET_ALL_POSTS_COUNT:"api/admin/getAllPostsCount",GET_BLOCKED_USERS_COUNT:"api/admin/getBlockedUsersCount",GET_POSTS_COUNT_ON_SEARCH:"api/admin/getPostsCountOnSearch",GET_REPORTED_COMMENTS_COUNT_ON_SEARCH:"api/admin/getReportedCommentsCountOnSearch",GET_REPORTED_COMMENTS_ON_SEARCH:"api/admin/getReportedCommentsOnSearch",GET_REPORTED_REPLIES_COUNT_ON_SEARCH:"api/admin/getReportedRepliesCountOnSearch",GET_REPORTED_REPLIES_ON_SEARCH:"api/admin/getReportedRepliesOnSearch",GET_POSTS_ON_SEARCH:"api/admin/getPostsOnSearch",GET_ALL_REPORTED_COMMENTS_COUNT:"api/admin/getAllReportedCommentsCount",GET_ALL_REPORTED_REPLIES_COUNT:"api/admin/getAllReportedRepliesCount",BLOCK_POST:"api/admin/blockPost",UNBLOCK_POST:"api/admin/unblockPost",GET_REPORT_INFO:"api/admin/getReportInfo",GET_ALL_COMMENTS:"api/admin/getAllComments",GET_ALL_REPLIES:"api/admin/getAllReplies",GET_ALL_REPORTED_COMMENTS:"api/admin/getAllReportedComments",GET_ALL_REPORTED_REPLIES:"api/admin/getAllReportedReplies",GET_COMMENT_REPORTED_USERS:"api/admin/getCommentReportedUsers",BLOCK_COMMENT:"api/admin/blockComment",UNBLOCK_COMMENT:"api/admin/unblockComment",GET_REPLY_REPORTED_USERS:"api/admin/getReplyReportedUsers",BLOCK_REPLY:"api/admin/blockReply",UNBLOCK_REPLY:"api/admin/unblockReply",GET_MONTHLY_USER_SIGNUPS:"api/admin/getMonthlyUserSignups",GET_MONTHLY_POSTS:"api/admin/getMonthlyPosts",LOGOUT_ADMIN:"api/admin/logout",FETCH_OTHER_USER_CHAT:"api/chat/createOrAccessChat",FETCH_CHATS:"api/chat/fetchChats",CREATE_GROUP_CHAT:"api/chat/createGroup",UPDATE_GROUP:"api/chat/updateGroup",REMOVE_FROM_GROUP:"api/chat/removeFromGroup",GROUP_REMOVE:"api/chat/groupRemove",ADD_GROUP_DP:"api/chat/addGroupDp",SEND_MESSAGE:"api/message/sendMessage",SEND_MESSAGE_WITH_IMG:"api/message/sendMessageWithImg",GET_ALL_MESSAGES_FROM_CHAT:"api/message/getAllMessagesFromChat",FETCH_NOTIFICATIONS:"api/message/fetchNotifications"},$He=async e=>(await b9.post(De.LOGIN_USER,e)).data,NHe=async e=>(await b9.post(De.SIGNUP_USER,e)).data,DHe=async e=>(await b9.post(De.LOGIN_GOOGLE,e)).data,FHe=async()=>(await b9.get(De.REFRESH_TOKEN,{withCredentials:!0})).data,IR=async()=>(await at.delete(De.LOGOUT_USER)).data,XQ=async(e,t)=>(await at.post(De.SEND_OTP,{email:e,text:t})).data,ZQ=async(e,t,r)=>(await at.post(De.VERIFY_OTP,{email:e,otp:t,text:r})).data,zHe=async({email:e,password:t})=>(await at.post(De.RESET_PASSWORD,{email:e,password:t})).data;function y9(e){return bt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9z"}}]})(e)}function Kyt(e){return bt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zM338 304c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm513.9 437.1a8.11 8.11 0 0 1-5.2 1.9H177.2c-4.4 0-8-3.6-8-8 0-1.9.7-3.7 1.9-5.2l170.3-202c2.8-3.4 7.9-3.8 11.3-1 .3.3.7.6 1 1l99.4 118 158.1-187.5c2.8-3.4 7.9-3.8 11.3-1 .3.3.7.6 1 1l229.6 271.6c2.6 3.3 2.2 8.4-1.2 11.2z"}}]})(e)}function e5(e){return bt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 0 0-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attr:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]})(e)}function BHe(e){return bt({tag:"svg",attr:{t:"1569682881658",viewBox:"0 0 1024 1024",version:"1.1"},child:[{tag:"defs",attr:{},child:[]},{tag:"path",attr:{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zM293 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}},{tag:"path",attr:{d:"M894 345c-48.1-66-115.3-110.1-189-130v0.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l0.8 132.6c0 3.2 0.5 6.4 1.5 9.4 5.3 16.9 23.3 26.2 40.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-0.5 0.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102z m505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-0.2-0.1C613.7 788.2 680.7 742.2 729 676c76.4-105.3 88.8-237.6 44.4-350.4l0.6 0.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}},{tag:"path",attr:{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}}]})(e)}function w9(e){return bt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"}}]})(e)}function Yyt(e){return bt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]})(e)}function VHe(e){return bt({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6 11.5c0-2.363 1.498-4.383 3.594-5.159 0.254-0.571 0.406-1.206 0.406-1.841 0-2.485 0-4.5-3-4.5s-3 2.015-3 4.5c0 1.548 0.898 3.095 2 3.716v0.825c-3.392 0.277-6 1.944-6 3.959h6.208c-0.135-0.477-0.208-0.98-0.208-1.5z"}},{tag:"path",attr:{d:"M11.5 7c-2.485 0-4.5 2.015-4.5 4.5s2.015 4.5 4.5 4.5c2.485 0 4.5-2.015 4.5-4.5s-2.015-4.5-4.5-4.5zM14 12h-5v-1h5v1z"}}]})(e)}function HHe(e){return bt({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M15 9.5l-4.5 4.5-1.5-1.5-1 1 2.5 2.5 5.5-5.5z"}},{tag:"path",attr:{d:"M7 12h5v-1.799c-1.050-0.613-2.442-1.033-4-1.16v-0.825c1.102-0.621 2-2.168 2-3.716 0-2.485 0-4.5-3-4.5s-3 2.015-3 4.5c0 1.548 0.898 3.095 2 3.716v0.825c-3.392 0.277-6 1.944-6 3.959h7v-1z"}}]})(e)}function UHe(e){return bt({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M15.504 13.616l-3.79-3.223c-0.392-0.353-0.811-0.514-1.149-0.499 0.895-1.048 1.435-2.407 1.435-3.893 0-3.314-2.686-6-6-6s-6 2.686-6 6 2.686 6 6 6c1.486 0 2.845-0.54 3.893-1.435-0.016 0.338 0.146 0.757 0.499 1.149l3.223 3.79c0.552 0.613 1.453 0.665 2.003 0.115s0.498-1.452-0.115-2.003zM6 10c-2.209 0-4-1.791-4-4s1.791-4 4-4 4 1.791 4 4-1.791 4-4 4z"}}]})(e)}function Xyt(e){return bt({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M10.404 5.11l-1.015-1.014-5.075 5.074c-0.841 0.841-0.841 2.204 0 3.044s2.204 0.841 3.045 0l6.090-6.089c1.402-1.401 1.402-3.673 0-5.074s-3.674-1.402-5.075 0l-6.394 6.393c-0.005 0.005-0.010 0.009-0.014 0.013-1.955 1.955-1.955 5.123 0 7.077s5.123 1.954 7.078 0c0.004-0.004 0.008-0.009 0.013-0.014l0.001 0.001 4.365-4.364-1.015-1.014-4.365 4.363c-0.005 0.004-0.009 0.009-0.013 0.013-1.392 1.392-3.656 1.392-5.048 0s-1.392-3.655 0-5.047c0.005-0.005 0.009-0.009 0.014-0.013l-0.001-0.001 6.395-6.393c0.839-0.84 2.205-0.84 3.045 0s0.839 2.205 0 3.044l-6.090 6.089c-0.28 0.28-0.735 0.28-1.015 0s-0.28-0.735 0-1.014l5.075-5.075z"}}]})(e)}function QQ(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19.045 7.401c.378-.378.586-.88.586-1.414s-.208-1.036-.586-1.414l-1.586-1.586c-.378-.378-.88-.586-1.414-.586s-1.036.208-1.413.585L4 13.585V18h4.413L19.045 7.401zm-3-3 1.587 1.585-1.59 1.584-1.586-1.585 1.589-1.584zM6 16v-1.585l7.04-7.018 1.586 1.586L7.587 16H6zm-2 4h16v2H4z"}}]})(e)}function WHe(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6z"}},{tag:"path",attr:{d:"M11.412 8.586c.379.38.588.882.588 1.414h2a3.977 3.977 0 0 0-1.174-2.828c-1.514-1.512-4.139-1.512-5.652 0l1.412 1.416c.76-.758 2.07-.756 2.826-.002z"}}]})(e)}function JQ(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5.5 15a3.51 3.51 0 0 0 2.36-.93l6.26 3.58a3.06 3.06 0 0 0-.12.85 3.53 3.53 0 1 0 1.14-2.57l-6.26-3.58a2.74 2.74 0 0 0 .12-.76l6.15-3.52A3.49 3.49 0 1 0 14 5.5a3.35 3.35 0 0 0 .12.85L8.43 9.6A3.5 3.5 0 1 0 5.5 15zm12 2a1.5 1.5 0 1 1-1.5 1.5 1.5 1.5 0 0 1 1.5-1.5zm0-13A1.5 1.5 0 1 1 16 5.5 1.5 1.5 0 0 1 17.5 4zm-12 6A1.5 1.5 0 1 1 4 11.5 1.5 1.5 0 0 1 5.5 10z"}}]})(e)}function qHe(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 2H4c-1.103 0-2 .897-2 2v18l4-4h14c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2zm-7 13h-2v-2h2v2zm0-4h-2V5h2v6z"}}]})(e)}function Zyt(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 2H4c-1.103 0-2 .894-2 1.992v12.016C2 17.106 2.897 18 4 18h3v4l6.351-4H20c1.103 0 2-.894 2-1.992V3.992A1.998 1.998 0 0 0 20 2zm-6 11H7v-2h7v2zm3-4H7V7h10v2z"}}]})(e)}function Qyt(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4zM14 13h-3v3H9v-3H6v-2h3V8h2v3h3v2z"}}]})(e)}function Jyt(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}}]})(e)}function e7t(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"}}]})(e)}function eJ(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"}}]})(e)}function tJ(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z"}}]})(e)}function hM(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM19 14.9L14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1v5.8z"}},{tag:"circle",attr:{cx:"12",cy:"16",r:"1"}},{tag:"path",attr:{d:"M11 7h2v7h-2z"}}]})(e)}function t7t(e){return bt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M388.8 896.4v-27.198c.6-2.2 1.6-4.2 2-6.4 8.8-57.2 56.4-102.4 112.199-106.2 62.4-4.4 115.2 31.199 132.4 89.199 2.2 7.6 3.8 15.6 5.8 23.4v27.2c-.6 1.8-1.6 3.399-1.8 5.399-8.6 52.8-46.6 93-98.6 104.4-4 .8-8 2-12 3h-27.2c-1.8-.6-3.6-1.6-5.4-1.8-52-8.4-91.599-45.4-103.6-96.8-1.2-5-2.6-9.6-3.8-14.2zm252.4-768.797l-.001 27.202c-.6 2.2-1.6 4.2-1.8 6.4-9 57.6-56.8 102.6-113.2 106.2-62.2 4-114.8-32-131.8-90.2-2.2-7.401-3.8-15-5.6-22.401v-27.2c.6-1.8 1.6-3.4 2-5.2 9.6-52 39.8-86 90.2-102.2 6.6-2.2 13.6-3.4 20.4-5.2h27.2c1.8.6 3.6 1.6 5.4 1.8 52.2 8.6 91.6 45.4 103.6 96.8 1.201 4.8 2.401 9.4 3.601 13.999zm-.001 370.801v27.2c-.6 2.2-1.6 4.2-2 6.4-9 57.4-58.6 103.6-114.6 106-63 2.8-116.4-35.2-131.4-93.8-1.6-6.2-3-12.4-4.4-18.6v-27.2c.6-2.2 1.6-4.2 2-6.4 8.8-57.4 58.6-103.601 114.6-106.2 63-3 116.4 35.2 131.4 93.8 1.6 6.4 3 12.6 4.4 18.8z"}}]})(e)}function pM(e){return bt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M899.4 638.2h-27.198c-2.2-.6-4.2-1.6-6.4-2-57.2-8.8-102.4-56.4-106.2-112.199-4.401-62.4 31.199-115.2 89.199-132.4 7.6-2.2 15.6-3.8 23.399-5.8h27.2c1.8.6 3.4 1.6 5.4 1.8 52.8 8.6 93 46.6 104.4 98.6.8 4 2 8 3 12v27.2c-.6 1.8-1.6 3.6-1.8 5.4-8.4 52-45.4 91.599-96.801 103.6-5 1.2-9.6 2.6-14.2 3.8zM130.603 385.8l27.202.001c2.2.6 4.2 1.6 6.4 1.8 57.6 9 102.6 56.8 106.2 113.2 4 62.2-32 114.8-90.2 131.8-7.401 2.2-15 3.8-22.401 5.6h-27.2c-1.8-.6-3.4-1.6-5.2-2-52-9.6-86-39.8-102.2-90.2-2.2-6.6-3.4-13.6-5.2-20.4v-27.2c.6-1.8 1.6-3.6 1.8-5.4 8.6-52.2 45.4-91.6 96.8-103.6 4.8-1.201 9.4-2.401 13.999-3.601zm370.801.001h27.2c2.2.6 4.2 1.6 6.4 2 57.4 9 103.6 58.6 106 114.6 2.8 63-35.2 116.4-93.8 131.4-6.2 1.6-12.4 3-18.6 4.4h-27.2c-2.2-.6-4.2-1.6-6.4-2-57.4-8.8-103.601-58.6-106.2-114.6-3-63 35.2-116.4 93.8-131.4 6.4-1.6 12.6-3 18.8-4.4z"}}]})(e)}function GHe(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM12 11.5C10.6193 11.5 9.5 10.3807 9.5 9C9.5 7.61929 10.6193 6.5 12 6.5C13.3807 6.5 14.5 7.61929 14.5 9C14.5 10.3807 13.3807 11.5 12 11.5ZM7.52746 17C7.77619 14.75 9.68372 13 12 13C14.3163 13 16.2238 14.75 16.4725 17H7.52746Z"}}]})(e)}function mM(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M7 4V2H17V4H22V6H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V6H2V4H7ZM6 6V20H18V6H6ZM9 9H11V17H9V9ZM13 9H15V17H13V9Z"}}]})(e)}function KHe(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13Z"}}]})(e)}function r7t(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M14 14.252V22H4C4 17.5817 7.58172 14 12 14C12.6906 14 13.3608 14.0875 14 14.252ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM19 16.5858L21.1213 14.4645L22.5355 15.8787L20.4142 18L22.5355 20.1213L21.1213 21.5355L19 19.4142L16.8787 21.5355L15.4645 20.1213L17.5858 18L15.4645 15.8787L16.8787 14.4645L19 16.5858Z"}}]})(e)}function YHe(e){return bt({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"}}]})(e)}function XHe(e){return bt({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M11 8h2V6h-2v2Z"}},{tag:"path",attr:{d:"M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4Zm8.5.5a.5.5 0 0 0-1 0v7a.5.5 0 0 0 1 0v-7ZM2 5.5a.5.5 0 0 0 .5.5H6a.5.5 0 0 0 0-1H2.5a.5.5 0 0 0-.5.5ZM2.5 7a.5.5 0 0 0 0 1H6a.5.5 0 0 0 0-1H2.5ZM2 9.5a.5.5 0 0 0 .5.5H6a.5.5 0 0 0 0-1H2.5a.5.5 0 0 0-.5.5Zm8-4v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5Z"}}]})(e)}const gM=({onDelete:e,message:t})=>M.jsxs("div",{className:"flex items-start justify-between gap-5",children:[M.jsx(YHe,{className:"text-4xl"}),M.jsxs("div",{children:[M.jsx("p",{children:t}),M.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[M.jsx(ie.Button,{variant:"outlined",size:"sm",className:"rounded-full text-black border-black",onClick:()=>{Ce.dismiss()},children:"Cancel"}),M.jsx(ie.Button,{className:"rounded-full bg-socioverse-500",size:"sm",onClick:()=>{e()},children:"Ok"})]})]})]}),n7t=async e=>(await at.post(De.CREATE_POST,e,{headers:{"Content-Type":"multipart/form-data"}})).data,o7t=async e=>{const r=(e-1)*3;return(await at.get(`${De.GET_POSTS}?skip=${r}&limit=3`)).data},ZHe=async e=>(await at.delete(`${De.DELETE_POST}/${e}`)).data,QHe=async e=>(await at.get(`${De.GET_POST_DETAILS}/${e}`)).data,JHe=async e=>(await at.post(`${De.ADD_COMMENT}?postId=${e.postId}&comment=${e.comment}`)).data,eUe=async e=>(await at.post(`${De.ADD_REPLY}?commentId=${e.commentId}&reply=${e.reply}`)).data,rJ=async e=>(await at.get(`${De.GET_COMMENTS}/${e}`)).data,tUe=async e=>(await at.get(`${De.GET_REPLIES}/${e}`)).data,rUe=async e=>(await at.post(`${De.LIKE_POST}/${e}`)).data,nUe=async e=>(await at.post(`${De.SAVE_POST}/${e}`)).data,oUe=async(e,t)=>(await at.post(`${De.REPORT_POST}?label=${e}&postId=${t}`)).data,aUe=async(e,t)=>(await at.patch(`${De.EDIT_POST}/${e}`,t,{headers:{"Content-Type":"multipart/form-data"}})).data,iUe=async(e,t)=>(await at.put(`${De.EDIT_COMMENT}/${e}`,{comment:t})).data,sUe=async e=>(await at.delete(`${De.DELETE_COMMENT}/${e}`)).data,lUe=async(e,t)=>(await at.delete(`${De.DELETE_REPLY}?replyId=${e}&commentId=${t}`)).data,cUe=async e=>(await at.post(`${De.REPORT_COMMENT}/${e}`)).data,uUe=async(e,t)=>(await at.post(`${De.REPORT_REPLY}?replyId=${e}&commentId=${t}`)).data,sD=async(e,t)=>{const n=(t-1)*3,o=encodeURIComponent(e);return(await at.get(`${De.SEARCH_POSTS}?searchQuery=${o}&skip=${n}&limit=3`)).data},lD=async(e,t)=>(await at.post(`${De.LIKE_COMMENT}`,{commentId:e,action:t})).data,cD=async(e,t,r)=>(await at.post(`${De.LIKE_REPLY}`,{replyId:e,commentId:t,action:r})).data,a7t=async e=>{const r=(e-1)*3;return(await at.get(`${De.GET_USER_POSTS}?skip=${r}&limit=3`)).data},i7t=async(e,t)=>{const n=(t-1)*3;return(await at.get(`${De.GET_OTHER_USER_POSTS}/${e}?skip=${n}&limit=3`)).data},s7t=async e=>{const r=(e-1)*3;return(await at.get(`${De.GET_USER_LIKED_POSTS}?skip=${r}&limit=3`)).data},l7t=async e=>{const r=(e-1)*3;return(await at.get(`${De.GET_USER_SAVED_POSTS}?skip=${r}&limit=3`)).data},nJ=async e=>(await at.get(`${De.GET_LIKED_USERS}/${e}`)).data;function dUe(e,t){t===void 0&&(t={});var r=t.insertAt;if(!(!e||typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r==="top"&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var fUe=`.react-input-emoji--container { + `);var S=r.default.useRef(null),R=(0,c.useTheme)().navbar,T=R.styles,P=T.base.mobileNav;d=d??{},w=w??"";var j=(0,s.twMerge)((0,i.default)((0,l.default)(P)),w),L={unmount:{height:0,opacity:0,transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}},mount:{opacity:1,height:"".concat((k=S.current)===null||k===void 0?void 0:k.scrollHeight,"px"),transition:{duration:.3,times:"[0.4, 0, 0.2, 1]"}}},D=(0,a.default)(L,d),B=n.AnimatePresence,V=(0,o.useMergeRefs)([f,S]);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(B,null,r.default.createElement(n.m.div,p({},E,{ref:V,className:j,initial:"unmount",exit:"unmount",animate:v?"mount":"unmount",variants:D}),_)))});y.displayName="MaterialTailwind.MobileNav",y.propTypes={open:u.propTypesOpen,animate:u.propTypesAnimate,className:u.propTypesClassName,children:u.propTypesChildren};var b=y})(wZ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,v){for(var d in v)Object.defineProperty(f,d,{enumerable:!0,get:v[d]})}t(e,{Navbar:function(){return b},MobileNav:function(){return c.MobileNav},default:function(){return m}});var r=g(O),n=g(et),o=g(ct),a=Je,i=g(wr),s=g(Ze),l=Ye,c=wZ,u=V8;function p(f,v,d){return v in f?Object.defineProperty(f,v,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[v]=d,f}function h(){return h=Object.assign||function(f){for(var v=1;v=0)&&Object.prototype.propertyIsEnumerable.call(f,w)&&(d[w]=f[w])}return d}function y(f,v){if(f==null)return{};var d={},w=Object.keys(f),_,E;for(E=0;E=0)&&(d[_]=f[_]);return d}var b=r.default.forwardRef(function(f,v){var d=f.variant,w=f.color,_=f.shadow,E=f.blurred,k=f.fullWidth,S=f.className,R=f.children,T=x(f,["variant","color","shadow","blurred","fullWidth","className","children"]),P=(0,l.useTheme)().navbar,j=P.defaultProps,L=P.valid,D=P.styles,B=D.base,V=D.variants;d=d??j.variant,w=w??j.color,_=_??j.shadow,E=E??j.blurred,k=k??j.fullWidth,S=S??j.className;var q,z=(0,o.default)((0,s.default)(B.navbar.initial),(q={},p(q,(0,s.default)(B.navbar.shadow),_),p(q,(0,s.default)(B.navbar.blurred),E&&w==="white"),p(q,(0,s.default)(B.navbar.fullWidth),k),q)),F=(0,o.default)((0,s.default)(V[(0,i.default)(L.variants,d,"filled")][(0,i.default)(L.colors,w,"white")])),N=(0,a.twMerge)((0,o.default)(z,F),S);return r.default.createElement("nav",h({},T,{ref:v,className:N}),R)});b.propTypes={variant:n.default.oneOf(u.propTypesVariant),color:n.default.oneOf(u.propTypesColor),shadow:u.propTypesShadow,blurred:u.propTypesBlurred,fullWidth:u.propTypesFullWidth,className:u.propTypesClassName,children:u.propTypesChildren},b.displayName="MaterialTailwind.Navbar";var m=Object.assign(b,{MobileNav:c.MobileNav})})(yZ);var xZ={},c9={},wf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,m){for(var f in m)Object.defineProperty(b,f,{enumerable:!0,get:m[f]})}t(e,{propTypesOpen:function(){return a},propTypesHandler:function(){return i},propTypesPlacement:function(){return s},propTypesOffset:function(){return l},propTypesDismiss:function(){return c},propTypesAnimate:function(){return u},propTypesContent:function(){return p},propTypesInteractive:function(){return h},propTypesClassName:function(){return g},propTypesChildren:function(){return x},propTypesContextValue:function(){return y}});var r=o(et),n=ur;function o(b){return b&&b.__esModule?b:{default:b}}var a=r.default.bool,i=r.default.func,s=n.propTypesPlacements,l=n.propTypesOffsetType,c=n.propTypesDismissType,u=n.propTypesAnimation,p=r.default.node,h=r.default.bool,g=r.default.string,x=r.default.node.isRequired,y=r.default.shape({open:r.default.bool.isRequired,strategy:r.default.oneOf(["fixed","absolute"]).isRequired,x:r.default.number,y:r.default.number,context:r.default.instanceOf(Object).isRequired,reference:r.default.func.isRequired,floating:r.default.func.isRequired,getReferenceProps:r.default.func.isRequired,getFloatingProps:r.default.func.isRequired,appliedAnimation:u.isRequired,labelId:r.default.string.isRequired,descriptionId:r.default.string.isRequired}).isRequired})(wf);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(l,c){for(var u in c)Object.defineProperty(l,u,{enumerable:!0,get:c[u]})}t(e,{PopoverContext:function(){return a},usePopover:function(){return i},PopoverContextProvider:function(){return s}});var r=o(O),n=wf;function o(l){return l&&l.__esModule?l:{default:l}}var a=r.default.createContext(null);a.displayName="MaterialTailwind.PopoverContext";function i(){var l=r.default.useContext(a);if(!l)throw new Error("usePopover() must be used within a Popover. It happens when you use PopoverHandler or PopoverContent components outside the Popover component.");return l}var s=function(l){var c=l.value,u=l.children;return r.default.createElement(a.Provider,{value:c},u)};s.propTypes={value:n.propTypesContextValue,children:n.propTypesChildren},s.displayName="MaterialTailwind.PopoverContextProvider"})(c9);var _Z={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(y,b){for(var m in b)Object.defineProperty(y,m,{enumerable:!0,get:b[m]})}t(e,{PopoverHandler:function(){return g},default:function(){return x}});var r=s(O),n=Gr,o=c9,a=wf;function i(y,b,m){return b in y?Object.defineProperty(y,b,{value:m,enumerable:!0,configurable:!0,writable:!0}):y[b]=m,y}function s(y){return y&&y.__esModule?y:{default:y}}function l(y){for(var b=1;b=0)&&Object.prototype.propertyIsEnumerable.call(y,f)&&(m[f]=y[f])}return m}function h(y,b){if(y==null)return{};var m={},f=Object.keys(y),v,d;for(d=0;d=0)&&(m[v]=y[v]);return m}var g=r.default.forwardRef(function(y,b){var m=y.children,f=p(y,["children"]),v=(0,o.usePopover)(),d=v.getReferenceProps,w=v.reference,_=(0,n.useMergeRefs)([b,w]);return r.default.cloneElement(m,l({},d(u(l({},f),{ref:_}))))});g.propTypes={children:a.propTypesChildren},g.displayName="MaterialTailwind.PopoverHandler";var x=g})(_Z);var EZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,_){for(var E in _)Object.defineProperty(w,E,{enumerable:!0,get:_[E]})}t(e,{PopoverContent:function(){return v},default:function(){return d}});var r=g(O),n=Gr,o=rn,a=g(ct),i=Je,s=g(Ze),l=Ye,c=c9,u=wf;function p(w,_,E){return _ in w?Object.defineProperty(w,_,{value:E,enumerable:!0,configurable:!0,writable:!0}):w[_]=E,w}function h(){return h=Object.assign||function(w){for(var _=1;_=0)&&Object.prototype.propertyIsEnumerable.call(w,k)&&(E[k]=w[k])}return E}function f(w,_){if(w==null)return{};var E={},k=Object.keys(w),S,R;for(R=0;R=0)&&(E[S]=w[S]);return E}var v=r.default.forwardRef(function(w,_){var E=w.children,k=w.className,S=m(w,["children","className"]),R=(0,l.useTheme)().popover,T=R.defaultProps,P=R.styles.base,j=(0,c.usePopover)(),L=j.open,D=j.strategy,B=j.x,V=j.y,q=j.context,z=j.floating,F=j.getFloatingProps,N=j.appliedAnimation,W=j.labelId,G=j.descriptionId;k=k??T.className;var Q=(0,i.twMerge)((0,a.default)((0,s.default)(P)),k),Z=(0,n.useMergeRefs)([_,z]),U=o.AnimatePresence;return r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(n.FloatingPortal,null,r.default.createElement(U,null,L&&r.default.createElement(n.FloatingFocusManager,{context:q},r.default.createElement(o.m.div,h({},F(b(x({},S),{ref:Z,className:Q,style:{position:D,top:V??"",left:B??""},"aria-labelledby":W,"aria-describedby":G})),{initial:"unmount",exit:"unmount",animate:L?"mount":"unmount",variants:N}),E)))))});v.propTypes={className:u.propTypesClassName,children:u.propTypesChildren},v.displayName="MaterialTailwind.PopoverContent";var d=v})(EZ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,w){for(var _ in w)Object.defineProperty(d,_,{enumerable:!0,get:w[_]})}t(e,{Popover:function(){return f},PopoverHandler:function(){return c.PopoverHandler},PopoverContent:function(){return u.PopoverContent},usePopover:function(){return s.usePopover},default:function(){return v}});var r=g(O),n=g(et),o=Gr,a=g(dn),i=Ye,s=c9,l=wf,c=_Z,u=EZ;function p(d,w){(w==null||w>d.length)&&(w=d.length);for(var _=0,E=new Array(w);_=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.variant,d=m.color,w=m.size,_=m.value,E=m.label,k=m.className,S=m.barProps,R=g(m,["variant","color","size","value","label","className","barProps"]),T=(0,l.useTheme)().progress,P=T.defaultProps,j=T.valid,L=T.styles,D=L.base,B=L.variants,V=L.sizes;v=v??P.variant,d=d??P.color,w=w??P.size,E=E??P.label,k=k??P.className,S=S??P.barProps;var q=(0,s.default)(B[(0,i.default)(j.variants,v,"filled")][(0,i.default)(j.colors,d,"blue")]),z=(0,s.default)(V[(0,i.default)(j.sizes,w,"md")].container.initial),F=(0,o.default)((0,s.default)(D.container.initial),z),N=(0,s.default)(V[(0,i.default)(j.sizes,w,"md")].container.withLabel),W=(0,o.default)((0,s.default)(D.container.withLabel),N),G=(0,s.default)(V[(0,i.default)(j.sizes,w,"md")].bar),Q=(0,o.default)((0,s.default)(D.bar),G),Z=(0,a.twMerge)((0,o.default)(F,u({},W,E)),k),U=(0,a.twMerge)((0,o.default)(Q,q),S==null?void 0:S.className);return r.default.createElement("div",p({},R,{ref:f,className:Z}),r.default.createElement("div",p({},S,{className:U,style:{width:"".concat(_,"%")}}),E&&"".concat(_,"% ").concat(typeof E=="string"?E:"")))});y.propTypes={variant:n.default.oneOf(c.propTypesVariant),color:n.default.oneOf(c.propTypesColor),size:n.default.oneOf(c.propTypesSize),value:c.propTypesValue,label:c.propTypesLabel,barProps:c.propTypesBarProps,className:c.propTypesClassName},y.displayName="MaterialTailwind.Progress";var b=y})(CZ);var OZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,v){for(var d in v)Object.defineProperty(f,d,{enumerable:!0,get:v[d]})}t(e,{Radio:function(){return b},default:function(){return m}});var r=g(O),n=g(et),o=g(gf),a=g(ct),i=Je,s=g(wr),l=g(Ze),c=Ye,u=Zc;function p(f,v,d){return v in f?Object.defineProperty(f,v,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[v]=d,f}function h(){return h=Object.assign||function(f){for(var v=1;v=0)&&Object.prototype.propertyIsEnumerable.call(f,w)&&(d[w]=f[w])}return d}function y(f,v){if(f==null)return{};var d={},w=Object.keys(f),_,E;for(E=0;E=0)&&(d[_]=f[_]);return d}var b=r.default.forwardRef(function(f,v){var d=f.color,w=f.label,_=f.icon,E=f.ripple,k=f.className,S=f.disabled,R=f.containerProps,T=f.labelProps,P=f.iconProps,j=f.inputRef,L=x(f,["color","label","icon","ripple","className","disabled","containerProps","labelProps","iconProps","inputRef"]),D=(0,c.useTheme)().radio,B=D.defaultProps,V=D.valid,q=D.styles,z=q.base,F=q.colors,N=r.default.useId();d=d??B.color,w=w??B.label,_=_??B.icon,E=E??B.ripple,k=k??B.className,S=S??B.disabled,R=R??B.containerProps,T=T??B.labelProps,P=P??B.iconProps;var W=E!==void 0&&new o.default,G=(0,a.default)((0,l.default)(z.root),p({},(0,l.default)(z.disabled),S)),Q=(0,i.twMerge)((0,a.default)((0,l.default)(z.container)),R==null?void 0:R.className),Z=(0,i.twMerge)((0,a.default)((0,l.default)(z.input),(0,l.default)(F[(0,s.default)(V.colors,d,"blue")])),k),U=(0,i.twMerge)((0,a.default)((0,l.default)(z.label)),T==null?void 0:T.className),J=(0,a.default)((0,a.default)((0,l.default)(z.icon)),F[(0,s.default)(V.colors,d,"blue")].color,P==null?void 0:P.className);return r.default.createElement("div",{ref:v,className:G},r.default.createElement("label",h({},R,{className:Q,htmlFor:L.id||N,onMouseDown:function(ae){var ee=R==null?void 0:R.onMouseDown;return E&&W.create(ae,"dark"),typeof ee=="function"&&ee(ae)}}),r.default.createElement("input",h({},L,{ref:j,type:"radio",disabled:S,className:Z,id:L.id||N})),r.default.createElement("span",{className:J},_||r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 16 16",fill:"currentColor"},r.default.createElement("circle",{"data-name":"ellipse",cx:"8",cy:"8",r:"8"})))),w&&r.default.createElement("label",h({},T,{className:U,htmlFor:L.id||N}),w))});b.propTypes={color:n.default.oneOf(u.propTypesColor),label:u.propTypesLabel,icon:u.propTypesIcon,ripple:u.propTypesRipple,className:u.propTypesClassName,disabled:u.propTypesDisabled,containerProps:u.propTypesObject,labelProps:u.propTypesObject},b.displayName="MaterialTailwind.Radio";var m=b})(OZ);var kZ={},ZP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,p){for(var h in p)Object.defineProperty(u,h,{enumerable:!0,get:p[h]})}t(e,{SelectContext:function(){return i},useSelect:function(){return s},usePrevious:function(){return l},SelectContextProvider:function(){return c}});var r=a(O),n=rn,o=D1;function a(u){return u&&u.__esModule?u:{default:u}}var i=r.default.createContext(null);i.displayName="MaterialTailwind.SelectContext";function s(){var u=r.default.useContext(i);if(u===null)throw new Error("useSelect() must be used within a Select. It happens when you use SelectOption component outside the Select component.");return u}function l(u){var p=r.default.useRef();return(0,n.useIsomorphicLayoutEffect)(function(){p.current=u},[u]),p.current}var c=function(u){var p=u.value,h=u.children;return r.default.createElement(i.Provider,{value:p},h)};c.propTypes={value:o.propTypesContextValue,children:o.propTypesChildren},c.displayName="MaterialTailwind.SelectContextProvider"})(ZP);var RZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,m){for(var f in m)Object.defineProperty(b,f,{enumerable:!0,get:m[f]})}t(e,{SelectOption:function(){return x},default:function(){return y}});var r=p(O),n=p(ct),o=Je,a=p(Ze),i=Ye,s=ZP,l=D1;function c(b,m,f){return m in b?Object.defineProperty(b,m,{value:f,enumerable:!0,configurable:!0,writable:!0}):b[m]=f,b}function u(){return u=Object.assign||function(b){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(b,v)&&(f[v]=b[v])}return f}function g(b,m){if(b==null)return{};var f={},v=Object.keys(b),d,w;for(w=0;w=0)&&(f[d]=b[d]);return f}var x=function(b){var m=function(){q(_),N(d),F(!1),G(null)},f=function(we){(we.key==="Enter"||we.key===" "&&!Z.current.typing)&&(we.preventDefault(),m())},v=b.value,d=v===void 0?"":v,w=b.index,_=w===void 0?0:w,E=b.disabled,k=E===void 0?!1:E,S=b.className,R=S===void 0?"":S,T=b.children,P=h(b,["value","index","disabled","className","children"]),j=(0,i.useTheme)().select,L=j.styles,D=L.base,B=(0,s.useSelect)(),V=B.selectedIndex,q=B.setSelectedIndex,z=B.listRef,F=B.setOpen,N=B.onChange,W=B.activeIndex,G=B.setActiveIndex,Q=B.getItemProps,Z=B.dataRef,U=(0,a.default)(D.option.initial),J=(0,a.default)(D.option.active),ae=(0,a.default)(D.option.disabled),ee,se=(0,o.twMerge)((0,n.default)(U,(ee={},c(ee,J,V===_),c(ee,ae,k),ee)),R??"");return r.default.createElement("li",u({},P,{role:"option",ref:function(ue){return z.current[_]=ue},className:se,disabled:k,tabIndex:W===_?0:1,"aria-selected":W===_&&V===_,"data-selected":V===_},Q({onClick:function(ue){var we=P==null?void 0:P.onClick;typeof we=="function"&&(we(ue),m()),m()},onKeyDown:function(ue){var we=P==null?void 0:P.onKeyDown;typeof we=="function"&&(we(ue),f(ue)),f(ue)}})),T)};x.propTypes={value:l.propTypesValue,index:l.propTypesIndex,disabled:l.propTypesDisabled,className:l.propTypesClassName,children:l.propTypesChildren},x.displayName="MaterialTailwind.SelectOption";var y=x})(RZ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(z,F){for(var N in F)Object.defineProperty(z,N,{enumerable:!0,get:F[N]})}t(e,{Select:function(){return V},Option:function(){return x.SelectOption},useSelect:function(){return h.useSelect},usePrevious:function(){return h.usePrevious},default:function(){return q}});var r=d(O),n=d(et),o=Gr,a=rn,i=d(ct),s=Je,l=d(dn),c=d(wr),u=d(Ze),p=Ye,h=ZP,g=D1,x=RZ;function y(z,F){(F==null||F>z.length)&&(F=z.length);for(var N=0,W=new Array(F);N=0)&&Object.prototype.propertyIsEnumerable.call(z,W)&&(N[W]=z[W])}return N}function j(z,F){if(z==null)return{};var N={},W=Object.keys(z),G,Q;for(Q=0;Q=0)&&(N[G]=z[G]);return N}function L(z,F){return b(z)||_(z,F)||B(z,F)||E()}function D(z){return m(z)||w(z)||B(z)||k()}function B(z,F){if(z){if(typeof z=="string")return y(z,F);var N=Object.prototype.toString.call(z).slice(8,-1);if(N==="Object"&&z.constructor&&(N=z.constructor.name),N==="Map"||N==="Set")return Array.from(N);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return y(z,F)}}var V=r.default.forwardRef(function(z,F){var N=z.variant,W=z.color,G=z.size,Q=z.label,Z=z.error,U=z.success,J=z.arrow,ae=z.value,ee=z.onChange,se=z.selected,ue=z.offset,we=z.dismiss,Oe=z.animate,Te=z.lockScroll,Se=z.labelProps,Pe=z.menuProps,Ie=z.className,me=z.disabled,be=z.name,ke=z.children,je=z.containerProps,le=P(z,["variant","color","size","label","error","success","arrow","value","onChange","selected","offset","dismiss","animate","lockScroll","labelProps","menuProps","className","disabled","name","children","containerProps"]),xe,_e=(0,p.useTheme)().select,Ee=_e.defaultProps,Be=_e.valid,tt=_e.styles,qe=tt.base,jr=tt.variants,St=L(r.default.useState("close"),2),Mt=St[0],Nn=St[1];N=N??Ee.variant,W=W??Ee.color,G=G??Ee.size,Q=Q??Ee.label,Z=Z??Ee.error,U=U??Ee.success,J=J??Ee.arrow,ae=ae??Ee.value,ee=ee??Ee.onChange,se=se??Ee.selected,ue=ue??Ee.offset,we=we??Ee.dismiss,Oe=Oe??Ee.animate,Se=Se??Ee.labelProps,Pe=Pe??Ee.menuProps;var Dn;je=(Dn=(0,l.default)(je,(Ee==null?void 0:Ee.containerProps)||{}))!==null&&Dn!==void 0?Dn:Ee.containerProps,Ie=Ie??Ee.className;var ge=r.default.useRef([]),ve,Ae=r.default.useRef(D((ve=r.default.Children.map(ke,function(fr){var Ir=fr.props;return Ir==null?void 0:Ir.value}))!==null&&ve!==void 0?ve:[])),He=L(r.default.useState(!1),2),rt=He[0],st=He[1],ut=L(r.default.useState(null),2),Xe=ut[0],Ke=ut[1],At=L(r.default.useState(0),2),$t=At[0],kt=At[1],er=L(r.default.useState(!1),2),xr=er[0],fn=er[1],oo=(0,h.usePrevious)(Xe),nn=(0,o.useFloating)({placement:"bottom-start",open:rt,onOpenChange:st,whileElementsMounted:o.autoUpdate,middleware:[(0,o.offset)(5),(0,o.flip)({padding:10}),(0,o.size)({apply:function(Ir){var _r=Ir.rects,Pa=Ir.elements,zl,ls;Object.assign(Pa==null||(zl=Pa.floating)===null||zl===void 0?void 0:zl.style,{width:"".concat(_r==null||(ls=_r.reference)===null||ls===void 0?void 0:ls.width,"px"),zIndex:99})},padding:20})]}),Ta=nn.x,hn=nn.y,Fn=nn.strategy,ta=nn.refs,zn=nn.context;r.default.useEffect(function(){kt(Math.max(0,Ae.current.indexOf(ae)+1))},[ae]);var jl=ta.floating,fi=(0,o.useInteractions)([(0,o.useClick)(zn),(0,o.useRole)(zn,{role:"listbox"}),(0,o.useDismiss)(zn,S({},we)),(0,o.useListNavigation)(zn,{listRef:ge,activeIndex:Xe,selectedIndex:$t,onNavigate:Ke,loop:!0}),(0,o.useTypeahead)(zn,{listRef:Ae,activeIndex:Xe,selectedIndex:$t,onMatch:rt?Ke:kt})]),Nt=fi.getReferenceProps,on=fi.getFloatingProps,Bn=fi.getItemProps;(0,a.useIsomorphicLayoutEffect)(function(){var fr=jl.current;if(rt&&xr&&fr){var Ir=Xe!=null?ge.current[Xe]:$t!=null?ge.current[$t]:null;if(Ir&&oo!=null){var _r,Pa,zl=(Pa=(_r=ge.current[oo])===null||_r===void 0?void 0:_r.offsetHeight)!==null&&Pa!==void 0?Pa:0,ls=fr.offsetHeight,Uf=Ir.offsetTop,C5=Uf+zl;Ufls+fr.scrollTop&&(fr.scrollTop+=C5-ls-fr.scrollTop+5)}}},[rt,xr,oo,Xe]);var Il=r.default.useMemo(function(){return{selectedIndex:$t,setSelectedIndex:kt,listRef:ge,setOpen:st,onChange:ee||function(){},activeIndex:Xe,setActiveIndex:Ke,getItemProps:Bn,dataRef:zn.dataRef}},[$t,ee,Xe,Bn,zn.dataRef]);r.default.useEffect(function(){Nn(rt?"open":!rt&&$t||!rt&&ae?"withValue":"close")},[rt,ae,$t,se]);var Dt=jr[(0,c.default)(Be.variants,N,"outlined")],So=Dt.sizes[(0,c.default)(Be.sizes,G,"md")],Ll=Dt.error.select,$l=Dt.success.select,_5=Dt.colors.select[(0,c.default)(Be.colors,W,"blue")],$f=Dt.error.label,Nf=Dt.success.label,Df=Dt.colors.label[(0,c.default)(Be.colors,W,"blue")],Ff=Dt.states[Mt],zf=(0,i.default)((0,u.default)(qe.container),(0,u.default)(So.container),je==null?void 0:je.className),Nl=(0,s.twMerge)((0,i.default)((0,u.default)(qe.select),(0,u.default)(Dt.base.select),(0,u.default)(Ff.select),(0,u.default)(So.select),f({},(0,u.default)(_5[Mt]),!Z&&!U),f({},(0,u.default)(Ll.initial),Z),f({},(0,u.default)(Ll.states[Mt]),Z),f({},(0,u.default)($l.initial),U),f({},(0,u.default)($l.states[Mt]),U)),Ie),Bf,E5=(0,s.twMerge)((0,i.default)((0,u.default)(qe.label),(0,u.default)(Dt.base.label),(0,u.default)(Ff.label),(0,u.default)(So.label.initial),(0,u.default)(So.label.states[Mt]),f({},(0,u.default)(Df[Mt]),!Z&&!U),f({},(0,u.default)($f.initial),Z),f({},(0,u.default)($f.states[Mt]),Z),f({},(0,u.default)(Nf.initial),U),f({},(0,u.default)(Nf.states[Mt]),U)),(Bf=Se.className)!==null&&Bf!==void 0?Bf:""),Dl=(0,i.default)((0,u.default)(qe.arrow.initial),f({},(0,u.default)(qe.arrow.active),rt)),fu,hu=(0,s.twMerge)((0,i.default)((0,u.default)(qe.menu)),(fu=Pe.className)!==null&&fu!==void 0?fu:""),Vf=(0,i.default)("absolute top-2/4 -translate-y-2/4",N==="outlined"?"left-3 pt-0.5":"left-0 pt-3"),hE={unmount:{opacity:0,transformOrigin:"top",transform:"scale(0.95)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transformOrigin:"top",transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},pE=(0,l.default)(hE,Oe),Hf=a.AnimatePresence;r.default.useEffect(function(){ae&&!ee&&console.error("Warning: You provided a `value` prop to a select component without an `onChange` handler. This will render a read-only select. If the field should be mutable use `onChange` handler with `value` together.")},[ae,ee]);var Fl=r.default.createElement(o.FloatingFocusManager,{context:zn,modal:!1},r.default.createElement(a.m.ul,v({},on(T(S({},Pe),{ref:ta.setFloating,role:"listbox",className:hu,style:{position:Fn,top:hn??0,left:Ta??0,overflow:"auto"},onPointerEnter:function(Ir){var _r=Pe==null?void 0:Pe.onPointerEnter;typeof _r=="function"&&(_r(Ir),fn(!1)),fn(!1)},onPointerMove:function(Ir){var _r=Pe==null?void 0:Pe.onPointerMove;typeof _r=="function"&&(_r(Ir),fn(!1)),fn(!1)},onKeyDown:function(Ir){var _r=Pe==null?void 0:Pe.onKeyDown;typeof _r=="function"&&(_r(Ir),fn(!0)),fn(!0)}})),{initial:"unmount",exit:"unmount",animate:rt?"mount":"unmount",variants:pE}),r.default.Children.map(ke,function(fr,Ir){var _r;return r.default.isValidElement(fr)&&r.default.cloneElement(fr,T(S({},fr.props),{index:((_r=fr.props)===null||_r===void 0?void 0:_r.index)||Ir+1,id:"material-tailwind-select-".concat(Ir)}))})));return r.default.createElement(h.SelectContextProvider,{value:Il},r.default.createElement("div",v({},je,{ref:F,className:zf}),r.default.createElement("button",v({type:"button"},Nt(T(S({},le),{ref:ta.setReference,className:Nl,disabled:me,name:be}))),typeof se=="function"?r.default.createElement("span",{className:Vf},se(ke[$t-1],$t-1)):ae&&!ee?r.default.createElement("span",{className:Vf},ae):r.default.createElement("span",v({},(xe=ke[$t-1])===null||xe===void 0?void 0:xe.props,{className:Vf})),r.default.createElement("div",{className:Dl},J??r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.default.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})))),r.default.createElement("label",v({},Se,{className:E5}),Q),r.default.createElement(a.LazyMotion,{features:a.domAnimation},r.default.createElement(Hf,null,rt&&r.default.createElement(r.default.Fragment,null,Te?r.default.createElement(o.FloatingOverlay,{lockScroll:!0},Fl):Fl)))))});V.propTypes={variant:n.default.oneOf(g.propTypesVariant),color:n.default.oneOf(g.propTypesColor),size:n.default.oneOf(g.propTypesSize),label:g.propTypesLabel,error:g.propTypesError,success:g.propTypesSuccess,arrow:g.propTypesArrow,value:g.propTypesValue,onChange:g.propTypesOnChange,selected:g.propTypesSelected,offset:g.propTypesOffset,dismiss:g.propTypesDismiss,animate:g.propTypesAnimate,lockScroll:g.propTypesLockScroll,labelProps:g.propTypesLabelProps,menuProps:g.propTypesMenuProps,className:g.propTypesClassName,disabled:g.propTypesDisabled,name:g.propTypesName,children:g.propTypesChildren,containerProps:g.propTypesContainerProps},V.displayName="MaterialTailwind.Select";var q=Object.assign(V,{Option:x.SelectOption})})(kZ);var SZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,v){for(var d in v)Object.defineProperty(f,d,{enumerable:!0,get:v[d]})}t(e,{Switch:function(){return b},default:function(){return m}});var r=g(O),n=g(et),o=g(gf),a=g(ct),i=Je,s=g(wr),l=g(Ze),c=Ye,u=Zc;function p(f,v,d){return v in f?Object.defineProperty(f,v,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[v]=d,f}function h(){return h=Object.assign||function(f){for(var v=1;v=0)&&Object.prototype.propertyIsEnumerable.call(f,w)&&(d[w]=f[w])}return d}function y(f,v){if(f==null)return{};var d={},w=Object.keys(f),_,E;for(E=0;E=0)&&(d[_]=f[_]);return d}var b=r.default.forwardRef(function(f,v){var d=f.color,w=f.label,_=f.ripple,E=f.className,k=f.disabled,S=f.containerProps,R=f.circleProps,T=f.labelProps,P=f.inputRef,j=x(f,["color","label","ripple","className","disabled","containerProps","circleProps","labelProps","inputRef"]),L=(0,c.useTheme)(),D=L.switch,B=D.defaultProps,V=D.valid,q=D.styles,z=q.base,F=q.colors,N=r.default.useId();d=d??B.color,_=_??B.ripple,E=E??B.className,k=k??B.disabled,S=S??B.containerProps,T=T??B.labelProps,R=R??B.circleProps;var W=_!==void 0&&new o.default,G=(0,a.default)((0,l.default)(z.root),p({},(0,l.default)(z.disabled),k)),Q=(0,i.twMerge)((0,a.default)((0,l.default)(z.container)),S==null?void 0:S.className),Z=(0,i.twMerge)((0,a.default)((0,l.default)(z.input),(0,l.default)(F[(0,s.default)(V.colors,d,"blue")])),E),U=(0,i.twMerge)((0,a.default)((0,l.default)(z.circle),F[(0,s.default)(V.colors,d,"blue")].circle,F[(0,s.default)(V.colors,d,"blue")].before),R==null?void 0:R.className),J=(0,a.default)((0,l.default)(z.ripple)),ae=(0,i.twMerge)((0,a.default)((0,l.default)(z.label)),T==null?void 0:T.className);return r.default.createElement("div",{ref:v,className:G},r.default.createElement("div",h({},S,{className:Q}),r.default.createElement("input",h({},j,{ref:P,type:"checkbox",disabled:k,id:j.id||N,className:Z})),r.default.createElement("label",h({},R,{htmlFor:j.id||N,className:U}),_&&r.default.createElement("div",{className:J,onMouseDown:function(ee){var se=S==null?void 0:S.onMouseDown;return _&&W.create(ee,"dark"),typeof se=="function"&&se(ee)}}))),w&&r.default.createElement("label",h({},T,{htmlFor:j.id||N,className:ae}),w))});b.propTypes={color:n.default.oneOf(u.propTypesColor),label:u.propTypesLabel,ripple:u.propTypesRipple,className:u.propTypesClassName,disabled:u.propTypesDisabled,containerProps:u.propTypesObject,labelProps:u.propTypesObject,circleProps:u.propTypesObject},b.displayName="MaterialTailwind.Switch";var m=b})(SZ);var TZ={},xf={},eu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,x){for(var y in x)Object.defineProperty(g,y,{enumerable:!0,get:x[y]})}t(e,{propTypesId:function(){return a},propTypesValue:function(){return i},propTypesAnimate:function(){return s},propTypesDisabled:function(){return l},propTypesClassName:function(){return c},propTypesOrientation:function(){return u},propTypesIndicator:function(){return p},propTypesChildren:function(){return h}});var r=o(et),n=ur;function o(g){return g&&g.__esModule?g:{default:g}}var a=r.default.string,i=r.default.oneOfType([r.default.string,r.default.number]).isRequired,s=n.propTypesAnimation,l=r.default.bool,c=r.default.string,u=r.default.oneOf(["horizontal","vertical"]),p=r.default.instanceOf(Object),h=r.default.node.isRequired})(eu);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,R){for(var T in R)Object.defineProperty(S,T,{enumerable:!0,get:R[T]})}t(e,{TabsContext:function(){return b},useTabs:function(){return m},TabsContextProvider:function(){return f},setId:function(){return v},setActive:function(){return d},setAnimation:function(){return w},setIndicator:function(){return _},setIsInitial:function(){return E},setOrientation:function(){return k}});var r=s(O),n=eu;function o(S,R){(R==null||R>S.length)&&(R=S.length);for(var T=0,P=new Array(R);T=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.value,d=m.className,w=m.activeClassName,_=m.disabled,E=m.children,k=g(m,["value","className","activeClassName","disabled","children"]),S=(0,s.useTheme)(),R=S.tab,T=R.defaultProps,P=R.styles.base,j=(0,l.useTabs)(),L=j.state,D=j.dispatch,B=L.id,V=L.active,q=L.indicatorProps;d=d??T.className,w=w??T.activeClassName,_=_??T.disabled;var z,F=(0,a.twMerge)((0,o.default)((0,i.default)(P.tab.initial),(z={},u(z,(0,i.default)(P.tab.disabled),_),u(z,w,V===v),z)),d),N,W=(0,a.twMerge)((0,o.default)((0,i.default)(P.indicator)),(N=q==null?void 0:q.className)!==null&&N!==void 0?N:"");return r.default.createElement("li",p({},k,{ref:f,role:"tab",className:F,onClick:function(G){var Q=k==null?void 0:k.onClick;typeof Q=="function"&&((0,l.setActive)(D,v),(0,l.setIsInitial)(D,!1),Q(G)),(0,l.setIsInitial)(D,!1),(0,l.setActive)(D,v)},"data-value":v}),r.default.createElement("div",{className:"z-20 text-inherit"},E),V===v&&r.default.createElement(n.motion.div,p({},q,{transition:{duration:.5},className:W,layoutId:B})))});y.propTypes={value:c.propTypesValue,className:c.propTypesClassName,disabled:c.propTypesDisabled,children:c.propTypesChildren},y.displayName="MaterialTailwind.Tab";var b=y})(PZ);var MZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,f){for(var v in f)Object.defineProperty(m,v,{enumerable:!0,get:f[v]})}t(e,{TabsBody:function(){return y},default:function(){return b}});var r=h(O),n=rn,o=h(dn),a=h(ct),i=Je,s=h(Ze),l=Ye,c=xf,u=eu;function p(){return p=Object.assign||function(m){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.animate,d=m.className,w=m.children,_=g(m,["animate","className","children"]),E=(0,l.useTheme)().tabsBody,k=E.defaultProps,S=E.styles.base,R=(0,c.useTabs)().dispatch;d=d??k.className,v=v??k.animate;var T=(0,i.twMerge)((0,a.default)((0,s.default)(S)),d),P=r.default.useMemo(function(){return{initial:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:0}},unmount:{opacity:0,position:"absolute",top:"0",left:"0",zIndex:1,transition:{duration:.5,times:[.4,0,.2,1]}},mount:{opacity:1,position:"relative",zIndex:2,transition:{duration:.5,times:[.4,0,.2,1]}}}},[]),j=r.default.useMemo(function(){return(0,o.default)(P,v)},[v,P]);return(0,n.useIsomorphicLayoutEffect)(function(){(0,c.setAnimation)(R,j)},[j,R]),r.default.createElement("div",p({},_,{ref:f,className:T}),w)});y.propTypes={animate:u.propTypesAnimate,className:u.propTypesClassName,children:u.propTypesChildren},y.displayName="MaterialTailwind.TabsBody";var b=y})(MZ);var AZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,m){for(var f in m)Object.defineProperty(b,f,{enumerable:!0,get:m[f]})}t(e,{TabsHeader:function(){return x},default:function(){return y}});var r=p(O),n=p(ct),o=Je,a=p(Ze),i=Ye,s=xf,l=eu;function c(b,m,f){return m in b?Object.defineProperty(b,m,{value:f,enumerable:!0,configurable:!0,writable:!0}):b[m]=f,b}function u(){return u=Object.assign||function(b){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(b,v)&&(f[v]=b[v])}return f}function g(b,m){if(b==null)return{};var f={},v=Object.keys(b),d,w;for(w=0;w=0)&&(f[d]=b[d]);return f}var x=r.default.forwardRef(function(b,m){var f=b.indicatorProps,v=b.className,d=b.children,w=h(b,["indicatorProps","className","children"]),_=(0,i.useTheme)().tabsHeader,E=_.defaultProps,k=_.styles,S=(0,s.useTabs)(),R=S.state,T=S.dispatch,P=R.orientation;r.default.useEffect(function(){(0,s.setIndicator)(T,f)},[T,f]),v=v??E.className;var j=(0,o.twMerge)((0,n.default)((0,a.default)(k.base),c({},k[P]&&(0,a.default)(k[P]),P)),v);return r.default.createElement("nav",null,r.default.createElement("ul",u({},w,{ref:m,role:"tablist",className:j}),d))});x.propTypes={indicatorProps:l.propTypesIndicator,className:l.propTypesClassName,children:l.propTypesChildren},x.displayName="MaterialTailwind.TabsHeader";var y=x})(AZ);var jZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,m){for(var f in m)Object.defineProperty(b,f,{enumerable:!0,get:m[f]})}t(e,{TabPanel:function(){return x},default:function(){return y}});var r=p(O),n=rn,o=p(ct),a=Je,i=p(Ze),s=Ye,l=xf,c=eu;function u(){return u=Object.assign||function(b){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(b,v)&&(f[v]=b[v])}return f}function g(b,m){if(b==null)return{};var f={},v=Object.keys(b),d,w;for(w=0;w=0)&&(f[d]=b[d]);return f}var x=r.default.forwardRef(function(b,m){var f=b.value,v=b.className,d=b.children,w=h(b,["value","className","children"]),_=(0,s.useTheme)().tabPanel,E=_.defaultProps,k=_.styles.base,S=(0,l.useTabs)().state,R=S.active,T=S.appliedAnimation,P=S.isInitial;v=v??E.className;var j=(0,a.twMerge)((0,o.default)((0,i.default)(k)),v),L=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(L,{exitBeforeEnter:!0},r.default.createElement(n.m.div,u({},w,{ref:m,role:"tabpanel",className:j,initial:"unmount",exit:"unmount",animate:R===f?"mount":P?"initial":"unmount",variants:T,"data-value":f}),d)))});x.propTypes={value:c.propTypesValue,className:c.propTypesClassName,children:c.propTypesChildren},x.displayName="MaterialTailwind.TabPanel";var y=x})(jZ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,w){for(var _ in w)Object.defineProperty(d,_,{enumerable:!0,get:w[_]})}t(e,{Tabs:function(){return f},Tab:function(){return l.Tab},TabsBody:function(){return c.TabsBody},TabsHeader:function(){return u.TabsHeader},TabPanel:function(){return p.TabPanel},useTabs:function(){return s.useTabs},default:function(){return v}});var r=y(O),n=y(ct),o=Je,a=y(Ze),i=Ye,s=xf,l=PZ,c=MZ,u=AZ,p=jZ,h=eu;function g(d,w,_){return w in d?Object.defineProperty(d,w,{value:_,enumerable:!0,configurable:!0,writable:!0}):d[w]=_,d}function x(){return x=Object.assign||function(d){for(var w=1;w=0)&&Object.prototype.propertyIsEnumerable.call(d,E)&&(_[E]=d[E])}return _}function m(d,w){if(d==null)return{};var _={},E=Object.keys(d),k,S;for(S=0;S=0)&&(_[k]=d[k]);return _}var f=r.default.forwardRef(function(d,w){var _=d.value,E=d.className,k=d.orientation,S=d.children,R=b(d,["value","className","orientation","children"]),T=(0,i.useTheme)().tabs,P=T.defaultProps,j=T.styles,L=r.default.useId();E=E??P.className,k=k??P.orientation;var D=(0,o.twMerge)((0,n.default)((0,a.default)(j.base),g({},j[k]&&(0,a.default)(j[k]),k)),E);return r.default.createElement(s.TabsContextProvider,{id:L,value:_,orientation:k},r.default.createElement("div",x({},R,{ref:w,className:D}),S))});f.propTypes={id:h.propTypesId,value:h.propTypesValue,className:h.propTypesClassName,orientation:h.propTypesOrientation,children:h.propTypesChildren},f.displayName="MaterialTailwind.Tabs";var v=Object.assign(f,{Tab:l.Tab,Body:c.TabsBody,Header:u.TabsHeader,Panel:p.TabPanel})})(TZ);var IZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,m){for(var f in m)Object.defineProperty(b,f,{enumerable:!0,get:m[f]})}t(e,{Textarea:function(){return x},default:function(){return y}});var r=p(O),n=p(et),o=p(ct),a=p(wr),i=p(Ze),s=Ye,l=N1;function c(b,m,f){return m in b?Object.defineProperty(b,m,{value:f,enumerable:!0,configurable:!0,writable:!0}):b[m]=f,b}function u(){return u=Object.assign||function(b){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(b,v)&&(f[v]=b[v])}return f}function g(b,m){if(b==null)return{};var f={},v=Object.keys(b),d,w;for(w=0;w=0)&&(f[d]=b[d]);return f}var x=r.default.forwardRef(function(b,m){var f=b.variant,v=b.color,d=b.size,w=b.label,_=b.error,E=b.success,k=b.resize,S=b.labelProps,R=b.containerProps,T=b.shrink,P=b.className,j=h(b,["variant","color","size","label","error","success","resize","labelProps","containerProps","shrink","className"]),L=(0,s.useTheme)().textarea,D=L.defaultProps,B=L.valid,V=L.styles,q=V.base,z=V.variants;f=f??D.variant,d=d??D.size,v=v??D.color,w=w??D.label,S=S??D.labelProps,R=R??D.containerProps,T=T??D.shrink,P=P??D.className;var F=z[(0,a.default)(B.variants,f,"outlined")],N=(0,i.default)(F.error.textarea),W=(0,i.default)(F.success.textarea),G=(0,i.default)(F.shrink.textarea),Q=(0,i.default)(F.colors.textarea[(0,a.default)(B.colors,v,"blue")]),Z=(0,i.default)(F.error.label),U=(0,i.default)(F.success.label),J=(0,i.default)(F.shrink.label),ae=(0,i.default)(F.colors.label[(0,a.default)(B.colors,v,"blue")]),ee=(0,o.default)((0,i.default)(q.container),R==null?void 0:R.className),se=(0,o.default)((0,i.default)(q.textarea),(0,i.default)(F.base.textarea),(0,i.default)(F.sizes[(0,a.default)(B.sizes,d,"md")].textarea),c({},Q,!_&&!E),c({},N,_),c({},W,E),c({},G,T),k?"":"!resize-none",P),ue=(0,o.default)((0,i.default)(q.label),(0,i.default)(F.base.label),(0,i.default)(F.sizes[(0,a.default)(B.sizes,d,"md")].label),c({},ae,!_&&!E),c({},Z,_),c({},U,E),c({},J,T),S==null?void 0:S.className);return r.default.createElement("div",{ref:m,className:ee},r.default.createElement("textarea",u({},j,{className:se,placeholder:(j==null?void 0:j.placeholder)||" "})),r.default.createElement("label",{className:ue},w))});x.propTypes={variant:n.default.oneOf(l.propTypesVariant),size:n.default.oneOf(l.propTypesSize),color:n.default.oneOf(l.propTypesColor),label:l.propTypesLabel,error:l.propTypesError,success:l.propTypesSuccess,resize:l.propTypesResize,labelProps:l.propTypesLabelProps,containerProps:l.propTypesContainerProps,shrink:l.propTypesShrink,className:l.propTypesClassName},x.displayName="MaterialTailwind.Textarea";var y=x})(IZ);var LZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(P,j){for(var L in j)Object.defineProperty(P,L,{enumerable:!0,get:j[L]})}t(e,{Tooltip:function(){return R},default:function(){return T}});var r=b(O),n=b(et),o=Gr,a=rn,i=b(ct),s=Je,l=b(dn),c=b(Ze),u=Ye,p=wf;function h(P,j){(j==null||j>P.length)&&(j=P.length);for(var L=0,D=new Array(j);L=0)&&Object.prototype.propertyIsEnumerable.call(P,D)&&(L[D]=P[D])}return L}function E(P,j){if(P==null)return{};var L={},D=Object.keys(P),B,V;for(V=0;V=0)&&(L[B]=P[B]);return L}function k(P,j){return g(P)||m(P,j)||S(P,j)||f()}function S(P,j){if(P){if(typeof P=="string")return h(P,j);var L=Object.prototype.toString.call(P).slice(8,-1);if(L==="Object"&&P.constructor&&(L=P.constructor.name),L==="Map"||L==="Set")return Array.from(L);if(L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L))return h(P,j)}}var R=r.default.forwardRef(function(P,j){var L=P.open,D=P.handler,B=P.content,V=P.interactive,q=P.placement,z=P.offset,F=P.dismiss,N=P.animate,W=P.className,G=P.children,Q=_(P,["open","handler","content","interactive","placement","offset","dismiss","animate","className","children"]),Z=(0,u.useTheme)().tooltip,U=Z.defaultProps,J=Z.styles.base,ae=k(r.default.useState(!1),2),ee=ae[0],se=ae[1];L=L??ee,D=D??se,V=V??U.interactive,q=q??U.placement,z=z??U.offset,F=F??U.dismiss,N=N??U.animate,W=W??U.className;var ue=(0,s.twMerge)((0,i.default)((0,c.default)(J)),W),we={unmount:{opacity:0},mount:{opacity:1}},Oe=(0,l.default)(we,N),Te=(0,o.useFloating)({open:L,onOpenChange:D,middleware:[(0,o.offset)(z),(0,o.flip)(),(0,o.shift)()],placement:q}),Se=Te.x,Pe=Te.y,Ie=Te.reference,me=Te.floating,be=Te.strategy,ke=Te.refs,je=Te.update,le=Te.context,xe=(0,o.useInteractions)([(0,o.useClick)(le,{enabled:V}),(0,o.useFocus)(le),(0,o.useHover)(le),(0,o.useRole)(le,{role:"tooltip"}),(0,o.useDismiss)(le,F)]),_e=xe.getReferenceProps,Ee=xe.getFloatingProps;r.default.useEffect(function(){if(ke.reference.current&&ke.floating.current&&L)return(0,o.autoUpdate)(ke.reference.current,ke.floating.current,je)},[L,je,ke.reference,ke.floating]);var Be=(0,o.useMergeRefs)([j,me]),tt=(0,o.useMergeRefs)([j,Ie]),qe=a.AnimatePresence;return r.default.createElement(r.default.Fragment,null,typeof G=="string"?r.default.createElement("span",y({},_e({ref:tt})),G):r.default.cloneElement(G,v({},_e(w(v({},G==null?void 0:G.props),{ref:tt})))),r.default.createElement(a.LazyMotion,{features:a.domAnimation},r.default.createElement(o.FloatingPortal,null,r.default.createElement(qe,null,L&&r.default.createElement(a.m.div,y({},Ee(w(v({},Q),{ref:Be,className:ue,style:{position:be,top:Pe??"",left:Se??""}})),{initial:"unmount",exit:"unmount",animate:L?"mount":"unmount",variants:Oe}),B)))))});R.propTypes={open:p.propTypesOpen,handler:p.propTypesHandler,content:p.propTypesContent,interactive:p.propTypesInteractive,placement:n.default.oneOf(p.propTypesPlacement),offset:p.propTypesOffset,dismiss:p.propTypesDismiss,animate:p.propTypesAnimate,className:p.propTypesClassName,children:p.propTypesChildren},R.displayName="MaterialTailwind.Tooltip";var T=R})(LZ);var $Z={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(v,d){for(var w in d)Object.defineProperty(v,w,{enumerable:!0,get:d[w]})}t(e,{Typography:function(){return m},default:function(){return f}});var r=p(O),n=p(et),o=p(ct),a=Je,i=p(wr),s=p(Ze),l=Ye,c=hP;function u(v,d,w){return d in v?Object.defineProperty(v,d,{value:w,enumerable:!0,configurable:!0,writable:!0}):v[d]=w,v}function p(v){return v&&v.__esModule?v:{default:v}}function h(v){for(var d=1;d=0)&&Object.prototype.propertyIsEnumerable.call(v,_)&&(w[_]=v[_])}return w}function b(v,d){if(v==null)return{};var w={},_=Object.keys(v),E,k;for(k=0;k<_.length;k++)E=_[k],!(d.indexOf(E)>=0)&&(w[E]=v[E]);return w}var m=r.default.forwardRef(function(v,d){var w=v.variant,_=v.color,E=v.textGradient,k=v.as,S=v.className,R=v.children,T=y(v,["variant","color","textGradient","as","className","children"]),P=(0,l.useTheme)().typography,j=P.defaultProps,L=P.valid,D=P.styles,B=D.variants,V=D.colors,q=D.textGradient;w=w??j.variant,_=_??j.color,E=E||j.textGradient,k=k??void 0,S=S??j.className;var z=(0,s.default)(B[(0,i.default)(L.variants,w,"paragraph")]),F=V[(0,i.default)(L.colors,_,"inherit")],N=(0,s.default)(q),W=(0,a.twMerge)((0,o.default)(z,u({},F.color,!E),u({},N,E),u({},F.gradient,E)),S),G;switch(w){case"h1":G=r.default.createElement(k||"h1",x(h({},T),{ref:d,className:W}),R);break;case"h2":G=r.default.createElement(k||"h2",x(h({},T),{ref:d,className:W}),R);break;case"h3":G=r.default.createElement(k||"h3",x(h({},T),{ref:d,className:W}),R);break;case"h4":G=r.default.createElement(k||"h4",x(h({},T),{ref:d,className:W}),R);break;case"h5":G=r.default.createElement(k||"h5",x(h({},T),{ref:d,className:W}),R);break;case"h6":G=r.default.createElement(k||"h6",x(h({},T),{ref:d,className:W}),R);break;case"lead":G=r.default.createElement(k||"p",x(h({},T),{ref:d,className:W}),R);break;case"paragraph":G=r.default.createElement(k||"p",x(h({},T),{ref:d,className:W}),R);break;case"small":G=r.default.createElement(k||"p",x(h({},T),{ref:d,className:W}),R);break;default:G=r.default.createElement(k||"p",x(h({},T),{ref:d,className:W}),R);break}return G});m.propTypes={variant:n.default.oneOf(c.propTypesVariant),color:n.default.oneOf(c.propTypesColor),as:c.propTypesAs,textGradient:c.propTypesTextGradient,className:c.propTypesClassName,children:c.propTypesChildren},m.displayName="MaterialTailwind.Typography";var f=m})($Z);var NZ={},DZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,u){for(var p in u)Object.defineProperty(c,p,{enumerable:!0,get:u[p]})}t(e,{propTypesClassName:function(){return a},propTypesChildren:function(){return i},propTypesOpen:function(){return s},propTypesAnimate:function(){return l}});var r=o(et),n=ur;function o(c){return c&&c.__esModule?c:{default:c}}var a=r.default.string,i=r.default.node.isRequired,s=r.default.bool.isRequired,l=n.propTypesAnimation})(DZ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,f){for(var v in f)Object.defineProperty(m,v,{enumerable:!0,get:f[v]})}t(e,{Collapse:function(){return y},default:function(){return b}});var r=h(O),n=rn,o=Gr,a=h(dn),i=h(ct),s=Je,l=h(Ze),c=Ye,u=DZ;function p(){return p=Object.assign||function(m){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.open,d=m.animate,w=m.className,_=m.children,E=g(m,["open","animate","className","children"]),k=r.default.useRef(null),S=(0,c.useTheme)().collapse,R=S.styles,T=R.base;d=d??{},w=w??"";var P=(0,s.twMerge)((0,i.default)((0,l.default)(T)),w),j={unmount:{height:"0px",transition:{duration:.3,times:[.4,0,.2,1]}},mount:{height:"auto",transition:{duration:.3,times:[.4,0,.2,1]}}},L=(0,a.default)(j,d),D=n.AnimatePresence,B=(0,o.useMergeRefs)([f,k]);return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(D,null,r.default.createElement(n.m.div,p({},E,{ref:B,className:P,initial:"unmount",exit:"unmount",animate:v?"mount":"unmount",variants:L}),_)))});y.displayName="MaterialTailwind.Collapse",y.propTypes={open:u.propTypesOpen,animate:u.propTypesAnimate,className:u.propTypesClassName,children:u.propTypesChildren};var b=y})(NZ);var FZ={},G1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,u){for(var p in u)Object.defineProperty(c,p,{enumerable:!0,get:u[p]})}t(e,{propTypesClassName:function(){return o},propTypesDisabled:function(){return a},propTypesSelected:function(){return i},propTypesRipple:function(){return s},propTypesChildren:function(){return l}});var r=n(et);function n(c){return c&&c.__esModule?c:{default:c}}var o=r.default.string,a=r.default.bool,i=r.default.bool,s=r.default.bool,l=r.default.node.isRequired})(G1);var zZ={},QP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(x,y){for(var b in y)Object.defineProperty(x,b,{enumerable:!0,get:y[b]})}t(e,{ListItemPrefix:function(){return h},default:function(){return g}});var r=c(O),n=Ye,o=c(ct),a=Je,i=c(Ze),s=G1;function l(){return l=Object.assign||function(x){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(x,m)&&(b[m]=x[m])}return b}function p(x,y){if(x==null)return{};var b={},m=Object.keys(x),f,v;for(v=0;v=0)&&(b[f]=x[f]);return b}var h=r.default.forwardRef(function(x,y){var b=x.className,m=x.children,f=u(x,["className","children"]),v=(0,n.useTheme)().list,d=v.styles.base,w=(0,a.twMerge)((0,o.default)((0,i.default)(d.itemPrefix)),b);return r.default.createElement("div",l({},f,{ref:y,className:w}),m)});h.propTypes={className:s.propTypesClassName,children:s.propTypesChildren},h.displayName="MaterialTailwind.ListItemPrefix";var g=h})(QP);var JP={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(x,y){for(var b in y)Object.defineProperty(x,b,{enumerable:!0,get:y[b]})}t(e,{ListItemSuffix:function(){return h},default:function(){return g}});var r=c(O),n=Ye,o=c(ct),a=Je,i=c(Ze),s=G1;function l(){return l=Object.assign||function(x){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(x,m)&&(b[m]=x[m])}return b}function p(x,y){if(x==null)return{};var b={},m=Object.keys(x),f,v;for(v=0;v=0)&&(b[f]=x[f]);return b}var h=r.default.forwardRef(function(x,y){var b=x.className,m=x.children,f=u(x,["className","children"]),v=(0,n.useTheme)().list,d=v.styles.base,w=(0,a.twMerge)((0,o.default)((0,i.default)(d.itemSuffix)),b);return r.default.createElement("div",l({},f,{ref:y,className:w}),m)});h.propTypes={className:s.propTypesClassName,children:s.propTypesChildren},h.displayName="MaterialTailwind.ListItemSuffix";var g=h})(JP);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,v){for(var d in v)Object.defineProperty(f,d,{enumerable:!0,get:v[d]})}t(e,{ListItem:function(){return b},ListItemPrefix:function(){return c.ListItemPrefix},ListItemSuffix:function(){return u.ListItemSuffix},default:function(){return m}});var r=g(O),n=Ye,o=g(gf),a=g(ct),i=Je,s=g(Ze),l=G1,c=QP,u=JP;function p(f,v,d){return v in f?Object.defineProperty(f,v,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[v]=d,f}function h(){return h=Object.assign||function(f){for(var v=1;v=0)&&Object.prototype.propertyIsEnumerable.call(f,w)&&(d[w]=f[w])}return d}function y(f,v){if(f==null)return{};var d={},w=Object.keys(f),_,E;for(E=0;E=0)&&(d[_]=f[_]);return d}var b=r.default.forwardRef(function(f,v){var d=f.className,w=f.disabled,_=f.selected,E=f.ripple,k=f.children,S=x(f,["className","disabled","selected","ripple","children"]),R=(0,n.useTheme)().list,T=R.defaultProps,P=R.styles.base;E=E??T.ripple;var j=E!==void 0&&new o.default,L,D=(0,i.twMerge)((0,a.default)((0,s.default)(P.item.initial),(L={},p(L,(0,s.default)(P.item.disabled),w),p(L,(0,s.default)(P.item.selected),_&&!w),L)),d);return r.default.createElement("div",h({},S,{ref:v,role:"button",tabIndex:0,className:D,onMouseDown:function(B){var V=S==null?void 0:S.onMouseDown;return E&&j.create(B,"dark"),typeof V=="function"&&V(B)}}),k)});b.propTypes={className:l.propTypesClassName,selected:l.propTypesSelected,disabled:l.propTypesDisabled,ripple:l.propTypesRipple,children:l.propTypesChildren},b.displayName="MaterialTailwind.ListItem";var m=Object.assign(b,{Prefix:c.ListItemPrefix,Suffix:u.ListItemSuffix})})(zZ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,f){for(var v in f)Object.defineProperty(m,v,{enumerable:!0,get:f[v]})}t(e,{List:function(){return y},ListItem:function(){return l.ListItem},ListItemPrefix:function(){return c.ListItemPrefix},ListItemSuffix:function(){return u.ListItemSuffix},default:function(){return b}});var r=h(O),n=Ye,o=h(ct),a=Je,i=h(Ze),s=G1,l=zZ,c=QP,u=JP;function p(){return p=Object.assign||function(m){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.className,d=m.children,w=g(m,["className","children"]),_=(0,n.useTheme)().list,E=_.defaultProps,k=_.styles.base;v=v??E.className;var S=(0,a.twMerge)((0,o.default)((0,i.default)(k.list)),v);return r.default.createElement("nav",p({},w,{ref:f,className:S}),d)});y.propTypes={className:s.propTypesClassName,children:s.propTypesChildren},y.displayName="MaterialTailwind.List";var b=Object.assign(y,{Item:l.ListItem,ItemPrefix:c.ListItemPrefix,ItemSuffix:u.ListItemSuffix})})(FZ);var BZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(m,f){for(var v in f)Object.defineProperty(m,v,{enumerable:!0,get:f[v]})}t(e,{ButtonGroup:function(){return y},default:function(){return b}});var r=h(O),n=h(et),o=h(ct),a=Je,i=h(wr),s=h(Ze),l=Ye,c=Yc;function u(m,f,v){return f in m?Object.defineProperty(m,f,{value:v,enumerable:!0,configurable:!0,writable:!0}):m[f]=v,m}function p(){return p=Object.assign||function(m){for(var f=1;f=0)&&Object.prototype.propertyIsEnumerable.call(m,d)&&(v[d]=m[d])}return v}function x(m,f){if(m==null)return{};var v={},d=Object.keys(m),w,_;for(_=0;_=0)&&(v[w]=m[w]);return v}var y=r.default.forwardRef(function(m,f){var v=m.variant,d=m.size,w=m.color,_=m.fullWidth,E=m.ripple,k=m.className,S=m.children,R=g(m,["variant","size","color","fullWidth","ripple","className","children"]),T=(0,l.useTheme)().buttonGroup,P=T.defaultProps,j=T.styles,L=T.valid,D=j.base,B=j.dividerColor;v=v??P.variant,d=d??P.size,w=w??P.color,E=E??P.ripple,_=_??P.fullWidth,k=k??P.className;var V,q=(0,a.twMerge)((0,o.default)((0,s.default)(D.initial),(V={},u(V,(0,s.default)(D.fullWidth),_),u(V,"divide-x",v!=="outlined"),u(V,(0,s.default)(B[(0,i.default)(L.colors,w,"blue")]),v!=="outlined"),V)),k);return r.default.createElement("div",p({},R,{ref:f,className:q}),r.default.Children.map(S,function(z,F){var N;return r.default.isValidElement(z)&&r.default.cloneElement(z,{variant:v,size:d,color:w,ripple:E,fullWidth:_,className:(0,a.twMerge)((0,o.default)({"rounded-r-none":F!==r.default.Children.count(S)-1,"border-r-0":F!==r.default.Children.count(S)-1,"rounded-l-none":F!==0}),(N=z.props)===null||N===void 0?void 0:N.className)})}))});y.propTypes={variant:n.default.oneOf(c.propTypesVariant),size:n.default.oneOf(c.propTypesSize),color:n.default.oneOf(c.propTypesColor),fullWidth:c.propTypesFullWidth,ripple:c.propTypesRipple,className:c.propTypesClassName,children:c.propTypesChildren},y.displayName="MaterialTailwind.ButtonGroup";var b=y})(BZ);var VZ={},HZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(x,y){for(var b in y)Object.defineProperty(x,b,{enumerable:!0,get:y[b]})}t(e,{propTypesClassName:function(){return o},propTypesPrevArrow:function(){return a},propTypesNextArrow:function(){return i},propTypesNavigation:function(){return s},propTypesAutoplay:function(){return l},propTypesAutoplayDelay:function(){return c},propTypesTransition:function(){return u},propTypesLoop:function(){return p},propTypesChildren:function(){return h},propTypesSlideRef:function(){return g}});var r=n(et);function n(x){return x&&x.__esModule?x:{default:x}}var o=r.default.string,a=r.default.func,i=r.default.func,s=r.default.func,l=r.default.bool,c=r.default.number,u=r.default.object,p=r.default.bool,h=r.default.node.isRequired,g=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(HZ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(_,E){for(var k in E)Object.defineProperty(_,k,{enumerable:!0,get:E[k]})}t(e,{Carousel:function(){return d},default:function(){return w}});var r=g(O),n=rn,o=Gr,a=g(ct),i=Je,s=g(Ze),l=Ye,c=HZ;function u(_,E){(E==null||E>_.length)&&(E=_.length);for(var k=0,S=new Array(E);k=0)&&Object.prototype.propertyIsEnumerable.call(_,S)&&(k[S]=_[S])}return k}function m(_,E){if(_==null)return{};var k={},S=Object.keys(_),R,T;for(T=0;T=0)&&(k[R]=_[R]);return k}function f(_,E){return p(_)||x(_,E)||v(_,E)||y()}function v(_,E){if(_){if(typeof _=="string")return u(_,E);var k=Object.prototype.toString.call(_).slice(8,-1);if(k==="Object"&&_.constructor&&(k=_.constructor.name),k==="Map"||k==="Set")return Array.from(k);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return u(_,E)}}var d=r.default.forwardRef(function(_,E){var k=_.children,S=_.prevArrow,R=_.nextArrow,T=_.navigation,P=_.autoplay,j=_.autoplayDelay,L=_.transition,D=_.loop,B=_.className,V=_.slideRef,q=b(_,["children","prevArrow","nextArrow","navigation","autoplay","autoplayDelay","transition","loop","className","slideRef"]),z=(0,l.useTheme)().carousel,F=z.defaultProps,N=z.styles.base,W=(0,n.useMotionValue)(0),G=r.default.useRef(null),Q=f(r.default.useState(0),2),Z=Q[0],U=Q[1],J=r.default.Children.toArray(k);B=B??F.className,S=S??F.prevArrow,R=R??F.nextArrow,T=T??F.navigation,P=P??F.autoplay,j=j??F.autoplayDelay,L=L??F.transition,D=D??F.loop;var ae=(0,i.twMerge)((0,a.default)((0,s.default)(N.carousel)),B),ee=(0,i.twMerge)((0,a.default)((0,s.default)(N.slide))),se=r.default.useCallback(function(){var Te;return-Z*(((Te=G.current)===null||Te===void 0?void 0:Te.clientWidth)||0)},[Z]),ue=r.default.useCallback(function(){var Te=D?0:Z;U(Z+1===J.length?Te:Z+1)},[Z,D,J.length]),we=function(){var Te=D?J.length-1:0;U(Z-1<0?Te:Z-1)};r.default.useEffect(function(){var Te=(0,n.animate)(W,se(),L);return Te.stop},[se,Z,W,L]),r.default.useEffect(function(){window.addEventListener("resize",function(){(0,n.animate)(W,se(),L)})},[se,L,W]),r.default.useEffect(function(){if(P){var Te=setInterval(function(){return ue()},j);return function(){return clearInterval(Te)}}},[P,ue,j]);var Oe=(0,o.useMergeRefs)([G,E]);return r.default.createElement("div",h({},q,{ref:Oe,className:ae}),J.map(function(Te,Se){return r.default.createElement(n.LazyMotion,{key:Se,features:n.domAnimation},r.default.createElement(n.m.div,{ref:V,className:ee,style:{x:W,left:"".concat(Se*100,"%"),right:"".concat(Se*100,"%")}},Te))}),S&&S({loop:D,handlePrev:we,activeIndex:Z,firstIndex:Z===0}),R&&R({loop:D,handleNext:ue,activeIndex:Z,lastIndex:Z===J.length-1}),T&&T({setActiveIndex:U,activeIndex:Z,length:J.length}))});d.propTypes={className:c.propTypesClassName,children:c.propTypesChildren,nextArrow:c.propTypesNextArrow,prevArrow:c.propTypesPrevArrow,navigation:c.propTypesNavigation,autoplay:c.propTypesAutoplay,autoplayDelay:c.propTypesAutoplayDelay,transition:c.propTypesTransition,loop:c.propTypesLoop,slideRef:c.propTypesSlideRef},d.displayName="MaterialTailwind.Carousel";var w=d})(VZ);var UZ={},WZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,m){for(var f in m)Object.defineProperty(b,f,{enumerable:!0,get:m[f]})}t(e,{propTypesOpen:function(){return a},propTypesSize:function(){return i},propTypesOverlay:function(){return s},propTypesChildren:function(){return l},propTypesPlacement:function(){return c},propTypesOverlayProps:function(){return u},propTypesClassName:function(){return p},propTypesOnClose:function(){return h},propTypesDismiss:function(){return g},propTypesTransition:function(){return x},propTypesOverlayRef:function(){return y}});var r=o(et),n=ur;function o(b){return b&&b.__esModule?b:{default:b}}var a=r.default.bool.isRequired,i=r.default.number,s=r.default.bool,l=r.default.node.isRequired,c=["top","right","bottom","left"],u=r.default.object,p=r.default.string,h=r.default.func,g=n.propTypesDismissType,x=r.default.object,y=r.default.oneOfType([r.default.func,r.default.shape({current:r.default.any})])})(WZ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,w){for(var _ in w)Object.defineProperty(d,_,{enumerable:!0,get:w[_]})}t(e,{Drawer:function(){return f},default:function(){return v}});var r=x(O),n=x(et),o=rn,a=Gr,i=x(dn),s=x(ct),l=Je,c=x(Ze),u=Ye,p=WZ;function h(d,w,_){return w in d?Object.defineProperty(d,w,{value:_,enumerable:!0,configurable:!0,writable:!0}):d[w]=_,d}function g(){return g=Object.assign||function(d){for(var w=1;w=0)&&Object.prototype.propertyIsEnumerable.call(d,E)&&(_[E]=d[E])}return _}function m(d,w){if(d==null)return{};var _={},E=Object.keys(d),k,S;for(S=0;S=0)&&(_[k]=d[k]);return _}var f=r.default.forwardRef(function(d,w){var _=d.open,E=d.size,k=d.overlay,S=d.children,R=d.placement,T=d.overlayProps,P=d.className,j=d.onClose,L=d.dismiss,D=d.transition,B=d.overlayRef,V=b(d,["open","size","overlay","children","placement","overlayProps","className","onClose","dismiss","transition","overlayRef"]),q=(0,u.useTheme)().drawer,z=q.defaultProps,F=q.styles.base,N=(0,o.useAnimation)();E=E??z.size,k=k??z.overlay,R=R??z.placement,P=P??z.className,T=T??z.overlayProps,j=j??z.onClose;var W;L=(W=(0,i.default)(z.dismiss,L||{}))!==null&&W!==void 0?W:z.dismiss,D=D??z.transition;var G=(0,l.twMerge)((0,s.default)((0,c.default)(F.drawer),{"top-0 right-0":R==="right","bottom-0 left-0":R==="bottom","top-0 left-0":R==="top"||R==="left"}),P),Q=(0,l.twMerge)((0,s.default)((0,c.default)(F.overlay)),T==null?void 0:T.className),Z=(0,a.useFloating)({open:_,onOpenChange:j}).context,U=(0,a.useInteractions)([(0,a.useDismiss)(Z,L)]).getFloatingProps;r.default.useEffect(function(){N.start(_?"open":"close")},[_,N,R]);var J={open:{x:0,y:0},close:{x:R==="left"?-E:R==="right"?E:0,y:R==="top"?-E:R==="bottom"?E:0}},ae={unmount:{opacity:0,transition:{delay:.3}},mount:{opacity:1}};return r.default.createElement(r.default.Fragment,null,r.default.createElement(o.LazyMotion,{features:o.domAnimation},r.default.createElement(o.AnimatePresence,null,k&&_&&r.default.createElement(o.m.div,{ref:B,className:Q,initial:"unmount",exit:"unmount",animate:_?"mount":"unmount",variants:ae,transition:{duration:.3}})),r.default.createElement(o.m.div,g({},U(y({ref:w},V)),{className:G,style:{maxWidth:R==="left"||R==="right"?E:"100%",maxHeight:R==="top"||R==="bottom"?E:"100%",height:R==="left"||R==="right"?"100vh":"100%"},initial:"close",animate:N,variants:J,transition:D}),S)))});f.propTypes={open:p.propTypesOpen,size:p.propTypesSize,overlay:p.propTypesOverlay,children:p.propTypesChildren,placement:n.default.oneOf(p.propTypesPlacement),overlayProps:p.propTypesOverlayProps,className:p.propTypesClassName,onClose:p.propTypesOnClose,dismiss:p.propTypesDismiss,transition:p.propTypesTransition,overlayRef:p.propTypesOverlayRef},f.displayName="MaterialTailwind.Drawer";var v=f})(UZ);var qZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,v){for(var d in v)Object.defineProperty(f,d,{enumerable:!0,get:v[d]})}t(e,{Badge:function(){return b},default:function(){return m}});var r=g(O),n=g(et),o=g(dn),a=g(ct),i=Je,s=g(wr),l=g(Ze),c=Ye,u=mP;function p(f,v,d){return v in f?Object.defineProperty(f,v,{value:d,enumerable:!0,configurable:!0,writable:!0}):f[v]=d,f}function h(){return h=Object.assign||function(f){for(var v=1;v=0)&&Object.prototype.propertyIsEnumerable.call(f,w)&&(d[w]=f[w])}return d}function y(f,v){if(f==null)return{};var d={},w=Object.keys(f),_,E;for(E=0;E=0)&&(d[_]=f[_]);return d}var b=r.default.forwardRef(function(f,v){var d=f.color,w=f.invisible,_=f.withBorder,E=f.overlap,k=f.placement,S=f.className,R=f.content,T=f.children,P=f.containerProps,j=f.containerRef,L=x(f,["color","invisible","withBorder","overlap","placement","className","content","children","containerProps","containerRef"]),D=(0,c.useTheme)().badge,B=D.valid,V=D.defaultProps,q=D.styles,z=q.base,F=q.placements,N=q.colors;d=d??V.color,w=w??V.invisible,_=_??V.withBorder,E=E??V.overlap,k=k??V.placement;var W;S=(W=(0,a.default)(S,V.className))!==null&&W!==void 0?W:V.className;var G;P=(G=(0,o.default)(P,V.containerProps||{}))!==null&&G!==void 0?G:V.containerProps;var Q=(0,l.default)(z.badge.initial),Z=(0,l.default)(z.badge.withBorder),U=(0,l.default)(z.badge.withContent),J=(0,l.default)(N[(0,s.default)(B.colors,d,"red")]),ae=(0,l.default)(F[(0,s.default)(B.placements,k,"top-end")][(0,s.default)(B.overlaps,E,"square")]),ee,se=(0,i.twMerge)((0,a.default)(Q,ae,J,(ee={},p(ee,Z,_),p(ee,U,R),ee)),S),ue=(0,i.twMerge)((0,a.default)((0,l.default)(z.container),P==null?void 0:P.className));return r.default.createElement("div",h({ref:j},P,{className:ue}),T,!w&&r.default.createElement("span",h({},L,{ref:v,className:se}),R))});b.propTypes={color:n.default.oneOf(u.propTypesColor),invisible:u.propTypesInvisible,withBorder:u.propTypesWithBorder,overlap:u.propTypesOverlap,className:u.propTypesClassName,content:u.propTypesContent,children:u.propTypesChildren,placement:u.propTypesPlacement,containerProps:u.propTypesContainerProps,containerRef:u.propTypesContainerRef},b.displayName="MaterialTailwind.Badge";var m=b})(qZ);var GZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,T){for(var P in T)Object.defineProperty(R,P,{enumerable:!0,get:T[P]})}t(e,{Rating:function(){return k},default:function(){return S}});var r=x(O),n=x(et),o=x(ct),a=Je,i=x(wr),s=x(Ze),l=Ye,c=gP;function u(R,T){(T==null||T>R.length)&&(T=R.length);for(var P=0,j=new Array(T);P=0)&&Object.prototype.propertyIsEnumerable.call(R,j)&&(P[j]=R[j])}return P}function d(R,T){if(R==null)return{};var P={},j=Object.keys(R),L,D;for(D=0;D=0)&&(P[L]=R[L]);return P}function w(R,T){return p(R)||b(R,T)||E(R,T)||m()}function _(R){return h(R)||y(R)||E(R)||f()}function E(R,T){if(R){if(typeof R=="string")return u(R,T);var P=Object.prototype.toString.call(R).slice(8,-1);if(P==="Object"&&R.constructor&&(P=R.constructor.name),P==="Map"||P==="Set")return Array.from(P);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return u(R,T)}}var k=r.default.forwardRef(function(R,T){var P=R.count,j=R.value,L=R.ratedIcon,D=R.unratedIcon,B=R.ratedColor,V=R.unratedColor,q=R.className,z=R.onChange,F=R.readonly,N=v(R,["count","value","ratedIcon","unratedIcon","ratedColor","unratedColor","className","onChange","readonly"]),W,G,Q=(0,l.useTheme)().rating,Z=Q.valid,U=Q.defaultProps,J=Q.styles,ae=J.base,ee=J.colors;P=P??U.count,j=j??U.value,L=L??U.ratedIcon,L=L??U.ratedIcon,D=D??U.unratedIcon,B=B??U.ratedColor,V=V??U.unratedColor,q=q??U.className,z=z??U.onChange,F=F??U.readonly;var se=w(r.default.useState(function(){return _(Array(j).fill("rated")).concat(_(Array(P-j).fill("un_rated")))}),2),ue=se[0],we=se[1],Oe=w(r.default.useState(function(){return _(Array(P).fill("un_rated"))}),2),Te=Oe[0],Se=Oe[1],Pe=w(r.default.useState(!1),2),Ie=Pe[0],me=Pe[1],be=(0,s.default)(ee[(0,i.default)(Z.colors,B,"yellow")]),ke=(0,s.default)(ee[(0,i.default)(Z.colors,V,"blue-gray")]),je=(0,a.twMerge)((0,o.default)((0,s.default)(ae.rating),q)),le=(0,s.default)(ae.icon),xe=L,_e=D,Ee=r.default.isValidElement(L)&&r.default.cloneElement(xe,{className:(0,a.twMerge)((0,o.default)(le,be,xe==null||(W=xe.props)===null||W===void 0?void 0:W.className))}),Be=r.default.isValidElement(L)&&r.default.cloneElement(_e,{className:(0,a.twMerge)((0,o.default)(le,ke,_e==null||(G=_e.props)===null||G===void 0?void 0:G.className))}),tt=!r.default.isValidElement(L)&&r.default.createElement(L,{className:(0,a.twMerge)((0,o.default)(le,be))}),qe=!r.default.isValidElement(L)&&r.default.createElement(D,{className:(0,a.twMerge)((0,o.default)(le,ke))}),jr=function(St){return St.map(function(Mt,Nn){return r.default.createElement("span",{key:Nn,onClick:function(){if(!F){var Dn=ue.map(function(ge,ve){return ve<=Nn?"rated":"un_rated"});we(Dn),z&&typeof z=="function"&&z(Dn.filter(function(ge){return ge==="rated"}).length)}},onMouseEnter:function(){if(!F){var Dn=Te.map(function(ge,ve){return ve<=Nn?"rated":"un_rated"});me(!0),Se(Dn)}},onMouseLeave:function(){return!F&&me(!1)}},r.default.isValidElement(Mt==="rated"?L:D)?Mt==="rated"?Ee:Be:Mt==="rated"?tt:qe)})};return r.default.createElement("div",g({},N,{ref:T,className:je}),jr(Ie?Te:ue))});k.propTypes={count:c.propTypesCount,value:c.propTypesValue,ratedIcon:c.propTypesRatedIcon,unratedIcon:c.propTypesUnratedIcon,ratedColor:n.default.oneOf(c.propTypesColor),unratedColor:n.default.oneOf(c.propTypesColor),className:c.propTypesClassName,onChange:c.propTypesOnChange,readonly:c.propTypesReadonly},k.displayName="MaterialTailwind.Rating";var S=k})(GZ);var KZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,k){for(var S in k)Object.defineProperty(E,S,{enumerable:!0,get:k[S]})}t(e,{Slider:function(){return w},default:function(){return _}});var r=x(O),n=x(et),o=x(dn),a=x(ct),i=Je,s=x(wr),l=x(Ze),c=Ye,u=vP;function p(E,k){(k==null||k>E.length)&&(k=E.length);for(var S=0,R=new Array(k);S=0)&&Object.prototype.propertyIsEnumerable.call(E,R)&&(S[R]=E[R])}return S}function f(E,k){if(E==null)return{};var S={},R=Object.keys(E),T,P;for(P=0;P=0)&&(S[T]=E[T]);return S}function v(E,k){return h(E)||y(E,k)||d(E,k)||b()}function d(E,k){if(E){if(typeof E=="string")return p(E,k);var S=Object.prototype.toString.call(E).slice(8,-1);if(S==="Object"&&E.constructor&&(S=E.constructor.name),S==="Map"||S==="Set")return Array.from(S);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return p(E,k)}}var w=r.default.forwardRef(function(E,k){var S=E.color,R=E.size,T=E.className,P=E.trackClassName,j=E.thumbClassName,L=E.barClassName,D=E.value,B=E.defaultValue,V=E.onChange,q=E.min,z=E.max,F=E.step,N=E.inputRef,W=E.inputProps,G=m(E,["color","size","className","trackClassName","thumbClassName","barClassName","value","defaultValue","onChange","min","max","step","inputRef","inputProps"]),Q=(0,c.useTheme)().slider,Z=Q.valid,U=Q.defaultProps,J=Q.styles,ae=J.base,ee=J.sizes,se=J.colors,ue=v(r.default.useState(B||0),2),we=ue[0],Oe=ue[1];r.default.useMemo(function(){B&&Oe(B)},[B]),S=S??U.color,R=R??U.size,q=q??U.min,z=z??U.max,F=F??U.step;var Te;T=(Te=(0,a.default)(U.className,T))!==null&&Te!==void 0?Te:U.className;var Se;j=(Se=(0,a.default)(U.thumbClassName,j))!==null&&Se!==void 0?Se:U.thumbClassName;var Pe;P=(Pe=(0,a.default)(U.trackClassName,P))!==null&&Pe!==void 0?Pe:U.trackClassName;var Ie;L=(Ie=(0,a.default)(U.barClassName,L))!==null&&Ie!==void 0?Ie:U.barClassName;var me;W=(me=(0,o.default)(W,(U==null?void 0:U.inputProps)||{}))!==null&&me!==void 0?me:U.inputProps;var be=(0,i.twMerge)((0,a.default)((0,l.default)(ae.container),(0,l.default)(se[(0,s.default)(Z.colors,S,"blue")]),(0,l.default)(ee[(0,s.default)(Z.sizes,R,"md")].container),T)),ke=(0,i.twMerge)((0,a.default)((0,l.default)(ae.bar),L)),je=(0,a.default)((0,l.default)(ae.track),(0,l.default)(ee[(0,s.default)(Z.sizes,R,"md")].track)),le=(0,a.default)((0,l.default)(ae.thumb),(0,l.default)(ee[(0,s.default)(Z.sizes,R,"md")].thumb)),xe=(0,a.default)((0,l.default)(ae.slider),(0,i.twMerge)(je,P),(0,i.twMerge)(le,j));return r.default.createElement("div",g({},G,{ref:k,className:be}),r.default.createElement("label",{className:ke,style:{width:"".concat(D||we,"%")}}),r.default.createElement("input",g({ref:N,type:"range",max:z,min:q,step:F,className:xe},D?{value:D}:null,{defaultValue:B,onChange:function(_e){return V?V(_e):Oe(Number(_e.target.value))}})))});w.propTypes={color:n.default.oneOf(u.propTypesColor),size:n.default.oneOf(u.propTypesSize),className:u.propTypesClassName,trackClassName:u.propTypesTrackClassName,thumbClassName:u.propTypesThumbClassName,barClassName:u.propTypesBarClassName,defaultValue:u.propTypesDefaultValue,value:u.propTypesValue,onChange:u.propTypesOnChange,min:u.propTypesMin,max:u.propTypesMax,step:u.propTypesStep,inputRef:u.propTypesInputRef,inputProps:u.propTypesInputProps},w.displayName="MaterialTailwind.Slider";var _=w})(KZ);var YZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,v){for(var d in v)Object.defineProperty(f,d,{enumerable:!0,get:v[d]})}t(e,{Spinner:function(){return b},default:function(){return m}});var r=p(et),n=g(O),o=p(ct),a=Je,i=p(wr),s=p(Ze),l=Ye,c=bP;function u(){return u=Object.assign||function(f){for(var v=1;v=0)&&Object.prototype.propertyIsEnumerable.call(f,w)&&(d[w]=f[w])}return d}function y(f,v){if(f==null)return{};var d={},w=Object.keys(f),_,E;for(E=0;E=0)&&(d[_]=f[_]);return d}var b=(0,n.forwardRef)(function(f,v){var d=f.color,w=f.className,_=x(f,["color","className"]),E=(0,l.useTheme)().spinner,k=E.defaultProps,S=E.valid,R=E.styles,T=R.base,P=R.colors;d=d??k.color;var j;w=(j=(0,o.default)(k.className,w))!==null&&j!==void 0?j:k.className;var L=(0,s.default)(P[(0,i.default)(S.colors,d,"blue")]),D=(0,a.twMerge)((0,o.default)((0,s.default)(T)),w),B,V;return n.default.createElement("svg",u({},_,{ref:v,className:D,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:(B=_==null?void 0:_.width)!==null&&B!==void 0?B:24,height:(V=_==null?void 0:_.height)!==null&&V!==void 0?V:24}),n.default.createElement("path",{d:"M32 3C35.8083 3 39.5794 3.75011 43.0978 5.20749C46.6163 6.66488 49.8132 8.80101 52.5061 11.4939C55.199 14.1868 57.3351 17.3837 58.7925 20.9022C60.2499 24.4206 61 28.1917 61 32C61 35.8083 60.2499 39.5794 58.7925 43.0978C57.3351 46.6163 55.199 49.8132 52.5061 52.5061C49.8132 55.199 46.6163 57.3351 43.0978 58.7925C39.5794 60.2499 35.8083 61 32 61C28.1917 61 24.4206 60.2499 20.9022 58.7925C17.3837 57.3351 14.1868 55.199 11.4939 52.5061C8.801 49.8132 6.66487 46.6163 5.20749 43.0978C3.7501 39.5794 3 35.8083 3 32C3 28.1917 3.75011 24.4206 5.2075 20.9022C6.66489 17.3837 8.80101 14.1868 11.4939 11.4939C14.1868 8.80099 17.3838 6.66487 20.9022 5.20749C24.4206 3.7501 28.1917 3 32 3L32 3Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),n.default.createElement("path",{d:"M32 3C36.5778 3 41.0906 4.08374 45.1692 6.16256C49.2477 8.24138 52.7762 11.2562 55.466 14.9605C58.1558 18.6647 59.9304 22.9531 60.6448 27.4748C61.3591 31.9965 60.9928 36.6232 59.5759 40.9762",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round",className:L}))});b.propTypes={color:r.default.oneOf(c.propTypesColor),className:c.propTypesClassName},b.displayName="MaterialTailwind.Spinner";var m=b})(YZ);var XZ={},K1={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,_){for(var E in _)Object.defineProperty(w,E,{enumerable:!0,get:_[E]})}t(e,{useTimelineItem:function(){return f},TimelineItem:function(){return v},default:function(){return d}});var r=u(O),n=Je,o=u(Ze),a=Ye,i=ts;function s(w,_){(_==null||_>w.length)&&(_=w.length);for(var E=0,k=new Array(_);E<_;E++)k[E]=w[E];return k}function l(w){if(Array.isArray(w))return w}function c(){return c=Object.assign||function(w){for(var _=1;_=0)&&Object.prototype.propertyIsEnumerable.call(w,k)&&(E[k]=w[k])}return E}function x(w,_){if(w==null)return{};var E={},k=Object.keys(w),S,R;for(R=0;R=0)&&(E[S]=w[S]);return E}function y(w,_){return l(w)||p(w,_)||b(w,_)||h()}function b(w,_){if(w){if(typeof w=="string")return s(w,_);var E=Object.prototype.toString.call(w).slice(8,-1);if(E==="Object"&&w.constructor&&(E=w.constructor.name),E==="Map"||E==="Set")return Array.from(E);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return s(w,_)}}var m=r.default.createContext(0);m.displayName="MaterialTailwind.TimelineItemContext";function f(){var w=r.default.useContext(m);if(!w)throw new Error("useTimelineItemContext() must be used within a TimelineItem. It happens when you use TimelineIcon, TimelineConnector or TimelineBody components outside the TimelineItem component.");return w}var v=r.default.forwardRef(function(w,_){var E=w.className,k=w.children,S=g(w,["className","children"]),R=(0,a.useTheme)().timelineItem,T=R.styles,P=T.base,j=y(r.default.useState(0),2),L=j[0],D=j[1],B=r.default.useMemo(function(){return[L,D]},[L,D]),V=(0,n.twMerge)((0,o.default)(P),E);return r.default.createElement(m.Provider,{value:B},r.default.createElement("li",c({ref:_},S,{className:V}),k))});v.propTypes={className:i.propTypeClassName,children:i.propTypeChildren.isRequired},v.displayName="MaterialTailwind.TimelineItem";var d=v})(K1);var ZZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(E,k){for(var S in k)Object.defineProperty(E,S,{enumerable:!0,get:k[S]})}t(e,{TimelineIcon:function(){return w},default:function(){return _}});var r=x(O),n=x(et),o=Gr,a=Je,i=x(wr),s=x(Ze),l=Ye,c=K1,u=ts;function p(E,k){(k==null||k>E.length)&&(k=E.length);for(var S=0,R=new Array(k);S=0)&&Object.prototype.propertyIsEnumerable.call(E,R)&&(S[R]=E[R])}return S}function f(E,k){if(E==null)return{};var S={},R=Object.keys(E),T,P;for(P=0;P=0)&&(S[T]=E[T]);return S}function v(E,k){return h(E)||y(E,k)||d(E,k)||b()}function d(E,k){if(E){if(typeof E=="string")return p(E,k);var S=Object.prototype.toString.call(E).slice(8,-1);if(S==="Object"&&E.constructor&&(S=E.constructor.name),S==="Map"||S==="Set")return Array.from(S);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return p(E,k)}}var w=r.default.forwardRef(function(E,k){var S=E.color,R=E.variant,T=E.className,P=E.children,j=m(E,["color","variant","className","children"]),L=(0,l.useTheme)().timelineIcon,D=L.styles,B=L.valid,V=D.base,q=D.variants,z=v((0,c.useTimelineItem)(),2),F=z[1],N=r.default.useRef(null),W=(0,o.useMergeRefs)([k,N]);r.default.useEffect(function(){var Z=N.current;if(Z){var U=Z.getBoundingClientRect().width;return F(U),function(){F(0)}}},[F,T,P]);var G=(0,s.default)(q[(0,i.default)(B.variants,R,"filled")][(0,i.default)(B.colors,S,"blue")]),Q=(0,a.twMerge)((0,s.default)(V),G,T);return r.default.createElement("span",g({ref:W},j,{className:Q}),P)});w.propTypes={children:u.propTypeChildren,className:u.propTypeClassName,color:n.default.oneOf(u.propTypeColor),variant:n.default.oneOf(u.propTypeVariant)},w.displayName="MaterialTailwind.TimelineIcon";var _=w})(ZZ);var QZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,w){for(var _ in w)Object.defineProperty(d,_,{enumerable:!0,get:w[_]})}t(e,{TimelineHeader:function(){return f},default:function(){return v}});var r=p(O),n=Je,o=p(Ze),a=Ye,i=K1,s=ts;function l(d,w){(w==null||w>d.length)&&(w=d.length);for(var _=0,E=new Array(w);_=0)&&Object.prototype.propertyIsEnumerable.call(d,E)&&(_[E]=d[E])}return _}function y(d,w){if(d==null)return{};var _={},E=Object.keys(d),k,S;for(S=0;S=0)&&(_[k]=d[k]);return _}function b(d,w){return c(d)||h(d,w)||m(d,w)||g()}function m(d,w){if(d){if(typeof d=="string")return l(d,w);var _=Object.prototype.toString.call(d).slice(8,-1);if(_==="Object"&&d.constructor&&(_=d.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return l(d,w)}}var f=r.default.forwardRef(function(d,w){var _=d.className,E=d.children,k=x(d,["className","children"]),S=(0,a.useTheme)().timelineBody,R=S.styles,T=R.base,P=b((0,i.useTimelineItem)(),1),j=P[0],L=(0,n.twMerge)((0,o.default)(T),_);return r.default.createElement("div",u({},k,{ref:w,className:L}),r.default.createElement("span",{className:"pointer-events-none invisible h-full flex-shrink-0",style:{width:"".concat(j,"px")}}),r.default.createElement("div",null,E))});f.propTypes={children:s.propTypeChildren,className:s.propTypeClassName},f.displayName="MaterialTailwind.TimelineHeader";var v=f})(QZ);var JZ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,x){for(var y in x)Object.defineProperty(g,y,{enumerable:!0,get:x[y]})}t(e,{TimelineHeader:function(){return p},default:function(){return h}});var r=l(O),n=Je,o=l(Ze),a=Ye,i=ts;function s(){return s=Object.assign||function(g){for(var x=1;x=0)&&Object.prototype.propertyIsEnumerable.call(g,b)&&(y[b]=g[b])}return y}function u(g,x){if(g==null)return{};var y={},b=Object.keys(g),m,f;for(f=0;f=0)&&(y[m]=g[m]);return y}var p=r.default.forwardRef(function(g,x){var y=g.className,b=g.children,m=c(g,["className","children"]),f=(0,a.useTheme)().timelineHeader,v=f.styles,d=v.base,w=(0,n.twMerge)((0,o.default)(d),y);return r.default.createElement("div",s({},m,{ref:x,className:w}),b)});p.propTypes={children:i.propTypeChildren,className:i.propTypeClassName},p.displayName="MaterialTailwind.TimelineHeader";var h=p})(JZ);var eQ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,w){for(var _ in w)Object.defineProperty(d,_,{enumerable:!0,get:w[_]})}t(e,{TimelineConnector:function(){return f},default:function(){return v}});var r=p(O),n=Je,o=p(Ze),a=Ye,i=K1,s=ts;function l(d,w){(w==null||w>d.length)&&(w=d.length);for(var _=0,E=new Array(w);_=0)&&Object.prototype.propertyIsEnumerable.call(d,E)&&(_[E]=d[E])}return _}function y(d,w){if(d==null)return{};var _={},E=Object.keys(d),k,S;for(S=0;S=0)&&(_[k]=d[k]);return _}function b(d,w){return c(d)||h(d,w)||m(d,w)||g()}function m(d,w){if(d){if(typeof d=="string")return l(d,w);var _=Object.prototype.toString.call(d).slice(8,-1);if(_==="Object"&&d.constructor&&(_=d.constructor.name),_==="Map"||_==="Set")return Array.from(_);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return l(d,w)}}var f=r.default.forwardRef(function(d,w){var _=d.className,E=d.children,k=x(d,["className","children"]),S,R=(0,a.useTheme)().timelineConnector,T=R.styles,P=T.base,j=b((0,i.useTimelineItem)(),1),L=j[0],D=(0,o.default)(P.line),B=(0,n.twMerge)((0,o.default)(P.container),_);return r.default.createElement("span",u({},k,{ref:w,className:B,style:{top:"".concat(L,"px"),width:"".concat(L,"px"),opacity:L?1:0,height:"calc(100% - ".concat(L,"px)")}}),E&&r.default.isValidElement(E)?r.default.cloneElement(E,{className:(0,n.twMerge)(D,(S=E.props)===null||S===void 0?void 0:S.className)}):r.default.createElement("span",{className:D}))});f.propTypes={children:s.propTypeChildren,className:s.propTypeClassName},f.displayName="MaterialTailwind.TimelineConnector";var v=f})(eQ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,v){for(var d in v)Object.defineProperty(f,d,{enumerable:!0,get:v[d]})}t(e,{Timeline:function(){return b},TimelineItem:function(){return s.default},TimelineIcon:function(){return l.default},TimelineBody:function(){return c.default},TimelineHeader:function(){return u.default},TimelineConnector:function(){return p.default},default:function(){return m}});var r=g(O),n=Je,o=g(Ze),a=Ye,i=ts,s=g(K1),l=g(ZZ),c=g(QZ),u=g(JZ),p=g(eQ);function h(){return h=Object.assign||function(f){for(var v=1;v=0)&&Object.prototype.propertyIsEnumerable.call(f,w)&&(d[w]=f[w])}return d}function y(f,v){if(f==null)return{};var d={},w=Object.keys(f),_,E;for(E=0;E=0)&&(d[_]=f[_]);return d}var b=r.default.forwardRef(function(f,v){var d=f.className,w=f.children,_=x(f,["className","children"]),E=(0,a.useTheme)().timeline,k=E.styles,S=k.base,R=(0,n.twMerge)((0,o.default)(S),d);return r.default.createElement("ul",h({ref:v},_,{className:R}),w)});b.propTypes={className:i.propTypeClassName,children:i.propTypeChildren},b.displayName="MaterialTailwind.Timeline";var m=Object.assign(b,{Item:s.default,Icon:l.default,Header:u.default,Body:c.default,Connector:p.default})})(XZ);var tQ={},rQ={},eM={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,u){for(var p in u)Object.defineProperty(c,p,{enumerable:!0,get:u[p]})}t(e,{propTypesActiveStep:function(){return o},propTypesIsLastStep:function(){return a},propTypesIsFirstStep:function(){return i},propTypesChildren:function(){return s},propTypesClassName:function(){return l}});var r=n(et);function n(c){return c&&c.__esModule?c:{default:c}}var o=r.default.number,a=r.default.func,i=r.default.func,s=r.default.node,l=r.default.string})(eM);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(g,x){for(var y in x)Object.defineProperty(g,y,{enumerable:!0,get:x[y]})}t(e,{Step:function(){return p},default:function(){return h}});var r=l(O),n=Je,o=l(Ze),a=Ye,i=eM;function s(){return s=Object.assign||function(g){for(var x=1;x=0)&&Object.prototype.propertyIsEnumerable.call(g,b)&&(y[b]=g[b])}return y}function u(g,x){if(g==null)return{};var y={},b=Object.keys(g),m,f;for(f=0;f=0)&&(y[m]=g[m]);return y}var p=r.default.forwardRef(function(g,x){var y=g.className;g.activeClassName,g.completedClassName;var b=g.children,m=c(g,["className","activeClassName","completedClassName","children"]),f=(0,a.useTheme)().step,v=f.styles.base,d=(0,n.twMerge)((0,o.default)(v.initial),y);return r.default.createElement("div",s({},m,{ref:x,className:d}),b)});p.propTypes={className:i.propTypesClassName,activeClassName:i.propTypesClassName,completedClassName:i.propTypesClassName,children:i.propTypesChildren},p.displayName="MaterialTailwind.Step";var h=p})(rQ);(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(S,R){for(var T in R)Object.defineProperty(S,T,{enumerable:!0,get:R[T]})}t(e,{Stepper:function(){return E},Step:function(){return s.default},default:function(){return k}});var r=g(O),n=Gr,o=Je,a=g(Ze),i=Ye,s=g(rQ),l=eM;function c(S,R){(R==null||R>S.length)&&(R=S.length);for(var T=0,P=new Array(R);T=0)&&Object.prototype.propertyIsEnumerable.call(S,P)&&(T[P]=S[P])}return T}function d(S,R){if(S==null)return{};var T={},P=Object.keys(S),j,L;for(L=0;L=0)&&(T[j]=S[j]);return T}function w(S,R){return u(S)||x(S,R)||_(S,R)||y()}function _(S,R){if(S){if(typeof S=="string")return c(S,R);var T=Object.prototype.toString.call(S).slice(8,-1);if(T==="Object"&&S.constructor&&(T=S.constructor.name),T==="Map"||T==="Set")return Array.from(T);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return c(S,R)}}var E=r.default.forwardRef(function(S,R){var T=S.activeStep,P=S.isFirstStep,j=S.isLastStep,L=S.className,D=S.lineClassName,B=S.activeLineClassName,V=S.children,q=v(S,["activeStep","isFirstStep","isLastStep","className","lineClassName","activeLineClassName","children"]),z=(0,i.useTheme)(),F=z.stepper,N=z.step,W=F.styles.base,G=N.styles,Q=G.base,Z=r.default.useRef(null),U=w(r.default.useState(0),2),J=U[0],ae=U[1],ee=T===0,se=Array.isArray(V)&&T===V.length-1,ue=Array.isArray(V)&&T>V.length-1;r.default.useEffect(function(){if(Z.current){var me=V,be=Z.current.getBoundingClientRect().width,ke=be/(me.length-1);ae(ke)}},[V]);var we=r.default.useMemo(function(){if(!ue)return J*T},[T,ue,J]);(0,n.useMergeRefs)([R,Z]);var Oe=(0,o.twMerge)((0,a.default)(W.stepper),L),Te=(0,o.twMerge)((0,a.default)(W.line.initial),D),Se=(0,o.twMerge)(Te,(0,a.default)(W.line.active),B),Pe=(0,a.default)(Q.active),Ie=(0,a.default)(Q.completed);return r.default.useEffect(function(){j&&typeof j=="function"&&j(se),P&&typeof P=="function"&&P(ee)},[P,ee,j,se]),r.default.createElement("div",h({},q,{ref:Z,className:Oe}),r.default.createElement("div",{className:Te}),r.default.createElement("div",{className:Se,style:{width:"".concat(we,"px")}}),Array.isArray(V)?V.map(function(me,be){var ke,je;return r.default.cloneElement(me,f(b({key:be},me.props),{className:(0,o.twMerge)(me.props.className,be===T?(0,o.twMerge)(Pe,(ke=me.props)===null||ke===void 0?void 0:ke.activeClassName):be=0)&&Object.prototype.propertyIsEnumerable.call(b,v)&&(f[v]=b[v])}return f}function g(b,m){if(b==null)return{};var f={},v=Object.keys(b),d,w;for(w=0;w=0)&&(f[d]=b[d]);return f}var x=r.default.forwardRef(function(b,m){var f=b.children,v=h(b,["children"]),d,w=(0,o.useSpeedDial)(),_=w.getReferenceProps,E=w.refs,k=(0,n.useMergeRefs)([m,E.setReference]);return r.default.cloneElement(f,c({},_(p(c({},v),{ref:k,className:(0,a.twMerge)(f==null||(d=f.props)===null||d===void 0?void 0:d.className,v==null?void 0:v.className)}))))});x.propTypes={children:i.propTypesChildren},x.displayName="MaterialTailwind.SpeedDialHandler";var y=x}(FC)),FC}var zC={},TN;function eBe(){return TN||(TN=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,m){for(var f in m)Object.defineProperty(b,f,{enumerable:!0,get:m[f]})}t(e,{SpeedDialContent:function(){return x},default:function(){return y}});var r=p(O),n=rn,o=Gr,a=tM(),i=Ye,s=Je,l=p(Ze),c=Y1;function u(){return u=Object.assign||function(b){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(b,v)&&(f[v]=b[v])}return f}function g(b,m){if(b==null)return{};var f={},v=Object.keys(b),d,w;for(w=0;w=0)&&(f[d]=b[d]);return f}var x=r.default.forwardRef(function(b,m){var f=b.children,v=b.className,d=h(b,["children","className"]),w=(0,i.useTheme)(),_=w.speedDialContent.styles,E=(0,a.useSpeedDial)(),k=E.x,S=E.y,R=E.refs,T=E.open,P=E.strategy,j=E.getFloatingProps,L=E.animation,D=(0,o.useMergeRefs)([m,R.setFloating]),B=(0,s.twMerge)((0,l.default)(_),v),V=n.AnimatePresence;return r.default.createElement(n.LazyMotion,{features:n.domAnimation},r.default.createElement(V,null,T&&r.default.createElement("div",u({},d,{ref:D,className:B,style:{position:P,top:S??0,left:k??0}},j()),r.default.Children.map(f,function(q){return r.default.createElement(n.m.div,{initial:"unmount",exit:"unmount",animate:T?"mount":"unmount",variants:L},q)}))))});x.propTypes={children:c.propTypesChildren,className:c.propTypesClassName},x.displayName="MaterialTailwind.SpeedDialContent";var y=x}(zC)),zC}var nQ={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(u,p){for(var h in p)Object.defineProperty(u,h,{enumerable:!0,get:p[h]})}t(e,{SpeedDialAction:function(){return l},default:function(){return c}});var r=s(O),n=Ye,o=Je,a=s(Ze),i=Y1;function s(u){return u&&u.__esModule?u:{default:u}}var l=r.default.forwardRef(function(u,p){var h=u.className,g=u.children,x=(0,n.useTheme)(),y=x.speedDialAction.styles,b=(0,o.twMerge)((0,a.default)(y),h);return r.default.createElement("button",{ref:p,className:b},g)});l.propTypes={children:i.propTypesChildren,className:i.propTypesClassName},l.displayName="SpeedDialAction";var c=l})(nQ);var PN;function tM(){return PN||(PN=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,_){for(var E in _)Object.defineProperty(w,E,{enumerable:!0,get:_[E]})}t(e,{SpeedDialContext:function(){return m},useSpeedDial:function(){return f},SpeedDial:function(){return v},SpeedDialHandler:function(){return s.default},SpeedDialContent:function(){return l.default},SpeedDialAction:function(){return c.default},default:function(){return d}});var r=h(O),n=Gr,o=Ye,a=h(dn),i=Y1,s=h(Jze()),l=h(eBe()),c=h(nQ);function u(w,_){(_==null||_>w.length)&&(_=w.length);for(var E=0,k=new Array(_);E<_;E++)k[E]=w[E];return k}function p(w){if(Array.isArray(w))return w}function h(w){return w&&w.__esModule?w:{default:w}}function g(w,_){var E=w==null?null:typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(E!=null){var k=[],S=!0,R=!1,T,P;try{for(E=E.call(w);!(S=(T=E.next()).done)&&(k.push(T.value),!(_&&k.length===_));S=!0);}catch(j){R=!0,P=j}finally{try{!S&&E.return!=null&&E.return()}finally{if(R)throw P}}return k}}function x(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(w,_){return p(w)||g(w,_)||b(w,_)||x()}function b(w,_){if(w){if(typeof w=="string")return u(w,_);var E=Object.prototype.toString.call(w).slice(8,-1);if(E==="Object"&&w.constructor&&(E=w.constructor.name),E==="Map"||E==="Set")return Array.from(E);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return u(w,_)}}var m=r.default.createContext(null);function f(){var w=r.default.useContext(m);if(!w)throw new Error("useSpeedDial must be used within a .");return w}function v(w){var _=w.open,E=w.handler,k=w.placement,S=w.offset,R=w.dismiss,T=w.animate,P=w.children,j=(0,o.useTheme)(),L=j.speedDial.defaultProps,D=y(r.default.useState(!1),2),B=D[0],V=D[1];_=_??B,E=E??V,k=k??L.placement,S=S??L.offset,R=R??L.dismiss,T=T??L.animate;var q={unmount:{opacity:0,transform:"scale(0.5)",transition:{duration:.2,times:[.4,0,.2,1]}},mount:{opacity:1,transform:"scale(1)",transition:{duration:.2,times:[.4,0,.2,1]}}},z=(0,a.default)(q,T),F=(0,n.useFloatingNodeId)(),N=(0,n.useFloating)({open:_,nodeId:F,placement:k,onOpenChange:E,whileElementsMounted:n.autoUpdate,middleware:[(0,n.offset)(S),(0,n.flip)(),(0,n.shift)()]}),W=N.x,G=N.y,Q=N.strategy,Z=N.refs,U=N.context,J=(0,n.useInteractions)([(0,n.useHover)(U,{handleClose:(0,n.safePolygon)()}),(0,n.useDismiss)(U,R)]),ae=J.getReferenceProps,ee=J.getFloatingProps,se=r.default.useMemo(function(){return{x:W,y:G,strategy:Q,refs:Z,open:_,context:U,getReferenceProps:ae,getFloatingProps:ee,animation:z}},[U,ee,ae,Z,Q,W,G,_,z]);return r.default.createElement(m.Provider,{value:se},r.default.createElement("div",{className:"group"},r.default.createElement(n.FloatingNode,{id:F},P)))}v.propTypes={open:i.propTypesOpen,handler:i.propTypesHanlder,placement:i.propTypesPlacement,offset:i.propTypesOffset,dismiss:i.propTypesDismiss,className:i.propTypesClassName,children:i.propTypesChildren,animate:i.propTypesAnimate},v.displayName="MaterialTailwind.SpeedDial";var d=Object.assign(v,{Handler:s.default,Content:l.default,Action:c.default})}(DC)),DC}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),t(QW,e),t(bX,e),t(yX,e),t(wX,e),t(_X,e),t(EX,e),t(RX,e),t(SX,e),t(TX,e),t(n9,e),t(hZ,e),t(pZ,e),t(yZ,e),t(xZ,e),t(CZ,e),t(OZ,e),t(kZ,e),t(SZ,e),t(TZ,e),t(IZ,e),t(LZ,e),t($Z,e),t(NZ,e),t(FZ,e),t(BZ,e),t(VZ,e),t(UZ,e),t(qZ,e),t(GZ,e),t(KZ,e),t(YZ,e),t(XZ,e),t(tQ,e),t(tM(),e),t(Ye,e),t(rP,e);function t(r,n){return Object.keys(r).forEach(function(o){o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:function(){return r[o]}})}),r}})(ie);function ma(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:rM(e)?2:nM(e)?3:0}function xd(e,t){return _f(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function tBe(e,t){return _f(e)===2?e.get(t):e[t]}function oQ(e,t,r){var n=_f(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function aQ(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function rM(e){return sBe&&e instanceof Map}function nM(e){return lBe&&e instanceof Set}function nc(e){return e.o||e.t}function oM(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=sQ(e);delete t[gr];for(var r=_d(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=rBe),Object.freeze(e),t&&Dc(e,function(r,n){return aM(n,!0)},!0)),e}function rBe(){ma(2)}function iM(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ga(e){var t=kR[e];return t||ma(18,e),t}function nBe(e,t){kR[e]||(kR[e]=t)}function ER(){return l1}function BC(e,t){t&&(Ga("Patches"),e.u=[],e.s=[],e.v=t)}function Qx(e){CR(e),e.p.forEach(oBe),e.p=null}function CR(e){e===l1&&(l1=e.l)}function MN(e){return l1={p:[],l:l1,h:e,m:!0,_:0}}function oBe(e){var t=e[gr];t.i===0||t.i===1?t.j():t.g=!0}function VC(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Ga("ES5").S(t,e,n),n?(r[gr].P&&(Qx(t),ma(4)),Yi(e)&&(e=Jx(t,e),t.l||e_(t,e)),t.u&&Ga("Patches").M(r[gr].t,e,t.u,t.s)):e=Jx(t,r,[]),Qx(t),t.u&&t.v(t.u,t.s),e!==iQ?e:void 0}function Jx(e,t,r){if(iM(t))return t;var n=t[gr];if(!n)return Dc(t,function(s,l){return AN(e,n,t,s,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return e_(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=oM(n.k):n.o,a=o,i=!1;n.i===3&&(a=new Set(o),o.clear(),i=!0),Dc(a,function(s,l){return AN(e,n,o,s,l,r,i)}),e_(e,o,!1),r&&e.u&&Ga("Patches").N(n,r,e.u,e.s)}return n.o}function AN(e,t,r,n,o,a,i){if(yl(o)){var s=Jx(e,o,a&&t&&t.i!==3&&!xd(t.R,n)?a.concat(n):void 0);if(oQ(r,n,s),!yl(s))return;e.m=!1}else i&&r.add(o);if(Yi(o)&&!iM(o)){if(!e.h.D&&e._<1)return;Jx(e,o),t&&t.A.l||e_(e,o)}}function e_(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&aM(t,r)}function HC(e,t){var r=e[gr];return(r?nc(r):e)[t]}function jN(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Ps(e){e.P||(e.P=!0,e.l&&Ps(e.l))}function UC(e){e.o||(e.o=oM(e.t))}function OR(e,t,r){var n=rM(t)?Ga("MapSet").F(t,r):nM(t)?Ga("MapSet").T(t,r):e.O?function(o,a){var i=Array.isArray(o),s={i:i?1:0,A:a?a.A:ER(),P:!1,I:!1,R:{},l:a,t:o,k:null,o:null,j:null,C:!1},l=s,c=c1;i&&(l=[s],c=Kh);var u=Proxy.revocable(l,c),p=u.revoke,h=u.proxy;return s.k=h,s.j=p,h}(t,r):Ga("ES5").J(t,r);return(r?r.A:ER()).p.push(n),n}function aBe(e){return yl(e)||ma(22,e),function t(r){if(!Yi(r))return r;var n,o=r[gr],a=_f(r);if(o){if(!o.P&&(o.i<4||!Ga("ES5").K(o)))return o.t;o.I=!0,n=IN(r,a),o.I=!1}else n=IN(r,a);return Dc(n,function(i,s){o&&tBe(o.t,i)===s||oQ(n,i,t(s))}),a===3?new Set(n):n}(e)}function IN(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return oM(e)}function iBe(){function e(a,i){var s=o[a];return s?s.enumerable=i:o[a]=s={configurable:!0,enumerable:i,get:function(){var l=this[gr];return c1.get(l,a)},set:function(l){var c=this[gr];c1.set(c,a,l)}},s}function t(a){for(var i=a.length-1;i>=0;i--){var s=a[i][gr];if(!s.P)switch(s.i){case 5:n(s)&&Ps(s);break;case 4:r(s)&&Ps(s)}}}function r(a){for(var i=a.t,s=a.k,l=_d(s),c=l.length-1;c>=0;c--){var u=l[c];if(u!==gr){var p=i[u];if(p===void 0&&!xd(i,u))return!0;var h=s[u],g=h&&h[gr];if(g?g.t!==p:!aQ(h,p))return!0}}var x=!!i[gr];return l.length!==_d(i).length+(x?0:1)}function n(a){var i=a.k;if(i.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(i,i.length-1);if(s&&!s.get)return!0;for(var l=0;l1?m-1:0),v=1;v1?u-1:0),h=1;h=0;o--){var a=n[o];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}o>-1&&(n=n.slice(o+1));var i=Ga("Patches").$;return yl(r)?i(r,n):this.produce(r,function(s){return i(s,n)})},e}(),xo=new uBe,lQ=xo.produce;xo.produceWithPatches.bind(xo);xo.setAutoFreeze.bind(xo);xo.setUseProxies.bind(xo);xo.applyPatches.bind(xo);xo.createDraft.bind(xo);xo.finishDraft.bind(xo);function u1(e){"@babel/helpers - typeof";return u1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u1(e)}function dBe(e,t){if(u1(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(u1(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fBe(e){var t=dBe(e,"string");return u1(t)==="symbol"?t:String(t)}function hBe(e,t,r){return t=fBe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function FN(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(bn(1));return r(cQ)(e,t)}if(typeof e!="function")throw new Error(bn(2));var o=e,a=t,i=[],s=i,l=!1;function c(){s===i&&(s=i.slice())}function u(){if(l)throw new Error(bn(3));return a}function p(y){if(typeof y!="function")throw new Error(bn(4));if(l)throw new Error(bn(5));var b=!0;return c(),s.push(y),function(){if(b){if(l)throw new Error(bn(6));b=!1,c();var f=s.indexOf(y);s.splice(f,1),i=null}}}function h(y){if(!pBe(y))throw new Error(bn(7));if(typeof y.type>"u")throw new Error(bn(8));if(l)throw new Error(bn(9));try{l=!0,a=o(a,y)}finally{l=!1}for(var b=i=s,m=0;m"u")throw new Error(bn(12));if(typeof r(void 0,{type:t_.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(bn(13))})}function gBe(e){for(var t=Object.keys(e),r={},n=0;n"u")throw c&&c.type,new Error(bn(14));p[g]=b,u=u||b!==y}return u=u||a.length!==Object.keys(l).length,u?p:l}}function r_(){for(var e=arguments.length,t=new Array(e),r=0;r0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]{const{user:r,accessToken:n}=t.payload;e.user=r,e.accessToken=n,e.isAuthenticated=!0},logout:e=>{e.isAuthenticated=!1,e.user=null,e.accessToken=null},removeFollower:(e,t)=>{var r,n,o,a;(a=(r=e.user)==null?void 0:r.following)==null||a.splice((o=(n=e.user)==null?void 0:n.following)==null?void 0:o.indexOf(t.payload),1)},addFollower:(e,t)=>{var r,n,o,a;(n=(r=e.user)==null?void 0:r.following)!=null&&n.includes(t.payload)||(a=(o=e.user)==null?void 0:o.following)==null||a.push(t.payload)}}}),{setCredentials:d1,logout:SR,removeFollower:xyt,addFollower:_yt}=pQ.actions,UBe=pQ.reducer;var mQ={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},qN=Fe.createContext&&Fe.createContext(mQ),nl=globalThis&&globalThis.__assign||function(){return nl=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt=>{const r=YBe.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),si=e=>(e=e.toLowerCase(),t=>u9(t)===e),d9=e=>t=>typeof t===e,{isArray:Ef}=Array,f1=d9("undefined");function XBe(e){return e!==null&&!f1(e)&&e.constructor!==null&&!f1(e.constructor)&&Ko(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xQ=si("ArrayBuffer");function ZBe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&xQ(e.buffer),t}const QBe=d9("string"),Ko=d9("function"),_Q=d9("number"),f9=e=>e!==null&&typeof e=="object",JBe=e=>e===!0||e===!1,I6=e=>{if(u9(e)!=="object")return!1;const t=cM(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},eVe=si("Date"),tVe=si("File"),rVe=si("Blob"),nVe=si("FileList"),oVe=e=>f9(e)&&Ko(e.pipe),aVe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ko(e.append)&&((t=u9(e))==="formdata"||t==="object"&&Ko(e.toString)&&e.toString()==="[object FormData]"))},iVe=si("URLSearchParams"),sVe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Z1(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Ef(e))for(n=0,o=e.length;n0;)if(o=r[n],t===o.toLowerCase())return o;return null}const CQ=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),OQ=e=>!f1(e)&&e!==CQ;function TR(){const{caseless:e}=OQ(this)&&this||{},t={},r=(n,o)=>{const a=e&&EQ(t,o)||o;I6(t[a])&&I6(n)?t[a]=TR(t[a],n):I6(n)?t[a]=TR({},n):Ef(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n(Z1(t,(o,a)=>{r&&Ko(o)?e[a]=wQ(o,r):e[a]=o},{allOwnKeys:n}),e),cVe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),uVe=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},dVe=(e,t,r,n)=>{let o,a,i;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!n||n(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=r!==!1&&cM(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},fVe=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},hVe=e=>{if(!e)return null;if(Ef(e))return e;let t=e.length;if(!_Q(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},pVe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&cM(Uint8Array)),mVe=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},gVe=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},vVe=si("HTMLFormElement"),bVe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),GN=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),yVe=si("RegExp"),kQ=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Z1(r,(o,a)=>{t(o,a,e)!==!1&&(n[a]=o)}),Object.defineProperties(e,n)},wVe=e=>{kQ(e,(t,r)=>{if(Ko(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ko(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},xVe=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return Ef(e)?n(e):n(String(e).split(t)),r},_Ve=()=>{},EVe=(e,t)=>(e=+e,Number.isFinite(e)?e:t),KC="abcdefghijklmnopqrstuvwxyz",KN="0123456789",RQ={DIGIT:KN,ALPHA:KC,ALPHA_DIGIT:KC+KC.toUpperCase()+KN},CVe=(e=16,t=RQ.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function OVe(e){return!!(e&&Ko(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const kVe=e=>{const t=new Array(10),r=(n,o)=>{if(f9(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const a=Ef(n)?[]:{};return Z1(n,(i,s)=>{const l=r(i,o+1);!f1(l)&&(a[s]=l)}),t[o]=void 0,a}}return n};return r(e,0)},RVe=si("AsyncFunction"),SVe=e=>e&&(f9(e)||Ko(e))&&Ko(e.then)&&Ko(e.catch),Re={isArray:Ef,isArrayBuffer:xQ,isBuffer:XBe,isFormData:aVe,isArrayBufferView:ZBe,isString:QBe,isNumber:_Q,isBoolean:JBe,isObject:f9,isPlainObject:I6,isUndefined:f1,isDate:eVe,isFile:tVe,isBlob:rVe,isRegExp:yVe,isFunction:Ko,isStream:oVe,isURLSearchParams:iVe,isTypedArray:pVe,isFileList:nVe,forEach:Z1,merge:TR,extend:lVe,trim:sVe,stripBOM:cVe,inherits:uVe,toFlatObject:dVe,kindOf:u9,kindOfTest:si,endsWith:fVe,toArray:hVe,forEachEntry:mVe,matchAll:gVe,isHTMLForm:vVe,hasOwnProperty:GN,hasOwnProp:GN,reduceDescriptors:kQ,freezeMethods:wVe,toObjectSet:xVe,toCamelCase:bVe,noop:_Ve,toFiniteNumber:EVe,findKey:EQ,global:CQ,isContextDefined:OQ,ALPHABET:RQ,generateString:CVe,isSpecCompliantForm:OVe,toJSONObject:kVe,isAsyncFn:RVe,isThenable:SVe};function It(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}Re.inherits(It,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:Re.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const SQ=It.prototype,TQ={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{TQ[e]={value:e}});Object.defineProperties(It,TQ);Object.defineProperty(SQ,"isAxiosError",{value:!0});It.from=(e,t,r,n,o,a)=>{const i=Object.create(SQ);return Re.toFlatObject(e,i,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),It.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const TVe=null;function PR(e){return Re.isPlainObject(e)||Re.isArray(e)}function PQ(e){return Re.endsWith(e,"[]")?e.slice(0,-2):e}function YN(e,t,r){return e?e.concat(t).map(function(o,a){return o=PQ(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function PVe(e){return Re.isArray(e)&&!e.some(PR)}const MVe=Re.toFlatObject(Re,{},null,function(t){return/^is[A-Z]/.test(t)});function h9(e,t,r){if(!Re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Re.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!Re.isUndefined(b[y])});const n=r.metaTokens,o=r.visitor||u,a=r.dots,i=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&Re.isSpecCompliantForm(t);if(!Re.isFunction(o))throw new TypeError("visitor must be a function");function c(x){if(x===null)return"";if(Re.isDate(x))return x.toISOString();if(!l&&Re.isBlob(x))throw new It("Blob is not supported. Use a Buffer instead.");return Re.isArrayBuffer(x)||Re.isTypedArray(x)?l&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function u(x,y,b){let m=x;if(x&&!b&&typeof x=="object"){if(Re.endsWith(y,"{}"))y=n?y:y.slice(0,-2),x=JSON.stringify(x);else if(Re.isArray(x)&&PVe(x)||(Re.isFileList(x)||Re.endsWith(y,"[]"))&&(m=Re.toArray(x)))return y=PQ(y),m.forEach(function(v,d){!(Re.isUndefined(v)||v===null)&&t.append(i===!0?YN([y],d,a):i===null?y:y+"[]",c(v))}),!1}return PR(x)?!0:(t.append(YN(b,y,a),c(x)),!1)}const p=[],h=Object.assign(MVe,{defaultVisitor:u,convertValue:c,isVisitable:PR});function g(x,y){if(!Re.isUndefined(x)){if(p.indexOf(x)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(x),Re.forEach(x,function(m,f){(!(Re.isUndefined(m)||m===null)&&o.call(t,m,Re.isString(f)?f.trim():f,y,h))===!0&&g(m,y?y.concat(f):[f])}),p.pop()}}if(!Re.isObject(e))throw new TypeError("data must be an object");return g(e),t}function XN(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function uM(e,t){this._pairs=[],e&&h9(e,this,t)}const MQ=uM.prototype;MQ.append=function(t,r){this._pairs.push([t,r])};MQ.toString=function(t){const r=t?function(n){return t.call(this,n,XN)}:XN;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function AVe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function AQ(e,t,r){if(!t)return e;const n=r&&r.encode||AVe,o=r&&r.serialize;let a;if(o?a=o(t,r):a=Re.isURLSearchParams(t)?t.toString():new uM(t,r).toString(n),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class jVe{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Re.forEach(this.handlers,function(n){n!==null&&t(n)})}}const ZN=jVe,jQ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},IVe=typeof URLSearchParams<"u"?URLSearchParams:uM,LVe=typeof FormData<"u"?FormData:null,$Ve=typeof Blob<"u"?Blob:null,NVe=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),DVe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ha={isBrowser:!0,classes:{URLSearchParams:IVe,FormData:LVe,Blob:$Ve},isStandardBrowserEnv:NVe,isStandardBrowserWebWorkerEnv:DVe,protocols:["http","https","file","blob","url","data"]};function FVe(e,t){return h9(e,new Ha.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return Ha.isNode&&Re.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function zVe(e){return Re.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function BVe(e){const t={},r=Object.keys(e);let n;const o=r.length;let a;for(n=0;n=r.length;return i=!i&&Re.isArray(o)?o.length:i,l?(Re.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!s):((!o[i]||!Re.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],a)&&Re.isArray(o[i])&&(o[i]=BVe(o[i])),!s)}if(Re.isFormData(e)&&Re.isFunction(e.entries)){const r={};return Re.forEachEntry(e,(n,o)=>{t(zVe(n),o,r,0)}),r}return null}const VVe={"Content-Type":void 0};function HVe(e,t,r){if(Re.isString(e))try{return(t||JSON.parse)(e),Re.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const p9={transitional:jQ,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=Re.isObject(t);if(a&&Re.isHTMLForm(t)&&(t=new FormData(t)),Re.isFormData(t))return o&&o?JSON.stringify(IQ(t)):t;if(Re.isArrayBuffer(t)||Re.isBuffer(t)||Re.isStream(t)||Re.isFile(t)||Re.isBlob(t))return t;if(Re.isArrayBufferView(t))return t.buffer;if(Re.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return FVe(t,this.formSerializer).toString();if((s=Re.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return h9(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),HVe(t)):t}],transformResponse:[function(t){const r=this.transitional||p9.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(t&&Re.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?It.from(s,It.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ha.classes.FormData,Blob:Ha.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Re.forEach(["delete","get","head"],function(t){p9.headers[t]={}});Re.forEach(["post","put","patch"],function(t){p9.headers[t]=Re.merge(VVe)});const dM=p9,UVe=Re.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"]),WVe=e=>{const t={};let r,n,o;return e&&e.split(` +`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&UVe[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},QN=Symbol("internals");function p0(e){return e&&String(e).trim().toLowerCase()}function L6(e){return e===!1||e==null?e:Re.isArray(e)?e.map(L6):String(e)}function qVe(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const GVe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function YC(e,t,r,n,o){if(Re.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!Re.isString(t)){if(Re.isString(n))return t.indexOf(n)!==-1;if(Re.isRegExp(n))return n.test(t)}}function KVe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function YVe(e,t){const r=Re.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,i){return this[n].call(this,t,o,a,i)},configurable:!0})})}let m9=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function a(s,l,c){const u=p0(l);if(!u)throw new Error("header name must be a non-empty string");const p=Re.findKey(o,u);(!p||o[p]===void 0||c===!0||c===void 0&&o[p]!==!1)&&(o[p||l]=L6(s))}const i=(s,l)=>Re.forEach(s,(c,u)=>a(c,u,l));return Re.isPlainObject(t)||t instanceof this.constructor?i(t,r):Re.isString(t)&&(t=t.trim())&&!GVe(t)?i(WVe(t),r):t!=null&&a(r,t,n),this}get(t,r){if(t=p0(t),t){const n=Re.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return qVe(o);if(Re.isFunction(r))return r.call(this,o,n);if(Re.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=p0(t),t){const n=Re.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||YC(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function a(i){if(i=p0(i),i){const s=Re.findKey(n,i);s&&(!r||YC(n,n[s],s,r))&&(delete n[s],o=!0)}}return Re.isArray(t)?t.forEach(a):a(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const a=r[n];(!t||YC(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const r=this,n={};return Re.forEach(this,(o,a)=>{const i=Re.findKey(n,a);if(i){r[i]=L6(o),delete r[a];return}const s=t?KVe(a):String(a).trim();s!==a&&delete r[a],r[s]=L6(o),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Re.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&Re.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[QN]=this[QN]={accessors:{}}).accessors,o=this.prototype;function a(i){const s=p0(i);n[s]||(YVe(o,i),n[s]=!0)}return Re.isArray(t)?t.forEach(a):a(t),this}};m9.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Re.freezeMethods(m9.prototype);Re.freezeMethods(m9);const Fi=m9;function XC(e,t){const r=this||dM,n=t||r,o=Fi.from(n.headers);let a=n.data;return Re.forEach(e,function(s){a=s.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function LQ(e){return!!(e&&e.__CANCEL__)}function Q1(e,t,r){It.call(this,e??"canceled",It.ERR_CANCELED,t,r),this.name="CanceledError"}Re.inherits(Q1,It,{__CANCEL__:!0});function XVe(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new It("Request failed with status code "+r.status,[It.ERR_BAD_REQUEST,It.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const ZVe=Ha.isStandardBrowserEnv?function(){return{write:function(r,n,o,a,i,s){const l=[];l.push(r+"="+encodeURIComponent(n)),Re.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),Re.isString(a)&&l.push("path="+a),Re.isString(i)&&l.push("domain="+i),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function QVe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function JVe(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function $Q(e,t){return e&&!QVe(t)?JVe(e,t):t}const eHe=Ha.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(a){let i=a;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(i){const s=Re.isString(i)?o(i):i;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function tHe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function rHe(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[a];i||(i=c),r[o]=l,n[o]=c;let p=a,h=0;for(;p!==o;)h+=r[p++],p=p%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i{const a=o.loaded,i=o.lengthComputable?o.total:void 0,s=a-r,l=n(s),c=a<=i;r=a;const u={loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&c?(i-a)/l:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const nHe=typeof XMLHttpRequest<"u",oHe=nHe&&function(e){return new Promise(function(r,n){let o=e.data;const a=Fi.from(e.headers).normalize(),i=e.responseType;let s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}Re.isFormData(o)&&(Ha.isStandardBrowserEnv||Ha.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(g+":"+x))}const u=$Q(e.baseURL,e.url);c.open(e.method.toUpperCase(),AQ(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function p(){if(!c)return;const g=Fi.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),y={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:g,config:e,request:c};XVe(function(m){r(m),l()},function(m){n(m),l()},y),c=null}if("onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(p)},c.onabort=function(){c&&(n(new It("Request aborted",It.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new It("Network Error",It.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let x=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||jQ;e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),n(new It(x,y.clarifyTimeoutError?It.ETIMEDOUT:It.ECONNABORTED,e,c)),c=null},Ha.isStandardBrowserEnv){const g=(e.withCredentials||eHe(u))&&e.xsrfCookieName&&ZVe.read(e.xsrfCookieName);g&&a.set(e.xsrfHeaderName,g)}o===void 0&&a.setContentType(null),"setRequestHeader"in c&&Re.forEach(a.toJSON(),function(x,y){c.setRequestHeader(y,x)}),Re.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",JN(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",JN(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=g=>{c&&(n(!g||g.type?new Q1(null,e,c):g),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const h=tHe(u);if(h&&Ha.protocols.indexOf(h)===-1){n(new It("Unsupported protocol "+h+":",It.ERR_BAD_REQUEST,e));return}c.send(o||null)})},$6={http:TVe,xhr:oHe};Re.forEach($6,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const aHe={getAdapter:e=>{e=Re.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let o=0;oe instanceof Fi?e.toJSON():e;function Zd(e,t){t=t||{};const r={};function n(c,u,p){return Re.isPlainObject(c)&&Re.isPlainObject(u)?Re.merge.call({caseless:p},c,u):Re.isPlainObject(u)?Re.merge({},u):Re.isArray(u)?u.slice():u}function o(c,u,p){if(Re.isUndefined(u)){if(!Re.isUndefined(c))return n(void 0,c,p)}else return n(c,u,p)}function a(c,u){if(!Re.isUndefined(u))return n(void 0,u)}function i(c,u){if(Re.isUndefined(u)){if(!Re.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function s(c,u,p){if(p in t)return n(c,u);if(p in e)return n(void 0,c)}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials: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:s,headers:(c,u)=>o(tD(c),tD(u),!0)};return Re.forEach(Object.keys(Object.assign({},e,t)),function(u){const p=l[u]||o,h=p(e[u],t[u],u);Re.isUndefined(h)&&p!==s||(r[u]=h)}),r}const NQ="1.4.0",fM={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{fM[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const rD={};fM.transitional=function(t,r,n){function o(a,i){return"[Axios v"+NQ+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,s)=>{if(t===!1)throw new It(o(i," has been removed"+(r?" in "+r:"")),It.ERR_DEPRECATED);return r&&!rD[i]&&(rD[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,s):!0}};function iHe(e,t,r){if(typeof e!="object")throw new It("options must be an object",It.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],i=t[a];if(i){const s=e[a],l=s===void 0||i(s,a,e);if(l!==!0)throw new It("option "+a+" must be "+l,It.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new It("Unknown option "+a,It.ERR_BAD_OPTION)}}const MR={assertOptions:iHe,validators:fM},vs=MR.validators;let n_=class{constructor(t){this.defaults=t,this.interceptors={request:new ZN,response:new ZN}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Zd(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&MR.assertOptions(n,{silentJSONParsing:vs.transitional(vs.boolean),forcedJSONParsing:vs.transitional(vs.boolean),clarifyTimeoutError:vs.transitional(vs.boolean)},!1),o!=null&&(Re.isFunction(o)?r.paramsSerializer={serialize:o}:MR.assertOptions(o,{encode:vs.function,serialize:vs.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i;i=a&&Re.merge(a.common,a[r.method]),i&&Re.forEach(["delete","get","head","post","put","patch","common"],x=>{delete a[x]}),r.headers=Fi.concat(i,a);const s=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(l=l&&y.synchronous,s.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let u,p=0,h;if(!l){const x=[eD.bind(this),void 0];for(x.unshift.apply(x,s),x.push.apply(x,c),h=x.length,u=Promise.resolve(r);p{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(s=>{n.subscribe(s),a=s}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,s){n.reason||(n.reason=new Q1(a,i,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new DQ(function(o){t=o}),cancel:t}}};const lHe=sHe;function cHe(e){return function(r){return e.apply(null,r)}}function uHe(e){return Re.isObject(e)&&e.isAxiosError===!0}const AR={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(AR).forEach(([e,t])=>{AR[t]=e});const dHe=AR;function FQ(e){const t=new N6(e),r=wQ(N6.prototype.request,t);return Re.extend(r,N6.prototype,t,{allOwnKeys:!0}),Re.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return FQ(Zd(e,o))},r}const Wr=FQ(dM);Wr.Axios=N6;Wr.CanceledError=Q1;Wr.CancelToken=lHe;Wr.isCancel=LQ;Wr.VERSION=NQ;Wr.toFormData=h9;Wr.AxiosError=It;Wr.Cancel=Wr.CanceledError;Wr.all=function(t){return Promise.all(t)};Wr.spread=cHe;Wr.isAxiosError=uHe;Wr.mergeConfig=Zd;Wr.AxiosHeaders=Fi;Wr.formToJSON=e=>IQ(Re.isHTMLForm(e)?new FormData(e):e);Wr.HttpStatusCode=dHe;Wr.default=Wr;const J1=Wr,{Axios:Syt,AxiosError:Tyt,CanceledError:Pyt,isCancel:Myt,CancelToken:Ayt,VERSION:jyt,all:Iyt,Cancel:Lyt,isAxiosError:ei,spread:$yt,toFormData:Nyt,AxiosHeaders:Dyt,HttpStatusCode:Fyt,formToJSON:zyt,mergeConfig:Byt}=J1,Ut={API_BASE_URL:"https://socioverse.online",CLIENT_BASE_URL:"https://socioverse.online",DEFAULT_IMG:"https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_1280.png",ADMIN_LOGIN_SVG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381015/socioverse%20stock/AdminLoginSvg_ain9jo.svg",AUTHENTICATION_SVG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381022/socioverse%20stock/AuthenticationSvg_iirmb2.svg",CHAT_SVG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381151/socioverse%20stock/ChatSvg_acpykg.svg",GOOGLE_LOGO_SVG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381161/socioverse%20stock/GoogleLogoSvg_atvkrt.svg",LOADER_SVG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381169/socioverse%20stock/Loader_dofs8c.svg",LOADER_PNG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381177/socioverse%20stock/LoaderPng_ahqjxq.png",LOGIN_ALERT_SVG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381181/socioverse%20stock/LoginAlertSvg_yx47iz.svg",NO_DATA_AVAILABLE_SVG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381193/socioverse%20stock/NoDataAvailable_jovfkq.svg",PROFILE_SVG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381205/socioverse%20stock/profileSvg_mwpb71.svg",SETTING_SVG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381215/socioverse%20stock/Settings_lv6rse.svg",ERROR_NOT_FOUND_SVG:"https://res.cloudinary.com/dkxyfsxso/image/upload/v1702381003/socioverse%20stock/404_nvavnv.svg"},nt={position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light"},fHe={coverPhoto:null,profilePhoto:null},hHe=X1({name:"image",initialState:fHe,reducers:{setCoverPhoto:(e,t)=>{e.coverPhoto=t.payload},setProfilePhoto:(e,t)=>{e.profilePhoto=t.payload}}}),pHe=hHe.reducer,mHe={description:null,image:null,hashtags:null,createdAt:null,updatedAt:null,hashtagSearch:null,hashtagSearchOn:!1,searchModeOn:!1,isSharedPost:!1,sharedPostId:null},zQ=X1({name:"post",initialState:mHe,reducers:{setPost:(e,t)=>{e.description=t.payload.description,e.image=t.payload.image,e.hashtags=t.payload.hashtags,e.createdAt=t.payload.createdAt,e.updatedAt=t.payload.updatedAt},setTempPostImage:(e,t)=>{e.image=e.image?[...e.image,t.payload]:[t.payload]},deleteTempPostImage:(e,t)=>{var r;e.image=(r=e.image)==null?void 0:r.filter(n=>n!==t.payload)},resetTempPostImage:e=>{e.image=null},setHashtagSearch:(e,t)=>{e.hashtagSearch=t.payload,e.hashtagSearchOn=!0},resetHashtagSearch:e=>{e.hashtagSearch=null,e.hashtagSearchOn=!1},enableSearchMode:e=>{e.searchModeOn=!0},disableSearchMode:e=>{e.searchModeOn=!1},setIsSharedPost:(e,t)=>{e.isSharedPost=t.payload},setSharedPostId:(e,t)=>{e.sharedPostId=t.payload}}}),{setPost:Vyt,setTempPostImage:Hyt,deleteTempPostImage:Uyt,resetTempPostImage:Wyt,setHashtagSearch:BQ,resetHashtagSearch:gHe,enableSearchMode:VQ,disableSearchMode:HQ,setIsSharedPost:qyt,setSharedPostId:Gyt}=zQ.actions,vHe=zQ.reducer,bHe={accessToken:null,isAuthenticated:!1,searchTextForComments:"",searchTextForReplies:""},UQ=X1({name:"admin",initialState:bHe,reducers:{setAdminCredentials:(e,t)=>{const{accessToken:r}=t.payload;e.accessToken=r,e.isAuthenticated=!0},adminLogout:e=>{e.isAuthenticated=!1,e.accessToken=null},setSearchTextForComments:(e,t)=>{e.searchTextForComments=t.payload},setSearchTextForReplies:(e,t)=>{e.searchTextForReplies=t.payload}}}),{setAdminCredentials:jR,adminLogout:yHe,setSearchTextForComments:wHe,setSearchTextForReplies:xHe}=UQ.actions,_He=UQ.reducer,EHe={selectedChat:null,chats:[],notification:[],fetchUserChatsAgain:!1,openVideoCall:!1,joinedVideoRoom:!1},WQ=X1({name:"chat",initialState:EHe,reducers:{setSelectedChat:(e,t)=>{e.selectedChat=t.payload},setChats:(e,t)=>{e.chats=t.payload},initializeNotification:(e,t)=>{e.notification=t.payload},setNotification:(e,t)=>{e.notification.some(r=>r._id===t.payload._id)||(e.notification=[t.payload,...e.notification])},setFetchUserChatsAgain:(e,t)=>{e.fetchUserChatsAgain=t.payload},deleteNotification:(e,t)=>{e.notification.some(r=>r._id===t.payload._id)&&(e.notification=e.notification.filter(r=>r._id!==t.payload._id))},setOpenVideoCall:(e,t)=>{e.openVideoCall=t.payload},setJoinVideoRoom:(e,t)=>{e.joinedVideoRoom=t.payload}}}),{setSelectedChat:qQ,setChats:Kyt,setNotification:CHe,setFetchUserChatsAgain:OHe,deleteNotification:nD,initializeNotification:kHe,setOpenVideoCall:RHe,setJoinVideoRoom:SHe}=WQ.actions,THe=WQ.reducer,_o=jBe({reducer:{auth:UBe,photo:pHe,post:vHe,admin:_He,chat:THe}});function GQ(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="number"&&!isNaN(e),Fc=e=>typeof e=="string",Zn=e=>typeof e=="function",D6=e=>Fc(e)||Zn(e)?e:null,QC=e=>O.isValidElement(e)||Fc(e)||Zn(e)||vp(e);function PHe(e,t,r){r===void 0&&(r=300);const{scrollHeight:n,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=n+"px",o.transition=`all ${r}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,r)})})}function g9(e){let{enter:t,exit:r,appendPosition:n=!1,collapse:o=!0,collapseDuration:a=300}=e;return function(i){let{children:s,position:l,preventExitTransition:c,done:u,nodeRef:p,isIn:h}=i;const g=n?`${t}--${l}`:t,x=n?`${r}--${l}`:r,y=O.useRef(0);return O.useLayoutEffect(()=>{const b=p.current,m=g.split(" "),f=v=>{v.target===p.current&&(b.dispatchEvent(new Event("d")),b.removeEventListener("animationend",f),b.removeEventListener("animationcancel",f),y.current===0&&v.type!=="animationcancel"&&b.classList.remove(...m))};b.classList.add(...m),b.addEventListener("animationend",f),b.addEventListener("animationcancel",f)},[]),O.useEffect(()=>{const b=p.current,m=()=>{b.removeEventListener("animationend",m),o?PHe(b,u,a):u()};h||(c?m():(y.current=1,b.className+=` ${x}`,b.addEventListener("animationend",m)))},[h]),Fe.createElement(Fe.Fragment,null,s)}}function oD(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Do={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const r=this.list.get(e).filter(n=>n!==t);return this.list.set(e,r),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const r=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(r)})}},um=e=>{let{theme:t,type:r,...n}=e;return Fe.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${r})`,...n})},JC={info:function(e){return Fe.createElement(um,{...e},Fe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return Fe.createElement(um,{...e},Fe.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return Fe.createElement(um,{...e},Fe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return Fe.createElement(um,{...e},Fe.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return Fe.createElement("div",{className:"Toastify__spinner"})}};function MHe(e){const[,t]=O.useReducer(g=>g+1,0),[r,n]=O.useState([]),o=O.useRef(null),a=O.useRef(new Map).current,i=g=>r.indexOf(g)!==-1,s=O.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:i,getToast:g=>a.get(g)}).current;function l(g){let{containerId:x}=g;const{limit:y}=s.props;!y||x&&s.containerId!==x||(s.count-=s.queue.length,s.queue=[])}function c(g){n(x=>g==null?[]:x.filter(y=>y!==g))}function u(){const{toastContent:g,toastProps:x,staleId:y}=s.queue.shift();h(g,x,y)}function p(g,x){let{delay:y,staleId:b,...m}=x;if(!QC(g)||function(P){return!o.current||s.props.enableMultiContainer&&P.containerId!==s.props.containerId||a.has(P.toastId)&&P.updateId==null}(m))return;const{toastId:f,updateId:v,data:d}=m,{props:w}=s,_=()=>c(f),E=v==null;E&&s.count++;const k={...w,style:w.toastStyle,key:s.toastKey++,...Object.fromEntries(Object.entries(m).filter(P=>{let[j,L]=P;return L!=null})),toastId:f,updateId:v,data:d,closeToast:_,isIn:!1,className:D6(m.className||w.toastClassName),bodyClassName:D6(m.bodyClassName||w.bodyClassName),progressClassName:D6(m.progressClassName||w.progressClassName),autoClose:!m.isLoading&&(S=m.autoClose,R=w.autoClose,S===!1||vp(S)&&S>0?S:R),deleteToast(){const P=oD(a.get(f),"removed");a.delete(f),Do.emit(4,P);const j=s.queue.length;if(s.count=f==null?s.count-s.displayedToast:s.count-1,s.count<0&&(s.count=0),j>0){const L=f==null?s.props.limit:1;if(j===1||L===1)s.displayedToast++,u();else{const D=L>j?j:L;s.displayedToast=D;for(let B=0;Bz in JC)(L)&&(V=JC[L](q))),V}(k),Zn(m.onOpen)&&(k.onOpen=m.onOpen),Zn(m.onClose)&&(k.onClose=m.onClose),k.closeButton=w.closeButton,m.closeButton===!1||QC(m.closeButton)?k.closeButton=m.closeButton:m.closeButton===!0&&(k.closeButton=!QC(w.closeButton)||w.closeButton);let T=g;O.isValidElement(g)&&!Fc(g.type)?T=O.cloneElement(g,{closeToast:_,toastProps:k,data:d}):Zn(g)&&(T=g({closeToast:_,toastProps:k,data:d})),w.limit&&w.limit>0&&s.count>w.limit&&E?s.queue.push({toastContent:T,toastProps:k,staleId:b}):vp(y)?setTimeout(()=>{h(T,k,b)},y):h(T,k,b)}function h(g,x,y){const{toastId:b}=x;y&&a.delete(y);const m={content:g,props:x};a.set(b,m),n(f=>[...f,b].filter(v=>v!==y)),Do.emit(4,oD(m,m.props.updateId==null?"added":"updated"))}return O.useEffect(()=>(s.containerId=e.containerId,Do.cancelEmit(3).on(0,p).on(1,g=>o.current&&c(g)).on(5,l).emit(2,s),()=>{a.clear(),Do.emit(3,s)}),[]),O.useEffect(()=>{s.props=e,s.isToastActive=i,s.displayedToast=r.length}),{getToastToRender:function(g){const x=new Map,y=Array.from(a.values());return e.newestOnTop&&y.reverse(),y.forEach(b=>{const{position:m}=b.props;x.has(m)||x.set(m,[]),x.get(m).push(b)}),Array.from(x,b=>g(b[0],b[1]))},containerRef:o,isToastActive:i}}function aD(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function iD(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function AHe(e){const[t,r]=O.useState(!1),[n,o]=O.useState(!1),a=O.useRef(null),i=O.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,s=O.useRef(e),{autoClose:l,pauseOnHover:c,closeToast:u,onClick:p,closeOnClick:h}=e;function g(d){if(e.draggable){d.nativeEvent.type==="touchstart"&&d.nativeEvent.preventDefault(),i.didMove=!1,document.addEventListener("mousemove",m),document.addEventListener("mouseup",f),document.addEventListener("touchmove",m),document.addEventListener("touchend",f);const w=a.current;i.canCloseOnClick=!0,i.canDrag=!0,i.boundingRect=w.getBoundingClientRect(),w.style.transition="",i.x=aD(d.nativeEvent),i.y=iD(d.nativeEvent),e.draggableDirection==="x"?(i.start=i.x,i.removalDistance=w.offsetWidth*(e.draggablePercent/100)):(i.start=i.y,i.removalDistance=w.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function x(d){if(i.boundingRect){const{top:w,bottom:_,left:E,right:k}=i.boundingRect;d.nativeEvent.type!=="touchend"&&e.pauseOnHover&&i.x>=E&&i.x<=k&&i.y>=w&&i.y<=_?b():y()}}function y(){r(!0)}function b(){r(!1)}function m(d){const w=a.current;i.canDrag&&w&&(i.didMove=!0,t&&b(),i.x=aD(d),i.y=iD(d),i.delta=e.draggableDirection==="x"?i.x-i.start:i.y-i.start,i.start!==i.x&&(i.canCloseOnClick=!1),w.style.transform=`translate${e.draggableDirection}(${i.delta}px)`,w.style.opacity=""+(1-Math.abs(i.delta/i.removalDistance)))}function f(){document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",f),document.removeEventListener("touchmove",m),document.removeEventListener("touchend",f);const d=a.current;if(i.canDrag&&i.didMove&&d){if(i.canDrag=!1,Math.abs(i.delta)>i.removalDistance)return o(!0),void e.closeToast();d.style.transition="transform 0.2s, opacity 0.2s",d.style.transform=`translate${e.draggableDirection}(0)`,d.style.opacity="1"}}O.useEffect(()=>{s.current=e}),O.useEffect(()=>(a.current&&a.current.addEventListener("d",y,{once:!0}),Zn(e.onOpen)&&e.onOpen(O.isValidElement(e.children)&&e.children.props),()=>{const d=s.current;Zn(d.onClose)&&d.onClose(O.isValidElement(d.children)&&d.children.props)}),[]),O.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||b(),window.addEventListener("focus",y),window.addEventListener("blur",b)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",y),window.removeEventListener("blur",b))}),[e.pauseOnFocusLoss]);const v={onMouseDown:g,onTouchStart:g,onMouseUp:x,onTouchEnd:x};return l&&c&&(v.onMouseEnter=b,v.onMouseLeave=y),h&&(v.onClick=d=>{p&&p(d),i.canCloseOnClick&&u()}),{playToast:y,pauseToast:b,isRunning:t,preventExitTransition:n,toastRef:a,eventHandlers:v}}function KQ(e){let{closeToast:t,theme:r,ariaLabel:n="close"}=e;return Fe.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:o=>{o.stopPropagation(),t(o)},"aria-label":n},Fe.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Fe.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function jHe(e){let{delay:t,isRunning:r,closeToast:n,type:o="default",hide:a,className:i,style:s,controlledProgress:l,progress:c,rtl:u,isIn:p,theme:h}=e;const g=a||l&&c===0,x={...s,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused",opacity:g?0:1};l&&(x.transform=`scaleX(${c})`);const y=Ns("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),b=Zn(i)?i({rtl:u,type:o,defaultClassName:y}):Ns(y,i);return Fe.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:b,style:x,[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{p&&n()}})}const IHe=e=>{const{isRunning:t,preventExitTransition:r,toastRef:n,eventHandlers:o}=AHe(e),{closeButton:a,children:i,autoClose:s,onClick:l,type:c,hideProgressBar:u,closeToast:p,transition:h,position:g,className:x,style:y,bodyClassName:b,bodyStyle:m,progressClassName:f,progressStyle:v,updateId:d,role:w,progress:_,rtl:E,toastId:k,deleteToast:S,isIn:R,isLoading:T,iconOut:P,closeOnClick:j,theme:L}=e,D=Ns("Toastify__toast",`Toastify__toast-theme--${L}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":E},{"Toastify__toast--close-on-click":j}),B=Zn(x)?x({rtl:E,position:g,type:c,defaultClassName:D}):Ns(D,x),V=!!_||!s,q={closeToast:p,type:c,theme:L};let z=null;return a===!1||(z=Zn(a)?a(q):O.isValidElement(a)?O.cloneElement(a,q):KQ(q)),Fe.createElement(h,{isIn:R,done:S,position:g,preventExitTransition:r,nodeRef:n},Fe.createElement("div",{id:k,onClick:l,className:B,...o,style:y,ref:n},Fe.createElement("div",{...R&&{role:w},className:Zn(b)?b({type:c}):Ns("Toastify__toast-body",b),style:m},P!=null&&Fe.createElement("div",{className:Ns("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!T})},P),Fe.createElement("div",null,i)),z,Fe.createElement(jHe,{...d&&!V?{key:`pb-${d}`}:{},rtl:E,theme:L,delay:s,isRunning:t,isIn:R,closeToast:p,hide:u,type:c,style:v,className:f,controlledProgress:V,progress:_||0})))},v9=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},LHe=g9(v9("bounce",!0));g9(v9("slide",!0));g9(v9("zoom"));g9(v9("flip"));const to=O.forwardRef((e,t)=>{const{getToastToRender:r,containerRef:n,isToastActive:o}=MHe(e),{className:a,style:i,rtl:s,containerId:l}=e;function c(u){const p=Ns("Toastify__toast-container",`Toastify__toast-container--${u}`,{"Toastify__toast-container--rtl":s});return Zn(a)?a({position:u,rtl:s,defaultClassName:p}):Ns(p,D6(a))}return O.useEffect(()=>{t&&(t.current=n.current)},[]),Fe.createElement("div",{ref:n,className:"Toastify",id:l},r((u,p)=>{const h=p.length?{...i}:{...i,pointerEvents:"none"};return Fe.createElement("div",{className:c(u),style:h,key:`container-${u}`},p.map((g,x)=>{let{content:y,props:b}=g;return Fe.createElement(IHe,{...b,isIn:o(b.toastId),style:{...b.style,"--nth":x+1,"--len":p.length},key:`toast-${b.key}`},y)}))}))});to.displayName="ToastContainer",to.defaultProps={position:"top-right",transition:LHe,autoClose:5e3,closeButton:KQ,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let eO,oc=new Map,Yh=[],$He=1;function YQ(){return""+$He++}function NHe(e){return e&&(Fc(e.toastId)||vp(e.toastId))?e.toastId:YQ()}function bp(e,t){return oc.size>0?Do.emit(0,e,t):Yh.push({content:e,options:t}),t.toastId}function o_(e,t){return{...t,type:t&&t.type||e,toastId:NHe(t)}}function dm(e){return(t,r)=>bp(t,o_(e,r))}function Ce(e,t){return bp(e,o_("default",t))}Ce.loading=(e,t)=>bp(e,o_("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Ce.promise=function(e,t,r){let n,{pending:o,error:a,success:i}=t;o&&(n=Fc(o)?Ce.loading(o,r):Ce.loading(o.render,{...r,...o}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(u,p,h)=>{if(p==null)return void Ce.dismiss(n);const g={type:u,...s,...r,data:h},x=Fc(p)?{render:p}:p;return n?Ce.update(n,{...g,...x}):Ce(x.render,{...g,...x}),h},c=Zn(e)?e():e;return c.then(u=>l("success",i,u)).catch(u=>l("error",a,u)),c},Ce.success=dm("success"),Ce.info=dm("info"),Ce.error=dm("error"),Ce.warning=dm("warning"),Ce.warn=Ce.warning,Ce.dark=(e,t)=>bp(e,o_("default",{theme:"dark",...t})),Ce.dismiss=e=>{oc.size>0?Do.emit(1,e):Yh=Yh.filter(t=>e!=null&&t.options.toastId!==e)},Ce.clearWaitingQueue=function(e){return e===void 0&&(e={}),Do.emit(5,e)},Ce.isActive=e=>{let t=!1;return oc.forEach(r=>{r.isToastActive&&r.isToastActive(e)&&(t=!0)}),t},Ce.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const r=function(n,o){let{containerId:a}=o;const i=oc.get(a||eO);return i&&i.getToast(n)}(e,t);if(r){const{props:n,content:o}=r,a={delay:100,...n,...t,toastId:t.toastId||e,updateId:YQ()};a.toastId!==e&&(a.staleId=e);const i=a.render||o;delete a.render,bp(i,a)}},0)},Ce.done=e=>{Ce.update(e,{progress:1})},Ce.onChange=e=>(Do.on(4,e),()=>{Do.off(4,e)}),Ce.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Ce.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},Do.on(2,e=>{eO=e.containerId||e,oc.set(eO,e),Yh.forEach(t=>{Do.emit(0,t.content,t.options)}),Yh=[]}).on(3,e=>{oc.delete(e.containerId||e),oc.size===0&&Do.off(0).off(1).off(5)});const at=J1.create({baseURL:Ut.API_BASE_URL,withCredentials:!0}),b9=J1.create({baseURL:Ut.API_BASE_URL,withCredentials:!0});at.interceptors.request.use(e=>{const{accessToken:t}=_o.getState().auth;return t&&(e.headers.authorization=`Bearer ${t}`),e},e=>Promise.reject(e));at.interceptors.response.use(e=>e,async e=>{const t=e.config;if(e.response&&e.response.status===401&&!t._retry)try{e.response.data.message==="User is blocked"&&(await IR(),Ce.dismiss(),Ce.error("Your account has been blocked. Please contact admin.",nt),_o.dispatch(SR()));const{accessToken:r}=await BHe();return _o.dispatch(d1({accessToken:r})),t.headers.authorization=`Bearer ${r}`,at(t)}catch(r){return Promise.reject(r)}return Promise.reject(e)});const De={LOGIN_USER:"api/auth/login",SIGNUP_USER:"api/auth/signup",LOGIN_GOOGLE:"api/auth/google_auth",LOGOUT_USER:"api/auth/logout",SEND_OTP:"api/auth/send_otp",VERIFY_OTP:"api/auth/verify_otp",RESET_PASSWORD:"api/auth/resetPassword",REFRESH_TOKEN:"api/auth/refresh",USERNAME_AVAILABILITY:"api/auth/checkUsernameAvailability/",UPLOAD_COVER_PHOTO:"api/profile/uploadCoverPhoto",UPLOAD_PROFILE_PHOTO:"api/profile/uploadProfilePhoto",GET_USER_INFO:"api/profile/getUserInfo",GET_OTHER_USER_INFO:"api/profile/getOtherUserInfo",DELETE_COVER_PHOTO:"api/profile/deleteCoverPhoto",DELETE_PROFILE_PHOTO:"api/profile/deleteProfilePhoto",CHANGE_PASSWORD:"api/profile/changePassword",EDIT_PROFILE:"api/profile/editProfile",SEARCH_USERS:"api/profile/searchUsers",ADD_USERNAME:"api/profile/addUsername",CREATE_POST:"api/post/createPost",EDIT_POST:"api/post/editPost",GET_POSTS:"api/post/getPosts",GET_POST:"api/post/getPost",GET_POST_DETAILS:"api/post/getPostDetails",DELETE_POST:"api/post/deletePost",SEARCH_POSTS:"api/post/searchPosts",GET_USER_POSTS:"api/post/getUserPosts",GET_OTHER_USER_POSTS:"api/post/getOtherUserPosts",GET_USER_LIKED_POSTS:"api/post/getUserLikedPosts",GET_USER_SAVED_POSTS:"api/post/getUserSavedPosts",GET_LIKED_USERS:"api/post/getLikedUsers",LIKE_POST:"api/post/likePost",SAVE_POST:"api/post/savePost",REPORT_POST:"api/post/reportPost",ADD_COMMENT:"api/post/addComment",GET_COMMENTS:"api/post/getComments",EDIT_COMMENT:"api/post/editComment",DELETE_COMMENT:"api/post/deleteComment",DELETE_REPLY:"api/post/deleteReply",REPORT_COMMENT:"api/post/reportComment",REPORT_REPLY:"api/post/reportReply",LIKE_COMMENT:"api/post/likeComment",LIKE_REPLY:"api/post/likeReply",ADD_REPLY:"api/post/addReply",GET_REPLIES:"api/post/getReplies",FOLLOW_USER:"api/user/followUser",UNFOLLOW_USER:"api/user/unfollowUser",GET_REST_OF_USERS:"api/user/getRestOfUsers",GET_REST_OF_ALL_USERS:"api/user/getRestOfAllUsers",GET_FOLLOWERS:"api/user/getFollowers",GET_FOLLOWING:"api/user/getFollowing",GET_SUGGESTIONS:"api/user/getSuggestions",ADD_NOTIFICATION:"api/user/addNotification",DELETE_NOTIFICATION:"api/user/deleteNotification",ADMIN_LOGIN:"api/admin/login",REFRESH_ADMIN_TOKEN:"api/admin/refresh",GET_USERS:"api/admin/getUsers",GET_ALL_USERS_COUNT:"api/admin/getAllUsersCount",GET_USERS_COUNT_ON_SEARCH:"api/admin/getUsersCountOnSearch",GET_USERS_ON_SEARCH:"api/admin/getUsersOnSearch",BLOCK_USER:"api/admin/blockUser",UNBLOCK_USER:"api/admin/unblockUser",GET_ALL_POSTS:"api/admin/getAllPosts",GET_ALL_POSTS_COUNT:"api/admin/getAllPostsCount",GET_BLOCKED_USERS_COUNT:"api/admin/getBlockedUsersCount",GET_POSTS_COUNT_ON_SEARCH:"api/admin/getPostsCountOnSearch",GET_REPORTED_COMMENTS_COUNT_ON_SEARCH:"api/admin/getReportedCommentsCountOnSearch",GET_REPORTED_COMMENTS_ON_SEARCH:"api/admin/getReportedCommentsOnSearch",GET_REPORTED_REPLIES_COUNT_ON_SEARCH:"api/admin/getReportedRepliesCountOnSearch",GET_REPORTED_REPLIES_ON_SEARCH:"api/admin/getReportedRepliesOnSearch",GET_POSTS_ON_SEARCH:"api/admin/getPostsOnSearch",GET_ALL_REPORTED_COMMENTS_COUNT:"api/admin/getAllReportedCommentsCount",GET_ALL_REPORTED_REPLIES_COUNT:"api/admin/getAllReportedRepliesCount",BLOCK_POST:"api/admin/blockPost",UNBLOCK_POST:"api/admin/unblockPost",GET_REPORT_INFO:"api/admin/getReportInfo",GET_ALL_COMMENTS:"api/admin/getAllComments",GET_ALL_REPLIES:"api/admin/getAllReplies",GET_ALL_REPORTED_COMMENTS:"api/admin/getAllReportedComments",GET_ALL_REPORTED_REPLIES:"api/admin/getAllReportedReplies",GET_COMMENT_REPORTED_USERS:"api/admin/getCommentReportedUsers",BLOCK_COMMENT:"api/admin/blockComment",UNBLOCK_COMMENT:"api/admin/unblockComment",GET_REPLY_REPORTED_USERS:"api/admin/getReplyReportedUsers",BLOCK_REPLY:"api/admin/blockReply",UNBLOCK_REPLY:"api/admin/unblockReply",GET_MONTHLY_USER_SIGNUPS:"api/admin/getMonthlyUserSignups",GET_MONTHLY_POSTS:"api/admin/getMonthlyPosts",LOGOUT_ADMIN:"api/admin/logout",FETCH_OTHER_USER_CHAT:"api/chat/createOrAccessChat",FETCH_CHATS:"api/chat/fetchChats",CREATE_GROUP_CHAT:"api/chat/createGroup",UPDATE_GROUP:"api/chat/updateGroup",REMOVE_FROM_GROUP:"api/chat/removeFromGroup",GROUP_REMOVE:"api/chat/groupRemove",ADD_GROUP_DP:"api/chat/addGroupDp",SEND_MESSAGE:"api/message/sendMessage",SEND_MESSAGE_WITH_IMG:"api/message/sendMessageWithImg",GET_ALL_MESSAGES_FROM_CHAT:"api/message/getAllMessagesFromChat",FETCH_NOTIFICATIONS:"api/message/fetchNotifications"},DHe=async e=>(await b9.post(De.LOGIN_USER,e)).data,FHe=async e=>(await b9.post(De.SIGNUP_USER,e)).data,zHe=async e=>(await b9.post(De.LOGIN_GOOGLE,e)).data,BHe=async()=>(await b9.get(De.REFRESH_TOKEN,{withCredentials:!0})).data,IR=async()=>(await at.delete(De.LOGOUT_USER)).data,XQ=async(e,t)=>(await at.post(De.SEND_OTP,{email:e,text:t})).data,ZQ=async(e,t,r)=>(await at.post(De.VERIFY_OTP,{email:e,otp:t,text:r})).data,VHe=async({email:e,password:t})=>(await at.post(De.RESET_PASSWORD,{email:e,password:t})).data;function y9(e){return bt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9z"}}]})(e)}function Yyt(e){return bt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zM338 304c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm513.9 437.1a8.11 8.11 0 0 1-5.2 1.9H177.2c-4.4 0-8-3.6-8-8 0-1.9.7-3.7 1.9-5.2l170.3-202c2.8-3.4 7.9-3.8 11.3-1 .3.3.7.6 1 1l99.4 118 158.1-187.5c2.8-3.4 7.9-3.8 11.3-1 .3.3.7.6 1 1l229.6 271.6c2.6 3.3 2.2 8.4-1.2 11.2z"}}]})(e)}function e5(e){return bt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 0 0-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attr:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]})(e)}function HHe(e){return bt({tag:"svg",attr:{t:"1569682881658",viewBox:"0 0 1024 1024",version:"1.1"},child:[{tag:"defs",attr:{},child:[]},{tag:"path",attr:{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zM293 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}},{tag:"path",attr:{d:"M894 345c-48.1-66-115.3-110.1-189-130v0.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l0.8 132.6c0 3.2 0.5 6.4 1.5 9.4 5.3 16.9 23.3 26.2 40.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-0.5 0.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102z m505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-0.2-0.1C613.7 788.2 680.7 742.2 729 676c76.4-105.3 88.8-237.6 44.4-350.4l0.6 0.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}},{tag:"path",attr:{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}}]})(e)}function w9(e){return bt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"}}]})(e)}function Xyt(e){return bt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]})(e)}function UHe(e){return bt({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6 11.5c0-2.363 1.498-4.383 3.594-5.159 0.254-0.571 0.406-1.206 0.406-1.841 0-2.485 0-4.5-3-4.5s-3 2.015-3 4.5c0 1.548 0.898 3.095 2 3.716v0.825c-3.392 0.277-6 1.944-6 3.959h6.208c-0.135-0.477-0.208-0.98-0.208-1.5z"}},{tag:"path",attr:{d:"M11.5 7c-2.485 0-4.5 2.015-4.5 4.5s2.015 4.5 4.5 4.5c2.485 0 4.5-2.015 4.5-4.5s-2.015-4.5-4.5-4.5zM14 12h-5v-1h5v1z"}}]})(e)}function WHe(e){return bt({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M15 9.5l-4.5 4.5-1.5-1.5-1 1 2.5 2.5 5.5-5.5z"}},{tag:"path",attr:{d:"M7 12h5v-1.799c-1.050-0.613-2.442-1.033-4-1.16v-0.825c1.102-0.621 2-2.168 2-3.716 0-2.485 0-4.5-3-4.5s-3 2.015-3 4.5c0 1.548 0.898 3.095 2 3.716v0.825c-3.392 0.277-6 1.944-6 3.959h7v-1z"}}]})(e)}function qHe(e){return bt({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M15.504 13.616l-3.79-3.223c-0.392-0.353-0.811-0.514-1.149-0.499 0.895-1.048 1.435-2.407 1.435-3.893 0-3.314-2.686-6-6-6s-6 2.686-6 6 2.686 6 6 6c1.486 0 2.845-0.54 3.893-1.435-0.016 0.338 0.146 0.757 0.499 1.149l3.223 3.79c0.552 0.613 1.453 0.665 2.003 0.115s0.498-1.452-0.115-2.003zM6 10c-2.209 0-4-1.791-4-4s1.791-4 4-4 4 1.791 4 4-1.791 4-4 4z"}}]})(e)}function Zyt(e){return bt({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M10.404 5.11l-1.015-1.014-5.075 5.074c-0.841 0.841-0.841 2.204 0 3.044s2.204 0.841 3.045 0l6.090-6.089c1.402-1.401 1.402-3.673 0-5.074s-3.674-1.402-5.075 0l-6.394 6.393c-0.005 0.005-0.010 0.009-0.014 0.013-1.955 1.955-1.955 5.123 0 7.077s5.123 1.954 7.078 0c0.004-0.004 0.008-0.009 0.013-0.014l0.001 0.001 4.365-4.364-1.015-1.014-4.365 4.363c-0.005 0.004-0.009 0.009-0.013 0.013-1.392 1.392-3.656 1.392-5.048 0s-1.392-3.655 0-5.047c0.005-0.005 0.009-0.009 0.014-0.013l-0.001-0.001 6.395-6.393c0.839-0.84 2.205-0.84 3.045 0s0.839 2.205 0 3.044l-6.090 6.089c-0.28 0.28-0.735 0.28-1.015 0s-0.28-0.735 0-1.014l5.075-5.075z"}}]})(e)}function QQ(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19.045 7.401c.378-.378.586-.88.586-1.414s-.208-1.036-.586-1.414l-1.586-1.586c-.378-.378-.88-.586-1.414-.586s-1.036.208-1.413.585L4 13.585V18h4.413L19.045 7.401zm-3-3 1.587 1.585-1.59 1.584-1.586-1.585 1.589-1.584zM6 16v-1.585l7.04-7.018 1.586 1.586L7.587 16H6zm-2 4h16v2H4z"}}]})(e)}function GHe(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6z"}},{tag:"path",attr:{d:"M11.412 8.586c.379.38.588.882.588 1.414h2a3.977 3.977 0 0 0-1.174-2.828c-1.514-1.512-4.139-1.512-5.652 0l1.412 1.416c.76-.758 2.07-.756 2.826-.002z"}}]})(e)}function JQ(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5.5 15a3.51 3.51 0 0 0 2.36-.93l6.26 3.58a3.06 3.06 0 0 0-.12.85 3.53 3.53 0 1 0 1.14-2.57l-6.26-3.58a2.74 2.74 0 0 0 .12-.76l6.15-3.52A3.49 3.49 0 1 0 14 5.5a3.35 3.35 0 0 0 .12.85L8.43 9.6A3.5 3.5 0 1 0 5.5 15zm12 2a1.5 1.5 0 1 1-1.5 1.5 1.5 1.5 0 0 1 1.5-1.5zm0-13A1.5 1.5 0 1 1 16 5.5 1.5 1.5 0 0 1 17.5 4zm-12 6A1.5 1.5 0 1 1 4 11.5 1.5 1.5 0 0 1 5.5 10z"}}]})(e)}function KHe(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 2H4c-1.103 0-2 .897-2 2v18l4-4h14c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2zm-7 13h-2v-2h2v2zm0-4h-2V5h2v6z"}}]})(e)}function Qyt(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 2H4c-1.103 0-2 .894-2 1.992v12.016C2 17.106 2.897 18 4 18h3v4l6.351-4H20c1.103 0 2-.894 2-1.992V3.992A1.998 1.998 0 0 0 20 2zm-6 11H7v-2h7v2zm3-4H7V7h10v2z"}}]})(e)}function Jyt(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4zM14 13h-3v3H9v-3H6v-2h3V8h2v3h3v2z"}}]})(e)}function e7t(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}}]})(e)}function t7t(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"}}]})(e)}function eJ(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"}}]})(e)}function tJ(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z"}}]})(e)}function hM(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM19 14.9L14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1v5.8z"}},{tag:"circle",attr:{cx:"12",cy:"16",r:"1"}},{tag:"path",attr:{d:"M11 7h2v7h-2z"}}]})(e)}function r7t(e){return bt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M388.8 896.4v-27.198c.6-2.2 1.6-4.2 2-6.4 8.8-57.2 56.4-102.4 112.199-106.2 62.4-4.4 115.2 31.199 132.4 89.199 2.2 7.6 3.8 15.6 5.8 23.4v27.2c-.6 1.8-1.6 3.399-1.8 5.399-8.6 52.8-46.6 93-98.6 104.4-4 .8-8 2-12 3h-27.2c-1.8-.6-3.6-1.6-5.4-1.8-52-8.4-91.599-45.4-103.6-96.8-1.2-5-2.6-9.6-3.8-14.2zm252.4-768.797l-.001 27.202c-.6 2.2-1.6 4.2-1.8 6.4-9 57.6-56.8 102.6-113.2 106.2-62.2 4-114.8-32-131.8-90.2-2.2-7.401-3.8-15-5.6-22.401v-27.2c.6-1.8 1.6-3.4 2-5.2 9.6-52 39.8-86 90.2-102.2 6.6-2.2 13.6-3.4 20.4-5.2h27.2c1.8.6 3.6 1.6 5.4 1.8 52.2 8.6 91.6 45.4 103.6 96.8 1.201 4.8 2.401 9.4 3.601 13.999zm-.001 370.801v27.2c-.6 2.2-1.6 4.2-2 6.4-9 57.4-58.6 103.6-114.6 106-63 2.8-116.4-35.2-131.4-93.8-1.6-6.2-3-12.4-4.4-18.6v-27.2c.6-2.2 1.6-4.2 2-6.4 8.8-57.4 58.6-103.601 114.6-106.2 63-3 116.4 35.2 131.4 93.8 1.6 6.4 3 12.6 4.4 18.8z"}}]})(e)}function pM(e){return bt({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M899.4 638.2h-27.198c-2.2-.6-4.2-1.6-6.4-2-57.2-8.8-102.4-56.4-106.2-112.199-4.401-62.4 31.199-115.2 89.199-132.4 7.6-2.2 15.6-3.8 23.399-5.8h27.2c1.8.6 3.4 1.6 5.4 1.8 52.8 8.6 93 46.6 104.4 98.6.8 4 2 8 3 12v27.2c-.6 1.8-1.6 3.6-1.8 5.4-8.4 52-45.4 91.599-96.801 103.6-5 1.2-9.6 2.6-14.2 3.8zM130.603 385.8l27.202.001c2.2.6 4.2 1.6 6.4 1.8 57.6 9 102.6 56.8 106.2 113.2 4 62.2-32 114.8-90.2 131.8-7.401 2.2-15 3.8-22.401 5.6h-27.2c-1.8-.6-3.4-1.6-5.2-2-52-9.6-86-39.8-102.2-90.2-2.2-6.6-3.4-13.6-5.2-20.4v-27.2c.6-1.8 1.6-3.6 1.8-5.4 8.6-52.2 45.4-91.6 96.8-103.6 4.8-1.201 9.4-2.401 13.999-3.601zm370.801.001h27.2c2.2.6 4.2 1.6 6.4 2 57.4 9 103.6 58.6 106 114.6 2.8 63-35.2 116.4-93.8 131.4-6.2 1.6-12.4 3-18.6 4.4h-27.2c-2.2-.6-4.2-1.6-6.4-2-57.4-8.8-103.601-58.6-106.2-114.6-3-63 35.2-116.4 93.8-131.4 6.4-1.6 12.6-3 18.8-4.4z"}}]})(e)}function YHe(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM12 11.5C10.6193 11.5 9.5 10.3807 9.5 9C9.5 7.61929 10.6193 6.5 12 6.5C13.3807 6.5 14.5 7.61929 14.5 9C14.5 10.3807 13.3807 11.5 12 11.5ZM7.52746 17C7.77619 14.75 9.68372 13 12 13C14.3163 13 16.2238 14.75 16.4725 17H7.52746Z"}}]})(e)}function mM(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M7 4V2H17V4H22V6H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V6H2V4H7ZM6 6V20H18V6H6ZM9 9H11V17H9V9ZM13 9H15V17H13V9Z"}}]})(e)}function XHe(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13Z"}}]})(e)}function n7t(e){return bt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M14 14.252V22H4C4 17.5817 7.58172 14 12 14C12.6906 14 13.3608 14.0875 14 14.252ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM19 16.5858L21.1213 14.4645L22.5355 15.8787L20.4142 18L22.5355 20.1213L21.1213 21.5355L19 19.4142L16.8787 21.5355L15.4645 20.1213L17.5858 18L15.4645 15.8787L16.8787 14.4645L19 16.5858Z"}}]})(e)}function ZHe(e){return bt({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"}}]})(e)}function QHe(e){return bt({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M11 8h2V6h-2v2Z"}},{tag:"path",attr:{d:"M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4Zm8.5.5a.5.5 0 0 0-1 0v7a.5.5 0 0 0 1 0v-7ZM2 5.5a.5.5 0 0 0 .5.5H6a.5.5 0 0 0 0-1H2.5a.5.5 0 0 0-.5.5ZM2.5 7a.5.5 0 0 0 0 1H6a.5.5 0 0 0 0-1H2.5ZM2 9.5a.5.5 0 0 0 .5.5H6a.5.5 0 0 0 0-1H2.5a.5.5 0 0 0-.5.5Zm8-4v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5Z"}}]})(e)}const gM=({onDelete:e,message:t})=>M.jsxs("div",{className:"flex items-start justify-between gap-5",children:[M.jsx(ZHe,{className:"text-4xl"}),M.jsxs("div",{children:[M.jsx("p",{children:t}),M.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[M.jsx(ie.Button,{variant:"outlined",size:"sm",className:"rounded-full text-black border-black",onClick:()=>{Ce.dismiss()},children:"Cancel"}),M.jsx(ie.Button,{className:"rounded-full bg-socioverse-500",size:"sm",onClick:()=>{e()},children:"Ok"})]})]})]}),o7t=async e=>(await at.post(De.CREATE_POST,e,{headers:{"Content-Type":"multipart/form-data"}})).data,a7t=async e=>{const r=(e-1)*3;return(await at.get(`${De.GET_POSTS}?skip=${r}&limit=3`)).data},JHe=async e=>(await at.delete(`${De.DELETE_POST}/${e}`)).data,eUe=async e=>(await at.get(`${De.GET_POST_DETAILS}/${e}`)).data,tUe=async e=>(await at.post(`${De.ADD_COMMENT}?postId=${e.postId}&comment=${e.comment}`)).data,rUe=async e=>(await at.post(`${De.ADD_REPLY}?commentId=${e.commentId}&reply=${e.reply}`)).data,rJ=async e=>(await at.get(`${De.GET_COMMENTS}/${e}`)).data,nUe=async e=>(await at.get(`${De.GET_REPLIES}/${e}`)).data,oUe=async e=>(await at.post(`${De.LIKE_POST}/${e}`)).data,aUe=async e=>(await at.post(`${De.SAVE_POST}/${e}`)).data,iUe=async(e,t)=>(await at.post(`${De.REPORT_POST}?label=${e}&postId=${t}`)).data,sUe=async(e,t)=>(await at.patch(`${De.EDIT_POST}/${e}`,t,{headers:{"Content-Type":"multipart/form-data"}})).data,lUe=async(e,t)=>(await at.put(`${De.EDIT_COMMENT}/${e}`,{comment:t})).data,cUe=async e=>(await at.delete(`${De.DELETE_COMMENT}/${e}`)).data,uUe=async(e,t)=>(await at.delete(`${De.DELETE_REPLY}?replyId=${e}&commentId=${t}`)).data,dUe=async e=>(await at.post(`${De.REPORT_COMMENT}/${e}`)).data,fUe=async(e,t)=>(await at.post(`${De.REPORT_REPLY}?replyId=${e}&commentId=${t}`)).data,sD=async(e,t)=>{const n=(t-1)*3,o=encodeURIComponent(e);return(await at.get(`${De.SEARCH_POSTS}?searchQuery=${o}&skip=${n}&limit=3`)).data},lD=async(e,t)=>(await at.post(`${De.LIKE_COMMENT}`,{commentId:e,action:t})).data,cD=async(e,t,r)=>(await at.post(`${De.LIKE_REPLY}`,{replyId:e,commentId:t,action:r})).data,i7t=async e=>{const r=(e-1)*3;return(await at.get(`${De.GET_USER_POSTS}?skip=${r}&limit=3`)).data},s7t=async(e,t)=>{const n=(t-1)*3;return(await at.get(`${De.GET_OTHER_USER_POSTS}/${e}?skip=${n}&limit=3`)).data},l7t=async e=>{const r=(e-1)*3;return(await at.get(`${De.GET_USER_LIKED_POSTS}?skip=${r}&limit=3`)).data},c7t=async e=>{const r=(e-1)*3;return(await at.get(`${De.GET_USER_SAVED_POSTS}?skip=${r}&limit=3`)).data},nJ=async e=>(await at.get(`${De.GET_LIKED_USERS}/${e}`)).data;function hUe(e,t){t===void 0&&(t={});var r=t.insertAt;if(!(!e||typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r==="top"&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var pUe=`.react-input-emoji--container { color: #4b4b4b; text-rendering: optimizeLegibility; background-color: #fff; @@ -361,9 +361,9 @@ More details: https://www.material-tailwind.com/docs/react/collapse opacity: 1; } } -`;dUe(fUe);function hUe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function uD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function dD(e){for(var t=1;t=0;--z){var F=this.tryEntries[z],N=F.completion;if(F.tryLoc==="root")return q("end");if(F.tryLoc<=this.prev){var W=n.call(F,"catchLoc"),G=n.call(F,"finallyLoc");if(W&&G){if(this.prev=0;--q){var z=this.tryEntries[q];if(z.tryLoc<=this.prev&&n.call(z,"finallyLoc")&&this.prev=0;--V){var q=this.tryEntries[V];if(q.finallyLoc===B)return this.complete(q.completion,q.afterLoc),j(q),b}},catch:function(B){for(var V=this.tryEntries.length-1;V>=0;--V){var q=this.tryEntries[V];if(q.tryLoc===B){var z=q.completion;if(z.type==="throw"){var F=z.arg;j(q)}return F}}throw new Error("illegal catch attempt")},delegateYield:function(B,V,q){return this.delegate={iterator:D(B),resultName:V,nextLoc:q},this.method==="next"&&(this.arg=e),b}},t}function fD(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(c){r(c);return}s.done?t(l):Promise.resolve(l).then(n,o)}function hD(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(l){fD(a,n,o,i,s,"next",l)}function s(l){fD(a,n,o,i,s,"throw",l)}i(void 0)})}}function pUe(e,t,r){return t=EUe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mUe(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function gUe(e,t){if(e==null)return{};var r=mUe(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zi(e,t){return bUe(e)||hUe(e,t)||aJ(e,t)||xUe()}function oJ(e){return vUe(e)||yUe(e)||aJ(e)||wUe()}function vUe(e){if(Array.isArray(e))return LR(e)}function bUe(e){if(Array.isArray(e))return e}function yUe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aJ(e,t){if(e){if(typeof e=="string")return LR(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return LR(e,t)}}function LR(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r span > span'));if(!n)return pD(e.native);var o=sJ(n.style.cssText,'"',"'");return lJ(o,e.native)}function lJ(e,t){return'')}function pD(e){return''.concat(e,"")}function yp(e){var t=document.createElement("div");t.innerHTML=e;var r=Array.prototype.slice.call(t.querySelectorAll("img"));return r.forEach(function(n){t.innerHTML=t.innerHTML.replace(n.outerHTML,n.dataset.emoji)}),t.innerHTML}function RUe(e){var t,r;if(window.getSelection){if(t=window.getSelection(),t===null)return;if(t.getRangeAt&&t.rangeCount){r=t.getRangeAt(0),r.deleteContents();var n=document.createElement("div");n.innerHTML=e;for(var o=document.createDocumentFragment(),a,i;a=n.firstChild;)i=o.appendChild(a);r.insertNode(o),i&&(r=r.cloneRange(),r.setStartAfter(i),r.collapse(!0),t.removeAllRanges(),t.addRange(r))}}}function mD(e){var t=e.text,r=e.html,n=t.length,o=(r.match(//gi,"[BR]"),r=t.replace(/<[^>]+>/g,""),n=r.replace(/\[BR\]/gi,"
");return n}function cJ(e){var t=O.useRef([]),r=O.useRef(""),n=O.useCallback(function(a){t.current.push(a)},[]),o=O.useCallback(function(a){var i=t.current.reduce(function(s,l){return l(s)},a);return i=PUe(i,e),r.current=i,i},[]);return{addSanitizeFn:n,sanitize:o,sanitizedTextRef:r}}function PUe(e,t){var r=document.createElement("div");r.innerHTML=e;var n;return t?n=TUe(r):n=r.innerText||"",n=n.replace(/\n/gi,""),n}function MUe(e){var t=e.ref,r=e.textInputRef,n=e.setValue,o=e.emitChange,a=cJ(!1),i=a.sanitize,s=a.sanitizedTextRef;O.useImperativeHandle(t,function(){return{get value(){return s.current},set value(l){n(l)},focus:function(){r.current!==null&&r.current.focus()},blur:function(){r.current!==null&&i(r.current.html),o()}}})}function AUe(e,t,r){var n=O.useRef(null),o=O.useRef(r),a=O.useCallback(function(){if(e.current!==null){var s=n.current,l=e.current.size;(!s||s.width!==l.width||s.height!==l.height)&&typeof t=="function"&&t(l),n.current=l}},[t,e]),i=O.useCallback(function(s){typeof o.current=="function"&&o.current(s),typeof t=="function"&&a()},[a,t]);return O.useEffect(function(){e.current&&a()},[a,e]),i}var jUe=["placeholder","style","tabIndex","className","onChange"],IUe=function(t,r){var n=t.placeholder,o=t.style,a=t.tabIndex,i=t.className,s=t.onChange,l=gUe(t,jUe);O.useImperativeHandle(r,function(){return{appendContent:function(y){u.current&&u.current.focus(),RUe(y),u.current&&u.current.focus(),u.current&&c.current&&yp(u.current.innerHTML)===""?c.current.style.visibility="visible":c.current&&(c.current.style.visibility="hidden"),u.current&&typeof s=="function"&&s(u.current.innerHTML)},set html(x){if(u.current&&(u.current.innerHTML=x),c.current){var y=yp(x);y===""?c.current.style.visibility="visible":c.current.style.visibility="hidden"}typeof s=="function"&&u.current&&s(u.current.innerHTML)},get html(){return u.current?u.current.innerHTML:""},get text(){return u.current?u.current.innerText:""},get size(){return u.current?{width:u.current.offsetWidth,height:u.current.offsetHeight}:{width:0,height:0}},focus:function(){u.current&&u.current.focus()}}});var c=O.useRef(null),u=O.useRef(null);function p(x){if(x.key==="Enter"&&(x.shiftKey===!0||x.ctrlKey===!0)&&l.shouldReturn&&(x.preventDefault(),u.current)){u.current.innerHTML="".concat(u.current.innerHTML,"

"),SUe(u);return}x.key==="Enter"?l.onEnter(x):x.key==="ArrowUp"?l.onArrowUp(x):x.key==="ArrowDown"?l.onArrowDown(x):x.key.length===1&&c.current&&(c.current.style.visibility="hidden"),l.onKeyDown(x)}function h(){l.onFocus()}function g(x){l.onKeyUp(x);var y=u.current;if(c.current&&y){var b=yp(y.innerHTML);b===""?c.current.style.visibility="visible":c.current.style.visibility="hidden"}typeof s=="function"&&u.current&&s(u.current.innerHTML)}return Fe.createElement("div",{className:"react-input-emoji--container",style:o},Fe.createElement("div",{className:"react-input-emoji--wrapper",onClick:h},Fe.createElement("div",{ref:c,className:"react-input-emoji--placeholder"},n),Fe.createElement("div",{ref:u,onKeyDown:p,onKeyUp:g,tabIndex:a,contentEditable:!0,className:"react-input-emoji--input".concat(i?" ".concat(i):""),onBlur:l.onBlur,onCopy:l.onCopy,onPaste:l.onPaste,"data-testid":"react-input-emoji--input"})))},LUe=O.forwardRef(IUe);function gD(e){var t=e.showPicker,r=e.toggleShowPicker,n=e.buttonElement,o=e.buttonRef,a=O.useRef(null),i=O.useState(!1),s=zi(i,2),l=s[0],c=s[1];return O.useEffect(function(){var u,p,h,g;((u=o==null||(p=o.current)===null||p===void 0||(p=p.childNodes)===null||p===void 0?void 0:p.length)!==null&&u!==void 0?u:0)>2?(a.current.appendChild(o.current.childNodes[0]),c(!0)):((h=n==null||(g=n.childNodes)===null||g===void 0?void 0:g.length)!==null&&h!==void 0?h:0)>2&&(a.current.appendChild(n==null?void 0:n.childNodes[0]),c(!0))},[n==null?void 0:n.childNodes]),Fe.createElement("button",{ref:a,type:"button",className:"react-input-emoji--button".concat(t?" react-input-emoji--button__show":""),onClick:r},!l&&Fe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",className:"react-input-emoji--button--icon"},Fe.createElement("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),Fe.createElement("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})))}function uJ(e){return e&&e.__esModule?e.default:e}function sa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var x9,lt,dJ,wp,fJ,vD,a_={},hJ=[],$Ue=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ds(e,t){for(var r in t)e[r]=t[r];return e}function pJ(e){var t=e.parentNode;t&&t.removeChild(e)}function $R(e,t,r){var n,o,a,i={};for(a in t)a=="key"?n=t[a]:a=="ref"?o=t[a]:i[a]=t[a];if(arguments.length>2&&(i.children=arguments.length>3?x9.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)i[a]===void 0&&(i[a]=e.defaultProps[a]);return F6(e,i,n,o,null)}function F6(e,t,r,n,o){var a={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++dJ};return o==null&<.vnode!=null&<.vnode(a),a}function hi(){return{current:null}}function Qd(e){return e.children}function Ka(e,t){this.props=e,this.context=t}function Jd(e,t){if(t==null)return e.__?Jd(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t0?F6(g.type,g.props,g.key,null,g.__v):g)!=null){if(g.__=r,g.__b=r.__b+1,(h=m[u])===null||h&&g.key==h.key&&g.type===h.type)m[u]=void 0;else for(p=0;p{let e=null;try{navigator.userAgent.includes("jsdom")||(e=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!e)return()=>!1;const t=25,r=20,n=Math.floor(t/2);return e.font=n+"px Arial, Sans-Serif",e.textBaseline="top",e.canvas.width=r*2,e.canvas.height=t,o=>{e.clearRect(0,0,r*2,t),e.fillStyle="#FF0000",e.fillText(o,0,22),e.fillStyle="#0000FF",e.fillText(o,r,22);const a=e.getImageData(0,0,r,t).data,i=a.length;let s=0;for(;s=i)return!1;const l=r+s/4%r,c=Math.floor(s/4/r),u=e.getImageData(l,c,1,1).data;return!(a[s]!==u[0]||a[s+2]!==u[2]||e.measureText(o).width>=r)}})();var _D={latestVersion:UUe,noCountryFlags:WUe};const NR=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let sn=null;function GUe(e){sn||(sn=ol.get("frequently")||{});const t=e.id||e;t&&(sn[t]||(sn[t]=0),sn[t]+=1,ol.set("last",t),ol.set("frequently",sn))}function KUe({maxFrequentRows:e,perLine:t}){if(!e)return[];sn||(sn=ol.get("frequently"));let r=[];if(!sn){sn={};for(let a in NR.slice(0,t)){const i=NR[a];sn[i]=t-a,r.push(i)}return r}const n=e*t,o=ol.get("last");for(let a in sn)r.push(a);if(r.sort((a,i)=>{const s=sn[i],l=sn[a];return s==l?a.localeCompare(i):s-l}),r.length>n){const a=r.slice(n);r=r.slice(0,n);for(let i of a)i!=o&&delete sn[i];o&&r.indexOf(o)==-1&&(delete sn[r[r.length-1]],r.splice(-1,1,o)),ol.set("frequently",sn)}return r}var CJ={add:GUe,get:KUe,DEFAULTS:NR},OJ={};OJ=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var Ci={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:14,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","kr","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let vn=null,Ct=null;const rO={};async function ED(e){if(rO[e])return rO[e];const r=await(await fetch(e)).json();return rO[e]=r,r}let nO=null,kJ=null,RJ=!1;function _9(e,{caller:t}={}){return nO||(nO=new Promise(r=>{kJ=r})),e?YUe(e):t&&!RJ&&console.warn(`\`${t}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),nO}async function YUe(e){RJ=!0;let{emojiVersion:t,set:r,locale:n}=e;if(t||(t=Ci.emojiVersion.value),r||(r=Ci.set.value),n||(n=Ci.locale.value),Ct)Ct.categories=Ct.categories.filter(l=>!l.name);else{Ct=(typeof e.data=="function"?await e.data():e.data)||await ED(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${t}/${r}.json`),Ct.emoticons={},Ct.natives={},Ct.categories.unshift({id:"frequent",emojis:[]});for(const l in Ct.aliases){const c=Ct.aliases[l],u=Ct.emojis[c];u&&(u.aliases||(u.aliases=[]),u.aliases.push(l))}Ct.originalCategories=Ct.categories}if(vn=(typeof e.i18n=="function"?await e.i18n():e.i18n)||(n=="en"?uJ(OJ):await ED(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${n}.json`)),e.custom)for(let l in e.custom){l=parseInt(l);const c=e.custom[l],u=e.custom[l-1];if(!(!c.emojis||!c.emojis.length)){c.id||(c.id=`custom_${l+1}`),c.name||(c.name=vn.categories.custom),u&&!c.icon&&(c.target=u.target||u),Ct.categories.push(c);for(const p of c.emojis)Ct.emojis[p.id]=p}}e.categories&&(Ct.categories=Ct.originalCategories.filter(l=>e.categories.indexOf(l.id)!=-1).sort((l,c)=>{const u=e.categories.indexOf(l.id),p=e.categories.indexOf(c.id);return u-p}));let o=null,a=null;r=="native"&&(o=_D.latestVersion(),a=e.noCountryFlags||_D.noCountryFlags());let i=Ct.categories.length,s=!1;for(;i--;){const l=Ct.categories[i];if(l.id=="frequent"){let{maxFrequentRows:p,perLine:h}=e;p=p>=0?p:Ci.maxFrequentRows.value,h||(h=Ci.perLine.value),l.emojis=CJ.get({maxFrequentRows:p,perLine:h})}if(!l.emojis||!l.emojis.length){Ct.categories.splice(i,1);continue}const{categoryIcons:c}=e;if(c){const p=c[l.id];p&&!l.icon&&(l.icon=p)}let u=l.emojis.length;for(;u--;){const p=l.emojis[u],h=p.id?p:Ct.emojis[p],g=()=>{l.emojis.splice(u,1)};if(!h||e.exceptEmojis&&e.exceptEmojis.includes(h.id)){g();continue}if(o&&h.version>o){g();continue}if(a&&l.id=="flags"&&!eWe.includes(h.id)){g();continue}if(!h.search){if(s=!0,h.search=","+[[h.id,!1],[h.name,!0],[h.keywords,!1],[h.emoticons,!1]].map(([y,b])=>{if(y)return(Array.isArray(y)?y:[y]).map(m=>(b?m.split(/[-|_|\s]+/):[m]).map(f=>f.toLowerCase())).flat()}).flat().filter(y=>y&&y.trim()).join(","),h.emoticons)for(const y of h.emoticons)Ct.emoticons[y]||(Ct.emoticons[y]=h.id);let x=0;for(const y of h.skins){if(!y)continue;x++;const{native:b}=y;b&&(Ct.natives[b]=h.id,h.search+=`,${b}`);const m=x==1?"":`:skin-tone-${x}:`;y.shortcodes=`:${h.id}:${m}`}}}}s&&Ed.reset(),kJ()}function SJ(e,t,r){e||(e={});const n={};for(let o in t)n[o]=TJ(o,e,t,r);return n}function TJ(e,t,r,n){const o=r[e];let a=n&&n.getAttribute(e)||(t[e]!=null&&t[e]!=null?t[e]:null);return o&&(a!=null&&o.value&&typeof o.value!=typeof a&&(typeof o.value=="boolean"?a=a!="false":a=o.value.constructor(a)),o.transform&&a&&(a=o.transform(a)),(a==null||o.choices&&o.choices.indexOf(a)==-1)&&(a=o.value)),a}const XUe=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let DR=null;function ZUe(e){return e.id?e:Ct.emojis[e]||Ct.emojis[Ct.aliases[e]]||Ct.emojis[Ct.natives[e]]}function QUe(){DR=null}async function JUe(e,{maxResults:t,caller:r}={}){if(!e||!e.trim().length)return null;t||(t=90),await _9(null,{caller:r||"SearchIndex.search"});const n=e.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((s,l,c)=>s.trim()&&c.indexOf(s)==l);if(!n.length)return;let o=DR||(DR=Object.values(Ct.emojis)),a,i;for(const s of n){if(!o.length)break;a=[],i={};for(const l of o){if(!l.search)continue;const c=l.search.indexOf(`,${s}`);c!=-1&&(a.push(l),i[l.id]||(i[l.id]=0),i[l.id]+=l.id==s?0:c+1)}o=a}return a.length<2||(a.sort((s,l)=>{const c=i[s.id],u=i[l.id];return c==u?s.id.localeCompare(l.id):c-u}),a.length>t&&(a=a.slice(0,t))),a}var Ed={search:JUe,get:ZUe,reset:QUe,SHORTCODES_REGEX:XUe};const eWe=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function tWe(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((r,n)=>r==t[n])}async function rWe(e=1){for(let t in[...Array(e).keys()])await new Promise(requestAnimationFrame)}function nWe(e,{skinIndex:t=0}={}){const r=e.skins[t]||(()=>(t=0,e.skins[t]))(),n={id:e.id,name:e.name,native:r.native,unified:r.unified,keywords:e.keywords,shortcodes:r.shortcodes||e.shortcodes};return e.skins.length>1&&(n.skin=t+1),r.src&&(n.src=r.src),e.aliases&&e.aliases.length&&(n.aliases=e.aliases),e.emoticons&&e.emoticons.length&&(n.emoticons=e.emoticons),n}const oWe={activity:{outline:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:Me("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Me("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:Me("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:Me("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Me("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:Me("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Me("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[Me("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),Me("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Me("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[Me("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),Me("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:Me("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[Me("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),Me("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:Me("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[Me("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),Me("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Me("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[Me("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),Me("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Me("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:Me("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Me("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},aWe={loupe:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:Me("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:Me("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})};var c_={categories:oWe,search:aWe};function FR(e){let{id:t,skin:r,emoji:n}=e;if(e.shortcodes){const s=e.shortcodes.match(Ed.SHORTCODES_REGEX);s&&(t=s[1],s[2]&&(r=s[2]))}if(n||(n=Ed.get(t||e.native)),!n)return e.fallback;const o=n.skins[r-1]||n.skins[0],a=o.src||(e.set!="native"&&!e.spritesheet?typeof e.getImageURL=="function"?e.getImageURL(e.set,o.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@14.0.0/img/${e.set}/64/${o.unified}.png`:void 0),i=typeof e.getSpritesheetURL=="function"?e.getSpritesheetURL(e.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@14.0.0/img/${e.set}/sheets-256/64.png`;return Me("span",{class:"emoji-mart-emoji","data-emoji-set":e.set,children:a?Me("img",{style:{maxWidth:e.size||"1em",maxHeight:e.size||"1em",display:"inline-block"},alt:o.native||o.shortcodes,src:a}):e.set=="native"?Me("span",{style:{fontSize:e.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:o.native}):Me("span",{style:{display:"block",width:e.size,height:e.size,backgroundImage:`url(${i})`,backgroundSize:`${100*Ct.sheet.cols}% ${100*Ct.sheet.rows}%`,backgroundPosition:`${100/(Ct.sheet.cols-1)*o.x}% ${100/(Ct.sheet.rows-1)*o.y}%`}})})}const iWe=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class PJ extends iWe{static get observedAttributes(){return Object.keys(this.Props)}update(t={}){for(let r in t)this.attributeChangedCallback(r,null,t[r])}attributeChangedCallback(t,r,n){if(!this.component)return;const o=TJ(t,{[t]:n},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[t]:o}):(this.component.props[t]=o,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(t={}){if(super(),this.props=t,t.parent||t.ref){let r=null;const n=t.parent||(r=t.ref&&t.ref.current);r&&(r.innerHTML=""),n&&n.appendChild(this)}}}class sWe extends PJ{setShadow(){this.attachShadow({mode:"open"})}injectStyles(t){if(!t)return;const r=document.createElement("style");r.textContent=t,this.shadowRoot.insertBefore(r,this.shadowRoot.firstChild)}constructor(t,{styles:r}={}){super(t),this.setShadow(),this.injectStyles(r)}}var MJ={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:e=>/\D/.test(e)?e:`${e}px`},set:Ci.set,skin:Ci.skin};class AJ extends PJ{async connectedCallback(){const t=SJ(this.props,MJ,this);t.element=this,t.ref=r=>{this.component=r},await _9(),!this.disconnected&&_J(Me(FR,{...t}),this)}constructor(t){super(t)}}sa(AJ,"Props",MJ);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",AJ);var CD,zR=[],OD=lt.__b,kD=lt.__r,RD=lt.diffed,SD=lt.__c,TD=lt.unmount;function lWe(){var e;for(zR.sort(function(t,r){return t.__v.__b-r.__v.__b});e=zR.pop();)if(e.__P)try{e.__H.__h.forEach(z6),e.__H.__h.forEach(BR),e.__H.__h=[]}catch(t){e.__H.__h=[],lt.__e(t,e.__v)}}lt.__b=function(e){OD&&OD(e)},lt.__r=function(e){kD&&kD(e);var t=e.__c.__H;t&&(t.__h.forEach(z6),t.__h.forEach(BR),t.__h=[])},lt.diffed=function(e){RD&&RD(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(zR.push(t)!==1&&CD===lt.requestAnimationFrame||((CD=lt.requestAnimationFrame)||function(r){var n,o=function(){clearTimeout(a),PD&&cancelAnimationFrame(n),setTimeout(r)},a=setTimeout(o,100);PD&&(n=requestAnimationFrame(o))})(lWe))},lt.__c=function(e,t){t.some(function(r){try{r.__h.forEach(z6),r.__h=r.__h.filter(function(n){return!n.__||BR(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],lt.__e(n,r.__v)}}),SD&&SD(e,t)},lt.unmount=function(e){TD&&TD(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{z6(n)}catch(o){t=o}}),t&<.__e(t,r.__v))};var PD=typeof requestAnimationFrame=="function";function z6(e){var t=e.__c;typeof t=="function"&&(e.__c=void 0,t())}function BR(e){e.__c=e.__()}function cWe(e,t){for(var r in t)e[r]=t[r];return e}function MD(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function u_(e){this.props=e}(u_.prototype=new Ka).isPureReactComponent=!0,u_.prototype.shouldComponentUpdate=function(e,t){return MD(this.props,e)||MD(this.state,t)};var AD=lt.__b;lt.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),AD&&AD(e)};var uWe=lt.__e;lt.__e=function(e,t,r){if(e.then){for(var n,o=t;o=o.__;)if((n=o.__c)&&n.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),n.__c(e,t)}uWe(e,t,r)};var jD=lt.unmount;function oO(){this.__u=0,this.t=null,this.__b=null}function jJ(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function fm(){this.u=null,this.o=null}lt.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),jD&&jD(e)},(oO.prototype=new Ka).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var o=jJ(n.__v),a=!1,i=function(){a||(a=!0,r.__R=null,o?o(s):s())};r.__R=i;var s=function(){if(!--n.__u){if(n.state.__e){var c=n.state.__e;n.__v.__k[0]=function p(h,g,x){return h&&(h.__v=null,h.__k=h.__k&&h.__k.map(function(y){return p(y,g,x)}),h.__c&&h.__c.__P===g&&(h.__e&&x.insertBefore(h.__e,h.__d),h.__c.__e=!0,h.__c.__P=x)),h}(c,c.__c.__P,c.__c.__O)}var u;for(n.setState({__e:n.__b=null});u=n.t.pop();)u.forceUpdate()}},l=t.__h===!0;n.__u++||l||n.setState({__e:n.__b=n.__v.__k[0]}),e.then(i,i)},oO.prototype.componentWillUnmount=function(){this.t=[]},oO.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=function a(i,s,l){return i&&(i.__c&&i.__c.__H&&(i.__c.__H.__.forEach(function(c){typeof c.__c=="function"&&c.__c()}),i.__c.__H=null),(i=cWe({},i)).__c!=null&&(i.__c.__P===l&&(i.__c.__P=s),i.__c=null),i.__k=i.__k&&i.__k.map(function(c){return a(c,s,l)})),i}(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__e&&$R(Qd,null,e.fallback);return o&&(o.__h=null),[$R(Qd,null,t.__e?null:e.children),o]};var ID=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]{const o=r.name||vn.categories[r.id],a=!this.props.unfocused&&r.id==this.state.categoryId;return a&&(t=n),Me("button",{"aria-label":o,"aria-selected":a||void 0,title:o,type:"button",class:"flex flex-grow flex-center",onMouseDown:i=>i.preventDefault(),onClick:()=>{this.props.onClick({category:r,i:n})},children:this.renderIcon(r)})}),Me("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:t==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${t*100}%)`:`translateX(${t*100}%)`}})]})})}constructor(){super(),this.categories=Ct.categories.filter(t=>!t.target),this.state={categoryId:this.categories[0].id}}}class wWe extends u_{shouldComponentUpdate(t){for(let r in t)if(r!="children"&&t[r]!=this.props[r])return!0;return!1}render(){return this.props.children}}const hm={rowsPerRender:10};class xWe extends Ka{getInitialState(t=this.props){return{skin:ol.get("skin")||t.skin,theme:this.initTheme(t.theme)}}componentWillMount(){this.dir=vn.rtl?"rtl":"ltr",this.refs={menu:hi(),navigation:hi(),scroll:hi(),search:hi(),searchInput:hi(),skinToneButton:hi(),skinToneRadio:hi()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:t}=this.refs;t.current&&t.current.focus()}}componentWillReceiveProps(t){this.nextState||(this.nextState={});for(const r in t)this.nextState[r]=t[r];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let r=!1;for(const o in this.nextState)this.props[o]=this.nextState[o],(o==="custom"||o==="categories")&&(r=!0);delete this.nextState;const n=this.getInitialState();if(r)return this.reset(n);this.setState(n)})}componentWillUnmount(){this.unregister()}async reset(t={}){await _9(this.props),this.initGrid(),this.unobserve(),this.setState(t,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){document.removeEventListener("click",this.handleClickOutside),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:t=[]}={}){Array.isArray(t)||(t=[t]);for(const r of this.observers)t.includes(r)||r.disconnect();this.observers=[].concat(t)}initGrid(){const{categories:t}=Ct;this.refs.categories=new Map;const r=Ct.categories.map(o=>o.id).join(",");this.navKey&&this.navKey!=r&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=r,this.grid=[],this.grid.setsize=0;const n=(o,a)=>{const i=[];i.__categoryId=a.id,i.__index=o.length,this.grid.push(i);const s=this.grid.length-1,l=s%hm.rowsPerRender?{}:hi();return l.index=s,l.posinset=this.grid.setsize+1,o.push(l),i};for(let o of t){const a=[];let i=n(a,o);for(let s of o.emojis)i.length==this.getPerLine()&&(i=n(a,o)),this.grid.setsize+=1,i.push(s);this.refs.categories.set(o.id,{root:hi(),rows:a})}}initTheme(t){if(t!="auto")return t;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addListener(()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})})}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(t=this.props){if(!t.dynamicWidth)return;const{element:r,emojiButtonSize:n}=t,o=()=>{const{width:i}=r.getBoundingClientRect();return Math.floor(i/n)},a=new ResizeObserver(()=>{this.unobserve({except:a}),this.setState({perLine:o()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return a.observe(r),this.observers.push(a),o()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([t,r]){const n=this.state.searchResults||this.grid,o=n[t]&&n[t][r];if(o)return Ed.get(o)}observeCategories(){const t=this.refs.navigation.current;if(!t)return;const r=new Map,n=i=>{i!=t.state.categoryId&&t.setState({categoryId:i})},o={root:this.refs.scroll.current,threshold:[0,1]},a=new IntersectionObserver(i=>{for(const l of i){const c=l.target.dataset.id;r.set(c,l.intersectionRatio)}const s=[...r];for(const[l,c]of s)if(c){n(l);break}},o);for(const{root:i}of this.refs.categories.values())a.observe(i.current);this.observers.push(a)}observeRows(){const t={...this.state.visibleRows},r=new IntersectionObserver(n=>{for(const o of n){const a=parseInt(o.target.dataset.index);o.isIntersecting?t[a]=!0:delete t[a]}this.setState({visibleRows:t})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(hm.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*hm.rowsPerRender}px`});for(const{rows:n}of this.refs.categories.values())for(const o of n)o.current&&r.observe(o.current);this.observers.push(r)}preventDefault(t){t.preventDefault()}unfocusSearch(){const t=this.refs.searchInput.current;t&&t.blur()}navigate({e:t,input:r,left:n,right:o,up:a,down:i}){const s=this.state.searchResults||this.grid;if(!s.length)return;let[l,c]=this.state.pos;const u=(()=>{if(l==0&&c==0&&!t.repeat&&(n||a))return null;if(l==-1)return!t.repeat&&(o||i)&&r.selectionStart==r.value.length?[0,0]:null;if(n||o){let p=s[l];const h=n?-1:1;if(c+=h,!p[c]){if(l+=h,p=s[l],!p)return l=n?0:s.length-1,c=n?0:s[l].length-1,[l,c];c=n?p.length-1:0}return[l,c]}if(a||i){l+=a?-1:1;const p=s[l];return p?(p[c]||(c=p.length-1),[l,c]):(l=a?0:s.length-1,c=a?0:s[l].length-1,[l,c])}})();if(u)t.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:u,keyboard:!0},()=>{this.scrollTo({row:u[0]})})}scrollTo({categoryId:t,row:r}){const n=this.state.searchResults||this.grid;if(!n.length)return;const o=this.refs.scroll.current,a=o.getBoundingClientRect();let i=0;if(r>=0&&(t=n[r].__categoryId),t&&(i=(this.refs[t]||this.refs.categories.get(t).root).current.getBoundingClientRect().top-(a.top-o.scrollTop)+1),r>=0)if(!r)i=0;else{const s=n[r].__index,l=i+s*this.props.emojiButtonSize,c=l+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(lo.scrollTop+a.height)i=c-a.height;else return}this.ignoreMouse(),o.scrollTop=i}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(t){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:t||[-1,-1],keyboard:!1})}handleEmojiClick({e:t,emoji:r,pos:n}){if(this.props.onEmojiSelect&&(!r&&n&&(r=this.getEmojiByPos(n)),r)){const o=nWe(r,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&CJ.add(o,this.props),this.props.onEmojiSelect(o,t)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(t){this.setState({tempSkin:t})}handleSkinClick(t){this.ignoreMouse(),this.closeSkins(),this.setState({skin:t,tempSkin:null}),ol.set("skin",t)}renderNav(){return Me(yWe,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const t=this.getEmojiByPos(this.state.pos),r=this.state.searchResults&&!this.state.searchResults.length;return Me("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[Me("div",{class:"flex flex-middle flex-grow",children:[Me("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:Me(FR,{emoji:t,id:r?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),Me("div",{class:`margin-${this.dir[0]}`,children:t||r?Me("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[Me("div",{class:"preview-title ellipsis",children:t?t.name:vn.search_no_results_1}),Me("div",{class:"preview-subtitle ellipsis color-c",children:t?t.skins[0].shortcodes:vn.search_no_results_2})]}):Me("div",{class:"preview-placeholder color-c",children:vn.pick})})]}),!t&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(t,{pos:r,posinset:n,grid:o}){const a=this.props.emojiButtonSize,i=this.state.tempSkin||this.state.skin,l=(t.skins[i-1]||t.skins[0]).native,c=tWe(this.state.pos,r),u=r.concat(t.id).join("");return Me(wWe,{selected:c,skin:i,size:a,children:Me("button",{"aria-label":l,"aria-selected":c||void 0,"aria-posinset":n,"aria-setsize":o.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?t.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:p=>this.handleEmojiClick({e:p,emoji:t}),onMouseEnter:()=>this.handleEmojiOver(r),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[Me("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(n-1)%this.props.emojiButtonColors.length]:void 0}}),Me(FR,{emoji:t,set:this.props.set,size:this.props.emojiSize,skin:i,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},u)}renderSearch(){const t=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return Me("div",{children:[Me("div",{class:"spacer"}),Me("div",{class:"flex flex-middle",children:[Me("div",{class:"search relative flex-grow",children:[Me("input",{type:"search",ref:this.refs.searchInput,placeholder:vn.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),Me("span",{class:"icon loupe flex",children:c_.search.loupe}),this.state.searchResults&&Me("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:c_.search.delete})]}),t&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:t}=this.state;return t?Me("div",{class:"category",ref:this.refs.search,children:[Me("div",{class:`sticky padding-small align-${this.dir[0]}`,children:vn.categories.search}),Me("div",{children:t.length?t.map((r,n)=>Me("div",{class:"flex",children:r.map((o,a)=>this.renderEmojiButton(o,{pos:[n,a],posinset:n*this.props.perLine+a+1,grid:t}))})):Me("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&Me("a",{onClick:this.props.onAddCustomEmoji,children:vn.add_custom})})})]}):null}renderCategories(){const{categories:t}=Ct,r=!!this.state.searchResults,n=this.getPerLine();return Me("div",{style:{visibility:r?"hidden":void 0,display:r?"none":void 0,height:"100%"},children:t.map(o=>{const{root:a,rows:i}=this.refs.categories.get(o.id);return Me("div",{"data-id":o.target?o.target.id:o.id,class:"category",ref:a,children:[Me("div",{class:`sticky padding-small align-${this.dir[0]}`,children:o.name||vn.categories[o.id]}),Me("div",{class:"relative",style:{height:i.length*this.props.emojiButtonSize},children:i.map((s,l)=>{const c=s.index-s.index%hm.rowsPerRender,u=this.state.visibleRows[c],p="current"in s?s:void 0;if(!u&&!p)return null;const h=l*n,g=h+n,x=o.emojis.slice(h,g);return x.length{if(!y)return Me("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const m=Ed.get(y);return this.renderEmojiButton(m,{pos:[s.index,b],posinset:s.posinset+b,grid:this.grid})})},s.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:Me("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:Me("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":vn.skins.choose,title:vn.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:Me("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const t=this.getEmojiByPos(this.state.pos),r=t?t.name:"";return Me("div",{"aria-live":"polite",class:"sr-only",children:r})}renderSkins(){const r=this.refs.skinToneButton.current.getBoundingClientRect(),n=this.base.getBoundingClientRect(),o={};return this.dir=="ltr"?o.right=n.right-r.right-3:o.left=r.left-n.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?o.bottom=n.bottom-r.top+6:(o.top=r.bottom-n.top+3,o.bottom="auto"),Me("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":vn.skins.choose,class:"menu hidden","data-position":o.top?"top":"bottom",style:o,children:[...Array(6).keys()].map(a=>{const i=a+1,s=this.state.skin==i;return Me("div",{children:[Me("input",{type:"radio",name:"skin-tone",value:i,"aria-label":vn.skins[i],ref:s?this.refs.skinToneRadio:null,defaultChecked:s,onChange:()=>this.handleSkinMouseOver(i),onKeyDown:l=>{(l.code=="Enter"||l.code=="Space"||l.code=="Tab")&&(l.preventDefault(),this.handleSkinClick(i))}}),Me("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(i),onMouseEnter:()=>this.handleSkinMouseOver(i),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[Me("span",{class:`skin-tone skin-tone-${i}`}),Me("span",{class:"margin-small-lr",children:vn.skins[i]})]})]})})})}render(){const t=this.props.perLine*this.props.emojiButtonSize;return Me("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${t}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&Me("div",{class:"padding-lr",children:this.renderSearch()}),Me("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:Me("div",{style:{width:this.props.dynamicWidth?"100%":t,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(t){super(),sa(this,"handleClickOutside",r=>{const{element:n}=this.props;r.target!=n&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(r))}),sa(this,"handleBaseClick",r=>{this.state.showSkins&&(r.target.closest(".menu")||(r.preventDefault(),r.stopImmediatePropagation(),this.closeSkins()))}),sa(this,"handleBaseKeydown",r=>{this.state.showSkins&&r.key=="Escape"&&(r.preventDefault(),r.stopImmediatePropagation(),this.closeSkins())}),sa(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),sa(this,"handleSearchInput",async()=>{const r=this.refs.searchInput.current;if(!r)return;const{value:n}=r,o=await Ed.search(n),a=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!o)return this.setState({searchResults:o,pos:[-1,-1]},a);const i=r.selectionStart==r.value.length?[0,0]:[-1,-1],s=[];s.setsize=o.length;let l=null;for(let c of o)(!s.length||l.length==this.getPerLine())&&(l=[],l.__categoryId="search",l.__index=s.length,s.push(l)),l.push(c);this.ignoreMouse(),this.setState({searchResults:s,pos:i},a)}),sa(this,"handleSearchKeyDown",r=>{const n=r.currentTarget;switch(r.stopImmediatePropagation(),r.key){case"ArrowLeft":this.navigate({e:r,input:n,left:!0});break;case"ArrowRight":this.navigate({e:r,input:n,right:!0});break;case"ArrowUp":this.navigate({e:r,input:n,up:!0});break;case"ArrowDown":this.navigate({e:r,input:n,down:!0});break;case"Enter":r.preventDefault(),this.handleEmojiClick({e:r,pos:this.state.pos});break;case"Escape":r.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),sa(this,"clearSearch",()=>{const r=this.refs.searchInput.current;r&&(r.value="",r.focus(),this.handleSearchInput())}),sa(this,"handleCategoryClick",({category:r,i:n})=>{this.scrollTo(n==0?{row:-1}:{categoryId:r.id})}),sa(this,"openSkins",r=>{const{currentTarget:n}=r,o=n.getBoundingClientRect();this.setState({showSkins:o},async()=>{await rWe(2);const a=this.refs.menu.current;a&&(a.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(t),visibleRows:{0:!0},...this.getInitialState(t)}}}class bM extends sWe{async connectedCallback(){const t=SJ(this.props,Ci,this);t.element=this,t.ref=r=>{this.component=r},await _9(t),!this.disconnected&&_J(Me(xWe,{...t}),this.shadowRoot)}constructor(t){super(t,{styles:uJ(IJ)})}}sa(bM,"Props",Ci);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",bM);var IJ={};IJ=`:host { +`;hUe(pUe);function mUe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function uD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function dD(e){for(var t=1;t=0;--z){var F=this.tryEntries[z],N=F.completion;if(F.tryLoc==="root")return q("end");if(F.tryLoc<=this.prev){var W=n.call(F,"catchLoc"),G=n.call(F,"finallyLoc");if(W&&G){if(this.prev=0;--q){var z=this.tryEntries[q];if(z.tryLoc<=this.prev&&n.call(z,"finallyLoc")&&this.prev=0;--V){var q=this.tryEntries[V];if(q.finallyLoc===B)return this.complete(q.completion,q.afterLoc),j(q),b}},catch:function(B){for(var V=this.tryEntries.length-1;V>=0;--V){var q=this.tryEntries[V];if(q.tryLoc===B){var z=q.completion;if(z.type==="throw"){var F=z.arg;j(q)}return F}}throw new Error("illegal catch attempt")},delegateYield:function(B,V,q){return this.delegate={iterator:D(B),resultName:V,nextLoc:q},this.method==="next"&&(this.arg=e),b}},t}function fD(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(c){r(c);return}s.done?t(l):Promise.resolve(l).then(n,o)}function hD(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(l){fD(a,n,o,i,s,"next",l)}function s(l){fD(a,n,o,i,s,"throw",l)}i(void 0)})}}function gUe(e,t,r){return t=OUe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vUe(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function bUe(e,t){if(e==null)return{};var r=vUe(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zi(e,t){return wUe(e)||mUe(e,t)||aJ(e,t)||EUe()}function oJ(e){return yUe(e)||xUe(e)||aJ(e)||_Ue()}function yUe(e){if(Array.isArray(e))return LR(e)}function wUe(e){if(Array.isArray(e))return e}function xUe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aJ(e,t){if(e){if(typeof e=="string")return LR(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return LR(e,t)}}function LR(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r span > span'));if(!n)return pD(e.native);var o=sJ(n.style.cssText,'"',"'");return lJ(o,e.native)}function lJ(e,t){return'')}function pD(e){return''.concat(e,"")}function yp(e){var t=document.createElement("div");t.innerHTML=e;var r=Array.prototype.slice.call(t.querySelectorAll("img"));return r.forEach(function(n){t.innerHTML=t.innerHTML.replace(n.outerHTML,n.dataset.emoji)}),t.innerHTML}function TUe(e){var t,r;if(window.getSelection){if(t=window.getSelection(),t===null)return;if(t.getRangeAt&&t.rangeCount){r=t.getRangeAt(0),r.deleteContents();var n=document.createElement("div");n.innerHTML=e;for(var o=document.createDocumentFragment(),a,i;a=n.firstChild;)i=o.appendChild(a);r.insertNode(o),i&&(r=r.cloneRange(),r.setStartAfter(i),r.collapse(!0),t.removeAllRanges(),t.addRange(r))}}}function mD(e){var t=e.text,r=e.html,n=t.length,o=(r.match(//gi,"[BR]"),r=t.replace(/<[^>]+>/g,""),n=r.replace(/\[BR\]/gi,"
");return n}function cJ(e){var t=O.useRef([]),r=O.useRef(""),n=O.useCallback(function(a){t.current.push(a)},[]),o=O.useCallback(function(a){var i=t.current.reduce(function(s,l){return l(s)},a);return i=AUe(i,e),r.current=i,i},[]);return{addSanitizeFn:n,sanitize:o,sanitizedTextRef:r}}function AUe(e,t){var r=document.createElement("div");r.innerHTML=e;var n;return t?n=MUe(r):n=r.innerText||"",n=n.replace(/\n/gi,""),n}function jUe(e){var t=e.ref,r=e.textInputRef,n=e.setValue,o=e.emitChange,a=cJ(!1),i=a.sanitize,s=a.sanitizedTextRef;O.useImperativeHandle(t,function(){return{get value(){return s.current},set value(l){n(l)},focus:function(){r.current!==null&&r.current.focus()},blur:function(){r.current!==null&&i(r.current.html),o()}}})}function IUe(e,t,r){var n=O.useRef(null),o=O.useRef(r),a=O.useCallback(function(){if(e.current!==null){var s=n.current,l=e.current.size;(!s||s.width!==l.width||s.height!==l.height)&&typeof t=="function"&&t(l),n.current=l}},[t,e]),i=O.useCallback(function(s){typeof o.current=="function"&&o.current(s),typeof t=="function"&&a()},[a,t]);return O.useEffect(function(){e.current&&a()},[a,e]),i}var LUe=["placeholder","style","tabIndex","className","onChange"],$Ue=function(t,r){var n=t.placeholder,o=t.style,a=t.tabIndex,i=t.className,s=t.onChange,l=bUe(t,LUe);O.useImperativeHandle(r,function(){return{appendContent:function(y){u.current&&u.current.focus(),TUe(y),u.current&&u.current.focus(),u.current&&c.current&&yp(u.current.innerHTML)===""?c.current.style.visibility="visible":c.current&&(c.current.style.visibility="hidden"),u.current&&typeof s=="function"&&s(u.current.innerHTML)},set html(x){if(u.current&&(u.current.innerHTML=x),c.current){var y=yp(x);y===""?c.current.style.visibility="visible":c.current.style.visibility="hidden"}typeof s=="function"&&u.current&&s(u.current.innerHTML)},get html(){return u.current?u.current.innerHTML:""},get text(){return u.current?u.current.innerText:""},get size(){return u.current?{width:u.current.offsetWidth,height:u.current.offsetHeight}:{width:0,height:0}},focus:function(){u.current&&u.current.focus()}}});var c=O.useRef(null),u=O.useRef(null);function p(x){if(x.key==="Enter"&&(x.shiftKey===!0||x.ctrlKey===!0)&&l.shouldReturn&&(x.preventDefault(),u.current)){u.current.innerHTML="".concat(u.current.innerHTML,"

"),PUe(u);return}x.key==="Enter"?l.onEnter(x):x.key==="ArrowUp"?l.onArrowUp(x):x.key==="ArrowDown"?l.onArrowDown(x):x.key.length===1&&c.current&&(c.current.style.visibility="hidden"),l.onKeyDown(x)}function h(){l.onFocus()}function g(x){l.onKeyUp(x);var y=u.current;if(c.current&&y){var b=yp(y.innerHTML);b===""?c.current.style.visibility="visible":c.current.style.visibility="hidden"}typeof s=="function"&&u.current&&s(u.current.innerHTML)}return Fe.createElement("div",{className:"react-input-emoji--container",style:o},Fe.createElement("div",{className:"react-input-emoji--wrapper",onClick:h},Fe.createElement("div",{ref:c,className:"react-input-emoji--placeholder"},n),Fe.createElement("div",{ref:u,onKeyDown:p,onKeyUp:g,tabIndex:a,contentEditable:!0,className:"react-input-emoji--input".concat(i?" ".concat(i):""),onBlur:l.onBlur,onCopy:l.onCopy,onPaste:l.onPaste,"data-testid":"react-input-emoji--input"})))},NUe=O.forwardRef($Ue);function gD(e){var t=e.showPicker,r=e.toggleShowPicker,n=e.buttonElement,o=e.buttonRef,a=O.useRef(null),i=O.useState(!1),s=zi(i,2),l=s[0],c=s[1];return O.useEffect(function(){var u,p,h,g;((u=o==null||(p=o.current)===null||p===void 0||(p=p.childNodes)===null||p===void 0?void 0:p.length)!==null&&u!==void 0?u:0)>2?(a.current.appendChild(o.current.childNodes[0]),c(!0)):((h=n==null||(g=n.childNodes)===null||g===void 0?void 0:g.length)!==null&&h!==void 0?h:0)>2&&(a.current.appendChild(n==null?void 0:n.childNodes[0]),c(!0))},[n==null?void 0:n.childNodes]),Fe.createElement("button",{ref:a,type:"button",className:"react-input-emoji--button".concat(t?" react-input-emoji--button__show":""),onClick:r},!l&&Fe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",className:"react-input-emoji--button--icon"},Fe.createElement("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),Fe.createElement("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})))}function uJ(e){return e&&e.__esModule?e.default:e}function sa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var x9,lt,dJ,wp,fJ,vD,a_={},hJ=[],DUe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ds(e,t){for(var r in t)e[r]=t[r];return e}function pJ(e){var t=e.parentNode;t&&t.removeChild(e)}function $R(e,t,r){var n,o,a,i={};for(a in t)a=="key"?n=t[a]:a=="ref"?o=t[a]:i[a]=t[a];if(arguments.length>2&&(i.children=arguments.length>3?x9.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)i[a]===void 0&&(i[a]=e.defaultProps[a]);return F6(e,i,n,o,null)}function F6(e,t,r,n,o){var a={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++dJ};return o==null&<.vnode!=null&<.vnode(a),a}function hi(){return{current:null}}function Qd(e){return e.children}function Ka(e,t){this.props=e,this.context=t}function Jd(e,t){if(t==null)return e.__?Jd(e.__,e.__.__k.indexOf(e)+1):null;for(var r;t0?F6(g.type,g.props,g.key,null,g.__v):g)!=null){if(g.__=r,g.__b=r.__b+1,(h=m[u])===null||h&&g.key==h.key&&g.type===h.type)m[u]=void 0;else for(p=0;p{let e=null;try{navigator.userAgent.includes("jsdom")||(e=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!e)return()=>!1;const t=25,r=20,n=Math.floor(t/2);return e.font=n+"px Arial, Sans-Serif",e.textBaseline="top",e.canvas.width=r*2,e.canvas.height=t,o=>{e.clearRect(0,0,r*2,t),e.fillStyle="#FF0000",e.fillText(o,0,22),e.fillStyle="#0000FF",e.fillText(o,r,22);const a=e.getImageData(0,0,r,t).data,i=a.length;let s=0;for(;s=i)return!1;const l=r+s/4%r,c=Math.floor(s/4/r),u=e.getImageData(l,c,1,1).data;return!(a[s]!==u[0]||a[s+2]!==u[2]||e.measureText(o).width>=r)}})();var _D={latestVersion:qUe,noCountryFlags:GUe};const NR=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let sn=null;function YUe(e){sn||(sn=ol.get("frequently")||{});const t=e.id||e;t&&(sn[t]||(sn[t]=0),sn[t]+=1,ol.set("last",t),ol.set("frequently",sn))}function XUe({maxFrequentRows:e,perLine:t}){if(!e)return[];sn||(sn=ol.get("frequently"));let r=[];if(!sn){sn={};for(let a in NR.slice(0,t)){const i=NR[a];sn[i]=t-a,r.push(i)}return r}const n=e*t,o=ol.get("last");for(let a in sn)r.push(a);if(r.sort((a,i)=>{const s=sn[i],l=sn[a];return s==l?a.localeCompare(i):s-l}),r.length>n){const a=r.slice(n);r=r.slice(0,n);for(let i of a)i!=o&&delete sn[i];o&&r.indexOf(o)==-1&&(delete sn[r[r.length-1]],r.splice(-1,1,o)),ol.set("frequently",sn)}return r}var CJ={add:YUe,get:XUe,DEFAULTS:NR},OJ={};OJ=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var Ci={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:14,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","kr","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let vn=null,Ct=null;const rO={};async function ED(e){if(rO[e])return rO[e];const r=await(await fetch(e)).json();return rO[e]=r,r}let nO=null,kJ=null,RJ=!1;function _9(e,{caller:t}={}){return nO||(nO=new Promise(r=>{kJ=r})),e?ZUe(e):t&&!RJ&&console.warn(`\`${t}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),nO}async function ZUe(e){RJ=!0;let{emojiVersion:t,set:r,locale:n}=e;if(t||(t=Ci.emojiVersion.value),r||(r=Ci.set.value),n||(n=Ci.locale.value),Ct)Ct.categories=Ct.categories.filter(l=>!l.name);else{Ct=(typeof e.data=="function"?await e.data():e.data)||await ED(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${t}/${r}.json`),Ct.emoticons={},Ct.natives={},Ct.categories.unshift({id:"frequent",emojis:[]});for(const l in Ct.aliases){const c=Ct.aliases[l],u=Ct.emojis[c];u&&(u.aliases||(u.aliases=[]),u.aliases.push(l))}Ct.originalCategories=Ct.categories}if(vn=(typeof e.i18n=="function"?await e.i18n():e.i18n)||(n=="en"?uJ(OJ):await ED(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${n}.json`)),e.custom)for(let l in e.custom){l=parseInt(l);const c=e.custom[l],u=e.custom[l-1];if(!(!c.emojis||!c.emojis.length)){c.id||(c.id=`custom_${l+1}`),c.name||(c.name=vn.categories.custom),u&&!c.icon&&(c.target=u.target||u),Ct.categories.push(c);for(const p of c.emojis)Ct.emojis[p.id]=p}}e.categories&&(Ct.categories=Ct.originalCategories.filter(l=>e.categories.indexOf(l.id)!=-1).sort((l,c)=>{const u=e.categories.indexOf(l.id),p=e.categories.indexOf(c.id);return u-p}));let o=null,a=null;r=="native"&&(o=_D.latestVersion(),a=e.noCountryFlags||_D.noCountryFlags());let i=Ct.categories.length,s=!1;for(;i--;){const l=Ct.categories[i];if(l.id=="frequent"){let{maxFrequentRows:p,perLine:h}=e;p=p>=0?p:Ci.maxFrequentRows.value,h||(h=Ci.perLine.value),l.emojis=CJ.get({maxFrequentRows:p,perLine:h})}if(!l.emojis||!l.emojis.length){Ct.categories.splice(i,1);continue}const{categoryIcons:c}=e;if(c){const p=c[l.id];p&&!l.icon&&(l.icon=p)}let u=l.emojis.length;for(;u--;){const p=l.emojis[u],h=p.id?p:Ct.emojis[p],g=()=>{l.emojis.splice(u,1)};if(!h||e.exceptEmojis&&e.exceptEmojis.includes(h.id)){g();continue}if(o&&h.version>o){g();continue}if(a&&l.id=="flags"&&!rWe.includes(h.id)){g();continue}if(!h.search){if(s=!0,h.search=","+[[h.id,!1],[h.name,!0],[h.keywords,!1],[h.emoticons,!1]].map(([y,b])=>{if(y)return(Array.isArray(y)?y:[y]).map(m=>(b?m.split(/[-|_|\s]+/):[m]).map(f=>f.toLowerCase())).flat()}).flat().filter(y=>y&&y.trim()).join(","),h.emoticons)for(const y of h.emoticons)Ct.emoticons[y]||(Ct.emoticons[y]=h.id);let x=0;for(const y of h.skins){if(!y)continue;x++;const{native:b}=y;b&&(Ct.natives[b]=h.id,h.search+=`,${b}`);const m=x==1?"":`:skin-tone-${x}:`;y.shortcodes=`:${h.id}:${m}`}}}}s&&Ed.reset(),kJ()}function SJ(e,t,r){e||(e={});const n={};for(let o in t)n[o]=TJ(o,e,t,r);return n}function TJ(e,t,r,n){const o=r[e];let a=n&&n.getAttribute(e)||(t[e]!=null&&t[e]!=null?t[e]:null);return o&&(a!=null&&o.value&&typeof o.value!=typeof a&&(typeof o.value=="boolean"?a=a!="false":a=o.value.constructor(a)),o.transform&&a&&(a=o.transform(a)),(a==null||o.choices&&o.choices.indexOf(a)==-1)&&(a=o.value)),a}const QUe=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let DR=null;function JUe(e){return e.id?e:Ct.emojis[e]||Ct.emojis[Ct.aliases[e]]||Ct.emojis[Ct.natives[e]]}function eWe(){DR=null}async function tWe(e,{maxResults:t,caller:r}={}){if(!e||!e.trim().length)return null;t||(t=90),await _9(null,{caller:r||"SearchIndex.search"});const n=e.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((s,l,c)=>s.trim()&&c.indexOf(s)==l);if(!n.length)return;let o=DR||(DR=Object.values(Ct.emojis)),a,i;for(const s of n){if(!o.length)break;a=[],i={};for(const l of o){if(!l.search)continue;const c=l.search.indexOf(`,${s}`);c!=-1&&(a.push(l),i[l.id]||(i[l.id]=0),i[l.id]+=l.id==s?0:c+1)}o=a}return a.length<2||(a.sort((s,l)=>{const c=i[s.id],u=i[l.id];return c==u?s.id.localeCompare(l.id):c-u}),a.length>t&&(a=a.slice(0,t))),a}var Ed={search:tWe,get:JUe,reset:eWe,SHORTCODES_REGEX:QUe};const rWe=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function nWe(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((r,n)=>r==t[n])}async function oWe(e=1){for(let t in[...Array(e).keys()])await new Promise(requestAnimationFrame)}function aWe(e,{skinIndex:t=0}={}){const r=e.skins[t]||(()=>(t=0,e.skins[t]))(),n={id:e.id,name:e.name,native:r.native,unified:r.unified,keywords:e.keywords,shortcodes:r.shortcodes||e.shortcodes};return e.skins.length>1&&(n.skin=t+1),r.src&&(n.src=r.src),e.aliases&&e.aliases.length&&(n.aliases=e.aliases),e.emoticons&&e.emoticons.length&&(n.emoticons=e.emoticons),n}const iWe={activity:{outline:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:Me("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Me("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:Me("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:Me("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Me("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:Me("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Me("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[Me("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),Me("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Me("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[Me("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),Me("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:Me("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[Me("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),Me("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:Me("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[Me("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),Me("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Me("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[Me("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),Me("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Me("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:Me("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:Me("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},sWe={loupe:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:Me("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:Me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:Me("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})};var c_={categories:iWe,search:sWe};function FR(e){let{id:t,skin:r,emoji:n}=e;if(e.shortcodes){const s=e.shortcodes.match(Ed.SHORTCODES_REGEX);s&&(t=s[1],s[2]&&(r=s[2]))}if(n||(n=Ed.get(t||e.native)),!n)return e.fallback;const o=n.skins[r-1]||n.skins[0],a=o.src||(e.set!="native"&&!e.spritesheet?typeof e.getImageURL=="function"?e.getImageURL(e.set,o.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@14.0.0/img/${e.set}/64/${o.unified}.png`:void 0),i=typeof e.getSpritesheetURL=="function"?e.getSpritesheetURL(e.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@14.0.0/img/${e.set}/sheets-256/64.png`;return Me("span",{class:"emoji-mart-emoji","data-emoji-set":e.set,children:a?Me("img",{style:{maxWidth:e.size||"1em",maxHeight:e.size||"1em",display:"inline-block"},alt:o.native||o.shortcodes,src:a}):e.set=="native"?Me("span",{style:{fontSize:e.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:o.native}):Me("span",{style:{display:"block",width:e.size,height:e.size,backgroundImage:`url(${i})`,backgroundSize:`${100*Ct.sheet.cols}% ${100*Ct.sheet.rows}%`,backgroundPosition:`${100/(Ct.sheet.cols-1)*o.x}% ${100/(Ct.sheet.rows-1)*o.y}%`}})})}const lWe=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class PJ extends lWe{static get observedAttributes(){return Object.keys(this.Props)}update(t={}){for(let r in t)this.attributeChangedCallback(r,null,t[r])}attributeChangedCallback(t,r,n){if(!this.component)return;const o=TJ(t,{[t]:n},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[t]:o}):(this.component.props[t]=o,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(t={}){if(super(),this.props=t,t.parent||t.ref){let r=null;const n=t.parent||(r=t.ref&&t.ref.current);r&&(r.innerHTML=""),n&&n.appendChild(this)}}}class cWe extends PJ{setShadow(){this.attachShadow({mode:"open"})}injectStyles(t){if(!t)return;const r=document.createElement("style");r.textContent=t,this.shadowRoot.insertBefore(r,this.shadowRoot.firstChild)}constructor(t,{styles:r}={}){super(t),this.setShadow(),this.injectStyles(r)}}var MJ={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:e=>/\D/.test(e)?e:`${e}px`},set:Ci.set,skin:Ci.skin};class AJ extends PJ{async connectedCallback(){const t=SJ(this.props,MJ,this);t.element=this,t.ref=r=>{this.component=r},await _9(),!this.disconnected&&_J(Me(FR,{...t}),this)}constructor(t){super(t)}}sa(AJ,"Props",MJ);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",AJ);var CD,zR=[],OD=lt.__b,kD=lt.__r,RD=lt.diffed,SD=lt.__c,TD=lt.unmount;function uWe(){var e;for(zR.sort(function(t,r){return t.__v.__b-r.__v.__b});e=zR.pop();)if(e.__P)try{e.__H.__h.forEach(z6),e.__H.__h.forEach(BR),e.__H.__h=[]}catch(t){e.__H.__h=[],lt.__e(t,e.__v)}}lt.__b=function(e){OD&&OD(e)},lt.__r=function(e){kD&&kD(e);var t=e.__c.__H;t&&(t.__h.forEach(z6),t.__h.forEach(BR),t.__h=[])},lt.diffed=function(e){RD&&RD(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(zR.push(t)!==1&&CD===lt.requestAnimationFrame||((CD=lt.requestAnimationFrame)||function(r){var n,o=function(){clearTimeout(a),PD&&cancelAnimationFrame(n),setTimeout(r)},a=setTimeout(o,100);PD&&(n=requestAnimationFrame(o))})(uWe))},lt.__c=function(e,t){t.some(function(r){try{r.__h.forEach(z6),r.__h=r.__h.filter(function(n){return!n.__||BR(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],lt.__e(n,r.__v)}}),SD&&SD(e,t)},lt.unmount=function(e){TD&&TD(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{z6(n)}catch(o){t=o}}),t&<.__e(t,r.__v))};var PD=typeof requestAnimationFrame=="function";function z6(e){var t=e.__c;typeof t=="function"&&(e.__c=void 0,t())}function BR(e){e.__c=e.__()}function dWe(e,t){for(var r in t)e[r]=t[r];return e}function MD(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function u_(e){this.props=e}(u_.prototype=new Ka).isPureReactComponent=!0,u_.prototype.shouldComponentUpdate=function(e,t){return MD(this.props,e)||MD(this.state,t)};var AD=lt.__b;lt.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),AD&&AD(e)};var fWe=lt.__e;lt.__e=function(e,t,r){if(e.then){for(var n,o=t;o=o.__;)if((n=o.__c)&&n.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),n.__c(e,t)}fWe(e,t,r)};var jD=lt.unmount;function oO(){this.__u=0,this.t=null,this.__b=null}function jJ(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function fm(){this.u=null,this.o=null}lt.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),jD&&jD(e)},(oO.prototype=new Ka).__c=function(e,t){var r=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(r);var o=jJ(n.__v),a=!1,i=function(){a||(a=!0,r.__R=null,o?o(s):s())};r.__R=i;var s=function(){if(!--n.__u){if(n.state.__e){var c=n.state.__e;n.__v.__k[0]=function p(h,g,x){return h&&(h.__v=null,h.__k=h.__k&&h.__k.map(function(y){return p(y,g,x)}),h.__c&&h.__c.__P===g&&(h.__e&&x.insertBefore(h.__e,h.__d),h.__c.__e=!0,h.__c.__P=x)),h}(c,c.__c.__P,c.__c.__O)}var u;for(n.setState({__e:n.__b=null});u=n.t.pop();)u.forceUpdate()}},l=t.__h===!0;n.__u++||l||n.setState({__e:n.__b=n.__v.__k[0]}),e.then(i,i)},oO.prototype.componentWillUnmount=function(){this.t=[]},oO.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=function a(i,s,l){return i&&(i.__c&&i.__c.__H&&(i.__c.__H.__.forEach(function(c){typeof c.__c=="function"&&c.__c()}),i.__c.__H=null),(i=dWe({},i)).__c!=null&&(i.__c.__P===l&&(i.__c.__P=s),i.__c=null),i.__k=i.__k&&i.__k.map(function(c){return a(c,s,l)})),i}(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__e&&$R(Qd,null,e.fallback);return o&&(o.__h=null),[$R(Qd,null,t.__e?null:e.children),o]};var ID=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]{const o=r.name||vn.categories[r.id],a=!this.props.unfocused&&r.id==this.state.categoryId;return a&&(t=n),Me("button",{"aria-label":o,"aria-selected":a||void 0,title:o,type:"button",class:"flex flex-grow flex-center",onMouseDown:i=>i.preventDefault(),onClick:()=>{this.props.onClick({category:r,i:n})},children:this.renderIcon(r)})}),Me("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:t==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${t*100}%)`:`translateX(${t*100}%)`}})]})})}constructor(){super(),this.categories=Ct.categories.filter(t=>!t.target),this.state={categoryId:this.categories[0].id}}}class _We extends u_{shouldComponentUpdate(t){for(let r in t)if(r!="children"&&t[r]!=this.props[r])return!0;return!1}render(){return this.props.children}}const hm={rowsPerRender:10};class EWe extends Ka{getInitialState(t=this.props){return{skin:ol.get("skin")||t.skin,theme:this.initTheme(t.theme)}}componentWillMount(){this.dir=vn.rtl?"rtl":"ltr",this.refs={menu:hi(),navigation:hi(),scroll:hi(),search:hi(),searchInput:hi(),skinToneButton:hi(),skinToneRadio:hi()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:t}=this.refs;t.current&&t.current.focus()}}componentWillReceiveProps(t){this.nextState||(this.nextState={});for(const r in t)this.nextState[r]=t[r];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let r=!1;for(const o in this.nextState)this.props[o]=this.nextState[o],(o==="custom"||o==="categories")&&(r=!0);delete this.nextState;const n=this.getInitialState();if(r)return this.reset(n);this.setState(n)})}componentWillUnmount(){this.unregister()}async reset(t={}){await _9(this.props),this.initGrid(),this.unobserve(),this.setState(t,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){document.removeEventListener("click",this.handleClickOutside),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:t=[]}={}){Array.isArray(t)||(t=[t]);for(const r of this.observers)t.includes(r)||r.disconnect();this.observers=[].concat(t)}initGrid(){const{categories:t}=Ct;this.refs.categories=new Map;const r=Ct.categories.map(o=>o.id).join(",");this.navKey&&this.navKey!=r&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=r,this.grid=[],this.grid.setsize=0;const n=(o,a)=>{const i=[];i.__categoryId=a.id,i.__index=o.length,this.grid.push(i);const s=this.grid.length-1,l=s%hm.rowsPerRender?{}:hi();return l.index=s,l.posinset=this.grid.setsize+1,o.push(l),i};for(let o of t){const a=[];let i=n(a,o);for(let s of o.emojis)i.length==this.getPerLine()&&(i=n(a,o)),this.grid.setsize+=1,i.push(s);this.refs.categories.set(o.id,{root:hi(),rows:a})}}initTheme(t){if(t!="auto")return t;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addListener(()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})})}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(t=this.props){if(!t.dynamicWidth)return;const{element:r,emojiButtonSize:n}=t,o=()=>{const{width:i}=r.getBoundingClientRect();return Math.floor(i/n)},a=new ResizeObserver(()=>{this.unobserve({except:a}),this.setState({perLine:o()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return a.observe(r),this.observers.push(a),o()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([t,r]){const n=this.state.searchResults||this.grid,o=n[t]&&n[t][r];if(o)return Ed.get(o)}observeCategories(){const t=this.refs.navigation.current;if(!t)return;const r=new Map,n=i=>{i!=t.state.categoryId&&t.setState({categoryId:i})},o={root:this.refs.scroll.current,threshold:[0,1]},a=new IntersectionObserver(i=>{for(const l of i){const c=l.target.dataset.id;r.set(c,l.intersectionRatio)}const s=[...r];for(const[l,c]of s)if(c){n(l);break}},o);for(const{root:i}of this.refs.categories.values())a.observe(i.current);this.observers.push(a)}observeRows(){const t={...this.state.visibleRows},r=new IntersectionObserver(n=>{for(const o of n){const a=parseInt(o.target.dataset.index);o.isIntersecting?t[a]=!0:delete t[a]}this.setState({visibleRows:t})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(hm.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*hm.rowsPerRender}px`});for(const{rows:n}of this.refs.categories.values())for(const o of n)o.current&&r.observe(o.current);this.observers.push(r)}preventDefault(t){t.preventDefault()}unfocusSearch(){const t=this.refs.searchInput.current;t&&t.blur()}navigate({e:t,input:r,left:n,right:o,up:a,down:i}){const s=this.state.searchResults||this.grid;if(!s.length)return;let[l,c]=this.state.pos;const u=(()=>{if(l==0&&c==0&&!t.repeat&&(n||a))return null;if(l==-1)return!t.repeat&&(o||i)&&r.selectionStart==r.value.length?[0,0]:null;if(n||o){let p=s[l];const h=n?-1:1;if(c+=h,!p[c]){if(l+=h,p=s[l],!p)return l=n?0:s.length-1,c=n?0:s[l].length-1,[l,c];c=n?p.length-1:0}return[l,c]}if(a||i){l+=a?-1:1;const p=s[l];return p?(p[c]||(c=p.length-1),[l,c]):(l=a?0:s.length-1,c=a?0:s[l].length-1,[l,c])}})();if(u)t.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:u,keyboard:!0},()=>{this.scrollTo({row:u[0]})})}scrollTo({categoryId:t,row:r}){const n=this.state.searchResults||this.grid;if(!n.length)return;const o=this.refs.scroll.current,a=o.getBoundingClientRect();let i=0;if(r>=0&&(t=n[r].__categoryId),t&&(i=(this.refs[t]||this.refs.categories.get(t).root).current.getBoundingClientRect().top-(a.top-o.scrollTop)+1),r>=0)if(!r)i=0;else{const s=n[r].__index,l=i+s*this.props.emojiButtonSize,c=l+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(lo.scrollTop+a.height)i=c-a.height;else return}this.ignoreMouse(),o.scrollTop=i}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(t){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:t||[-1,-1],keyboard:!1})}handleEmojiClick({e:t,emoji:r,pos:n}){if(this.props.onEmojiSelect&&(!r&&n&&(r=this.getEmojiByPos(n)),r)){const o=aWe(r,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&CJ.add(o,this.props),this.props.onEmojiSelect(o,t)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(t){this.setState({tempSkin:t})}handleSkinClick(t){this.ignoreMouse(),this.closeSkins(),this.setState({skin:t,tempSkin:null}),ol.set("skin",t)}renderNav(){return Me(xWe,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const t=this.getEmojiByPos(this.state.pos),r=this.state.searchResults&&!this.state.searchResults.length;return Me("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[Me("div",{class:"flex flex-middle flex-grow",children:[Me("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:Me(FR,{emoji:t,id:r?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),Me("div",{class:`margin-${this.dir[0]}`,children:t||r?Me("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[Me("div",{class:"preview-title ellipsis",children:t?t.name:vn.search_no_results_1}),Me("div",{class:"preview-subtitle ellipsis color-c",children:t?t.skins[0].shortcodes:vn.search_no_results_2})]}):Me("div",{class:"preview-placeholder color-c",children:vn.pick})})]}),!t&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(t,{pos:r,posinset:n,grid:o}){const a=this.props.emojiButtonSize,i=this.state.tempSkin||this.state.skin,l=(t.skins[i-1]||t.skins[0]).native,c=nWe(this.state.pos,r),u=r.concat(t.id).join("");return Me(_We,{selected:c,skin:i,size:a,children:Me("button",{"aria-label":l,"aria-selected":c||void 0,"aria-posinset":n,"aria-setsize":o.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?t.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:p=>this.handleEmojiClick({e:p,emoji:t}),onMouseEnter:()=>this.handleEmojiOver(r),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[Me("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(n-1)%this.props.emojiButtonColors.length]:void 0}}),Me(FR,{emoji:t,set:this.props.set,size:this.props.emojiSize,skin:i,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},u)}renderSearch(){const t=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return Me("div",{children:[Me("div",{class:"spacer"}),Me("div",{class:"flex flex-middle",children:[Me("div",{class:"search relative flex-grow",children:[Me("input",{type:"search",ref:this.refs.searchInput,placeholder:vn.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),Me("span",{class:"icon loupe flex",children:c_.search.loupe}),this.state.searchResults&&Me("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:c_.search.delete})]}),t&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:t}=this.state;return t?Me("div",{class:"category",ref:this.refs.search,children:[Me("div",{class:`sticky padding-small align-${this.dir[0]}`,children:vn.categories.search}),Me("div",{children:t.length?t.map((r,n)=>Me("div",{class:"flex",children:r.map((o,a)=>this.renderEmojiButton(o,{pos:[n,a],posinset:n*this.props.perLine+a+1,grid:t}))})):Me("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&Me("a",{onClick:this.props.onAddCustomEmoji,children:vn.add_custom})})})]}):null}renderCategories(){const{categories:t}=Ct,r=!!this.state.searchResults,n=this.getPerLine();return Me("div",{style:{visibility:r?"hidden":void 0,display:r?"none":void 0,height:"100%"},children:t.map(o=>{const{root:a,rows:i}=this.refs.categories.get(o.id);return Me("div",{"data-id":o.target?o.target.id:o.id,class:"category",ref:a,children:[Me("div",{class:`sticky padding-small align-${this.dir[0]}`,children:o.name||vn.categories[o.id]}),Me("div",{class:"relative",style:{height:i.length*this.props.emojiButtonSize},children:i.map((s,l)=>{const c=s.index-s.index%hm.rowsPerRender,u=this.state.visibleRows[c],p="current"in s?s:void 0;if(!u&&!p)return null;const h=l*n,g=h+n,x=o.emojis.slice(h,g);return x.length{if(!y)return Me("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const m=Ed.get(y);return this.renderEmojiButton(m,{pos:[s.index,b],posinset:s.posinset+b,grid:this.grid})})},s.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:Me("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:Me("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":vn.skins.choose,title:vn.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:Me("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const t=this.getEmojiByPos(this.state.pos),r=t?t.name:"";return Me("div",{"aria-live":"polite",class:"sr-only",children:r})}renderSkins(){const r=this.refs.skinToneButton.current.getBoundingClientRect(),n=this.base.getBoundingClientRect(),o={};return this.dir=="ltr"?o.right=n.right-r.right-3:o.left=r.left-n.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?o.bottom=n.bottom-r.top+6:(o.top=r.bottom-n.top+3,o.bottom="auto"),Me("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":vn.skins.choose,class:"menu hidden","data-position":o.top?"top":"bottom",style:o,children:[...Array(6).keys()].map(a=>{const i=a+1,s=this.state.skin==i;return Me("div",{children:[Me("input",{type:"radio",name:"skin-tone",value:i,"aria-label":vn.skins[i],ref:s?this.refs.skinToneRadio:null,defaultChecked:s,onChange:()=>this.handleSkinMouseOver(i),onKeyDown:l=>{(l.code=="Enter"||l.code=="Space"||l.code=="Tab")&&(l.preventDefault(),this.handleSkinClick(i))}}),Me("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(i),onMouseEnter:()=>this.handleSkinMouseOver(i),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[Me("span",{class:`skin-tone skin-tone-${i}`}),Me("span",{class:"margin-small-lr",children:vn.skins[i]})]})]})})})}render(){const t=this.props.perLine*this.props.emojiButtonSize;return Me("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${t}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&Me("div",{class:"padding-lr",children:this.renderSearch()}),Me("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:Me("div",{style:{width:this.props.dynamicWidth?"100%":t,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(t){super(),sa(this,"handleClickOutside",r=>{const{element:n}=this.props;r.target!=n&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(r))}),sa(this,"handleBaseClick",r=>{this.state.showSkins&&(r.target.closest(".menu")||(r.preventDefault(),r.stopImmediatePropagation(),this.closeSkins()))}),sa(this,"handleBaseKeydown",r=>{this.state.showSkins&&r.key=="Escape"&&(r.preventDefault(),r.stopImmediatePropagation(),this.closeSkins())}),sa(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),sa(this,"handleSearchInput",async()=>{const r=this.refs.searchInput.current;if(!r)return;const{value:n}=r,o=await Ed.search(n),a=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!o)return this.setState({searchResults:o,pos:[-1,-1]},a);const i=r.selectionStart==r.value.length?[0,0]:[-1,-1],s=[];s.setsize=o.length;let l=null;for(let c of o)(!s.length||l.length==this.getPerLine())&&(l=[],l.__categoryId="search",l.__index=s.length,s.push(l)),l.push(c);this.ignoreMouse(),this.setState({searchResults:s,pos:i},a)}),sa(this,"handleSearchKeyDown",r=>{const n=r.currentTarget;switch(r.stopImmediatePropagation(),r.key){case"ArrowLeft":this.navigate({e:r,input:n,left:!0});break;case"ArrowRight":this.navigate({e:r,input:n,right:!0});break;case"ArrowUp":this.navigate({e:r,input:n,up:!0});break;case"ArrowDown":this.navigate({e:r,input:n,down:!0});break;case"Enter":r.preventDefault(),this.handleEmojiClick({e:r,pos:this.state.pos});break;case"Escape":r.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),sa(this,"clearSearch",()=>{const r=this.refs.searchInput.current;r&&(r.value="",r.focus(),this.handleSearchInput())}),sa(this,"handleCategoryClick",({category:r,i:n})=>{this.scrollTo(n==0?{row:-1}:{categoryId:r.id})}),sa(this,"openSkins",r=>{const{currentTarget:n}=r,o=n.getBoundingClientRect();this.setState({showSkins:o},async()=>{await oWe(2);const a=this.refs.menu.current;a&&(a.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(t),visibleRows:{0:!0},...this.getInitialState(t)}}}class bM extends cWe{async connectedCallback(){const t=SJ(this.props,Ci,this);t.element=this,t.ref=r=>{this.component=r},await _9(t),!this.disconnected&&_J(Me(EWe,{...t}),this.shadowRoot)}constructor(t){super(t,{styles:uJ(IJ)})}}sa(bM,"Props",Ci);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",bM);var IJ={};IJ=`:host { width: min-content; height: 435px; min-height: 230px; @@ -1078,17 +1078,17 @@ button { background-color: #61493f; } -`;function _We(e){const t=O.useRef(null),r=O.useRef(null);return r.current&&r.current.update(e),O.useEffect(()=>(r.current=new bM({...e,ref:t}),()=>{r.current=null}),[]),Fe.createElement("div",{ref:t})}function EWe(e){var t=e.theme,r=e.onSelectEmoji,n=e.disableRecent,o=e.customEmojis,a=e.language,i=O.useMemo(function(){var l=[];return n||l.push("frequent"),l=[].concat(oJ(l),["people","nature","foods","activity","places","objects","symbols","flags"]),l},[n]),s=O.useMemo(function(){if(a)return require("@emoji-mart/data/i18n/".concat(a??"en",".json"))},[a]);return Fe.createElement(_We,{data:void 0,theme:t,previewPosition:"none",onEmojiSelect:r,custom:o,categories:i,set:"apple",i18n:s})}var CWe=O.memo(EWe);function FD(e){var t=e.showPicker,r=e.theme,n=e.handleSelectEmoji,o=e.disableRecent,a=e.customEmojis,i=e.position,s=e.language;return Fe.createElement("div",{className:"react-emoji-picker--container"},t&&Fe.createElement("div",{className:"react-emoji-picker--wrapper",onClick:function(c){return c.stopPropagation()},style:i==="below"?{top:"40px"}:{}},Fe.createElement("div",{className:"react-emoji-picker"},Fe.createElement(CWe,{theme:r,onSelectEmoji:n,disableRecent:o,customEmojis:a,language:s}))))}var OWe=435,kWe=function(t){var r=t.theme,n=t.keepOpened,o=t.disableRecent,a=t.customEmojis,i=t.addSanitizeFn,s=t.addPolluteFn,l=t.appendContent,c=t.buttonElement,u=t.buttonRef,p=t.language,h=O.useState(!1),g=zi(h,2),x=g[0],y=g[1],b=O.useState(),m=zi(b,2),f=m[0],v=m[1],d=O.useState(),w=zi(d,2),_=w[0],E=w[1];O.useEffect(function(){i(yp)},[i]),O.useEffect(function(){s(iJ)},[s]),O.useEffect(function(){function T(P){var j=P.target;j.classList.contains("react-input-emoji--button")||j.classList.contains("react-input-emoji--button--icon")||y(!1)}return document.addEventListener("click",T),function(){document.removeEventListener("click",T)}},[]);function k(T){T.stopPropagation(),T.preventDefault(),E(S(T)),y(function(P){return!P})}function S(T){var P=T.currentTarget,j=P.getBoundingClientRect(),L=OWe;return j.top>=L?"above":"below"}function R(T){l(kUe(T)),n||y(function(P){return!P})}return O.useEffect(function(){var T;u!=null&&(T=u.current)!==null&&T!==void 0&&T.style?(u.current.style.position="relative",v(u.current)):c!=null&&c.style&&(c.style.position="relative",v(c))},[u,c]),f?Mue.createPortal(Fe.createElement(Fe.Fragment,null,Fe.createElement(FD,{showPicker:x,theme:r,handleSelectEmoji:R,disableRecent:o,customEmojis:a,position:_,language:p}),Fe.createElement(gD,{showPicker:x,toggleShowPicker:k,buttonElement:f,buttonRef:u})),f):Fe.createElement(Fe.Fragment,null,Fe.createElement(FD,{showPicker:x,theme:r,handleSelectEmoji:R,disableRecent:o,customEmojis:a,position:_,language:p}),Fe.createElement(gD,{showPicker:x,toggleShowPicker:k}))};function RWe(){var e=LJ();if(!e)return null;var t=e.text.substring(e.begin,e.end);return t||null}function SWe(){var e=LJ();e&&e.element.deleteData(e.begin,e.end-e.begin)}function LJ(){var e=VR();if(!e)return null;var t=e.element,r=e.caretOffset,n=t.textContent,o=n.lastIndexOf("@");return o===-1||o>=r||o!==0&&n[o-1]!==" "?null:{begin:o,end:r,text:n,element:t}}function VR(){var e=TWe();if(e===null)return null;var t=0;if(typeof window.getSelection<"u"){var r=window.getSelection().getRangeAt(0),n=r.cloneRange();n.selectNodeContents(e),n.setEnd(r.endContainer,r.endOffset),t=n.toString().length}else if(typeof document.selection<"u"&&document.selection.type!="Control"){var o=document.selection.createRange(),a=document.body.createTextRange();a.moveToElementText(e),a.setEndPoint("EndToEnd",o),t=a.text.length}return{element:e,caretOffset:t}}function TWe(){var e=document.getSelection().anchorNode;return(e==null?void 0:e.nodeType)==3?e:null}function PWe(e){var t,r=O.useState(!1),n=zi(r,2),o=n[0],a=n[1],i=O.useState([]),s=zi(i,2),l=s[0],c=s[1],u=O.useState(null),p=zi(u,2),h=p[0],g=p[1],x=O.useCallback(function(){SWe(),c([])},[]),y=O.useCallback(hD(Xh().mark(function f(){var v,d;return Xh().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(v=RWe(),g(v),v!==null){_.next=6;break}c([]),_.next=12;break;case 6:return a(!0),_.next=9,e(v);case 9:d=_.sent,a(!1),c(d);case 12:case"end":return _.stop()}},f)})),[e]),b=O.useCallback(function(f){return(t=t||hD(Xh().mark(function v(d){var w,_;return Xh().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(typeof e=="function"){k.next=2;break}return k.abrupt("return");case 2:d.key==="Backspace"&&(w=VR())!==null&&w!==void 0&&w.element.parentElement.hasAttribute("data-mention-id")?(_=VR(),_.element.parentElement.remove()):["ArrowUp","ArrowDown","Esc","Escape"].includes(d.key)||y();case 3:case"end":return k.stop()}},v)}))).apply(this,arguments)},[y,e]),m=O.useCallback(function(){y()},[y]);return{mentionSearchText:h,mentionUsers:l,onKeyUp:b,onFocus:m,onSelectUser:x,loading:o}}var MWe=function(t,r){var n=t.users,o=t.mentionSearchText,a=t.onSelect,i=t.addEventListener,s=O.useState(0),l=zi(s,2),c=l[0],u=l[1];O.useImperativeHandle(r,function(){return{prevUser:function(){u(function(y){return y===0?0:y-1})},nextUser:function(){u(function(y){return y===n.length-1?n.length-1:y+1})}}}),O.useEffect(function(){u(0)},[n]);function p(x,y){return''.concat(x,"").concat(y)}var h=O.useMemo(function(){var x=o?o.substring(1).toLocaleLowerCase():"";return n.map(function(y){var b=y.name;if(o&&o.length>1)if(y.name.toLowerCase().startsWith(x))b=p(y.name.substring(0,x.length),y.name.substring(x.length));else{var m=y.name.split(" ");b=m.map(function(f){return f.toLocaleLowerCase().startsWith(x)?p(f.substring(0,x.length),f.substring(x.length)):f}).join(" ")}return dD(dD({},y),{},{nameHtml:b})})},[o,n]);function g(x){return function(y){y.stopPropagation(),y.preventDefault(),a(x)}}return O.useEffect(function(){var x=i("enter",function(y){y.stopPropagation(),y.preventDefault(),a(h[c])});return function(){x()}},[i,a,c,h]),Fe.createElement("ul",{className:"react-input-emoji--mention--list","data-testid":"mention-user-list"},h.map(function(x,y){return Fe.createElement("li",{key:x.id},Fe.createElement("button",{type:"button",onClick:g(x),className:"react-input-emoji--mention--item".concat(c===y?" react-input-emoji--mention--item__selected":""),onMouseOver:function(){return u(y)}},Fe.createElement("img",{className:"react-input-emoji--mention--item--img",src:x.image}),Fe.createElement("div",{className:"react-input-emoji--mention--item--name",dangerouslySetInnerHTML:{__html:x.nameHtml}})))}))},AWe=O.forwardRef(MWe),jWe=function(t){var r=t.searchMention,n=t.addEventListener,o=t.appendContent,a=t.addSanitizeFn,i=O.useRef(null),s=O.useState(!1),l=zi(s,2),c=l[0],u=l[1],p=PWe(r),h=p.mentionSearchText,g=p.mentionUsers,x=p.loading,y=p.onKeyUp,b=p.onFocus,m=p.onSelectUser;O.useEffect(function(){a(function(v){var d=document.createElement("div");d.innerHTML=v;var w=Array.prototype.slice.call(d.querySelectorAll(".react-input-emoji--mention--text"));return w.forEach(function(_){d.innerHTML=d.innerHTML.replace(_.outerHTML,"@[".concat(_.dataset.mentionName,"](userId:").concat(_.dataset.mentionId,")"))}),d.innerHTML})},[a]),O.useEffect(function(){u(g.length>0)},[g]),O.useEffect(function(){function v(){u(!1)}return document.addEventListener("click",v),function(){document.removeEventListener("click",v)}},[]),O.useEffect(function(){var v=n("keyUp",y);return function(){v()}},[n,y]),O.useEffect(function(){function v(w){switch(w.key){case"Esc":case"Escape":u(!1);break}}var d=n("keyDown",v);return function(){d()}},[n]),O.useEffect(function(){var v=n("focus",b);return function(){v()}},[n,b]),O.useEffect(function(){if(c){var v=n("arrowUp",function(w){w.stopPropagation(),w.preventDefault(),i.current.prevUser()}),d=n("arrowDown",function(w){w.stopPropagation(),w.preventDefault(),i.current.nextUser()});return function(){v(),d()}}},[n,c]);function f(v){m(),o('@').concat(v.name," "))}return Fe.createElement(Fe.Fragment,null,x?Fe.createElement("div",{className:"react-input-emoji--mention--container"},Fe.createElement("div",{className:"react-input-emoji--mention--loading"},Fe.createElement("div",{className:"react-input-emoji--mention--loading--spinner"},"Loading..."))):c&&Fe.createElement("div",{className:"react-input-emoji--mention--container",onClick:function(d){return d.stopPropagation()}},Fe.createElement(AWe,{ref:i,mentionSearchText:h,users:g,onSelect:f,addEventListener:n})))};function Wl(){var e=[];return{subscribe:function(r){return e.push(r),function(){e=e.filter(function(n){return n!==r})}},publish:function(r){e.forEach(function(n){return n(r)})},get currentListerners(){return e}}}function IWe(){var e=O.useMemo(function(){return{keyDown:Wl(),keyUp:Wl(),arrowUp:Wl(),arrowDown:Wl(),enter:Wl(),focus:Wl(),blur:Wl()}},[]),t=O.useCallback(function(r,n){return e[r].subscribe(n)},[e]);return{addEventListener:t,listeners:e}}function LWe(){var e=O.useRef([]),t=O.useCallback(function(n){e.current.push(n)},[]),r=O.useCallback(function(n){var o=e.current.reduce(function(a,i){return i(a)},n);return o},[]);return{addPolluteFn:t,pollute:r}}function $We(e,t){var r=e.onChange,n=e.onEnter,o=e.shouldReturn,a=e.onResize,i=e.onClick,s=e.onFocus,l=e.onBlur,c=e.onKeyDown,u=e.theme,p=e.cleanOnEnter,h=e.placeholder,g=e.maxLength,x=e.keepOpened,y=e.inputClass,b=e.disableRecent,m=e.tabIndex,f=e.value,v=e.customEmojis,d=e.language,w=e.searchMention,_=e.buttonElement,E=e.buttonRef,k=e.borderRadius,S=e.borderColor,R=e.fontSize,T=e.fontFamily,P=O.useRef(null),j=IWe(),L=j.addEventListener,D=j.listeners,B=cJ(e.shouldReturn),V=B.addSanitizeFn,q=B.sanitize,z=B.sanitizedTextRef,F=LWe(),N=F.addPolluteFn,W=F.pollute,G=O.useCallback(function(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";P.current!==null&&(P.current.html=iJ(se),z.current=se)},[z]),Q=O.useCallback(function(se){G(se)},[G]),Z=AUe(P,a,r);MUe({ref:t,setValue:Q,textInputRef:P,emitChange:Z}),O.useEffect(function(){z.current!==f&&Q(f)},[z,Q,f]),O.useEffect(function(){function se(we){if(typeof g<"u"&&we.key!=="Backspace"&&P.current!==null&&mD(P.current)>=g&&we.preventDefault(),we.key==="Enter"&&P.current){we.preventDefault();var Oe=q(P.current.html);return Z(z.current),typeof n=="function"&&D.enter.currentListerners.length===0&&n(Oe),p&&D.enter.currentListerners.length===0&&G(""),typeof c=="function"&&c(we.nativeEvent),!1}return typeof c=="function"&&c(we.nativeEvent),!0}var ue=L("keyDown",se);return function(){ue()}},[L,p,Z,D.enter.currentListerners.length,g,n,c,q,z,G]),O.useEffect(function(){function se(){typeof i=="function"&&i(),typeof s=="function"&&s()}var ue=L("focus",se);return function(){ue()}},[L,i,s]),O.useEffect(function(){function se(){typeof l=="function"&&l()}var ue=L("blur",se);return function(){ue()}},[L,l]);function U(se){q(se),f!==z.current&&Z(z.current)}function J(se){typeof g<"u"&&P.current!==null&&mD(P.current)>=g||P.current!==null&&P.current.appendContent(se)}function ae(se){var ue=window.getSelection();if(ue!==null){var we="";if(ue.anchorNode&&ue.anchorNode.nodeType===Node.ELEMENT_NODE)we=ue.anchorNode.innerHTML;else if(ue.anchorNode&&ue.anchorNode.nodeType===Node.TEXT_NODE){var Oe;we=(Oe=ue.anchorNode.textContent)!==null&&Oe!==void 0?Oe:""}var Te=yp(we);se.clipboardData.setData("text",Te),se.preventDefault()}}function ee(se){se.preventDefault();var ue;se.clipboardData&&(ue=se.clipboardData.getData("text/plain"),ue=W(ue),document.execCommand("insertHTML",!1,ue))}return Fe.createElement("div",{className:"react-emoji"},Fe.createElement(jWe,{searchMention:w,addEventListener:L,appendContent:J,addSanitizeFn:V}),Fe.createElement(LUe,{ref:P,onCopy:ae,onPaste:ee,shouldReturn:o,onBlur:D.blur.publish,onFocus:D.focus.publish,onArrowUp:D.arrowUp.publish,onArrowDown:D.arrowDown.publish,onKeyUp:D.keyUp.publish,onKeyDown:D.keyDown.publish,onEnter:D.enter.publish,placeholder:h,style:{borderRadius:k,borderColor:S,fontSize:R,fontFamily:T},tabIndex:m,className:y,onChange:U}),Fe.createElement(kWe,{theme:u,keepOpened:x,disableRecent:b,customEmojis:v,addSanitizeFn:V,addPolluteFn:N,appendContent:J,buttonElement:_,buttonRef:E,language:d}))}var $J=O.forwardRef($We);$J.defaultProps={theme:"auto",height:30,placeholder:"Type a message",borderRadius:21,borderColor:"#EAEAEA",fontSize:15,fontFamily:"sans-serif",tabIndex:0,shouldReturn:!1,customEmojis:[],language:void 0};//! moment.js +`;function CWe(e){const t=O.useRef(null),r=O.useRef(null);return r.current&&r.current.update(e),O.useEffect(()=>(r.current=new bM({...e,ref:t}),()=>{r.current=null}),[]),Fe.createElement("div",{ref:t})}function OWe(e){var t=e.theme,r=e.onSelectEmoji,n=e.disableRecent,o=e.customEmojis,a=e.language,i=O.useMemo(function(){var l=[];return n||l.push("frequent"),l=[].concat(oJ(l),["people","nature","foods","activity","places","objects","symbols","flags"]),l},[n]),s=O.useMemo(function(){if(a)return require("@emoji-mart/data/i18n/".concat(a??"en",".json"))},[a]);return Fe.createElement(CWe,{data:void 0,theme:t,previewPosition:"none",onEmojiSelect:r,custom:o,categories:i,set:"apple",i18n:s})}var kWe=O.memo(OWe);function FD(e){var t=e.showPicker,r=e.theme,n=e.handleSelectEmoji,o=e.disableRecent,a=e.customEmojis,i=e.position,s=e.language;return Fe.createElement("div",{className:"react-emoji-picker--container"},t&&Fe.createElement("div",{className:"react-emoji-picker--wrapper",onClick:function(c){return c.stopPropagation()},style:i==="below"?{top:"40px"}:{}},Fe.createElement("div",{className:"react-emoji-picker"},Fe.createElement(kWe,{theme:r,onSelectEmoji:n,disableRecent:o,customEmojis:a,language:s}))))}var RWe=435,SWe=function(t){var r=t.theme,n=t.keepOpened,o=t.disableRecent,a=t.customEmojis,i=t.addSanitizeFn,s=t.addPolluteFn,l=t.appendContent,c=t.buttonElement,u=t.buttonRef,p=t.language,h=O.useState(!1),g=zi(h,2),x=g[0],y=g[1],b=O.useState(),m=zi(b,2),f=m[0],v=m[1],d=O.useState(),w=zi(d,2),_=w[0],E=w[1];O.useEffect(function(){i(yp)},[i]),O.useEffect(function(){s(iJ)},[s]),O.useEffect(function(){function T(P){var j=P.target;j.classList.contains("react-input-emoji--button")||j.classList.contains("react-input-emoji--button--icon")||y(!1)}return document.addEventListener("click",T),function(){document.removeEventListener("click",T)}},[]);function k(T){T.stopPropagation(),T.preventDefault(),E(S(T)),y(function(P){return!P})}function S(T){var P=T.currentTarget,j=P.getBoundingClientRect(),L=RWe;return j.top>=L?"above":"below"}function R(T){l(SUe(T)),n||y(function(P){return!P})}return O.useEffect(function(){var T;u!=null&&(T=u.current)!==null&&T!==void 0&&T.style?(u.current.style.position="relative",v(u.current)):c!=null&&c.style&&(c.style.position="relative",v(c))},[u,c]),f?jue.createPortal(Fe.createElement(Fe.Fragment,null,Fe.createElement(FD,{showPicker:x,theme:r,handleSelectEmoji:R,disableRecent:o,customEmojis:a,position:_,language:p}),Fe.createElement(gD,{showPicker:x,toggleShowPicker:k,buttonElement:f,buttonRef:u})),f):Fe.createElement(Fe.Fragment,null,Fe.createElement(FD,{showPicker:x,theme:r,handleSelectEmoji:R,disableRecent:o,customEmojis:a,position:_,language:p}),Fe.createElement(gD,{showPicker:x,toggleShowPicker:k}))};function TWe(){var e=LJ();if(!e)return null;var t=e.text.substring(e.begin,e.end);return t||null}function PWe(){var e=LJ();e&&e.element.deleteData(e.begin,e.end-e.begin)}function LJ(){var e=VR();if(!e)return null;var t=e.element,r=e.caretOffset,n=t.textContent,o=n.lastIndexOf("@");return o===-1||o>=r||o!==0&&n[o-1]!==" "?null:{begin:o,end:r,text:n,element:t}}function VR(){var e=MWe();if(e===null)return null;var t=0;if(typeof window.getSelection<"u"){var r=window.getSelection().getRangeAt(0),n=r.cloneRange();n.selectNodeContents(e),n.setEnd(r.endContainer,r.endOffset),t=n.toString().length}else if(typeof document.selection<"u"&&document.selection.type!="Control"){var o=document.selection.createRange(),a=document.body.createTextRange();a.moveToElementText(e),a.setEndPoint("EndToEnd",o),t=a.text.length}return{element:e,caretOffset:t}}function MWe(){var e=document.getSelection().anchorNode;return(e==null?void 0:e.nodeType)==3?e:null}function AWe(e){var t,r=O.useState(!1),n=zi(r,2),o=n[0],a=n[1],i=O.useState([]),s=zi(i,2),l=s[0],c=s[1],u=O.useState(null),p=zi(u,2),h=p[0],g=p[1],x=O.useCallback(function(){PWe(),c([])},[]),y=O.useCallback(hD(Xh().mark(function f(){var v,d;return Xh().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(v=TWe(),g(v),v!==null){_.next=6;break}c([]),_.next=12;break;case 6:return a(!0),_.next=9,e(v);case 9:d=_.sent,a(!1),c(d);case 12:case"end":return _.stop()}},f)})),[e]),b=O.useCallback(function(f){return(t=t||hD(Xh().mark(function v(d){var w,_;return Xh().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(typeof e=="function"){k.next=2;break}return k.abrupt("return");case 2:d.key==="Backspace"&&(w=VR())!==null&&w!==void 0&&w.element.parentElement.hasAttribute("data-mention-id")?(_=VR(),_.element.parentElement.remove()):["ArrowUp","ArrowDown","Esc","Escape"].includes(d.key)||y();case 3:case"end":return k.stop()}},v)}))).apply(this,arguments)},[y,e]),m=O.useCallback(function(){y()},[y]);return{mentionSearchText:h,mentionUsers:l,onKeyUp:b,onFocus:m,onSelectUser:x,loading:o}}var jWe=function(t,r){var n=t.users,o=t.mentionSearchText,a=t.onSelect,i=t.addEventListener,s=O.useState(0),l=zi(s,2),c=l[0],u=l[1];O.useImperativeHandle(r,function(){return{prevUser:function(){u(function(y){return y===0?0:y-1})},nextUser:function(){u(function(y){return y===n.length-1?n.length-1:y+1})}}}),O.useEffect(function(){u(0)},[n]);function p(x,y){return''.concat(x,"").concat(y)}var h=O.useMemo(function(){var x=o?o.substring(1).toLocaleLowerCase():"";return n.map(function(y){var b=y.name;if(o&&o.length>1)if(y.name.toLowerCase().startsWith(x))b=p(y.name.substring(0,x.length),y.name.substring(x.length));else{var m=y.name.split(" ");b=m.map(function(f){return f.toLocaleLowerCase().startsWith(x)?p(f.substring(0,x.length),f.substring(x.length)):f}).join(" ")}return dD(dD({},y),{},{nameHtml:b})})},[o,n]);function g(x){return function(y){y.stopPropagation(),y.preventDefault(),a(x)}}return O.useEffect(function(){var x=i("enter",function(y){y.stopPropagation(),y.preventDefault(),a(h[c])});return function(){x()}},[i,a,c,h]),Fe.createElement("ul",{className:"react-input-emoji--mention--list","data-testid":"mention-user-list"},h.map(function(x,y){return Fe.createElement("li",{key:x.id},Fe.createElement("button",{type:"button",onClick:g(x),className:"react-input-emoji--mention--item".concat(c===y?" react-input-emoji--mention--item__selected":""),onMouseOver:function(){return u(y)}},Fe.createElement("img",{className:"react-input-emoji--mention--item--img",src:x.image}),Fe.createElement("div",{className:"react-input-emoji--mention--item--name",dangerouslySetInnerHTML:{__html:x.nameHtml}})))}))},IWe=O.forwardRef(jWe),LWe=function(t){var r=t.searchMention,n=t.addEventListener,o=t.appendContent,a=t.addSanitizeFn,i=O.useRef(null),s=O.useState(!1),l=zi(s,2),c=l[0],u=l[1],p=AWe(r),h=p.mentionSearchText,g=p.mentionUsers,x=p.loading,y=p.onKeyUp,b=p.onFocus,m=p.onSelectUser;O.useEffect(function(){a(function(v){var d=document.createElement("div");d.innerHTML=v;var w=Array.prototype.slice.call(d.querySelectorAll(".react-input-emoji--mention--text"));return w.forEach(function(_){d.innerHTML=d.innerHTML.replace(_.outerHTML,"@[".concat(_.dataset.mentionName,"](userId:").concat(_.dataset.mentionId,")"))}),d.innerHTML})},[a]),O.useEffect(function(){u(g.length>0)},[g]),O.useEffect(function(){function v(){u(!1)}return document.addEventListener("click",v),function(){document.removeEventListener("click",v)}},[]),O.useEffect(function(){var v=n("keyUp",y);return function(){v()}},[n,y]),O.useEffect(function(){function v(w){switch(w.key){case"Esc":case"Escape":u(!1);break}}var d=n("keyDown",v);return function(){d()}},[n]),O.useEffect(function(){var v=n("focus",b);return function(){v()}},[n,b]),O.useEffect(function(){if(c){var v=n("arrowUp",function(w){w.stopPropagation(),w.preventDefault(),i.current.prevUser()}),d=n("arrowDown",function(w){w.stopPropagation(),w.preventDefault(),i.current.nextUser()});return function(){v(),d()}}},[n,c]);function f(v){m(),o('@').concat(v.name," "))}return Fe.createElement(Fe.Fragment,null,x?Fe.createElement("div",{className:"react-input-emoji--mention--container"},Fe.createElement("div",{className:"react-input-emoji--mention--loading"},Fe.createElement("div",{className:"react-input-emoji--mention--loading--spinner"},"Loading..."))):c&&Fe.createElement("div",{className:"react-input-emoji--mention--container",onClick:function(d){return d.stopPropagation()}},Fe.createElement(IWe,{ref:i,mentionSearchText:h,users:g,onSelect:f,addEventListener:n})))};function Wl(){var e=[];return{subscribe:function(r){return e.push(r),function(){e=e.filter(function(n){return n!==r})}},publish:function(r){e.forEach(function(n){return n(r)})},get currentListerners(){return e}}}function $We(){var e=O.useMemo(function(){return{keyDown:Wl(),keyUp:Wl(),arrowUp:Wl(),arrowDown:Wl(),enter:Wl(),focus:Wl(),blur:Wl()}},[]),t=O.useCallback(function(r,n){return e[r].subscribe(n)},[e]);return{addEventListener:t,listeners:e}}function NWe(){var e=O.useRef([]),t=O.useCallback(function(n){e.current.push(n)},[]),r=O.useCallback(function(n){var o=e.current.reduce(function(a,i){return i(a)},n);return o},[]);return{addPolluteFn:t,pollute:r}}function DWe(e,t){var r=e.onChange,n=e.onEnter,o=e.shouldReturn,a=e.onResize,i=e.onClick,s=e.onFocus,l=e.onBlur,c=e.onKeyDown,u=e.theme,p=e.cleanOnEnter,h=e.placeholder,g=e.maxLength,x=e.keepOpened,y=e.inputClass,b=e.disableRecent,m=e.tabIndex,f=e.value,v=e.customEmojis,d=e.language,w=e.searchMention,_=e.buttonElement,E=e.buttonRef,k=e.borderRadius,S=e.borderColor,R=e.fontSize,T=e.fontFamily,P=O.useRef(null),j=$We(),L=j.addEventListener,D=j.listeners,B=cJ(e.shouldReturn),V=B.addSanitizeFn,q=B.sanitize,z=B.sanitizedTextRef,F=NWe(),N=F.addPolluteFn,W=F.pollute,G=O.useCallback(function(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";P.current!==null&&(P.current.html=iJ(se),z.current=se)},[z]),Q=O.useCallback(function(se){G(se)},[G]),Z=IUe(P,a,r);jUe({ref:t,setValue:Q,textInputRef:P,emitChange:Z}),O.useEffect(function(){z.current!==f&&Q(f)},[z,Q,f]),O.useEffect(function(){function se(we){if(typeof g<"u"&&we.key!=="Backspace"&&P.current!==null&&mD(P.current)>=g&&we.preventDefault(),we.key==="Enter"&&P.current){we.preventDefault();var Oe=q(P.current.html);return Z(z.current),typeof n=="function"&&D.enter.currentListerners.length===0&&n(Oe),p&&D.enter.currentListerners.length===0&&G(""),typeof c=="function"&&c(we.nativeEvent),!1}return typeof c=="function"&&c(we.nativeEvent),!0}var ue=L("keyDown",se);return function(){ue()}},[L,p,Z,D.enter.currentListerners.length,g,n,c,q,z,G]),O.useEffect(function(){function se(){typeof i=="function"&&i(),typeof s=="function"&&s()}var ue=L("focus",se);return function(){ue()}},[L,i,s]),O.useEffect(function(){function se(){typeof l=="function"&&l()}var ue=L("blur",se);return function(){ue()}},[L,l]);function U(se){q(se),f!==z.current&&Z(z.current)}function J(se){typeof g<"u"&&P.current!==null&&mD(P.current)>=g||P.current!==null&&P.current.appendContent(se)}function ae(se){var ue=window.getSelection();if(ue!==null){var we="";if(ue.anchorNode&&ue.anchorNode.nodeType===Node.ELEMENT_NODE)we=ue.anchorNode.innerHTML;else if(ue.anchorNode&&ue.anchorNode.nodeType===Node.TEXT_NODE){var Oe;we=(Oe=ue.anchorNode.textContent)!==null&&Oe!==void 0?Oe:""}var Te=yp(we);se.clipboardData.setData("text",Te),se.preventDefault()}}function ee(se){se.preventDefault();var ue;se.clipboardData&&(ue=se.clipboardData.getData("text/plain"),ue=W(ue),document.execCommand("insertHTML",!1,ue))}return Fe.createElement("div",{className:"react-emoji"},Fe.createElement(LWe,{searchMention:w,addEventListener:L,appendContent:J,addSanitizeFn:V}),Fe.createElement(NUe,{ref:P,onCopy:ae,onPaste:ee,shouldReturn:o,onBlur:D.blur.publish,onFocus:D.focus.publish,onArrowUp:D.arrowUp.publish,onArrowDown:D.arrowDown.publish,onKeyUp:D.keyUp.publish,onKeyDown:D.keyDown.publish,onEnter:D.enter.publish,placeholder:h,style:{borderRadius:k,borderColor:S,fontSize:R,fontFamily:T},tabIndex:m,className:y,onChange:U}),Fe.createElement(SWe,{theme:u,keepOpened:x,disableRecent:b,customEmojis:v,addSanitizeFn:V,addPolluteFn:N,appendContent:J,buttonElement:_,buttonRef:E,language:d}))}var $J=O.forwardRef(DWe);$J.defaultProps={theme:"auto",height:30,placeholder:"Type a message",borderRadius:21,borderColor:"#EAEAEA",fontSize:15,fontFamily:"sans-serif",tabIndex:0,shouldReturn:!1,customEmojis:[],language:void 0};//! moment.js //! version : 2.29.4 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -var NJ;function ze(){return NJ.apply(null,arguments)}function NWe(e){NJ=e}function Oa(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Ec(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function zt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function yM(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(zt(e,t))return!1;return!0}function Un(e){return e===void 0}function Xi(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function t5(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function DJ(e,t){var r=[],n,o=e.length;for(n=0;n>>0,n;for(n=0;n0)for(r=0;r>>0,n;for(n=0;n0)for(r=0;r=0;return(a?r?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+n}var EM=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,pm=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,iO={},Cd={};function ot(e,t,r,n){var o=n;typeof n=="string"&&(o=function(){return this[n]()}),e&&(Cd[e]=o),t&&(Cd[t[0]]=function(){return ti(o.apply(this,arguments),t[1],t[2])}),r&&(Cd[r]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function VWe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function HWe(e){var t=e.match(EM),r,n;for(r=0,n=t.length;r=0&&pm.test(e);)e=e.replace(pm,n),pm.lastIndex=0,r-=1;return e}var UWe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function WWe(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(EM).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var qWe="Invalid date";function GWe(){return this._invalidDate}var KWe="%d",YWe=/\d{1,2}/;function XWe(e){return this._ordinal.replace("%d",e)}var ZWe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function QWe(e,t,r,n){var o=this._relativeTime[r];return ci(o)?o(e,t,r,n):o.replace(/%d/i,e)}function JWe(e,t){var r=this._relativeTime[e>0?"future":"past"];return ci(r)?r(t):r.replace(/%s/i,t)}var xp={};function kn(e,t){var r=e.toLowerCase();xp[r]=xp[r+"s"]=xp[t]=e}function ea(e){return typeof e=="string"?xp[e]||xp[e.toLowerCase()]:void 0}function CM(e){var t={},r,n;for(n in e)zt(e,n)&&(r=ea(n),r&&(t[r]=e[n]));return t}var VJ={};function Rn(e,t){VJ[e]=t}function eqe(e){var t=[],r;for(r in e)zt(e,r)&&t.push({unit:r,priority:VJ[r]});return t.sort(function(n,o){return n.priority-o.priority}),t}function C9(e){return e%4===0&&e%100!==0||e%400===0}function Bo(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function _t(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Bo(t)),r}function Cf(e,t){return function(r){return r!=null?(HJ(this,e,r),ze.updateOffset(this,t),this):d_(this,e)}}function d_(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function HJ(e,t,r){e.isValid()&&!isNaN(r)&&(t==="FullYear"&&C9(e.year())&&e.month()===1&&e.date()===29?(r=_t(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),P9(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}function tqe(e){return e=ea(e),ci(this[e])?this[e]():this}function rqe(e,t){if(typeof e=="object"){e=CM(e);var r=eqe(e),n,o=r.length;for(n=0;n68?1900:2e3)};var JJ=Cf("FullYear",!0);function xqe(){return C9(this.year())}function _qe(e,t,r,n,o,a,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,r,n,o,a,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,o,a,i),s}function h1(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function h_(e,t,r){var n=7+t-r,o=(7+h1(e,0,n).getUTCDay()-t)%7;return-o+n-1}function eee(e,t,r,n,o){var a=(7+r-n)%7,i=h_(e,n,o),s=1+7*(t-1)+a+i,l,c;return s<=0?(l=e-1,c=_p(l)+s):s>_p(e)?(l=e+1,c=s-_p(e)):(l=e,c=s),{year:l,dayOfYear:c}}function p1(e,t,r){var n=h_(e.year(),t,r),o=Math.floor((e.dayOfYear()-n-1)/7)+1,a,i;return o<1?(i=e.year()-1,a=o+Bi(i,t,r)):o>Bi(e.year(),t,r)?(a=o-Bi(e.year(),t,r),i=e.year()+1):(i=e.year(),a=o),{week:a,year:i}}function Bi(e,t,r){var n=h_(e,t,r),o=h_(e+1,t,r);return(_p(e)-n+o)/7}ot("w",["ww",2],"wo","week");ot("W",["WW",2],"Wo","isoWeek");kn("week","w");kn("isoWeek","W");Rn("week",5);Rn("isoWeek",5);Ue("w",dr);Ue("ww",dr,Ro);Ue("W",dr);Ue("WW",dr,Ro);o5(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=_t(e)});function Eqe(e){return p1(e,this._week.dow,this._week.doy).week}var Cqe={dow:0,doy:6};function Oqe(){return this._week.dow}function kqe(){return this._week.doy}function Rqe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Sqe(e){var t=p1(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}ot("d",0,"do","day");ot("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});ot("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});ot("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});ot("e",0,0,"weekday");ot("E",0,0,"isoWeekday");kn("day","d");kn("weekday","e");kn("isoWeekday","E");Rn("day",11);Rn("weekday",11);Rn("isoWeekday",11);Ue("d",dr);Ue("e",dr);Ue("E",dr);Ue("dd",function(e,t){return t.weekdaysMinRegex(e)});Ue("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ue("dddd",function(e,t){return t.weekdaysRegex(e)});o5(["dd","ddd","dddd"],function(e,t,r,n){var o=r._locale.weekdaysParse(e,n,r._strict);o!=null?t.d=o:vt(r).invalidWeekday=e});o5(["d","e","E"],function(e,t,r,n){t[n]=_t(e)});function Tqe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Pqe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function RM(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Mqe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),tee="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Aqe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),jqe=n5,Iqe=n5,Lqe=n5;function $qe(e,t){var r=Oa(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?RM(r,this._week.dow):e?r[e.day()]:r}function Nqe(e){return e===!0?RM(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Dqe(e){return e===!0?RM(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Fqe(e,t,r){var n,o,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=li([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return r?t==="dddd"?(o=Pr.call(this._weekdaysParse,i),o!==-1?o:null):t==="ddd"?(o=Pr.call(this._shortWeekdaysParse,i),o!==-1?o:null):(o=Pr.call(this._minWeekdaysParse,i),o!==-1?o:null):t==="dddd"?(o=Pr.call(this._weekdaysParse,i),o!==-1||(o=Pr.call(this._shortWeekdaysParse,i),o!==-1)?o:(o=Pr.call(this._minWeekdaysParse,i),o!==-1?o:null)):t==="ddd"?(o=Pr.call(this._shortWeekdaysParse,i),o!==-1||(o=Pr.call(this._weekdaysParse,i),o!==-1)?o:(o=Pr.call(this._minWeekdaysParse,i),o!==-1?o:null)):(o=Pr.call(this._minWeekdaysParse,i),o!==-1||(o=Pr.call(this._weekdaysParse,i),o!==-1)?o:(o=Pr.call(this._shortWeekdaysParse,i),o!==-1?o:null))}function zqe(e,t,r){var n,o,a;if(this._weekdaysParseExact)return Fqe.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(o=li([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function Bqe(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=Tqe(e,this.localeData()),this.add(e-t,"d")):t}function Vqe(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Hqe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Pqe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Uqe(e){return this._weekdaysParseExact?(zt(this,"_weekdaysRegex")||SM.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(zt(this,"_weekdaysRegex")||(this._weekdaysRegex=jqe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Wqe(e){return this._weekdaysParseExact?(zt(this,"_weekdaysRegex")||SM.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(zt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Iqe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function qqe(e){return this._weekdaysParseExact?(zt(this,"_weekdaysRegex")||SM.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(zt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lqe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function SM(){function e(u,p){return p.length-u.length}var t=[],r=[],n=[],o=[],a,i,s,l,c;for(a=0;a<7;a++)i=li([2e3,1]).day(a),s=uo(this.weekdaysMin(i,"")),l=uo(this.weekdaysShort(i,"")),c=uo(this.weekdays(i,"")),t.push(s),r.push(l),n.push(c),o.push(s),o.push(l),o.push(c);t.sort(e),r.sort(e),n.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function TM(){return this.hours()%12||12}function Gqe(){return this.hours()||24}ot("H",["HH",2],0,"hour");ot("h",["hh",2],0,TM);ot("k",["kk",2],0,Gqe);ot("hmm",0,0,function(){return""+TM.apply(this)+ti(this.minutes(),2)});ot("hmmss",0,0,function(){return""+TM.apply(this)+ti(this.minutes(),2)+ti(this.seconds(),2)});ot("Hmm",0,0,function(){return""+this.hours()+ti(this.minutes(),2)});ot("Hmmss",0,0,function(){return""+this.hours()+ti(this.minutes(),2)+ti(this.seconds(),2)});function ree(e,t){ot(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ree("a",!0);ree("A",!1);kn("hour","h");Rn("hour",13);function nee(e,t){return t._meridiemParse}Ue("a",nee);Ue("A",nee);Ue("H",dr);Ue("h",dr);Ue("k",dr);Ue("HH",dr,Ro);Ue("hh",dr,Ro);Ue("kk",dr,Ro);Ue("hmm",qJ);Ue("hmmss",GJ);Ue("Hmm",qJ);Ue("Hmmss",GJ);Zt(["H","HH"],Hr);Zt(["k","kk"],function(e,t,r){var n=_t(e);t[Hr]=n===24?0:n});Zt(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});Zt(["h","hh"],function(e,t,r){t[Hr]=_t(e),vt(r).bigHour=!0});Zt("hmm",function(e,t,r){var n=e.length-2;t[Hr]=_t(e.substr(0,n)),t[va]=_t(e.substr(n)),vt(r).bigHour=!0});Zt("hmmss",function(e,t,r){var n=e.length-4,o=e.length-2;t[Hr]=_t(e.substr(0,n)),t[va]=_t(e.substr(n,2)),t[Ti]=_t(e.substr(o)),vt(r).bigHour=!0});Zt("Hmm",function(e,t,r){var n=e.length-2;t[Hr]=_t(e.substr(0,n)),t[va]=_t(e.substr(n))});Zt("Hmmss",function(e,t,r){var n=e.length-4,o=e.length-2;t[Hr]=_t(e.substr(0,n)),t[va]=_t(e.substr(n,2)),t[Ti]=_t(e.substr(o))});function Kqe(e){return(e+"").toLowerCase().charAt(0)==="p"}var Yqe=/[ap]\.?m?\.?/i,Xqe=Cf("Hours",!0);function Zqe(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var oee={calendar:zWe,longDateFormat:UWe,invalidDate:qWe,ordinal:KWe,dayOfMonthOrdinalParse:YWe,relativeTime:ZWe,months:dqe,monthsShort:KJ,week:Cqe,weekdays:Mqe,weekdaysMin:Aqe,weekdaysShort:tee,meridiemParse:Yqe},pr={},m0={},m1;function Qqe(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r0;){if(o=M9(a.slice(0,r).join("-")),o)return o;if(n&&n.length>=r&&Qqe(a,n)>=r-1)break;r--}t++}return m1}function eGe(e){return e.match("^[^/\\\\]*$")!=null}function M9(e){var t=null,r;if(pr[e]===void 0&&typeof module<"u"&&module&&module.exports&&eGe(e))try{t=m1._abbr,r=require,r("./locale/"+e),al(t)}catch{pr[e]=null}return pr[e]}function al(e,t){var r;return e&&(Un(t)?r=rs(e):r=PM(e,t),r?m1=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),m1._abbr}function PM(e,t){if(t!==null){var r,n=oee;if(t.abbr=e,pr[e]!=null)zJ("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=pr[e]._config;else if(t.parentLocale!=null)if(pr[t.parentLocale]!=null)n=pr[t.parentLocale]._config;else if(r=M9(t.parentLocale),r!=null)n=r._config;else return m0[t.parentLocale]||(m0[t.parentLocale]=[]),m0[t.parentLocale].push({name:e,config:t}),null;return pr[e]=new _M(UR(n,t)),m0[e]&&m0[e].forEach(function(o){PM(o.name,o.config)}),al(e),pr[e]}else return delete pr[e],null}function tGe(e,t){if(t!=null){var r,n,o=oee;pr[e]!=null&&pr[e].parentLocale!=null?pr[e].set(UR(pr[e]._config,t)):(n=M9(e),n!=null&&(o=n._config),t=UR(o,t),n==null&&(t.abbr=e),r=new _M(t),r.parentLocale=pr[e],pr[e]=r),al(e)}else pr[e]!=null&&(pr[e].parentLocale!=null?(pr[e]=pr[e].parentLocale,e===al()&&al(e)):pr[e]!=null&&delete pr[e]);return pr[e]}function rs(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return m1;if(!Oa(e)){if(t=M9(e),t)return t;e=[e]}return Jqe(e)}function rGe(){return WR(pr)}function MM(e){var t,r=e._a;return r&&vt(e).overflow===-2&&(t=r[Si]<0||r[Si]>11?Si:r[Va]<1||r[Va]>P9(r[_n],r[Si])?Va:r[Hr]<0||r[Hr]>24||r[Hr]===24&&(r[va]!==0||r[Ti]!==0||r[gc]!==0)?Hr:r[va]<0||r[va]>59?va:r[Ti]<0||r[Ti]>59?Ti:r[gc]<0||r[gc]>999?gc:-1,vt(e)._overflowDayOfYear&&(t<_n||t>Va)&&(t=Va),vt(e)._overflowWeeks&&t===-1&&(t=lqe),vt(e)._overflowWeekday&&t===-1&&(t=cqe),vt(e).overflow=t),e}var nGe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,oGe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,aGe=/Z|[+-]\d\d(?::?\d\d)?/,mm=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],sO=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],iGe=/^\/?Date\((-?\d+)/i,sGe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,lGe={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function aee(e){var t,r,n=e._i,o=nGe.exec(n)||oGe.exec(n),a,i,s,l,c=mm.length,u=sO.length;if(o){for(vt(e).iso=!0,t=0,r=c;t_p(i)||e._dayOfYear===0)&&(vt(e)._overflowDayOfYear=!0),r=h1(i,0,e._dayOfYear),e._a[Si]=r.getUTCMonth(),e._a[Va]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=o[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Hr]===24&&e._a[va]===0&&e._a[Ti]===0&&e._a[gc]===0&&(e._nextDay=!0,e._a[Hr]=0),e._d=(e._useUTC?h1:_qe).apply(null,n),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Hr]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(vt(e).weekdayMismatch=!0)}}function gGe(e){var t,r,n,o,a,i,s,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,r=Lu(t.GG,e._a[_n],p1(cr(),1,4).year),n=Lu(t.W,1),o=Lu(t.E,1),(o<1||o>7)&&(l=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,c=p1(cr(),a,i),r=Lu(t.gg,e._a[_n],c.year),n=Lu(t.w,c.week),t.d!=null?(o=t.d,(o<0||o>6)&&(l=!0)):t.e!=null?(o=t.e+a,(t.e<0||t.e>6)&&(l=!0)):o=a),n<1||n>Bi(r,a,i)?vt(e)._overflowWeeks=!0:l!=null?vt(e)._overflowWeekday=!0:(s=eee(r,n,o,a,i),e._a[_n]=s.year,e._dayOfYear=s.dayOfYear)}ze.ISO_8601=function(){};ze.RFC_2822=function(){};function jM(e){if(e._f===ze.ISO_8601){aee(e);return}if(e._f===ze.RFC_2822){iee(e);return}e._a=[],vt(e).empty=!0;var t=""+e._i,r,n,o,a,i,s=t.length,l=0,c,u;for(o=BJ(e._f,e._locale).match(EM)||[],u=o.length,r=0;r0&&vt(e).unusedInput.push(i),t=t.slice(t.indexOf(n)+n.length),l+=n.length),Cd[a]?(n?vt(e).empty=!1:vt(e).unusedTokens.push(a),sqe(a,n,e)):e._strict&&!n&&vt(e).unusedTokens.push(a);vt(e).charsLeftOver=s-l,t.length>0&&vt(e).unusedInput.push(t),e._a[Hr]<=12&&vt(e).bigHour===!0&&e._a[Hr]>0&&(vt(e).bigHour=void 0),vt(e).parsedDateParts=e._a.slice(0),vt(e).meridiem=e._meridiem,e._a[Hr]=vGe(e._locale,e._a[Hr],e._meridiem),c=vt(e).era,c!==null&&(e._a[_n]=e._locale.erasConvertYear(c,e._a[_n])),AM(e),MM(e)}function vGe(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function bGe(e){var t,r,n,o,a,i,s=!1,l=e._f.length;if(l===0){vt(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;othis?this:e:E9()});function cee(e,t){var r,n;if(t.length===1&&Oa(t[0])&&(t=t[0]),!t.length)return cr();for(r=t[0],n=1;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function FGe(){if(!Un(this._isDSTShifted))return this._isDSTShifted;var e={},t;return xM(e,this),e=see(e),e._a?(t=e._isUTC?li(e._a):cr(e._a),this._isDSTShifted=this.isValid()&&PGe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function zGe(){return this.isValid()?!this._isUTC:!1}function BGe(){return this.isValid()?this._isUTC:!1}function dee(){return this.isValid()?this._isUTC&&this._offset===0:!1}var VGe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,HGe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Sa(e,t){var r=e,n=null,o,a,i;return V6(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Xi(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=VGe.exec(e))?(o=n[1]==="-"?-1:1,r={y:0,d:_t(n[Va])*o,h:_t(n[Hr])*o,m:_t(n[va])*o,s:_t(n[Ti])*o,ms:_t(GR(n[gc]*1e3))*o}):(n=HGe.exec(e))?(o=n[1]==="-"?-1:1,r={y:ql(n[2],o),M:ql(n[3],o),w:ql(n[4],o),d:ql(n[5],o),h:ql(n[6],o),m:ql(n[7],o),s:ql(n[8],o)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(i=UGe(cr(r.from),cr(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),a=new A9(r),V6(e)&&zt(e,"_locale")&&(a._locale=e._locale),V6(e)&&zt(e,"_isValid")&&(a._isValid=e._isValid),a}Sa.fn=A9.prototype;Sa.invalid=TGe;function ql(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function HD(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function UGe(e,t){var r;return e.isValid()&&t.isValid()?(t=LM(t,e),e.isBefore(t)?r=HD(e,t):(r=HD(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function fee(e,t){return function(r,n){var o,a;return n!==null&&!isNaN(+n)&&(zJ(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=r,r=n,n=a),o=Sa(r,n),hee(this,o,e),this}}function hee(e,t,r,n){var o=t._milliseconds,a=GR(t._days),i=GR(t._months);e.isValid()&&(n=n??!0,i&&XJ(e,d_(e,"Month")+i*r),a&&HJ(e,"Date",d_(e,"Date")+a*r),o&&e._d.setTime(e._d.valueOf()+o*r),n&&ze.updateOffset(e,a||i))}var WGe=fee(1,"add"),qGe=fee(-1,"subtract");function pee(e){return typeof e=="string"||e instanceof String}function GGe(e){return ka(e)||t5(e)||pee(e)||Xi(e)||YGe(e)||KGe(e)||e===null||e===void 0}function KGe(e){var t=Ec(e)&&!yM(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,a,i=n.length;for(o=0;or.valueOf():r.valueOf()9999?B6(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ci(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",B6(r,"Z")):B6(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function cKe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,o,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(r+n+o+a)}function uKe(e){e||(e=this.isUtc()?ze.defaultFormatUtc:ze.defaultFormat);var t=B6(this,e);return this.localeData().postformat(t)}function dKe(e,t){return this.isValid()&&(ka(e)&&e.isValid()||cr(e).isValid())?Sa({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function fKe(e){return this.from(cr(),e)}function hKe(e,t){return this.isValid()&&(ka(e)&&e.isValid()||cr(e).isValid())?Sa({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pKe(e){return this.to(cr(),e)}function mee(e){var t;return e===void 0?this._locale._abbr:(t=rs(e),t!=null&&(this._locale=t),this)}var gee=Jo("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function vee(){return this._locale}var p_=1e3,Od=60*p_,m_=60*Od,bee=(365*400+97)*24*m_;function kd(e,t){return(e%t+t)%t}function yee(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-bee:new Date(e,t,r).valueOf()}function wee(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-bee:Date.UTC(e,t,r)}function mKe(e){var t,r;if(e=ea(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?wee:yee,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=kd(t+(this._isUTC?0:this.utcOffset()*Od),m_);break;case"minute":t=this._d.valueOf(),t-=kd(t,Od);break;case"second":t=this._d.valueOf(),t-=kd(t,p_);break}return this._d.setTime(t),ze.updateOffset(this,!0),this}function gKe(e){var t,r;if(e=ea(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?wee:yee,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=m_-kd(t+(this._isUTC?0:this.utcOffset()*Od),m_)-1;break;case"minute":t=this._d.valueOf(),t+=Od-kd(t,Od)-1;break;case"second":t=this._d.valueOf(),t+=p_-kd(t,p_)-1;break}return this._d.setTime(t),ze.updateOffset(this,!0),this}function vKe(){return this._d.valueOf()-(this._offset||0)*6e4}function bKe(){return Math.floor(this.valueOf()/1e3)}function yKe(){return new Date(this.valueOf())}function wKe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xKe(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function _Ke(){return this.isValid()?this.toISOString():null}function EKe(){return wM(this)}function CKe(){return Fs({},vt(this))}function OKe(){return vt(this).overflow}function kKe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ot("N",0,0,"eraAbbr");ot("NN",0,0,"eraAbbr");ot("NNN",0,0,"eraAbbr");ot("NNNN",0,0,"eraName");ot("NNNNN",0,0,"eraNarrow");ot("y",["y",1],"yo","eraYear");ot("y",["yy",2],0,"eraYear");ot("y",["yyy",3],0,"eraYear");ot("y",["yyyy",4],0,"eraYear");Ue("N",$M);Ue("NN",$M);Ue("NNN",$M);Ue("NNNN",NKe);Ue("NNNNN",DKe);Zt(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var o=r._locale.erasParse(e,n,r._strict);o?vt(r).era=o:vt(r).invalidEra=e});Ue("y",Of);Ue("yy",Of);Ue("yyy",Of);Ue("yyyy",Of);Ue("yo",FKe);Zt(["y","yy","yyy","yyyy"],_n);Zt(["yo"],function(e,t,r,n){var o;r._locale._eraYearOrdinalRegex&&(o=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[_n]=r._locale.eraYearOrdinalParse(e,o):t[_n]=parseInt(e,10)});function RKe(e,t){var r,n,o,a=this._eras||rs("en")._eras;for(r=0,n=a.length;r=0)return a[n]}function TKe(e,t){var r=e.since<=e.until?1:-1;return t===void 0?ze(e.since).year():ze(e.since).year()+(t-e.offset)*r}function PKe(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;ea&&(t=a),qKe.call(this,e,t,r,n,o))}function qKe(e,t,r,n,o){var a=eee(e,t,r,n,o),i=h1(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}ot("Q",0,"Qo","quarter");kn("quarter","Q");Rn("quarter",7);Ue("Q",UJ);Zt("Q",function(e,t){t[Si]=(_t(e)-1)*3});function GKe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}ot("D",["DD",2],"Do","date");kn("date","D");Rn("date",9);Ue("D",dr);Ue("DD",dr,Ro);Ue("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Zt(["D","DD"],Va);Zt("Do",function(e,t){t[Va]=_t(e.match(dr)[0])});var _ee=Cf("Date",!0);ot("DDD",["DDDD",3],"DDDo","dayOfYear");kn("dayOfYear","DDD");Rn("dayOfYear",4);Ue("DDD",k9);Ue("DDDD",WJ);Zt(["DDD","DDDD"],function(e,t,r){r._dayOfYear=_t(e)});function KKe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}ot("m",["mm",2],0,"minute");kn("minute","m");Rn("minute",14);Ue("m",dr);Ue("mm",dr,Ro);Zt(["m","mm"],va);var YKe=Cf("Minutes",!1);ot("s",["ss",2],0,"second");kn("second","s");Rn("second",15);Ue("s",dr);Ue("ss",dr,Ro);Zt(["s","ss"],Ti);var XKe=Cf("Seconds",!1);ot("S",0,0,function(){return~~(this.millisecond()/100)});ot(0,["SS",2],0,function(){return~~(this.millisecond()/10)});ot(0,["SSS",3],0,"millisecond");ot(0,["SSSS",4],0,function(){return this.millisecond()*10});ot(0,["SSSSS",5],0,function(){return this.millisecond()*100});ot(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});ot(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});ot(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});ot(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});kn("millisecond","ms");Rn("millisecond",16);Ue("S",k9,UJ);Ue("SS",k9,Ro);Ue("SSS",k9,WJ);var zs,Eee;for(zs="SSSS";zs.length<=9;zs+="S")Ue(zs,Of);function ZKe(e,t){t[gc]=_t(("0."+e)*1e3)}for(zs="S";zs.length<=9;zs+="S")Zt(zs,ZKe);Eee=Cf("Milliseconds",!1);ot("z",0,0,"zoneAbbr");ot("zz",0,0,"zoneName");function QKe(){return this._isUTC?"UTC":""}function JKe(){return this._isUTC?"Coordinated Universal Time":""}var $e=r5.prototype;$e.add=WGe;$e.calendar=QGe;$e.clone=JGe;$e.diff=iKe;$e.endOf=gKe;$e.format=uKe;$e.from=dKe;$e.fromNow=fKe;$e.to=hKe;$e.toNow=pKe;$e.get=tqe;$e.invalidAt=OKe;$e.isAfter=eKe;$e.isBefore=tKe;$e.isBetween=rKe;$e.isSame=nKe;$e.isSameOrAfter=oKe;$e.isSameOrBefore=aKe;$e.isValid=EKe;$e.lang=gee;$e.locale=mee;$e.localeData=vee;$e.max=EGe;$e.min=_Ge;$e.parsingFlags=CKe;$e.set=rqe;$e.startOf=mKe;$e.subtract=qGe;$e.toArray=wKe;$e.toObject=xKe;$e.toDate=yKe;$e.toISOString=lKe;$e.inspect=cKe;typeof Symbol<"u"&&Symbol.for!=null&&($e[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});$e.toJSON=_Ke;$e.toString=sKe;$e.unix=bKe;$e.valueOf=vKe;$e.creationData=kKe;$e.eraName=PKe;$e.eraNarrow=MKe;$e.eraAbbr=AKe;$e.eraYear=jKe;$e.year=JJ;$e.isLeapYear=xqe;$e.weekYear=zKe;$e.isoWeekYear=BKe;$e.quarter=$e.quarters=GKe;$e.month=ZJ;$e.daysInMonth=bqe;$e.week=$e.weeks=Rqe;$e.isoWeek=$e.isoWeeks=Sqe;$e.weeksInYear=UKe;$e.weeksInWeekYear=WKe;$e.isoWeeksInYear=VKe;$e.isoWeeksInISOWeekYear=HKe;$e.date=_ee;$e.day=$e.days=Bqe;$e.weekday=Vqe;$e.isoWeekday=Hqe;$e.dayOfYear=KKe;$e.hour=$e.hours=Xqe;$e.minute=$e.minutes=YKe;$e.second=$e.seconds=XKe;$e.millisecond=$e.milliseconds=Eee;$e.utcOffset=AGe;$e.utc=IGe;$e.local=LGe;$e.parseZone=$Ge;$e.hasAlignedHourOffset=NGe;$e.isDST=DGe;$e.isLocal=zGe;$e.isUtcOffset=BGe;$e.isUtc=dee;$e.isUTC=dee;$e.zoneAbbr=QKe;$e.zoneName=JKe;$e.dates=Jo("dates accessor is deprecated. Use date instead.",_ee);$e.months=Jo("months accessor is deprecated. Use month instead",ZJ);$e.years=Jo("years accessor is deprecated. Use year instead",JJ);$e.zone=Jo("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",jGe);$e.isDSTShifted=Jo("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",FGe);function eYe(e){return cr(e*1e3)}function tYe(){return cr.apply(null,arguments).parseZone()}function Cee(e){return e}var Bt=_M.prototype;Bt.calendar=BWe;Bt.longDateFormat=WWe;Bt.invalidDate=GWe;Bt.ordinal=XWe;Bt.preparse=Cee;Bt.postformat=Cee;Bt.relativeTime=QWe;Bt.pastFuture=JWe;Bt.set=FWe;Bt.eras=RKe;Bt.erasParse=SKe;Bt.erasConvertYear=TKe;Bt.erasAbbrRegex=LKe;Bt.erasNameRegex=IKe;Bt.erasNarrowRegex=$Ke;Bt.months=pqe;Bt.monthsShort=mqe;Bt.monthsParse=vqe;Bt.monthsRegex=wqe;Bt.monthsShortRegex=yqe;Bt.week=Eqe;Bt.firstDayOfYear=kqe;Bt.firstDayOfWeek=Oqe;Bt.weekdays=$qe;Bt.weekdaysMin=Dqe;Bt.weekdaysShort=Nqe;Bt.weekdaysParse=zqe;Bt.weekdaysRegex=Uqe;Bt.weekdaysShortRegex=Wqe;Bt.weekdaysMinRegex=qqe;Bt.isPM=Kqe;Bt.meridiem=Zqe;function g_(e,t,r,n){var o=rs(),a=li().set(n,t);return o[r](a,e)}function Oee(e,t,r){if(Xi(e)&&(t=e,e=void 0),e=e||"",t!=null)return g_(e,t,r,"month");var n,o=[];for(n=0;n<12;n++)o[n]=g_(e,n,r,"month");return o}function DM(e,t,r,n){typeof e=="boolean"?(Xi(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Xi(t)&&(r=t,t=void 0),t=t||"");var o=rs(),a=e?o._week.dow:0,i,s=[];if(r!=null)return g_(t,(r+a)%7,n,"day");for(i=0;i<7;i++)s[i]=g_(t,(i+a)%7,n,"day");return s}function rYe(e,t){return Oee(e,t,"months")}function nYe(e,t){return Oee(e,t,"monthsShort")}function oYe(e,t,r){return DM(e,t,r,"weekdays")}function aYe(e,t,r){return DM(e,t,r,"weekdaysShort")}function iYe(e,t,r){return DM(e,t,r,"weekdaysMin")}al("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=_t(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});ze.lang=Jo("moment.lang is deprecated. Use moment.locale instead.",al);ze.langData=Jo("moment.langData is deprecated. Use moment.localeData instead.",rs);var pi=Math.abs;function sYe(){var e=this._data;return this._milliseconds=pi(this._milliseconds),this._days=pi(this._days),this._months=pi(this._months),e.milliseconds=pi(e.milliseconds),e.seconds=pi(e.seconds),e.minutes=pi(e.minutes),e.hours=pi(e.hours),e.months=pi(e.months),e.years=pi(e.years),this}function kee(e,t,r,n){var o=Sa(t,r);return e._milliseconds+=n*o._milliseconds,e._days+=n*o._days,e._months+=n*o._months,e._bubble()}function lYe(e,t){return kee(this,e,t,1)}function cYe(e,t){return kee(this,e,t,-1)}function UD(e){return e<0?Math.floor(e):Math.ceil(e)}function uYe(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,o,a,i,s,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=UD(YR(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,o=Bo(e/1e3),n.seconds=o%60,a=Bo(o/60),n.minutes=a%60,i=Bo(a/60),n.hours=i%24,t+=Bo(i/24),l=Bo(Ree(t)),r+=l,t-=UD(YR(l)),s=Bo(r/12),r%=12,n.days=t,n.months=r,n.years=s,this}function Ree(e){return e*4800/146097}function YR(e){return e*146097/4800}function dYe(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=ea(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+Ree(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(YR(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function fYe(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+_t(this._months/12)*31536e6:NaN}function ns(e){return function(){return this.as(e)}}var hYe=ns("ms"),pYe=ns("s"),mYe=ns("m"),gYe=ns("h"),vYe=ns("d"),bYe=ns("w"),yYe=ns("M"),wYe=ns("Q"),xYe=ns("y");function _Ye(){return Sa(this)}function EYe(e){return e=ea(e),this.isValid()?this[e+"s"]():NaN}function tu(e){return function(){return this.isValid()?this._data[e]:NaN}}var CYe=tu("milliseconds"),OYe=tu("seconds"),kYe=tu("minutes"),RYe=tu("hours"),SYe=tu("days"),TYe=tu("months"),PYe=tu("years");function MYe(){return Bo(this.days()/7)}var wi=Math.round,td={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function AYe(e,t,r,n,o){return o.relativeTime(t||1,!!r,e,n)}function jYe(e,t,r,n){var o=Sa(e).abs(),a=wi(o.as("s")),i=wi(o.as("m")),s=wi(o.as("h")),l=wi(o.as("d")),c=wi(o.as("M")),u=wi(o.as("w")),p=wi(o.as("y")),h=a<=r.ss&&["s",a]||a0,h[4]=n,AYe.apply(null,h)}function IYe(e){return e===void 0?wi:typeof e=="function"?(wi=e,!0):!1}function LYe(e,t){return td[e]===void 0?!1:t===void 0?td[e]:(td[e]=t,e==="s"&&(td.ss=t-1),!0)}function $Ye(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=td,o,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},td,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),o=this.localeData(),a=jYe(this,!r,n,o),r&&(a=o.pastFuture(+this,a)),o.postformat(a)}var lO=Math.abs;function wu(e){return(e>0)-(e<0)||+e}function I9(){if(!this.isValid())return this.localeData().invalidDate();var e=lO(this._milliseconds)/1e3,t=lO(this._days),r=lO(this._months),n,o,a,i,s=this.asSeconds(),l,c,u,p;return s?(n=Bo(e/60),o=Bo(n/60),e%=60,n%=60,a=Bo(r/12),r%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=wu(this._months)!==wu(s)?"-":"",u=wu(this._days)!==wu(s)?"-":"",p=wu(this._milliseconds)!==wu(s)?"-":"",l+"P"+(a?c+a+"Y":"")+(r?c+r+"M":"")+(t?u+t+"D":"")+(o||n||e?"T":"")+(o?p+o+"H":"")+(n?p+n+"M":"")+(e?p+i+"S":"")):"P0D"}var Pt=A9.prototype;Pt.isValid=SGe;Pt.abs=sYe;Pt.add=lYe;Pt.subtract=cYe;Pt.as=dYe;Pt.asMilliseconds=hYe;Pt.asSeconds=pYe;Pt.asMinutes=mYe;Pt.asHours=gYe;Pt.asDays=vYe;Pt.asWeeks=bYe;Pt.asMonths=yYe;Pt.asQuarters=wYe;Pt.asYears=xYe;Pt.valueOf=fYe;Pt._bubble=uYe;Pt.clone=_Ye;Pt.get=EYe;Pt.milliseconds=CYe;Pt.seconds=OYe;Pt.minutes=kYe;Pt.hours=RYe;Pt.days=SYe;Pt.weeks=MYe;Pt.months=TYe;Pt.years=PYe;Pt.humanize=$Ye;Pt.toISOString=I9;Pt.toString=I9;Pt.toJSON=I9;Pt.locale=mee;Pt.localeData=vee;Pt.toIsoString=Jo("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",I9);Pt.lang=gee;ot("X",0,0,"unix");ot("x",0,0,"valueOf");Ue("x",S9);Ue("X",oqe);Zt("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});Zt("x",function(e,t,r){r._d=new Date(_t(e))});//! moment.js -ze.version="2.29.4";NWe(cr);ze.fn=$e;ze.min=CGe;ze.max=OGe;ze.now=kGe;ze.utc=li;ze.unix=eYe;ze.months=rYe;ze.isDate=t5;ze.locale=al;ze.invalid=E9;ze.duration=Sa;ze.isMoment=ka;ze.weekdays=oYe;ze.parseZone=tYe;ze.localeData=rs;ze.isDuration=V6;ze.monthsShort=nYe;ze.weekdaysMin=iYe;ze.defineLocale=PM;ze.updateLocale=tGe;ze.locales=rGe;ze.weekdaysShort=aYe;ze.normalizeUnits=ea;ze.relativeTimeRounding=IYe;ze.relativeTimeThreshold=LYe;ze.calendarFormat=ZGe;ze.prototype=$e;ze.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const See=({likedUsers:e,openLikedUsersDialog:t,handleOpenLikedUsersDialog:r})=>M.jsxs(ie.Dialog,{open:t,size:"xs",handler:r,animate:{mount:{scale:1,y:0},unmount:{scale:.9,y:-100}},children:[M.jsx(ie.DialogHeader,{children:M.jsxs("div",{className:"flex justify-between items-center w-full",children:[M.jsx("h1",{className:"text-xl font-semibold",children:"Liked by"}),M.jsx("div",{children:M.jsx(e5,{className:"text-3xl cursor-pointer",onClick:r})})]})}),M.jsx(ie.DialogBody,{className:"flex flex-col gap-4 lg:mx-4 lg:my-0 m-2 max-h-[20.5rem] overflow-y-scroll",children:M.jsx("div",{className:"flex flex-col gap-2 ",children:e.length>0?e.map(n=>M.jsx("div",{className:"flex p-2 items-center justify-between transition duration-100 ease-in-out hover:shadow-md hover:scale-105 hover:rounded-lg",children:M.jsx(ln,{to:`/profile/${n._id}`,children:M.jsxs("div",{className:"mt-3 flex items-center space-x-2",children:[M.jsx("img",{className:"inline-block h-12 w-12 rounded-full",src:n.dp?n.dp:Ut.DEFAULT_IMG,alt:"user dp"}),M.jsxs("span",{className:"flex flex-col",children:[M.jsx("span",{className:"text-[14px] font-medium text-gray-900",children:n==null?void 0:n.name}),M.jsx("span",{className:"text-[11px] font-medium text-gray-500",children:n.username?`@${n.username}`:"@ -"})]})]})})},n._id)):M.jsx("div",{className:"flex justify-center items-center",children:M.jsx("em",{className:"text-lg font-light",children:"No likes yet"})})})}),M.jsx(ie.DialogFooter,{children:void 0})]});var NYe=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=WD[t.format]||WD.default;window.clipboardData.setData(p,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(s),a.selectNodeContents(s),i.addRange(a);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(u){r&&console.error("unable to copy using execCommand: ",u),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(p){r&&console.error("unable to copy using clipboardData: ",p),r&&console.error("falling back to prompt"),n=zYe("message"in t?t.message:FYe),window.prompt(n,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(a):i.removeAllRanges()),s&&document.body.removeChild(s),o()}return l}var VYe=BYe;const Tee=Cl(VYe),HYe=({commentPopupOpen:e,handleCommentPopupOpen:t,postDetails:r,likesArray:n,savedPostsArray:o,setCommentsLength:a,isLiked:i,handleLike:s,isSaved:l,handleSavePost:c})=>{var Q,Z;const u=no(),[p,h]=O.useState(!1),[g,x]=O.useState(null),[y,b]=O.useState([]),[m,f]=O.useState(!1),[v,d]=O.useState(null),[w,_]=O.useState(null),[E,k]=O.useState(!1),[S,R]=O.useState(null),[T,P]=O.useState(null),[j,L]=O.useState(null),D=(Q=_o.getState().auth.user)==null?void 0:Q._id,[B,V]=O.useState([]),[q,z]=O.useState(!1),F=()=>z(!q);O.useEffect(()=>{r&&N(r._id)},[r]);async function N(U){const J=await rJ(U);J.status==="success"&&b(J.comments)}O.useEffect(()=>{p&&r?(console.log("comment to be replied: ",v),console.log("tagged user name: ",g)):(x(null),d(null))},[p,r]),O.useEffect(()=>{m&&(N(r==null?void 0:r._id),f(!1))},[m,r]),O.useEffect(()=>{a(y.length)},[y.length]),O.useEffect(()=>{if(S){const U=y.findIndex(J=>J._id===S._id);if(U!==-1){const J=[...y];J[U]=S,b(J)}R(null)}},[y,S]),O.useEffect(()=>{if(T){const U=y.findIndex(J=>J._id===T);if(U!==-1){const J=[...y];J.splice(U,1),b(J)}P(null)}},[y,T]);const W=U=>{u(BQ(U)),t()},G=async U=>{const J=await nJ(U);V(J.users)};return M.jsxs(M.Fragment,{children:[M.jsxs(ie.Dialog,{open:e,size:"lg",handler:t,dismiss:{enabled:!1},animate:{mount:{scale:1,y:0},unmount:{scale:.9,y:-100}},children:[M.jsx(to,{}),M.jsxs(ie.DialogBody,{children:[M.jsx(ie.DialogHeader,{className:"p-0",children:M.jsxs("div",{className:"flex justify-between items-center w-full",children:[M.jsx("div",{className:"flex items-center justify-between gap-5 transition-transform duration-300 mx-1 px-2 pb-3 rounded-lg cursor-pointer hover:bg-gray-200 hover:scale-105",children:r&&M.jsx(ln,{to:`/profile/${r.userId}`,children:M.jsxs("div",{className:"mt-3 flex items-center space-x-2",children:[r!=null&&r.user.dp?M.jsx("img",{className:"inline-block h-12 w-12 rounded-full",src:r==null?void 0:r.user.dp,alt:"Profile Picture"}):M.jsx("img",{className:"inline-block h-12 w-12 rounded-full",src:r!=null&&r.user.dp?r==null?void 0:r.user.dp:Ut.DEFAULT_IMG,alt:"Profile Picture"}),M.jsxs("span",{className:"flex flex-col",children:[M.jsx("span",{className:"text-[14px] font-bold text-gray-900",children:r.user.name}),M.jsxs("span",{className:"text-[11px] font-bold text-green-500",children:["@",r.user.username]})]})]})})}),M.jsx("div",{children:M.jsx(e5,{className:"text-3xl cursor-pointer",onClick:t})})]})}),M.jsx("section",{children:M.jsxs("div",{className:"flex gap-8 items-start justify-start",children:[M.jsx("div",{className:"relative hidden md:flex w-1/2 pl-4 pb-5",children:M.jsx("div",{className:"flex flex-col w-full h-full items-start gap-2",children:M.jsx("div",{className:"w-full rounded-lg border shadow-lg",children:M.jsxs("div",{className:" flex flex-col justify-center w-full h-fit rounded-t-lg p-3 gap-3",children:[M.jsxs("div",{className:"px-4",children:[M.jsx("div",{className:"mt-2 text-sm text-gray-600",dangerouslySetInnerHTML:{__html:r==null?void 0:r.description}}),M.jsx("div",{className:"mt-4 mb-2",children:(Z=r==null?void 0:r.hashtagsArray)==null?void 0:Z.map((U,J)=>M.jsx("span",{className:`mb-2 mr-2 inline-block rounded-full bg-gray-100 px-3 py-1 text-[10px] font-semibold transition ease-in-out duration-150 - text-gray-900 cursor-pointer hover:scale-105 hover:text-gray-100 hover:bg-gray-900`,onClick:()=>W(U),children:U},J))})]}),(r==null?void 0:r.image)&&(r==null?void 0:r.image.length)>0&&M.jsx("div",{className:"flex items-center justify-self-center px-1 w-full h-64",children:r.image.length>1?M.jsx(ie.Carousel,{className:"w-full h-full",navigation:({setActiveIndex:U,activeIndex:J,length:ae})=>M.jsx("div",{className:"absolute bottom-4 left-2/4 z-50 flex -translate-x-2/4 gap-2",children:new Array(ae).fill("").map((ee,se)=>M.jsx("span",{className:`block h-1 cursor-pointer rounded-2xl transition-all content-[''] ${J===se?"w-8 bg-white":"w-4 bg-white/50"}`,onClick:()=>U(se)},se))}),children:r==null?void 0:r.image.map((U,J)=>M.jsx("img",{src:U,alt:"post-image",className:"h-full w-full object-cover rounded-lg"},J))}):M.jsx("img",{src:r.image[0],alt:"Laptop",className:"h-full w-full rounded-lg object-cover"})}),M.jsxs("div",{className:"flex items-center justify-between px-2 text-black",children:[M.jsxs("div",{className:"flex items-center justify-start gap-4",children:[n.includes(D)||i?M.jsx(y9,{className:"text-2xl cursor-pointer text-socioverse-500 transition ease-in-out duration-150 hover:text-red-500 hover:scale-105",onClick:s}):M.jsx(w9,{className:"text-2xl cursor-pointer hover:text-socioverse-500 hover:scale-105 transition ease-in-out duration-150",onClick:s}),M.jsx(JQ,{className:"text-2xl cursor-pointer",onClick:()=>{Ce.dismiss(),r&&Tee(`${Ut.CLIENT_BASE_URL}/share/${r._id}`),Ce.success("Copied link to the clipboard",{...nt,closeButton:!1})}})]}),o&&o.includes(D)||l?M.jsx(tJ,{className:"text-2xl cursor-pointer text-black hover:scale-105 transition ease-in-out duration-150",onClick:c}):M.jsx(eJ,{className:"text-2xl cursor-pointer hover:scale-105 transition ease-in-out duration-150 ",onClick:c})]}),M.jsxs("div",{className:"flex items-center justify-between w-full",children:[M.jsxs("div",{className:"flex items-center justify-start gap-4 px-2",children:[M.jsxs("span",{className:"text-[12px] font-medium text-gray-500 cursor-pointer",onClick:()=>{r&&G(r._id),z(!0)},children:[n.length," likes"]}),M.jsxs("span",{className:"text-[12px] font-medium text-gray-500",children:[y.length," comments"]})]}),M.jsxs("span",{className:"text-[12px] font-medium text-gray-500",children:[ze(r==null?void 0:r.createdAt).startOf("minutes").fromNow(),(r==null?void 0:r.createdAt)!==(r==null?void 0:r.updatedAt)&&" ( Edited )"]})]})]})})})}),M.jsx("div",{className:"flex w-full md:w-1/2 h-[32rem] md:pr-4 md:pb-5",children:M.jsxs("div",{className:"flex flex-col w-full h-full items-start border-2 rounded-lg shadow-lg",children:[M.jsx("div",{className:"h-full w-full overflow-y-scroll no-scrollbar",children:y.length?y.map(U=>M.jsx(WYe,{onReply:p,setOnReply:h,commentData:U,commentToBeReplied:v,setCommentToBeReplied:d,setTaggedUser:x,editCommentMode:E,setEditComment:_,setDeleteCommentId:P,newlyAddedReply:j,setNewlyAddedReply:L},U._id)):M.jsx("div",{className:"flex items-center justify-center h-full",children:M.jsx("div",{className:"flex flex-col items-center justify-center",children:M.jsx("p",{children:"No comments yet..."})})})}),M.jsx("div",{className:"h-fit w-full p-2 md:p-4 border-t-2",children:r&&M.jsx(UYe,{postId:r._id,onReply:p,setOnReply:h,taggedUser:g,setNewCommentStatus:f,commentToBeReplied:v,setCommentToBeReplied:d,editComment:w,setEditComment:_,editCommentMode:E,setEditCommentMode:k,setNewlyUpdatedComment:R,setNewlyAddedReply:L})})]})})]})})]})]}),M.jsx(See,{likedUsers:B,openLikedUsersDialog:q,handleOpenLikedUsersDialog:F})]})};function UYe({postId:e,onReply:t,setOnReply:r,taggedUser:n,setNewCommentStatus:o,commentToBeReplied:a,setCommentToBeReplied:i,editComment:s,setEditComment:l,editCommentMode:c,setEditCommentMode:u,setNewlyUpdatedComment:p,setNewlyAddedReply:h}){const[g,x]=O.useState(""),[y,b]=O.useState(null),m=O.useRef(null);O.useEffect(()=>{var v;t&&n?((v=m.current)==null||v.focus(),x(`@${n} `),u(!1)):(x(""),i(null))},[t,n]),O.useEffect(()=>{var v;s&&(u(!0),x(s.comment),b(s._id),(v=m.current)==null||v.focus(),l(null),r(!1))},[s,l,u]);const f=async v=>{if(v.length>0){const d={postId:e,comment:v};if(t&&a){const _=eUe({commentId:a,reply:v});Ce.promise(_,{pending:"Replying to the comment...",success:"Comment added successfully!",error:"Error adding comment!"}),(await _).status==="success"&&i(null),h((await _).reply),r(!1)}else if(c){const w=iUe(y,v);Ce.promise(w,{pending:"Making Changes...",success:"Successfully Edited the comment!",error:"Error making changes!"}),(await w).status==="success"&&(p((await w).editedComment),u(!1))}else{const w=JHe(d);Ce.promise(w,{pending:"Adding comment...",success:"Comment added successfully!",error:"Error adding comment!"}),(await w).status==="success"&&o(!0)}}};return M.jsxs(M.Fragment,{children:[M.jsx($J,{ref:m,value:g,onChange:x,cleanOnEnter:!0,onEnter:f,placeholder:"Add a comment...",theme:"auto",fontSize:14,fontFamily:"sans-serif",keepOpened:!0,searchMention:async v=>["no user"].filter(d=>d.includes(v))}),t?M.jsx(ie.Button,{variant:"text",size:"sm",className:"text-xs text-socioverse-500 mr-10 float-right",onClick:()=>r(!1),children:"Cancel Reply"}):c?M.jsx(ie.Button,{variant:"text",size:"sm",className:"text-xs text-socioverse-500 mr-10 float-right",onClick:()=>u(!1),children:"Cancel Edit"}):""]})}function WYe({onReply:e,commentToBeReplied:t,setCommentToBeReplied:r,setOnReply:n,commentData:o,setTaggedUser:a,editCommentMode:i,setEditComment:s,setDeleteCommentId:l,newlyAddedReply:c,setNewlyAddedReply:u}){var W,G,Q,Z,U,J,ae;const p=(W=_o.getState().auth.user)==null?void 0:W._id,[h,g]=O.useState(o.likes),[x,y]=O.useState(!1),[b,m]=O.useState(!1),[f,v]=O.useState([]),[d,w]=O.useState(!1),[_,E]=O.useState(null),[k,S]=O.useState(null),[R,T]=O.useState(!1),[P,j]=O.useState(null),L=()=>{w(!d)};O.useEffect(()=>{o&&g(o.likes),o&&o.likes.includes(p)?y(!0):y(!1)},[o,p]),O.useEffect(()=>{c&&(v(ee=>[c,...ee]),u(null))},[c,u]),O.useEffect(()=>{b?D():v([])},[b]),O.useEffect(()=>{i||E(null)},[i]),O.useEffect(()=>{if(P){const ee=f.findIndex(se=>se._id===P);if(ee!==-1){const se=[...f];se.splice(ee,1),v(se)}l(null)}},[f,P,l]);async function D(){const ee=await tUe(o._id);ee.status==="success"&&v(ee.replies)}const B=(ee,se,ue,we,Oe)=>{n(Te=>!Te),r(ee),S(we),T(Oe),se?a(se):ue&&a(ue)},V=()=>{s(o),E(o._id)},q=()=>{Ce.dismiss(),Ce(M.jsx(gM,{onDelete:z,message:"Are you sure you want to delete this Comment?"}),{...nt,closeButton:!1})},z=async()=>{const ee=sUe(o._id);Ce.promise(ee,{pending:"Deleting Comment...",success:"Comment deleted successfully!",error:"Error deleting comment!"}),(await ee).status==="success"&&l(o._id)},F=async()=>{Ce.dismiss();const ee=cUe(o._id);Ce.promise(ee,{pending:"Reporting Comment...",success:"Comment reported successfully!",error:"Error reporting comment!"})},N=async()=>{Ce.dismiss(),x?(await lD(o._id,"dislike")).status==="success"?(y(!1),g(se=>se.filter(ue=>ue!==p))):Ce.error("Error occured",nt):(await lD(o._id,"like")).status==="success"?(y(!0),g(se=>[...se,p])):Ce.error("Error occured",nt)};return M.jsx("div",{className:mo("rounded-xl flex flex-col border m-3"),children:M.jsxs("div",{className:"transition-transform duration-300 rounded-lg cursor-pointer w-full",children:[M.jsxs("div",{className:mo("space-x-2 flex items-start p-1 md:p-4 rounded-lg shadow-lg",{"bg-blue-gray-50":e&&!R&&t===o._id||i&&_===o._id},{"bg-white":!e&&!i}),children:[o&&M.jsx(ln,{to:`/profile/${(G=o.user)==null?void 0:G._id}`,children:(Q=o.user)!=null&&Q.dp?M.jsx("img",{className:"inline-block h-8 w-8 md:h-10 md:w-10 rounded-full",src:(Z=o.user)==null?void 0:Z.dp,alt:"user dp"}):M.jsx("img",{className:"inline-block h-8 w-8 md:h-10 md:w-10 rounded-full",src:Ut.DEFAULT_IMG,alt:"user dp"})}),M.jsxs("div",{className:"w-full",children:[M.jsxs("div",{className:"flex justify-between items-center",children:[o&&M.jsx(ln,{to:`/profile/${(U=o.user)==null?void 0:U._id}`,children:M.jsx("span",{className:"text-xs md:text-sm font-bold text-gray-900",children:(J=o.user)==null?void 0:J.name})}),M.jsxs("div",{className:"group inline-block relative",children:[M.jsx(ie.Button,{color:"blue-gray",size:"sm",variant:"text",className:"focus:outline-none",onClick:L,children:M.jsx(pM,{className:"text-sm transition duration-150 ease-in-out hover:scale-105"})}),d&&M.jsx("div",{className:`${d?"block":"hidden"} absolute right-0 w-36 rounded-md z-10`,children:M.jsx("div",{className:`${d?"block":"hidden"} absolute right-0 mt-1 w-full bg-white border border-blue-gray-300/20 shadow-lg rounded-md z-10`,children:((ae=o.user)==null?void 0:ae._id)===p?M.jsxs(M.Fragment,{children:[M.jsxs("button",{className:"flex items-center w-full pl-5 py-[0.6rem] text-blue-gray-700 hover:bg-blue-100/50 hover:text-blue-gray-800 text-left",onClick:()=>{V(),w(!1)},children:[M.jsx(QQ,{className:"mr-2 text-lg"}),M.jsx("p",{className:"text-sm",children:"Edit"})]}),M.jsxs("button",{className:"flex items-center w-full pl-5 py-[0.6rem] text-blue-gray-700 hover:bg-blue-100/50 hover:text-blue-gray-800 text-left",onClick:()=>{q(),w(!1)},children:[M.jsx(mM,{className:"mr-2 text-md"}),M.jsx("p",{className:"text-sm",children:"Delete"})]})]}):M.jsxs("button",{className:"flex items-center w-full pl-5 py-[0.6rem] text-blue-gray-700 hover:bg-blue-100/50 hover:text-blue-gray-800 text-left",onClick:()=>{F(),w(!1)},children:[M.jsx(hM,{className:"mr-2 text-lg"}),M.jsx("p",{className:"text-sm",children:"Report"})]})})})]})]}),M.jsxs("span",{className:"flex-1",children:[M.jsx("p",{className:"text-xs md:text-sm text-gray-600",children:o.comment}),M.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-500 mt-4",children:[M.jsxs("div",{className:"flex gap-5",children:[h.includes(p)?M.jsxs("button",{onClick:N,className:"flex gap-1 items-center",children:[M.jsx("p",{className:"text-[0.6rem] md:text-xs font-bold",children:h.length}),M.jsx(y9,{className:"text-sm md:text-md cursor-pointer text-socioverse-500 hover:scale-105"})]}):M.jsxs("button",{onClick:N,className:"flex gap-1 items-center",children:[M.jsx("p",{className:"text-[0.6rem] md:text-xs font-bold",children:h.length}),M.jsx(w9,{className:"text-sm md:text-md cursor-pointer hover:text-socioverse-500"})]}),M.jsx("button",{className:"text-[0.6rem] md:text-xs font-bold",onClick:()=>{var ee,se;return o.user&&B(o._id,(ee=o.user)==null?void 0:ee.name,null,(se=o.user)==null?void 0:se._id,!1)},children:"Reply"}),M.jsxs("button",{className:"text-[0.6rem] md:text-xs font-bold",onClick:()=>m(ee=>!ee),children:["Replies ",f.length||o.replies.length]})]}),M.jsxs("p",{className:"text-[0.6rem] md:text-xs",children:[ze(o.createdAt).startOf("minutes").fromNow(),o.createdAt!==o.updatedAt&&" ( Edited )"]})]})]})]})]}),b&&f.length>0&&M.jsx("div",{className:"mt-5 flex flex-col gap-4",children:f.map(ee=>M.jsx(qYe,{userId:p,reply:ee,commentId:o._id,handleOnReply:B,onReply:e,fromId:k,setDeleteReplyId:j},ee._id))})]})})}const qYe=({userId:e,reply:t,commentId:r,handleOnReply:n,onReply:o,fromId:a,setDeleteReplyId:i})=>{var f,v,d,w;const[s,l]=O.useState(t.likes),[c,u]=O.useState(!1),[p,h]=O.useState(!1),g=()=>{h(!p)};O.useEffect(()=>{t&&l(t.likes),t&&t.likes.includes(e)?u(!0):u(!1)},[t,e]);const x=async()=>{Ce.dismiss(),c?(await cD(t._id,r,"dislike")).status==="success"?(u(!1),l(E=>E.filter(k=>k!==e))):Ce.error("Error occured",nt):(await cD(t._id,r,"like")).status==="success"?(u(!0),l(E=>[...E,e])):Ce.error("Error occured",nt)},y=()=>{Ce.dismiss(),Ce(M.jsx(gM,{onDelete:b,message:"Are you sure you want to delete this reply comment?"}),{...nt,closeButton:!1})},b=async()=>{const _=lUe(t._id,r);Ce.promise(_,{pending:"Deleting Reply...",success:"Reply deleted successfully!",error:"Error deleting reply!"}),(await _).status==="success"&&i(t._id)},m=()=>{Ce.dismiss();const _=uUe(t._id,r);Ce.promise(_,{pending:"Reporting Reply...",success:"Reply reported successfully!",error:"Error reporting reply!"})};return M.jsx(M.Fragment,{children:M.jsx("div",{className:" pl-10 pr-2",children:M.jsxs("div",{className:mo("space-x-2 p-1 md:p-4 rounded-lg shadow-lg border flex items-start",{"bg-blue-gray-50":o&&a===t._id},{"bg-white":!o}),children:[t&&M.jsx(ln,{to:`/profile/${t.userId}`,children:(f=t.user)!=null&&f.dp?M.jsx("img",{className:"inline-block h-8 w-8 md:h-10 md:w-10 rounded-full",src:(v=t.user)==null?void 0:v.dp,alt:"Profile Picture"}):M.jsx("img",{className:"inline-block h-8 w-8 md:h-10 md:w-10 rounded-full",src:Ut.DEFAULT_IMG,alt:"Profile Picture"})}),M.jsxs("div",{className:"w-full",children:[M.jsxs("div",{className:"flex justify-between items-center",children:[t&&M.jsx(ln,{to:`/profile/${t.userId}`,children:M.jsx("span",{className:"text-xs md:text-sm font-bold text-gray-900",children:(d=t.user)==null?void 0:d.name})}),M.jsxs("div",{className:"group inline-block relative",children:[M.jsx(ie.Button,{color:"blue-gray",size:"sm",variant:"text",className:"focus:outline-none",onClick:g,children:M.jsx(pM,{className:"text-sm transition duration-150 ease-in-out hover:scale-105"})}),p&&M.jsx("div",{className:`${p?"block":"hidden"} absolute right-0 w-36 rounded-md z-10`,children:M.jsx("div",{className:`${p?"block":"hidden"} absolute right-0 mt-1 w-full bg-white border border-blue-gray-300/20 shadow-lg rounded-md z-10`,children:((w=t.user)==null?void 0:w._id)===e?M.jsxs("button",{className:"flex items-center w-full pl-5 py-[0.6rem] text-blue-gray-700 hover:bg-blue-100/50 hover:text-blue-gray-800 text-left",onClick:()=>{y(),h(!1)},children:[M.jsx(mM,{className:"mr-2 text-md"}),M.jsx("p",{className:"text-sm",children:"Delete"})]}):M.jsxs("button",{className:"flex items-center w-full pl-5 py-[0.6rem] text-blue-gray-700 hover:bg-blue-100/50 hover:text-blue-gray-800 text-left",onClick:()=>{m(),h(!1)},children:[M.jsx(hM,{className:"mr-2 text-lg"}),M.jsx("p",{className:"text-sm",children:"Report"})]})})})]})]}),M.jsxs("span",{className:"flex-1",children:[M.jsx("p",{className:"text-xs md:text-sm text-gray-600",children:t.reply}),M.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-500 mt-4",children:[M.jsxs("div",{className:"flex gap-5",children:[s.includes(e)?M.jsxs("button",{onClick:x,className:"flex gap-1 items-center",children:[M.jsx("p",{className:"text-[0.6rem] md:text-xs font-bold",children:s.length}),M.jsx(y9,{className:"text-sm md:text-md cursor-pointer text-socioverse-500 hover:scale-105"})]}):M.jsxs("button",{onClick:x,className:"flex gap-1 items-center",children:[M.jsx("p",{className:"text-[0.6rem] md:text-xs font-bold",children:s.length}),M.jsx(w9,{className:"text-sm md:text-md cursor-pointer hover:text-socioverse-500"})]}),M.jsx("button",{className:"text-[0.6rem] md:text-xs font-bold",onClick:()=>{var _;t.user&&n(r,null,(_=t.user)==null?void 0:_.name,t._id,!0)},children:"Reply"})]}),M.jsx("p",{className:"text-[0.6rem] md:text-xs",children:ze(t.createdAt).startOf("minutes").fromNow()})]})]})]})]})})})};function GYe(){this.__data__=[],this.size=0}var KYe=GYe;function YYe(e,t){return e===t||e!==e&&t!==t}var Pee=YYe,XYe=Pee;function ZYe(e,t){for(var r=e.length;r--;)if(XYe(e[r][0],t))return r;return-1}var L9=ZYe,QYe=L9,JYe=Array.prototype,eXe=JYe.splice;function tXe(e){var t=this.__data__,r=QYe(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():eXe.call(t,r,1),--this.size,!0}var rXe=tXe,nXe=L9;function oXe(e){var t=this.__data__,r=nXe(t,e);return r<0?void 0:t[r][1]}var aXe=oXe,iXe=L9;function sXe(e){return iXe(this.__data__,e)>-1}var lXe=sXe,cXe=L9;function uXe(e,t){var r=this.__data__,n=cXe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var dXe=uXe,fXe=KYe,hXe=rXe,pXe=aXe,mXe=lXe,gXe=dXe;function kf(e){var t=-1,r=e==null?0:e.length;for(this.clear();++ts))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var p=-1,h=!0,g=r&rJe?new QQe:void 0;for(a.set(e,t),a.set(t,e);++p-1&&e%1==0&&e-1&&e%1==0&&e<=het}var zee=pet,met=N9,get=zee,vet=z9,bet="[object Arguments]",yet="[object Array]",wet="[object Boolean]",xet="[object Date]",_et="[object Error]",Eet="[object Function]",Cet="[object Map]",Oet="[object Number]",ket="[object Object]",Ret="[object RegExp]",Tet="[object Set]",Pet="[object String]",Met="[object WeakMap]",Aet="[object ArrayBuffer]",jet="[object DataView]",Iet="[object Float32Array]",Let="[object Float64Array]",$et="[object Int8Array]",Net="[object Int16Array]",Det="[object Int32Array]",Fet="[object Uint8Array]",zet="[object Uint8ClampedArray]",Bet="[object Uint16Array]",Vet="[object Uint32Array]",ir={};ir[Iet]=ir[Let]=ir[$et]=ir[Net]=ir[Det]=ir[Fet]=ir[zet]=ir[Bet]=ir[Vet]=!0;ir[bet]=ir[yet]=ir[Aet]=ir[wet]=ir[jet]=ir[xet]=ir[_et]=ir[Eet]=ir[Cet]=ir[Oet]=ir[ket]=ir[Ret]=ir[Tet]=ir[Pet]=ir[Met]=!1;function Het(e){return vet(e)&&get(e.length)&&!!ir[met(e)]}var Uet=Het;function Wet(e){return function(t){return e(t)}}var qet=Wet,y_={exports:{}};y_.exports;(function(e,t){var r=Mee,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(y_,y_.exports);var Get=y_.exports,Ket=Uet,Yet=qet,nF=Get,oF=nF&&nF.isTypedArray,Xet=oF?Yet(oF):Ket,Bee=Xet,Zet=KJe,Qet=aet,Jet=BM,ett=Fee,ttt=fet,rtt=Bee,ntt=Object.prototype,ott=ntt.hasOwnProperty;function att(e,t){var r=Jet(e),n=!r&&Qet(e),o=!r&&!n&&ett(e),a=!r&&!n&&!o&&rtt(e),i=r||n||o||a,s=i?Zet(e.length,String):[],l=s.length;for(var c in e)(t||ott.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ttt(c,l)))&&s.push(c);return s}var itt=att,stt=Object.prototype;function ltt(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||stt;return e===r}var ctt=ltt;function utt(e,t){return function(r){return e(t(r))}}var dtt=utt,ftt=dtt,htt=ftt(Object.keys,Object),ptt=htt,mtt=ctt,gtt=ptt,vtt=Object.prototype,btt=vtt.hasOwnProperty;function ytt(e){if(!mtt(e))return gtt(e);var t=[];for(var r in Object(e))btt.call(e,r)&&r!="constructor"&&t.push(r);return t}var wtt=ytt,xtt=Iee,_tt=zee;function Ett(e){return e!=null&&_tt(e.length)&&!xtt(e)}var Ctt=Ett,Ott=itt,ktt=wtt,Rtt=Ctt;function Stt(e){return Rtt(e)?Ott(e):ktt(e)}var Ttt=Stt,Ptt=$Je,Mtt=qJe,Att=Ttt;function jtt(e){return Ptt(e,Att,Mtt)}var Itt=jtt,aF=Itt,Ltt=1,$tt=Object.prototype,Ntt=$tt.hasOwnProperty;function Dtt(e,t,r,n,o,a){var i=r&Ltt,s=aF(e),l=s.length,c=aF(t),u=c.length;if(l!=u&&!i)return!1;for(var p=l;p--;){var h=s[p];if(!(i?h in t:Ntt.call(t,h)))return!1}var g=a.get(e),x=a.get(t);if(g&&x)return g==t&&x==e;var y=!0;a.set(e,t),a.set(t,e);for(var b=i;++p=0;return(a?r?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+n}var EM=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,pm=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,iO={},Cd={};function ot(e,t,r,n){var o=n;typeof n=="string"&&(o=function(){return this[n]()}),e&&(Cd[e]=o),t&&(Cd[t[0]]=function(){return ti(o.apply(this,arguments),t[1],t[2])}),r&&(Cd[r]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function UWe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function WWe(e){var t=e.match(EM),r,n;for(r=0,n=t.length;r=0&&pm.test(e);)e=e.replace(pm,n),pm.lastIndex=0,r-=1;return e}var qWe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function GWe(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(EM).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var KWe="Invalid date";function YWe(){return this._invalidDate}var XWe="%d",ZWe=/\d{1,2}/;function QWe(e){return this._ordinal.replace("%d",e)}var JWe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function eqe(e,t,r,n){var o=this._relativeTime[r];return ci(o)?o(e,t,r,n):o.replace(/%d/i,e)}function tqe(e,t){var r=this._relativeTime[e>0?"future":"past"];return ci(r)?r(t):r.replace(/%s/i,t)}var xp={};function kn(e,t){var r=e.toLowerCase();xp[r]=xp[r+"s"]=xp[t]=e}function ea(e){return typeof e=="string"?xp[e]||xp[e.toLowerCase()]:void 0}function CM(e){var t={},r,n;for(n in e)zt(e,n)&&(r=ea(n),r&&(t[r]=e[n]));return t}var VJ={};function Rn(e,t){VJ[e]=t}function rqe(e){var t=[],r;for(r in e)zt(e,r)&&t.push({unit:r,priority:VJ[r]});return t.sort(function(n,o){return n.priority-o.priority}),t}function C9(e){return e%4===0&&e%100!==0||e%400===0}function Bo(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function _t(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Bo(t)),r}function Cf(e,t){return function(r){return r!=null?(HJ(this,e,r),ze.updateOffset(this,t),this):d_(this,e)}}function d_(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function HJ(e,t,r){e.isValid()&&!isNaN(r)&&(t==="FullYear"&&C9(e.year())&&e.month()===1&&e.date()===29?(r=_t(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),P9(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}function nqe(e){return e=ea(e),ci(this[e])?this[e]():this}function oqe(e,t){if(typeof e=="object"){e=CM(e);var r=rqe(e),n,o=r.length;for(n=0;n68?1900:2e3)};var JJ=Cf("FullYear",!0);function Eqe(){return C9(this.year())}function Cqe(e,t,r,n,o,a,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,r,n,o,a,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,o,a,i),s}function h1(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function h_(e,t,r){var n=7+t-r,o=(7+h1(e,0,n).getUTCDay()-t)%7;return-o+n-1}function eee(e,t,r,n,o){var a=(7+r-n)%7,i=h_(e,n,o),s=1+7*(t-1)+a+i,l,c;return s<=0?(l=e-1,c=_p(l)+s):s>_p(e)?(l=e+1,c=s-_p(e)):(l=e,c=s),{year:l,dayOfYear:c}}function p1(e,t,r){var n=h_(e.year(),t,r),o=Math.floor((e.dayOfYear()-n-1)/7)+1,a,i;return o<1?(i=e.year()-1,a=o+Bi(i,t,r)):o>Bi(e.year(),t,r)?(a=o-Bi(e.year(),t,r),i=e.year()+1):(i=e.year(),a=o),{week:a,year:i}}function Bi(e,t,r){var n=h_(e,t,r),o=h_(e+1,t,r);return(_p(e)-n+o)/7}ot("w",["ww",2],"wo","week");ot("W",["WW",2],"Wo","isoWeek");kn("week","w");kn("isoWeek","W");Rn("week",5);Rn("isoWeek",5);Ue("w",dr);Ue("ww",dr,Ro);Ue("W",dr);Ue("WW",dr,Ro);o5(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=_t(e)});function Oqe(e){return p1(e,this._week.dow,this._week.doy).week}var kqe={dow:0,doy:6};function Rqe(){return this._week.dow}function Sqe(){return this._week.doy}function Tqe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Pqe(e){var t=p1(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}ot("d",0,"do","day");ot("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});ot("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});ot("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});ot("e",0,0,"weekday");ot("E",0,0,"isoWeekday");kn("day","d");kn("weekday","e");kn("isoWeekday","E");Rn("day",11);Rn("weekday",11);Rn("isoWeekday",11);Ue("d",dr);Ue("e",dr);Ue("E",dr);Ue("dd",function(e,t){return t.weekdaysMinRegex(e)});Ue("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ue("dddd",function(e,t){return t.weekdaysRegex(e)});o5(["dd","ddd","dddd"],function(e,t,r,n){var o=r._locale.weekdaysParse(e,n,r._strict);o!=null?t.d=o:vt(r).invalidWeekday=e});o5(["d","e","E"],function(e,t,r,n){t[n]=_t(e)});function Mqe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Aqe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function RM(e,t){return e.slice(t,7).concat(e.slice(0,t))}var jqe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),tee="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Iqe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Lqe=n5,$qe=n5,Nqe=n5;function Dqe(e,t){var r=Oa(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?RM(r,this._week.dow):e?r[e.day()]:r}function Fqe(e){return e===!0?RM(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function zqe(e){return e===!0?RM(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Bqe(e,t,r){var n,o,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=li([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return r?t==="dddd"?(o=Pr.call(this._weekdaysParse,i),o!==-1?o:null):t==="ddd"?(o=Pr.call(this._shortWeekdaysParse,i),o!==-1?o:null):(o=Pr.call(this._minWeekdaysParse,i),o!==-1?o:null):t==="dddd"?(o=Pr.call(this._weekdaysParse,i),o!==-1||(o=Pr.call(this._shortWeekdaysParse,i),o!==-1)?o:(o=Pr.call(this._minWeekdaysParse,i),o!==-1?o:null)):t==="ddd"?(o=Pr.call(this._shortWeekdaysParse,i),o!==-1||(o=Pr.call(this._weekdaysParse,i),o!==-1)?o:(o=Pr.call(this._minWeekdaysParse,i),o!==-1?o:null)):(o=Pr.call(this._minWeekdaysParse,i),o!==-1||(o=Pr.call(this._weekdaysParse,i),o!==-1)?o:(o=Pr.call(this._shortWeekdaysParse,i),o!==-1?o:null))}function Vqe(e,t,r){var n,o,a;if(this._weekdaysParseExact)return Bqe.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(o=li([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function Hqe(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=Mqe(e,this.localeData()),this.add(e-t,"d")):t}function Uqe(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Wqe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Aqe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function qqe(e){return this._weekdaysParseExact?(zt(this,"_weekdaysRegex")||SM.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(zt(this,"_weekdaysRegex")||(this._weekdaysRegex=Lqe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Gqe(e){return this._weekdaysParseExact?(zt(this,"_weekdaysRegex")||SM.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(zt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kqe(e){return this._weekdaysParseExact?(zt(this,"_weekdaysRegex")||SM.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(zt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Nqe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function SM(){function e(u,p){return p.length-u.length}var t=[],r=[],n=[],o=[],a,i,s,l,c;for(a=0;a<7;a++)i=li([2e3,1]).day(a),s=uo(this.weekdaysMin(i,"")),l=uo(this.weekdaysShort(i,"")),c=uo(this.weekdays(i,"")),t.push(s),r.push(l),n.push(c),o.push(s),o.push(l),o.push(c);t.sort(e),r.sort(e),n.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function TM(){return this.hours()%12||12}function Yqe(){return this.hours()||24}ot("H",["HH",2],0,"hour");ot("h",["hh",2],0,TM);ot("k",["kk",2],0,Yqe);ot("hmm",0,0,function(){return""+TM.apply(this)+ti(this.minutes(),2)});ot("hmmss",0,0,function(){return""+TM.apply(this)+ti(this.minutes(),2)+ti(this.seconds(),2)});ot("Hmm",0,0,function(){return""+this.hours()+ti(this.minutes(),2)});ot("Hmmss",0,0,function(){return""+this.hours()+ti(this.minutes(),2)+ti(this.seconds(),2)});function ree(e,t){ot(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ree("a",!0);ree("A",!1);kn("hour","h");Rn("hour",13);function nee(e,t){return t._meridiemParse}Ue("a",nee);Ue("A",nee);Ue("H",dr);Ue("h",dr);Ue("k",dr);Ue("HH",dr,Ro);Ue("hh",dr,Ro);Ue("kk",dr,Ro);Ue("hmm",qJ);Ue("hmmss",GJ);Ue("Hmm",qJ);Ue("Hmmss",GJ);Zt(["H","HH"],Hr);Zt(["k","kk"],function(e,t,r){var n=_t(e);t[Hr]=n===24?0:n});Zt(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});Zt(["h","hh"],function(e,t,r){t[Hr]=_t(e),vt(r).bigHour=!0});Zt("hmm",function(e,t,r){var n=e.length-2;t[Hr]=_t(e.substr(0,n)),t[va]=_t(e.substr(n)),vt(r).bigHour=!0});Zt("hmmss",function(e,t,r){var n=e.length-4,o=e.length-2;t[Hr]=_t(e.substr(0,n)),t[va]=_t(e.substr(n,2)),t[Ti]=_t(e.substr(o)),vt(r).bigHour=!0});Zt("Hmm",function(e,t,r){var n=e.length-2;t[Hr]=_t(e.substr(0,n)),t[va]=_t(e.substr(n))});Zt("Hmmss",function(e,t,r){var n=e.length-4,o=e.length-2;t[Hr]=_t(e.substr(0,n)),t[va]=_t(e.substr(n,2)),t[Ti]=_t(e.substr(o))});function Xqe(e){return(e+"").toLowerCase().charAt(0)==="p"}var Zqe=/[ap]\.?m?\.?/i,Qqe=Cf("Hours",!0);function Jqe(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var oee={calendar:VWe,longDateFormat:qWe,invalidDate:KWe,ordinal:XWe,dayOfMonthOrdinalParse:ZWe,relativeTime:JWe,months:hqe,monthsShort:KJ,week:kqe,weekdays:jqe,weekdaysMin:Iqe,weekdaysShort:tee,meridiemParse:Zqe},pr={},m0={},m1;function eGe(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r0;){if(o=M9(a.slice(0,r).join("-")),o)return o;if(n&&n.length>=r&&eGe(a,n)>=r-1)break;r--}t++}return m1}function rGe(e){return e.match("^[^/\\\\]*$")!=null}function M9(e){var t=null,r;if(pr[e]===void 0&&typeof module<"u"&&module&&module.exports&&rGe(e))try{t=m1._abbr,r=require,r("./locale/"+e),al(t)}catch{pr[e]=null}return pr[e]}function al(e,t){var r;return e&&(Un(t)?r=rs(e):r=PM(e,t),r?m1=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),m1._abbr}function PM(e,t){if(t!==null){var r,n=oee;if(t.abbr=e,pr[e]!=null)zJ("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=pr[e]._config;else if(t.parentLocale!=null)if(pr[t.parentLocale]!=null)n=pr[t.parentLocale]._config;else if(r=M9(t.parentLocale),r!=null)n=r._config;else return m0[t.parentLocale]||(m0[t.parentLocale]=[]),m0[t.parentLocale].push({name:e,config:t}),null;return pr[e]=new _M(UR(n,t)),m0[e]&&m0[e].forEach(function(o){PM(o.name,o.config)}),al(e),pr[e]}else return delete pr[e],null}function nGe(e,t){if(t!=null){var r,n,o=oee;pr[e]!=null&&pr[e].parentLocale!=null?pr[e].set(UR(pr[e]._config,t)):(n=M9(e),n!=null&&(o=n._config),t=UR(o,t),n==null&&(t.abbr=e),r=new _M(t),r.parentLocale=pr[e],pr[e]=r),al(e)}else pr[e]!=null&&(pr[e].parentLocale!=null?(pr[e]=pr[e].parentLocale,e===al()&&al(e)):pr[e]!=null&&delete pr[e]);return pr[e]}function rs(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return m1;if(!Oa(e)){if(t=M9(e),t)return t;e=[e]}return tGe(e)}function oGe(){return WR(pr)}function MM(e){var t,r=e._a;return r&&vt(e).overflow===-2&&(t=r[Si]<0||r[Si]>11?Si:r[Va]<1||r[Va]>P9(r[_n],r[Si])?Va:r[Hr]<0||r[Hr]>24||r[Hr]===24&&(r[va]!==0||r[Ti]!==0||r[gc]!==0)?Hr:r[va]<0||r[va]>59?va:r[Ti]<0||r[Ti]>59?Ti:r[gc]<0||r[gc]>999?gc:-1,vt(e)._overflowDayOfYear&&(t<_n||t>Va)&&(t=Va),vt(e)._overflowWeeks&&t===-1&&(t=uqe),vt(e)._overflowWeekday&&t===-1&&(t=dqe),vt(e).overflow=t),e}var aGe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,iGe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,sGe=/Z|[+-]\d\d(?::?\d\d)?/,mm=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],sO=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],lGe=/^\/?Date\((-?\d+)/i,cGe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,uGe={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function aee(e){var t,r,n=e._i,o=aGe.exec(n)||iGe.exec(n),a,i,s,l,c=mm.length,u=sO.length;if(o){for(vt(e).iso=!0,t=0,r=c;t_p(i)||e._dayOfYear===0)&&(vt(e)._overflowDayOfYear=!0),r=h1(i,0,e._dayOfYear),e._a[Si]=r.getUTCMonth(),e._a[Va]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=o[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Hr]===24&&e._a[va]===0&&e._a[Ti]===0&&e._a[gc]===0&&(e._nextDay=!0,e._a[Hr]=0),e._d=(e._useUTC?h1:Cqe).apply(null,n),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Hr]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(vt(e).weekdayMismatch=!0)}}function bGe(e){var t,r,n,o,a,i,s,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,r=Lu(t.GG,e._a[_n],p1(cr(),1,4).year),n=Lu(t.W,1),o=Lu(t.E,1),(o<1||o>7)&&(l=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,c=p1(cr(),a,i),r=Lu(t.gg,e._a[_n],c.year),n=Lu(t.w,c.week),t.d!=null?(o=t.d,(o<0||o>6)&&(l=!0)):t.e!=null?(o=t.e+a,(t.e<0||t.e>6)&&(l=!0)):o=a),n<1||n>Bi(r,a,i)?vt(e)._overflowWeeks=!0:l!=null?vt(e)._overflowWeekday=!0:(s=eee(r,n,o,a,i),e._a[_n]=s.year,e._dayOfYear=s.dayOfYear)}ze.ISO_8601=function(){};ze.RFC_2822=function(){};function jM(e){if(e._f===ze.ISO_8601){aee(e);return}if(e._f===ze.RFC_2822){iee(e);return}e._a=[],vt(e).empty=!0;var t=""+e._i,r,n,o,a,i,s=t.length,l=0,c,u;for(o=BJ(e._f,e._locale).match(EM)||[],u=o.length,r=0;r0&&vt(e).unusedInput.push(i),t=t.slice(t.indexOf(n)+n.length),l+=n.length),Cd[a]?(n?vt(e).empty=!1:vt(e).unusedTokens.push(a),cqe(a,n,e)):e._strict&&!n&&vt(e).unusedTokens.push(a);vt(e).charsLeftOver=s-l,t.length>0&&vt(e).unusedInput.push(t),e._a[Hr]<=12&&vt(e).bigHour===!0&&e._a[Hr]>0&&(vt(e).bigHour=void 0),vt(e).parsedDateParts=e._a.slice(0),vt(e).meridiem=e._meridiem,e._a[Hr]=yGe(e._locale,e._a[Hr],e._meridiem),c=vt(e).era,c!==null&&(e._a[_n]=e._locale.erasConvertYear(c,e._a[_n])),AM(e),MM(e)}function yGe(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function wGe(e){var t,r,n,o,a,i,s=!1,l=e._f.length;if(l===0){vt(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;othis?this:e:E9()});function cee(e,t){var r,n;if(t.length===1&&Oa(t[0])&&(t=t[0]),!t.length)return cr();for(r=t[0],n=1;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function BGe(){if(!Un(this._isDSTShifted))return this._isDSTShifted;var e={},t;return xM(e,this),e=see(e),e._a?(t=e._isUTC?li(e._a):cr(e._a),this._isDSTShifted=this.isValid()&&AGe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function VGe(){return this.isValid()?!this._isUTC:!1}function HGe(){return this.isValid()?this._isUTC:!1}function dee(){return this.isValid()?this._isUTC&&this._offset===0:!1}var UGe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,WGe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Sa(e,t){var r=e,n=null,o,a,i;return V6(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Xi(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=UGe.exec(e))?(o=n[1]==="-"?-1:1,r={y:0,d:_t(n[Va])*o,h:_t(n[Hr])*o,m:_t(n[va])*o,s:_t(n[Ti])*o,ms:_t(GR(n[gc]*1e3))*o}):(n=WGe.exec(e))?(o=n[1]==="-"?-1:1,r={y:ql(n[2],o),M:ql(n[3],o),w:ql(n[4],o),d:ql(n[5],o),h:ql(n[6],o),m:ql(n[7],o),s:ql(n[8],o)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(i=qGe(cr(r.from),cr(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),a=new A9(r),V6(e)&&zt(e,"_locale")&&(a._locale=e._locale),V6(e)&&zt(e,"_isValid")&&(a._isValid=e._isValid),a}Sa.fn=A9.prototype;Sa.invalid=MGe;function ql(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function HD(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function qGe(e,t){var r;return e.isValid()&&t.isValid()?(t=LM(t,e),e.isBefore(t)?r=HD(e,t):(r=HD(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function fee(e,t){return function(r,n){var o,a;return n!==null&&!isNaN(+n)&&(zJ(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=r,r=n,n=a),o=Sa(r,n),hee(this,o,e),this}}function hee(e,t,r,n){var o=t._milliseconds,a=GR(t._days),i=GR(t._months);e.isValid()&&(n=n??!0,i&&XJ(e,d_(e,"Month")+i*r),a&&HJ(e,"Date",d_(e,"Date")+a*r),o&&e._d.setTime(e._d.valueOf()+o*r),n&&ze.updateOffset(e,a||i))}var GGe=fee(1,"add"),KGe=fee(-1,"subtract");function pee(e){return typeof e=="string"||e instanceof String}function YGe(e){return ka(e)||t5(e)||pee(e)||Xi(e)||ZGe(e)||XGe(e)||e===null||e===void 0}function XGe(e){var t=Ec(e)&&!yM(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,a,i=n.length;for(o=0;or.valueOf():r.valueOf()9999?B6(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ci(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",B6(r,"Z")):B6(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function dKe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,o,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(r+n+o+a)}function fKe(e){e||(e=this.isUtc()?ze.defaultFormatUtc:ze.defaultFormat);var t=B6(this,e);return this.localeData().postformat(t)}function hKe(e,t){return this.isValid()&&(ka(e)&&e.isValid()||cr(e).isValid())?Sa({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pKe(e){return this.from(cr(),e)}function mKe(e,t){return this.isValid()&&(ka(e)&&e.isValid()||cr(e).isValid())?Sa({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gKe(e){return this.to(cr(),e)}function mee(e){var t;return e===void 0?this._locale._abbr:(t=rs(e),t!=null&&(this._locale=t),this)}var gee=Jo("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function vee(){return this._locale}var p_=1e3,Od=60*p_,m_=60*Od,bee=(365*400+97)*24*m_;function kd(e,t){return(e%t+t)%t}function yee(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-bee:new Date(e,t,r).valueOf()}function wee(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-bee:Date.UTC(e,t,r)}function vKe(e){var t,r;if(e=ea(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?wee:yee,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=kd(t+(this._isUTC?0:this.utcOffset()*Od),m_);break;case"minute":t=this._d.valueOf(),t-=kd(t,Od);break;case"second":t=this._d.valueOf(),t-=kd(t,p_);break}return this._d.setTime(t),ze.updateOffset(this,!0),this}function bKe(e){var t,r;if(e=ea(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?wee:yee,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=m_-kd(t+(this._isUTC?0:this.utcOffset()*Od),m_)-1;break;case"minute":t=this._d.valueOf(),t+=Od-kd(t,Od)-1;break;case"second":t=this._d.valueOf(),t+=p_-kd(t,p_)-1;break}return this._d.setTime(t),ze.updateOffset(this,!0),this}function yKe(){return this._d.valueOf()-(this._offset||0)*6e4}function wKe(){return Math.floor(this.valueOf()/1e3)}function xKe(){return new Date(this.valueOf())}function _Ke(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function EKe(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function CKe(){return this.isValid()?this.toISOString():null}function OKe(){return wM(this)}function kKe(){return Fs({},vt(this))}function RKe(){return vt(this).overflow}function SKe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ot("N",0,0,"eraAbbr");ot("NN",0,0,"eraAbbr");ot("NNN",0,0,"eraAbbr");ot("NNNN",0,0,"eraName");ot("NNNNN",0,0,"eraNarrow");ot("y",["y",1],"yo","eraYear");ot("y",["yy",2],0,"eraYear");ot("y",["yyy",3],0,"eraYear");ot("y",["yyyy",4],0,"eraYear");Ue("N",$M);Ue("NN",$M);Ue("NNN",$M);Ue("NNNN",FKe);Ue("NNNNN",zKe);Zt(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var o=r._locale.erasParse(e,n,r._strict);o?vt(r).era=o:vt(r).invalidEra=e});Ue("y",Of);Ue("yy",Of);Ue("yyy",Of);Ue("yyyy",Of);Ue("yo",BKe);Zt(["y","yy","yyy","yyyy"],_n);Zt(["yo"],function(e,t,r,n){var o;r._locale._eraYearOrdinalRegex&&(o=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[_n]=r._locale.eraYearOrdinalParse(e,o):t[_n]=parseInt(e,10)});function TKe(e,t){var r,n,o,a=this._eras||rs("en")._eras;for(r=0,n=a.length;r=0)return a[n]}function MKe(e,t){var r=e.since<=e.until?1:-1;return t===void 0?ze(e.since).year():ze(e.since).year()+(t-e.offset)*r}function AKe(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;ea&&(t=a),KKe.call(this,e,t,r,n,o))}function KKe(e,t,r,n,o){var a=eee(e,t,r,n,o),i=h1(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}ot("Q",0,"Qo","quarter");kn("quarter","Q");Rn("quarter",7);Ue("Q",UJ);Zt("Q",function(e,t){t[Si]=(_t(e)-1)*3});function YKe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}ot("D",["DD",2],"Do","date");kn("date","D");Rn("date",9);Ue("D",dr);Ue("DD",dr,Ro);Ue("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Zt(["D","DD"],Va);Zt("Do",function(e,t){t[Va]=_t(e.match(dr)[0])});var _ee=Cf("Date",!0);ot("DDD",["DDDD",3],"DDDo","dayOfYear");kn("dayOfYear","DDD");Rn("dayOfYear",4);Ue("DDD",k9);Ue("DDDD",WJ);Zt(["DDD","DDDD"],function(e,t,r){r._dayOfYear=_t(e)});function XKe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}ot("m",["mm",2],0,"minute");kn("minute","m");Rn("minute",14);Ue("m",dr);Ue("mm",dr,Ro);Zt(["m","mm"],va);var ZKe=Cf("Minutes",!1);ot("s",["ss",2],0,"second");kn("second","s");Rn("second",15);Ue("s",dr);Ue("ss",dr,Ro);Zt(["s","ss"],Ti);var QKe=Cf("Seconds",!1);ot("S",0,0,function(){return~~(this.millisecond()/100)});ot(0,["SS",2],0,function(){return~~(this.millisecond()/10)});ot(0,["SSS",3],0,"millisecond");ot(0,["SSSS",4],0,function(){return this.millisecond()*10});ot(0,["SSSSS",5],0,function(){return this.millisecond()*100});ot(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});ot(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});ot(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});ot(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});kn("millisecond","ms");Rn("millisecond",16);Ue("S",k9,UJ);Ue("SS",k9,Ro);Ue("SSS",k9,WJ);var zs,Eee;for(zs="SSSS";zs.length<=9;zs+="S")Ue(zs,Of);function JKe(e,t){t[gc]=_t(("0."+e)*1e3)}for(zs="S";zs.length<=9;zs+="S")Zt(zs,JKe);Eee=Cf("Milliseconds",!1);ot("z",0,0,"zoneAbbr");ot("zz",0,0,"zoneName");function eYe(){return this._isUTC?"UTC":""}function tYe(){return this._isUTC?"Coordinated Universal Time":""}var $e=r5.prototype;$e.add=GGe;$e.calendar=eKe;$e.clone=tKe;$e.diff=lKe;$e.endOf=bKe;$e.format=fKe;$e.from=hKe;$e.fromNow=pKe;$e.to=mKe;$e.toNow=gKe;$e.get=nqe;$e.invalidAt=RKe;$e.isAfter=rKe;$e.isBefore=nKe;$e.isBetween=oKe;$e.isSame=aKe;$e.isSameOrAfter=iKe;$e.isSameOrBefore=sKe;$e.isValid=OKe;$e.lang=gee;$e.locale=mee;$e.localeData=vee;$e.max=OGe;$e.min=CGe;$e.parsingFlags=kKe;$e.set=oqe;$e.startOf=vKe;$e.subtract=KGe;$e.toArray=_Ke;$e.toObject=EKe;$e.toDate=xKe;$e.toISOString=uKe;$e.inspect=dKe;typeof Symbol<"u"&&Symbol.for!=null&&($e[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});$e.toJSON=CKe;$e.toString=cKe;$e.unix=wKe;$e.valueOf=yKe;$e.creationData=SKe;$e.eraName=AKe;$e.eraNarrow=jKe;$e.eraAbbr=IKe;$e.eraYear=LKe;$e.year=JJ;$e.isLeapYear=Eqe;$e.weekYear=VKe;$e.isoWeekYear=HKe;$e.quarter=$e.quarters=YKe;$e.month=ZJ;$e.daysInMonth=wqe;$e.week=$e.weeks=Tqe;$e.isoWeek=$e.isoWeeks=Pqe;$e.weeksInYear=qKe;$e.weeksInWeekYear=GKe;$e.isoWeeksInYear=UKe;$e.isoWeeksInISOWeekYear=WKe;$e.date=_ee;$e.day=$e.days=Hqe;$e.weekday=Uqe;$e.isoWeekday=Wqe;$e.dayOfYear=XKe;$e.hour=$e.hours=Qqe;$e.minute=$e.minutes=ZKe;$e.second=$e.seconds=QKe;$e.millisecond=$e.milliseconds=Eee;$e.utcOffset=IGe;$e.utc=$Ge;$e.local=NGe;$e.parseZone=DGe;$e.hasAlignedHourOffset=FGe;$e.isDST=zGe;$e.isLocal=VGe;$e.isUtcOffset=HGe;$e.isUtc=dee;$e.isUTC=dee;$e.zoneAbbr=eYe;$e.zoneName=tYe;$e.dates=Jo("dates accessor is deprecated. Use date instead.",_ee);$e.months=Jo("months accessor is deprecated. Use month instead",ZJ);$e.years=Jo("years accessor is deprecated. Use year instead",JJ);$e.zone=Jo("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",LGe);$e.isDSTShifted=Jo("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",BGe);function rYe(e){return cr(e*1e3)}function nYe(){return cr.apply(null,arguments).parseZone()}function Cee(e){return e}var Bt=_M.prototype;Bt.calendar=HWe;Bt.longDateFormat=GWe;Bt.invalidDate=YWe;Bt.ordinal=QWe;Bt.preparse=Cee;Bt.postformat=Cee;Bt.relativeTime=eqe;Bt.pastFuture=tqe;Bt.set=BWe;Bt.eras=TKe;Bt.erasParse=PKe;Bt.erasConvertYear=MKe;Bt.erasAbbrRegex=NKe;Bt.erasNameRegex=$Ke;Bt.erasNarrowRegex=DKe;Bt.months=gqe;Bt.monthsShort=vqe;Bt.monthsParse=yqe;Bt.monthsRegex=_qe;Bt.monthsShortRegex=xqe;Bt.week=Oqe;Bt.firstDayOfYear=Sqe;Bt.firstDayOfWeek=Rqe;Bt.weekdays=Dqe;Bt.weekdaysMin=zqe;Bt.weekdaysShort=Fqe;Bt.weekdaysParse=Vqe;Bt.weekdaysRegex=qqe;Bt.weekdaysShortRegex=Gqe;Bt.weekdaysMinRegex=Kqe;Bt.isPM=Xqe;Bt.meridiem=Jqe;function g_(e,t,r,n){var o=rs(),a=li().set(n,t);return o[r](a,e)}function Oee(e,t,r){if(Xi(e)&&(t=e,e=void 0),e=e||"",t!=null)return g_(e,t,r,"month");var n,o=[];for(n=0;n<12;n++)o[n]=g_(e,n,r,"month");return o}function DM(e,t,r,n){typeof e=="boolean"?(Xi(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Xi(t)&&(r=t,t=void 0),t=t||"");var o=rs(),a=e?o._week.dow:0,i,s=[];if(r!=null)return g_(t,(r+a)%7,n,"day");for(i=0;i<7;i++)s[i]=g_(t,(i+a)%7,n,"day");return s}function oYe(e,t){return Oee(e,t,"months")}function aYe(e,t){return Oee(e,t,"monthsShort")}function iYe(e,t,r){return DM(e,t,r,"weekdays")}function sYe(e,t,r){return DM(e,t,r,"weekdaysShort")}function lYe(e,t,r){return DM(e,t,r,"weekdaysMin")}al("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=_t(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});ze.lang=Jo("moment.lang is deprecated. Use moment.locale instead.",al);ze.langData=Jo("moment.langData is deprecated. Use moment.localeData instead.",rs);var pi=Math.abs;function cYe(){var e=this._data;return this._milliseconds=pi(this._milliseconds),this._days=pi(this._days),this._months=pi(this._months),e.milliseconds=pi(e.milliseconds),e.seconds=pi(e.seconds),e.minutes=pi(e.minutes),e.hours=pi(e.hours),e.months=pi(e.months),e.years=pi(e.years),this}function kee(e,t,r,n){var o=Sa(t,r);return e._milliseconds+=n*o._milliseconds,e._days+=n*o._days,e._months+=n*o._months,e._bubble()}function uYe(e,t){return kee(this,e,t,1)}function dYe(e,t){return kee(this,e,t,-1)}function UD(e){return e<0?Math.floor(e):Math.ceil(e)}function fYe(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,o,a,i,s,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=UD(YR(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,o=Bo(e/1e3),n.seconds=o%60,a=Bo(o/60),n.minutes=a%60,i=Bo(a/60),n.hours=i%24,t+=Bo(i/24),l=Bo(Ree(t)),r+=l,t-=UD(YR(l)),s=Bo(r/12),r%=12,n.days=t,n.months=r,n.years=s,this}function Ree(e){return e*4800/146097}function YR(e){return e*146097/4800}function hYe(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=ea(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+Ree(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(YR(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function pYe(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+_t(this._months/12)*31536e6:NaN}function ns(e){return function(){return this.as(e)}}var mYe=ns("ms"),gYe=ns("s"),vYe=ns("m"),bYe=ns("h"),yYe=ns("d"),wYe=ns("w"),xYe=ns("M"),_Ye=ns("Q"),EYe=ns("y");function CYe(){return Sa(this)}function OYe(e){return e=ea(e),this.isValid()?this[e+"s"]():NaN}function tu(e){return function(){return this.isValid()?this._data[e]:NaN}}var kYe=tu("milliseconds"),RYe=tu("seconds"),SYe=tu("minutes"),TYe=tu("hours"),PYe=tu("days"),MYe=tu("months"),AYe=tu("years");function jYe(){return Bo(this.days()/7)}var wi=Math.round,td={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function IYe(e,t,r,n,o){return o.relativeTime(t||1,!!r,e,n)}function LYe(e,t,r,n){var o=Sa(e).abs(),a=wi(o.as("s")),i=wi(o.as("m")),s=wi(o.as("h")),l=wi(o.as("d")),c=wi(o.as("M")),u=wi(o.as("w")),p=wi(o.as("y")),h=a<=r.ss&&["s",a]||a0,h[4]=n,IYe.apply(null,h)}function $Ye(e){return e===void 0?wi:typeof e=="function"?(wi=e,!0):!1}function NYe(e,t){return td[e]===void 0?!1:t===void 0?td[e]:(td[e]=t,e==="s"&&(td.ss=t-1),!0)}function DYe(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=td,o,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},td,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),o=this.localeData(),a=LYe(this,!r,n,o),r&&(a=o.pastFuture(+this,a)),o.postformat(a)}var lO=Math.abs;function wu(e){return(e>0)-(e<0)||+e}function I9(){if(!this.isValid())return this.localeData().invalidDate();var e=lO(this._milliseconds)/1e3,t=lO(this._days),r=lO(this._months),n,o,a,i,s=this.asSeconds(),l,c,u,p;return s?(n=Bo(e/60),o=Bo(n/60),e%=60,n%=60,a=Bo(r/12),r%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=wu(this._months)!==wu(s)?"-":"",u=wu(this._days)!==wu(s)?"-":"",p=wu(this._milliseconds)!==wu(s)?"-":"",l+"P"+(a?c+a+"Y":"")+(r?c+r+"M":"")+(t?u+t+"D":"")+(o||n||e?"T":"")+(o?p+o+"H":"")+(n?p+n+"M":"")+(e?p+i+"S":"")):"P0D"}var Pt=A9.prototype;Pt.isValid=PGe;Pt.abs=cYe;Pt.add=uYe;Pt.subtract=dYe;Pt.as=hYe;Pt.asMilliseconds=mYe;Pt.asSeconds=gYe;Pt.asMinutes=vYe;Pt.asHours=bYe;Pt.asDays=yYe;Pt.asWeeks=wYe;Pt.asMonths=xYe;Pt.asQuarters=_Ye;Pt.asYears=EYe;Pt.valueOf=pYe;Pt._bubble=fYe;Pt.clone=CYe;Pt.get=OYe;Pt.milliseconds=kYe;Pt.seconds=RYe;Pt.minutes=SYe;Pt.hours=TYe;Pt.days=PYe;Pt.weeks=jYe;Pt.months=MYe;Pt.years=AYe;Pt.humanize=DYe;Pt.toISOString=I9;Pt.toString=I9;Pt.toJSON=I9;Pt.locale=mee;Pt.localeData=vee;Pt.toIsoString=Jo("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",I9);Pt.lang=gee;ot("X",0,0,"unix");ot("x",0,0,"valueOf");Ue("x",S9);Ue("X",iqe);Zt("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});Zt("x",function(e,t,r){r._d=new Date(_t(e))});//! moment.js +ze.version="2.29.4";FWe(cr);ze.fn=$e;ze.min=kGe;ze.max=RGe;ze.now=SGe;ze.utc=li;ze.unix=rYe;ze.months=oYe;ze.isDate=t5;ze.locale=al;ze.invalid=E9;ze.duration=Sa;ze.isMoment=ka;ze.weekdays=iYe;ze.parseZone=nYe;ze.localeData=rs;ze.isDuration=V6;ze.monthsShort=aYe;ze.weekdaysMin=lYe;ze.defineLocale=PM;ze.updateLocale=nGe;ze.locales=oGe;ze.weekdaysShort=sYe;ze.normalizeUnits=ea;ze.relativeTimeRounding=$Ye;ze.relativeTimeThreshold=NYe;ze.calendarFormat=JGe;ze.prototype=$e;ze.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const See=({likedUsers:e,openLikedUsersDialog:t,handleOpenLikedUsersDialog:r})=>M.jsxs(ie.Dialog,{open:t,size:"xs",handler:r,animate:{mount:{scale:1,y:0},unmount:{scale:.9,y:-100}},children:[M.jsx(ie.DialogHeader,{children:M.jsxs("div",{className:"flex justify-between items-center w-full",children:[M.jsx("h1",{className:"text-xl font-semibold",children:"Liked by"}),M.jsx("div",{children:M.jsx(e5,{className:"text-3xl cursor-pointer",onClick:r})})]})}),M.jsx(ie.DialogBody,{className:"flex flex-col gap-4 lg:mx-4 lg:my-0 m-2 max-h-[20.5rem] overflow-y-scroll",children:M.jsx("div",{className:"flex flex-col gap-2 ",children:e.length>0?e.map(n=>M.jsx("div",{className:"flex p-2 items-center justify-between transition duration-100 ease-in-out hover:shadow-md hover:scale-105 hover:rounded-lg",children:M.jsx(ln,{to:`/profile/${n._id}`,children:M.jsxs("div",{className:"mt-3 flex items-center space-x-2",children:[M.jsx("img",{className:"inline-block h-12 w-12 rounded-full",src:n.dp?n.dp:Ut.DEFAULT_IMG,alt:"user dp"}),M.jsxs("span",{className:"flex flex-col",children:[M.jsx("span",{className:"text-[14px] font-medium text-gray-900",children:n==null?void 0:n.name}),M.jsx("span",{className:"text-[11px] font-medium text-gray-500",children:n.username?`@${n.username}`:"@ -"})]})]})})},n._id)):M.jsx("div",{className:"flex justify-center items-center",children:M.jsx("em",{className:"text-lg font-light",children:"No likes yet"})})})}),M.jsx(ie.DialogFooter,{children:void 0})]});var FYe=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=WD[t.format]||WD.default;window.clipboardData.setData(p,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(s),a.selectNodeContents(s),i.addRange(a);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(u){r&&console.error("unable to copy using execCommand: ",u),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(p){r&&console.error("unable to copy using clipboardData: ",p),r&&console.error("falling back to prompt"),n=VYe("message"in t?t.message:BYe),window.prompt(n,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(a):i.removeAllRanges()),s&&document.body.removeChild(s),o()}return l}var UYe=HYe;const Tee=Cl(UYe),WYe=({commentPopupOpen:e,handleCommentPopupOpen:t,postDetails:r,likesArray:n,savedPostsArray:o,setCommentsLength:a,isLiked:i,handleLike:s,isSaved:l,handleSavePost:c})=>{var Q,Z;const u=no(),[p,h]=O.useState(!1),[g,x]=O.useState(null),[y,b]=O.useState([]),[m,f]=O.useState(!1),[v,d]=O.useState(null),[w,_]=O.useState(null),[E,k]=O.useState(!1),[S,R]=O.useState(null),[T,P]=O.useState(null),[j,L]=O.useState(null),D=(Q=_o.getState().auth.user)==null?void 0:Q._id,[B,V]=O.useState([]),[q,z]=O.useState(!1),F=()=>z(!q);O.useEffect(()=>{r&&N(r._id)},[r]);async function N(U){const J=await rJ(U);J.status==="success"&&b(J.comments)}O.useEffect(()=>{p&&r?(console.log("comment to be replied: ",v),console.log("tagged user name: ",g)):(x(null),d(null))},[p,r]),O.useEffect(()=>{m&&(N(r==null?void 0:r._id),f(!1))},[m,r]),O.useEffect(()=>{a(y.length)},[y.length]),O.useEffect(()=>{if(S){const U=y.findIndex(J=>J._id===S._id);if(U!==-1){const J=[...y];J[U]=S,b(J)}R(null)}},[y,S]),O.useEffect(()=>{if(T){const U=y.findIndex(J=>J._id===T);if(U!==-1){const J=[...y];J.splice(U,1),b(J)}P(null)}},[y,T]);const W=U=>{u(BQ(U)),t()},G=async U=>{const J=await nJ(U);V(J.users)};return M.jsxs(M.Fragment,{children:[M.jsxs(ie.Dialog,{open:e,size:"lg",handler:t,dismiss:{enabled:!1},animate:{mount:{scale:1,y:0},unmount:{scale:.9,y:-100}},children:[M.jsx(to,{}),M.jsxs(ie.DialogBody,{children:[M.jsx(ie.DialogHeader,{className:"p-0",children:M.jsxs("div",{className:"flex justify-between items-center w-full",children:[M.jsx("div",{className:"flex items-center justify-between gap-5 transition-transform duration-300 mx-1 px-2 pb-3 rounded-lg cursor-pointer hover:bg-gray-200 hover:scale-105",children:r&&M.jsx(ln,{to:`/profile/${r.userId}`,children:M.jsxs("div",{className:"mt-3 flex items-center space-x-2",children:[r!=null&&r.user.dp?M.jsx("img",{className:"inline-block h-12 w-12 rounded-full",src:r==null?void 0:r.user.dp,alt:"Profile Picture"}):M.jsx("img",{className:"inline-block h-12 w-12 rounded-full",src:r!=null&&r.user.dp?r==null?void 0:r.user.dp:Ut.DEFAULT_IMG,alt:"Profile Picture"}),M.jsxs("span",{className:"flex flex-col",children:[M.jsx("span",{className:"text-[14px] font-bold text-gray-900",children:r.user.name}),M.jsxs("span",{className:"text-[11px] font-bold text-green-500",children:["@",r.user.username]})]})]})})}),M.jsx("div",{children:M.jsx(e5,{className:"text-3xl cursor-pointer",onClick:t})})]})}),M.jsx("section",{children:M.jsxs("div",{className:"flex gap-8 items-start justify-start",children:[M.jsx("div",{className:"relative hidden md:flex w-1/2 pl-4 pb-5",children:M.jsx("div",{className:"flex flex-col w-full h-full items-start gap-2",children:M.jsx("div",{className:"w-full rounded-lg border shadow-lg",children:M.jsxs("div",{className:" flex flex-col justify-center w-full h-fit rounded-t-lg p-3 gap-3",children:[M.jsxs("div",{className:"px-4",children:[M.jsx("div",{className:"mt-2 text-sm text-gray-600",dangerouslySetInnerHTML:{__html:r==null?void 0:r.description}}),M.jsx("div",{className:"mt-4 mb-2",children:(Z=r==null?void 0:r.hashtagsArray)==null?void 0:Z.map((U,J)=>M.jsx("span",{className:`mb-2 mr-2 inline-block rounded-full bg-gray-100 px-3 py-1 text-[10px] font-semibold transition ease-in-out duration-150 + text-gray-900 cursor-pointer hover:scale-105 hover:text-gray-100 hover:bg-gray-900`,onClick:()=>W(U),children:U},J))})]}),(r==null?void 0:r.image)&&(r==null?void 0:r.image.length)>0&&M.jsx("div",{className:"flex items-center justify-self-center px-1 w-full h-64",children:r.image.length>1?M.jsx(ie.Carousel,{className:"w-full h-full",navigation:({setActiveIndex:U,activeIndex:J,length:ae})=>M.jsx("div",{className:"absolute bottom-4 left-2/4 z-50 flex -translate-x-2/4 gap-2",children:new Array(ae).fill("").map((ee,se)=>M.jsx("span",{className:`block h-1 cursor-pointer rounded-2xl transition-all content-[''] ${J===se?"w-8 bg-white":"w-4 bg-white/50"}`,onClick:()=>U(se)},se))}),children:r==null?void 0:r.image.map((U,J)=>M.jsx("img",{src:U,alt:"post-image",className:"h-full w-full object-cover rounded-lg"},J))}):M.jsx("img",{src:r.image[0],alt:"Laptop",className:"h-full w-full rounded-lg object-cover"})}),M.jsxs("div",{className:"flex items-center justify-between px-2 text-black",children:[M.jsxs("div",{className:"flex items-center justify-start gap-4",children:[n.includes(D)||i?M.jsx(y9,{className:"text-2xl cursor-pointer text-socioverse-500 transition ease-in-out duration-150 hover:text-red-500 hover:scale-105",onClick:s}):M.jsx(w9,{className:"text-2xl cursor-pointer hover:text-socioverse-500 hover:scale-105 transition ease-in-out duration-150",onClick:s}),M.jsx(JQ,{className:"text-2xl cursor-pointer",onClick:()=>{Ce.dismiss(),r&&Tee(`${Ut.CLIENT_BASE_URL}/share/${r._id}`),Ce.success("Copied link to the clipboard",{...nt,closeButton:!1})}})]}),o&&o.includes(D)||l?M.jsx(tJ,{className:"text-2xl cursor-pointer text-black hover:scale-105 transition ease-in-out duration-150",onClick:c}):M.jsx(eJ,{className:"text-2xl cursor-pointer hover:scale-105 transition ease-in-out duration-150 ",onClick:c})]}),M.jsxs("div",{className:"flex items-center justify-between w-full",children:[M.jsxs("div",{className:"flex items-center justify-start gap-4 px-2",children:[M.jsxs("span",{className:"text-[12px] font-medium text-gray-500 cursor-pointer",onClick:()=>{r&&G(r._id),z(!0)},children:[n.length," likes"]}),M.jsxs("span",{className:"text-[12px] font-medium text-gray-500",children:[y.length," comments"]})]}),M.jsxs("span",{className:"text-[12px] font-medium text-gray-500",children:[ze(r==null?void 0:r.createdAt).startOf("minutes").fromNow(),(r==null?void 0:r.createdAt)!==(r==null?void 0:r.updatedAt)&&" ( Edited )"]})]})]})})})}),M.jsx("div",{className:"flex w-full md:w-1/2 h-[32rem] md:pr-4 md:pb-5",children:M.jsxs("div",{className:"flex flex-col w-full h-full items-start border-2 rounded-lg shadow-lg",children:[M.jsx("div",{className:"h-full w-full overflow-y-scroll no-scrollbar",children:y.length?y.map(U=>M.jsx(GYe,{onReply:p,setOnReply:h,commentData:U,commentToBeReplied:v,setCommentToBeReplied:d,setTaggedUser:x,editCommentMode:E,setEditComment:_,setDeleteCommentId:P,newlyAddedReply:j,setNewlyAddedReply:L},U._id)):M.jsx("div",{className:"flex items-center justify-center h-full",children:M.jsx("div",{className:"flex flex-col items-center justify-center",children:M.jsx("p",{children:"No comments yet..."})})})}),M.jsx("div",{className:"h-fit w-full p-2 md:p-4 border-t-2",children:r&&M.jsx(qYe,{postId:r._id,onReply:p,setOnReply:h,taggedUser:g,setNewCommentStatus:f,commentToBeReplied:v,setCommentToBeReplied:d,editComment:w,setEditComment:_,editCommentMode:E,setEditCommentMode:k,setNewlyUpdatedComment:R,setNewlyAddedReply:L})})]})})]})})]})]}),M.jsx(See,{likedUsers:B,openLikedUsersDialog:q,handleOpenLikedUsersDialog:F})]})};function qYe({postId:e,onReply:t,setOnReply:r,taggedUser:n,setNewCommentStatus:o,commentToBeReplied:a,setCommentToBeReplied:i,editComment:s,setEditComment:l,editCommentMode:c,setEditCommentMode:u,setNewlyUpdatedComment:p,setNewlyAddedReply:h}){const[g,x]=O.useState(""),[y,b]=O.useState(null),m=O.useRef(null);O.useEffect(()=>{var v;t&&n?((v=m.current)==null||v.focus(),x(`@${n} `),u(!1)):(x(""),i(null))},[t,n]),O.useEffect(()=>{var v;s&&(u(!0),x(s.comment),b(s._id),(v=m.current)==null||v.focus(),l(null),r(!1))},[s,l,u]);const f=async v=>{if(v.length>0){const d={postId:e,comment:v};if(t&&a){const _=rUe({commentId:a,reply:v});Ce.promise(_,{pending:"Replying to the comment...",success:"Comment added successfully!",error:"Error adding comment!"}),(await _).status==="success"&&i(null),h((await _).reply),r(!1)}else if(c){const w=lUe(y,v);Ce.promise(w,{pending:"Making Changes...",success:"Successfully Edited the comment!",error:"Error making changes!"}),(await w).status==="success"&&(p((await w).editedComment),u(!1))}else{const w=tUe(d);Ce.promise(w,{pending:"Adding comment...",success:"Comment added successfully!",error:"Error adding comment!"}),(await w).status==="success"&&o(!0)}}};return M.jsxs(M.Fragment,{children:[M.jsx($J,{ref:m,value:g,onChange:x,cleanOnEnter:!0,onEnter:f,placeholder:"Add a comment...",theme:"auto",fontSize:14,fontFamily:"sans-serif",keepOpened:!0,searchMention:async v=>["no user"].filter(d=>d.includes(v))}),t?M.jsx(ie.Button,{variant:"text",size:"sm",className:"text-xs text-socioverse-500 mr-10 float-right",onClick:()=>r(!1),children:"Cancel Reply"}):c?M.jsx(ie.Button,{variant:"text",size:"sm",className:"text-xs text-socioverse-500 mr-10 float-right",onClick:()=>u(!1),children:"Cancel Edit"}):""]})}function GYe({onReply:e,commentToBeReplied:t,setCommentToBeReplied:r,setOnReply:n,commentData:o,setTaggedUser:a,editCommentMode:i,setEditComment:s,setDeleteCommentId:l,newlyAddedReply:c,setNewlyAddedReply:u}){var W,G,Q,Z,U,J,ae;const p=(W=_o.getState().auth.user)==null?void 0:W._id,[h,g]=O.useState(o.likes),[x,y]=O.useState(!1),[b,m]=O.useState(!1),[f,v]=O.useState([]),[d,w]=O.useState(!1),[_,E]=O.useState(null),[k,S]=O.useState(null),[R,T]=O.useState(!1),[P,j]=O.useState(null),L=()=>{w(!d)};O.useEffect(()=>{o&&g(o.likes),o&&o.likes.includes(p)?y(!0):y(!1)},[o,p]),O.useEffect(()=>{c&&(v(ee=>[c,...ee]),u(null))},[c,u]),O.useEffect(()=>{b?D():v([])},[b]),O.useEffect(()=>{i||E(null)},[i]),O.useEffect(()=>{if(P){const ee=f.findIndex(se=>se._id===P);if(ee!==-1){const se=[...f];se.splice(ee,1),v(se)}l(null)}},[f,P,l]);async function D(){const ee=await nUe(o._id);ee.status==="success"&&v(ee.replies)}const B=(ee,se,ue,we,Oe)=>{n(Te=>!Te),r(ee),S(we),T(Oe),se?a(se):ue&&a(ue)},V=()=>{s(o),E(o._id)},q=()=>{Ce.dismiss(),Ce(M.jsx(gM,{onDelete:z,message:"Are you sure you want to delete this Comment?"}),{...nt,closeButton:!1})},z=async()=>{const ee=cUe(o._id);Ce.promise(ee,{pending:"Deleting Comment...",success:"Comment deleted successfully!",error:"Error deleting comment!"}),(await ee).status==="success"&&l(o._id)},F=async()=>{Ce.dismiss();const ee=dUe(o._id);Ce.promise(ee,{pending:"Reporting Comment...",success:"Comment reported successfully!",error:"Error reporting comment!"})},N=async()=>{Ce.dismiss(),x?(await lD(o._id,"dislike")).status==="success"?(y(!1),g(se=>se.filter(ue=>ue!==p))):Ce.error("Error occured",nt):(await lD(o._id,"like")).status==="success"?(y(!0),g(se=>[...se,p])):Ce.error("Error occured",nt)};return M.jsx("div",{className:mo("rounded-xl flex flex-col border m-3"),children:M.jsxs("div",{className:"transition-transform duration-300 rounded-lg cursor-pointer w-full",children:[M.jsxs("div",{className:mo("space-x-2 flex items-start p-1 md:p-4 rounded-lg shadow-lg",{"bg-blue-gray-50":e&&!R&&t===o._id||i&&_===o._id},{"bg-white":!e&&!i}),children:[o&&M.jsx(ln,{to:`/profile/${(G=o.user)==null?void 0:G._id}`,children:(Q=o.user)!=null&&Q.dp?M.jsx("img",{className:"inline-block h-8 w-8 md:h-10 md:w-10 rounded-full",src:(Z=o.user)==null?void 0:Z.dp,alt:"user dp"}):M.jsx("img",{className:"inline-block h-8 w-8 md:h-10 md:w-10 rounded-full",src:Ut.DEFAULT_IMG,alt:"user dp"})}),M.jsxs("div",{className:"w-full",children:[M.jsxs("div",{className:"flex justify-between items-center",children:[o&&M.jsx(ln,{to:`/profile/${(U=o.user)==null?void 0:U._id}`,children:M.jsx("span",{className:"text-xs md:text-sm font-bold text-gray-900",children:(J=o.user)==null?void 0:J.name})}),M.jsxs("div",{className:"group inline-block relative",children:[M.jsx(ie.Button,{color:"blue-gray",size:"sm",variant:"text",className:"focus:outline-none",onClick:L,children:M.jsx(pM,{className:"text-sm transition duration-150 ease-in-out hover:scale-105"})}),d&&M.jsx("div",{className:`${d?"block":"hidden"} absolute right-0 w-36 rounded-md z-10`,children:M.jsx("div",{className:`${d?"block":"hidden"} absolute right-0 mt-1 w-full bg-white border border-blue-gray-300/20 shadow-lg rounded-md z-10`,children:((ae=o.user)==null?void 0:ae._id)===p?M.jsxs(M.Fragment,{children:[M.jsxs("button",{className:"flex items-center w-full pl-5 py-[0.6rem] text-blue-gray-700 hover:bg-blue-100/50 hover:text-blue-gray-800 text-left",onClick:()=>{V(),w(!1)},children:[M.jsx(QQ,{className:"mr-2 text-lg"}),M.jsx("p",{className:"text-sm",children:"Edit"})]}),M.jsxs("button",{className:"flex items-center w-full pl-5 py-[0.6rem] text-blue-gray-700 hover:bg-blue-100/50 hover:text-blue-gray-800 text-left",onClick:()=>{q(),w(!1)},children:[M.jsx(mM,{className:"mr-2 text-md"}),M.jsx("p",{className:"text-sm",children:"Delete"})]})]}):M.jsxs("button",{className:"flex items-center w-full pl-5 py-[0.6rem] text-blue-gray-700 hover:bg-blue-100/50 hover:text-blue-gray-800 text-left",onClick:()=>{F(),w(!1)},children:[M.jsx(hM,{className:"mr-2 text-lg"}),M.jsx("p",{className:"text-sm",children:"Report"})]})})})]})]}),M.jsxs("span",{className:"flex-1",children:[M.jsx("p",{className:"text-xs md:text-sm text-gray-600",children:o.comment}),M.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-500 mt-4",children:[M.jsxs("div",{className:"flex gap-5",children:[h.includes(p)?M.jsxs("button",{onClick:N,className:"flex gap-1 items-center",children:[M.jsx("p",{className:"text-[0.6rem] md:text-xs font-bold",children:h.length}),M.jsx(y9,{className:"text-sm md:text-md cursor-pointer text-socioverse-500 hover:scale-105"})]}):M.jsxs("button",{onClick:N,className:"flex gap-1 items-center",children:[M.jsx("p",{className:"text-[0.6rem] md:text-xs font-bold",children:h.length}),M.jsx(w9,{className:"text-sm md:text-md cursor-pointer hover:text-socioverse-500"})]}),M.jsx("button",{className:"text-[0.6rem] md:text-xs font-bold",onClick:()=>{var ee,se;return o.user&&B(o._id,(ee=o.user)==null?void 0:ee.name,null,(se=o.user)==null?void 0:se._id,!1)},children:"Reply"}),M.jsxs("button",{className:"text-[0.6rem] md:text-xs font-bold",onClick:()=>m(ee=>!ee),children:["Replies ",f.length||o.replies.length]})]}),M.jsxs("p",{className:"text-[0.6rem] md:text-xs",children:[ze(o.createdAt).startOf("minutes").fromNow(),o.createdAt!==o.updatedAt&&" ( Edited )"]})]})]})]})]}),b&&f.length>0&&M.jsx("div",{className:"mt-5 flex flex-col gap-4",children:f.map(ee=>M.jsx(KYe,{userId:p,reply:ee,commentId:o._id,handleOnReply:B,onReply:e,fromId:k,setDeleteReplyId:j},ee._id))})]})})}const KYe=({userId:e,reply:t,commentId:r,handleOnReply:n,onReply:o,fromId:a,setDeleteReplyId:i})=>{var f,v,d,w;const[s,l]=O.useState(t.likes),[c,u]=O.useState(!1),[p,h]=O.useState(!1),g=()=>{h(!p)};O.useEffect(()=>{t&&l(t.likes),t&&t.likes.includes(e)?u(!0):u(!1)},[t,e]);const x=async()=>{Ce.dismiss(),c?(await cD(t._id,r,"dislike")).status==="success"?(u(!1),l(E=>E.filter(k=>k!==e))):Ce.error("Error occured",nt):(await cD(t._id,r,"like")).status==="success"?(u(!0),l(E=>[...E,e])):Ce.error("Error occured",nt)},y=()=>{Ce.dismiss(),Ce(M.jsx(gM,{onDelete:b,message:"Are you sure you want to delete this reply comment?"}),{...nt,closeButton:!1})},b=async()=>{const _=uUe(t._id,r);Ce.promise(_,{pending:"Deleting Reply...",success:"Reply deleted successfully!",error:"Error deleting reply!"}),(await _).status==="success"&&i(t._id)},m=()=>{Ce.dismiss();const _=fUe(t._id,r);Ce.promise(_,{pending:"Reporting Reply...",success:"Reply reported successfully!",error:"Error reporting reply!"})};return M.jsx(M.Fragment,{children:M.jsx("div",{className:" pl-10 pr-2",children:M.jsxs("div",{className:mo("space-x-2 p-1 md:p-4 rounded-lg shadow-lg border flex items-start",{"bg-blue-gray-50":o&&a===t._id},{"bg-white":!o}),children:[t&&M.jsx(ln,{to:`/profile/${t.userId}`,children:(f=t.user)!=null&&f.dp?M.jsx("img",{className:"inline-block h-8 w-8 md:h-10 md:w-10 rounded-full",src:(v=t.user)==null?void 0:v.dp,alt:"Profile Picture"}):M.jsx("img",{className:"inline-block h-8 w-8 md:h-10 md:w-10 rounded-full",src:Ut.DEFAULT_IMG,alt:"Profile Picture"})}),M.jsxs("div",{className:"w-full",children:[M.jsxs("div",{className:"flex justify-between items-center",children:[t&&M.jsx(ln,{to:`/profile/${t.userId}`,children:M.jsx("span",{className:"text-xs md:text-sm font-bold text-gray-900",children:(d=t.user)==null?void 0:d.name})}),M.jsxs("div",{className:"group inline-block relative",children:[M.jsx(ie.Button,{color:"blue-gray",size:"sm",variant:"text",className:"focus:outline-none",onClick:g,children:M.jsx(pM,{className:"text-sm transition duration-150 ease-in-out hover:scale-105"})}),p&&M.jsx("div",{className:`${p?"block":"hidden"} absolute right-0 w-36 rounded-md z-10`,children:M.jsx("div",{className:`${p?"block":"hidden"} absolute right-0 mt-1 w-full bg-white border border-blue-gray-300/20 shadow-lg rounded-md z-10`,children:((w=t.user)==null?void 0:w._id)===e?M.jsxs("button",{className:"flex items-center w-full pl-5 py-[0.6rem] text-blue-gray-700 hover:bg-blue-100/50 hover:text-blue-gray-800 text-left",onClick:()=>{y(),h(!1)},children:[M.jsx(mM,{className:"mr-2 text-md"}),M.jsx("p",{className:"text-sm",children:"Delete"})]}):M.jsxs("button",{className:"flex items-center w-full pl-5 py-[0.6rem] text-blue-gray-700 hover:bg-blue-100/50 hover:text-blue-gray-800 text-left",onClick:()=>{m(),h(!1)},children:[M.jsx(hM,{className:"mr-2 text-lg"}),M.jsx("p",{className:"text-sm",children:"Report"})]})})})]})]}),M.jsxs("span",{className:"flex-1",children:[M.jsx("p",{className:"text-xs md:text-sm text-gray-600",children:t.reply}),M.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-500 mt-4",children:[M.jsxs("div",{className:"flex gap-5",children:[s.includes(e)?M.jsxs("button",{onClick:x,className:"flex gap-1 items-center",children:[M.jsx("p",{className:"text-[0.6rem] md:text-xs font-bold",children:s.length}),M.jsx(y9,{className:"text-sm md:text-md cursor-pointer text-socioverse-500 hover:scale-105"})]}):M.jsxs("button",{onClick:x,className:"flex gap-1 items-center",children:[M.jsx("p",{className:"text-[0.6rem] md:text-xs font-bold",children:s.length}),M.jsx(w9,{className:"text-sm md:text-md cursor-pointer hover:text-socioverse-500"})]}),M.jsx("button",{className:"text-[0.6rem] md:text-xs font-bold",onClick:()=>{var _;t.user&&n(r,null,(_=t.user)==null?void 0:_.name,t._id,!0)},children:"Reply"})]}),M.jsx("p",{className:"text-[0.6rem] md:text-xs",children:ze(t.createdAt).startOf("minutes").fromNow()})]})]})]})]})})})};function YYe(){this.__data__=[],this.size=0}var XYe=YYe;function ZYe(e,t){return e===t||e!==e&&t!==t}var Pee=ZYe,QYe=Pee;function JYe(e,t){for(var r=e.length;r--;)if(QYe(e[r][0],t))return r;return-1}var L9=JYe,eXe=L9,tXe=Array.prototype,rXe=tXe.splice;function nXe(e){var t=this.__data__,r=eXe(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():rXe.call(t,r,1),--this.size,!0}var oXe=nXe,aXe=L9;function iXe(e){var t=this.__data__,r=aXe(t,e);return r<0?void 0:t[r][1]}var sXe=iXe,lXe=L9;function cXe(e){return lXe(this.__data__,e)>-1}var uXe=cXe,dXe=L9;function fXe(e,t){var r=this.__data__,n=dXe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var hXe=fXe,pXe=XYe,mXe=oXe,gXe=sXe,vXe=uXe,bXe=hXe;function kf(e){var t=-1,r=e==null?0:e.length;for(this.clear();++ts))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var p=-1,h=!0,g=r&oJe?new eJe:void 0;for(a.set(e,t),a.set(t,e);++p-1&&e%1==0&&e-1&&e%1==0&&e<=met}var zee=get,vet=N9,bet=zee,yet=z9,wet="[object Arguments]",xet="[object Array]",_et="[object Boolean]",Eet="[object Date]",Cet="[object Error]",Oet="[object Function]",ket="[object Map]",Ret="[object Number]",Tet="[object Object]",Pet="[object RegExp]",Met="[object Set]",Aet="[object String]",jet="[object WeakMap]",Iet="[object ArrayBuffer]",Let="[object DataView]",$et="[object Float32Array]",Net="[object Float64Array]",Det="[object Int8Array]",Fet="[object Int16Array]",zet="[object Int32Array]",Bet="[object Uint8Array]",Vet="[object Uint8ClampedArray]",Het="[object Uint16Array]",Uet="[object Uint32Array]",ir={};ir[$et]=ir[Net]=ir[Det]=ir[Fet]=ir[zet]=ir[Bet]=ir[Vet]=ir[Het]=ir[Uet]=!0;ir[wet]=ir[xet]=ir[Iet]=ir[_et]=ir[Let]=ir[Eet]=ir[Cet]=ir[Oet]=ir[ket]=ir[Ret]=ir[Tet]=ir[Pet]=ir[Met]=ir[Aet]=ir[jet]=!1;function Wet(e){return yet(e)&&bet(e.length)&&!!ir[vet(e)]}var qet=Wet;function Get(e){return function(t){return e(t)}}var Ket=Get,y_={exports:{}};y_.exports;(function(e,t){var r=Mee,n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(y_,y_.exports);var Yet=y_.exports,Xet=qet,Zet=Ket,nF=Yet,oF=nF&&nF.isTypedArray,Qet=oF?Zet(oF):Xet,Bee=Qet,Jet=XJe,ett=set,ttt=BM,rtt=Fee,ntt=pet,ott=Bee,att=Object.prototype,itt=att.hasOwnProperty;function stt(e,t){var r=ttt(e),n=!r&&ett(e),o=!r&&!n&&rtt(e),a=!r&&!n&&!o&&ott(e),i=r||n||o||a,s=i?Jet(e.length,String):[],l=s.length;for(var c in e)(t||itt.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ntt(c,l)))&&s.push(c);return s}var ltt=stt,ctt=Object.prototype;function utt(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ctt;return e===r}var dtt=utt;function ftt(e,t){return function(r){return e(t(r))}}var htt=ftt,ptt=htt,mtt=ptt(Object.keys,Object),gtt=mtt,vtt=dtt,btt=gtt,ytt=Object.prototype,wtt=ytt.hasOwnProperty;function xtt(e){if(!vtt(e))return btt(e);var t=[];for(var r in Object(e))wtt.call(e,r)&&r!="constructor"&&t.push(r);return t}var _tt=xtt,Ett=Iee,Ctt=zee;function Ott(e){return e!=null&&Ctt(e.length)&&!Ett(e)}var ktt=Ott,Rtt=ltt,Stt=_tt,Ttt=ktt;function Ptt(e){return Ttt(e)?Rtt(e):Stt(e)}var Mtt=Ptt,Att=DJe,jtt=KJe,Itt=Mtt;function Ltt(e){return Att(e,Itt,jtt)}var $tt=Ltt,aF=$tt,Ntt=1,Dtt=Object.prototype,Ftt=Dtt.hasOwnProperty;function ztt(e,t,r,n,o,a){var i=r&Ntt,s=aF(e),l=s.length,c=aF(t),u=c.length;if(l!=u&&!i)return!1;for(var p=l;p--;){var h=s[p];if(!(i?h in t:Ftt.call(t,h)))return!1}var g=a.get(e),x=a.get(t);if(g&&x)return g==t&&x==e;var y=!0;a.set(e,t),a.set(t,e);for(var b=i;++pme.offsetTop+ke*1.5&&be.insert(` -`)}return be}function Pe(me,be){var ke={},je=me.style||{};return je.fontStyle&&Q(me).fontStyle==="italic"&&(ke.italic=!0),je.fontWeight&&(Q(me).fontWeight.startsWith("bold")||parseInt(Q(me).fontWeight)>=700)&&(ke.bold=!0),Object.keys(ke).length>0&&(be=G(be,ke)),parseFloat(je.textIndent||0)>0&&(be=new p.default().insert(" ").concat(be)),be}function Ie(me,be){var ke=me.data;if(me.parentNode.tagName==="O:P")return be.insert(ke.trim());if(ke.trim().length===0&&me.parentNode.classList.contains("ql-clipboard"))return be;if(!Q(me.parentNode).whiteSpace.startsWith("pre")){var je=function(xe,_e){return _e=_e.replace(/[^\u00a0]/g,""),_e.length<1&&xe?" ":_e};ke=ke.replace(/\r\n/g," ").replace(/\n/g," "),ke=ke.replace(/\s\s+/g,je.bind(je,!0)),(me.previousSibling==null&&U(me.parentNode)||me.previousSibling!=null&&U(me.previousSibling))&&(ke=ke.replace(/^\s+/,je.bind(je,!1))),(me.nextSibling==null&&U(me.parentNode)||me.nextSibling!=null&&U(me.nextSibling))&&(ke=ke.replace(/\s+$/,je.bind(je,!1)))}return be.insert(ke)}n.default=W,n.matchAttributor=ee,n.matchBlot=se,n.matchNewline=Te,n.matchSpacing=Se,n.matchText=Ie},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function x(y,b){for(var m=0;m '},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function x(y,b){for(var m=0;mg.right&&(y=g.right-x.right,this.root.style.left=p+y+"px"),x.leftg.bottom){var b=x.bottom-x.top,m=u.bottom-u.top+b;this.root.style.top=h-m+"px",this.root.classList.add("ql-flip")}return y}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l}();n.default=s},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function R(T,P){var j=[],L=!0,D=!1,B=void 0;try{for(var V=T[Symbol.iterator](),q;!(L=(q=V.next()).done)&&(j.push(q.value),!(P&&j.length===P));L=!0);}catch(z){D=!0,B=z}finally{try{!L&&V.return&&V.return()}finally{if(D)throw B}}return j}return function(T,P){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return R(T,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function R(T,P,j){T===null&&(T=Function.prototype);var L=Object.getOwnPropertyDescriptor(T,P);if(L===void 0){var D=Object.getPrototypeOf(T);return D===null?void 0:R(D,P,j)}else{if("value"in L)return L.value;var B=L.get;return B===void 0?void 0:B.call(j)}},s=function(){function R(T,P){for(var j=0;j','','',''].join(""),n.default=k},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0});var a=o(29),i=le(a),s=o(36),l=o(38),c=o(64),u=o(65),p=le(u),h=o(66),g=le(h),x=o(67),y=le(x),b=o(37),m=o(26),f=o(39),v=o(40),d=o(56),w=le(d),_=o(68),E=le(_),k=o(27),S=le(k),R=o(69),T=le(R),P=o(70),j=le(P),L=o(71),D=le(L),B=o(72),V=le(B),q=o(73),z=le(q),F=o(13),N=le(F),W=o(74),G=le(W),Q=o(75),Z=le(Q),U=o(57),J=le(U),ae=o(41),ee=le(ae),se=o(28),ue=le(se),we=o(59),Oe=le(we),Te=o(60),Se=le(Te),Pe=o(61),Ie=le(Pe),me=o(108),be=le(me),ke=o(62),je=le(ke);function le(xe){return xe&&xe.__esModule?xe:{default:xe}}i.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":s.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":f.FontClass,"attributors/class/size":v.SizeClass,"attributors/style/align":s.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":f.FontStyle,"attributors/style/size":v.SizeStyle},!0),i.default.register({"formats/align":s.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":c.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":f.FontClass,"formats/size":v.SizeClass,"formats/blockquote":p.default,"formats/code-block":N.default,"formats/header":g.default,"formats/list":y.default,"formats/bold":w.default,"formats/code":F.Code,"formats/italic":E.default,"formats/link":S.default,"formats/script":T.default,"formats/strike":j.default,"formats/underline":D.default,"formats/image":V.default,"formats/video":z.default,"formats/list/item":x.ListItem,"modules/formula":G.default,"modules/syntax":Z.default,"modules/toolbar":J.default,"themes/bubble":be.default,"themes/snow":je.default,"ui/icons":ee.default,"ui/picker":ue.default,"ui/icon-picker":Se.default,"ui/color-picker":Oe.default,"ui/tooltip":Ie.default},!0),n.default=i.default},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.IndentClass=void 0;var a=function(){function y(b,m){for(var f=0;f0&&this.children.tail.format(E,k)}},{key:"formats",value:function(){return x({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(E,k){if(E instanceof f)i(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,E,k);else{var S=k==null?this.length():k.offset(this),R=this.split(S);R.parent.insertBefore(E,R)}}},{key:"optimize",value:function(E){i(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,E);var k=this.next;k!=null&&k.prev===this&&k.statics.blotName===this.statics.blotName&&k.domNode.tagName===this.domNode.tagName&&k.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(k.moveChildren(this),k.remove())}},{key:"replace",value:function(E){if(E.statics.blotName!==this.statics.blotName){var k=l.default.create(this.statics.defaultChild);E.moveChildren(k),this.appendChild(k)}i(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replace",this).call(this,E)}}]),w}(h.default);v.blotName="list",v.scope=l.default.Scope.BLOCK_BLOT,v.tagName=["OL","UL"],v.defaultChild="list-item",v.allowedChildren=[f],n.ListItem=f,n.default=v},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0});var a=o(56),i=s(a);function s(h){return h&&h.__esModule?h:{default:h}}function l(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")}function c(h,g){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:h}function u(h,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);h.prototype=Object.create(g&&g.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(h,g):h.__proto__=g)}var p=function(h){u(g,h);function g(){return l(this,g),c(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g}(i.default);p.blotName="italic",p.tagName=["EM","I"],n.default=p},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function x(y,b){for(var m=0;m-1?d?this.domNode.setAttribute(v,d):this.domNode.removeAttribute(v):i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,v,d)}}],[{key:"create",value:function(v){var d=i(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,v);return typeof v=="string"&&d.setAttribute("src",this.sanitize(v)),d}},{key:"formats",value:function(v){return x.reduce(function(d,w){return v.hasAttribute(w)&&(d[w]=v.getAttribute(w)),d},{})}},{key:"match",value:function(v){return/\.(jpe?g|gif|png)$/.test(v)||/^data:image\/.+;base64/.test(v)}},{key:"sanitize",value:function(v){return(0,c.sanitize)(v,["http","https","data"])?v:"//:0"}},{key:"value",value:function(v){return v.getAttribute("src")}}]),m}(l.default.Embed);y.blotName="image",y.tagName="IMG",n.default=y},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function b(m,f){for(var v=0;v-1?d?this.domNode.setAttribute(v,d):this.domNode.removeAttribute(v):i(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,v,d)}}],[{key:"create",value:function(v){var d=i(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,v);return d.setAttribute("frameborder","0"),d.setAttribute("allowfullscreen",!0),d.setAttribute("src",this.sanitize(v)),d}},{key:"formats",value:function(v){return x.reduce(function(d,w){return v.hasAttribute(w)&&(d[w]=v.getAttribute(w)),d},{})}},{key:"sanitize",value:function(v){return c.default.sanitize(v)}},{key:"value",value:function(v){return v.getAttribute("src")}}]),m}(s.BlockEmbed);y.blotName="video",y.className="ql-video",y.tagName="IFRAME",n.default=y},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.FormulaBlot=void 0;var a=function(){function v(d,w){for(var _=0;_0||this.cachedText==null)&&(this.domNode.innerHTML=S(R),this.domNode.normalize(),this.attach()),this.cachedText=R)}}]),E}(x.default);v.className="ql-syntax";var d=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),w=function(_){f(E,_),a(E,null,[{key:"register",value:function(){u.default.register(d,!0),u.default.register(v,!0)}}]);function E(k,S){b(this,E);var R=m(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,k,S));if(typeof R.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var T=null;return R.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(T),T=setTimeout(function(){R.highlight(),T=null},R.options.interval)}),R.highlight(),R}return a(E,[{key:"highlight",value:function(){var S=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var R=this.quill.getSelection();this.quill.scroll.descendants(v).forEach(function(T){T.highlight(S.options.highlight)}),this.quill.update(u.default.sources.SILENT),R!=null&&this.quill.setSelection(R,u.default.sources.SILENT)}}}]),E}(h.default);w.DEFAULTS={highlight:function(){return window.hljs==null?null:function(_){var E=window.hljs.highlightAuto(_);return E.value}}(),interval:1e3},n.CodeBlock=v,n.CodeToken=d,n.default=w},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n){r.exports=' '},function(r,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BubbleTooltip=void 0;var a=function E(k,S,R){k===null&&(k=Function.prototype);var T=Object.getOwnPropertyDescriptor(k,S);if(T===void 0){var P=Object.getPrototypeOf(k);return P===null?void 0:E(P,S,R)}else{if("value"in T)return T.value;var j=T.get;return j===void 0?void 0:j.call(R)}},i=function(){function E(k,S){for(var R=0;R0&&D===u.default.sources.USER){T.show(),T.root.style.left="0px",T.root.style.width="",T.root.style.width=T.root.offsetWidth+"px";var B=T.quill.getLines(j.index,j.length);if(B.length===1)T.position(T.quill.getBounds(j));else{var V=B[B.length-1],q=T.quill.getIndex(V),z=Math.min(V.length()-1,j.index+j.length-q),F=T.quill.getBounds(new g.Range(q,z));T.position(F)}}else document.activeElement!==T.textbox&&T.quill.hasFocus()&&T.hide()}),T}return i(k,[{key:"listen",value:function(){var R=this;a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){R.root.classList.remove("ql-editing")}),this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!R.root.classList.contains("ql-hidden")){var T=R.quill.getSelection();T!=null&&R.position(R.quill.getBounds(T))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(R){var T=a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"position",this).call(this,R),P=this.root.querySelector(".ql-tooltip-arrow");if(P.style.marginLeft="",T===0)return T;P.style.marginLeft=-1*T-P.offsetWidth/2+"px"}}]),k}(p.BaseTooltip);_.TEMPLATE=['','
','','',"
"].join(""),n.BubbleTooltip=_,n.default=w},function(r,n,o){r.exports=o(63)}]).default})})(Uee);var _rt=Uee.exports,Ert=ho&&ho.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)o.hasOwnProperty(a)&&(n[a]=o[a])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),w_=ho&&ho.__assign||function(){return w_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1)throw new Error("The Quill editing area can only be composed of a single React element.");if(Ia.default.Children.count(r.children)){var o=Ia.default.Children.only(r.children);if(((n=o)===null||n===void 0?void 0:n.type)==="textarea")throw new Error("Quill does not support editing on a