PageSourceSearch

https://dictionary.wordup.com.tw/_next/static/chunks/04avv1o-v6frc.js

js wordup.com.tw collected 2026-10-01 12:03:08 UTC 3,137 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="51abb878-7c0e-54cf-3d32-9ec3b0d36200")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,349275,e=>{"use strict";let t,r="kiao:dict:recent",n=Object.freeze([]),i=n,o=new Set;function l(){try{return void 0!==window.localStorage}catch{return!1}}function c(){let e;if(!l())return t=null,i=n;try{e=window.localStorage.getItem(r)}catch{e=null}return t===e?i:(t=e,i=function(e){if(!e)return n;try{let t=JSON.parse(e),r=Array.isArray(t)?t:t?.items;if(!Array.isArray(r)||0===r.length)return n;let i=r.filter(e=>!!e&&"string"==typeof e.word&&e.word.length>0&&"number"==typeof e.ts);if(0===i.length)return n;return i.slice(0,10)}catch{return n}}(e))}function s(){for(let e of Array.from(o))e()}e.s(["clearRecentWords",0,function(){if(l()){try{window.localStorage.removeItem(r)}catch{}t=void 0,s()}},"getServerRecentWordsSnapshot",0,function(){return n},"pushRecentWord",0,function(e,n=Date.now()){let i=e.trim();if(!i)return c();let o=c().filter(e=>e.word.toLowerCase()!==i.toLowerCase());var a=[{word:i,ts:n},...o].slice(0,10);if(l())try{let e={v:1,items:a.slice(0,10)};window.localStorage.setItem(r,JSON.stringify(e))}catch{}return t=void 0,s(),c()},"readRecentWords",0,function(){return c()},"subscribeRecentWords",0,function(e){o.add(e);let n=e=>{(null===e.key||e.key===r)&&(t=void 0,s())};return window.addEventListener("storage",n),()=>{o.delete(e),window.removeEventListener("storage",n)}}])},647960,e=>{"use strict";var t=e.i(22627),r=e.i(341857);e.i(246314);var n=e.i(285270),i=e.i(703948),o=e.i(457229),l=e.i(595060),c=e.i(349275);e.s(["RecentWordsSection",0,function({lang:e,inApp:s}){let a,{t:u}=(0,n.useTranslation)("common",{lng:e});(0,i.useEffect)(()=>{o.default.language!==e&&o.default.changeLanguage(e)},[e]);let{words:d,clear:f}=(a=(0,i.useSyncExternalStore)(c.subscribeRecentWords,c.readRecentWords,c.getServerRecentWordsSnapshot),{words:a,push:(0,i.useCallback)(e=>{(0,c.pushRecentWord)(e)},[]),clear:(0,i.useCallback)(()=>{(0,c.clearRecentWords)()},[])});return 0===d.length?null:(0,t.jsxs)("section",{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h2",{className:"text-[15px] font-semibold text-ink font-zh",children:u("home.recent.title")}),(0,t.jsx)("button",{type:"button",onClick:f,className:"text-[14px] text-kiao-blue-500 font-zh hover:underline active:scale-95 transition",children:u("home.recent.clear")})]}),(0,t.jsx)("ul",{className:"mt-3 flex flex-wrap gap-2",children:d.map(n=>(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:(0,l.buildDictionaryHref)(n.word,e,s),className:"inline-flex items-center justify-center rounded-full bg-white px-4 py-1.5 text-[15px] text-ink font-display ring-1 ring-grayscale-200 hover:bg-grayscale-50 active:scale-95 transition",children:n.word})},n.word))})]})}],647960)}]);
3
4//# debugId=51abb878-7c0e-54cf-3d32-9ec3b0d36200

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.