PageSourceSearch

https://udn.com/static/js/udn-submenu.bundle.js?tsb=1789960739698

js udn.com collected 2026-09-24 07:37:03 UTC 13,780 bytes, 2 lines download raw bytes

vendor: 4,395 bytes, lines 1-2
1/*! For license information please see udn-submenu.bundle.js.LICENSE.txt */
2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[802],{3708:function(t,n,r){r.r(n);var o=r(5015),i=r(1315),a=r(8856),c=r(9776),u=r(3503),s=r(4099);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function f(){f=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new j(r||[]);return o(a,"_invoke",{value:k(t,n,c)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var v="suspendedStart",p="suspendedYield",m="executing",y="completed",g={};function b(){}function w(){}function L(){}var E={};s(E,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(C([])));S&&S!==n&&r.call(S,a)&&(E=S);var _=L.prototype=b.prototype=Object.create(E);function T(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function X(t,e){function n(o,i,a,c){var u=d(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,n,r){var o=v;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=O(c,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===v)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=d(e,n,r);if("normal"===s.type){if(o=r.done?y:p,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=y,r.method="throw",r.arg=s.arg)}}}function O(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function q(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(q,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(l(e)+" is not iterable")}return w.prototype=L,o(_,"constructor",{value:L,configurable:!0}),o(L,"constructor",{value:w,configurable:!0}),w.displayName=s(L,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,L):(t.__proto__=L,s(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},T(X.prototype),s(X.prototype,c,(function(){return this})),e.AsyncIterator=X,e.async=function(t,n,r,o,i){void 0===i&&(i=Prom
2ise);var a=new X(h(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(_),s(_,u,"Generator"),s(_,a,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=C,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function h(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}var d,v,p=document.querySelector(".navigation-submenu"),m=document.querySelector(".navigation-submenu .container"),y=document.querySelector(".navigation-submenu__footer .container"),g=document.querySelector(".navigation-submenu__wrapper"),b=document.querySelector(".navigation"),w=document.querySelector(".navigation-submenu__selector"),L=document.querySelector(".left-arrow"),E=document.querySelector(".right-arrow"),x=document.querySelector(".navigation"),S=500,_=!1,T=null,X={},k=(0,s.Ay)(p,s.nY),O=!1;function q(t){var e=460,n=220;X={isDrag:!1,isTouch:"undefined"!=typeof window&&"ontouchstart"in window,startX:null,direction:null,dragOffsetX:0,translateX:0,tempX:0,thresholdWidth:e*t-m.clientWidth+n+80,position:[]},N(0),X.position=new Array(t).fill(t).map((function(t,n){return n*e})),_&&g.addEventListener(X.isTouch?"touchstart":"mousedown",A)}function A(t){X.startX=P(t).x,G(!0),document.addEventListener(X.isTouch?"touchend":"mouseup",C,!0),document.addEventListener(X.isTouch?"touchmove":"mousemove",j,!0)}function j(t){if(X.isDrag){g.classList.add("dragging");var e=P(t).x,n=X.startX-e;X.dragOffsetX=n;var r=X.translateX-n;X.tempX=r,N(r),t.stopImmediatePropagation()}}function C(){X.isDrag&&(G(!1),0!==X.dragOffsetX&&(g.classList.remove("dragging"),X.translateX=X.tempX,X.dragOffsetX=0,document.removeEventListener(X.isTouch?"touchend":"mouseup",C,!0),document.removeEventListener(X.isTouch?"touchmove":"mousemove",j,!0),F()))}function N(t){g.setAttribute("style","transform: translate3d(".concat(t,"px, 0, 0);"))}function P(t){return{x:X.isTouch?t.changedTouches[0].clientX:t.clientX,y:X.isTouch?t.changedTouches[0].clientY:t.clientY}}function G(t){X.isDrag=t}function Y(){N(0),W(0),X.translateX=0}function F(){if(X.translateX>=0)Y();else{if(-X.translateX>=X.thresholdWidth)return X.isLast?(Y(),void(X.isLast=!1)):(N(-X.thresholdWidth),W(X.position.length-1),X.translateX=-X.thresholdWidth,void(X.isLast=!0));X.isLast=!1;for(var t=0;t<X.position.length;t++){var e=X.position;if(-X.translateX>=e[t]&&-X.translateX<e[t+1]){W(t);break}}}}function W(t){g.querySelector(".context-box")&&(g.querySelector(".context-box.active").classList.remove("active"),g.querySelector('.context-box[data-index="'.concat(t,'"]')).classList.add("active")),w.querySelector(".list-ellipsis.active").classList.remove("active"),w.querySelectorAll(".list-ellipsis")[t].classList.add("active")}function D(t,e){N(-t),X.translateX=-t,F()}function I(t){return!t||t.classList.contains("navigation--sales")||t.classList.contains("home")||function(t){return!!t&&(t.classList.contains("navigation--simple")||"true"===t.dataset.simple||"simple"===t.dataset.id)}(t)}function M(t){if(!O){d&&d.abort(),k.dispatchAction(s.nY);var e=document.querySelector(".navigation-list.on");e&&e.classList.remove("on"),b.dataset.state=s.nY}}function B(){var t;return t=f().mark((function t(n){var r,o,l,h;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!I(n)){t.next=2;break}return t.abrupt("return");case 2:return r=n.dataset.id,r,(o=document.querySelector(".navigation-list.on"))&&o.classList.remove("on"),n.classList.add("on"),b.dataset.state=s.C_,f=void 0,(f=document.querySelector(".navigation-submenu__iframe"))&&f.remove(),_&&g.removeEventListener(X.isTouch?"touchstart":"mousedown",A),g.setAttribute("style",""),k.dispatchAction(s.f8),d&&d.abort(),!(0,c.RX)()&&"AbortController"in window&&(d=new AbortController,v=d.signal),t.prev=12,t.next=15,(0,u.J4)(i.t.subMenu,{id:r},{signal:v});case 15:if(l=t.sent,d=!1,l.state){t.next=19;break}return t.abrupt("return");
2case 19:if(h=l.hasOwnProperty("footer")?l.footer:{},!l.frame){t.next=27;break}return J(l.frameHref),R(),(0,a.hm)([],g),(0,a.Gm)(h,y),k.dispatchAction(s.C_),t.abrupt("return");case 27:(0,a.hm)(l.dataset,g),H(l.dataset),(0,a.Gm)(h,y),q(l.dataset.length),k.dispatchAction(s.C_),W(0),t.next=40;break;case 35:t.prev=35,t.t0=t.catch(12),e.target.classList.remove("on"),b.dataset.state=s.nY;case 40:case"end":return t.stop()}var f}),t,null,[[12,35]])})),B=function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){h(i,r,o,a,c,"next",t)}function c(t){h(i,r,o,a,c,"throw",t)}a(void 0)}))},B.apply(this,arguments)}function R(){for(;w.firstChild;)w.firstChild.parentNode.removeChild(w.firstChild)}function H(t){R(),t.forEach((function(t,e){var n=document.createElement("span");n.className="list-ellipsis",0===e&&n.classList.add("active"),n.textContent=t.title,n.title=t.title,n.dataset.index=e,n.dataset.id=t.id,n.addEventListener("click",(function(t){t.preventDefault(),T&&clearTimeout(T),D(X.position[e]),W(e)})),n.addEventListener("mouseover",(function(t){T&&clearTimeout(T),T=setTimeout((function(){D(X.position[e]),W(e)}),S)})),n.addEventListener("mouseleave",(function(t){T&&clearTimeout(T)})),w.appendChild(n)}))}function J(t){var e=document.createElement("iframe");e.className="navigation-submenu__iframe",e.src=t,e.scrolling="no",document.querySelector(".navigation-submenu .container").prepend(e)}L.addEventListener("click",(function(t){var e=Math.abs(X.translateX),n=Object.assign([],X.position).reverse();D(0===e?X.position[X.position.length-1]:n.find((function(t){return t<e})))})),E.addEventListener("click",(function(t){var e=Math.abs(X.translateX),n=X.position[X.position.length-1];D(e===n?0:X.position.find((function(t){return t>e})))})),x.addEventListener("mouseover",(function(t){if(!(window.innerWidth<o.BREAK_POINT.tablet)){var e=function(t){var e=t.target;
2return e instanceof Element?e.closest(".navigation-list"):null}(t);if(e){if(I(e))return T&&clearTimeout(T),void M();T&&clearTimeout(T),T=setTimeout((function(){!function(t){B.apply(this,arguments)}(e)}),S)}}})),x.addEventListener("mouseleave",(function(t){T&&clearTimeout(T),T=setTimeout((function(){M()}),S)})),p.addEventListener("mouseover",(function(){O=!0})),p.addEventListener("mouseleave",(function(){O=!1,d&&d.abort()})),p.addEventListener("mouseleave",(0,c.sg)(M,S))},4099:function(t,e,n){n.d(e,{BL:function(){return c},C_:function(){return f},F5:function(){return r},X:function(){return l},f8:function(){return h},ff:function(){return a},nY:function(){return o},uY:function(){return s},v$:function(){return u},yE:function(){return i}});var r="loading",o="idle",i="ready",a="error",c="finished",u="fetching",s="invalid",l="unchecked",f="opened",h="open-loading";e.Ay=function(t){var e=arguments.length>3?arguments[3]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,i=null;void 0!==e||t.className;return t.dataset.state=n,{dispatchAction:function(e){i=n,t.dataset.state=e,n=e},get getState(){return n},get getPrevState(){return i},get isLoading(){return n==r},get isEnd(){return n===c},debugging:function(t){t}}}}}]);

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.