1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8127],{29028:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog/new",function(){return t(74883)}])},92086:function(e,n,t){"use strict";t.d(n,{Z:function(){return j}});var r=t(26042),a=t(99534),i=t(85893),o=t(67294),c=t(14924),s=t(69396),u=t(4298),l=t.n(u),f=t(32427),d=t(41749),p=(t(22318),t(49384)),h=(0,f.Z)((function(e){return{root:(0,c.Z)({padding:"8px"},e.breakpoints.down("xs"),{padding:"4px"})}})),g=o.forwardRef((function(e,n){var t=h(),a=o.useRef(null);return o.useEffect((function(){try{(window.adsbygoogle=window.adsbygoogle||[]).push({})}catch(e){Math.random()<.01&&(0,p.kg)(e)}}),[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l(),{strategy:"afterInteractive",src:"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1632158329010982",crossOrigin:"anonymous"}),(0,i.jsx)(d.Z,(0,s.Z)((0,r.Z)({ref:n,classes:t,item:!0,xs:12},e),{children:(0,i.jsx)("ins",{ref:a,className:"adsbygoogle",style:{display:"block",width:"100%"},"data-ad-client":"ca-pub-1632158329010982","data-ad-slot":"3920603251","data-ad-format":"auto","data-full-width-responsive":"true"})}))]})})),v=t(60357),b=t.n(v),x=(0,f.Z)((function(e){return{root:(0,c.Z)({padding:"8px"},e.breakpoints.down("xs"),{padding:"4px"})}})),y=o.forwardRef((function(e,n){var t=x();return o.useEffect((function(){try{(window.adsbygoogle=window.adsbygoogle||[]).push({})}catch(e){Math.random()<.01&&(0,p.kg)(e)}}),[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l(),{strategy:"afterInteractive",src:"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1632158329010982",crossOrigin:"anonymous"}),(0,i.jsx)(d.Z,(0,s.Z)((0,r.Z)({ref:n,classes:t,item:!0,xs:12},e),{children:(0,i.jsx)("div",{className:"jsx-279cc7ea5dc747b9 container",children:(0,i.jsx)("ins",{style:{display:"block",width:"100%"},"data-ad-client":"ca-pub-1632158329010982","data-ad-slot":"3920603251","data-ad-format":"auto","data-full-width-responsive":"true",className:"jsx-279cc7ea5dc747b9 adsbygoogle"})})})),(0,i.jsx)(b(),{id:"279cc7ea5dc747b9",children:".container.jsx-279cc7ea5dc747b9{min-height:280px;background-color:#f5f5f5}"})]})})),j=o.forwardRef((function(e,n){var t=e.replace,o=(0,a.Z)(e,["replace"]);return t?(0,i.jsx)(y,(0,r.Z)({ref:n},o)):(0,i.jsx)(g,(0,r.Z)({ref:n},o))}))},81051:function(e,n,t){"use strict";var r=t(828),a=t(85893),i=t(60357),o=t.n(i),c=t(67294),s=t(11163),u=t(60253),l=t(95477),f=t(90935),d=t(5368),p=t(61164),h=t(40570),g=t(57308),v=function(){var e=(0,u.$G)().t;return(0,a.jsx)(h.Z,{color:"primary",disabled:!0,startIcon:(0,a.jsx)(f.Z,{}),children:e("prev")})},b=function(e){var n=e.loading,t=e.size,r=(0,s.useRouter)().query,i=(0,u.$G)().t,o="string"===typeof r.sortBy?r.sortBy:"trend",l=c.useMemo((function(){return n&&t>0?t-1:t}),[n,t]);return(0,a.jsx)(g.Z,{href:"/blog/".concat(o,"/").concat(l),children:(0,a.jsx)(h.Z,{color:"primary",endIcon:(0,a.jsx)(d.Z,{}),children:i("next")})})};n.Z=function(e){var n=e.completed,t=e.loading,i=e.size,s=e.onSizeAdd,u=(0,r.Z)((0,p.o)(),1)[0].isIntersectionObserverEnabled,f=c.useRef(null),d=i<49&&!n,h=!d&&!n;return c.useEffect((function(){if(u){var e=f.current;if(e&&!t&&!n){var r=new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting&&s()}))}),{root:null,rootMargin:"2800px",threshold:0});return r.observe(e),function(){r.unobserve(e)}}}}),[n,u,t,s]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{ref:f,className:"jsx-4df4e82e6174bc3d",children:[d&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v,{}),(0,a.jsx)(b,{loading:t,size:i})]}),h&&(0,a.jsx)(l.Z,{size:24})]}),(0,a.jsx)(o(),{id:"4df4e82e6174bc3d",children:"div.jsx-4df4e82e6174bc3d{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;min-height:24px;overflow-anchor:none}"})]})}},11173:function(e,n,t){"use strict";var r=t(47568),a=t(26042),i=t(69396),o=t(20414),c=t(11163),s=t(20958),u=t
1(36808),l=t.n(u);n.Z=function(e,n,t){var u=(0,c.useRouter)().locale,f=function(){var e=(0,r.Z)((function(e,n){var r,c,s,u,f;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return r="".concat("https://api.baskadia.com").concat(e),c=(0,i.Z)((0,a.Z)({},t),{credentials:"omit",headers:(0,a.Z)({Accept:"application/json","Accept-Language":n,"Content-Type":"application/json"},null===t||void 0===t?void 0:t.headers)}),(s=l().get("auth._token.local"))&&(c=(0,i.Z)((0,a.Z)({},c),{credentials:"include",headers:(0,a.Z)({Authorization:s},c.headers)})),[4,fetch(r,c)];case 1:return[4,(u=o.sent()).text()];case 2:if(f=o.sent(),u.ok)try{return[2,JSON.parse(f)]}catch(d){return[2,null]}throw new Error(f)}}))}));return function(n,t){return e.apply(this,arguments)}}(),d=(0,a.Z)({},n);return(0,s.ZP)((function(n,t){var r=null===e||void 0===e?void 0:e(n,t);return r?[r,u||"en"]:null}),f,d)}},74883:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return k}});var r=t(47568),a=t(29815),i=t(20414),o=t(85893),c=t(67294),s=t(11163),u=t(60253),l=t(8936),f=t(98530),d=t(49384),p=t(11173),h=t(92843),g=t(65267),v=t(62284),b=t(92086),x=t(86263),y=t(73844),j=t(34821),Z=t(57308),w=t(81051),m=t(17674),k=!0;n.default=function(e){var n,t=e.data,k=(0,s.useRouter)().locale,_=(0,p.Z)((function(e){return f.Z.getPublicContents({type:"blog",sortBy:"date",offset:20*e,lang:k})}),{fallbackData:t?[t]:void 0}),z=_.data,E=_.mutate,S=_.size,$=_.setSize,N=(0,u.$G)().t,A=((null===z||void 0===z?void 0:z.length)||0)<S,C=0===(null===z||void 0===z||null===(n=z[0])||void 0===n?void 0:n.length),R=null===z||void 0===z?void 0:z[(null===z||void 0===z?void 0:z.length)-1],I=C||R&&R.length<20,O=c.useMemo((function(){var e;if(!z)return[];var n=z.filter((function(e){return!!e}));return(0,d.D8)((e=[]).concat.apply(e,(0,a.Z)(n)))}),[z]),D=c.useCallback(function(){var e=(0,r.Z)((function(e){var n;return(0,i.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,E((function(n){if(!n)return n;for(var t=(0,a.Z)(n),r=0;r<t.length;r+=1)for(var i=(0,a.Z)(t[r]||[]),o=0;o<i.length;o+=1)if(i[o].ID===e.ID){i.splice(o,1,e),t.splice(r,1,i);break}return t}),!1)];case 1:return t.sent(),[3,3];case 2:return n=t.sent(),(0,d.kg)(n),[3,3];case 3:return[2]}}
1))}));return function(n){return e.apply(this,arguments)}}(),[E]),P=c.useCallback((function(){return $((function(e){return e+1}))}),[$]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(j.Z,{}),(0,o.jsx)(v.Z,{component:"main",style:{margin:"16px auto",overflowAnchor:"none"},children:(0,o.jsxs)(x.Z,{justifyContent:"flex-start",children:[(0,o.jsxs)(y.Z,{children:[(0,o.jsx)(Z.Z,{href:"/blog",scroll:!1,replace:!0,children:(0,o.jsx)(g.Z,{clickable:!0,label:N("trend")})}),(0,o.jsx)(Z.Z,{href:"/blog/new",scroll:!1,replace:!0,children:(0,o.jsx)(g.Z,{clickable:!0,color:"primary",label:N("new")})}),(0,o.jsx)(Z.Z,{href:"/blog/ranking",scroll:!1,replace:!0,children:(0,o.jsx)(g.Z,{clickable:!0,label:N("ranking")})})]}),C&&(0,o.jsx)(y.Z,{children:(0,o.jsx)(l.Z,{severity:"info",variant:"filled",children:N("no-results-found")})}),O.map((function(e,n){return(0,o.jsxs)(c.Fragment,{children:[(0,o.jsx)(y.Z,{children:(0,o.jsx)(h.Z,{content:e,onContentUpdate:D})}),n%6===0&&(0,o.jsx)(b.Z,{replace:n<6})]},e.ID)})),A&&Array.from(Array(20).keys()).map((function(e){return(0,o.jsx)(y.Z,{children:(0,o.jsx)(m.Z,{})},e)})),(0,o.jsx)(y.Z,{children:(0,o.jsx)(w.Z,{loading:A,completed:!!I,size:S,onSizeAdd:P})})]})})]})}},20958:function(e,n,t){"use strict";t.d(n,{ZP:function(){return x}});var r=t(67294),a=t(13288);var i="undefined"==typeof window||"Deno"in window,o=i?r.useEffect:r.useLayoutEffect,c="undefined"!=typeof navigator&&navigator.connection;!i&&c&&(["slow-2g","2g"].includes(c.effectiveType)||c.saveData);var s={}[0],u=function(e){return e===s},l=function(e){return"function"==typeof e},f=new WeakMap,d=0;function p(e){if(l(e))try{e=e()}catch(n){e=""}var n;return Array.isArray(e)?(n=e,e=function(e){if(!e.length)return"";for(var n="arg",t=0;t<e.length;++t){var r=e[t],a=s;null===r||"object"!=typeof r&&!l(r)?a=JSON.stringify(r):f.has(r)?a=f.get(r):(a=d,f.set(r,d++)),n+="$"+a}return n}(e)):n=[e=String(e||"")],[e,n,e?"$err$"+e:"",e?"$req$"+e:""]}function h(e){return l(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]}var g,v,b=function(e){return p(e?e(0,null):null)[0]},x=(g=a.ZP,v=function(e){return function(n,t,a){var i=a.cache,c=a.initialSize,f=void 0===c?1:c,d=a.revalidateAll,h=void 0!==d&&d,g=a.persistSize,v=void 0!==g&&g,x=null;try{x=b(n)}catch(e){}var y=(0,r.useState)({})[1],j=null;x&&(j="$ctx$"+x);var Z=null;x&&(Z="$len$"+x);var w=(0,r.useRef)(!1),m=(0,r.useCallback)((function(){var e=i.get(Z);return u(e)?f:e}),[Z,f]),k=(0,r.useRef)(m());o((function(){w.current?x&&i.set(Z,v?k.current:f):w.current=!0}),[x]);var _=(0,r.useRef)(),z=e(x?"$inf$"+x:null,(function(){return function(e,n,t,r){return new(t||(t=Promise))((function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(o,c)}s((r=r.apply(e,n||[])).next())}))}(void 0,void 0,void 0,(function(){var e,r,o,c,s,l,f,d,g,v,b,x;return function(e,n){var t,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}
1if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=n.call(e,o)}catch(e){i=[6,e],r=0}finally{t=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}(this,(function(y){switch(y.label){case 0:e=i.get(j)||[],r=e[0],o=e[1],c=[],s=m(),l=null,f=0,y.label=1;case 1:return f<s?(d=p(n?n(f,l):null),g=d[0],v=d[1],g?(b=i.get(g),x=h||r||u(b)||!f&&!u(_.current)||o&&!u(o[f])&&!a.compare(o[f],b),t&&x?[4,t.apply(void 0,v)]:[3,3]):[3,5]):[3,5];case 2:b=y.sent(),i.set(g,b),y.label=3;case 3:c.push(b),l=b,y.label=4;case 4:return++f,[3,1];case 5:return i.delete(j),[2,c]}}))}))}),a);o((function(){_.current=z.data}),[z.data]);var E=(0,r.useCallback)((function(e,n){if(void 0===n&&(n=!0),j){if(n&&!u(e)){var t=_.current;i.set(j,[!1,t])}else n&&i.set(j,[!0]);return z.mutate(e,n)}}),[j]),S=(0,r.useCallback)((function(e){var t;if(Z&&(l(e)?t=e(m()):"number"==typeof e&&(t=e),"number"==typeof t))return i.set(Z,t),k.current=t,y({}),E(function(e){for(var t=[],r=null,a=0;a<e;++a){var o=p(n?n(a,r):null)[0],c=o?i.get(o):s;if(u(c))return _.current;t.push(c),r=c}return t}(t))}),[Z,m,E]);return{size:m(),setSize:S,mutate:E,get error(){return z.error},get data(){return z.data},get isValidating(){return z.isValidating}}}},function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=h(e),r=t[0],a=t[1],i=t[2];return i.use=(i.use||[]).concat(v),g(r,a,i)})}},function(e){e.O(0,[8652,3576,868,4116,5749,6405,1208,6077,9774,2888,179],(function(){return n=29028,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.