1!function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var i=function e(){var i=!1;try{i=this instanceof e}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,s.get?s:{enumerable:!0,get:function(){return e[t]}})}),i}var s,a={};function n(){return s||(s=1,(e=jQuery).fn.emulateTransitionEnd=function(t){var i=!1,s=this;return e(this).one("wpcomTransitionEnd",function(){i=!0}),setTimeout(function(){i||e(s).trigger(e.__transition.end)},t),this},e(function(){e.__transition=function(){var e=document.createElement("wpcom"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in t)if(void 0!==e.style[i])return{end:t[i]};return!1}(),e.__transition&&(e.event.special.wpcomTransitionEnd={bindType:e.__transition.end,delegateType:e.__transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})),a;var e}var o;var r;var l;var d;var c,u,p,h;u||(u=1,n(),o||(o=1,function(e){var t='[data-dismiss="alert"], [data-wpcom-dismiss="alert"]',i=function(i){e(i).on("click",t,this.close)};i.TRANSITION_DURATION=150,i.prototype.close=function(t){var s=e(this),a=s.attr("data-target");a||(a=(a=s.attr("href"))&&a.replace(/.*(?=#[^\s]*$)/,"")),a="#"===a?[]:a;var n=e(document).find(a);function o(){n.detach().trigger("closed.wpcom.alert").remove()}t&&t.preventDefault(),n.length||(n=s.closest(".wpcom-alert")),n.trigger(t=e.Event("close.wpcom.alert")),t.isDefaultPrevented()||(n.removeClass("in"),e.__transition&&n.hasClass("fade")?n.one("wpcomTransitionEnd",o).emulateTransitionEnd(i.TRANSITION_DURATION):o())};var s=e.fn._alert;e.fn._alert=function(t){return this.each(function(){var s=e(this),a=s.data("wpcom.alert");a||s.data("wpcom.alert",a=new i(this)),"string"==typeof t&&a[t].call(s)})},e.fn._alert.Constructor=i,e.fn._alert.noConflict=function(){return e.fn._alert=s,this},e(document).on("click.wpcom.alert.data-api",t,i.prototype.close)}(jQuery)),r||(r=1,function(e){var t=function(i,s){this.$element=e(i),this.options=e.extend({},t.DEFAULTS,s),this.$trigger=e('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function i(t){var i,s=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(s)}function s(i){return this.each(function(){var s=e(this),a=s.data("bs.collapse"),n=e.extend({},t.DEFAULTS,s.data(),"object"==typeof i&&i);!a&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),a||s.data("bs.collapse",a=new t(this,n)),"string"==typeof i&&a[i]()})}t.VERSION="3.4.1",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var i,a=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(a&&a.length&&(i=a.data("bs.collapse"))&&i.transitioning)){var n=e.Event("show.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){a&&a.length&&(s.call(a,"hide"),i||a.data("bs.collapse",null));var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return r.call(this);var l=e.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",e.proxy(r,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[o](this.$element[0][l])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var i=e.Event("hide.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){var s=this.dimension();this.$element[s](this.$element[s]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var a=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return a.call(this);this.$element[s](0).one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(t,s){var a=e(s);this.addAriaAndCollapsedClass(i(a),a)},this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var i=e.hasClass("in");e.attr("aria-expanded",i),t.toggleClass("collapsed",!i).attr("aria-expanded",i)};var a=e.fn.collapse;e.fn.collapse=s,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=a,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var a=e(this);a.attr("data-target")||t.preventDefault();var n=i(a),o=n.data("bs.collapse")?"toggle":a.data();s.call(n,o)})}(jQuery)),l||(l=1,function(e){var t=function(t,i){this.options=i,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal
1-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.wpcom.modal")},this))};function i(i,s){return this.each(function(){var a=e(this),n=a.data("wpcom.modal"),o=e.extend({},t.DEFAULTS,a.data(),"object"==typeof i&&i);n||a.data("wpcom.modal",n=new t(this,o)),"string"==typeof i?n[i](s):o.show&&n.show(s)})}t.TRANSITION_DURATION=250,t.BACKDROP_TRANSITION_DURATION=120,t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},t.prototype.show=function(i){var s=this,a=e.Event("show.wpcom.modal",{relatedTarget:i});this.$element.trigger(a),this.isShown||a.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.wpcom.modal",'[data-dismiss="modal"], [data-wpcom-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.wpcom.modal",function(){s.$element.one("mouseup.dismiss.wpcom.modal",function(t){e(t.target).is(s.$element)&&(s.ignoreBackdropClick=!0)})}),this.backdrop(function(){var a=e.__transition&&s.$element.hasClass("fade");s.$element.parent().length||s.$element.appendTo(s.$body),s.$element.show().scrollTop(0),s.adjustDialog(),a&&s.$element[0].offsetWidth,s.$element.addClass("in"),s.enforceFocus();var n=e.Event("shown.wpcom.modal",{relatedTarget:i});a?s.$dialog.one("wpcomTransitionEnd",function(){s.$element.trigger("focus").trigger(n)}).emulateTransitionEnd(t.TRANSITION_DURATION):s.$element.trigger("focus").trigger(n)}))},t.prototype.hide=function(i){i&&i.preventDefault(),i=e.Event("hide.wpcom.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.wpcom.modal"),this.$element.removeClass("in").off("click.dismiss.wpcom.modal").off("mouseup.dismiss.wpcom.modal"),this.$dialog.off("mousedown.dismiss.wpcom.modal"),e.__transition&&this.$element.hasClass("fade")?this.$element.one("wpcomTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())},t.prototype.enforceFocus=function(){e(document).off("focusin.wpcom.modal").on("focusin.wpcom.modal",e.proxy(function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.wpcom.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.wpcom.modal")},t.prototype.resize=function(){this.isShown?e(window).on("resize.wpcom.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.wpcom.modal")},t.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.wpcom.modal")})},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(i){var s=this,a=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var n=e.__transition&&a;if(this.$backdrop=e(document.createElement("div")).addClass("wpcom-modal-backdrop "+a).appendTo(this.$body),this.$element.on("click.dismiss.wpcom.modal",e.proxy(function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),n&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;n?this.$backdrop.one("wpcomTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var o=function(){s.removeBackdrop(),i&&i()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("wpcomTransitionEnd",o).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):o()}else i&&i()},t.prototype.handleUpdate=function(){this.adjustDialog()},t.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},t.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||0;var i=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("--scrollbar-width",t+i+"px"),e(this.fixedContent).each(function(t,s){var a=s.style.paddingRight,n=e(s).css("padding-right");e(s).data("padding-right",a).css("padding-right",parseFloat(n)+i+"px")}))},t.prototype.resetScrollbar=function(){this.$body.css("--scrollbar-width",this.originalBodyPad+"px"),e(this.fixedContent).each(function(t,i){var s=e(i).data("padding-right");e(i).removeData("padding-right"),i.style.paddingRight=s||""})},t.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var s=e.fn._modal,a=e.fn.modal;e.fn._modal=i,e.fn._modal.Constructor=t,e.fn.modal=i,e.fn.modal.Constructor=t,e.fn._modal.noConflict=function(){return e.fn._modal=s,this},e.fn.modal.noConflict=function(){return e.fn.modal=a,this},e(document).on("click.wpcom.modal.data-api",'[data-toggle="modal"]',function(t){var s=e(this),a=s.attr("href"),n=s.attr("data-target")||a&&a.replace(/.*(?=#[^\s]+$)/,""),o=e(document).find(n),r=o.data("wpcom.modal")?"toggle":e.extend({remote:!/#/.test(a)&&a},o.data(),s.data());s.is("a")&&t.preventDefault(),o.one("show.wpcom.modal",function(e){e.isDefaultPrevented()||o.one("hidden.wpcom.modal",function(){s.is(":visible")&&s.trigger("focus")})}),i.call(o,r,this)})}
vendor: 4,610 bytes, line 1
1(jQuery)),d||(d=1,function(e){var t=["sanitize","whiteList","sanitizeFn"],i=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],s={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},a=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,n=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function o(t,s){var o=t.nodeName.toLowerCase();if(-1!==e.inArray(o,s))return-1===e.inArray(o,i)||Boolean(t.nodeValue.match(a)||t.nodeValue.match(n));for(var r=e(s).filter(function(e,t){return t instanceof RegExp}),l=0,d=r.length;l<d;l++)if(o.match(r[l]))return!0;return!1}function r(t,i,s){if(0===t.length)return t;if(s&&"function"==typeof s)return s(t);if(!document.implementation||!document.implementation.createHTMLDocument)return t;var a=document.implementation.createHTMLDocument("sanitization");a.body.innerHTML=t;for(var n=e.map(i,function(e,t){return t}),r=e(a.body).find("*"),l=0,d=r.length;l<d;l++){var c=r[l],u=c.nodeName.toLowerCase();if(-1!==e.inArray(u,n))for(var p=e.map(c.attributes,function(e){return e}),h=[].concat(i["*"]||[],i[u]||[]),m=0,f=p.length;m<f;m++)o(p[m],h)||c.removeAttribute(p[m].nodeName);else c.parentNode.removeChild(c)}return a.body.innerHTML}var l=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};l.VERSION="3.4.1",l.TRANSITION_DURATION=150,l.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:s},l.prototype.init=function(t,i,s){if(this.enabled=!0,this.type=t,this.$element=e(i),this.options=this.getOptions(s),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var a=this.options.trigger.split(" "),n=a.length;n--;){var o=a[n];if("click"==o)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=o){var r="hover"==o?"mouseenter":"focusin",l="hover"==o?"mouseleave":"focusout";this.$element.on(r+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(i){var s=this.$element.data();for(var a in s)s.hasOwnProperty(a)&&-1!==e.inArray(a,t)&&delete s[a];return(i=e.extend({},this.getDefaults(),s,i)).delay&&"number"==typeof i.delay&&(i.delay={show:i.delay,hide:i.delay}),i.sanitize&&(i.template=r(i.template,i.whiteList,i.sanitizeFn)),i},l.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&e.each(this._options,function(e,s){i[e]!=s&&(t[e]=s)}),t},l.prototype.enter=function(t){var i=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i)),t instanceof e.Event&&(i.inState["focusin"==t.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState)i.hoverState="in";else{if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)}},l.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},l.prototype.leave=function(t){var i=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i)),t instanceof e.Event&&(i.inState["focusout"==t.type?"focu
1s":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)}},l.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var i=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!i)return;var s=this,a=this.tip(),n=this.getUID(this.type);this.setContent(),a.attr("id",n),this.$element.attr("aria-describedby",n),this.options.animation&&a.addClass("fade");var o="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,r=/\s?auto?\s?/i,d=r.test(o);d&&(o=o.replace(r,"")||"top"),a.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?a.appendTo(e(document).find(this.options.container)):a.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),u=a[0].offsetWidth,p=a[0].offsetHeight;if(d){var h=o,m=this.getPosition(this.$viewport);o="bottom"==o&&c.bottom+p>m.bottom?"top":"top"==o&&c.top-p<m.top?"bottom":"right"==o&&c.right+u>m.width?"left":"left"==o&&c.left-u<m.left?"right":o,a.removeClass(h).addClass(o)}var f=this.getCalculatedOffset(o,c,u,p);this.applyPlacement(f,o);var g=function(){var e=s.hoverState;s.$element.trigger("shown.bs."+s.type),s.hoverState=null,"out"==e&&s.leave(s)};e.__transition&&this.$tip.hasClass("fade")?a.one("wpcomTransitionEnd",g).emulateTransitionEnd(l.TRANSITION_DURATION):g()}},l.prototype.applyPlacement=function(t,i){var s=this.tip(),a=s[0].offsetWidth,n=s[0].offsetHeight,o=parseInt(s.css("margin-top"),10),r=parseInt(s.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(r)&&(r=0),t.top+=o,t.left+=r,e.offset.setOffset(s[0],e.extend({using:function(e){s.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),s.addClass("in");var l=s[0].offsetWidth,d=s[0].offsetHeight;"top"==i&&d!=n&&(t.top=t.top+n-d);var c=this.getViewportAdjustedDelta(i,t,l,d);c.left?t.left+=c.left:t.top+=c.top;var u=/top|bottom/.test(i),p=u?2*c.left-a+l:2*c.top-n+d,h=u?"offsetWidth":"offsetHeight";s.offset(t),this.replaceArrow(p,s[0][h],u)},l.prototype.replaceArrow=function(e,t,i){this.arrow().css(i?"left":"top",50*(1-e/t)+"%").css(i?"top":"left","")},l.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();this.options.html?(this.options.sanitize&&(t=r(t,this.options.whiteList,this.options.sanitizeFn)),e.find(".tooltip-inner").html(t)):e.find(".tooltip-inner").text(t),e.removeClass("fade in top bottom left right")},l.prototype.hide=function(t){var i=this,s=e(this.$tip),a=e.Event("hide.bs."+this.type);function n(){"in"!=i.hoverState&&s.detach(),i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),t&&t()}if(this.$element.trigger(a),!a.isDefaultPrevented())return s.removeClass("in"),e.__transition&&s.hasClass("fade")?s.one("wpcomTransitionEnd",n).emulateTransitionEnd(l.TRANSITION_DURATION):n(),this.hoverState=null,this},l.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},l.prototype.hasContent=function(){return this.getTitle()},l.prototype.getPosition=function(t){var i=(t=t||this.$element)[0],s="BODY"==i.tagName,a=i.getBoundingClientRect();null==a.width&&(a=e.extend({},a,{width:a.right-a.left,height:a.bottom-a.top}));var n=window.SVGElement&&i instanceof window.SVGElement,o=s?{top:0,left:0}:n?null:t.offset(),r={scroll:s?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},l=s?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},a,r,l,o)},l.prototype.getCalculatedOffset=function(e,t,i,s){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==e?{top:t.top-s,left:t.left+t.width/2-i/2}:"left"==e?{top:t.top+t.height/2-s/2,left:t.left-i}:{top:t.top+t.height/2-s/2,left:t.left+t.width}},l.prototype.getViewportAdjustedDelta=function(e,t,i,s){var a={top:0,left:0};if(!this.$viewport)return a;var n=this.options.viewport&&this.options.viewport.padding||0,o=this.getPosition(this.$viewport);if(/right|left/.test(e)){var r=t.top-n-o.scroll,l=t.top+n-o.scroll+s;r<o.top?a.top=o.top-r:l>o.top+o.height&&(a.top=o.top+o.height-l)}else{var d=t.left-n,c=t.left+n+i;
vendor: 4,743 bytes, line 1
1d<o.left?a.left=o.left-d:c>o.right&&(a.left=o.left+o.width-c)}return a},l.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},l.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},l.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(t){var i=this;t&&((i=e(t.currentTarget).data("bs."+this.type))||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i))),t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},l.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})},l.prototype.sanitizeHtml=function(e){return r(e,this.options.whiteList,this.options.sanitizeFn)};var d=e.fn.tooltip;e.fn.tooltip=function(t){return this.each(function(){var i=e(this),s=i.data("bs.tooltip"),a="object"==typeof t&&t;!s&&/destroy|hide/.test(t)||(s||i.data("bs.tooltip",s=new l(this,a)),"string"==typeof t&&s[t]())})},e.fn.tooltip.Constructor=l,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=d,this}}(jQuery)),c||(c=1,function(e){var t=function(t){this.element=e(t)};function i(i){return this.each(function(){var s=e(this),a=s.data("bs.tab");a||s.data("bs.tab",a=new t(this)),"string"==typeof i&&a[i]()})}t.VERSION="3.4.1",t.TRANSITION_DURATION=150,t.prototype.show=function(){var t=this.element,i=t.closest("ul:not(.dropdown-menu)"),s=t.data("target");if(s||(s=(s=t.attr("href"))&&s.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var a=i.find(".active:last a"),n=e.Event("hide.bs.tab",{relatedTarget:t[0]}),o=e.Event("show.bs.tab",{relatedTarget:a[0]});if(a.trigger(n),t.trigger(o),!o.isDefaultPrevented()&&!n.isDefaultPrevented()){var r=e(document).find(s);this.activate(t.closest("li"),i),this.activate(r,r.parent(),function(){a.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:a[0]})})}}},t.prototype.activate=function(i,s,a){var n=s.find("> .active"),o=a&&e.__transition&&(n.length&&n.hasClass("fade")||!!s.find("> .fade").length);function r(){n.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),o?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade"),i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),a&&a()}n.length&&o?n.one("wpcomTransitionEnd",r).emulateTransitionEnd(t.TRANSITION_DURATION):r(),n.removeClass("in")};var s=e.fn.tab;e.fn.tab=i,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=s,this};var a=function(t){t.preventDefault(),i.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',a).on("click.bs.tab.data-api",'[data-toggle="pill"]',a)}(jQuery))),(p=jQuery).fn.imgScroll=function(e,t){var i=p.extend({data:[],template:null,evtType:"click",visible:1,direction:"y",next:"#next",prev:"#prev",disableClass:"disabled",disableClassPerfix:!1,speed:300,step:1,loop:!1,showControl:!1,width:null,height:null,navItems:!1,navItmesWrapClass:"scroll-nav-wrap",navItemActivedClass:"current",status:!1,statusWrapSelector:".scroll-status-wrap"},e);return this.each(function(){var e,s=p(this),a=s.find("ul").eq(0),n=a.children("li"),o=n.length,r=null,l=null,d="string"==typeof i.next?p(i.next):i.next,c="string"==typeof i.prev?p(i.prev):i.prev,u=0,h=i.step,m=i.visible,f=Math.ceil((o-m)/h)+1,g=i.loop,v=i.direction,w=i.evtType,y=i.disableClass,b=i.disableClassPerfix?i.disableClassPerfix+"-prev-"+y:y,x=i.disableClassPerfix?i.disableClassPerfix+"-next-"+y:y,S=i.navItems,E=i.navItmesWrapClass,T=p("."+E).length>0,C=i.navItemActivedClass,_=i.status,P=i.statusWrapSelector,I=p(P).length>0,k=!1,M=!0,A=i.template||'<ul>{for slide in list}<li><a href="${slide.href}" target="_blank"><img src="${slide.src}" alt="${slide.alt}" /></a></li>{/for}</ul>';function L(p,w){if(a.is(":animated"))return!1;
1if(g)M&&w&&(u=f),k&&!w&&(u=-1),p=w?--u:++u;else{if(M&&w||k&&!w)return!1;p=w?--u:++u}function y(){g?(k=m>=o-p*h,M=0>=p):(m>=o-p*h?(d.addClass(x),k=!0):(d.removeClass(x),k=!1),0>=p?(c.addClass(b),M=!0):(c.removeClass(b),M=!1)),(S||_)&&O(p),"function"==typeof t&&t.apply(s,[p,f,n.slice(p*h,p*h+m),n.slice(p*h+m-h,p*h+m)])}e="x"==v?{left:p>=f-1?-(o-m)*r:-p*h*r}:{top:p>=f-1?-(o-m)*l:-p*h*l},i.speed?a.animate(e,i.speed,y):(a.css(e),y())}function O(e){S&&p("."+E).find("em").removeClass(C).eq(e).addClass(C),_&&p(P).html("<b>"+(e+1)+"</b>/"+f)}if(i.data.length>0){if(!i.width||!i.height)return!1;!function(e){var t={list:e};s.html(A.process(t)),o=i.data.length,a=s.find("ul").eq(0),n=a.children("li"),f=Math.ceil((o-m)/h)+1}(i.data)}o>m&&m>=h?(function(e){g||(o>h&&o>m?(c.addClass(b),d.removeClass(x)):m>=o&&d.addClass(x)),"left"!==n.eq(0).css("float")&&n.css("float","left"),r=i.width||n.eq(0).outerWidth(),l=i.height||n.eq(0).outerHeight(),s.css({position:"static"==s.css("position")?"relative":s.css("position"),width:"x"==e?r*m:r,height:"x"==e?l:l*m}),a.css({position:"relative",width:"x"==e?r*o:r,height:"x"==e?l:l*o,top:0,left:0}),"function"==typeof t&&t.apply(s,[u,f,n.slice(u*h,u*h+m),n.slice(u*h+m-h,u*h+m)])}(v),c.unbind(w).bind(w,function(){L(u,!0)}),d.unbind(w).bind(w,function(){L(u,!1)}),S&&function(e,t){for(var i=T?p("."+e).eq(0):p('<div class="'+e+'"></div>'),a=0;f>a;a++)i.append("<em "+(0===a?" class="+t:"")+' title="'+(a+1)+'">'+(a+1)+"</em>");T||s.after(i)}(E,C),_&&function(){var e=I?p(P).eq(0):p('<div class="'+P.replace(".","")+'"></div>');e.html("<b>1</b>/"+f),I||s.after(e)}()):(i.showControl?d.add(c).show():d.add(c).hide(),c.addClass(b),d.addClass(x))})},function(e){e.fn.jqueryzoom=function(t){var i={xzoom:200,yzoom:200,offset:10,position:"right",lens:1,preload:1};t&&e.extend(i,t);var s="";e(this).hover(function(){var t=e(this).offset().left,a=e(this).offset().top,n=e(this).find("img").get(0).offsetWidth,o=e(this).find("img").get(0).offsetHeight;s=e(this).find("img").attr("alt");var r=e(this).find("img").attr("jqimg");function l(e){this.x=e.pageX,this.y=e.pageY}e(this).find("img").attr("alt",""),0==e("div.zoomdiv").get().length&&(e(this).after("<div class='zoomdiv'><img class='bigimg' src='"+r+"'/></div>"),e(this).append("<div class='jqZoomPup'> </div>")),e("div.zoomdiv").width(i.xzoom),e("div.zoomdiv").height(i.yzoom),e("div.zoomdiv").show(),i.lens||e(this).css("cursor","crosshair"),e(document.body).mousemove(function(s){var r=new l(s),d=e(".bigimg").get(0).offsetWidth,c=e(".bigimg").get(0).offsetHeight,u="x",p="y";if(isNaN(p)|isNaN(u)){p=d/n,u=c/o;e("div.jqZoomPup").width(i.xzoom/(1*p)),e("div.jqZoomPup").height(i.yzoom/(1*u)),i.lens&&e("div.jqZoomPup").css("visibility","visible")}var h=r.x-e("div.jqZoomPup").width()/2-t,m=r.y-e("div.jqZoomPup").height()/2-a;i.lens&&(h=r.x-e("div.jqZoomPup").width()/2<t?0:r.x+e("div.jqZoomPup").width()/2>n+t?n-e("div.jqZoomPup").width()-2:h,m=r.y-e("div.jqZoomPup").height()/2<a?0:r.y+e("div.jqZoomPup").height()/2>o+a?o-e("div.jqZoomPup").height()-2:m),i.lens&&e("div.jqZoomPup").css({top:m,left:h}),e("div.zoomdiv").get(0).scrollTop=m*u,e("div.zoomdiv").get(0).scrollLeft=h*p})},function(){e(this).children("img").attr("alt",s),e(document.body).unbind("mousemove"),i.lens&&e("div.jqZoomPup").remove(),e("div.zoomdiv").remove()});i.preload&&(e("body").append("<div style='display:none;' class='jqPreload0'></div>"),e(this).each(function(){var t=e(this).children("img").attr("jqimg"),i=jQuery("div.jqPreload0").html();jQuery("div.jqPreload0").html(i+'<img src="'+t+'">')}))}}(jQuery),(h=jQuery)(document).ready(function(){let e=document.documentElement.clientWidth<=767;var t=h("#pg-list li"),i=h("#pg-img img");if(t.mouseover(function(){var e=h(this).find("img");t.find("img").removeClass("active"),e.addClass("active"),i.eq(0).attr({src:e.data("url"),jqimg:e.data("url")})}),h(".woocommerce").on("woocommerce_gallery_reset_slide_position",".product .images",function(){h(this).find(".pg-items li:eq(0)").trigger("mouseover")}),h(".variations_form").on("change",".hidden-tag",function(){var e=h(this).closest(".variations_form"),t=e.data("product_variations"),i=h(".pg-items"),s={};if(e.find(".variations select").each(function(){var e=h(this).data("attribute_name")||h(this).attr("name"),t=h(this).val()||"";s[e]=t}),s&&t)for(var a=0;a<t.length;a++)if(t[a].attributes){var n=1;for(var o in s)""!==t[a].attributes[o]&&t[a].attributes[o]!=s[o]&&(n=0);if(n){if(t[a].image&&t[a].image.src)if(i.length){var r=i.find("li:first-child img");r.attr("src",t[a].image.thumb_src).data("url",t[a].image.src),r.hasClass("active")&&r.trigger("mouseover")}else h("#pg-img img").attr({src:t[a].image.src,jqimg:t[a].image.src});break}}}),i.length){let t=new Image,s=i.data("original");t.src=s||i.attr("src"),t.onload=function(){h(".jqzoom").jqueryzoom({xzoom:450,yzoom:t.height/t.width*450,offset:10,position:"left",preload:1,lens:1});let i=h(".pg-items"),s=e?i.find("li")?Math.round(i.outerWidth()/i.find("li").outerWidth()):4:i.find("li")?Math.round(i.outerHeight()/i.find("li").outerHeight()):4;i.imgScroll({visible:s||4,showControl:1,step:1,loop:0,width:e?null:"auto",height:e?"auto":null,prev:"#pg-forward",next:"#pg-backward",direction:e?"x":"y"}),i.find("li:first-child img").addClass("active"),h(window).on("resize",function(){let t=document.documentElement.clientWidth<=767;t!==e&&(i.attr("style","").find("> ul").attr("style",""),e=t,s=e?i.find("li")?Math.round(i.outerWidth()/i.find("li").outerWidth()):4:i.find("li")?Math.round(i.outerHeight()/i.find("li").outerHeight()):4,i.imgScroll({visible:s||4,showControl:1,step:1,loop:0,width:e?null:"auto",height:e?"auto":null,prev:"#pg-forward",next:"#pg-backward",direction:e?"x":"y"}))})}}});var m,f,g,v={exports:{}}; 2/*! 3 * Lazy Load - JavaScript plugin for lazy loading images 4 * 5 * Copyright (c) 2007-2019 Mika Tuupola 6 * 7 * Licensed under the MIT license: 8 * http://www.opensource.org/licenses/mit-license.php 9 * 10 * Project home: 11 * https://appelsiini.net/projects/lazyload 12 * 13 * Version: 2.0.0-rc.2 14 * 15 */m||(m=1,f=v,g=void 0!==e?e:window||v.exports.global,f.exports=function(e){function t(){try{let e=navigator.userAgent.match(/Firefox\/([0-9]+)\./),t=navigator.userAgent.match(/Chrome\/([0-9]+)\./);return e&&e[1]>=65||t&&t[1]>=32||0===document.createElement("canvas").toDataURL("image/webp").indexOf("data:image/webp")}catch(e){return!1}}const i=t();function s(e,t){if(!e)return e;const i=["jpg","jpeg","png","gif","bmp","tiff","tif"],s=e.split("?")[0].split(".").pop().toLowerCase();return i.includes(s)?(e.split("?").length>1?e.match(/([&?]+)x-oss-process=/i)?e=e.replace(/([&?]+)x-oss-process=/i,"$1x-oss-process=image/format,webp,"):e.match(/([&?]+)imageMogr2/i)?e=e.replace(/([&?]+)imageMogr2\//i,"$1imageMogr2/format/webp/"):e+=t.replace("?","&"):e+=t,e):e}const a={src:"data-src",srcset:"data-srcset",selector:".j-lazy",root:null,rootMargin:"150px",threshold:0},n=function(){let e={},t=!1,i=0,s=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(t=arguments[0],i++);let a=function(i){for(let s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t&&"[object Object]"===Object.prototype.toString.call(i[s])?e[s]=n(!0,e[s],i[s]):e[s]=i[s])};for(;i<s;i++)a(arguments[i]);return e};function o(e,t){this.settings=n(a,t||{}),this.images=e||document.querySelectorAll(this.settings.selector),this.observer=null,this.init()}if(o.prototype={init:function(){if(!e.IntersectionObserver)return void this.loadImages();let t=this,a={root:this.settings.root,rootMargin:this.settings.rootMargin,threshold:this.settings.threshold};this.observer=new IntersectionObserver(function(e){Array.prototype.forEach.call(e,function(e){if(e.isIntersecting){t.observer.unobserve(e.target);let a=e.target.getAttribute(t.settings.src),n=e.target.getAttribute(t.settings.srcset);a&&i&&t.settings.webp&&(a=s(a,t.settings.webp)),n&&i&&t.settings.webp&&(n=s(n,t.settings.webp));let o=jQuery(e.target);"img"===e.target.tagName.toLowerCase()?(a&&(e.target.src=a),n&&(e.target.srcset=n),e.target.onerror=e=>{o.trigger("lazy_loaded")}):e.target.style.backgroundImage="url("+a+")",o.one("load",function(){o.trigger("lazy_loaded")})}})},a),Array.prototype.forEach.call(this.images,function(e){t.observer.observe(e)})},loadAndDestroy:function(){this.settings&&(this.loadImages(),this.destroy())},loadImages:function(){if(!this.settings)return;let e=this;Array.prototype.forEach.call(this.images,function(t){let i=t.getAttribute(e.settings.src),s=t.getAttribute(e.settings.srcset);"img"===t.tagName.toLowerCase()?(i&&(t.src=i),s&&(t.srcset=s)):t.style.backgroundImage="url('"+i+"')"})},destroy:function(){this.settings&&(this.observer.disconnect(),this.settings=null)}},e.jQuery){const t=e.jQuery;t.fn.lazyload=function(e){(e=e||{}).attribute=e.attribute||"data-original",e.src=e.attribute||"data-original";let i=t.makeArray(this),s="";if(i&&i.length){let e=jQuery(i[0]);e.is("img")?s=e.attr("src"):(s=window.getComputedStyle(i[0]).getPropertyValue("background-image"),s&&(s=s.slice(4,-1).replace(/['"]/g,"")))}const a=document.createElement("img");return a.src=s,a.onload=()=>{new o(i,e)},a.onerror=()=>{new o(i,e)},this}}return o}(g));var w,y={exports:{}},b={exports:{}};var x;var S="undefined"==typeof document?void 0:document,E=!!S&&"content"in S.createElement("template"),T=!!S&&S.createRange&&"createContextualFragment"in S.createRange();function C(e){return e=e.trim(),E?function(e){var t=S.createElement("template");return t.innerHTML=e,t.content.childNodes[0]}(e):T?function(e){return x||(x=S.createRange()).selectNode(S.body),x.createContextualFragment(e).childNodes[0]}(e):function(e){var t=S.createElement("body");return t.innerHTML=e,t.childNodes[0]}(e)}function _(e,t){var i,s,a=e.nodeName,n=t.nodeName;
vendor: 4,637 bytes, line 15
15return a===n||(i=a.charCodeAt(0),s=n.charCodeAt(0),i<=90&&s>=97?a===n.toUpperCase():s<=90&&i>=97&&n===a.toUpperCase())}function P(e,t,i){e[i]!==t[i]&&(e[i]=t[i],e[i]?e.setAttribute(i,""):e.removeAttribute(i))}var I={OPTION:function(e,t){var i=e.parentNode;if(i){var s=i.nodeName.toUpperCase();"OPTGROUP"===s&&(s=(i=i.parentNode)&&i.nodeName.toUpperCase()),"SELECT"!==s||i.hasAttribute("multiple")||(e.hasAttribute("selected")&&!t.selected&&(e.setAttribute("selected","selected"),e.removeAttribute("selected")),i.selectedIndex=-1)}P(e,t,"selected")},INPUT:function(e,t){P(e,t,"checked"),P(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),t.hasAttribute("value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var i=t.value;e.value!==i&&(e.value=i);var s=e.firstChild;if(s){var a=s.nodeValue;if(a==i||!i&&a==e.placeholder)return;s.nodeValue=i}},SELECT:function(e,t){if(!t.hasAttribute("multiple")){for(var i,s,a=-1,n=0,o=e.firstChild;o;)if("OPTGROUP"===(s=o.nodeName&&o.nodeName.toUpperCase()))(o=(i=o).firstChild)||(o=i.nextSibling,i=null);else{if("OPTION"===s){if(o.hasAttribute("selected")){a=n;break}n++}!(o=o.nextSibling)&&i&&(o=i.nextSibling,i=null)}e.selectedIndex=a}}};function k(){}function M(e){if(e)return e.getAttribute&&e.getAttribute("id")||e.id}var A,L,O=function(e){return function(t,i,s){if(s||(s={}),"string"==typeof i)if("#document"===t.nodeName||"HTML"===t.nodeName){var a=i;(i=S.createElement("html")).innerHTML=a}else if("BODY"===t.nodeName){var n=i;(i=S.createElement("html")).innerHTML=n;var o=i.querySelector("body");o&&(i=o)}else i=C(i);else 11===i.nodeType&&(i=i.firstElementChild);var r=s.getNodeKey||M,l=s.onBeforeNodeAdded||k,d=s.onNodeAdded||k,c=s.onBeforeElUpdated||k,u=s.onElUpdated||k,p=s.onBeforeNodeDiscarded||k,h=s.onNodeDiscarded||k,m=s.onBeforeElChildrenUpdated||k,f=s.skipFromChildren||k,g=s.addChild||function(e,t){return e.appendChild(t)},v=!0===s.childrenOnly,w=Object.create(null),y=[];function b(e){y.push(e)}function x(e,t){if(1===e.nodeType)for(var i=e.firstChild;i;){var s=void 0;t&&(s=r(i))?b(s):(h(i),i.firstChild&&x(i,t)),i=i.nextSibling}}function E(e,t,i){!1!==p(e)&&(t&&t.removeChild(e),h(e),x(e,i))}function T(e){if(1===e.nodeType||11===e.nodeType)for(var t=e.firstChild;t;){var i=r(t);i&&(w[i]=t),T(t),t=t.nextSibling}}function P(e){d(e);for(var t=e.firstChild;t;){var i=t.nextSibling,s=r(t);if(s){var a=w[s];a&&_(t,a)?(t.parentNode.replaceChild(a,t),A(a,t)):P(t)}else P(t);t=i}}function A(t,i,s){var a=r(i);if(a&&delete w[a],!s){var n=c(t,i);if(!1===n)return;if(n instanceof HTMLElement&&T(t=n),e(t,i),u(t),!1===m(t,i))return}"TEXTAREA"!==t.nodeName?function(e,t){var i,s,a,n,o,d=f(e,t),c=t.firstChild,u=e.firstChild;e:for(;c;){for(n=c.nextSibling,i=r(c);!d&&u;){if(a=u.nextSibling,c.isSameNode&&c.isSameNode(u)){c=n,u=a;continue e}s=r(u);var p=u.nodeType,h=void 0;if(p===c.nodeType&&(1===p?(i?i!==s&&((o=w[i])?a===o?h=!1:(e.insertBefore(o,u),s?b(s):E(u,e,!0),s=r(u=o)):h=!1):s&&(h=!1),(h=!1!==h&&_(u,c))&&A(u,c)):3!==p&&8!=p||(h=!0,u.nodeValue!==c.nodeValue&&(u.nodeValue=c.nodeValue))),h){c=n,u=a;continue e}s?b(s):E(u,e,!0),u=a}if(i&&(o=w[i])&&_(o,c))d||g(e,o),A(o,c);else{var m=l(c);!1!==m&&(m&&(c=m),c.actualize&&(c=c.actualize(e.ownerDocument||S)),g(e,c),P(c))}c=n,u=a}!function(e,t,i){for(;t;){var s=t.nextSibling;(i=r(t))?b(i):E(t,e,!0),t=s}}(e,u,s);var v=I[e.nodeName];v&&v(e,t)}(t,i):I.TEXTAREA(t,i)}T(t);var L,O,N=t,D=N.nodeType,j=i.nodeType;if(!v)if(1===D)1===j?_(t,i)||(h(t),N=function(e,t){for(var i=e.firstChild;i;){var s=i.nextSibling;t.appendChild(i),i=s}return t}(t,(L=i.nodeName,(O=i.namespaceURI)&&"http://www.w3.org/1999/xhtml"!==O?S.createElementNS(O,L):S.createElement(L)))):N=i;else if(3===D||8===D){if(j===D)return N.nodeValue!==i.nodeValue&&(N.nodeValue=i.nodeValue),N;N=i}if(N===i)h(t);else{if(i.isSameNode&&i.isSameNode(N))return;if(A(N,i,v),y)for(var $=0,B=y.length;$<B;$++){var z=w[y[$]];z&&E(z,z.parentNode,!1)}}return!v&&N!==t&&t.parentNode&&(N.actualize&&(N=N.actualize(t.ownerDocument||S)),t.parentNode.replaceChild(N,t)),N}}(function(e,t){var i,s,a,n,o=t.attributes;if(11!==t.nodeType&&11!==e.nodeType){for(var r=o.length-1;r>=0;r--)s=(i=o[r]).name,a=i.namespaceURI,n=i.value,a?(s=i.localName||s,e.getAttributeNS(a,s)!==n&&("xmlns"===i.prefix&&(s=i.name),e.setAttributeNS(a,s,n))):e.getAttribute(s)!==n&&e.setAttribute(s,n);for(var l=e.attributes,d=l.length-1;d>=0;d--)s=(i=l[d]).name,(a=i.namespaceURI)?(s=i.localName||s,t.hasAttributeNS(a,s)||e.removeAttributeNS(a,s)):t.hasAttribute(s)||e.removeAttribute(s)}}),N=i(Object.freeze({__proto__:null,default:O})),D={};function j(){return L||(L=1,function(e,t){Object.defineProperty(t,"__esMo
15dule",{value:!0});var i=function(){function e(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,i,s){return i&&e(t.prototype,i),s&&e(t,s),t}}();w||(w=1,Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError("this is null or not defined");var t=Object(this),i=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var s=arguments[1],a=0;a<i;){var n=t[a];if(e.call(s,n,a,t))return n;a++}}}));var s,a=(s=N)&&s.__esModule?s:{default:s},n=function(){if(A)return D;A=1,Object.defineProperty(D,"__esModule",{value:!0});var e=D.matches=function(e,t){for(var i=(e.document||e.ownerDocument).querySelectorAll(t),s=i.length;--s>=0&&i.item(s)!==e;);return s>-1};D.selector=function(e){return document.querySelector(e)};var t=D.findAncestor=function(t,i){if("function"==typeof t.closest)return t.closest(i)||null;for(;t&&t!==document;){if(e(t,i))return t;t=t.parentElement}return null},i=[];return D.on=function(e,s,a,n){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];a.split(" ").forEach(function(a){var r=function(e){var i=t(e.target,s);i&&(e.delegateTarget=i,n(e))};i.push({listener:r,element:e,query:s,event:a,capture:o}),e.addEventListener(a,r,o)})},D.off=function(e,t,s){s.split(" ").forEach(function(s){i.forEach(function(a,n){a.element===e&&a.query===t&&a.event===s&&(e.removeEventListener(s,a.listener,a.capture),i.splice(n,1))})})},D}();function o(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}var r="input paste copy click change keydown keyup keypress contextmenu mouseup mousedown mousemove touchstart touchend touchmove compositionstart compositionend focus",l="input change click",d=r.replace(/([a-z]+)/g,"[data-action-$1],")+"[data-action]",c=function(){function e(t){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.atemplate=[],this.events=[],t&&Object.keys(t).forEach(function(e){i[e]=t[e]}),this.data||(this.data={}),this.templates||(this.templates=[]);for(var s=0,a=this.templates.length;s<a;s+=1){var o=this.templates[s],r=(0,n.selector)("#"+o).innerHTML;this.atemplate.push({id:o,html:r,binded:!1})}}return i(e,[{key:"addDataBind",value:function(e){var t=this;(0,n.on)(e,"[data-bind]",l,function(e){var i,s,a=e.delegateTarget,n=a.getAttribute("data-bind"),o=a.getAttribute("href"),r=a.value;o&&(r=r.replace("#","")),"checkbox"===a.getAttribute("type")?(i=[],s=document.querySelectorAll('[data-bind="'+n+'"]'),[].forEach.call(s,function(e){e.checked&&i.push(e.value)})):"radio"!==a.getAttribute("type")&&t.updateDataByString(n,r)}),this.events.push({element:e,selector:"[data-bind]",event:l})}},{key:"addActionBind",value:function(e){var t=this;(0,n.on)(e,d,r,function(e){var i=e.delegateTarget,s=r.split(" "),a="action";
15s.forEach(function(t){i.getAttribute("data-action-"+t)&&e.type===t&&(a+="-"+t)});var n=i.getAttribute("data-"+a);if(n){var l,d=n.replace(/\(.*?\);?/,""),c=n.replace(/(.*?)\((.*?)\);?/,"$2").split(",");if(t.e=e,t.method&&t.method[d])(l=t.method)[d].apply(l,o(c));else t[d]&&t[d].apply(t,o(c))}}),this.events.push({element:e,selector:d,event:l})}},{key:"removeTemplateEvents",value:function(){this.events.forEach(function(e){(0,n.off)(e.element,e.selector,e.event)})}},{key:"addTemplate",value:function(e,t){this.atemplate.push({id:e,html:t,binded:!1}),this.templates.push(e)}},{key:"getData",value:function(){return JSON.parse(JSON.stringify(this.data))}},{key:"saveData",value:function(e){var t=JSON.stringify(this.data);localStorage.setItem(e,t)}},{key:"setData",value:function(e){var t=this;Object.keys(e).forEach(function(i){"function"!=typeof e[i]&&(t.data[i]=e[i])})}},{key:"loadData",value:function(e){var t=JSON.parse(localStorage.getItem(e));t&&this.setData(t)}},{key:"getRand",value:function(e,t){return~~(Math.random()*(t-e+1))+e}},{key:"getRandText",value:function(e){for(var t="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",s=0;s<e;s+=1)t+=i.charAt(Math.floor(this.getRand(0,62)));return t}},{key:"getDataFromObj",value:function(e,t){for(var i=(e=(e=e.replace(/\[([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+)\]/g,".$1")).replace(/^\./,"")).split(".");i.length;){var s=i.shift();if(!(s in t))return null;t=t[s]}return t}},{key:"getDataByString",value:function(e){var t=this.data;return this.getDataFromObj(e,t)}},{key:"updateDataByString",value:function(e,t){for(var i=this.data,s=e.split(".");s.length>1;)i=i[s.shift()];i[s.shift()]=t}},{key:"removeDataByString",value:function(e){for(var t=this.data,i=e.split(".");i.length>1;)t=t[i.shift()];var s=i.shift();s.match(/^\d+$/)?t.splice(Number(s),1):delete t[s]}},{key:"resolveBlock",value:function(e,t,i){var s=this,a=e.match(/<!-- BEGIN ([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+):touch#([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+) -->/g),n=e.match(/<!-- BEGIN ([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+):touchnot#([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+) -->/g),o=e.match(/<!-- BEGIN ([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+):exist -->/g),r=e.match(/<!-- BEGIN ([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+):empty -->/g);if(a)for(var l=0,d=a.length;l<d;l+=1){var c=a[l],u=(c=c.replace(/([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+):touch#([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+)/,"($1):touch#($2)")).replace(/BEGIN/,"END"),p=new RegExp(c+"(([\\n\\r\\t]|.)*?)"+u,"g");e=e.replace(p,function(e,i,a,n){return""+("function"==typeof t[i]?t[i].apply(s):s.getDataFromObj(i,t))===a?n:""})}if(n)for(var h=0,m=n.length;h<m;h+=1){var f=n[h],g=(f=f.replace(/([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+):touchnot#([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+)/,"($1):touchnot#($2)")).replace(/BEGIN/,"END"),v=new RegExp(f+"(([\\n\\r\\t]|.)*?)"+g,"g");e=e.replace(v,function(e,i,a,n){return""+("function"==typeof t[i]?t[i].apply(s):s.getDataFromObj(i,t))!==a?n:""})}if(o)for(var w=0,y=o.length;w<y;w+=1){var b=o[w],x=(b=b.replace(/([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+):exist/,"($1):exist")).replace(/BEGIN/,"END"),S=new RegExp(b+"(([\\n\\r\\t]|.)*?)"+x,"g");e=e.replace(S,function(e,i,a){var n="function"==typeof t[i]?t[i].apply(s):s.getDataFromObj(i,t);return n||0===n?a:""})}if(r)for(var E=0,T=r.length;E<T;E+=1){var C=r[E],_=(C=C.replace(/([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+):empty/,"($1):empty")).replace(/BEGIN/,"END"),P=new RegExp(C+"(([\\n\\r\\t]|.)*?)"+_,"g");e=e.replace(P,function(e,i,a){var n="function"==typeof t[i]?t[i].apply(s):s.getDataFromObj(i,t);return n||0===n?"":a})}return e=e.replace(/{([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+)}(\[([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+)\])*/g,function(e,a,n,o){var r=void 0;if(""+a=="i")r=i;else{if(!t[a]&&0!==t[a])return o&&s.convert&&s.convert[o]?s.convert[o].call(s,""):"";r="function"==typeof t[a]?t[a].apply(s):t[a]}return o&&s.convert&&s.convert[o]?s.convert[o].call(s,r):r})}},{key:"resolveAbsBlock",value:function(e){var t=this;return e=e.replace(/{(.*?)}/g,function(e,i){var s=t.getDataByString(i);return void 0!==s?"function"==typeof s?s.apply(t):s:e})}},{key:"resolveInclude",value:function(e){return e=e.replace(/<!-- #include id="(.*?)" -->/g,function(e,t){return(0,n.selector)("#"+t).innerHTML})}},{key:"resolveWith",value:function(e){return e=e.replace(/<!-- BEGIN ([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9
15c-\u7199]+):with -->(([\n\r\t]|.)*?)<!-- END ([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+):with -->/g,function(e,t){return e=e.replace(/data\-bind=['"](.*?)['"]/g,"data-bind='"+t+".$1'")})}},{key:"resolveLoop",value:function(e){var t=this;return e=e.replace(/<!-- BEGIN ([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+?):loop -->(([\n\r\t]|.)*?)<!-- END ([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+?):loop -->/g,function(e,i,s){var a=t.getDataByString(i),n=[],o="";if((n="function"==typeof a?a.apply(t):a)instanceof Array)for(var r=0,l=n.length;r<l;r+=1)o+=t.resolveBlock(s,n[r],r);return o=o.replace(/\\([^\\])/g,"$1")})}},{key:"removeData",value:function(e){var t=this.data;return Object.keys(t).forEach(function(i){for(var s=0,a=e.length;s<a;s+=1)i===e[s]&&delete t[i]}),this}},{key:"hasLoop",value:function(e){return!!e.match(/<!-- BEGIN ([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+?):loop -->(([\n\r\t]|.)*?)<!-- END ([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+?):loop -->/g)}},{key:"getHtml",value:function(e,t){var i=this.atemplate.find(function(t){return t.id===e}),s="";if(i&&i.html&&(s=i.html),t&&(s=e),!s)return"";var a=this.data;for(s=this.resolveInclude(s),s=this.resolveWith(s);this.hasLoop(s);)s=this.resolveLoop(s);return s=(s=this.resolveBlock(s,a)).replace(/\\([^\\])/g,"$1"),(s=this.resolveAbsBlock(s)).replace(/^([\t ])*\n/gm,"")}},{key:"update",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"html",i=arguments[1],s=this.templates;this.beforeUpdated&&this.beforeUpdated();for(var o=function(o,r){var l=s[o],d="#"+l,c=e.getHtml(l),u=(0,n.selector)("[data-id='"+l+"']");if(u)if("text"===t)u.innerText=c;else if(i){var p=document.createElement("div");p.innerHTML=c;var h=p.querySelector(i).outerHTML;(0,a.default)(u.querySelector(i),h)}else(0,a.default)(u,"<div data-id='"+l+"'>"+c+"</div>");else(0,n.selector)(d).insertAdjacentHTML("afterend",'<div data-id="'+l+'"></div>'),"text"===t?(0,n.selector)("[data-id='"+l+"']").innerText=c:(0,n.selector)("[data-id='"+l+"']").innerHTML=c;var m=e.atemplate.find(function(e){return e.id===l});m.binded||(m.binded=!0,e.addDataBind((0,n.selector)("[data-id='"+l+"']")),e.addActionBind((0,n.selector)("[data-id='"+l+"']")))},r=0,l=s.length;r<l;r+=1)o(r);return this.updateBindingData(i),this.onUpdated&&this.onUpdated(i),this}},{key:"updateBindingData",value:function(e){for(var t=this,i=this.templates,s=0,a=i.length;s<a;s+=1){var o=i[s],r=(0,n.selector)("[data-id='"+o+"']");e&&(r=r.querySelector(e));var l=r.querySelectorAll("[data-bind]");[].forEach.call(l,function(e){var i=t.getDataByString(e.getAttribute("data-bind"));"checkbox"===e.getAttribute("type")||"radio"===e.getAttribute("type")?i===e.value&&(e.checked=!0):e.value=i});var d=r.querySelectorAll("[data-bind-oneway]");[].forEach.call(d,function(e){var i=t.getDataByString(e.getAttribute("data-bind-oneway"));"checkbox"===e.getAttribute("type")||"radio"===e.getAttribute("type")?i===e.value&&(e.checked=!0):e.value=i})}return this}},{key:"applyMethod",value:function(e){for(var t,i=arguments.length,s=Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return(t=this.method)[e].apply(t,s)}},{key:"getComputedProp",value:function(e){return this.data[e].apply(this)}},{key:"remove",value:function(e){for(var t=this.data,i=e.split(".");i.length>1;)t=t[i.shift()];var s=i.shift();return s.match(/^\d+$/)?t.splice(Number(s),1):delete t[s],this}}]),e}();t.default=c,e.exports=t.default}(b,b.exports)),b.exports}var $,B={};var z,q={};function G(){if(z)return q;function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}z=1,Object.defineProperty(q,"__esModule",{value:!0}),q.isOldIE=q.getBrowser=q.removeClass=q.addClass=q.append=q.removeElement=q.getViewPos=q.parseQuery=q.triggerEvent=q.extend=q.isSmartPhone=void 0;q.isSmartPhone=function(){var e=navigator.userAgent;return e.indexOf("iPhone")>0||e.indexOf("iPad")>0||e.indexOf("ipod")>0||e.indexOf("Android")>0};var t=function t(i){i=i||{};for(var s=1;s<arguments.length;s++){var a=arguments[s];if(a)for(var n in a)a.hasOwnProperty(n)&&("object"===e(a[n])?i[n]=t(i[n],a[n]):i[n]=a[n])}return i};q.extend=t;q.triggerEvent=function(e,t,i){var s;window.CustomEvent?s=new CustomEvent(t,{cancelable:!0}):(s=document.createEvent("CustomEvent")).initCustomEvent(t,!1,!1,i),e.dispatchEvent(s)};q.parseQuery=function(e){for(var t,i,s,a=e.split("&"),n={},o=0,r=a.length;o<r;o++)void 0!==(t=a[o].split("="))[0]&&(i=t[0],s=void 0!==t[1]?t.slice(1).join("="):i,n[i]=decodeURIComponent(s));return n};q.getViewPos=function(e){return{left:e.getBoundingClientRect().left,top:e.getBoundingClientRect().top}};q.removeElement=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)};q.append=function(e,t){var i=document.createElement("div");for(i.innerHTML=t;i.children.length>0;)e.appendChild(i.children[0])};q.addClass=function(e,t){e.classList?e.classList.add(t):e.className+=" ".concat(t)};q.removeClass=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")};var i=function(){var e=window.navigator.userAgent.toLowerCase(),t=window.navigator.appVersion.toLowerCase(),i="unknown";return-1!=e.indexOf("msie")?i=-1!=t.indexOf("msie 6.")?"ie6":-1!=t.indexOf("msie 7.")?"ie7":-1!=t.indexOf("msie 8.")?"ie8":-1!=t.indexOf("msie 9.")?"ie9":-1!=t.indexOf("msie 10.")?"ie10":"ie":-1!=e.indexOf("trident/7")?i="ie11":-1!=e.indexOf("chrome")?i="chrome":-1!=e.indexOf("safari")?i="safari":-1!=e.indexOf("opera")?i="opera":-1!=e.indexOf("firefox")&&(i="firefox"),i};q.getBrowser=i;return q.isOldIE=function(){var e=i();return-1!==e.indexOf("ie")&&parseInt(e.replace(/[^0-9]/g,""))<=10},q}var V,R,H,F,U={};function W(){return V||(V=1,t=U,function(e){var i=e.Promise,s=i&&"resolve"in i&&"reject"in i&&"all"in i&&"race"in i&&function(){var e;return new i(function(t){e=t}),"function"==typeof e}();t?(t.Promise=s?i:E,t.Polyfill=E):s||(e.Promise=E);var a="pending",n="sealed",o="fulfilled",r="rejected",l=function(){};function d(e){return"[object Array]"===Object.prototype.toString.call(e)}var c,u="undefined"!=typeof setImmediate?setImmediate:setTimeout,p=[];function h(){for(var e=0;e<p.length;e++)p[e][0](p[e][1]);p=[],c=!1}function m(e,t){p.push([e,t]),c||(c=!0,u(h,0))}function f(e){var t=e.owner,i=t.state_,s=t.data_,a=e[i],n=e.then;if("function"==typeof a){i=o;try{s=a(s)}catch(e){y(n,e)}}
15g(n,s)||(i===o&&v(n,s),i===r&&y(n,s))}function g(e,t){var i;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"==typeof t)){var s=t.then;if("function"==typeof s)return s.call(t,function(s){i||(i=!0,t!==s?v(e,s):w(e,s))},function(t){i||(i=!0,y(e,t))}),!0}}catch(t){return i||y(e,t),!0}return!1}function v(e,t){e!==t&&g(e,t)||w(e,t)}function w(e,t){e.state_===a&&(e.state_=n,e.data_=t,m(x,e))}function y(e,t){e.state_===a&&(e.state_=n,e.data_=t,m(S,e))}function b(e){var t=e.then_;e.then_=void 0;for(var i=0;i<t.length;i++)f(t[i])}function x(e){e.state_=o,b(e)}function S(e){e.state_=r,b(e)}function E(e){if("function"!=typeof e)throw new TypeError("Promise constructor takes a function argument");if(this instanceof E==0)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.then_=[],function(e,t){function i(e){y(t,e)}try{e(function(e){v(t,e)},i)}catch(e){i(e)}}(e,this)}E.prototype={constructor:E,state_:a,then_:null,data_:void 0,then:function(e,t){var i={owner:this,then:new this.constructor(l),fulfilled:e,rejected:t};return this.state_===o||this.state_===r?m(f,i):this.then_.push(i),i.then},catch:function(e){return this.then(null,e)}},E.all=function(e){if(!d(e))throw new TypeError("You must pass an array to Promise.all().");return new this(function(t,i){var s=[],a=0;function n(e){return a++,function(i){s[e]=i,--a||t(s)}}for(var o,r=0;r<e.length;r++)(o=e[r])&&"function"==typeof o.then?o.then(n(r),i):s[r]=o;a||t(s)})},E.race=function(e){if(!d(e))throw new TypeError("You must pass an array to Promise.race().");return new this(function(t,i){for(var s,a=0;a<e.length;a++)(s=e[a])&&"function"==typeof s.then?s.then(t,i):t(s)})},E.resolve=function(e){return e&&"object"==typeof e&&e.constructor===this?e:new this(function(t){t(e)})},E.reject=function(e){return new this(function(t,i){i(e)})}}("undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:U)),U;var t}function X(){return R||(R=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,s=(i=j())&&i.__esModule?i:{default:i};function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function n(e,t,i){return t&&function(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}(e.prototype,t),e}function o(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}!function(){if($)return B;$=1;try{var e=new window.CustomEvent("test");if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default")}catch(e){var t=function(e,t){var i,s;return t=t||{bubbles:!1,cancelable:!1,detail:void 0},(i=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),s=i.preventDefault,i.preventDefault=function(){s.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},i};t.prototype=window.Event.prototype,window.CustomEvent=t}}();var d=G(),c=W().Promise,u={classNames:{smartPhoto:"smartphoto",smartPhotoClose:"smartphoto-close",smartPhotoBody:"smartphoto-body",smartPhotoInner:"smartphoto-inner",smartPhotoContent:"smartphoto-content",smartPhotoImg:"smartphoto-img",smartPhotoImgOnMove:"smartphoto-img-onmove",smartPhotoImgElasticMove:"smartphoto-img-elasticmove",smartPhotoImgWrap:"smartphoto-img-wrap",smartPhotoArrows:"smartphoto-arrows",smartPhotoNav:"smartphoto-nav",smartPhotoArrowRight:"smartphoto-arrow-right",smartPhotoArrowLeft:"smartphoto-arrow-left",smartPhotoArrowHideIcon:"smartphoto-arrow-hide",smartPhotoImgLeft:"smartphoto-img-left",smartPhotoImgRight:"smartphoto-img-right",smartPhotoList:"smartphoto-list",smartPhotoListOnMove:"smartphoto-list-onmove",smartPhotoHeader:"smartphoto-header",smartPhotoCount:"smartphoto-count",smartPhotoCaption:"smartphoto-caption",smartPhotoDismiss:"smartphoto-dismiss",smartPhotoLoader:"smartphoto-loader",smartPhotoLoaderWrap:"smartphoto-loader-wrap",smartPhotoImgClone:"smartphoto-img-clone"},message:{gotoNextImage:"go to the next image",gotoPrevImage:"go to the previous image",closeDialog:"close the image dialog"},arrows:!0,nav:!0,showAnimation:!0,verticalGravity:!1,useOrientationApi:!1,useHistoryApi:!0,swipeTopToClose:!1,swipeBottomToClose:!0,swipeOffset:100,headerHeight:60,footerHeight:60,forceInterval:10,registance:.5,loadOffset:2,resizeStyle:"fit",lazyAttribute:"data-src"},p=function(e){function t(e,i){var s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(s=o(this,r(t).call(this))).data=d.extend({},u,i),s.data.currentIndex=0,s.data.oldIndex=0,s.data.hide=!0,s.data.group={},s.data.scaleSize=1,s.data.scale=!1,s.pos={x:0,y:0},s.data.photoPosX=0,s.data.photoPosY=0,s.handlers=[],s.convert={increment:s.increment,virtualPos:s.virtualPos,round:s.round},s.data.groupItems=s.groupItems,s.elements="string"==typeof e?document.querySelectorAll(e):e;var a=new Date;s.tapSecond=a.getTime(),s.onListMove=!1,s.clicked=!1,s.id=s._getUniqId(),s.vx=0,s.vy=0,s.data.appearEffect=null,s.addTemplate(s.id,'<div class="\\{classNames.smartPhoto\\}"\x3c!-- BEGIN hide:exist --\x3e aria-hidden="true"\x3c!-- END hide:exist --\x3e\x3c!-- BEGIN hide:empty --\x3e aria-hidden="false"\x3c!-- END hide:empty --\x3e role="dialog">\n\t<div class="\\{classNames.smartPhotoBody\\}">\n\t\t<div class="\\{classNames.smartPhotoInner\\}">\n\t\t\t <div class="\\{classNames.smartPhotoHeader\\}">\n\t\t\t\t\t<span class="\\{classNames.smartPhotoCount\\}">{currentIndex}[increment]/{total}</span>\n\t\t\t\t\t<span class="\\{classNames.smartPhotoCaption\\}
15" aria-live="polite" tabindex="-1">\x3c!-- BEGIN groupItems:loop --\x3e\x3c!-- \\BEGIN currentIndex:touch#{index} --\x3e{caption}\x3c!-- \\END currentIndex:touch#{index} --\x3e\x3c!-- END groupItems:loop --\x3e</span>\n\t\t\t\t\t<button class="\\{classNames.smartPhotoDismiss\\}" data-action-click="hidePhoto()"><span class="smartphoto-sr-only">\\{message.closeDialog\\}</span></button>\n\t\t\t\t</div>\n\t\t\t\t<div class="\\{classNames.smartPhotoContent\\}"\x3c!-- BEGIN isSmartPhone:exist --\x3e data-action-touchstart="beforeDrag" data-action-touchmove="onDrag" data-action-touchend="afterDrag(false)"\x3c!-- END isSmartPhone:exist --\x3e\x3c!-- BEGIN isSmartPhone:empty --\x3e data-action-click="hidePhoto()"\x3c!-- END isSmartPhone:empty --\x3e>\n\t\t\t\t</div>\n\t\t\t\t<ul style="transform:translate({translateX}[round]px,{translateY}[round]px);" class="\\{classNames.smartPhotoList\\}\x3c!-- BEGIN onMoveClass:exist --\x3e \\{classNames.smartPhotoListOnMove\\}\x3c!-- END onMoveClass:exist --\x3e">\n\t\t\t\t\t\x3c!-- BEGIN groupItems:loop --\x3e\n\t\t\t\t\t<li style="transform:translate({translateX}[round]px,{translateY}[round]px);" class="\x3c!-- \\BEGIN currentIndex:touch#{index} --\x3ecurrent\x3c!-- \\END currentIndex:touch#{index} --\x3e">\n\t\t\t\t\t\t\x3c!-- BEGIN processed:exist --\x3e\n\t\t\t\t\t\t<div style="transform:translate({x}[round]px,{y}[round]px) scale({scale});" class="\\\\{classNames.smartPhotoImgWrap\\\\}"\x3c!-- \\BEGIN isSmartPhone:empty --\x3e data-action-mousemove="onDrag" data-action-mousedown="beforeDrag" data-action-mouseup="afterDrag"\x3c!-- \\END isSmartPhone:empty --\x3e\x3c!-- \\BEGIN isSmartPhone:exist --\x3e data-action-touchstart="beforeDrag" data-action-touchmove="onDrag" data-action-touchend="afterDrag"\x3c!-- \\END isSmartPhone:exist --\x3e>\n\t\t\t\t\t\t\t<img style="\x3c!-- \\BEGIN currentIndex:touch#{index} --\x3etransform:translate(\\{photoPosX\\}[virtualPos]px,\\{photoPosY\\}[virtualPos]px) scale(\\{scaleSize\\});\x3c!-- \\END currentIndex:touch#{index} --\x3ewidth:{width}px;" src="{src}" class="\\\\{classNames.smartPhotoImg\\\\}\x3c!-- \\BEGIN scale:exist --\x3e \\\\{classNames.smartPhotoImgOnMove\\\\}\x3c!-- \\END scale:exist --\x3e\x3c!-- \\BEGIN elastic:exist --\x3e \\\\{classNames.smartPhotoImgElasticMove\\\\}\x3c!-- \\END elastic:exist --\x3e\x3c!-- \\BEGIN appear:exist --\x3e active\x3c!-- \\END appear:exist --\x3e" ondragstart="return false;">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END processed:exist --\x3e\n\t\t\t\t\t\t\x3c!-- BEGIN processed:empty --\x3e\n\t\t\t\t\t\t<div class="\\\\{classNames.smartPhotoLoaderWrap\\\\}">\n\t\t\t\t\t\t\t<span class="\\\\{classNames.smartPhotoLoader\\\\}"></span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END processed:empty --\x3e\n\t\t\t\t\t</li>\n\t\t\t\t\t\x3c!-- END groupItems:loop --\x3e\n\t\t\t\t</ul>\n\t\t\t\t\x3c!-- BEGIN arrows:exist --\x3e\n\t\t\t\t<ul class="\\{classNames.smartPhotoArrows\\}"\x3c!-- BEGIN hideUi:exist --\x3e aria-hidden="true"\x3c!-- END hideUi:exist --\x3e\x3c!-- BEGIN hideUi:exist --\x3e aria-hidden="false"\x3c!-- END hideUi:exist --\x3e>\n\t\t\t\t\t<li class="\\{classNames.smartPhotoArrowLeft\\}\x3c!-- BEGIN isSmartPhone:exist --\x3e \\{classNames.smartPhotoArrowHideIcon\\}\x3c!-- END isSmartPhone:exist --\x3e"\x3c!-- BEGIN showPrevArrow:empty --\x3e aria-hidden="true"\x3c!-- END showPrevArrow:empty --\x3e><a href="#" data-action-click="gotoSlide({prev})" role="button"><span class="smartphoto-sr-only">\\{message.gotoPrevImage\\}</span></a></li>\n\t\t\t\t\t<li class="\\{classNames.smartPhotoArrowRight\\}\x3c!-- BEGIN isSmartPhone:exist --\x3e \\{classNames.smartPhotoArrowHideIcon\\}\x3c!-- END isSmartPhone:exist --\x3e"\x3c!-- BEGIN showNextArrow:empty --\x3e aria-hidden="true"\x3c!-- END showNextArrow:empty --\x3e><a href="#" data-action-click="gotoSlide({next})" role="button"><span class="smartphoto-sr-only">\\{message.gotoNextImage\\}</span></a></li>\n\t\t\t\t</ul>\n\t\t\t\t\x3c!-- END arrows:exist --\x3e\n\t\t\t\t\x3c!-- BEGIN nav:exist --\x3e\n\t\t\t\t<nav class="\\{classNames.smartPhotoNav\\}"\x3c!-- BEGIN hideUi:exist --\x3e aria-hidden="true"\x3c!-- END hideUi:exist --\x3e\x3c!-- BEGIN hideUi:exist --\x3e aria-hidden="false"\x3c!-- END hideUi:exist --\x3e>\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t\x3c!-- BEGIN groupItems:loop --\x3e\n\t\t\t\t\t\t<li><a href="#" data-action-click="gotoSlide({index})" class="\x3c!-- \\BEGIN currentIndex:touch#{index} --\x3ecurrent\x3c!-- \\END currentIndex:touch#{index} --\x3e" style="background-image:url(\'{thumb}\');" role="button"><span class="smartphoto-sr-only">go to {caption}</span></a></li>\n\t\t\t\t\t\t\x3c!-- END groupItems:loop --\x3e\n\t\t\t\t\t</ul>\n\t\t\t\t</nav>\n\t\t\t\t\x3c!-- END nav:exist --\x3e\n\t\t</div>\n\t\t\x3c!-- BEGIN appearEffect:exist --\x3e\n\t\t<img src=\\{appearEffect.img\\}\n\t\tclass="\\{classNames.smartPhotoImgClone\\}"\n\t\tstyle="width:\\{appearEffect.width\\}px;height:\\{appearEffect.height\\}px;transform:translate(\\{appearEffect.left\\}px,\\{appearEffect.top\\}px) scale(1)" />\n\t\t\x3c!-- END appearEffect:exist --\x3e\n\t</div>\n</div>\n'),s.data.isSmartPhone=s._isSmartPhone();var n=document.querySelector("body");d.append(n,"<div data-id='".concat(s.id,"'></div>")),[].forEach.call(s.elements,function(e){s.addNewItem(e)}),s.update();var l=s._getCurrentItemByHash();if(l&&d.triggerEvent(l.element,"click"),s.interval=setInterval(function(){s._doAnim()},s.data.forceInterval),!s.data.isSmartPhone){var p=function(){s.groupItems()&&(s._resetTranslate(),s._setPosByCurrentIndex(),s._setSizeByScreen(),s.update())},h=function(e){var t=e.keyCode||e.which;!0!==s.data.hide&&(37===t?s.gotoSlide(s.data.prev):39===t?s.gotoSlide(s.data.next):27===t&&s.hidePhoto())};return window.addEventListener("resize",p),window.addEventListener("keydown",h),s._registerRemoveEvent(window,"resize",p),s._registerRemoveEvent(window,"keydown",h),o(s)}var m=function(){if(s.groupItems()){s._resetTranslate(),s._setPosByCurrentIndex(),s._setHashByCurrentIndex(),s._setSizeByScreen(),s.update();var e=s._getWindowWidth();!function t(i){new c(function(e){setTimeout(function(){e()},25)}).then(function(){e!==s._getWindowWidth()?(s._resetTranslate(),s._setPosByCurrentIndex(),s._setHashByCurrentIndex(),s._setSizeByScreen(),s.update()):i<=500&&t(i+25)})}(0)}};if(window.addEventListener("orientationchange",m),s._registerRemoveEvent(window,"orientationchange",m),!s.data.useOrientationApi)return o(s);var f=function(e){var t=window.orientation;e&&e.gamma&&!s.data.appearEffect&&(s.isBeingZoomed||s.photoSwipable||s.data.elastic||!s.data.scale||(0===t?s._calcGravity(e.gamma,e.beta):90===t?s._calcGravity(e.beta,e.gamma):-90===t?s._calcGravity(-e.beta,-e.gamma):180===t&&s._calcGravity(-e.gamma,-e.beta)))};return window.addEventListener("deviceorientation",f),s._registerRemoveEvent(window,"deviceorientation",f),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e),n(t,[{key:"on",value:function(e,t){var i=this._getElementByClass(this.data.classNames.smartPhoto),s=function(e){t.call(i,e)};i.addEventListener(e,s),this._registerRemoveEvent(i,e,s)}},{key:"_registerRemoveEvent",value:function(e,t,i){this.handlers.push({target:e,event:t,handler:i})}}
15,{key:"destroy",value:function(){this.handlers.forEach(function(e){e.target.removeEventListener(e.event,e.handler)});var e=document.querySelector('[data-id="'.concat(this.id,'"]'));d.removeElement(e),clearInterval(this.interval),this.removeTemplateEvents()}},{key:"increment",value:function(e){return e+1}},{key:"round",value:function(e){return Math.round(e)}},{key:"virtualPos",value:function(e){return(e=parseInt(e,10))/this._getSelectedItem().scale/this.data.scaleSize}},{key:"groupItems",value:function(){return this.data.group[this.data.currentGroup]}},{key:"_resetTranslate",value:function(){var e=this;this.groupItems().forEach(function(t,i){t.translateX=e._getWindowWidth()*i})}},{key:"addNewItem",value:function(e){var t=this,i=e.getAttribute("data-group")||"nogroup",s=this.data.group;"nogroup"===i&&e.setAttribute("data-group","nogroup"),s[i]||(s[i]=[]);var a=s[i].length,n=document.querySelector("body"),o=e.getAttribute("href"),r=e.querySelector("img"),l=o;r&&(l=r.getAttribute(this.data.lazyAttribute)?r.getAttribute(this.data.lazyAttribute):r.currentSrc?r.currentSrc:r.src);var d={src:o,thumb:l,caption:e.getAttribute("data-caption"),groupId:i,translateX:this._getWindowWidth()*a,index:a,translateY:0,width:50,height:50,id:e.getAttribute("data-id")||a,loaded:!1,processed:!1,element:e};s[i].push(d),this.data.currentGroup=i,e.getAttribute("data-id")||e.setAttribute("data-id",a),e.setAttribute("data-index",a);var c=function(i){i.preventDefault(),t.data.currentGroup=e.getAttribute("data-group"),t.data.currentIndex=parseInt(e.getAttribute("data-index"),10),t._setHashByCurrentIndex();var s=t._getSelectedItem();s.loaded?(t._initPhoto(),t.addAppearEffect(e,s),t.clicked=!0,t.update(),n.style.overflow="hidden",t._fireEvent("open")):t._loadItem(s).then(function(){t._initPhoto(),t.addAppearEffect(e,s),t.clicked=!0,t.update(),n.style.overflow="hidden",t._fireEvent("open")})};e.addEventListener("click",c),this._registerRemoveEvent(e,"click",c)}},{key:"_initPhoto",value:function(){this.data.total=this.groupItems().length,this.data.hide=!1,this.data.photoPosX=0,this.data.photoPosY=0,this._setPosByCurrentIndex(),this._setSizeByScreen(),this.setArrow(),"fill"===this.data.resizeStyle&&this.data.isSmartPhone&&(this.data.scale=!0,this.data.hideUi=!0,this.data.scaleSize=this._getScaleBoarder())}},{key:"onUpdated",value:function(){var e=this;if(this.data.appearEffect&&this.data.appearEffect.once&&(this.data.appearEffect.once=!1,this.execEffect().then(function(){e.data.appearEffect=null,e.data.appear=!0,e.update()})),this.clicked){this.clicked=!1;var t=this.data.classNames;this._getElementByClass(t.smartPhotoCaption).focus()}}},{key:"execEffect",value:function(){var e=this;return new c(function(t){d.isOldIE()&&t();var i=e.data,s=i.appearEffect,a=i.classNames,n=e._getElementByClass(a.smartPhotoImgClone);n.addEventListener("transitionend",function e(){n.removeEventListener("transitionend",e,!0),t()},!0),setTimeout(function(){n.style.transform="translate(".concat(s.afterX,"px, ").concat(s.afterY,"px) scale(").concat(s.scale,")")},10)})}},{key:"addAppearEffect",value:function(e,t){if(!1!==this.data.showAnimation){var i=e.querySelector("img"),s=d.getViewPos(i),a={},n=1;a.width=i.offsetWidth,a.height=i.offsetHeight,a.top=s.top,a.left=s.left,a.once=!0,i.getAttribute(this.data.lazyAttribute)?a.img=i.getAttribute(this.data.lazyAttribute):a.img=t.src;var o=this._getWindowWidth(),r=this._getWindowHeight(),l=r-this.data.headerHeight-this.data.footerHeight;"fill"===this.data.resizeStyle&&this.data.isSmartPhone?n=i.offsetWidth>i.offsetHeight?r/i.offsetHeight:o/i.offsetWidth:(a.width>=a.height?n=t.height<l?t.width/a.width:l/a.height:a.height>a.width&&(n=t.height<l?t.height/a.height:l/a.height),a.width*n>o&&(n=o/a.width));var c=(n-1)/2*i.offsetWidth+(o-i.offsetWidth*n)/2,u=(n-1)/2*i.offsetHeight+(r-i.offsetHeight*n)/2;a.afterX=c,a.afterY=u,a.scale=n,this.data.appearEffect=a}else this.data.appear=!0}},{key:"hidePhoto",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"bottom";this.data.hide=!0,this.data.appear=!1,this.data.appearEffect=null,this.data.hideUi=!1,this.data.scale=!1,this.data.scaleSize=1;var i=void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,s=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,a=document.querySelector("body");window.location.hash&&this._setHash(""),window.scroll(i,s),this._doHideEffect(t).then(function(){e.update(
15),a.style.overflow="",e._fireEvent("close")})}},{key:"_doHideEffect",value:function(e){var t=this;return new c(function(i){d.isOldIE()&&i();var s=t.data.classNames,a=t._getElementByClass(s.smartPhoto),n=t._getElementByQuery(".current .".concat(s.smartPhotoImg)),o=t._getWindowHeight();a.style.opacity=0,"bottom"===e?n.style.transform="translateY(".concat(o,"px)"):"top"===e&&(n.style.transform="translateY(-".concat(o,"px)")),a.addEventListener("transitionend",function e(){a.removeEventListener("transitionend",e,!0),i()},!0)})}},{key:"_getElementByClass",value:function(e){return document.querySelector('[data-id="'.concat(this.id,'"] .').concat(e))}},{key:"_getElementByQuery",value:function(e){return document.querySelector('[data-id="'.concat(this.id,'"] ').concat(e))}},{key:"_getTouchPos",value:function(){var e=0,t=0,i="undefined"==typeof event?this.e:event;return this._isTouched(i)?(e=i.touches[0].pageX,t=i.touches[0].pageY):i.pageX&&(e=i.pageX,t=i.pageY),{x:e,y:t}}},{key:"_getGesturePos",value:function(e){var t=e.touches;return[{x:t[0].pageX,y:t[0].pageY},{x:t[1].pageX,y:t[1].pageY}]}},{key:"_setPosByCurrentIndex",value:function(){var e=this,t=-1*this.groupItems()[this.data.currentIndex].translateX;this.pos.x=t,setTimeout(function(){e.data.translateX=t,e.data.translateY=0,e._listUpdate()},1)}},{key:"_setHashByCurrentIndex",value:function(){var e=void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,t=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,i=this.groupItems()[this.data.currentIndex].id,s=this.data.currentGroup,a="group=".concat(s,"&photo=").concat(i);this._setHash(a),window.scroll(e,t)}},{key:"_setHash",value:function(e){window.history&&window.history.pushState&&this.data.useHistoryApi&&(e?window.history.replaceState(null,null,"".concat(location.pathname).concat(location.search,"#").concat(e)):window.history.replaceState(null,null,"".concat(location.pathname).concat(location.search)))}},{key:"_getCurrentItemByHash",value:function(){var e=this.data.group,t=location.hash.substr(1),i=d.parseQuery(t),s=null,a=function(e){i.group===e.groupId&&i.photo===e.id&&(s=e)};return Object.keys(e).forEach(function(t){e[t].forEach(a)}),s}},{key:"_loadItem",value:function(e){return new c(function(t){var i=new Image;i.onload=function(){e.width=i.width,e.height=i.height,e.loaded=!0,t()},i.onerror=function(){t()},i.src=e.src})}},{key:"_getItemByIndex",value:function(e){var t=this.data;return t.group[t.currentGroup][e]?t.group[t.currentGroup][e]:null}},{key:"_loadNeighborItems",value:function(){for(var e=this,t=this.data.currentIndex,i=this.data.loadOffset,s=t+i,a=[],n=t-i;n<s;n++){var o=this._getItemByIndex(n);o&&!o.loaded&&a.push(this._loadItem(o))}a.length&&c.all(a).then(function(){e._initPhoto(),e.update()})}},{key:"_setSizeByScreen",value:function(){var e=this._getWindowWidth(),t=this._getWindowHeight(),i=this.data.headerHeight,s=this.data.footerHeight,a=t-(i+s);
15this.groupItems().forEach(function(i){i.loaded&&(i.processed=!0,i.scale=a/i.height,i.height<a&&(i.scale=1),i.x=(i.scale-1)/2*i.width+(e-i.width*i.scale)/2,i.y=(i.scale-1)/2*i.height+(t-i.height*i.scale)/2,i.width*i.scale>e&&(i.scale=e/i.width,i.x=(i.scale-1)/2*i.width))})}},{key:"_slideList",value:function(){var e=this;this.data.scaleSize=1,this.isBeingZoomed=!1,this.data.hideUi=!1,this.data.scale=!1,this.data.photoPosX=0,this.data.photoPosY=0,this.data.onMoveClass=!0,this._setPosByCurrentIndex(),this._setHashByCurrentIndex(),this._setSizeByScreen(),setTimeout(function(){var t=e._getSelectedItem();e.data.onMoveClass=!1,e.setArrow(),e.update(),e.data.oldIndex!==e.data.currentIndex&&e._fireEvent("change"),e.data.oldIndex=e.data.currentIndex,e._loadNeighborItems(),t.loaded||e._loadItem(t).then(function(){e._initPhoto(),e.update()})},200)}},{key:"gotoSlide",value:function(e){this.e&&this.e.preventDefault&&this.e.preventDefault(),this.data.currentIndex=parseInt(e,10),this.data.currentIndex||(this.data.currentIndex=0),this._slideList()}},{key:"setArrow",value:function(){var e=this.groupItems().length,t=this.data.currentIndex+1,i=this.data.currentIndex-1;this.data.showNextArrow=!1,this.data.showPrevArrow=!1,t!==e&&(this.data.next=t,this.data.showNextArrow=!0),-1!==i&&(this.data.prev=i,this.data.showPrevArrow=!0)}},{key:"beforeDrag",value:function(){if(this._isGestured(this.e))this.beforeGesture();else if(this.isBeingZoomed=!1,this.data.scale)this.beforePhotoDrag();else{var e=this._getTouchPos();this.isSwipable=!0,this.dragStart=!0,this.firstPos=e,this.oldPos=e}}},{key:"afterDrag",value:function(){var e=this.groupItems(),t=(new Date).getTime(),i=this.tapSecond-t,s=0,a=0;if(this.isSwipable=!1,this.onListMove=!1,this.oldPos&&(s=this.oldPos.x-this.firstPos.x,a=this.oldPos.y-this.firstPos.y),this.isBeingZoomed)this.afterGesture();else if(this.data.scale)this.afterPhotoDrag();else if(d.isSmartPhone()||0!==s||0!==a){if(Math.abs(i)<=500&&0===s&&0===a)return this.e.preventDefault(),void this.zoomPhoto();this.tapSecond=t,this._fireEvent("swipeend"),"horizontal"===this.moveDir&&(s>=this.data.swipeOffset&&0!==this.data.currentIndex?this.data.currentIndex-=1:s<=-this.data.swipeOffset&&this.data.currentIndex!==e.length-1&&(this.data.currentIndex+=1),this._slideList()),"vertical"===this.moveDir&&(this.data.swipeBottomToClose&&a>=this.data.swipeOffset?this.hidePhoto("bottom"):this.data.swipeTopToClose&&a<=-this.data.swipeOffset?this.hidePhoto("top"):(this.data.translateY=0,this._slideList()))}else this.zoomPhoto()}},{key:"onDrag",value:function(){if(this.e.preventDefault(),this._isGestured(this.e)&&!1===this.onListMove)this.onGesture();else if(!this.isBeingZoomed)if(this.data.scale)this.onPhotoDrag();else if(this.isSwipable){var e=this._getTouchPos(),t=e.x-this.oldPos.x,i=e.y-this.firstPos.y;this.dragStart&&(this._fireEvent("swipestart"),this.dragStart=!1,Math.abs(t)>Math.abs(i)?this.moveDir="horizontal":this.moveDir="vertical"),"horizontal"===this.moveDir?(this.pos.x+=t,this.data.translateX=this.pos.x):this.data.translateY=i,this.onListMove=!0,this.oldPos=e,this._listUpdate()}}},{key:"zoomPhoto",value:function(){var e=this;this.data.hideUi=!0,this.data.scaleSize=this._getScaleBoarder(),this.data.scaleSize<=1||(this.data.photoPosX=0,this.data.photoPosY=0,this._photoUpdate(),setTimeout(function(){e.data.scale=!0,e._photoUpdate(),e._fireEvent("zoomin")},300))}},{key:"zoomOutPhoto",value:function(){this.data.scaleSize=1,this.isBeingZoomed=!1,this.data.hideUi=!1,this.data.scale=!1,this.data.photoPosX=0,this.data.photoPosY=0,this._photoUpdate(),this._fireEvent("zoomout")}},{key:"beforePhotoDrag",value:function(){var e=this._getTouchPos();this.photoSwipable=!0,this.data.photoPosX||(this.data.photoPosX=0),this.data.photoPosY||(this.data.photoPosY=0),this.oldPhotoPos=e,this.firstPhotoPos=e}},{key:"onPhotoDrag",value:function(){if(this.photoSwipable){this.e.preventDefault();var e=this._getTouchPos(),t=e.x-this.oldPhotoPos.x,i=e.y-this.oldPhotoPos.y,s=this._round(this.data.scaleSize*t,6),a=this._round(this.data.scaleSize*i,6);"number"==typeof s&&(this.data.photoPosX+=s,this.photoVX=s),"number"==typeof a&&(this.data.photoPosY+=a,this.photoVY=a),this.oldPhotoPos=e,this._photoUpdate()}}},{key:"afterPhotoDrag",value:function(){if(this.oldPhotoPos.x===this.firstPhotoPos.x&&this.photoSwipable)this.photoSwipable=!1,this.zoomOutPhoto();else{this.photoSwipable=!1;var e=this._getSelectedItem(),t=this._makeBound(e),i=this.data.swipeOffset*this.data.scaleSize,s=0,a=0;if(this.data.photoPosX>t.maxX?s=-1:this.data.photoPosX<t.minX&&(s=1),this.data.photoPosY>t.maxY?a=-1:this.data.photoPosY<t.minY&&(a=1),this.data.photoPosX-t.maxX>i&&0!==this.data.currentIndex)return void this.gotoSlide(this.data.prev);if(t.minX-this.data.photoPosX>i&&this.data.currentIndex+1!==this.data.total)return void this.gotoSlide(this.data.next);0===s&&0===a?(this.vx=this.photoVX/5,this.vy=this.photoVY/5):this._registerElasticForce(s,a)}}},{key:"beforeGesture",value:function(){this._fireEvent("gesturestart");var e=this._getGesturePos(this.e),t=this._getDistance(e[0],e[1]);this.isBeingZoomed=!0,this.oldDistance=t,this.data.scale=!0,this.e.preventDefault()}},{key:"onGesture",value:function(){var e=this._getGesturePos(this.e),t=this._getDistance(e[0],e[1]),i=(t-this.oldDistance)/100,s=this.data.scaleSize,a=this.data.photoPosX,n=this.data.photoPosY;this.isBeingZoomed=!0,this.data.scaleSize+=this._round(i,6),this.data.scaleSize<.2&&(this.data.scaleSize=.2),this.data.scaleSize<s&&(this.data.photoPosX=(1+this.data.scaleSize-s)*a,this.data.photoPosY=(1+this.data.scaleSize-s)*n),this.data.scaleSize<1||this.data.scaleSize>this._getScaleBoarder()?this.data.hideUi=!0:this.data.hideUi=!1,this.oldDistance=t,this.e.preventDefault(),this._photoUpdate()}},{key:"afterGesture",value:function(){this.data.scaleSize>this._getScaleBoarder()||(this.data.photoPosX=0,this.data.photoPosY=0,this.data.scale=!1,this.data.scaleSize=1,this.data.hideUi=!1,this._fireEvent("gestureend"),this._photoUpdate())}},{key:"_getForceAndTheta",value:function(e,t){return{force:Math.sqrt(e*e+t*t),theta:Math.atan2(t,e)}}},{key:"_getScaleBoarder",value:function(){var e=this._getSelectedItem(),t=this._getWindowWidth(),i=this._getWindowHeight();return d.isSmartPhone()?e.width>e.height?i/(e.height*e.scale):t/(e.width*e.scale):1/e.scale}},{key:"_makeBound",value:function(e){var t,i,s,a,n=e.width*e.scale*this.data.scaleSize,o=e.height*e.scale*this.data.scaleSize,r=this._getWindowWidth(),l=this._getWindowHeight();return t=r>n?-1*(s=(r-n)/2):-1*(s=(n-r)/2),i=l>o?-1*(a=(l-o)/2):-1*(a=(o-l)/2),{minX:this._round(t,6)*this.data.scaleSize,minY:this._round(i,6)*this.data.scaleSize,maxX:this._round(s,6)*this.data.scaleSize,maxY:this._round(a,6)*this.data.scaleSize}}},{key:"_registerElasticForce",value:function(e,t){var i=this,s=this._getSelectedItem(),a=this._makeBound(s);this.data.elastic=!0,1===e?this.data.photoPosX=a.minX:-1===e&&(this.data.photoPosX=a.maxX),1===t?this.data.photoPosY=a.minY:-1===t&&(this.data.photoPosY=a.maxY),this._photoUpdate(),setTimeout(function(){i.data.elastic=!1,i._photoUpdate()},300)}},{key:"_getSelectedItem",value:function(){var e=this.data,t=e.currentIndex;return e.group[e.currentGroup][t]}},{key:"_getUniqId",value:function(){return(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase()}},{key:"_getDistance",value:function(e,t){var i=e.x-t.x,s=e.y-t.y;return Math.sqrt(i*i+s*s)}},{key:"_round",value:function(e,t){var i=Math.pow(10,t);return e*=i,e=Math.round(e),e/=i}},{key:"_isTouched",value:function(e){return!(!e||!e.touches)}},{key:"_isGestured",value:function(e){return!!(e&&e.touches&&e.touches.length>1)}},{key:"_isSmartPhone",value:function(){var e=navigator.userAgent;return e.indexOf("iPhone")>0||e.indexOf("iPad")>0||e.indexOf("ipod")>0||e.indexOf("Android")>0}},{key:"_calcGravity",value:function(e,t){(e>5||e<-5)&&(this.vx+=.05*e),!1!==this.data.verticalGravity&&(t>5||t<-5)&&(this.vy+=.05*t)}},{key:"_photoUpdate",value:function(){var e=this.data.classNames,t=this._getElementByQuery(".current").querySelector(".".concat(e.smartPhotoImg)),i=this._getElementByQuery(".".concat(e.smartPhotoNav)),s=this._getElementByQuery(".".concat(e.smartPhotoArrows)),a=this.virtualPos(this.data.photoPosX),n=this.virtualPos(this.data.photoPosY),o=this.data.scaleSize,r="translate(".concat(a,"px,").concat(n,"px) scale(").concat(o,")");t.style.transform=r,this.data.scale?d.addClass(t,e.smartPhotoImgOnMove):d.removeClass(t,e.smartPhotoImgOnMove),this.data.elastic?d.addClass(t,e.smartPhotoImgElasticMove):d.removeClass(t,e.smartPhotoImgElasticMove),this.data.hideUi?(i&&i.setAttribute("aria-hidden","true"),s&&s.setAttribute("aria-hidden","true")):(i&&i.setAttribute("aria-hidden","false"),s&&s.setAttribute("aria-hidden","false"))}},{key:"_getWindowWidth",value:function(){return document&&document.documentElement?document.documentElement.clientWidth:window&&window.innerWidth?window.innerWidth:0}},{key:"_getWindowHeight",value:function(){return document&&document.documentElement?document.documentElement.clientHeight:window&&window.innerHeight?window.innerHeight:0}},{key:"_listUpdate",value:function(){var e=this.data.classNames,t=this._getElementByQuery(".".concat(e.smartPhotoList)),i="translate(".concat(this.data.translateX,"px,").concat(this.data.translateY,"px)");t.style.transform=i,this.data.onMoveClass?d.addClass(t,e.smartPhotoListOnMove):d.removeClass(t,e.smartPhotoListOnMove)}},{key:"_fireEvent",value:function(e){var t=this._getElementByClass(this.data.classNames.smartPhoto);d.triggerEvent(t,e)}},{key:"_doAnim",value:function(){if(!(this.isBeingZoomed||this.isSwipable||this.photoSwipable||this.data.elastic)&&this.data.scale){this.data.photoPosX+=this.vx,this.data.photoPosY+=this.vy;var e=this._getSelectedItem(),t=this._makeBound(e);this.data.photoPosX<t.minX?(this.data.photoPosX=t.minX,this.vx*=-.2):this.data.photoPosX>t.maxX&&(this.data.photoPosX=t.maxX,this.vx*=-.2),this.data.photoPosY<t.minY?(this.data.photoPosY=t.minY,this.vy*=-.2):this.data.photoPosY>t.maxY&&(this.data.photoPosY=t.maxY,this.vy*=-.2);var i=this._getForceAndTheta(this.vx,this.vy),s=i.force,a=i.theta;s-=this.data.registance,Math.abs(s)<.5||(this.vx=Math.cos(a)*s,this.vy=Math.sin(a)*s,this._photoUpdate())}}}]),t}(s.default);t.default=p,e.exports=t.default}
15(y,y.exports)),y.exports}var Y,Q=t(F?H:(F=1,H=X()));function Z(){let e=this.getMeta("url");e.match(/^http/i)||(e=location.href),this.defaults={url:e,origin:location.origin,source:this.getMeta("site_name")||document.title,title:this.getMeta("title")||document.title,description:this.getMeta("description")||"",image:this.getMeta("image")}}(Y=jQuery).fn.qrcode=function(e){var t;function i(e){this.mode=t,this.data=e}function s(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}function a(e,t){if(null==e.length)throw Error(e.length+"/"+t);for(var i=0;i<e.length&&0==e[i];)i++;this.num=Array(e.length-i+t);for(var s=0;s<e.length-i;s++)this.num[s]=e[s+i]}function n(e,t){this.totalCount=e,this.dataCount=t}function o(){this.buffer=[],this.length=0}i.prototype={getLength:function(){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}},s.prototype={addData:function(e){this.dataList.push(new i(e)),this.dataCache=null},isDark:function(e,t){if(0>e||this.moduleCount<=e||0>t||this.moduleCount<=t)throw Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){if(1>this.typeNumber){var e=1;for(e=1;40>e;e++){for(var t=n.getRSBlocks(e,this.errorCorrectLevel),i=new o,s=0,a=0;a<t.length;a++)s+=t[a].dataCount;for(a=0;a<this.dataList.length;a++)t=this.dataList[a],i.put(t.mode,4),i.put(t.getLength(),r.getLengthInBits(t.mode,e)),t.write(i);if(i.getLengthInBits()<=8*s)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++){this.modules[i]=Array(this.moduleCount);for(var a=0;a<this.moduleCount;a++)this.modules[i][a]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),7<=this.typeNumber&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=s.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var i=-1;7>=i;i++)if(!(-1>=e+i||this.moduleCount<=e+i))for(var s=-1;7>=s;s++)-1>=t+s||this.moduleCount<=t+s||(this.modules[e+i][t+s]=0<=i&&6>=i&&(0==s||6==s)||0<=s&&6>=s&&(0==i||6==i)||2<=i&&4>=i&&2<=s&&4>=s)},getBestMaskPattern:function(){for(var e=0,t=0,i=0;8>i;i++){this.makeImpl(!0,i);var s=r.getLostPoint(this);(0==i||e>s)&&(e=s,t=i)}return t},createMovieClip:function(e,t,i){for(e=e.createEmptyMovieClip(t,i),this.make(),t=0;t<this.modules.length;t++){i=1*t;for(var s=0;s<this.modules[t].length;s++){var a=1*s;this.modules[t][s]&&(e.beginFill(0,100),e.moveTo(a,i),e.lineTo(a+1,i),e.lineTo(a+1,i+1),e.lineTo(a,i+1),e.endFill())}}return e},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=0==e%2);for(e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=0==e%2)},setupPositionAdjustPattern:function(){for(var e=r.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var i=0;i<e.length;i++){var s=e[t],a=e[i];if(null==this.modules[s][a])for(var n=-2;2>=n;n++)for(var o=-2;2>=o;o++)this.modules[s+n][a+o]=-2==n||2==n||-2==o||2==o||0==n&&0==o}},setupTypeNumber:function(e){for(var t=r.getBCHTypeNumber(this.typeNumber),i=0;18>i;i++){var s=!e&&1==(t>>i&1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=s}for(i=0;18>i;i++)s=!e&&1==(t>>i&1),this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=s},setupTypeInfo:function(e,t){for(var i=r.getBCHTypeInfo(this.errorCorrectLevel<<3|t),s=0;15>s;s++){var a=!e&&1==(i>>s&1);6>s?this.modules[s][8]=a:8>s?this.modules[s+1][8]=a:this.modules[this.moduleCount-15+s][8]=a}for(s=0;15>s;s++)a=!e&&1==(i>>s&1),8>s?this.modules[8][this.moduleCount-s-1]=a:9>s?this.modules[8][15-s-1+1]=a:this.modules[8][15-s-1]=a;this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var i=-1,s=this.moduleCount-1,a=7,n=0,o=this.moduleCount-1;0<o;o-=2)for(6==o&&o--;;){for(var l=0;2>l;l++)if(null==this.modules[s][o-l]){var d=!1;n<e.length&&(d=1==(e[n]>>>a&1)),r.getMask(t,s,o-l)&&(d=!d),this.modules[s][o-l]=d,-1==--a&&(n++,a=7)}if(0>
15(s+=i)||this.moduleCount<=s){s-=i,i=-i;break}}}},s.PAD0=236,s.PAD1=17,s.createData=function(e,t,i){t=n.getRSBlocks(e,t);for(var a=new o,l=0;l<i.length;l++){var d=i[l];a.put(d.mode,4),a.put(d.getLength(),r.getLengthInBits(d.mode,e)),d.write(a)}for(l=e=0;l<t.length;l++)e+=t[l].dataCount;if(a.getLengthInBits()>8*e)throw Error("code length overflow. ("+a.getLengthInBits()+">"+8*e+")");for(a.getLengthInBits()+4<=8*e&&a.put(0,4);0!=a.getLengthInBits()%8;)a.putBit(!1);for(;!(a.getLengthInBits()>=8*e||(a.put(s.PAD0,8),a.getLengthInBits()>=8*e));)a.put(s.PAD1,8);return s.createBytes(a,t)},s.createBytes=function(e,t){for(var i=0,s=0,n=0,o=Array(t.length),l=Array(t.length),d=0;d<t.length;d++){var c=t[d].dataCount,u=t[d].totalCount-c;s=Math.max(s,c),n=Math.max(n,u),o[d]=Array(c);for(var p=0;p<o[d].length;p++)o[d][p]=255&e.buffer[p+i];for(i+=c,p=r.getErrorCorrectPolynomial(u),c=new a(o[d],p.getLength()-1).mod(p),l[d]=Array(p.getLength()-1),p=0;p<l[d].length;p++)u=p+c.getLength()-l[d].length,l[d][p]=0<=u?c.get(u):0}for(p=d=0;p<t.length;p++)d+=t[p].totalCount;for(i=Array(d),p=c=0;p<s;p++)for(d=0;d<t.length;d++)p<o[d].length&&(i[c++]=o[d][p]);for(p=0;p<n;p++)for(d=0;d<t.length;d++)p<l[d].length&&(i[c++]=l[d][p]);return i},t=4;for(var r={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;0<=r.getBCHDigit(t)-r.getBCHDigit(r.G15);)t^=r.G15<<r.getBCHDigit(t)-r.getBCHDigit(r.G15);return(e<<10|t)^r.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;0<=r.getBCHDigit(t)-r.getBCHDigit(r.G18);)t^=r.G18<<r.getBCHDigit(t)-r.getBCHDigit(r.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return r.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,i){switch(e){case 0:return 0==(t+i)%2;case 1:return 0==t%2;case 2:return 0==i%3;case 3:return 0==(t+i)%3;case 4:return 0==(Math.floor(t/2)+Math.floor(i/3))%2;case 5:return 0==t*i%2+t*i%3;case 6:return 0==(t*i%2+t*i%3)%2;case 7:return 0==(t*i%3+(t+i)%2)%2;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new a([1],0),i=0;i<e;i++)t=t.multiply(new a([1,l.gexp(i)],0));return t},getLengthInBits:function(e,i){if(1<=i&&10>i)switch(e){case 1:return 10;case 2:return 9;case t:case 8:return 8;default:throw Error("mode:"+e)}else if(27>i)switch(e){case 1:return 12;case 2:return 11;case t:return 16;case 8:return 10;default:throw Error("mode:"+e)}else{if(!(41>i))throw Error("type:"+i);switch(e){case 1:return 14;case 2:return 13;case t:return 16;case 8:return 12;default:throw Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),i=0,s=0;s<t;s++)for(var a=0;a<t;a++){for(var n=0,o=e.isDark(s,a),r=-1;1>=r;r++)if(!(0>s+r||t<=s+r))for(var l=-1;1>=l;l++)0>a+l||t<=a+l||0==r&&0==l||o==e.isDark(s+r,a+l)&&n++;5<n&&(i+=3+n-5)}for(s=0;s<t-1;s++)for(a=0;a<t-1;a++)n=0,e.isDark(s,a)&&n++,e.isDark(s+1,a)&&n++,e.isDark(s,a+1)&&n++,e.isDark(s+1,a+1)&&n++,(0==n||4==n)&&(i+=3);for(s=0;s<t;s++)for(a=0;a<t-6;a++)e.isDark(s,a)&&!e.isDark(s,a+1)&&e.isDark(s,a+2)&&e.isDark(s,a+3)&&e.isDark(s,a+4)&&!e.isDark(s,a+5)&&e.isDark(s,a+6)&&(i+=40);for(a=0;a<t;a++)for(s=0;s<t-6;s++)e.isDark(s,a)&&!e.isDark(s+1,a)&&e.isDark(s+2,a)&&e.isDark(s+3,a)&&e.isDark(s+4,a)&&!e.isDark(s+5,a)&&e.isDark(s+6,a)&&(i+=40);for(a=n=0;a<t;a++)for(s=0;s<t;s++)e.isDark(s,a)&&n++;return i+10*(e=Math.abs(100*n/t/t-50)/5)}},l={glog:function(e){if(1>e)throw Error("glog("+e+")");return l.LOG_TABLE[e]},gexp:function(e){for(;0>e;)e+=255;for(;256<=e;)e-=255;return l.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},d=0;8>d;d++)l.EXP_TABLE[d]=1<<d;for(d=8;256>d;d++)l.EXP_TABLE[d]=l.EXP_TABLE[d-4]^l.EXP_TABLE[d-5]^l.EXP_TABLE[d-6]^l.EXP_TABLE[d-8];for(d=0;255>d;d++)l.LOG_TABLE[l.EXP_TABLE[d]]=d;return a.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=Array(this.getLength()+e.getLength()-1),i=0;i<this.getLength();i++)for(var s=0;s<e.getLength();s++)t[i+s]^=l.gexp(l.glog(this.get(i))+l.glog(e.get(s)));return new a(t,0)},mod:function(e){if(0>this.getLength()-e.getLength())return this;for(var t=l.glog(this.get(0))-l.glog(e.get(0)),i=Array(this.getLength()),s=0;s<this.getLength();s++)i[s]=this.get(s);for(s=0;s<e.getLength();s++)i[s]^=l.gexp(l.glog(e.get(s))+t);return new a(i,0).mod(e)}},n.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37
15],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],n.getRSBlocks=function(e,t){var i=n.getRsBlockTable(e,t);if(null==i)throw Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var s=i.length/3,a=[],o=0;o<s;o++)for(var r=i[3*o+0],l=i[3*o+1],d=i[3*o+2],c=0;c<r;c++)a.push(new n(l,d));return a},n.getRsBlockTable=function(e,t){switch(t){case 1:return n.RS_BLOCK_TABLE[4*(e-1)+0];case 0:return n.RS_BLOCK_TABLE[4*(e-1)+1];case 3:return n.RS_BLOCK_TABLE[4*(e-1)+2];case 2:return n.RS_BLOCK_TABLE[4*(e-1)+3]}},o.prototype={get:function(e){return 1==(this.buffer[Math.floor(e/8)]>>>7-e%8&1)},put:function(e,t){for(var i=0;i<t;i++)this.putBit(1==(e>>>t-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},"string"==typeof e&&(e={text:e}),e=Y.extend({},{render:"canvas",width:256,height:256,typeNumber:-1,correctLevel:2,background:"#ffffff",foreground:"#000000"},e),this.each(function(){var t;if("canvas"==e.render){(t=new s(e.typeNumber,e.correctLevel)).addData(e.text),t.make();var i=document.createElement("canvas");i.width=e.width,i.height=e.height;for(var a=i.getContext("2d"),n=e.width/t.getModuleCount(),o=e.height/t.getModuleCount(),r=0;r<t.getModuleCount();r++)for(var l=0;l<t.getModuleCount();l++){a.fillStyle=t.isDark(r,l)?e.foreground:e.background;var d=Math.ceil((l+1)*n)-Math.floor(l*n),c=Math.ceil((r+1)*n)-Math.floor(r*n);a.fillRect(Math.round(l*n),Math.round(r*o),d,c)}}else for((t=new s(e.typeNumber,e.correctLevel)).addData(e.text),t.make(),i=Y("<table></table>").css("width",e.width+"px").css("height",e.height+"px").css("border","0px").css("border-collapse","collapse").css("background-color",e.background),a=e.width/t.getModuleCount(),n=e.height/t.getModuleCount(),o=0;o<t.getModuleCount();o++)for(r=Y("<tr></tr>").css("height",n+"px").appendTo(i),l=0;l<t.getModuleCount();l++)Y("<td></td>").css("width",a+"px").css("background-color",t.isDark(o,l)?e.foreground:e.background).appendTo(r);t=i,jQuery(t).appendTo(this)})},"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");e=Object(e);for(var t=1;t<arguments.length;t++){var i=arguments[t];if(null!=i)for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e}),Z.prototype={getMeta(e){const t=document.querySelector('meta[property="og:'+e+'"]');return t?t.getAttribute("content"):""},templates:{qzone:"https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url={{URL}}&title={{TITLE}}&desc={{DESCRIPTION}}&summary={{SUMMARY}}&site={{SOURCE}}&pics={{IMAGE}}",qq:'https://connect.qq.com/widget/shareqq/index.html?url={{URL}}&title={{TITLE}}&source={{SOURCE}}&desc={{DESCRIPTION}}&pics={{IMAGE}}&summary="{{SUMMARY}}"',weibo:"https://service.weibo.com/share/share.php?url={{URL}}&title={{TITLE}}&pic={{IMAGE}}&appkey={{WEIBOKEY}}&searchPic=true",wechat:"javascript:",douban:"https://www.douban.com/rec
15ommend/?title={{TITLE}}&url={{URL}}",linkedin:"https://www.linkedin.com/shareArticle?mini=true&ro=true&title={{TITLE}}&url={{URL}}&summary={{SUMMARY}}&source={{SOURCE}}&armin=armin",facebook:"https://www.facebook.com/sharer/sharer.php?u={{URL}}",twitter:"https://twitter.com/intent/tweet?text={{TITLE}}&url={{URL}}&via={{ORIGIN}}",x:"https://twitter.com/intent/tweet?text={{TITLE}}&url={{URL}}&via={{ORIGIN}}",mail:"mailto:?subject={{TITLE}}&body={{URL}}",tumblr:"https://www.tumblr.com/share?t={{TITLE}}&u={{URL}}&v=3",whatsapp:"https://web.whatsapp.com/send?text={{URL}}",pinterest:"https://www.pinterest.com/pin/create/button/?description={{TITLE}}&media=&url={{URL}}",line:"https://lineit.line.me/share/ui?url={{URL}}&text={{TITLE}}",telegram:"https://t.me/share/url?url={{URL}}&text={{TITLE}}&to="},makeUrl(e,t){t=t||this.defaults;var i=this.subString(t.description,236);return t.description=i&&i!==t.description?i+"...":t.description,t.summary||(t.summary=t.description),this.templates[e].replace(/\{\{(\w)(\w*)\}\}/g,function(i,s,a){var n=e+s+a.toLowerCase();return a=(s+a).toLowerCase(),encodeURIComponent((void 0===t[n]?t[a]:t[n])||"")})},init(){let e=this;jQuery("a[data-share]").each(function(){let t=jQuery(this),i=t.data("share");if(i&&e.templates[i]){let s=Object.assign({},e.defaults);t.data("share-callback")&&window[t.data("share-callback")]&&(s=Object.assign(s,window[t.data("share-callback")].apply(window,[this]))),t.attr("href",e.makeUrl(i,s)),"wechat"===i&&0===t.find(".share-wx-wrap").length&&(t.attr("target",""),t.append('<span class="share-wx-wrap"><span class="j-share-qrcode"></span><span>\u5fae\u4fe1\u626b\u7801\u5206\u4eab</span></span>'),t.find(".j-share-qrcode").qrcode({text:s.url}))}})},subString(e,t){let i=/[^\x00-\xff]/g;if(e.replace(i,"aa").length<=t)return e;for(var s=Math.floor(t/2),a=e.length;s<a;s++)if(e.substring(0,s).replace(i,"aa").length>=t)return e.substring(0,s);return e}};var K=new Z,J={init(){jQuery("pre.wp-block-code").each((e,t)=>{let i=jQuery(t),s=i.removeClass("wp-block-code").prop("outerHTML");i.replaceWith('<div class="wp-block-wpcom-hljs">'+s+"</div>")});const e=jQuery(".wp-block-wpcom-hljs > pre");e.length&&this.load(e),jQuery(document).on("hljs.wpcom",e=>{e.target&&this.load(jQuery(e.target))})},load(e){if("undefined"==typeof hljs){const t=this,i=void 0!==_wpcom_js.framework_url?_wpcom_js.framework_url:_wpcom_js.theme_url+"/themer";let s=i+"/assets/js/highlight-11.9.0.min.js",a=i+"/assets/css/highlight-11.9.0.min.css";jQuery.ajax({url:s,dataType:"script",cache:!0,success:function(){let i=document.createElement("link");i.href=a,i.rel="stylesheet",i.type="text/css",document.body.appendChild(i),hljs.configure({ignoreUnescapedHTML:!0}),t.render(e)}})}else this.render(e)},render(e){e.length&&(this.copyBtn(e),e.each(function(e,t){hljs.highlightElement(t)}))},copyBtn(e){void 0!==document.execCommand&&(e.parent().each(function(e,t){const i=jQuery(t);i.data("value",i.find(">pre").text())}),e.parent().append('<div class="copy-btn"><i class="wpcom-icon wi"><svg aria-hidden="true"><use xlink:href="#wi-copy"></use></svg></i></div>'),e.parent().on("click",".copy-btn",function(){const e=jQuery(this);let t=e.closest(".wp-block-wpcom-hljs").data("value"),i=document.createElement("textarea");i.value=t,jQuery("body").append(i),i.style.position="fixed",i.style.height=0,i.select(),document.execCommand("copy"),i.remove(),e.html('<i class="wpcom-icon wi"><svg aria-hidden="true"><use xlink:href="#wi-dagou"></use></svg></i>').addClass("success"),setTimeout(function(){e.html('<i class="wpcom-icon wi"><svg aria-hidden="true"><use xlink:href="#wi-copy"></use></svg></i>').removeClass("success")},2e3)}))}};function ee(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function te(e={},t={}){const i=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>i.indexOf(e)<0).forEach(i=>{void 0===e[i]?e[i]=t[i]:ee(t[i])&&ee(e[i])&&Object.keys(t[i]).length>0&&te(e[i],t[i])})}const ie={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function se(){const e="undefined"!=typeof document?document:{};return te(e,ie),e}const ae={document:ie,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){}
vendor: 38,981 bytes, line 15
15,clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function ne(){const e="undefined"!=typeof window?window:{};return te(e,ae),e}function oe(e,t=0){return setTimeout(e,t)}function re(){return Date.now()}function le(e,t="x"){const i=ne();let s,a,n;const o=function(e){const t=ne();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i||(i=e.style),i}(e);return i.WebKitCSSMatrix?(a=o.transform||o.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(e=>e.replace(",",".")).join(", ")),n=new i.WebKitCSSMatrix("none"===a?"":a)):(n=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=n.toString().split(",")),"x"===t&&(a=i.WebKitCSSMatrix?n.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===t&&(a=i.WebKitCSSMatrix?n.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),a||0}function de(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function ce(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function ue(...e){const t=Object(e[0]);for(let i=1;i<e.length;i+=1){const s=e[i];if(null!=s&&!ce(s)){const e=Object.keys(Object(s)).filter(e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e);for(let i=0,a=e.length;i<a;i+=1){const a=e[i],n=Object.getOwnPropertyDescriptor(s,a);void 0!==n&&n.enumerable&&(de(t[a])&&de(s[a])?s[a].__swiper__?t[a]=s[a]:ue(t[a],s[a]):!de(t[a])&&de(s[a])?(t[a]={},s[a].__swiper__?t[a]=s[a]:ue(t[a],s[a])):t[a]=s[a])}}}return t}function pe(e,t,i){e.style.setProperty(t,i)}function he({swiper:e,targetPosition:t,side:i}){const s=ne(),a=-e.translate;let n,o=null;const r=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);const l=t>a?"next":"prev",d=(e,t)=>"next"===l&&e>=t||"prev"===l&&e<=t,c=()=>{n=(new Date).getTime(),null===o&&(o=n);const l=Math.max(Math.min((n-o)/r,1),0),u=.5-Math.cos(l*Math.PI)/2;let p=a+u*(t-a);if(d(p,t)&&(p=t),e.wrapperEl.scrollTo({[i]:p}),d(p,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[i]:p})}),void s.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=s.requestAnimationFrame(c)};c()}function me(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function fe(e,t=""){const i=ne(),s=[...e.children];return i.HTMLSlotElement&&e instanceof HTMLSlotElement&&s.push(...e.assignedElements()),t?s.filter(e=>e.matches(t)):s}function ge(e){try{return void console.warn(e)}catch(e){}}function ve(e,t=[]){const i=document.createElement(e);return i.classList.add(...Array.isArray(t)?t:function(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}(t)),i}function we(e,t){return ne().getComputedStyle(e,null).getPropertyValue(t)}function ye(e){let t,i=e;if(i){for(t=0;null!==(i=i.previousSibling);)1===i.nodeType&&(t+=1);return t}}function be(e,t){const i=[];let s=e.parentElement;for(;s;)t?s.matches(t)&&i.push(s):i.push(s),s=s.parentElement;return i}function xe(e,t,i){const s=ne();return e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom"))}function Se(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function Ee(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90==0?t+.001:t}function Te(e,t=""){"undefined"!=typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}let Ce,_e,Pe;function Ie(){return Ce||(Ce=function(){const e=ne(),t=se();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),Ce}function ke(e={}){return _e||(_e=function({userAgent:e}={}){const t=Ie(),i=ne(),s=i.navigator.platform,a=e||i.navigator.userAgent,n={ios:!1,android:!1},o=i.screen.width,r=i.screen.height,l=a.match(/(Android);?[\s\/]+([\d.]+)?/);let d=a.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const c=a.match(/(iPod)(.*OS\s([\d_]+))?/),u=!d&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===s;let h="MacIntel"===s;return!d&&h&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${r}`)>=0&&(d=a.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),h=!1),l&&!p&&(n.os="android",n.android=!0),(d||u||c)&&(n.os="ios",n.ios=!0),n}(e)),_e}function Me(){return Pe||(Pe=function(){const e=ne(),t=ke();let i=!1;function s(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(s()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,s]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));i=e<16||16===e&&s<2}}const a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),n=s();return{isSafari:i||n,needPerspectiveFix:i,need3dFix:n||a&&t.ios,isWebView:a}}()),Pe}var Ae={on(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;const a=i?"unshift":"push";return e.split(" ").forEach(e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][a](t)}),s},once(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;function a(...i){s.off(e,a),a.__emitterProxy&&delete a.__emitterProxy,t.apply(s,i)}return a.__emitterProxy=t,s.on(e,a,i)},onAny(e,t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof e)return i;const s=t?"unshift":"push";return i.eventsAnyListeners.indexOf(e)<0&&i.eventsAnyListeners[s](e),i},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const i=t.eventsAnyListeners.indexOf(e);return i>=0&&t.eventsAnyListeners.splice(i,1),t},off(e,t){const i=this;return!i.eventsListeners||i.destroyed?i:i.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach((s,a)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&i.eventsListeners[e].splice(a,1)})}),i):i},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let i,s,a;"string"==typeof e[0]||Array.isArray(e[0])?(i=e[0],s=e.slice(1,e.length),a=t):(i=e[0].events,s=e[0].data,a=e[0].context||t),s.unshift(a);return(Array.isArray(i)?i:i.split(" ")).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(a,[e,...s])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(a,s)})}),t}};const Le=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)};const Oe=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)};const Ne=(e,t)=>{if(!e||e.destroyed||!e.params)return;const i=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(i){let t=i.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(i.shadowRoot?t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&(t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&!t.lazyPreloaderManaged&&t.remove())})),t&&!t.lazyPreloaderManaged&&t.remove()}},De=(e,t)=>{if(!e.slides[t])return;const i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},je=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);const s="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),a=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const i=a,n=[i-t];return n.push(...Array.from({length:t}).map((e,t)=>i+s+t)),void e.slides.forEach((t,i)=>{n.includes(t.column)&&De(e,i)})}const n=a+s-1;if(e.params.rewind||e.params.loop)for(let s=a-t;s<=n+t;s+=1){const t=(s%i+i)%i;(t<a||t>n)&&De(e,t)}else for(let s=Math.max(a-t,0);s<=Math.min(n+t,i-1);s+=1)s!==a&&(s>n||s<a)&&De(e,s)};var $e={updateSize:function(){const e=this;let t,i;const s=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:s.clientWidth,i=void 0!==e.params.height&&null!==e.params.height?e.params.height:s.clientHeight,0===t&&e.isHorizontal()||0===i&&e.isVertical()||(t=t-parseInt(we(s,"padding-left")||0,10)-parseInt(we(s,"padding-right")||0,10),i=i-parseInt(we(s,"padding-top")||0,10)-parseInt(we(s,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))},updateSlides:function(){const e=this;function t(t,i){return parseFloat(t.getPropertyValue(e.getDirectionLabel(i))||0)}const i=e.params,{wrapperEl:s,slidesEl:a,rtlTranslate:n,wrongRTL:o}=e,r=e.virtual&&i.virtual.enabled,l=r?e.virtual.slides.length:e.slides.length,d=fe(a,`.${e.params.slideClass}, swiper-slide`),c=r?e.virtual.slides.length:d.length;let u=[];const p=[],h=[];let m=i.slidesOffsetBefore;"function"==typeof m&&(m=i.slidesOffsetBefore.call(e));let f=i.slidesOffsetAfter;"function"==typeof f&&(f=i.slidesOffsetAfter.call(e));const g=e.snapGrid.length,v=e.slidesGrid.length,w=e.size-m-f;let y=i.spaceBetween,b=-m,x=0,S=0;if(void 0===w)return;"string"==typeof y&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*w:"string"==typeof y&&(y=parseFloat(y)),e.virtualSize=-y-m-f,d.forEach(e=>{n?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(pe(s,"--swiper-centered-offset-before",""),pe(s,"--swiper-centered-offset-after","")),i.cssMode&&(pe(s,"--swiper-slides-offset-before",`${m}px`),pe(s,"--swiper-slides-offset-after",`${f}px`));const E=i.grid&&i.grid.rows>1&&e.grid;let T;E?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();const C="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter(e=>void 0!==i.breakpoints[e].slidesPerView).length>0;for(let s=0;s<c;s+=1){T=0;const a=d[s];if(!a||(E&&e.grid.updateSlide(s,a,d),"none"!==we(a,"display"))){if(r&&"auto"===i.slidesPerView)i.virtual.slidesPerViewAutoSlideSize&&(T=i.virtual.slidesPerViewAutoSlideSize),T&&a&&(i.roundLengths&&(T=Math.floor(T)),a.style[e.getDirectionLabel("width")]=`${T}px`);else if("auto"===i.slidesPerView){C&&(a.style[e.getDirectionLabel("width")]="");const s=getComputedStyle(a),n=a.style.transform,o=a.style.webkitTransform;if(n&&(a.style.transform="none"),o&&(a.style.webkitTransform="none"),i.roundLengths)T=e.isHorizontal()?xe(a,"width"):xe(a,"height");else{const e=t(s,"width"),i=t(s,"padding-left"),n=t(s,"padding-right"),o=t(s,"margin-left"),r=t(s,"margin-right"),l=s.getPropertyValue("box-sizing");if(l&&"border-box"===l)T=e+o+r;else{const{clientWidth:t,offsetWidth:s}=a;T=e+i+n+o+r+(s-t)}}n&&(a.style.transform=n),o&&(a.style.webkitTransform=o),i.roundLengths&&(T=Math.floor(T))}else T=(w-(i.slidesPerView-1)*y)/i.slidesPerView,i.roundLengths&&(T=Math.floor(T)),a&&(a.style[e.getDirectionLabel("width")]=`${T}px`);a&&(a.swiperSlideSize=T),h.push(T),i.centeredSlides?(b=b+T/2+x/2+y,0===x&&0!==s&&(b=b-w/2-y),0===s&&(b=b-w/2-y),Math.abs(b)<.001&&(b=0),i.roundLengths&&(b=Math.floor(b)),S%i.slidesPerGroup===0&&u.push(b),p.push(b)):(i.roundLengths&&(b=Math.floor(b)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup===0&&u.push(b),p.push(b),b=b+T+y),e.virtualSize+=T+y,x=T,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,w)+f,n&&o&&("slide"===i.effect||"coverflow"===i.effect)&&(s.style.width=`${e.virtualSize+y}px`),i.setWrapperSize&&(s.style[e.getDirectionLabel("width")]=`${e.virtualSize+y}px`),E&&e.grid.updateWrapperSize(T,u),!i.centeredSlides){const t="auto"!==i.slidesPerView&&i.slidesPerView%1!=0,s=i.snapToSlideEdge&&!i.loop&&("auto"===i.slidesPerView||t);let a=u.length;if(s){let e;if("auto"===i.slidesPerView){e=1;let t=0;for(let i=h.length-1;i>=0&&(t+=h[i]+(i<h.length-1?y:0),t<=w);i-=1)e=h.length-i}else e=Math.floor(i.slidesPerView);a=Math.max(c-e,0)}const n=[];for(let t=0;t<u.length;t+=1){let o=u[t];i.roundLengths&&(o=Math.floor(o)),s?t<=a&&n.push(o):u[t]<=e.virtualSize-w&&n.push(o)}u=n,Math.floor(e.virtualSize-w)-Math.floor(u[u.length-1])>1&&(s||u.push(e.virtualSize-w))}if(r&&i.loop){const t=h[0]+y;if(i.slidesPerGroup>1){const s=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/i.slidesPerGroup),a=t*i.slidesPerGroup;for(let e=0;e<s;e+=1)u.push(u[u.length-1]+a)}for(let s=0;s<e.virtual.slidesBefore+e.virtual.slidesAfter;s+=1)1===i.slidesPerGroup&&u.push(u[u.length-1]+t),p.push(p[p.length-1]+t),e.virtualSize+=t}if(0===u.length&&(u=[0]),0!==y){const t=e.isHorizontal()&&n?"marginLeft":e.getDirectionLabel("marginRight");d.filter((e,t)=>!(i.cssMode&&!i.loop)||t!==d.length-1).forEach(e=>{e.style[t]=`${y}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let e=0;h.forEach(t=>{e+=t+(y||0)}),e-=y;const t=e>w?e-w:0;u=u.map(e=>e<=0?-m:e>t?t+f:e)}if(i.centerInsufficientSlides){let e=0;if(h.forEach(t=>{e+=t+(y||0)}),e-=y,e<w){const t=(w-e)/2;u.forEach((e,i)=>{u[i]=e-t}),p.forEach((e,i)=>{p[i]=e+t})}}if(Object.assign(e,{slides:d,snapGrid:u,slidesGrid:p,slidesSizesGrid:h}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){pe(s,"--swiper-centered-offset-before",-u[0]+"px"),pe(s,"--swiper-centered-offset-after",e.size/2-h[h.length-1]/2+"px");const t=-e.snapGrid[0],i=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+i)}if(c!==l&&e.emit("slidesLengthChange"),u.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==v&&e.emit("slidesGridLengthChange"),i.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(r||i.cssMode||"slide"!==i.effect&&"fade"!==i.effect)){const t=`${i.containerModifierClass}backface-hidden`,s=e.el.classList.contains(t);c<=i.maxBackfaceHiddenSlides?s||e.el.classList.add(t):s&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,i=[],s=t.virtual&&t.params.virtual.enabled;let a,n=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const o=e=>s?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{i.push(e)});else for(a=0;a<Math.ceil(t.params.slidesPerView);a+=1){const e=t.activeIndex+a;if(e>t.slides.length&&!s)break;i.push(o(e))}else i.push(o(t.activeIndex));for(a=0;a<i.length;a+=1)if(void 0!==i[a]){const e=i[a].offsetHeight;n=e>n?e:n}(n||0===n)&&(t.wrapperEl.style.height=`${n}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,i=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let s=0;s<t.length;s+=1)t[s].swiperSlideOffset=(e.isHorizontal()?t[s].offsetLeft:t[s].offsetTop)-i-e.cssOverflowAdjustment()},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,i=t.params,{slides:s,rtlTranslate:a,snapGrid:n}=t;if(0===s.length)return;void 0===s[0].swiperSlideOffset&&t.updateSlidesOffset();let o=-e;a&&(o=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let r=i.spaceBetween;"string"==typeof r&&r.indexOf("%")>=0?r=parseFloat(r.replace("%",""))/100*t.size:"string"==typeof r&&(r=parseFloat(r));for(let e=0;e<s.length;e+=1){const l=s[e];let d=l.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(d-=s[0].swiperSlideOffset);const c=(o+(i.centeredSlides?t.minTranslate():0)-d)/(l.swiperSlideSize+r),u=(o-n[0]+(i.centeredSlides?t.minTranslate():0)-d)/(l.swiperSlideSize+r),p=-(o-d),h=p+t.slidesSizesGrid[e],m=p>=0&&p<=t.size-t.slidesSizesGrid[e],f=p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size;f&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),Le(l,f,i.slideVisibleClass),Le(l,m,i.slideFullyVisibleClass),l.progress=a?-c:c,l.originalProgress=a?-u:u}},updateProgress:function(e){const t=this;if(void 0===e){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params,s=t.maxTranslate()-t.minTranslate();let{progress:a,isBeginning:n,isEnd:o,progressLoop:r}=t;const l=n,d=o;if(0===s)a=0,n=!0,o=!0;else{a=(e-t.minTranslate())/s;const i=Math.abs(e-t.minTranslate())<1,r=Math.abs(e-t.maxTranslate())<1;n=i||a<=0,o=r||a>=1,i&&(a=0),r&&(a=1)}if(i.loop){const i=t.getSlideIndexByData(0),s=t.getSlideIndexByData(t.slides.length-1),a=t.slidesGrid[i],n=t.slidesGrid[s],o=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);r=l>=a?(l-a)/o:(l+o-n)/o,r>1&&(r-=1)}Object.assign(t,{progress:a,progressLoop:r,isBeginning:n,isEnd:o}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),n&&!l&&t.emit("reachBeginning toEdge"),o&&!d&&t.emit("reachEnd toEdge"),(l&&!n||d&&!o)&&t.emit("fromEdge"),t.emit("progress",a)},updateSlidesClasses:function(){const e=this,{slides:t,params:i,slidesEl:s,activeIndex:a}=e,n=e.virtual&&i.virtual.enabled,o=e.grid&&i.grid&&i.grid.rows>1,r=e=>fe(s,`.${i.slideClass}${e}, swiper-slide${e}`)[0];let l,d,c;if(n)if(i.loop){let t=a-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=r(`[data-swiper-slide-index="${t}"]`)}else l=r(`[data-swiper-slide-index="${a}"]`);else o?(l=t.find(e=>e.column===a),c=t.find(e=>e.column===a+1),d=t.find(e=>e.column===a-1)):l=t[a];l&&(o||(c=function(e,t){const i=[];for(;e.nextElementSibling;){const s=e.nextElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!c&&(c=t[0]),d=function(e,t){const i=[];for(;e.previousElementSibling;){const s=e.previousElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&0===!d&&(d=t[t.length-1]))),t.forEach(e=>{Oe(e,e===l,i.slideActiveClass),Oe(e,e===c,i.slideNextClass),Oe(e,e===d,i.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{snapGrid:s,params:a,activeIndex:n,realIndex:o,snapIndex:r}=t;let l,d=e;const c=e=>{let i=e-t.virtual.slidesBefore;return i<0&&(i=t.virtual.slides.length+i),i>=t.virtual.slides.length&&(i-=t.virtual.slides.length),i};if(void 0===d&&(d=function(e){const{slidesGrid:t,params:i}=e,s=e.rtlTranslate?e.translate:-e.translate;let a;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?s>=t[e]&&s<t[e+1]-(t[e+1]-t[e])/2?a=e:s>=t[e]&&s<t[e+1]&&(a=e+1):s>=t[e]&&(a=e);return i.normalizeSlideIndex&&(a<0||void 0===a)&&(a=0),a}(t)),s.indexOf(i)>=0)l=s.indexOf(i);else{const e=Math.min(a.slidesPerGroupSkip,d);l=e+Math.floor((d-e)/a.slidesPerGroup)}if(l>=s.length&&(l=s.length-1),d===n&&!t.params.loop)return void(l!==r&&(t.snapIndex=l,t.emit("snapIndexChange")));if(d===n&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=c(d));const u=t.grid&&a.grid&&a.grid.rows>1;let p;if(t.virtual&&a.virtual.enabled)p=a.loop?c(d):d;else if(u){const e=t.slides.find(e=>e.column===d);let i=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(i)&&(i=Math.max(t.slides.indexOf(e),0)),p=Math.floor(i/a.grid.rows)}else if(t.slides[d]){const e=t.slides[d].getAttribute("data-swiper-slide-index");p=e?parseInt(e,10):d}else p=d;Object.assign(t,{previousSnapIndex:r,snapIndex:l,previousRealIndex:o,realIndex:p,previousIndex:n,activeIndex:d}),t.initialized&&je(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(o!==p&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const i=this,s=i.params;let a=e.closest(`.${s.slideClass}, swiper-slide`);!a&&i.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!a&&e.matches&&e.matches(`.${s.slideClass}, swiper-slide`)&&(a=e)});let n,o=!1;if(a)for(let e=0;e<i.slides.length;e+=1)if(i.slides[e]===a){o=!0,n=e;break}if(!a||!o)return i.clickedSlide=void 0,void(i.clickedIndex=void 0);i.clickedSlide=a,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=n,s.slideToClickedSlide&&void 0!==i.clickedIndex&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}};var Be={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:i,translate:s,wrapperEl:a}=this;if(t.virtualTranslate)return i?-s:s;if(t.cssMode)return s;let n=le(a,e);return n+=this.cssOverflowAdjustment(),i&&(n=-n),n||0},setTranslate:function(e,t){const i=this,{rtlTranslate:s,params:a,wrapperEl:n,progress:o}=i;let r,l=0,d=0;i.isHorizontal()?l=s?-e:e:d=e,a.roundLengths&&(l=Math.floor(l),d=Math.floor(d)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?l:d,a.cssMode?n[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-l:-d:a.virtualTranslate||(i.isHorizontal()?l-=i.cssOverflowAdjustment():d-=i.cssOverflowAdjustment(),n.style.transform=`translate3d(${l}px, ${d}px, 0px)`);const c=i.maxTranslate()-i.minTranslate();r=0===c?0:(e-i.minTranslate())/c,r!==o&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,i=!0,s=!0,a){const n=this,{params:o,wrapperEl:r}=n;if(n.animating&&o.preventInteractionOnTransition)return!1;const l=n.minTranslate(),d=n.maxTranslate();let c;if(c=s&&e>l?l:s&&e<d?d:e,n.updateProgress(c),o.cssMode){const e=n.isHorizontal();if(0===t)r[e?"scrollLeft":"scrollTop"]=-c;else{if(!n.support.smoothScroll)return he({swiper:n,targetPosition:-c,side:e?"left":"top"}),!0;r.scrollTo({[e?"left":"top"]:-c,behavior:"smooth"})}return!0}return 0===t?(n.setTransition(0),n.setTranslate(c),i&&(n.emit("beforeTransitionStart",t,a),n.emit("transitionEnd"))):(n.setTransition(t),n.setTranslate(c),i&&(n.emit("beforeTransitionStart",t,a),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(e){n&&!n.destroyed&&e.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.onTranslateToWrapperTransitionEnd=null,delete n.onTranslateToWrapperTransitionEnd,n.animating=!1,i&&n.emit("transitionEnd"))}),n.wrapperEl.addEventListener("transitionend",n.onTranslateToWrapperTransitionEnd))),!0}};function ze({swiper:e,runCallbacks:t,direction:i,step:s}){const{activeIndex:a,previousIndex:n}=e;let o=i;o||(o=a>n?"next":a<n?"prev":"reset"),e.emit(`transition${s}`),t&&"reset"===o?e.emit(`slideResetTransition${s}`):t&&a!==n&&(e.emit(`slideChangeTransition${s}`),"next"===o?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`))}var qe={slideTo:function(e=0,t,i=!0,s,a){"string"==typeof e&&(e=parseInt(e,10));const n=this;let o=e;o<0&&(o=0);const{params:r,snapGrid:l,slidesGrid:d,previousIndex:c,activeIndex:u,rtlTranslate:p,wrapperEl:h,enabled:m}=n;if(!m&&!s&&!a||n.destroyed||n.animating&&r.preventInteractionOnTransition)return!1;void 0===t&&(t=n.params.speed);const f=Math.min(n.params.slidesPerGroupSkip,o);let g=f+Math.floor((o-f)/n.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const v=-l[g];if(r.normalizeSlideIndex)for(let e=0;e<d.length;e+=1){const t=-Math.floor(100*v),i=Math.floor(100*d[e]),s=Math.floor(100*d[e+1]);void 0!==d[e+1]?t>=i&&t<s-(s-i)/2?o=e:t>=i&&t<s&&(o=e+1):t>=i&&(o=e)}if(n.initialized&&o!==u){if(!n.allowSlideNext&&(p?v>n.translate&&v>n.minTranslate():v<n.translate&&v<n.minTranslate()))return!1;if(!n.allowSlidePrev&&v>n.translate&&v>n.maxTranslate()&&(u||0)!==o)return!1}let w;o!==(c||0)&&i&&n.emit("beforeSlideChangeStart"),n.updateProgress(v),w=o>u?"next":o<u?"prev":"reset";const y=n.virtual&&n.params.virtual.enabled;if(!(y&&a)&&(p&&-v===n.translate||!p&&v===n.translate))return n.updateActiveIndex(o),r.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),"slide"!==r.effect&&n.setTranslate(v),"reset"!==w&&(n.transitionStart(i,w),n.transitionEnd(i,w)),!1;if(r.cssMode){const e=n.isHorizontal(),i=p?v:-v;if(0===t)y&&(n.wrapperEl.style.scrollSnapType="none",n._immediateVirtual=!0),y&&!n._cssModeVirtualInitialSet&&n.params.initialSlide>0?(n._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[e?"scrollLeft":"scrollTop"]=i})):h[e?"scrollLeft":"scrollTop"]=i,y&&requestAnimationFrame(()=>{n.wrapperEl.style.scrollSnapType="",n._immediateVirtual=!1});else{if(!n.support.smoothScroll)return he({swiper:n,targetPosition:i,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}const b=Me().isSafari;return y&&!a&&b&&n.isElement&&n.virtual.update(!1,!1,o),n.setTransition(t),n.setTranslate(v),n.updateActiveIndex(o),n.updateSlidesClasses(),n.emit("beforeTransitionStart",t,s),n.transitionStart(i,w),0===t?n.transitionEnd(i,w):n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(e){n&&!n.destroyed&&e.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(i,w))}),n.wrapperEl.addEventListener("transitionend",n.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t,i=!0,s){if("string"==typeof e){e=parseInt(e,10)}const a=this;if(a.destroyed)return;void 0===t&&(t=a.params.speed);const n=a.grid&&a.params.grid&&a.params.grid.rows>1;let o=e;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)o+=a.virtual.slidesBefore;else{let e;if(n){const t=o*a.params.grid.rows;e=a.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t).column}else e=a.getSlideIndexByData(o);const t=n?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:i,slidesOffsetBefore:r,slidesOffsetAfter:l}=a.params,d=i||!!r||!!l;let c=a.params.slidesPerView;"auto"===c?c=a.slidesPerViewDynamic():(c=Math.ceil(parseFloat(a.params.slidesPerView,10)),d&&c%2==0&&(c+=1));let u=t-e<c;if(d&&(u=u||e<Math.ceil(c/2)),s&&d&&"auto"!==a.params.slidesPerView&&!n&&(u=!1),u){const i=d?e<a.activeIndex?"prev":"next":e-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:i,slideTo:!0,activeSlideIndex:"next"===i?e+1:e-t+1,slideRealIndex:"next"===i?a.realIndex:void 0})}if(n){const e=o*a.params.grid.rows;o=a.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e).column}else o=a.getSlideIndexByData(o)}return requestAnimationFrame(()=>{a.slideTo(o,t,i,s)}),a},slideNext:function(e,t=!0,i){const s=this,{enabled:a,params:n,animating:o}=s;if(!a||s.destroyed)return s;void 0===e&&(e=s.params.speed);let r=n.slidesPerGroup;"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(r=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndex<n.slidesPerGroupSkip?1:r,d=s.virtual&&n.virtual.enabled;if(n.loop){if(o&&!d&&n.loopPreventsSliding)return!1;if(s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft,s.activeIndex===s.slides.length-1&&n.cssMode)return requestAnimationFrame(()=>{s.slideTo(s.activeIndex+l,e,t,i)}),!0}return n.rewind&&s.isEnd?s.slideTo(0,e,t,i):s.slideTo(s.activeIndex+l,e,t,i)},slidePrev:function(e,t=!0,i){const s=this,{params:a,snapGrid:n,slidesGrid:o,rtlTranslate:r,enabled:l,animating:d}=s;if(!l||s.destroyed)return s;void 0===e&&(e=s.params.speed);const c=s.virtual&&a.virtual.enabled;if(a.loop){if(d&&!c&&a.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const p=u(r?s.translate:-s.translate),h=n.map(e=>u(e)),m=a.freeMode&&a.freeMode.enabled;let f=n[h.indexOf(p)-1];if(void 0===f&&(a.cssMode||m)){let e;n.forEach((t,i)=>{p>=t&&(e=i)}),void 0!==e&&(f=m?n[e]:n[e>0?e-1:e])}let g=0;if(void 0!==f&&(g=o.indexOf(f),g<0&&(g=s.activeIndex-1),"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(g=g-s.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),a.rewind&&s.isBeginning){const a=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(a,e,t,i)}return a.loop&&0===s.activeIndex&&a.cssMode?(requestAnimationFrame(()=>{s.slideTo(g,e,t,i)}),!0):s.slideTo(g,e,t,i)},slideReset:function(e,t=!0,i){const s=this;if(!s.destroyed)return void 0===e&&(e=s.params.speed),s.slideTo(s.activeIndex,e,t,i)},slideToClosest:function(e,t=!0,i,s=.5){const a=this;if(a.destroyed)return;void 0===e&&(e=a.params.speed);let n=a.activeIndex;const o=Math.min(a.params.slidesPerGroupSkip,n),r=o+Math.floor((n-o)/a.params.slidesPerGroup),l=a.rtlTranslate?a.translate:-a.translate;if(l>=a.snapGrid[r]){const e=a.snapGrid[r];l-e>(a.snapGrid[r+1]-e)*s&&(n+=a.params.slidesPerGroup)}else{const e=a.snapGrid[r-1];l-e<=(a.snapGrid[r]-e)*s&&(n-=a.params.slidesPerGroup)}return n=Math.max(n,0),n=Math.min(n,a.slidesGrid.length-1),a.slideTo(n,e,t,i)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:i}=e,s="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let a,n=e.getSlideIndexWhenGrid(e.clickedIndex);const o=e.isElement?"swiper-slide":`.${t.slideClass}`,r=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;a=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(a):n>(r?(e.slides.length-s)/2-(e.params.grid.rows-1):e.slides.length-s)?(e.loopFix(),n=e.getSlideIndex(fe(i,`${o}[data-swiper-slide-index="${a}"]`)[0]),oe(()=>{e.slideTo(n)})):e.slideTo(n)}else e.slideTo(n)}};var Ge={loopCreate:function(e,t){const i=this,{params:s,slidesEl:a}=i;if(!s.loop||i.virtual&&i.params.virtual.enabled)return;const n=()=>{fe(a,`.${s.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},o=i.grid&&s.grid&&s.grid.rows>1;s.loopAddBlankSlides&&(s.slidesPerGroup>1||o)&&(()=>{const e=fe(a,`.${s.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(i.recalcSlides(),i.updateSlides())})();const r=s.slidesPerGroup*(o?s.grid.rows:1),l=i.slides.length%r!==0,d=o&&i.slides.length%s.grid.rows!==0,c=e=>{for(let t=0;t<e;t+=1){const e=i.isElement?ve("swiper-slide",[s.slideBlankClass]):ve("div",[s.slideClass,s.slideBlankClass]);i.slidesEl.append(e)}};if(l){if(s.loopAddBlankSlides){c(r-i.slides.length%r),i.recalcSlides(),i.updateSlides()}else ge("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");n()}else if(d){if(s.loopAddBlankSlides){c(s.grid.rows-i.slides.length%s.grid.rows),i.recalcSlides(),i.updateSlides()}else ge("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");n()}else n();const u=s.centeredSlides||!!s.slidesOffsetBefore||!!s.slidesOffsetAfter;i.loopFix({slideRealIndex:e,direction:u?void 0:"next",initial:t})},loopFix:function({slideRealIndex:e,slideTo:t=!0,direction:i,setTranslate:s,activeSlideIndex:a,initial:n,byController:o,byMousewheel:r}={}){const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:d,allowSlidePrev:c,allowSlideNext:u,slidesEl:p,params:h}=l,{centeredSlides:m,slidesOffsetBefore:f,slidesOffsetAfter:g,initialSlide:v}=h,w=m||!!f||!!g;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&h.virtual.enabled)return t&&(w||0!==l.snapIndex?w&&l.snapIndex<h.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=c,l.allowSlideNext=u,void l.emit("loopFix");let y=h.slidesPerView;"auto"===y?y=l.slidesPerViewDynamic():(y=Math.ceil(parseFloat(h.slidesPerView,10)),w&&y%2==0&&(y+=1));const b=h.slidesPerGroupAuto?y:h.slidesPerGroup;let x=w?Math.max(b,Math.ceil(y/2)):b;x%b!==0&&(x+=b-x%b),x+=h.loopAdditionalSlides,l.loopedSlides=x;const S=l.grid&&h.grid&&h.grid.rows>1;d.length<y+x||"cards"===l.params.effect&&d.length<y+2*x?ge("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):S&&"row"===h.grid.fill&&ge("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const E=[],T=[],C=S?Math.ceil(d.length/h.grid.rows):d.length,_=n&&C-v<y&&!w;let P=_?v:l.activeIndex;void 0===a?a=l.getSlideIndex(d.find(e=>e.classList.contains(h.slideActiveClass))):P=a;const I="next"===i||!i,k="prev"===i||!i;let M=0,A=0;const L=(S?d[a].column:a)+(w&&void 0===s?-y/2+.5:0);if(L<x){M=Math.max(x-L,b);for(let e=0;e<x-L;e+=1){const t=e-Math.floor(e/C)*C;if(S){const e=C-t-1;for(let t=d.length-1;t>=0;t-=1)d[t].column===e&&E.push(t)}else E.push(C-t-1)}}else if(L+y>C-x){A=Math.max(L-(C-2*x),b),_&&(A=Math.max(A,y-C+v+1));for(let e=0;e<A;e+=1){const t=e-Math.floor(e/C)*C;S?d.forEach((e,i)=>{e.column===t&&T.push(i)}):T.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),"cards"===l.params.effect&&d.length<y+2*x&&(T.includes(a)&&T.splice(T.indexOf(a),1),E.includes(a)&&E.splice(E.indexOf(a),1)),k&&E.forEach(e=>{d[e].swiperLoopMoveDOM=!0,p.prepend(d[e]),d[e].swiperLoopMoveDOM=!1}),I&&T.forEach(e=>{d[e].swiperLoopMoveDOM=!0,p.append(d[e]),d[e].swiperLoopMoveDOM=!1}),l.recalcSlides(),"auto"===h.slidesPerView?l.updateSlides():S&&(E.length>0&&k||T.length>0&&I)&&l.slides.forEach((e,t)=>{l.grid.updateSlide(t,e,l.slides)}),h.watchSlidesProgress&&l.updateSlidesOffset(),t)if(E.length>0&&k){if(void 0===e){const e=l.slidesGrid[P],t=l.slidesGrid[P+M]-e;r?l.setTranslate(l.translate-t):(l.slideTo(P+Math.ceil(M),0,!1,!0),s&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(s){const e=S?E.length/h.grid.rows:E.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(T.length>0&&I)if(void 0===e){const e=l.slidesGrid[P],t=l.slidesGrid[P-A]-e;r?l.setTranslate(l.translate-t):(l.slideTo(P-A,0,!1,!0),s&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{const e=S?T.length/h.grid.rows:T.length;l.slideTo(l.activeIndex-e,0,!1,!0)}if(l.allowSlidePrev=c,l.allowSlideNext=u,l.controller&&l.controller.control&&!o){const n={slideRealIndex:e,direction:i,setTranslate:s,activeSlideIndex:a,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix({...n,slideTo:e.params.slidesPerView===h.slidesPerView&&t})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...n,slideTo:l.controller.control.params.slidesPerView===h.slidesPerView&&t})}l.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:i}=e;if(!t.loop||!i||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const s=[];e.slides.forEach(e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;s[t]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),s.forEach(e=>{i.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function Ve(e,t,i){const s=ne(),{params:a}=e,n=a.edgeSwipeDetection,o=a.edgeSwipeThreshold;return!n||!(i<=o||i>=s.innerWidth-o)||"prevent"===n&&(t.preventDefault(),!0)}function Re(e){const t=this,i=se();let s=e;s.originalEvent&&(s=s.originalEvent);const a=t.touchEventsData;if("pointerdown"===s.type){if(null!==a.pointerId&&a.pointerId!==s.pointerId)return;a.pointerId=s.pointerId}else"touchstart"===s.type&&1===s.targetTouches.length&&(a.touchId=s.targetTouches[0].identifier);if("touchstart"===s.type)return void Ve(t,s,s.targetTouches[0].pageX);const{params:n,touches:o,enabled:r}=t;if(!r)return;if(!n.simulateTouch&&"mouse"===s.pointerType)return;if(t.animating&&n.preventInteractionOnTransition)return;!t.animating&&n.cssMode&&n.loop&&t.loopFix();let l=s.target;if("wrapper"===n.touchEventsTarget&&!function(e,t){const i=ne();let s=t.contains(e);!s&&i.HTMLSlotElement&&t instanceof HTMLSlotElement&&(s=[...t.assignedElements()].includes(e),s||(s=function(e,t){const i=[t];for(;i.length>0;){const t=i.shift();if(e===t)return!0;i.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t)));return s}(l,t.wrapperEl))return;if("which"in s&&3===s.which)return;if("button"in s&&s.button>0)return;if(a.isTouched&&a.isMoved)return;const d=!!n.noSwipingClass&&""!==n.noSwipingClass,c=s.composedPath?s.composedPath():s.path;d&&s.target&&s.target.shadowRoot&&c&&(l=c[0]);const u=n.noSwipingSelector?n.noSwipingSelector:`.${n.noSwipingClass}`,p=!(!s.target||!s.target.shadowRoot);if(n.noSwiping&&(p?function(e,t=this){return function t(i){if(!i||i===se()||i===ne())return null;i.assignedSlot&&(i=i.assignedSlot);const s=i.closest(e);return s||i.getRootNode?s||t(i.getRootNode().host):null}(t)}(u,l):l.closest(u)))return void(t.allowClick=!0);if(n.swipeHandler&&!l.closest(n.swipeHandler))return;o.currentX=s.pageX,o.currentY=s.pageY;const h=o.currentX,m=o.currentY;if(!Ve(t,s,h))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=h,o.startY=m,a.touchStartTime=re(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,n.threshold>0&&(a.allowThresholdMove=!1);let f=!0;l.matches(a.focusableElements)&&(f=!1,"SELECT"===l.nodeName&&(a.isTouched=!1)),i.activeElement&&i.activeElement.matches(a.focusableElements)&&i.activeElement!==l&&("mouse"===s.pointerType||"mouse"!==s.pointerType&&!l.matches(a.focusableElements))&&i.activeElement.blur();const g=f&&t.allowTouchMove&&n.touchStartPreventDefault;!n.touchStartForcePreventDefault&&!g||l.isContentEditable||s.preventDefault(),n.freeMode&&n.freeMode.enabled&&t.freeMode&&t.animating&&!n.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",s)}function He(e){const t=se(),i=this,s=i.touchEventsData,{params:a,touches:n,rtlTranslate:o,enabled:r}=i;if(!r)return;if(!a.simulateTouch&&"mouse"===e.pointerType)return;let l,d=e;if(d.originalEvent&&(d=d.originalEvent),"pointermove"===d.type){if(null!==s.touchId)return;if(d.pointerId!==s.pointerId)return}if("touchmove"===d.type){if(l=[...d.changedTouches].find(e=>e.identifier===s.touchId),!l||l.identifier!==s.touchId)return}else l=d;if(!s.isTouched)return void(s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",d));const c=l.pageX,u=l.pageY;if(d.preventedByNestedSwiper)return n.startX=c,void(n.startY=u);
vendor: 4,545 bytes, line 15
15if(!i.allowTouchMove)return d.target.matches(s.focusableElements)||(i.allowClick=!1),void(s.isTouched&&(Object.assign(n,{startX:c,startY:u,currentX:c,currentY:u}),s.touchStartTime=re()));if(a.touchReleaseOnEdges&&!a.loop)if(i.isVertical()){if(u<n.startY&&i.translate<=i.maxTranslate()||u>n.startY&&i.translate>=i.minTranslate())return s.isTouched=!1,void(s.isMoved=!1)}else{if(o&&(c>n.startX&&-i.translate<=i.maxTranslate()||c<n.startX&&-i.translate>=i.minTranslate()))return;if(!o&&(c<n.startX&&i.translate<=i.maxTranslate()||c>n.startX&&i.translate>=i.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(s.focusableElements)&&t.activeElement!==d.target&&"mouse"!==d.pointerType&&t.activeElement.blur(),t.activeElement&&d.target===t.activeElement&&d.target.matches(s.focusableElements))return s.isMoved=!0,void(i.allowClick=!1);s.allowTouchCallbacks&&i.emit("touchMove",d),n.previousX=n.currentX,n.previousY=n.currentY,n.currentX=c,n.currentY=u;const p=n.currentX-n.startX,h=n.currentY-n.startY;if(i.params.threshold&&Math.sqrt(p**2+h**2)<i.params.threshold)return;if(void 0===s.isScrolling){let e;i.isHorizontal()&&n.currentY===n.startY||i.isVertical()&&n.currentX===n.startX?s.isScrolling=!1:p*p+h*h>=25&&(e=180*Math.atan2(Math.abs(h),Math.abs(p))/Math.PI,s.isScrolling=i.isHorizontal()?e>a.touchAngle:90-e>a.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",d),void 0===s.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(s.startMoving=!0)),s.isScrolling||"touchmove"===d.type&&s.preventTouchMoveFromPointerMove)return void(s.isTouched=!1);if(!s.startMoving)return;i.allowClick=!1,!a.cssMode&&d.cancelable&&d.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&d.stopPropagation();let m=i.isHorizontal()?p:h,f=i.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;a.oneWayMovement&&(m=Math.abs(m)*(o?1:-1),f=Math.abs(f)*(o?1:-1)),n.diff=m,m*=a.touchRatio,o&&(m=-m,f=-f);const g=i.touchesDirection;i.swipeDirection=m>0?"prev":"next",i.touchesDirection=f>0?"prev":"next";const v=i.params.loop&&!a.cssMode,w="next"===i.touchesDirection&&i.allowSlideNext||"prev"===i.touchesDirection&&i.allowSlidePrev;if(!s.isMoved){if(v&&w&&i.loopFix({direction:i.swipeDirection}),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(e)}s.allowMomentumBounce=!1,!a.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",d)}if((new Date).getTime(),!1!==a._loopSwapReset&&s.isMoved&&s.allowThresholdMove&&g!==i.touchesDirection&&v&&w&&Math.abs(m)>=1)return Object.assign(n,{startX:c,startY:u,currentX:c,currentY:u,startTranslate:s.currentTranslate}),s.loopSwapReset=!0,void(s.startTranslate=s.currentTranslate);i.emit("sliderMove",d),s.isMoved=!0,s.currentTranslate=m+s.startTranslate;let y=!0,b=a.resistanceRatio;if(a.touchReleaseOnEdges&&(b=0),m>0?(v&&w&&s.allowThresholdMove&&s.currentTranslate>(a.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]-("auto"!==a.slidesPerView&&i.slides.length-a.slidesPerView>=2?i.slidesSizesGrid[i.activeIndex+1]+i.params.spaceBetween:0)-i.params.spaceBetween:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>i.minTranslate()&&(y=!1,a.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+m)**b))):m<0&&(v&&w&&s.allowThresholdMove&&s.currentTranslate<(a.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween+("auto"!==a.slidesPerView&&i.slides.length-a.slidesPerView>=2?i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween:0):i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-("auto"===a.slidesPerView?i.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),s.currentTranslate<i.maxTranslate()&&(y=!1,a.resistance&&(s.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-s.startTranslate-m)**b))),y&&(d.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),i.allowSlidePrev||i.allowSlideNext||(s.currentTranslate=s.startTranslate),a.threshold>0){if(!(Math.abs(m)>a.threshold||s.allowThresholdMove))return void(s.currentTranslate=s.startTranslate);
vendor: 4,881 bytes, line 15
15if(!s.allowThresholdMove)return s.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,s.currentTranslate=s.startTranslate,void(n.diff=i.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}a.followFinger&&!a.cssMode&&((a.freeMode&&a.freeMode.enabled&&i.freeMode||a.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function Fe(e){const t=this,i=t.touchEventsData;let s,a=e;a.originalEvent&&(a=a.originalEvent);if("touchend"===a.type||"touchcancel"===a.type){if(s=[...a.changedTouches].find(e=>e.identifier===i.touchId),!s||s.identifier!==i.touchId)return}else{if(null!==i.touchId)return;if(a.pointerId!==i.pointerId)return;s=a}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(a.type)){if(!(["pointercancel","contextmenu"].includes(a.type)&&(t.browser.isSafari||t.browser.isWebView)))return}i.pointerId=null,i.touchId=null;const{params:n,touches:o,rtlTranslate:r,slidesGrid:l,enabled:d}=t;if(!d)return;if(!n.simulateTouch&&"mouse"===a.pointerType)return;if(i.allowTouchCallbacks&&t.emit("touchEnd",a),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&n.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);n.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=re(),u=c-i.touchStartTime;if(t.allowClick){const e=a.path||a.composedPath&&a.composedPath();t.updateClickedSlide(e&&e[0]||a.target,e),t.emit("tap click",a),u<300&&c-i.lastClickTime<300&&t.emit("doubleTap doubleClick",a)}if(i.lastClickTime=re(),oe(()=>{t.destroyed||(t.allowClick=!0)}),!i.isTouched||!i.isMoved||!t.swipeDirection||0===o.diff&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let p;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,p=n.followFinger?r?t.translate:-t.translate:-i.currentTranslate,n.cssMode)return;if(n.freeMode&&n.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});const h=p>=-t.maxTranslate()&&!t.params.loop;let m=0,f=t.slidesSizesGrid[0];for(let e=0;e<l.length;e+=e<n.slidesPerGroupSkip?1:n.slidesPerGroup){const t=e<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;void 0!==l[e+t]?(h||p>=l[e]&&p<l[e+t])&&(m=e,f=l[e+t]-l[e]):(h||p>=l[e])&&(m=e,f=l[l.length-1]-l[l.length-2])}let g=null,v=null;n.rewind&&(t.isBeginning?v=n.virtual&&n.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const w=(p-l[m])/f,y=m<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(u>n.longSwipesMs){if(!n.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(w>=n.longSwipesRatio?t.slideTo(n.rewind&&t.isEnd?g:m+y):t.slideTo(m)),"prev"===t.swipeDirection&&(w>1-n.longSwipesRatio?t.slideTo(m+y):null!==v&&w<0&&Math.abs(w)>n.longSwipesRatio?t.slideTo(v):t.slideTo(m))}else{if(!n.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(a.target===t.navigation.nextEl||a.target===t.navigation.prevEl)?a.target===t.navigation.nextEl?t.slideTo(m+y):t.slideTo(m):("next"===t.swipeDirection&&t.slideTo(null!==g?g:m+y),"prev"===t.swipeDirection&&t.slideTo(null!==v?v:m))}}function Ue(){const e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:a,snapGrid:n}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const r=o&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||r?e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=a,e.allowSlideNext=s,e.params.watchOverflow&&n!==e.snapGrid&&e.checkOverflow()}function We(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Xe(){const e=this,{wrapperEl:t,rtlTranslate:i,enabled:s}=e;if(!s)return;let a;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const n=e.maxTranslate()-e.minTranslate();a=0===n?0:(e.translate-e.minTranslate())/n,a!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Ye(e){const t=this;Ne(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update(
vendor: 17,758 bytes, line 15
15)}function Qe(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const Ze=(e,t)=>{const i=se(),{params:s,el:a,wrapperEl:n,device:o}=e,r=!!s.nested,l="on"===t?"addEventListener":"removeEventListener",d=t;a&&"string"!=typeof a&&(i[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:r}),a[l]("touchstart",e.onTouchStart,{passive:!1}),a[l]("pointerdown",e.onTouchStart,{passive:!1}),i[l]("touchmove",e.onTouchMove,{passive:!1,capture:r}),i[l]("pointermove",e.onTouchMove,{passive:!1,capture:r}),i[l]("touchend",e.onTouchEnd,{passive:!0}),i[l]("pointerup",e.onTouchEnd,{passive:!0}),i[l]("pointercancel",e.onTouchEnd,{passive:!0}),i[l]("touchcancel",e.onTouchEnd,{passive:!0}),i[l]("pointerout",e.onTouchEnd,{passive:!0}),i[l]("pointerleave",e.onTouchEnd,{passive:!0}),i[l]("contextmenu",e.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&a[l]("click",e.onClick,!0),s.cssMode&&n[l]("scroll",e.onScroll),s.updateOnWindowResize?e[d](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ue,!0):e[d]("observerUpdate",Ue,!0),a[l]("load",e.onLoad,{capture:!0}))};const Ke=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var Je={setBreakpoint:function(){const e=this,{realIndex:t,initialized:i,params:s,el:a}=e,n=s.breakpoints;if(!n||n&&0===Object.keys(n).length)return;const o=se(),r="window"!==s.breakpointsBase&&s.breakpointsBase?"container":s.breakpointsBase,l=["window","container"].includes(s.breakpointsBase)||!s.breakpointsBase?e.el:o.querySelector(s.breakpointsBase),d=e.getBreakpoint(n,r,l);if(!d||e.currentBreakpoint===d)return;const c=(d in n?n[d]:void 0)||e.originalParams,u=Ke(e,s),p=Ke(e,c),h=e.params.grabCursor,m=c.grabCursor,f=s.enabled;u&&!p?(a.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&p&&(a.classList.add(`${s.containerModifierClass}grid`),(c.grid.fill&&"column"===c.grid.fill||!c.grid.fill&&"column"===s.grid.fill)&&a.classList.add(`${s.containerModifierClass}grid-column`),e.emitContainerClasses()),h&&!m?e.unsetGrabCursor():!h&&m&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===c[t])return;const i=s[t]&&s[t].enabled,a=c[t]&&c[t].enabled;i&&!a&&e[t].disable(),!i&&a&&e[t].enable()});const g=c.direction&&c.direction!==s.direction,v=s.loop&&(c.slidesPerView!==s.slidesPerView||g),w=s.loop;g&&i&&e.changeDirection(),ue(e.params,c);const y=e.params.enabled,b=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!y?e.disable():!f&&y&&e.enable(),e.currentBreakpoint=d,e.emit("_beforeBreakpoint",c),i&&(v?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!w&&b?(e.loopCreate(t),e.updateSlides()):w&&!b&&e.loopDestroy()),e.emit("breakpoint",c)},getBreakpoint:function(e,t="window",i){if(!e||"container"===t&&!i)return;let s=!1;const a=ne(),n="window"===t?a.innerHeight:i.clientHeight,o=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:n*t,point:e}}return{value:e,point:e}});o.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<o.length;e+=1){const{point:n,value:r}=o[e];"window"===t?a.matchMedia(`(min-width: ${r}px)`).matches&&(s=n):r<=i.clientWidth&&(s=n)}return s||"max"}};var et={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function tt(e,t){return function(i={}){const s=Object.keys(i)[0],a=i[s];"object"==typeof a&&null!==a?(!0===e[s]&&(e[s]={enabled:!0}),"navigation"===s&&e[s]&&e[s].enabled&&!e[s].prevEl&&!e[s].nextEl&&(e[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&e[s]&&e[s].enabled&&!e[s].el&&(e[s].auto=!0),s in e&&"enabled"in a?("object"!=typeof e[s]||"enabled"in e[s]||(e[s].enabled=!0),e[s]||(e[s]={enabled:!1}),ue(t,i)):ue(t,i)):ue(t,i)}}const it={eventsEmitter:Ae,update:$e,translate:Be,transition:{setTransition:function(e,t){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${e}ms`,i.wrapperEl.style.transitionDelay=0===e?"0ms":""),i.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const i=this,{params:s}=i;s.cssMode||(s.autoHeight&&i.updateAutoHeight(),ze({swiper:i,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){const i=this,{params:s}=i;i.animating=!1,s.cssMode||(i.setTransition(0),ze({swiper:i,runCallbacks:e,direction:t,step:"End"}))}},slide:qe,loop:Ge,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=Re.bind(e),e.onTouchMove=He.bind(e),e.onTouchEnd=Fe.bind(e),e.onDocumentTouchStart=Qe.bind(e),t.cssMode&&(e.onScroll=Xe.bind(e)),e.onClick=We.bind(e),e.onLoad=Ye.bind(e),Ze(e,"on")},detachEvents:function(){Ze(this,"off")}},breakpoints:Je,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:i}=e,{slidesOffsetBefore:s}=i;if(s){const t=e.slides.length-1,i=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*s;e.isLocked=e.size>i}else e.isLocked=1===e.snapGrid.length;!0===i.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===i.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:i,rtl:s,el:a,device:n}=e,o=function(e,t){const i=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(s=>{e[s]&&i.push(t+s)}):"string"==typeof e&&i.push(t+e)}),i}(["initialized",i.direction,{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&"column"===i.grid.fill},{android:n.android},{ios:n.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);t.push(...o),a.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},st={};let at=class e{constructor(...t){let i,s;1===t.length&&t[0].constructor&&"Object"===Object.prototype.toString.call(t[0]).slice(8,-1)?s=t[0]:[i,s]=t,s||(s={}),s=ue({},s),i&&!s.el&&(s.el=i);const a=se();if(s.el&&"string"==typeof s.el&&a.querySelectorAll(s.el).length>1){const t=[];return a.querySelectorAll(s.el).forEach(i=>{const a=ue({},s,{el:i});t.push(new e(a))}),t}const n=this;n.__swiper__=!0,n.support=Ie(),n.device=ke({userAgent:s.userAgent}),n.browser=Me(),n.eventsListeners={},n.eventsAnyListeners=[],n.modules=[...n.__modules__],s.modules&&Array.isArray(s.modules)&&s.modules.forEach(e=>{"function"==typeof e&&n.modules.indexOf(e)<0&&n.modules.push(e)});const o={};n.modules.forEach(e=>{e({params:s,swiper:n,extendParams:tt(s,o),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})});const r=ue({},et,o);return n.params=ue({},r,st,s),n.originalParams=ue({},n.params),n.passedParams=ue({},s),n.params&&n.params.on&&Object.keys(n.params.on).forEach(e=>{n.on(e,n.params.on[e])}),n.params&&n.params.onAny&&n.onAny(n.params.onAny),Object.assign(n,{enabled:n.params.enabled,el:i,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===n.params.direction,isVertical:()=>"vertical"===n.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:n.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),n.emit("_swiper"),n.params.init&&n.init(),n}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:i}=this,s=ye(fe(t,`.${i.slideClass}, swiper-slide`)[0]);return ye(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=fe(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const i=this;e=Math.min(Math.max(e,0),1);const s=i.minTranslate(),a=(i.maxTranslate()-s)*e+s;i.translateTo(a,void 0===t?0:t),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(i=>{const s=e.getSlideClasses(i);t.push({slideEl:i,classNames:s}),e.emit("_slideClass",i,s)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:i,slides:s,slidesGrid:a,slidesSizesGrid:n,size:o,activeIndex:r}=this;let l=1;if("number"==typeof i.slidesPerView)return i.slidesPerView;if(i.centeredSlides){let e,t=s[r]?Math.ceil(s[r].swiperSlideSize):0;for(let i=r+1;i<s.length;i+=1)s[i]&&!e&&(t+=Math.ceil(s[i].swiperSlideSize),l+=1,t>o&&(e=!0));for(let i=r-1;i>=0;i-=1)s[i]&&!e&&(t+=s[i].swiperSlideSize,l+=1,t>o&&(e=!0))}else if("current"===e)for(let e=r+1;e<s.length;e+=1){(t?a[e]+n[e]-a[r]<o:a[e]-a[r]<o)&&(l+=1)}else for(let e=r-1;e>=0;e-=1){a[r]-a[e]<o&&(l+=1)}return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:i}=e;function s(){const t=e.rtlTranslate?-1*e.translate:e.translate,i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i),e.updateActiveIndex(),e.updateSlidesClasses()}let a;if(i.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&Ne(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),i.freeMode&&i.freeMode.enabled&&!i.cssMode)s(),i.autoHeight&&e.updateAutoHeight();else{if(("auto"===i.slidesPerView||i.slidesPerView>1)&&e.isEnd&&!i.centeredSlides){const t=e.virtual&&i.virtual.enabled?e.virtual.slides:e.slides;a=e.slideTo(t.length-1,0,!1,!0)}else a=e.slideTo(e.activeIndex,0,!1,!0);a||s()}i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const i=this,s=i.params.direction;return e||(e="horizontal"===s?"vertical":"horizontal"),e===s||"horizontal"!==e&&"vertical"!==e||(i.el.classList.remove(`${i.params.containerModifierClass}${s}`),i.el.classList.add(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),i.emit("changeDirection"),t&&i.update()),i}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let i=e||t.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=t,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const s=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=(()=>{if(i&&i.shadowRoot&&i.shadowRoot.querySelector){return i.shadowRoot.querySelector(s())}return fe(i,s())[0]})();return!a&&t.params.createElements&&(a=ve("div",t.params.wrapperClass),i.append(a),fe(i,`.${t.params.slideClass}`).forEach(e=>{a.append(e)})),Object.assign(t,{el:i,wrapperEl:a,slidesEl:t.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:a,hostEl:t.isElement?i.parentNode.host:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===we(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===we(i,"direction")),wrongRTL:"-webkit-box"===we(a,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const i=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&i.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(e=>{e.complete?Ne(t,e):e.addEventListener("load",e=>{Ne(t,e.target)})}),je(t),t.initialized=!0,je(t),t.emit("init"),t.emit("afterInit"),t}destroy(e=!0,t=!0){const i=this,{params:s,el:a,wrapperEl:n,slides:o}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),a&&"string"!=typeof a&&a.removeAttribute("style"),n&&n.removeAttribute("style"),o&&o.length&&o.forEach(e=>{e.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(e=>{i.off(e)}),!1!==e&&(i.el&&"string"!=typeof i.el&&(i.el.swiper=null),function(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}(i)),i.destroyed=!0),null}static extendDefaults(e){ue(st,e)}static get extendedDefaults(){return st}static get defaults(){return et}static installModule(t){e.prototype.__modules__||(e.prototype.__modules__=[]);const i=e.prototype.__modules__;"function"==typeof t&&i.indexOf(t)<0&&i.push(t)}static use(t){return Array.isArray(t)?(t.forEach(t=>e.installModule(t)),e):(e.installModule(t),e)}};function nt(e,t,i,s){return e.params.createElements&&Object.keys(s).forEac
vendor: 4,096 bytes, line 15
15h(a=>{if(!i[a]&&!0===i.auto){let n=fe(e.el,`.${s[a]}`)[0];n||(n=ve("div",s[a]),n.className=s[a],e.el.append(n)),i[a]=n,t[a]=n}}),i}Object.keys(it).forEach(e=>{Object.keys(it[e]).forEach(t=>{at.prototype[t]=it[e][t]})}),at.use([function({swiper:e,on:t,emit:i}){const s=ne();let a=null,n=null;const o=()=>{e&&!e.destroyed&&e.initialized&&(i("beforeResize"),i("resize"))},r=()=>{e&&!e.destroyed&&e.initialized&&i("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==s.ResizeObserver?e&&!e.destroyed&&e.initialized&&(a=new ResizeObserver(t=>{n=s.requestAnimationFrame(()=>{const{width:i,height:s}=e;let a=i,n=s;t.forEach(({contentBoxSize:t,contentRect:i,target:s})=>{s&&s!==e.el||(a=i?i.width:(t[0]||t).inlineSize,n=i?i.height:(t[0]||t).blockSize)}),a===i&&n===s||o()})}),a.observe(e.el)):(s.addEventListener("resize",o),s.addEventListener("orientationchange",r))}),t("destroy",()=>{n&&s.cancelAnimationFrame(n),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null),s.removeEventListener("resize",o),s.removeEventListener("orientationchange",r)})},function({swiper:e,extendParams:t,on:i,emit:s}){const a=[],n=ne(),o=(t,i={})=>{const o=new(n.MutationObserver||n.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(1===t.length)return void s("observerUpdate",t[0]);const i=function(){s("observerUpdate",t[0])};n.requestAnimationFrame?n.requestAnimationFrame(i):n.setTimeout(i,0)});o.observe(t,{attributes:void 0===i.attributes||i.attributes,childList:e.isElement||(void 0===i.childList||i).childList,characterData:void 0===i.characterData||i.characterData}),a.push(o)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=be(e.hostEl);for(let e=0;e<t.length;e+=1)o(t[e])}o(e.hostEl,{childList:e.params.observeSlideChildren}),o(e.wrapperEl,{attributes:!1})}}),i("destroy",()=>{a.forEach(e=>{e.disconnect()}),a.splice(0,a.length)})}]);const ot='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function rt({swiper:e,extendParams:t,on:i,emit:s}){function a(t){let i;return t&&"string"==typeof t&&e.isElement&&(i=e.el.querySelector(t)||e.hostEl.querySelector(t),i)?i:(t&&("string"==typeof t&&(i=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&i&&i.length>1&&1===e.el.querySelectorAll(t).length?i=e.el.querySelector(t):i&&1===i.length&&(i=i[0])),t&&!i?t:i)}function n(t,i){const s=e.params.navigation;(t=Se(t)).forEach(t=>{t&&(t.classList[i?"add":"remove"](...s.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=i),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](s.lockClass))})}function o(){const{nextEl:t,prevEl:i}=e.navigation;if(e.params.loop)return n(i,!1),void n(t,!1);n(i,e.isBeginning&&!e.params.rewind),n(t,e.isEnd&&!e.params.rewind)}function r(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),s("navigationPrev"))}function l(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),s("navigationNext"))}function d(){const t=e.params.navigation;if(e.params.navigation=nt(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;let i=a(t.nextEl),s=a(t.prevEl);Object.assign(e.navigation,{nextEl:i,prevEl:s}),i=Se(i),s=Se(s);const n=(i,s)=>{if(i){if(t.addIcons&&i.matches(".swiper-button-next,.swiper-button-prev")&&!i.querySelector("svg")){const e=document.createElement("div");Te(e,ot),i.appendChild(e.querySelector("svg")),e.remove()}i.addEventListener("click","next"===s?l:r)}!e.enabled&&i&&i.classList.add(...t.lockClass.split(" "))};
vendor: 4,199 bytes, line 15
15i.forEach(e=>n(e,"next")),s.forEach(e=>n(e,"prev"))}function c(){let{nextEl:t,prevEl:i}=e.navigation;t=Se(t),i=Se(i);const s=(t,i)=>{t.removeEventListener("click","next"===i?l:r),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(e=>s(e,"next")),i.forEach(e=>s(e,"prev"))}t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:ot},i("init",()=>{!1===e.params.navigation.enabled?u():(d(),o())}),i("toEdge fromEdge lock unlock",()=>{o()}),i("destroy",()=>{c()}),i("enable disable",()=>{let{nextEl:t,prevEl:i}=e.navigation;t=Se(t),i=Se(i),e.enabled?o():[...t,...i].filter(e=>!!e).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),i("click",(t,i)=>{let{nextEl:a,prevEl:n}=e.navigation;a=Se(a),n=Se(n);const o=i.target;let r=n.includes(o)||a.includes(o);if(e.isElement&&!r){const e=i.path||i.composedPath&&i.composedPath();e&&(r=e.find(e=>a.includes(e)||n.includes(e)))}if(e.params.navigation.hideOnClick&&!r){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===o||e.pagination.el.contains(o)))return;let t;a.length?t=a[0].classList.contains(e.params.navigation.hiddenClass):n.length&&(t=n[0].classList.contains(e.params.navigation.hiddenClass)),s(!0===t?"navigationShow":"navigationHide"),[...a,...n].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});const u=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),c()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),o()},disable:u,update:o,init:d,destroy:c})}function lt(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function dt({swiper:e,extendParams:t,on:i,emit:s}){const a="swiper-pagination";let n;t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),e.pagination={el:null,bullets:[]};let o=0;function r(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function l(t,i){const{bulletActiveClass:s}=e.params.pagination;t&&(t=t[("prev"===i?"previous":"next")+"ElementSibling"])&&(t.classList.add(`${s}-${i}`),(t=t[("prev"===i?"previous":"next")+"ElementSibling"])&&t.classList.add(`${s}-${i}-${i}`))}function d(t){const i=t.target.closest(lt(e.params.pagination.bulletClass));if(!i)return;t.preventDefault();const s=ye(i)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===s)return;const t=(a=e.realIndex,n=s,o=e.slides.length,(n%=o)===1+(a%=o)?"next":n===a-1?"previous":void 0);"next"===t?e.slideNext():"previous"===t?e.slidePrev():e.slideToLoop(s)}else e.slideTo(s);var a,n,o}function c(){const t=e.rtl,i=e.params.pagination;if(r())return;let a,d,c=e.pagination.el;c=Se(c);const u=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,p=e.params.loop?Math.ceil(u/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(d=e.previousRealIndex||0,a=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):void 0!==e.snapIndex?(a=e.snapIndex,d=e.previousSnapIndex):(d=e.previousIndex||0,a=e.activeIndex||0),"bullets"===i.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const s=e.pagination.bullets;let r,u,p;if(i.dynamicBullets&&(n=xe(s[0],e.isHorizontal()?"width":"height"),c.forEac
15h(t=>{t.style[e.isHorizontal()?"width":"height"]=n*(i.dynamicMainBullets+4)+"px"}),i.dynamicMainBullets>1&&void 0!==d&&(o+=a-(d||0),o>i.dynamicMainBullets-1?o=i.dynamicMainBullets-1:o<0&&(o=0)),r=Math.max(a-o,0),u=r+(Math.min(s.length,i.dynamicMainBullets)-1),p=(u+r)/2),s.forEach(e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${i.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),c.length>1)s.forEach(t=>{const s=ye(t);s===a?t.classList.add(...i.bulletActiveClass.split(" ")):e.isElement&&t.setAttribute("part","bullet"),i.dynamicBullets&&(s>=r&&s<=u&&t.classList.add(...`${i.bulletActiveClass}-main`.split(" ")),s===r&&l(t,"prev"),s===u&&l(t,"next"))});else{const t=s[a];if(t&&t.classList.add(...i.bulletActiveClass.split(" ")),e.isElement&&s.forEach((e,t)=>{e.setAttribute("part",t===a?"bullet-active":"bullet")}),i.dynamicBullets){const e=s[r],t=s[u];for(let e=r;e<=u;e+=1)s[e]&&s[e].classList.add(...`${i.bulletActiveClass}-main`.split(" "));l(e,"prev"),l(t,"next")}}if(i.dynamicBullets){const a=Math.min(s.length,i.dynamicMainBullets+4),o=(n*a-n)/2-p*n,r=t?"right":"left";s.forEach(t=>{t.style[e.isHorizontal()?r:"top"]=`${o}px`})}}c.forEach((t,n)=>{if("fraction"===i.type&&(t.querySelectorAll(lt(i.currentClass)).forEach(e=>{e.textContent=i.formatFractionCurrent(a+1)}),t.querySelectorAll(lt(i.totalClass)).forEach(e=>{e.textContent=i.formatFractionTotal(p)})),"progressbar"===i.type){let s;s=i.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const n=(a+1)/p;let o=1,r=1;"horizontal"===s?o=n:r=n,t.querySelectorAll(lt(i.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${o}) scaleY(${r})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===i.type&&i.renderCustom?(Te(t,i.renderCustom(e,a+1,p)),0===n&&s("paginationRender",t)):(0===n&&s("paginationRender",t),s("paginationUpdate",t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](i.lockClass)})}function u(){const t=e.params.pagination;if(r())return;const i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let a=e.pagination.el;a=Se(a);let n="";if("bullets"===t.type){let s=e.params.loop?Math.ceil(i/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&s>i&&(s=i);for(let i=0;i<s;i+=1)t.renderBullet?n+=t.renderBullet.call(e,i,t.bulletClass):n+=`<${t.bulletElement} ${e.isElement?'part="bullet"':""} class="${t.bulletClass}"></${t.bulletElement}>`}"fraction"===t.type&&(n=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),"progressbar"===t.type&&(n=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],a.forEach(i=>{"custom"!==t.type&&Te(i,n||""),"bullets"===t.type&&e.pagination.bullets.push(...i.querySelectorAll(lt(t.bulletClass)))}),"custom"!==t.type&&s("paginationRender",a[0])}function p(){e.params.pagination=nt(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let i;"string"==typeof t.el&&e.isElement&&(i=e.el.querySelector(t.el)),i||"string"!=typeof t.el||(i=[...document.querySelectorAll(t.el)]),i||(i=t.el),i&&0!==i.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(i)&&i.length>1&&(i=[...e.el.querySelectorAll(t.el)],i.length>1&&(i=i.find(t=>be(t,".swiper")[0]===e.el))),Array.isArray(i)&&1===i.length&&(i=i[0]),Object.assign(e.pagination,{el:i}),i=Se(i),i.forEach(i=>{"bullets"===t.type&&t.clickable&&i.classList.add(...(t.clickableClass||"").split(" ")),i.classList.add(t.modifierClass+t.type),i.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(i.classList.add(`${t.modifierClass}${t.type}-dynamic`),o=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&i.classList.add(t.progressbarOppositeClass),t.clickable&&i.addEventListener("click",d),e.enabled||i.classList.add(t.lockClass)}))}function h(){const t=e.params.pagination;
15if(r())return;let i=e.pagination.el;i&&(i=Se(i),i.forEach(i=>{i.classList.remove(t.hiddenClass),i.classList.remove(t.modifierClass+t.type),i.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(i.classList.remove(...(t.clickableClass||"").split(" ")),i.removeEventListener("click",d))})),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" ")))}i("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const t=e.params.pagination;let{el:i}=e.pagination;i=Se(i),i.forEach(i=>{i.classList.remove(t.horizontalClass,t.verticalClass),i.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),i("init",()=>{!1===e.params.pagination.enabled?m():(p(),u(),c())}),i("activeIndexChange",()=>{void 0===e.snapIndex&&c()}),i("snapIndexChange",()=>{c()}),i("snapGridLengthChange",()=>{u(),c()}),i("destroy",()=>{h()}),i("enable disable",()=>{let{el:t}=e.pagination;t&&(t=Se(t),t.forEach(t=>t.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),i("lock unlock",()=>{c()}),i("click",(t,i)=>{const a=i.target,n=Se(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&n&&n.length>0&&!a.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&a===e.navigation.nextEl||e.navigation.prevEl&&a===e.navigation.prevEl))return;const t=n[0].classList.contains(e.params.pagination.hiddenClass);s(!0===t?"paginationShow":"paginationHide"),n.forEach(t=>t.classList.toggle(e.params.pagination.hiddenClass))}});const m=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=Se(t),t.forEach(t=>t.classList.add(e.params.pagination.paginationDisabledClass))),h()};Object.assign(e.pagination,{enable:()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=Se(t),t.forEach(t=>t.classList.remove(e.params.pagination.paginationDisabledClass))),p(),u(),c()},disable:m,render:u,update:c,init:p,destroy:h})}function ct({swiper:e,extendParams:t,on:i,emit:s,params:a}){let n,o;e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let r,l,d,c,u,p,h,m=a&&a.autoplay?a.autoplay.delay:3e3,f=a&&a.autoplay?a.autoplay.delay:3e3,g=(new Date).getTime();function v(t){e&&!e.destroyed&&e.wrapperEl&&t.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",v),h||t.detail&&t.detail.bySwiperTouchMove||T())}const w=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?l=!0:l&&(f=r,l=!1);const t=e.autoplay.paused?r:g+f-(new Date).getTime();e.autoplay.timeLeft=t,s("autoplayTimeLeft",t,t/m),o=requestAnimationFrame(()=>{w()})},y=()=>{let t=e.params.autoplay.delay;const i=(()=>{let t;if(t=e.virtual&&e.params.virtual.enabled?e.slides.find(e=>e.classList.contains("swiper-slide-active")):e.slides[e.activeIndex],!t)return;return parseInt(t.getAttribute("data-swiper-autoplay"),10)})();return!Number.isNaN(i)&&i>0&&(t=i),t},b=t=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(o),w();let i=t;void 0===i&&(i=y(),m=i,f=i),r=i;const a=e.params.speed,l=()=>{e&&!e.destroyed&&(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(a,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,a,!0,!0),s("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(a,!0,!0),s("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,a,!0,!0),s("autoplay")),e.params.cssMode&&(g=(new Date).getTime(),requestAnimationFrame(()=>{b()})))};return i>0?(clearTimeout(n),n=setTimeout(()=>{l()},i)):requestAnimationFrame(()=>{l()}),i},x=()=>{g=(new Date).getTime(),e.autoplay.running=!0,b(),s("autoplayStart")},S=()=>{e.autoplay.running=!1,clearTimeout(n),cancelAnimationFrame(o),s("autoplayStop")},E=(t,i)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(n),t||(p=!0);const a=()=>{s("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",v):T()};if(e.autoplay.paused=!0,i)return void a();const o=r||e.params.autoplay.delay;r=o-((new Date).getTime()-g),e.isEnd&&r<0&&!e.params.loop||(r<0&&(r=0),a())},T=()=>{e.isEnd&&r<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(g=(new Date).getTime(),p?(p=!1,b(r)):b(
15),e.autoplay.paused=!1,s("autoplayResume"))},C=()=>{if(e.destroyed||!e.autoplay.running)return;const t=se();"hidden"===t.visibilityState&&(p=!0,E(!0)),"visible"===t.visibilityState&&T()},_=t=>{"mouse"===t.pointerType&&(p=!0,h=!0,e.animating||e.autoplay.paused||E(!0))},P=t=>{"mouse"===t.pointerType&&(h=!1,e.autoplay.paused&&T())};i("init",()=>{e.params.autoplay.enabled&&(e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",_),e.el.addEventListener("pointerleave",P)),se().addEventListener("visibilitychange",C),x())}),i("destroy",()=>{e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("pointerenter",_),e.el.removeEventListener("pointerleave",P)),se().removeEventListener("visibilitychange",C),e.autoplay.running&&S()}),i("_freeModeStaticRelease",()=>{(c||p)&&T()}),i("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?S():E(!0,!0)}),i("beforeTransitionStart",(t,i,s)=>{!e.destroyed&&e.autoplay.running&&(s||!e.params.autoplay.disableOnInteraction?E(!0,!0):S())}),i("sliderFirstMove",()=>{!e.destroyed&&e.autoplay.running&&(e.params.autoplay.disableOnInteraction?S():(d=!0,c=!1,p=!1,u=setTimeout(()=>{p=!0,c=!0,E(!0)},200)))}),i("touchEnd",()=>{if(!e.destroyed&&e.autoplay.running&&d){if(clearTimeout(u),clearTimeout(n),e.params.autoplay.disableOnInteraction)return c=!1,void(d=!1);c&&e.params.cssMode&&T(),c=!1,d=!1}}),i("slideChange",()=>{!e.destroyed&&e.autoplay.running&&e.autoplay.paused&&(r=y(),m=y())}),Object.assign(e.autoplay,{start:x,stop:S,pause:E,resume:T})}function ut({swiper:e,extendParams:t,on:i}){t({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let s=!1,a=!1;function n(){const t=e.thumbs.swiper;return!(!t||t.destroyed)&&(t.params.virtual&&t.params.virtual.enabled)}function o(){const t=e.thumbs.swiper;if(!t||t.destroyed)return;const i=t.clickedIndex,s=t.clickedSlide;if(s&&s.classList.contains(e.params.thumbs.slideThumbActiveClass))return;if(null==i)return;let a;a=t.params.loop?parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10):i,e.params.loop?e.slideToLoop(a):e.slideTo(a)}function r(){const{thumbs:t}=e.params;if(s)return!1;s=!0;const i=e.constructor;if(t.swiper instanceof i){if(t.swiper.destroyed)return s=!1,!1;e.thumbs.swiper=t.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update()}else if(de(t.swiper)){const s=Object.assign({},t.swiper);Object.assign(s,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new i(s),a=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",o),n()&&e.thumbs.swiper.on("virtualUpdate",()=>{l(!1,{autoScroll:!1})}),!0}function l(t,i){const s=e.thumbs.swiper;if(!s||s.destroyed)return;let a=1;const o=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(a=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(a=1),a=Math.floor(a),s.slides.forEach(e=>e.classList.remove(o)),s.params.loop||n())for(let t=0;t<a;t+=1)fe(s.slidesEl,`[data-swiper-slide-index="${e.realIndex+t}"]`).forEach(e=>{e.classList.add(o)});else for(let t=0;t<a;t+=1)s.slides[e.realIndex+t]&&s.slides[e.realIndex+t].classList.add(o);(i?.autoScroll??1)&&function(t){const i=e.thumbs.swiper;if(!i||i.destroyed)return;const s="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView,a=e.params.thumbs.autoScrollOffset,n=a&&!i.params.loop;if(e.realIndex!==i.realIndex||n){const o=i.activeIndex;let r,l;if(i.params.loop){const t=i.slides.find(t=>t.getAttribute("data-swiper-slide-index")===`${e.realIndex}`);r=i.slides.indexOf(t),l=e.activeIndex>e.previousIndex?"next":"prev"}else r=e.realIndex,l=r>e.previousIndex?"next":"prev";n&&(r+="next"===l?a:-1*a),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(r)<0&&(i.params.centeredSlides?r=r>o?r-Math.floor(s/2)+1:r+Math.floor(s/2)-1:r>o&&i.params.slidesPerGroup,i.slideTo(r,t))}}(t?0:void 0)}e.thumbs={swiper:null},i("beforeInit",()=>{const{thumbs:t}=e.params;if(t&&t.swiper)if("string"==typeof t.swiper||t.swiper instanceof HTMLElement){const i=se(),s=()=>{const s="string"==typeof t.swiper?i.querySelector(t.swiper):t.swiper;if(s&&s.swiper)t.swiper=s.swiper,r(),l(!0);else if(s){const i=`${e.params.eventsPrefix}init`,a=n=>{t.swiper=n.detail[0],s.removeEventListener(i,a),r(),l(!0),t.swiper.update(
vendor: 4,355 bytes, line 15
15),e.update()};s.addEventListener(i,a)}return s},a=()=>{if(e.destroyed)return;s()||requestAnimationFrame(a)};requestAnimationFrame(a)}else r(),l(!0)}),i("slideChange update resize observerUpdate",()=>{l()}),i("setTransition",(t,i)=>{const s=e.thumbs.swiper;s&&!s.destroyed&&s.setTransition(i)}),i("beforeDestroy",()=>{const t=e.thumbs.swiper;t&&!t.destroyed&&a&&t.destroy()}),Object.assign(e.thumbs,{init:r,update:l})}function pt({swiper:e,extendParams:t,on:i}){let s,a,n,o;t({grid:{rows:1,fill:"column"}});const r=()=>{let t=e.params.spaceBetween;return"string"==typeof t&&t.indexOf("%")>=0?t=parseFloat(t.replace("%",""))/100*e.size:"string"==typeof t&&(t=parseFloat(t)),t};i("init",()=>{o=e.params.grid&&e.params.grid.rows>1}),i("update",()=>{const{params:t,el:i}=e,s=t.grid&&t.grid.rows>1;o&&!s?(i.classList.remove(`${t.containerModifierClass}grid`,`${t.containerModifierClass}grid-column`),n=1,e.emitContainerClasses()):!o&&s&&(i.classList.add(`${t.containerModifierClass}grid`),"column"===t.grid.fill&&i.classList.add(`${t.containerModifierClass}grid-column`),e.emitContainerClasses()),o=s}),e.grid={initSlides:t=>{const{slidesPerView:i}=e.params,{rows:o,fill:r}=e.params.grid,l=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:t.length;n=Math.floor(l/o),s=Math.floor(l/o)===l/o?l:Math.ceil(l/o)*o,"auto"!==i&&"row"===r&&(s=Math.max(s,i*o)),a=s/o},unsetSlides:()=>{e.slides&&e.slides.forEach(t=>{t.swiperSlideGridSet&&(t.style.height="",t.style[e.getDirectionLabel("margin-top")]="")})},updateSlide:(t,i,o)=>{const{slidesPerGroup:l}=e.params,d=r(),{rows:c,fill:u}=e.params.grid,p=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:o.length;let h,m,f;if("row"===u&&l>1){const e=Math.floor(t/(l*c)),a=t-c*l*e,n=0===e?l:Math.min(Math.ceil((p-e*c*l)/c),l);f=Math.floor(a/n),m=a-f*n+e*l,h=m+f*s/c,i.style.order=h}else"column"===u?(m=Math.floor(t/c),f=t-m*c,(m>n||m===n&&f===c-1)&&(f+=1,f>=c&&(f=0,m+=1))):(f=Math.floor(t/a),m=t-f*a);i.row=f,i.column=m,i.style.height=`calc((100% - ${(c-1)*d}px) / ${c})`,i.style[e.getDirectionLabel("margin-top")]=0!==f?d&&`${d}px`:"",i.swiperSlideGridSet=!0},updateWrapperSize:(t,i)=>{const{centeredSlides:a,roundLengths:n}=e.params,o=r(),{rows:l}=e.params.grid;if(e.virtualSize=(t+o)*s,e.virtualSize=Math.ceil(e.virtualSize/l)-o,e.params.cssMode||(e.wrapperEl.style[e.getDirectionLabel("width")]=`${e.virtualSize+o}px`),a){const t=[];for(let s=0;s<i.length;s+=1){let a=i[s];n&&(a=Math.floor(a)),i[s]<e.virtualSize+i[0]&&t.push(a)}i.splice(0,i.length),i.push(...t)}}}}function ht(e){const t=this,{params:i,slidesEl:s}=t;i.loop&&t.loopDestroy();const a=e=>{if("string"==typeof e){const t=document.createElement("div");Te(t,e),s.append(t.children[0]),Te(t,"")}else s.append(e)};if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&a(e[t]);else a(e);t.recalcSlides(),i.loop&&t.loopCreate(),i.observer&&!t.isElement||t.update()}function mt(e){const t=this,{params:i,activeIndex:s,slidesEl:a}=t;i.loop&&t.loopDestroy();let n=s+1;const o=e=>{if("string"==typeof e){const t=document.createElement("div");Te(t,e),a.prepend(t.children[0]),Te(t,"")}else a.prepend(e)};if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&o(e[t]);n=s+e.length}else o(e);t.recalcSlides(),i.loop&&t.loopCreate(),i.observer&&!t.isElement||t.update(),t.slideTo(n,0,!1)}function ft(e,t){const i=this,{params:s,activeIndex:a,slidesEl:n}=i;let o=a;s.loop&&(o-=i.loopedSlides,i.loopDestroy(),i.recalcSlides());const r=i.slides.length;if(e<=0)return void i.prependSlide(t);if(e>=r)return void i.appendSlide(t);let l=o>e?o+1:o;const d=[];for(let t=r-1;t>=e;t-=1){const e=i.slides[t];e.remove(),d.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&n.append(t[e]);l=o>e?o+t.length:o}else n.append(t);for(let e=0;e<d.length;e+=1)n.append(d[e]);i.recalcSlides(),s.loop&&i.loopCreate(),s.observer&&!i.isElement||i.update(),s.loop?i.slideTo(l+i.loopedSlides,0,!1):i.slideTo(l,0,!1)}function gt(e){const t=this,{params:i,activeIndex:s}=t;let a=s;i.loop&&(a-=t.loopedSlides,t.loopDestroy());let n,o=a;if("object"==typeof e&&"length"in e){for(let i=0;i<e.length;i+=1)n=e[i],t.slides[n]&&t.slides[n].remove(),n<o&&(o-=1);o=Math.max(o,0)}else n=e,t.slides[n]&&t.slides[n].remove(),n<o&&(o-=1),o=Math.max(o,0);t.recalcSlides(),i.loop&&t.loopCreate(),i.observer&&!t.isElement||t.update(
15),i.loop?t.slideTo(o+t.loopedSlides,0,!1):t.slideTo(o,0,!1)}function vt(){const e=this,t=[];for(let i=0;i<e.slides.length;i+=1)t.push(i);e.removeSlide(t)}function wt({swiper:e}){Object.assign(e,{appendSlide:ht.bind(e),prependSlide:mt.bind(e),addSlide:ft.bind(e),removeSlide:gt.bind(e),removeAllSlides:vt.bind(e)})}function yt(e){const{effect:t,swiper:i,on:s,setTranslate:a,setTransition:n,overwriteParams:o,perspective:r,recreateShadows:l,getEffectParams:d}=e;let c;s("beforeInit",()=>{if(i.params.effect!==t)return;i.classNames.push(`${i.params.containerModifierClass}${t}`),r&&r()&&i.classNames.push(`${i.params.containerModifierClass}3d`);const e=o?o():{};Object.assign(i.params,e),Object.assign(i.originalParams,e)}),s("setTranslate _virtualUpdated",()=>{i.params.effect===t&&a()}),s("setTransition",(e,s)=>{i.params.effect===t&&n(s)}),s("transitionEnd",()=>{if(i.params.effect===t&&l){if(!d||!d().slideShadows)return;i.slides.forEach(e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>e.remove())}),l()}}),s("virtualUpdate",()=>{i.params.effect===t&&(i.slides.length||(c=!0),requestAnimationFrame(()=>{c&&i.slides&&i.slides.length&&(a(),c=!1)}))})}function bt(e,t){const i=me(t);return i!==t&&(i.style.backfaceVisibility="hidden",i.style["-webkit-backface-visibility"]="hidden"),i}function xt({swiper:e,duration:t,transformElements:i,allSlides:s}){const{activeIndex:a}=e;if(e.params.virtualTranslate&&0!==t){let t,n=!1;t=s?i:i.filter(t=>{const i=t.classList.contains("swiper-slide-transform")?(t=>{if(!t.parentElement)return e.slides.find(e=>e.shadowRoot&&e.shadowRoot===t.parentNode);return t.parentElement})(t):t;return e.getSlideIndex(i)===a}),t.forEach(t=>{!function(e,t){t&&e.addEventListener("transitionend",function i(s){s.target===e&&(t.call(e,s),e.removeEventListener("transitionend",i))})}(t,()=>{if(n)return;if(!e||e.destroyed)return;n=!0,e.animating=!1;const t=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(t)})})}}function St({swiper:e,extendParams:t,on:i}){t({fadeEffect:{crossFade:!1}});yt({effect:"fade",swiper:e,on:i,setTranslate:()=>{const{slides:t}=e;e.params.fadeEffect;for(let i=0;i<t.length;i+=1){const t=e.slides[i];let s=-t.swiperSlideOffset;e.params.virtualTranslate||(s-=e.translate);let a=0;e.isHorizontal()||(a=s,s=0);const n=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(t.progress),0):1+Math.min(Math.max(t.progress,-1),0),o=bt(0,t);o.style.opacity=n,o.style.transform=`translate3d(${s}px, ${a}px, 0px)`}},setTransition:t=>{const i=e.slides.map(e=>me(e));i.forEach(e=>{e.style.transitionDuration=`${t}ms`}),xt({swiper:e,duration:t,transformElements:i,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function Et({swiper:e,extendParams:t,on:i}){t({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const s=(e,t,i)=>{let s=i?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),a=i?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");s||(s=ve("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(i?"left":"top")).split(" ")),e.append(s)),a||(a=ve("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(i?"right":"bottom")).split(" ")),e.append(a)),s&&(s.style.opacity=Math.max(-t,0)),a&&(a.style.opacity=Math.max(t,0))};yt({effect:"cube",swiper:e,on:i,setTranslate:()=>{const{el:t,wrapperEl:i,slides:a,width:n,height:o,rtlTranslate:r,size:l,browser:d}=e,c=Ee(e),u=e.params.cubeEffect,p=e.isHorizontal(),h=e.virtual&&e.params.virtual.enabled;let m,f=0;u.shadow&&(p?(m=e.wrapperEl.querySelector(".swiper-cube-shadow"),m||(m=ve("div","swiper-cube-shadow"),e.wrapperEl.append(m)),m.style.height=`${n}px`):(m=t.querySelector(".swiper-cube-shadow"),m||(m=ve("div","swiper-cube-shadow"),t.append(m))));for(let e=0;e<a.length;e+=1){const t=a[e];let i=e;h&&(i=parseInt(t.getAttribute("data-swiper-slide-index"),10));let n=90*i,o=Math.floor(n/360);r&&(n=-n,o=Math.floor(-n/360));
vendor: 3,480 bytes, line 15
15const d=Math.max(Math.min(t.progress,1),-1);let m=0,g=0,v=0;i%4==0?(m=4*-o*l,v=0):(i-1)%4==0?(m=0,v=4*-o*l):(i-2)%4==0?(m=l+4*o*l,v=l):(i-3)%4==0&&(m=-l,v=3*l+4*l*o),r&&(m=-m),p||(g=m,m=0);const w=`rotateX(${c(p?0:-n)}deg) rotateY(${c(p?n:0)}deg) translate3d(${m}px, ${g}px, ${v}px)`;d<=1&&d>-1&&(f=90*i+90*d,r&&(f=90*-i-90*d)),t.style.transform=w,u.slideShadows&&s(t,d,p)}if(i.style.transformOrigin=`50% 50% -${l/2}px`,i.style["-webkit-transform-origin"]=`50% 50% -${l/2}px`,u.shadow)if(p)m.style.transform=`translate3d(0px, ${n/2+u.shadowOffset}px, ${-n/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${u.shadowScale})`;else{const e=Math.abs(f)-90*Math.floor(Math.abs(f)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),i=u.shadowScale,s=u.shadowScale/t,a=u.shadowOffset;m.style.transform=`scale3d(${i}, 1, ${s}) translate3d(0px, ${o/2+a}px, ${-o/2/s}px) rotateX(-89.99deg)`}const g=(d.isSafari||d.isWebView)&&d.needPerspectiveFix?-l/2:0;i.style.transform=`translate3d(0px,0,${g}px) rotateX(${c(e.isHorizontal()?0:f)}deg) rotateY(${c(e.isHorizontal()?-f:0)}deg)`,i.style.setProperty("--swiper-cube-translate-z",`${g}px`)},setTransition:t=>{const{el:i,slides:s}=e;if(s.forEach(e=>{e.style.transitionDuration=`${t}ms`,e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>{e.style.transitionDuration=`${t}ms`})}),e.params.cubeEffect.shadow&&!e.isHorizontal()){const e=i.querySelector(".swiper-cube-shadow");e&&(e.style.transitionDuration=`${t}ms`)}},recreateShadows:()=>{const t=e.isHorizontal();e.slides.forEach(e=>{const i=Math.max(Math.min(e.progress,1),-1);s(e,i,t)})},getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function Tt(e,t,i){const s=`swiper-slide-shadow${i?`-${i}`:""}${e?` swiper-slide-shadow-${e}`:""}`,a=me(t);let n=a.querySelector(`.${s.split(" ").join(".")}`);return n||(n=ve("div",s.split(" ")),a.append(n)),n}function Ct({swiper:e,extendParams:t,on:i}){t({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}});yt({effect:"coverflow",swiper:e,on:i,setTranslate:()=>{const{width:t,height:i,slides:s,slidesSizesGrid:a}=e,n=e.params.coverflowEffect,o=e.isHorizontal(),r=e.translate,l=o?t/2-r:i/2-r,d=o?n.rotate:-n.rotate,c=n.depth,u=Ee(e);for(let e=0,t=s.length;e<t;e+=1){const t=s[e],i=a[e],r=(l-t.swiperSlideOffset-i/2)/i,p="function"==typeof n.modifier?n.modifier(r):r*n.modifier;let h=o?d*p:0,m=o?0:d*p,f=-c*Math.abs(p),g=n.stretch;"string"==typeof g&&-1!==g.indexOf("%")&&(g=parseFloat(n.stretch)/100*i);let v=o?0:g*p,w=o?g*p:0,y=1-(1-n.scale)*Math.abs(p);Math.abs(w)<.001&&(w=0),Math.abs(v)<.001&&(v=0),Math.abs(f)<.001&&(f=0),Math.abs(h)<.001&&(h=0),Math.abs(m)<.001&&(m=0),Math.abs(y)<.001&&(y=0);const b=`translate3d(${w}px,${v}px,${f}px) rotateX(${u(m)}deg) rotateY(${u(h)}deg) scale(${y})`;if(bt(0,t).style.transform=b,t.style.zIndex=1-Math.abs(Math.round(p)),n.slideShadows){let e=o?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),i=o?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");e||(e=Tt("coverflow",t,o?"left":"top")),i||(i=Tt("coverflow",t,o?"right":"bottom")),e&&(e.style.opacity=p>0?p:0),i&&(i.style.opacity=-p>0?-p:0)}}},setTransition:t=>{e.slides.map(e=>
15me(e)).forEach(e=>{e.style.transitionDuration=`${t}ms`,e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>{e.style.transitionDuration=`${t}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function _t({swiper:e,extendParams:t,on:i}){t({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}});yt({effect:"cards",swiper:e,on:i,setTranslate:()=>{const{slides:t,activeIndex:i,rtlTranslate:s}=e,a=e.params.cardsEffect,{startTranslate:n,isTouched:o}=e.touchEventsData,r=s?-e.translate:e.translate;for(let l=0;l<t.length;l+=1){const d=t[l],c=d.progress,u=Math.min(Math.max(c,-4),4);let p=d.swiperSlideOffset;e.params.centeredSlides&&!e.params.cssMode&&(e.wrapperEl.style.transform=`translateX(${e.minTranslate()}px)`),e.params.centeredSlides&&e.params.cssMode&&(p-=t[0].swiperSlideOffset);let h=e.params.cssMode?-p-e.translate:-p,m=0;const f=-100*Math.abs(u);let g=1,v=-a.perSlideRotate*u,w=a.perSlideOffset-.75*Math.abs(u);const y=e.virtual&&e.params.virtual.enabled?e.virtual.from+l:l,b=(y===i||y===i-1)&&u>0&&u<1&&(o||e.params.cssMode)&&r<n,x=(y===i||y===i+1)&&u<0&&u>-1&&(o||e.params.cssMode)&&r>n;if(b||x){const t=(1-Math.abs((Math.abs(u)-.5)/.5))**.5;v+=-28*u*t,g+=-.5*t,w+=96*t,m=(a.rotate||e.isHorizontal()?-25:0)*t*Math.abs(u)+"%"}if(h=u<0?`calc(${h}px ${s?"-":"+"} (${w*Math.abs(u)}%))`:u>0?`calc(${h}px ${s?"-":"+"} (-${w*Math.abs(u)}%))`:`${h}px`,!e.isHorizontal()){const e=m;m=h,h=e}const S=u<0?""+(1+(1-g)*u):""+(1-(1-g)*u),E=`\n translate3d(${h}, ${m}, ${f}px)\n rotateZ(${a.rotate?s?-v:v:0}deg)\n scale(${S})\n `;if(a.slideShadows){let e=d.querySelector(".swiper-slide-shadow");e||(e=Tt("cards",d)),e&&(e.style.opacity=Math.min(Math.max((Math.abs(u)-.5)/.5,0),1))}d.style.zIndex=-Math.abs(Math.round(c))+t.length;bt(0,d).style.transform=E}},setTransition:t=>{const i=e.slides.map(e=>me(e));i.forEach(e=>{e.style.transitionDuration=`${t}ms`,e.querySelectorAll(".swiper-slide-shadow").forEach(e=>{e.style.transitionDuration=`${t}ms`})}),xt({swiper:e,duration:t,transformElements:i})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:e.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!e.params.cssMode})})}var Pt={init(){const e=this;jQuery(document.body).on("swiper",(t,i)=>{let s=Object.assign({on:{},loop:!0,effect:"slide",autoplay:{delay:_wpcom_js.slide_speed?+_wpcom_js.slide_speed:5e3,pauseOnMouseEnter:!0}},i.args),a=[ct,wt];s.pagination&&a.push(dt),s.navigation&&(s.navigation.addIcons=!1,a.push(rt)),"fade"===s.effect&&a.push(St),"cube"===s.effect&&a.push(Et),"coverflow"===s.effect&&a.push(Ct),"cards"===s.effect&&a.push(_t),s.grid&&a.push(pt),s.thumbs&&a.push(ut),s.modules=a,i.args.on&&i.args.on.init||(s.on.init=e.onInit),s.on.slidesLengthChange=e.checkSize;let n=new at(i.el,s);i.args._callback&&i.args._callback(n)})},checkSize(e){if(e.slides.length<2)e.params.autoplay=!1,e.params.touchRatio=0,e.autoplay.stop();else{function t(e,t){if(e.params.slidesPerView&&e.slides.length<=e.params.slidesPerView){let i=[];e.slides.map(e=>{i.push(e.outerHTML)}),e.appendSlide(i),t&&t()}}t(e,()=>t(e))}},onInit(e){e.el.__swiper=e;let t=jQuery(e.el);e.params.navigation||t.on("click",".swiper-button-next",function(){e.slideNext()}).on("click",".swiper-button-prev",function(){e.slidePrev()}),t.find(".j-lazy").lazyload({webp:void 0!==_wpcom_js.webp&&_wpcom_js.webp?_wpcom_js.webp:null}),t.find("img").on("load",()=>{e.update()}),setTimeout(function(){e.params.autoHeight&&e.updateAutoHeight(200)},500)}},It={player_js:null,hls_js:null,init(){jQuery(document.body).on("player",async(e,t)=>{let i=Object.assign({theme:"var(--theme-color)",playbackRate:!0,aspectRatio:!0,setting:!0,pip:!0,fullscreen:!0,flip:!0,autoPlayback:!0},t.args?t.args:{});try{await this.load_js("player"),Artplayer.CONTROL_HIDE_TIME=1500,Artplayer.CONTEXTMENU=!1;let e=jQuery(t.el),s=t.args&&t.args.url?t.args.url:e.attr("src");s=s||e.find("source").attr("src");let a=t.args&&t.args.poster?t.args.poster:"";a=a||e.attr("poster");let n=e.parent().get(0);if(n&&"DIV"!==n.tagName){let t=document.createElement("div");t.className=n.className,t.innerHTML=e.prop("outerHTML"),e.parent().replaceWith(t),n=t}let o=Object.assign(i,{container:n,url:s,poster:a||""});s.search(/(\.m3u8|m3u8\?)/i)>-1&&(await this.load_js("hls"),o.type="m3u8",o.customType={m3u8:this.playM3u8});let r=new Artplayer(o);t.callback&&t.callback(r),r.on("fullscreen",e=>{r.video.style.objectFit=e?"contain":"cover"})}catch(e){console.error("Error loading player script:",e)}})},load_js(e="player"){if("player"===e&&this.player_js)return this.player_js;if("hls"===e&&this.hls_js)return this.hls_js;let t=void 0!==_wpcom_js.framework_url?_wpcom_js.framework_url:_wpcom_js.theme_url+"/themer",i="player"===e?t+"/assets/js/artplayer-5.4.0.min.js":t+"/assets/js/hls-1.6.16.min.js",s=jQuery.ajax({url:i,dataType:"script",cache:!0});return"player"===e?this.player_js=s:this.hls_js=s,s},playM3u8(e,t,i){if(Hls.isSupported()){i.hls&&i.hls.destroy();const s=new Hls;s.loadSource(t),s.attachMedia(e),i.hls=s,i.on("destroy",()=>s.destroy())}else e.canPlayType("application/vnd.apple.mpegurl")?e.src=t:i.notice.show="Unsupported playback format: m3u8"}};
15Pt.init(),It.init(),jQuery(function(e){const t=e(window),i=e(document.body),s=navigator.userAgent.toLowerCase();let a=1,n=[],o=void 0!==_wpcom_js.webp&&_wpcom_js.webp?_wpcom_js.webp:null;(e(".wpcom-user-list").length||e(".wpcom-member").length)&&(a=0),e('[data-toggle="tooltip"]').tooltip(),N(),e.fn.loading||e.fn.extend({loading:function(t){let i=e(this);t?i.addClass("loading").prepend('<i class="wpcom-icon wi wi-loader"><svg aria-hidden="true"><use xlink:href="#wi-loader"></use></svg></i>'):i.removeClass("loading").find(".wi-loader").remove()}}),e("#wpcom-video").length&&i.trigger("player",[{el:"#wpcom-video",callback(e){e.on("view",t=>{e.mini=!t&&e.playing&&!e.pip})}}]);let r=e(".j-wpcom-video, .wp-block-video video, .wp-block-wpcom-video-code video, .wp-video video");if(r.length)for(let e=0;e<r.length;e++)i.trigger("player",[{el:r[e]}]);let l=e(".modules-video-player");if(l.length)for(let e=0;e<l.length;e++)d(l[e]);function d(e){if(!e)return;const t=e.parentElement;i.trigger("player",[{el:e,args:{autoPlayback:!1,icons:{state:'<i class="wpcom-icon wi"><svg aria-hidden="true"><use xlink:href="#wi-play"></use></svg></i>'}},callback(e){t.__player=e,e.on("ready",()=>{e.controls.show=!1}),jQuery(e.template.$player).on("mouseenter",()=>{e.controls.show=!0}).on("mouseleave",function(){e.controls.show=!1})}}])}J.init(),e(".entry-content-slider").each((e,t)=>{let s={autoHeight:!0,pagination:{el:t.querySelector(".swiper-pagination"),clickable:!0}};i.trigger("swiper",{el:t,args:s})});let c,u=0,p=0;function h(){let e=window.innerWidth;if(!e){let t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}c=document.body.clientWidth<e,p=function(){let e=document.createElement("div");e.className="modal-scrollbar-measure",i.append(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}()}if(e(document).on("smartphoto",function(e,t){const s=new Q(t,{nav:!1});s.on("open",function(){!function(){let e=parseInt(i.css("padding-right")||0,10);u=document.body.style.paddingRight||0,c&&i.css("--scrollbar-width",e+p+"px")}(),i.addClass("modal-open")}),s.on("close",function(){i.removeClass("modal-open"),i.css("--scrollbar-width",u+"px"),h()}),t.off("update").on("update",function(e,t){t&&s.data.group[t.group][t.index]&&(s.data.group[t.group][t.index].src=t.src,s.data.group[t.group][t.index].thumb=t.src)})}).off("copy_text").on("copy_text",function(e,t,i,s){if(navigator.clipboard)navigator.clipboard.writeText(t).then(()=>{i&&i()},()=>{console.error("Failed to copy"),s&&s()});else if(void 0!==document.execCommand){const e=document.createElement("textarea");document.body.appendChild(e),e.style.position="fixed",e.style.height=0,e.value=t,e.select(),document.execCommand("copy",!0),document.body.removeChild(e),i&&i()}else s&&s()}).on("init_share",function(){K.init()}).on("init_lazyload",function(e,t){t.length&&t.lazyload({webp:o})}),"baiduboxapp"==s.match(/baiduboxapp/i))e(document).on("click","a.j-wpcom-lightbox",function(t){t.preventDefault();let i="baiduboxapp://v19/utils/previewImage?params="+encodeURIComponent(JSON.stringify({urls:n,current:e(this).attr("href")})),s=document.createElement("iframe");s.style.display="none",s.src=i;const a=document.body;a.appendChild(s),setTimeout(function(){a.removeChild(s),s=null},0)});else{h();let t=e(".entry-content .j-wpcom-lightbox, .modules-gutenberg .j-wpcom-lightbox");t.length&&(t.find("noscript").remove(),e(document).trigger("smartphoto",[t]))}window.location.hash&&A(window.location.hash),e(document).trigger("init_lazyload",[e(".j-lazy")]),e('a[href^="http"]').not('a[href*="'+location.hostname+'"]').each(function(t,i){let s=e(i),a=s.attr("rel");a&&!/noopener/i.test(a)?a+=" noopener":a=a||"noopener",s.attr("rel",a)}),/(iPhone|iPad|iPod|iOS|Android|Mobile|HarmonyOS)/i.test(s)&&(e("body").addClass("is-mobile"),e(".modules-fullwidth > .module-bg-video").remove()),O(),e(".entry-content.text-indent > p > img, .entry-content.text-indent > p > .j-wpcom-lightbox, .entry-content.text-indent .q-entry > p > img, .entry-content.text-indent .q-entry > p > .j-wpcom-lightbox").each(function(){let t=e(this).parent(),i=t.children(),s=0;(1===i.length&&""===e.trim(t.prop("outerText"))||2===i.length&&"NOSCRIPT"===i.eq(0).prop("tagName")&&""===e.trim(t.prop("outerText")))&&(s=1),s&&t.css("text-indent",0)});let m=!1;if(window.localStorage){let e=localStorage.getItem("hideTopNews");e=e?JSON.parse(e):null,e&&e.value&&e.expires>Date.parse(new Date)?m=!0:e&&localStorage.removeItem("hideTopNews")}let f=e(".top-news");function g(t,i){let s='<div class="wpcom-modal fade" id="footer-bar">\n <div class="modal-dialog modal-sm">\n <div class="modal-content">\n <div class="modal-header">\n <div class="wpcom-close" data-wpcom-dismiss="modal" aria-label="Close"><span aria-hidden="true"><i class="wpcom-icon wi"><svg aria-hidden="true"><use xlink:href="#wi-close"></use></svg></i></span></div><h4 class="modal-title">'+(i||"")+'</h4>\n </div>\n <div class="modal-body">\n'+t+" </div>\n </div>\n </div>\n </div>";0===e("#footer-bar").length?e("body").append(s):e("#footer-bar").replaceWith(s),e("#footer-bar")._modal()}function v(e){const t=e,i=t.closest(".modules-search").find('input[name="cat"]');let s=t.find("option:selected").data("cat");"post"===t.val()&&s?i.length?i.val(s):t.after('<input type="hidden" name="cat" value="'+s+'">'):i.length&&i.remove()}!m&&f.length&&(f.slideDown(),e("body:not(.member-login,.member-register)").css("padding-top",60),e(".wpcom-member .btn-h
15ome").css("top",90)),e(".multi-filter .multi-filter-item").each(function(t,i){let s=e(i);s.find(".multi-filter-ul").outerHeight()>80&&s.addClass("has-more")}).on("click",".multi-filter-more",function(){e(this).closest(".multi-filter-item").toggleClass("open")}),e(document).on("click",'a[href^="#"]',function(t){let i=e(this),s=i.attr("role");"tab"!=s&&"button"!=s&&(this.hash&&-1!==this.hash.indexOf("vip.")||(t.preventDefault(),i.hasClass("ez-toc-link")&&this.hash&&"undefined"!=typeof ezTOC&&ezTOC.scroll_offset?A(this.hash,ezTOC.scroll_offset):this.hash&&A(this.hash)))}).on("click",".j-footer-bar-qrcode,.j-footer-bar-text",function(t){t.preventDefault();const i=e(this);let s=i.find("> span").text(),a="";return a=i.hasClass("j-footer-bar-qrcode")?'<img src="'+i.attr("href")+'">':i.find("script").html(),g(a,s||_wpcom_js.js_lang.qrcode),!1}).on("click",".j-footer-bar-copy",function(t){const i=e(this);let s=i.find("script.j-copy-text").text(),a=i.find("script.j-copy-callback").html();e(document).trigger("copy_text",[s,()=>{a&&""!==a.trim()?(a='<div class="copy-callback-success">'+_wpcom_js.js_lang.copy_done+"</div>"+a,g(a,i.find("> span").text())):wpcom_notice({message:_wpcom_js.js_lang.copy_done,show:1500})},()=>{let e=_wpcom_js.js_lang.copy_fail;e+="<br />"+s,wpcom_alert(e)}])}).on("shown.bs.collapse",".wp-block-wpcom-accordion",function(){e(this).find(".panel-collapse.in").closest(".panel").find(".panel-title a").attr("aria-expanded","true")}).on("change",".modules-search select[name=post_type]",function(){v(e(this))}).on("click",".modules-search .modules-search-type-item",function(){let t=e(this),i=t.closest(".modules-search");if(t.hasClass("active"))return!1;i.find(".modules-search-type-item").removeClass("active"),t.addClass("active"),t.data("search-url")?(i.find("form.modules-search-from").data("search-url",t.data("search-url")),i.find(".modules-search-post").hide()):(i.find("form.modules-search-from").data("search-url",""),i.find(".modules-search-post").show())}).on("submit",".modules-search form.modules-search-from",function(){let t=e(this),i=t.data("search-url");if(i){let e=t.find("input[name=s]").val();return i=i.replace("%KEYWORDS%",e),"_blank"===t.attr("target")?window.open(i,"_blank"):window.location.href=i,!1}}).on("click",".tabs-switch-click > .tabs-switch-item",function(){let t=e(this);if(t.hasClass("active"))return!1;let i=t.index();t.parent().find(".tabs-switch-item").removeClass("active"),t.addClass("active"),t.closest(".modules-tabs").find(" > .tabs-content > .tabs-content-item").removeClass("active").eq(i).addClass("active")}).on("mouseenter",".tabs-switch-hover > .tabs-switch-item",function(){let t=e(this);if(t.hasClass("active"))return!1;let i=t.index();t.parent().find(".tabs-switch-item").removeClass("active"),t.addClass("active"),t.closest(".modules-tabs").find(" > .tabs-content > .tabs-content-item").removeClass("active").eq(i).addClass("active")}),e(".modules-search select[name=post_type]").each(function(){v(e(this))}),e(".modules-search .modules-search-type").each(function(){e(this).find(".modules-search-type-item").eq(0).trigger("click")}),e(".wp-block-wpcom-accordion").collapse("show"),window.location.base="MTU2NzY=",e(".wpcom-modal.modal-video").on("shown.wpcom.modal",function(t){let s=e(this).closest(".modules-video").find(".video-wrap");e(".modal-body",this).html(s.find(".video-code").html());let a=e(this).find(".j-wpcom-video");a.length&&i.trigger("player",[{el:a,args:{autoplay:!0}}])}).on("hidden.wpcom.modal",function(t){e(".modal-body",this).html("")});const w=new MutationObserver(function(t){t.forEach(function(t){Array.prototype.slice.call(t.addedNodes).forEach(function(t){!t.className||"widget_shopping_cart_content"!==t.className&&"woocommerce-cart-form"!==t.className||e(document).trigger("init_lazyload",[e(t).find(".j-lazy")])})})});let y,b={childList:!0,subtree:!0,attributes:!1,characterData:!1},x=document.querySelector(".shopping-cart"),S=document.querySelector(".woocommerce-cart-form-wrap"),E=document.querySelector(".widget_shopping_cart");x&&w.observe(x,b),S&&w.observe(S,b),E&&w.observe(E,b);const T=new MutationObserver(function(e){e.forEach(function(e){("attributes"===e.type&&"UL"!==e.target.nodeName&&"id"!==e.attributeName||"childList"===e.type)&&(clearTimeout(y),y=setTimeout(()=>L(),50))})});let C,_=document.querySelector("header.header");_&&T.observe(_,{childList:!0,subtree:!0,attributes:!0,characterData:!1}),e(document).on("reset_adv_menu","header.header",function(){L()}).on("wpcom.map",function(){O()}).on("wpcom.lightbox",function(t,i){if(N(),i&&"baiduboxapp"!==s.match(/baiduboxapp/i)){let t=i.find(".j-wpcom-lightbox");t.length&&(t.find("noscript").remove(),e(document).trigger("smartphoto",[t]))}}).on("change",".woocommerce input.qty",function(){void 0!==C&&clearTimeout(C),C=setTimeout(function(){e("[name='update_cart']").trigger("click")},600)}),i.on("click",".navbar-toggle",function(){i.hasClass("navbar-on")?i.removeClass("navbar-on navbar-ing"):(i.addClass("navbar-on navbar-ing"),setTimeout(function(){i.removeClass("navbar-ing")},500)),0==e(".navbar-on-shadow").length&&e("#wrap").append('<div class="navbar-on-shadow"></div>')}).on("click",".m-dropdown",function(){const t=e(this).parent();return t.find("> .dropdown-menu").slideToggle("fast"),t.toggleClass("dropdown-open"),!1}).on("click",".top-news-close",function(){let t={value:1,expires:Date.parse(new Date)+864e5};window.localStorage&&localStorage.setItem("hideTopNews",JSON.stringify(t)),f.slideUp(),i.css("padding-top",0),e(".wpcom-member .btn-h
15ome").css("top",30)}).on("click",".action .j-top",function(){e("html, body").animate({scrollTop:0},"slow")}).on("module.destroy.default-slider",function(e,t){t&&t.length&&t.forEach(e=>{let t=document.querySelector(`#modules-${e} .swiper-el`),i=document.querySelector(`#modules-${e} .swiper-thumbs`);t&&t.__swiper&&t.__swiper.destroy(),i&&i.__swiper&&i.__swiper.destroy()})}).on("module.render.video",function(e,t){t&&t.length&&t.forEach(e=>{let t=document.querySelector(`#modules-${e} > .video-wrap .modules-video-player`);t&&d(t)})}).on("module.destroy.video",function(e,t){t&&t.length&&t.forEach(e=>{let t=document.querySelector(`#modules-${e} .video-inline-player`);t&&t.__player&&t.__player.destroy()})}),e("#wrap").on("click",".navbar-on-shadow",function(){i.hasClass("navbar-ing")||e(".navbar-toggle").trigger("click")}),i.off("click.quantity").on("click.quantity",".woocommerce .qty-down, .woocommerce .qty-up, .entry-summary .qty-down, .entry-summary .qty-up",function(){let t=e(this).hasClass("qty-down")?0:1;console.log("click.quantity",t);let i=e(this).parent().find(".qty"),s=parseInt(i.val()),a=t?1+s:s-1;a=i.attr("min")&&a<i.attr("min")?i.attr("min"):a,a=i.attr("max")&&a>i.attr("max")?i.attr("max"):a,s!=a&&i.val(a).trigger("change")}).off("blur.quantity").on("blur.quantity",".woocommerce .qty, .entry-summary .qty",function(){var t=e(this),i=t.val();i=t.attr("min")&&i<t.attr("min")?t.attr("min"):i,i=t.attr("max")&&i>t.attr("max")?t.attr("max"):i,t.val(i)});let P,I,k=e(".j-top"),M=e(".action");function A(t,i){let s=e(t).length?e(t).offset().top:0;(i=i||10)&&(s-=i);let a=e("header.header");if(a.length){let e=getComputedStyle(a[0]);e&&e.position&&"fixed"===e.position&&(s-=a.outerHeight())}s=e("#wpadminbar").length?s-e("#wpadminbar").outerHeight():s,s=e(".top-news").length?s-e(".top-news").outerHeight():s,s=s<0?0:s,e("html, body").animate({scrollTop:s},400)}function L(){const t=/(iPhone|iPad|iPod|iOS|Android|Mobile|HarmonyOS)/i.test(s);e(".wpcom-adv-menu").each(function(i,s){const a=e(s);let n=e("body").width(),o=a.closest(".container").width();o=o||n-64;let r=e("#wrap > .container").width(),l=e("footer.footer > .container").width();r=!r||l&&l<r?l:r,r=r&&r<o?r:o,a.css({"--menu-margin-left":(n-r)/2+"px"}),a.find(" > .menu-item-style").each(function(i,s){let r=e(s),l=r.find(" > .menu-item-wrap");if(r.hasClass("menu-item-style-5")||r.hasClass("menu-item-style-3")||l.hasClass("menu-item-col-4")||l.hasClass("menu-item-col-5")){let i=r.offset().left;if(l.css({left:-i,width:n}),!t&&r.hasClass("menu-item-style-5")&&0===r.find(".dropdown-menu-tab").length){const t=r.find(" > .dropdown-menu");let i="",s="";t.find(" > ul > li").each(function(t){const a=e(this),n=a.find("> .dropdown-menu").html()||"",o=a.find("> a").html();i+=`<div class="menu-tab-item ${0===t?"active":""}">${o}</div>`,s+=`<ul class="dropdown-menu ${0===t?"active":""}">${n}</ul>`});let a=`<div class="dropdown-menu-tab">${i}</div><div class="dropdown-menu-wrap">${s}</div>`;t.html(a),e(document).trigger("init_lazyload",[t.find(".j-lazy")]),r.find(".menu-tab-item").on("mouseenter",function(){const t=e(this).index();e(this).addClass("active").siblings().removeClass("active"),r.find(".dropdown-menu-wrap > .dropdown-menu").removeClass("active").eq(t).addClass("active")})}else if(t&&r.hasClass("menu-item-style-5")&&r.find(" > div.dropdown-menu").length){const t=r.find(" > div.dropdown-menu");let i=t.html();t.replaceWith(i),e(document).trigger("init_lazyload",[t.find(".j-lazy")])}}else{let e=r.position().left,t=l.outerWidth(),i=a.offset().left-(n-o)/2,s="";e+t>o-i&&(s=-(r.offset().left+t-o-(n-o)/2)),s&&l.css("--dropdown-menu-left",s+"px")}}),setTimeout(()=>a.addClass("menu-ready"),100)})}function O(){e(".j-map").each(function(t,i){let s=e(i).find("script").html(),a=JSON.parse(s);void 0===window.wpcom_maps&&(window.wpcom_maps=[]),window.wpcom_maps.push(a)}),void 0!==window.wpcom_maps&&window.wpcom_maps.length&&function(){let t="\u6682\u672a\u8bbe\u7f6e\u5730\u56fe\u63a5\u53e3\uff0c\u5982\u679c\u60a8\u662f\u7f51\u7ad9\u7ba1\u7406\u5458\uff0c\u8bf7\u524d\u5f80\u3010\u4e3b\u9898\u8bbe\u7f6e>\u5e38\u89c4\u8bbe\u7f6e>\u5730\u56fe\u63a5\u53e3\u3011\u8fdb\u884c\u8bbe\u7f6e",i=[],s=[];for(var a in window.wpcom_maps)1==window.wpcom_maps[a].type?s.push(window.wpcom_maps[a]):i.push(window.wpcom_maps[a]);i.length&&"1"===_wpcom_js.is_admin&&wpcom_alert("\u6e29\u99a8\u63d0\u793a\uff1a\u7531\u4e8e\u767e\u5ea6\u5730\u56fe\u5546\u7528\u9700\u8981\u6388\u6743\uff0c\u7ecf\u8003\u8651\u76ee\u524d\u5df2\u5c06\u767e\u5ea6\u5730\u56fe\u529f\u80fd\u4e0b\u7ebf\uff0c\u5efa\u8bae\u60a8\u5c06\u9875\u9762\u6d89\u53ca\u5230\u767e\u5ea6\u5730\u56fe\u5c55\u793a\u76f8\u5173\u7684\u6a21\u5757\u8fdb\u884c\u5220\u9664\u6216\u8005\u8c03\u6574\u3002\uff08\u4ec5\u7ba1\u7406\u5458\u53ef\u89c1\uff09");if(s.length&&!s[0].key)wpcom_alert(t);
15else if(s.length){let t="//maps.googleapis.com/maps/api/js?key="+s[0].key;e.ajax({url:t,dataType:"script",cache:!0,success:function(){let t=[],i=[],a=[];for(let n=0;n<s.length;n++)(function(n){let o=s[n],r={zoom:15,center:{lat:Number(e.trim(o.pos[0])),lng:Number(e.trim(o.pos[1]))},scrollwheel:!!o.scrollWheelZoom,styles:[{elementType:"geometry",stylers:[{lightness:45},{saturation:-25}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"transit",stylers:[{visibility:"off"}]}],disableDefaultUI:!0};t[n]=new google.maps.Map(document.getElementById(o.id),r);let l={position:r.center,map:t[n]};o.icon&&(l.icon={url:o.icon,size:new google.maps.Size(27,27),scaledSize:new google.maps.Size(27,27)}),i[n]=new google.maps.Marker(l),o.html&&(a[n]=new google.maps.InfoWindow({content:o.html,maxWidth:500}),a[n].open(t[n],i[n]),i[n].addListener("click",function(){a[n].open(t[n],i[n])}))})(n)}})}}()}function N(){a&&void 0!==_wpcom_js.lightbox&&1==_wpcom_js.lightbox&&e(".entry-content img").each(function(t,i){let a=e(i);if(!a.hasClass("no-lightbox")){let e=a.parent(),t=a.data("original");if(t=t||a.attr("src"),t&&t.match(/^\/\//)&&(t=window.location.protocol+t),"a"===e.prop("tagName").toLowerCase()){let i=e.attr("href");!e.hasClass("j-wpcom-lightbox")&&(i==t||i&&i.match(/.*(\.png|\.jpg|\.jpeg|\.gif|\.webp|\.bmp)$/i))&&(e.addClass("j-wpcom-lightbox"),e.attr("data-group","0"),(s.match(/MicroMessenger/i)||s.match(/baiduboxapp/i))&&n.push(t))}else a.hasClass("wp-smiley")||a.closest("a").length||(a.replaceWith('<a class="j-wpcom-lightbox" href="'+t+'" data-group="0">'+i.outerHTML+"</a>"),(s.match(/MicroMessenger/i)||s.match(/baiduboxapp/i))&&n.push(t))}})}if(k.length&&t.on("scroll",function(){t.scrollTop()>100?(k.addClass("active"),M.removeClass("hide-gotop")):(k.removeClass("active"),M.addClass("hide-gotop"))}),M.length&&setTimeout(function(){M.find(".action-item").each(function(t,i){let s=e(i).find(".action-item-inner");s.length&&s.css("margin-top",-s.outerHeight()/2)})},200),M.on("mouseenter",".action-item",function(){let t=e(this).find(".action-item-inner");t.length&&t.css("margin-top",-t.outerHeight()/2)}),t.on("resize",function(){P&&clearTimeout(P),P=setTimeout(function(){L(),e(".navbar-collapse").removeAttr("style")},50)}),setTimeout(function(){e(document).trigger("init_share")},50),L(),e(".wpcom-adv-menu").find("img").on("load",()=>{I&&clearTimeout(I),I=setTimeout(()=>L(),100)}),function(){if(s.match(/MicroMessenger/i)){var t,i=location.href.split("#")[0],a=document.querySelector("body").classList,o=0;if(a.contains("page"))for(var r=0;r<a.length;r++)(t=a[r].match(/page-id-(\d+)$/))&&(o=t[1]);else if(a.contains("single"))for(r=0;r<a.length;r++)(t=a[r].match(/postid-(\d+)$/))&&(o=t[1]);e(".q-content.q-single").length&&(o=e(".q-content.q-single").data("id")),e.ajax({url:_wpcom_js.ajaxurl,type:"POST",data:{action:"wpcom_wx_config",url:encodeURIComponent(i),ID:o},dataType:"json",success(t){if(!t.signature)return;let s=t.thumb;s.match(/^\/\//)&&(s=window.location.protocol+s);let a=document.title,o=e("meta[name=description]").attr("content");o=o||t.desc;let r=document.createElement("script");r.src="//res.wx.qq.com/open/js/jweixin-1.6.0.js",r.onload=function(){window.wx.config({debug:!1,appId:t.appId,timestamp:t.timestamp,nonceStr:t.noncestr,signature:t.signature,jsApiList:["updateAppMessageShareData","updateTimelineShareData","onMenuShareWeibo","previewImage"]}),window.wx.ready(function(){e(document).trigger("wx.ready");let t={imgUrl:s,link:i,desc:o,title:a},r={imgUrl:s,link:i,title:a};wx.updateAppMessageShareData(t),wx.updateTimelineShareData(r),wx.onMenuShareWeibo(t),e(".entry-content,.modules-gutenberg").find("a.j-wpcom-lightbox").each(function(t,i){let s=e(i),a=s.find("> img"),n=s.attr("href");a.attr("data-img",n).addClass("j-previewImage"),s.replaceWith(s.html())}),e(document).trigger("init_lazyload",[e(".entry-content .j-previewImage.j-lazy")]),e(document).on("click","img.j-previewImage",function(t){t.preventDefault(),wx.previewImage({current:e(this).data("img"),urls:n})})}),wx.error(function(e){console.log(e,"error")})},document.body.appendChild(r)}})}}(),void 0!==_wpcom_js.share&&"1"==_wpcom_js.share){let e=void 0!==_wpcom_js.share_items&&_wpcom_js.share_items;setup_share(e)}}),window.wpcom_alert=function(e,t){t=t||"\u63d0\u793a\u4fe1\u606f";let i=jQuery("#wpcom-alert");
15if(i.length)i.find(".modal-title").html(t),i.find(".modal-body").html(e),i._modal("show");else{let i='<div class="wpcom-modal fade modal-alert" id="wpcom-alert" data-backdrop="static">\n <div class="modal-dialog modal-sm">\n <div class="modal-content"> <div class="modal-header"><div class="wpcom-close" data-wpcom-dismiss="modal" aria-label="Close"><i class="wpcom-icon wi"><svg aria-hidden="true"><use xlink:href="#wi-close"></use></svg></i></div><h4 class="modal-title">'+t+'</h4></div>\n <div class="modal-body">'+e+'</div>\n <div class="modal-footer"><button type="button" class="wpcom-btn btn-primary" data-wpcom-dismiss="modal" aria-label="Close">'+_wpcom_js.js_lang.confirm+"</button></div> </div>\n </div>\n </div>";jQuery("body").append(i)}jQuery("#wpcom-alert")._modal("show")},window.wpcom_notice=function(e){if(!arguments.length||1===arguments.length&&"object"==typeof arguments[0]||(e={},void 0!==arguments[0]&&(e.message=arguments[0]),void 0!==arguments[1]&&(e.type=arguments[1]),void 0!==arguments[2]&&"loading"!==e.type&&(e.show=arguments[2]),void 0!==arguments[2]&&"loading"===e.type&&(e.callback=arguments[2])),e&&e.message){e.type=e.type?e.type:"success";let t='<div class="notice-message"><div class="notice-message-content notice-message-'+e.type+'">';"success"===e.type?t+='<i class="wpcom-icon wi notice-message-icon"><svg aria-hidden="true"><use xlink:href="#wi-success"></use></svg></i>':"warning"===e.type||"error"===e.type?t+='<i class="wpcom-icon wi notice-message-icon"><svg aria-hidden="true"><use xlink:href="#wi-warning"></use></svg></i>':"loading"===e.type&&(t+='<i class="wpcom-icon wi notice-message-icon"><svg aria-hidden="true"><use xlink:href="#wi-loader"></use></svg></i>'),t+=e.message+"</div></div>";let i=jQuery(t),s=jQuery(".notice-message-wrapper");return 0===s.length&&(jQuery(document.body).append('<div class="notice-message-wrapper"></div>'),s=jQuery(".notice-message-wrapper")),s.append(i),i.one("hide.notice",function(){let e=jQuery(this);e.removeClass("notice-message-active").addClass("notice-message-up"),setTimeout(()=>{e.remove(),0===s.find(".notice-message").length&&s.remove()},320)}),setTimeout(()=>{i.addClass("notice-message-active"),"loading"===e.type&&void 0!==e.callback?e.callback(i):setTimeout(()=>{i.trigger("hide.notice")},e.show?e.show:3e3)},50),i}},window.setup_share=function(e){if(e&&Object.keys(e).length){let t='<div class="action-item-inner share-more-wrap"><h4 class="share-more-title">'+_wpcom_js.js_lang.share_to+"</h4>";for(let i in e)t+='<a class="action-share-item" data-share="'+i+'" target="_blank" rel="noopener"><i class="wpcom-icon wi wi-'+i+'"><svg aria-hidden="true"><use xlink:href="#wi-'+e[i].icon+'"></use></svg></i>'+e[i].title+"</a>";t+="</div>",jQuery(".action .action-item.j-share").append(t)}else{let e=[{name:"weibo",label:"\u5fae\u535a"},{name:"wechat",label:"\u5fae\u4fe1"},{name:"qq",label:"QQ\u597d\u53cb"},{name:"qzone",label:"QQ\u7a7a\u95f4"},{name:"douban",label:"\u8c46\u74e3"},{name:"linkedin",label:"LinkedIn"},{name:"facebook",label:"Facebook"},{name:"x",label:"X",icon:"twitter-x"}],t="";for(let i in e)t+='<a class="action-share-item" data-share="'+e[i].name+'" target="_blank" rel="noopener noreferrer"><i class="wpcom-icon wi wi-'+e[i].name+'"><svg aria-hidden="true"><use xlink:href="#wi-'+(e[i].icon?e[i].icon:e[i].name)+'"></use></svg></i>'+e[i].label+"</a>";jQuery(".action .action-item.j-share").append('<div class="action-item-inner share-more-wrap"><h4 class="share-more-title">'+_wpcom_js.js_lang.share_to+"</h4>"+t+"</div>")}};var kt,Mt={exports:{}};var At,Lt,Ot,Nt=(kt||(kt=1,At=Mt.exports,Lt=function(){return Lt=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++)for(var a in t=arguments[i])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Lt.apply(this,arguments)},Ot=function(){function e(e,t,i){var s=this;this.endVal=t,this.options=i,this.version="2.8.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmou
vendor: 4,824 bytes, line 15
15nt:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(e){s.startTime||(s.startTime=e);var t=e-s.startTime;s.remaining=s.duration-t,s.useEasing?s.countDown?s.frameVal=s.startVal-s.easingFn(t,0,s.startVal-s.endVal,s.duration):s.frameVal=s.easingFn(t,s.startVal,s.endVal-s.startVal,s.duration):s.frameVal=s.startVal+(s.endVal-s.startVal)*(t/s.duration);var i=s.countDown?s.frameVal<s.endVal:s.frameVal>s.endVal;s.frameVal=i?s.endVal:s.frameVal,s.frameVal=Number(s.frameVal.toFixed(s.options.decimalPlaces)),s.printValue(s.frameVal),t<s.duration?s.rAF=requestAnimationFrame(s.count):null!==s.finalEndVal?s.update(s.finalEndVal):s.options.onCompleteCallback&&s.options.onCompleteCallback()},this.formatNumber=function(e){var t,i,a,n,o=e<0?"-":"";t=Math.abs(e).toFixed(s.options.decimalPlaces);var r=(t+="").split(".");if(i=r[0],a=r.length>1?s.options.decimal+r[1]:"",s.options.useGrouping){n="";for(var l=3,d=0,c=0,u=i.length;c<u;++c)s.options.useIndianSeparators&&4===c&&(l=2,d=1),0!==c&&d%l==0&&(n=s.options.separator+n),d++,n=i[u-c-1]+n;i=n}return s.options.numerals&&s.options.numerals.length&&(i=i.replace(/[0-9]/g,function(e){return s.options.numerals[+e]}),a=a.replace(/[0-9]/g,function(e){return s.options.numerals[+e]})),o+s.options.prefix+i+a+s.options.suffix},this.easeOutExpo=function(e,t,i,s){return i*(1-Math.pow(2,-10*e/s))*1024/1023+t},this.options=Lt(Lt({},this.defaults),i),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(t),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el="string"==typeof e?document.getElementById(e):e,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined","undefined"!=typeof window&&this.options.enableScrollSpy&&(this.error?console.error(this.error,e):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return s.handleScroll(s)}),window.onscroll=function(){window.onScrollFns.forEach(function(e){return e()})},this.handleScroll(this)))}return e.prototype.handleScroll=function(e){if(e&&window&&!e.once){var t=window.innerHeight+window.scrollY,i=e.el.getBoundingClientRect(),s=i.top+window.pageYOffset,a=i.top+i.height+window.pageYOffset;a<t&&a>window.scrollY&&e.paused?(e.paused=!1,setTimeout(function(){return e.start()},e.options.scrollSpyDelay),e.options.scrollSpyOnce&&(e.once=!0)):(window.scrollY>a||s>t)&&!e.paused&&e.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var e=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>e;var t=e-this.startVal;if(Math.abs(t)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=e;var i=this.countDown?1:-1;this.endVal=e+i*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(e){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),e&&(this.options.onCompleteCallback=e),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(e){var t;if(this.el){var i=this.formattingFn(e);(null===(t=this.options.plugin)||void 0===t?void 0:t.render)?this.options.plugin.render(this.el,i):"INPUT"===this.el.tagName?this.el.value=i:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=i:this.el.
15innerHTML=i}},e.prototype.ensureNumber=function(e){return"number"==typeof e&&!isNaN(e)},e.prototype.validateValue=function(e){var t=Number(e);return this.ensureNumber(t)?t:(this.error="[CountUp] invalid start or end value: ".concat(e),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e}(),At.CountUp=Ot,Object.defineProperty(At,"__esModule",{value:!0})),Mt.exports),Dt={init(){const e=this,t=jQuery("[data-anm]");if(t.length){this.hideEl(t);let i="-150px",s=jQuery(window).width();s<400?i="-50px":s<600?i="-70px":s<1e3&&(i="-100px");let a={root:null,rootMargin:i,threshold:0};this.observer=new IntersectionObserver(function(t){let i=0,s=window.scrollY+window.innerHeight;Array.prototype.forEach.call(t,function(t){let a=0;if(t.isIntersecting)a=1;else if(t.boundingClientRect.top){let e=s-t.boundingClientRect.top;e>80&&e<250&&(a=1)}if(a){e.observer.unobserve(t.target),t.target.classList.add("anm-animated");let s=t.target.getAttribute("data-anm"),a=s?s.split(", "):[];if(a&&a[0]){let e=a[1],s=void 0!==a[2]&&a[2]?a[2]:0;e&&e>0&&t.target.style.setProperty("--animate-duration",e+"ms"),s&&s>0&&(i&&t.target.style.setProperty("--animate-delay",i*s+50+"ms"),i++),t.target.classList.add("anm-"+a[0]),t.target.classList.remove("anm-ready")}}})},a),t.each((t,i)=>{e.observer.observe(i)})}},hideEl(e){if(e.length){const t=this;let i={root:null,rootMargin:"400px",threshold:0};this.observer2=new IntersectionObserver(function(e){Array.prototype.forEach.call(e,function(e){e.isIntersecting&&(t.observer2.unobserve(e.target),e.target.classList.contains("anm-animated")||e.target.classList.add("anm-ready"))})},i),e.each((e,t)=>{this.observer2.observe(t)})}}},jt={init(){if(this.is_mobile()||!_wpcom_js.user_card)return;const e=this;jQuery(document).on("mouseenter",".j-user-card",function(){e.timer&&clearTimeout(e.timer),e.timer2&&clearTimeout(e.timer2);const t=this;e.timer=setTimeout(function(){const i=jQuery(t);let s=i.data("user");s&&(e.show_card(i),e.get_data(s,function(t){setTimeout(function(){e.render_card(t,i)},300)}))},500)}).on("mouseleave",".j-user-card",function(){e.timer&&clearTimeout(e.timer),e.timer2&&clearTimeout(e.timer2),e.hide_card()}).on("mouseenter","#j-user-card",function(){e.timer&&clearTimeout(e.timer),e.timer2&&clearTimeout(e.timer2)}).on("mouseleave","#j-user-card",function(){e.timer&&clearTimeout(e.timer),e.timer2&&clearTimeout(e.timer2),e.hide_card()})},get_data(e,t){jQuery.ajax({type:"POST",url:_wpcom_js.ajaxurl,data:{action:"wpcom_user_card",user:e},dataType:"json",success(e){t(e.html)}})},show_card(e){let t=jQuery("#j-user-card"),i=t.length?t:jQuery('<div id="j-user-card" class="user-card-wrap"><div class="user-card-loading"><i class="wpcom-icon wi wi-loader"><svg aria-hidden="true"><use xlink:href="#wi-loader"></use></svg></i></div></div>');t.length||jQuery("body").append(i);let s=this.get_style(e,!i.find(".user-card-loading").length);i.css(s),t.length||i.fadeIn(200)},hide_card(){this.timer2=setTimeout(function(){jQuery("#j-user-card").fadeOut(200,function(){jQuery("#j-user-card").remove()})},300)},render_card(e,t){let i=jQuery("#j-user-card");i.html(e);let s=this.get_style(t,1);i.css(s)},get_style(e,t){let i=e.offset(),s=jQuery(window),a=0;if(s.height()-(i.top-s.scrollTop()+e.outerHeight())<350){let e=t?_wpcom_js.user_card_height?_wpcom_js.user_card_height:346:180;a=i.top-e-5}else a=i.top+e.outerHeight()+5;return{left:i.left,top:a}},is_mobile:()=>/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent)};const $t=document.querySelector("#header"),Bt=parseInt(getComputedStyle(document.documentElement).marginTop,10)||0;function zt(e){return e?e.offsetTop+Bt:0}function qt(e){const t=[...e.querySelectorAll(".anchor-item")],i=[...document.querySelectorAll(".wpcom-modules")].filter(e=>t.some(t=>t.querySelector("span")?.getAttribute("data-target")===e.id));if(!i.length)return;const s=e.querySelector(".anchor-list")?.classList.contains("anchor-auto-fixed");let a=null,n=null;s&&(a=document.createElement("div"),a.className="fixed-anchor-wrap",n=e.cloneNode(!0),n.id=e.id+"-clone",n.classList.add("container"),a.appendChild(n),function(e,t){const i=getComputedStyle(e);["--module-color","--module-active-color","--module-active-bg-color","--module-bg-color","--module-radius"].forEach(e
15=>{const s=i.getPropertyValue(e).trim();(s||0==s)&&("--module-bg-color"===e?t.parentElement:t).style.setProperty(e,s)})}(e,n),document.body.appendChild(a));const o=s?[...n.querySelectorAll(".anchor-item")]:t,r=i[0],l=i[i.length-1],d=()=>$t?$t.offsetTop:0,c=()=>e.offsetHeight,u=()=>d()+c();function p(){if(s&&a){const e=window.scrollY,t=d(),i=c(),s=zt(r)-t-i-20,n=zt(l)+l.offsetHeight-t;e>=s&&e<n?(a.style.display="block",a.style.top=t+"px",$t&&($t.style.cssText="opacity:0;visibility:hidden")):(a.style.display="none",$t&&($t.style.cssText=""))}!function(){let e=i.length;const t=u()+20;for(;--e>=0&&window.scrollY<zt(i[e])-t;);o.forEach(e=>e.classList.remove("active")),(e>=0?o[e]:o[0])?.classList.add("active");const s=zt(l)+l.offsetHeight-d();window.scrollY>=s&&o.at(-1)?.classList.remove("active")}()}function h(e){const t=this.getAttribute("data-target"),i=function(e){return"string"==typeof e&&/^[A-Za-z_:.][A-Za-z0-9_:. -]*$/.test(e.trim())}(t)&&document.getElementById(t);i&&(e.preventDefault(),window.scrollTo({top:zt(i)-u()-20,behavior:"smooth"}))}const m=[];return[...o,...t].forEach(e=>{const t=e.querySelector("span");t&&(t.addEventListener("click",h),m.push(t))}),window.addEventListener("scroll",p),{destroy(){m.forEach(e=>e.removeEventListener("click",h)),window.removeEventListener("scroll",p),a?.remove(),$t&&($t.style.cssText="")}}}function Gt(e){let t;t=e?e instanceof Element?[e]:e:document.querySelectorAll(".modules-anchor"),[...t].forEach(e=>{const t=function(e){return e.__anchor}(e);t&&t.destroy();const i=qt(e);i&&function(e,t){e.__anchor=t}(e,i)})}window.CountUpList={},jQuery(function(e){const t=e(window),i=e("#wrap"),s=e("body");let a,n=t.height(),o=e("footer.footer"),r=e(".navbar-toggle").is(":hidden");Dt.init(),jt.init(),Gt(),w(),/(iPhone|iPad|iPod|iOS|Android|Mobile|HarmonyOS)/i.test(navigator.userAgent.toLowerCase())&&e(".swiper-wrapper .slide-img > video.slide-video").remove();const l=new MutationObserver(function(e){e.forEach(function(e){a&&clearTimeout(a),a=setTimeout(()=>{y(),i.find("img").eq(0).attr("top-news-change",!0)},50)})});let d=document.querySelector(".top-news");d&&l.observe(d,{childList:!0,subtree:!0,attributes:!0,characterData:!1});const c=new MutationObserver(function(e){e.forEach(function(e){"childList"===e.type&&e.addedNodes.length&&w()})});let u=e(".navbar-action");u.length&&c.observe(u[0],{childList:!0,subtree:!0,attributes:!1,characterData:!1}),s.on("click",".search-index a",function(){e(".search-index .search-form").animate({width:"240px"},"fast")}).on("click",function(t){var i=e(t.target);0===i.closest(".search-index .search-form").length&&0===i.closest(".search-index a").length&&e(".search-index .search-form").animate({width:"0"},"fast")}).on("click",".j-tabs-item",function(){let t=e(this),i=t.parent(),s=t.index(),a=i.parent().find(".j-tabs-wrap");i.find(".j-tabs-item").removeClass("active"),t.addClass("active"),a.removeClass("active"),a.eq(s).addClass("active")}),t.on("resize",function(){r=e(".navbar-toggle").is(":hidden"),n=t.height(),w(),y()});let p=e("body.header-fixed > #header");if(p.length){let e=s.hasClass("abs"),i=s.hasClass("menu-white"),a=s.hasClass("menu-default");window.matchMedia("(max-width: 767px)").matches?1==_wpcom_js.menu_style?s.addClass("menu-white"):s.removeClass("menu-white"):t.on("scroll",function(){t.scrollTop()>0?(p.addClass("fixed"),p.trigger("reset_adv_menu"),e&&0==_wpcom_js.menu_style&&i?s.removeClass("menu-white"):e&&1==_wpcom_js.menu_style&&a&&s.addClass("menu-white")):(p.removeClass("fixed"),p.trigger("reset_adv_menu"),e&&0==_wpcom_js.menu_style&&i?s.addClass("menu-white"):e&&1==_wpcom_js.menu_style&&a&&s.removeClass("menu-white"))}).trigger("scroll")}else if(s.hasClass("abs")){window.matchMedia("(max-width: 767px)").matches&&(1==_wpcom_js.menu_style?s.addClass("menu-white"):s.removeClass("menu-white"))}const h=e(".sidebar");if(_wpcom_js.fixed_sidebar&&"1"==_wpcom_js.fixed_sidebar&&h.length&&h.find(".widget").length&&t.width()>991)for(let t=0;t<h.length;t++)b(e(h[t]));function m(t){let i={autoHeight:!!e(t).closest(".widget_post_slider, .widget_image_slider").length,pagination:{el:t.querySelector(".swiper-pagination"),clickable:!0}};s.trigger("swiper",{el:t,args:i})}function f(e){s.trigger("swiper",{el:e,args:{pagination:{clickable:!0},slideClass:"post-item",slidesPerView:2,slidesPerGroup:2,spaceBetween:0,breakpoints:{481:{slidesPerView:3},768:{slidesPerView:4}}}})}function g(e){const t=e.querySelectorAll(".logo-wall-row"),i=e.offsetWidth;
15t.forEach(e=>{const t=e.scrollWidth,s=Math.min(0,i-t);e.style.setProperty("--logo-scroll-distance",s+"px")})}function v(e){e.__ModuleInstance||(e.__ModuleInstance=function(e){g(e);const t=new ResizeObserver(()=>g(e));return t.observe(e),e.querySelectorAll(".logo-wall-row").forEach(e=>t.observe(e)),{destroy(){t.disconnect()}}}(e))}function w(){if(!r){const t=e("header li.dropdown");for(let i=0;i<t.length;i++){const s=e(t[i]);0===s.find(".m-dropdown").length&&s.append('<div class="m-dropdown"><i class="wpcom-icon wi"><svg aria-hidden="true"><use xlink:href="#wi-arrow-down-3"></use></svg></i></div>')}const i=e(".header .shopping-cart");i.length&&0===e(".navbar-header > .shopping-cart").length&&e(".navbar-header .navbar-toggle").before(i.prop("outerHTML"))}}function y(){if(0===i.length||0===o.length)return;let e=parseInt(o.css("marginBottom"));e=e||0,i.css("min-height",n-i.offset().top-o.outerHeight()-e)}function b(s){const a=s.closest(".container").find(".main");let o=a.offset().top,r=0,l=0,d=0;if(a.length){let c,u=new MutationObserver(function(t){t.forEach(function(t){if("attributes"!==t.type||"IMG"!==t.target.nodeName&&!/(ti-tab-item|module-tab-wrap|profile-tab-item|entry-readmore|swiper-wrapper|panel-collapse|wp-block-wpcom-tab)/i.test(t.target.className)){if("childList"===t.type){c&&clearTimeout(c),c=setTimeout(()=>p(),5);let i=Array.prototype.slice.call(t.addedNodes);i&&i.length&&e(i).find("img").on("load",function(){e(this).attr("img-loaded",!0)})}}else c&&clearTimeout(c),c=setTimeout(()=>p(),5)})});function p(){r=s.outerHeight(),d=a.outerHeight(),o=a.offset().top,l=o+d,t.trigger("scroll")}i.length&&u.observe(i[0],{childList:!0,subtree:!0,attributes:!0,characterData:!1}),t.on("scroll",function(){if(d<=r)s.removeClass("fixed").removeClass("abs");else{let e=t.scrollTop();n-o>r?e+r+o>l?s.removeClass("fixed").addClass("abs").css({bottom:0,top:"auto"}):s.removeClass("abs").addClass("fixed").css({bottom:"auto",top:o}):e+n>l?s.addClass("abs").removeClass("fixed").css({bottom:0,top:"auto"}):e+n>o+r?s.addClass("fixed").removeClass("abs").css({bottom:0,top:"auto"}):s.removeClass("fixed").removeClass("abs")}}),c=setTimeout(()=>p(),10)}}!e("#j-user-wrap").length&&e(".shopping-cart").length&&e.ajax({type:"POST",url:_wpcom_js.ajaxurl,data:{action:"wpcom_is_login"},dataType:"json",success(t){t.wc&&(t.wc.fragments&&t.wc.fragments["a.cart-contents"]&&e("header .shopping-cart").html(t.wc.fragments["a.cart-contents"]),setTimeout(function(){t.wc.fragments&&t.wc.fragments["div.widget_shopping_cart_content"]&&e("header .shopping-cart").append(t.wc.fragments["div.widget_shopping_cart_content"])},100))}}),e(".variations").find(".select-wrap").each(function(t){e(this).find(".select-option").each(function(){const i=e(this);"selected"==i.attr("selected")&&setTimeout(()=>{i.trigger("click")},50*(t+1))})}),e(".variations").on("click",".select-option",function(){const t=e(this),i=t.closest(".value");if(t.hasClass("disabled"))return!1;let s=t.hasClass("active");i.find(".select-option").removeClass("active"),s?t.removeClass("active"):t.addClass("active"),i.find("select.hidden-tag").val(s?"":t.data("value")).trigger("change"),setTimeout(function(){const i=t.closest(".variations");i.find(".value").each(function(){const t=e(this),i=t.find(".hidden-tag");t.find(".select-option").each(function(){const t=e(this);let s=i.find('[value="'+t.data("value")+'"]');s.length&&!s.prop("disabled")?t.removeClass("disabled"):t.addClass("disabled")})}),i.find(".select-option.active").each(function(){let t=e(this);t.closest(".value").find("select.hidden-tag").val(t.data("value")).trigger("change")})},0)}),e(".swiper-container").not(".entry-content-slider, .wpcom-modules > .swiper-container").each(function(e,t){m(t)}),e(".j-slider").each(function(e,t){f(t)}),document.querySelectorAll(".logo-wall-inner.scroll-type-0").forEach(e=>v(e)),e(".j-countup").each(function(t,i){let s=e(i);CountUpList[s.attr("id")]=new Nt.CountUp(s.attr("id"),s.data("num"),{separator:""})}),s.on("module.render.logo-wall",function(e,t,i){t&&t.length&&t.forEach(e=>{const t=document.querySelector(`#modules-${e} .logo-wall-inner.scroll-type-0`);t&&v(t)})}).on("module.destroy.logo-wall",(e,t)=>
15{t&&t.length&&t.forEach(e=>{const t=document.querySelector(`#modules-${e} .logo-wall-inner.scroll-type-0`);t&&t.__ModuleInstance&&t.__ModuleInstance.destroy()})}).on("module.render.swiper",function(e,t,i){t&&t.length&&t.forEach(e=>{let t=document.querySelector(`#modules-${e}`);t&&m(t)})}).on("module.destroy.swiper",function(e,t){t&&t.length&&t.forEach(e=>{let t=document.querySelector(`#modules-${e}`);t&&t.__swiper&&t.__swiper.destroy()})}).on("module.render.anchor",function(e,t,i){t&&t.length&&t.forEach(e=>{let t=document.querySelector(`#modules-${e}`);t&&Gt(t)})}).on("module.destroy.anchor",function(e,t){t&&t.length&&t.forEach(e=>{let t=document.querySelector(`#modules-${e}`);t&&t.__anchor&&t.__anchor.destroy()})}).on("module.render.hot module.render.woo_carousel",function(e,t,i){t&&t.length&&t.forEach(e=>{let t=document.querySelector(`#modules-${e} .j-slider`);t&&f(t)})}).on("module.render.number-scroll",function(e,t,i){t&&t.length&&t.forEach(e=>{document.querySelectorAll(`#modules-${e} .j-countup`).forEach(e=>{let t=e.getAttribute("id");CountUpList[t]=new Nt.CountUp(t,e.getAttribute("data-num"),{separator:""})})})}),y(),i.find("img").on("load",function(){e(this).attr("img-loaded",!0)})})});
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.