-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathccc49370.047b8317.js
1 lines (1 loc) · 6.64 KB
/
ccc49370.047b8317.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{110:function(e,a,t){"use strict";t.r(a);var n=t(0),r=t.n(n),l=t(126),i=t(139),m=t(115);var c=function(e){const{nextItem:a,prevItem:t}=e;return r.a.createElement("nav",{className:"pagination-nav","aria-label":"Blog post page navigation"},r.a.createElement("div",{className:"pagination-nav__item"},t&&r.a.createElement(m.a,{className:"pagination-nav__link",to:t.permalink},r.a.createElement("div",{className:"pagination-nav__sublabel"},"Newer Post"),r.a.createElement("div",{className:"pagination-nav__label"},"\xab ",t.title))),r.a.createElement("div",{className:"pagination-nav__item pagination-nav__item--next"},a&&r.a.createElement(m.a,{className:"pagination-nav__link",to:a.permalink},r.a.createElement("div",{className:"pagination-nav__sublabel"},"Older Post"),r.a.createElement("div",{className:"pagination-nav__label"},a.title," \xbb"))))},s=t(128),o=t(161);a.default=function(e){const{content:a,sidebar:t}=e,{frontMatter:n,metadata:m}=a,{title:d,description:u,nextItem:g,prevItem:E,editUrl:v}=m,{hide_table_of_contents:p}=n;return r.a.createElement(l.a,{title:d,description:u,wrapperClassName:"blog-wrapper"},a&&r.a.createElement("div",{className:"container margin-vert--lg"},r.a.createElement("div",{className:"row"},r.a.createElement("div",{className:"col col--2"},r.a.createElement(s.a,{sidebar:t})),r.a.createElement("main",{className:"col col--8"},r.a.createElement(i.a,{frontMatter:n,metadata:m,isBlogPostPage:!0},r.a.createElement(a,null)),r.a.createElement("div",null,v&&r.a.createElement("a",{href:v,target:"_blank",rel:"noreferrer noopener"},r.a.createElement("svg",{fill:"currentColor",height:"1.2em",width:"1.2em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 40 40",style:{marginRight:"0.3em",verticalAlign:"sub"}},r.a.createElement("g",null,r.a.createElement("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"}))),"Edit this page")),(g||E)&&r.a.createElement("div",{className:"margin-vert--xl"},r.a.createElement(c,{nextItem:g,prevItem:E}))),!p&&a.rightToc&&r.a.createElement("div",{className:"col col--2"},r.a.createElement(o.a,{headings:a.rightToc})))))}},128:function(e,a,t){"use strict";t.d(a,"a",(function(){return s}));var n=t(0),r=t.n(n),l=t(113),i=t(115),m=t(55),c=t.n(m);function s({sidebar:e}){return 0===e.items.length?null:r.a.createElement("div",{className:Object(l.a)(c.a.sidebar,"thin-scrollbar")},r.a.createElement("h3",{className:c.a.sidebarItemTitle},e.title),r.a.createElement("ul",{className:c.a.sidebarItemList},e.items.map((e=>r.a.createElement("li",{key:e.permalink,className:c.a.sidebarItem},r.a.createElement(i.a,{isNavLink:!0,to:e.permalink,className:c.a.sidebarItemLink,activeClassName:c.a.sidebarItemLinkActive},e.title))))))}},139:function(e,a,t){"use strict";var n=t(0),r=t.n(n),l=t(113),i=t(111),m=t(23),c=t(115),s=t(146),o=t(119),d=t(56),u=t.n(d);const g=["January","February","March","April","May","June","July","August","September","October","November","December"];a.a=function(e){const{children:a,frontMatter:t,metadata:n,truncated:d,isBlogPostPage:E=!1}=e,{date:v,permalink:p,tags:b,readingTime:h}=n,{author:f,title:_,image:N,keywords:k}=t,w=t.author_url||t.authorURL,I=t.author_title||t.authorTitle,y=t.author_image_url||t.authorImageURL,L=Object(o.a)(N,{absolute:!0});return r.a.createElement(r.a.Fragment,null,r.a.createElement(m.a,null,k&&k.length&&r.a.createElement("meta",{name:"keywords",content:k.join(",")}),N&&r.a.createElement("meta",{property:"og:image",content:L}),N&&r.a.createElement("meta",{property:"twitter:image",content:L}),N&&r.a.createElement("meta",{name:"twitter:image:alt",content:`Image for ${_}`})),r.a.createElement("article",{className:E?void 0:"margin-bottom--xl"},(()=>{const e=E?"h1":"h2",a=v.substring(0,10).split("-"),t=a[0],n=g[parseInt(a[1],10)-1],i=parseInt(a[2],10);return r.a.createElement("header",null,r.a.createElement(e,{className:Object(l.a)("margin-bottom--sm",u.a.blogPostTitle)},E?_:r.a.createElement(c.a,{to:p},_)),r.a.createElement("div",{className:"margin-vert--md"},r.a.createElement("time",{dateTime:v,className:u.a.blogPostDate},n," ",i,", ",t," ",h&&r.a.createElement(r.a.Fragment,null," \xb7 ",Math.ceil(h)," min read"))),r.a.createElement("div",{className:"avatar margin-vert--md"},y&&r.a.createElement("a",{className:"avatar__photo-link avatar__photo",href:w,target:"_blank",rel:"noreferrer noopener"},r.a.createElement("img",{src:y,alt:f})),r.a.createElement("div",{className:"avatar__intro"},f&&r.a.createElement(r.a.Fragment,null,r.a.createElement("h4",{className:"avatar__name"},r.a.createElement("a",{href:w,target:"_blank",rel:"noreferrer noopener"},f)),r.a.createElement("small",{className:"avatar__subtitle"},I)))))})(),r.a.createElement("section",{className:"markdown"},r.a.createElement(i.a,{components:s.a},a)),(b.length>0||d)&&r.a.createElement("footer",{className:"row margin-vert--lg"},b.length>0&&r.a.createElement("div",{className:"col"},r.a.createElement("strong",null,"Tags:"),b.map((({label:e,permalink:a})=>r.a.createElement(c.a,{key:a,className:"margin-horiz--sm",to:a},e)))),d&&r.a.createElement("div",{className:"col text--right"},r.a.createElement(c.a,{to:n.permalink,"aria-label":`Read more about ${_}`},r.a.createElement("strong",null,"Read More"))))))}},161:function(e,a,t){"use strict";var n=t(0),r=t.n(n),l=t(113);var i=function(e,a,t){const[r,l]=Object(n.useState)(void 0);Object(n.useEffect)((()=>{function n(){const n=function(){const e=Array.from(document.getElementsByClassName("anchor")),a=e.find((e=>{const{top:a}=e.getBoundingClientRect();return a>=t}));if(a){if(a.getBoundingClientRect().top>=t){const t=e[e.indexOf(a)-1];return null!=t?t:a}return a}return e[e.length-1]}();if(n){let t=0,i=!1;const m=document.getElementsByClassName(e);for(;t<m.length&&!i;){const e=m[t],{href:c}=e,s=decodeURIComponent(c.substring(c.indexOf("#")+1));n.id===s&&(r&&r.classList.remove(a),e.classList.add(a),l(e),i=!0),t+=1}}}return document.addEventListener("scroll",n),document.addEventListener("resize",n),n(),()=>{document.removeEventListener("scroll",n),document.removeEventListener("resize",n)}}))},m=t(57),c=t.n(m);const s="table-of-contents__link";function o({headings:e,isChild:a}){return e.length?r.a.createElement("ul",{className:a?"":"table-of-contents table-of-contents__left-border"},e.map((e=>r.a.createElement("li",{key:e.id},r.a.createElement("a",{href:`#${e.id}`,className:s,dangerouslySetInnerHTML:{__html:e.value}}),r.a.createElement(o,{isChild:!0,headings:e.children}))))):null}a.a=function({headings:e}){return i(s,"table-of-contents__link--active",100),r.a.createElement("div",{className:Object(l.a)(c.a.tableOfContents,"thin-scrollbar")},r.a.createElement(o,{headings:e}))}}}]);