1/*! For license information please see main.js.LICENSE.txt */ 2(()=>{"use strict";var t={963:()=>{!function(t,e){if(void 0===e)return;if(void 0===t.tkt_deqwas)return;const i=e("#js-deqwasAssets"),s=new CustomEvent("addDeqwasRecommend");0!==i.length&&e.ajax({url:"/data/recommend-bottom-2023.jsp",type:"POST",dataType:"html",data:("L",t.tkt_deqwas.bottom=e.extend({assetSize:"L"},t.tkt_deqwas.bottom),t.tkt_deqwas),success(t){i.html(t),window.dispatchEvent(s)}});const o=e("#js-deqwasAssets-mykRelated"),n=new CustomEvent("addDeqwasMykRelated");0!==o.length&&e.ajax({url:"/data/deqwas-myk-asset-recommend-2024.jsp",type:"POST",dataType:"html",data:t.tkt_deqwas,success(t){o.html(t),window.dispatchEvent(n)}});const r=e("#js-deqwasAssets-mykRecommend"),a=new CustomEvent("addDeqwasMykRecommend");0!==r.length&&e.ajax({url:"/data/deqwas-myk-asset-recommend-p-2024.jsp",type:"POST",dataType:"html",data:t.tkt_deqwas,success(t){r.html(t),window.dispatchEvent(a)}})}(window,window.jQuery)}},e={};function i(s){var o=e[s];if(void 0!==o)return o.exports;var n=e[s]={exports:{}};return t[s](n,n.exports,i),n.exports}(()=>{const t={html:document.documentElement,body:document.body,mediaQuery:window.matchMedia("(max-width: 969px)"),focusableElementTagNames:"[href], input, select, textarea, button, iframe, object, embed, video, audio, summary, [tabindex]",focusableElements:document.querySelectorAll("[href], input, select, textarea, button, iframe, object, embed, video, audio, summary, [tabindex]"),scrollElement:document.scrollingElement,overlay:document.createElement("span")};t.overlay.classList.add("fn-overlay"),t.body.querySelector(".fn-overlay")||t.body.append(t.overlay),window.searchResultsLoadedEvent=new CustomEvent("searchResultsLoaded");const e=(t,e=!0)=>{t.style.overflow="hidden",e&&(t.style.transition="height 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1)"),t.style.height=`${t.scrollHeight}px`,t.offsetHeight,t.style.height="0",t.style.visibility="hidden"},s=(t,e=!0)=>{t.style.overflow="hidden",e&&(t.style.transition="height 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1)"),t.style.visibility="visible",t.style.height="0",t.style.display="block",t.style.height=`${t.scrollHeight}px`,t.addEventListener("transitionend",(()=>{"false"===t.getAttribute("aria-hidden")&&(t.style.height="auto")}),{once:!0})},o=(t,e,i)=>{const s=`${i}-${Math.random().toString().substring(2)}`;t.setAttribute("aria-controls",s),e.setAttribute("id",s)},n=(t,e,i)=>{t.setAttribute("aria-expanded",i.toString()),e.setAttribute("aria-hidden",(!i).toString())},r=(t,e,i)=>{const s=t;let o=null;return e.after(document.importNode(s.content,!0)),i&&(o=document.querySelector(i)),o},a=()=>{document.documentElement.classList.add("is-scroll-off")},l=()=>{document.documentElement.classList.remove("is-scroll-off")},c=e=>{const i=e.querySelectorAll(t.focusableElementTagNames);for(const t of i)if(!t.hasAttribute("inert")&&(t.offsetWidth>0||t.offsetHeight>0))return t;return null},h=t=>{const e=document.cookie.split(";").find((e=>e.trim().startsWith(`${t}=`)));return e?.split("=")[1]},u=(t,e,i,s)=>{const o=new Date;o.setDate(o.getDate()+i),document.cookie=`${t}=${e}; expires=${o.toUTCString()}; path=/; 'domain=${s||""};`},d="js-toggle__hookText";class m{root;toggleHook;toggleHookText;toggleHookTextOpen;toggleHookTextClose;toggleHookTextFlag;toggleContent;toggleActiveFlag;viewMoreFlag;toggleClickEvent;toggleOpenEvent;constructor(t){this.root=t,this.toggleHook=null,this.toggleHookText=null,this.toggleHookTextOpen="",this.toggleHookTextClose="éãã",this.toggleHookTextFlag=!1,this.toggleContent=null,this.toggleActiveFlag=!0,this.viewMoreFlag="true"===this.root.dataset.viewmoreToggle,this.toggleClickEvent=this.toggle.bind(this),this.toggleOpenEvent=new CustomEvent("toggleOpen")}init(){this.set(),this.elementInit(),this.setDisplay(),this.bindEvent()}set(){this.root&&(this.toggleHook=this.root.querySelector(".js-toggle__hook"),this.toggleHookText=this.root.querySelector(`.${d}`),this.toggleContent=this.root.querySelector(".js-toggle__content"),this.toggleHookText&&(this.toggleHookTextOpen=this.toggleHookText.textContent),this.toggleHookText?.dataset.hookTextClose&&(this.toggleHookTextClose=this.toggleHookText.dataset.hookTextClose))}setDisplay(){this.toggleHook&&this.toggleContent&&(this.toggleHook.getAttribute("aria-expanded")&&"false"!==this.toggleHook.getAttribute("aria-expanded")?"true"===this.toggleHook.getAttribute("aria-expanded")&&(this.toggleContent.style.visibility="visible",this.toggleContent.style.display="block",this.toggleContent.style.height="auto",this.toggleContent.setAttribute("aria-hidden","false"),this.changeHookTextClose()):(this.toggleContent.style.height="0",this.toggleContent.style.overflow="hidden",this.toggleContent.style.visibility="hidden",n(this.toggleHook,this.toggleContent,!1)),this.setId(),this.judgmentActive())}elementInit(){this.toggleHook&&this.toggleContent&&(this.setId(),this.judgmentChangeHookText(),this.toggleHook.addEventListener("click",this.toggleClickEvent))}setId(){if(!this.toggleHook||!this.toggleContent)return;const t=this.toggleContent.getAttribute("id");t?this.toggleHook.setAttribute("aria-controls",t):o(this.toggleHook,this.toggleContent,"js-toggle")}judgmentActive(){if(this.toggleHook&&this.toggleContent&&this.root.dataset.toggleActiveSp&&this.root.dataset.toggleActiveSp){if(this.root.dataset.toggleActiveSp){if("true"===this.root.dataset.toggleActiveSp&&!t.mediaQuery.matches)return this.toggleActiveFlag=!1,this.destroyBindEvent(),void(this.toggleHook instanceof HTMLButtonElement&&(this.toggleHook.classList.add("is-inert-exclusion"),this.toggleHook.inert=!0))}else if(this.root.dataset.toggleActivePc&&"true"===this.root.dataset.toggleActivePc&&t.mediaQuery.matches)return this.toggleActiveFlag=!1,void this.destroyBindEvent();n(this.toggleHook,this.toggleContent,!1),this.toggleHook.classList.remove("is-inert-exclusion"),this.toggleHook.inert=!1,this.toggleActiveFlag=!0,this.setBindEvent()}}toggle(t){this.toggleActiveFlag&&(t.preventDefault(),this.judgmentChangeHookText(),"false"===this.toggleHook?.getAttribute("aria-expanded")?this.open():this.close())}open(){this.toggleHook&&this.toggleContent&&(this.changeHookTextClose(),s(this.toggleContent),n(this.toggleHook,this.toggleContent,!0),this.toggleContent.dispatchEvent(this.toggleOpenEvent),this.viewMoreFlag&&this.toggleContent.addEventListener("transitionend",(()=>{this.toggleContent&&(this.toggleContent.setAttribute("tabindex","-1"),this.toggleContent.focus())}),{once:!0}))}close(){this.toggleHook&&this.toggleContent&&(this.changeHookTextOpen(),e(this.toggleContent),n(this.toggleHook,this.toggleContent,!1),this.toggleContent.addEventListener("transitionend",(()=>{"true"===this.toggleContent?.getAttribute("aria-hidden")&&(this.toggleContent.style.display="none")}),{once:!0}))}judgmentChangeHookText(){this.toggleHook?.firstElementChild?.classList.contains(d)&&(this.toggleHookTextFlag=!0)}changeHookTextClose(){this.toggleHookText&&this.toggleHookTextFlag&&(this.toggleHookText.textContent=this.toggleHookTextClose,this.toggleHookTextFlag=!1)}changeHookTextOpen(){this.toggleHookText&&this.toggleHookTextFlag&&(this.toggleHookText.textContent=this.toggleHookTextOpen,this.toggleHookTextFlag=!1)}bindEvent(){this.toggleHook&&this.toggleContent&&t.mediaQuery.addEventListener("change",(()=>{this.setDisplay()}))}setBindEvent(){this.toggleHook&&this.toggleContent&&(n(this.toggleHook,this.toggleContent,!1),this.toggleHook.addEventListener("click",this.toggleClickEvent))}destroyBindEvent(){this.toggleHook&&this.toggleContent&&(this.toggleHook.removeEventListener("click",this.toggleClickEvent),this.toggleHook.removeAttribute("aria-expanded"),this.toggleHook.removeAttribute("aria-controls"),this.toggleContent.removeAttribute("aria-hidden"),this.toggleContent.removeAttribute("style"))}}function p(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}var g="(prefers-reduced-motion: reduce)",b={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7};function f(t){t.length=0}function y(t,e,i){return Array.prototype.slice.call(t,e,i)}
2function v(t){return t.bind.apply(t,[null].concat(y(arguments,1)))}var E=setTimeout,w=function(){};function k(t){return requestAnimationFrame(t)}function C(t,e){return typeof e===t}function S(t){return!D(t)&&C("object",t)}var A=Array.isArray,L=v(C,"function"),I=v(C,"string"),_=v(C,"undefined");function D(t){return null===t}function N(t){try{return t instanceof(t.ownerDocument.defaultView||window).HTMLElement}catch(t){return!1}}function T(t){return A(t)?t:[t]}function P(t,e){T(t).forEach(e)}function x(t,e){return t.indexOf(e)>-1}function j(t,e){return t.push.apply(t,T(e)),t}function q(t,e,i){t&&P(e,(function(e){e&&t.classList[i?"add":"remove"](e)}))}function O(t,e){q(t,I(e)?e.split(" "):e,!0)}function B(t,e){P(e,t.appendChild.bind(t))}function H(t,e){P(t,(function(t){var i=(e||t).parentNode;i&&i.insertBefore(t,e)}))}function M(t,e){return N(t)&&(t.msMatchesSelector||t.matches).call(t,e)}function F(t,e){var i=t?y(t.children):[];return e?i.filter((function(t){return M(t,e)})):i}function $(t,e){return e?F(t,e)[0]:t.firstElementChild}var R=Object.keys;function U(t,e,i){return t&&(i?R(t).reverse():R(t)).forEach((function(i){"__proto__"!==i&&e(t[i],i)})),t}function G(t){return y(arguments,1).forEach((function(e){U(e,(function(i,s){t[s]=e[s]}))})),t}function z(t){return y(arguments,1).forEach((function(e){U(e,(function(e,i){A(e)?t[i]=e.slice():S(e)?t[i]=z({},S(t[i])?t[i]:{},e):t[i]=e}))})),t}function W(t,e){P(e||R(t),(function(e){delete t[e]}))}function Y(t,e){P(t,(function(t){P(e,(function(e){t&&t.removeAttribute(e)}))}))}function Q(t,e,i){S(e)?U(e,(function(e,i){Q(t,i,e)})):P(t,(function(t){D(i)||""===i?Y(t,e):t.setAttribute(e,String(i))}))}function V(t,e,i){var s=document.createElement(t);return e&&(I(e)?O(s,e):Q(s,e)),i&&B(i,s),s}function K(t,e,i){if(_(i))return getComputedStyle(t)[e];D(i)||(t.style[e]=""+i)}function X(t,e){K(t,"display",e)}function J(t){t.setActive&&t.setActive()||t.focus({preventScroll:!0})}function Z(t,e){return t.getAttribute(e)}function tt(t,e){return t&&t.classList.contains(e)}function et(t){return t.getBoundingClientRect()}function it(t){P(t,(function(t){t&&t.parentNode&&t.parentNode.removeChild(t)}))}function st(t){return $((new DOMParser).parseFromString(t,"text/html").body)}function ot(t,e){t.preventDefault(),e&&(t.stopPropagation(),t.stopImmediatePropagation())}function nt(t,e){return t&&t.querySelector(e)}function rt(t,e){return e?y(t.querySelectorAll(e)):[]}function at(t,e){q(t,e,!1)}function lt(t){return t.timeStamp}function ct(t){return I(t)?t:t?t+"px":""}var ht="splide",ut="data-"+ht;function dt(t,e){if(!t)throw new Error("["+ht+"] "+(e||""))}var mt=Math.min,pt=Math.max,gt=Math.floor,bt=Math.ceil,ft=Math.abs;function yt(t,e,i){return ft(t-e)<i}function vt(t,e,i,s){var o=mt(e,i),n=pt(e,i);return s?o<t&&t<n:o<=t&&t<=n}
2function Et(t,e,i){var s=mt(e,i),o=pt(e,i);return mt(pt(s,t),o)}function wt(t){return+(t>0)-+(t<0)}function kt(t,e){return P(e,(function(e){t=t.replace("%s",""+e)})),t}function Ct(t){return t<10?"0"+t:""+t}var St={};function At(){var t=[];function e(t,e,i){P(t,(function(t){t&&P(e,(function(e){e.split(" ").forEach((function(e){var s=e.split(".");i(t,s[0],s[1])}))}))}))}return{bind:function(i,s,o,n){e(i,s,(function(e,i,s){var r="addEventListener"in e,a=r?e.removeEventListener.bind(e,i,o,n):e.removeListener.bind(e,o);r?e.addEventListener(i,o,n):e.addListener(o),t.push([e,i,s,o,a])}))},unbind:function(i,s,o){e(i,s,(function(e,i,s){t=t.filter((function(t){return!!(t[0]!==e||t[1]!==i||t[2]!==s||o&&t[3]!==o)||(t[4](),!1)}))}))},dispatch:function(t,e,i){var s;return"function"==typeof CustomEvent?s=new CustomEvent(e,{bubbles:!0,detail:i}):(s=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!1,i),t.dispatchEvent(s),s},destroy:function(){t.forEach((function(t){t[4]()})),f(t)}}}var Lt="mounted",It="ready",_t="move",Dt="moved",Nt="click",Tt="refresh",Pt="updated",xt="resize",jt="resized",qt="scroll",Ot="scrolled",Bt="destroy",Ht="navigation:mounted",Mt="autoplay:play",Ft="autoplay:pause",$t="lazyload:loaded",Rt="ei";function Ut(t){var e=t?t.event.bus:document.createDocumentFragment(),i=At();return t&&t.event.on(Bt,i.destroy),G(i,{bus:e,on:function(t,s){i.bind(e,T(t).join(" "),(function(t){s.apply(s,A(t.detail)?t.detail:[])}))},off:v(i.unbind,e),emit:function(t){i.dispatch(e,t,y(arguments,1))}})}function Gt(t,e,i,s){var o,n,r=Date.now,a=0,l=!0,c=0;function h(){if(!l){if(a=t?mt((r()-o)/t,1):1,i&&i(a),a>=1&&(e(),o=r(),s&&++c>=s))return u();n=k(h)}}function u(){l=!0}function d(){n&&cancelAnimationFrame(n),a=0,n=0,l=!0}return{start:function(e){e||d(),o=r()-(e?a*t:0),l=!1,n=k(h)},rewind:function(){o=r(),a=0,i&&i(a)},pause:u,cancel:d,set:function(e){t=e},isPaused:function(){return l}}}var zt="Arrow",Wt=zt+"Left",Yt=zt+"Right",Qt=zt+"Up",Vt=zt+"Down",Kt="ttb",Xt={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Qt,Yt],ArrowRight:[Vt,Wt]};var Jt="role",Zt="tabindex",te="aria-",ee=te+"controls",ie=te+"current",se=te+"selected",oe=te+"label",ne=te+"labelledby",re=te+"hidden",ae=te+"orientation",le=te+"roledescription",ce=te+"live",he=te+"busy",ue=te+"atomic",de=[Jt,Zt,"disabled",ee,ie,oe,ne,re,ae,le],me=ht+"__",pe="is-",ge=ht,be=me+"track",fe=me+"list",ye=me+"slide",ve=ye+"--clone",Ee=ye+"__container",we=me+"arrows",ke=me+"arrow",Ce=ke+"--prev",Se=ke+"--next",Ae=me+"pagination",Le=Ae+"__page",Ie=me+"progress__bar",_e=me+"toggle",De=me+"sr",Ne=pe+"initialized",Te=pe+"active",Pe=pe+"prev",xe=pe+"next",je=pe+"visible",qe=pe+"loading",Oe=pe+"focus-in",Be=pe+"overflow",He=[Te,je,Pe,xe,qe,Oe,Be],Me={slide:ye,clone:ve,arrows:we,arrow:ke,prev:Ce,next:Se,pagination:Ae,page:Le,spinner:me+"spinner"},Fe="touchstart mousedown",$e="touchmove mousemove",Re="touchend touchcancel mouseup click",Ue="slide",Ge="loop",ze="fade";var We=ut+"-interval",Ye={passive:!1,capture:!0},Qe={Spacebar:" ",Right:Yt,Left:Wt,Up:Qt,Down:Vt};function Ve(t){return t=I(t)?t:t.key,Qe[t]||t}var Ke="keydown",Xe=ut+"-lazy",Je=Xe+"-srcset",Ze="["+Xe+"], ["+Je+"]",ti=[" ","Enter"],ei=Object.freeze({__proto__:null,Media:function(t,e,i){var s=t.state,o=i.breakpoints||{},n=i.reducedMotion||{},r=At(),a=[];function l(t){t&&r.destroy()}function c(t,e){var i=matchMedia(e);r.bind(i,"change",h),a.push([t,i])}function h(){var e=s.is(7),o=i.direction,n=a.reduce((function(t,e){return z(t,e[1].matches?e[0]:{})}),{});W(i),u(n),i.destroy?t.destroy("completely"===i.destroy):e?(l(!0),t.mount()):o!==i.direction&&t.refresh()}function u(e,o,n){z(i,e),o&&z(Object.getPrototypeOf(i),e),!n&&s.is(1)||t.emit(Pt,i)}return{setup:function(){var t="min"===i.mediaQuery;R(o).sort((function(e,i){return t?+e-+i:+i-+e})).forEach((function(e){c(o[e],"("+(t?"min":"max")+"-width:"+e+"px)")})),c(n,g),h()},destroy:l,reduce:function(t){matchMedia(g).matches&&(t?z(i,n):W(i,R(n)))},set:u}},Direction:function(t,e,i){return{resolve:function(t,e,s){var o="rtl"!==(s=s||i.direction)||e?s===Kt?0:-1:1;
2return Xt[t]&&Xt[t][o]||t.replace(/width|left|right/i,(function(t,e){var i=Xt[t.toLowerCase()][o]||t;return e>0?i.charAt(0).toUpperCase()+i.slice(1):i}))},orient:function(t){return t*("rtl"===i.direction?1:-1)}}},Elements:function(t,e,i){var s,o,n,r=Ut(t),a=r.on,l=r.bind,c=t.root,h=i.i18n,u={},d=[],m=[],p=[];function g(){var t,e,n;s=v("."+be),o=$(s,"."+fe),dt(s&&o,"A track/list element is missing."),j(d,F(o,"."+ye+":not(."+ve+")")),U({arrows:we,pagination:Ae,prev:Ce,next:Se,bar:Ie,toggle:_e},(function(t,e){u[e]=v("."+t)})),G(u,{root:c,track:s,list:o,slides:d}),e=c.id||""+(t=ht)+Ct(St[t]=(St[t]||0)+1),n=i.role,c.id=e,s.id=s.id||e+"-track",o.id=o.id||e+"-list",!Z(c,Jt)&&"SECTION"!==c.tagName&&n&&Q(c,Jt,n),Q(c,le,h.carousel),Q(o,Jt,"presentation"),y()}function b(t){var e=de.concat("style");f(d),at(c,m),at(s,p),Y([s,o],e),Y(c,t?e:["style",le])}function y(){at(c,m),at(s,p),m=E(ge),p=E(be),O(c,m),O(s,p),Q(c,oe,i.label),Q(c,ne,i.labelledby)}function v(t){var e=nt(c,t);return e&&function(t,e){if(L(t.closest))return t.closest(e);for(var i=t;i&&1===i.nodeType&&!M(i,e);)i=i.parentElement;return i}(e,"."+ge)===c?e:void 0}function E(t){return[t+"--"+i.type,t+"--"+i.direction,i.drag&&t+"--draggable",i.isNavigation&&t+"--nav",t===ge&&Te]}return G(u,{setup:g,mount:function(){a(Tt,b),a(Tt,g),a(Pt,y),l(document,Fe+" keydown",(function(t){n="keydown"===t.type}),{capture:!0}),l(c,"focusin",(function(){q(c,Oe,!!n)}))},destroy:b})},Slides:function(t,e,i){var s=Ut(t),o=s.on,n=s.emit,r=s.bind,a=e.Elements,l=a.slides,c=a.list,h=[];function u(){l.forEach((function(t,e){m(t,e,-1)}))}function d(){g((function(t){t.destroy()})),f(h)}function m(e,i,s){var o=function(t,e,i,s){var o,n=Ut(t),r=n.on,a=n.emit,l=n.bind,c=t.Components,h=t.root,u=t.options,d=u.isNavigation,m=u.updateOnMove,p=u.i18n,g=u.pagination,b=u.slideFocus,f=c.Direction.resolve,y=Z(s,"style"),E=Z(s,oe),w=i>-1,k=$(s,"."+Ee);function C(){var o=t.splides.map((function(t){var i=t.splide.Components.Slides.getAt(e);return i?i.slide.id:""})).join(" ");Q(s,oe,kt(p.slideX,(w?i:e)+1)),Q(s,ee,o),Q(s,Jt,b?"button":""),b&&Y(s,le)}function S(){o||A()}function A(){if(!o){var i=t.index;(n=L())!==tt(s,Te)&&(q(s,Te,n),Q(s,ie,d&&n||""),a(n?"active":"inactive",I)),function(){var e=function(){if(t.is(ze))return L();var e=et(c.Elements.track),i=et(s),o=f("left",!0),n=f("right",!0);return gt(e[o])<=bt(i[o])&>(i[n])<=bt(e[n])}(),i=!e&&(!L()||w);if(t.state.is([4,5])||Q(s,re,i||""),Q(rt(s,u.focusableNodes||""),Zt,i?-1:""),b&&Q(s,Zt,i?-1:0),e!==tt(s,je)&&(q(s,je,e),a(e?"visible":"hidden",I)),!e&&document.activeElement===s){var o=c.Slides.getAt(t.index);o&&J(o.slide)}}(),q(s,Pe,e===i-1),q(s,xe,e===i+1)}var n}function L(){var s=t.index;return s===e||u.cloneStatus&&s===i}var I={index:e,slideIndex:i,slide:s,container:k,isClone:w,mount:function(){w||(s.id=h.id+"-slide"+Ct(e+1),Q(s,Jt,g?"tabpanel":"group"),Q(s,le,p.slide),Q(s,oe,E||kt(p.slideLabel,[e+1,t.length]))),l(s,"click",v(a,Nt,I)),l(s,"keydown",v(a,"sk",I)),r([Dt,"sh",Ot],A),r(Ht,C),m&&r(_t,S)},destroy:function(){o=!0,n.destroy(),at(s,He),Y(s,de),Q(s,"style",y),Q(s,oe,E||"")},update:A,style:function(t,e,i){K(i&&k||s,t,e)},isWithin:function(i,s){var o=ft(i-e);return w||!u.rewind&&!t.is(Ge)||(o=mt(o,t.length-o)),o<=s}};return I}(t,i,s,e);o.mount(),h.push(o),h.sort((function(t,e){return t.index-e.index}))}function p(t){return t?b((function(t){return!t.isClone})):h}function g(t,e){p(e).forEach(t)}function b(t){return h.filter(L(t)?t:function(e){return I(t)?M(e.slide,t):x(T(t),e.index)})}return{mount:function(){u(),o(Tt,d),o(Tt,u)},destroy:d,update:function(){g((function(t){t.update()}))},register:m,get:p,getIn:function(t){var s=e.Controller,o=s.toIndex(t),n=s.hasFocus()?1:i.perPage;return b((function(t){return vt(t.index,o,o+n-1)}))},getAt:function(t){return b(t)[0]},add:function(t,e){P(t,(function(t){if(I(t)&&(t=st(t)),N(t)){var s=l[e];s?H(t,s):B(c,t),O(t,i.classes.slide),o=t,a=v(n,xt),h=rt(o,"img"),(u=h.length)?h.forEach((function(t){r(t,"load error",(function(){--u||a()}))})):a()}var o,a,h,u})),n(Tt)},remove:function(t){it(b(t).map((function(t){return t.slide}))),n(Tt)}
vendor: 5,500 bytes, line 2
2,forEach:g,filter:b,style:function(t,e,i){g((function(s){s.style(t,e,i)}))},getLength:function(t){return t?l.length:h.length},isEnough:function(){return h.length>i.perPage}}},Layout:function(t,e,i){var s,o,n,r=Ut(t),a=r.on,l=r.bind,c=r.emit,h=e.Slides,u=e.Direction.resolve,d=e.Elements,m=d.root,p=d.track,g=d.list,b=h.getAt,f=h.style;function y(){s=i.direction===Kt,K(m,"maxWidth",ct(i.width)),K(p,u("paddingLeft"),w(!1)),K(p,u("paddingRight"),w(!0)),E(!0)}function E(t){var e,r=et(m);(t||o.width!==r.width||o.height!==r.height)&&(K(p,"height",(e="",s&&(dt(e=k(),"height or heightRatio is missing."),e="calc("+e+" - "+w(!1)+" - "+w(!0)+")"),e)),f(u("marginRight"),ct(i.gap)),f("width",i.autoWidth?null:ct(i.fixedWidth)||(s?"":C())),f("height",ct(i.fixedHeight)||(s?i.autoHeight?null:C():k()),!0),o=r,c(jt),n!==(n=N())&&(q(m,Be,n),c("overflow",n)))}function w(t){var e=i.padding,s=u(t?"right":"left");return e&&ct(e[s]||(S(e)?0:e))||"0px"}function k(){return ct(i.height||et(g).width*i.heightRatio)}function C(){var t=ct(i.gap);return"calc((100%"+(t&&" + "+t)+")/"+(i.perPage||1)+(t&&" - "+t)+")"}function A(){return et(g)[u("width")]}function L(t,e){var i=b(t||0);return i?et(i.slide)[u("width")]+(e?0:D()):0}function I(t,e){var i=b(t);if(i){var s=et(i.slide)[u("right")],o=et(g)[u("left")];return ft(s-o)+(e?0:D())}return 0}function _(e){return I(t.length-1)-I(0)+L(0,e)}function D(){var t=b(0);return t&&parseFloat(K(t.slide,u("marginRight")))||0}function N(){return t.is(ze)||_(!0)>A()}return{mount:function(){var t,e;y(),l(window,"resize load",(t=v(c,xt),e=Gt(0,t,null,1),function(){e.isPaused()&&e.start()})),a([Pt,Tt],y),a(xt,E)},resize:E,listSize:A,slideSize:L,sliderSize:_,totalSize:I,getPadding:function(t){return parseFloat(K(p,u("padding"+(t?"Right":"Left"))))||0},isOverflow:N}},Clones:function(t,e,i){var s,o=Ut(t),n=o.on,r=e.Elements,a=e.Slides,l=e.Direction.resolve,c=[];function h(){n(Tt,u),n([Pt,xt],m),(s=p())&&(function(e){var s=a.get().slice(),o=s.length;if(o){for(;s.length<e;)j(s,s);j(s.slice(-e),s.slice(0,e)).forEach((function(n,l){var h=l<e,u=function(e,s){var o=e.cloneNode(!0);return O(o,i.classes.clone),o.id=t.root.id+"-clone"+Ct(s+1),o}(n.slide,l);h?H(u,s[0].slide):B(r.list,u),j(c,u),a.register(u,l-e+(h?0:o),n.index)}))}}(s),e.Layout.resize(!0))}function u(){d(),h()}function d(){it(c),f(c),o.destroy()}function m(){var t=p();s!==t&&(s<t||!t)&&o.emit(Tt)}function p(){var s=i.clones;if(t.is(Ge)){if(_(s)){var o=i[l("fixedWidth")]&&e.Layout.slideSize(0);s=o&&bt(et(r.track)[l("width")]/o)||i[l("autoWidth")]&&t.length||2*i.perPage}}else s=0;return s}return{mount:h,destroy:d}},Move:function(t,e,i){var s,o=Ut(t),n=o.on,r=o.emit,a=t.state.set,l=e.Layout,c=l.slideSize,h=l.getPadding,u=l.totalSize,d=l.listSize,m=l.sliderSize,p=e.Direction,g=p.resolve,b=p.orient,f=e.Elements,y=f.list,v=f.track;function E(){e.Controller.isBusy()||(e.Scroll.cancel(),w(t.index),e.Slides.update())}function w(t){k(L(t,!0))}function k(i,s){if(!t.is(ze)){var o=s?i:function(i){if(t.is(Ge)){var s=A(i),o=s>e.Controller.getEnd();(s<0||o)&&(i=C(i,o))}return i}(i);K(y,"transform","translate"+g("X")+"("+o+"px)"),i!==o&&r("sh")}}function C(t,e){var i=t-D(e),s=m();return t-b(s*(bt(ft(i)/s)||1))*(e?1:-1)}function S(){k(I(),!0),s.cancel()}function A(t){for(var i=e.Slides.get(),s=0,o=1/0,n=0;n<i.length;n++){var r=i[n].index,a=ft(L(r,!0)-t);if(!(a<=o))break;o=a,s=r}return s}function L(e,s){var o=b(u(e-1)-function(t){var e=i.focus;return"center"===e?(d()-c(t,!0))/2:+e*c(t)||0}(e));return s?function(e){return i.trimSpace&&t.is(Ue)&&(e=Et(e,0,b(m(!0)-d()))),e}(o):o}function I(){var t=g("left");return et(y)[t]-et(v)[t]+b(h(!1))}function D(t){return L(t?e.Controller.getEnd():0,!!i.trimSpace)}return{mount:function(){s=e.Transition,n([Lt,jt,Pt,Tt],E)},move:function(t,e,i,o){var n,l;t!==e&&(n=t>i,l=b(C(I(),n)),n?l>=0:l<=y[g("scrollWidth")]-et(v)[g("width")])&&(S(),k(C(I(),t>i),!0)),a(4),r(_t,e,i,t),s.start(e,(function(){a(3),r(Dt,e,i,t),o&&o()}))},jump:w,translate:k,shift:C,cancel:S,toIndex:A,toPosition:L,getPosition:I,getLimit:D,exceededLimit:function(t,e){e=_(e)?I():e;var i=!0!==t&&b(e)<b(D(!1)),s=!1!==t&&b(e)>b(D(!0));return i||s},reposition:E}},Controller:function(t,e,i){var s,o,n,r,a=Ut(t),l=a.on,c=a.emit,h=e.Move,u=h.getPosition,d=h.getLimit,m=h.toPosition,p=e.Slides,g=p.isEnough,b=p.getLength,f=i.omitEnd,y=t.is(Ge),E=t.is(Ue),w=v(D,!1),k=v(D,!0),C=i.start||0,S=C;function A(){o=b(!0),n=i.perMove,r=i.perPage,s=P();var t=Et(C,0,f?s:o-1);t!==C&&(C=t,h.reposition())}function L(){s!==P()&&c(Rt)}function D(t,e){var i=n||(O()?1:r),o=N(C+i*(t?-1:1),C,!(n||O()));return-1===o&&E&&!yt(u(),d(!t),1)?t?0:s:e?o:T(o)}function N(e,a,l){if(g()||O()){var c=function(e){if(E&&"move"===i.trimSpace&&e!==C)for(var s=u();s===m(e,!0)&&vt(e,0,t.length-1,!i.rewind);)e<C?--e:++e;return e}(e);c!==e&&(a=e,e=c,l=!1),e<0||e>s?e=n||!vt(0,e,a,!0)&&!vt(s,a,e,!0)?y?l?e<0?-(o%r||r):o:e:i.rewind?e<0?s:0:-1:x(j(e)):l&&e!==a&&(e=x(j(a)+(e<a?-1:1)))}else e=-1;return e}function T(t){return y?(t+o)%o||0:t}function P(){for(var t=o-(O()||y&&n?1:r);f&&t-- >0;)if(m(o-1,!0)!==m(t,!0)){t++;break}return Et(t,0,o-1)}function x(t){return Et(O()?t:r*t,0,s)}function j(t){return O()?mt(t,s):gt((t>=s?o-1:t)/r)}function q(t){t!==C&&(S=C,C=t)}function O(){return!_(i.focus)||i.isNavigation}function B(){return t.state.is([4,5])&&!!i.waitForTransition}return{mount:function(){A(),l([Pt,Tt,Rt],A),l(jt,L)},go:function(t,e,i){if(!B()){var o=function(t){var e=C;if(I(t)){var i=t.match(/([+\-<>])(\d+)?/)||[],o=i[1],n=i[2];
2"+"===o||"-"===o?e=N(C+ +(""+o+(+n||1)),C):">"===o?e=n?x(+n):w(!0):"<"===o&&(e=k(!0))}else e=y?t:Et(t,0,s);return e}(t),n=T(o);n>-1&&(e||n!==C)&&(q(n),h.move(o,n,S,i))}},scroll:function(t,i,o,n){e.Scroll.scroll(t,i,o,(function(){var t=T(h.toIndex(u()));q(f?mt(t,s):t),n&&n()}))},getNext:w,getPrev:k,getAdjacent:D,getEnd:P,setIndex:q,getIndex:function(t){return t?S:C},toIndex:x,toPage:j,toDest:function(t){var e=h.toIndex(t);return E?Et(e,0,s):e},hasFocus:O,isBusy:B}},Arrows:function(t,e,i){var s,o,n=Ut(t),r=n.on,a=n.bind,l=n.emit,c=i.classes,h=i.i18n,u=e.Elements,d=e.Controller,m=u.arrows,p=u.track,g=m,b=u.prev,f=u.next,y={};function E(){var t;!(t=i.arrows)||b&&f||(g=m||V("div",c.arrows),b=S(!0),f=S(!1),s=!0,B(g,[b,f]),!m&&H(g,p)),b&&f&&(G(y,{prev:b,next:f}),X(g,t?"":"none"),O(g,o=we+"--"+i.direction),t&&(r([Lt,Dt,Tt,Ot,Rt],A),a(f,"click",v(C,">")),a(b,"click",v(C,"<")),A(),Q([b,f],ee,p.id),l("arrows:mounted",b,f))),r(Pt,w)}function w(){k(),E()}function k(){n.destroy(),at(g,o),s?(it(m?[b,f]:g),b=f=null):Y([b,f],de)}function C(t){d.go(t,!0)}function S(t){return st('<button class="'+c.arrow+" "+(t?c.prev:c.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40" focusable="false"><path d="'+(i.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z")+'" />')}function A(){if(b&&f){var e=t.index,i=d.getPrev(),s=d.getNext(),o=i>-1&&e<i?h.last:h.prev,n=s>-1&&e>s?h.first:h.next;b.disabled=i<0,f.disabled=s<0,Q(b,oe,o),Q(f,oe,n),l("arrows:updated",b,f,i,s)}}return{arrows:y,mount:E,destroy:k,update:A}},Autoplay:function(t,e,i){var s,o,n=Ut(t),r=n.on,a=n.bind,l=n.emit,c=Gt(i.interval,t.go.bind(t,">"),(function(t){var e=u.bar;e&&K(e,"width",100*t+"%"),l("autoplay:playing",t)})),h=c.isPaused,u=e.Elements,d=e.Elements,m=d.root,p=d.toggle,g=i.autoplay,b="pause"===g;function f(){h()&&e.Slides.isEnough()&&(c.start(!i.resetProgress),o=s=b=!1,E(),l(Mt))}function y(t){void 0===t&&(t=!0),b=!!t,E(),h()||(c.pause(),l(Ft))}function v(){b||(s||o?y(!1):f())}function E(){p&&(q(p,Te,!b),Q(p,oe,i.i18n[b?"play":"pause"]))}function w(t){var s=e.Slides.getAt(t);c.set(s&&+Z(s.slide,We)||i.interval)}return{mount:function(){g&&(i.pauseOnHover&&a(m,"mouseenter mouseleave",(function(t){s="mouseenter"===t.type,v()}
vendor: 8,967 bytes, line 2
2)),i.pauseOnFocus&&a(m,"focusin focusout",(function(t){o="focusin"===t.type,v()})),p&&a(p,"click",(function(){b?f():y(!0)})),r([_t,qt,Tt],c.rewind),r(_t,w),p&&Q(p,ee,u.track.id),b||f(),E())},destroy:c.cancel,play:f,pause:y,isPaused:h}},Cover:function(t,e,i){var s=Ut(t).on;function o(t){e.Slides.forEach((function(e){var i=$(e.container||e.slide,"img");i&&i.src&&n(t,i,e)}))}function n(t,e,i){i.style("background",t?'center/cover no-repeat url("'+e.src+'")':"",!0),X(e,t?"none":"")}return{mount:function(){i.cover&&(s($t,v(n,!0)),s([Lt,Pt,Tt],v(o,!0)))},destroy:v(o,!1)}},Scroll:function(t,e,i){var s,o,n=Ut(t),r=n.on,a=n.emit,l=t.state.set,c=e.Move,h=c.getPosition,u=c.getLimit,d=c.exceededLimit,m=c.translate,p=t.is(Ue),g=1;function b(t,i,n,r,u){var m=h();if(E(),n&&(!p||!d())){var b=e.Layout.sliderSize(),w=wt(t)*b*gt(ft(t)/b)||0;t=c.toPosition(e.Controller.toDest(t%b))+w}var k=yt(m,t,1);g=1,i=k?0:i||pt(ft(t-m)/1.5,800),o=r,s=Gt(i,f,v(y,m,t,u),1),l(5),a(qt),s.start()}function f(){l(3),o&&o(),a(Ot)}function y(t,e,s,n){var r,a,l=h(),c=(t+(e-t)*(r=n,(a=i.easingFunc)?a(r):1-Math.pow(1-r,4))-l)*g;m(l+c),p&&!s&&d()&&(g*=.6,ft(c)<10&&b(u(d(!0)),600,!1,o,!0))}function E(){s&&s.cancel()}function w(){s&&!s.isPaused()&&(E(),f())}return{mount:function(){r(_t,E),r([Pt,Tt],w)},destroy:E,scroll:b,cancel:w}},Drag:function(t,e,i){var s,o,n,r,a,l,c,h,u=Ut(t),d=u.on,m=u.emit,p=u.bind,g=u.unbind,b=t.state,f=e.Move,y=e.Scroll,v=e.Controller,E=e.Elements.track,k=e.Media.reduce,C=e.Direction,A=C.resolve,L=C.orient,I=f.getPosition,_=f.exceededLimit,D=!1;function N(){var t=i.drag;R(!t),r="free"===t}function T(t){if(l=!1,!c){var e=$(t);s=t.target,o=i.noDrag,M(s,"."+Le+", ."+ke)||o&&M(s,o)||!e&&t.button||(v.isBusy()?ot(t,!0):(h=e?E:window,a=b.is([4,5]),n=null,p(h,$e,P,Ye),p(h,Re,x,Ye),f.cancel(),y.cancel(),q(t)))}var s,o}function P(e){if(b.is(6)||(b.set(6),m("drag")),e.cancelable)if(a){f.translate(s+O(e)/(D&&t.is(Ue)?5:1));var o=B(e)>200,n=D!==(D=_());(o||n)&&q(e),l=!0,m("dragging"),ot(e)}else(function(t){return ft(O(t))>ft(O(t,!0))})(e)&&(a=function(t){var e=i.dragMinThreshold,s=S(e),o=s&&e.mouse||0,n=(s?e.touch:+e)||10;return ft(O(t))>($(t)?n:o)}(e),ot(e))}function x(s){b.is(6)&&(b.set(3),m("dragged")),a&&(function(s){var o=function(e){if(t.is(Ge)||!D){var i=B(e);if(i&&i<200)return O(e)/i}return 0}(s),n=function(t){return I()+wt(t)*mt(ft(t)*(i.flickPower||600),r?1/0:e.Layout.listSize()*(i.flickMaxPages||1))}(o),a=i.rewind&&i.rewindByDrag;k(!1),r?v.scroll(n,0,i.snap):t.is(ze)?v.go(L(wt(o))<0?a?"<":"-":a?">":"+"):t.is(Ue)&&D&&a?v.go(_(!0)?">":"<"):v.go(v.toDest(n),!0),k(!0)}(s),ot(s)),g(h,$e,P),g(h,Re,x),a=!1}function j(t){!c&&l&&ot(t,!0)}function q(t){n=o,o=t,s=I()}function O(t,e){return F(t,e)-F(H(t),e)}function B(t){return lt(t)-lt(H(t))}function H(t){return o===t&&n||o}function F(t,e){return($(t)?t.changedTouches[0]:t)["page"+A(e?"Y":"X")]}function $(t){return"undefined"!=typeof TouchEvent&&t instanceof TouchEvent}function R(t){c=t}return{mount:function(){p(E,$e,w,Ye),p(E,Re,w,Ye),p(E,Fe,T,Ye),p(E,"click",j,{capture:!0}),p(E,"dragstart",ot),d([Lt,Pt],N)},disable:R,isDragging:function(){return a}}},Keyboard:function(t,e,i){var s,o,n=Ut(t),r=n.on,a=n.bind,l=n.unbind,c=t.root,h=e.Direction.resolve;function u(){var t=i.keyboard;t&&(s="global"===t?window:c,a(s,Ke,p))}function d(){l(s,Ke)}function m(){var t=o;o=!0,E((function(){o=t}))}function p(e){if(!o){var i=Ve(e);i===h(Wt)?t.go("<"):i===h(Yt)&&t.go(">")}}return{mount:function(){u(),r(Pt,d),r(Pt,u),r(_t,m)},destroy:d,disable:function(t){o=t}}},LazyLoad:function(t,e,i){var s=Ut(t),o=s.on,n=s.off,r=s.bind,a=s.emit,l="sequential"===i.lazyLoad,c=[Dt,Ot],h=[];function u(){f(h),e.Slides.forEach((function(t){rt(t.slide,Ze).forEach((function(e){var s=Z(e,Xe),o=Z(e,Je);if(s!==e.src||o!==e.srcset){var n=i.classes.spinner,r=e.parentElement,a=$(r,"."+n)||V("span",n,r);h.push([e,t,a]),e.src||X(e,"none")}}))})),l?g():(n(c),o(c,d),d())}function d(){(h=h.filter((function(e){var s=i.perPage*((i.preloadPages||1)+1)-1;return!e[1].isWithin(t.index,s)||m(e)}))).length||n(c)}function m(t){var e=t[0];O(t[1].slide,qe),r(e,"load error",v(p,t)),Q(e,"src",Z(e,Xe)),Q(e,"srcset",Z(e,Je)),Y(e,Xe),Y(e,Je)}function p(t,e){var i=t[0],s=t[1];at(s.slide,qe),"error"!==e.type&&(it(t[2]),X(i,""),a($t,i,s),a(xt)),l&&g()}function g(){h.length&&m(h.shift())}return{mount:function(){i.lazyLoad&&(u(),o(Tt,u))},destroy:v(f,h),check:d}},Pagination:function(t,e,i){var s,o,n=Ut(t),r=n.on,a=n.emit,l=n.bind,c=e.Slides,h=e.Elements,u=e.Controller,d=u.hasFocus,m=u.getIndex,p=u.go,g=e.Direction.resolve,b=h.pagination,E=[];function w(){s&&(it(b?y(s.children):s),at(s,o),f(E),s=null),n.destroy()}function k(t){p(">"+t,!0)}function C(t,e){var i=E.length,s=Ve(e),o=S(),n=-1;s===g(Yt,!1,o)?n=++t%i:s===g(Wt,!1,o)?n=(--t+i)%i:"Home"===s?n=0:"End"===s&&(n=i-1);var r=E[n];r&&(J(r.button),p(">"+n),ot(e,!0))}function S(){return i.paginationDirection||i.direction}function A(t){return E[u.toPage(t)]}function L(){var t=A(m(!0)),e=A(m());if(t){var i=t.button;at(i,Te),Y(i,se),Q(i,Zt,-1)}if(e){var o=e.button;O(o,Te),Q(o,se,!0),Q(o,Zt,"")}a("pagination:updated",{list:s,items:E},t,e)}return{items:E,mount:function e(){w(),r([Pt,Tt,Rt],e);var n=i.pagination;b&&X(b,n?"":"none"),n&&(r([_t,qt,Ot],L),function(){var e=t.length,n=i.classes,r=i.i18n,a=i.perPage,m=d()?u.getEnd()+1:bt(e/a);O(s=b||V("ul",n.pagination,h.track.parentElement),o=Ae+"--"+S()),Q(s,Jt,"tablist"),Q(s,oe,r.select),Q(s,ae,S()===Kt?"vertical":"");for(var p=0;p<m;p++){var g=V("li",null,s),f=V("button",{class:n.page,type:"button"},g),y=c.getIn(p).map((function(t){return t.slide.id})),w=!d()&&a>1?r.pageX:r.slideX;l(f,"click",v(k,p)),i.paginationKeyboard&&l(f,"keydown",v(C,p)),Q(g,Jt,"presentation"),Q(f,Jt,"tab"),Q(f,ee,y.join(" ")),Q(f,oe,kt(w,p+1)),Q(f,Zt,-1),E.push({li:g,button:f,page:p})}}(),L(),a("pagination:mounted",{list:s,items:E},A(t.index)))},destroy:w,getAt:A,update:L}},Sync:function(t,e,i){var s=i.isNavigation,o=i.slideFocus,n=[];function r(){var e,i;t.splides.forEach((function(e){e.isParent||(l(t,e.splide),l(e.splide,t))})),s&&((i=(e=Ut(t)).on)(Nt,h),i("sk",u),i([Lt,Pt],c),n.push(e),e.emit(Ht,t.splides))}function a(){n.forEach((function(t){t.destroy()})),f(n)}function l(t,e){var i=Ut(t);i.on(_t,(function(t,i,s){e.go(e.is(Ge)?s:t)})),n.push(i)}function c(){Q(e.Elements.list,ae,i.direction===Kt?"vertical":"")}function h(e){t.go(e.index)}function u(t,e){x(ti,Ve(e))&&(h(t),ot(e))}return{setup:v(e.Media.set,{slideFocus:_(o)?s:o},!0),mount:r,destroy:a,remount:function(){a(),r()}}},Wheel:function(t,e,i){var s=Ut(t).bind,o=0;function n(s){if(s.cancelable){var n=s.deltaY,r=n<0,a=lt(s),l=i.wheelMinThreshold||0,c=i.wheelSleep||0;ft(n)>l&&a-o>c&&(t.go(r?"<":">"),o=a),function(s){return!i.releaseWheel||t.state.is(4)||-1!==e.Controller.getAdjacent(s)}(r)&&ot(s)}}return{mount:function(){i.wheel&&s(e.Elements.track,"wheel",n,Ye)}}},Live:function(t,e,i){var s=Ut(t).on,o=e.Elements.track,n=i.live&&!i.isNavigation,r=V("span",De),a=Gt(90,v(l,!1));function l(t){Q(o,he,t),t?(B(o,r),a.start()):(it(r),a.cancel())}function c(t){n&&Q(o,ce,t?"off":"polite")}return{mount:function(){n&&(c(!e.Autoplay.isPaused()),Q(o,ue,!0),r.textContent="â¦",s(Mt,v(c,!0)),s(Ft,v(c,!1)),s([Dt,Ot],v(l,!0)))},disable:c,destroy:function(){Y(o,[ce,ue,he]),it(r)}}}}),ii={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:Me,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function si(t,e,i){var s=e.Slides;function o(){s.forEach((function(t){t.style("transform","translateX(-"+100*t.index+"%)")}))}return{mount:function(){Ut(t).on([Lt,Tt],o)},start:function(t,e){s.style("transition","opacity "+i.speed+"ms "+i.easing),E(e)},cancel:w}}function oi(t,e,i){var s,o=e.Move,n=e.Controller,r=e.Scroll,a=e.Elements.list,l=v(K,a,"transition");function c(){l(""),r.cancel()}return{mount:function(){Ut(t).bind(a,"transitionend",(function(t){t.target===a&&s&&(c(),s())}))},start:function(e,a){var c=o.toPosition(e,!0),h=o.getPosition(),u=function(e){var s=i.rewindSpeed;if(t.is(Ue)&&s){var o=n.getIndex(!0),r=n.getEnd();if(0===o&&e>=r||o>=r&&0===e)return s}return i.speed}(e);ft(c-h)>=1&&u>=1?i.useScroll?r.scroll(c,u,!1,a):(l("transform "+u+"ms "+i.easing),o.translate(c,!0),s=a):(o.jump(e),a())},cancel:c}}var ni=function(){function t(e,i){var s;this.event=Ut(),this.Components={},this.state=(s=1,{set:function(t){s=t},is:function(t){return x(T(t),s)}}),this.splides=[],this._o={},this._E={};var o=I(e)?nt(document,e):e;
2dt(o,o+" is invalid."),this.root=o,i=z({label:Z(o,oe)||"",labelledby:Z(o,ne)||""},ii,t.defaults,i||{});try{z(i,JSON.parse(Z(o,ut)))}catch(t){dt(!1,"Invalid JSON")}this._o=Object.create(z({},i))}var e,i,s=t.prototype;return s.mount=function(t,e){var i=this,s=this.state,o=this.Components;return dt(s.is([1,7]),"Already mounted!"),s.set(1),this._C=o,this._T=e||this._T||(this.is(ze)?si:oi),this._E=t||this._E,U(G({},ei,this._E,{Transition:this._T}),(function(t,e){var s=t(i,o,i._o);o[e]=s,s.setup&&s.setup()})),U(o,(function(t){t.mount&&t.mount()})),this.emit(Lt),O(this.root,Ne),s.set(3),this.emit(It),this},s.sync=function(t){return this.splides.push({splide:t}),t.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._C.Sync.remount(),t.Components.Sync.remount()),this},s.go=function(t){return this._C.Controller.go(t),this},s.on=function(t,e){return this.event.on(t,e),this},s.off=function(t){return this.event.off(t),this},s.emit=function(t){var e;return(e=this.event).emit.apply(e,[t].concat(y(arguments,1))),this},s.add=function(t,e){return this._C.Slides.add(t,e),this},s.remove=function(t){return this._C.Slides.remove(t),this},s.is=function(t){return this._o.type===t},s.refresh=function(){return this.emit(Tt),this},s.destroy=function(t){void 0===t&&(t=!0);var e=this.event,i=this.state;return i.is(1)?Ut(this).on(It,this.destroy.bind(this,t)):(U(this._C,(function(e){e.destroy&&e.destroy(t)}),!0),e.emit(Bt),e.destroy(),t&&f(this.splides),i.set(7)),this},e=t,(i=[{key:"options",get:function(){return this._o},set:function(t){this._C.Media.set(t,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}])&&p(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();ni.defaults={},ni.STATES=b;const ri=(t,e)=>{const i=t.Components.Controller.getEnd()+1,s=Math.min((t.index+1)/i,1);e.style.width=100*s+"%"},ai=t=>{t.on("overflow",(e=>{t.options={drag:e},e?(t.Components.Elements.root.setAttribute("aria-roledescription","carousel"),t.Components.Slides.forEach((t=>{t.slide.setAttribute("aria-roledescription","slide")}))):(t.Components.Elements.root.removeAttribute("aria-roledescription"),t.Components.Slides.forEach((t=>{t.slide.removeAttribute("aria-roledescription")})))}))},li=t=>{t.Components.Elements.list.removeAttribute("role")},ci=t=>{t.Components.Slides.forEach((t=>{t.slide.removeAttribute("role")}))},hi=t=>{const e={fixedWidth:225,focus:0,gap:15,i18n:{prev:"",next:"",first:"",last:"",slideLabel:""},live:!1,omitEnd:!0,pagination:!1,mediaQuery:"min",breakpoints:{970:{gap:48,fixedWidth:264,perMove:2}}};t&&t.forEach((t=>{const i=new ni(t,e),s=t.querySelector(".js-catalogCarousel__progressBar");s&&i.on("mounted move",(()=>{ri(i,s)})),ai(i),i.mount(),i.on("moved",(()=>{const e=i.Components.Controller.getNext();t.classList[e<0?"add":"remove"]("is-catalogCarousel-end")})),li(i),ci(i),(t=>{const e=t.Components.Elements.root.closest(".js-accordion__content");e?.addEventListener("accordionOpen",(()=>{t.refresh()}))})(i),(t=>{const e=t.Components.Elements.root.closest(".js-setResultsDisplay-group");e?.addEventListener("searchResultsLoaded",(()=>{t.refresh(),t.go(0);const i=e.querySelector(".js-catalogCarousel__progressBar");i&&ri(t,i)}))})(i)}))},ui="is-windowOverFlow-topOver",di="is-windowOverFlow-bottomOver",mi="is-windowOverFlow-leftOver",pi="is-windowOverFlow-rightOver",gi="is-windowOverFlow-windowOver",bi=t=>{const e=t.getBoundingClientRect(),i=window.innerHeight,s=e.top>i,o=e.bottom<0;return s&&o?{state:"window",class:gi}:s?{state:"top",class:ui}:o?{state:"bottom",class:di}:{state:"",class:""}},fi=t=>{t.preventDefault()},yi={rootSelector:"js-tooltip",buttonSelector:"js-tooltip__button",buttonOpenSelector:"js-tooltip__buttonOpen",buttonCloseSelector:"js-tooltip__buttonClose",containerSelector:"js-tooltip__container",exclusionElementSelector:"js-tooltip__exclusionElement",forciblyCloseElementSelector:"js-tooltip__forciblyCloseElement",stateOpenClassName:"is-tooltip-open",stateCloseClassName:"is-tooltip-close",activeEventDataName:{pc:"data-tooltip-active-pc",sp:"data-tooltip-active-sp"},conditionShowDataName:{pc:"data-tooltip-show-pc",sp:"data-tooltip-show-sp"},forciblyDataName:"data-tooltip-forcibly",tooltipOverFlowCssVariablesName:{left:"--tooltip-over-left",right:"--tooltip-over-right"},mediaQuery:t.mediaQuery,conditionDataShowTime:window.kpi_menu_conversion.openDelay};class vi{root;button;buttonOpen;buttonClose;container;containerId;option;activeEvent;conditionDataShow;isFirstOpen;isOpen;isForcibly;isDisabled;focusInEvent;closeFocusOutEvent;mouseLeaveEvent;mouseMoveEvent;clickOpenEvent;clickCloseEvent;clickButtonEvent;detailsEvent;constructor(t,e){this.root=t,this.option={...yi,...e},this.button=null,this.buttonOpen=null,this.buttonClose=null,this.container=null,this.containerId=`${this.option.rootSelector||yi.rootSelector}-${Math.random().toString().substring(2)}`,this.activeEvent={pc:this.root.getAttribute(this.option.activeEventDataName.pc)||yi.activeEventDataName.pc,sp:this.root.getAttribute(this.option.activeEventDataName.sp)||yi.activeEventDataName.sp},this.conditionDataShow=!1,this.isFirstOpen=!1,this.isOpen=!1,this.isForcibly=!1,this.isDisabled=!1,this.clickButtonEvent=this.toggle.bind(this),this.clickOpenEvent=this.open.bind(this),this.clickCloseEvent=this.close.bind(this),this.focusInEvent=this.open.bind(this),this.closeFocusOutEvent=this.closeFocusOut.bind(this),this.mouseLeaveEvent=this.close.bind(this),this.mouseMoveEvent=this.open.bind(this),this.detailsEvent=this.setDetailsOpenState.bind(this)}init(){this.set(),this.switchMediaQuery(),this.bindEvent()}set(){if(this.container=this.root.querySelector(`.${this.option.containerSelector}`),this.button=this.root.querySelector(`.${this.option.buttonSelector}`),this.buttonOpen=this.root.querySelector(`.${this.option.buttonOpenSelector}`),this.buttonClose=this.root.querySelector(`.${this.option.buttonCloseSelector}`),this.container){const t=this.container.getAttribute("id");t&&(this.containerId=t)}this.isForcibly="true"===this.root.getAttribute(this.option.forciblyDataName),this.container&&this.containerId&&this.container.setAttribute("id",this.containerId)}bindEvent(){window.addEventListener("keydown",(t=>{"Escape"===t.key&&this.isOpen&&this.close()})),this.option.mediaQuery?.addEventListener("change",(()=>{this.switchMediaQuery()}))}switchMediaQuery(){if(this.destroyBindEventButton(),this.destroyBindEventHover(),this.removeAttribute(),this.switchDisabled(),this.isDisabled)return;const t=this.activeEvent[this.option.mediaQuery?.matches?"sp":"pc"];if("click"===t)return this.toggleA11y(!1),this.setBindEventButton(),void this.addAttribute();this.option.mediaQuery?.matches||"hover"!==t&&"sideNavigation"!==t||(this.toggleA11y(!1),this.setBindEventHover(),this.addAttribute(),"sideNavigation"===t&&(this.updateConditionDataShow(),this.conditionDataShow&&(this.open(),this.isFirstOpen=!1,setTimeout((()=>{this.isFirstOpen||this.close()}),this.option.conditionDataShowTime))))}
2addAttribute(){"sideNavigation"!==this.activeEvent[this.option.mediaQuery?.matches?"sp":"pc"]&&(this.button&&(this.isForcibly?(this.button.setAttribute("aria-describedby",this.containerId),this.button.setAttribute("aria-labelledby",this.containerId)):(this.button.setAttribute("aria-expanded","false"),this.button.setAttribute("aria-controls",this.containerId))),this.container&&(this.container.setAttribute("id",this.containerId),this.isForcibly?this.container.setAttribute("role","tooltip"):this.container.setAttribute("aria-hidden","true")),this.buttonOpen&&this.buttonOpen.setAttribute("aria-controls",this.containerId),this.buttonClose&&this.buttonClose.setAttribute("aria-controls",this.containerId))}removeAttribute(){this.root instanceof HTMLDetailsElement&&(this.root.open=!1),this.root.classList.remove(this.option.stateCloseClassName),this.root.classList.remove(this.option.stateOpenClassName),this.button&&this.isForcibly&&(this.button.removeAttribute("aria-describedby"),this.button.removeAttribute("aria-labelledby")),this.container&&(this.container.removeAttribute("aria-hidden"),this.isForcibly&&this.container.removeAttribute("role")),this.buttonOpen&&this.buttonOpen.removeAttribute("aria-controls"),this.buttonClose&&this.buttonClose.removeAttribute("aria-controls")}setBindEventHover(){this.root instanceof HTMLDetailsElement&&this.button?.addEventListener("click",fi),this.root.addEventListener("focusin",this.focusInEvent),this.root.addEventListener("focusout",this.closeFocusOutEvent),this.root.addEventListener("mouseover",this.mouseMoveEvent),this.root.addEventListener("mouseleave",this.mouseLeaveEvent),this.container&&(this.container.addEventListener("focusout",this.closeFocusOutEvent),this.container.addEventListener("animationend",this.detailsEvent)),this.button&&(this.button.inert=!1)}destroyBindEventHover(){this.root instanceof HTMLDetailsElement&&this.button?.removeEventListener("click",fi),this.root.removeEventListener("focusin",this.focusInEvent),this.root.removeEventListener("focusout",this.closeFocusOutEvent),this.root.removeEventListener("mouseover",this.mouseMoveEvent),this.root.removeEventListener("mouseleave",this.mouseLeaveEvent),this.container&&(this.container.removeEventListener("focusout",this.closeFocusOutEvent),this.container.removeEventListener("animationend",this.detailsEvent),this.container.inert=!1),this.button&&(this.button.inert=!1)}setBindEventButton(){this.root.addEventListener("focusout",this.closeFocusOutEvent),this.buttonOpen&&this.buttonOpen.addEventListener("click",this.clickOpenEvent),this.buttonClose&&this.buttonClose.addEventListener("click",this.clickCloseEvent),this.button&&(this.button.addEventListener("click",this.clickButtonEvent),this.button.inert=!1),this.container&&this.container.addEventListener("animationend",this.detailsEvent)}destroyBindEventButton(){this.root.removeEventListener("focusout",this.closeFocusOutEvent),this.buttonOpen&&this.buttonOpen.removeEventListener("click",this.clickOpenEvent),this.buttonClose&&this.buttonClose.removeEventListener("click",this.clickCloseEvent),this.button&&(this.button.removeEventListener("click",this.clickButtonEvent),this.button.inert=!1),this.container&&(this.container.removeEventListener("animationend",this.detailsEvent),this.container.inert=!1)}toggleA11y(t){"sideNavigation"===this.activeEvent[this.option.mediaQuery?.matches?"sp":"pc"]||this.isForcibly||(this.button?.setAttribute("aria-expanded",String(t)),this.buttonClose?.setAttribute("aria-expanded",String(t)),this.buttonOpen?.setAttribute("aria-expanded",String(t)),this.container&&(this.container.setAttribute("aria-hidden",String(!t)),this.container.inert=!t))}toggle(t){this.root instanceof HTMLDetailsElement&&t.preventDefault(),this[this.isOpen?"close":"open"]()}open(){this.root instanceof HTMLDetailsElement&&!this.root.open&&(this.root.open=!0),this.isFirstOpen=!0,this.isOpen=!0,this.toggleA11y(!0),this.root.classList.remove(this.option.stateCloseClassName),this.root.classList.add(this.option.stateOpenClassName),this.judgementOverFlowWindow()}close(){this.toggleA11y(!1),this.root.classList.remove(this.option.stateOpenClassName),this.root.classList.add(this.option.stateCloseClassName),this.isOpen=!1}closeFocusOut(t){setTimeout((()=>{const e=t.target;if(!this.isForcibly){if(e===this.buttonOpen||e===this.button)return;if(e.classList.contains(this.option.exclusionElementSelector))return;if(!t.relatedTarget)return;if(this.container&&this.container.contains(document.activeElement))return}this.close()}),100)}setDetailsOpenState(){this.root instanceof HTMLDetailsElement&&this.root.open&&(this.root.open=this.root.classList.contains(this.option.stateOpenClassName))}judgementOverFlowWindow(){if(!this.container)return;var t;(t=this.container).classList.remove(ui),t.classList.remove(di),t.classList.remove(mi),t.classList.remove(pi),t.classList.remove(gi);const e=(t=>{const e=document.documentElement.clientWidth,i=t.getBoundingClientRect(),s={state:"",class:"",overFlowSize:{left:Math.round(i.right-e)||0,right:Math.round(i.left)||0}},o=i.left<0,n=e<i.right;
2return o&&n?(s.state="window",s.class=gi):o?(s.state="left",s.class=mi):n&&(s.state="right",s.class=pi),s})(this.container);e.state&&(this.container.classList.add(e.class),this.container.style.setProperty(this.option.tooltipOverFlowCssVariablesName.left,`${e.overFlowSize.left}px`),this.container.style.setProperty(this.option.tooltipOverFlowCssVariablesName.right,`${e.overFlowSize.right}px`))}updateConditionDataShow(){this.conditionDataShow=this.option.mediaQuery?.matches?this.root.hasAttribute(this.option.conditionShowDataName?.sp):this.root.hasAttribute(this.option.conditionShowDataName?.pc)}switchDisabled(){if(this.isDisabled)if("A"===this.button?.tagName){const t=this.button.getAttribute("href");t&&(this.button.removeAttribute("href"),this.button.setAttribute("data-href",t)),this.button.setAttribute("aria-disabled","true")}else"BUTTON"===this.button?.tagName&&this.button instanceof HTMLButtonElement&&(this.button.disabled=!0);else if("A"===this.button?.tagName){const t=this.button.getAttribute("data-href");t&&(this.button.removeAttribute("data-href"),this.button.setAttribute("href",t)),this.button.removeAttribute("aria-disabled")}else"BUTTON"===this.button?.tagName&&this.button instanceof HTMLButtonElement&&(this.button.disabled=!1)}}const Ei=t=>t.replace("/index.html","").replace("/index.jsp",""),wi=t=>t.replace(/\?.*$/u,"");class ki{root;href;currentUrl;dataExcludeExactMatch;dataContainsExactMatch;constructor(t){this.root=t,this.href=this.root.getAttribute("data-href")||this.root.getAttribute("href"),this.currentUrl=location.pathname,this.dataExcludeExactMatch=this.root.getAttribute("data-add-current-exclude-exact-match")?.split(",")||null,this.dataContainsExactMatch=this.root.getAttribute("data-add-current-contains-exact-match")?.split(",")||null}init(){if(!this.href||!this.currentUrl)return;if(!this.href.startsWith("/"))return;this.currentUrl=Ei(this.currentUrl),this.href=Ei(this.href),this.currentUrl=wi(this.currentUrl),this.href=wi(this.href);const t=this.dataContainsExactMatch?.some((t=>Ei(t)===this.currentUrl)),e=this.dataExcludeExactMatch?.some((t=>Ei(t)===this.currentUrl));this.dataExcludeExactMatch&&e||(this.currentUrl===this.href||this.dataContainsExactMatch&&t?this.root.setAttribute("aria-current","page"):this.currentUrl.startsWith(this.href)&&this.root.setAttribute("aria-current","true"))}}const Ci=new CustomEvent("topSmoothScroll"),Si=new CustomEvent("smoothScroll"),Ai=t=>{t.setAttribute("tabindex","0");let e=!1;t instanceof HTMLButtonElement&&(e=t.disabled,t.disabled=!1),t.focus({preventScroll:!0}),t instanceof HTMLButtonElement&&(t.disabled=e),t.removeAttribute("tabindex")};class Li{interrupted=!1;controller=null;ignoreElement;start(t){this.interrupted=!1,this.controller="AbortController"in window?new AbortController:null;const e=this.controller?.signal;this.ignoreElement=t??null;const i=t=>{if(!t||!this.ignoreElement)return!1;const e=t,i="function"==typeof e.composedPath?e.composedPath():void 0;if(i&&Array.isArray(i))return i.includes(this.ignoreElement);const s=t.target;if(s&&s instanceof Element){const t=s.closest("a");return Boolean(t)&&t===this.ignoreElement}return!1},s=t=>{i(t)||(this.interrupted=!0)};window.addEventListener("wheel",s,{signal:e,passive:!0}),window.addEventListener("touchmove",s,{signal:e,passive:!0}),window.addEventListener("mousedown",s,{signal:e}),window.addEventListener("keydown",(t=>{["ArrowUp","ArrowDown","PageUp","PageDown","Home","End","Space"].includes(t.key)&&s(t)}),{signal:e})}stop(){this.controller&&(this.controller.abort(),this.controller=null),this.ignoreElement=null}getInterrupted(){return this.interrupted}}const Ii=async e=>{if(!e)return;let i="";if(i=e instanceof HTMLAnchorElement?e.getAttribute("href")||"":e,!i||!i.startsWith("#"))return;if("#top"===i)return window.dispatchEvent(Ci),Ai(t.body),void t.body.scrollIntoView();const s=document.querySelector(i);if(!s)return;const o=new Li;o.start(e instanceof HTMLAnchorElement?e:null);try{if(window.dispatchEvent(Si),await(async t=>{const e=window.pageYOffset||document.documentElement.scrollTop||0,i=t.getBoundingClientRect().top+e,s=Math.min(e,i),o=Math.max(e,i),n=Array.from(document.images).filter((t=>{if("lazy"!==t.loading)return!1;const i=t.getBoundingClientRect().top+e;return i>=s&&i<=o}));
2n.forEach((t=>{try{t.loading="eager"}catch(t){console.error(t)}t.hasAttribute("fetchpriority")||t.setAttribute("fetchpriority","high")})),await Promise.all(n.map((t=>t.decode?.().catch(console.error))))})(s),await(10,new Promise((t=>{setTimeout(t,10)}))),(()=>{const e=document.querySelector(".l-header")?.children;let i=0;if(e)for(const t of e)if(""===bi(t).state){const{height:e}=t.getBoundingClientRect();i+=e}const s=document.querySelector(".js-headerProduct");if(s&&""===bi(s).state){const{height:t}=s.getBoundingClientRect();i+=t}const o=document.querySelector(".js-header");if(o&&""===bi(o).state&&o.classList.contains("is-judgementSticky-nonSticky")){const{height:t}=o.getBoundingClientRect();i-=t}t.html.style.scrollPaddingTop=i?`${i}px`:""})(),o.getInterrupted())return;Ai(s),s.scrollIntoView()}finally{o.stop()}};class _i{root;href;constructor(t){this.root=t,this.href=t.getAttribute("href")}init(){this.href&&this.href?.startsWith("#")&&this.bindEvent()}bindEvent(){this.root.addEventListener("click",(t=>{t.preventDefault(),Ii(this.root).catch(console.error)}))}}const Di="is-viewMore-active",Ni="is-viewMore-show";class Ti{root;items;content;template;buttonArea;button;initialNumber;initialNumberPc;initialNumberSp;maskItem;showCount;constructor(t){this.root=t,this.items=this.root.querySelectorAll(".js-viewMore__item"),this.content=this.root.querySelector(".js-viewMore__content"),this.template=null,this.buttonArea=null,this.button=null,this.initialNumber=0,this.initialNumberPc=Number(this.root.dataset.initialNumberPc)||0,this.initialNumberSp=Number(this.root.dataset.initialNumberSp)||0,this.maskItem="true"===this.root.dataset.maskItem,this.showCount=0}init(){this.setDisplay(),this.setButton(),this.bindEvent()}setDisplay(){this.initialNumber=t.mediaQuery.matches?this.initialNumberSp:this.initialNumberPc,this.items.forEach((t=>{t.classList.remove(Ni)})),this.showCount=0,!this.initialNumber||this.items.length<=this.initialNumber?(this.root.classList.remove(Di),this.show(this.items.length)):(this.root.classList.add(Di),this.show(this.initialNumber),this.maskItem&&(this.items[this.showCount-1].inert=!0))}setButton(){this.template=this.root.querySelector(".js-viewMore__buttonTemplate"),this.template&&this.content&&(this.buttonArea=r(this.template,this.content,"")),this.button=this.root.querySelector(".js-viewMore__button")}bindEvent(){this.button?.addEventListener("click",(()=>{const t=this.items.length-this.showCount;this.show(t)})),t.mediaQuery.addEventListener("change",(()=>{this.setDisplay()}))}show(t){for(let e=0;e<t;e++)this.items[this.showCount].classList.add(Ni),0===e&&0!==this.showCount&&this.setFocus(),this.showCount++;const e=this.showCount===this.items.length;this.root?.classList[e?"remove":"add"]("is-viewMore-overflow")}setFocus(){const t=this.maskItem?this.items[this.showCount-1]:this.items[this.showCount];t.hasAttribute("inert")&&t.removeAttribute("inert"),t.tabIndex=-1,t.focus(),t.removeAttribute("tabindex")}}const Pi="is-hasHover-active";class xi{root;hoverElements;constructor(t){this.root=t,this.hoverElements=null}init(){this.set(),this.elementInit(),this.bindEvent()}set(){this.root&&(this.hoverElements=this.root.querySelectorAll(".js-hasHover__target"))}elementInit(){this.hoverElements&&this.root.classList.contains(Pi)&&this.root.classList.remove(Pi)}bindEvent(){this.hoverElements&&this.hoverElements.forEach((t=>{t.addEventListener("mouseover",(()=>{this.root.classList.add(Pi)})),t.addEventListener("mouseleave",(()=>{this.root.classList.remove(Pi)}))}))}}const ji={buttonSelector:".js-switchDisplay__button",contentSelector:".js-switchDisplay__content",initialActivePcDataAttribute:"data-initial-active-pc",initialActiveSpDataAttribute:"data-initial-active-sp",hideStateClassName:"is-switchDisplay-hide",spHideButtonClassName:"m-button-toggle__button--spHide",columnPcDataAttribute:"data-column-pc",columnSpDataAttribute:"data-column-sp",discontinueCookieName:"kpi_discon"},qi={HIDE:"hide",SHOW:"show",COLUMN_4:"4column",COLUMN_2:"2column",COLUMN_1:"1column"};class Oi{root;buttonList;spEffectiveButtonList;spHideItemFlag;contentList;keyCode;actionData;currentAction;lastAction;constructor(t){this.root=t,this.buttonList=Array.from(this.root.querySelectorAll(`${ji.buttonSelector}`)),this.spEffectiveButtonList=[],this.spHideItemFlag=!1,this.contentList=[],this.actionData=new Map,this.currentAction="",this.lastAction="",this.keyCode=Object.freeze({ENTER:"Enter",SPACE:" ",LE
2FT:"ArrowLeft",RIGHT:"ArrowRight"})}init(){this.getTargetContentList(),this.getEffectiveButtonList(),this.setButtonActionData(),this.checkCookie(),this.initDisplay(),this.bindEvent()}getTargetContentList(){const t=this.root.getAttribute("aria-controls");if(!t)return;const e=t?.split(" ");e.forEach((t=>{const e=document.querySelector(`#${t}`);e&&this.contentList.push(e)}))}getTargetButtonList(){return this.spHideItemFlag&&t.mediaQuery.matches?this.spEffectiveButtonList:this.buttonList}getEffectiveButtonList(){0!==this.buttonList.length&&(this.spEffectiveButtonList=this.buttonList.filter((t=>!t.classList.contains(ji.spHideButtonClassName))),this.spHideItemFlag=this.buttonList?.length!==this.spEffectiveButtonList?.length)}setButtonActionData(){0!==this.buttonList.length&&this.buttonList.forEach((t=>{const e=t.dataset.buttonAction;e&&Object.values(qi).includes(e)&&this.actionData.set(t,e)}))}checkCookie(){switch(this.buttonList[0].dataset.buttonAction){case qi.SHOW:case qi.HIDE:this.controlByDiscontinueCookie()}}controlByDiscontinueCookie(){const t=h(ji.discontinueCookieName);if(!t)return;const e=this.getTargetButtonList();let i;switch(e.forEach((t=>{t.removeAttribute(ji.initialActivePcDataAttribute),t.removeAttribute(ji.initialActiveSpDataAttribute)})),t){case"1":i=e.find((t=>t.dataset.buttonAction===qi.SHOW));break;case"0":i=e.find((t=>t.dataset.buttonAction===qi.HIDE))}i?.setAttribute(ji.initialActivePcDataAttribute,""),i?.setAttribute(ji.initialActiveSpDataAttribute,"")}initDisplay(){if(0===this.buttonList.length)return;const e=this.getTargetButtonList();let i=!1;if(e){for(const s of e)if(s.hasAttribute(`${t.mediaQuery.matches?ji.initialActiveSpDataAttribute:ji.initialActivePcDataAttribute}`)){this.activeButton(s),this.setFocus(s,!1),this.setAriaChecked(s),i=!0;break}if(!i){const[t]=e;this.activeButton(t),this.setFocus(t,!1),this.setAriaChecked(t),this.lastAction=this.actionData.get(t)}}}bindEvent(){0!==this.buttonList.length&&this.buttonList.forEach((e=>{e.addEventListener("keydown",(t=>{const i=e;let s=!1;switch(t.key){case this.keyCode.ENTER:case this.keyCode.SPACE:this.setFocus(i,!0),this.setAriaChecked(i),this.activeButton(i),s=!0;break;case this.keyCode.LEFT:this.setPrevFocus(i),s=!0;break;case this.keyCode.RIGHT:this.setNextFocus(i),s=!0}s&&t.preventDefault()})),e.addEventListener("click",(()=>{this.activeButton(e),this.setFocus(e,!0),this.setAriaChecked(e)})),t.mediaQuery.addEventListener("change",(()=>{this.lastAction="",this.initDisplay()}))}))}activeButton(t){if(this.currentAction=this.actionData.get(t),this.currentAction!==this.lastAction){switch(this.currentAction){case"hide":this.contentList.forEach((t=>{t.classList.add(ji.hideStateClassName)})),u(ji.discontinueCookieName,"0",90,window.kpi_cookiesettings.cookieDomain);break;case"show":this.contentList.forEach((t=>{t.classList.remove(ji.hideStateClassName)})),u(ji.discontinueCookieName,"1",90,window.kpi_cookiesettings.cookieDomain);break;case"4column":this.setColumn(4);break;case"2column":this.setColumn(2);break;case"1column":this.setColumn(1)}this.lastAction=this.currentAction}}setFocus(t,e){0!==this.buttonList.length&&(this.buttonList.forEach((t=>{t.tabIndex=-1})),t.tabIndex=0,e&&t.focus())}setPrevFocus(t){if(0===this.buttonList.length)return;const e=this.getTargetButtonList();if(!e)return;const i=e.indexOf(t);0!==i&&this.setFocus(e[i-1],!0)}setNextFocus(t){if(0===this.buttonList.length)return;const e=this.getTargetButtonList();if(!e)return;const i=e.indexOf(t);i!==e.length-1&&this.setFocus(e[i+1],!0)}setAriaChecked(t){0!==this.buttonList.length&&(this.buttonList.forEach((t=>{t.setAttribute("aria-checked","false")})),t.setAttribute("aria-checked","true"))}setColumn(e){this.contentList?.forEach((i=>{i.setAttribute(ji[t.mediaQuery.matches?"columnSpDataAttribute":"columnPcDataAttribute"],`${e}`)}))}}const Bi="is-staticFilter-hide",Hi="js-staticFilter",Mi="js-staticFilter__checkbox",Fi="category",$i=(t,e)=>t.some((t=>e.includes(t))),Ri=t=>new URLSearchParams(location.search).get(t);class Ui{root;checkboxList;controlCheckbox;checkboxDataMap;container;targetList;targetDataMap;keyCode;resultNumberOuter;resultNumber;constructor(t){this.root=t,this.checkboxList=this.root.querySelectorAll(".js-staticFilter__checkbox"),this.controlCheckbox=this.root.querySelector(".js-staticFilter__controlCheckbox"),this.container=document.querySelector(".js-staticFilter__targetContainer"),this.targetList=document.querySelectorAll(".js-staticFilter__target"),this.checkboxDataMap=new Map,this.targetDataMap=new Map,this.keyCode=Object.freeze({SPACE:" "}
2),this.resultNumberOuter=document.querySelector(".js-staticFilter__resultNumberOuter"),this.resultNumber=this.resultNumberOuter?.querySelector(".js-staticFilter__resultNumber")}init(){this.setTargetData(),this.setCheckBoxData(),this.setAccessibilityAttribute(),this.changeCheckboxState(),this.changeControlCheckboxState(),this.setDisplay(),this.bindEvent()}setAccessibilityAttribute(){if(!this.root||!this.container||!this.controlCheckbox)return;const t=this.container.getAttribute("id");t?this.root.setAttribute("aria-controls",t):o(this.root,this.container,Hi);const e=[];this.checkboxList.forEach(((t,i)=>{const s=t?.getAttribute("id");if(s)e.push(s);else{const s=`${Mi}-${i+1}`;e.push(s),t.setAttribute("id",s)}})),this.controlCheckbox.setAttribute("aria-controls",e.join(" ")),this.controlCheckbox.tabIndex=0,this.resultNumberOuter&&this.resultNumberOuter.setAttribute("role","status")}setTargetData(){this.targetList.forEach((t=>{const e=t.dataset.filterCategory?.split(",")??[];e&&this.targetDataMap.set(t,e)}))}setCheckBoxData(){this.checkboxList.forEach((t=>{const e=t.value?.split(",")??[];e&&this.checkboxDataMap.set(t,e)}))}changeCheckboxState(){const t=Ri(Fi);this.checkboxList.forEach((e=>{if(e.checked=!1,!t)return;const i=t.split(","),s=$i(this.checkboxDataMap.get(e)??[],i);e.checked=s}))}changeControlCheckboxState(){if(!this.controlCheckbox)return;const t=Array.from(this.checkboxList);if(t.every((t=>t.checked)))return void this.controlCheckbox.setAttribute("aria-checked","true");const e=t.some((t=>t.checked));this.controlCheckbox.setAttribute("aria-checked",e?"mixed":"false")}setDisplay(){const t=Ri(Fi);if(!t)return this.targetList.forEach((t=>{t.classList.remove(Bi)})),void(this.resultNumber&&(this.resultNumber.textContent=String(this.targetDataMap.size)));let e=0;const i=t?.split(",")??[];this.targetList.forEach((t=>{if(!this.targetDataMap.get(t))return;const s=$i(this.targetDataMap.get(t)??[],i);t.classList[s?"remove":"add"](Bi),s&&e++})),this.resultNumber&&(this.resultNumber.textContent=String(e))}updateFilterParam(){const t=new URLSearchParams(location.search),e=t.toString(),i=location.hash,s=Array.from(this.checkboxList),o=[];s.forEach((t=>{t.checked&&o.push(t.value??"")})),0!==o.length?t.set(Fi,o.join(",")):t.delete(Fi),e!==t.toString()&&(""===t.toString()?history.pushState(null,"",location.pathname+i):history.pushState(null,"",`?${t.toString()}${i}`))}changePropagativeState(t){const e="true"===t.getAttribute("aria-checked");t.setAttribute("aria-checked",String(!e)),this.checkboxList.forEach((e=>{e.checked="true"===t.getAttribute("aria-checked")}))}bindEvent(){this.checkboxList.forEach((t=>{t.addEventListener("change",(()=>{this.changeControlCheckboxState(),this.updateFilterParam(),this.setDisplay()}))})),this.controlCheckbox?.addEventListener("click",(t=>{const e=t.target;e&&e instanceof HTMLElement&&(this.changePropagativeState(e),this.updateFilterParam(),this.setDisplay())})),this.controlCheckbox?.addEventListener("keydown",(t=>{const e=t.target;let i=!1;e&&e instanceof HTMLElement&&(t.key===this.keyCode.SPACE&&(this.changePropagativeState(e),this.updateFilterParam(),this.setDisplay(),i=!0),i&&(t.preventDefault(),t.stopPropagation()))})),window.addEventListener("popstate",(()=>{this.changeCheckboxState(),this.changeControlCheckboxState(),this.setDisplay()}))}}const Gi={textElementClassName:"js-loading__text",showStateClassName:"is-loadingIcon-show",innerText:{loading:"èªã¿è¾¼ã¿ä¸",completion:"èªã¿è¾¼ã¿å®äº"}};class zi{root;textElement;option;constructor(t,e){this.root=t,this.option={...Gi,...e},this.textElement=t.querySelector(`.${this.option.textElementClassName}`)}show(){this.root.style.opacity="1",this.root.classList.add(this.option.showStateClassName),this.textElement&&(this.textElement.innerHTML=this.option.innerText.loading)}hide(){this.root.style.opacity="0",this.textElement&&(this.textElement.innerHTML=this.option.innerText.completion),setTimeout((()=>{this.root.classList.remove(this.option.showStateClassName)}),150)}}const Wi={targetSelector:"js-scrollArea__target",templateOverlaySelector:"js-scrollArea__overlay",overlaySelector:"js-scrollArea__overlayElement",stateSelector:"is-scrollArea-scrollable"};class Yi{root;target;overlayTemplate;overlayElement;timeoutId;isScrolled;option;constructor(t,e){this.root=t,this.target=null,this.overlayTemplate=null,this.overlayElement=null,this.timeoutId=null,this.isScrolled=!1,this.option={...Wi,...e}}init(){this.set(),this.bindEvent()}set(){this.target=this.root.querySelector(`.${this.option.targetSelector}`),this.overlayTemplate=this.root.querySelector(`.${this.option.templateOverlaySelector}`),this.overlayTemplate&&(this.overlayElement=r(this.overlayTemplate,this.overlayTemplate,`.${this.option.overlaySelector}`)),this.toggleScrollingAttribute(this.isScrollable())}bindEvent(){window.addEventListener("resize",(()=>{this.timeoutId||(this.timeoutId=setTimeout((()=>{this.toggleScrollingAttribute(this.isScrollable()),this.timeoutId=null}),500))})),this.overlayElement&&this.root.addEventListener("scroll",(()=>{this.root.classList.add(this.option.stateSelector),this.isScrolled=!0}),{once:!0})}toggleScrollingAttribute(t){t?(this.root.setAttribute("tabindex","0"),this.overlayElement&&!this.isScrolled&&this.root.classList.remove(this.option.stateSelector)):(this.root.removeAttribute("tabindex"),this.overlayElement&&!this.isScrolled&&this.root.classList.add(this.option.stateSelector))}isScrollable(){if(!this.target)return!1;const t=this.target.getBoundingClientRect(),e=this.root.getBoundingClientRect();return t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right}}const Qi={dialogButtonSelector:".js-dialog__closeButton",dialogTemplateSelector:".js-dialog__template",dialogContentSelector:".js-dialog__content",dialogInnerSelector:".js-dialog__inner",dialogLoadingSelector:".js-loading",showStateClassName:"is-loadingIcon-show"};class Vi{trigger;href;dialog;closeButton;contentInner;loading;loadingIconInstance;scrollAreaInstance;isInline;timerId;option;constructor(t,e,i){this.trigger=t,this.href=e,this.option={...Qi,...i},this.dialog=null,this.closeButton=null,this.contentInner=null,this.loading=null,this.loadingIconInstance=null,this.scrollAreaInstance=null,this.isInline=!1,this.timerId=null}init(){this.set(),this.addA11y(),this.bindEvent()}set(){this.isInline=void 0!==this.href&&this.href.startsWith("#"),this.isInline&&this.href?this.dialog=document.querySelector(this.href):this.dialog=document.querySelector(`${this.option.dialogContentSelector}`),this.dialog&&(this.closeButton=this.dialog.querySelector(`${this.option.dialogButtonSelector}`),this.contentInner=this.dialog.querySelector(`${this.option.dialogInnerSelector}`),this.contentInner&&(this.scrollAreaInstance=new Yi(this.contentInner)),this.loading=this.dialog.querySelector(`${this.option.dialogLoadingSelector}`),this.loading&&(this.loadingIconInstance=new zi(this.loading)))}bindEvent(){this.trigger?.addEventListener("click",(t=>{t.preventDefault(),this.isInline||this.displayPage().catch((t=>{throw new Error(String(t))})),this.open()})),this.dialog?.addEventListener("click",(t=>{t.target===this.dialog&&this.close()})),this.closeButton?.addEventListener("click",(()=>{this.close()})),document.addEventListener("keydown",(t=>{"Escape"===t.key&&this.close()})),window.addEventListener("resize",(()=>{this.timerId||(this.timerId=setTimeout((()=>{this.onResize(),this.timerId=null}),500))}))}addA11y(){this.trigger?.setAttribute("aria-haspopup","dialog"),this.dialog&&this.dialog.id&&this.trigger?.setAttribute("aria-controls",this.dialog.id)}open(){a(),this.dialog?.showModal()}close(){this.dialog?.open&&(l(),this.dialog?.close())}async displayPage(){if(!this.href)return;
2this.loadingIconInstance?.show(),this.dialog&&this.dialog.querySelector('[class^="l-content"]')?.remove();const t=await fetch(this.href),e=(new DOMParser).parseFromString(await t.text(),"text/html").querySelector('[class^="l-content"]');this.contentInner&&e&&this.contentInner.prepend((t=>{const e=document.createElement("div");for(const i of t.attributes)e.setAttribute(i.name,i.value);for(;t.firstChild;)e.appendChild(t.firstChild);return e})(e)),setTimeout((()=>{this.onResize()}),200),this.loadingIconInstance?.hide(),this.dialog&&Ai(this.dialog)}onResize(){this.dialog&&!this.dialog.open||this.scrollAreaInstance&&this.dialog&&(this.scrollAreaInstance.target=this.contentInner?.firstChild,this.scrollAreaInstance?.toggleScrollingAttribute(this.scrollAreaInstance.isScrollable()))}}class Ki extends Vi{constructor(t,e){super(t,t.getAttribute("href")||void 0,{...Qi,...e})}}const Xi={root:"js-header",headerProduct:"js-headerProduct",headerSearch:"js-headerGlobalSearch",animate:{duration:150,easing:"ease-in-out"},keyframes:{fadeIn:{transform:"translateX(0)",opacity:"1"},fadeOut:{transform:"translateX(-50px)",opacity:"0"}},judgementSticky:{state:"is-judgementSticky-sticky",nonStickyState:"is-judgementSticky-nonSticky"},pcDropDown:{root:"js-pcDropDown",button:"js-pcDropDown__button",container:"js-pcDropDown__container",state:"is-header-fadeIn"},spToggle:{root:"js-spToggle",button:"js-spToggle__button",buttonClose:"js-spToggle__buttonClose",container:"js-spToggle__container",inertClassName:".l-breadcrumb, .l-content, .l-footer, .l-carouselMainVisual, .l-footerContact, .l-footerNavigation, .l-navigationTop"},spNavigationGlobal:{rootClassName:"js-spNavigationGlobal",buttonClassName:"js-spNavigationGlobal__button",buttonReturnClassName:"js-spNavigationGlobal__buttonReturn",containerClassName:"js-spNavigationGlobal__container",secondClassName:"js-spNavigationGlobal__second",buttonResetSelector:".js-spToggle__button.l-hamburger",inertClassName:"js-spNavigationGlobal"},product:{root:"js-buildProductList"},productTree:{root:"js-pcProductTree",button:"js-pcProductTree__button",container:"js-pcProductTree__container",exclusion:"js-pcProductTree__exclusion",anchor:"js-pcProductTree__anchor"}},Ji=(e,i)=>{const s=document.querySelector(e),o=Array.isArray(i)?i:[i];s?.querySelectorAll(t.focusableElementTagNames).forEach((t=>{const e=o.some((e=>null!==t.closest(e)));t.inert=!e}))},Zi=e=>{const i=document.querySelector(e);i?.querySelectorAll(t.focusableElementTagNames).forEach((t=>{t.classList.contains("is-inert-exclusion")||(t.inert=!1)}))},ts=t=>{let e=null;const i=document.querySelector(`.${Xi.judgementSticky.state}`);return e=i?i.getBoundingClientRect().bottom:document.querySelector(t)?.getBoundingClientRect().bottom,e?window.innerHeight-e:0};class es{root;buttons;containers;openButton;openContainer;containerButton;buttonExclusions;animate;timeoutId;anchors;focusInEvent;mouseOverEvent;mouseLeaveEvent;resetEvent;constructor(t){this.root=t,this.buttons=null,this.containers=null,this.openButton=null,this.containerButton=null,this.openContainer=null,this.buttonExclusions=null,this.animate=void 0,this.timeoutId=0,this.anchors=null,this.focusInEvent=this.open.bind(this),this.mouseOverEvent=this.openMouseOver.bind(this),this.resetEvent=this.resetHistory.bind(this),this.mouseLeaveEvent=this.debounce.bind(this)}init(){this.set()}set(){this.buttons=this.root.querySelectorAll(`.${Xi.productTree.button}`),this.containers=this.root.querySelectorAll(`.${Xi.productTree.container}`),this.buttonExclusions=this.root.querySelectorAll(`.${Xi.productTree.exclusion}`),this.anchors=this.root.querySelectorAll(`.${Xi.productTree.anchor}`);const t=this.root.closest(`.${Xi.pcDropDown.container}`),e=t?.getAttribute("id")||"";this.containerButton=document.querySelector(`.${Xi.pcDropDown.button}[aria-controls="${e}"]`)}setBindEvent(){this.buttons?.forEach((t=>{t.addEventListener("focusin",this.focusInEvent),t.addEventListener("mouseover",this.mouseOverEvent),t.addEventListener("mouseleave",this.mouseLeaveEvent),t.setAttribute("aria-expanded","false")})),this.buttonExclusions?.forEach((t=>{t.addEventListener("focusin",this.resetEvent),t.addEventListener("mouseover",this.resetEvent),t.addEventListener("mouseleave",this.mouseLeaveEvent)})),this.containers?.forEach((t=>{t.setAttribute("aria-hidden","true"),t.style.display="none"})),this.anchors?.forEach((t=>{t.addEventListener("click",(e=>{e.preventDefault();const i=document.querySelector(t.getAttribute("href")||""),s=t.closest(".
2js-pcDropDown__container")||t.closest(".js-searchProduct__contentInner"),o=t.closest(".js-pcDropDown__container")?document.querySelector(`.${Xi.root}`)?.getBoundingClientRect().height:0;i&&s&&(o?s.scroll({top:i.getBoundingClientRect().top-o,behavior:"smooth"}):i.scrollIntoView({behavior:"smooth"}),i.setAttribute("tabindex","0"),i.focus({preventScroll:!0}),i.removeAttribute("tabindex"))}))})),this.containerButton?.addEventListener("mouseover",this.resetEvent),this.containerButton?.addEventListener("focusin",this.resetEvent)}destroyBindEvent(){this.animate?.cancel(),this.animate=void 0,this.buttons?.forEach((t=>{t.removeEventListener("focusin",this.focusInEvent),t.removeEventListener("mouseover",this.mouseOverEvent),t.removeEventListener("mouseleave",this.mouseLeaveEvent),t.removeAttribute("aria-expanded")})),this.buttonExclusions?.forEach((t=>{t.removeEventListener("focusin",this.resetEvent),t.removeEventListener("mouseover",this.resetEvent),t.removeEventListener("mouseleave",this.mouseLeaveEvent)})),this.containers?.forEach((t=>{var e;(e=t).classList.remove(Xi.pcDropDown.state),e.style.height="",e.style.maxHeight="",e.style.paddingTop="",e.style.paddingBottom="",e.style.display="",e.style.overflowY="",e.style.overflowX="",t.removeAttribute("aria-hidden")})),this.containerButton?.removeEventListener("mouseover",this.resetEvent),this.containerButton?.removeEventListener("focusin",this.resetEvent)}debounce(){this.timeoutId>0&&clearTimeout(this.timeoutId)}resetHistory(){this.buttons?.forEach((t=>{t.setAttribute("aria-expanded","false")})),this.containers?.forEach((t=>{t.setAttribute("aria-hidden","true"),t.style.display="none"})),this.openButton=null,this.openContainer=null}openMouseOver(t){this.timeoutId=window.setTimeout((()=>{this.open(t)}),200)}open(t){const e=t.target;if(!e)return;if(this.openButton===e)return;const i=e.getAttribute("aria-controls")||"";if(!i)return;const s=document.querySelector(`#${i}`);if(s){if(this.containers)for(const t of this.containers){if("true"===t.getAttribute("aria-hidden"))continue;if(t.querySelector(`#${i}`))continue;if(t.closest(`#${i}`))continue;t.style.display="none",t.setAttribute("aria-hidden","true");const e=t.getAttribute("id")||"";document.querySelectorAll(`[aria-controls="${e}"]`).forEach((t=>{t.setAttribute("aria-expanded","false")}))}if(this.animate&&(this.animate.cancel(),this.animate=void 0),"false"===s.getAttribute("aria-hidden"))return this.openContainer=s,void(this.openButton=e);s.style.display="",n(e,s,!0),this.animate=s.animate([Xi.keyframes.fadeOut,Xi.keyframes.fadeIn],Xi.animate),this.animate.onfinish=()=>{this.openContainer=s,this.openButton=e,this.animate=void 0}}}}async function is(t){return fetch(t).then((e=>{if(!e.ok)throw Error(`ãã¡ã¤ã«ãèªã¿è¾¼ãã¾ããã§ããã: ${t}`);return e.json()}))}const ss={rootClassName:"js-buildProductList",parentClassName:"js-buildProductList__parent",parentListClassName:"js-buildProductList__parentList",parentLinkClassName:"js-buildProductList__parentLink",parentLinkParameter:null,parentLinkTextClassName:"js-buildProductList__parentLinkText",childClassName:"js-buildProductList__child",childListClassName:"js-buildProductList__childList",childLinkClassName:"js-buildProductList__childLink",childLinkParameter:null,childTextClassName:"js-buildProductList__childText",childTextContainerClassName:"js-buildProductList__childTextContainer",grandChildClassName:"js-buildProductList__grandChild",grandChildLinkClassName:"js-buildProductList__grandChildLink",grandChildLinkParameter:null,grandChildTitleClassName:"js-buildProductList__grandChildTitle",grandChildSubTitleClassName:"js-buildProductList__grandChildSubTitle",grandChildTextClassName:"js-buildProductList__grandChildText",grandChildImageClassName:"js-buildProductList__grandChildImage",grandChildListClassName:"js-buildProductList__grandChildList",grandChildListGroupClassName:"js-buildProductList__grandChildListGroup",anchorListClassName:"js-buildProductList__anchorList",anchorClassName:"js-buildProductList__anchor",anchorItemClassName:"js-buildProductList__anchorItem",anchorLinkClassName:"js-buildProductList__anchorLink",anchorTextClassName:"js-buildProductList__anchorText"},os="js-pcProductTree__button",ns="js-pcProductTree__container";class rs{root;typeListJson;fragment;parentCloneTemplate;childCloneTemplate;grandChildCloneTemplate;grandChildListCloneTemplate;option;timestamp;constructor(t,e){this.root=t,this.typeListJson=null,this.parentCloneTemplate=null,this.childCloneTemplate=null,this.grandChildCloneTemplate=null,this.grandChildListCloneTemplate=null,this.fragment=document.createDocumentFragment(),this.option={...ss,...e},this.timestamp=Date.now()}
2async init(){if(this.option.parentClassName&&(this.parentCloneTemplate=this.root.querySelector(`.${this.option.parentClassName}`)),this.option.childClassName&&(this.childCloneTemplate=this.root.querySelector(`.${this.option.childClassName}`)),this.option.grandChildClassName&&(this.grandChildCloneTemplate=this.root.querySelector(`.${this.option.grandChildClassName}`)),this.option.grandChildListGroupClassName&&(this.grandChildListCloneTemplate=this.root.querySelector(`.${this.option.grandChildListGroupClassName}`)),!(this.parentCloneTemplate||this.childCloneTemplate||this.grandChildCloneTemplate||this.grandChildListCloneTemplate))return;if(this.typeListJson=await is("/data/group-type.json"),!this.typeListJson)return;const t=this.typeListJson.group.map((async t=>{if(!this.parentCloneTemplate)return null;const e=`${this.option.rootClassName||""}-${t.id.replace(":","-")}-${Math.round(this.timestamp*Math.random())}`,i=this.createSecondListItem(this.parentCloneTemplate.content.cloneNode(!0),t,e);if(!t.type||0===t.type.length||!this.childCloneTemplate)return i;const s=t.type.map((async t=>{const s=`${this.option.rootClassName||""}-${t.id.replace(":","")}-${Math.round(this.timestamp*Math.random()*2)}`,o=this.createThirdListItem(this.childCloneTemplate?.content.cloneNode(!0),t,e,s);this.option.childListClassName&&i.querySelector(`.${this.option.childListClassName}`)?.appendChild(o);try{const e=await is(t.jsonfile);if(e&&e.subtype){const o=e.subtype,n=i.querySelector(`#${s}`),r=n?.querySelector(`.${this.option.anchorListClassName||""}`);for(let i=0;i<o.length;i++){const s=o[i],a=s.series;if(a&&this.grandChildListCloneTemplate&&this.grandChildCloneTemplate&&this.option.grandChildListClassName){const o=this.grandChildListCloneTemplate.content.cloneNode(!0);for(let e=0;e<a.length;e++){const i=a[e],s=this.createForthListItem(this.grandChildCloneTemplate.content.cloneNode(!0),i,o,t);o.querySelector(`.${this.option.grandChildListClassName||""}`)?.appendChild(s)}const l=document.querySelector(`.${this.option.anchorClassName||""}`)?.content.cloneNode(!0);if(l&&r){const e=l.querySelector(`.${this.option.anchorItemClassName||""}`);if(e&&n){const o=e.querySelector(`.${this.option.anchorLinkClassName||""}`),n=e.querySelector(`.${this.option.anchorTextClassName||""}`);o&&n&&(o.href=`#${t.id.replace(":","")}-${2*this.timestamp}-subTitle-${i}`,n.innerText=s.name,r.appendChild(e))}}const c=o.querySelector(`.${this.option.childTextClassName||""}`);c&&e.name&&(c.innerHTML=s.name,c.id=`${t.id.replace(":","")}-${2*this.timestamp}-subTitle-${i}`),n&&n.appendChild(o)}}r&&r.querySelectorAll("li").length<=1&&(r.remove(),n?.querySelectorAll(`.${this.option.childTextContainerClassName||""}`)?.forEach((t=>{t.remove()})))}}catch(e){const o=i.querySelector(`#${s}`),n=document.createElement("div");n.innerHTML=`ãã¡ã¤ã«ãæ£ããèªã¿è¾¼ã¾ãã¾ããã§ããã<br>${t.jsonfile}`,o?.appendChild(n)}return o}));return(await Promise.all(s)).some((t=>null!==t))?i:null}));(await Promise.all(t)).forEach((t=>{t&&this.fragment.appendChild(t)})),this.option.parentListClassName&&document.querySelector(`.${this.option.parentListClassName}`)?.appendChild(this.fragment)}createSecondListItem(t,e,i){this.option.parentLinkClassName&&t.querySelectorAll(`.${this.option.parentLinkClassName}`).forEach((t=>{t.href=`${e.link}${this.option.parentLinkParameter||""}`,t&&t.classList.contains(os)&&t.setAttribute("aria-controls",i)})),this.option.parentLinkTextClassName&&t.querySelectorAll(`.${this.option.parentLinkTextClassName}`).forEach((t=>{t.innerHTML=e.name}));const s=t.querySelector(`.${ns}`);return s&&s.setAttribute("id",i),t}createThirdListItem(t,e,i,s){this.option.childLinkClassName&&t.querySelectorAll(`.${this.option.childLinkClassName}`).forEach((t=>{t.href=`${e.link}${this.option.childLinkParameter||""}`,t&&t.classList.contains(os)&&t.setAttribute("aria-controls",`${s}`)})),this.option.childTextClassName&&t.querySelectorAll(`.${this.option.childTextClassName}`).forEach((t=>{t.innerHTML=e.name}));const o=t.querySelector(`.${ns}`);o&&o.setAttribute("id",`${s}`);const n=t.querySelector(".js-pcProductTree__buttonReturn");return n&&n.setAttribute("aria-controls",i),t}createForthListItem(t,e,i,s){if(this.option.grandChildLinkClassName){const i=t.querySelector(`.${this.option.grandChildLinkClassName}`);i&&(i.href=`${e.link}${this.option.grandChildLinkParameter||""}`)}if(this.option.grandChildTitleClassName&&t.querySelectorAll(`.${this.option.grandChildTitleClassName}`).forEach((t=>{t.innerHTML=e.name})),this.option.grandChildTitleClassName){const i=t.querySelector(`.${this.option.grandChildTitleClassName}`);i&&(i.innerHTML=e.excerpt)}if(this.option.grandChildSubTitleClassName){const i=t.querySelector(`.${this.option.grandChildSubTitleClassName}`);i&&e.name?i.innerHTML=e.name:i?.remove()}if(this.option.grandChildTextClassName){const i=t.querySelector(`.${this.option.grandChildTextClassName}`);i&&e.htmlShortDescription?i.innerHTML=e.htmlShortDescription:i?.remove()}if(this.option.grandChildImageClassName){const i=t.querySelector(`.${this.option.grandChildImageClassName}`);i&&e.thumbnailWebImageUrl?(i.src=e.thumbnailWebImageUrl,i.alt=""):i?.remove()}return t}}class as{dialog;buttonOpen;buttonClose;controller;buttonKeyword;animate;isOpen;clickKeywordCustomEvent;constructor(t){this.dialog=t,this.buttonOpen=null,this.buttonClose=null,this.controller=null,this.buttonKeyword=null,this.animate=void 0,this.isOpen=!1,this.clickKeywordCustomEvent=ne
2w CustomEvent("focusHeaderSearchInput")}init(){this.buttonOpen=document.querySelector(".js-searchProduct__buttonOpen"),this.buttonClose=document.querySelector(".js-searchProduct__buttonClose"),this.buttonKeyword=document.querySelector(".js-searchProduct__buttonKeyword"),this.controller=document.querySelector(".js-searchProduct__controller"),this.dialog.style.display="none",this.buttonOpen&&(this.buttonOpen.style.display="none")}show(t,e){this.hideButton(t,e),this.isOpen=!0}hide(t,e){this.hideDialog(t,e),this.isOpen=!1}hideButton(t,e){const i=()=>{this.buttonOpen&&(this.buttonOpen.style.transform="translateY(200%)"),this.animate=void 0};this.showDialog(t,e),t?(this.animate=this.buttonOpen?.animate([{transform:"translateY(0)"},{transform:"translateY(20%)"},{transform:"translateY(200%)"}],{duration:250}),this.animate&&(this.animate.onfinish=()=>{i()})):i()}showDialog(t,e){const i=()=>{this.dialog.style.transform="",this.animate=void 0,this.controller&&e&&c(this.controller)?.focus(),this.buttonOpen&&(this.buttonOpen.style.display="none")};this.dialog.style.display="",this.dialog.style.transform="translateY(200%)",this.dialog.classList.add(ms.stateDialogOpenClassName),t?(this.animate=this.dialog?.animate([{transform:"translateY(200%)"},{transform:"translateY(0)"},{transform:"translateY(2%)"},{transform:"translateY(0%)"}],{duration:300}),this.animate&&(this.animate.onfinish=()=>{i()})):i()}hideDialog(e,i){const s=t.body.querySelector(".fn-overlay"),o=()=>{this.dialog.style.display="none",this.dialog.classList.remove(ms.stateDialogOpenClassName),this.animate=void 0,this.showButton(e,i),s&&(s.style.display="none",s.style.opacity="0",(()=>{const e=t.body.querySelector(".fn-overlay");e?.classList.remove("is-overlay-show"),e?.classList.remove("is-overlay-headerSearch"),e?.classList.remove("is-overlay-searchProduct")})(),setTimeout((()=>{s.style.display="",s.style.opacity=""}),1)),l(),Zi("html")};if(e){const t={duration:200};s?.animate([{opacity:"1"},{opacity:".2"},{opacity:"0"}],t),this.animate=this.dialog?.animate([{opacity:"1",transform:"translateY(0)"},{opacity:".2",transform:"translateY(10%)"},{opacity:"0",transform:"translateY(10%)"}],t),this.animate&&(this.animate.onfinish=()=>{o()})}else o()}showButton(t,e){this.buttonOpen&&(this.buttonOpen.style.transform="translateY(200%)",this.buttonOpen.style.display="");const i=()=>{this.buttonOpen&&(this.buttonOpen.style.transform=""),this.animate=void 0,e&&this.buttonOpen?.focus()};t?(this.animate=this.buttonOpen?.animate([{transform:"translateY(200%)"},{transform:"translateY(180%)"},{transform:"translateY(0)"}],{duration:200}),this.animate&&(this.animate.onfinish=()=>{i()})):i()}}class ls{root;contents;buttons;showId;animate;isOpen;constructor(t){this.root=t,this.contents=null,this.buttons=null,this.showId=null,this.animate=void 0,this.isOpen=!1}init(){this.contents=document.querySelectorAll(".js-searchProduct__content"),this.buttons=document.querySelectorAll(".js-searchProduct__button"),this.contents?.forEach((t=>{t.setAttribute("aria-hidden","true")})),this.buttons?.forEach((t=>{t.setAttribute("aria-expanded","false")}))}switchButtons(t){this.buttons?.forEach((e=>{e===t?(e.setAttribute("aria-expanded","true"),this.showId=e.getAttribute("aria-controls")):e.setAttribute("aria-expanded","false")}))}deselectButtons(){this.buttons?.forEach((t=>{t.setAttribute("aria-expanded","false")})),this.showId=null}switchTabs(){this.isOpen=!1;const e=this.root.classList.contains(ms.stateTabOpenClassName)?[{transform:"translateY(0)",opacity:"0"},{transform:"translateY(0)",opacity:".1"},{transform:"translateY(0)",opacity:"1"}]:[{transform:"translateY(100%)",opacity:"0"},{transform:"translateY(20%)",opacity:"0"},{transform:"translateY(0)",opacity:"1"}];this.contents?.forEach((i=>{i.getAttribute("id")===this.showId?((()=>{const e=t.body.querySelector(".fn-overlay");e?.classList.add("is-overlay-show")})(),t.body.querySelector(".fn-overlay")?.classList.add("is-overlay-searchProduct"),a(),Ji("html",".js-searchProduct__dialog"),this.isOpen=!0,i.style.transform="translateY(100%)",i.style.display="",i.setAttribute("aria-hidden","false"),this.animate=i?.animate(e,{duration:400}),this.animate&&(this.animate.onfinish=()=>
2{i.style.transform="",this.animate=void 0,c(i)?.focus(),this.root.style.backgroundColor="#fff"})):(i.animate([{opacity:"1"},{opacity:"0"}]).onfinish=()=>{i.style.display="none"},i.setAttribute("aria-hidden","true"))})),this.root.classList[this.isOpen?"add":"remove"](ms.stateTabOpenClassName),this.isOpen||(this.root.style.backgroundColor="")}}class cs{root;constructor(t){this.root=t}skip(t,e){const{key:i}=e,s=t.getAttribute("aria-controls")||t.closest(".js-pcProductTree__container")?.getAttribute("id");if(!s)return;let o=null;if("ArrowRight"===i){const t=this.root.querySelector(`#${s}`);if(!t)return;if(t.contains(document.activeElement))return;o=c(t)}else if("ArrowLeft"===i){const e=t.closest(".js-pcProductTree__container"),i=e?.getAttribute("id");if(!i)return;o=this.root.querySelector(`.js-pcProductTree__button[aria-controls="${i}"][aria-expanded="true"]`)}else if("ArrowDown"===i){const{parentElement:e}=t,i=e?.nextElementSibling;if(!i)return;o=c(i)}else if("ArrowUp"===i){const{parentElement:e}=t,i=e?.previousElementSibling;if(!i)return;o=c(i)}o&&(e.preventDefault(),o.focus())}}const hs={jsonPath:"/data/categories.json",parameter:"&ad_local=find_products_navi",rootClassName:"js-buildIndustryList",parentClassName:"js-buildIndustryList__parent",parentListClassName:"js-buildIndustryList__parentList",parentLinkClassName:"js-buildIndustryList__parentLink",parentLinkTextClassName:"js-buildIndustryList__parentLinkText",childClassName:"js-buildIndustryList__child",childListClassName:"js-buildIndustryList__childList",childLinkClassName:"js-buildIndustryList__childLink",childTextClassName:"js-buildIndustryList__childText",imageAreaClassName:"js-buildIndustryList__imageArea",imageAreaLinkClassName:"js-buildIndustryList__imageAreaLink",imageAreaContainerClassName:"js-buildIndustryList__imageAreaContainer",mainImageUrlClassName:"js-buildIndustryList__mainImage",subImageUrlClassName:"js-buildIndustryList__subImage",sub1ImageUrlClassName:"js-buildIndustryList__sub1Image",sub2ImageUrlClassName:"js-buildIndustryList__sub2Image",sub1TitleClassName:"js-buildIndustryList__sub1Title",sub2TitleClassName:"js-buildIndustryList__sub2Title",sub1CaptionClassName:"js-buildIndustryList__sub1Caption",sub2CaptionClassName:"js-buildIndustryList__sub2Caption"},us="js-pcProductTree__button";class ds{root;typeListJson;fragment;parentCloneTemplate;childCloneTemplate;imageAreaCloneTemplate;option;timestamp;constructor(t,e){this.root=t,this.typeListJson=null,this.parentCloneTemplate=null,this.childCloneTemplate=null,this.imageAreaCloneTemplate=null,this.fragment=document.createDocumentFragment(),this.option={...hs,...e},this.timestamp=Date.now()}
2async init(){this.option.parentClassName&&(this.parentCloneTemplate=this.root.querySelector(`.${this.option.parentClassName}`)),this.option.childClassName&&(this.childCloneTemplate=this.root.querySelector(`.${this.option.childClassName}`)),this.option.imageAreaClassName&&(this.imageAreaCloneTemplate=this.root.querySelector(`.${this.option.imageAreaClassName}`)),this.typeListJson=await is(this.option.jsonPath),await this.buildList().catch((t=>{throw new Error(String(t))}))}async buildList(){if(!this.typeListJson)return;const t=this.typeListJson.categories.map((async t=>{if(!this.parentCloneTemplate)return null;const e=`${this.option.rootClassName}-${t.id}-${Math.round(this.timestamp*Math.random())}`,i=this.createSecondListItem(this.parentCloneTemplate.content.cloneNode(!0),t,e);if(!t.jsonfile||0===t.jsonfile.length||!this.childCloneTemplate)return i;try{const s=await is(t.jsonfile);if(s.cases.length)for(const t of s.cases){if(!this.childCloneTemplate)continue;const s=`${e}-${Math.round(1e4*Math.random())}`,o=this.createChildListItem(this.childCloneTemplate.content.cloneNode(!0),t,s),n=o.querySelector(`.${this.option.imageAreaContainerClassName||""}`);if(this.imageAreaCloneTemplate){const e=this.createImageAria(t);n&&e&&(n.appendChild(e),n.id=`${s}`)}i.querySelector(`#${e} .${this.option.childListClassName||""}`)?.appendChild(o)}}catch(s){const o=document.createElement("p");o.innerHTML=`ãã¡ã¤ã«ãæ£ããèªã¿è¾¼ã¾ãã¾ããã§ããã<br>${t.jsonfile}`,i.querySelector(`#${e} .${this.option.childListClassName||""}`)?.appendChild(o)}return i||null}));(await Promise.all(t)).forEach((t=>{t&&this.fragment.appendChild(t)})),this.option.parentListClassName&&document.querySelector(`.${this.option.parentListClassName}`)?.appendChild(this.fragment)}createSecondListItem(t,e,i){this.option.parentLinkClassName&&t.querySelectorAll(`.${this.option.parentLinkClassName}`).forEach((t=>{t.href=e.link+this.option.parameter,t&&t.classList.contains(us)&&t.setAttribute("aria-controls",i)})),this.option.parentLinkTextClassName&&t.querySelectorAll(`.${this.option.parentLinkTextClassName}`).forEach((t=>{t.innerHTML=e.name}));const s=t.querySelector(".js-pcProductTree__container");return s&&s.setAttribute("id",i),t}createChildListItem(t,e,i){return this.option.childLinkClassName&&t.querySelectorAll(`.${this.option.childLinkClassName}`).forEach((t=>{t.href=e.link+this.option.parameter,t&&t.classList.contains(us)&&t.setAttribute("aria-controls",`${i}`)})),this.option.childTextClassName&&t.querySelectorAll(`.${this.option.childTextClassName}`).forEach((t=>{t.innerHTML=e.name})),t}createImageAria(t){if(!this.imageAreaCloneTemplate)return null;const e=this.imageAreaCloneTemplate.content.cloneNode(!0);if(this.option.mainImageUrlClassName){const i=e.querySelector(`.${this.option.mainImageUrlClassName}`);i&&t.mainImageUrl?(i.src=t.mainImageUrl,i.alt=t.name):i&&!t.mainImageUrl&&i.remove()}if(t.sub1ImageUrl||t.sub2ImageUrl||!this.option.subImageUrlClassName){if(this.option.sub1ImageUrlClassName){const i=e.querySelector(`.${this.option.sub1ImageUrlClassName}`);i&&t.sub1ImageUrl?(i.src=t.sub1ImageUrl,i.alt=""):i&&!t.sub1ImageUrl&&i.remove()}if(this.option.sub1TitleClassName){const i=e.querySelector(`.${this.option.sub1TitleClassName}`);i&&t.sub1Title?(i.innerHTML=t.sub1Title,"OK"===t.sub1Title?i.classList.add("l-floatingSearchProductLayoutImage__caption--ok"):"NG"===t.sub1Title&&i.classList.add("l-floatingSearchProductLayoutImage__caption--ng")):i&&!t.sub1Title&&i.remove()}if(this.option.sub2ImageUrlClassName){const i=e.querySelector(`.${this.option.sub2ImageUrlClassName}`);i&&t.sub2ImageUrl?(i.src=t.sub2ImageUrl,i.alt=""):i&&!t.sub2ImageUrl&&i.remove()}if(this.option.sub2TitleClassName){const i=e.querySelector(`.${this.option.sub2TitleClassName}`);i&&t.sub2Title?(i.innerHTML=t.sub2Title,"OK"===t.sub2Title?i.classList.add("l-floatingSearchProductLayoutImage__caption--ok"):"NG"===t.sub2Title&&i.classList.add("l-floatingSearchProductLayoutImage__caption--ng")):i&&!t.sub2Title&&i.remove()}}else{const t=e.querySelector(`.${this.option.subImageUrlClassName}`);t?.remove()}return e}}const ms={stateDialogFirstOpenClassName:"is-searchProductDialog-firstOpen",stateDialogOpenClassName:"is-searchProductDialog-open",stateTabOpenClassName:"is-searchProductTab-opened"};class ps{root;dialog;loading;buildProductInstance;pcProductTreeInstances;searchProductDialogInstance;searchProductTabInstance;blockSkipInstance;buildIndustryListInstance;loadingIconInstance;timeoutId;constructor(t){this.root=t,this.dialog=null,this.buildProductInstance=null,this.pcProductTreeInstances=[],this.searchProductDialogInstance=null,this.searchProductTabInstance=null,this.blockSkipInstance=[],this.buildIndustryListInstance=null,this.loadingIconInstance=null,this.timeoutId=null,this.loading=null}
2async init(){if(this.dialog=r(this.root,this.root,".js-searchProduct__dialog"),!this.dialog)return;const t=this.dialog.querySelector(".js-buildProductListSearchProduct");if(t)if(this.buildProductInstance=new rs(t,{rootClassName:"js-buildProductListSearchProduct",parentClassName:"js-buildProductListSearchProduct__parent",parentListClassName:"js-buildProductListSearchProduct__parentList",parentLinkClassName:"js-buildProductListSearchProduct__parentLink",parentLinkParameter:"?ad_local=find_products_navi",parentLinkTextClassName:"js-buildProductListSearchProduct__parentLinkText",childClassName:"js-buildProductListSearchProduct__child",childListClassName:"js-buildProductListSearchProduct__childList",childLinkClassName:"js-buildProductListSearchProduct__childLink",childLinkParameter:"?ad_local=find_products_navi",childTextClassName:"js-buildProductListSearchProduct__childText",childTextContainerClassName:"js-buildProductListSearchProduct__childTextContainer",grandChildClassName:"js-buildProductListSearchProduct__grandChild",grandChildLinkClassName:"js-buildProductListSearchProduct__grandChildLink",grandChildLinkParameter:"?ad_local=find_products_navi",grandChildTitleClassName:"js-buildProductListSearchProduct__grandChildTitle",grandChildSubTitleClassName:"js-buildProductListSearchProduct__grandChildSubTitle",grandChildTextClassName:"js-buildProductListSearchProduct__grandChildText",grandChildImageClassName:"js-buildProductListSearchProduct__grandChildImage",grandChildListClassName:"js-buildProductListSearchProduct__grandChildList",grandChildListGroupClassName:"js-buildProductListSearchProduct__grandChildListGroup",anchorListClassName:"js-buildProductListSearchProduct__anchorList",anchorClassName:"js-buildProductListSearchProduct__anchor",anchorItemClassName:"js-buildProductListSearchProduct__anchorItem",anchorLinkClassName:"js-buildProductListSearchProduct__anchorLink",anchorTextClassName:"js-buildProductListSearchProduct__anchorText"}),await this.buildProductInstance.init(),this.searchProductDialogInstance=new as(this.dialog),this.searchProductDialogInstance.init(),this.searchProductTabInstance=new ls(this.dialog),this.searchProductTabInstance.init(),this.pcProductTreeInstances.push(new es(t)),this.pcProductTreeInstances.forEach((t=>{t.init()})),this.blockSkipInstance.push(new cs(t)),this.bindEvent(),"show"===this.dialog.getAttribute("data-search-product-load")){this.searchProductDialogInstance.showDialog(!0,!1),this.searchProductDialogInstance.isOpen=!0,this.searchProductDialogInstance.dialog.classList.add(ms.stateDialogFirstOpenClassName);const t=()=>{setTimeout((()=>{this.searchProductDialogInstance?.hide(!0,!1)}),250)};setTimeout((()=>{window.addEventListener("scroll",t,{once:!0})}),10),this.dialog?.addEventListener("mouseover",(()=>{window.removeEventListener("scroll",t)}),{once:!0}),this.dialog?.addEventListener("focus",(()=>{window.removeEventListener("scroll",t)}),{once:!0})}else this.searchProductDialogInstance?.showButton(!1,!1)}async buildIndustry(){const t=this.dialog?.querySelector(".js-buildIndustryList");if(t){const e=t.querySelector(".js-buildIndustryList__loading");e&&(this.loading=r(e,e,".js-loading")),this.loading&&(this.loadingIconInstance=new zi(this.loading));const i=t.querySelector(".js-buildIndustryList__inner");this.buildIndustryListInstance=new ds(t),i&&(i.style.opacity="0",i.style.transition="opacity 0.5s ease"),this.loadingIconInstance?.
2show(),await this.buildIndustryListInstance.init(),this.loadingIconInstance?.hide(),this.pcProductTreeInstances.push(new es(t)),this.pcProductTreeInstances[this.pcProductTreeInstances.length-1].init(),this.pcProductTreeInstances[this.pcProductTreeInstances.length-1].setBindEvent(),this.blockSkipInstance.push(new cs(t)),i&&(i.style.opacity="1")}}bindEvent(){document.querySelector(".js-searchProduct__industryButton")?.addEventListener("click",(()=>{this.buildIndustry().catch((t=>{throw new Error(String(t))}))}),{once:!0}),this.searchProductDialogInstance?.buttonOpen?.addEventListener("click",(e=>{t.mediaQuery.matches||(e.preventDefault(),this.searchProductTabInstance?.switchTabs(),this.searchProductDialogInstance?.show(!0,!0))})),this.searchProductDialogInstance?.buttonClose?.addEventListener("click",(()=>{t.mediaQuery.matches||(this.searchProductDialogInstance?.hide(!0,!0),this.pcProductTreeInstances.forEach((t=>{t.resetHistory()})),this.searchProductTabInstance&&this.searchProductTabInstance.deselectButtons())})),t.body.querySelector(".fn-overlay")?.addEventListener("click",(()=>{t.mediaQuery.matches||this.searchProductTabInstance?.isOpen&&(this.searchProductDialogInstance?.hide(!0,!0),this.pcProductTreeInstances.forEach((t=>{t.resetHistory()})),this.searchProductTabInstance?.deselectButtons())})),this.searchProductDialogInstance?.buttonKeyword?.addEventListener("click",(()=>{t.mediaQuery.matches||(this.pcProductTreeInstances.forEach((t=>{t.resetHistory()})),this.searchProductTabInstance&&this.searchProductTabInstance.deselectButtons(),this.searchProductDialogInstance&&(this.searchProductDialogInstance.hide(!0,!1),setTimeout((()=>{this.searchProductDialogInstance&&window.dispatchEvent(this.searchProductDialogInstance.clickKeywordCustomEvent)}),500)))})),this.searchProductTabInstance?.buttons?.forEach((e=>{e.addEventListener("click",(()=>{t.mediaQuery.matches||(this.pcProductTreeInstances.forEach((t=>{t.resetHistory()})),"true"!==e.getAttribute("aria-expanded")&&(this.searchProductTabInstance?.switchButtons(e),this.searchProductTabInstance?.switchTabs()))}))})),this.pcProductTreeInstances.forEach((t=>{t.setBindEvent()})),t.mediaQuery.addEventListener("change",(()=>{this.timeoutId||t.mediaQuery.matches||(this.timeoutId=setTimeout((()=>{this.searchProductDialogInstance?.hide(!1,!1),this.pcProductTreeInstances.forEach((t=>{t.resetHistory()})),this.searchProductTabInstance&&(this.searchProductTabInstance.deselectButtons(),this.searchProductTabInstance.switchTabs()),this.searchProductDialogInstance&&(this.searchProductDialogInstance.dialog.style.backgroundColor=""),this.timeoutId=null}),300))})),window.addEventListener("keydown",(e=>{const i=e.target;if(!t.mediaQuery.matches)if("Escape"===e.key){if(!this.searchProductDialogInstance?.isOpen)return;this.searchProductDialogInstance?.hide(!0,!0),this.pcProductTreeInstances.forEach((t=>{t.resetHistory()})),this.searchProductTabInstance?.deselectButtons(),this.searchProductTabInstance?.switchTabs(),this.searchProductDialogInstance?.buttonOpen?.focus()}else(i.closest(".js-buildProductListSearchProduct")||i.closest(".js-buildIndustryList"))&&this.blockSkipInstance.forEach((t=>{t.skip(i,e)}))}))}}class gs{root;items;activeIndex;newActiveIndex;accordionOpenEvent;isOpen;itemMap=new Map;constructor(t){this.root=t,this.items=null,this.activeIndex=void 0,this.newActiveIndex=void 0,this.isOpen=!1,this.accordionOpenEvent=new CustomEvent("accordionOpen"),this.itemMap=new Map}init(){this.set(),this.bindEvent()}set(){this.root&&(this.items=this.root.querySelectorAll(".js-accordion__item"),this.items?.forEach((t=>{const e=t.querySelector(".js-accordion__hook"),i=t.querySelector(".js-accordion__content");e&&i&&(this.itemMap.set(t,{hook:e,content:i}),n(e,i,!1),e.setAttribute("aria-controls",i.id),i.style.height="0",i.style.display="none")})))}bindEvent(){this.itemMap.forEach(((t,e)=>{const i=Array.from(this.itemMap.keys()).indexOf(e);t.hook.addEventListener("click",(t=>{t.preventDefault(),this.newActiveIndex=i,this.accordion(e)})),t.content.addEventListener("transitionend",(e=>{this.animateEnd(e,t.content)}))}
2))}open(t){const e=this.itemMap.get(t),i=e?.hook,o=e?.content;i&&o&&(n(i,o,!0),this.activeIndex=this.newActiveIndex,this.isOpen=!0,s(o),o.dispatchEvent(this.accordionOpenEvent))}close(t){const i=this.itemMap.get(t),s=i?.hook,o=i?.content;s&&o&&(n(s,o,!1),this.isOpen=!1,e(o))}openOther(t){if(!this.items||void 0===this.activeIndex)return;const e=this.itemMap.get(this.items[this.activeIndex]),i=e?.content;var s;i&&(s=i,"transitionend",new Promise((t=>{s.addEventListener("transitionend",(()=>{t()}),{once:!0})}))).then((()=>{this.open(t)})).catch((t=>{throw new Error(t.message)}))}closeAllExcept(t){this.items?.forEach((e=>{e!==t&&this.close(e)}))}animateEnd(t,e){e&&"height"===t.propertyName&&(this.isOpen||(this.activeIndex=void 0,e.style.display="none"))}accordion(t){void 0!==this.newActiveIndex&&(void 0===this.activeIndex?this.open(t):this.activeIndex===this.newActiveIndex?this.close(t):this.activeIndex!==this.newActiveIndex&&(this.closeAllExcept(t),this.openOther(t)))}}const bs={debounce:50,targetClassName:"js-matchHeight-target",groupDataName:"data-match-height-group",groupDataNameValueDefault:"default"};class fs{root;buttons;buttonReturns;containers;secondHistory;resetButtons;showHierarchy;showHierarchyName;openContainers;openContainerHeights;option;subHierarchyShowEvent;parentHierarchyShowEvent;resetEvent;constructor(t,e){this.root=t,this.buttons=null,this.buttonReturns=null,this.secondHistory=null,this.containers=null,this.resetButtons=null,this.showHierarchy=1,this.showHierarchyName="",this.openContainers=[],this.openContainerHeights=[],this.subHierarchyShowEvent=this.subHierarchyShow.bind(this),this.parentHierarchyShowEvent=this.parentHierarchyShow.bind(this),this.resetEvent=this.resetNavigation.bind(this),this.option={...Xi.spNavigationGlobal,...e}}init(){this.set()}set(){this.buttons=this.root.querySelectorAll(`.${this.option.buttonClassName}`),this.buttonReturns=this.root.querySelectorAll(`.${this.option.buttonReturnClassName}`),this.containers=this.root.querySelectorAll(`.${this.option.containerClassName}`),this.resetButtons=document.querySelectorAll(`${this.option.buttonResetSelector}`),this.secondHistory=document.querySelector(`.${this.option.secondClassName}`)}setBindEvent(){this.buttons?.forEach((t=>{t.addEventListener("click",this.subHierarchyShowEvent),t.setAttribute("aria-expanded","false")})),this.buttonReturns?.forEach((t=>{t.addEventListener("click",this.parentHierarchyShowEvent)})),this.containers?.forEach((t=>{t.style.display="none",t.style.position="absolute",t.style.top="0",t.setAttribute("aria-hidden","true")})),this.resetButtons?.forEach((t=>{t.addEventListener("click",this.resetEvent)}))}destroyBindEvent(){this.buttons?.forEach((t=>{t.removeEventListener("click",this.subHierarchyShowEvent),t.removeAttribute("aria-expanded")})),this.buttonReturns?.forEach((t=>{t.removeEventListener("click",this.parentHierarchyShowEvent)})),this.containers?.forEach((t=>{t.style.display="none",t.style.position="",t.style.top="",t.style.left="",t.style.minHeight="",t.style.height="",t.style.opacity="",t.removeAttribute("aria-hidden")})),this.resetButtons?.forEach((t=>{t.removeEventListener("click",this.resetEvent)})),Zi(`.${this.option.rootClassName}`),this.showHierarchyName="",this.showHierarchy=1;const t=document.querySelector(`.${Xi.pcDropDown.root}`);t&&(t.style.overflowX="")}resetNavigation(){this.buttons?.forEach((t=>{t.setAttribute("aria-expanded","false")})),this.containers?.forEach((t=>{t.style.display="none",t.setAttribute("aria-hidden","true")})),Zi(`.${this.option.rootClassName}`),this.showHierarchyName="",this.showHierarchy=1,this.secondHistory&&(this.secondHistory.style.height="",this.secondHistory.style.display="",this.secondHistory.style.overflow="",this.secondHistory.style.maxHeight="",this.openContainerHeights=[this.secondHistory?.getBoundingClientRect().height],this.openContainers=[this.secondHistory])}subHierarchyShow(t){t.preventDefault(),this.showHierarchy++;const e=t.target;if(!e)return;const i=e.getAttribute("aria-controls")||"";this.showHierarchyName=i;const s=document.querySelector(`#${i}`);s&&(s.style.overflow="",s.style.height="",s.style.maxHeight="",s.style.display="",s.style.left=`${window.innerWidth}px`,this.openContainerHeights.push(s.getBoundingClientRect().height),this.openContainers.push(s),this.setHeight(),s.animate([{opacity:"0",left:`${window.innerWidth}px`},{opacity:"1",left:"0"}],{duration:200}).onfinish=()=>{s.style.left="0",Ji(`.${this.option.rootClassName}`,`#${i}`);const t=document.querySelector(`.${this.option.buttonClassName}[aria-controls="${i}"]`);t&&n(t,s,!0);const e=c(s);e&&e.focus()})}parentHierarchyShow(t){t.preventDefault(),this.showHierarchy--;const e=t.target;if(!e)return;const i=e.closest(`.${this.option.containerClassName}`);i&&(this.openContainerHeights.pop(),this.openContainers.pop(),i.style.overflow="",i.style.height="",i.style.maxHeight="",i.style.display="",this.setHeight(),i.animate([{opacity:"1",left:"0"},{opacity:"0",left:`${window.innerWidth}px`}],{duration:200}).onfinish=()=>{i.style.display="none",i.style.left="100%";const t=this.showHierarchyName;let e;this.showHierarchy<=1?(this.showHierarchyName="",Ji(`.${this.option.rootClassName}`,`.${this.option.rootClassName}`)):(this.showHierarchyName=document.querySelector(`.${this.option.buttonClassName}[aria-controls="${this.showHierarchyName}"]`)?.closest(`.${this.option.containerClassName}`)?.getAttribute("id")||"",Ji(`.${this.option.rootClassName}`,`#${this.showHierarchyName}`)),e=this.showHierarchy<=1?document.querySelector(".js-spNavigationGlobal__second")?.querySelector(`[aria-controls="${t}"]`):document.querySelector(`#${this.showHierarchyName} .${this.option.buttonReturnClassName}`),e&&e.focus();const s=document.querySelector(`.${this.option.containerClassName}[id="${this.showHierarchyName}"]`)?.querySelector(`[aria-controls="${t}"]`)||document.querySelector(".js-spNavigationGlobal__second")?.querySelector(`[aria-controls="${t}"]`);s&&n(s,i,!1)})}setHeight(){const t=this.root.closest(`.${Xi.pcDropDown.root}`)?document.querySelector(`.${Xi.pcDropDown.root}`):this.root;if(t){let e=0;this.openContainerHeights.length?ts(`.${Xi.root}`)<this.openContainerHeights[this.openContainerHeights.length-1]?(t.style.overflow="auto",e=this.openContainerHeights[this.openContainerHeights.length-1]):(t.style.overflow="hidden",e=ts(`.${Xi.root}`)):(t.style.overflow="auto",e=ts(`.${Xi.root}
2`)),this.openContainers.forEach(((t,i)=>{t.style.height=`${e}px`,t.style.maxHeight=`${ts(`.${Xi.root}`)}px`,i===this.openContainerHeights.length-1?t.style.overflow="auto":t.style.overflow="hidden"}))}}}class ys{root;spNavigationGlobalInstance;timeoutId;constructor(t){this.root=t,this.spNavigationGlobalInstance=null,this.timeoutId=null}init(){this.spNavigationGlobalInstance=new fs(this.root,{rootClassName:"js-navigationCategoryFolder",buttonClassName:"js-navigationCategoryFolder__button",buttonReturnClassName:"js-navigationCategoryFolder__buttonReturn",containerClassName:"js-navigationCategoryFolder__container",secondClassName:"js-navigationCategoryFolder__second",buttonResetSelector:".js-navigationCategoryFolder__buttonOpen",inertClassName:"l-sideNavigationFilterSp__container"}),this.spNavigationGlobalInstance.init(),this.bindEvent()}bindEvent(){this.switchViewport(),window.addEventListener("resize",(()=>{this.timeoutId||(this.timeoutId=setTimeout((()=>{this.switchViewport(),this.timeoutId=null}),300))}))}switchViewport(){t.mediaQuery.matches?this.spNavigationGlobalInstance?.setBindEvent():this.spNavigationGlobalInstance?.destroyBindEvent()}}const vs=t=>{t.preventDefault()};class Es{root;href;constructor(t){this.root=t,this.href=null}init(){this.href=this.root.getAttribute("href"),this.href&&this.href.startsWith("tel:")&&(this.switchBindEvent(),this.bindEvent())}switchBindEvent(){t.mediaQuery.matches?(this.root.removeEventListener("click",vs),(t=>{const e=t.getAttribute("data-href");e&&(t.removeAttribute("data-href"),t.setAttribute("href",e)),t.removeAttribute("role")})(this.root)):(this.root.addEventListener("click",vs),(t=>{const e=t.getAttribute("href");e&&(t.removeAttribute("href"),t.setAttribute("data-href",e)),t.setAttribute("role","none")})(this.root))}bindEvent(){t.mediaQuery.addEventListener("change",(()=>{this.switchBindEvent()}))}}const ws={rootSelector:"js-controlDisplay",buttonDeleteSelector:"js-controlDisplay__buttonDelete",buttonResetSelector:"js-controlDisplay__buttonReset",targetSelector:"js-controlDisplay__target",scrollAreaSelector:"js-controlDisplay__scrollArea",scrollAreaTargetSelector:"js-controlDisplay__scrollAreaTarget",scrollAreaTemplateOverlaySelector:"js-controlDisplay__overlay",scrollAreaOverlaySelector:"js-controlDisplay__overlayElement",scrollAreaStateSelector:"is-scrollArea-scrollable",dataGroupName:"data-control-display-group",dataMinItemName:"data-control-display-min-item",mediaQuery:t.mediaQuery};class ks{root;buttonDeletes;buttonReset;scrollArea;targetMap;scrollAreaInstance;showItemNumber;minItemNumber;option;constructor(t,e){this.root=t,this.option={...ws,...e},this.buttonDeletes=null,this.buttonReset=null,this.scrollArea=null,this.targetMap=new Map,this.showItemNumber=0,this.minItemNumber=null,this.scrollAreaInstance=null}init(){this.set(),this.bindEvent()}set(){this.buttonReset=this.root.querySelector(`.${this.option.buttonResetSelector}`),this.buttonDeletes=this.root.querySelectorAll(`.${this.option.buttonDeleteSelector}`);const t=Number(this.root.getAttribute(this.option.dataMinItemName));this.minItemNumber=isNaN(t)?null:t;for(const t of this.buttonDeletes){const e=this.getGroupValue(t);if(!e)continue;const i=this.root.querySelectorAll(`.${this.option.targetSelector}[${this.option.dataGroupName}="${e}"]`);i&&this.targetMap.set(e,i)}this.showItemNumber=this.targetMap.size,this.controlButton(),this.scrollArea=this.root.querySelector(`.${this.option.scrollAreaSelector}`),this.scrollArea&&(this.scrollAreaInstance=new Yi(this.scrollArea,{targetSelector:this.option.scrollAreaTargetSelector,templateOverlaySelector:this.option.scrollAreaTemplateOverlaySelector,overlaySelector:this.option.scrollAreaOverlaySelector,stateSelector:this.option.scrollAreaStateSelector}),this.scrollAreaInstance.init())}bindEvent(){this.buttonDeletes?.forEach((t=>{t.addEventListener("click",(t=>{this.hideTarget(t.target),setTimeout((()=>{this.scrollAreaInstance?.toggleScrollingAttribute(this.scrollAreaInstance?.isScrollable())}),10)}))})),this.buttonReset?.addEventListener("click",(()=>{this.showAllTarget(),setTimeout((()=>{this.scrollAreaInstance?.toggleScrollingAttribute(this.scrollAreaInstance?.isScrollable())}),10)}))}hideTarget(t){if(this.minItemNumber&&this.minItemNumber>=this.showItemNumber)return;const e=this.getGroupValue(t);if(!e)return;const i=this.targetMap.get(e);i?.forEach((t=>{t.style.display="none"})),this.showItemNumber--,this.controlButton()}
2showAllTarget(){this.targetMap.forEach((t=>{t.forEach((t=>{t.style.display=""}))})),this.showItemNumber=this.targetMap.size,this.controlButtonDelete(!1),this.controlButtonReset(!0)}controlButton(){const t=this.minItemNumber?this.minItemNumber>=this.showItemNumber:null;t&&this.controlButtonDelete(t);const e=this.showItemNumber>=this.targetMap.size;this.controlButtonReset(e)}controlButtonDelete(t){this.minItemNumber&&this.buttonDeletes?.forEach((e=>{e.disabled=t}))}controlButtonReset(t){this.buttonReset&&(this.buttonReset.disabled=t)}getGroupValue(t){const e=t.closest(`.${this.option.targetSelector}`);return e?e.getAttribute(`${this.option.dataGroupName}`):null}}class Cs{trigger;dialog;closeButton;contentInner;loading;timerId;scrollAreaInstance;loadingIconInstance;constructor(t){this.trigger=t,this.dialog=null,this.closeButton=null,this.contentInner=null,this.loading=null,this.timerId=null,this.scrollAreaInstance=null,this.loadingIconInstance=null}init(){this.set(),this.setA11y(),this.bindEvent(),this.handleWindowResize()}set(){this.dialog=document.querySelector(".js-iframeDialog__content"),this.dialog&&(this.contentInner=this.dialog.querySelector(".js-iframeDialog__inner"),this.loading=this.dialog.querySelector(".js-loading"),this.closeButton=this.dialog.querySelector(".js-iframeDialog__closeButton"),this.contentInner&&(this.scrollAreaInstance=new Yi(this.contentInner)),this.loading&&(this.loadingIconInstance=new zi(this.loading)))}bindEvent(){this.trigger.addEventListener("click",(t=>{t.preventDefault(),this.open(),this.displayPageInIframe()})),this.dialog?.addEventListener("click",(t=>{t.target===this.dialog&&this.close()})),this.closeButton?.addEventListener("click",(()=>{this.close()})),document.addEventListener("keydown",(t=>{"Escape"===t.key&&this.close()})),this.dialog?.addEventListener("close",(()=>{this.clearContent()}))}setA11y(){this.trigger.setAttribute("aria-haspopup","dialog")}iframeOnResize(t){let e=t;if(e||(e=this.contentInner?.querySelector("iframe")),!e)return;e.style.height="",e.style.width="";const i=e.contentDocument;i&&(e.style.height=`${i.documentElement.scrollHeight}px`,e.style.width=i.documentElement.scrollWidth-1+"px",this.scrollAreaInstance&&(this.scrollAreaInstance.target=e,setTimeout((()=>{this.scrollAreaInstance?.toggleScrollingAttribute(this.scrollAreaInstance.isScrollable())}),100)))}handleWindowResize(){window.addEventListener("resize",(()=>{this.timerId||(this.timerId=setTimeout((()=>{this.iframeOnResize(),this.timerId=null}),500))}))}displayPageInIframe(){const t=this.trigger.getAttribute("href");if(!t)return;const e=((t,e)=>{const i=document.createElement("iframe");return i.style.visibility="hidden",i.setAttribute("scrolling","no"),i.setAttribute("height","100%"),i.setAttribute("width","100%"),i.src=t,i.title=e,i})(t,(this.trigger.hasAttribute("data-title")?this.trigger.getAttribute("data-title"):this.trigger.textContent)||"");var i;
2this.dialog&&Ai(this.dialog),this.loadingIconInstance?.show(),(i=e,"load",new Promise((t=>{i.addEventListener("load",(()=>{t()}),{once:!0})}))).then((()=>{this.adjustIframe(e)})).catch((t=>{throw new Error(t.message)})),this.contentInner&&e&&this.contentInner.prepend(e)}adjustIframe(t){const e=t.contentDocument;if(!e)return;const i=e.body,s=i.querySelector("#header");s&&s.remove();const o=i.querySelector("#footer");o&&o.remove();const n=i.querySelector(".l-header");n&&n.remove();const r=e.querySelector("#closebtn");r&&r.remove();const a=i.querySelector("#content");a&&(a.style.width="100%"),i.style.minWidth="fit-content",i.style.backgroundColor="#fff";const l=i.querySelector(".l-content");l&&(l.style.gap="0");const c=i.querySelector(".l-content__outer");c&&(c.style.gap="0",c.style.padding="0");const h=i.querySelector(".l-breadcrumb--header");h&&h.remove();const u=i.querySelector(".l-breadcrumb--footer");u&&u.remove(),this.iframeOnResize(t),t.style.visibility="visible",e.querySelectorAll("a").forEach((t=>{t.setAttribute("target","_blank")})),this.loadingIconInstance?.hide()}clearContent(){const t=this.contentInner?.querySelector("iframe");t?.remove(),this.scrollAreaInstance&&this.scrollAreaInstance.toggleScrollingAttribute(!1)}open(){a(),this.dialog?.showModal()}close(){this.dialog?.open&&(l(),this.dialog?.close())}}class Ss{target;constructor(t){this.target=t}init(){this.set(),this.bindEvent()}set(){this.target.classList.add("is-event-assigned")}bindEvent(){this.target.addEventListener("click",(t=>{t.preventDefault();try{document.execCommand("print",!1,void 0)||window.print()}catch{window.print()}}))}}const As="myPageNonLoginEvent",Ls="myPageErrorEvent",Is="myPageFolderListUpdateCompletedEvent",_s="myPageBookmarkListUpdateRequestEvent",Ds="myPageBookmarkListUpdateCompletedEvent",Ns="myPageBookmarkEditEvent",Ts="myPageBookmarkDeleteEvent",Ps="myPagePopupBookmarkAddEvent",xs="myPagePopupBookmarkDeleteEvent",js="myPagePopupBookmarkUpdateEvent",qs="myPagePopupFolderAddEvent",Os="myPagePopupFolderDeleteEvent",Bs="myPagePopupFolderUpdateEvent",Hs="myPagePopupErrorShowEvent",Ms="myPagePopupErrorShowAddBookmarkEvent",Fs="myPagePopupResetEvent",$s={nonLogin:new Event(As),error:new Event(Ls),folderListUpdateRequest:new Event("myPageFolderListUpdateRequestEvent"),folderListUpdateCompleted:new Event(Is),folderAdd:new Event("myPageFolderAddEvent"),folderDelete:new Event("myPageFolderDeleteEvent"),folderRename:new Event("myPageFolderRenameEvent"),bookmarkListUpdateRequest:new Event(_s),bookmarkListUpdateCompleted:new Event(Ds),bookmarkEdit:new Event(Ns),bookmarkDelete:new Event(Ts),downloadHistoryListUpdateRequest:new Event("myPageDownloadHistoryListUpdateRequestEvent"),downloadHistoryListUpdateCompleted:new Event("myPageDownloadHistoryListUpdateCompletedEvent"),softwareUpdateListUpdateRequest:new Event("myPageSoftwareUpdateListUpdateRequestEvent"),softwareUpdateListUpdateCompleted:new Event("myPageSoftwareUpdateListUpdateCompletedEvent"),popupBookmarkAdd:new Event(Ps),popupBookmarkDelete:new Event(xs),popupBookmarkUpdate:new Event(js),popupFolderAdd:new Event(qs),popupFolderDelete:new Event(Os),popupFolderUpdate:new Event(Bs),popupErrorShow:new Event(Hs),popupErrorShowAddBookmark:new Event(Ms),popupReset:new Event(Fs)},Rs={folderList:{path:"/data/bookmark/folders",method:"GET"},folderAdd:{path:"/data/bookmark/folders",method:"POST"},folderRename:{path:"/data/bookmark/folders/{folderId}",method:"PATCH"},folderGet:{path:"/data/bookmark/folders/{folderId}",method:"GET"},folderDelete:{path:"/data/bookmark/folders/{folderId}",method:"DELETE"},bookmarkList:{path:"/data/bookmark/products",method:"GET"},bookmarkFolderList:{path:"/data/bookmark/folders/{folderId}/products",method:"GET"},bookmarkAdd:{path:"/data/bookmark/folders/{folderId}/{productId}",method:"POST"},bookmarkDelete:{path:"/data/bookmark/folders/{folderId}/{productId}",method:"DELETE"},bookmarkDeleteAll:{path:"/data/bookmark/{productId}",method:"DELETE"},softwareUpdateList:{path:"/data/softwareUpdate/updates",method:"GET"},downloadHistoryList:{path:"/data/downloadHistory/assets",method:"GET"}},Us="siteId",Gs="languageId",zs={folderId:"{folderId}",productId:"{productId}"},Ws={limit:"data-limit",productId:"data-product-id",folderId:"data-folder-id",transitionPath:"data-transition-path",value:"data-value",checked:"data-checked",fileSize:"data-file-size",name:"data-name",order:"data-order"},Ys={string:{bookmark:{buttonAdd:"ããã¯ãã¼ã¯ã«è¿½å ",buttonEdit:"ããã¯ãã¼ã¯ãè§£é¤",buttonRequest:"ããã¯ãã¼ã¯æ´æ°ä¸",buttonError:"æ´æ°å¤±æ"}
2,folder:{defaultName:"æ°ãããã©ã«ãã¼ï¼{number}ï¼",getError:"ãã©ã«ãã¼ã®åå¾ã«å¤±æãã¾ãã"},dialogInputValidation:{notEntered:"ãã©ã«ãåãå
¥åãã¦ãã ãã",characterLimit:"50æå以å
ã§å
¥åãã¦ãã ãã",duplication:"ãã©ã«ãã¼åãéè¤ãã¦ãã¾ã",excludeOnly:"æ£ããæåãå
¥åãã¦ãã ãã"},popup:{bookmarkAdd:"ããã¯ãã¼ã¯ã«è¿½å ãã¾ããã",bookmarkDelete:"ããã¯ãã¼ã¯ãè§£é¤ãã¾ããã",bookmarkUpdate:"ããã¯ãã¼ã¯ãæ´æ°ãã¾ããã",folderAdd:"ãã©ã«ãã使ãã¾ããã",folderDelete:"ãã©ã«ããåé¤ãã¾ããã",folderUpdate:"ãã©ã«ããæ´æ°ãã¾ããã",folderCreateError:"ãã©ã«ãä¸éæ°ãè¶
ãã¦ãã¾ãã",bookmarkAddError:"ããã¯ãã¼ã¯ã§ããä¸éæ°ãè¶
ãã¦ãã¾ãã",error:"æ´æ°å¤±æãã¾ããã"},downloadHistory:{dateFormat:"{YYYY}å¹´{MM}æ{DD}æ¥"}}},Qs="is-signIn",Vs="is-error",Ks="is-event-assigned",Xs="is-popup-show",Js=document.querySelector("html"),Zs=()=>{const t="undefined"!=typeof signinStat&&signinStat.isSignin;return Js&&Js.classList[t?"add":"remove"](Qs),t},to={SITE_ID:window.kpi_siteSettings.siteId?window.kpi_siteSettings.siteId:"",SITE_LANG:window.kpi_siteSettings.siteLang?window.kpi_siteSettings.siteLang:"",ORIGINAL_DOMAIN:window.kpi_originalDomain?window.kpi_originalDomain:""},eo={GROUP:window.kpi_currentGroupId?window.kpi_currentGroupId:"",TYPE:window.kpi_currentTypeId?window.kpi_currentTypeId:"",SERIES:window.kpi_currentSeriesId?window.kpi_currentSeriesId:""},io={MODELS:`${to.ORIGINAL_DOMAIN}/data/api/seriesModels?`},so={SITE_API_PARAM:"siteID",LANGUAGE_API_PARAM:"languageID",GROUP_API_PARAM:"groupID",TYPE_API_PARAM:"typeID",SERIES_API_PARAM:"seriesID",CATEGORY_PARAM:"productTypeID",SELECT_CATEGORY_COOKIE_NAME:`kpi_has_selectCategory_${encodeURIComponent(to.ORIGINAL_DOMAIN.split("www.keyence.")[1])}_modelTypes`},oo=(t,e,i,s)=>{if(((t,e,i)=>{const{folderId:s,productId:o}=zs;return t.includes(s)&&!e||t.includes(o)&&!i})(t,e,i))return null;let o=(t=>`${to.ORIGINAL_DOMAIN}${t}`)(t);const n=(()=>{const t=new URLSearchParams("");return t.set(Us,to.SITE_ID),t.set(Gs,to.SITE_LANG),t})();var r,a;return o=((t,e,i)=>{let s=t;return e&&(s=s.replaceAll(zs.folderId,e)),i&&(s=s.replaceAll(zs.productId,i)),s})(o,e,i),r=n,(a=s)&&Object.entries(a).forEach((([t,e])=>{r.set(t,e)})),`${String(o)}?${String(n)}`},no=t=>{throw window.dispatchEvent($s.error),window.dispatchEvent($s.popupErrorShow),new Error(t)},ro=async(t,e)=>{const i=await fetch(t,{method:e,headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include"});return i.ok||no("RESPONSE ERROR"),i};async function ao(t,e,i,s){if(!Zs())return window.dispatchEvent($s.nonLogin),null;const o=Rs[t],n=oo(o.path,e,i,s);if(!n)return no("PATH ERROR"),null;try{const t=await ro(n,o.method);try{return await t.json()}catch{return null}}catch(t){return no(String(t)),null}}const lo=(t,e)=>{const i=e||window.myPage.list.bookmarkAll;return!!i&&i.some((e=>e.id===t))};class co{button;dialog;constructor(t,e){this.button=t,this.dialog=e}setDialogAttribute(){const t=Object.values(Ws);for(const[e,i]of Object.entries(t)){const t=this.button.getAttribute(i);t?this.dialog.setAttribute(i,t):this.dialog.removeAttribute(i)}}}class ho{elementButton;elementButtonText;elementDialogEdit;elementDialogDelete;stringDataId;instanceDialogEditSetAttribute;instanceDialogDeleteSetAttribute;isSelected;stringShowFolderId;isFetching;constructor(t){this.elementButton=t,this.elementDialogEdit=null,this.elementDialogDelete=null,this.elementButtonText=null,this.stringDataId="",this.instanceDialogEditSetAttribute=null,this.instanceDialogDeleteSetAttribute=null,this.isSelected=!1,this.stringShowFolderId="1",this.isFetching=!1}init(){window.myPage.showFolderId&&(this.stringShowFolderId=window.myPage.showFolderId),this.set(),this.bindEvent()}set(){this.elementButton.classList.add(Ks),this.stringDataId=this.elementButton.getAttribute(Ws.productId)||"",this.elementButtonText=this.elementButton.querySelector(".js-bookmark__buttonAddOrEditText")||this.elementButton,this.elementDialogEdit=document.querySelector("#js-bookmark__dialogBookmarkEdit"),this.elementDialogDelete=document.querySelector("#js-bookmark__dialogBookmarkDelete"),this.elementDialogEdit&&(this.instanceDialogEditSetAttribute=new co(this.elementButton,this.elementDialogEdit)),this.elementDialogDelete&&(this.instanceDialogDeleteSetAttribute=new co(this.elementButton,this.elementDialogDelete)),this.displayFetching(),this.displayPushButton(this.updateSelected())}bindEvent(){this.elementButton.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),this.clickButton()})),window.addEventListener(_s,(()=>{this.displayFetching()}
2)),window.addEventListener(Ds,(()=>{this.isSelected=this.updateSelected(),this.displayPushButton()})),window.addEventListener(As,(()=>{this.displayError()})),window.addEventListener(Ls,(()=>{this.displayError()}))}clickButton(){Js?.classList.contains(Qs)?window.myPage.state.isBookmarkFetching||(this.isSelected?this.fetchBookmarkDelete():this.fetchBookmarkAdd()):this.displayError()}displayPushButton(t){t&&(this.isSelected=t),this.isFetching=!1,this.elementButtonText&&(this.elementButtonText.textContent=Ys.string.bookmark[this.isSelected?"buttonEdit":"buttonAdd"]),this.elementButton.classList[this.isSelected?"add":"remove"]("is-bookmark-selected"),this.elementButton.removeAttribute("aria-disabled"),this.elementButton.removeAttribute("disabled")}displayFetching(){}displayError(){this.elementButtonText&&(this.elementButtonText.textContent=Ys.string.bookmark.buttonError),this.elementButton instanceof HTMLAnchorElement?this.elementButton.setAttribute("aria-disabled","true"):this.elementButton instanceof HTMLButtonElement&&(this.elementButton.disabled=!0)}fetchBookmarkAdd(){this.stringDataId&&(this.displayFetching(),this.isFetching=!0,ao("bookmarkAdd",this.stringShowFolderId,this.stringDataId).then((t=>{if(t&&t.error)return window.dispatchEvent($s.popupErrorShowAddBookmark),void window.dispatchEvent($s.bookmarkListUpdateRequest);window.dispatchEvent($s.bookmarkListUpdateRequest),setTimeout((()=>{window.dispatchEvent($s.popupBookmarkAdd)}),100)})).catch((t=>{throw new Error(String(t))})))}fetchBookmarkDelete(){this.stringDataId&&(this.displayFetching(),this.isFetching=!0,ao("bookmarkDeleteAll",null,this.stringDataId).then((()=>{window.dispatchEvent($s.bookmarkListUpdateRequest),setTimeout((()=>{window.dispatchEvent($s.popupBookmarkDelete)}),100)})).catch((t=>{throw new Error(String(t))})))}updateSelected(){return lo(this.stringDataId,window.myPage.list.bookmark||void 0)}}class uo{checkbox;targetField;constructor(t){this.checkbox=t,this.targetField=null}init(){this.getTarget(),this.switchInputType(),this.bindEvent()}getTarget(){const t=this.checkbox.getAttribute("aria-controls");t&&(this.targetField=document.querySelector(`#${t}`))}switchInputType(){const t=this.checkbox.checked;this.targetField?.setAttribute("type",t?"text":"password")}bindEvent(){this.checkbox&&this.checkbox.addEventListener("change",(()=>{this.switchInputType()}))}}const mo={tabListSelector:".js-tabPanel__tabList",tabListItemSelector:".js-tabPanel__tabListItem",tabHookSelector:".js-tabPanel__hook",tabContentSelector:".js-tabPanel__content",tabActiveClassName:"is-tabPanel-active",tabHideClassName:"is-tabPanel-hidden",tabSpMultiColumnNumber:["2","3","4","5","6"]};class po{root;tabList;tabHooks;tabHookData;keyCode;isSpVerticalTab;constructor(t){this.root=t,this.tabList=this.root.querySelector(`${mo.tabListSelector}`),this.tabHooks=Array.from(this.root.querySelectorAll(`${mo.tabHookSelector}`)),this.tabHookData=new Map,this.keyCode=Object.freeze({ENTER:"Enter",SPACE:" ",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),this.isSpVerticalTab=!this.tabList?.dataset.columnSp||!mo.tabSpMultiColumnNumber.includes(this.tabList?.dataset.columnSp)}init(){this.setTabData(),this.setTabOrientation(),this.setAttribute(),this.setDefaultTab(),this.bindEvent()}setTabData(){this.tabHooks.forEach((t=>{const e=t.getAttribute("href")?.replace("#","")||"",i=e?document.getElementById(e):null;this.tabHookData.set(e,{tabId:t.id,hook:t,content:i})}))}setTabOrientation(){this.isSpVerticalTab&&t.mediaQuery.matches?this.tabList?.setAttribute("aria-orientation","vertical"):this.tabList?.setAttribute("aria-orientation","horizontal")}setAttribute(){if(this.tabList?.setAttribute("role","tablist"),this.tabList)for(const t of this.tabList.children)t.setAttribute("role","presentation");this.tabHookData.forEach(((t,e)=>{t.hook?.setAttribute("aria-controls",e),t.hook?.setAttribute("role","tab"),t.hook?.setAttribute("aria-selected","false"),t.content?.setAttribute("role","tabpanel"),t.content?.setAttribute("aria-labelledby",t.tabId)}))}setDefaultTab(){const t=location.hash?.replace("#","");let e=!1;t&&this.tabHookData.forEach(((i,s)=>{if(s===t){const t=this.tabHookData.get(s)?.hook;this.switch(s),e=!0,setTimeout((()=>{t?.focus()}),800)}})),e||this.tabHookData.forEach(((t,i)=>{t.hook?.classList.contains(mo.tabActiveClassName)&&(this.switch(i),e=!0)})),e||this.switch(Array.from(this.tabHookData.keys())[0])}bindEvent(){this.tabHookData.forEach(((e,i)=>{e.hook?.addEventListener("click",(t=>{t.preventDefault(),this.switch(i)})),e.hook?.addEventListener("keydown",(s=>{const o=e.hook,n=s.key;let r=!1;if(o&&o instanceof HTMLAnchorElement){switch(n){case this.keyCode.ENTER:case this.keyCode.SPACE:this.switch(i),r=!0;break;case this.keyCode.LEFT:this.isSpVerticalTab&&t.mediaQuery.matches||this.setPrevFocus(o),r=!0;break;case this.keyCode.RIGHT:this.isSpVerticalTab&&t.mediaQuery.matches||this.setNextFocus(o),r=!0;break;case this.keyCode.UP:this.isSpVerticalTab&&t.mediaQuery.matches&&this.setPrevFocus(o),r=!0;break;case this.keyCode.DOWN:this.isSpVerticalTab&&t.mediaQuery.matches&&this.setNextFocus(o),r=!0}r&&s.preventDefault()}})),t.mediaQuery.addEventListener("change",(()=>{this.setTabOrientation()}))}))}switch(t){this.tabHookData.forEach(((e,i)=>{this[i===t?"show":"hide"](i)}))}show(t){const e=this.tabHookData.get(t)?.hook;e&&(e.classList.add(mo.tabActiveClassName),e.setAttribute("aria-selected","true"),this.tabHookData.get(t)?.content?.classList.remove(mo.tabHideClassName),this.setFocus(e,!1))}hide(t){this.tabHookData.get(t)?.hook?.classList.remove(mo.tabActiveClassName),this.tabHookData.get(t)?.hook?.setAttribute("aria-selected","false"),this.tabHookData.get(t)?.content?.classList.add(mo.tabHideClassName)}setFocus(t,e){0!==this.tabHooks.length&&(this.tabHooks.forEach((t=>{t.tabIndex=-1})),t.tabIndex=0,e&&t.focus())}setPrevFocus(t){if(0===this.tabHooks.length)return;const e=this.tabHooks.indexOf(t);this.setFocus(this.tabHooks[0===e?this.tabHooks.length-1:e-1],!0)}setNextFocus(t){if(0===this.tabHooks.length)return;const e=this.tabHooks.indexOf(t);this.setFocus(this.tabHooks[e===this.tabHooks.length-1?0:e+1],!0)}}class go{element;headers;scrollThreshold;constructor(t){this.element=t,this.headers=null,this.scrollThreshold=0}init(){this.set(),this.bindEvent(),this.setOverlappingProperty()}set(){this.headers=document.querySelectorAll(`.${Xi.root}, .${Xi.headerProduct}, .${Xi.headerSearch}`)}bindEvent(){window.addEventListener("resize",(()=>{this.scrollThreshold||(this.scrollThreshold=setTimeout((()=>{this.scrollThreshold=0,this.setOverlappingProperty()}),500))})),window.addEventListener("scroll",(()=>{this.scrollThreshold||(this.scrollThreshold=setTimeout((()=>{this.scrollThreshold=0,this.setOverlappingProperty()}),500))}))}setOverlappingProperty(){this.element.style.setProperty("--overlapping-header","0");const t=this.element.getBoundingClientRect().top,e=this.getHeaderBottom();e>t&&this.element.style.setProperty("--overlapping-header",`${Math.round(e-t)}px`)}getHeaderBottom(){const t=[];return this.headers?.forEach((e=>{t.push(e.getBoundingClientRect().bottom)})),Math.max(...t)}}const bo="data-floating-side-navigation-link";class fo{root;clone;toolTipInstances;setOverlappingHeaderInstances;telephoneNumberInstances;constructor(t){this.root=t,this.clone=t.content.cloneNode(!0),this.toolTipInstances=[],this.setOverlappingHeaderInstances=[],this.telephoneNumberInstances=[]}init(){if(!window.kpi_menu_conversion.isShow)return;const t=window.location.pathname;window.kpi_menu_conversion.excludedUrl.test(t)||this.set()}set(){this.buildFloatingSideNavigation(),this.instance(),this.bindEvent(),this.root.replaceWith(this.clone),this.setOverlappingHeaderInstances.forEac
2h((t=>{t.setOverlappingProperty()}))}buildFloatingSideNavigation(){this.clone.querySelectorAll(".js-floatingSideNavigation__item").forEach((t=>{const e=t.querySelector(`a[${bo}]`),i=e?.getAttribute(`${bo}`),s=i&&window.kj_cp_side.url[i]?window.kj_cp_side.url[i]:null;"phone"===i&&s&&e?(e.setAttribute("href",`tel:${s.replaceAll("-","")}`),e.innerHTML=s):s&&e?e.setAttribute("href",s):t.remove()}))}instance(){this.clone.querySelectorAll(".js-tooltip").forEach((t=>{const e=new vi(t);this.toolTipInstances.push(e),e.init()})),this.clone.querySelectorAll(".js-setOverlappingHeader").forEach((t=>{const e=new go(t);this.setOverlappingHeaderInstances.push(e),e.init()})),this.clone.querySelectorAll(".js-telephoneNumber").forEach((t=>{const e=new Es(t);this.telephoneNumberInstances.push(e),e.init()}))}bindEvent(){this.clone.querySelectorAll(".js-tooltip").forEach((t=>{t.addEventListener("click",(()=>{this.setOverlappingHeaderInstances.forEach((t=>{t.setOverlappingProperty()}))}))}))}}class yo{root;targetMap;selectedItems;select;buttonDeleteAll;maxItemNumberElement;itemNumberElement;maxSelectItemNumberElement;isMaxSelectItem;constructor(t){this.root=t,this.targetMap=new Map,this.selectedItems=[],this.select=null,this.buttonDeleteAll=null,this.maxItemNumberElement=null,this.itemNumberElement=null,this.maxSelectItemNumberElement=null,this.isMaxSelectItem=!1}init(){this.set(),this.bindEvent(),this.initSelectedItems(),this.updateDisplay()}set(){const t=document.querySelectorAll(".js-seriesCompare__checkbox");t&&t.forEach((t=>{const e=this.root.querySelectorAll(`.js-seriesCompare__option[value="${t.name}"]`),i=this.root.querySelector(`.js-seriesCompare__slide[data-name="${t.name}"]`),s=i?.querySelector(".js-seriesCompare__buttonAdd"),o=i?.querySelector(".js-seriesCompare__buttonDelete");s&&o&&this.targetMap.set(t.name,{name:t.name,checkbox:t,options:e,slide:{buttonAdd:s,buttonDelete:o}})})),this.select=this.root.querySelectorAll(".js-seriesCompare__select"),this.buttonDeleteAll=this.root.querySelectorAll(".js-seriesCompare__buttonDeleteAll"),this.maxItemNumberElement=this.root.querySelector(".js-seriesCompare__maxItemNumber"),this.maxItemNumberElement&&(this.maxItemNumberElement.innerHTML=String(this.targetMap.size)),this.maxSelectItemNumberElement=this.root.querySelector(".js-seriesCompare__maxSelectItemNumber"),this.maxSelectItemNumberElement&&(this.maxSelectItemNumberElement.innerHTML=String(3)),this.itemNumberElement=this.root.querySelector(".js-seriesCompare__itemNumber")}
2bindEvent(){this.targetMap.forEach((t=>{t.checkbox.addEventListener("change",(e=>{const i=e.target;this.updateSelectedItems(t.name,i.checked),this.updateDisplay()})),t.slide.buttonDelete.addEventListener("click",(()=>{this.updateSelectedItems(t.name,!1),this.updateDisplay()})),t.slide.buttonAdd.addEventListener("click",(e=>{const i=e.target;this.updateSelectedItems(t.name,"true"!==i.getAttribute("aria-selected")),this.updateDisplay()}))})),this.select?.forEach(((t,e)=>{t.addEventListener("change",(t=>{const i=t.target,{value:s}=i;this.updateSelectedItems(s||"",Boolean(s),e),this.updateDisplay()}))})),this.buttonDeleteAll?.forEach((t=>{t.addEventListener("click",(()=>{this.initSelectedItems(),this.updateDisplay()}))}))}initSelectedItems(){this.selectedItems=Array.from(Array(3),(()=>"")),this.updateItemNumber()}updateSelectedItems(t,e,i){const s=void 0!==i;if(e){if(this.selectedItems.includes(t))return;if(s)this.selectedItems.splice(i,1,t);else for(let e=0;e<this.selectedItems.length;e++)if(""===this.selectedItems[e]){this.selectedItems.splice(e,1,t);break}}else{const e=this.selectedItems.findIndex((e=>t===e));this.selectedItems.splice(s?i:e,1,"")}this.updateItemNumber()}updateItemNumber(){this.isMaxSelectItem=!this.selectedItems.includes(""),this.itemNumberElement&&(this.itemNumberElement.innerHTML=String(3-this.selectedItems.filter((t=>""===t)).length))}updateDisplay(){this.updateCheckBox(),this.updateOption(),this.updateSlide()}
2updateCheckBox(){this.targetMap.forEach((t=>{const e=this.selectedItems.includes(t.name);t.checkbox.checked=e,t.checkbox.disabled=this.isMaxSelectItem&&!e}))}updateSlide(){this.targetMap.forEach((t=>{const e=this.selectedItems.includes(t.name);t.slide.buttonAdd?.setAttribute("aria-selected",String(e)),t.slide.buttonDelete.style.display=e?"":"none",t.slide.buttonAdd.disabled=this.isMaxSelectItem}))}updateOption(){this.targetMap.forEach((t=>{const e=this.selectedItems.includes(t.name);t.options.forEach((t=>{t.style.display=e?"none":""}))})),this.select?.forEach(((t,e)=>{""===this.selectedItems[e]?t.selectedIndex=0:t.querySelector(`option[value="${this.selectedItems[e]}"]`)?.setAttribute("selected","true")}))}}class vo{root;hooks;buttonClose;container;animate;isOpen;constructor(t){this.root=t,this.hooks=null,this.buttonClose=null,this.container=null,this.animate=null,this.isOpen=!1}init(){this.set(),this.bindEvent(),this.hide()}set(){this.hooks=this.root.querySelectorAll(".js-seriesCompare__select"),this.container=this.root.querySelector(".js-seriesCompare__carouselArea"),this.buttonClose=this.root.querySelector(".js-seriesCompare__buttonHideCarouselArea")}bindEvent(){this.hooks?.forEach((t=>{t.addEventListener("click",(()=>{this.isOpen||this.show()}))})),this.buttonClose?.addEventListener("click",(()=>{this.isOpen&&this.hide()}))}show(){this.container&&(this.isOpen=!0,this.container.style.display="",this.animate=this.container.animate([{opacity:"0"},{opacity:"1"}],{duration:200}),this.animate.onfinish=()=>{this.animate=null})}hide(){this.container&&(this.isOpen=!1,this.animate=this.container.animate([{opacity:"1"},{opacity:"0"}],{duration:200}),this.animate.onfinish=()=>{this.animate=null,this.container&&(this.container.style.display="none")})}}class Eo{root;controlSeriesCompareInstance;toggleCarouselAreaInstance;constructor(t){this.root=t,this.controlSeriesCompareInstance=null,this.toggleCarouselAreaInstance=null}init(){this.controlSeriesCompareInstance=new yo(this.root),this.controlSeriesCompareInstance.init(),this.toggleCarouselAreaInstance=new vo(this.root),this.toggleCarouselAreaInstance.init()}}const wo=t=>new URLSearchParams(window.location.search).get(t),ko=t=>{const e=new URLSearchParams(window.location.search),i=e.toString(),s=location.hash;t?e.set(so.CATEGORY_PARAM,t):e.delete(so.CATEGORY_PARAM),i!==e.toString()&&(""===e.toString()?history.pushState(null,"",location.pathname+s):history.pushState(null,"",`?${e.toString()}${s}`),u(so.SELECT_CATEGORY_COOKIE_NAME,t,90))},Co=new CustomEvent("changeUrl");class So{root;inputCheckBoxes;inputCheckAll;checkArray;constructor(t){this.root=t,this.inputCheckBoxes=null,this.inputCheckAll=null,this.checkArray=[]}init(){this.set(),this.initDisplay(),this.bindEvent()}set(){this.inputCheckBoxes=this.root.querySelectorAll('[type="checkbox"]'),this.inputCheckAll=this.root.querySelector(".js-modelList__controlCheckBoxAll")}initDisplay(){if(!this.inputCheckBoxes)return;const t=wo(so.CATEGORY_PARAM)?.split(","),e=h(so.SELECT_CATEGORY_COOKIE_NAME)?.split(",");t?this.inputCheckBoxes.forEach((e=>{this.controlCheckBox(e,t.includes(e.value))})):e?this.inputCheckBoxes.forEach((t=>{this.controlCheckBox(t,e.includes(t.value))})):this.controlCheckAll(!1),this.inputCheckAll&&(this.inputCheckAll.tabIndex=0),window.dispatchEvent(Co)}bindEvent(){["click","keydown"].forEach((t=>{this.inputCheckAll?.addEventListener(t,(t=>{if(t instanceof KeyboardEvent){if("Space"!==t.code)return;t.preventDefault()}this.inputCheckBoxes&&(this.controlCheckAll(this.checkArray.length!==this.inputCheckBoxes.length),ko(String(this.checkArray)),window.dispatchEvent(Co))}))})),this.inputCheckBoxes?.forEach((t=>{t.addEventListener("change",(()=>{this.controlCheckBox(t,t.checked),ko(String(this.checkArray)),window.dispatchEvent(Co)}))}))}controlCheckBox(t,e){this.inputCheckBoxes&&(t.checked=e,e?this.checkArray.push(t.value):this.checkArray=this.checkArray.filter((e=>e!==t.value)),this.inputCheckAll?.setAttribute("aria-checked",this.checkArray.length>0&&this.checkArray.length<this.inputCheckBoxes.length?"mixed":String(this.checkArray.length===this.inputCheckBoxes?.length)))}controlCheckAll(t){this.inputCheckAll?.setAttribute("aria-checked",String(t)),this.checkArray=[],this.inputCheckBoxes?.forEach((e=>{e.checked=t,t&&this.checkArray.push(e.value)}))}}const Ao=[];document.querySelectorAll('.js-modelList__controlCheckBox input[type="checkbox"]').forEach((t=>{Ao.push(t.value)}));const Lo=(t,e)=>t.some((t=>e.includes(t))),Io=(t,e,i)=>{const s=t.querySelector(".js-modelList__resultItem");s&&(s.id=`js-modelList__switchDisplay-${i+1}`);const o=t.querySelector(".js-modelList__webProductName");o&&e.webProductName&&(o.innerHTML=e.webProductName,s?.setAttribute("data-model",e.webProductName),s?.setAttribute("data-index",String(i)));const n=t.querySelector(".js-modelList__overviewUrl");n&&e.overviewUrl&&(n.href=e.overviewUrl);const r=t.querySelector(".js-modelList__salesProductName");r&&e.salesProductName&&(r.innerHTML=e.salesProductName);const a=t.querySelector(".js-modelList__discontinuedFlag");a&&!e.discontinuedFlag&&a.remove();const l=t.querySelector(".js-modelList__thumbnail img");l&&e.thumbnail.url&&e.thumbnail.alt&&(l.src=e.thumbnail.url,l.alt=e.thumbnail.alt);const c=t.querySelector(".js-bookmark__buttonAddOrEdit:not(.is-event-assigned)");c&&e.webProductID&&c.setAttribute("data-product-id",e.webProductID);const h=(e,i)=>{const s=t.querySelector(e),o=s?.querySelector("a");o&&i?o.href=i:o&&!i&&(o.role="none")};return h(".js-modelList__dimensionsUrl",e.dimensionsUrl),h(".js-modelList__dataSheetUrl",e.dataSheetUrl),h(".js-modelList__cadUrl",e.cadUrl),h(".js-modelList__manualsUrl",e.manualsUrl),t},_o=(t,e)=>t.data<e.data?-1:t.data>e.data?1:0,Do=(t,e)=>t.data>e.data?-1:t.data<e.data?1:0,No=(t,e)=>{const i=Number(t.data),s=Number(e.data);return isNaN(i)||isNaN(s)?0:i-s},To=(t,e)=>{const i=Number(t.data),s=Number(e.data);return isNaN(i)||isNaN(s)?0:s-i},Po=(t,e,i)=>{const s=[];return t.forEach((t=>{const i=(t.querySelector(".js-modelList__sortItem")||t).getAttribute(`data-${e}`);i&&s.push({target:t,data:i})})),"index"===e?"ascending"===i?s.sort(No):s.sort(To):"ascending"===i?s.sort(_o):s.sort(Do),s},xo={targetSelector:".js-modelList__sortItem"};class jo{trigger;targetWrapper;option;isSort;constructor(t,e,i){this.trigger=t,this.targetWrapper=e,this.option={...xo,...i},this.isSort={name:"",order:""}}init(){this.set(),this.updateSortData(),this.bindEvent()}set(){this.trigger.selectedIndex=0,this.trigger.setAttribute("autocomplete","off");const t=this.trigger.querySelector("option");t&&(t.selected=!0)}bindEvent(){this.trigger.addEventListener("change",(()=>{this.updateSortData(),this.sortItems()})),window.addEventListener("pageshow",(()=>{this.trigger.selectedIndex=0,this.updateSortData(),this.sortItems()}))}updateSortData(){const t=this.trigger.querySelector(`[value="${this.trigger.value}"]`),e=t?.getAttribute("data-sort"),i=t?.getAttribute("data-sort-order");this.isSort={name:e||"",order:i||""}}sortItems(){const t=this.targetWrapper.querySelectorAll(this.option.targetSelector);for(;this.targetWrapper?.firstChild;)this.targetWrapper.removeChild(this.targetWrapper.firstChild);Po(t,this.isSort.name,this.isSort.order).forEach((t=>{this.targetWrapper.appendChild(t.target)}))}}const qo={switchButtonEvent:["click","keydown"]};class Oo{wrapperTemplate;wrapperElement;resultElement;zeroElement;itemTemplate;resultNumberElement;countNumber;apiData;switchDisplayInstance;switchDisplayRoot;sortInstance;controlResultDisplayEvent;
2constructor(t){this.wrapperTemplate=t,this.wrapperElement=null,this.resultElement=null,this.zeroElement=null,this.itemTemplate=null,this.resultNumberElement=null,this.countNumber=0,this.apiData=void 0,this.switchDisplayInstance=null,this.switchDisplayRoot=null,this.controlResultDisplayEvent=this.controlResultDisplay.bind(this),this.sortInstance=null}init(){this.set(),this.addA11y(),this.bindEvent()}addA11y(){const t=document.querySelector(".js-modelList__resultNumberWrapper");t?.setAttribute("role","status")}set(){this.wrapperTemplate.replaceWith(this.wrapperTemplate.content.cloneNode(!0)),this.wrapperElement=document.querySelector(".js-modelList__resultWrapper"),this.itemTemplate=document.querySelector(".js-modelList__templateResultItem");const t=document.querySelector(".js-modelList__templateResultZero");t&&(t.replaceWith(t.content.cloneNode(!0)),this.zeroElement=document.querySelector(".js-modelList__resultZero"),this.zeroElement&&(this.zeroElement.style.display="none"));const e=document.querySelector(".js-modelList__templateResult");e&&(e.replaceWith(e.content.cloneNode(!0)),this.resultElement=document.querySelector(".js-modelList__result"),this.resultElement&&(this.resultElement.style.display="none")),this.resultNumberElement=document.querySelector(".js-modelList__resultNumber"),this.switchDisplayRoot=document.querySelector(".js-modelList__switchDisplay"),this.switchDisplayRoot&&(this.switchDisplayInstance=new Oi(this.switchDisplayRoot));const i=document.querySelector(".js-modelList__sort");i&&this.wrapperElement&&(this.sortInstance=new jo(i,this.wrapperElement),this.sortInstance.init())}bindEvent(){window.addEventListener("changeUrl",(()=>{(async()=>is((()=>{const t=new URL(io.MODELS),e=new URLSearchParams(""),i=wo(so.CATEGORY_PARAM),s=h(so.SELECT_CATEGORY_COOKIE_NAME);if(!eo.SERIES)return"";e.set(so.SITE_API_PARAM,to.SITE_ID),e.set(so.LANGUAGE_API_PARAM,to.SITE_LANG),e.set(so.GROUP_API_PARAM,eo.GROUP),e.set(so.TYPE_API_PARAM,eo.TYPE),e.set(so.SERIES_API_PARAM,eo.SERIES);let o="";return i&&Lo(Ao,i.split(","))&&(o=i),!i&&s&&Lo(Ao,s.split(","))&&(o=s),o?e.set(so.CATEGORY_PARAM,o):u(so.SELECT_CATEGORY_COOKIE_NAME,"",90),String(t)+e.toString()})()))().then((t=>{this.apiData=t,this.destroy(),this.build()})).catch((t=>{console.error(t)}))}))}destroy(){for(;this.wrapperElement?.firstChild;)this.wrapperElement.removeChild(this.wrapperElement.firstChild);qo.switchButtonEvent.forEach((t=>{this.switchDisplayInstance?.buttonList.forEach((e=>{e.removeEventListener(t,this.controlResultDisplayEvent)}))})),this.switchDisplayInstance=null,this.countNumber=0}build(){this.buildResultItems(),this.switchDisplayRoot&&(this.switchDisplayInstance=new Oi(this.switchDisplayRoot),this.switchDisplayInstance.init(),qo.switchButtonEvent.forEach((t=>{this.switchDisplayInstance?.buttonList.forEach((e=>{e.addEventListener(t,this.controlResultDisplayEvent)}))}))),this.controlResultDisplay()}buildResultItems(){if(!this.itemTemplate||!this.wrapperElement||!this.apiData)return;let t="";const e=[];for(let i=0;i<this.apiData.models.length;i++)e.push(Io(this.itemTemplate.content.cloneNode(!0),this.apiData.models[i],i)),this.apiData.models[i].discontinuedFlag&&(t=`${t}js-modelList__switchDisplay-${i+1} `);this.sortInstance&&(Po(e,this.sortInstance.isSort.name,this.sortInstance.isSort.order).forEach((t=>{this.wrapperElement?.appendChild(t.target)})),this.wrapperElement.querySelectorAll(".js-tooltip").forEach((t=>{new vi(t).init()})),t=t.slice(0,-1),0!==t.length?this.switchDisplayRoot?.setAttribute("aria-controls",t):this.switchDisplayRoot?.removeAttribute("aria-controls"))}controlResultDisplay(t){if(t instanceof KeyboardEvent){if("Enter"!==t.code&&"Space"!==t.code)return;t.preventDefault()}this.updateCountNumber(),this.updateDisplayResult(),this.switchDisplayZero()}switchDisplayZero(){const t=0===this.countNumber;this.wrapperElement&&(this.wrapperElement.style.display=t?"none":""),this.zeroElement&&(this.zeroElement.style.display=t?"":"none")}updateCountNumber(){this.apiData?"hide"===this.switchDisplayInstance?.currentAction&&0!==this.apiData.discontinuedCount?this.countNumber=this.apiData.totalCount-this.apiData.discontinuedCount:this.countNumber=this.apiData.totalCount:this.countNumber=0}updateDisplayResult(){this.resultNumberElement&&(this.resultElement&&(this.resultElement.style.display=""),this.resultNumberElement.innerHTML=String(this.countNumber))}}class Bo{controlCheckBoxInstance;buildResultInstance;constructor(){this.controlCheckBoxInstance=null,this.buildResultInstance=null}init(){const t=document.querySelector(".js-modelList__templateResultWrapper"),e=document.querySelector(".js-modelList__controlCheckBox");t&&e&&(this.buildResultInstance=new Oo(t),this.buildResultInstance.init(),this.controlCheckBoxInstance=new So(e),this.controlCheckBoxInstance.init())}}const Ho=t=>{const e=[];
2if(t){for(const i of t.models)e.push(i);for(const i of t.series)e.push(i)}return e},Mo=(t,e)=>{const i=t.productName,s=e.productName;return i<s?-1:i>s?1:0},Fo=(t,e)=>{const i=t.productName,s=e.productName;return s<i?-1:s>i?1:0},$o=(t,e)=>{const i=new Date(t.addedDate).getTime(),s=new Date(e.addedDate).getTime();return isNaN(i)||isNaN(s)?0:i-s},Ro=(t,e)=>{const i=new Date(t.addedDate).getTime(),s=new Date(e.addedDate).getTime();return isNaN(i)||isNaN(s)?0:s-i},Uo=(t,e)=>{const i=wo("sortOrder"),s=wo("sortBy");if(e){if("date"===s&&"ASC"===i)return t.sort($o);if("model"===s&&"DESC"===i)return t.sort(Fo);if("model"===s&&"ASC"===i)return t.sort(Mo)}return t.sort(Ro)};window.myPage={list:{folder:null,bookmarkAll:null,bookmark:null,downloadHistory:null,softwareUpdate:null},state:{isBookmarkFetching:!1,isDownloadHistoryFetching:!1,isSoftwareUpdateFetching:!1},focusTarget:[],showFolderId:null,showDownloadHistoryCategory:null};const Go=document.querySelector(".js-bookmark__outer")?.querySelector(".js-myPage__viewMore")||document.querySelector(".js-bookmark__outer")?.querySelector(".js-myPage__templateViewMoreOuter");window.addEventListener(_s,(()=>{window.myPage.state.isBookmarkFetching=!0,(async()=>{window.myPage.list.bookmark=[],window.myPage.list.bookmarkAll=[],await ao("bookmarkList",null,null,{includeOption:"ASSET_DETAIL"}).then((async t=>{const e=Ho(t);if(window.myPage.list.bookmarkAll=Uo(e,Go),!window.myPage.showFolderId)return window.myPage.list.bookmark=window.myPage.list.bookmarkAll,void setTimeout((()=>{window.dispatchEvent($s.bookmarkListUpdateCompleted)}),10);await ao("bookmarkFolderList",window.myPage.showFolderId,null,{includeOption:"ASSET_DETAIL"}).then((t=>{const e=Ho(t);window.myPage.list.bookmark=Uo(e,Go),setTimeout((()=>{window.dispatchEvent($s.bookmarkListUpdateCompleted)}),10)}))}))})().then((()=>{window.myPage.state.isBookmarkFetching=!1})).catch((()=>{window.myPage.state.isBookmarkFetching=!1}))}));const zo=()=>{window.myPage.focusTarget.length&&setTimeout((()=>{for(const t of window.myPage.focusTarget){let e=null;if(t instanceof HTMLElement&&document.contains(t)&&(e=t),"string"==typeof t&&(e=document.querySelector(String(t))),e){Ai(e),window.myPage.focusTarget=[];break}}}),10)};class Wo{elementButton;stringDialogId;stringCustomEventName;elementDialog;instanceDialogSetAttribute;constructor(t,e,i){this.elementButton=t,this.stringDialogId=e,this.stringCustomEventName=i,this.elementDialog=null,this.instanceDialogSetAttribute=null}init(){"1"!==this.elementButton.getAttribute(Ws.folderId)&&(this.set(),this.bindEvent())}set(){this.elementButton.classList.add(Ks),this.elementDialog=document.querySelector(this.stringDialogId),this.elementDialog&&(this.instanceDialogSetAttribute=new co(this.elementButton,this.elementDialog))}bindEvent(){this.elementButton.addEventListener("click",(e=>{var i;e.preventDefault(),window.myPage.state.isBookmarkFetching||(window.myPage.showFolderId&&!this.elementButton.hasAttribute(Ws.folderId)&&this.elementButton.setAttribute(Ws.folderId,window.myPage.showFolderId),(e=>{window.myPage.focusTarget=[];for(const t of e)window.myPage.focusTarget.push(t);window.myPage.focusTarget.push(t.body)})([this.elementButton,this.elementButton,`.${i=this.elementButton.className,i?i.replaceAll(" ","."):""}[${Ws.folderId}="${this.elementButton.getAttribute(Ws.folderId)||""}"]`,this.elementButton.closest(".js-bookmark__outer"),this.elementButton.closest(".js-bookmark__folderOuter")]),this.instanceDialogSetAttribute?.setDialogAttribute(),window.dispatchEvent(this.stringCustomEventName))}))}}const Yo=async(t,e)=>{const i=await async function(t){try{return await ao("bookmarkFolderList",t)}catch(t){return null}}(t);return!!i&&lo(e,Ho(i))},Qo=(t,e)=>{const i=e||Math.random().toString(32).substring(2),s=t.querySelector(".js-myPage__outputFor");s&&s.setAttribute("for",i);const o=t.querySelector(".js-myPage__outputId");o&&(o.id=i);const n=t.querySelector(".js-myPage__outputLabelledby");n&&n.setAttribute("aria-labelledby",i);const r=t.querySelector(".js-myPage__outputCheckboxName");return r&&(r.name=i),t},Vo=/^[\s\t]+$/u;class Ko{stringDialogId;stringCustomEventName;elementDialog;elementDialogInner;elementButtonCloses;elementInput;elementErrorOuter;elementError;elementButtonUpdate;instanceLoadingIcon;isDialogFetching;isError;constructor(t,e){this.stringDialogId=t,this.stringCustomEventName=e,this.elementDialog=null,this.elementDialogInner=null,this.elementButtonUpdate=null,this.elementButtonCloses=null,this.elementInput=null,this.elementErrorOuter=null,this.elementError=null,this.instanceLoadingIcon=null,this.isDialogFetching=!1,this.isError=!1}init(){this.set(),this.buildLoadingIcon(),this.toggleButtonSend(),this.bindEvent()}set(){this.elementDialog=document.querySelector(this.stringDialogId),this.elementDialog&&(this.elementButtonUpdate=this.elementDialog.querySelector(".js-bookmark__dialogButtonUpdate"),this.elementButtonCloses=this.elementDialog.querySelectorAll(".js-bookmark__dialogClose"),this.elementInput=this.elementDialog.querySelector(".js-bookmark__dialogInput"),this.elementErrorOuter=this.elementDialog.querySelector(".js-bookmark__dialogErrorOuter"),this.elementError=this.elementDialog.querySelector(".js-bookmark__dialogError"),Qo(this.elementDialog))}buildLoadingIcon(){const t=document.querySelector(".js-myPage__templateLoading"),e=t?.content.cloneNode(!0);this.elementDialogInner=this.elementDialog?.firstElementChild,e&&this.elementDialogInner&&this.elementDialogInner.appendChild(e);const i=this.elementDialog?.querySelector(".js-myPage__loading");i&&(this.instanceLoadingIcon=new zi(i))}bindEvent(){window.addEventListener(this.stringCustomEventName,(()=>{this.open()})),window.addEventListener(Ls,(()=>{this.close()})),window.addEventListener(As,(()=>{this.close()})),this.elementDialog?.addEventListener("click",(t=>{this.isDialogFetching||t.target!==this.elementDialog||this.close()})),this.elementButtonUpdate?.addEventListener("click",(()=>{this.isDialogFetching||this.update()})),this.elementButtonCloses?.forEach((t=>{t?.addEventListener("click",(()=>{this.isDialogFetching||this.close()}))})),document.addEventListener("keydown",(t=>{!this.isDialogFetching&&this.elementDialog?.open&&"Escape"===t.key&&this.close()})),this.elementInput?.addEventListener("keyup",(()=>{this.toggleButtonSend()}))}toggleButtonSend(){this.elementButtonUpdate&&this.elementInput&&(this.elementButtonUpdate.disabled=""===this.elementInput.value)}open(){Zs()&&(this.elementInput&&(this.elementInput.value="",this.removeErrorMessage(),this.toggleButtonSend()),window.myPage.state.isBookmarkFetching||(a(),this.elementDialog?.showModal()))}close(){this.elementDialog?.open&&(l(),this.elementDialog?.close())}update(){this.close()}showLoading(){const t=this.elementDialogInner?.children;if(t)for(let e=0;e<t.length;e++){const i=t[e];i.classList.contains("js-myPage__loading")||(i.style.display="none")}this.instanceLoadingIcon?.show()}hideLoading(){const t=this.elementDialogInner?.children;if(t)for(let e=0;e<t.length;e++){const i=t[e];i.classList.contains("js-myPage__loading")||(i.style.display="")}this.instanceLoadingIcon?.hide()}removeErrorMessage(){this.elementError&&this.elementErrorOuter&&(this.elementError.innerText="",this.elementError.style.display="none",this.elementErrorOuter.classList.remove(Vs),this.isError=!1)}showErrorMessage(t){this.elementError&&this.elementErrorOuter&&(this.elementError.innerText=t,this.elementError.style.display="",this.elementErrorOuter.classList.add(Vs),this.isError=!0)}toggleDisplayErrorMessage(){const t=this.createErrorMessage();t?this.showErrorMessage(t):this.removeErrorMessage()}createErrorMessage(){if(!this.elementInput)return null;let t=this.elementInput?.value;return t&&""!==t?this.isExcludeOnly(t)?Ys.string.dialogInputValidation.excludeOnly:(t=this.shapeInputValue(),this.elementInput.value=t,t.length>50?Ys.string.dialogInputValidation.characterLimit:(e=t,window.myPage.list.folder&&!0===window.myPage.list.folder.some((t=>t.name===e))?Ys.string.dialogInputValidation.duplication:null)):Ys.string.dialogInputValidation.notEntered;var e}shapeInputValue(){let t=this.elementInput?.value;if(!t)return"";let e=!0;for(;e;)Vo.test(t[0])?t=t.slice(1):e=!1;for(e=!0;e;)Vo.test(t[t.length-1])?t=t.slice(0,-1):e=!1;return t}isExcludeOnly(t){let e=!0;for(const i of t)!Vo.test(i)&&e&&(e=!1);return e}}async function Xo(t){const e=t.map((t=>async function(t){window.myPage.showFolderId?await async function(t,e){try{await ao("bookmarkDelete",t,e)}catch(t){throw new Error(String(t))}}(window.myPage.showFolderId,t):await async function(t){try{await ao("bookmarkDeleteAll",null,t)}catch(t){throw new Error(String(t))}}(t)}(t)));await Promise.all(e)}class Jo extends Ko{arrayId;elementSwitchElements;constructor(){super("#js-bookmark__dialogBookmarkDelete",Ts),this.arrayId=[],this.elementSwitchElements=void 0}open(){this.arrayId=this.elementDialog?.getAttribute(Ws.productId)?.split(",")||[],this.elementSwitchElements=this.elementDialogInner?.querySelectorAll(".js-bookmark__dialogBookmarkDeleteSwitchElement"),this.arrayId.length<=0||(this.elementSwitchElements?.forEach((t=>{"deleteAll"===t.getAttribute("data-switch")&&(t.style.display="none")})),super.open())}
2async update(){this.arrayId&&(window.addEventListener(Ds,(()=>{zo()}),{once:!0}),this.isDialogFetching=!0,this.showLoading(),await Xo(this.arrayId).catch((t=>{throw new Error(String(t))})).then((()=>{window.dispatchEvent($s.bookmarkListUpdateRequest)})),super.update(),this.hideLoading(),this.isDialogFetching=!1)}}class Zo extends Ko{elementCheckboxes;elementFolderList;elementButtonDeleteAll;templateFolderItem;constructor(){super("#js-bookmark__dialogBookmarkEdit",Ns),this.elementCheckboxes=void 0,this.elementFolderList=null,this.elementButtonDeleteAll=null,this.templateFolderItem=null}set(){super.set(),this.elementButtonDeleteAll=this.elementDialog?.querySelector(".js-bookmark__buttonDeleteAll"),this.elementFolderList=document.querySelector(".js-bookmark__dialogList"),this.templateFolderItem=document.querySelector(".js-bookmark__templateDialogList"),this.elementButtonDeleteAll&&this.elementButtonDeleteAll.classList.add(Ks)}refreshDialog(){if(this.elementFolderList)for(this.showLoading();this.elementFolderList.firstChild;)this.elementFolderList.removeChild(this.elementFolderList.firstChild)}bindEvent(){super.bindEvent(),this.elementButtonDeleteAll?.addEventListener("click",(()=>{this.showLoading(),(async()=>{const t=this.elementDialog?.getAttribute(Ws.productId)?.split(",");if(t){this.isDialogFetching=!0;try{await Xo(t),window.dispatchEvent($s.bookmarkListUpdateRequest),window.dispatchEvent($s.popupBookmarkDelete)}catch(t){throw window.dispatchEvent($s.popupErrorShow),new Error(String(t))}finally{this.close(),this.hideLoading(),this.isDialogFetching=!1}}})().catch((t=>{throw Error(String(t))}))}))}bindEventCheckbox(){this.elementButtonUpdate&&(this.elementButtonUpdate.disabled=!0),this.elementCheckboxes?.forEach((t=>{t.addEventListener("change",(()=>{const t=this.isCheckboxChanged();this.elementButtonUpdate&&(this.elementButtonUpdate.disabled=t)}))}))}isCheckboxChanged(){if(!this.elementCheckboxes)return!1;let t=!0;for(const e of this.elementCheckboxes)if(e.getAttribute(Ws.checked)!==String(e.checked))return t=!1,t;return t}async open(){super.open(),this.refreshDialog();const t=this.elementDialog?.getAttribute(Ws.productId),e=await async function(t,e){if(!window.myPage.list.folder||!t||!e)return null;const i=window.myPage.list.folder.map((async i=>{const s=((t,e)=>{const i=t.content.cloneNode(!0);return(()=>{const t=i.querySelectorAll(".js-myPage__outputName");for(const i of t)e.name&&(i.textContent=`${e.name}`)})(),(()=>{const t=i.querySelectorAll(".js-myPage__outputUrl");for(const i of t)e.id&&i.setAttribute("href",`${i.getAttribute("href")||""}?folderId=${e.id}`)})(),(()=>{const t=i.querySelectorAll(".js-bookmark__buttonFolderDelete");for(const i of t)e.id&&i.setAttribute(Ws.folderId,String(e.id))})(),(()=>{const t=i.querySelectorAll(".js-bookmark__buttonFolderRename");for(const i of t)e.id&&(i.setAttribute(Ws.folderId,String(e.id)),i.setAttribute(Ws.value,String(e.name)))})(),i})(t,i),o=s.querySelector('.js-bookmark__dialogCheckbox[type="checkbox"]');if(!o)return s;o.setAttribute(Ws.folderId,String(i.id));try{const t=await Yo(String(i.id),e);setTimeout((()=>{o.checked=t,o.setAttribute(Ws.checked,String(t))}),10)}catch(t){throw new Error(String(t))}return s}));return Promise.all(i)}(this.templateFolderItem,t);e?.forEach((t=>{this.elementFolderList?.appendChild(t);const e=this.elementFolderList?.lastElementChild;Qo(e)})),this.elementCheckboxes=this.elementFolderList?.querySelectorAll('.js-bookmark__dialogCheckbox[type="checkbox"]'),this.bindEventCheckbox(),this.hideLoading(),this.isDialogFetching=!1,this.elementDialog&&Ai(this.elementDialog)}update(){const t=this.elementDialog?.getAttribute(Ws.productId)||"";if(this.showLoading(),this.isDialogFetching=!0,this.elementCheckboxes){const e=[];for(const i of this.elementCheckboxes){if(i.getAttribute(Ws.checked)===String(i.checked))continue;const s=ao(i.checked?"bookmarkAdd":"bookmarkDelete",i.getAttribute(Ws.folderId),t).catch((t=>{throw new Error(String(t))}));e.push(s)}Promise.all(e).then((()=>{window.dispatchEvent($s.bookmarkListUpdateRequest),window.dispatchEvent($s.popupBookmarkUpdate),window.addEventListener(
2Ds,(()=>{zo()}),{once:!0})})).catch((t=>{throw new Error(String(t))}))}this.hideLoading(),this.isDialogFetching=!1,super.update()}}(()=>{const t=document.querySelector(".js-bookmark__templateDialog");t&&t.replaceWith(t.content.cloneNode(!0)),(new Jo).init(),(new Zo).init(),document.addEventListener("DOMContentLoaded",(()=>{var t;Zs()&&(document.querySelector('[class^="js-bookmark"]')||document.querySelector(".js-bookmark__buttonAddOrEdit"))?((t=document).querySelectorAll(".js-bookmark__buttonFolderAdd").forEach((t=>{new Wo(t,"#js-bookmark__dialogFolderAdd",$s.folderAdd).init()})),t.querySelectorAll(".js-bookmark__buttonFolderDelete").forEach((t=>{new Wo(t,"#js-bookmark__dialogFolderDelete",$s.folderDelete).init()})),t.querySelectorAll(".js-bookmark__buttonFolderRename").forEach((t=>{new Wo(t,"#js-bookmark__dialogFolderRename",$s.folderRename).init()})),window.dispatchEvent($s.folderListUpdateCompleted)):window.dispatchEvent($s.error)}),{once:!0}),window.addEventListener(Is,(()=>{if(document.querySelector(".js-bookmark__folderNameOuter")||document.querySelector(".js-bookmark__templateFolderNameOuter")){const t=new URL(location.href),e=new URLSearchParams(t.search).get("folderId");if(!window.myPage.list.folder||!window.myPage.list.folder.some((t=>String(t.id)===e)))return void window.dispatchEvent($s.error);window.myPage.showFolderId=e}window.dispatchEvent($s.bookmarkListUpdateRequest)}),{once:!0}),window.addEventListener("popstate",(()=>{document.querySelector('main [class^="js-bookmark"]')&&window.dispatchEvent($s.folderListUpdateRequest)}))})();const tn={show:Xs,completed:"is-popup-completed",error:"is-popup-error"},en=[{className:tn.completed,message:Ys.string.popup.bookmarkAdd,customEventName:Ps},{className:tn.completed,message:Ys.string.popup.bookmarkDelete,customEventName:xs},{className:tn.completed,message:Ys.string.popup.bookmarkUpdate,customEventName:js},{className:tn.completed,message:Ys.string.popup.folderAdd,customEventName:qs},{className:tn.completed,message:Ys.string.popup.folderDelete,customEventName:Os},{className:tn.completed,message:Ys.string.popup.folderUpdate,customEventName:Bs},{className:tn.error,message:Ys.string.popup.bookmarkAddError,customEventName:Ms},{className:tn.error,message:Ys.string.popup.error,customEventName:Hs}];class sn{template;elementPopup;elementItem;elementMessage;constructor(t){this.template=t,this.elementPopup=null,this.elementItem=null,this.elementMessage=document.createElement("span")}init(){this.set(),this.bindEvent()}set(){this.template.replaceWith(this.template.content.cloneNode(!0)),this.elementPopup=document.querySelector(".js-myPage__popup"),this.elementItem=this.elementPopup?.querySelector(".js-myPage__popupItem"),this.elementMessage.classList.add("js-myPage__popupText"),this.elementItem&&(this.elementItem.setAttribute("role","alert"),this.elementItem.innerHTML="")}bindEvent(){this.elementItem?.addEventListener("animationend",(()=>{this.close()})),window.addEventListener(Fs,(()=>{this.isShow()&&this.close()}));for(const t of en)window.addEventListener(t.customEventName,(()=>{this.isShow()||this.reset((()=>{this.updateDisplay(t.message,t.className),this.show()}))}))}updateDisplay(t,e){this.elementMessage&&(this.elementMessage.textContent=t),this.elementItem&&this.elementItem.classList.add(e)}isShow(){return this.elementItem?.classList.contains(Xs)||!1}show(){this.elementItem&&(this.elementItem.append(this.elementMessage),this.elementItem.classList.add(Xs))}close(){if(this.elementItem){for(const t of Object.values(tn))this.elementItem.classList.remove(t);this.elementItem.innerHTML=""}}reset(t){this.elementItem&&(this.elementItem.style.animation="none",this.close(),setTimeout((()=>{this.elementItem&&(this.elementItem.style.animation=""),t&&t()}),1))}}document.querySelectorAll(".js-toggle").forEach((t=>{new m(t).init()}));const on=document.querySelector(".js-mvCarousel");on&&(t=>{const e={autoplay:!0,classes:{page:"splide__pagination__page l-carouselMainVisual__page"},interval:4e3,easing:"ease",i18n:{prev:"",next:"",first:"",last:"",play:"",pause:"",select:"",slideX:"%sæç®ã®ã¹ã©ã¤ãã«ç§»å",pageX:"",slideLabel:""},live:!1,resetProgress:!1,speed:1300,type:"loop",updateOnMove:!0};if(t){(t=>{if(!t.getElementsByClassName("splide__slide random"))return;const e=Array.from(t.querySelectorAll(".splide__slide")),i=t.querySelector(".splide__list"),s=[],o=[],n=[];for(let t=0;t<e.length;t++)e[t].classList.contains("random")?(s.push(t),o.push(e[t])):n.push(e[t]);for(let t=o.length-1;t>0;t--){const e=Math.floor(Math.random()*(t+1));[o[t],o[e]]=[o[e],o[t]]}for(s.forEach(((t,e)=>{n.splice(t,0,o[e])}));i?.firstChild;)i.removeChild(i.firstChild);
2n.forEach((t=>{i?.appendChild(t)}))})(t);const i=new ni(t,e);if(i.mount(),i.Components.Elements.slides.length<=1)return void i.destroy();i.on("autoplay:playing",(t=>{i.Components.Pagination.items[i.index].button.style.backgroundSize=100*t+"% 100%"})),i.on("move",((t,e)=>{i.Components.Pagination.items[e].button.style.backgroundSize=""}))}})(on);const nn=document.querySelectorAll(".js-bannerCarousel");0!==nn.length&&(e=>{const i={autoWidth:!0,focus:0,gap:15,live:!1,i18n:{prev:"",next:"",first:"",last:"",slideLabel:""},omitEnd:!0,pagination:!1,mediaQuery:"min",breakpoints:{970:{destroy:!0}}};e&&e.forEach((e=>{const s=new ni(e,i),o=e.querySelector(".js-bannerCarousel__progressBar");o&&s.on("mounted move",(()=>{ri(s,o)})),s.mount(),li(s),ci(s),o&&t.mediaQuery.addEventListener("change",(()=>{setTimeout((()=>{t.mediaQuery.matches&&(ri(s,o),s.on("move",(()=>{ri(s,o)})))}),100)}))}))})(nn);const rn=document.querySelectorAll(".js-catalogCarousel");0!==rn.length&&hi(rn);const an=document.querySelectorAll(".js-multipleCarousel");0!==an.length&&(t=>{const e={fixedWidth:135,focus:0,gap:15,live:!1,i18n:{prev:"",next:"",first:"",last:"",slideLabel:""},omitEnd:!0,pagination:!1,mediaQuery:"min",breakpoints:{970:{gap:24,fixedWidth:void 0,perPage:6,perMove:6}}};t&&t.forEach((t=>{const i=new ni(t,e),s=t.querySelector(".js-multipleCarousel__progressBar");s&&i.on("mounted move",(()=>{ri(i,s)})),ai(i),i.mount(),li(i),ci(i)}))})(an);const ln=document.querySelectorAll(".js-simpleCarousel");0!==ln.length&&(t=>{const e={arrows:!1,autoplay:!0,classes:{page:"splide__pagination__page m-widget-simpleCarousel__page"},live:!1,type:"loop",i18n:{prev:"",next:"",first:"",last:"",play:"",pause:"",select:"",slideX:"%sæç®ã®ã¹ã©ã¤ãã«ç§»å",pageX:"",slideLabel:""}};t&&t.forEach((t=>{const i=new ni(t,e);i.mount(),(t=>{const e=t.Components.Elements.root.closest(".js-toggle__content");e?.addEventListener("toggleOpen",(()=>{t.refresh()}))})(i)}))})(ln);const cn=document.querySelector("#js-deqwasAssets");window.addEventListener("addDeqwasRecommend",(()=>{const t=cn?.querySelectorAll(".js-catalogCarousel");t&&hi(t)}));const hn=document.querySelector("#js-deqwasAssets-mykRecommend");window.addEventListener("addDeqwasMykRecommend",(()=>{const t=hn?.querySelectorAll(".js-catalogCarousel");t&&hi(t)}));const un=document.querySelector("#js-deqwasAssets-mykRelated");window.addEventListener("addDeqwasMykRelated",(()=>{un?.querySelectorAll(".js-toggle").forEach((t=>{new m(t).init()}))}));const dn=[];document.querySelectorAll(".js-tooltip").forEach((t=>{const e=new vi(t);dn.push(e),e.init()}));const mn=[];document.querySelectorAll(".js-addCurrent").forEach((t=>{const e=new ki(t);mn.push(e),e.init()}));const pn=document.querySelectorAll(".js-smoothScroll");pn.length&&pn.forEach((t=>{new _i(t).init()}));const gn=document.querySelectorAll(".js-viewMore");0!==gn.length&&gn.forEach((t=>{new Ti(t).init()})),document.querySelectorAll(".js-hasHover").forEach((t=>{new xi(t).init()}));const bn=document.querySelectorAll(".js-switchDisplay");0!==bn.length&&bn.forEach((t=>{new Oi(t).init()}));const fn=document.querySelector(".js-staticFilter");fn&&new Ui(fn).init();const yn=document.querySelector(".js-dialog__template");yn&&r(yn,yn,".js-dialog__contentArea"),document.querySelectorAll(".js-dialog-trigger").forEach((t=>{new Ki(t).init()}));const vn=new class extends Vi{constructor(){super(void 0,void 0,{...Qi})}init(){this.set(),this.addA11y(),this.bindEvent()}bindEvent(){super.bindEvent(),window.addEventListener("DialogOpenEvent",(t=>{const e=t;if(this.href=e.detail.href,this.set(),this.isInline){if(!(this.dialog instanceof HTMLDialogElement))return;this.open()}else this.displayPage().catch((t=>{throw new Error(String(t))})),this.open()}))}};vn.init();const En=document.querySelector(".js-searchProduct");En&&new ps(En).init().catch((t=>{throw new Error(String(t))})),document.querySelectorAll(".js-accordion").forEach((t=>{new gs(t).init()}));const wn=new class{option;targetsAll;timerId;flgGroupBy;constructor(t){this.option={...bs,...t},this.targetsAll=null,this.timerId=0,this.flgGroupBy=!1}init(){this.targetsAll=document.getElementsByClassName(this.option.targetClassName?this.option.targetClassName:bs.targetClassName),this.targetsAll&&(window.addEventListener("load",this.setHeight.bind(this)),window.addEventListener("resize",this.handlerResize.bind(this)))}handlerResize(){clearTimeout(this.timerId),this.timerId=window.setTimeout((()=>{this.setHeight()}),this.option.debounce)}setHeight(){this.targetsAll&&0!==this.targetsAll.length&&([...this.targetsAll].filter((t=>t.hasAttribute(this.option.groupDataName))).length&&(this.flgGroupBy=!0),this.flgGroupBy?this.setHeightByGroup():this.setHeighToElements(this.targetsAll))}setHeightByGroup(){if(!this.targetsAll||0===this.targetsAll.length)return;const t=[];for(let e=0,i=this.targetsAll.length;e<i;e++){const i=this.targetsAll[e];if(i.hasAttribute(this.option.groupDataName)){const e=i.getAttribute(this.option.groupDataName);if(!e)continue;t.indexOf(e)<0&&t.push(e)}else i.setAttribute(this.option.groupDataName,this.option.groupDataNameValueDefault),t.indexOf(this.option.groupDataNameValueDefault)<0&&t.push(this.option.groupDataNameValueDefault)}const e=[];for(let i=0,s=t.length;i<s;i++){if(e[i]=[...this.targetsAll].filter((e=>e.getAttribute(this.option.groupDataName)===t[i])),!e[i])continue;if(e[i][0].getAttribute(this.option.groupDataName)===this.option.groupDataNameValueDefault){this.setHeighToElements(e[i]);continue}const s=this.getElementsGroupByRow(e[i]);if(s)for(let t=0,e=s.length;t<e;t++){const e=s[t];this.setHeighToElements(e)}}}setHeighToElements(t){const e=[];let i=0;for(let i=0,s=t.length;i<s;i++)t[i].style.height="",e.push(t[i].clientHeight);if(i=Math.max.apply(null,e),i)for(let e=0,s=t.length;e<s;e++)t[e].style.height=`${i}px`}getElementsGroupByRow(t){const e=[];let i=[],s=0;for(let o=0,n=t.length;o<n;o++){const n=t[o],r=window.pageYOffset+n.getBoundingClientRect().top;0!==o?(s===r?(i.push(n),e[e.length-1]=i):(i=[],i.push(n),e.push(i)),s=r):(s=r,s===r?(i.push(n),e[0]=i):(i.push(n),e.push(e[0])))}return e}setTarget(t){this.targetsAll=t}update(){this.targetsAll&&this.setHeight()}destroy(){if(this.targetsAll){for(let t=0,e=this.targetsAll.length;t<e;t++)this.targetsAll[t].style.height="";window.removeEventListener("resize",this.handlerResize.bind(this))}}};wn.init();const kn=document.querySelector(".js-navigationCategoryFolder");kn&&new ys(kn).init();const Cn=document.querySelectorAll(".js-scrollArea");Cn&&Cn.forEach((t=>{new Yi(t).init()}));const Sn=document.querySelectorAll(".js-telephoneNumber");Sn&&Sn.forEach((t=>{new Es(t).init()}));const An=document.querySelectorAll(".js-controlDisplay");
2An&&An.forEach((t=>{new ks(t).init()}));const Ln=document.querySelectorAll(".js-iframeDialog"),In=document.querySelector(".js-iframeDialog__template");In&&r(In,In,".js-iframeDialog__contentArea"),Ln.forEach((t=>{new Cs(t).init()})),(()=>{const t=document.querySelector("body");if(t){const e={childList:!0,attributes:!0,subtree:!0},i=new MutationObserver((s=>{i.disconnect();for(const t of s)for(const e of t.addedNodes){const t=e;if(e.nodeName.startsWith("#"))continue;const i=t.querySelectorAll(".js-iframeDialog:not([aria-haspopup])");for(const t of i)new Cs(t).init();const s=t.querySelectorAll('.js-dialog-trigger:not([aria-haspopup]):not([role="none"])');for(const t of s)new Ki(t).init();const o=t.querySelectorAll(".js-hasHover");for(const t of o)new xi(t).init();const n=t.querySelectorAll(".js-telephoneNumber");for(const t of n)new Es(t).init();const r=t.querySelectorAll(".js-bookmark__buttonAddOrEdit:not(.is-event-assigned)");for(const t of r)new ho(t).init();const a=t.querySelectorAll(".js-controlPressPrint:not(.is-event-assigned)");for(const t of a)new Ss(t).init()}i.observe(t,e)}));i.observe(t,e)}})(),document.querySelectorAll(".js-switchPasswordVisibility").forEach((t=>{new uo(t).init()}));const _n=document.querySelectorAll(".js-tabPanel");0!==_n.length&&_n.forEach((t=>{new po(t).init()}));const Dn=document.querySelectorAll(".js-setOverlappingHeader");0!==Dn.length&&Dn.forEach((t=>{new go(t).init()})),i(963);const Nn=document.querySelector(".js-floatingSideNavigation");Nn&&new fo(Nn).init();const Tn=document.querySelector(".js-seriesCompare");Tn&&new Eo(Tn).init(),document.querySelector(".js-modelList")&&(new Bo).init();const Pn=document.querySelector(".js-myPage__templatePopup");Pn&&new sn(Pn).init();const xn=document.querySelectorAll(".js-bookmark__buttonAddOrEdit:not(.is-event-assigned)");for(const t of xn)new ho(t).init();(()=>{const t=document.documentElement;if(!t)return;const e={childList:!1,attributes:!0,subtree:!1},i=window?.location.hash;if(!i)return;const s=new MutationObserver((o=>{s.disconnect();const n=!t.classList.contains("wf-loading")&&t.classList.contains("is-header-event-assigned");"attributes"===o[0].type&&"class"===o[0].attributeName&&n?Ii(i).catch(console.error):s.observe(t,e)}));s.observe(t,e)})();const jn=document.querySelectorAll(".js-controlPressPrint");for(const t of jn)new Ss(t).init()})()})();
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.