(self.webpackchunk_n_e=self.webpackchunk_n_e||[]).push([[492],{1127:function(e,t,n){(window.__next_p=window.__next_p||[]).push(["/blog/[slug]",function(){return n(7905)}])},2596:function(e,t,n){"use strict";var i=n(5893),a=n(6010),r=n(3778);n(7294);var l=n(2193),s=n(5062),c=n.n(s);let o=e=>{let{style:t,mode:n="brand2"}=e,{ismobile:s}=(0,l.a)(),o=s?16:24,{top:_,right:d,bottom:h,left:u}=t,x=e=>void 0===e?"auto":e*o;return(0,i.jsx)(r.e.div,{layout:!0,classname:(0,a.z)(c().pixel,c()[n]),style:{top:x(_),right:x(d),bottom:x(h),left:x(u)}})};t.z=o},7905:function(e,t,n){"use strict";n.r(t),n.d(t,{__n_ssg:function(){return d},default:function(){return a}});var i=n(5893),a=n(5270),r=n(9008),l=n.n(r),s=n(1163),c=n(4298),o=n.n(c),_=n(7294),d=n(7484),h=n.n(d);n(6180);var u=n(5675),x=n.n(u),m=n(1664),j=n.n(m),v=n(2193),p=n(2596),f=n(4217),b=n.n(f);let g=e=>{var t,n;let{ispreview:r,article:l}=e,s=(0,a.z)(),{ismobile:c}=(0,v.a)(),o=l.tags.nodes[0];return(0,i.jsxs)("div",{classname:b().container,children:[(0,i.jsx)("div",{classname:b().bg,children:(0,i.jsx)(x(),{src:null!==(n=null===(t=l.featuredimage)||void 0===t?void 0:t.node.sourceurl)&&void 0!==n?n:"",alt:l.title,fill:!0,style:{objectfit:"cover"}})}),(0,i.jsx)("div",{classname:b().outercontainer,children:(0,i.jsxs)("div",{classname:b().innercontainer,children:[r&&(0,i.jsxs)("div",{classname:b().previewbanner,children:["你当前在预览模式,",(0,i.jsx)(j(),{href:"/api/exit-preview",children:"点此退出预览模式"}),"。"]}),(0,i.jsxs)("div",{classname:b().header,children:[(0,i.jsx)(p.z,{style:{top:0,right:2}}),(0,i.jsx)(p.z,{style:{top:1,right:1}}),c||(0,i.jsx)(p.z,{style:{top:3,right:3}}),(0,i.jsxs)("div",{classname:b().meta,children:[o&&(0,i.jsx)("div",{classname:b().tag,children:o.name}),(0,i.jsx)("div",{classname:b().date,children:h()(l.date).format("mmm dd, yyyy")})]}),(0,i.jsx)("div",{classname:b().title,children:l.title}),(0,i.jsx)("div",{classname:b().author,children:l.articlecustomfields.author})]}),(0,i.jsxs)("div",{classname:b().body,children:[(0,i.jsx)("div",{classname:b().content,dangerouslysetinnerhtml:{__html:l.content}}),(0,i.jsxs)("div",{classname:b().reprintarticle,children:[s("blog_wanna_repost")," ",(0,i.jsx)("a",{href:"mailto:media@wizardquant.com",children:s("blog_contact_us")})]})]})]})})]})},n=e=>{let{ispreview:t,article:n}=e,r=(0,a.z)(),c=(0,s.userouter)();return((0,_.useeffect)(()=>{n||c.replace("/404")},[c,n]),n)?(0,i.jsxs)(i.fragment,{children:[(0,i.jsx)(l(),{children:(0,i.jsx)("title",{children:"".concat(n.title," - ").concat(r("common_about_us")," - ").concat(r("home_hero_tag_line_1"))})}),(0,i.jsx)(o(),{id:"mathjaxconfig",children:"window.mathjax = {\n tex: {\n inlinemath: [['$','$']],\n autoload: {\n color: [],\n colorv2: ['color']\n },\n packages: {'[+]': ['noerrors']}\n },\n options: {\n ignorehtmlclass: 'tex2jax_ignore',\n processhtmlclass: 'tex2jax_process'\n },\n loader: {\n load: ['[tex]/noerrors']\n }\n };"}),(0,i.jsx)(o(),{id:"mathjax-script",src:"https://cdn.bootcdn.net/ajax/libs/mathjax/3.2.2/es5/tex-mml-chtml.min.js"}),(0,i.jsx)(g,{ispreview:t,article:n})]}):null};var d=!0,a=n},6180:function(){},5062:function(e){e.exports={pixel:"pixeldot_pixel__be0aa",brand1:"pixeldot_brand1__imhwc",brand2:"pixeldot_brand2__rfb98"}},4217:function(e){e.exports={container:"articledetail_container__h2u4c",bg:"articledetail_bg__u85i7",outercontainer:"articledetail_outercontainer__sjhhb",innercontainer:"articledetail_innercontainer__0vrw0",header:"articledetail_header__jclvf",title:"articledetail_title__viait",author:"articledetail_author__f1zzc",meta:"articledetail_meta__k5aht",tag:"articledetail_tag__divxm",date:"articledetail_date__hhlfc",body:"articledetail_body__0k1p0",content:"articledetail_content__xr3fy",reprintarticle:"articledetail_reprintarticle___megb",previewbanner:"articledetail_previewbanner__fcsaq"}}},function(e){e.o(0,[774,888,179],function(){return e(e.s=1127)}),_n_e=e.o()}]);