PageSourceSearch

https://www.taiwannews.com.tw/_next/static/chunks/3309-4a713c7c15f6a1b1.js

js taiwannews.com.tw collected 2026-09-24 08:28:06 UTC 9,815 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3309],{90469:function(e,t){"use strict";t.parse=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var r={},o=e.split(";"),i=(t||{}).decode||n,a=0;a<o.length;a++){var s=o[a],u=s.indexOf("=");if(!(u<0)){var c=s.substring(0,u).trim();if(void 0==r[c]){var l=s.substring(u+1,s.length).trim();'"'===l[0]&&(l=l.slice(1,-1)),r[c]=function(e,t){try{return t(e)}catch(t){return e}}(l,i)}}}return r},t.serialize=function(e,t,n){var i=n||{},a=i.encode||r;if("function"!=typeof a)throw TypeError("option encode is invalid");if(!o.test(e))throw TypeError("argument name is invalid");var s=a(t);if(s&&!o.test(s))throw TypeError("argument val is invalid");var u=e+"="+s;if(null!=i.maxAge){var c=i.maxAge-0;if(isNaN(c)||!isFinite(c))throw TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(c)}if(i.domain){if(!o.test(i.domain))throw TypeError("option domain is invalid");u+="; Domain="+i.domain}if(i.path){if(!o.test(i.path))throw TypeError("option path is invalid");u+="; Path="+i.path}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw TypeError("option expires is invali
1d");u+="; Expires="+i.expires.toUTCString()}if(i.httpOnly&&(u+="; HttpOnly"),i.secure&&(u+="; Secure"),i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"none":u+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return u};var n=decodeURIComponent,r=encodeURIComponent,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},11614:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};Object.defineProperty(t,"__esModule",{value:!0}),t.hasCookie=t.deleteCookie=t.setCookie=t.getCookie=t.getCookies=void 0;var i=n(90469),a=function(){return"undefined"!=typeof window},s=function(e){return!!e&&"getAll"in e&&"set"in e&&"function"==typeof e.getAll&&"function"==typeof e.set},u=function(e){return!!(null==e?void 0:e.req)&&"cookies"in e.req&&s(null==e?void 0:e.req.cookies)||!!(null==e?void 0:e.res)&&"cookies"in e.res&&s(null==e?void 0:e.res.cookies)||!!(null==e?void 0:e.cookies)&&s(e.cookies())},c=function(e){var t={};return e.getAll().forEach(function(e){var n=e.name,r=e.value;t[n]=r}),t},l=function(e){void 0===e&&(e="");try{var t=JSON.stringify(e);return/^[\{\[]/.test(t)?t:e}catch(t){return e}};t.getCookies=function(e){if(u(e)){if(null==e?void 0:e.req)return c(e.req.cookies);if(null==e?void 0:e.cookies)return c(e.cookies())}if(e&&(t=e.req),!a())return t&&t.cookies?t.cookies:t&&t.headers.cookie?(0,i.parse)(t.headers.cookie):{};for(var t,n={},r=document.cookie?document.cookie.split("; "):[],o=0,s=r.length;o<s;o++){var l=r[o].split("="),f=l.slice(1).join("=");n[l[0]]=f}return n},t.getCookie=function(e,n){var r=(0,t.getCookies)(n)[e];if(void 0!==r)return r?r.replace(/(%[0-9A-Z]{2}
1)+/g,decodeURIComponent):r},t.setCookie=function(e,t,n){if(u(n)){var s,c,f,d=n.req,p=n.res,m=n.cookies,v=o(n,["req","res","cookies"]),h=r({name:e,value:t},v);d&&d.cookies.set(h),p&&p.cookies.set(h),m&&m().set(h);return}if(n){var d=n.req,p=n.res,g=o(n,["req","res"]);c=d,f=p,s=g}var y=(0,i.serialize)(e,l(t),r({path:"/"},s));if(a())document.cookie=y;else if(f&&c){var _=f.getHeader("Set-Cookie");if(Array.isArray(_)||(_=_?[String(_)]:[]),f.setHeader("Set-Cookie",_.concat(y)),c&&c.cookies){var k=c.cookies;""===t?delete k[e]:k[e]=l(t)}if(c&&c.headers&&c.headers.cookie){var k=(0,i.parse)(c.headers.cookie);""===t?delete k[e]:k[e]=l(t),c.headers.cookie=Object.entries(k).reduce(function(e,t){return e.concat("".concat(t[0],"=").concat(t[1],";"))},"")}}},t.deleteCookie=function(e,n){return(0,t.setCookie)(e,"",r(r({},n),{maxAge:-1}))},t.hasCookie=function(e,n){return!!e&&(0,t.getCookies)(n).hasOwnProperty(e)}},49988:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{g:function(){return r}})},30165:function(e,t,n){"use strict";n.d(t,{default:function(){return d}});var r=n(49988),o=n(27648),i=n(99376),a=n(2265),s=n(526);let u="locale";function c(e){return"object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e)}function l(e,t){let n;return"string"==typeof e?n=f(t,e):(n={...e},e.pathname&&(n.pathname=f(t,e.pathname))),n}function f(e,t){let n="/"+e;return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),n+=t}var d=(0,a.forwardRef)(function(e,t){let{href:n,locale:f,prefetch:d,...p}=e,m=(0,i.usePathname)(),v=function(){let e=(0,i.useParams)();return"string"==typeof(null==e?void 0:e[u])?e[u]:(0,s.useLocale)()}(),h=f!==v,[g,y]=(0,a.useState)(()=>c(n)&&f?l(n,f):n);return(0,a.useEffect)(()=>{m&&y(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3?arguments[3]:void 0;if(!c(e)||function(e){let t="object"==typeof e?e.pathname:e;return null!=t&&!t.startsWith("/")}(e))return e;let o=t!==n;return(null==t||function(e,t){let n="/".concat(e);return t===n||t.startsWith("".concat(n,"/"))}(t,r)||o)&&null!=t?l(e,t):e}(n,f,v,null!=m?m:void 0))},[v,n,f,m]),h&&(d&&console.error("The `prefetch` prop is currently not supported when using the `locale` prop on `Link` to switch the locale.`"),d=!1),a.createElement(o.default,(0,r.g)({ref:t,href:g,prefetch:d},p))})},10575:function(e,t,n){"use strict";n.d(t,{default:function(){return s}});var r=n(49988),o=n(76600),i=n(2265),a=n(69362);function s(e){let t,{children:n,locale:s,now:u,...c}=e;try{t=(0,o.useRouter)()}catch(e){}if(!s&&t&&(s=t.locale),"string"==typeof u&&(console.error("Passing an ISO date string to `NextIntlClientProvider` is deprecated since React Server Components have built-in support for serializing dates now. To upgrade, pass a `Date` instance instead."),u=new Date(u)),!s)throw Error("Couldn't determine locale. Please pass an explicit `locale` prop the provider, or if you're using the `pages` folder, use internationalized routing (https://nextjs.org/docs/advanced-features/i18n-routing).");return i.createElement(a.IntlProvider,(0,r.g)({locale:s,now:u},c),n)}},16255:function(e,t,n){"use strict";var r=n(36268);t.Z=r.default},33145:function(e,t,n){"use strict";n.d(t,{default:function(){return o.a}});var r=n(48461),o=n.n(r)},48667:function(e,t,n){"use strict";n.d(t,{default:function(){return o.a}});var r=n(88003),o=n.n(r)},48461:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return u},getImageProps:function(){return s}});let r=n(47043),o=n(55346),i=n(65878),a=r._(n(5084));function s(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let u=i.Image},96491:function(e){e.exports={style:{fontFamily:"'__Open_Sans_2fad4c', '__Open_Sans_Fallback_2fad4c'",fontStyle:"normal"},className:"__className_2fad4c",variable:"__variable_2fad4c"}},65631:function(e){e.exports={style:{fontFamily:"'__Urbanist_b666be', '__Urbanist_Fallback_b666be'",fontStyle:"normal"},className:"__className_b666be"}},32576:function(e){e.exports={style:{fontFamily:"'__Open_Sans_2fad4c', '__Open_Sans_Fallback_2fad4c'",fontStyle:"normal"},className:"__className_2fad4c",variable:"__variable_2fad4c"}},71599:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(2265),o=n(54887),i=n(98575),a=n(61188);let s=e=>{let{present:t,children:n}=e,s=function(e){var t,n;let[i,s]=(0,r.useState)(),c=(0,r.useRef)({}),l=(0,r.useRef)(e),f=(0,r.useRef)("none"),[d,p]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return(0,r.useEffect)(()=>{let e=u(c.current);f.current="mounted"===d?e:"none"},[d]),(0,a.b)(()=>{let t=c.current,n=l.current;if(n!==e){let r=f.current,o=u(t);e?p("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?p("UNMOUNT"):n&&r!==o?p("ANIMATION_OUT"):p("UNMOUNT"),l.current=e}},[e,p]),(0,a.b)(()=>
1{if(i){let e=e=>{let t=u(c.current).includes(e.animationName);e.target===i&&t&&(0,o.flushSync)(()=>p("ANIMATION_END"))},t=e=>{e.target===i&&(f.current=u(c.current))};return i.addEventListener("animationstart",t),i.addEventListener("animationcancel",e),i.addEventListener("animationend",e),()=>{i.removeEventListener("animationstart",t),i.removeEventListener("animationcancel",e),i.removeEventListener("animationend",e)}}p("ANIMATION_END")},[i,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:(0,r.useCallback)(e=>{e&&(c.current=getComputedStyle(e)),s(e)},[])}}(t),c="function"==typeof n?n({present:s.isPresent}):r.Children.only(n),l=(0,i.e)(s.ref,c.ref);return"function"==typeof n||s.isPresent?(0,r.cloneElement)(c,{ref:l}):null};function u(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"}}]);

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.