1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6897],{12385:function(e,t,a){"use strict";var r,n=a(50959);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}var c=(0,n.forwardRef)(function(e,t){return n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t},e),r||(r=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.805 3.529c.26.26.26.682 0 .942L7.276 8l3.53 3.529a.667.667 0 0 1-.944.942l-4-4a.667.667 0 0 1 0-.942l4-4c.26-.26.683-.26.943 0",clipRule:"evenodd"})))});t.Z=c},64734:function(e,t,a){"use strict";var r,n=a(50959);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}var c=(0,n.forwardRef)(function(e,t){return n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t},e),r||(r=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.419 3.528a.667.667 0 0 0 0 .943L8.947 8 5.42 11.528a.667.667 0 1 0 .942.943l4-4a.667.667 0 0 0 0-.943l-4-4a.
1667.667 0 0 0-.942 0",clipRule:"evenodd"})))});t.Z=c},50343:function(e,t){"use strict";t.Z={src:"/_next/static/media/demo.3a49c6bb.png",height:200,width:328,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAMAAABPT11nAAAAVFBMVEX6+Pn5+Pn9/v///f35/v//+/v5/P39+vv4/P39+vr6+fr5+fr6+Pn5+Pn19vj69PW84Ou04+7/vsH/vb2Yz978nqF/zN//iIyIr7nHkpQAmLLcAABKdXIDAAAAAnRSTlP+/qap3hAAAAAxSURBVHjaY2Dk4uPi4udmYOBlFREUFmXhYeDlFJOSFucAMQQkJIWADEYudmYmNi4GACy1AeehzKDdAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:5}},16661:function(e,t,a){"use strict";var r=a(11527),n=a(15481),s=a.n(n),c=a(50959);t.Z=function(e){let{src:t,size:a}=e,n="/static/avatar.svg",[l,i]=(0,c.useState)((null==t?void 0:t.replace(/^\w+:\/\//,"//"))||n);return(0,r.jsx)(s(),{src:l,width:a,height:a,placeholder:"blur",blurDataURL:n,alt:"avatar",onError:()=>{i(n)}})}},8968:function(e,t,a){"use strict";a.d(t,{Z:function(){return f}});var r=a(11527),n=a(87827),s=a(25067),c=a(25654),l=a(24925),i=a.n(l),o=a(69864);let p=[{hrefLang:"en",baseUrl:"https://www.octoparse.com"},{hrefLang:"ja",baseUrl:"https://www.octoparse.jp"},{hrefLang:"es",baseUrl:"https://www.octoparse.es"},{hrefLang:"de",baseUrl:"https://www.octoparse.de"},{hrefLang:"fr",baseUrl:"https://www.octoparse.fr"},{hrefLang:"it",baseUrl:"https://www.octoparse.it"},{hrefLang:"ko",baseUrl:"https://www.octoparse.kr"},{hrefLang:"x-default",baseUrl:"https://www.octoparse.com"}],h=e=>{let t=e.searchParams.getAll("page"),a=e.searchParams.getAll("pageSize"),r=new URLSearchParams;return t.forEach(e=>r.set("page",e)),a.forEach(e=>r.set("pageSize",e)),e.search=r.toString(),e.href};function f(e){let{title:t,keywords:a,description:l,ogTitle:f,ogDescription:g,ogKeyword:u,ogImage:d,twitterCard:m,twitterTitle:x,twitterDescription:j,robots:v,showCanonical:w=!0,preconnectStaticCdn:b=!1,showAlternates:_=!0,children:A}=e,{i18n:N}=(0,c.$G)(),y=(0,o.useRouter)(),P=new URL(y.asPath,n.o6),L=/^\/blog\/?/.test(y.pathname)?h(P):String(new URL(P.pathname,P.origin)),R=new URL(L),S="".concat(R.pathname).concat(R.search),U=y.asPath&&y.asPath.includes("template")?"template":y.asPath.includes("blog")?"blog":"public",Z=d?(0,s.ZP)({src:d.startsWith("http")?d:new URL(d,n.o6).toString()}):(0,s.ZP)({src:new URL("".concat(s.Ll["fr-FR"],"/og/").concat(U,".png"),n.o6).toString()});return(0,r.jsxs)(i(),{children:[(0,r.jsx)("title",{children:t}),a&&(0,r.jsx)("meta",{name:"keywords",content:a}),l&&(0,r.jsx)("meta",{name:"description",content:l}),v&&(0,r.jsx)("meta",{name:"robots",content:v}),m&&(0,r.jsx)("meta",{name:"twitter:card",content:m}),x&&(0,r.jsx)("meta",{name:"twitter:title",content:x}),j&&(0,r.jsx)("meta",{name:"twitter:description",content:j}),b&&(0,r.jsx)("link",{rel:"preconnect",href:"https://static.octoparse.com"}),w&&(0,r.jsx)("link",{rel:"canonical",href:L}),w&&_&&!y.pathname.startsWith("/blog/")&&p.map(e=>{let{hrefLang:t,baseUrl:a}=e;return(0,r.jsx)("link",{rel:"alternate",hrefLang:t,href:new URL(S,a).toString()},t)}),(!A||d)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{property:"og:image",content:Z}),(0,r.jsx)("meta",{property:"twitter:image",content:Z})]}),(0,r.jsx)("meta",{property:"og:site_name",content:"Octoparse"}),(!A||d)&&(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{property:"og:title",content:f||t}),(0,r.jsx)("meta",{property:"og:description",content:g||""}),u&&(0,r.jsx)("meta",{property:"og:keyword",content:u}),(!A||d)&&(0,r.jsx)("meta",{property:"og:image:width",content:"1200"}),(!A||d)&&(0,r.jsx)("meta",{property:"og:image:height",content:"630"}),(0,r.jsx)("meta",{property:"og:url",content:L}),(0,r.jsx)("meta",{property:"og:locale",content:N.language}),A]})}},21675:function(e,t,a){"use strict";a.d(t,{$:function(){return d},a:function(){return f}});var r=a(11527),n=a(12385),s=a(64734),c=a(33436),l=a(82187),i=a.n(l),o=a(25654),p=a(67422),h=a.n(p);function f(e,t){let a={...e};return delete a.page,delete a.pageSize,t>1&&(a.page=String(t)),a}let g="flex h-8 w-8 items-center justify-center rounded text-[#595959] hover:bg-[#f0f0f0] max-[1090px]:hidden",u="flex h-8 w-8 items-center justify-center rounded bg-white text-[#595959] max-[1090px]:mx-3 max-[1090px]:h-10 max-[1090px]:w-14 max-[1090px]:rounded-lg max-[1090px]:bg-[#fafafa] [&_img]:max-[1090px]:h-6 [&_img]:max-[1090px]:w-6",d=e=>{let{total:t,current:a,pageSize:l,getPageHref:p,scroll:f,shallow:d}=e,{t:m}=(0,o.$G)(),x=(0,c.$B)(t,l),j=(0,c.mZ)(a,x),v={rel:"nofollow",scroll:f,shallow:d},w=(e,t,a)=>{let n="prev"===e?m("common:Pagination.PrevPage"):m("common:Pagination.NextPage");return t?(0,r.jsx)(h(),{...v,className:i()(u,"hover:bg-[#f0f0f0]"),title:n,"aria-label":"".concat(e," page"),href:p("prev"===e?j-1:j+1),children:a}):(0,r.jsx)("span",{className:i()(u,"cursor-default opacity-60"),title:n,"aria-disabled":"true",children:a})},b=e=>{if("page"!==e.type){let t="jump-prev"===e.type;return(0,r.jsx)("li",{className:"flex",children:(0,r.jsx)(h(),{...v,className:i()(g,"font-thin"),title:t?m("common:Pagination.Prev5Pages"):m("common:Pagination.Next5Pages"),"aria-label":t?"prev page":"next page",href:p((0,c.gT)(e.type,j,x)),children:"â¢â¢â¢"})},e.type)}let t=i()(g,"mx-1 bg-white text-base");return(0,r.jsx)("li",{className:"flex",children:e.page===j?(0,r.jsx)("span",{className:i()(t,"!bg-[#f5f5f5] !text-black"),title:String(e.page),"aria-current":"page",children:e.page}
1):(0,r.jsx)(h(),{...v,className:t,title:String(e.page),href:p(e.page),children:e.page})},e.page)};return(0,r.jsx)("nav",{"aria-label":"pagination",children:(0,r.jsxs)("ul",{className:"flex items-center",children:[(0,r.jsx)("li",{className:"flex",children:w("prev",j>1&&x>0,(0,r.jsx)(n.Z,{className:"size-4","aria-hidden":!0}))}),(0,c.lV)(j,x).map(b),(0,r.jsx)("li",{className:"flex",children:w("next",j<x,(0,r.jsx)(s.Z,{className:"size-4","aria-hidden":!0}))})]})})}},33436:function(e,t,a){"use strict";function r(e,t){return Math.floor((e-1)/t)+1}function n(e,t){return Math.max(1,Math.min(e,t))}function s(e,t){if(t<=7)return Array.from({length:Math.max(t,1)},(e,t)=>({type:"page",page:t+1}));let a=Math.max(1,e-2),r=Math.min(e+2,t);e-1<=2&&(r=5),t-e<=2&&(a=t-4);let n=[];for(let e=a;e<=r;e+=1)n.push({type:"page",page:e});return e-1>=4&&3!==e&&n.unshift({type:"jump-prev"}),t-e>=4&&e!==t-2&&n.push({type:"jump-next"}),1!==a&&n.unshift({type:"page",page:1}),r!==t&&n.push({type:"page",page:t}),n}function c(e,t,a){return"jump-prev"===e?Math.max(1,t-5):Math.min(a,t+5)}a.d(t,{$B:function(){return r},gT:function(){return c},lV:function(){return s},mZ:function(){return n}})},26409:function(e,t,a){"use strict";a.d(t,{Cp:function(){return _},y4:function(){return A}});var r=a(11527),n=a(50343),s=a(16661),c=a(21675),l=a(25067),i=a(17888),o=a.n(i);a(46324),a(50714),a(53837);var p=a(8857),h=a(25654),f=a(15481),g=a.n(f),u=a(67422),d=a.n(u),m=a(69864),x=a(50959),j=a(3130),v=a.n(j);let w={color:"#1677ff",fontWeight:600},b=(e,t)=>{if(!(null==t?void 0:t.ranges.length))return(0,p.ZP)(e);let a=[],n=0,{text:s,ranges:c}=t;return c.forEach((e,t)=>{let[c,l]=e;c>n&&a.push(s.slice(n,c)),a.push((0,r.jsx)("span",{style:w,children:s.slice(c,l+1)},"".concat(c,"-").concat(l,"-").concat(t))),n=l+1}),n<s.length&&a.push(s.slice(n)),a},_=e=>{var t;let{post:a,priority:c=!1}=e,{t:i}=(0,h.$G)(),f="en";f="fr";let[u,m]=(0,x.useState)(!1);(0,x.useEffect)(()=>{m(!0)},[]);let{slug:j,title:w,date:b,excerpt:_,author:A,tags:N,featuredImage:y,readingTime:P}=a,L=(0,l.uD)((0,l.ZP)(y?{src:y.src}:n.Z));return(0,r.jsxs)("div",{className:v().featuredCard,children:[(0,r.jsx)(d(),{href:"/blog/".concat(j),children:(0,r.jsx)("div",{className:v().fcMask})}),(0,r.jsx)("div",{className:v().fcImgWrap,children:(0,r.jsx)(g(),{className:v().fcImg,src:L,alt:"",width:700,height:380,priority:c})}),(0,r.jsxs)("div",{className:v().fcBody,children:[(0,r.jsxs)("div",{className:v().fcTags,children:[(0,r.jsx)("span",{className:v().fcBadge,children:i("blog:FeaturedBadge")}),null==N?void 0:N.map(e=>{let{id:t,name:a,slug:n}=e;return(0,r.jsx)(d(),{className:v().fcTag,href:"/blog/tag/".concat(n),children:a},t)})]}),(0,r.jsx)("h2",{className:v().fcTitle,children:(0,r.jsx)(d(),{href:"/blog/".concat(j),children:(0,p.ZP)(w)})}),(0,r.jsx)("div",{className:v().fcDesc,children:(0,p.ZP)(_)}),(0,r.jsxs)("div",{className:v().fcFooter,children:[(0,r.jsx)(d(),{href:"/blog/author/".concat(A.slug),children:(0,r.jsxs)("div",{className:v().fcAuthor,children:[(0,r.jsx)(s.Z,{src:A.avatar.src,size:24}),(0,r.jsx)("span",{children:A.name})]})}),(0,r.jsx)("div",{className:v().fcDate,children:"".concat(u?o()(b).locale(f).format(null!==(t=i("blog:ListDateTemplate"))&&void 0!==t?t:""):b," \xb7 ").concat(i("blog:ListReadingTime",{time:P||5}))})]})]})]})},A=e=>{var t;let{post:a,highlight:c,dateTemplateKey:i="blog:ListDateTemplate",readingTimeKey:p="blog:ListReadingTime",className:f}=e,{t:u}=(0,h.$G)(),m="en";m="fr";let[j,w]=(0,x.useState)(!1);(0,x.useEffect)(()=>{w(!0)},[]);let{slug:_,title:A,date:N,excerpt:y,author:P,tags:L,featuredImage:R,readingTime:S}=a,U=(0,l.TQ)((0,l.ZP)(R?{src:R.src}:n.Z),600,400);return(0,r.jsxs)("div",{className:f?"".concat(v().card," ").concat(f):v().card,children:[(0,r.jsx)(d(),{href:"/blog/".concat(_),children:(0,r.jsx)("div",{className:"mask"})}),(0,r.jsx)(g(),{className:"preview",src:U,alt:"",width:600,height:400}),(0,r.jsx)("div",{className:"tags",children:null==L?void 0:L.map(e=>{let{id:t,name:a,slug:n}=e;return(0,r.jsx)(d(),{className:"tag",href:"/blog/tag/".concat(n),children:a},t)})}),(0,r.jsx)("h2",{className:"title",children:(0,r.jsx)(d(),{href:"/blog/".concat(_),children:b(A,null==c?void 0:c.title)})}),(0,r.jsx)(d(),{href:"/blog/author/".concat(P.slug),children:(0,r.jsxs)("div",{className:"author",children:[(0,r.jsx)(s.Z,{src:P.avatar.src,size:24}),(0,r.jsx)("span",{children:P.name})]})}),(0,r.jsxs)("div",{className:"desc",children:[" ",b(y,null==c?void 0:c.excerpt)]}),(0,r.jsx)("div",{className:"date",children:"".concat(j?o()(N).locale(m).format(null!==(t=u(i))&&void 0!==t?t:""):N," \xb7 ").concat(u(p,{time:S||5}))})]})},N=e=>{let{posts:t,total:a,page:n,pageSize:s,highlights:l,getPageHref:i,scroll:o,shallow:p}=e,h=(0,m.useRouter)();return(0,r.jsxs)("div",{className:v().posts,children:[(0,r.jsx)("div",{className:v().grid,children:t.map(e=>(0,r.jsx)(A,{post:e,highlight:null==l?void 0:l[e.id]},e.id))}),(0,r.jsx)("div",{className:"mb-20 flex h-[72px] justify-center",children:(0,r.jsx)(c.$,{total:a,current:n,pageSize:s,getPageHref:null!=i?i:e=>({pathname:h.pathname,query:(0,c.a)(h.query,e)}),scroll:o,shallow:p})})]})};t.ZP=N},3130:function(e){e.exports={featuredCard:"posts_featuredCard__Gt7S5",fcMask:"posts_fcMask__NsbU_",fcImgWrap:"posts_fcImgWrap__38LkL",fcImg:"posts_fcImg__gNdMu",fcBody:"posts_fcBody__fIxjz",fcBadge:"posts_fcBadge___tytf",fcTags:"posts_fcTags__MhDjx",fcTag:"posts_fcTag__4Q1Sn",fcTitle:"posts_fcTitle__Hn_KH",fcDesc:"posts_fcDesc__VoN08",fcFooter:"posts_fcFooter__Yanc2",fcAuthor:"posts_fcAuthor__V2_ZQ",fcDate:"posts_fcDate__396OG",posts:"posts_posts____bgM",grid:"posts_grid__tH4DY",card:"posts_card__aP9rp"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.