1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1853],{40435:function(t,n,i){i.d(n,{Hs:function(){return p},Qh:function(){return u},U2:function(){return d},kl:function(){return z}}),i(34700);var e=i(66600),h=i(23408),r=i(97217),a=i(85033),o=i(68755),s=i(44684),c=i(86787),l=i(74265);e.Z,h.Z,r.Z,a.Z,o.Z,s.Z,c.Z,l.Z;let u="scroll-area",z={"writing/musings":{introduction:1,musings:2,Basic:3,Advanced:4},"writing/uk":{visa:1,finance:2,rent:3},"writing/ai":{"learning-methods":1,tools:2,tutorials:3},"writing/career":{musings:1},"writing/productivity":{tools:1},"til/floating-ui":{overview:1,middleware:2,hooks:3},"til/radix-ui":{components:4,accessbility:2,fundamental:1,animation:3},"til/ux":{patterns:1},"til/productivity":{tools:1},"til/ddd":{patterns:1},"til/misc":{notes:1}},d={musings:{"zh-hant":"éè«","zh-cn":"éç¬"},introduction:{"zh-hant":"ä»ç´¹","zh-cn":"ä»ç»"},visa:{"zh-hant":"è±åç°½è","zh-cn":"è±å½ç¾è¯"},rent:{"zh-hant":"è±åç§å±","zh-cn":"è±å½ç§æ¿"},ai:{"zh-hant":"AI","zh-cn":"AI"},"learning-methods":{"zh-hant":"å¸ç¿æ¹æ³","zh-cn":"å¦ä¹ æ¹æ³"},tools:{"zh-hant":"å·¥å
·","zh-cn":"å·¥å
·"},tutorials:{"zh-hant":"æå¸","zh-cn":"æç¨"},career:{"zh-hant":"è·æ¶¯","zh-cn":"èä¸åå±"},productivity:{"zh-hant":"çç¢å","zh-cn":"æç"},finance:{"zh-hant":"å人財å","zh-cn":"个人çè´¢"},overview:{"zh-hant":"æ¦è¿°","zh-cn":"æ¦è§"},middleware:{"zh-hant":"ä¸éä»¶","zh-cn":"ä¸é´ä»¶"},hooks:{"zh-hant":"Hooks","zh-cn":"Hooks"},components:{"zh-hant":"å
ä»¶","zh-cn":"ç»ä»¶"},patterns:{"zh-hant":"模å¼","zh-cn":"模å¼"},notes:{"zh-hant":"çè¨","zh-cn":"ç¬è®°"},fundamental:{"zh-hant":"åºç¤","zh-cn":"åºç¡"},animation:{"zh-hant":"åç«","zh-cn":"å¨ç»"},accessbility:{"zh-hant":"ç¡éç¤","zh-cn":"æ éç¢"}},p={ai:{"zh-hant":"AI","zh-cn":"AI"},uk:{"zh-hant":"è±å","zh-cn":"è±å½"},musings:{"zh-hant":"éè«","zh-cn":"éç¬"},career:{"zh-hant":"è·æ¶¯","zh-cn":"èä¸åå±"},productivity:{"zh-hant":"çç¢å","zh-cn":"æç"},"floating-ui":{"zh-hant":"Floating UI","zh-cn":"Floating UI"},"radix-ui":{"zh-hant":"Radix UI","zh-cn":"Radix UI"},ux:{"zh-hant":"UX","zh-cn":"UX"},ddd:{"zh-hant":"é åé©
åè¨è¨","zh-cn":"é¢å驱å¨è®¾è®¡"},misc:{"zh-hant":"éé
","zh-cn":"æé¡¹"}}},91853:function(t,n,i){i.d(n,{Bm:function(){return s},Hs:function(){return c},Ms:function(){return z},TN:function(){return d},cn:function(){return o},j9:function(){return f},yG:function(){return l}});var e=i(99285),h=i(54649),r=i(40435),a=i(10648);function o(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return(0,e.m6)((0,h.cx)(...n))}let s=t=>!!t&&!t.startsWith("/")&&!t.startsWith("#"),c=(t,n)=>{let i=new Date(t);return"en-US"===n||"en"===n?new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short",day:"numeric"}).format(i):(0,a.p)(t,n)},l=!1,u=t=>[...t].sort((t,n)=>{let i=new Date(t.date||t.sys.firstPublishedAt),e=new Date(n.date||n.sys.firstPublishedAt);return i.getTime()-e.getTime()});new Intl.NumberFormat("en-US");let z=(t,n)=>{var i,e,h,a,o,s;if(!t[n])return[];let c=null===(i=t[n])||void 0===i?void 0:i.category,l=null===(e=t[n])||void 0===e?void 0:e.topic,z=((null===(h=t[n])||void 0===h?void 0:h.path)||(null===(a=t[n])||void 0===a?void 0:a.filePath)||"").startsWith("til")?"til":"writing",d=c?"".concat(z,"/").concat(c):null;if(c){let n=t.filter(t=>t.category===c);if(!l)return[{posts:u(n)}];{let t=d?r.kl[d]:null,i=n.reduce((n,i)=>{let e=null==t?void 0:t[i.topic];return void 0!==e?(n[e]||(n[e]={topic:i.topic,posts:[]}),n[e].posts.push(i)):(n[0]||(n[0]={topic:i.topic||"general",posts:[]}),n[0].posts.push(i)),n},[]).filter(t=>t&&t.posts.length>0);return i.forEach(t=>{t.posts=u(t.posts)}),i.length>0?i:[{topic:l,posts:u(n)}]}}{let i=null===(s=t[n])||void 0===s?void 0:null===(o=s.filePath)||void 0===o?void 0:o.split("/"),e=null==i?void 0:i.slice(0,i.length-1).join("/");return[{posts:u(t.filter(t=>{let n=t.path||t.filePath;return n&&n.includes(e)}))}]}},d=(t,n)=>{let i=new Date(n),e={month:"2-digit",day:"numeric",year:"numeric"};return"zh-cn"===t?i.toLocaleDateString("zh-CN",e):"zh-hant"===t?i.toLocaleDateString("zh-TW",e):i.toLocaleDateString("en-US",e)},p=new Set(["ui","ux","ai","api","uk","us","css","html","js","ts","seo","rss","til","ep","ddd"]);
1function f(t){return t.split(/[-_\s]+/).filter(Boolean).map((t,n)=>{if(p.has(t.toLowerCase()))return t.toUpperCase();let i=t.toLowerCase();return 0===n?i.charAt(0).toUpperCase()+i.slice(1):i}).join(" ")}}}]);
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.