PageSourceSearch

https://www.nagoya-phil.or.jp/en/content/wp-content/themes/original/assets/js/global/azlib.bundle.js

js nagoya-phil.or.jp collected 2026-10-02 07:42:59 UTC 105,484 bytes, 1 lines download raw bytes

vendor: 8,946 bytes, line 1
1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.azlib=e():t.azlib=e()}(this,(function(){return function(){"use strict";var t={d:function(e,i){for(var n in i)t.o(i,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{AdjustSize:function(){return ct},FadeSlider:function(){return gt},FlowVox:function(){return pt},FocusLoop:function(){return ut},LazyLoadBg:function(){return At},PopupAdjust:function(){return dt},SimpleAccordion:function(){return vt},SimpleCookie:function(){return wt},SimpleSlider:function(){return ft},SimpleTab:function(){return yt},Utilities:function(){return at},anime:function(){return nt}});var i={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},n={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},o=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],r={CSS:{},springs:{}};function s(t,e,i){return Math.min(Math.max(t,e),i)}function a(t,e){return t.indexOf(e)>-1}function c(t,e){return t.apply(null,e)}var l={arr:function(t){return Array.isArray(t)},obj:function(t){return a(Object.prototype.toString.call(t),"Object")},pth:function(t){return l.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},inp:function(t){return t instanceof HTMLInputElement},dom:function(t){return t.nodeType||l.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},nil:function(t){return l.und(t)||null===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return l.hex(t)||l.rgb(t)||l.hsl(t)},key:function(t){return!i.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&"targets"!==t&&"keyframes"!==t}};function u(t){var e=/\(([^)]+)\)/.exec(t);return e?e[1].split(",").map((function(t){return parseFloat(t)})):[]}function d(t,e){var i=u(t),n=s(l.und(i[0])?1:i[0],.1,100),o=s(l.und(i[1])?100:i[1],.1,100),a=s(l.und(i[2])?10:i[2],.1,100),c=s(l.und(i[3])?0:i[3],.1,100),d=Math.sqrt(o/n),h=a/(2*Math.sqrt(o*n)),p=h<1?d*Math.sqrt(1-h*h):0,f=h<1?(h*d-c)/p:-c+d;function m(t){var i=e?e*t/1e3:t;return i=h<1?Math.exp(-i*h*d)*(1*Math.cos(p*i)+f*Math.sin(p*i)):(1+f*i)*Math.exp(-i*d),0===t||1===t?t:1-i}return e?m:function(){var e=r.springs[t];if(e)return e;for(var i=1/6,n=0,o=0;;)if(1===m(n+=i)){if(++o>=16)break}else o=0;var s=n*i*1e3;return r.springs[t]=s,s}}function h(t){return void 0===t&&(t=10),function(e){return Math.ceil(s(e,1e-6,1)*t)*(1/t)}}var p,f,m=function(){var t=.1;function e(t,e){return 1-3*e+3*t}function i(t,e){return 3*e-6*t}function n(t){return 3*t}function o(t,o,r){return((e(o,r)*t+i(o,r))*t+n(o))*t}function r(t,o,r){return 3*e(o,r)*t*t+2*i(o,r)*t+n(o)}return function(e,i,n,s){if(0<=e&&e<=1&&0<=n&&n<=1){var a=new Float32Array(11);if(e!==i||n!==s)for(var c=0;c<11;++c)a[c]=o(c*t,e,n);return function(c){return e===i&&n===s||0===c||1===c?c:o(function(i){for(var s=0,c=1;10!==c&&a[c]<=i;++c)s+=t;--c;var l=s+(i-a[c])/(a[c+1]-a[c])*t,u=r(l,e,n);return u>=.001?function(t,e,i,n){for(var s=0;s<4;++s){var a=r(e,i,n);if(0===a)return e;e-=(o(e,i,n)-t)/a}return e}(i,l,e,n):0===u?l:function(t,e,i,n,r){var s,a,c=0;do{(s=o(a=e+(i-e)/2,n,r)-t)>0?i=a:e=a}while(Math.abs(s)>1e-7&&++c<10);return a}(i,s,s+t,e,n)}(c),i,s)}}}}(),g=(p={linear:function(){return function(t){return t}}},f={Sine:function(){return function(t){return 1-Math.cos(t*Math.PI/2)}},Expo:function(){return function(t){return t?Math.pow(2,10*t-10):0}},Circ:function(){return function(t){return 1-Math.sqrt(1-t*t)}},Back:function(){return function(t){return t*t*(3*t-2)}},Bounce:function(){return function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}},Elastic:function(t,e){void 0===t&&(t=1),void 0===e&&(e=.5);var i=s(t,1,10),n=s(e,.1,2);return function(t){return 0===t||1===t?t:-i*Math.pow(2,10*(t-1))*Math.sin((t-1-n/(2*Math.PI)*Math.asin(1/i))*(2*Math.PI)/n)}}},["Quad","Cubic","Quart","Quint"].forEach((function(t,e){f[t]=function(){return function(t){return Math.pow(t,e+2)}}})),Object.keys(f).forEach((function(t){var e=f[t];p["easeIn"+t]=e,p["easeOut"+t]=function(t,i){return function(n){return 1-e(t,i)(1-n)}},p["easeInOut"+t]=function(t,i){return function(n){return n<.5?e(t,i)(2*n)/2:1-e(t,i)(-2*n+2)/2}},p["easeOutIn"+t]=function(t,i){return function(n){return n<.5?(1-e(t,i)(1-2*n))/2:(e(t,i)(2*n-1)+1)/2}}})),p);function v(t,e){if(l.fnc(t))return t;var i=t.split("(")[0],n=g[i],o=u(t);switch(i){case"spring":return d(t,e);case"cubicBezier":return c(m,o);case"steps":return c(h,o);default:return c(n,o)}}function y(t){try{return document.querySelectorAll(t)}catch(t){return}}function b(t,e){for(var i=t.length,n=arguments.length>=2?arguments[1]:void 0,o=[],r=0;r<i;r++)if(r in t){var s=t[r];e.call(n,s,r,t)&&o.push(s)}return o}function w(t){return t.reduce((function(t,e){return t.concat(l.arr(e)?w(e):e)}),[])}function A(t){return l.arr(t)?t:(l.str(t)&&(t=y(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function L(t,e){return t.some((function(t){return t===e}))}function x(t){var e={};for(var i in t)e[i]=t[i];return e}function C(t,e){var i=x(t);for(var n in t)i[n]=e.hasOwnProperty(n)?e[n]:t[n];return i}function E(t,e){var i=x(t);for(var n in e)i[n]=l.und(t[n])?e[n]:t[n];return i}function S(t){var e=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t);if(e)return e[1]}function T(t,e){return l.fnc(t)?t(e.target,e.id,e.total):t}function I(t,e){return t.getAttribute(e)}function O(t,e,i){if(L([i,"deg","rad","turn"],S(e)))return e;var n=r.CSS[e+i];if(!l.und(n))return n;var o=document.createElement(t.tagName),s=t.parentNode&&t.parentNode!==document?t.parentNode:document.body;s.appendChild(o),o.style.position="absolute",o.style.width=100+i;var a=100/o.offsetWidth;s.removeChild(o);var c=a*parseFloat(e);return r.CSS[e+i]=c,c}function M(t,e,i){if(e in t.style){var n=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=t.style[e]||getComputedStyle(t).getPropertyValue(n)||"0";return i?O(t,o,i):o}}function H(t,e){return l.dom(t)&&!l.inp(t)&&(!l.nil(I(t,e))||l.svg(t)&&t[e])?"attribute":l.dom(t)&&L(o,e)?"transform":l.dom(t)&&"transform"!==e&&M(t,e)?"css":null!=t[e]?"object":void 0}function P(t){if(l.dom(t)){for(var e,i=t.style.transform||"",n=/(\w+)\(([^)]*)\)/g,o=new Map;e=n.exec(i);)o.set(e[1],e[2]);return o}}function q(t,e,i,n){switch(H(t,e)){case"transform":return function(t,e,i,n){var o=a(e,"scale")?1:0+function(t){return a(t,"translate")||"perspective"===t?"px":a(t,"rotate")||a(t,"skew")?"deg":void 0}(e),r=P(t).get(e)||o;return i&&(i.transforms.list.set(e,r),i.transforms.last=e),n?O(t,r,n):r}(t,e,n,i);case"css":return M(t,e,i);case"attribute":return I(t,e);default:return t[e]||0}}function k(t,e){var i=/^(\*=|\+=|-=)/.exec(t);if(!i)return t;var n=S(t)||0,o=parseFloat(e),r=parseFloat(t.replace(i[0],""));switch(i[0][0]){case"+":return o+r+n;case"-":return o-r+n;case"*":return o*r+n}}function D(t,e){if(l.col(t))return function(t){return l.rgb(t)?(i=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e=t))?"rgba("+i[1]+",1)":e:l.hex(t)?function(t){var e=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,i,n){return e+e+i+i+n+n})),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return"rgba("+parseInt(i[1],16)+","+parseInt(i[2],16)+","+parseInt(i[3],16)+",1)"}(t):l.hsl(t)?function(t){var e,i,n,o=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t),r=parseInt(o[1],10)/360,s=parseInt(o[2],10)/100,a=parseInt(o[3],10)/100,c=o[4]||1;function l(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}if(0==s)e=i=n=a;else{var u=a<.5?a*(1+s):a+s-a*s,d=2*a-u;e=l(d,u,r+1/3),i=l(d,u,r),n=l(d,u,r-1/3)}return"rgba("+255*e+","+255*i+","+255*n+","+c+")"}(t):void 0;var e,i}(t);if(/\s/g.test(t))return t;var i=S(t),n=i?t.substr(0,t.length-i.length):t;return e?n+e:n}function B(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function R(t){for(var e,i=t.points,n=0,o=0;o<i.numberOfItems;o++){var r=i.getItem(o);o>0&&(n+=B(e,r)),e=r}return n}function z(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return function(t){return 2*Math.PI*I(t,"r")}(t);
1case"rect":return function(t){return 2*I(t,"width")+2*I(t,"height")}(t);case"line":return function(t){return B({x:I(t,"x1"),y:I(t,"y1")},{x:I(t,"x2"),y:I(t,"y2")})}(t);case"polyline":return R(t);case"polygon":return function(t){var e=t.points;return R(t)+B(e.getItem(e.numberOfItems-1),e.getItem(0))}(t)}}function N(t,e){var i=e||{},n=i.el||function(t){for(var e=t.parentNode;l.svg(e)&&l.svg(e.parentNode);)e=e.parentNode;return e}(t),o=n.getBoundingClientRect(),r=I(n,"viewBox"),s=o.width,a=o.height,c=i.viewBox||(r?r.split(" "):[0,0,s,a]);return{el:n,viewBox:c,x:c[0]/1,y:c[1]/1,w:s,h:a,vW:c[2],vH:c[3]}}function W(t,e,i){function n(i){void 0===i&&(i=0);var n=e+i>=1?e+i:0;return t.el.getPointAtLength(n)}var o=N(t.el,t.svg),r=n(),s=n(-1),a=n(1),c=i?1:o.w/o.vW,l=i?1:o.h/o.vH;switch(t.property){case"x":return(r.x-o.x)*c;case"y":return(r.y-o.y)*l;case"angle":return 180*Math.atan2(a.y-s.y,a.x-s.x)/Math.PI}}function j(t,e){var i=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,n=D(l.pth(t)?t.totalLength:t,e)+"";return{original:n,numbers:n.match(i)?n.match(i).map(Number):[0],strings:l.str(t)||e?n.split(i):[]}}function F(t){return b(t?w(l.arr(t)?t.map(A):A(t)):[],(function(t,e,i){return i.indexOf(t)===e}))}function Y(t){var e=F(t);return e.map((function(t,i){return{target:t,id:i,total:e.length,transforms:{list:P(t)}}}))}function _(t,e){var i=x(e);if(/^spring/.test(i.easing)&&(i.duration=d(i.easing)),l.arr(t)){var n=t.length;2!==n||l.obj(t[0])?l.fnc(e.duration)||(i.duration=e.duration/n):t={value:t}}var o=l.arr(t)?t:[t];return o.map((function(t,i){var n=l.obj(t)&&!l.pth(t)?t:{value:t};return l.und(n.delay)&&(n.delay=i?0:e.delay),l.und(n.endDelay)&&(n.endDelay=i===o.length-1?e.endDelay:0),n})).map((function(t){return E(t,i)}))}var X={css:function(t,e,i){return t.style[e]=i},attribute:function(t,e,i){return t.setAttribute(e,i)},object:function(t,e,i){return t[e]=i},transform:function(t,e,i,n,o){if(n.list.set(e,i),e===n.last||o){var r="";n.list.forEach((function(t,e){r+=e+"("+t+") "})),t.style.transform=r}}};function U(t,e){Y(t).forEach((function(t){for(var i in e){var n=T(e[i],t),o=t.target,r=S(n),s=q(o,i,r,t),a=k(D(n,r||S(s)),s),c=H(o,i);X[c](o,i,a,t.transforms,!0)}}))}function G(t,e){return b(w(t.map((function(t){return e.map((function(e){return function(t,e){var i=H(t.target,e.name);if(i){var n=function(t,e){var i;return t.tweens.map((function(n){var o=function(t,e){var i={};for(var n in t){var o=T(t[n],e);l.arr(o)&&1===(o=o.map((function(t){return T(t,e)}))).length&&(o=o[0]),i[n]=o}return i.duration=parseFloat(i.duration),i.delay=parseFloat(i.delay),i}(n,e),r=o.value,s=l.arr(r)?r[1]:r,a=S(s),c=q(e.target,t.name,a,e),u=i?i.to.original:c,d=l.arr(r)?r[0]:u,h=S(d)||S(c),p=a||h;return l.und(s)&&(s=u),o.from=j(d,p),o.to=j(k(s,d),p),o.start=i?i.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=v(o.easing,o.duration),o.isPath=l.pth(r),o.isPathTargetInsideSVG=o.isPath&&l.svg(e.target),o.isColor=l.col(o.from.original),o.isColor&&(o.round=1),i=o,o}))}(e,t),o=n[n.length-1];return{type:i,property:e.name,animatable:t,tweens:n,duration:o.end,delay:n[0].delay,endDelay:o.endDelay}}}(t,e)}))}))),(function(t){return!l.und(t)}))}function V(t,e){var i=t.length,n=function(t){return t.timelineOffset?t.timelineOffset:0},o={};return o.duration=i?Math.max.apply(Math,t.map((function(t){return n(t)+t.duration}))):e.duration,o.delay=i?Math.min.apply(Math,t.map((function(t){return n(t)+t.delay}))):e.delay,o.endDelay=i?o.duration-Math.max.apply(Math,t.map((function(t){return n(t)+t.duration-t.endDelay}))):e.endDelay,o}var K=0,$=[],Z=function(){var t;function e(i){for(var n=$.length,o=0;o<n;){var r=$[o];r.paused?($.splice(o,1),n--):(r.tick(i),o++)}t=o>0?requestAnimationFrame(e):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){J.suspendWhenDocumentHidden&&(Q()?t=cancelAnimationFrame(t):($.forEach((function(t){return t._onDocumentVisibility()})),Z()))})),function(){t||Q()&&J.suspendWhenDocumentHidden||!($.length>0)||(t=requestAnimationFrame(e))}}();function Q(){return!!document&&document.hidden}function J(t){void 0===t&&(t={});
vendor: 5,234 bytes, line 1
1var e,o=0,r=0,a=0,c=0,u=null;function d(t){var e=window.Promise&&new Promise((function(t){return u=t}));return t.finished=e,e}var h=function(t){var e=C(i,t),o=C(n,t),r=function(t,e){var i=[],n=e.keyframes;for(var o in n&&(e=E(function(t){for(var e=b(w(t.map((function(t){return Object.keys(t)}))),(function(t){return l.key(t)})).reduce((function(t,e){return t.indexOf(e)<0&&t.push(e),t}),[]),i={},n=function(n){var o=e[n];i[o]=t.map((function(t){var e={};for(var i in t)l.key(i)?i==o&&(e.value=t[i]):e[i]=t[i];return e}))},o=0;o<e.length;o++)n(o);return i}(n),e)),e)l.key(o)&&i.push({name:o,tweens:_(e[o],t)});return i}(o,t),s=Y(t.targets),a=G(s,r),c=V(a,o),u=K;return K++,E(e,{id:u,children:[],animatables:s,animations:a,duration:c.duration,delay:c.delay,endDelay:c.endDelay})}(t);function p(){var t=h.direction;"alternate"!==t&&(h.direction="normal"!==t?"normal":"reverse"),h.reversed=!h.reversed,e.forEach((function(t){return t.reversed=h.reversed}))}function f(t){return h.reversed?h.duration-t:t}function m(){o=0,r=f(h.currentTime)*(1/J.speed)}function g(t,e){e&&e.seek(t-e.timelineOffset)}function v(t){for(var e=0,i=h.animations,n=i.length;e<n;){var o=i[e],r=o.animatable,a=o.tweens,c=a.length-1,l=a[c];c&&(l=b(a,(function(e){return t<e.end}))[0]||l);for(var u=s(t-l.start-l.delay,0,l.duration)/l.duration,d=isNaN(u)?1:l.easing(u),p=l.to.strings,f=l.round,m=[],g=l.to.numbers.length,v=void 0,y=0;y<g;y++){var w=void 0,A=l.to.numbers[y],L=l.from.numbers[y]||0;w=l.isPath?W(l.value,d*A,l.isPathTargetInsideSVG):L+d*(A-L),f&&(l.isColor&&y>2||(w=Math.round(w*f)/f)),m.push(w)}var x=p.length;if(x){v=p[0];for(var C=0;C<x;C++){p[C];var E=p[C+1],S=m[C];isNaN(S)||(v+=E?S+E:S+" ")}}else v=m[0];X[o.type](r.target,o.property,v,r.transforms),o.currentValue=v,e++}}function y(t){h[t]&&!h.passThrough&&h[t](h)}function A(t){var i=h.duration,n=h.delay,l=i-h.endDelay,m=f(t);h.progress=s(m/i*100,0,100),h.reversePlayback=m<h.currentTime,e&&function(t){if(h.reversePlayback)for(var i=c;i--;)g(t,e[i]);else for(var n=0;n<c;n++)g(t,e[n])}(m),!h.began&&h.currentTime>0&&(h.began=!0,y("begin")),!h.loopBegan&&h.currentTime>0&&(h.loopBegan=!0,y("loopBegin")),m<=n&&0!==h.currentTime&&v(0),(m>=l&&h.currentTime!==i||!i)&&v(i),m>n&&m<l?(h.changeBegan||(h.changeBegan=!0,h.changeCompleted=!1,y("changeBegin")),y("change"),v(m)):h.changeBegan&&(h.changeCompleted=!0,h.changeBegan=!1,y("changeComplete")),h.currentTime=s(m,0,i),h.began&&y("update"),t>=i&&(r=0,h.remaining&&!0!==h.remaining&&h.remaining--,h.remaining?(o=a,y("loopComplete"),h.loopBegan=!1,"alternate"===h.direction&&p()):(h.paused=!0,h.completed||(h.completed=!0,y("loopComplete"),y("complete"),!h.passThrough&&"Promise"in window&&(u(),d(h)))))}return d(h),h.reset=function(){var t=h.direction;h.passThrough=!1,h.currentTime=0,h.progress=0,h.paused=!0,h.began=!1,h.loopBegan=!1,h.changeBegan=!1,h.completed=!1,h.changeCompleted=!1,h.reversePlayback=!1,h.reversed="reverse"===t,h.remaining=h.loop,e=h.children;for(var i=c=e.length;i--;)h.children[i].reset();(h.reversed&&!0!==h.loop||"alternate"===t&&1===h.loop)&&h.remaining++,v(h.reversed?h.duration:0)},h._onDocumentVisibility=m,h.set=function(t,e){return U(t,e),h},h.tick=function(t){a=t,o||(o=a),A((a+(r-o))*J.speed)},h.seek=function(t){A(f(t))},h.pause=function(){h.paused=!0,m()},h.play=function(){h.paused&&(h.completed&&h.reset(),h.paused=!1,$.push(h),m(),Z())},h.reverse=function(){p(),h.completed=!h.reversed,m()},h.restart=function(){h.reset(),h.play()},h.remove=function(t){et(F(t),h)},h.reset(),h.autoplay&&h.play(),h}function tt(t,e){for(var i=e.length;i--;)L(t,e[i].animatable.target)&&e.splice(i,1)}function et(t,e){var i=e.animations,n=e.children;tt(t,i);for(var o=n.length;o--;){var r=n[o],s=r.animations;tt(t,s),s.length||r.children.length||n.splice(o,1)}i.length||n.length||e.pause()}J.version="3.2.1",J.speed=1,J.suspendWhenDocumentHidden=!0,J.running=$,J.remove=function(t){for(var e=F(t),i=$.length;i--;)et(e,$[i])},J.get=q,J.set=U,J.convertPx=O,J.path=function(t,e){var i=l.str(t)?y(t)[0]:t,n=e||100;return function(t){return{property:t,el:i,svg:N(i),totalLength:z(i)*(n/100)}}},J.setDashoffset=function(t){var e=z(t);return t.setAttribute("stroke-dasharray",e),e},J.stagger=function(t,e){void 0===e&&(e={});var i=e.direction||"normal",n=e.easing?v(e.easing):null,o=e.grid,r=e.axis,s=e.from||0,a="first"===s,c="center"===s,u="last"===s,d=l.arr(t),h=d?parseFloat(t[0]):parseFloat(t),p=d?parseFloat(t[1]):0,f=S(d?t[1]:t)||0,m=e.start||0+(d?h:0),g=[],y=0;return function(t,e,l){if(a&&(s=0),c&&(s=(l-1)/2),u&&(s=l-1),!g.length){for(var v=0;v<l;v++){if(o){var b=c?(o[0]-1)/2:s%o[0],w=c?(o[1]-1)/2:Math.floor(s/o[0]),A=b-v%o[0],L=w-Math.floor(v/o[0]),x=Math.sqrt(A*A+L*L);"x"===r&&(x=-A),"y"===r&&(x=-L),g.push(x)}else g.push(Math.abs(s-v));y=Math.max.apply(Math,g)}n&&(g=g.map((function(t){return n(t/y)*y}))),"reverse"===i&&(g=g.map((function(t){return r?t<0?-1*t:-t:Math.abs(y-t)})))}return m+(d?(p-h)/y:h)*(Math.round(100*g[e])/100)+f}},J.timeline=function(t){void 0===t&&(t={});var e=J(t);return e.duration=0,e.add=function(i,o){var r=$.indexOf(e),s=e.children;function a(t){t.passThrough=!0}r>-1&&$.splice(r,1);for(var c=0;c<s.length;c++)a(s[c]);var u=E(i,C(n,t));u.targets=u.targets||t.targets;var d=e.duration;
1u.autoplay=!1,u.direction=e.direction,u.timelineOffset=l.und(o)?d:k(o,d),a(e),e.seek(u.timelineOffset);var h=J(u);a(h),s.push(h);var p=V(s,t);return e.delay=p.delay,e.endDelay=p.endDelay,e.duration=p.duration,e.seek(0),e.reset(),e.autoplay&&e.play(),e},e},J.easing=v,J.penner=g,J.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t};var it,nt=J,ot=function(t,e,i,n){return new(i||(i=Promise))((function(o,r){function s(t){try{c(n.next(t))}catch(t){r(t)}}function a(t){try{c(n.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(s,a)}c((n=n.apply(t,e||[])).next())}))},rt=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},st=function(){function t(){}return t.load=function(t){return ot(this,void 0,void 0,(function(){var e,i;return rt(this,(function(n){switch(n.label){case 0:(e=new Image).src=t,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,e.decode()];case 2:return n.sent(),[2,e];case 3:return i=n.sent(),console.warn("画像のデコードに失敗しました: ".concat(t," - ").concat(i instanceof Error?i.message:"不明なエラー")),[2,null];case 4:return[2]}}
1))}))},t.loadImages=function(t,e){return ot(this,void 0,void 0,(function(){var i,n,o=this;return rt(this,(function(r){switch(r.label){case 0:return[4,Promise.all(t.map((function(t){return o.load(t)})))];case 1:return i=r.sent(),n=i.filter((function(t){return null!==t})),"function"==typeof e&&e(n),[2,n]}}))}))},t}(),at=function(){function t(t){var e,i,n=void 0===t?{}:t,o=n.spBreakPoint,r=void 0===o?768:o,s=n.pageTopPoint,a=void 0===s?100:s,c=n.pageTopElemID,l=void 0===c?"js-pageTopVox":c,u=n.isDebug,d=void 0!==u&&u,h=n.isRunInit,p=void 0===h||h,f=this;this.qsParm={},this.browser_n="",this.ua="",this.isIE=!1,this.isEdge=!1,this.isiPhone=!1,this.isiPad=!1,this.isiPod=!1,this.isAndroid=!1,this.isMac=!1,this.isWinPhone=!1,this.isMobile=!1,this.isNavOpen=!1,this.spBreakPoint=r,this.wWidth=0,this.wHeight=0,this.wIWidth=0,this.wIHeight=0,this.wIWidthCache=0,this.wIHeightCache=0,this.dspWidth=Number((null===(e=window.screen)||void 0===e?void 0:e.width)||0),this.dspHeight=Number((null===(i=window.screen)||void 0===i?void 0:i.height)||0),this.isRespMode=!1,this.isChangeWIWidth=!1,this.isChangeWIHeight=!1,this.isPageTopShow=!1,this.pageTopPoint=a,this.pageTopElemID=l,this.scrMode="",this.scrTop=0,this.scrLeft=0,this.setRespMode(),this.orgMode=this.currentMode,this.isChangeMode=!1,this.viewOriMode="landscape",this.isTouchDevice="ontouchstart"in window||navigator.maxTouchPoints>
10,this.isDebug=d,this.rTimer={setRespMode:0,toggleSPTel:0,debug:0,pagetop:0},this.isRunInit=p,this.isInitialized=!1,this.idleCallback=window.requestIdleCallback||function(t){return setTimeout((function(){return t({didTimeout:!1,timeRemaining:function(){return 0}})}),0)},this.handleResize=this.debounce((function(){requestAnimationFrame((function(){f.setRespMode(),f.toggleSPTel()}))}),250),this.handleScroll=this.debounce((function(){f.pageTop()}),100),this.handleScrollImmediate=function(){f.setScrPos()},this.isRunInit&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",(function(){f.init()})):this.init())}return t.prototype.init=function(){if(!this.isInitialized)try{this.initEssential(),this.initConditional(),this.initHeavy(),this.isInitialized=!0}catch(t){console.error("Utilities initialization failed:",t)}},t.prototype.initEssential=function(){this.setGETqs(),this.setWb(),this.setWbVer(),this.setMobile(),this.setRespMode(),this.setScrPos(),this.setupEventListeners()},t.prototype.initConditional=function(){this.pageTop(),this.toggleSPTel(),this.isDebug&&this.initDebug()},t.prototype.initHeavy=function(){var t=this;this.executeWhenIdle((function(){try{t.roImg(),t.roOpa()}catch(t){console.warn("Heavy initialization failed:",t)}}))},t.prototype.initDebug=function(){var t=this;if(this.isDebug)if(document.body){var e=document.createElement("div");e.id="pDebug",Object.assign(e.style,{position:"fixed",zIndex:99999,top:0,right:0,backgroundColor:"rgba(0,0,0,0.8)",color:"#fff",padding:"1vw",width:"30vw",height:"100%",overflow:"auto"}),document.body.appendChild(e),e.innerHTML='<div><a href="javascript:void(0)" class="toggle" style="color: #FFFFFF;">HIDE</a></div><div class="inner" />';var i={toggle:e.querySelector(".toggle"),inner:e.querySelector(".inner")};i.toggle.addEventListener("click",(function(){"none"!==i.inner.style.display?(i.inner.style.display="none",e.style.height="auto",i.toggle.textContent="SHOW"):(i.inner.style.display="block",e.style.height="100%",i.toggle.textContent="HIDE")})),this.showDebug(),window.addEventListener("resize",(function(){!1!==t.rTimer.debug&&clearTimeout(Number(t.rTimer.debug)),t.rTimer.debug=window.setTimeout((function(){t.showDebug()}),500)})),window.addEventListener("scroll",(function(){!1!==t.rTimer.debug&&clearTimeout(Number(t.rTimer.debug)),t.rTimer.debug=window.setTimeout((function(){t.showDebug()}),500)}))}else console.warn("initDebug: document.body is not available yet")},t.prototype.showDebug=function(){var t="";for(var e in this)if("function"!=typeof this[e])if("qsParm"!==e)t+='<div><span style="font-weight: bold;">'.concat(e,"</span> : ").concat(this[e],"</div>");else for(var i in t+="qsParm : ",this[e])t+='<div><span style="font-weight: bold;">'.concat(i,"</span> : ").concat(this[e][i],"</div>");document.querySelector("#pDebug .inner").innerHTML=t},t.prototype.openBlank=function(t){window.open(t)},t.prototype.preloadImg=function(t){if(void 0===t&&(t=[]),t)for(var e=0;e<t.length;e++)document.createElement("img").src=t[e]},t.prototype.loadImages=function(t,e){if(Array.isArray(t))try{return st.loadImages(t,e)}catch(t){return console.error("loadImages error:",t),[]}else console.warn("loadImages: list must be an array")},t.prototype.getGETqs=function(){return Object.fromEntries(new URLSearchParams(window.location.search))},t.prototype.setGETqs=function(){this.qsParm=this.getGETqs()},t.prototype.setWb=function(){this.ua=window.navigator.userAgent.toLowerCase(),this.isIE=this.ua.indexOf("msie")>=0||this.ua.indexOf("trident")>=0,this.isEdge=this.ua.indexOf("edge")>=0||this.ua.indexOf("edg")>=0},t.prototype.setWbVer=function(){this.ua.indexOf("firefox")>-1?this.browser_n="Firefox":this.ua.indexOf("opera")>-1?this.browser_n="Opera":this.ua.indexOf("chrome")>-1?this.browser_n="Chrome":this.ua.indexOf("safari")>-1?this.browser_n="Safari":this.browser_n="Unknown"},t.prototype.roImg=function(){var t=this,e=[];document.querySelectorAll("a > .roImg").forEach((function(i,n){var o=Date.now();i.addEventListener("mouseenter",(function(){if(!t.isRespMode){var n={src:"",srcDot:0,srcOver:""};n.src=i.src,n.srcDot=n.src.lastIndexOf("."),n.srcOver="".concat(n.src.substr(0,n.srcDot),"_on").concat(n.src.substr(n.srcDot,4)),e[o]=n.src,i.src=n.srcOver}})),i.addEventListener("mouseleave",(function(n){t.isRespMode||(i.src=e[o])}))}),this)},t.prototype.roOpa=function(){var t=this;document.querySelectorAll(".jqHover").forEach((function(e,i){e.addEventListener("mouseenter",(function(){t.isRespMode||nt({targets:e,opacity:.7,duration:250})}
1)),e.addEventListener("mouseleave",(function(){t.isRespMode||nt({targets:e,opacity:1,duration:200})}))}))},t.prototype.sScroll=function(t,e,i,n,o){void 0===n&&(n='a[href*="#"].scroll, area[href*="#"].scroll'),document.querySelectorAll(n).forEach((function(n,r){n.addEventListener("click",(function(n){var r={anchor:"",anchorURL:"",current:"",currentURL:"",targetArray:[],target:""};if(r.anchor=n.currentTarget.href,r.anchorURL=r.anchor.split("#")[0],r.current=window.location.href,r.currentURL=r.current.split("#")[0],r.anchorURL===r.currentURL){n.preventDefault(),r.targetArray=r.anchor.split("#"),r.target=r.targetArray.pop();var s=t&&Number.isInteger(t)?t:0,a=e&&500!==e&&Number.isInteger(e)?e:500,c=i&&"cubicBezier(0.11, 0, 0.5, 0)"!==i?i:"cubicBezier(0.11, 0, 0.5, 0)",l=document.getElementById(r.target),u=!1!==o,d=l.getBoundingClientRect().top+window.pageYOffset+s;return nt.remove("html, body"),nt({targets:"html, body",scrollTop:d,duration:a,easing:c,update:function(){},complete:function(){var t=l.getBoundingClientRect().top+window.pageYOffset+s;d!==t&&nt({targets:"html, body",scrollTop:t,duration:10,easing:"linear"}),u&&l.focus()}}),!1}}))}))},t.prototype.setRespMode=function(){var t,e;this.wHeight=Number(document.documentElement.clientHeight),this.wWidth=Number(document.documentElement.clientWidth),this.wIWidth=Number(window.innerWidth),this.wIHeight=Number(window.innerHeight);var i=this.isRespMode;this.isRespMode=this.checkRespMode(this.wIWidth),this.currentMode=this.isRespMode?2:1,this.isChangeMode=i!==this.isRespMode,null===(t=document.body)||void 0===t||t.classList.remove(this.viewOriMode),this.viewOriMode=this.wIHeight>this.wIWidth?"portrait":"landscape",this.wIWidthCache!==this.wIWidth?(this.wIWidthCache=this.wIWidth,this.isChangeWIWidth=!0):this.isChangeWIWidth=!1,this.wIHeightCache!==this.wIHeight?(this.wIHeightCache=this.wIHeight,this.isChangeWIHeight=!0):this.isChangeWIHeight=!1,null===(e=document.body)||void 0===e||e.classList.add(this.viewOriMode),window.dispatchEvent(new CustomEvent("azlib:respModeUpdated",{detail:{isRespMode:this.isRespMode,isChangeMode:this.isChangeMode,currentMode:this.currentMode}}))},t.prototype.setScrPos=function(){var t=window.scrollY||window.pageYOffset;this.scrMode=t<=this.scrTop?"up":"down",this.scrTop=t,this.scrLeft=window.scrollX||window.pageXOffset},t.prototype.checkRespMode=function(t){return t<this.spBreakPoint},t.prototype.pageTop=function(){var t=this,e=document.getElementById(this.pageTopElemID);e&&(!1!==this.rTimer.pagetop&&clearTimeout(Number(this.rTimer.pagetop)),this.rTimer.pagetop=window.setTimeout((function(){t.scrTop>=t.pageTopPoint?t.isPageTopShow||(t.isPageTopShow=!0,e.style.display="block",nt({targets:e,opacity:1,duration:100})):t.isPageTopShow&&(t.isPageTopShow=!1,nt({targets:e,opacity:0,duration:200,complete:function(){e.style.display="none"}}))}),100))},t.prototype.setMobile=function(){this.ua=window.navigator.userAgent.toLowerCase(),this.isiPhone=-1!=this.ua.indexOf("iphone"),this.isiPad=-1!=this.ua.indexOf("ipad")||-1!=this.ua.indexOf("macintosh")&&"ontouchend"in document,this.isiPod=-1!=this.ua.indexOf("ipod"),this.isAndroid=-1!=this.ua.indexOf("android")||-1!=this.ua.indexOf("android"),this.isMac=-1!=this.ua.indexOf("macintosh")||-1!=this.ua.indexOf("macintosh"),this.isWinPhone=-1!=this.ua.indexOf("windows phone"),this.isMobile=!!(this.isiPhone||this.isiPad||this.isiPod||this.isAndroid||this.isWinPhone)},t.prototype.toggleSPTel=function(){this.isRespMode?document.querySelectorAll(".spTel").forEach((function(t){var e=t.getAttribute("data-tel");if("A"!==t.parentNode.tagName){var i=document.createElement("a");t.before(i),i.append(t),i.href="tel:"+e}})):document.querySelectorAll(".spTel").forEach((function(t){var e=t.parentNode;"A"===e.tagName&&(e.before(t),e.remove())}))},t.printType=function(t){console.log("".concat(typeof t," ").concat(Object.prototype.toString.call(t)))},t.prototype.destroy=function(){Object.values(this.rTimer).forEach((function(t){!1!==t&&clearTimeout(Number(t))})),window.removeEventListener("resize",this.handleResize),window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("scroll",this.handleScrollImmediate);var t=document.getElementById("pDebug");t&&t.remove()},t.prototype.debounce=function(t,e){var i=this;return function(){!1!==i.rTimer[t.name]&&clearTimeout(Number(i.rTimer[t.name])),i.rTimer[t.name]=window.setTimeout(t,e)}},t.prototype.setupEventListeners=function(){window.addEventListener("resize",this.handleResize),window.addEventListener("scroll",this.handleScroll),window.addEventListener("scroll",this.handleScrollImmediate)},t.prototype.executeWhenIdle=function(t,e){void 0===e&&(e=1e3),window.requestIdleCallback?window.requestIdleCallback(t,{timeout:e}):setTimeout(t,0)},t}(),ct=function(){function t(e,i){var n=void 0===i?{}:i,o=n.type,r=void 0===o?"inner":o,s=n.plus,a=void 0===s?0:s,c=n.isResizeAuto,l=void 0===c||c,u=n.tag,d=void 0===u?"is-completeAdjustSize":u,h=n.onComplete,p=void 0!==h&&h,f=this;this.rTimer=null,this.imageLoaders=[],this.handleResize=function(){null!==f.rTimer&&(clearTimeout(f.rTimer),f.rTimer=null),f.rTimer=window.setTimeout((function(){f.reload()}),t.RESIZE_DELAY)},this.collection=document.querySelectorAll(e),this.setHeight=0,this.count=0,this.length=this.collection.length,this.length?(this.options={type:r,plus:a,isResizeAuto:l,tag:d,onComplete:p},this.init()):this.die()}return t.prototype.init=function(){this.options.isResizeAuto&&window.addEventListener("resize",this.handleResize),this.adjust()},t.prototype.adjust=function(){var t=this;this.collection.forEach((function(e){e.style.height="auto";var i=[];e.querySelectorAll("img").forEach((function(t){i.push(t.src)}));var n=function(){var i=0;i="inner"===t.options.type?e.clientHeight:e.offsetHeight,t.setHeight=Math.max(i,t.setHeight),t.count++,t.count===t.length&&t.applyHeightToAll()};i.length>0?t.loadImages(i).then(n).catch((function(t){console.warn("画像読み込みエラー:",t),n()})):n()}))},t.prototype.loadImages=function(t){return e=this,i=void 0,o=function(){var e,i=this;return function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}
1finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}(this,(function(n){switch(n.label){case 0:return e=t.map((function(t){return i.loadImage(t)})),[4,Promise.allSettled(e)];case 1:return n.sent(),[2]}}))},new((n=void 0)||(n=Promise))((function(t,r){function s(t){try{c(o.next(t))}catch(t){r(t)}}function a(t){try{c(o.throw(t))}catch(t){r(t)}}function c(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n((function(t){t(i)}))).then(s,a)}c((o=o.apply(e,i||[])).next())}));var e,i,n,o},t.prototype.applyHeightToAll=function(){var t=this.setHeight+this.options.plus;this.collection.forEach((function(e){e.style.height="".concat(t,"px")})),document.body.classList.add(this.options.tag),"function"==typeof this.options.onComplete&&this.options.onComplete()},t.prototype.destroy=function(){this.collection.forEach((function(t){t.style.removeProperty("height")})),window.removeEventListener("resize",this.handleResize),this.imageLoaders.forEach((function(t){t.onload=null,t.onerror=null})),this.imageLoaders=[],this.rTimer=null},t.prototype.reload=function(){this.destroy(),this.count=0,this.setHeight=0,this.init()},t.prototype.die=function(){return window.removeEventListener("resize",this.handleResize),!1},t.prototype.loadImage=function(t){var e=this;return new Promise((function(i,n){var o=new Image;o.onload=function(){e.imageLoaders.push(o),i()},o.onerror=function(){e.imageLoaders.push(o),n(new Error("画像の読み込みに失敗: ".concat(t)))},o.src=t}))},t.RESIZE_DELAY=500,t}(),lt=["a","area","button","iframe","input","object","select","textarea"],ut=function(){function t(t,e){var i=(void 0===e?{}:e).focusLoopElems,n=void 0===i?lt:i;this.isRun=!1,this.wrapper=null,this.options={focusLoopElems:n},this.wrapper=document.querySelector(t),this.wrapper?(this.handleKeydown=this.onKeydown.bind(this),this.init()):console.warn('FocusLoop: セレクター "'.concat(t,'" に対å¿
1œã™ã‚‹è¦ç´ ãŒè¦‹ã¤ã‹ã‚Šã¾ã›ã‚“'))}return t.prototype.init=function(){this.options.focusLoopElems.length?document.addEventListener("keydown",this.handleKeydown):console.warn("FocusLoop: focusLoopElemsが空です")},t.prototype.onKeydown=function(t){if(this.isRun&&this.wrapper&&"Tab"===t.code){var e=this.getFocusableElements();if(0!==e.length){var i=document.activeElement,n=e[0],o=e[e.length-1],r=t.shiftKey;r||o!==i?r&&n===i&&(t.preventDefault(),this.focusElement(o)):(t.preventDefault(),this.focusElement(n))}}},t.prototype.getFocusableElements=function(){var t=this;if(!this.wrapper)return[];var e=this.options.focusLoopElems.join(",");return Array.from(this.wrapper.querySelectorAll(e)).filter((function(e){return!(!t.isElementVisible(e)||e.tabIndex<0||e.hasAttribute("disabled"))}))},t.prototype.isElementVisible=function(t){if("checkVisibility"in t)return t.checkVisibility();var e=window.getComputedStyle(t);return"none"!==e.display&&"hidden"!==e.visibility&&"0"!==e.opacity},t.prototype.focusElement=function(t){try{t.focus()}catch(t){console.warn("FocusLoop: 要素にフォーカスを設定できませんでした",t)}},t.prototype.start=function(){this.isRun=!0},t.prototype.stop=function(){this.isRun=!1},t.prototype.destroy=function(){this.stop(),document.removeEventListener("keydown",this.handleKeydown),this.wrapper=null},t}(),dt=function(){function t(t,e){var i=void 0===e?{}:e,n=i.bg,o=void 0===n?"#alphaBg":n,r=i.bgOpacity,s=void 0===r?.8:r,a=i.closeEl,c=void 0===a?".popupCloseBt":a,l=i.wrapper,u=void 0===l?"body":l,d=i.popupContent,h=void 0===d?"#popupContents":d,p=i.label,f=void 0===p?"":p,m=i.iframeMovieSrc,g=void 0===m?"":m,v=i.durationBgChange,y=void 0===v?50:v,b=i.durationBgClose,w=void 0===b?50:b,A=i.durationChange,L=void 0===A?200:A,x=i.durationClose,C=void 0===x?150:x,E=i.isA11y,S=void 0===E||E,T=i.isAdjust,I=void 0===T||T,O=i.isCloseBtn,M=void 0===O||O,H=i.isSpFixed,P=void 0===H||H,q=i.isUnlock,k=void 0===q||q,D=i.onClose,B=void 0!==D&&D,R=i.onComplete,z=void 0!==R&&R,N=i.onOpen,W=void 0!==N&&N;this.scrTopTemp=0,this.isOpen=!1,this.isAllowClose=!1,this.popupContent=h,this.spBreakPoint=768,this.scrTop=0,this.scrLeft=0,this.wHeight=0,this.wWidth=0,this.wIWidth=0,this.wIHeight=0,this.isRespMode=!1,this.focusLoop=[],this.options={bg:o,bgOpacity:s,btn:t,closeEl:c,wrapper:u,popupContent:h,label:f,iframeMovieSrc:g,durationBgChange:y,durationBgClose:w,durationChange:L,durationClose:C,isA11y:S,isAdjust:I,isCloseBtn:M,isSpFixed:P,isUnlock:k,onClose:B,onComplete:z,onOpen:W};var j=document.createElement("style");document.head.appendChild(j),j.sheet.insertRule("body.is-pOpenUnlock { overflow: visible; }",j.sheet.length),j.sheet.insertRule("body.is-pOpenFixed { position: fixed; }",j.sheet.length),this.init()}return t.prototype.init=function(){var t=this;if(!document.querySelector(this.options.bg)){var e=document.createElement("div");e.id="alphaBg",Object.assign(e.style,{opacity:"0",display:"none"}),document.querySelector(this.options.wrapper).insertBefore(e,document.querySelector(this.options.wrapper).childNodes[0])}var i=[];document.querySelectorAll("".concat(this.options.btn,":not(.exclude)")).forEach((function(t,e){var n=t.getAttribute("data-popup");!0!==i.includes(n)&&i.push(n)})),document.querySelectorAll("".concat(this.popupContent," .content")).forEac
1h((function(e,n){var o=e.innerHTML,r=e.getAttribute("data-group"),s=document.createElement("div");s.className="popupWrapper vertical",s.setAttribute("role","dialog"),s.setAttribute("aria-modai","true"),t.options.label&&s.setAttribute("aria-label",t.options.label),t.options.isCloseBtn&&(s.innerHTML+='\n          <div class="closeVox">\n            <button aria-label="ポップアップを閉じる" class="popupCloseBt">\n              <span>\x3c!-- --\x3e</span>\n              <span>\x3c!-- --\x3e</span>\n            </button>\n          </div>\n          '),s.innerHTML+='\n          <div class="contentWrapper">\n            <div class="content">\x3c!-- --\x3e</div>\n          </div>\n        ',Object.assign(s.style,{opacity:"0",display:"none"}),document.querySelector(t.options.wrapper).appendChild(s),s.id=i[n],r&&s.classList.add(r),t.options.isA11y&&s.setAttribute("inert","true"),document.querySelector("#".concat(i[n])).querySelector(".content").insertAdjacentHTML("beforeend",o),e.remove(),t.options.isA11y&&(t.focusLoop[n]=new ut("#".concat(i[n])))}));var n=this.options.bg?", ".concat(this.options.bg):"",o=this.options.closeEl?", ".concat(this.options.closeEl):"";document.querySelectorAll(".popupCloseBt".concat(n).concat(o)).forEach((function(e,i){e.addEventListener("click",(function(){!document.querySelector(".popupWrapper, ".concat(t.options.bg)).classList.contains("is-animating")&&t.isAllowClose&&t.close()}))})),document.addEventListener("keydown",(function(e){if(t.isOpen&&"Escape"===e.key){if(document.querySelector(".popupWrapper, ".concat(t.options.bg)).classList.contains("is-animating")||!t.isAllowClose)return;t.close()}})),document.querySelectorAll(this.options.btn).forEach((function(e,i){e.addEventListener("click",(function(){t.currentTrigger=e,document.querySelectorAll(".popupWrapper, ".concat(t.options.bg)).forEach((function(t){t.classList.contains("is-animating")}));var n=e.getAttribute("data-popup");if(t.popupTarget="#".concat(n),e.classList.contains("movie")){var o=e.getAttribute("data-movie"),r=t.options.iframeMovieSrc||'<iframe src="https://www.youtube.com/embed/'.concat(o,'?autoplay=1&rel=0"\n            allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>');document.querySelector(t.popupTarget).querySelector(".movieContent").insertAdjacentHTML("beforeend",r)}Object.assign(document.querySelector(t.popupTarget).style,{opacity:"0",display:"block"}),t.change("#".concat(n)),t.options.isA11y&&void 0!==t.focusLoop[i]&&(t.focusLoop[i].isRun=!0),document.body.classList.add("is-pOpen")}))})),window.addEventListener("scroll",(function(){t.setScrPos()})),"function"==typeof this.options.onComplete&&this.options.onComplete()},t.prototype.change=function(t){var e=this;this.isOpen||(this.isOpen=!0,this.adjust(t),document.querySelector(this.options.bg).style.display="block",nt({targets:document.querySelector(this.options.bg),opacity:[0,this.options.bgOpacity],easing:"linear",duration:this.options.durationBgChange,complete:function(){document.querySelector(t).style.display="block";var i=document.querySelector(e.options.wrapper).children;e.options.isA11y&&(Array.from(i).forEach((function(i){i!==document.querySelector(t)&&i!==document.querySelector(e.options.bg)&&(i.setAttribute("data-popup-invalid-elements","true"),i.setAttribute("inert","true"))})),document.querySelector(t).removeAttribute("inert")),document.querySelector(".popupWrapper, ".concat(e.options.bg)).classList.add("is-animating"),nt({targets:document.querySelector(t),opacity:[0,1],duration:e.options.durationChange,complete:function(){var i;e.isAllowClose=!0,document.querySelectorAll(".popupWrapper, ".concat(e.options.bg)).forEach((function(t){return t.classList.remove("is-animating")})),null===(i=document.querySelector(t).querySelector(".popupCloseBt"))||void 0===i||i.focus(),"function"==typeof e.options.onOpen&&e.options.onOpen(e.popupTarget)}})}}))},t.prototype.close=function(){var t=this;document.querySelectorAll(".popupWrapper").forEach((function(e,i){document.body.classList.remove("is-pOpen","is-pOpenUnlock"),t.isRespMode&&t.options.isSpFixed&&(document.body.classList.remove("is-pOpenFixed"),document.body.style.removeProperty("top"),window.scrollTo(0,t.scrTopTemp)),t.options.isA11y&&void 0!==t.focusLoop[i]&&(t.focusLoop[i].isRun=!1),nt({targets:e,opacity:[1,0],duration:t.options.durationClose,complete:function(){e.style.display="none",t.options.isA11y&&(e.setAttribute("inert","true"),document.querySelectorAll('[data-popup-invalid-elements="true"]').forEach((function(t){t.removeAttribute("data-popup-invalid-elements"),t.removeAttribute("inert")}))),nt({targets:t.options.bg,opacity:[1,0],duration:t.options.durationBgClose,easing:"linear",complete:function(){var e;document.querySelector(t.options.bg).style.display="none",document.querySelectorAll(".popupWrapper").forEach((function(t){return t.style.display="none"})),t.isOpen=!1,null===(e=t.currentTrigger)||void 0===e||e.focus(),"function"==typeof t.options.onClose&&t.options.onClose(t.popupTarget)}})}}),document.querySelectorAll(".popupWrapper.movie .movieContent").forEach((function(t,e){t&&(t.innerHTML="")}))}))},t.prototype.adjust=function(t){if(this.options.isAdjust){t||(t=this.popupTarget),this.setRespMode(),this.setScrPos();var e=document.querySelector(t).offsetHeight,i=document.querySelector(t).offsetWidth,n=this.wHeight>e?(this.wHeight-e)/2:0;this.wWidth>i&&this.wWidth,this.scrTopTemp=this.scrTop,this.options.isUnlock||e>=this.wHeight&&document.body.classList.add("is-pOpenUnlock"),document.querySelector(t).style.top="".concat(n+this.scrTop,"px"),this.isRespMode&&this.options.isSpFixed&&(document.body.classList.add("is-pOpenFixed"),document.body.style.top="-".concat(this.scrTopTemp,"px"))}},t.prototype.setScrPos=function(){this.scrTop=window.scrollY||window.pageYOffset,this.scrLeft=window.scrollX||window.pageXOffset},t.prototype.setRespMode=function(){this.wHeight=Number(document.documentElement.clientHeight),this.wWidth=Number(document.documentElement.clientWidth),this.wIWidth=Number(window.innerWidth),this.wIHeight=Number(window.innerHeight),this.isRespMode=this.wIWidth<this.spBreakPoint},t}(),ht=function(){return ht=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ht.apply(this,arguments)},pt=function(){function t(t,e){var i=void 0===e?{}:e,n=i.translate,o=void 0===n?60:n,r=i.duration,s=void 0===r?600:r,a=i.delay,c=void 0===a?300:a,l=i.easing,u=void 0===l?"cubicBezier(0.33, 1, 0.68, 1)":l,d=i.per,h=i.isRepeat,p=void 0!==h&&h;this.time=Date.now();var f=this.calculateDefaultPer();this.options={translate:o,duration:s,delay:c,easing:u,per:null!=d?d:f,isRepeat:p},this.flowAnime=new Map,this.animationConfigs=new Map,this.createAnimationConfigs(),this.observer=new IntersectionObserver(this.handleIntersection.bind(this),{root:null,rootMargin:"0px 0px -".concat(window.innerHeight*this.options.per,"px"),threshold:0}),this.init(t)}return t.prototype.calculateDefaultPer=function(){return document.documentElement.clientWidth>document.documentElement.clientHeight?.3:.2},t.prototype.createAnimationConfigs=function(){var t=this,e=this.options,i=e.translate,n=e.duration,o=e.delay,r=e.easing,s={up:{translateY:i,opacity:0,duration:10}
1,down:{translateY:-i,opacity:0,duration:10},left:{translateX:i,opacity:0,duration:10},right:{translateX:-i,opacity:0,duration:10},zoom:{scale:0,opacity:0,duration:10},away:{opacity:0,duration:10}},a={up:{translateY:0,opacity:[0,1]},down:{translateY:0,opacity:[0,1]},left:{translateX:0,opacity:[0,1]},right:{translateX:0,opacity:[0,1]},zoom:{scale:[0,1],opacity:[0,1],easing:"spring"},away:{opacity:[0,1]}},c={up:{translateY:i,opacity:[1,0]},down:{translateY:-i,opacity:[1,0]},left:{translateX:i,opacity:[1,0]},right:{translateX:-i,opacity:[1,0]},zoom:{scale:[1,0],opacity:[1,0],easing:"spring"},away:{opacity:[1,0]}};Object.keys(s).forEach((function(e){t.animationConfigs.set("".concat(e,"_initial"),ht({},s[e])),t.animationConfigs.set("".concat(e,"_animate"),ht({duration:n,delay:nt.stagger(o),easing:r},a[e])),t.animationConfigs.set("".concat(e,"_reverse"),ht({duration:n,delay:nt.stagger(o),easing:r},c[e]))}))},t.prototype.handleIntersection=function(t){var e=this;t.forEach((function(t){var i=t.target.getAttribute("data-flow-item");if(i){var n=e.flowAnime.get(i);if(n){var o=t.isIntersecting;e.run(n,o)}}}))},t.prototype.init=function(t){var e=this;document.querySelectorAll(t).forEach((function(t,i){var n="".concat(e.time,"_").concat(i),o=t.getAttribute("data-flow")||"up",r={elem:t,mode:o,target:t.children.length>1?t.children:t,isDone:!1,anime:null};t.setAttribute("data-flow-item",n),t.classList.remove("is-finishedFlowAnime"),e.setInitialAnimation(r),e.observer.observe(t),e.flowAnime.set(n,r)}))},t.prototype.setInitialAnimation=function(t){var e=t.mode,i=t.target;if("mark"!==e){var n=this.animationConfigs.get("".concat(e,"_initial"));n&&(t.anime=nt(ht(ht({},n),{targets:i})))}else this.handleMarkMode(t)},t.prototype.handleMarkMode=function(t){(t.elem.childElementCount>1?Array.from(t.elem.children):[t.elem]).forEach((function(t){t.classList.remove("flowActive")}))},t.prototype.run=function(t,e){t.isDone&&!this.options.isRepeat||(e&&(t.elem.classList.contains("is-beganFlowAnime")||t.elem.classList.add("is-beganFlowAnime")),"mark"===t.mode?this.handleMarkAnimation(t,e):this.handleStandardAnimation(t,e))},t.prototype.handleStandardAnimation=function(t,e){var i=this,n=t.mode,o=t.target;if(e||this.options.isRepeat||!t.elem.classList.contains("is-beganFlowAnime")){var r="".concat(n,e?"_animate":"_reverse"),s=this.animationConfigs.get(r);s&&(t.anime=nt(ht(ht({},s),{targets:o,complete:function(){e?(t.elem.classList.add("is-finishedFlowAnime"),i.options.isRepeat||(t.isDone=!0)):t.elem.classList.remove("is-finishedFlowAnime")}})))}},t.prototype.handleMarkAnimation=function(t,e){var i=this,n=t.elem.childElementCount>1?Array.from(t.elem.children):[t.elem];t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=void 0),e?(n.forEach((function(e,n){var o=setTimeout((function(){e.classList.add("flowActive")}),n*i.options.delay);t.timeoutId=o})),this.options.isRepeat||(t.isDone=!0)):n.forEach((function(t){t.classList.remove("flowActive")}))},t.prototype.destroy=function(){this.observer.disconnect(),this.flowAnime.forEach((function(t){t.anime&&t.anime.pause&&t.anime.pause(),t.timeoutId&&clearTimeout(t.timeoutId)})),this.flowAnime.clear(),this.animationConfigs.clear()},t}(),ft=function(){function t(e,i){var n=void 0===i?{}:i,o=n.isAuto,r=void 0===o||o,s=n.isLoop,a=void 0===s||s,c=n.pause,l=void 0===c?5e3:c,u=n.speed,d=void 0===u?500:u,h=n.easing,p=void 0===h?"cubicBezier(0.33, 1, 0.68, 1)":h,f=n.spaceBetween,m=void 0===f?0:f,g=n.ctrl,v=void 0!==g&&g,y=n.pager,b=void 0!==y&&y,w=n.nextEl,A=void 0===w?"":w,L=n.prevEl,x=void 0===L?"":L,C=n.pagerEl,E=void 0===C?"":C,S=n.wrapper,T=void 0===S?document.querySelector(e).parentNode:S,I=n.wrapperHeight,O=void 0===I?null:I,M=n.rootCount,H=void 0===M?0:M,P=n.slideCount,q=void 0===P?1:P,k=n.cloneCount,D=void 0===k?1:k,B=n.threshold,R=void 0===B?30:B,z=n.role,N=void 0===z?"group":z,W=n.isResizeAuto,j=void 0!==W&&W,F=n.isStopOnHover,Y=void 0===F||F,_=n.isStartOnHoverOut,X=void 0===_||_,U=n.mode,G=void 0===U?"horizontal":U,V=n.tabindexElems,K=void 0===V?lt:V,$=n.onSliderLoad,Z=void 0===$?void 0:$,Q=n.onSlideBefore,J=void 0===Q?void 0:Q,tt=n.onSlideAfter,et=void 0===tt?void 0:tt,it=n.isDebug,nt=void 0!==it&&it,ot=n.isChangeOpacity,rt=void 0===ot||ot,at=n.activeIndexInt,ct=void 0===at?52:at,ut=n.oldIndexInt,dt=void 0===ut?51:ut,ht=n.etcIndexInt,pt=void 0===ht?50:ht,ft=n.ariaLabel,mt=void 0===ft?"":ft,gt=n.ariaDescribedBy,vt=void 0===gt?"":gt,yt=n.keyboardNavigation,bt=void 0===yt||yt,wt=n.liveRegion,At=void 0!==wt&&wt,Lt=this;this.rTimer=null,this.debugTimer=null,this.rsTimer=null,this.tscTimer=null,this.pointerEventsCache=[],this.intersectionObserver=null,this.visibleSlides=new Set,this.isDragging=!1,this.isTouchEvent=!1,this.time=Date.now(),this.selector=e,this.elem=document.querySelector(e),this.current=0,this.realCurrent=0,this.oldIndex=0,this.pageLength=1,this.itemLength=0,this.itemLengthOrg=0,this.remainder=0,this.isAllowSlide=!1,this.rTimer=null,this.orgElement=document.querySelector(e),this.isHover=!1,this.rsTimer=null,this.options={isAuto:r,isLoop:a,pause:l,speed:d,easing:p,spaceBetween:m,ctrl:v,pager:b,nextEl:A,prevEl:x,pagerEl:E,wrapper:T,wrapperHeight:O,rootCount:H,slideCount:q,cloneCount:D,threshold:R,role:N,isResizeAuto:j,isStopOnHover:Y,isStartOnHoverOut:X,mode:G,tabindexElems:K,onSliderLoad:Z,onSlideBefore:J,onSlideAfter:et,isDebug:nt,isChangeOpacity:rt,activeIndexInt:ct,oldIndexInt:dt,etcIndexInt:pt,ariaLabel:mt,ariaDescribedBy:vt,keyboardNavigation:bt,liveRegion:At},this.liveRegionId="slider-live-region-".concat(t.instanceCount++),this.boundGotoNext=this.gotoNext.bind(this),this.boundGotoPrev=this.gotoPrev.bind(this),this.boundGotoPage=this.gotoPage.bind(this),this.boundStopAuto=this.stopAuto.bind(this),this.boundResizeHandler=this.handleResize.bind(this),this.boundToggleSlideFocus=this.toggleSlideFocus.bind(this),this.boundMouseOverHandler=function(){Lt.isHover=!0},this.boundMouseOutHandler=function(){Lt.isHover=!1,Lt.options.isStopOnHover&&Lt.options.isAuto&&Lt.options.isStartOnHoverOut&&Lt.slideAuto()},this.boundTouchStartHandler=this.handleTouchStart.bind(this),this.boundTouchMoveHandler=this.handleTouchMove.bind(this),this.boundTouchEndHandler=this.handleTouchEnd.bind(this),this.boundMouseDownHandler=this.handleMouseDown.bind(this),this.boundMouseMoveHandler=this.handleMouseMove.bind(this),this.boundMouseUpHandler=this.handleMouseUp.bind(this),this.boundLoadHandler=this.boundToggleSlideFocus,this.boundDebugToggleHandler=this.handleDebugToggle.bind(this);var xt,Ct,Et,St,Tt=this.elem.querySelectorAll("img"),It=function(){Lt.init()};Tt.length>0?(xt=Lt,Ct=void 0,St=function(){var t,e;return function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}
1finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}(this,(function(i){switch(i.label){case 0:t=Array.from(Tt).map((function(t){return t.src})),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,st.loadImages(t)];case 2:return i.sent(),requestAnimationFrame((function(){requestAnimationFrame(It)})),[3,4];case 3:return e=i.sent(),console.error(e),[3,4];case 4:return[2]}}))},new((Et=void 0)||(Et=Promise))((function(t,e){function i(t){try{o(St.next(t))}catch(t){e(t)}}function n(t){try{o(St.throw(t))}catch(t){e(t)}}function o(e){var o;e.done?t(e.value):(o=e.value,o instanceof Et?o:new Et((function(t){t(o)}))).then(i,n)}o((St=St.apply(xt,Ct||[])).next())}))):requestAnimationFrame((function(){requestAnimationFrame(It)}))}return t.prototype.init=function(){var t,e,i=this;if(this.initDebug(),this.itemLength=this.itemLengthOrg=this.elem.children.length,this.itemLength<=this.options.rootCount)this.elem.classList.add("is-noSlider");else{if("fade"!==this.options.mode?Object.assign(this.elem.style,{display:"flex",flexWrap:"nowrap",flexDirection:"vertical"===this.options.mode?"column":"row"}):(this.options.rootCount=1,this.options.pause<this.options.speed&&(this.options.speed=this.options.pause-1),this.elem.style.position="relative",Array.from(this.elem.children).forEach((function(t,e){Object.assign(t.style,{zIndex:i.options.etcIndexInt,position:"absolute",left:0,top:0}),i.options.isChangeOpacity&&(t.style.opacity="0"),e===i.current&&(Object.assign(t.style,{zIndex:i.options.activeIndexInt}),i.options.isChangeOpacity&&(t.style.opacity="1"))}))),this.itemLength>1&&("fade"!==this.options.mode&&(this.options.rootCount?(1===this.options.rootCount&&(this.options.slideCount=1),"vertical"===this.options.mode?(this.elem.outerHTML='<div class="sliderContainer">'.concat(this.elem.outerHTML,"</div>"),this.elem=document.querySelector(this.selector),this.container=this.elem.closest(".sliderContainer"),Object.assign(this.container.style,{overflow:"hidden",height:"".concat(this.options.wrapperHeight,"px")}),this.itemHeight=Math.floor(this.container.clientHeight/Number(this.options.rootCount)),this.options.spaceBetween&&(this.itemHeight+=this.options.spaceBetween/Number(this.options.rootCount))):this.itemWidth=Math.floor(this.options.wrapper.clientWidth/Number(this.options.rootCount))+this.options.spaceBetween):(this.options.rootCount=1,"vertical"===this.options.mode?(this.elem.outerHTML='<div class="sliderContainer">'.concat(this.elem.outerHTML,"</div>"),this.elem=document.querySelector(this.selector),this.container=this.elem.closest(".sliderContainer"),this.container.style.height="".concat(this.options.wrapperHeight,"px"),this.itemHeight=this.options.wrapper.clientHeight):this.itemWidth=this.options.wrapper.clientWidth+this.options.spaceBetween),this.options.isLoop&&1!==this.options.slideCount&&(this.options.slideCount=Number(this.options.rootCount))),Array.from(this.elem.children).forEach((function(t,e){"vertical"===i.options.mode?(t.style.height="".concat(i.itemHeight,"px"),t.style.marginBottom="".concat(i.options.spaceBetween,"px")):"horizontal"===i.options.mode&&(t.style.width="".concat(i.itemWidth,"px"),t.style.marginRight="".concat(i.options.spaceBetween,"px")),t.classList.add("slide-item"),t.setAttribute("aria-label","".concat(e+1,"枚目のスライド (").concat(i.itemLength,"枚中)")),i.options.role&&t.setAttribute("role",i.options.role)})),this.itemLength>this.options.rootCount)){if("fade"!==this.options.mode){if("vertical"!==this.options.mode&&(this.elem.outerHTML='<div class="sliderContainer">'.concat(this.elem.outerHTML,"</div>"),this.elem=document.querySelector(this.selector),this.container=this.elem.closest(".sliderContainer"),Object.assign(this.container.style,{overflow:"hidden"})),"vertical"===this.options.mode?this.elem.style.height="".concat(this.itemHeight*this.itemLengthOrg,"px"):this.elem.style.width="".concat(this.itemWidth*this.itemLengthOrg,"px"),this.pageLength=1!==this.options.slideCount?Math.ceil(this.itemLength/Number(this.options.rootCount)):this.itemLength,this.options.isLoop){var n=Array.from(this.elem.querySelectorAll(".slide-item")).map((function(t){return t.cloneNode(!0)}));
1n.forEach((function(t){return t.classList.add("slide-clone")}));for(var o=function(t){var e=document.createDocumentFragment();n.forEach((function(t){return e.append(t.cloneNode(!0))})),r.elem.prepend(e);var i=document.createDocumentFragment();n.forEach((function(t){return i.append(t.cloneNode(!0))})),r.elem.append(i),r.itemLength=r.elem.childElementCount,"vertical"===r.options.mode?r.elem.style.height="".concat(r.itemHeight*r.itemLength,"px"):r.elem.style.width="".concat(r.itemWidth*r.itemLength,"px")},r=this,s=0;s<this.options.cloneCount;s++)o();"vertical"===this.options.mode?this.elem.style.transform="translateY(-".concat(this.itemHeight*this.itemLengthOrg,"px)"):this.elem.style.transform="translateX(-".concat(this.itemWidth*this.itemLengthOrg,"px)"),this.options.rootCount<=1?this.realCurrent=this.current+this.pageLength:this.realCurrent=this.current+this.itemLengthOrg}}else this.pageLength=this.itemLength;if(this.remainder=this.getRemainder(),this.options.ctrl?(this.options.wrapper.insertAdjacentHTML("beforeend",'\n              <div class="ss-ctrls">\n                <div class="ss-ctrls-direction" />\n              </div>\n            '),this.options.wrapper.querySelector(".ss-ctrls-direction").insertAdjacentHTML("beforeend",'\n                <button type="button" class="ss-prev" aria-label="前のスライドへ">Prev</button>\n                <button type="button" class="ss-next" aria-label="次のスライドへ">Next</button>\n              '),this.prevBtn=this.options.wrapper.querySelector(".ss-prev"),this.nextBtn=this.options.wrapper.querySelector(".ss-next"),this.prevBtn.addEventListener("click",this.boundGotoPrev,!1),this.nextBtn.addEventListener("click",this.boundGotoNext,!1)):(this.options.nextEl&&document.querySelector(this.options.nextEl)&&(this.nextBtn=document.querySelector(this.options.nextEl),this.nextBtn.addEventListener("click",this.boundGotoNext,!1)),this.options.prevEl&&document.querySelector(this.options.prevEl)&&(this.prevBtn=document.querySelector(this.options.prevEl),this.prevBtn.addEventListener("click",this.boundGotoPrev,!1))),this.options.pager?(this.options.wrapper.insertAdjacentHTML("beforeend",'<div class="ss-pager" />'),this.pager=this.options.wrapper.querySelector(".ss-pager")):this.options.pagerEl&&document.querySelector(this.options.pagerEl)&&(this.pager=document.querySelector(this.options.pagerEl)),this.pager){for(this.pager.setAttribute("role","tablist"),this.pager.setAttribute("aria-label","スライドナビゲーション"),s=0;s<this.pageLength;s++)this.pager.insertAdjacentHTML("beforeend",'\n                <div class="ss-pager-item"><button data-index="'.concat(s,'" aria-label="').concat(s+1,'のスライドへ">').concat(s+1,"</button></div>"));this.pager.querySelectorAll(".ss-pager-item button").forEach((function(t,e){t.setAttribute("role","tab"),t.setAttribute("aria-selected",e===i.current?"true":"false"),t.setAttribute("tabindex",e===i.current?"0":"-1")})),null===(t=this.pager.querySelectorAll(".ss-pager-item")[this.current])||void 0===t||t.querySelector("button").classList.add("is-active"),this.pager.querySelectorAll(".ss-pager-item button").forEach((function(t,e){t.addEventListener("click",i.boundGotoPage,!1)}))}this.pager&&this.pager.addEventListener("keydown",(function(t){var e=Array.from(i.pager.querySelectorAll('button[role="tab"]')),n=e.findIndex((function(t){return"true"===t.getAttribute("aria-selected")}));"ArrowLeft"===t.code&&n>0?(t.preventDefault(),e[n-1].click()):"ArrowRight"===t.code&&n<e.length-1&&(t.preventDefault(),e[n+1].click())})),this.elem.addEventListener("touchstart",this.boundTouchStartHandler,!1),this.elem.addEventListener("mousedown",this.boundMouseDownHandler,!1),this.elem.addEventListener("touchmove",this.boundTouchMoveHandler,{passive:!1}),this.elem.addEventListener("mousemove",this.boundMouseMoveHandler,{passive:!1}),this.elem.addEventListener("touchend",this.boundTouchEndHandler,!1),this.elem.addEventListener("mouseup",this.boundMouseUpHandler,!1)}this.options.wrapper.addEventListener("mouseover",this.boundMouseOverHandler,!1),this.options.wrapper.addEventListener("mouseout",this.boundMouseOutHandler,!1),window.addEventListener("resize",this.boundResizeHandler,!1),this.elem.addEventListener("load",this.boundLoadHandler,!1);var a=document.createElement("style");if(a.textContent="\n      ".concat(this.selector," {\n        user-select: none;\n      }\n    "),document.head.appendChild(a),null===(e=document.querySelector(this.selector))||void 0===e||e.querySelectorAll("img").forEach((function(t){t.draggable=!1,t.addEventListener("dragstart",(function(t){t.preventDefault()}))})),this.isAllowSlide=!0,this.slide(this.current),this.slideAuto(),this.toggleSlideFocus(),"function"==typeof this.options.onSliderLoad&&this.options.onSliderLoad(this),this.elem.setAttribute("role","regi
1on"),this.elem.setAttribute("aria-label","".concat(this.options.ariaLabel||"画像スライダー"," (全").concat(this.pageLength,"枚中").concat(this.current+1,"枚目)")),this.options.ariaDescribedBy&&this.elem.setAttribute("aria-describedby",this.options.ariaDescribedBy),this.options.keyboardNavigation){var c=this.elem.children[0];c&&!c.hasAttribute("tabindex")&&c.setAttribute("tabindex","0")}if(Array.from(this.elem.children).forEach((function(t,e){var i=0===e;t.setAttribute("aria-hidden",i?"false":"true"),i?t.setAttribute("tabindex","0"):t.setAttribute("tabindex","-1")})),!1!==this.options.keyboardNavigation&&this.elem.addEventListener("keydown",(function(t){"ArrowLeft"===t.code?i.gotoPrev(t):"ArrowRight"===t.code&&i.gotoNext(t)})),this.options.liveRegion){var l=this.container.querySelector("#".concat(this.liveRegionId));l||((l=document.createElement("div")).id=this.liveRegionId,l.setAttribute("aria-live","polite"),l.setAttribute("style","position:absolute;left:-9999px;"),this.container.appendChild(l)),l.textContent="".concat(this.current+1,"枚目のスライドに移動しました")}this.setupIntersectionObserver()}},t.prototype.setupIntersectionObserver=function(){var t=this;this.intersectionObserver&&this.intersectionObserver.disconnect(),this.intersectionObserver=new IntersectionObserver((function(e){e.forEach((function(e){var i=Array.from(t.elem.children).indexOf(e.target);e.isIntersecting?(t.visibleSlides.add(i),t.loadSlideImages(e.target)):t.visibleSlides.delete(i)}))}),{threshold:.3,rootMargin:"50px"}),Array.from(this.elem.children).forEach((function(e){var i;null===(i=t.intersectionObserver)||void 0===i||i.observe(e)}))},t.prototype.loadSlideImages=function(t){t.querySelectorAll("img[data-src]").forEach((function(t){var e=t.getAttribute("data-src");e&&!t.src&&(t.src=e,t.removeAttribute("data-src"))}))},t.prototype.slide=function(t){var e=this;if(null!==this.rTimer&&(clearTimeout(this.rTimer),this.rTimer=null),this.isAllowSlide&&!1!==t)if(this.isAllowSlide=!1,"fade"!==this.options.mode){"function"==typeof this.options.onSlideBefore&&this.options.onSlideBefore(this.current,this.realCurrent),this.oldIndex=t!==this.realCurrent?this.realCurrent:null,this.current=Number(t),this.options.isLoop?this.options.rootCount<=1?this.realCurrent=this.current+this.pageLength:this.realCurrent=this.current+this.itemLengthOrg:this.realCurrent=this.current,this.remainder=this.getRemainder();var i=function(){var t,i;if(e.pager&&e.togglePager(),e.prevBtn&&e.nextBtn&&e.toggleCtrls(),Array.from(e.elem.children).forEach((function(t,e){t.classList.remove("slide-old","slide-active")})),null===(t=e.elem.children[e.realCurrent])||void 0===t||t.classList.add("slide-active"),null===(i=e.elem.children[e.oldIndex+e.pageLength])||void 0===i||i.classList.add("slide-old"),e.isAllowSlide=!0,e.toggleSlideFocus(),e.options.keyboardNavigation){var n=e.elem.children[e.realCurrent];n&&!n.hasAttribute("tabindex")&&n.setAttribute("tabindex","0"),(document.activeElement===e.elem||e.elem.contains(document.activeElement))&&n.focus()}if(Array.from(e.elem.children).forEach((function(t,i){var n,o,r=i===e.realCurrent;t.setAttribute("aria-hidden",r?"false":"true"),r?t.setAttribute("tabindex","0"):t.setAttribute("tabindex","-1"),r?null===(o=t.querySelectorAll(e.options.tabindexElems.join(",")))||void 0===o||o.forEach((function(t){return t.setAttribute("tabindex","0")})):null===(n=t.querySelectorAll('button, input, select, textarea, a[href], [tabindex]:not([tabindex="-1"])'))||void 0===n||n.forEach((function(t){"-1"!==t.getAttribute("tabindex")&&t.setAttribute("tabindex","-1")}))})),e.pager&&e.pager.querySelectorAll("button").forEach((function(t,i){t.setAttribute("aria-current",i===e.current?"true":"false")})),e.elem.setAttribute("aria-label","".concat(e.options.ariaLabel||"画像スライダー"," (全").concat(e.pageLength,"枚中").concat(e.current+1,"枚目)")),e.options.liveRegion){var o=e.container.querySelector("#".concat(e.liveRegionId));o||((o=document.createElement("div")).id=e.liveRegionId,o.setAttribute("aria-live","polite"),o.setAttribute("style","position:absolute;
1left:-9999px;"),e.container.appendChild(o)),o.textContent="".concat(e.current+1,"枚目のスライドに移動しました")}(e.options.isLoop||e.current!==e.pageLength-1)&&e.slideAuto()};"vertical"===this.options.mode?nt({targets:this.elem,translateY:function(){return e.realCurrent>e.oldIndex?"-=".concat(e.itemHeight*(e.realCurrent-e.oldIndex),"px"):"+=".concat(e.itemHeight*(e.oldIndex-e.realCurrent),"px")},easing:this.options.easing,duration:this.options.speed,complete:function(){e.options.isLoop&&(e.options.rootCount<=1?(e.current>=e.pageLength?(e.elem.style.transform="translateY(-".concat(e.itemHeight*e.itemLengthOrg,"px)"),e.current=0):e.current<0&&(e.elem.style.transform="translateY(-".concat(e.itemHeight*(e.itemLengthOrg+(e.pageLength-1)),"px)"),e.current=e.pageLength-1),e.realCurrent=e.current+e.pageLength):(e.current>e.itemLengthOrg-1?(e.elem.style.transform="translateY(-".concat(e.itemHeight*e.itemLengthOrg,"px)"),e.current=0):e.current<0&&(1===e.options.rootCount?(e.elem.style.transform="translateY(-".concat(e.itemHeight*(e.itemLengthOrg+e.pageLength),"px)"),e.current=e.itemLengthOrg-Number(e.options.rootCount)):(e.elem.style.transform="translateY(-".concat(e.itemHeight*(e.itemLengthOrg+e.pageLength-1),"px)"),e.current=e.itemLengthOrg-1)),e.realCurrent=e.current+e.itemLengthOrg),e.oldIndex=e.oldIndex-e.pageLength),"function"==typeof e.options.onSlideAfter&&e.options.onSlideAfter(e.current,e.realCurrent),i()}}):nt({targets:this.elem,translateX:function(){return e.realCurrent>e.oldIndex?"-=".concat(e.itemWidth*(e.realCurrent-e.oldIndex),"px"):"+=".concat(e.itemWidth*(e.oldIndex-e.realCurrent),"px")},easing:this.options.easing,duration:this.options.speed,complete:function(){e.options.isLoop&&(e.options.rootCount<=1?(e.current>=e.pageLength?(e.elem.style.transform="translateX(-".concat(e.itemWidth*e.itemLengthOrg,"px)"),e.current=0):e.current<0&&(e.elem.style.transform="translateX(-".concat(e.itemWidth*(e.itemLengthOrg+(e.pageLength-1)),"px)"),e.current=e.pageLength-1),e.realCurrent=e.current+e.pageLength):(e.current>e.itemLengthOrg-1?(e.elem.style.transform="translateX(-".concat(e.itemWidth*e.itemLengthOrg,"px)"),e.current=0):e.current<0&&(1===e.options.rootCount?e.elem.style.transform="translateX(-".concat(e.itemWidth*(e.itemLengthOrg+e.pageLength),"px)"):e.elem.style.transform="translateX(-".concat(e.itemWidth*(e.itemLengthOrg+e.pageLength*Number(e.options.rootCount)-Number(e.options.rootCount)),"px)"),e.current=e.itemLengthOrg-Number(e.options.rootCount)),e.realCurrent=e.current+e.itemLengthOrg),e.oldIndex=e.oldIndex-e.pageLength),"function"==typeof e.options.onSlideAfter&&e.options.onSlideAfter(e.current,e.realCurrent),i()}})}else{var n=this.current,o=Number(t)>=0?Number(t):this.current!==this.itemLength-1?this.current+1:0;this.current=o===this.itemLength?0:o,"function"==typeof this.options.onSlideBefore&&this.options.onSlideBefore(n,o),this.remainder=this.getRemainder(),this.pager&&this.togglePager(),this.prevBtn&&this.nextBtn&&this.toggleCtrls(),Array.from(this.elem.children).forEach((function(t,e){var i;t.classList.remove("slide-old","slide-active"),t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1"),null===(i=t.querySelectorAll('button, input, select, textarea, a[href], [tabindex]:not([tabindex="-1"])'))||void 0===i||i.forEach((function(t){"-1"!==t.getAttribute("tabindex")&&t.setAttribute("tabindex","-1")}))})),Array.from(this.elem.children).forEach((function(t,i){t.style.zIndex=String(e.options.etcIndexInt)})),Array.from(this.elem.children).forEach((function(t,i){i===n&&(t.style.zIndex=String(e.options.oldIndexInt),t.classList.add("slide-old"))})),Array.from(this.elem.children).forEach((function(t,i){var o;i===e.current&&(t.style.zIndex=String(e.options.activeIndexInt),t.classList.add("slide-active"),t.setAttribute("aria-hidden","false"),t.setAttribute("tabindex","0"),null===(o=t.querySelectorAll(e.options.tabindexElems.join(",")))||void 0===o||o.forEach((function(t){return t.setAttribute("tabindex","0")})),e.options.isChangeOpacity?nt({targets:t,opacity:1,duration:e.options.speed,easing:e.options.easing,complete:function(){if(Array.from(e.elem.children).forEac
1h((function(t,i){i!==e.current&&(t.style.opacity="0")})),e.isAllowSlide=!0,e.options.keyboardNavigation){var t=e.elem.children[e.current];t&&!t.hasAttribute("tabindex")&&t.setAttribute("tabindex","0"),(document.activeElement===e.elem||e.elem.contains(document.activeElement))&&t.focus()}if(e.pager&&e.pager.querySelectorAll("button").forEach((function(t,i){t.setAttribute("aria-current",i===e.current?"true":"false")})),e.elem.setAttribute("aria-label","".concat(e.options.ariaLabel||"画像スライダー"," (全").concat(e.itemLength,"枚中").concat(e.current+1,"枚目)")),e.options.liveRegion){var i=e.container.querySelector("#".concat(e.liveRegionId));i||((i=document.createElement("div")).id=e.liveRegionId,i.setAttribute("aria-live","polite"),i.setAttribute("style","position:absolute;left:-9999px;"),e.container.appendChild(i)),i.textContent="".concat(e.current+1,"枚目のスライドに移動しました")}(e.options.isLoop||e.current!==e.itemLength-1)&&e.slideAuto(),"function"==typeof e.options.onSlideAfter&&e.options.onSlideAfter(n,e.current)}}):nt({targets:t,duration:e.options.speed,easing:e.options.easing,complete:function(){if(e.isAllowSlide=!0,e.options.keyboardNavigation){var t=e.elem.children[e.current];t&&!t.hasAttribute("tabindex")&&t.setAttribute("tabindex","0"),(document.activeElement===e.elem||e.elem.contains(document.activeElement))&&t.focus()}if(e.pager&&e.pager.querySelectorAll("button").forEach((function(t,i){t.setAttribute("aria-current",i===e.current?"true":"false")})),e.elem.setAttribute("aria-label","".concat(e.options.ariaLabel||"画像スライダー"," (全").concat(e.itemLength,"枚中").concat(e.current+1,"枚目)")),e.options.liveRegion){var i=e.container.querySelector("#".concat(e.liveRegionId));i||((i=document.createElement("div")).id=e.liveRegionId,i.setAttribute("aria-live","polite"),i.setAttribute("style","position:absolute;left:-9999px;"),e.container.appendChild(i)),i.textContent="".concat(e.current+1,"枚目のスライドに移動しました")}(e.options.isLoop||e.current!==e.itemLength-1)&&e.slideAuto(),"function"==typeof e.options.onSlideAfter&&e.options.onSlideAfter(n,e.current)}}))}))}},t.prototype.togglePager=function(){var t;this.pager.querySelectorAll(".ss-pager-item button").forEach((function(t){t.classList.remove("is-active"),t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1")}));var e=1!==this.options.slideCount?Math.ceil(this.current/Number(this.options.rootCount)):this.current,i=null===(t=this.pager.querySelectorAll(".ss-pager-item")[e])||void 0===t?void 0:t.querySelector("button");i&&(i.classList.add("is-active"),i.setAttribute("aria-selected","true"),i.setAttribute("tabindex","0"))},t.prototype.toggleCtrls=function(){this.options.isLoop||(this.prevBtn.classList.remove("is-disabled"),this.nextBtn.classList.remove("is-disabled"),this.prevBtn.disabled=!1,this.nextBtn.disabled=!1,0===this.current&&(this.prevBtn.classList.add("is-disabled"),this.prevBtn.disabled=!0),this.itemLengthOrg-this.current<=this.options.rootCount&&(this.nextBtn.classList.add("is-disabled"),this.nextBtn.disabled=!0))},t.prototype.slideAuto=function(){this.isAllowSlide&&this.options.isAuto&&(null!==this.rTimer&&(clearTimeout(this.rTimer),this.rTimer=null),this.startSlideAuto())},t.prototype.startSlideAuto=function(){var t=this;null!==this.rTimer&&(clearTimeout(this.rTimer),this.rTimer=null),this.rTimer=window.setTimeout((function(){t.options.isStopOnHover&&t.isHover||t.slide(t.getNextSlide())}),this.options.pause)},t.prototype.stopAuto=function(){null!==this.rTimer&&(clearTimeout(this.rTimer),this.rTimer=null),this.options.isAuto=!1},t.prototype.enableDrag=function(){this.isAllowSlide=!0},t.prototype.disableDrag=function(){this.isAllowSlide=!1},t.prototype.isDragEnabled=function(){return this.isAllowSlide},t.prototype.getNextSlide=function(){return this.options.isLoop?"fade"!==this.options.mode?this.itemLengthOrg%Number(this.options.rootCount)&&0!==this.current&&this.remainder<=this.options.rootCount?0:this.current+this.options.slideCount:this.current+1<this.itemLengthOrg?this.current+1:0:this.current!==this.itemLength-1&&(this.remainder-this.options.slideCount<this.options.rootCount?this.current+(this.remainder-1-this.options.slideCount):this.current+this.options.slideCount)}
1,t.prototype.getPrevSlide=function(){if(this.options.isLoop){if("fade"!==this.options.mode){if(this.itemLengthOrg%Number(this.options.rootCount)){if(this.remainder===this.itemLengthOrg){var t=Math.floor(this.itemLengthOrg%Number(this.options.rootCount));return this.itemLengthOrg-t}return this.current-this.options.slideCount}return this.current-this.options.slideCount}return this.current-1>=0?this.current-1:this.itemLengthOrg-1}return 0!==this.current&&(this.remainder+this.options.slideCount>this.itemLengthOrg?0:this.current-this.options.slideCount)},t.prototype.getRemainder=function(){var t=this.itemLengthOrg-this.current;return t<0?this.itemLengthOrg:t},t.prototype.gotoPrev=function(t){this.isAllowSlide&&(t.target.classList.contains("is-disabled")||this.slide(this.getPrevSlide()))},t.prototype.gotoNext=function(t){this.isAllowSlide&&(t.target.classList.contains("is-disabled")||this.slide(this.getNextSlide()))},t.prototype.gotoPage=function(t){var e=this;if(this.isAllowSlide&&!t.target.classList.contains("is-active")){var i,n=t.target.getAttribute("data-index"),o=(i=Number(n)*e.options.slideCount,e.options.isLoop?i:i+Number(e.options.rootCount)>e.itemLengthOrg?e.current+e.getRemainder()-Number(e.options.rootCount):i);this.slide(o)}},t.prototype.updateParams=function(t){for(var e in t)this.options[e]=t[e]},t.prototype.getParams=function(){return this},t.prototype.reset=function(){this.current=this.itemLength-1,this.slide(0)},t.prototype.toggleSlideFocus=function(){var t,e,i=this;"fade"!==this.options.mode&&(null===(e=null===(t=this.elem)||void 0===t?void 0:t.querySelectorAll(".slide-item"))||void 0===e||e.forEach((function(t,e){var n,o,r,s=t.getBoundingClientRect(),a=s.height,c=s.width;(Math.min(s.bottom,window.innerHeight)-Math.max(s.top,0))*(Math.min(s.right,window.innerWidth)-Math.max(s.left,0))/(a*c)>=.5?(t.setAttribute("aria-hidden","false"),t.setAttribute("tabindex","0"),null===(n=t.querySelectorAll(i.options.tabindexElems.join(",")))||void 0===n||n.forEach((function(t){return t.setAttribute("tabindex","0")}))):(t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1"),null===(o=t.querySelectorAll(i.options.tabindexElems.join(",")))||void 0===o||o.forEach((function(t){return t.setAttribute("tabindex","-1")})),null===(r=t.querySelectorAll('button, input, select, textarea, a[href], [tabindex]:not([tabindex="-1"])'))||void 0===r||r.forEach((function(t){"-1"!==t.getAttribute("tabindex")&&t.setAttribute("tabindex","-1")})))})))},t.prototype.destroy=function(){var t,e,i,n,o,r,s=this;if(this.stopAuto(),this.slide(0),null===(t=this.options.wrapper.querySelector(".ss-ctrls"))||void 0===t||t.remove(),null===(e=this.options.wrapper.querySelector(".ss-pager"))||void 0===e||e.remove(),this.prevBtn&&this.prevBtn.removeEventListener("click",this.boundGotoPrev),this.nextBtn&&this.nextBtn.removeEventListener("click",this.boundGotoNext),this.pager&&(this.pager.querySelectorAll(".ss-pager-item button").forEach((function(t){return t.removeEventListener("click",s.boundGotoPage)})),null===(i=this.pager.querySelectorAll(".ss-pager-item"))||void 0===i||i.forEach((function(t){return t.remove()}))),this.elem&&(this.elem.removeEventListener("touchstart",this.boundTouchStartHandler),this.elem.removeEventListener("mousedown",this.boundMouseDownHandler),this.elem.removeEventListener("touchmove",this.boundTouchMoveHandler),this.elem.removeEventListener("mousemove",this.boundMouseMoveHandler),this.elem.removeEventListener("touchend",this.boundTouchEndHandler),this.elem.removeEventListener("mouseup",this.boundMouseUpHandler),this.elem.removeEventListener("load",this.boundLoadHandler)),this.options.wrapper.removeEventListener("mouseover",this.boundMouseOverHandler),this.options.wrapper.removeEventListener("mouseout",this.boundMouseOutHandler),window.removeEventListener("resize",this.boundResizeHandler),null!==this.debugTimer&&(clearTimeout(this.debugTimer),this.debugTimer=null),null!==this.rsTimer&&(clearTimeout(this.rsTimer),this.rsTimer=null),null!==this.tscTimer&&(clearTimeout(this.tscTimer),this.tscTimer=null),this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null),this.visibleSlides.clear(),null===(o=null===(n=this.elem)||void 0===n?void 0:n.querySelectorAll(".slide-clone"))||void 0===o||o.forEach((function(t){return t.remove()})),null===(r=this.elem)||void 0===r||r.removeAttribute("style"),Array.from(this.elem.children).forEac
1h((function(t){t.removeAttribute("style"),t.classList.remove("slide-item","slide-old","slide-active")})),this.container){for(var a=this.container.parentNode;this.container.firstChild;)a.insertBefore(this.container.firstChild,this.container);this.container.remove()}},t.prototype.initDebug=function(){if(this.options.isDebug&&!document.querySelector(".azlib_ssDebug")){var t=document.createElement("div");t.id="ssDebug_".concat(Date.now()),t.classList.add("azlib_ssDebug"),Object.assign(t.style,{position:"fixed",zIndex:99999,top:0,right:0,backgroundColor:"rgba(200,0,0,0.8)",color:"#fff",padding:"1vw",width:"30vw",height:"100%",overflow:"auto"}),document.body.appendChild(t),t.innerHTML='<div><button class="toggle" style="color: #FFFFFF;">HIDE</button></div><div class="inner" />';var e={toggle:t.querySelector(".toggle"),inner:t.querySelector(".inner")};e.toggle.addEventListener("click",(function(){"none"!==e.inner.style.display?(e.inner.style.display="none",t.style.height="auto",e.toggle.textContent="SHOW"):(e.inner.style.display="block",t.style.height="100%",e.toggle.textContent="HIDE")})),this.showDebug(t.id)}},t.prototype.showDebug=function(t){var e="";for(var i in this)if("function"!=typeof this[i])if("options"!==i)e+='<div><span style="font-weight: bold;">'.concat(i,"</span> : ").concat(this[i],"</div>");else for(var n in e+="options : ",this[i])e+='<div style="padding-left: 1em"><span style="font-weight: bold;">'.concat(n,"</span> : ").concat(this[i][n],"</div>");document.querySelector("#".concat(t," .inner")).innerHTML=e,this.runDebugAuto(t)},t.prototype.runDebugAuto=function(t){var e=this;this.debugTimer=window.setTimeout((function(){e.showDebug(t)}),500)},t.prototype.handleResize=function(){var t=this;this.options.isResizeAuto&&(null!==this.rsTimer&&(clearTimeout(this.rsTimer),this.rsTimer=null),this.rsTimer=window.setTimeout((function(){t.destroy(),t.init()}),500)),null!==this.tscTimer&&(clearTimeout(this.tscTimer),this.tscTimer=null),this.tscTimer=window.setTimeout((function(){t.toggleSlideFocus()}),500)},t.prototype.handleTouchStart=function(t){this.isAllowSlide&&(t.stopPropagation(),this.isTouchEvent=!0,this.startX=t.touches[0].pageX,this.moveX=0,this.startY=t.touches[0].pageY,this.moveY=0)},t.prototype.handleTouchMove=function(t){this.moveX=t.touches[0].pageX,this.moveY=t.touches[0].pageY,this.handleMove(t)},t.prototype.handleMouseDown=function(t){this.isAllowSlide&&(this.isTouchEvent=!1,this.startX=t.pageX,this.moveX=0,this.startY=t.pageY,this.moveY=0,this.isDragging=!0,this.handleMove(t),this.pointerEventsCache.length=0)},t.prototype.handleMouseMove=function(t){var e=this;this.isDragging&&(this.moveX=t.pageX,this.moveY=t.pageY,this.elem.querySelectorAll(this.options.tabindexElems.join(",")).forEach((function(t){"none"!==t.style.pointerEvents&&e.pointerEventsCache.push(t.style.pointerEvents),t.style.pointerEvents="none"})))},t.prototype.handleMouseUp=function(t){var e=this;this.handleTouchEnd(t),this.isDragging&&this.elem.querySelectorAll(this.options.tabindexElems.join(",")).forEach((function(t,i){void 0!==e.pointerEventsCache[i]?t.style.pointerEvents=e.pointerEventsCache[i]:t.style.removeProperty("pointer-events")})),this.isDragging=!1},t.prototype.handleTouchEnd=function(t){if(null!==this.rTimer&&(clearTimeout(this.rTimer),this.rTimer=null),"vertical"===this.options.mode)if(0===this.moveY);else{if(this.startY+this.options.threshold<this.moveY){if(!this.isAllowSlide)return;if(!this.options.isLoop&&this.current<=0)return;this.slide(this.getPrevSlide())}if(this.startY>this.moveY+this.options.threshold){if(!this.isAllowSlide)return;if(!this.options.isLoop&&this.remainder<=this.options.rootCount)return;this.slide(this.getNextSlide())}}else if(0===this.moveX);else{if(this.startX+this.options.threshold<this.moveX){if(!this.isAllowSlide)return;if(!this.options.isLoop&&this.current<=0)return;this.slide(this.getPrevSlide())}if(this.startX>this.moveX+this.options.threshold){if(!this.isAllowSlide)return;if(!this.options.isLoop&&this.remainder<=this.options.rootCount)return;this.slide(this.getNextSlide())}}},t.prototype.handleMove=function(t){var e=Math.abs(this.moveX-this.startX),i=Math.abs(this.moveY-this.startY);e>i?("horizontal"===this.options.mode||"fade"===this.options.mode)&&e>this.options.threshold&&t.preventDefault():"vertical"===this.options.mode&&i>this.options.threshold&&t.preventDefault()},t.prototype.handleDebugToggle=function(){var t=document.querySelector(".azlib_ssDebug .inner"),e=document.querySelector(".azlib_ssDebug .toggle"),i=document.querySelector(".azlib_ssDebug");t&&e&&i&&("none"!==t.style.display?(t.style.display="none",i.style.height="auto",e.textContent="SHOW"):(t.style.display="block",i.style.height="100%",e.textContent="HIDE"))},t.instanceCount=0,t}(),mt=(it=function(t,e){return it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},it(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}it(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),gt=function(t){function e(e,i){var n=void 0===i?{}:i,o=n.isAuto,r=void 0===o||o,s=n.isLoop,a=void 0===s||s,c=n.isChangeOpacity,l=void 0===c||c,u=n.pause,d=void 0===u?5e3:u,h=n.speed,p=void 0===h?500:h,f=n.easing,m=void 0===f?"cubicBezier(0.25, 1, 0.75, 1)":f,g=n.ctrl,v=void 0!==g&&g,y=n.pager,b=void 0!==y&&y,w=n.wrapper,A=void 0===w?document.querySelector(e).parentNode:w,L=n.activeIndexInt,x=void 0===L?52:L,C=n.oldIndexInt,E=void 0===C?51:C,S=n.etcIndexInt,T=void 0===S?50:S,I=n.onSliderLoad,O=void 0!==I&&I,M=n.onSlideBefore,H=void 0!==M&&M,P=n.onSlideAfter,q=void 0!==P&&P,k=t.call(this,e,{mode:"fade",isAuto:r,isLoop:a,isChangeOpacity:l,pause:d,speed:p,easing:m,ctrl:v,pager:b,wrapper:A,activeIndexInt:x,oldIndexInt:E,etcIndexInt:T,onSliderLoad:O,onSlideBefore:H,onSlideAfter:q})||this;return k.fadeOptions={isAuto:r,isLoop:a,isChangeOpacity:l,pause:d,speed:p,easing:m,ctrl:v,pager:b,wrapper:A,activeIndexInt:x,oldIndexInt:E,etcIndexInt:T,onSliderLoad:O,onSlideBefore:H,onSlideAfter:q},k}return mt(e,t),e}(ft),vt=function(){function t(t,e){var i,n,o,r,s,a,c,l,u,d,h;void 0===t&&(t=".accVox"),void 0===e&&(e={}),this.accParams=new Map,this.collection=document.querySelectorAll(t),this.selector=t,this.options={openClassName:null!==(i=e.openClassName)&&void 0!==i?i:"is-open",changeDisplay:null!==(n=e.changeDisplay)&&void 0!==n?n:"block",speed:null!==(o=e.speed)&&void 0!==o?o:400,easing:null!==(r=e.easing)&&void 0!==r?r:"easeOutCubic",parentContainer:null!==(c=null!==(s=e.parentContainer)&&void 0!==s?s:null===(a=document.querySelector(t))||void 0===a?void 0:a.parentElement)&&void 0!==c?c:null,isAutoClose:null!==(l=e.isAutoClose)&&void 0!==l&&l,initialOpen:e.initialOpen,onCloseAfter:null!==(u=e.onCloseAfter)&&void 0!==u?u:function(){},onOpenAfter:null!==(d=e.onOpenAfter)&&void 0!==d?d:function(){},onComplete:null!==(h=e.onComplete)&&void 0!==h?h:function(){}},this.init()}return t.prototype.init=function(){var t=this;if(this.collection.length){if(this.collection.forEach((function(e,i){try{var n=t.createAccordionParam(e,i);n&&(t.initializeAccordion(n),t.accParams.set(n.id,n))}catch(t){console.error("SimpleAccordion: アコーディオンの初期化に失敗しました (index: ".concat(i,"):"),t)}})),this.accParams.size>0){document.body.classList.add("is-allowChangeAcc");var e=Array.from(this.accParams.keys())[0];this.options.onComplete(e)}}else console.warn('SimpleAccordion: セレクター "'.concat(this.selector,'" に一致する要素が見つかりません'))},t.prototype.createAccordionParam=function(t,e){var i=this,n=t.querySelector(".opener"),o=t.querySelector(".accContent");
1if(!n||!o)return console.error("SimpleAccordion: 必要な要素が見つかりません (index: ".concat(e,")")),null;var r=Date.now(),s="accItem_".concat(r,"_").concat(e);return{wrap:t,opener:n,body:o,height:0,isAllowChange:!1,id:s,clickHandler:function(t){return i.handleClick(t,s)}}},t.prototype.initializeAccordion=function(t){t.wrap.id=t.id,t.height=t.body.offsetHeight,this.setupAccessibility(t),this.shouldOpenInitially(t)?this.setInitialStateOpen(t):this.setInitialState(t),t.opener.addEventListener("click",t.clickHandler)},t.prototype.shouldOpenInitially=function(t){var e=t.wrap.getAttribute("data-initial-open");return null!=e&&"false"!==e&&"0"!==e||!0===this.options.initialOpen},t.prototype.setInitialState=function(t){nt({targets:t.body,height:0,duration:1,complete:function(){t.isAllowChange=!0,t.body.style.display="none"}}),t.wrap.classList.remove(this.options.openClassName)},t.prototype.setInitialStateOpen=function(t){t.body.style.display=this.options.changeDisplay,t.body.style.height="auto",t.wrap.classList.add(this.options.openClassName),t.body.setAttribute("aria-hidden","false"),t.opener.setAttribute("aria-expanded","true"),t.height=t.body.offsetHeight,t.isAllowChange=!0},t.prototype.setupAccessibility=function(t){var e;t.opener.setAttribute("role","button"),t.opener.setAttribute("aria-expanded","false"),t.opener.setAttribute("aria-controls","".concat(t.id,"_body"));var i=(null===(e=t.opener.textContent)||void 0===e?void 0:e.trim())||"アコーディオン ".concat(t.id);t.opener.setAttribute("aria-label",i),t.body.setAttribute("aria-hidden","true"),t.body.id="".concat(t.id,"_body")},t.prototype.handleClick=function(t,e){var i=this.accParams.get(e);i&&i.isAllowChange&&(i.isAllowChange=!1,i.body.style.display===this.options.changeDisplay?this.close(e):(this.open(e),this.options.isAutoClose&&this.closeSiblings(e)))},t.prototype.closeSiblings=function(t){var e=this;this.options.parentContainer&&this.options.parentContainer.querySelectorAll(this.selector).forEach((function(i){i.id!==t&&e.close(i.id)}))},t.prototype.open=function(t){var e=this,i=this.accParams.get(t);if(i)try{i.wrap.classList.add(this.options.openClassName),this.prepareHeightMeasurement(i),nt({targets:i.body,height:[0,i.height],duration:this.options.speed,easing:this.options.easing,complete:function(){e.finalizeOpen(i)}})}catch(e){console.error("SimpleAccordion: アコーディオンの開く処理に失敗しました (".concat(t,"):"),e),i.isAllowChange=!0}},t.prototype.prepareHeightMeasurement=function(t){t.body.style.display=this.options.changeDisplay,t.body.style.visibility="hidden",t.body.style.position="absolute",t.body.style.width=t.wrap.offsetWidth+"px",t.body.style.height="auto",t.height=t.body.clientHeight,t.body.style.visibility="visible",t.body.style.position="static",t.body.style.height="0px",t.body.style.overflow="hidden"},t.prototype.finalizeOpen=function(t){t.body.style.height="auto",t.body.style.removeProperty("width"),t.body.setAttribute("aria-hidden","false"),t.opener.setAttribute("aria-expanded","true"),t.height=t.body.clientHeight,t.body.style.removeProperty("overflow"),t.isAllowChange=!0,this.options.onOpenAfter(t.id)},t.prototype.close=function(t){var e=this,i=this.accParams.get(t);if(i)try{i.wrap.classList.remove(this.options.openClassName),i.body.style.removeProperty("height"),i.body.style.overflow="hidden",nt({targets:i.body,height:0,duration:this.options.speed,easing:this.options.easing,complete:function(){e.finalizeClose(i)}})}catch(e){console.error("SimpleAccordion: アコーディオンの閉じる処理に失敗しました (".concat(t,"):"),e),i.isAllowChange=!0}},t.prototype.finalizeClose=function(t){t.isAllowChange=!0,t.body.style.display="none",t.body.setAttribute("aria-hidden","true"),t.opener.setAttribute("aria-expanded","false"),t.body.style.removeProperty("overflow"),this.options.onCloseAfter(t.id)},t.prototype.isOpen=function(t){var e=this.accParams.get(t);return!!e&&e.body.style.display===this.options.changeDisplay},t.prototype.openAll=function(){var t=this;this.accParams.forEach((function(e){t.isOpen(e.id)||t.open(e.id)}
1))},t.prototype.closeAll=function(){var t=this;this.accParams.forEach((function(e){t.isOpen(e.id)&&t.close(e.id)}))},t.prototype.getCount=function(){return this.accParams.size},t.prototype.getIds=function(){return Array.from(this.accParams.keys())},t.prototype.destroy=function(){this.accParams.forEach((function(t){t.opener.removeEventListener("click",t.clickHandler)})),this.accParams.clear(),document.body.classList.remove("is-allowChangeAcc")},t}(),yt=function(){function t(t,e){void 0===t&&(t=".tabVoxWrapper"),void 0===e&&(e={});var i,n,o,r,s,a,c=this;this.tabParams=new Map,this.resizeTimer=null,this.selector=t,this.collection=document.querySelectorAll(t),this.options={activeClassName:null!==(i=e.activeClassName)&&void 0!==i?i:"is-active",current:null!==(n=e.current)&&void 0!==n?n:0,isAdjustHeight:null===(o=e.isAdjustHeight)||void 0===o||o,heightPlus:null!==(r=e.heightPlus)&&void 0!==r?r:0,onComplete:null!==(s=e.onComplete)&&void 0!==s?s:function(){},onTabChange:null!==(a=e.onTabChange)&&void 0!==a?a:function(){}},this.resizeHandler=this.debounce((function(){c.options.isAdjustHeight&&c.adjustHeight()}),500),this.init()}return t.prototype.init=function(){var t=this;this.collection.length?(this.collection.forEach((function(e,i){try{var n=t.createTabParam(e,i);n&&(t.initializeTab(n),t.tabParams.set(n.id,n))}catch(t){console.error("SimpleTab: タブの初期化に失敗しました (index: ".concat(i,"):"),t)}})),this.tabParams.size>0&&(this.setupEventListeners(),this.options.onComplete())):console.warn('SimpleTab: セレクター "'.concat(this.selector,'" に一致する要素が見つかりません'))},t.prototype.createTabParam=function(t,e){var i=t.querySelector(".tabs"),n=t.querySelector(".body");if(!i||!n)return console.error("SimpleTab: 必要な要素が見つかりません (index: ".concat(e,")")),null;var o=Array.from(i.children),r=Array.from(n.children);if(0===o.length||0===r.length)return console.error("SimpleTab: タブアイテムまたはコンテンツが見つかりません (index: ".concat(e,")")),null;if(o.length!==r.length)return console.error("SimpleTab: タブアイテムとコンテンツの数が一致しません (index: ".concat(e,")")),null;var s=Date.now();return{wrap:t,tabs:i,body:n,tabItems:o,tabContents:r,isAllowChange:!1,id:"tabItem_".concat(s,"_").concat(e),current:Math.min(this.options.current,o.length-1),length:o.length,clickHandlers:[]}},t.prototype.initializeTab=function(t){var e=this;t.wrap.id=t.id,t.tabs.setAttribute("role","tablist"),t.tabs.setAttribute("aria-label","タブナビゲーション"),t.tabItems.forEach((function(i,n){e.setupTabItem(i,t,n)})),t.tabContents.forEach((function(i,n){e.setupTabContent(i,t,n)})),this.activateTab(t,t.current),t.wrap.classList.add("is-initTab"),t.isAllowChange=!0},t.prototype.setupTabItem=function(t,e,i){var n;t.setAttribute("role","tab"),t.setAttribute("aria-controls","tabContents".concat(e.id).concat(i)),t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1"),t.id="tab_".concat(e.id).concat(i);var o=(null===(n=t.textContent)||void 0===n?void 0:n.trim())||"タブ ".concat(i+1);t.setAttribute("aria-label",o)},t.prototype.setupTabContent=function(t,e,i){t.classList.add("tabContents"),t.id="tabContents".concat(e.id).concat(i),t.setAttribute("role","tabpanel"),t.setAttribute("aria-labelledby","tab_".concat(e.id).concat(i)),t.setAttribute("aria-hidden","true")},t.prototype.setupEventListeners=function(){var t=this;this.tabParams.forEach((function(e){t.setupTabEventListeners(e)})),window.addEventListener("resize",this.resizeHandler)},t.prototype.setupTabEventListeners=function(t){var e=this;t.tabItems.forEach((function(i,n){var o=function(i){i.preventDefault(),t.isAllowChange&&e.switchTab(t,n)};t.clickHandlers.push(o),i.addEventListener("click",o)}));var i=function(i){e.handleKeydown(i,t)};t.keydownHandler=i,t.tabs.addEventListener("keydown",i)},t.prototype.handleKeydown=function(t,e){var i={ArrowRight:function(){return e.current<e.length-1?e.current+1:0},ArrowDown:function(){return e.current<e.length-1?e.current+1:0},ArrowLeft:function(){return e.current>0?e.current-1:e.length-1},ArrowUp:function(){return e.current>0?e.current-1:e.length-1}}[t.code];if(i){t.preventDefault();var n=i();this.switchTab(e,n),e.tabItems[n].focus()}},t.prototype.switchTab=function(t,e){if(!(e===t.current||e<0||e>=t.length)){var i=t.current;t.current=e,this.deactivateTab(t,i),this.activateTab(t,e),this.options.onTabChange(e,t.id)}},t.prototype.activateTab=function(t,e){var i=t.tabItems[e],n=t.tabContents[e];i.classList.add(this.options.activeClassName),i.setAttribute("aria-selected","true"),i.setAttribute("tabindex","0"),n.classList.add(this.options.activeClassName),n.setAttribute("aria-hidden","false"),n.setAttribute("tabindex","0")},t.prototype.deactivateTab=function(t,e){var i=t.tabItems[e],n=t.tabContents[e];i.classList.remove(this.options.activeClassName),i.setAttribute("aria-selected","false"),i.setAttribute("tabindex","-1"),n.classList.remove(this.options.activeClassName),n.setAttribute("aria-hidden","true"),n.removeAttribute("tabindex")},t.prototype.adjustHeight=function(){var t=this;
1this.tabParams.forEach((function(e){try{t.adjustTabHeight(e)}catch(t){console.error("SimpleTab: 高さ調整に失敗しました (".concat(e.id,"):"),t)}}))},t.prototype.adjustTabHeight=function(t){t.body.style.visibility="hidden",t.tabContents.forEach((function(t){t.style.display="block"}));var e=Math.max.apply(Math,t.tabContents.map((function(t){return t.clientHeight})));t.body.style.height="".concat(e+this.options.heightPlus,"px"),t.tabContents.forEach((function(t){t.style.removeProperty("display")})),this.activateTab(t,t.current),t.body.style.removeProperty("visibility")},t.prototype.debounce=function(t,e){var i=this;return function(){i.resizeTimer&&clearTimeout(i.resizeTimer),i.resizeTimer=window.setTimeout(t,e)}},t.prototype.switchToTab=function(t,e){var i=this.tabParams.get(t);return!(!i||e<0||e>=i.length||(this.switchTab(i,e),0))},t.prototype.getCurrentTab=function(t){var e=this.tabParams.get(t);return e?e.current:null},t.prototype.getTabCount=function(t){var e=this.tabParams.get(t);return e?e.length:null},t.prototype.getTabIds=function(){return Array.from(this.tabParams.keys())},t.prototype.destroy=function(){this.tabParams.forEach((function(t){t.tabItems.forEach((function(e,i){e.removeEventListener("click",t.clickHandlers[i])})),t.keydownHandler&&t.tabs.removeEventListener("keydown",t.keydownHandler)})),window.removeEventListener("resize",this.resizeHandler),this.resizeTimer&&clearTimeout(this.resizeTimer),this.tabParams.clear()},t}(),bt=function(){return bt=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},bt.apply(this,arguments)},wt=function(){function t(){this.raw="",this.cParam=[],this.isInitialized=!1,this.update()}return t.prototype.update=function(){if(this.raw=document.cookie,this.cParam=[],this.raw.trim()){for(var t=0,e=this.raw.split(";");t<e.length;t++){var i=e[t].trim();if(i){var n=i.indexOf("=");if(-1!==n){var o=i.substring(0,n).trim(),r=i.substring(n+1).trim();o&&this.cParam.push({key:o,value:r})}}}this.isInitialized=!0}else this.isInitialized=!0},t.prototype.getRaw=function(){return this.raw},t.prototype.get=function(t){if(!t||!this.isInitialized)return null;var e=this.cParam.find((function(e){return e.key.trim()===t.trim()}));return e?decodeURIComponent(e.value):null},t.prototype.has=function(t){return null!==this.get(t)},t.prototype.delete=function(t,e){if(void 0===e&&(e={}),!t)return!1;if(null===this.get(t))return!0;var i=bt({"max-age":0},e);return this.set(t,"",i)},t.prototype.set=function(t,e,i){if(void 0===i&&(i={}),!t)return!1;try{var n="".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e));if(i.path&&(n+="; path=".concat(i.path)),i.domain&&(n+="; domain=".concat(i.domain)),void 0!==i["max-age"]&&(n+="; max-age=".concat(i["max-age"])),i.expires){var o=i.expires instanceof Date?i.expires.toUTCString():i.expires;n+="; expires=".concat(o)}return i.secure&&(n+="; secure"),i.samesite&&(n+="; samesite=".concat(i.samesite)),document.cookie=n,this.update(),!0}catch(t){return console.error("Cookie設定エラー:",t),!1}},t.prototype.getAll=function(){return function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}([],this.cParam,!0)},t.prototype.clear=function(){for(var t=!0,e=0,i=this.getAll();e<i.length;e++){var n=i[e];this.delete(n.key)||(t=!1)}return t},t.prototype.getCount=function(){return this.cParam.length},t}(),At=function(){function t(t,e){var i=void 0===e?{}:e,n=i.root,o=void 0===n?null:n,r=i.rootMargin,s=void 0===r?"0px":r,a=i.threshold,c=void 0===a?1:a,l=i.hideTag,u=void 0===l?"js-lazyBg":l,d=i.showTag,h=void 0===d?"is-completeLazyBg":d,p=i.dataAttribute,f=void 0===p?"data-bg-src":p,m=i.mobileBreakpoint,g
1=void 0===m?768:m,v=i.onComplete,y=i.onError;this.observer=null,this.isDestroyed=!1,this.loadedImages=new Set,this.resizeObserver=null,"IntersectionObserver"in window?(this.collection=document.querySelectorAll(t),this.length=this.collection.length,this.length?(this.options={root:o,rootMargin:s,threshold:c,hideTag:u,showTag:h,dataAttribute:f,mobileBreakpoint:g,onComplete:v,onError:y},this.init()):console.warn('LazyLoadBg: セレクター "'.concat(t,'" に対応する要素が見つかりません'))):console.warn("LazyLoadBg: IntersectionObserverがサポートされていません")}return t.prototype.init=function(){this.isDestroyed||(this.run(),this.setupResizeObserver())},t.prototype.setupResizeObserver=function(){var t=this;"ResizeObserver"in window&&(this.resizeObserver=new ResizeObserver((function(){t.collection.forEach((function(e){e.classList.contains(t.options.showTag)&&t.updateImageForElement(e)}))})),this.resizeObserver.observe(document.body))},t.prototype.getImageUrlForElement=function(t){var e=window.innerWidth<=this.options.mobileBreakpoint,i=window.devicePixelRatio>1;if(e){var n=t.getAttribute("data-bg-src-sp");if(n){if(i){var o=t.getAttribute("data-bg-src-sp-2x");if(o)return o}return n}}var r=t.getAttribute(this.options.dataAttribute);if(r){if(i){var s=t.getAttribute("data-bg-src-2x");if(s)return s}return r}return t.getAttribute(this.options.dataAttribute)},t.prototype.updateImageForElement=function(t){var e=this.getImageUrlForElement(t);e&&this.getCurrentBackgroundImage(t)!==e&&this.loadImage(t,e)},t.prototype.getCurrentBackgroundImage=function(t){var e=t.style.backgroundImage;if(!e||"none"===e)return null;var i=e.match(/url\(['"]?([^'"]+)['"]?\)/);return i?i[1]:null},t.prototype.run=function(){var t=this;try{this.observer=new IntersectionObserver((function(e,i){e.forEach((function(e){e.isIntersecting&&(t.handleIntersection(e.target),i.unobserve(e.target))}))}),{root:this.options.root,rootMargin:this.options.rootMargin,threshold:this.options.threshold}),this.collection.forEach((function(e){var i;null===(i=t.observer)||void 0===i||i.observe(e)}))}catch(t){console.error("LazyLoadBg: IntersectionObserverの初期化に失敗しました",t)}},t.prototype.handleIntersection=function(t){try{var e=this.getImageUrlForElement(t);if(!e)return void console.warn("LazyLoadBg: 画像URLが設定されていません",t);if(this.loadedImages.has(e))return void this.showElement(t,e);this.loadImage(t,e)}catch(t){console.warn("LazyLoadBg: 要素の処理中にエラーが発生しました",t)}},t.prototype.loadImage=function(t,e){var i=this,n=new Image;n.onload=function(){i.loadedImages.add(e),i.showElement(t,e),i.options.onComplete&&"function"==typeof i.options.onComplete&&i.options.onComplete(t,e)},n.onerror=function(n){if(console.warn("LazyLoadBg: 画像の読み込みに失敗しました: ".concat(e),n),i.options.onError&&"function"==typeof i.options.onError){var o=new Error("画像の読み込みに失敗しました: ".concat(e));i.options.onError(t,e,o)}},n.src=e},t.prototype.showElement=function(t,e){try{t.style.backgroundImage="url(".concat(e,")"),t.classList.remove(this.options.hideTag),t.classList.add(this.options.showTag)}catch(t){console.warn("LazyLoadBg: 要素の表示処理中にエラーが発生しました",t)}},t.prototype.destroy=function(){var t=this;if(!this.isDestroyed)try{this.observer&&(this.observer.disconnect(),this.observer=null),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.collection.forEach((function(e){e.classList.remove(t.options.showTag),e.classList.add(t.options.hideTag),e.style.backgroundImage=""})),this.isDestroyed=!0,this.loadedImages.clear()}catch(t){console.warn("LazyLoadBg: 破棄処理中にエラーが発生しました",t)}},t.prototype.reload=function(){this.isDestroyed?console.warn("LazyLoadBg: 破棄されたインスタンスは再読み込みできません"):(this.destroy(),this.isDestroyed=!1,this.init())},t.prototype.getLength=function(){return this.length},t.prototype.getElements=function(){return this.collection},t.prototype.showElementManually=function(t){var e;if(!this.isDestroyed&&Array.from(this.collection).includes(t)){var i=this.getImageUrlForElement(t);i&&(this.loadImage(t,i),null===(e=this.observer)||void 0===e||e.unobserve(t))}},t.prototype.showAllElements=function(){var t=this;this.isDestroyed||this.collection.forEach((function(e){t.showElementManually(e)}))},t.prototype.getLoadedImageCount=function(){return this.loadedImages.size},t.prototype.isImageLoaded=function(t){return this.loadedImages.has(t)},t.prototype.getDeviceInfo=function(){return{isMobile:window.innerWidth<=this.options.mobileBreakpoint,isHighDensity:window.devicePixelRatio>1,pixelRatio:window.devicePixelRatio,screenWidth:window.innerWidth}},t}();return e}()}));

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.