diff --git a/.gitignore b/.gitignore index dd81a36..52e47bc 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,4 @@ .venv .web __pycache__/ -assets/external/ \ No newline at end of file +assets/external/ diff --git a/README.md b/README.md index 917f37c..d042881 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Calendario de aDEViento Web [![Python](https://img.shields.io/badge/Python-3.11+-yellow?style=for-the-badge&logo=python&logoColor=white&labelColor=101010)](https://python.org) -[![Reflex](https://img.shields.io/badge/Reflex-0.3.6+-5646ED?style=for-the-badge&logo=python&logoColor=white&labelColor=101010)](https://reflex.dev) +[![Reflex](https://img.shields.io/badge/Reflex-0.6.4+-5646ED?style=for-the-badge&logo=python&logoColor=white&labelColor=101010)](https://reflex.dev) [![NES.css](https://img.shields.io/badge/NES.css-2.3.0-007bff?style=for-the-badge&logo=css3&logoColor=white&labelColor=101010)](https://nostalgic-css.github.io/NES.css) [![Vercel](https://img.shields.io/badge/Vercel-static-gray?style=for-the-badge&logo=vercel&logoColor=white&labelColor=101010)](https://vercel.com) diff --git a/adeviento_web/adeviento_web.py b/adeviento_web/adeviento_web.py index e693ff5..7e46770 100644 --- a/adeviento_web/adeviento_web.py +++ b/adeviento_web/adeviento_web.py @@ -20,18 +20,17 @@ def index() -> rx.Component: rx.script("document.documentElement.lang='es'"), rx.script(src="/js/snow.js"), navbar(), - rx.center( - rx.vstack( - header(), - calendar(), - partners(), - instructions(), - author(), - footer(), - github(), - width="100%", - spacing=Size.VERY_BIG.value - ) + rx.vstack( + header(), + calendar(), + partners(), + instructions(), + author(), + footer(), + github(), + align="center", + width="100%", + spacing=Size.VERY_BIG.value ) ) @@ -67,5 +66,3 @@ def index() -> rx.Component: {"name": "twitter:site", "content": "@mouredev"} ] ) - -app.compile() diff --git a/adeviento_web/components/button.py b/adeviento_web/components/button.py index 0ab44a3..dc40717 100644 --- a/adeviento_web/components/button.py +++ b/adeviento_web/components/button.py @@ -2,11 +2,11 @@ def button(text: str, url: str) -> rx.Component: - return rx.link( - rx.button( - text, - class_name="nes-btn is-error" - ), - href=url, - is_external=True + return rx.el.button( + text, + class_name="nes-btn is-error", + on_click=rx.redirect( + url, + external=True + ) ) diff --git a/adeviento_web/components/github.py b/adeviento_web/components/github.py index dcb98c4..dfb4f11 100644 --- a/adeviento_web/components/github.py +++ b/adeviento_web/components/github.py @@ -8,10 +8,10 @@ def github() -> rx.Component: rx.vstack( rx.vstack( - rx.span( + rx.el.span( "Proyecto" ), - rx.span( + rx.el.span( "en GitHub" ), align_items="start", @@ -19,7 +19,7 @@ def github() -> rx.Component: margin_bottom=Size.BIG.value ), rx.box( - rx.span( + rx.el.span( constants.VERSION, class_name="is-error" ), diff --git a/adeviento_web/components/header_text.py b/adeviento_web/components/header_text.py index bb1b1bc..cc914fa 100644 --- a/adeviento_web/components/header_text.py +++ b/adeviento_web/components/header_text.py @@ -13,5 +13,6 @@ def header_text(icon: str, text: str, dark=True) -> rx.Component: color=TextColor.ACCENT.value if dark else TextColor.SECONDARY.value ), spacing=Size.DEFAULT.value, - padding_bottom=Size.BUTTON.value + padding_bottom=Size.BUTTON.value, + align="center" ) diff --git a/adeviento_web/components/link_icon.py b/adeviento_web/components/link_icon.py index 55851d4..552835d 100644 --- a/adeviento_web/components/link_icon.py +++ b/adeviento_web/components/link_icon.py @@ -2,9 +2,11 @@ def link_icon(icon: str, url: str) -> rx.Component: - return rx.link( + return rx.el.i( "", class_name=f"nes-icon {icon} is-medium", - href=url, - is_external=True + on_click=rx.redirect( + url, + external=True + ) ) diff --git a/adeviento_web/constants.py b/adeviento_web/constants.py index 402ccc5..143b4f7 100644 --- a/adeviento_web/constants.py +++ b/adeviento_web/constants.py @@ -1,4 +1,4 @@ -VERSION = "2.1.0" +VERSION = "2.2.0" MOUREDEV_URL = "https://moure.dev" diff --git a/adeviento_web/styles/colors.py b/adeviento_web/styles/colors.py index fc030b9..07b7062 100644 --- a/adeviento_web/styles/colors.py +++ b/adeviento_web/styles/colors.py @@ -4,7 +4,7 @@ class Color(Enum): ACCENT = "#EA5940" PRIMARY = "#212529" - SECONDARY = "#D3D3D3", + SECONDARY = "#D3D3D3" TERTIARY = "#37946E" diff --git a/adeviento_web/styles/styles.py b/adeviento_web/styles/styles.py index 49e4dd8..4a61d57 100644 --- a/adeviento_web/styles/styles.py +++ b/adeviento_web/styles/styles.py @@ -26,21 +26,21 @@ class Size(Enum): "font_family": Font.DEFAULT.value, "color": TextColor.PRIMARY.value, "background": Color.PRIMARY.value, - rx.Heading: { + rx.heading: { "font_family": Font.DEFAULT.value, "color": TextColor.ACCENT.value }, - rx.Link: { + rx.link: { "text_decoration": "none", "_hover": { "color": TextColor.ACCENT.value, "text_decoration": "none" } }, - rx.Span: { + rx.el.span: { "font_size": Size.MEDIUM.value }, - rx.Button: { + rx.button: { "margin_bottom": Size.DEFAULT.value, "height": Size.BUTTON.value, "color": f"{TextColor.SECONDARY.value} !important", diff --git a/adeviento_web/views/author.py b/adeviento_web/views/author.py index 6f8d952..0e14581 100644 --- a/adeviento_web/views/author.py +++ b/adeviento_web/views/author.py @@ -14,24 +14,25 @@ def author() -> rx.Component: "Hola, mi nombre es Brais Moure" ), rx.flex( - rx.avatar( - name="Brais Moure", - size="2xl", + rx.image( src="avatar.jpg", + width="128px", + height="128px", bg=Color.PRIMARY.value, padding="2px", - border="4px", - border_color=Color.SECONDARY.value, + border=f"4px solid {str(Color.SECONDARY.value)}", + border_radius="50%", margin_right=Size.SMALL.value, margin_bottom=Size.SMALL.value ), rx.vstack( - rx.span( - f"Soy ingeniero de software desde hace más de {_experience()} años." + rx.el.span( + f"Soy ingeniero de software desde hace más de { + _experience()} años." ), - rx.span( + rx.el.span( "En 2018 comencé a divulgar contenido sobre programación y desarrollo de software en redes sociales como ", - rx.span( + rx.el.span( "@mouredev", color=TextColor.ACCENT.value, font_size=Size.DEFAULT.value @@ -44,14 +45,14 @@ def author() -> rx.Component: ), align_items="start", spacing=Size.BIG.value, - direction=styles.FLEX_DIRECTION + flex_direction=styles.FLEX_DIRECTION ), style=styles.max_width_style ) def _author_buttons() -> rx.Component: - return rx.stack( + return rx.flex( button( "YouTube", constants.YOUTUBE_URL @@ -65,7 +66,7 @@ def _author_buttons() -> rx.Component: constants.DISCORD_URL ), align_items="start", - direction=styles.FLEX_DIRECTION + flex_direction=styles.FLEX_DIRECTION ) diff --git a/adeviento_web/views/calendar.py b/adeviento_web/views/calendar.py index b7e4d03..569c947 100644 --- a/adeviento_web/views/calendar.py +++ b/adeviento_web/views/calendar.py @@ -37,10 +37,10 @@ def calendar() -> rx.Component: # "Recordar", # constants.DISCORD_EVENT_URL # ), - rx.span( + rx.el.span( "• Los regalos son sorpresa, permanecerán ocultos hasta el día de su publicación. No olvides pasarte por aquí cada día para descubrir un nuevo sorteo." ), - rx.span( + rx.el.span( "• Puedes seleccionar cada regalo para conocer a los ganadores una vez se haya publicado el nuevo sorteo (aparecerá en rojo)." ), class_name="nes-container is-dark", @@ -95,7 +95,7 @@ def calendar() -> rx.Component: # class_name="nes-container is-dark with-title", # align_items="start" # ), - rx.responsive_grid( + rx.grid( *[ day( number + 1, @@ -110,7 +110,14 @@ def calendar() -> rx.Component: day(number) for _, number in enumerate(range(_current_day + 2, 25)) ], - columns=[3, 3, 4, 5, 6], + columns=rx.breakpoints( + initial="2", + xs="3", + sm="4", + md="5", + lg="6", + xl="6" + ), spacing=Size.DEFAULT.value, width="100%", padding_y=Size.BIG.value diff --git a/adeviento_web/views/footer.py b/adeviento_web/views/footer.py index 7269ee1..adfeb95 100644 --- a/adeviento_web/views/footer.py +++ b/adeviento_web/views/footer.py @@ -15,7 +15,7 @@ def footer() -> rx.Component: ), rx.link( "Creado con ", - rx.box(class_name="nes-icon is-small heart"), + rx.el.i(class_name="nes-icon is-small heart"), " (y gracias a ti) por MoureDev by Brais Moure", href=constants.MOUREDEV_URL, is_external=True, diff --git a/adeviento_web/views/header.py b/adeviento_web/views/header.py index 79159fa..56e2f30 100644 --- a/adeviento_web/views/header.py +++ b/adeviento_web/views/header.py @@ -26,19 +26,19 @@ def header() -> rx.Component: rx.text("Del 1 al 24 de diciembre."), class_name="nes-balloon from-left is-dark" ), - rx.span( + rx.el.span( "Por cuarto año, ¡aquí está el calendario de adviento sorpresa de nuestra ", - rx.span( + rx.el.span( "comunidad de developers", color=TextColor.ACCENT.value, font_size=Size.DEFAULT.value ), "!" ), - rx.span( + rx.el.span( "Una actividad en la que cada día sortearé un regalo relacionado con programación y desarrollo de software (libros, cursos…)." ), - rx.span( + rx.el.span( "Su finalidad es ayudar a compartir conocimiento y fomentar el aprendizaje en comunidad." ), button( @@ -53,7 +53,7 @@ def header() -> rx.Component: ), align_items="start" ), - direction=styles.FLEX_DIRECTION + flex_direction=styles.FLEX_DIRECTION ), padding_top=Size.VERY_BIG.value, style=styles.max_width_style diff --git a/adeviento_web/views/instructions.py b/adeviento_web/views/instructions.py index c1c4684..522761b 100644 --- a/adeviento_web/views/instructions.py +++ b/adeviento_web/views/instructions.py @@ -13,18 +13,23 @@ def instructions() -> rx.Component: class_name="title", color=TextColor.ACCENT.value ), - rx.span( - "• Del 1 al 24 de diciembre descubriré cada día un nuevo regalo en el calendario."), - rx.span("• Puedes participar desde cualquier parte del mundo."), - rx.span("• Sólo tendrás que hacer Retweet a la publicación que enlazaré desde esta web. Tu cuenta de Twitter/X tiene que ser pública."), + rx.el.span( + "• Del 1 al 24 de diciembre descubriré cada día un nuevo regalo en el calendario." + ), + rx.el.span( + "• Puedes participar desde cualquier parte del mundo." + ), + rx.el.span( + "• Sólo tendrás que hacer Retweet a la publicación que enlazaré desde esta web. Tu cuenta de Twitter/X tiene que ser pública." + ), button( "Twitter/X", constants.TWITTER_URL ), - rx.span( + rx.el.span( "• Al día siguiente realizaré el sorteo de forma pública y compartiré el ganador en la web y en Twitter/X." ), - rx.span( + rx.el.span( "• ¡Vuelta a empezar! Publicaré un nuevo regalo y comenzará de nuevo el proceso." ), class_name="nes-container is-dark with-title", diff --git a/adeviento_web/views/navbar.py b/adeviento_web/views/navbar.py index e9b12f2..076808d 100644 --- a/adeviento_web/views/navbar.py +++ b/adeviento_web/views/navbar.py @@ -29,6 +29,7 @@ def navbar() -> rx.Component: "github", constants.GITHUB_URL ), + align="center", width="100%" ), bg=Color.PRIMARY.value, diff --git a/adeviento_web/views/partners.py b/adeviento_web/views/partners.py index ff8a4a5..e66aed0 100644 --- a/adeviento_web/views/partners.py +++ b/adeviento_web/views/partners.py @@ -12,7 +12,7 @@ def partners() -> rx.Component: "Con la ayuda de", False ), - rx.responsive_grid( + rx.grid( _partner_link( "elgato.png", "https://e.lga.to/MoureDev", @@ -33,13 +33,21 @@ def partners() -> rx.Component: "https://mouredev.pro", "mouredev pro" ), - columns=[2, 2, 4, 4], + columns=rx.breakpoints( + initial="2", + xs="2", + sm="4", + md="4", + lg="4", + xl="4" + ), spacing=Size.VERY_BIG.value ), padding_y=Size.VERY_BIG.value, style=styles.max_width_style ), bg=Color.ACCENT.value, + align="center", width="100%" ) diff --git a/public/404.html b/public/404.html index fcd278b..5600639 100644 --- a/public/404.html +++ b/public/404.html @@ -1,22 +1 @@ -404 - Not Found
\ No newline at end of file +404 - Not Found
\ No newline at end of file diff --git a/public/404/index.html b/public/404/index.html index fcd278b..5600639 100644 --- a/public/404/index.html +++ b/public/404/index.html @@ -1,22 +1 @@ -404 - Not Found
\ No newline at end of file +404 - Not Found
\ No newline at end of file diff --git a/public/_next/static/S2XYMDgCHReyCRSLC0Iye/_buildManifest.js b/public/_next/static/S2XYMDgCHReyCRSLC0Iye/_buildManifest.js deleted file mode 100644 index bcf7f0f..0000000 --- a/public/_next/static/S2XYMDgCHReyCRSLC0Iye/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(e){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[e,"static/chunks/86-0d3a0c94e5aea1bd.js","static/chunks/pages/index-fe4cbf19f4680ebb.js"],"/404":[e,"static/chunks/pages/404-181fe5cc285410b7.js"],"/_error":["static/chunks/pages/_error-ee5b5fb91d29d86f.js"],sortedPages:["/","/404","/_app","/_error"]}}("static/chunks/395-73b0020dd85bebeb.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/public/_next/static/T16C-hRtD-1WimmMH9Q6S/_buildManifest.js b/public/_next/static/T16C-hRtD-1WimmMH9Q6S/_buildManifest.js new file mode 100644 index 0000000..31f7c35 --- /dev/null +++ b/public/_next/static/T16C-hRtD-1WimmMH9Q6S/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[s,"static/chunks/pages/index-2b84bf8ff9277386.js"],"/404":[s,"static/chunks/pages/404-db12dd41ea12cc8e.js"],"/_error":["static/chunks/pages/_error-7a92967bea80186d.js"],sortedPages:["/","/404","/_app","/_error"]}}("static/chunks/346-2c50c61a3d9c062f.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/public/_next/static/S2XYMDgCHReyCRSLC0Iye/_ssgManifest.js b/public/_next/static/T16C-hRtD-1WimmMH9Q6S/_ssgManifest.js similarity index 100% rename from public/_next/static/S2XYMDgCHReyCRSLC0Iye/_ssgManifest.js rename to public/_next/static/T16C-hRtD-1WimmMH9Q6S/_ssgManifest.js diff --git a/public/_next/static/chunks/346-2c50c61a3d9c062f.js b/public/_next/static/chunks/346-2c50c61a3d9c062f.js new file mode 100644 index 0000000..063d42e --- /dev/null +++ b/public/_next/static/chunks/346-2c50c61a3d9c062f.js @@ -0,0 +1,2 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[346],{2377:function(t,e,a){"use strict";a.d(e,{Z:function(){return s}});var r=a(7294),n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=((t,e)=>{let a=(0,r.forwardRef)((a,s)=>{let{color:i="currentColor",size:l=24,strokeWidth:d=2,absoluteStrokeWidth:c,className:u="",children:h,...m}=a;return(0,r.createElement)("svg",{ref:s,...n,width:l,height:l,stroke:i,strokeWidth:c?24*Number(d)/Number(l):d,className:["lucide","lucide-".concat(o(t)),u].join(" "),...m},[...e.map(t=>{let[e,a]=t;return(0,r.createElement)(e,a)}),...Array.isArray(h)?h:[h]])});return a.displayName="".concat(t),a})("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},9008:function(t,e,a){t.exports=a(3867)},2729:function(t,e,a){"use strict";function r(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}a.d(e,{_:function(){return r}})},4712:function(t,e,a){"use strict";a.d(e,{Am:function(){return g},x7:function(){return x}});var r=a(7294),n=a(3935),o=t=>{switch(t){case"success":return l;case"info":return c;case"warning":return d;case"error":return u;default:return null}},s=Array(12).fill(0),i=({visible:t})=>r.createElement("div",{className:"sonner-loading-wrapper","data-visible":t},r.createElement("div",{className:"sonner-spinner"},s.map((t,e)=>r.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${e}`})))),l=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),d=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),c=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),u=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),h=()=>{let[t,e]=r.useState(document.hidden);return r.useEffect(()=>{let t=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",t),()=>window.removeEventListener("visibilitychange",t)},[]),t},m=1,f=new class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:a,...r}=t,n="number"==typeof(null==t?void 0:t.id)||(null==(e=t.id)?void 0:e.length)>0?t.id:m++,o=this.toasts.find(t=>t.id===n),s=void 0===t.dismissible||t.dismissible;return o?this.toasts=this.toasts.map(e=>e.id===n?(this.publish({...e,...t,id:n,title:a}),{...e,...t,id:n,dismissible:s,title:a}):e):this.addToast({title:a,...r,dismissible:s,id:n}),n},this.dismiss=t=>(t||this.toasts.forEach(t=>{this.subscribers.forEach(e=>e({id:t.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{let a;if(!e)return;void 0!==e.loading&&(a=this.create({...e,promise:t,type:"loading",message:e.loading,description:"function"!=typeof e.description?e.description:void 0}));let r=t instanceof Promise?t:t(),n=void 0!==a;return r.then(async t=>{if(p(t)&&!t.ok){n=!1;let r="function"==typeof e.error?await e.error(`HTTP error! status: ${t.status}`):e.error,o="function"==typeof e.description?await e.description(`HTTP error! status: ${t.status}`):e.description;this.create({id:a,type:"error",message:r,description:o})}else if(void 0!==e.success){n=!1;let r="function"==typeof e.success?await e.success(t):e.success,o="function"==typeof e.description?await e.description(t):e.description;this.create({id:a,type:"success",message:r,description:o})}}).catch(async t=>{if(void 0!==e.error){n=!1;let r="function"==typeof e.error?await e.error(t):e.error,o="function"==typeof e.description?await e.description(t):e.description;this.create({id:a,type:"error",message:r,description:o})}}).finally(()=>{var t;n&&(this.dismiss(a),a=void 0),null==(t=e.finally)||t.call(e)}),a},this.custom=(t,e)=>{let a=(null==e?void 0:e.id)||m++;return this.create({jsx:t(a),id:a,...e}),a},this.subscribers=[],this.toasts=[]}},p=t=>t&&"object"==typeof t&&"ok"in t&&"boolean"==typeof t.ok&&"status"in t&&"number"==typeof t.status,g=Object.assign((t,e)=>{let a=(null==e?void 0:e.id)||m++;return f.addToast({title:t,...e,id:a}),a},{success:f.success,info:f.info,warning:f.warning,error:f.error,custom:f.custom,message:f.message,promise:f.promise,dismiss:f.dismiss,loading:f.loading},{getHistory:()=>f.toasts});function v(t){return void 0!==t.label}function b(...t){return t.filter(Boolean).join(" ")}!function(t,{insertAt:e}={}){if(!t||"undefined"==typeof document)return;let a=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===e&&a.firstChild?a.insertBefore(r,a.firstChild):a.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} +`);var y=t=>{var e,a,n,s,l,d,c,u,m,f;let{invert:p,toast:g,unstyled:b,interacting:y,setHeights:w,visibleToasts:x,heights:k,index:E,toasts:N,expanded:B,removeToast:C,defaultRichColors:M,closeButton:S,style:T,cancelButtonStyle:z,actionButtonStyle:R,className:j="",descriptionClassName:I="",duration:Y,position:L,gap:P,loadingIcon:A,expandByDefault:H,classNames:$,icons:D,closeButtonAriaLabel:O="Close toast",pauseWhenPageIsHidden:W,cn:U}=t,[V,_]=r.useState(!1),[F,K]=r.useState(!1),[X,Z]=r.useState(!1),[q,G]=r.useState(!1),[J,Q]=r.useState(0),[tt,te]=r.useState(0),ta=r.useRef(null),tr=r.useRef(null),tn=0===E,to=E+1<=x,ts=g.type,ti=!1!==g.dismissible,tl=g.className||"",td=g.descriptionClassName||"",tc=r.useMemo(()=>k.findIndex(t=>t.toastId===g.id)||0,[k,g.id]),tu=r.useMemo(()=>{var t;return null!=(t=g.closeButton)?t:S},[g.closeButton,S]),th=r.useMemo(()=>g.duration||Y||4e3,[g.duration,Y]),tm=r.useRef(0),tf=r.useRef(0),tp=r.useRef(0),tg=r.useRef(null),[tv,tb]=L.split("-"),ty=r.useMemo(()=>k.reduce((t,e,a)=>a>=tc?t:t+e.height,0),[k,tc]),tw=h(),tx=g.invert||p,tk="loading"===ts;tf.current=r.useMemo(()=>tc*P+ty,[tc,ty]),r.useEffect(()=>{_(!0)},[]),r.useLayoutEffect(()=>{if(!V)return;let t=tr.current,e=t.style.height;t.style.height="auto";let a=t.getBoundingClientRect().height;t.style.height=e,te(a),w(t=>t.find(t=>t.toastId===g.id)?t.map(t=>t.toastId===g.id?{...t,height:a}:t):[{toastId:g.id,height:a,position:g.position},...t])},[V,g.title,g.description,w,g.id]);let tE=r.useCallback(()=>{K(!0),Q(tf.current),w(t=>t.filter(t=>t.toastId!==g.id)),setTimeout(()=>{C(g)},200)},[g,C,w,tf]);return r.useEffect(()=>{if(g.promise&&"loading"===ts||g.duration===1/0||"loading"===g.type)return;let t,e=th;return B||y||W&&tw?(()=>{if(tp.current{var t;null==(t=g.onAutoClose)||t.call(g,g),tE()},e)),()=>clearTimeout(t)},[B,y,H,g,th,tE,g.promise,ts,W,tw]),r.useEffect(()=>{let t=tr.current;if(t){let e=t.getBoundingClientRect().height;return te(e),w(t=>[{toastId:g.id,height:e,position:g.position},...t]),()=>w(t=>t.filter(t=>t.toastId!==g.id))}},[w,g.id]),r.useEffect(()=>{g.delete&&tE()},[tE,g.delete]),r.createElement("li",{"aria-live":g.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:tr,className:U(j,tl,null==$?void 0:$.toast,null==(e=null==g?void 0:g.classNames)?void 0:e.toast,null==$?void 0:$.default,null==$?void 0:$[ts],null==(a=null==g?void 0:g.classNames)?void 0:a[ts]),"data-sonner-toast":"","data-rich-colors":null!=(n=g.richColors)?n:M,"data-styled":!(g.jsx||g.unstyled||b),"data-mounted":V,"data-promise":!!g.promise,"data-removed":F,"data-visible":to,"data-y-position":tv,"data-x-position":tb,"data-index":E,"data-front":tn,"data-swiping":X,"data-dismissible":ti,"data-type":ts,"data-invert":tx,"data-swipe-out":q,"data-expanded":!!(B||H&&V),style:{"--index":E,"--toasts-before":E,"--z-index":N.length-E,"--offset":`${F?J:tf.current}px`,"--initial-height":H?"auto":`${tt}px`,...T,...g.style},onPointerDown:t=>{tk||!ti||(ta.current=new Date,Q(tf.current),t.target.setPointerCapture(t.pointerId),"BUTTON"!==t.target.tagName&&(Z(!0),tg.current={x:t.clientX,y:t.clientY}))},onPointerUp:()=>{var t,e,a,r;if(q||!ti)return;tg.current=null;let n=Number((null==(t=tr.current)?void 0:t.style.getPropertyValue("--swipe-amount").replace("px",""))||0),o=new Date().getTime()-(null==(e=ta.current)?void 0:e.getTime());if(Math.abs(n)>=20||Math.abs(n)/o>.11){Q(tf.current),null==(a=g.onDismiss)||a.call(g,g),tE(),G(!0);return}null==(r=tr.current)||r.style.setProperty("--swipe-amount","0px"),Z(!1)},onPointerMove:t=>{var e;if(!tg.current||!ti)return;let a=t.clientY-tg.current.y,r=t.clientX-tg.current.x,n=("top"===tv?Math.min:Math.max)(0,a),o="touch"===t.pointerType?10:2;Math.abs(n)>o?null==(e=tr.current)||e.style.setProperty("--swipe-amount",`${a}px`):Math.abs(r)>o&&(tg.current=null)}},tu&&!g.jsx?r.createElement("button",{"aria-label":O,"data-disabled":tk,"data-close-button":!0,onClick:tk||!ti?()=>{}:()=>{var t;tE(),null==(t=g.onDismiss)||t.call(g,g)},className:U(null==$?void 0:$.closeButton,null==(s=null==g?void 0:g.classNames)?void 0:s.closeButton)},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},r.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,g.jsx||r.isValidElement(g.title)?g.jsx||g.title:r.createElement(r.Fragment,null,ts||g.icon||g.promise?r.createElement("div",{"data-icon":"",className:U(null==$?void 0:$.icon,null==(l=null==g?void 0:g.classNames)?void 0:l.icon)},g.promise||"loading"===g.type&&!g.icon?g.icon||(null!=D&&D.loading?r.createElement("div",{className:"sonner-loader","data-visible":"loading"===ts},D.loading):A?r.createElement("div",{className:"sonner-loader","data-visible":"loading"===ts},A):r.createElement(i,{visible:"loading"===ts})):null,"loading"!==g.type?g.icon||(null==D?void 0:D[ts])||o(ts):null):null,r.createElement("div",{"data-content":"",className:U(null==$?void 0:$.content,null==(d=null==g?void 0:g.classNames)?void 0:d.content)},r.createElement("div",{"data-title":"",className:U(null==$?void 0:$.title,null==(c=null==g?void 0:g.classNames)?void 0:c.title)},g.title),g.description?r.createElement("div",{"data-description":"",className:U(I,td,null==$?void 0:$.description,null==(u=null==g?void 0:g.classNames)?void 0:u.description)},g.description):null),r.isValidElement(g.cancel)?g.cancel:g.cancel&&v(g.cancel)?r.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||z,onClick:t=>{var e,a;v(g.cancel)&&ti&&(null==(a=(e=g.cancel).onClick)||a.call(e,t),tE())},className:U(null==$?void 0:$.cancelButton,null==(m=null==g?void 0:g.classNames)?void 0:m.cancelButton)},g.cancel.label):null,r.isValidElement(g.action)?g.action:g.action&&v(g.action)?r.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||R,onClick:t=>{var e,a;v(g.action)&&(t.defaultPrevented||(null==(a=(e=g.action).onClick)||a.call(e,t),tE()))},className:U(null==$?void 0:$.actionButton,null==(f=null==g?void 0:g.classNames)?void 0:f.actionButton)},g.action.label):null))};function w(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let t=document.documentElement.getAttribute("dir");return"auto"!==t&&t?t:window.getComputedStyle(document.documentElement).direction}var x=t=>{let{invert:e,position:a="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:i,className:l,offset:d,theme:c="light",richColors:u,duration:h,style:m,visibleToasts:p=3,toastOptions:g,dir:v=w(),gap:x=14,loadingIcon:k,icons:E,containerAriaLabel:N="Notifications",pauseWhenPageIsHidden:B,cn:C=b}=t,[M,S]=r.useState([]),T=r.useMemo(()=>Array.from(new Set([a].concat(M.filter(t=>t.position).map(t=>t.position)))),[M,a]),[z,R]=r.useState([]),[j,I]=r.useState(!1),[Y,L]=r.useState(!1),[P,A]=r.useState("system"!==c?c:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=r.useRef(null),$=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),D=r.useRef(null),O=r.useRef(!1),W=r.useCallback(t=>{var e;null!=(e=M.find(e=>e.id===t.id))&&e.delete||f.dismiss(t.id),S(e=>e.filter(({id:e})=>e!==t.id))},[M]);return r.useEffect(()=>f.subscribe(t=>{if(t.dismiss){S(e=>e.map(e=>e.id===t.id?{...e,delete:!0}:e));return}setTimeout(()=>{n.flushSync(()=>{S(e=>{let a=e.findIndex(e=>e.id===t.id);return -1!==a?[...e.slice(0,a),{...e[a],...t},...e.slice(a+1)]:[t,...e]})})})}),[]),r.useEffect(()=>{if("system"!==c){A(c);return}"system"===c&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?A("dark"):A("light")),"undefined"!=typeof window&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:t})=>{A(t?"dark":"light")})},[c]),r.useEffect(()=>{M.length<=1&&I(!1)},[M]),r.useEffect(()=>{let t=t=>{var e,a;o.every(e=>t[e]||t.code===e)&&(I(!0),null==(e=H.current)||e.focus()),"Escape"===t.code&&(document.activeElement===H.current||null!=(a=H.current)&&a.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[o]),r.useEffect(()=>{if(H.current)return()=>{D.current&&(D.current.focus({preventScroll:!0}),D.current=null,O.current=!1)}},[H.current]),M.length?r.createElement("section",{"aria-label":`${N} ${$}`,tabIndex:-1},T.map((t,a)=>{var n;let[o,c]=t.split("-");return r.createElement("ol",{key:t,dir:"auto"===v?w():v,tabIndex:-1,ref:H,className:l,"data-sonner-toaster":!0,"data-theme":P,"data-y-position":o,"data-x-position":c,style:{"--front-toast-height":`${(null==(n=z[0])?void 0:n.height)||0}px`,"--offset":"number"==typeof d?`${d}px`:d||"32px","--width":"356px","--gap":`${x}px`,...m},onBlur:t=>{O.current&&!t.currentTarget.contains(t.relatedTarget)&&(O.current=!1,D.current&&(D.current.focus({preventScroll:!0}),D.current=null))},onFocus:t=>{t.target instanceof HTMLElement&&"false"===t.target.dataset.dismissible||O.current||(O.current=!0,D.current=t.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{Y||I(!1)},onPointerDown:t=>{t.target instanceof HTMLElement&&"false"===t.target.dataset.dismissible||L(!0)},onPointerUp:()=>L(!1)},M.filter(e=>!e.position&&0===a||e.position===t).map((a,n)=>{var o,l;return r.createElement(y,{key:a.id,icons:E,index:n,toast:a,defaultRichColors:u,duration:null!=(o=null==g?void 0:g.duration)?o:h,className:null==g?void 0:g.className,descriptionClassName:null==g?void 0:g.descriptionClassName,invert:e,visibleToasts:p,closeButton:null!=(l=null==g?void 0:g.closeButton)?l:i,interacting:Y,position:t,style:null==g?void 0:g.style,unstyled:null==g?void 0:g.unstyled,classNames:null==g?void 0:g.classNames,cancelButtonStyle:null==g?void 0:g.cancelButtonStyle,actionButtonStyle:null==g?void 0:g.actionButtonStyle,removeToast:W,toasts:M.filter(t=>t.position==a.position),heights:z.filter(t=>t.position==a.position),setHeights:R,expandByDefault:s,gap:x,loadingIcon:k,expanded:j,pauseWhenPageIsHidden:B,cn:C})}))})):null}}}]); \ No newline at end of file diff --git a/public/_next/static/chunks/395-73b0020dd85bebeb.js b/public/_next/static/chunks/395-73b0020dd85bebeb.js deleted file mode 100644 index e3d1f55..0000000 --- a/public/_next/static/chunks/395-73b0020dd85bebeb.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[395],{9008:function(e,t,n){e.exports=n(9201)},9564:function(e,t,n){"use strict";n.d(t,{x:function(){return s}});var r=n(5059),o=n(1639),a=n(3179),i=n(2504),u=n(5432);function compact(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}var c=n(5893),s=(0,r.G)(function(e,t){let n=(0,o.mq)("Text",e),{className:r,align:s,decoration:l,casing:d,...f}=(0,a.Lr)(e),p=compact({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,c.jsx)(i.m.p,{ref:t,className:(0,u.cx)("chakra-text",e.className),...p,...f,__css:n})});s.displayName="Text"},1151:function(e,t,n){"use strict";n.d(t,{B:function(){return a},$:function(){return useModalManager}});var r=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>(__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),n),o=n(7294),a=new class{constructor(){__publicField(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&this.modals.get(e)===this.modals.size}};function useModalManager(e,t){let[n,r]=(0,o.useState)(0);return(0,o.useEffect)(()=>{let n=e.current;if(n){if(t){let e=a.add(n);r(e)}return()=>{a.remove(n),r(0)}}},[t,e]),n}},3204:function(e,t,n){"use strict";n.d(t,{h:function(){return en}});var r,o,a=n(2504),i=n(9155),u=n(5432),c=n(1526),s=n(7745),l=n(7294),d=n(5893),f={initial:"initial",animate:"enter",exit:"exit",variants:{initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>{var a;return{opacity:0,x:e,y:t,transition:null!=(a=null==n?void 0:n.exit)?a:i.p$.exit(i.Sh.exit,o),transitionEnd:null==r?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:null!=(r=null==e?void 0:e.enter)?r:i.p$.enter(i.Sh.enter,n),transitionEnd:null==t?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:a})=>{var u;let c={x:t,y:e};return{opacity:0,transition:null!=(u=null==n?void 0:n.exit)?u:i.p$.exit(i.Sh.exit,a),...o?{...c,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{...c,...null==r?void 0:r.exit}}}}}};(0,l.forwardRef)(function(e,t){let{unmountOnExit:n,in:r,reverse:o=!0,className:a,offsetX:i=0,offsetY:l=8,transition:p,transitionEnd:m,delay:v,...h}=e,g=!n||r&&n,b=r||n?"enter":"exit",y={offsetX:i,offsetY:l,reverse:o,transition:p,transitionEnd:m,delay:v};return(0,d.jsx)(c.M,{custom:y,children:g&&(0,d.jsx)(s.E.div,{ref:t,className:(0,u.cx)("chakra-offset-slide",a),custom:y,...f,animate:b,...h})})}).displayName="SlideFade";var p={initial:"exit",animate:"enter",exit:"exit",variants:{exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>{var a;return{opacity:0,...e?{scale:t,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{scale:t,...null==r?void 0:r.exit}},transition:null!=(a=null==n?void 0:n.exit)?a:i.p$.exit(i.Sh.exit,o)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:null!=(r=null==t?void 0:t.enter)?r:i.p$.enter(i.Sh.enter,n),transitionEnd:null==e?void 0:e.enter}}}};(0,l.forwardRef)(function(e,t){let{unmountOnExit:n,in:r,reverse:o=!0,initialScale:a=.95,className:i,transition:l,transitionEnd:f,delay:m,...v}=e,h=!n||r&&n,g=r||n?"enter":"exit",b={initialScale:a,reverse:o,transition:l,transitionEnd:f,delay:m};return(0,d.jsx)(c.M,{custom:b,children:h&&(0,d.jsx)(s.E.div,{ref:t,className:(0,u.cx)("chakra-offset-slide",i),...p,animate:g,custom:b,...v})})}).displayName="ScaleFade";var m={slideInBottom:{...f,custom:{offsetY:16,reverse:!0}},slideInRight:{...f,custom:{offsetX:16,reverse:!0}},scale:{...p,custom:{initialScale:.95,reverse:!0}},none:{}},v=(0,a.m)(s.E.section),getMotionProps=e=>m[e||"none"],h=(0,l.forwardRef)((e,t)=>{let{preset:n,motionProps:r=getMotionProps(n),...o}=e;return(0,d.jsx)(v,{ref:t,...r,...o})});h.displayName="ModalTransition";var g=n(2752),b=n(1151);function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var y=n(7462),x="data-focus-lock",E="data-focus-lock-disabled";function assignRef(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}function useCallbackRef(e,t){var n=(0,l.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(value){var r=n.value;r!==value&&(n.value=value,n.callback(value,r))}}}})[0];return n.callback=t,n.facade}function useMergeRefs(e,t){return useCallbackRef(t||null,function(t){return e.forEach(function(e){return assignRef(e,t)})})}var w={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},InFocusGuard=function(e){var t=e.children;return l.createElement(l.Fragment,null,l.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:w}),t,t&&l.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:w}))};InFocusGuard.propTypes={},InFocusGuard.defaultProps={children:null};var __assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function __spreadArray(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o=0}).sort(tabSort)},k="button:enabled,select:enabled,textarea:enabled,input:enabled,a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable],[autofocus]",F="".concat(k,", [data-focus-guard]"),getFocusablesWithShadowDom=function(e,t){return toArray((e.shadowRoot||e).children).reduce(function(e,n){return e.concat(n.matches(t?F:k)?[n]:[],getFocusablesWithShadowDom(n))},[])},getFocusablesWithIFrame=function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?getFocusables([e.contentDocument.body],t):[e]},getFocusables=function(e,t){return e.reduce(function(e,n){var r,o=getFocusablesWithShadowDom(n,t),a=(r=[]).concat.apply(r,o.map(function(e){return getFocusablesWithIFrame(e,t)}));return e.concat(a,n.parentNode?toArray(n.parentNode.querySelectorAll(k)).filter(function(e){return e===n}):[])},[])},filterFocusable=function(e,t){return toArray(e).filter(function(e){return isVisibleCached(t,e)}).filter(function(e){return!((isHTMLInputElement(e)||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))})},filterAutoFocusable=function(e,t){return void 0===t&&(t=new Map),toArray(e).filter(function(e){return isAutoFocusAllowedCached(t,e)})},getTabbableNodes=function(e,t,n){return orderByTabIndex(filterFocusable(getFocusables(e,n),t),!0,n)},getFocusableNodes=function(e,t){return orderByTabIndex(filterFocusable(getFocusables(e),t),!1)},contains=function(e,t){return e.shadowRoot?contains(e.shadowRoot,t):!!(void 0!==Object.getPrototypeOf(e).contains&&Object.getPrototypeOf(e).contains.call(e,t))||toArray(e.children).some(function(e){var n;if(e instanceof HTMLIFrameElement){var r=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!r&&contains(r,t)}return contains(e,t)})},safeProbe=function(e){try{return e()}catch(e){return}},getActiveElement=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?getActiveElement(t.shadowRoot):t instanceof HTMLIFrameElement&&safeProbe(function(){return t.contentWindow.document})?getActiveElement(t.contentWindow.document):t}},focusIsHidden=function(e){void 0===e&&(e=document);var t=getActiveElement(e);return!!t&&toArray(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(e){return contains(e,t)})},filterNested=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(e,n){return!t.has(n)})},getTopParent=function(e){return e.parentNode?getTopParent(e.parentNode):e},getAllAffectedNodes=function(e){return asArray(e).filter(Boolean).reduce(function(e,t){var n=t.getAttribute(x);return e.push.apply(e,n?filterNested(toArray(getTopParent(t).querySelectorAll("[".concat(x,'="').concat(n,'"]:not([').concat(E,'="disabled"])')))):[t]),e},[])},focusInside=function(e,t){return void 0===t&&(t=getActiveElement(getFirst(e).ownerDocument)),!!t&&(!t.dataset||!t.dataset.focusGuard)&&getAllAffectedNodes(e).some(function(e){var n;return contains(e,t)||(n=t,!!toArray(e.querySelectorAll("iframe")).some(function(e){return e===n}))})},focusOn=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},correctNode=function(e,t){return isRadioElement(e)&&e.name&&t.filter(isRadioElement).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e},correctNodes=function(e){var t=new Set;return e.forEach(function(n){return t.add(correctNode(n,e))}),e.filter(function(e){return t.has(e)})},pickFirstFocus=function(e){return e[0]&&e.length>1?correctNode(e[0],e):e[0]},pickFocusable=function(e,t){return e.length>1?e.indexOf(correctNode(e[t],e)):t},T="NEW_FOCUS",newFocus=function(e,t,n,r){var o=e.length,a=e[0],i=e[o-1],u=isGuard(n);if(!(n&&e.indexOf(n)>=0)){var c=void 0!==n?t.indexOf(n):-1,s=r?t.indexOf(r):c,l=r?e.indexOf(r):-1,d=c-s,f=t.indexOf(a),p=t.indexOf(i),m=correctNodes(t),v=(void 0!==n?m.indexOf(n):-1)-(r?m.indexOf(r):c),h=pickFocusable(e,0),g=pickFocusable(e,o-1);if(-1===c||-1===l)return T;if(!d&&l>=0)return l;if(c<=f&&u&&Math.abs(d)>1)return g;if(c>=p&&u&&Math.abs(d)>1)return h;if(d&&Math.abs(v)>1)return l;if(c<=f)return g;if(c>p)return h;if(d)return Math.abs(d)>1?l:(o+l+d)%o}},pickAutofocus=function(e,t,n){var r=filterAutoFocusable(e.map(function(e){return e.node}).filter(function(e){var t,r=null===(t=getDataset(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==r&&"false"!==r||n.indexOf(e)>=0}));return r&&r.length?pickFirstFocus(r):pickFirstFocus(filterAutoFocusable(t))},getParents=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&getParents(e.parentNode.host||e.parentNode,t),t},getCommonParent=function(e,t){for(var n=getParents(e),r=getParents(t),o=0;o=0)return a}return!1},getTopCommonParent=function(e,t,n){var r=asArray(e),o=asArray(t),a=r[0],i=!1;return o.filter(Boolean).forEach(function(e){i=getCommonParent(i||e,e)||i,n.filter(Boolean).forEach(function(e){var t=getCommonParent(a,e);t&&(i=!i||contains(t,i)?t:getCommonParent(t,i))})}),i},reorderNodes=function(e,t){var n=new Map;return t.forEach(function(e){return n.set(e.node,e)}),e.map(function(e){return n.get(e)}).filter(isDefined)},focusSolver=function(e,t){var n=getActiveElement(asArray(e).length>0?document:getFirst(e).ownerDocument),r=getAllAffectedNodes(e).filter(isNotAGuard),o=getTopCommonParent(n||e,e,r),a=new Map,i=getFocusableNodes(r,a),u=getTabbableNodes(r,a).filter(function(e){return isNotAGuard(e.node)});if(u[0]||(u=i)[0]){var c=getFocusableNodes([o],a).map(function(e){return e.node}),s=reorderNodes(c,u),l=s.map(function(e){return e.node}),d=newFocus(l,c,n,t);if(d===T){var f=pickAutofocus(i,l,r.reduce(function(e,t){return e.concat(filterFocusable(toArray(t.querySelectorAll("[".concat("data-autofocus-inside","]"))).map(function(e){return getFocusables([e])}).reduce(function(e,t){return e.concat(t)},[]),a))},[]));return f?{node:f}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===d?d:s[d]}},P=0,O=!1,moveFocusInside=function(e,t,n){void 0===n&&(n={});var r=focusSolver(e,t);if(!O&&r){if(P>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),O=!0,setTimeout(function(){O=!1},1);return}P++,focusOn(r.node,n.focusOptions),P--}},expandFocusableNodes=function(e){var t=getAllAffectedNodes(e).filter(isNotAGuard),n=getTopCommonParent(e,e,t),r=new Map,o=getTabbableNodes([n],r,!0),a=getTabbableNodes(t,r).filter(function(e){return isNotAGuard(e.node)}).map(function(e){return e.node});return o.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:a.indexOf(t)>=0,guard:isGuard(t)}})};function deferAction(e){setTimeout(e,1)}var I=null,R=null,j=null,D=!1,recordPortal=function(e,t){j={observerNode:e,portaledElement:t}};function autoGuard(e,t,n,r){var o=null,a=e;do{var i=r[a];if(i.guard)i.node.dataset.focusAutoGuard&&(o=i);else if(i.lockItem){if(a!==e)return;o=null}else break}while((a+=n)!==t);o&&(o.node.tabIndex=0)}var extractRef=function(e){return e&&"current"in e?e.current:e},activateTrap=function(){var e=!1;if(I){var t=I,n=t.observed,r=t.persistentFocus,o=t.autoFocus,a=t.shards,i=t.crossFrame,u=t.focusOptions,c=n||j&&j.portaledElement,s=document&&document.activeElement;if(c){var l=[c].concat(a.map(extractRef).filter(Boolean));if((!s||(I.whiteList||function(){return!0})(s))&&(r||(i?!!D:"meanwhile"===D)||!(document&&document.activeElement===document.body||focusIsHidden())||!R&&o)&&(c&&!(focusInside(l)||s&&l.some(function(e){return function checkInHost(e,t,n){return t&&(t.host===e&&(!t.activeElement||n.contains(t.activeElement))||t.parentNode&&checkInHost(e,t.parentNode,n))}(s,e,e)})||j&&j.portaledElement===s)&&(document&&!R&&s&&!o?(s.blur&&s.blur(),document.body.focus()):(e=moveFocusInside(l,R,{focusOptions:u}),j={})),D=!1,R=document&&document.activeElement),document){var d=document&&document.activeElement,f=expandFocusableNodes(l),p=f.map(function(e){return e.node}).indexOf(d);p>-1&&(f.filter(function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute("tabIndex")}),autoGuard(p,f.length,1,f),autoGuard(p,-1,-1,f))}}}return e},onTrap=function(e){activateTrap()&&e&&(e.stopPropagation(),e.preventDefault())},onBlur=function(){return deferAction(activateTrap)},onWindowBlur=function(){D="just",deferAction(function(){D="meanwhile"})},attachHandler=function(){document.addEventListener("focusin",onTrap),document.addEventListener("focusout",onBlur),window.addEventListener("blur",onWindowBlur)},detachHandler=function(){document.removeEventListener("focusin",onTrap),document.removeEventListener("focusout",onBlur),window.removeEventListener("blur",onWindowBlur)};function reducePropsToState(e){return e.filter(function(e){return!e.disabled})}function handleStateChangeOnClient(e){var t=e.slice(-1)[0];t&&!I&&attachHandler();var n=I,r=n&&t&&t.id===n.id;I=t,!n||r||(n.onDeactivation(),e.filter(function(e){return e.id===n.id}).length||n.returnFocus(!t)),t?(R=null,r&&n.observed===t.observed||t.onActivation(),activateTrap(!0),deferAction(activateTrap)):(detachHandler(),R=null)}S.assignSyncMedium(function(e){var t=e.target,n=e.currentTarget;n.contains(t)||recordPortal(n,t)}),N.assignMedium(onBlur),A.assignMedium(function(e){return e({moveFocusInside:moveFocusInside,focusInside:focusInside})});var L=(function(e,t){function getDisplayName(e){return e.displayName||e.name||"Component"}return function(n){var r,o=[];function emitChange(){t(r=e(o.map(function(e){return e.props})))}var a=function(e){function SideEffect(){return e.apply(this,arguments)||this}_inheritsLoose(SideEffect,e),SideEffect.peek=function(){return r};var t=SideEffect.prototype;return t.componentDidMount=function(){o.push(this),emitChange()},t.componentDidUpdate=function(){emitChange()},t.componentWillUnmount=function(){var e=o.indexOf(this);o.splice(e,1),emitChange()},t.render=function(){return l.createElement(n,this.props)},SideEffect}(l.PureComponent);return _defineProperty(a,"displayName","SideEffect("+getDisplayName(n)+")"),a}})(reducePropsToState,handleStateChangeOnClient)(function(){return null}),B=l.forwardRef(function(e,t){return l.createElement(M,(0,y.Z)({sideCar:L,ref:t},e))}),G=M.propTypes||{};function isElement(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function chunk_3XANSPY5_isHTMLElement(e){var t;if(!isElement(e))return!1;let n=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof n.HTMLElement}G.sideCar,_objectWithoutPropertiesLoose(G,["sideCar"]),B.propTypes={};var hasTabIndex=e=>e.hasAttribute("tabindex");function isDisabled(e){return!0==!!e.getAttribute("disabled")||!0==!!e.getAttribute("aria-disabled")}function isHidden(e){return!!(e.parentElement&&isHidden(e.parentElement))||e.hidden}function isContentEditable(e){let t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}function isFocusable(e){if(!chunk_3XANSPY5_isHTMLElement(e)||isHidden(e)||isDisabled(e))return!1;let{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;let n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():!!isContentEditable(e)||hasTabIndex(e)}var isVisible=e=>e.offsetWidth>0&&e.offsetHeight>0;function getAllFocusable(e){let t=Array.from(e.querySelectorAll("input:not(:disabled):not([disabled]),select:not(:disabled):not([disabled]),textarea:not(:disabled):not([disabled]),embed,iframe,object,a[href],area[href],button:not(:disabled):not([disabled]),[tabindex],audio[controls],video[controls],*[tabindex]:not([aria-disabled]),*[contenteditable]"));return t.unshift(e),t.filter(e=>isFocusable(e)&&isVisible(e))}var H=null!=(r=B.default)?r:B,chunk_CG74IXYP_FocusLock=e=>{let{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:o,children:a,isDisabled:i,autoFocus:u,persistentFocus:c,lockFocusAcrossFrames:s}=e,f=(0,l.useCallback)(()=>{if(null==t?void 0:t.current)t.current.focus();else if(null==r?void 0:r.current){let e=getAllFocusable(r.current);0===e.length&&requestAnimationFrame(()=>{var e;null==(e=r.current)||e.focus()})}},[t,r]),p=(0,l.useCallback)(()=>{var e;null==(e=null==n?void 0:n.current)||e.focus()},[n]),m=o&&!n;return(0,d.jsx)(H,{crossFrame:s,persistentFocus:c,autoFocus:u,disabled:i,onActivation:f,onDeactivation:p,returnFocus:m,children:a})};chunk_CG74IXYP_FocusLock.displayName="FocusLock";var W=n(5947),Y="right-scroll-bar-position",X="width-before-scroll-bar",$=createSidecarMedium(),nothing=function(){},q=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:nothing,onWheelCapture:nothing,onTouchMoveCapture:nothing}),o=r[0],a=r[1],i=e.forwardProps,u=e.children,c=e.className,s=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noIsolation,v=e.inert,h=e.allowPinchZoom,g=e.as,b=void 0===g?"div":g,y=e.gapMode,x=__rest(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=useMergeRefs([n,t]),w=__assign(__assign({},x),o);return l.createElement(l.Fragment,null,d&&l.createElement(p,{sideCar:$,removeScrollBar:s,shards:f,noIsolation:m,inert:v,setCallbacks:a,allowPinchZoom:!!h,lockRef:n,gapMode:y}),i?l.cloneElement(l.Children.only(u),__assign(__assign({},w),{ref:E})):l.createElement(b,__assign({},w,{className:c,ref:E}),u))});q.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},q.classNames={fullWidth:X,zeroRight:Y};var SideCar=function(e){var t=e.sideCar,n=__rest(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return l.createElement(r,__assign({},n))};function exportSidecar(e,t){return e.useMedium(t),SideCar}function makeStyleTag(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o||n.nc;return t&&e.setAttribute("nonce",t),e}function injectStyles(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function insertStyleTag(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}SideCar.isSideCarExport=!0;var stylesheetSingleton=function(){var e=0,t=null;return{add:function(n){0==e&&(t=makeStyleTag())&&(injectStyles(t,n),insertStyleTag(t)),e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},styleHookSingleton=function(){var e=stylesheetSingleton();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},styleSingleton=function(){var e=styleHookSingleton();return function(t){return e(t.styles,t.dynamic),null}},V={left:0,top:0,right:0,gap:0},parse=function(e){return parseInt(e||"",10)||0},getOffset=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[parse(n),parse(r),parse(o)]},getGapWidth=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return V;var t=getOffset(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},U=styleSingleton(),getStyles=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Y," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(X," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(Y," .").concat(Y," {\n right: 0 ").concat(r,";\n }\n \n .").concat(X," .").concat(X," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},RemoveScrollBar=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,a=l.useMemo(function(){return getGapWidth(o)},[o]);return l.createElement(U,{styles:getStyles(a,!t,o,n?"":"!important")})},Z=!1;if("undefined"!=typeof window)try{var z=Object.defineProperty({},"passive",{get:function(){return Z=!0,!0}});window.addEventListener("test",z,z),window.removeEventListener("test",z,z)}catch(e){Z=!1}var K=!!Z&&{passive:!1},elementCanBeScrolled=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},locationCouldBeScrolled=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),elementCouldBeScrolled(e,r)){var o=getScrollVariables(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},elementCouldBeScrolled=function(e,t){return"v"===e?elementCanBeScrolled(t,"overflowY"):elementCanBeScrolled(t,"overflowX")},getScrollVariables=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},handleScroll=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),u=i*r,c=n.target,s=t.contains(c),l=!1,d=u>0,f=0,p=0;do{var m=getScrollVariables(e,c),v=m[0],h=m[1]-m[2]-i*v;(v||h)&&elementCouldBeScrolled(e,c)&&(f+=h,p+=v),c=c instanceof ShadowRoot?c.host:c.parentNode}while(!s&&c!==document.body||s&&(t.contains(c)||t===c));return d&&(o&&1>Math.abs(f)||!o&&u>f)?l=!0:!d&&(o&&1>Math.abs(p)||!o&&-u>p)&&(l=!0),l},getTouchXY=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},getDeltaXY=function(e){return[e.deltaX,e.deltaY]},SideEffect_extractRef=function(e){return e&&"current"in e?e.current:e},Q=0,J=[];function getOutermostShadowParent(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var ee=exportSidecar($,function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(Q++)[0],a=l.useState(styleSingleton)[0],i=l.useRef(e);l.useEffect(function(){i.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=__spreadArray([e.lockRef.current],(e.shards||[]).map(SideEffect_extractRef),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var o,a=getTouchXY(e),u=n.current,c="deltaX"in e?e.deltaX:u[0]-a[0],s="deltaY"in e?e.deltaY:u[1]-a[1],l=e.target,d=Math.abs(c)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=locationCouldBeScrolled(d,l);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=locationCouldBeScrolled(d,l)),!f)return!1;if(!r.current&&"changedTouches"in e&&(c||s)&&(r.current=o),!o)return!0;var p=r.current||o;return handleScroll(p,t,e,"h"===p?c:s,!0)},[]),c=l.useCallback(function(e){if(J.length&&J[J.length-1]===a){var n="deltaY"in e?getDeltaXY(e):getTouchXY(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(i.current.shards||[]).map(SideEffect_extractRef).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=l.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:getOutermostShadowParent(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=l.useCallback(function(e){n.current=getTouchXY(e),r.current=void 0},[]),f=l.useCallback(function(t){s(t.type,getDeltaXY(t),t.target,u(t,e.lockRef.current))},[]),p=l.useCallback(function(t){s(t.type,getTouchXY(t),t.target,u(t,e.lockRef.current))},[]);l.useEffect(function(){return J.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,K),document.addEventListener("touchmove",c,K),document.addEventListener("touchstart",d,K),function(){J=J.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,K),document.removeEventListener("touchmove",c,K),document.removeEventListener("touchstart",d,K)}},[]);var m=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?l.createElement(RemoveScrollBar,{gapMode:e.gapMode}):null)}),et=l.forwardRef(function(e,t){return l.createElement(q,__assign({},e,{ref:t,sideCar:ee}))});function ModalFocusScope(e){let{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:a,allowPinchZoom:i,finalFocusRef:u,returnFocusOnClose:c,preserveScrollBarGap:s,lockFocusAcrossFrames:f,isOpen:p}=(0,g.vR)(),[m,v]=(0,W.oO)();(0,l.useEffect)(()=>{!m&&v&&setTimeout(v)},[m,v]);let h=(0,b.$)(r,p);return(0,d.jsx)(chunk_CG74IXYP_FocusLock,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:u,restoreFocus:c,contentRef:r,lockFocusAcrossFrames:f,children:(0,d.jsx)(et,{removeScrollBar:!s,allowPinchZoom:i,enabled:1===h&&a,forwardProps:!0,children:e.children})})}et.classNames=q.classNames;var en=(0,n(5059).G)((e,t)=>{let{className:n,children:r,containerProps:o,motionProps:i,...c}=e,{getDialogProps:s,getDialogContainerProps:l}=(0,g.vR)(),f=s(c,t),p=l(o),m=(0,u.cx)("chakra-modal__content",n),v=(0,g.I_)(),b={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...v.dialog},y={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...v.dialogContainer},{motionPreset:x}=(0,g.vR)();return(0,d.jsx)(ModalFocusScope,{children:(0,d.jsx)(a.m.div,{...p,className:"chakra-modal__content-container",tabIndex:-1,__css:y,children:(0,d.jsx)(h,{preset:x,motionProps:i,className:m,...f,__css:b,children:r})})})});en.displayName="ModalContent"},1963:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(2752),o=n(5432),a=n(2504),i=n(5059),u=n(9155),c=n(1526),s=n(7745),l=n(7294),d=n(5893),f={initial:"exit",animate:"enter",exit:"exit",variants:{enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:null!=(r=null==e?void 0:e.enter)?r:u.p$.enter(u.Sh.enter,n),transitionEnd:null==t?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:null!=(r=null==e?void 0:e.exit)?r:u.p$.exit(u.Sh.exit,n),transitionEnd:null==t?void 0:t.exit}}}};(0,l.forwardRef)(function(e,t){let{unmountOnExit:n,in:r,className:a,transition:i,transitionEnd:u,delay:l,...p}=e,m=r||n?"enter":"exit",v=!n||r&&n,h={transition:i,transitionEnd:u,delay:l};return(0,d.jsx)(c.M,{custom:h,children:v&&(0,d.jsx)(s.E.div,{ref:t,className:(0,o.cx)("chakra-fade",a),custom:h,...f,animate:m,...p})})}).displayName="Fade";var p=(0,a.m)(s.E.div),m=(0,i.G)((e,t)=>{let{className:n,transition:a,motionProps:i,...u}=e,c=(0,o.cx)("chakra-modal__overlay",n),s=(0,r.I_)(),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...s.overlay},{motionPreset:m}=(0,r.vR)(),v="none"===m?{}:f,h=i||v;return(0,d.jsx)(p,{...h,__css:l,ref:t,className:c,...u})});m.displayName="ModalOverlay"},3793:function(e,t,n){"use strict";n.d(t,{f:function(){return s}});var r=n(2752),o=n(5432),a=n(5059),i=n(2504),u=n(7294),c=n(5893),s=(0,a.G)((e,t)=>{let{className:n,...a}=e,{bodyId:s,setBodyMounted:l}=(0,r.vR)();(0,u.useEffect)(()=>(l(!0),()=>l(!1)),[l]);let d=(0,o.cx)("chakra-modal__body",n),f=(0,r.I_)();return(0,c.jsx)(i.m.div,{ref:t,className:d,id:s,...a,__css:f.body})});s.displayName="ModalBody"},2752:function(e,t,n){"use strict";n.d(t,{u_:function(){return Modal},vR:function(){return y},I_:function(){return g}});var r=n(1151),o=n(5432),a=n(1103),i=new WeakMap,u=new WeakMap,c={},s=0,unwrapHost=function(e){return e&&(e.host||unwrapHost(e.parentNode))},applyAttributeToOthers=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=unwrapHost(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});c[n]||(c[n]=new WeakMap);var a=c[n],l=[],d=new Set,f=new Set(o),keep=function(e){!e||d.has(e)||(d.add(e),keep(e.parentNode))};o.forEach(keep);var deep=function(e){!e||f.has(e)||Array.prototype.forEach.call(e.children,function(e){if(d.has(e))deep(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,c=(i.get(e)||0)+1,s=(a.get(e)||0)+1;i.set(e,c),a.set(e,s),l.push(e),1===c&&o&&u.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}})};return deep(t),d.clear(),s++,function(){l.forEach(function(e){var t=i.get(e)-1,o=a.get(e)-1;i.set(e,t),a.set(e,o),t||(u.has(e)||e.removeAttribute(r),u.delete(e)),o||e.removeAttribute(n)}),--s||(i=new WeakMap,i=new WeakMap,u=new WeakMap,c={})}},hideOthers=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),applyAttributeToOthers(r,o,n,"aria-hidden")):function(){return null}},l=n(7294);function useModal(e){let{isOpen:t,onClose:n,id:i,closeOnOverlayClick:u=!0,closeOnEsc:c=!0,useInert:s=!0,onOverlayClick:d,onEsc:f}=e,p=(0,l.useRef)(null),m=(0,l.useRef)(null),[v,h,g]=useIds(i,"chakra-modal","chakra-modal--header","chakra-modal--body");useAriaHidden(p,t&&s),(0,r.$)(p,t);let b=(0,l.useRef)(null),y=(0,l.useCallback)(e=>{b.current=e.target},[]),x=(0,l.useCallback)(e=>{"Escape"===e.key&&(e.stopPropagation(),c&&(null==n||n()),null==f||f())},[c,n,f]),[E,w]=(0,l.useState)(!1),[S,N]=(0,l.useState)(!1),A=(0,l.useCallback)((e={},t=null)=>({role:"dialog",...e,ref:(0,a.lq)(t,p),id:v,tabIndex:-1,"aria-modal":!0,"aria-labelledby":E?h:void 0,"aria-describedby":S?g:void 0,onClick:(0,o.v0)(e.onClick,e=>e.stopPropagation())}),[g,S,v,h,E]),C=(0,l.useCallback)(e=>{e.stopPropagation(),b.current===e.target&&r.B.isTopModal(p.current)&&(u&&(null==n||n()),null==d||d())},[n,u,d]),_=(0,l.useCallback)((e={},t=null)=>({...e,ref:(0,a.lq)(t,m),onClick:(0,o.v0)(e.onClick,C),onKeyDown:(0,o.v0)(e.onKeyDown,x),onMouseDown:(0,o.v0)(e.onMouseDown,y)}),[x,y,C]);return{isOpen:t,onClose:n,headerId:h,bodyId:g,setBodyMounted:N,setHeaderMounted:w,dialogRef:p,overlayRef:m,getDialogProps:A,getDialogContainerProps:_}}function useAriaHidden(e,t){let n=e.current;(0,l.useEffect)(()=>{if(e.current&&t)return hideOthers(e.current)},[t,e,n])}function useIds(e,...t){let n=(0,l.useId)(),r=e||n;return(0,l.useMemo)(()=>t.map(e=>`${e}-${r}`),[r,t])}var d=n(9598),f=n(5227),p=n(1639),m=n(1526),v=n(5893),[h,g]=(0,f.k)({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[b,y]=(0,f.k)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),Modal=e=>{let t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:n,children:r,autoFocus:o,trapFocus:a,initialFocusRef:i,finalFocusRef:u,returnFocusOnClose:c,blockScrollOnMount:s,allowPinchZoom:l,preserveScrollBarGap:f,motionPreset:g,lockFocusAcrossFrames:y,onCloseComplete:x}=t,E=(0,p.jC)("Modal",t),w=useModal(t),S={...w,autoFocus:o,trapFocus:a,initialFocusRef:i,finalFocusRef:u,returnFocusOnClose:c,blockScrollOnMount:s,allowPinchZoom:l,preserveScrollBarGap:f,motionPreset:g,lockFocusAcrossFrames:y};return(0,v.jsx)(b,{value:S,children:(0,v.jsx)(h,{value:E,children:(0,v.jsx)(m.M,{onExitComplete:x,children:S.isOpen&&(0,v.jsx)(d.h,{...n,children:r})})})})};Modal.displayName="Modal"},4504:function(e,t,n){"use strict";n.d(t,{x:function(){return s}});var r=n(2752),o=n(5432),a=n(5059),i=n(2504),u=n(7294),c=n(5893),s=(0,a.G)((e,t)=>{let{className:n,...a}=e,{headerId:s,setHeaderMounted:l}=(0,r.vR)();(0,u.useEffect)(()=>(l(!0),()=>l(!1)),[l]);let d=(0,o.cx)("chakra-modal__header",n),f=(0,r.I_)(),p={flex:0,...f.header};return(0,c.jsx)(i.m.header,{ref:t,className:d,id:s,...a,__css:p})});s.displayName="ModalHeader"},1103:function(e,t,n){"use strict";n.d(t,{lq:function(){return mergeRefs},qq:function(){return useMergeRefs}});var r=n(7294);function assignRef(e,t){if(null!=e){if("function"==typeof e){e(t);return}try{e.current=t}catch(n){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function mergeRefs(...e){return t=>{e.forEach(e=>{assignRef(e,t)})}}function useMergeRefs(...e){return(0,r.useMemo)(()=>mergeRefs(...e),e)}},9155:function(e,t,n){"use strict";n.d(t,{Sh:function(){return o},p$:function(){return a}});var r={easeIn:[.4,0,1,1],easeOut:[0,0,.2,1]},o={enter:{duration:.2,ease:r.easeOut},exit:{duration:.1,ease:r.easeIn}},a={enter:(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),exit:(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit})}}}]); \ No newline at end of file diff --git a/public/_next/static/chunks/86-0d3a0c94e5aea1bd.js b/public/_next/static/chunks/86-0d3a0c94e5aea1bd.js deleted file mode 100644 index 7514717..0000000 --- a/public/_next/static/chunks/86-0d3a0c94e5aea1bd.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[86],{7498:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return a},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return l},ACTION_PREFETCH:function(){return u},ACTION_FAST_REFRESH:function(){return s},ACTION_SERVER_ACTION:function(){return c}});let a="refresh",o="navigate",i="restore",l="server-patch",u="prefetch",s="fast-refresh",c="server-action";(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30:function(e,t,n){"use strict";function getDomainLocale(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return getDomainLocale}}),n(2866),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5170:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(8754),a=r._(n(7294)),o=n(4450),i=n(2227),l=n(4364),u=n(109),s=n(3607),c=n(1823),f=n(9031),d=n(920),m=n(30),p=n(7192),v=n(7498),g=new Set;function prefetch(e,t,n,r,a,o){if(!o&&!(0,i.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let a=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,o=t+"%"+n+"%"+a;if(g.has(o))return;g.add(o)}let l=o?e.prefetch(t,a):e.prefetch(t,n,r);Promise.resolve(l).catch(e=>{})}function isModifiedEvent(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}function linkClicked(e,t,n,r,o,l,u,s,c,f){let{nodeName:d}=e.currentTarget,m="A"===d.toUpperCase();if(m&&(isModifiedEvent(e)||!c&&!(0,i.isLocalURL)(n)))return;e.preventDefault();let navigate=()=>{let e=null==u||u;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:l,locale:s,scroll:e}):t[o?"replace":"push"](r||n,{forceOptimisticNavigation:!f,scroll:e})};c?a.default.startTransition(navigate):navigate()}function formatStringOrUrl(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let h=a.default.forwardRef(function(e,t){let n,r;let{href:i,as:l,children:g,prefetch:h=null,passHref:y,replace:x,shallow:b,scroll:_,locale:j,onClick:C,onMouseEnter:k,onTouchStart:S,legacyBehavior:N=!1,...I}=e;n=g,N&&("string"==typeof n||"number"==typeof n)&&(n=a.default.createElement("a",null,n));let A=a.default.useContext(c.RouterContext),E=a.default.useContext(f.AppRouterContext),O=null!=A?A:E,T=!A,L=!1!==h,w=null===h?v.PrefetchKind.AUTO:v.PrefetchKind.FULL,{href:B,as:M}=a.default.useMemo(()=>{if(!A){let e=formatStringOrUrl(i);return{href:e,as:l?formatStringOrUrl(l):e}}let[e,t]=(0,o.resolveHref)(A,i,!0);return{href:e,as:l?(0,o.resolveHref)(A,l):t||e}},[A,i,l]),P=a.default.useRef(B),G=a.default.useRef(M);N&&(r=a.default.Children.only(n));let R=N?r&&"object"==typeof r&&r.ref:t,[F,U,D]=(0,d.useIntersection)({rootMargin:"200px"}),W=a.default.useCallback(e=>{(G.current!==M||P.current!==B)&&(D(),G.current=M,P.current=B),F(e),R&&("function"==typeof R?R(e):"object"==typeof R&&(R.current=e))},[M,R,B,D,F]);a.default.useEffect(()=>{O&&U&&L&&prefetch(O,B,M,{locale:j},{kind:w},T)},[M,B,U,j,L,null==A?void 0:A.locale,O,T,w]);let z={ref:W,onClick(e){N||"function"!=typeof C||C(e),N&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),O&&!e.defaultPrevented&&linkClicked(e,O,B,M,x,b,_,j,T,L)},onMouseEnter(e){N||"function"!=typeof k||k(e),N&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),O&&(L||!T)&&prefetch(O,B,M,{locale:j,priority:!0,bypassPrefetchedCheck:!0},{kind:w},T)},onTouchStart(e){N||"function"!=typeof S||S(e),N&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),O&&(L||!T)&&prefetch(O,B,M,{locale:j,priority:!0,bypassPrefetchedCheck:!0},{kind:w},T)}};if((0,u.isAbsoluteUrl)(M))z.href=M;else if(!N||y||"a"===r.type&&!("href"in r.props)){let e=void 0!==j?j:null==A?void 0:A.locale,t=(null==A?void 0:A.isLocaleDomain)&&(0,m.getDomainLocale)(M,e,null==A?void 0:A.locales,null==A?void 0:A.domainLocales);z.href=t||(0,p.addBasePath)((0,s.addLocale)(M,e,null==A?void 0:A.defaultLocale))}return N?a.default.cloneElement(r,z):a.default.createElement("a",{...I,...z},n)}),y=h;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},920:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return useIntersection}});let r=n(7294),a=n(3436),o="function"==typeof IntersectionObserver,i=new Map,l=[];function createObserver(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=l.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=i.get(r)))return t;let a=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=a.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:o,elements:a},l.push(n),i.set(n,t),t}function observe(e,t,n){let{id:r,observer:a,elements:o}=createObserver(n);return o.set(e,t),a.observe(e),function(){if(o.delete(e),a.unobserve(e),0===o.size){a.disconnect(),i.delete(r);let e=l.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&l.splice(e,1)}}}function useIntersection(e){let{rootRef:t,rootMargin:n,disabled:i}=e,l=i||!o,[u,s]=(0,r.useState)(!1),c=(0,r.useRef)(null),f=(0,r.useCallback)(e=>{c.current=e},[]);(0,r.useEffect)(()=>{if(o){if(l||u)return;let e=c.current;if(e&&e.tagName){let r=observe(e,e=>e&&s(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!u){let e=(0,a.requestIdleCallback)(()=>s(!0));return()=>(0,a.cancelIdleCallback)(e)}},[l,n,t,u,c.current]);let d=(0,r.useCallback)(()=>{s(!1)},[]);return[f,u,d]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1664:function(e,t,n){e.exports=n(5170)},4298:function(e,t,n){e.exports=n(5354)},9432:function(e,t,n){"use strict";n.d(t,{q:function(){return p}});var[r,a]=(0,n(5227).k)({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:""}),o=n(2504),i=n(5893);function initials(e){var t;let n=e.split(" "),r=null!=(t=n.at(0))?t:"",a=n.length>1?n.at(-1):"";return r&&a?`${r.charAt(0)}${a.charAt(0)}`:r.charAt(0)}function AvatarName(e){let{name:t,getInitials:n,...r}=e,l=a();return(0,i.jsx)(o.m.div,{role:"img","aria-label":t,...r,__css:l.label,children:t?null==n?void 0:n(t):null})}AvatarName.displayName="AvatarName";var GenericAvatarIcon=e=>(0,i.jsxs)(o.m.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...e,children:[(0,i.jsx)("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),(0,i.jsx)("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]}),l=n(5721),u=n(7294);function AvatarImage(e){let{src:t,srcSet:n,onError:r,onLoad:a,getInitials:s,name:c,borderRadius:f,loading:d,iconLabel:m,icon:p=(0,i.jsx)(GenericAvatarIcon,{}),ignoreFallback:v,referrerPolicy:g,crossOrigin:h}=e,y=(0,l.d)({src:t,onError:r,crossOrigin:h,ignoreFallback:v}),x=!t||"loaded"!==y;return x?c?(0,i.jsx)(AvatarName,{className:"chakra-avatar__initials",getInitials:s,name:c}):(0,u.cloneElement)(p,{role:"img","aria-label":m}):(0,i.jsx)(o.m.img,{src:t,srcSet:n,alt:c,onLoad:a,referrerPolicy:g,crossOrigin:null!=h?h:void 0,className:"chakra-avatar__img",loading:d,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:f}})}AvatarImage.displayName="AvatarImage";var s=n(5059),c=n(1639),f=n(3179),d=n(5432),m={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},p=(0,s.G)((e,t)=>{let n=(0,c.jC)("Avatar",e),[a,l]=(0,u.useState)(!1),{src:s,srcSet:p,name:v,showBorder:g,borderRadius:h="full",onError:y,onLoad:x,getInitials:b=initials,icon:_=(0,i.jsx)(GenericAvatarIcon,{}),iconLabel:j=" avatar",loading:C,children:k,borderColor:S,ignoreFallback:N,crossOrigin:I,...A}=(0,f.Lr)(e),E={borderRadius:h,borderWidth:g?"2px":void 0,...m,...n.container};return S&&(E.borderColor=S),(0,i.jsx)(o.m.span,{ref:t,...A,className:(0,d.cx)("chakra-avatar",e.className),"data-loaded":(0,d.PB)(a),__css:E,children:(0,i.jsxs)(r,{value:n,children:[(0,i.jsx)(AvatarImage,{src:s,srcSet:p,loading:C,onLoad:(0,d.v0)(x,()=>{l(!0)}),onError:y,getInitials:b,name:v,borderRadius:h,icon:_,iconLabel:j,ignoreFallback:N,crossOrigin:I}),k]})})});p.displayName="Avatar"},3951:function(e,t,n){"use strict";n.d(t,{XQ:function(){return mapResponsive}});var r=n(5432);function mapResponsive(e,t){return Array.isArray(e)?e.map(e=>null===e?null:t(e)):(0,r.Kn)(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):null!=e?t(e):null}Object.freeze(["base","sm","md","lg","xl","2xl"])},9222:function(e,t,n){"use strict";n.d(t,{z:function(){return p}});var r=n(7294);function useButtonType(e){let[t,n]=(0,r.useState)(!e),a=(0,r.useCallback)(e=>{e&&n("BUTTON"===e.tagName)},[]);return{ref:a,type:t?"button":void 0}}var[a,o]=(0,n(5227).k)({strict:!1,name:"ButtonGroupContext"}),i=n(2504),l=n(5432),u=n(5893);function ButtonIcon(e){let{children:t,className:n,...a}=e,o=(0,r.isValidElement)(t)?(0,r.cloneElement)(t,{"aria-hidden":!0,focusable:!1}):t,s=(0,l.cx)("chakra-button__icon",n);return(0,u.jsx)(i.m.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...a,className:s,children:o})}ButtonIcon.displayName="ButtonIcon";var s=n(295);function ButtonSpinner(e){let{label:t,placement:n,spacing:a="0.5rem",children:o=(0,u.jsx)(s.$,{color:"currentColor",width:"1em",height:"1em"}),className:c,__css:f,...d}=e,m=(0,l.cx)("chakra-button__spinner",c),p="start"===n?"marginEnd":"marginStart",v=(0,r.useMemo)(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[p]:t?a:0,fontSize:"1em",lineHeight:"normal",...f}),[f,t,p,a]);return(0,u.jsx)(i.m.div,{className:m,...d,__css:v,children:o})}ButtonSpinner.displayName="ButtonSpinner";var c=n(1103),f=n(5059),d=n(1639),m=n(3179),p=(0,f.G)((e,t)=>{let n=o(),a=(0,d.mq)("Button",{...n,...e}),{isDisabled:s=null==n?void 0:n.isDisabled,isLoading:f,isActive:p,children:v,leftIcon:g,rightIcon:h,loadingText:y,iconSpacing:x="0.5rem",type:b,spinner:_,spinnerPlacement:j="start",className:C,as:k,...S}=(0,m.Lr)(e),N=(0,r.useMemo)(()=>{let e={...null==a?void 0:a._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...a,...!!n&&{_focus:e}}},[a,n]),{ref:I,type:A}=useButtonType(k),E={rightIcon:h,leftIcon:g,iconSpacing:x,children:v};return(0,u.jsxs)(i.m.button,{ref:(0,c.qq)(t,I),as:k,type:null!=b?b:A,"data-active":(0,l.PB)(p),"data-loading":(0,l.PB)(f),__css:N,className:(0,l.cx)("chakra-button",C),...S,disabled:s||f,children:[f&&"start"===j&&(0,u.jsx)(ButtonSpinner,{className:"chakra-button__spinner--start",label:y,placement:"start",spacing:x,children:_}),f?y||(0,u.jsx)(i.m.span,{opacity:0,children:(0,u.jsx)(ButtonContent,{...E})}):(0,u.jsx)(ButtonContent,{...E}),f&&"end"===j&&(0,u.jsx)(ButtonSpinner,{className:"chakra-button__spinner--end",label:y,placement:"end",spacing:x,children:_})]})});function ButtonContent(e){let{leftIcon:t,rightIcon:n,children:r,iconSpacing:a}=e;return(0,u.jsxs)(u.Fragment,{children:[t&&(0,u.jsx)(ButtonIcon,{marginEnd:a,children:t}),r,n&&(0,u.jsx)(ButtonIcon,{marginStart:a,children:n})]})}p.displayName="Button"},5721:function(e,t,n){"use strict";n.d(t,{d:function(){return useImage},z:function(){return shouldShowFallbackImage}});var r=n(6245),a=n(7294);function useImage(e){let{loading:t,src:n,srcSet:o,onLoad:i,onError:l,crossOrigin:u,sizes:s,ignoreFallback:c}=e,[f,d]=(0,a.useState)("pending");(0,a.useEffect)(()=>{d(n?"loading":"pending")},[n]);let m=(0,a.useRef)(),p=(0,a.useCallback)(()=>{if(!n)return;flush();let e=new Image;e.src=n,u&&(e.crossOrigin=u),o&&(e.srcset=o),s&&(e.sizes=s),t&&(e.loading=t),e.onload=e=>{flush(),d("loaded"),null==i||i(e)},e.onerror=e=>{flush(),d("failed"),null==l||l(e)},m.current=e},[n,u,o,s,i,l,t]),flush=()=>{m.current&&(m.current.onload=null,m.current.onerror=null,m.current=null)};return(0,r.G)(()=>{if(!c)return"loading"===f&&p(),()=>{flush()}},[f,p,c]),c?"loaded":f}var shouldShowFallbackImage=(e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t},1941:function(e,t,n){"use strict";n.d(t,{E:function(){return u}});var r=n(5059),a=n(5893),o=(0,r.G)(function(e,t){let{htmlWidth:n,htmlHeight:r,alt:o,...i}=e;return(0,a.jsx)("img",{width:n,height:r,ref:t,alt:o,...i})});o.displayName="NativeImage";var i=n(5721),l=n(2504);function omit(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}var u=(0,r.G)(function(e,t){let{fallbackSrc:n,fallback:r,src:u,srcSet:s,align:c,fit:f,loading:d,ignoreFallback:m,crossOrigin:p,fallbackStrategy:v="beforeLoadOrError",referrerPolicy:g,...h}=e,y=null!=d||m||!(void 0!==n||void 0!==r),x=(0,i.d)({...e,crossOrigin:p,ignoreFallback:y}),b=(0,i.z)(x,v),_={ref:t,objectFit:f,objectPosition:c,...y?h:omit(h,["onError","onLoad"])};return b?r||(0,a.jsx)(l.m.img,{as:o,className:"chakra-image__placeholder",src:n,..._}):(0,a.jsx)(l.m.img,{as:o,src:u,srcSet:s,crossOrigin:p,loading:d,referrerPolicy:g,className:"chakra-image",..._})});u.displayName="Image"},7754:function(e,t,n){"use strict";n.d(t,{M:function(){return i}});var r=n(2504),a=n(5059),o=n(5893),i=(0,r.m)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});i.displayName="Center";var l={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};(0,a.G)(function(e,t){let{axis:n="both",...a}=e;return(0,o.jsx)(r.m.div,{ref:t,__css:l[n],...a,position:"absolute"})})},3100:function(e,t,n){"use strict";n.d(t,{xu:function(){return i}});var r=n(2504),a=n(5059),o=n(5893),i=(0,r.m)("div");i.displayName="Box";var l=(0,a.G)(function(e,t){let{size:n,centerContent:r=!0,...a}=e;return(0,o.jsx)(i,{ref:t,boxSize:n,__css:{...r?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...a})});l.displayName="Square",(0,a.G)(function(e,t){let{size:n,...r}=e;return(0,o.jsx)(l,{size:n,ref:t,borderRadius:"9999px",...r})}).displayName="Circle"},5034:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r=(0,n(2504).m)("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});r.displayName="Spacer"},4418:function(e,t,n){"use strict";n.d(t,{X:function(){return s}});var r=n(5059),a=n(1639),o=n(3179),i=n(2504),l=n(5432),u=n(5893),s=(0,r.G)(function(e,t){let n=(0,a.mq)("Heading",e),{className:r,...s}=(0,o.Lr)(e);return(0,u.jsx)(i.m.h2,{ref:t,className:(0,l.cx)("chakra-heading",e.className),...s,__css:n})});s.displayName="Heading"},4641:function(e,t,n){"use strict";n.d(t,{U:function(){return i}});var r=n(7306),a=n(5059),o=n(5893),i=(0,a.G)((e,t)=>(0,o.jsx)(r.K,{align:"center",...e,direction:"row",ref:t}));i.displayName="HStack"},204:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(5059),a=n(2504),o=n(5893),i=(0,r.G)(function(e,t){let{direction:n,align:r,justify:i,wrap:l,basis:u,grow:s,shrink:c,...f}=e;return(0,o.jsx)(a.m.div,{ref:t,__css:{display:"flex",flexDirection:n,alignItems:r,justifyContent:i,flexWrap:l,flexBasis:u,flexGrow:s,flexShrink:c},...f})});i.displayName="Flex"},1669:function(e,t,n){"use strict";n.d(t,{g:function(){return i}});var r=n(7306),a=n(5059),o=n(5893),i=(0,a.G)((e,t)=>(0,o.jsx)(r.K,{align:"center",...e,direction:"column",ref:t}));i.displayName="VStack"},7306:function(e,t,n){"use strict";n.d(t,{K:function(){return c}});var r=n(2504),a=n(5893),StackItem=e=>(0,a.jsx)(r.m.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});StackItem.displayName="StackItem";var o=n(3951),i="& > *:not(style) ~ *:not(style)";function getStackStyles(e){let{spacing:t,direction:n}=e,r={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:n,[i]:(0,o.XQ)(n,e=>r[e])}}function getDividerStyles(e){let{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,o.XQ)(n,e=>r[e])}}var l=n(5059),u=n(5432),s=n(7294);function getValidChildren(e){return s.Children.toArray(e).filter(e=>(0,s.isValidElement)(e))}var c=(0,l.G)((e,t)=>{let{isInline:n,direction:o,align:l,justify:c,spacing:f="0.5rem",wrap:d,children:m,divider:p,className:v,shouldWrapChildren:g,...h}=e,y=n?"row":null!=o?o:"column",x=(0,s.useMemo)(()=>getStackStyles({direction:y,spacing:f}),[y,f]),b=(0,s.useMemo)(()=>getDividerStyles({spacing:f,direction:y}),[f,y]),_=!!p,j=!g&&!_,C=(0,s.useMemo)(()=>{let e=getValidChildren(m);return j?e:e.map((t,n)=>{let r=void 0!==t.key?t.key:n,o=n+1===e.length,i=(0,a.jsx)(StackItem,{children:t},r),l=g?i:t;if(!_)return l;let u=(0,s.cloneElement)(p,{__css:b});return(0,a.jsxs)(s.Fragment,{children:[l,o?null:u]},r)})},[p,b,_,j,g,m]),k=(0,u.cx)("chakra-stack",v);return(0,a.jsx)(r.m.div,{ref:t,display:"flex",alignItems:l,justifyContent:c,flexDirection:x.flexDirection,flexWrap:d,className:k,__css:_?{}:{[i]:x[i]},...h,children:C})});c.displayName="Stack"},6137:function(e,t,n){"use strict";n.d(t,{M:function(){return c}});var r=n(5059),a=n(2504),o=n(5893),i=(0,r.G)(function(e,t){let{templateAreas:n,gap:r,rowGap:i,columnGap:l,column:u,row:s,autoFlow:c,autoRows:f,templateRows:d,autoColumns:m,templateColumns:p,...v}=e;return(0,o.jsx)(a.m.div,{ref:t,__css:{display:"grid",gridTemplateAreas:n,gridGap:r,gridRowGap:i,gridColumnGap:l,gridAutoColumns:m,gridColumn:u,gridRow:s,gridAutoFlow:c,gridAutoRows:f,gridTemplateRows:d,gridTemplateColumns:p},...v})});i.displayName="Grid";var l=n(7323),u=n(4629),s=n(3951),c=(0,r.G)(function(e,t){let{columns:n,spacingX:r,spacingY:a,spacing:u,minChildWidth:s,...c}=e,f=(0,l.F)(),d=s?widthToColumns(s,f):countToColumns(n);return(0,o.jsx)(i,{ref:t,gap:u,columnGap:r,rowGap:a,templateColumns:d,...c})});function toPx(e){return"number"==typeof e?`${e}px`:e}function widthToColumns(e,t){return(0,s.XQ)(e,e=>{let n=(0,u.LP)("sizes",e,toPx(e))(t);return null===e?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}function countToColumns(e){return(0,s.XQ)(e,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`)}c.displayName="SimpleGrid"},3838:function(e,t,n){"use strict";n.d(t,{r:function(){return s}});var r=n(5059),a=n(1639),o=n(3179),i=n(2504),l=n(5432),u=n(5893),s=(0,r.G)(function(e,t){let n=(0,a.mq)("Link",e),{className:r,isExternal:s,...c}=(0,o.Lr)(e);return(0,u.jsx)(i.m.a,{target:s?"_blank":void 0,rel:s?"noopener":void 0,ref:t,className:(0,l.cx)("chakra-link",r),...c,__css:n})});s.displayName="Link"}}]); \ No newline at end of file diff --git a/public/_next/static/chunks/framework-64ad27b21261a9ce.js b/public/_next/static/chunks/framework-64ad27b21261a9ce.js new file mode 100644 index 0000000..1f06934 --- /dev/null +++ b/public/_next/static/chunks/framework-64ad27b21261a9ce.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[774],{4448:function(e,n,t){var r,l,a,u,o,i,s=t(7294),c=t(3840);function f(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t