(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6933],{27724:function(e,n,i){"use strict";var a=i(85893),t=i(89755),l=i.n(t),d=i(38847),o=i.n(d);n.Z=function(e){let n;let{originalSrc:i,...t}=e,{alt:d="",loader:r,quality:s,priority:m,loading:c,unoptimized:u,objectFit:k,objectPosition:h,src:v,width:p,height:f,layout:b,placeholder:g,blurDataURL:x,...N}=t;if(!i)return null;let w=".gif"===i.substr(-4),S=v.indexOf("cdn.hashnode.com")>-1;if(w||!S)return(0,a.jsx)("img",{...N,alt:d,src:v||i});let j=-1!==v.indexOf("/unsplash/");return(j&&(n=v.slice(v.indexOf("/unsplash/")+10,v.indexOf("/upload/"))),n)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l(),{...t,src:v||i}),(0,a.jsx)("img",{alt:"",className:"hidden",src:"https://views.unsplash.com/v?app_id=".concat(o().unsplash.appId,"&photo_id=").concat(n)})]}):(0,a.jsx)(l(),{...t,src:v||i})}},52385:function(e,n,i){"use strict";i.d(n,{Z:function(){return l}});var a=i(85893),t=i(67294);class l extends t.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M6 9L12 15L18 9",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}}},5230:function(e,n,i){"use strict";i.d(n,{Z:function(){return l}});var a=i(85893),t=i(67294);class l extends t.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 17",children:(0,a.jsx)("path",{d:"M7.75135 16.7197L0.885098 9.55347C0.683348 9.31347 0.600098 9.08847 0.600098 8.89722C0.600098 8.70597 0.68331 8.44834 0.850898 8.27509L7.71715 1.10884C8.06035 0.749066 8.6299 0.737366 8.9884 1.08189C9.34933 1.42408 9.36107 1.99576 9.01535 2.35351L2.7466 8.89722L9.0466 15.4747C9.39231 15.831 9.38057 16.404 9.01965 16.7463C8.6626 17.091 8.0926 17.0797 7.75135 16.7197Z"})})}}},7208:function(e,n,i){"use strict";i.d(n,{Z:function(){return l}});var a=i(85893),t=i(67294);class l extends t.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,viewBox:"0 0 320 512",children:(0,a.jsx)("path",{d:"M193.94 256L296.5 153.44l21.15-21.15c3.12-3.12 3.12-8.19 0-11.31l-22.63-22.63c-3.12-3.12-8.19-3.12-11.31 0L160 222.06 36.29 98.34c-3.12-3.12-8.19-3.12-11.31 0L2.34 120.97c-3.12 3.12-3.12 8.19 0 11.31L126.06 256 2.34 379.71c-3.12 3.12-3.12 8.19 0 11.31l22.63 22.63c3.12 3.12 8.19 3.12 11.31 0L160 289.94 262.56 392.5l21.15 21.15c3.12 3.12 8.19 3.12 11.31 0l22.63-22.63c3.12-3.12 3.12-8.19 0-11.31L193.94 256z"})})}}},89912:function(e,n,i){"use strict";i.d(n,{Z:function(){return l}});var a=i(85893),t=i(67294);class l extends t.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,viewBox:"0 0 24 24",children:(0,a.jsxs)("g",{fillRule:"evenodd",children:[(0,a.jsx)("path",{d:"M19.174 11.59l-2.207-2.208 1.103-2.207 3.587 3.587a1.17 1.17 0 010 1.655l-4.415 4.416a1.17 1.17 0 01-1.655-1.656l3.587-3.587z",opacity:".56"}),(0,a.jsx)("path",{d:"M15.588 6.343a1.17 1.17 0 011.655 0l.828.828-9.658 9.657a1.17 1.17 0 01-1.655 0L5.93 16l9.658-9.657zm-4.14 3.035l-1.655 1.656-2.208-2.208-2.76 2.76 2.208 2.207L5.93 16l-3.587-3.587a1.17 1.17 0 010-1.655l4.415-4.415a1.17 1.17 0 011.655 0l3.036 3.035z"})]})})}}},43196:function(e,n,i){"use strict";i.d(n,{Z:function(){return l}});var a=i(85893),t=i(67294);class l extends t.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M17.9 17.39c-.26-.8-1.01-1.39-1.9-1.39h-1v-3a1 1 0 0 0-1-1H8v-2h2a1 1 0 0 0 1-1V7h2a2 2 0 0 0 2-2v-.41c2.93 1.18 5 4.05 5 7.41 0 2.08-.8 3.97-2.1 5.39M11 19.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.22.21-1.79L9 15v1a2 2 0 0 0 2 2m1-16A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2z"})})}}},26399:function(e,n,i){"use strict";i.d(n,{Z:function(){return l}});var a=i(85893),t=i(67294);class l extends t.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,viewBox:"0 0 512 512",children:(0,a.jsx)("path",{d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"})})}}},15203:function(e,n,i){"use strict";i.d(n,{Z:function(){return l}});var a=i(85893),t=i(67294);class l extends t.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,viewBox:"0 0 496 512",children:(0,a.jsx)("path",{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"})})}}},15672:function(e,n,i){"use strict";i.d(n,{Z:function(){return l}});var a=i(85893),t=i(67294);class l extends t.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,viewBox:"0 0 200 200",fill:"none",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.742 66.824c-18.323 18.323-18.323 48.029 0 66.352l53.082 53.082c18.323 18.323 48.029 18.323 66.352 0l53.082-53.082c18.323-18.323 18.323-48.03 0-66.352l-53.082-53.082c-18.323-18.323-48.03-18.323-66.352 0L13.742 66.824zm109.481 56.399c12.826-12.826 12.826-33.62 0-46.446s-33.62-12.826-46.446 0-12.826 33.62 0 46.446 33.62 12.826 46.446 0z"})})}}},41183:function(e,n,i){"use strict";i.d(n,{Z:function(){return l}});var a=i(85893),t=i(67294);class l extends t.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"})})}}},86898:function(e,n,i){"use strict";i.d(n,{Z:function(){return l}});var a=i(85893),t=i(67294);class l extends t.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,viewBox:"0 0 448 512",children:(0,a.jsx)("path",{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"})})}}},82963:function(e,n,i){"use strict";i.d(n,{Z:function(){return l}});var a=i(85893),t=i(67294);class l extends t.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 40 40",children:(0,a.jsx)("path",{stroke:"currentColor",d:"M5 15.6814H13.75M35 15.6814H24.1667H13.75M13.75 6.50977V15.6814M24.1667 33.4449L29.9715 33.478C32.744 33.4938 35 31.2494 35 28.4754V11.5125C35 8.74955 32.7614 6.50977 30 6.50977H10C7.23858 6.50977 5 8.74955 5 11.5125V28.4878C5 31.257 7.24839 33.4994 10.0161 33.4905L13.75 33.4785L24.1667 33.4449Z",strokeWidth:"2.5",strokeLinecap:"round"})})}}},55174:function(e,n,i){"use strict";i.d(n,{Z:function(){return l}});var a=i(85893),t=i(67294);class l extends t.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:(0,a.jsx)("path",{d:"M21 21L15.8091 15.8091M18 10.5C18 14.6421 14.6421 18 10.5 18C6.35786 18 3 14.6421 3 10.5C3 6.35786 6.35786 3 10.5 3C14.6421 3 18 6.35786 18 10.5Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}}},44333:function(e,n,i){"use strict";i.d(n,{Z:function(){return l}});var a=i(85893),t=i(67294);class l extends t.Component{render(){return(0,a.jsxs)("svg",{className:this.props.className,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M14.2953 4.58698C13.9301 4.37611 13.683 4.00814 13.626 3.59028L13.4336 2.17939C13.3415 1.50373 12.7644 1 12.0825 1L9.91765 1C9.23573 1 8.65865 1.50373 8.56652 2.17939L8.37412 3.5903C8.31709 4.00849 8.06963 4.37672 7.70395 4.58749L7.0923 4.94003C6.72723 5.15046 6.28538 5.18029 5.89533 5.02084L4.57791 4.48227C3.9467 4.22423 3.22192 4.47214 2.88096 5.06269L1.79854 6.9375C1.45758 7.52805 1.60528 8.27969 2.14436 8.69731L3.26948 9.56895C3.60259 9.82701 3.79768 10.2246 3.79799 10.646L3.7985 11.3519C3.7988 11.774 3.60364 12.1724 3.26999 12.4309L2.14433 13.3029C1.60525 13.7205 1.45755 14.4722 1.79851 15.0627L2.88093 16.9375C3.22189 17.5281 3.94667 17.776 4.57788 17.518L5.89588 16.9792C6.28624 16.8196 6.72847 16.8496 7.0937 17.0604L7.70483 17.4133C8.07006 17.6241 8.31718 17.9921 8.37416 18.41L8.56652 19.8206C8.65865 20.4963 9.23573 21 9.91765 21L12.0825 21C12.7644 21 13.3415 20.4963 13.4336 19.8206L13.626 18.4098C13.683 17.9916 13.9305 17.6234 14.2962 17.4127L14.9077 17.0602C15.2728 16.8497 15.7146 16.8199 16.1047 16.9794L17.4221 17.5179C18.0533 17.776 18.7781 17.5281 19.119 16.9375L20.2015 15.0627C20.5424 14.4721 20.3947 13.7205 19.8557 13.3029L18.7305 12.4312C18.3974 12.1732 18.2023 11.7756 18.202 11.3542L18.2015 10.6483C18.2012 10.2263 18.3964 9.82784 18.73 9.56935L19.8556 8.69734C20.3947 8.27972 20.5424 7.52809 20.2014 6.93753L19.119 5.06272C18.7781 4.47217 18.0533 4.22427 17.4221 4.48231L16.1042 5.02106C15.7138 5.18064 15.2716 5.15063 14.9064 4.93976L14.2953 4.58698Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M13.3619 12.3637C12.6088 13.6681 10.9408 14.1151 9.63638 13.362C8.33195 12.6088 7.88502 10.9409 8.63813 9.63643C9.39125 8.33199 11.0592 7.88506 12.3637 8.63818C13.6681 9.39129 14.115 11.0593 13.3619 12.3637Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}}},62482:function(e,n,i){"use strict";i.d(n,{Z:function(){return l}});var a=i(85893),t=i(67294);class l extends t.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M10.643 13.346L4.26862 4.86856C3.85863 4.32329 4.2478 3.54408 4.93001 3.54431L7.2184 3.54508C7.47633 3.54517 7.71945 3.66557 7.87585 3.87066L12.9065 10.4675M10.643 13.346L5.19311 20.5093M10.643 13.346L15.8028 20.077C15.9588 20.2805 16.2003 20.4001 16.4567 20.4009L18.7925 20.4082C19.4778 20.4104 19.8683 19.6261 19.4536 19.0805L12.9065 10.4675M12.9065 10.4675L18.2181 3.50928",strokeWidth:"1.5",strokeLinecap:"round"})})}}},84389:function(e,n,i){"use strict";i.d(n,{Z:function(){return l}});var a=i(85893),t=i(67294);class l extends t.Component{render(){return(0,a.jsxs)("svg",{className:this.props.className,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M2.5 19.25C2.5 15.5221 5.52208 12.5 9.25 12.5V12.5C12.9779 12.5 16 15.5221 16 19.25V19.5C16 20.6046 15.1046 21.5 14 21.5H4.5C3.39543 21.5 2.5 20.6046 2.5 19.5V19.25Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M12.75 6C12.75 7.933 11.183 9.5 9.25 9.5C7.317 9.5 5.75 7.933 5.75 6C5.75 4.067 7.317 2.5 9.25 2.5C11.183 2.5 12.75 4.067 12.75 6Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M19 7.5V10.5M19 10.5V13.5M19 10.5H16M19 10.5H22",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}}},41747:function(e,n,i){"use strict";i.d(n,{Z:function(){return l}});var a=i(85893),t=i(67294);class l extends t.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,viewBox:"0 0 576 512",children:(0,a.jsx)("path",{d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"})})}}},92695:function(e,n,i){"use strict";var a=i(85893),t=i(36518);let l=e=>{let{children:n,type:i="scroll"}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n.ScrollAreaRoot {\n  width: 100%;\n  --scrollbar-size: 2px;\n  overflow: auto;\n}\n\n.ScrollAreaViewport {\n  width: 100%;\n  height: 100%;\n  border-radius: inherit;\n}\n\n.ScrollAreaScrollbar {\n  display: flex;\n  /* ensures no selection */\n  user-select: none;\n  /* disable browser handling of all panning and zooming gestures on touch devices */\n  touch-action: none;\n  padding: 5px;\n  transition: background 160ms ease-out;\n}\n\n.ScrollAreaScrollbar[data-orientation='vertical'] {\n  width: 5px;\n}\n.ScrollAreaScrollbar[data-orientation='horizontal'] {\n  flex-direction: column;\n  height: 5px;\n}\n\n.ScrollAreaThumb {\n  flex: 1;\n  border-radius: 20px;\n  position: relative;\n}\n.ScrollAreaThumb::before {\n  background: #E2E8F0;\n  content: '';\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  width: 100%;\n  height: 100%;\n  border-radius: 20px;\n  min-width: 9px;\n  min-height: 9px;\n}\n.dark .ScrollAreaThumb::before {\n  background: #475569;\n}\n"}}),(0,a.jsxs)(t.fC,{type:i,className:"ScrollAreaRoot",children:[(0,a.jsx)(t.l_,{className:"ScrollAreaViewport",children:n}),(0,a.jsx)(t.LW,{className:"ScrollAreaScrollbar",orientation:"vertical",children:(0,a.jsx)(t.bU,{className:"ScrollAreaThumb"})}),(0,a.jsx)(t.LW,{className:"ScrollAreaScrollbar",orientation:"horizontal",children:(0,a.jsx)(t.bU,{className:"ScrollAreaThumb"})}),(0,a.jsx)(t.Ns,{className:"ScrollAreaCorner"})]})]})};n.Z=l},74162:function(e,n,i){"use strict";i.d(n,{Fn:function(){return c},nL:function(){return m}});var a=i(85893),t=i(67294),l=i(36808),d=i.n(l),o=i(79248);let r=()=>{},s=(0,t.createContext)({publication:null,isUserThemeDark:!1,isDarkTheme:!1,toggleTheme:r,post:null,mutatePost:r,mutatePublication:r,series:null}),m=e=>{let n=(e,n)=>{if(n._id)return{...n};let i={...e},a=Object.keys(n);for(let e=0;e<a.length;e++)i[a[e]]=n[a[e]];return i},{children:i,publication:l=null,isUserThemeDark:r=!1,darkTheme:m=!1,post:c=null,series:u=null}=e,[k,h]=(0,t.useState)(m),[v,p]=(0,t.useReducer)(n,c),[f,b]=(0,t.useState)(l),g=()=>{var e;let n=!k;d().set("isDarkTheme",n?"true":"false",{expires:36500}),n?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),null===(e=document.querySelector("[".concat(o.dO,"]")))||void 0===e||e.setAttribute(o.dO,k?"light":"dark"),h(e=>!e)};return(0,a.jsx)(s.Provider,{value:{publication:f,isUserThemeDark:r,isDarkTheme:k,toggleTheme:g,post:v,mutatePost:p,mutatePublication:b,series:u},children:i})};m.defaultProps={series:null};let c=()=>(0,t.useContext)(s)},24174:function(e,n,i){"use strict";var a=i(85893);i(67294);var t=i(9008),l=i.n(t),d=i(25935),o=i(93314);n.Z=function(e){let{title:n,description:i,links:t,pageType:r,bannerType:s,url:m,ogTitle:c,ogSiteName:u,ogDescription:k,ogImage:h,twitterImage:v,twitterHandle:p,monetization:f,style:b,isDelisted:g,amaCreator:x,nextPage:N,prevPage:w,children:S,hljs:j=!1,customHeadItems:F,author:y}=e,C=(0,o.TI)(),T=t.map(e=>(0,a.jsx)("link",{rel:e.rel,href:e.href},e.href)),L=y&&y.name&&y.username?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("meta",{name:"author",content:y.name}),"article"===r?(0,a.jsx)("meta",{property:"article:author",content:"".concat(C,"/@").concat(y.username)}):null,(0,a.jsx)("link",{rel:"author",href:"".concat(C,"/@").concat(y.username)})]}):null,V=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"https://cdn.hashnode.com/res/hashnode/image/upload/v1611242155728/W3_BYVVVh.png"}),(0,a.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"https://cdn.hashnode.com/res/hashnode/image/upload/v1611242173172/AOX1gE2jc.png"}),(0,a.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"https://cdn.hashnode.com/res/hashnode/image/upload/v1611242187756/TRTNYp32O.png"}),(0,a.jsx)("link",{rel:"mask-icon",href:"/static/images/brand/safari-pinned-tab-new.svg",color:"#2962ff"}),(0,a.jsx)("meta",{name:"msapplication-TileColor",content:"#ffffff"}),(0,a.jsx)("meta",{name:"theme-color",content:"#ffffff"})]});return(0,a.jsxs)(l(),{children:[(0,a.jsx)("meta",{charSet:"UTF-8"},"charset"),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, shrink-to-fit=no"},"viewport"),(0,a.jsx)("meta",{name:"image",property:"og:image",content:h||"https://cdn.hashnode.com/res/hashnode/image/upload/v1644938661983/J7uY6EVhp.png?auto=compress"},"ogImage"),T,(0,a.jsx)("title",{children:n},"title"),(0,a.jsx)("meta",{name:"description",content:i||""},"description"),(0,a.jsx)("meta",{property:"og:title",content:c||n},"ogTitle"),(0,a.jsx)("meta",{property:"og:description",content:k||i||""},"ogDescription"),(0,a.jsx)("meta",{property:"og:site_name",content:u||"Hashnode"},"ogSiteName"),(0,a.jsx)("meta",{property:"og:type",content:r||"website"},"ogType"),(0,a.jsx)("meta",{property:"og:url",content:m},"ogUrl"),L,F.customFavicon?(0,a.jsx)("link",{rel:"icon",type:"image/png",href:F.customFavicon}):V,(0,a.jsx)("meta",{name:"theme-color",content:F.customTheme||"#f6f7fb"}),F.customMeta&&(0,d.ZP)(F.customMeta),(0,a.jsx)("meta",{property:"twitter:card",content:"large"===s?"summary_large_image":"summary"},"twitterCard"),(0,a.jsx)("meta",{property:"twitter:title",content:c||n},"twitterTitle"),(0,a.jsx)("meta",{property:"twitter:description",content:k||i||""},"twitterDescription"),(0,a.jsx)("meta",{property:"twitter:image",content:v},"twitterImage"),"article"===r&&p?(0,a.jsx)("meta",{property:"twitter:creator",content:p},"twitterHandle"):"profile"===r&&p?(0,a.jsx)("meta",{property:"twitter:creator:id",content:p},"twitterHandleId"):null,(null==b?void 0:b.cssText)?(0,a.jsx)("style",{type:b.type,children:b.cssText}):null,f?(0,a.jsx)("meta",{name:"monetization",content:f},"monetization"):null,g?(0,a.jsx)("meta",{name:"robots",content:"noindex"},"isDelisted"):null,x?(0,a.jsx)("meta",{name:"twitter:creator",content:x},"twitterHandle"):null,N?(0,a.jsx)("meta",{name:"nextPage",content:N}):null,w?(0,a.jsx)("meta",{name:"prevPage",content:w}):null,j?(0,a.jsx)("style",{children:"/* Monkai theme */\n          ".concat(".hljs{display:block;overflow-x:auto;padding:.5em;background:#23241f}.hljs,.hljs-subst,.hljs-tag{color:#f8f8f2}.hljs-emphasis,.hljs-strong{color:#a8a8a2}.hljs-bullet,.hljs-link,.hljs-literal,.hljs-number,.hljs-quote,.hljs-regexp{color:#ae81ff}.hljs-code,.hljs-section,.hljs-selector-class,.hljs-title{color:#a6e22e}.hljs-strong{font-weight:700}.hljs-emphasis{font-style:italic}.hljs-attr,.hljs-keyword,.hljs-name,.hljs-selector-tag{color:#f92672}.hljs-attribute,.hljs-symbol{color:#66d9ef}.hljs-class .hljs-title,.hljs-params{color:#f8f8f2}.hljs-addition,.hljs-built_in,.hljs-builtin-name,.hljs-selector-attr,.hljs-selector-id,.hljs-selector-pseudo,.hljs-string,.hljs-template-variable,.hljs-type,.hljs-variable{color:#e6db74}.hljs-comment,.hljs-deletion,.hljs-meta{color:#75715e}","\n            /* Monkai theme ends */")}):null,(null==F?void 0:F.customTheme)?(0,a.jsxs)("style",{children:[":root ","{ --color-custom-header: ".concat(F.customTheme,"; }")]}):null,S||null,(0,a.jsx)("link",{rel:"alternate",type:"application/rss+xml",title:"RSS Feed for ".concat(n),href:"".concat(m,"/rss.xml")})]})}},15654:function(e,n,i){"use strict";var a=i(54811),t=i(92432);n.Z=function(e,n){var i;let[{data:l,fetching:d}]=(0,t.aM)({query:a.en,variables:{publicationId:n},pause:!e});return{canUpdatePublication:(null==l?void 0:null===(i=l.me)||void 0===i?void 0:i.canUpdatePublication)||!1,loading:d}}},81651:function(e,n,i){"use strict";var a=i(8100),t=i(85550);let l=async e=>{var n;let i=new t.Z(e,{});await i.exec();let a=await (null===(n=i.rawResponse)||void 0===n?void 0:n.json());return null==a?void 0:a.user};n.Z=function(){return(0,a.ZP)("/api/user",l,{revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshWhenOffline:!1,shouldRetryOnError:!1,refreshWhenHidden:!1,refreshInterval:0})}},66667:function(e,n,i){"use strict";i.d(n,{kO:function(){return s},wC:function(){return r}});var a=i(8100),t=i(81651),l=i(85550),d=i(7755),o=i(45470);let r=async e=>{var n;let{requestURL:i,requestBody:a}=e,t=new l.Z(i,{method:"POST",body:JSON.stringify(a),credentials:"same-origin"});return await t.exec(),null===(n=t.rawResponse)||void 0===n?void 0:n.status},s=async e=>{let{isNewFollow:n,type:i,currentUser:a,followEventOrigin:t}=e,l={user_id:a._id,event_type:"follow_user_or_blog",time:new Date().getTime(),event_properties:{action:n?"follow-".concat(i):"unfollow-".concat(i),origin:t,hostname:window.location.hostname,url:window.location.pathname},user_properties:{username:a.username,email:a.email,photo:a.photo||"",dateJoined:a.dateJoined||""}};await (0,o.e)().sendEventToAmplitude(l)},m=e=>{var n,i;let{publication:l,followEventOrigin:o,recommendedByPublicationId:m,showSuccessToast:c=!0,showErrorToast:u=!0}=e,{author:k}=l,{data:h,isValidating:v}=(0,t.Z)(),p=l._id||l.id,f=k._id||k.id,b=h&&f!==h._id.toString(),g=h?l.isTeam?"/ajax/publication/".concat(p,"/follow-state"):b?"/ajax/user/".concat(k.username,"/follow-state"):null:null,{data:x,isValidating:N,mutate:w,error:S}=(0,a.ZP)(g,async()=>{if(!g)return;let e=await fetch(g,{credentials:"same-origin"});if(!e.ok)throw Error("Failed to fetch follow state");let n=await e.json();return n},{revalidateOnFocus:!1,revalidateOnMount:!0,revalidateOnReconnect:!1}),j=l.isTeam?!!(null==x?void 0:null===(n=x.publication)||void 0===n?void 0:n.beingFollowed):!!(null==x?void 0:null===(i=x.profile)||void 0===i?void 0:i.beingFollowed),F=()=>{var e,n;let i=x;return l.isTeam?i.publication.beingFollowed=!(null===(e=x.publication)||void 0===e?void 0:e.beingFollowed):i.profile.beingFollowed=!(null===(n=x.profile)||void 0===n?void 0:n.beingFollowed),i},y=async()=>{if(!h||!b)return;let e=F();await w({...e},!1);let n=l.isTeam?"/ajax/publication/follow":"/ajax/user/follow",i=l.isTeam?{publicationId:p.toString(),recommendedBy:null==m?void 0:m.toString()}:{userId:f.toString(),recommendedBy:null==m?void 0:m.toString()},a=await r({requestURL:n,requestBody:i}),t=l.isTeam?e.publication.beingFollowed:e.profile.beingFollowed;if(s({isNewFollow:t,type:l.isTeam?"blog":"user",followEventOrigin:o,currentUser:h}),200===a){if(t){if(!c)return;let e=l.isTeam?"You just followed ".concat(l.title||"".concat(k.name,"'s Blog"),'. We\'ll show future articles from them on your <a target="_blank" href="https://hashnode.com"><span style=\'font-weight: bold; text-decoration: underline\'>Hashnode feed.</span></a>'):"You just followed ".concat(k.name,'. We\'ll show future articles from them on your <a target="_blank" href="https://hashnode.com"><span style=\'font-weight: bold; text-decoration: underline\'>Hashnode feed.</span></a>');(0,d.C)("success","",e)}}else{let e=F();if(await w({...e},!1),u)(0,d.C)("error","","There was an error processing this request, refresh and try again.");else throw Error("There was an error processing this request, refresh and try again.")}};return{handleFollowUserOrPub:y,isFollowing:j,isWaitingForInitialUserValidation:void 0===h,isValidating:N,isLoading:!S&&!x,isValidatingUserForFollow:v}};n.ZP=m},14437:function(e,n,i){"use strict";i.d(n,{d:function(){return d}});var a=i(67294),t=i(20745);let l=null;function d(){let[e,n]=(0,a.useState)(!1),i=()=>{null==l||l.unmount(),l=null,n(!1)},d=e=>{let i=document.getElementById("hn-modal");i&&!l&&(l=(0,t.createRoot)(i)),null==l||l.render(e),n(!0)};return{isModalOpen:e,closeModal:i,openModal:d}}},83017:function(e,n,i){"use strict";i.d(n,{i:function(){return r}});var a=i(67294),t=i(23279),l=i.n(t),d=i(64529);let o=()=>{let e=document.documentElement.clientWidth>=768;return e},r=(0,d.Ue)((e,n)=>({element:null,setElement:n=>{e({element:n})},setPositioning:e=>{let{element:i}=n();i&&o()&&requestAnimationFrame(()=>{i.style.position=e})},translateElement:e=>{let{element:i}=n();i&&o()&&requestAnimationFrame(()=>{i.style.transform="translateY(".concat("zero"===e?"0":"-100","%)")})}})),s=e=>{let{elRef:n}=e,[i,t]=(0,a.useState)(!1),{setElement:d}=r(),o=(0,a.useRef)({prevScrollTop:0}),s=()=>{var e;let i=null===(e=n.current)||void 0===e?void 0:e.getBoundingClientRect();return(null==i?void 0:i.top)||0},m=e=>{n.current&&(n.current.style.transform="translateY(".concat(e,"px)"))},c=()=>{let{prevScrollTop:e}=o.current,n=window.scrollY;return n-e},u=e=>{var i;let{headerTop:a,scrollDistance:t}=e,l=((null===(i=n.current)||void 0===i?void 0:i.offsetHeight)||0)+30;return Math.max(Math.min(a+(t<0?Math.abs(t):-Math.abs(t))*1,0),-l)},k=()=>{let e=window.scrollY,n=s(),i=c(),a=u({headerTop:n,scrollDistance:i});m(a),o.current.prevScrollTop=e},h=()=>{o.current.animation=requestAnimationFrame(k)};(0,a.useEffect)(()=>{n.current&&d(n.current)},[]),(0,a.useEffect)(()=>(i?window.addEventListener("scroll",h,{passive:!0}):(window.removeEventListener("scroll",h),n.current&&(n.current.style.transform="translateY(0px)")),()=>{window.removeEventListener("scroll",h),o.current.animation&&cancelAnimationFrame(o.current.animation)}),[i]),(0,a.useEffect)(()=>{let e=l()(()=>{t(window.innerWidth>=768)},300);return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[])};n.Z=s},21001:function(e,n,i){"use strict";i.d(n,{V:function(){return o}});var a=i(85893),t=i(16266),l=i(77325);let d={theme:{label:"Toggle blog theme",buttonClassName:"blog-theme-switcher",tooltipText:"Toggle theme",tooltipClassName:"blog-theme-tooltip"},search:{label:"Open blog search",buttonClassName:"blog-search-button",tooltipText:"Search blog",tooltipClassName:"blog-search-tooltip"},leftSidebar:{label:"Open blog links",buttonClassName:"blog-bars-button",tooltipText:"Blog menu",tooltipClassName:"blog-sidebar-tooltip"}},o=e=>{let{isUserThemeDark:n,headerColor:i}=e;return(0,t.d)("focus-ring-base flex flex-row items-center rounded-full font-medium transition duration-100 ease-in-out",n?"focus-ring-colors-dark-header hover:bg-white/20":i?"focus-ring-colors-light-header hover:bg-black/10":"focus-ring-colors-base hover:bg-black/10 dark:hover:bg-white/20")},r=e=>{let{handleClick:n,isUserThemeDark:i,headerColor:r,variant:s,btnRef:m,children:c}=e,{label:u,buttonClassName:k,tooltipClassName:h,tooltipText:v}=d[s],p=o({isUserThemeDark:i,headerColor:r});return(0,a.jsx)(l.Z,{tooltipClassName:h,tooltipText:v,headerColor:r,children:(0,a.jsx)("button",{type:"button","aria-label":u,className:(0,t.d)(k,p,"mr-2 p-2"),onClick:n,ref:m,children:c})})};n.Z=r},77325:function(e,n,i){"use strict";var a=i(85893),t=i(74162),l=i(77145),d=i(16266);let o=e=>{let{headerColor:n,tooltipClassName:i,tooltipText:o,children:r}=e,{isUserThemeDark:s}=(0,t.Fn)();return(0,a.jsx)(l.zt,{delayDuration:800,children:(0,a.jsxs)(l.fC,{children:[(0,a.jsx)(l.xz,{asChild:!0,children:r}),(0,a.jsx)(l.h_,{children:(0,a.jsx)(l.VY,{className:(0,d.d)(i,"z-50 rounded-md px-3 py-2 text-xs",s?"bg-slate-50 text-slate-900":n?"bg-slate-800 text-white":"bg-slate-800 text-white dark:bg-white dark:text-slate-900"),side:"bottom",align:"center",avoidCollisions:!0,sideOffset:8,children:o})})]})})};n.Z=o},8906:function(e,n,i){"use strict";var a=i(85893),t=i(27724),l=i(74162),d=i(5714),o=i(16266),r=i(70474);let s={xs:"text-base text-left",sm:"text-lg md:text-xl text-left",lg:"text-xl md:text-2xl text-left",xl:"text-2xl text-center"},m={xs:"w-44",sm:"w-44",lg:"w-64",xl:"w-64"},c=e=>{let{publication:n,logoSrc:i,size:l="lg",isPostPage:s,isUserThemeDark:c}=e,u=(0,r.nm)(n);return(0,a.jsx)("h1",{className:"blog-main-logo",children:(0,a.jsx)("a",{className:(0,o.d)("blog-logo focus-ring-base flex flex-row items-center",c?"focus-ring-colors-dark-header":n.headerColor?"focus-ring-colors-light-header":"focus-ring-colors-base",m[l]),"aria-label":"".concat(u," home page"),href:"/".concat(s?"?source=top_nav_blog_home":""),children:(0,a.jsx)(t.Z,{priority:!0,objectFit:"contain",className:"block w-full",src:(0,d.tg)(i,{w:1e3,h:250}),originalSrc:i||"",width:1e3,height:250,alt:u})})})},u=e=>{let{publication:n,isUserThemeDark:i,size:l="lg",withProfileImage:m=!1,isPostPage:c}=e,u=(0,r.nm)(n);return(0,a.jsx)("h1",{className:(0,o.d)("blog-title",s[l],"break-words font-heading font-semibold leading-snug md:font-bold",i?"text-white":n.headerColor?"text-black":"dark:text-white"),children:(0,a.jsxs)("a",{href:"/".concat(c?"?source=top_nav_blog_home":""),className:(0,o.d)("focus-ring-base flex flex-row items-center",i?"focus-ring-colors-dark-header":n.headerColor?"focus-ring-colors-light-header":"focus-ring-colors-base"),"aria-label":"".concat(u," home page"),children:[!n.isTeam&&n.author.profilePicture&&m&&(0,a.jsx)("div",{className:"mr-2 h-10 w-10 shrink-0 overflow-hidden rounded-full",children:(0,a.jsx)(t.Z,{priority:!0,src:(0,d.tg)(n.author.profilePicture,{w:400,h:400,c:"face"}),originalSrc:n.author.profilePicture,blurDataURL:(0,d.nM)((0,d.tg)(n.author.profilePicture,{w:400,h:400,c:"face"})),width:400,height:400,alt:n.author.name})}),u]})})};n.Z=function(e){var n,i;let{publication:t,size:d,withProfileImage:o,isPostPage:r}=e,{preferences:s}=t,{isDarkTheme:m,isUserThemeDark:k}=(0,l.Fn)();if(!t)return null;let h=(null===(n=s.darkMode)||void 0===n?void 0:n.logo)&&m,v=h||s.logo;if(v){let e=h?null===(i=s.darkMode)||void 0===i?void 0:i.logo:s.logo;return(0,a.jsx)(c,{publication:t,logoSrc:e,size:d,isPostPage:r,isUserThemeDark:k})}return(0,a.jsx)(u,{publication:t,size:d,withProfileImage:o,isUserThemeDark:k,isPostPage:r})}},26041:function(e,n,i){"use strict";i.d(n,{Z:function(){return g}});var a=i(85893),t=i(62482),l=i(41183),d=i(15203),o=i(41747),r=i(15672),s=i(89912),m=i(43196),c=i(86898),u=i(67294);class k extends u.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,viewBox:"0 0 448 512",children:(0,a.jsx)("path",{d:"M433 179.11c0-97.2-63.71-125.7-63.71-125.7-62.52-28.7-228.56-28.4-290.48 0 0 0-63.72 28.5-63.72 125.7 0 115.7-6.6 259.4 105.63 289.1 40.51 10.7 75.32 13 103.33 11.4 50.81-2.8 79.32-18.1 79.32-18.1l-1.7-36.9s-36.31 11.4-77.12 10.1c-40.41-1.4-83-4.4-89.63-54a102.54 102.54 0 0 1-.9-13.9c85.63 20.9 158.65 9.1 178.75 6.7 56.12-6.7 105-41.3 111.23-72.9 9.8-49.8 9-121.5 9-121.5zm-75.12 125.2h-46.63v-114.2c0-49.7-64-51.6-64 6.9v62.5h-46.33V197c0-58.5-64-56.6-64-6.9v114.2H90.19c0-122.1-5.2-147.9 18.41-175 25.9-28.9 79.82-30.8 103.83 6.1l11.6 19.5 11.6-19.5c24.11-37.1 78.12-34.8 103.83-6.1 23.71 27.3 18.4 53 18.4 175z"})})}}var h=i(26399);class v extends u.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,viewBox:"0 0 448 512",children:(0,a.jsx)("path",{d:"M80 368c17.645 0 32 14.355 32 32s-14.355 32-32 32-32-14.355-32-32 14.355-32 32-32m0-48c-44.183 0-80 35.817-80 80s35.817 80 80 80 80-35.817 80-80-35.817-80-80-80zm367.996 147.615c-6.449-237.834-198.057-429.163-435.61-435.61C5.609 31.821 0 37.229 0 44.007v24.02c0 6.482 5.147 11.808 11.626 11.992 211.976 6.04 382.316 176.735 388.354 388.354.185 6.479 5.51 11.626 11.992 11.626h24.02c6.78.001 12.187-5.608 12.004-12.384zm-136.239-.05C305.401 305.01 174.966 174.599 12.435 168.243 5.643 167.977 0 173.444 0 180.242v24.024c0 6.431 5.072 11.705 11.497 11.98 136.768 5.847 246.411 115.511 252.258 252.258.275 6.425 5.549 11.497 11.98 11.497h24.024c6.797-.001 12.264-5.644 11.998-12.436z"})})}}var p=i(74162),f=i(16266),b=function(e){let{href:n,headerColor:i=null,isUserThemeDark:t,labelText:l,children:d,isSidebar:o}=e;return(0,a.jsx)("a",{href:n,"aria-label":l,target:"_blank",rel:"me noopener",className:(0,f.d)("focus-ring-base flex flex-row items-center justify-center rounded-full p-2 transition-colors duration-150",o?t?"ring-slate-950/80 ring-offset-white hover:bg-white/20 dark:ring-white/80 dark:ring-offset-slate-800":i?"ring-slate-950/80 ring-offset-white hover:bg-black/10 dark:ring-white/80 dark:ring-offset-slate-800":"ring-blue-600 ring-offset-white hover:bg-black/10 dark:ring-offset-slate-800 dark:hover:bg-white/20":"",o?"":t?"focus-ring-colors-dark-header hover:bg-white/20":i?"focus-ring-colors-light-header hover:bg-black/10":"focus-ring-colors-base hover:bg-black/10 dark:hover:bg-white/20"),children:d})},g=function(e){let{links:n,headerColor:i,isSidebar:u}=e,{isUserThemeDark:g}=(0,p.Fn)(),x={twitter:{icon:(0,a.jsx)(t.Z,{className:"h-5 w-5 stroke-current"}),labelText:"Find me on Twitter, external website, opens in new tab"},instagram:{icon:(0,a.jsx)(l.Z,{className:"h-5 w-5 fill-current"}),labelText:"Find me on Instagram, external website, opens in new tab"},github:{icon:(0,a.jsx)(d.Z,{className:"h-5 w-5 fill-current"}),labelText:"Find me on Github, opens in new tab"},youtube:{icon:(0,a.jsx)(o.Z,{className:"h-5 w-5 fill-current"}),labelText:"Subscribe to my channel on YouTube, external website, opens in new tab"},hashnode:{icon:(0,a.jsx)(r.Z,{className:"h-5 w-5 fill-current"}),labelText:"Find me on Hashnode, external website, opens in new tab"},dailydev:{icon:(0,a.jsx)(s.Z,{className:"h-5 w-5 fill-current"}),labelText:"Find me on daily.dev, external website, opens in new tab"},website:{icon:(0,a.jsx)(m.Z,{className:"h-5 w-5 fill-current"}),labelText:"Check out my website, external website, opens in new tab"},linkedin:{icon:(0,a.jsx)(c.Z,{className:"h-5 w-5 fill-current"}),labelText:"Find me on LinkedIn, external website, opens in new tab"},mastodon:{icon:(0,a.jsx)(k,{className:"h-5 w-5 fill-current"}),labelText:"Find me on Mastodon, external website, opens in new tab"},facebook:{icon:(0,a.jsx)(h.Z,{className:"h-5 w-5 fill-current"}),labelText:"Find me on Facebook, external website, opens in new tab"}};return(0,a.jsx)(a.Fragment,{children:n&&(n.twitter||n.mastodon||n.instagram||n.github||n.website||n.hashnode||n.youtube||n.dailydev||n.linkedin||n.facebook)?(0,a.jsxs)("div",{className:(0,f.d)("blog-social-media-section","flex flex-row flex-wrap gap-y-2",u?"gap-x-6 gap-y-4 text-slate-600 dark:text-slate-200":g?"justify-center gap-x-1.5 text-white":i?"justify-center gap-x-1.5 text-slate-800":"justify-center gap-x-1.5 text-slate-700 dark:text-slate-300"),children:[Object.entries(n).filter(e=>"__typename"!==e[0]).map(e=>{let n=e[0],t=e[1];return t?(0,a.jsx)(b,{href:t,labelText:x[n].labelText,headerColor:i,isUserThemeDark:g,isSidebar:!!u,children:x[n].icon},n):null}),(0,a.jsx)(b,{href:"/rss.xml",labelText:"Open blog XML Feed, opens in new tab",headerColor:i,isUserThemeDark:g,isSidebar:!!u,children:(0,a.jsx)(v,{className:"h-5 w-5 fill-current"})},"rss")]}):null})}},27744:function(e,n,i){"use strict";i.d(n,{d:function(){return t}});var a=i(64529);let t=(0,a.Ue)(e=>({mailSent:!1,setMailSent:n=>e({mailSent:n})}))},66933:function(e,n,i){"use strict";i.d(n,{Z:function(){return eV}});var a=i(85893),t=i(5152),l=i.n(t),d=i(67294),o=i(74162),r=i(36808),s=i.n(r),m=i(62830),c=i.n(m),u=i(45470),k=i(94743),h=i(81651),v=function(e){let{data:n}=(0,h.Z)(),[i,a]=(0,d.useState)(!1),{publicationId:t,postId:l,postCUID:o,seriesId:r,staticPageId:m,gaTrackingID:v}=e;return(0,d.useEffect)(()=>{if(void 0!==n&&!i){a(!0);let e=n&&n._id,i=e?n.username:null;if(!i){let e=s().get("hn-cookie-username");e||(e=c()(),s().set("hn-cookie-username",e,{expires:365})),i=e}(0,u.e)().trackPageView({publicationId:t,postId:l,seriesId:r,staticPageId:m}),(0,u.e)().logPageView(),v&&(0,u.e)(v).logPageView();let d={event_type:"pageview",time:new Date().getTime(),event_properties:{hostname:window.location.hostname,url:window.location.pathname,eventType:"pageview",isLoggedIn:e?1:0,publicationId:t,postCUID:o,dateAdded:new Date().getTime(),referrer:window.document.referrer,source:(0,k.getParameterByName)("source")||""}};e&&(d.user_id=n._id,d.user_properties={username:n.username,email:n.email,photo:n.photo||"",dateJoined:n.dateJoined||""}),document.platform&&(d.event_properties.platform=document.platform,d.event_properties.isMobile=!0),(0,u.e)().sendEventToAmplitude(d),-1===window.location.hostname.indexOf("localhost")&&window.fbq&&window.fbq("trackCustom","PageView".concat(n?"LoggedIn":"LoggedOut"))}},[n,i]),null},p=i(5230),f=i(15654),b=i(83017),g=i(21001),x=i(77325);class N extends d.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M20.9889 11.9969H11.9945H3M20.9889 17.8745H3M21 6.12451H3",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}}let w=l()(()=>i.e(1985).then(i.bind(i,71985)),{loadableGenerated:{webpack:()=>[71985]},ssr:!1}),S=e=>{let{isUserThemeDark:n,publication:i}=e,t=(0,d.useRef)(null),[l,o]=(0,d.useState)(!1),r=()=>{o(!l)};return(0,a.jsxs)(a.Fragment,{children:[l?(0,a.jsx)(w,{publication:i,toggleSidebar:r,triggerRef:t}):null,(0,a.jsx)(g.Z,{isUserThemeDark:n,headerColor:i.headerColor,handleClick:r,variant:"leftSidebar",btnRef:t,children:(0,a.jsx)(N,{className:"h-6 w-6 stroke-current"})})]})};var j=i(55174);let F=l()(()=>Promise.all([i.e(8820),i.e(5772),i.e(5889)]).then(i.bind(i,65889)),{loadableGenerated:{webpack:()=>[65889]},ssr:!1}),y=e=>{let{isUserThemeDark:n,publication:i}=e,[t,l]=(0,d.useState)(!1),o=(0,d.useRef)(null),r=()=>{l(!t)};return(0,a.jsxs)(a.Fragment,{children:[t?(0,a.jsx)(F,{publication:i,toggleSearchUI:r,triggerRef:o}):null,(0,a.jsx)(g.Z,{isUserThemeDark:n,handleClick:r,headerColor:i.headerColor,variant:"search",btnRef:o,children:(0,a.jsx)(j.Z,{className:"h-6 w-6 stroke-current"})})]})};class C extends d.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,viewBox:"0 0 100 100",fill:"none",children:(0,a.jsx)("path",{d:"M50 23.61c-14.55 0-26.388 11.839-26.388 26.388 0 14.55 11.839 26.388 26.388 26.388 14.55 0 26.388-11.838 26.388-26.388 0-14.55-11.839-26.388-26.388-26.388zm0 45.369c-10.466 0-18.98-8.515-18.98-18.98 0-10.463 8.514-18.982 18.98-18.982 10.466 0 18.98 8.519 18.98 18.981 0 10.466-8.514 18.98-18.98 18.98zM50 18.209a3.705 3.705 0 003.704-3.704V3.704a3.704 3.704 0 00-7.407 0v10.801A3.703 3.703 0 0050 18.209zM50 81.786a3.704 3.704 0 00-3.704 3.703v10.804a3.704 3.704 0 007.408 0V85.489A3.706 3.706 0 0050 81.786zM96.296 46.295H85.495a3.704 3.704 0 000 7.407h10.801a3.704 3.704 0 000-7.407zM18.21 49.998a3.702 3.702 0 00-3.703-3.703H3.704a3.704 3.704 0 000 7.407h10.803a3.704 3.704 0 003.703-3.704zM77.716 27.52l7.636-7.64a3.704 3.704 0 000-5.236 3.701 3.701 0 00-5.236 0l-7.637 7.637a3.703 3.703 0 105.237 5.238zM22.282 72.477l-7.638 7.639a3.703 3.703 0 105.237 5.236l7.638-7.635a3.709 3.709 0 000-5.24 3.703 3.703 0 00-5.236 0zM77.718 72.48a3.705 3.705 0 00-5.24 0 3.706 3.706 0 000 5.237l7.64 7.635a3.703 3.703 0 105.236-5.236l-7.636-7.635zM22.282 27.52a3.704 3.704 0 005.237-5.24l-7.638-7.638a3.705 3.705 0 00-5.237 0 3.706 3.706 0 000 5.237l7.638 7.64z",fill:"fill-current"})})}}class T extends d.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:(0,a.jsx)("path",{d:"M3 11.4489C3 16.7238 7.16904 21 12.3118 21C16.2709 21 19.6529 18.4657 21 14.8925C19.9331 15.4065 18.7418 15.6938 17.485 15.6938C12.9137 15.6938 9.20787 11.8928 9.20787 7.20396C9.20787 5.24299 9.85605 3.4373 10.9446 2C6.45002 2.6783 3 6.65034 3 11.4489Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}}let L=e=>{let{toggleTheme:n,isUserThemeDark:i,isDarkTheme:t,headerColor:l}=e;return(0,a.jsx)(g.Z,{isUserThemeDark:i,handleClick:n,headerColor:l,variant:"theme",children:t?(0,a.jsx)(C,{className:"h-6 w-6 fill-current"}):(0,a.jsx)(T,{className:"h-6 w-6 stroke-current"})})};var V=i(16266),M=i(92432),D=i(44333);class Z extends d.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M4 13L9 18L20 6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}}var _=i(84389),I=i(66667),P=i(60430),A=i(82963),R=i(70474),O=i(45077),H=i(5714),E=i(7755),U=i(93314),z=i(89755),B=i.n(z),q=i(92695);let W=d.forwardRef((e,n)=>(0,a.jsx)("svg",{fill:"none",viewBox:"0 0 20 20",width:"20",height:"20",ref:n,...e,children:(0,a.jsx)("path",{stroke:"currentColor",d:"M15.059 16.263S13.558 13.336 10 13.336c-3.558 0-5.059 2.927-5.059 2.927m13.29-7.578a8.333 8.333 0 1 1-7.17-6.952m5.19 4.1V3.75m0 0V1.667m0 2.083h-2.084m2.083 0h2.083M12.78 8.277a2.78 2.78 0 1 1-5.558 0 2.78 2.78 0 0 1 5.558 0Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.25"})}));function J(e){let{recommendedPublications:n,recommendingPublication:i,closeModal:t,triggerRef:l}=e,o=(0,d.useRef)(null),[r,s]=(0,d.useState)("idle"),{data:m}=(0,h.Z)(),[c,u]=(0,d.useState)([]);(0,d.useEffect)(()=>{X({currentUser:m,recommendingPublicationId:i.id})},[m,i.id]);let k=async e=>{s("loading");try{await Promise.all(e.map(async e=>{let n=e.isTeam?"/ajax/publication/follow":"/ajax/user/follow",a=e.isTeam?{publicationId:e.id,recommendedBy:i.id}:{userId:e.author.id,recommendedBy:i.id};await (0,I.wC)({requestURL:n,requestBody:a}),await (0,I.kO)({isNewFollow:!0,type:e.isTeam?"blog":"user",followEventOrigin:"blog-recommendation",currentUser:m})})),s("idle"),t(),(0,E.Z)("success",e.length>1?"Followed recommended blogs":"Followed ".concat((0,R.GW)({publication:e[0]})))}catch(e){s("error"),(0,E.Z)("error","Error following recommended blogs","Please try again later or contact support.")}},v=async()=>{u(n),await k(n),K({currentUser:m,recommendingPublicationId:i.id})},p=e=>{u([...c,e])},f=e=>{u(c.filter(n=>n.id!==e.id))},b=e=>c.some(n=>n.id===e.id),g=c.length>0,x="loading"===r;return(0,a.jsx)(P.fC,{open:!0,children:(0,a.jsxs)(P.h_,{children:[(0,a.jsx)(P.aV,{className:"fixed inset-0 z-50 flex flex-row items-center justify-center bg-slate-900 opacity-50 transition-opacity duration-300 ease-out dark:bg-slate-600"}),(0,a.jsx)(P.VY,{onEscapeKeyDown:()=>{(0,R.p)(),t()},onOpenAutoFocus:e=>{var n;e.preventDefault(),null===(n=o.current)||void 0===n||n.focus()},onCloseAutoFocus:()=>(0,R.pi)(l),onPointerDownOutside:()=>{(0,R.p)(),t()},className:"fixed left-[50%] top-[50%] z-50 max-h-[85vh] w-[90vw] max-w-lg translate-x-[-50%] translate-y-[-50%] rounded-lg border-slate-200 bg-white  py-6 shadow-lg dark:border-slate-800 dark:bg-slate-900",children:(0,a.jsxs)("div",{className:"flex flex-col justify-center gap-7",children:[(0,a.jsxs)("div",{className:"flex flex-col justify-center self-center px-6 sm:w-96",children:[(0,a.jsx)("div",{className:"self-center rounded-full bg-green-700/10 p-2 text-green-700",children:(0,a.jsx)(Y,{})}),(0,a.jsx)("h1",{className:"mt-3 text-center text-lg font-semibold leading-snug tracking-tight text-slate-700 dark:text-slate-200",children:"Thanks for following"}),(0,a.jsxs)("p",{className:"text-md mt-1 text-center leading-snug tracking-tight text-slate-600 dark:text-slate-300",children:["These are fellow bloggers ",i.isTeam?"we":"I"," highly recommend you to follow. Do check them out!"]})]}),(0,a.jsx)("div",{className:"px-2",children:(0,a.jsx)(q.Z,{type:"auto",children:(0,a.jsx)("div",{className:"flex max-h-[316px] flex-col gap-6 px-4 py-2",children:n.map(e=>(0,a.jsx)(G,{recommendedPublication:e,followState:r,isRecommendationSelected:b(e),selectRecommendation:()=>p(e),deselectRecommendation:()=>f(e)},e.id))},"error"===r?"error":void 0)})}),(0,a.jsxs)("div",{className:"flex justify-center gap-3 px-6 sm:justify-end",children:[(0,a.jsx)("button",{className:"flex rounded-full border px-5 py-2.5 text-sm text-slate-600 focus:ring focus:ring-blue-600 focus:ring-offset-2 focus:ring-offset-white hover:enabled:bg-slate-50 disabled:cursor-not-allowed disabled:text-slate-300  dark:border-slate-800 dark:text-slate-300 hover:dark:bg-slate-800 dark:focus:ring-offset-slate-800 disabled:dark:bg-slate-900 disabled:dark:text-slate-800",onClick:t,disabled:x,children:"Maybe later"}),g?(0,a.jsx)("button",{className:"flex rounded-full border-transparent bg-blue-600 px-5 py-2.5 text-sm text-white hover:bg-blue-500 focus:ring focus:ring-blue-600 focus:ring-offset-2 focus:ring-offset-white disabled:cursor-not-allowed disabled:bg-blue-200 focus:dark:bg-blue-600 dark:focus:ring-offset-slate-800 disabled:dark:bg-blue-900 disabled:dark:text-slate-400",onClick:()=>k(c),disabled:x,children:"Done"}):(0,a.jsx)("button",{ref:o,className:"flex rounded-full border-transparent bg-blue-600 px-5 py-2.5 text-sm text-white hover:bg-blue-500 focus:ring focus:ring-blue-600 focus:ring-offset-2 focus:ring-offset-white disabled:cursor-not-allowed disabled:bg-blue-200 focus:dark:bg-blue-600 dark:focus:ring-offset-slate-800 disabled:dark:bg-blue-900 disabled:dark:text-slate-400",onClick:v,disabled:x,children:"Follow all"})]})]})})]})})}W.displayName="UserCirclePlusSVG";let G=e=>{var n,i,t,l;let{recommendedPublication:d,followState:o,isRecommendationSelected:r,selectRecommendation:s,deselectRecommendation:m}=e,{isTeam:c,domainInfo:u,author:{profilePicture:k},favicon:h}=d,v={domain:null===(n=u.domain)||void 0===n?void 0:n.host,domainStatus:{ready:null!==(t=null===(i=u.domain)||void 0===i?void 0:i.ready)&&void 0!==t&&t},username:null!==(l=d.domainInfo.hashnodeSubdomain)&&void 0!==l?l:void 0},p=(0,R.GW)({publication:d}),f=(0,U.lL)(v),b=(0,U.Z8)(v),g=c?"blog":"user",x=r?"Unfollow ".concat(g):"Follow ".concat(g),N=h||k;return(0,a.jsxs)("div",{className:"flex h-full w-full min-w-0 flex-row items-center justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex min-w-0 shrink gap-3",children:[(0,a.jsx)("a",{href:f,target:"_blank",rel:"noopener",className:"block h-11 w-11 shrink-0 overflow-hidden rounded-full",children:N?(0,a.jsx)(B(),{alt:p,className:"block",width:88,height:88,src:(0,H.tg)(N,{w:88,h:88,c:"face"},O.DEFAULT_AVATAR)}):(0,a.jsx)("div",{className:"h-full w-full rounded-full bg-slate-100 p-2 dark:bg-slate-900",children:(0,a.jsx)(A.Z,{width:44,height:44,className:"text-slate-500 dark:text-slate-300"})})}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col truncate",children:[(0,a.jsx)("h3",{className:"truncate text-sm font-semibold leading-5 text-slate-900 dark:text-slate-50",children:(0,a.jsx)("a",{href:f,target:"_blank",rel:"noopener","aria-label":p,children:p})}),(0,a.jsx)("a",{"aria-label":"Domain name",href:f,target:"_blank",rel:"noopener",className:"truncate text-sm leading-5 text-slate-500 dark:text-slate-300",children:b})]})]}),(0,a.jsxs)("button",{type:"button",onClick:()=>{r?m():s()},disabled:"loading"===o,className:(0,V.d)("shrink-0","flex rounded-full border-2 border-transparent p-2 text-sm outline-none hover:bg-slate-100 focus:ring focus:ring-blue-600 focus:ring-offset-2 focus:ring-offset-white disabled:cursor-not-allowed disabled:bg-transparent hover:dark:bg-slate-800 dark:focus:ring-offset-slate-800 disabled:hover:dark:bg-transparent sm:px-5 sm:py-2.5",r?"text-slate-600 dark:text-slate-300 disabled:dark:text-slate-600":"text-blue-600 dark:text-blue-500 disabled:dark:text-blue-900"),"data-title":x,"aria-label":x,children:[(0,a.jsx)("span",{className:"hidden sm:block",children:r?"Unfollow":"Follow"}),(0,a.jsx)("span",{className:"sm:hidden",children:r?(0,a.jsx)(Z,{className:"h-5 w-5 stroke-current"}):(0,a.jsx)(W,{className:"h-5 w-5 stroke-current"})})]})]})};function Y(){return(0,a.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",width:"24",height:"24",children:(0,a.jsx)("path",{stroke:"currentColor",d:"M8.5 12.5 11 15l5.5-5.5M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})})}async function K(e){let{currentUser:n,recommendingPublicationId:i}=e,a={event_type:"recommendations_all_followed",time:new Date().getTime(),event_properties:{publicationId:i},user_id:n._id,user_properties:{username:n.username,email:n.email,photo:n.photo||"",dateJoined:n.dateJoined||""}};(0,u.e)().sendEventToAmplitude(a)}async function X(e){let{currentUser:n,recommendingPublicationId:i}=e,a={event_type:"recommendations_modal_shown",time:new Date().getTime(),event_properties:{publicationId:i},user_id:n._id,user_properties:{username:n.username,email:n.email,photo:n.photo||"",dateJoined:n.dateJoined||""}};(0,u.e)().sendEventToAmplitude(a)}var $=i(54811),Q=function(e){let{goToLogin:n,publication:i}=e,{author:t}=i,{headerColor:l}=i,{data:r}=(0,h.Z)(),{isUserThemeDark:s}=(0,o.Fn)(),[m,c]=(0,d.useState)(!1),u=(0,d.useRef)(null),[k,v]=(0,d.useState)(null),{fetchRecommendations:p}=ee(),{isFollowing:f,isValidating:b,handleFollowUserOrPub:g,isWaitingForInitialUserValidation:N}=(0,I.ZP)({followEventOrigin:"blog-nav",publication:i}),w=i&&i.isTeam&&(!r||r._id.toString()!==t.id),S=t&&!i.isTeam&&(!r||r._id.toString()!==t.id),j=async()=>{if(!r){n();return}let[e,i]=await Promise.all([g(),f?null:p()]);if(null==i?void 0:i.data){let e=i.data;v(e),e.length>0&&c(!0)}},F="text-slate-800 bg-white border-white hover:bg-blue-50 focus-ring-colors-dark-header",y="text-slate-800 bg-white border-black hover:bg-slate-100 focus-ring-colors-light-header",C="bg-blue-600 text-white border-blue-600 dark:bg-white dark:border-white dark:text-blue-600 dark:hover:bg-blue-50 focus-ring-colors-base";return N||b?(0,a.jsxs)("div",{className:(0,V.d)("flex animate-pulse flex-row items-center rounded-full border-1-1/2 px-4 py-2 text-center text-sm font-medium",s?"border-transparent bg-black/10":l?"border-transparent bg-black/5":"bg-slate-100 dark:border-slate-900 dark:bg-slate-800"),children:[(0,a.jsx)(D.Z,{className:"invisible mr-2 h-5 w-5"}),(0,a.jsx)("span",{className:"invisible",children:"Follow"})]}):S||w?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x.Z,{tooltipClassName:"blog-follow-tooltip",tooltipText:f?"Unfollow ".concat(w?"blog":"user"):"Follow ".concat(w?"blog":"user"),headerColor:l,children:(0,a.jsxs)("button",{ref:u,type:"button",onClick:j,disabled:b,className:(0,V.d)("blog-follow-button","focus-ring-base flex flex-row items-center rounded-full border-1-1/2 px-4 py-2 text-center text-sm font-medium transition-colors duration-150 hover:bg-opacity-90 disabled:cursor-not-allowed disabled:opacity-50",s?f?"text-white bg-transparent border-white hover:bg-black/10 ring-white/80 focus-ring-colors-dark-header":F:l?f?"text-slate-800 bg-transparent border-black hover:bg-white/20 focus-ring-colors-light-header":y:f?"bg-transparent text-blue-600 border-blue-600 dark:border-white dark:text-white hover:bg-blue-50 hover:dark:bg-slate-800 focus-ring-colors-base":C),"aria-label":f?"Unfollow ".concat(w?"blog":"user"):"Follow ".concat(w?"blog":"user"),children:[f?(0,a.jsx)(Z,{className:"mr-2 h-5 w-5 stroke-current"}):(0,a.jsx)(_.Z,{className:"mr-2 h-5 w-5 stroke-current"}),(0,a.jsx)("span",{children:f?"Following":"Follow"})]})}),m&&(0,a.jsx)(J,{recommendingPublication:i,recommendedPublications:null!=k?k:[],closeModal:()=>c(!1),triggerRef:u})]}):(0,a.jsx)(x.Z,{tooltipClassName:"blog-dashboard-tooltip",tooltipText:"Blog dashboard",headerColor:l,children:(0,a.jsxs)("a",{href:"".concat((0,U.TI)(),"/").concat(i.id,"/dashboard"),className:(0,V.d)("blog-settings","focus-ring-base flex flex-row items-center rounded-full border-1-1/2 px-4 py-2 text-center text-sm font-medium transition-colors duration-150 hover:bg-opacity-90 disabled:cursor-not-allowed disabled:opacity-50",s?F:l?y:C),"aria-label":"hashnode.com, blog dashboard",children:[(0,a.jsx)(D.Z,{className:"mr-2 h-5 w-5 stroke-current"}),(0,a.jsx)("span",{children:"Dashboard"})]})})};let ee=()=>{let e=(0,M.m8)(),{publication:n}=(0,o.Fn)(),{data:i}=(0,h.Z)(),a=(0,d.useCallback)(async()=>{if(!n||!i)return null;try{var a,t,l;let d=await e.query($.GQ,{publicationId:null==n?void 0:n._id.toString()},{requestPolicy:"network-only"}).toPromise();if(d.error)return{data:null,error:d.error};let o=(null!==(l=null===(a=d.data)||void 0===a?void 0:null===(t=a.publication)||void 0===t?void 0:t.recommendedPublications)&&void 0!==l?l:[]).filter(e=>{let{node:n}=e;return n.author.id!==(null==i?void 0:i._id.toString())}).filter(e=>{let{node:n}=e;return!n.isFollowedByMe}).map(e=>{let{node:n}=e;return n});return{data:o,errors:null}}catch(e){return{data:null,error:"Error loading recommendations"}}},[e,i,n]);return{fetchRecommendations:a}};class en extends d.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,viewBox:"0 0 22 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M12.1728 3.50973C12.587 3.50973 12.9228 3.17395 12.9228 2.75973C12.9228 2.34552 12.587 2.00973 12.1728 2.00973V3.50973ZM18.958 9.10996C18.958 8.69575 18.6222 8.35996 18.208 8.35996C17.7938 8.35996 17.458 8.69575 17.458 9.10996H18.958ZM1.5018 5.97023C1.1338 5.7801 0.681352 5.9243 0.491222 6.2923C0.301092 6.66029 0.445283 7.11275 0.813283 7.30288L1.5018 5.97023ZM15.6397 8.12794C15.9841 7.8979 16.0769 7.43217 15.8468 7.08771C15.6168 6.74325 15.1511 6.6505 14.8066 6.88055L15.6397 8.12794ZM7.29742 9.80877L6.95316 10.4751L7.29742 9.80877ZM9.154 10.5963L9.2714 9.85557L9.154 10.5963ZM12.1823 9.53509L11.7658 8.91139L12.1823 9.53509ZM10.4253 10.5251L10.2259 9.80209L10.4253 10.5251ZM16.1797 3.11305C15.8868 2.82016 15.4119 2.82016 15.1191 3.11305C14.8262 3.40595 14.8262 3.88082 15.1191 4.17371L16.1797 3.11305ZM17.3215 5.31545L16.7911 5.84578C16.9358 5.99043 17.1332 6.06972 17.3377 6.06527C17.5423 6.06083 17.7361 5.97304 17.8743 5.82224L17.3215 5.31545ZM21.5529 1.80928C21.8328 1.50394 21.8121 1.02952 21.5068 0.749625C21.2015 0.46973 20.727 0.490357 20.4471 0.795697L21.5529 1.80928ZM17.458 14.2317C17.458 14.8735 16.9378 15.3937 16.296 15.3937V16.8937C17.7662 16.8937 18.958 15.7019 18.958 14.2317H17.458ZM16.296 15.3937H2.912V16.8937H16.296V15.3937ZM2.912 15.3937C2.27025 15.3937 1.75 14.8735 1.75 14.2317H0.25C0.25 15.7019 1.44182 16.8937 2.912 16.8937V15.3937ZM1.75 14.2317V4.67173H0.25V14.2317H1.75ZM1.75 4.67173C1.75 4.02998 2.27024 3.50973 2.912 3.50973V2.00973C1.44182 2.00973 0.25 3.20155 0.25 4.67173H1.75ZM2.912 3.50973H12.1728V2.00973H2.912V3.50973ZM18.958 14.2317V9.10996H17.458V14.2317H18.958ZM0.813283 7.30288L6.95316 10.4751L7.64168 9.14245L1.5018 5.97023L0.813283 7.30288ZM12.5988 10.1588L15.6397 8.12794L14.8066 6.88055L11.7658 8.91139L12.5988 10.1588ZM6.95316 10.4751C7.82539 10.9257 8.40949 11.2377 9.03661 11.3371L9.2714 9.85557C8.93995 9.80304 8.60585 9.6406 7.64168 9.14245L6.95316 10.4751ZM11.7658 8.91139C10.8633 9.51412 10.5494 9.71287 10.2259 9.80209L10.6247 11.2481C11.2368 11.0793 11.7824 10.704 12.5988 10.1588L11.7658 8.91139ZM9.03661 11.3371C9.56626 11.421 10.1077 11.3907 10.6247 11.2481L10.2259 9.80209C9.91519 9.88779 9.58974 9.90602 9.2714 9.85557L9.03661 11.3371ZM15.1191 4.17371L16.7911 5.84578L17.8518 4.78512L16.1797 3.11305L15.1191 4.17371ZM17.8743 5.82224L21.5529 1.80928L20.4471 0.795697L16.7686 4.80866L17.8743 5.82224Z"})})}}class ei extends d.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M13.1367 7.50493C13.551 7.50493 13.8867 7.16914 13.8867 6.75493C13.8867 6.34071 13.551 6.00493 13.1367 6.00493V7.50493ZM19.9024 13.0846C19.9024 12.6704 19.5666 12.3346 19.1524 12.3346C18.7382 12.3346 18.4024 12.6704 18.4024 13.0846H19.9024ZM2.5013 9.95291C2.1333 9.76278 1.68084 9.90697 1.49071 10.275C1.30058 10.643 1.44477 11.0954 1.81277 11.2855L2.5013 9.95291ZM16.5938 12.1078C16.9382 11.8778 17.031 11.412 16.8009 11.0676C16.5709 10.7231 16.1051 10.6304 15.7607 10.8604L16.5938 12.1078ZM16.2825 6.01303C15.8683 6.01303 15.5325 6.34882 15.5325 6.76303C15.5325 7.17725 15.8683 7.51303 16.2825 7.51303V6.01303ZM22 7.51303C22.4142 7.51303 22.75 7.17725 22.75 6.76303C22.75 6.34882 22.4142 6.01303 22 6.01303V7.51303ZM18.3913 9.62177C18.3913 10.036 18.727 10.3718 19.1413 10.3718C19.5555 10.3718 19.8913 10.036 19.8913 9.62177H18.3913ZM19.8913 3.9043C19.8913 3.49008 19.5555 3.1543 19.1413 3.1543C18.727 3.1543 18.3913 3.49008 18.3913 3.9043H19.8913ZM8.27708 13.7812L7.93282 14.4475L8.27708 13.7812ZM10.1277 14.5662L10.0103 15.307L10.1277 14.5662ZM11.3949 14.4952L11.1955 13.7722L11.3949 14.4952ZM18.4024 18.1899C18.4024 18.8282 17.8849 19.3457 17.2466 19.3457V20.8457C18.7134 20.8457 19.9024 19.6566 19.9024 18.1899H18.4024ZM17.2466 19.3457H3.90583V20.8457H17.2466V19.3457ZM3.90583 19.3457C3.26748 19.3457 2.75 18.8282 2.75 18.1899H1.25C1.25 19.6566 2.43905 20.8457 3.90583 20.8457V19.3457ZM2.75 18.1899V8.66075H1.25V18.1899H2.75ZM2.75 8.66075C2.75 8.02241 3.26748 7.50493 3.90583 7.50493V6.00493C2.43905 6.00493 1.25 7.19398 1.25 8.66075H2.75ZM3.90583 7.50493H13.1367V6.00493H3.90583V7.50493ZM19.9024 18.1899V13.0846H18.4024V18.1899H19.9024ZM1.81277 11.2855L7.93282 14.4475L8.62134 13.1149L2.5013 9.95291L1.81277 11.2855ZM13.5627 14.1321L16.5938 12.1078L15.7607 10.8604L12.7297 12.8847L13.5627 14.1321ZM16.2825 7.51303H19.1413V6.01303H16.2825V7.51303ZM19.1413 7.51303H22V6.01303H19.1413V7.51303ZM19.8913 9.62177V6.76303H18.3913V9.62177H19.8913ZM19.8913 6.76303V3.9043H18.3913V6.76303H19.8913ZM7.93282 14.4475C8.80209 14.8966 9.38471 15.2078 10.0103 15.307L10.2451 13.8255C9.91517 13.7732 9.58255 13.6115 8.62134 13.1149L7.93282 14.4475ZM12.7297 12.8847C11.8299 13.4856 11.5175 13.6834 11.1955 13.7722L11.5943 15.2182C12.2049 15.0498 12.7491 14.6755 13.5627 14.1321L12.7297 12.8847ZM10.0103 15.307C10.5386 15.3907 11.0786 15.3604 11.5943 15.2182L11.1955 13.7722C10.8861 13.8575 10.562 13.8757 10.2451 13.8255L10.0103 15.307Z"})})}}class ea extends d.Component{render(){return(0,a.jsx)("svg",{className:this.props.className,viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M8 7.00008H14M8 10.0001H14M6.40541 4.00008H4.5C3.94772 4.00008 3.5 4.4478 3.5 5.00008V6.15008M6.40541 4.00008L9.81031 1.48045C10.5172 0.957363 11.4828 0.957362 12.1897 1.48045L15.5946 4.00008M6.40541 4.00008H15.5946M3.5 6.15008L1.81031 7.40045C1.30064 7.77761 1 8.37409 1 9.00814V17.0001C1 18.6569 2.34315 20.0001 4 20.0001H18C19.6569 20.0001 21 18.6569 21 17.0001V9.00813C21 8.37409 20.6994 7.77761 20.1897 7.40045L18.5 6.15008M3.5 6.15008V10.9339C3.5 11.2852 3.6843 11.6107 3.9855 11.7914L9.45651 15.074C10.4066 15.644 11.5934 15.644 12.5435 15.074L18.0145 11.7914C18.3157 11.6107 18.5 11.2852 18.5 10.9339V6.15008M18.5 6.15008V5.00008C18.5 4.4478 18.0523 4.00008 17.5 4.00008H15.5946",strokeWidth:"1.5",strokeLinecap:"round"})})}}var et=i(27744);let el=l()(()=>Promise.all([i.e(8820),i.e(8118)]).then(i.bind(i,78118)),{loadableGenerated:{webpack:()=>[78118]},ssr:!1}),ed=e=>{let{isUserThemeDark:n,publication:i,isNewsletterEnabled:t,currentUser:l,isWaitingForInitialUserValidation:o,authorId:r}=e,{mailSent:s,setMailSent:m}=(0,et.d)(),[c,u]=(0,d.useState)(!1),k=(0,d.useRef)(null),h=()=>u(!c),v=e=>m(e),p="rounded-full border-1-1/2 bg-transparent p-2 transition-colors duration-150 focus-ring-base",f=n?"border-white text-white hover:bg-black/10 dark:border-white dark:text-white dark:hover:bg-black/10 focus-ring-colors-dark-header":i.headerColor?"border-black text-black hover:bg-white/20 dark:border-black dark:text-black dark:hover:bg-white/20 focus-ring-colors-light-header":"border-blue-600 text-blue-600 hover:bg-blue-50 dark:border-white dark:text-white hover:dark:bg-slate-800 focus-ring-colors-base";return(0,a.jsxs)(a.Fragment,{children:[c?(0,a.jsx)(el,{toggleModal:h,setSubscriptionSubmitted:v,publication:i,isNewsletterSubscriptionSubmitted:s,triggerRef:k}):null,o&&t?(0,a.jsx)("div",{className:(0,V.d)("animate-pulse rounded-full border-1-1/2 p-2",n?"border-transparent bg-black/10":i.headerColor?"border-transparent bg-black/5":"bg-slate-100 dark:border-slate-900 dark:bg-slate-800"),children:(0,a.jsx)(en,{className:"invisible h-5 w-5"})}):t&&(!l||l._id.toString()!==r)?(0,a.jsx)(x.Z,{tooltipClassName:"blog-subscribe-newsletter-tooltip",tooltipText:"Subscribe to newsletter",headerColor:i.headerColor,children:(0,a.jsx)("button",{className:(0,V.d)("blog-newsletter-button",p,f),ref:k,type:"button",onClick:h,"aria-label":"Open subscribe to newsletter",children:s?(0,a.jsx)(en,{className:"h-5 w-5 fill-current"}):(0,a.jsx)(ei,{className:"h-5 w-5 fill-current"})})}):t&&l&&l._id.toString()===r?(0,a.jsx)(x.Z,{tooltipClassName:"blog-manage-newsletter-tooltip",tooltipText:"Manage newsletter",headerColor:i.headerColor,children:(0,a.jsx)("a",{href:"".concat((0,U.TI)(),"/").concat(i.id,"/dashboard/newsletter"),"aria-label":"hashnode.com, manage blog newsletter",className:(0,V.d)("blog-newsletter-button",p,f,"block"),children:(0,a.jsx)(ea,{className:"h-5 w-5 stroke-current"})})}):null]})};var eo=i(26041),er=i(8906),es=i(41664),em=i.n(es);let ec=l()(()=>Promise.all([i.e(8820),i.e(4866)]).then(i.bind(i,24866)),{loadableGenerated:{webpack:()=>[24866]},ssr:!1}),eu=l()(()=>i.e(6795).then(i.bind(i,46795)),{loadableGenerated:{webpack:()=>[46795]},ssr:!1}),ek=(0,d.forwardRef)((e,n)=>{let{goToLogin:i,publication:t}=e,{author:l}=t;(0,b.Z)({elRef:n});let{isUserThemeDark:d,isDarkTheme:r,toggleTheme:s}=(0,o.Fn)(),{data:m,isValidating:c}=(0,h.Z)(),{canUpdatePublication:u}=(0,f.Z)(!!m,t.id),k=void 0===m,v=(0,g.V)({isUserThemeDark:d,headerColor:t.headerColor});return(0,a.jsxs)("div",{className:"container mx-auto px-2 md:px-4 md:py-1 2xl:px-10",children:[(0,a.jsxs)("div",{className:"relative z-40 flex flex-row items-center justify-between pb-2 pt-8 md:py-4",children:[(0,a.jsxs)("div",{className:(0,V.d)("mb-2 flex flex-row items-center md:mb-0",d?"text-white":t.headerColor?"text-black":"dark:text-white"),children:[(0,a.jsx)(x.Z,{tooltipClassName:"blog-home-tooltip",tooltipText:"Home",headerColor:t.headerColor,children:(0,a.jsx)(em(),{href:"/","aria-label":"Back to blog home",className:(0,V.d)("blog-back-to-home-button",v,"mr-2 p-3"),children:(0,a.jsx)(p.Z,{className:"h-4 w-4 fill-current pr-1"})})}),(0,a.jsx)("div",{className:"mr-2",children:(0,a.jsx)(S,{isUserThemeDark:d,publication:t})}),(0,a.jsx)("div",{className:"hidden md:block",children:(0,a.jsx)(er.Z,{publication:t,size:"sm",withProfileImage:!0,isPostPage:!0})})]}),(0,a.jsxs)("div",{className:(0,V.d)("flex flex-row items-center",d?"text-white":t.headerColor?"text-black":"dark:text-white"),children:[(0,a.jsx)(y,{isUserThemeDark:d,publication:t}),(0,a.jsx)(L,{toggleTheme:s,isUserThemeDark:d,headerColor:t.headerColor,isDarkTheme:r}),(0,a.jsx)("div",{className:"hidden md:mr-2 md:block",children:(0,a.jsx)(Q,{publication:t,goToLogin:i})}),(0,a.jsx)("div",{className:"hidden md:mr-2 md:block",children:(0,a.jsx)(ed,{isWaitingForInitialUserValidation:k,isUserThemeDark:d,publication:t,currentUser:m,authorId:l.id,isNewsletterEnabled:!!t.features.newsletter.isEnabled})}),m?(0,a.jsx)("div",{className:"blog-menu-container h-10 w-10 rounded-full",children:(0,a.jsx)(eu,{publication:t,currentUser:m,canUpdatePublication:u,isUserThemeDark:d})}):c||m?(0,a.jsx)("div",{className:(0,V.d)("h-10 w-10 animate-pulse rounded-full border-1-1/2",d?"border-transparent bg-black/10":t.headerColor?"border-transparent bg-black/5":"bg-slate-100 dark:border-slate-900 dark:bg-slate-800")}):(0,a.jsx)("div",{className:"h-10 w-10 rounded-full",children:(0,a.jsx)(ec,{isUserThemeDark:d,publication:t})})]})]}),(0,a.jsx)("div",{className:"mx-auto my-5 flex w-2/3 flex-row items-center justify-center md:hidden",children:(0,a.jsx)(er.Z,{publication:t,size:"xl",isPostPage:!0})}),(0,a.jsxs)("div",{className:"blog-sub-header mb-4 md:hidden","data-testid":"blog-sub-header",children:[(0,a.jsxs)("div",{className:"md:(mb-0 ml-auto) flex flex-row items-center justify-center gap-x-3",children:[(0,a.jsx)(Q,{publication:t,goToLogin:i}),(0,a.jsx)(ed,{isWaitingForInitialUserValidation:k,isUserThemeDark:d,publication:t,currentUser:m,authorId:l.id,isNewsletterEnabled:!!t.features.newsletter.isEnabled})]}),(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsx)(eo.Z,{links:t.links,headerColor:t.headerColor})})]})]})});ek.displayName="PostPageNavbar";var eh=i(51964),ev=i.n(eh),ep=i(14325),ef=i(52385),eb=i(42236);let eg=l()(()=>i.e(5526).then(i.bind(i,95526)),{loadableGenerated:{webpack:()=>[95526]},ssr:!1});var ex=function(e){var n,i;let{currentActiveMenuItemId:t,isHome:l,isBadge:r,enabledPages:s,navbarItems:m,headerColor:c,isRecommendations:u}=e,k=(0,d.useRef)([{label:"home",url:"/",isActive:!t&&l},...m.map(e=>{let n=t&&e.id===t;return{...e,isActive:n}}),(null==s?void 0:s.badges)?{label:"badges",url:"/badges",isActive:!t&&r}:null,(null==s?void 0:s.newsletter)?{label:"newsletter",url:"/newsletter",isActive:"newsletter"===t}:null,(null==s?void 0:s.members)?{label:"members",url:"/members",isActive:"members"===t}:null,u?{label:"recommendations",url:"/recommendations",isActive:!0}:null].filter(e=>e)),{isUserThemeDark:h}=(0,o.Fn)(),v=k.current.slice(eb.K0),p=v.find(e=>null==e?void 0:e.isActive),f=!!p,b=(null===(n=k.current)||void 0===n?void 0:n.length)-eb.K0>1,g=(null===(i=k.current)||void 0===i?void 0:i.length)-eb.K0==1?eb.K0+1:eb.K0,x=k.current&&k.current.length>0?k.current.slice(0,g).map(e=>e.url?(0,a.jsx)("a",{className:(0,V.d)(e.isActive?"blog-nav-active":"blog-nav","group flex items-center justify-center border-b-2 border-transparent px-2 capitalize focus:outline-none",e.isActive?h?"border-slate-50":c?"border-black":"border-black dark:border-slate-50":""),href:e.url,children:(0,a.jsx)("span",{className:(0,V.d)("blog-nav-text","mb-2 block rounded-lg px-2 py-1 ring-offset-2 transition-colors duration-150 group-focus:ring",h?"text-white hover:bg-white/20 group-focus:ring-white/80 group-focus:ring-offset-custom-header":c?"text-black hover:bg-black/10 group-focus:ring-slate-950/80 group-focus:ring-offset-custom-header":"text-slate-900 hover:bg-slate-100 group-focus:ring-blue-600 group-focus:ring-offset-white dark:text-white dark:hover:bg-slate-800 dark:group-focus:ring-offset-slate-800",e.isActive?"font-semibold text-opacity-100 dark:text-opacity-100":"font-medium text-opacity-70 dark:text-opacity-70"),children:e.label})},e.label):null):null;return(0,a.jsx)(ev(),{className:"overflow-hidden",children:(0,a.jsxs)("nav",{className:"relative flex flex-row flex-nowrap items-end whitespace-nowrap px-2 pt-2",children:[x,b?(0,a.jsxs)(ep.fC,{children:[(0,a.jsx)(ep.xz,{asChild:!0,children:(0,a.jsx)("button",{"aria-label":"Toggle more links",type:"button",className:(0,V.d)(f?"blog-nav-active":"blog-nav","group ml-2 border-b-2 border-transparent focus:outline-none active:outline-none",f?h?"border-slate-50":c?"border-black":"border-black dark:border-slate-50":""),children:(0,a.jsxs)("div",{className:(0,V.d)("blog-nav-text","mb-2 flex flex-row items-center rounded-lg px-2 py-1 ring-offset-2 transition-colors duration-150 group-focus:ring",h?"text-white hover:bg-white/20 group-focus:ring-white/80 group-focus:ring-offset-custom-header":c?"text-black hover:bg-black/10 group-focus:ring-slate-950/80 group-focus:ring-offset-custom-header":"text-black hover:bg-slate-100 group-focus:ring-blue-600 group-focus:ring-offset-white dark:text-white dark:hover:bg-slate-800 dark:group-focus:ring-offset-slate-800",f?"font-semibold text-opacity-100 dark:text-opacity-100":"font-medium text-opacity-70 dark:text-opacity-70"),children:[(0,a.jsx)("span",{className:"capitalize",children:f?"".concat(null==p?void 0:p.label):"More"}),(0,a.jsx)(ef.Z,{className:"ml-1 h-5 w-5 stroke-current"})]})})}),b?(0,a.jsx)(eg,{extraNavbarItems:v}):null]}):null]})})};let eN=l()(()=>Promise.all([i.e(8820),i.e(4866)]).then(i.bind(i,24866)),{loadableGenerated:{webpack:()=>[24866]},ssr:!1}),ew=l()(()=>i.e(6795).then(i.bind(i,46795)),{loadableGenerated:{webpack:()=>[46795]},ssr:!1});var eS=function(e){var n,i;let{goToLogin:t,currentMenuId:l,isHome:d,isBadge:r,isRecommendations:s,publication:m}=e,{author:c}=m,{isUserThemeDark:u,isDarkTheme:k,toggleTheme:v}=(0,o.Fn)(),{data:p,isValidating:b}=(0,h.Z)(),{canUpdatePublication:g}=(0,f.Z)(!!p,m.id),x=void 0===p;return(0,a.jsxs)("div",{className:"container mx-auto px-2 md:px-4 2xl:px-10",children:[(0,a.jsxs)("div",{className:"relative z-40 flex flex-row items-center justify-between pb-2 pt-8 md:mb-4",children:[(0,a.jsxs)("div",{className:"flex flex-row items-center py-1",children:[(0,a.jsx)("div",{className:(0,V.d)("md:hidden",u?"text-white":m.headerColor?"text-black":"dark:text-white"),children:(0,a.jsx)(S,{isUserThemeDark:u,publication:m})}),(0,a.jsx)("div",{className:"hidden md:block",children:(0,a.jsx)(er.Z,{publication:m,size:"lg",withProfileImage:!0})})]}),(0,a.jsxs)("div",{className:(0,V.d)("flex flex-row items-center",u?"text-white":m.headerColor?"text-black":"dark:text-white"),children:[(0,a.jsx)(y,{isUserThemeDark:u,publication:m}),(0,a.jsx)(L,{toggleTheme:v,isUserThemeDark:u,headerColor:m.headerColor,isDarkTheme:k}),p?(0,a.jsx)("div",{className:"blog-menu-container h-10 w-10 rounded-full",children:(0,a.jsx)(ew,{currentUser:p,publication:m,canUpdatePublication:g,isUserThemeDark:u})}):b||p?(0,a.jsx)("div",{className:(0,V.d)("h-10 w-10 animate-pulse rounded-full border-1-1/2",u?"border-transparent bg-black/10":m.headerColor?"border-transparent bg-black/5":"bg-slate-100 dark:border-slate-900 dark:bg-slate-800")}):(0,a.jsx)("div",{className:"h-10 w-10 rounded-full",children:(0,a.jsx)(eN,{publication:m,isUserThemeDark:u})})]})]}),(0,a.jsx)("div",{className:"mx-auto my-5 flex w-2/3 flex-row items-center justify-center md:hidden",children:(0,a.jsx)(er.Z,{publication:m,size:"xl"})}),(0,a.jsxs)("div",{className:"blog-sub-header","data-testid":"blog-sub-header",children:[(0,a.jsxs)("div",{className:"mx-0 mb-2 hidden w-full flex-row items-center md:flex",children:[(0,a.jsx)(eo.Z,{links:m.links,headerColor:m.headerColor}),(0,a.jsxs)("div",{className:"mb-0 ml-auto flex flex-row items-center justify-center gap-x-3",children:[(0,a.jsx)(Q,{publication:m,goToLogin:t}),(0,a.jsx)(ed,{isWaitingForInitialUserValidation:x,isUserThemeDark:u,publication:m,currentUser:p,authorId:c.id,isNewsletterEnabled:!!m.features.newsletter.isEnabled})]})]}),(0,a.jsxs)("div",{className:"mb-2 flex w-full flex-col items-center md:hidden",children:[(0,a.jsxs)("div",{className:"mb-6 flex flex-row items-center justify-center gap-x-3",children:[(0,a.jsx)(Q,{publication:m,goToLogin:t}),(0,a.jsx)(ed,{isWaitingForInitialUserValidation:x,isUserThemeDark:u,publication:m,currentUser:p,authorId:c.id,isNewsletterEnabled:!!m.features.newsletter.isEnabled})]}),(0,a.jsx)(eo.Z,{links:m.links,headerColor:m.headerColor})]}),(0,a.jsx)("div",{className:"relative mt-8 hidden flex-row items-center justify-center overflow-hidden text-base md:flex","data-tom":"hidden md:flex relative flex-row items-center justify-center overflow-hidden text-base mt-8",children:(0,a.jsx)(ex,{isHome:!!d,isBadge:!!r,isRecommendations:!!s,currentActiveMenuItemId:l,enabledPages:null===(n=m.preferences)||void 0===n?void 0:n.enabledPages,navbarItems:(null===(i=m.preferences)||void 0===i?void 0:i.navbarItems)||[],headerColor:m.headerColor})})]})]})},ej=i(24174),eF=i(79248),ey=i(14437);let eC=l()(()=>i.e(6238).then(i.bind(i,56238)),{loadableGenerated:{webpack:()=>[56238]},ssr:!1}),eT=l()(()=>i.e(8677).then(i.bind(i,18113)),{loadableGenerated:{webpack:()=>[18113]},ssr:!1}),eL=e=>{var n,i,t,l,r;let{isDarkTheme:s,legacyPublicationJSON:m,legacyPostJSON:c,legacySeriesJSON:u,children:h,headerColor:p,headProps:f,isBadge:b,isRecommendations:g,isHome:x,currentMenuId:N,postCUID:w,hnmcMode:S,seoSchema:j,statusCode:F,publication:y,series:C,staticPageId:T}=e,{openModal:L}=(0,ey.d)(),M=m?JSON.parse(m):null,D=c&&JSON.parse(c),Z=u&&JSON.parse(u),_=!!p&&"dark"===(0,k.lightOrDark)(p),I=!!D,P=(0,d.useRef)(null),A=()=>{L((0,a.jsx)(eT,{title:y.title,authorName:y.author.name,authorProfilePicture:y.author.profilePicture,favicon:y.favicon,isTeam:y.isTeam}))};return(0,a.jsx)(o.nL,{post:D,series:Z,isUserThemeDark:_,publication:M,darkTheme:s,children:(0,a.jsxs)("div",{className:"bg-white dark:bg-slate-950",[eF.dO]:s?"dark":"light",children:[j?(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(j)}}):null,(0,a.jsx)(ej.Z,{...f||{title:"".concat(F||404," - Not found"),description:404===F?"Oops! Page not found. This page doesn't exist or was removed!":"Oops! Something went wrong!",links:[],customHeadItems:{},style:{},pageType:"website",bannerType:"large",ogSiteName:"",url:""}}),y?(0,a.jsx)(v,{publicationId:y.id,gaTrackingID:null===(n=y.integrations)||void 0===n?void 0:n.gaTrackingID,postCUID:w,postId:null==D?void 0:null===(i=D._id)||void 0===i?void 0:i.toString(),seriesId:(null==C?void 0:C.id)||(null==Z?void 0:null===(t=Z._id)||void 0===t?void 0:t.toString())||(null==D?void 0:null===(l=D.series)||void 0===l?void 0:null===(r=l._id)||void 0===r?void 0:r.toString()),staticPageId:T}):null,(0,a.jsx)("header",{ref:P,style:{backgroundColor:y.headerColor||""},className:(0,V.d)("blog-header","z-50 w-full border-b",I?"relative transform-none md:sticky md:top-0 md:left-0 md:backdrop-blur-lg":"relative",y.headerColor?"border-transparent md:border-none":"border-black/10 bg-white bg-opacity-70 dark:border-white/10 dark:bg-slate-900 dark:bg-opacity-70",S?"hidden":""),children:I&&y?(0,a.jsx)(ek,{goToLogin:A,publication:y,ref:P}):y?(0,a.jsx)(eS,{isBadge:b,isRecommendations:g,isHome:x,currentMenuId:N,goToLogin:A,publication:y}):null}),h,y?(0,a.jsx)(eC,{authorName:y.author.name,title:y.title,imprintV2:y.imprintV2,postsCount:y.postsCount,disableFooterBranding:y.preferences.disableFooterBranding||y.features.proTeam.isEnabled,isTeam:y.isTeam,logo:y.preferences.logo,darkMode:y.preferences.darkMode,hasAnyRecommendedPublications:y.totalRecommendedPublications>0}):null]})})};var eV=eL},38847:function(e){"use strict";e.exports={googleOneTap:{clientId:"605785109378-703uqa8ah4f5nuuer7f4jobml9ncvsl7.apps.googleusercontent.com"},stripe:{key:"pk_live_LIoxtjm11IsleIxiSDdCEZuv00WVPRL0Bf"},postsAlgoliaIndex:"posts",unsplash:{appId:"261036"}}},54811:function(e,n,i){"use strict";i.d(n,{Dn:function(){return g},EI:function(){return p},GQ:function(){return h},HZ:function(){return u},Hi:function(){return c},K:function(){return w},Le:function(){return o},MZ:function(){return f},Sg:function(){return k},Uc:function(){return b},Vh:function(){return N},Wj:function(){return S},_3:function(){return v},bh:function(){return s},en:function(){return r},sD:function(){return x},uI:function(){return j},yu:function(){return m}});let a={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PostThumbnail"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"publishedAt"}},{kind:"Field",name:{kind:"Name",value:"cuid"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"subtitle"}},{kind:"Field",name:{kind:"Name",value:"brief"}},{kind:"Field",name:{kind:"Name",value:"readTimeInMinutes"}},{kind:"Field",name:{kind:"Name",value:"views"}},{kind:"Field",name:{kind:"Name",value:"author"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"profilePicture"}},{kind:"Field",name:{kind:"Name",value:"followersCount"}}]}},{kind:"Field",name:{kind:"Name",value:"coverImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"isPortrait"}},{kind:"Field",name:{kind:"Name",value:"isAttributionHidden"}}]}}]}}]},t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"RecommendedPublication"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publication"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"isTeam"}},{kind:"Field",name:{kind:"Name",value:"favicon"}},{kind:"Field",name:{kind:"Name",value:"author"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"profilePicture"}}]}},{kind:"Field",name:{kind:"Name",value:"domainInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"domain"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"host"}},{kind:"Field",name:{kind:"Name",value:"ready"}}]}},{kind:"Field",name:{kind:"Name",value:"hashnodeSubdomain"}}]}},{kind:"Field",name:{kind:"Name",value:"preferences"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"logo"}}]}}]}}]},l={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"RequiredCommentFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Comment"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"author"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"_id"},name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"profilePicture"}},{kind:"Field",name:{kind:"Name",value:"isPro"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"deactivated"}}]}},{kind:"Field",name:{kind:"Name",value:"content"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"html"}},{kind:"Field",name:{kind:"Name",value:"markdown"}},{kind:"Field",name:{kind:"Name",value:"text"}}]}},{kind:"Field",name:{kind:"Name",value:"dateAdded"}},{kind:"Field",name:{kind:"Name",value:"stamp"}},{kind:"Field",name:{kind:"Name",value:"totalReactions"}},{kind:"Field",name:{kind:"Name",value:"myTotalReactions"}}]}}]},d={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"RequiredPublicationFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Publication"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"canonicalURL"}},{kind:"Field",name:{kind:"Name",value:"urlPattern"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"displayTitle"}},{kind:"Field",name:{kind:"Name",value:"hasBadges"}},{kind:"Field",name:{kind:"Name",value:"descriptionSEO"}},{kind:"Field",name:{kind:"Name",value:"about"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"html"}},{kind:"Field",name:{kind:"Name",value:"text"}}]}},{kind:"Field",name:{kind:"Name",value:"features"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"proTeam"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isEnabled"}}]}},{kind:"Field",name:{kind:"Name",value:"newsletter"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isEnabled"}}]}},{kind:"Field",name:{kind:"Name",value:"viewCount"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isEnabled"}}]}},{kind:"Field",name:{kind:"Name",value:"readTime"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isEnabled"}}]}},{kind:"Field",name:{kind:"Name",value:"textSelectionSharer"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isEnabled"}}]}},{kind:"Field",name:{kind:"Name",value:"customCSS"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isEnabled"}},{kind:"Field",name:{kind:"Name",value:"published"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"homeMinified"}},{kind:"Field",name:{kind:"Name",value:"postMinified"}},{kind:"Field",name:{kind:"Name",value:"staticMinified"}}]}},{kind:"Field",name:{kind:"Name",value:"draft"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"homeMinified"}},{kind:"Field",name:{kind:"Name",value:"postMinified"}},{kind:"Field",name:{kind:"Name",value:"staticMinified"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"gptBotCrawling"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"isEnabled"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"metaTags"}},{kind:"Field",name:{kind:"Name",value:"ogMetaData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"image"}}]}},{kind:"Field",name:{kind:"Name",value:"author"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"profilePicture"}}]}},{kind:"Field",name:{kind:"Name",value:"preferences"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"logo"}},{kind:"Field",name:{kind:"Name",value:"darkMode"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"logo"}},{kind:"Field",name:{kind:"Name",value:"enabled"}}]}},{kind:"Field",name:{kind:"Name",value:"navbarItems"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"series"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"page"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"enabledPages"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"badges"}},{kind:"Field",name:{kind:"Name",value:"newsletter"}},{kind:"Field",name:{kind:"Name",value:"members"}}]}},{kind:"Field",name:{kind:"Name",value:"layout"}},{kind:"Field",name:{kind:"Name",value:"disableFooterBranding"}},{kind:"Field",name:{kind:"Name",value:"isSubscriptionModalDisabled"}}]}},{kind:"Field",name:{kind:"Name",value:"favicon"}},{kind:"Field",name:{kind:"Name",value:"headerColor"}},{kind:"Field",name:{kind:"Name",value:"integrations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fbPixelID"}},{kind:"Field",name:{kind:"Name",value:"fathomSiteID"}},{kind:"Field",name:{kind:"Name",value:"fathomCustomDomainEnabled"}},{kind:"Field",name:{kind:"Name",value:"fathomCustomDomain"}},{kind:"Field",name:{kind:"Name",value:"hotjarSiteID"}},{kind:"Field",name:{kind:"Name",value:"matomoSiteID"}},{kind:"Field",name:{kind:"Name",value:"matomoURL"}},{kind:"Field",name:{kind:"Name",value:"gaTrackingID"}},{kind:"Field",name:{kind:"Name",value:"gTagManagerID"}},{kind:"Field",name:{kind:"Name",value:"plausibleAnalyticsEnabled"}},{kind:"Field",name:{kind:"Name",value:"wmPaymentPointer"}}]}},{kind:"Field",name:{kind:"Name",value:"imprintV2"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"html"}}]}},{kind:"Field",alias:{kind:"Name",value:"postsCount"},name:{kind:"Name",value:"posts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"0"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalDocuments"}}]}},{kind:"Field",name:{kind:"Name",value:"isTeam"}},{kind:"Field",name:{kind:"Name",value:"links"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"twitter"}},{kind:"Field",name:{kind:"Name",value:"instagram"}},{kind:"Field",name:{kind:"Name",value:"github"}},{kind:"Field",name:{kind:"Name",value:"website"}},{kind:"Field",name:{kind:"Name",value:"hashnode"}},{kind:"Field",name:{kind:"Name",value:"youtube"}},{kind:"Field",name:{kind:"Name",value:"dailydev"}},{kind:"Field",name:{kind:"Name",value:"linkedin"}},{kind:"Field",name:{kind:"Name",value:"mastodon"}},{kind:"Field",name:{kind:"Name",value:"facebook"}}]}},{kind:"Field",name:{kind:"Name",value:"domainInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"hashnodeSubdomain"}},{kind:"Field",name:{kind:"Name",value:"domain"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"host"}},{kind:"Field",name:{kind:"Name",value:"ready"}}]}},{kind:"Field",name:{kind:"Name",value:"wwwPrefixedDomain"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"host"}},{kind:"Field",name:{kind:"Name",value:"ready"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"redirectionRules"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"source"}},{kind:"Field",name:{kind:"Name",value:"destination"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}},{kind:"Field",name:{kind:"Name",value:"totalRecommendedPublications"}},{kind:"Field",name:{kind:"Name",value:"sponsorship"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"html"}},{kind:"Field",name:{kind:"Name",value:"markdown"}}]}},{kind:"Field",name:{kind:"Name",value:"stripe"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"connected"}},{kind:"Field",name:{kind:"Name",value:"accountId"}},{kind:"Field",name:{kind:"Name",value:"country"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"pro"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasProAccess"}}]}},{kind:"Field",name:{kind:"Name",value:"allowContributorEdits"}}]}}]},o={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddComment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AddCommentInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addComment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"comment"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RequiredCommentFields"}}]}}]}}]}},...l.definitions]},r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Me"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"publicationId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"me"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"canUpdatePublication"},arguments:[{kind:"Argument",name:{kind:"Name",value:"publicationId"},value:{kind:"Variable",name:{kind:"Name",value:"publicationId"}}}]}]}}]}}]},s={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RemovePost"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RemovePostInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"removePost"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"post"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]},m={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RemoveReply"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RemoveReplyInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"removeReply"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reply"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]},c={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RemoveComment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RemoveCommentInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"removeComment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"comment"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]},u={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SubscribeToNewsletter"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SubscribeToNewsletterInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subscribeToNewsletter"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"}}]}}]}}]},k={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"LikePost"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"LikePostInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"likePost"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"post"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"reactionCount"}}]}}]}}]}}]},h={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserPublicationRecommendations"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"publicationId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ObjectId"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publication"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"publicationId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"recommendedPublications"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RecommendedPublication"}},{kind:"Field",name:{kind:"Name",value:"isFollowedByMe"}}]}}]}}]}}]}},...t.definitions]},v={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SearchPostsOfPublication"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filter"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SearchPostsOfPublicationFilter"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"searchPostsOfPublication"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"Variable",name:{kind:"Name",value:"filter"}}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"canonicalUrl"}},{kind:"Field",name:{kind:"Name",value:"reactionCount"}},{kind:"Field",name:{kind:"Name",value:"publishedAt"}},{kind:"Field",name:{kind:"Name",value:"author"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"publication"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"url"}}]}},{kind:"Field",name:{kind:"Name",value:"coverImage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}}]}}]}}]}}]},p={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"LikeComment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"LikeCommentInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"likeComment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"comment"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]},f={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"LikeReply"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"LikeReplyInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"likeReply"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reply"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]},b={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateComment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateCommentInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateComment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"comment"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RequiredCommentFields"}}]}}]}}]}},...l.definitions]},g={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddReply"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AddReplyInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addReply"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reply"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RequiredReplyFields"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RequiredReplyFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Reply"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"author"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"profilePicture"}},{kind:"Field",name:{kind:"Name",value:"isPro"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"deactivated"}}]}},{kind:"Field",name:{kind:"Name",value:"content"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"html"}},{kind:"Field",name:{kind:"Name",value:"markdown"}},{kind:"Field",name:{kind:"Name",value:"text"}}]}},{kind:"Field",name:{kind:"Name",value:"dateAdded"}},{kind:"Field",name:{kind:"Name",value:"stamp"}},{kind:"Field",name:{kind:"Name",value:"totalReactions"}},{kind:"Field",name:{kind:"Name",value:"myTotalReactions"}}]}}]},x={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateReply"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateReplyInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateReply"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"reply"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"markdown"}},{kind:"Field",name:{kind:"Name",value:"html"}}]}},{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]}}]};[...d.definitions],[...d.definitions],[...d.definitions],[...d.definitions,...a.definitions];let N={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"HomePagePosts"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"host"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filter"}},type:{kind:"NamedType",name:{kind:"Name",value:"PublicationPostConnectionFilter"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publication"},arguments:[{kind:"Argument",name:{kind:"Name",value:"host"},value:{kind:"Variable",name:{kind:"Name",value:"host"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"posts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"Variable",name:{kind:"Name",value:"filter"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PostThumbnail"}}]}},{kind:"Field",name:{kind:"Name",value:"cursor"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}}]}}]}}]}}]}},...a.definitions]};[...d.definitions],[...d.definitions,...a.definitions],[...d.definitions],[...d.definitions,...t.definitions];let w={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SeriesPageInitial"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"host"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publication"},arguments:[{kind:"Argument",name:{kind:"Name",value:"host"},value:{kind:"Variable",name:{kind:"Name",value:"host"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RequiredPublicationFields"}},{kind:"Field",name:{kind:"Name",value:"series"},arguments:[{kind:"Argument",name:{kind:"Name",value:"slug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"coverImage"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"description"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"html"}},{kind:"Field",name:{kind:"Name",value:"markdown"}},{kind:"Field",name:{kind:"Name",value:"text"}}]}},{kind:"Field",name:{kind:"Name",value:"cuid"}},{kind:"Field",name:{kind:"Name",value:"author"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"posts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PostThumbnail"}}]}},{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},...d.definitions,...a.definitions]};[...d.definitions],[...d.definitions];let S={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"TagInitial"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"host"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tag"},arguments:[{kind:"Argument",name:{kind:"Name",value:"slug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"logo"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"tagline"}}]}},{kind:"Field",name:{kind:"Name",value:"publication"},arguments:[{kind:"Argument",name:{kind:"Name",value:"host"},value:{kind:"Variable",name:{kind:"Name",value:"host"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RequiredPublicationFields"}},{kind:"Field",name:{kind:"Name",value:"posts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"tagSlugs"},value:{kind:"ListValue",values:[{kind:"Variable",name:{kind:"Name",value:"slug"}}]}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PostThumbnail"}}]}},{kind:"Field",name:{kind:"Name",value:"cursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]}},...d.definitions,...a.definitions]},j={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateImageUploadURL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateImageUploadInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createImageUploadURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"presignedPost"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"fields"}}]}}]}}]}}]}},45470:function(e,n,i){"use strict";i.d(n,{e:function(){return s}});var a,t=i(36808),l=i.n(t),d=i(42236),o=i(25934),r=i(85550);!d.jU||(null===(a=window.crypto)||void 0===a?void 0:a.getRandomValues)||(window.crypto={getRandomValues:i(97147)});let s=e=>({logPageView:async()=>{window.gtag("config",e||"G-72XG3F8LNJ",{transport_url:"https://ping.hashnode.com",first_party_collection:!0})},trackPageView:e=>{let{publicationId:n,postId:i,seriesId:a,staticPageId:t}=e;if(!n)return;let l={payload:{publicationId:n,postId:i||null,seriesId:a||null,pageId:t||null,url:window.location.href,referrer:document.referrer||null,language:navigator.language||navigator.browserLanguage,screen:"".concat(window.screen.width,"x").concat(window.screen.height)},type:"pageview"},d=new Blob([JSON.stringify({events:[l]})],{type:"application/json; charset=UTF-8"}),o=!1;try{navigator.sendBeacon&&(o=navigator.sendBeacon("/api/track",d))}catch(e){}o||fetch("/api/track",{method:"POST",body:d,credentials:"omit",keepalive:!0})},sendEventToAmplitude:async e=>{let n=l().get("__amplitudeDeviceID");n||(n=(0,o.Z)(),l().set("__amplitudeDeviceID",n,{expires:730})),e.device_id=n;let i=new r.Z("/ping/data-event",{method:"POST",body:JSON.stringify({events:[e]})});await i.exec()},sendEventToCustomerIO:async(e,n,i)=>{e=0===e.indexOf("user_")?e:"user_".concat(e);let a=new r.Z("/ping/user-event",{method:"POST",body:JSON.stringify({userId:e,eventName:n,event:i})});await a.exec()}})},70474:function(e,n,i){"use strict";i.d(n,{DK:function(){return d},GW:function(){return v},KE:function(){return k},R1:function(){return u},TT:function(){return r},WL:function(){return o},Wd:function(){return s},XY:function(){return x},Xt:function(){return g},_8:function(){return m},_i:function(){return l},k3:function(){return h},nm:function(){return b},p:function(){return p},pi:function(){return f},xM:function(){return c}});var a=i(62830),t=i(42236);let l=(e,n,i)=>{if(-1!==n.indexOf("viewType=hnmc"))return!1;let a=-1!==e.indexOf(".hashnode.dev"),t=i.domain&&i.domainStatus&&i.domainStatus.ready;if(a&&t)return{redirect:{permanent:!1,destination:"https://".concat(i.domain).concat(n)}};let l=i.wwwPrefixedDomain&&-1!==e.indexOf(i.wwwPrefixedDomain);return!!l&&!!t&&{redirect:{permanent:!1,destination:"https://".concat(i.domain).concat(n)}}},d=e=>{let n=e.reduce((e,n)=>{var i,a;return e+(null!==(a=null===(i=n.replies)||void 0===i?void 0:i.length)&&void 0!==a?a:0)},0);return n},o=e=>Object.entries(e||{}).filter(e=>"__typename"!==e[0]).map(e=>{let n=e[0],i=e[1];return{key:n,value:i}}).some(e=>e.value),r=()=>{var e;if(!t.jU)return null;let n=null===(e=window.location.hash)||void 0===e?void 0:e.substring(1);return n.length>0?n.split("?")[0]:null},s=e=>"comments-list"!==e&&(0,a.isCuid)(e),m=e=>e.startsWith("heading-"),c=e=>!!t.jU&&!!document.getElementById(e),u=e=>e?t.M$:t.V6,k=e=>{let{name:n,value:i,ttl:a=1}=e;try{if(!window.localStorage)return;let e=new Date,t={value:i,expiry:e.getTime()+864e5*a};window.localStorage.setItem(n,JSON.stringify(t))}catch(e){}},h=e=>{let{name:n}=e;try{if(!window.localStorage)return null;let e=window.localStorage.getItem(n);if(!e)return null;let i=JSON.parse(e),a=new Date().getTime();if(a>i.expiry)return window.localStorage.removeItem(n),null;return i.value}catch(e){return null}};function v(e){var n;let{publication:i}=e;return i?i.title||"".concat(null===(n=i.author)||void 0===n?void 0:n.name,"'s ").concat(i.isTeam?"team":""," blog"):null}let p=()=>{document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur()},f=e=>{e&&e.current&&e.current.focus()},b=e=>{var n;return"".concat(e.title||"".concat(null===(n=e.author)||void 0===n?void 0:n.name,"'s Blog"))};function g(e){var n;let{post:i,currentUser:a,canUpdatePublication:t}=e,l=i.author&&i.author._id.toString()===a._id.toString(),d=void 0===(null==i?void 0:null===(n=i.publication)||void 0===n?void 0:n.allowContributorEdits)||i.publication.allowContributorEdits,o=-1!==["superuser"].indexOf(a.role),r=o||t||(i.publication.isTeam?d&&l:l);return r}function x(e){let{post:n,currentUser:i,canUpdatePublication:a}=e,t=n.author&&n.author._id.toString()===i._id.toString(),l=-1!==["superuser","moderator"].indexOf(i.role),d=l||(n.publication.isTeam?a:t);return d}},45077:function(e,n,i){"use strict";i.r(n),i.d(n,{DEFAULT_AVATAR:function(){return a},blurImageDimensions:function(){return t}});let a="https://cdn.hashnode.com/res/hashnode/image/upload/v1707121372242/57c3ede2-19a1-4530-beec-fae5db66c6a2.png?auto=compress",t={w:400,h:210}},42236:function(e,n,i){"use strict";i.d(n,{K0:function(){return t},M$:function(){return s},Om:function(){return c},RI:function(){return d},Tf:function(){return o},V6:function(){return m},Ym:function(){return r},jU:function(){return l}});var a=i(93314);let t=7,l=!0,d=(0,a.TI)(),o=a.TF,r=10,s="https://cdn.hashnode.com/res/hashnode/image/upload/v1683525313231/RC4cg5koq.png?auto=format",m="https://cdn.hashnode.com/res/hashnode/image/upload/v1683525272978/MB5H_kgOC.png?auto=format",c="postOnboarding"},5714:function(e,n,i){let{DEFAULT_AVATAR:a}=i(45077),t="".concat(a,",format&format=webp"),l=(e,n,i)=>{if(!e)return i;{if("?sz=200"===e)return t;let i=e.replace("hashnode.imgix.net","cdn.hashnode.com");if(-1!==e.indexOf("//res.cloudinary.com/hashnode")&&-1!==e.indexOf("/upload/")){let n=e.split("/upload/"),a=n[1].substring(n[1].lastIndexOf(".")+1);if(-1!==n[1].indexOf("ama_banners")){let e=n[1].substring(1,n[1].indexOf("/")),t=n[1].substring(n[1].indexOf("/")+1,n[1].lastIndexOf("."));i="".concat(n[0],"/upload/").concat(t,"/").concat(e,".").concat(a,"?auto=compress,format&format=webp")}else{let e=n[1].split("/");0===e[0].indexOf("v")&&(e[0]=e[0].substring(1)),i="".concat(n[0],"/upload/").concat(e[1].substring(0,e[1].lastIndexOf(".")),"/").concat(e[0],".").concat(a,"?auto=compress,format&format=webp")}i=i.replace("//res.cloudinary.com","//cdn.hashnode.com/res").replace("http://","https://")}else if(-1!==e.indexOf("//cdn.hashnode.com")&&-1!==e.indexOf("/upload/")){let n=e.split("/upload/");0!==n[1].indexOf("v")&&(i="".concat(n[0],"/upload/").concat(n[1].substring(n[1].indexOf("/")+1)))}if(-1===i.indexOf("//cdn.hashnode.com"))return i;let a="";if(Object.keys(n).forEach(e=>{"w"===e||"h"===e||"mask"===e||"corner-radius"===e?a+="".concat(e,"=").concat(n[e],"&"):"fill"===e?a+="fit=fill&fill=".concat(n[e],"&"):"c"===e&&(a+="fit=crop&crop=".concat("face"===n[e]?"faces":"entropy","&"))}),"none"===n.q)return"".concat(i,"?").concat(a);if(-1!==i.indexOf("?")){let e=i.split("?");i=e[0],a+="&"!==e[1].slice(-1)?"".concat(e[1],"&"):e[1]}return a?a+=-1!==e.indexOf(".gif")?"auto=format,compress&gif-q=60&format=webm":"auto=compress,format&format=webp":a=-1!==e.indexOf(".gif")?"auto=format,compress&gif-q=60&format=webm":"auto=compress,format&format=webp","".concat(i,"?").concat(a)}};n.tg=l,n.yM=function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var i=e.match(/<img src="([^"]+)"/g);if(!i)return e;var a={};return i.forEach(e=>{a[e=e.split("src=")[1].replace(/"/g,"")]=l(e,{})}),Object.keys(a).forEach(n=>{e=e.replace(n,a[n])}),n&&(e=e.replace(/<img/g,'<img loading="lazy"')),e};let d=e=>e&&-1===e.indexOf("?")?"".concat(e,"?fm=blurhash"):"".concat(e,"&fm=blurhash");n.nM=d,n.Cb={Center:"center",Left:"left",Right:"right"}},94743:function(e,n,i){"use strict";i.d(n,{MATHJAX_PATTERN:function(){return w},addCopyCodeButton:function(){return N},doesContentHaveLinks:function(){return S},formatDate:function(){return b},getParameterByName:function(){return v},kFormatter:function(){return p},lightOrDark:function(){return g},removeURLParameter:function(){return h},triggerCustomWidgetEmbed:function(){return x}});var a=i(85893),t=i(20745),l=i(27484),d=i.n(l),o=i(38946),r=i.n(o),s=i(84110),m=i.n(s),c=i(67294);let u=e=>{let{text:n,handleCopyCodeEvent:i}=e,[t,l]=(0,c.useState)(!1),d=()=>{"undefined"!=typeof navigator&&navigator.clipboard&&navigator.clipboard.writeText&&(l(!0),i(),navigator.clipboard.writeText(n).then(()=>{setTimeout(()=>{l(!1)},2e3)}))};return(0,a.jsx)("button",{onClick:d,className:"absolute right-0 top-0 m-2 font-mono text-xs font-semibold uppercase text-white focus:outline-none",children:(0,a.jsx)("span",{className:"flex flex-row items-center leading-none",children:t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"flex flex-row items-center leading-none text-green-500",children:"Copied"}),(0,a.jsxs)("svg",{className:"h-4 w-4 fill-current text-green-500 ",viewBox:"0 0 24 24",children:[(0,a.jsx)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,a.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"})]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"mr-1",children:"Copy"}),(0,a.jsx)("svg",{className:"h-4 w-4 fill-current",viewBox:"0 0 384 512",children:(0,a.jsx)("path",{d:"M336 64h-88.6c.4-2.6.6-5.3.6-8 0-30.9-25.1-56-56-56s-56 25.1-56 56c0 2.7.2 5.4.6 8H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 32c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm160 432c0 8.8-7.2 16-16 16H48c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16h48v20c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12V96h48c8.8 0 16 7.2 16 16z"})})]})})})};d().extend(m());let k=window.appBaseUrl||"http://localhost:3000",h=(e,n)=>{var i=e.split("?");if(i.length<2)return e;for(var a=encodeURIComponent(n)+"=",t=i[1].split(/[&;]/g),l=t.length;l-- >0;)-1!==t[l].lastIndexOf(a,0)&&t.splice(l,1);return"".concat(i[0]).concat(t.length>0?"?"+t.join("&"):"")},v=e=>{let n=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),i=new RegExp("[\\?&]".concat(n,"=([^&#]*)")),a=i.exec(location.search);return null===a?"":decodeURIComponent(a[1].replace(/\+/g," "))},p=e=>e>999?"".concat((e/1e3).toFixed(1),"K"):e,f=function(e,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.body?document.body:document.documentElement;if(n<=0)return;let a=i,t=e-a.scrollTop,l=10*(t/n);setTimeout(()=>{a.scrollTop+=l,a.scrollTop!==e&&f(e,n-10,a)},10)},b=e=>{let n=d()().diff(d()(e),"minute");if(n<=1440){if(n<=1)return"Just now";if(n>1&&n<60)return"".concat(n," mins");if(n>=60&&n<=1440){let n=d()().diff(d()(e),"hour");return"".concat(n," hr").concat(1===n?"":"s"," ago")}}else if(n>1440&&n<=481801)return d()(e).format("MMM D");else return d()(e).format("MMM D, YYYY")},g=e=>{var n,i,a;return(e.match(/^rgb/)?(n=(e=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/))[1],i=e[2],a=e[3]):(n=(e=+("0x"+e.slice(1).replace(e.length<5&&/./g,"$&$&")))>>16,i=e>>8&255,a=255&e),Math.sqrt(.299*(n*n)+.587*(i*i)+.114*(a*a))>127.5)?"light":"dark"},x=async e=>{let n=document.querySelectorAll(".hn-embed-widget");0!==n.length&&n.forEach(async n=>{try{let i=document.createElement("iframe"),a=window.location.hostname;i.id="frame-".concat(n.id),i.sandbox="allow-same-origin allow-forms allow-presentation allow-scripts allow-popups",i.src=-1!==a.indexOf(".hashnode.net")||-1!==a.indexOf(".app.localhost")?"".concat(k,"/api/pub/").concat(e,"/embed/").concat(n.id):"https://embeds.hashnode.co?p=".concat(e,"&w=").concat(n.id),i.width="100%",n.innerHTML="",n.appendChild(i),setTimeout(()=>{iFrameResize({log:!1,autoResize:!0},"#".concat(i.id))},1e3),n.setAttribute("class","hn-embed-widget-expanded")}catch(e){console.log(e)}})},N=e=>{let{handleCopyCodeEvent:n}=e;if("undefined"==typeof navigator||!navigator.clipboard||!navigator.clipboard.writeText)return;document.querySelectorAll("pre > code").forEach(e=>{e&&e.parentElement&&(e.parentElement.outerHTML='<div style="position:relative;"><div></div>'.concat(e.parentElement.outerHTML,"</div>"))});let i=document.querySelectorAll("pre > code");for(let e=0;e<i.length;e++){let l=i[e],d=(0,t.createRoot)(l.parentNode.parentNode.firstChild);d.render((0,a.jsx)(u,{text:l.innerText,handleCopyCodeEvent:n}))}},w=/(?:\${2}|\\\(|\\\[|\\(begin|end)\{.*?})/,S=e=>{let n=r()(e),i=!1;return n.size>0&&n.forEach(e=>{e.match("https://hashnode.com/")||(i=!0)}),i}},79248:function(e,n,i){"use strict";i.d(n,{Oj:function(){return t},dO:function(){return l},jZ:function(){return a}});let a="dark",t="light",l="data-theme"},7755:function(e,n,i){"use strict";i.d(n,{C:function(){return o}});var a=i(85893),t=i(7208),l=i(64712),d=i(16266);function o(e,n,i,o,r){a.Fragment,l.A.custom(r=>(0,a.jsx)("div",{className:(0,d.d)("relative mx-auto w-[343px] cursor-pointer rounded-xl border border-slate-800 bg-[#020617] p-4 dark:border-slate-200 dark:bg-white md:mr-8 md:w-[370px]"),children:(0,a.jsxs)("div",{className:(0,d.d)("flex justify-between md:items-center"),children:[(0,a.jsxs)("section",{className:(0,d.d)("flex flex-col gap-2 md:flex-row md:items-center md:gap-4",(i||o)&&"!items-start"),children:[(0,a.jsxs)("div",{children:["success"===e&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("svg",{className:(0,d.d)("hidden h-7 w-7 dark:inline"),width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("rect",{width:28,height:28,rx:14,fill:"#BBF7D0"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.04169 14C5.04169 9.05244 9.05247 5.04166 14 5.04166C18.9476 5.04166 22.9584 9.05244 22.9584 14C22.9584 18.9475 18.9476 22.9583 14 22.9583C9.05247 22.9583 5.04169 18.9475 5.04169 14ZM18.192 12.3586C18.436 12.1145 18.436 11.7188 18.192 11.4747C17.9479 11.2306 17.5522 11.2306 17.3081 11.4747L13.1667 15.6161L11.5253 13.9747C11.2812 13.7306 10.8855 13.7306 10.6414 13.9747C10.3973 14.2188 10.3973 14.6145 10.6414 14.8586L12.7247 16.9419C12.842 17.0591 13.0009 17.125 13.1667 17.125C13.3324 17.125 13.4914 17.0591 13.6086 16.9419L18.192 12.3586Z",fill:"#16A34A"})]}),(0,a.jsxs)("svg",{className:(0,d.d)("h-7 w-7 dark:hidden"),width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("rect",{width:28,height:28,rx:14,fill:"#052E16"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.04169 14C5.04169 9.05247 9.05247 5.04169 14 5.04169C18.9476 5.04169 22.9584 9.05247 22.9584 14C22.9584 18.9476 18.9476 22.9584 14 22.9584C9.05247 22.9584 5.04169 18.9476 5.04169 14ZM18.192 12.3586C18.436 12.1146 18.436 11.7188 18.192 11.4747C17.9479 11.2307 17.5522 11.2307 17.3081 11.4747L13.1667 15.6161L11.5253 13.9747C11.2812 13.7307 10.8855 13.7307 10.6414 13.9747C10.3973 14.2188 10.3973 14.6146 10.6414 14.8586L12.7247 16.942C12.842 17.0592 13.0009 17.125 13.1667 17.125C13.3324 17.125 13.4914 17.0592 13.6086 16.942L18.192 12.3586Z",fill:"#22C55E"})]})]}),"error"===e&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("svg",{className:(0,d.d)("hidden h-7 w-7 dark:inline"),width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("rect",{width:28,height:28,rx:14,fill:"#FECACA"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 5.04166C9.05244 5.04166 5.04166 9.05244 5.04166 14C5.04166 18.9475 9.05244 22.9583 14 22.9583C18.9475 22.9583 22.9583 18.9475 22.9583 14C22.9583 9.05244 18.9475 5.04166 14 5.04166ZM11.9419 11.058C11.6979 10.814 11.3021 10.814 11.058 11.058C10.814 11.3021 10.814 11.6979 11.058 11.9419L13.1161 14L11.058 16.058C10.814 16.3021 10.814 16.6979 11.058 16.9419C11.3021 17.186 11.6979 17.186 11.9419 16.9419L14 14.8839L16.058 16.9419C16.3021 17.186 16.6979 17.186 16.9419 16.9419C17.186 16.6979 17.186 16.3021 16.9419 16.058L14.8839 14L16.9419 11.9419C17.186 11.6979 17.186 11.3021 16.9419 11.058C16.6979 10.814 16.3021 10.814 16.058 11.058L14 13.1161L11.9419 11.058Z",fill:"#DC2626"})]}),(0,a.jsxs)("svg",{className:(0,d.d)("h-7 w-7 dark:hidden"),width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("rect",{width:28,height:28,rx:14,fill:"#450A0A"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 5.04169C9.05244 5.04169 5.04166 9.05247 5.04166 14C5.04166 18.9476 9.05244 22.9584 14 22.9584C18.9475 22.9584 22.9583 18.9476 22.9583 14C22.9583 9.05247 18.9475 5.04169 14 5.04169ZM11.9419 11.0581C11.6979 10.814 11.3021 10.814 11.058 11.0581C10.814 11.3022 10.814 11.6979 11.058 11.942L13.1161 14L11.058 16.0581C10.814 16.3022 10.814 16.6979 11.058 16.942C11.3021 17.186 11.6979 17.186 11.9419 16.942L14 14.8839L16.058 16.942C16.3021 17.186 16.6979 17.186 16.9419 16.942C17.186 16.6979 17.186 16.3022 16.9419 16.0581L14.8839 14L16.9419 11.942C17.186 11.6979 17.186 11.3022 16.9419 11.0581C16.6979 10.814 16.3021 10.814 16.058 11.0581L14 13.1161L11.9419 11.0581Z",fill:"#EF4444"})]})]}),(!e||"warning"===e)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("svg",{className:(0,d.d)("hidden h-7 w-7 dark:inline"),width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("rect",{width:28,height:28,rx:14,fill:"#FEF08A"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 5.04166C9.05247 5.04166 5.04169 9.05244 5.04169 14C5.04169 18.9475 9.05247 22.9583 14 22.9583C18.9476 22.9583 22.9584 18.9475 22.9584 14C22.9584 9.05244 18.9476 5.04166 14 5.04166ZM14 9.58328C14.3452 9.58328 14.625 9.8631 14.625 10.2083V14.2083C14.625 14.5535 14.3452 14.8333 14 14.8333C13.6548 14.8333 13.375 14.5535 13.375 14.2083V10.2083C13.375 9.8631 13.6548 9.58328 14 9.58328ZM14 16.4583C13.4592 16.4583 13.0208 16.8967 13.0208 17.4374C13.0208 17.9782 13.4592 18.4166 14 18.4166C14.5408 18.4166 14.9791 17.9782 14.9791 17.4374C14.9791 16.8967 14.5408 16.4583 14 16.4583Z",fill:"#CA8A04"})]}),(0,a.jsxs)("svg",{className:(0,d.d)("h-7 w-7 dark:hidden"),width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("rect",{width:28,height:28,rx:14,fill:"#422006"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 5.04169C9.05247 5.04169 5.04169 9.05247 5.04169 14C5.04169 18.9476 9.05247 22.9584 14 22.9584C18.9476 22.9584 22.9584 18.9476 22.9584 14C22.9584 9.05247 18.9476 5.04169 14 5.04169ZM14 9.58331C14.3452 9.58331 14.625 9.86313 14.625 10.2083V14.2084C14.625 14.5535 14.3452 14.8334 14 14.8334C13.6548 14.8334 13.375 14.5535 13.375 14.2084V10.2083C13.375 9.86313 13.6548 9.58331 14 9.58331ZM14 16.4583C13.4592 16.4583 13.0208 16.8967 13.0208 17.4375C13.0208 17.9783 13.4592 18.4166 14 18.4166C14.5408 18.4166 14.9791 17.9783 14.9791 17.4375C14.9791 16.8967 14.5408 16.4583 14 16.4583Z",fill:"#EAB308"})]})]})]}),(0,a.jsxs)("div",{className:(0,d.d)("max-w-[258px]"),children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:(0,d.d)("font-heading font-semibold leading-6 text-slate-50 dark:text-slate-800"),children:n}),i&&(0,a.jsx)("p",{className:(0,d.d)("mt-1 text-sm text-slate-300 dark:text-slate-600"),dangerouslySetInnerHTML:{__html:i}})]}),o&&(0,a.jsx)("div",{className:(0,d.d)("mt-2"),children:(0,a.jsx)("button",{type:"button",onClick:o.onClick,className:(0,d.d)("\n                    flex rounded-full\n                    border border-slate-700\n                    bg-slate-950 px-4 py-1.5\n                    text-xs text-slate-300 hover:bg-slate-800\n                    focus:ring focus:ring-blue-600\n                    focus:ring-offset-2 focus:ring-offset-slate-800\n                    dark:border-slate-300 dark:bg-white dark:text-slate-600 hover:dark:bg-slate-50 dark:focus:ring-offset-white\n                  "),children:o.title})})]})]}),(0,a.jsx)("button",{onClick:()=>l.A.dismiss(r),type:"button",className:(0,d.d)("text-slate-300 opacity-100 dark:text-slate-600",(i||o)&&"absolute right-4 top-[18px]"),children:(0,a.jsx)(t.Z,{className:"h-5 w-5 fill-current"})})]})}),{duration:r||5e3})}n.Z=o}}]);