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UAAUkC,eAAe,WAAW,IAAI9C,EAAEgB,KAAKA,KAAKyB,SAAShB,cAAcT,KAAKsB,KAAKyB,MAAMK,SAAS,iBAAiBpD,KAAKsB,KAAKuE,SAASvC,OAAO,qCAAqCtD,KAAKyB,SAASV,uBAAuBC,iBAAiB,+CAA+ChB,KAAKsB,KAAKyB,MAAMS,KAAK,oBAAoBrB,QAAQC,GAAG,YAAW,WAAYpD,EAAEsC,KAAKyB,MAAM+C,YAAY,qBAAsB,IAAG,EAAE7E,EAAErB,UAAUmC,cAAc,WAAW,IAAI/C,EAAEgB,KAAKA,KAAKuB,IAAIkD,QAAQrC,GAAG,0BAA0BpC,KAAKsB,KAAKoD,MAAK,SAAUzF,GAAGD,EAAEsC,KAAK6B,UAAUnE,EAAEyC,SAAShB,cAAc,KAAKxB,EAAE8G,SAAS9G,EAAEoF,iBAAiBrF,EAAEsC,KAAKyB,MAAMK,SAAS,uBAAuB,KAAKnE,EAAE8G,UAAU9G,EAAEoF,iBAAiBrF,EAAEsC,KAAKyB,MAAMyB,YAAY,uBAAwB,GAAE,EAAEvD,EAAErB,UAAUoG,QAAQ,WAAWhG,KAAKyB,SAASxB,YAAYD,KAAKuB,IAAIkD,QAAQwB,IAAI,mBAAmBjG,KAAKsB,KAAKoD,MAAM1E,KAAKsB,KAAKsB,KAAKqD,IAAI,aAAajG,KAAKsB,KAAKsB,KAAKqD,IAAI,UAAUjG,KAAKuD,YAAY2C,SAASlG,KAAKsB,KAAKyB,MAAMyB,YAAY,gBAAgB,EAAEvD,CAAC,CAA9hQ,G","sources":["webpack://sakurairo-scripts/./node_modules/.pnpm/lightgallery@2.7.2/node_modules/lightgallery/plugins/thumbnail/lg-thumbnail.min.js"],"sourcesContent":["/**\n * lightgallery | 2.7.2 | September 20th 2023\n * http://www.lightgalleryjs.com/\n * Copyright (c) 2020 Sachin Neravath;\n * @license GPLv3\n */\n\n!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).lgThumbnail=e()}(this,(function(){\"use strict\";var t=function(){return(t=Object.assign||function(t){for(var e,i=1,s=arguments.length;i\\n
\\n
\\n ';this.core.outer.addClass(\"lg-has-thumb\"),\".lg-components\"===this.settings.appendThumbnailsTo?this.core.$lgComponents.append(e):this.core.outer.append(e),this.$thumbOuter=this.core.outer.find(\".lg-thumb-outer\").first(),this.$lgThumb=this.core.outer.find(\".lg-thumb\").first(),this.settings.animateThumb&&this.core.outer.find(\".lg-thumb\").css(\"transition-duration\",this.core.settings.speed+\"ms\").css(\"width\",this.thumbTotalWidth+\"px\").css(\"position\",\"relative\"),this.setThumbItemHtml(this.core.galleryItems)},o.prototype.enableThumbDrag=function(){var t=this,e={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0},i=!1;this.$thumbOuter.addClass(\"lg-grab\"),this.core.outer.find(\".lg-thumb\").first().on(\"mousedown.lg.thumb\",(function(s){t.thumbTotalWidth>t.thumbOuterWidth&&(s.preventDefault(),e.cords.startX=s.pageX,e.startTime=new Date,t.thumbClickable=!1,i=!0,t.core.outer.get().scrollLeft+=1,t.core.outer.get().scrollLeft-=1,t.$thumbOuter.removeClass(\"lg-grab\").addClass(\"lg-grabbing\"))})),this.$LG(window).on(\"mousemove.lg.thumb.global\"+this.core.lgId,(function(s){t.core.lgOpened&&i&&(e.cords.endX=s.pageX,e=t.onThumbTouchMove(e))})),this.$LG(window).on(\"mouseup.lg.thumb.global\"+this.core.lgId,(function(){t.core.lgOpened&&(e.isMoved?e=t.onThumbTouchEnd(e):t.thumbClickable=!0,i&&(i=!1,t.$thumbOuter.removeClass(\"lg-grabbing\").addClass(\"lg-grab\")))}))},o.prototype.enableThumbSwipe=function(){var t=this,e={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0};this.$lgThumb.on(\"touchstart.lg\",(function(i){t.thumbTotalWidth>t.thumbOuterWidth&&(i.preventDefault(),e.cords.startX=i.targetTouches[0].pageX,t.thumbClickable=!1,e.startTime=new Date)})),this.$lgThumb.on(\"touchmove.lg\",(function(i){t.thumbTotalWidth>t.thumbOuterWidth&&(i.preventDefault(),e.cords.endX=i.targetTouches[0].pageX,e=t.onThumbTouchMove(e))})),this.$lgThumb.on(\"touchend.lg\",(function(){e.isMoved?e=t.onThumbTouchEnd(e):t.thumbClickable=!0}))},o.prototype.rebuildThumbnails=function(){var t=this;this.$thumbOuter.addClass(\"lg-rebuilding-thumbnails\"),setTimeout((function(){t.thumbTotalWidth=t.core.galleryItems.length*(t.settings.thumbWidth+t.settings.thumbMargin),t.$lgThumb.css(\"width\",t.thumbTotalWidth+\"px\"),t.$lgThumb.empty(),t.setThumbItemHtml(t.core.galleryItems),t.animateThumb(t.core.index)}),50),setTimeout((function(){t.$thumbOuter.removeClass(\"lg-rebuilding-thumbnails\")}),200)},o.prototype.setTranslate=function(t){this.$lgThumb.css(\"transform\",\"translate3d(-\"+t+\"px, 0px, 0px)\")},o.prototype.getPossibleTransformX=function(t){return t>this.thumbTotalWidth-this.thumbOuterWidth&&(t=this.thumbTotalWidth-this.thumbOuterWidth),t<0&&(t=0),t},o.prototype.animateThumb=function(t){if(this.$lgThumb.css(\"transition-duration\",this.core.settings.speed+\"ms\"),this.settings.animateThumb){var e=0;switch(this.settings.currentPagerPosition){case\"left\":e=0;break;case\"middle\":e=this.thumbOuterWidth/2-this.settings.thumbWidth/2;break;case\"right\":e=this.thumbOuterWidth-this.settings.thumbWidth}this.translateX=(this.settings.thumbWidth+this.settings.thumbMargin)*t-1-e,this.translateX>this.thumbTotalWidth-this.thumbOuterWidth&&(this.translateX=this.thumbTotalWidth-this.thumbOuterWidth),this.translateX<0&&(this.translateX=0),this.setTranslate(this.translateX)}},o.prototype.onThumbTouchMove=function(t){return t.newTranslateX=this.translateX,t.isMoved=!0,t.touchMoveTime=(new Date).valueOf(),t.newTranslateX-=t.cords.endX-t.cords.startX,t.newTranslateX=this.getPossibleTransformX(t.newTranslateX),this.setTranslate(t.newTranslateX),this.$thumbOuter.addClass(\"lg-dragging\"),t},o.prototype.onThumbTouchEnd=function(t){t.isMoved=!1,t.endTime=new Date,this.$thumbOuter.removeClass(\"lg-dragging\");var e=t.endTime.valueOf()-t.startTime.valueOf(),i=t.cords.endX-t.cords.startX,s=Math.abs(i)/e;return s>.15&&t.endTime.valueOf()-t.touchMoveTime<30?((s+=1)>2&&(s+=1),s+=s*(Math.abs(i)/this.thumbOuterWidth),this.$lgThumb.css(\"transition-duration\",Math.min(s-1,2)+\"settings\"),i*=s,this.translateX=this.getPossibleTransformX(this.translateX-i),this.setTranslate(this.translateX)):this.translateX=t.newTranslateX,Math.abs(t.cords.endX-t.cords.startX)\\n \\n '},o.prototype.getThumbItemHtml=function(t){for(var e=\"\",i=0;i'),this.core.outer.find(\".lg-toggle-thumb\").first().on(\"click.lg\",(function(){t.core.outer.toggleClass(\"lg-components-open\")})))},o.prototype.thumbKeyPress=function(){var t=this;this.$LG(window).on(\"keydown.lg.thumb.global\"+this.core.lgId,(function(e){t.core.lgOpened&&t.settings.toggleThumb&&(38===e.keyCode?(e.preventDefault(),t.core.outer.addClass(\"lg-components-open\")):40===e.keyCode&&(e.preventDefault(),t.core.outer.removeClass(\"lg-components-open\")))}))},o.prototype.destroy=function(){this.settings.thumbnail&&(this.$LG(window).off(\".lg.thumb.global\"+this.core.lgId),this.core.LGel.off(\".lg.thumb\"),this.core.LGel.off(\".thumb\"),this.$thumbOuter.remove(),this.core.outer.removeClass(\"lg-has-thumb\"))},o}()}));\n"],"names":["t","e","i","s","h","n","module","exports","Object","assign","arguments","length","prototype","hasOwnProperty","call","apply","this","thumbnail","animateThumb","currentPagerPosition","alignThumbnails","thumbWidth","thumbHeight","thumbMargin","appendThumbnailsTo","toggleThumb","enableThumbDrag","enableThumbSwipe","thumbnailSwipeThreshold","loadYouTubeThumbnail","youTubeThumbSize","thumbnailPluginStrings","toggleThumbnails","o","thumbOuterWidth","thumbTotalWidth","translateX","thumbClickable","core","$LG","init","settings","galleryItems","setAnimateThumbStyles","allowMediaOverlap","build","toggleThumbBar","thumbKeyPress","setThumbMarkup","manageActiveClassOnSlideChange","$lgThumb","first","on","target","hasAttribute","setTimeout","lgBusy","parseInt","attr","slide","LGel","detail","index","outer","get","offsetWidth","rebuildThumbnails","lgOpened","addClass","$lgComponents","append","$thumbOuter","find","css","speed","setThumbItemHtml","cords","startX","endX","isMoved","newTranslateX","startTime","Date","endTime","touchMoveTime","preventDefault","pageX","scrollLeft","removeClass","window","lgId","onThumbTouchMove","onThumbTouchEnd","targetTouches","empty","setTranslate","getPossibleTransformX","valueOf","Math","abs","min","getThumbHtml","__slideVideoInfo","youtube","getThumbItemHtml","thumb","alt","html","eq","$toolbar","toggleClass","keyCode","destroy","off","remove"],"sourceRoot":""}