PageSourceSearch

https://udn.com/static/js/utils_head.bundle.js?202610011158

js udn.com collected 2026-10-01 07:52:37 UTC 8,230 bytes, 1 lines download raw bytes

1!function(){"use strict";var e,t={3688:function(e,t,n){var r=n(2299),o=n.n(r),i="udn:";"".concat(i,"menu"),"".concat(i,"text"),"".concat(i,"recommendation"),"".concat(i,"location");function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var d=function(){return e=function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),e.instance?e.instance:(e.instance=this,this.classes=[],this)},t=[{key:"getClasses",value:function(){return this.classes}},{key:"setClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this.classes=[].concat(c(this.classes),c(e)),this.classes.forEach((function(e){document.body.classList.contains(e)||document.body.classList.add(e)})),this.classes}},{key:"setClass",value:function(e){return document.body.classList.add(e),this.classes}},{key:"removeClass",value:function(e){return this.classes=this.classes.filter((function(t){return t!==e})),document.body.classList.remove(e),this.classes}},{key:"removeAllClasses",value:function(){return this.classes.forEach((function(e){document.body.classList.remove(e)})),this.classes=[],this.classes}}],t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),f=new d;function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function p(e){var t=function(e,t){if("object"!=m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==m(t)?t:t+""}var y=function(){return e=function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),e.instance?e.instance:(e.instance=this,this)},(t=[{key:"createBox",value:function(e,t){var n=e.title,r=e.message,o=e.type,i=document.createElement("section");i.className="udn-box";var a=document.createElement("div");a.className="udn-box__container";var c=document.createElement("h2");if(c.className="udn-box__title",c.textContent=n||"未知錯誤",a.appendChild(c),void 0!==r){var u=document.createElement("div");u.innerHTML=r,u.className="udn-box__content",a.appendChild(u)}var s=document.createElement("div");s.className="udn-box__button btn-holder btn-holder--center";var l=document.createElement("button");if(l.className="btn btn-box btn-red btn-ripple",l.textContent="confirm"===o?"取消":"確認",l.addEventListener("click",(function(e){e.preventDefault(),m()})),"confirm"===o){var d=document.createElement("button");d.className="btn btn-box btn-blue btn-ripple",d.textContent="確定",d.addEventListener("click",(function(e){e.preventDefault(),m(),t()})),s.appendChild(d)}function m(){f.removeClass("alert-open"),setTimeout((function(){i.parentNode.removeChild(i)}),1e3)}document.addEventListener("keydown",(function e(t){"Escape"===t.key&&(m(),document.removeEventListener("keydown",e))})),s.appendChild(l),a.appendChild(s),i.appendChild(a),document.body.appendChild(i)}},{key:"alert",value:function(e){var t=e.title,n=e.message;f.setClass("alert-open"),this.createBox({title:t,message:n,type:"alert"})}},{key:"confirm",value:function(e,t){var n=e.title,r=e.message;f.setClass("alert-open"),this.createBox({title:n,message:r,type:"confirm"},t)}}])&&v(e.prototype,t),n&&v(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),b=new y;function h(e){var t=("; "+document.cookie).split("; "+e+"=");if(2==t.length)return t.pop().split(";").shift()}var _,g,w,C;window.__UDN__=window.__UDN__||{}
1,window.__UDN__.Cookies=o(),window.__UDN__.calcNavTop=function(){if(!document.body.classList.contains("menu-stick")){var e=document.querySelector(".header"),t=document.querySelector(".header-wrapper"),n=e.offsetTop+t.clientHeight;return window.__UDN__=window.__UDN__||{},window.__UDN__.menuTop=n,n}},window.__UDN__.BOX=b,window.__UDN__.etu_id=null!==(_=o().get("__eruid"))&&void 0!==_?_:"",window.__UDN__.user_id=null!==(g=o().get("udnland"))&&void 0!==g?g:"noset",window.__UDN__.ga_id=(w=o().get("_ga"),(C=w?w.split("."):[]).splice(0,2),C.length?C.join("."):"__"),window.__UDN__.isOptimizePerformance=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;return!("connection"in navigator&&navigator.connection.saveData||"connection"in navigator&&/\slow-2g|2g|3g/.test(navigator.connection.effectiveType)||(e=t,"undefined"!=typeof navigator&&"deviceMemory"in navigator&&!(navigator.deviceMemory>=e)))};var S=h("udngold"),k=h("um2"),N=o().get("udngold"),x=o().get("udnland");void 0!==k&&void 0!==N&&k!==S&&(o().remove("udnland"),o().remove("udngold")),void 0!==S&&""!==S&&function(e,t,n){var r=n.domain,o=n.path,i=n.expires,a=n.secure,c=n.sameSite;if(i){var u=new Date;u.setTime(u.getTime()+24*i*60*60*1e3),i="; expires="+u.toUTCString()}document.cookie=e+"="+(t||"")+i+"; path="+o+"; samesite="+c+"; domain="+r+(a?"; secure":"")}("udngold",S,{domain:".udn.com",path:"/",expires:365,secure:!0,sameSite:"none"}),void 0!==x&&o().set("udnland",x,{domain:".udn.com",path:"/",expires:365,secure:!0,sameSite:"none"}),"undefined"!==x&&"undefined"!==N&&""!==N||(o().remove("udnland"),o().remove("udngold"))}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.m=t,e=[],r.O=function(t,n,o,i){if(!n){var a=1/0;for(l=0;l<e.length;l++){n=e[l][0],o=e[l][1],i=e[l][2];for(var c=!0,u=0;u<n.length;u++)(!1&i||a>=i)&&Object.keys(r.O).every((function(e){return r.O[e](n[u])}))?n.splice(u--,1):(c=!1,i<a&&(a=i));if(c){e.splice(l--,1);var s=o();void 0!==s&&(t=s)}}return t}i=i||0;for(var l=e.length;l>0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[n,o,i]},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={947:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var o,i,a=n[0],c=n[1],u=n[2],s=0;if(a.some((function(t){return 0!==e[t]}))){for(o in c)r.o(c,o)&&(r.m[o]=c[o]);if(u)var l=u(r)}for(t&&t(n);s<a.length;s++)i=a[s],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return r.O(l)},n=self.webpackChunk=self.webpackChunk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var o=r.O(void 0,[178],(function(){return r(3688)}));o=r.O(o)}();

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.