/*! layer-v3.5.1 web 通用弹出层组件 mit license */ ;!function(e,t){"use strict";var i,n,a=e.layui&&layui.define,o={getpath:function(){var t=document.currentscript?document.currentscript.src:function(){for(var e,t=document.scripts,i=t.length-1,n=i;n>0;n--)if("interactive"===t[n].readystate){e=t[n].src;break}return e||t[i].src}(),i=e.layui_global||{};return i.layer_dir||t.substring(0,t.lastindexof("/")+1)}(),config:{},end:{},minindex:0,minleft:[],btn:["确定","取消"],type:["dialog","page","iframe","loading","tips"],getstyle:function(t,i){var n=t.currentstyle?t.currentstyle:e.getcomputedstyle(t,null);return n[n.getpropertyvalue?"getpropertyvalue":"getattribute"](i)},link:function(t,i,n){if(r.path){var a=document.getelementsbytagname("head")[0],s=document.createelement("link");"string"==typeof i&&(n=i);var l=(n||t).replace(/\.|\//g,""),f="layuicss-"+l,c="creating",u=0;s.rel="stylesheet",s.href=r.path+t,s.id=f,document.getelementbyid(f)||a.appendchild(s),"function"==typeof i&&!function d(t){var n=100,a=document.getelementbyid(f);return++u>1e4/n?e.console&&console.error(l+".css: invalid"):void(1989===parseint(o.getstyle(a,"width"))?(t===c&&a.removeattribute("lay-status"),a.getattribute("lay-status")===c?settimeout(d,n):i()):(a.setattribute("lay-status",c),settimeout(function(){d(c)},n)))}()}}},r={v:"3.5.1",ie:function(){var t=navigator.useragent.tolowercase();return!!(e.activexobject||"activexobject"in e)&&((t.match(/msie\s(\d+)/)||[])[1]||"11")}(),index:e.layer&&e.layer.v?1e5:0,path:o.getpath,config:function(e,t){return e=e||{},r.cache=o.config=i.extend({},o.config,e),r.path=o.config.path||r.path,"string"==typeof e.extend&&(e.extend=[e.extend]),o.config.path&&r.ready(),e.extend?(a?layui.addcss("modules/layer/"+e.extend):o.link("layer_theme/"+e.extend),this):this},ready:function(e){var t="layer",i="",n=(a?"modules/layer/":"layer_theme/")+"default/layer.css?v="+r.v+i;return a?layui.addcss(n,e,t):o.link(n,e,t),this},alert:function(e,t,n){var a="function"==typeof t;return a&&(n=t),r.open(i.extend({content:e,yes:n},a?{}:t))},confirm:function(e,t,n,a){var s="function"==typeof t;return s&&(a=n,n=t),r.open(i.extend({content:e,btn:o.btn,yes:n,btn2:a},s?{}:t))},msg:function(e,n,a){var s="function"==typeof n,f=o.config.skin,c=(f?f+" "+f+"-msg":"")||"layui-layer-msg",u=l.anim.length-1;return s&&(a=n),r.open(i.extend({content:e,time:3e3,shade:!1,skin:c,title:!1,closebtn:!1,btn:!1,resize:!1,end:a},s&&!o.config.skin?{skin:c+" layui-layer-hui",anim:u}:function(){return n=n||{},(n.icon===-1||n.icon===t&&!o.config.skin)&&(n.skin=c+" "+(n.skin||"layui-layer-hui")),n}()))},load:function(e,t){return r.open(i.extend({type:3,icon:e||0,resize:!1,shade:.01},t))},tips:function(e,t,n){return r.open(i.extend({type:4,content:[e,t],closebtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxwidth:260},n))}},s=function(e){var t=this,a=function(){t.creat()};t.index=++r.index,t.config.maxwidth=i(n).width()-30,t.config=i.extend({},t.config,o.config,e),document.body?a():settimeout(function(){a()},30)};s.pt=s.prototype;var l=["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"];l.anim=["layer-anim-00","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"],l.shade="layui-layer-shade",l.move="layui-layer-move",s.pt.config={type:0,shade:.3,fixed:!0,move:l[1],title:"信息",offset:"auto",area:"auto",closebtn:1,time:0,zindex:19891014,maxwidth:360,anim:0,isoutanim:!0,minstack:!0,icon:-1,movetype:1,resize:!0,scrollbar:!0,tips:2},s.pt.vessel=function(e,t){var n=this,a=n.index,r=n.config,s=r.zindex+a,f="object"==typeof r.title,c=r.maxmin&&(1===r.type||2===r.type),u=r.title?'
'+(f?r.title[0]:r.title)+"
":"";return r.zindex=s,t([r.shade?'
':"",'
'+(e&&2!=r.type?"":u)+'
'+(0==r.type&&r.icon!==-1?'':"")+(1==r.type&&e?"":r.content||"")+'
'+function(){var e=c?'':"";return r.closebtn&&(e+=''),e}()+""+(r.btn?function(){var e="";"string"==typeof r.btn&&(r.btn=[r.btn]);for(var t=0,i=r.btn.length;t'+r.btn[t]+"";return'
'+e+"
"}():"")+(r.resize?'':"")+"
"],u,i('
')),n},s.pt.creat=function(){var e=this,t=e.config,a=e.index,s=t.content,f="object"==typeof s,c=i("body");if(!t.id||!i("#"+t.id)[0]){switch("string"==typeof t.area&&(t.area="auto"===t.area?["",""]:[t.area,""]),t.shift&&(t.anim=t.shift),6==r.ie&&(t.fixed=!1),t.type){case 0:t.btn="btn"in t?t.btn:o.btn[0],r.closeall("dialog");break;case 2:var s=t.content=f?t.content:[t.content||"","auto"];t.content='';break;case 3:delete t.title,delete t.closebtn,t.icon===-1&&0===t.icon,r.closeall("loading");break;case 4:f||(t.content=[t.content,"body"]),t.follow=t.content[1],t.content=t.content[0]+'',delete t.title,t.tips="object"==typeof t.tips?t.tips:[t.tips,!0],t.tipsmore||r.closeall("tips")}if(e.vessel(f,function(n,r,u){c.append(n[0]),f?function(){2==t.type||4==t.type?function(){i("body").append(n[1])}():function(){s.parents("."+l[0])[0]||(s.data("display",s.css("display")).show().addclass("layui-layer-wrap").wrap(n[1]),i("#"+l[0]+a).find("."+l[5]).before(r))}()}():c.append(n[1]),i("#"+l.move)[0]||c.append(o.moveelem=u),e.layero=i("#"+l[0]+a),e.shadeo=i("#"+l.shade+a),t.scrollbar||l.html.css("overflow","hidden").attr("layer-full",a)}).auto(a),e.shadeo.css({"background-color":t.shade[1]||"#000",opacity:t.shade[0]||t.shade}),2==t.type&&6==r.ie&&e.layero.find("iframe").attr("src",s[0]),4==t.type?e.tips():function(){e.offset(),parseint(o.getstyle(document.getelementbyid(l.move),"z-index"))||function(){e.layero.css("visibility","hidden"),r.ready(function(){e.offset(),e.layero.css("visibility","visible")})}()}(),t.fixed&&n.on("resize",function(){e.offset(),(/^\d+%$/.test(t.area[0])||/^\d+%$/.test(t.area[1]))&&e.auto(a),4==t.type&&e.tips()}),t.time<=0||settimeout(function(){r.close(e.index)},t.time),e.move().callback(),l.anim[t.anim]){var u="layer-anim "+l.anim[t.anim];e.layero.addclass(u).one("webkitanimationend mozanimationend msanimationend oanimationend animationend",function(){i(this).removeclass(u)})}t.isoutanim&&e.layero.data("isoutanim",!0)}},s.pt.auto=function(e){var t=this,a=t.config,o=i("#"+l[0]+e);""===a.area[0]&&a.maxwidth>0&&(r.ie&&r.ie<8&&a.btn&&o.width(o.innerwidth()),o.outerwidth()>a.maxwidth&&o.width(a.maxwidth));var s=[o.innerwidth(),o.innerheight()],f=o.find(l[1]).outerheight()||0,c=o.find("."+l[6]).outerheight()||0,u=function(e){e=o.find(e),e.height(s[1]-f-c-2*(0|parsefloat(e.css("padding-top"))))};switch(a.type){case 2:u("iframe");break;default:""===a.area[1]?a.maxheight>0&&o.outerheight()>a.maxheight?(s[1]=a.maxheight,u("."+l[5])):a.fixed&&s[1]>=n.height()&&(s[1]=n.height(),u("."+l[5])):u("."+l[5])}return t},s.pt.offset=function(){var e=this,t=e.config,i=e.layero,a=[i.outerwidth(),i.outerheight()],o="object"==typeof t.offset;e.offsettop=(n.height()-a[1])/2,e.offsetleft=(n.width()-a[0])/2,o?(e.offsettop=t.offset[0],e.offsetleft=t.offset[1]||e.offsetleft):"auto"!==t.offset&&("t"===t.offset?e.offsettop=0:"r"===t.offset?e.offsetleft=n.width()-a[0]:"b"===t.offset?e.offsettop=n.height()-a[1]:"l"===t.offset?e.offsetleft=0:"lt"===t.offset?(e.offsettop=0,e.offsetleft=0):"lb"===t.offset?(e.offsettop=n.height()-a[1],e.offsetleft=0):"rt"===t.offset?(e.offsettop=0,e.offsetleft=n.width()-a[0]):"rb"===t.offset?(e.offsettop=n.height()-a[1],e.offsetleft=n.width()-a[0]):e.offsettop=t.offset),t.fixed||(e.offsettop=/%$/.test(e.offsettop)?n.height()*parsefloat(e.offsettop)/100:parsefloat(e.offsettop),e.offsetleft=/%$/.test(e.offsetleft)?n.width()*parsefloat(e.offsetleft)/100:parsefloat(e.offsetleft),e.offsettop+=n.scrolltop(),e.offsetleft+=n.scrollleft()),i.attr("minleft")&&(e.offsettop=n.height()-(i.find(l[1]).outerheight()||0),e.offsetleft=i.css("left")),i.css({top:e.offsettop,left:e.offsetleft})},s.pt.tips=function(){var e=this,t=e.config,a=e.layero,o=[a.outerwidth(),a.outerheight()],r=i(t.follow);r[0]||(r=i("body"));var s={width:r.outerwidth(),height:r.outerheight(),top:r.offset().top,left:r.offset().left},f=a.find(".layui-layer-tipsg"),c=t.tips[0];t.tips[1]||f.remove(),s.autoleft=function(){s.left+o[0]-n.width()>0?(s.tipleft=s.left+s.width-o[0],f.css({right:12,left:"auto"})):s.tipleft=s.left},s.where=[function(){s.autoleft(),s.tiptop=s.top-o[1]-10,f.removeclass("layui-layer-tipsb").addclass("layui-layer-tipst").css("border-right-color",t.tips[1])},function(){s.tipleft=s.left+s.width+10,s.tiptop=s.top,f.removeclass("layui-layer-tipsl").addclass("layui-layer-tipsr").css("border-bottom-color",t.tips[1])},function(){s.autoleft(),s.tiptop=s.top+s.height+10,f.removeclass("layui-layer-tipst").addclass("layui-layer-tipsb").css("border-right-color",t.tips[1])},function(){s.tipleft=s.left-o[0]-10,s.tiptop=s.top,f.removeclass("layui-layer-tipsr").addclass("layui-layer-tipsl").css("border-bottom-color",t.tips[1])}],s.where[c-1](),1===c?s.top-(n.scrolltop()+o[1]+16)<0&&s.where[2]():2===c?n.width()-(s.left+s.width+o[0]+16)>0||s.where[3]():3===c?s.top-n.scrolltop()+s.height+o[1]+16-n.height()>0&&s.where[0]():4===c&&o[0]+16-s.left>0&&s.where[1](),a.find("."+l[5]).css({"background-color":t.tips[1],"padding-right":t.closebtn?"30px":""}),a.css({left:s.tipleft-(t.fixed?n.scrollleft():0),top:s.tiptop-(t.fixed?n.scrolltop():0)})},s.pt.move=function(){var e=this,t=e.config,a=i(document),s=e.layero,l=s.find(t.move),f=s.find(".layui-layer-resize"),c={};return t.move&&l.css("cursor","move"),l.on("mousedown",function(e){e.preventdefault(),t.move&&(c.movestart=!0,c.offset=[e.clientx-parsefloat(s.css("left")),e.clienty-parsefloat(s.css("top"))],o.moveelem.css("cursor","move").show())}),f.on("mousedown",function(e){e.preventdefault(),c.resizestart=!0,c.offset=[e.clientx,e.clienty],c.area=[s.outerwidth(),s.outerheight()],o.moveelem.css("cursor","se-resize").show()}),a.on("mousemove",function(i){if(c.movestart){var a=i.clientx-c.offset[0],o=i.clienty-c.offset[1],l="fixed"===s.css("position");if(i.preventdefault(),c.stx=l?0:n.scrollleft(),c.sty=l?0:n.scrolltop(),!t.moveout){var f=n.width()-s.outerwidth()+c.stx,u=n.height()-s.outerheight()+c.sty;af&&(a=f),ou&&(o=u)}s.css({left:a,top:o})}if(t.resize&&c.resizestart){var a=i.clientx-c.offset[0],o=i.clienty-c.offset[1];i.preventdefault(),r.style(e.index,{width:c.area[0]+a,height:c.area[1]+o}),c.isresize=!0,t.resizing&&t.resizing(s)}}).on("mouseup",function(e){c.movestart&&(delete c.movestart,o.moveelem.hide(),t.moveend&&t.moveend(s)),c.resizestart&&(delete c.resizestart,o.moveelem.hide())}),e},s.pt.callback=function(){function e(){var e=a.cancel&&a.cancel(t.index,n);e===!1||r.close(t.index)}var t=this,n=t.layero,a=t.config;t.openlayer(),a.success&&(2==a.type?n.find("iframe").on("load",function(){a.success(n,t.index)}):a.success(n,t.index)),6==r.ie&&t.ie6(n),n.find("."+l[6]).children("a").on("click",function(){var e=i(this).index();if(0===e)a.yes?a.yes(t.index,n):a.btn1?a.btn1(t.index,n):r.close(t.index);else{var o=a["btn"+(e+1)]&&a["btn"+(e+1)](t.index,n);o===!1||r.close(t.index)}}),n.find("."+l[7]).on("click",e),a.shadeclose&&t.shadeo.on("click",function(){r.close(t.index)}),n.find(".layui-layer-min").on("click",function(){var e=a.min&&a.min(n,t.index);e===!1||r.min(t.index,a)}),n.find(".layui-layer-max").on("click",function(){i(this).hasclass("layui-layer-maxmin")?(r.restore(t.index),a.restore&&a.restore(n,t.index)):(r.full(t.index,a),settimeout(function(){a.full&&a.full(n,t.index)},100))}),a.end&&(o.end[t.index]=a.end)},o.reselect=function(){i.each(i("select"),function(e,t){var n=i(this);n.parents("."+l[0])[0]||1==n.attr("layer")&&i("."+l[0]).length<1&&n.removeattr("layer").show(),n=null})},s.pt.ie6=function(e){i("select").each(function(e,t){var n=i(this);n.parents("."+l[0])[0]||"none"===n.css("display")||n.attr({layer:"1"}).hide(),n=null})},s.pt.openlayer=function(){var e=this;r.zindex=e.config.zindex,r.settop=function(e){var t=function(){r.zindex++,e.css("z-index",r.zindex+1)};return r.zindex=parseint(e[0].style.zindex),e.on("mousedown",t),r.zindex}},o.record=function(e){var t=[e.width(),e.height(),e.position().top,e.position().left+parsefloat(e.css("margin-left"))];e.find(".layui-layer-max").addclass("layui-layer-maxmin"),e.attr({area:t})},o.rescollbar=function(e){l.html.attr("layer-full")==e&&(l.html[0].style.removeproperty?l.html[0].style.removeproperty("overflow"):l.html[0].style.removeattribute("overflow"),l.html.removeattr("layer-full"))},e.layer=r,r.getchildframe=function(e,t){return t=t||i("."+l[4]).attr("times"),i("#"+l[0]+t).find("iframe").contents().find(e)},r.getframeindex=function(e){return i("#"+e).parents("."+l[4]).attr("times")},r.iframeauto=function(e){if(e){var t=r.getchildframe("html",e).outerheight(),n=i("#"+l[0]+e),a=n.find(l[1]).outerheight()||0,o=n.find("."+l[6]).outerheight()||0;n.css({height:t+a+o}),n.find("iframe").css({height:t})}},r.iframesrc=function(e,t){i("#"+l[0]+e).find("iframe").attr("src",t)},r.style=function(e,t,n){var a=i("#"+l[0]+e),r=a.find(".layui-layer-content"),s=a.attr("type"),f=a.find(l[1]).outerheight()||0,c=a.find("."+l[6]).outerheight()||0;a.attr("minleft");s!==o.type[3]&&s!==o.type[4]&&(n||(parsefloat(t.width)<=260&&(t.width=260),parsefloat(t.height)-f-c<=64&&(t.height=64+f+c)),a.css(t),c=a.find("."+l[6]).outerheight(),s===o.type[2]?a.find("iframe").css({height:parsefloat(t.height)-f-c}):r.css({height:parsefloat(t.height)-f-c-parsefloat(r.css("padding-top"))-parsefloat(r.css("padding-bottom"))}))},r.min=function(e,t){t=t||{};var a=i("#"+l[0]+e),s=i("#"+l.shade+e),f=a.find(l[1]).outerheight()||0,c=a.attr("minleft")||181*o.minindex+"px",u=a.css("position"),d={width:180,height:f,position:"fixed",overflow:"hidden"};o.record(a),o.minleft[0]&&(c=o.minleft[0],o.minleft.shift()),t.minstack&&(d.left=c,d.top=n.height()-f,a.attr("minleft")||o.minindex++,a.attr("minleft",c)),a.attr("position",u),r.style(e,d,!0),a.find(".layui-layer-min").hide(),"page"===a.attr("type")&&a.find(l[4]).hide(),o.rescollbar(e),s.hide()},r.restore=function(e){var t=i("#"+l[0]+e),n=i("#"+l.shade+e),a=t.attr("area").split(",");t.attr("type");r.style(e,{width:parsefloat(a[0]),height:parsefloat(a[1]),top:parsefloat(a[2]),left:parsefloat(a[3]),position:t.attr("position"),overflow:"visible"},!0),t.find(".layui-layer-max").removeclass("layui-layer-maxmin"),t.find(".layui-layer-min").show(),"page"===t.attr("type")&&t.find(l[4]).show(),o.rescollbar(e),n.show()},r.full=function(e){var t,a=i("#"+l[0]+e);o.record(a),l.html.attr("layer-full")||l.html.css("overflow","hidden").attr("layer-full",e),cleartimeout(t),t=settimeout(function(){var t="fixed"===a.css("position");r.style(e,{top:t?0:n.scrolltop(),left:t?0:n.scrollleft(),width:n.width(),height:n.height()},!0),a.find(".layui-layer-min").hide()},100)},r.title=function(e,t){var n=i("#"+l[0]+(t||r.index)).find(l[1]);n.html(e)},r.close=function(e,t){var n=i("#"+l[0]+e),a=n.attr("type"),s="layer-anim-close";if(n[0]){var f="layui-layer-wrap",c=function(){if(a===o.type[1]&&"object"===n.attr("contype")){n.children(":not(."+l[5]+")").remove();for(var r=n.find("."+f),s=0;s<2;s++)r.unwrap();r.css("display",r.data("display")).removeclass(f)}else{if(a===o.type[2])try{var c=i("#"+l[4]+e)[0];c.contentwindow.document.write(""),c.contentwindow.close(),n.find("."+l[5])[0].removechild(c)}catch(u){}n[0].innerhtml="",n.remove()}"function"==typeof o.end[e]&&o.end[e](),delete o.end[e],"function"==typeof t&&t()};n.data("isoutanim")&&n.addclass("layer-anim "+s),i("#layui-layer-moves, #"+l.shade+e).remove(),6==r.ie&&o.reselect(),o.rescollbar(e),n.attr("minleft")&&(o.minindex--,o.minleft.push(n.attr("minleft"))),r.ie&&r.ie<10||!n.data("isoutanim")?c():settimeout(function(){c()},200)}},r.closeall=function(e,t){"function"==typeof e&&(t=e,e=null);var n=i("."+l[0]);i.each(n,function(a){var o=i(this),s=e?o.attr("type")===e:1;s&&r.close(o.attr("times"),a===n.length-1?t:null),s=null}),0===n.length&&"function"==typeof t&&t()};var f=r.cache||{},c=function(e){return f.skin?" "+f.skin+" "+f.skin+"-"+e:""};r.prompt=function(e,t){var a="";if(e=e||{},"function"==typeof e&&(t=e),e.area){var o=e.area;a='style="width: '+o[0]+"; height: "+o[1]+';"',delete e.area}var s,l=2==e.formtype?'":function(){return''}(),f=e.success;return delete e.success,r.open(i.extend({type:1,btn:["确定","取消"],content:l,skin:"layui-layer-prompt"+c("prompt"),maxwidth:n.width(),success:function(t){s=t.find(".layui-layer-input"),s.val(e.value||"").focus(),"function"==typeof f&&f(t)},resize:!1,yes:function(i){var n=s.val();""===n?s.focus():n.length>(e.maxlength||500)?r.tips("最多输入"+(e.maxlength||500)+"个字数",s,{tips:1}):t&&t(n,i,s)}},e))},r.tab=function(e){e=e||{};var t=e.tab||{},n="layui-this",a=e.success;return delete e.success,r.open(i.extend({type:1,skin:"layui-layer-tab"+c("tab"),resize:!1,title:function(){var e=t.length,i=1,a="";if(e>0)for(a=''+t[0].title+"";i"+t[i].title+"";return a}(),content:'
    '+function(){var e=t.length,i=1,a="";if(e>0)for(a='
  • '+(t[0].content||"no content")+"
  • ";i'+(t[i].content||"no content")+"";return a}()+"
",success:function(t){var o=t.find(".layui-layer-title").children(),r=t.find(".layui-layer-tabmain").children();o.on("mousedown",function(t){t.stoppropagation?t.stoppropagation():t.cancelbubble=!0;var a=i(this),o=a.index();a.addclass(n).siblings().removeclass(n),r.eq(o).show().siblings().hide(),"function"==typeof e.change&&e.change(o)}),"function"==typeof a&&a(t)}},e))},r.photos=function(t,n,a){function o(e,t,i){var n=new image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,t(n)},void(n.onerror=function(e){n.onerror=null,i(e)}))}var s={};if(t=t||{},t.photos){var l=!("string"==typeof t.photos||t.photos instanceof i),f=l?t.photos:{},u=f.data||[],d=f.start||0;s.imgindex=(0|d)+1,t.img=t.img||"img";var y=t.success;if(delete t.success,l){if(0===u.length)return r.msg("没有图片")}else{var p=i(t.photos),h=function(){u=[],p.find(t.img).each(function(e){var t=i(this);t.attr("layer-index",e),u.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(h(),0===u.length)return;if(n||p.on("click",t.img,function(){h();var e=i(this),n=e.attr("layer-index");r.photos(i.extend(t,{photos:{start:n,data:u,tab:t.tab},full:t.full}),!0)}),!n)return}s.imgprev=function(e){s.imgindex--,s.imgindex<1&&(s.imgindex=u.length),s.tabimg(e)},s.imgnext=function(e,t){s.imgindex++,s.imgindex>u.length&&(s.imgindex=1,t)||s.tabimg(e)},s.keyup=function(e){if(!s.end){var t=e.keycode;e.preventdefault(),37===t?s.imgprev(!0):39===t?s.imgnext(!0):27===t&&r.close(s.index)}},s.tabimg=function(e){if(!(u.length<=1))return f.start=s.imgindex-1,r.close(s.index),r.photos(t,!0,e)},s.event=function(){s.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventdefault(),s.imgprev(!0)}),s.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventdefault(),s.imgnext(!0)}),i(document).on("keyup",s.keyup)},s.loadi=r.load(1,{shade:!("shade"in t)&&.9,scrollbar:!1}),o(u[d].src,function(n){r.close(s.loadi),a&&(t.anim=-1),s.index=r.open(i.extend({type:1,id:"layui-layer-photos",area:function(){var a=[n.width,n.height],o=[i(e).width()-100,i(e).height()-100];if(!t.full&&(a[0]>o[0]||a[1]>o[1])){var r=[a[0]/o[0],a[1]/o[1]];r[0]>r[1]?(a[0]=a[0]/r[0],a[1]=a[1]/r[0]):r[0]'+(u[d].alt||'+function(){return u.length>1?'
'+(u[d].alt||"")+""+s.imgindex+" / "+u.length+"
":""}()+"",success:function(e,i){s.bigimg=e.find(".layui-layer-phimg"),s.imgsee=e.find(".layui-layer-imgbar"),s.event(e),t.tab&&t.tab(u[d],e),"function"==typeof y&&y(e)},end:function(){s.end=!0,i(document).off("keyup",s.keyup)}},t))},function(){r.close(s.loadi),r.msg("当前图片地址异常
是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){u.length>1&&s.imgnext(!0,!0)}})})}},o.run=function(t){i=t,n=i(e),l.html=i("html"),r.open=function(e){var t=new s(e);return t.index}},e.layui&&layui.define?(r.ready(),layui.define("jquery",function(t){r.path=layui.cache.dir,o.run(layui.$),e.layer=r,t("layer",r)})):"function"==typeof define&&define.amd?define(["jquery"],function(){return o.run(e.jquery),r}):function(){r.ready(),o.run(e.jquery)}()}(window); /*! * clipboard.js v2.0.4 * https://zenorocha.github.io/clipboard.js * * licensed mit © zeno rocha */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.clipboardjs=e():t.clipboardjs=e()}(this,function(){return function(n){var o={};function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=n,r.c=o,r.d=function(t,e,n){r.o(t,e)||object.defineproperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof symbol&&symbol.tostringtag&&object.defineproperty(t,symbol.tostringtag,{value:"module"}),object.defineproperty(t,"__esmodule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esmodule)return e;var n=object.create(null);if(r.r(n),object.defineproperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esmodule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return object.prototype.hasownproperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,n){"use strict";var r="function"==typeof symbol&&"symbol"==typeof symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof symbol&&t.constructor===symbol&&t!==symbol.prototype?"symbol":typeof t},i=function(){function o(t,e){for(var n=0;ns.tolerance[a.direction],e(a),l=t,i=!1}function h(){i||(i=!0,n=requestanimationframe(c))}var u=!!o&&{passive:!0,capture:!1};return t.addeventlistener("scroll",h,u),c(),{destroy:function(){cancelanimationframe(n),t.removeeventlistener("scroll",h,u)}}}function o(t){return t===object(t)?t:{down:t,up:t}}function s(t,n){n=n||{},object.assign(this,s.options,n),this.classes=object.assign({},s.options.classes,n.classes),this.elem=t,this.tolerance=o(this.tolerance),this.offset=o(this.offset),this.initialised=!1,this.frozen=!1}return s.prototype={constructor:s,init:function(){return s.cutsthemustard&&!this.initialised&&(this.addclass("initial"),this.initialised=!0,settimeout(function(t){t.scrolltracker=n(t.scroller,{offset:t.offset,tolerance:t.tolerance},t.update.bind(t))},100,this)),this},destroy:function(){this.initialised=!1,object.keys(this.classes).foreach(this.removeclass,this),this.scrolltracker.destroy()},unpin:function(){!this.hasclass("pinned")&&this.hasclass("unpinned")||(this.addclass("unpinned"),this.removeclass("pinned"),this.onunpin&&this.onunpin.call(this))},pin:function(){this.hasclass("unpinned")&&(this.addclass("pinned"),this.removeclass("unpinned"),this.onpin&&this.onpin.call(this))},freeze:function(){this.frozen=!0,this.addclass("frozen")},unfreeze:function(){this.frozen=!1,this.removeclass("frozen")},top:function(){this.hasclass("top")||(this.addclass("top"),this.removeclass("nottop"),this.ontop&&this.ontop.call(this))},nottop:function(){this.hasclass("nottop")||(this.addclass("nottop"),this.removeclass("top"),this.onnottop&&this.onnottop.call(this))},bottom:function(){this.hasclass("bottom")||(this.addclass("bottom"),this.removeclass("notbottom"),this.onbottom&&this.onbottom.call(this))},notbottom:function(){this.hasclass("notbottom")||(this.addclass("notbottom"),this.removeclass("bottom"),this.onnotbottom&&this.onnotbottom.call(this))},shouldunpin:function(t){return"down"===t.direction&&!t.top&&t.toleranceexceeded},shouldpin:function(t){return"up"===t.direction&&t.toleranceexceeded||t.top},addclass:function(t){this.elem.classlist.add.apply(this.elem.classlist,this.classes[t].split(" "))},removeclass:function(t){this.elem.classlist.remove.apply(this.elem.classlist,this.classes[t].split(" "))},hasclass:function(t){return this.classes[t].split(" ").every(function(t){return this.classlist.contains(t)},this.elem)},update:function(t){t.isoutofbounds||!0!==this.frozen&&(t.top?this.top():this.nottop(),t.bottom?this.bottom():this.notbottom(),this.shouldunpin(t)?this.unpin():this.shouldpin(t)&&this.pin())}},s.options={tolerance:{up:0,down:0},offset:0,scroller:t()?window:null,classes:{frozen:"headroom--frozen",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",nottop:"headroom--not-top",bottom:"headroom--bottom",notbottom:"headroom--not-bottom",initial:"headroom"}},s.cutsthemustard=!!(t()&&function(){}.bind&&"classlist"in document.documentelement&&object.assign&&object.keys&&requestanimationframe),s}); /*! lazy load 1.9.7 - mit license - copyright 2010-2015 mika tuupola */ !function(a,b,c,d){var e=a(b);a.fn.lazyload=function(f){function g(){var b=0;i.each(function(){var c=a(this);if(!j.skip_invisible||c.is(":visible"))if(a.abovethetop(this,j)||a.leftofbegin(this,j));else if(a.belowthefold(this,j)||a.rightoffold(this,j)){if(++b>j.failure_limit)return!1}else c.trigger("appear"),b=0})}var h,i=this,j={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:b,data_attribute:"original",skip_invisible:!1,appear:null,load:null,placeholder:"data:image/png;base64,ivborw0kggoaaaansuheugaaaaeaaaabcayaaaaffcsjaaaaaxnsr0iars4c6qaaaarnqu1baacxjwv8yquaaaajcehzcwaadsqaaa7eazurdhsaaaansurbvbhxyzh8+pb/aaffa0nnpuclaaaaaelftksuqmcc"};return f&&(d!==f.failurelimit&&(f.failure_limit=f.failurelimit,delete f.failurelimit),d!==f.effectspeed&&(f.effect_speed=f.effectspeed,delete f.effectspeed),a.extend(j,f)),h=j.container===d||j.container===b?e:a(j.container),0===j.event.indexof("scroll")&&h.bind(j.event,function(){return g()}),this.each(function(){var b=this,c=a(b);b.loaded=!1,(c.attr("src")===d||c.attr("src")===!1)&&c.is("img")&&c.attr("src",j.placeholder),c.one("appear",function(){if(!this.loaded){if(j.appear){var d=i.length;j.appear.call(b,d,j)}a("").bind("load",function(){var d=c.attr("data-"+j.data_attribute);c.hide(),c.is("img")?c.attr("src",d):c.css("background-image","url('"+d+"')"),c[j.effect](j.effect_speed),b.loaded=!0;var e=a.grep(i,function(a){return!a.loaded});if(i=a(e),j.load){var f=i.length;j.load.call(b,f,j)}}).attr("src",c.attr("data-"+j.data_attribute))}}),0!==j.event.indexof("scroll")&&c.bind(j.event,function(){b.loaded||c.trigger("appear")})}),e.bind("resize",function(){g()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appversion)&&e.bind("pageshow",function(b){b.originalevent&&b.originalevent.persisted&&i.each(function(){a(this).trigger("appear")})}),a(c).ready(function(){g()}),this},a.belowthefold=function(c,f){var g;return g=f.container===d||f.container===b?(b.innerheight?b.innerheight:e.height())+e.scrolltop():a(f.container).offset().top+a(f.container).height(),g<=a(c).offset().top-f.threshold},a.rightoffold=function(c,f){var g;return g=f.container===d||f.container===b?e.width()+e.scrollleft():a(f.container).offset().left+a(f.container).width(),g<=a(c).offset().left-f.threshold},a.abovethetop=function(c,f){var g;return g=f.container===d||f.container===b?e.scrolltop():a(f.container).offset().top,g>=a(c).offset().top+f.threshold+a(c).height()},a.leftofbegin=function(c,f){var g;return g=f.container===d||f.container===b?e.scrollleft():a(f.container).offset().left,g>=a(c).offset().left+f.threshold+a(c).width()},a.inviewport=function(b,c){return!(a.rightoffold(b,c)||a.leftofbegin(b,c)||a.belowthefold(b,c)||a.abovethetop(b,c))},a.extend(a.expr[":"],{"below-the-fold":function(b){return a.belowthefold(b,{threshold:0})},"above-the-top":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-screen":function(b){return a.rightoffold(b,{threshold:0})},"left-of-screen":function(b){return!a.rightoffold(b,{threshold:0})},"in-viewport":function(b){return a.inviewport(b,{threshold:0})},"above-the-fold":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-fold":function(b){return a.rightoffold(b,{threshold:0})},"left-of-fold":function(b){return!a.rightoffold(b,{threshold:0})}})}(jquery,window,document); /*jquery.qrcode.min.js*/ (function(r){r.fn.qrcode=function(h){var s;function u(a){this.mode=s;this.data=a}function o(a,c){this.typenumber=a;this.errorcorrectlevel=c;this.modules=null;this.modulecount=0;this.datacache=null;this.datalist=[]}function q(a,c){if(void 0==a.length)throw error(a.length+"/"+c);for(var d=0;da||this.modulecount<=a||0>c||this.modulecount<=c)throw error(a+","+c);return this.modules[a][c]},getmodulecount:function(){return this.modulecount},make:function(){if(1>this.typenumber){for(var a=1,a=1;40>a;a++){for(var c=p.getrsblocks(a,this.errorcorrectlevel),d=new t,b=0,e=0;e=d;d++)if(!(-1>=a+d||this.modulecount<=a+d))for(var b=-1;7>=b;b++)-1>=c+b||this.modulecount<=c+b||(this.modules[a+d][c+b]= 0<=d&&6>=d&&(0==b||6==b)||0<=b&&6>=b&&(0==d||6==d)||2<=d&&4>=d&&2<=b&&4>=b?!0:!1)},getbestmaskpattern:function(){for(var a=0,c=0,d=0;8>d;d++){this.makeimpl(!0,d);var b=j.getlostpoint(this);if(0==d||a>b)a=b,c=d}return c},createmovieclip:function(a,c,d){a=a.createemptymovieclip(c,d);this.make();for(c=0;c=f;f++)for(var i=-2;2>=i;i++)this.modules[b+f][e+i]=-2==f||2==f||-2==i||2==i||0==f&&0==i?!0:!1}},setuptypenumber:function(a){for(var c= j.getbchtypenumber(this.typenumber),d=0;18>d;d++){var b=!a&&1==(c>>d&1);this.modules[math.floor(d/3)][d%3+this.modulecount-8-3]=b}for(d=0;18>d;d++)b=!a&&1==(c>>d&1),this.modules[d%3+this.modulecount-8-3][math.floor(d/3)]=b},setuptypeinfo:function(a,c){for(var d=j.getbchtypeinfo(this.errorcorrectlevel<<3|c),b=0;15>b;b++){var e=!a&&1==(d>>b&1);6>b?this.modules[b][8]=e:8>b?this.modules[b+1][8]=e:this.modules[this.modulecount-15+b][8]=e}for(b=0;15>b;b++)e=!a&&1==(d>>b&1),8>b?this.modules[8][this.modulecount- b-1]=e:9>b?this.modules[8][15-b-1+1]=e:this.modules[8][15-b-1]=e;this.modules[this.modulecount-8][8]=!a},mapdata:function(a,c){for(var d=-1,b=this.modulecount-1,e=7,f=0,i=this.modulecount-1;0g;g++)if(null==this.modules[b][i-g]){var n=!1;f>>e&1));j.getmask(c,b,i-g)&&(n=!n);this.modules[b][i-g]=n;e--; -1==e&&(f++,e=7)}b+=d;if(0>b||this.modulecount<=b){b-=d;d=-d;break}}}};o.pad0=236;o.pad1=17;o.createdata=function(a,c,d){for(var c=p.getrsblocks(a, c),b=new t,e=0;e8*a)throw error("code length overflow. ("+b.getlengthinbits()+">"+8*a+")");for(b.getlengthinbits()+4<=8*a&&b.put(0,4);0!=b.getlengthinbits()%8;)b.putbit(!1);for(;!(b.getlengthinbits()>=8*a);){b.put(o.pad0,8);if(b.getlengthinbits()>=8*a)break;b.put(o.pad1,8)}return o.createbytes(b,c)};o.createbytes=function(a,c){for(var d= 0,b=0,e=0,f=array(c.length),i=array(c.length),g=0;g>>=1;return c},getpatternposition:function(a){return j.pattern_position_table[a-1]},getmask:function(a,c,d){switch(a){case 0:return 0==(c+d)%2;case 1:return 0==c%2;case 2:return 0==d%3;case 3:return 0==(c+d)%3;case 4:return 0==(math.floor(c/2)+math.floor(d/3))%2;case 5:return 0==c*d%2+c*d%3;case 6:return 0==(c*d%2+c*d%3)%2;case 7:return 0==(c*d%3+(c+d)%2)%2;default:throw error("bad maskpattern:"+ a);}},geterrorcorrectpolynomial:function(a){for(var c=new q([1],0),d=0;dc)switch(a){case 1:return 10;case 2:return 9;case s:return 8;case 8:return 8;default:throw error("mode:"+a);}else if(27>c)switch(a){case 1:return 12;case 2:return 11;case s:return 16;case 8:return 10;default:throw error("mode:"+a);}else if(41>c)switch(a){case 1:return 14;case 2:return 13;case s:return 16;case 8:return 12;default:throw error("mode:"+ a);}else throw error("type:"+c);},getlostpoint:function(a){for(var c=a.getmodulecount(),d=0,b=0;b=g;g++)if(!(0>b+g||c<=b+g))for(var h=-1;1>=h;h++)0>e+h||c<=e+h||0==g&&0==h||i==a.isdark(b+g,e+h)&&f++;5a)throw error("glog("+a+")");return l.log_table[a]},gexp:function(a){for(;0>a;)a+=255;for(;256<=a;)a-=255;return l.exp_table[a]},exp_table:array(256), log_table:array(256)},m=0;8>m;m++)l.exp_table[m]=1<m;m++)l.exp_table[m]=l.exp_table[m-4]^l.exp_table[m-5]^l.exp_table[m-6]^l.exp_table[m-8];for(m=0;255>m;m++)l.log_table[l.exp_table[m]]=m;q.prototype={get:function(a){return this.num[a]},getlength:function(){return this.num.length},multiply:function(a){for(var c=array(this.getlength()+a.getlength()-1),d=0;d this.getlength()-a.getlength())return this;for(var c=l.glog(this.get(0))-l.glog(a.get(0)),d=array(this.getlength()),b=0;b>>7-a%8&1)},put:function(a,c){for(var d=0;d>>c-d-1&1))},getlengthinbits:function(){return this.length},putbit:function(a){var c=math.floor(this.length/8);this.buffer.length<=c&&this.buffer.push(0);a&&(this.buffer[c]|=128>>>this.length%8);this.length++}};"string"===typeof h&&(h={text:h});h=r.extend({},{render:"canvas",width:256,height:256,typenumber:-1, correctlevel:2,background:"#ffffff",foreground:"#000000"},h);return this.each(function(){var a;if("canvas"==h.render){a=new o(h.typenumber,h.correctlevel);a.adddata(h.text);a.make();var c=document.createelement("canvas");c.width=h.width;c.height=h.height;for(var d=c.getcontext("2d"),b=h.width/a.getmodulecount(),e=h.height/a.getmodulecount(),f=0;f").css("width",h.width+"px").css("height",h.height+"px").css("border","0px").css("border-collapse","collapse").css("background-color",h.background);d=h.width/a.getmodulecount();b=h.height/a.getmodulecount();for(e=0;e").css("height",b+"px").appendto(c);for(i=0;i").css("width", d+"px").css("background-color",a.isdark(e,i)?h.foreground:h.background).appendto(f)}}a=c;jquery(a).appendto(this)})}})(jquery); /*! * jquery raty - a star rating plugin * * the mit license * * author: washington botelho * github: wbotelhos/raty * version: 2.9.0 * */ (function($){'use strict';var methods={init:function(options){return this.each(function(){this.self=$(this);methods.destroy.call(this.self);this.opt=$.extend(true,{},$.fn.raty.defaults,options,this.self.data());methods._adjustcallback.call(this);methods._adjustnumber.call(this);methods._adjusthints.call(this);this.opt.score=methods._adjustedscore.call(this,this.opt.score);if(this.opt.startype!=='img'){methods._adjuststartype.call(this)}methods._adjustpath.call(this);methods._createstars.call(this);if(this.opt.cancel){methods._createcancel.call(this)}if(this.opt.precision){methods._adjustprecision.call(this)}methods._createscore.call(this);methods._apply.call(this,this.opt.score);methods._settitle.call(this,this.opt.score);methods._target.call(this,this.opt.score);if(this.opt.readonly){methods._lock.call(this)}else{this.style.cursor='pointer';methods._binds.call(this)}})},_adjustcallback:function(){var options=['number','readonly','score','scorename','target','path'];for(var i=0;i0){this.score.val(score)}methods._roundstars.call(this,score)}},_between:function(value,min,max){return math.min(math.max(parsefloat(value),min),max)},_binds:function(){if(this.cancel){methods._bindovercancel.call(this);methods._bindclickcancel.call(this);methods._bindoutcancel.call(this)}methods._bindover.call(this);methods._bindclick.call(this);methods._bindout.call(this)},_bindclick:function(){var that=this;that.stars.on('click.raty',function(evt){var execute=true,score=(that.opt.half||that.opt.precision)?that.self.data('score'):(this.alt||$(this).data('alt'));if(that.opt.click){execute=that.opt.click.call(that,+score,evt)}if(execute||execute===undefined){if(that.opt.half&&!that.opt.precision){score=methods._roundhalfscore.call(that,score)}methods._apply.call(that,score)}})},_bindclickcancel:function(){var that=this;that.cancel.on('click.raty',function(evt){that.score.removeattr('value');if(that.opt.click){that.opt.click.call(that,null,evt)}})},_bindout:function(){var that=this;that.self.on('mouseleave.raty',function(evt){var score=+that.score.val()||undefined;methods._apply.call(that,score);methods._target.call(that,score,evt);methods._resettitle.call(that);if(that.opt.mouseout){that.opt.mouseout.call(that,score,evt)}})},_bindoutcancel:function(){var that=this;that.cancel.on('mouseleave.raty',function(evt){var icon=that.opt.canceloff;if(that.opt.startype!=='img'){icon=that.opt.cancelclass+' '+icon}methods._seticon.call(that,this,icon);if(that.opt.mouseout){var score=+that.score.val()||undefined;that.opt.mouseout.call(that,score,evt)}})},_bindover:function(){var that=this,action=that.opt.half?'mousemove.raty':'mouseover.raty';that.stars.on(action,function(evt){var score=methods._getscorebyposition.call(that,evt,this);methods._fill.call(that,score);if(that.opt.half){methods._roundstars.call(that,score,evt);methods._settitle.call(that,score,evt);that.self.data('score',score)}methods._target.call(that,score,evt);if(that.opt.mouseover){that.opt.mouseover.call(that,score,evt)}})},_bindovercancel:function(){var that=this;that.cancel.on('mouseover.raty',function(evt){var staroff=that.opt.path+that.opt.staroff,icon=that.opt.cancelon;if(that.opt.startype==='img'){that.stars.attr('src',staroff)}else{icon=that.opt.cancelclass+' '+icon;that.stars.attr('class',staroff)}methods._seticon.call(that,this,icon);methods._target.call(that,null,evt);if(that.opt.mouseover){that.opt.mouseover.call(that,null)}})},_buildscorefield:function(){return $('',{name:this.opt.scorename,type:'hidden'}).appendto(this)},_createcancel:function(){var icon=this.opt.path+this.opt.canceloff,cancel=$('<'+this.opt.startype+' />',{title:this.opt.cancelhint,'class':this.opt.cancelclass});if(this.opt.startype==='img'){cancel.attr({src:icon,alt:'x'})}else{cancel.attr('data-alt','x').addclass(icon)}if(this.opt.cancelplace==='left'){this.self.prepend(' ').prepend(cancel)}else{this.self.append(' ').append(cancel)}this.cancel=cancel},_createscore:function(){var score=$(this.opt.targetscore);this.score=score.length?score:methods._buildscorefield.call(this)},_createstars:function(){for(var i=1;i<=this.opt.number;i++){var name=methods._nameforindex.call(this,i),attrs={alt:i,src:this.opt.path+this.opt[name]};if(this.opt.startype!=='img'){attrs={'data-alt':i,'class':attrs.src}}attrs.title=methods._gethint.call(this,i);$('<'+this.opt.startype+' />',attrs).appendto(this);if(this.opt.space){this.self.append(ihash){var irange=this.opt.iconrange[hash];icon=methods._getrangeicon.call(this,irange,turnon);if(i<=irange.range){methods._seticon.call(this,star,icon)}if(i===irange.range){hash++}}else{icon=this.opt[turnon?'staron':'staroff'];methods._seticon.call(this,star,icon)}}},_getfirstdecimal:function(number){var decimal=number.tostring().split('.')[1],result=0;if(decimal){result=parseint(decimal.charat(0),10);if(decimal.slice(1,5)==='9999'){result++}}return result},_getrangeicon:function(irange,turnon){return turnon?irange.on||this.opt.staron:irange.off||this.opt.staroff},_getscorebyposition:function(evt,icon){var score=parseint(icon.alt||icon.getattribute('data-alt'),10);if(this.opt.half){var size=methods._getwidth.call(this),percent=parsefloat((evt.pagex-$(icon).offset().left)/size);score=score-1+percent}return score},_gethint:function(score,evt){if(score!==0&&!score){return this.opt.noratedmsg}var decimal=methods._getfirstdecimal.call(this,score),integer=math.ceil(score),group=this.opt.hints[(integer||1)-1],hint=group,set=!evt||this.move;if(this.opt.precision){if(set){decimal=decimal===0?9:decimal-1}hint=group[decimal]}else if(this.opt.halfshow||this.opt.half){decimal=set&&decimal===0?1:decimal>5?1:0;hint=group[decimal]}return hint===''?'':hint||score},_getwidth:function(){var width=this.stars[0].width||parsefloat(this.stars.eq(0).css('font-size'));if(!width){methods._error.call(this,'could not get the icon width!')}return width},_lock:function(){var hint=methods._gethint.call(this,this.score.val());this.style.cursor='';this.title=hint;this.score.prop('readonly',true);this.stars.prop('title',hint);if(this.cancel){this.cancel.hide()}this.self.data('readonly',true)},_nameforindex:function(i){return this.opt.score&&this.opt.score>=i?'staron':'staroff'},_resettitle:function(){for(var i=0;i5?1:0.5}return integer+decimal},_roundstars:function(score,evt){var decimal=(score%1).tofixed(2),name;if(evt||this.move){name=decimal>0.5?'staron':'starhalf'}else if(decimal>this.opt.round.down){name='staron';if(this.opt.halfshow&&decimal1)?score:score[0]},move:function(score){return this.each(function(){var integer=parseint(score,10),decimal=methods._getfirstdecimal.call(this,score);if(integer>=this.opt.number){integer=this.opt.number-1;decimal=10}var width=methods._getwidth.call(this),steps=width/10,star=$(this.stars[integer]),percent=star.offset().left+steps*decimal,evt=$.event('mousemove',{pagex:percent});this.move=true;star.trigger(evt);this.move=false})},readonly:function(readonly){return this.each(function(){var self=$(this);if(self.data('readonly')!==readonly){if(readonly){self.off('.raty').children(this.opt.startype).off('.raty');methods._lock.call(this)}else{methods._binds.call(this);methods._unlock.call(this)}self.data('readonly',readonly)}})},reload:function(){return methods.set.call(this,{})},score:function(){var self=$(this);return arguments.length?methods.setscore.apply(self,arguments):methods.getscore.call(self)},set:function(options){return this.each(function(){$(this).raty($.extend({},this.opt,options))})},setscore:function(score){return this.each(function(){if($(this).data('readonly')!==true){score=methods._adjustedscore.call(this,score);methods._apply.call(this,score);methods._target.call(this,score)}})}};$.fn.raty=function(method){if(methods[method]){return methods[method].apply(this,array.prototype.slice.call(arguments,1))}else if(typeof method==='object'||!method){return methods.init.apply(this,arguments)}else{$.error('method '+method+' does not exist!')}};$.fn.raty.defaults={cancel:false,cancelclass:'raty-cancel',cancelhint:'cancel this rating!',canceloff:'cancel-off.png',cancelon:'cancel-on.png',cancelplace:'left',click:undefined,half:false,halfshow:true,hints:['bad','poor','regular','good','gorgeous'],iconrange:undefined,mouseout:undefined,mouseover:undefined,noratedmsg:'not rated yet!',number:5,numbermax:20,path:undefined,precision:false,readonly:false,round:{down:0.25,full:0.6,up:0.76},score:undefined,scorename:'score',single:false,space:true,starhalf:'star-half.png',staroff:'star-off.png',staron:'star-on.png',startype:'img',target:undefined,targetformat:'{score}',targetkeep:false,targetscore:undefined,targettext:'',targettype:'hint'}})(jquery); /** * swiper 7.4.1 * most modern mobile touch slider and framework with hardware accelerated transitions * https://swiperjs.com * * copyright 2014-2021 vladimir kharlampidi * * released under the mit license * * released on: december 24, 2021 */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalthis?globalthis:e||self).swiper=t()}(this,(function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===object}function t(s={},a={}){object.keys(a).foreach((i=>{void 0===s[i]?s[i]=a[i]:e(a[i])&&e(s[i])&&object.keys(a[i]).length>0&&t(s[i],a[i])}))}const s={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 a(){const e="undefined"!=typeof document?document:{};return t(e,s),e}const i={document:s,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(){},cleartimeout(){},matchmedia:()=>({}),requestanimationframe:e=>"undefined"==typeof settimeout?(e(),null):settimeout(e,0),cancelanimationframe(e){"undefined"!=typeof settimeout&&cleartimeout(e)}};function r(){const e="undefined"!=typeof window?window:{};return t(e,i),e}class n extends array{constructor(e){super(...e||[]),function(e){const t=e.__proto__;object.defineproperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this)}}function l(e=[]){const t=[];return e.foreach((e=>{array.isarray(e)?t.push(...l(e)):t.push(e)})),t}function o(e,t){return array.prototype.filter.call(e,t)}function d(e,t){const s=r(),i=a();let l=[];if(!t&&e instanceof n)return e;if(!e)return new n(l);if("string"==typeof e){const s=e.trim();if(s.indexof("<")>=0&&s.indexof(">")>=0){let e="div";0===s.indexof("e.split(" "))));return this.foreach((e=>{e.classlist.add(...t)})),this},removeclass:function(...e){const t=l(e.map((e=>e.split(" "))));return this.foreach((e=>{e.classlist.remove(...t)})),this},hasclass:function(...e){const t=l(e.map((e=>e.split(" "))));return o(this,(e=>t.filter((t=>e.classlist.contains(t))).length>0)).length>0},toggleclass:function(...e){const t=l(e.map((e=>e.split(" "))));this.foreach((e=>{t.foreach((t=>{e.classlist.toggle(t)}))}))},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getattribute(e):void 0;for(let s=0;s=0;e-=1){const s=n[e];a&&s.listener===a||a&&s.listener&&s.listener.dom7proxy&&s.listener.dom7proxy===a?(r.removeeventlistener(t,s.proxylistener,i),n.splice(e,1)):a||(r.removeeventlistener(t,s.proxylistener,i),n.splice(e,1))}}}return this},trigger:function(...e){const t=r(),s=e[0].split(" "),a=e[1];for(let i=0;it>0)),i.dispatchevent(s),i.dom7eventdata=[],delete i.dom7eventdata}}}return this},transitionend:function(e){const t=this;return e&&t.on("transitionend",(function s(a){a.target===this&&(e.call(this,a),t.off("transitionend",s))})),this},outerwidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetwidth+parsefloat(e.getpropertyvalue("margin-right"))+parsefloat(e.getpropertyvalue("margin-left"))}return this[0].offsetwidth}return null},outerheight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetheight+parsefloat(e.getpropertyvalue("margin-top"))+parsefloat(e.getpropertyvalue("margin-bottom"))}return this[0].offsetheight}return null},styles:function(){const e=r();return this[0]?e.getcomputedstyle(this[0],null):{}},offset:function(){if(this.length>0){const e=r(),t=a(),s=this[0],i=s.getboundingclientrect(),n=t.body,l=s.clienttop||n.clienttop||0,o=s.clientleft||n.clientleft||0,d=s===e?e.scrolly:s.scrolltop,p=s===e?e.scrollx:s.scrollleft;return{top:i.top+d-l,left:i.left+p-o}}return null},css:function(e,t){const s=r();let a;if(1===arguments.length){if("string"!=typeof e){for(a=0;a{e.apply(t,[t,s])})),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerhtml:null;for(let t=0;tt-1)return d([]);if(e<0){const s=t+e;return d(s<0?[]:[this[s]])}return d([this[e]])},append:function(...e){let t;const s=a();for(let a=0;a=0;i-=1)this[s].insertbefore(a.childnodes[i],this[s].childnodes[0])}else if(e instanceof n)for(i=0;i0?e?this[0].nextelementsibling&&d(this[0].nextelementsibling).is(e)?d([this[0].nextelementsibling]):d([]):this[0].nextelementsibling?d([this[0].nextelementsibling]):d([]):d([])},nextall:function(e){const t=[];let s=this[0];if(!s)return d([]);for(;s.nextelementsibling;){const a=s.nextelementsibling;e?d(a).is(e)&&t.push(a):t.push(a),s=a}return d(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previouselementsibling&&d(t.previouselementsibling).is(e)?d([t.previouselementsibling]):d([]):t.previouselementsibling?d([t.previouselementsibling]):d([])}return d([])},prevall:function(e){const t=[];let s=this[0];if(!s)return d([]);for(;s.previouselementsibling;){const a=s.previouselementsibling;e?d(a).is(e)&&t.push(a):t.push(a),s=a}return d(t)},parent:function(e){const t=[];for(let s=0;s6&&(i=i.split(", ").map((e=>e.replace(",","."))).join(", ")),n=new s.webkitcssmatrix("none"===i?"":i)):(n=l.moztransform||l.otransform||l.mstransform||l.mstransform||l.transform||l.getpropertyvalue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=n.tostring().split(",")),"x"===t&&(i=s.webkitcssmatrix?n.m41:16===a.length?parsefloat(a[12]):parsefloat(a[4])),"y"===t&&(i=s.webkitcssmatrix?n.m42:16===a.length?parsefloat(a[13]):parsefloat(a[5])),i||0}function m(e){return"object"==typeof e&&null!==e&&e.constructor&&"object"===object.prototype.tostring.call(e).slice(8,-1)}function f(...e){const t=object(e[0]),s=["__proto__","constructor","prototype"];for(let i=1;is.indexof(e)<0));for(let s=0,a=e.length;si?"next":"prev",p=(e,t)=>"next"===d&&e>=t||"prev"===d&&e<=t,c=()=>{n=(new date).gettime(),null===l&&(l=n);const r=math.max(math.min((n-l)/o,1),0),d=.5-math.cos(r*math.pi)/2;let u=i+d*(t-i);if(p(u,t)&&(u=t),e.wrapperel.scrollto({[s]:u}),p(u,t))return e.wrapperel.style.overflow="hidden",e.wrapperel.style.scrollsnaptype="",settimeout((()=>{e.wrapperel.style.overflow="",e.wrapperel.scrollto({[s]:u})})),void a.cancelanimationframe(e.cssmodeframeid);e.cssmodeframeid=a.requestanimationframe(c)};c()}let w,b,x;function y(){return w||(w=function(){const e=r(),t=a();return{smoothscroll:t.documentelement&&"scrollbehavior"in t.documentelement.style,touch:!!("ontouchstart"in e||e.documenttouch&&t instanceof e.documenttouch),passivelistener:function(){let t=!1;try{const s=object.defineproperty({},"passive",{get(){t=!0}});e.addeventlistener("testpassivelistener",null,s)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),w}function e(e={}){return b||(b=function({useragent:e}={}){const t=y(),s=r(),a=s.navigator.platform,i=e||s.navigator.useragent,n={ios:!1,android:!1},l=s.screen.width,o=s.screen.height,d=i.match(/(android);?[\s\/]+([\d.]+)?/);let p=i.match(/(ipad).*os\s([\d_]+)/);const c=i.match(/(ipod)(.*os\s([\d_]+))?/),u=!p&&i.match(/(iphone\sos|ios)\s([\d_]+)/),h="win32"===a;let m="macintel"===a;return!p&&m&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexof(`${l}x${o}`)>=0&&(p=i.match(/(version)\/([\d.]+)/),p||(p=[0,1,"13_0_0"]),m=!1),d&&!h&&(n.os="android",n.android=!0),(p||u||c)&&(n.os="ios",n.ios=!0),n}(e)),b}function t(){return x||(x=function(){const e=r();return{issafari:function(){const t=e.navigator.useragent.tolowercase();return t.indexof("safari")>=0&&t.indexof("chrome")<0&&t.indexof("android")<0}(),iswebview:/(iphone|ipod|ipad).*applewebkit(?!.*safari)/i.test(e.navigator.useragent)}}()),x}object.keys(p).foreach((e=>{object.defineproperty(d.fn,e,{value:p[e],writable:!0})}));var c={on(e,t,s){const a=this;if("function"!=typeof t)return a;const i=s?"unshift":"push";return e.split(" ").foreach((e=>{a.eventslisteners[e]||(a.eventslisteners[e]=[]),a.eventslisteners[e][i](t)})),a},once(e,t,s){const a=this;if("function"!=typeof t)return a;function i(...s){a.off(e,i),i.__emitterproxy&&delete i.__emitterproxy,t.apply(a,s)}return i.__emitterproxy=t,a.on(e,i,s)},onany(e,t){const s=this;if("function"!=typeof e)return s;const a=t?"unshift":"push";return s.eventsanylisteners.indexof(e)<0&&s.eventsanylisteners[a](e),s},offany(e){const t=this;if(!t.eventsanylisteners)return t;const s=t.eventsanylisteners.indexof(e);return s>=0&&t.eventsanylisteners.splice(s,1),t},off(e,t){const s=this;return s.eventslisteners?(e.split(" ").foreach((e=>{void 0===t?s.eventslisteners[e]=[]:s.eventslisteners[e]&&s.eventslisteners[e].foreach(((a,i)=>{(a===t||a.__emitterproxy&&a.__emitterproxy===t)&&s.eventslisteners[e].splice(i,1)}))})),s):s},emit(...e){const t=this;if(!t.eventslisteners)return t;let s,a,i;"string"==typeof e[0]||array.isarray(e[0])?(s=e[0],a=e.slice(1,e.length),i=t):(s=e[0].events,a=e[0].data,i=e[0].context||t),a.unshift(i);return(array.isarray(s)?s:s.split(" ")).foreach((e=>{t.eventsanylisteners&&t.eventsanylisteners.length&&t.eventsanylisteners.foreach((t=>{t.apply(i,[e,...a])})),t.eventslisteners&&t.eventslisteners[e]&&t.eventslisteners[e].foreach((e=>{e.apply(i,a)}))})),t}};function $({swiper:e,runcallbacks:t,direction:s,step:a}){const{activeindex:i,previousindex:r}=e;let n=s;if(n||(n=i>r?"next":i0)return;if(n.istouched&&n.ismoved)return;!!l.noswipingclass&&""!==l.noswipingclass&&c.target&&c.target.shadowroot&&e.path&&e.path[0]&&(h=d(e.path[0]));const m=l.noswipingselector?l.noswipingselector:`.${l.noswipingclass}`,f=!(!c.target||!c.target.shadowroot);if(l.noswiping&&(f?function(e,t=this){return function t(s){return s&&s!==a()&&s!==r()?(s.assignedslot&&(s=s.assignedslot),s.closest(e)||t(s.getrootnode().host)):null}(t)}(m,c.target):h.closest(m)[0]))return void(t.allowclick=!0);if(l.swipehandler&&!h.closest(l.swipehandler)[0])return;o.currentx="touchstart"===c.type?c.targettouches[0].pagex:c.pagex,o.currenty="touchstart"===c.type?c.targettouches[0].pagey:c.pagey;const g=o.currentx,v=o.currenty,w=l.edgeswipedetection||l.iosedgeswipedetection,b=l.edgeswipethreshold||l.iosedgeswipethreshold;if(w&&(g<=b||g>=i.innerwidth-b)){if("prevent"!==w)return;e.preventdefault()}if(object.assign(n,{istouched:!0,ismoved:!1,allowtouchcallbacks:!0,isscrolling:void 0,startmoving:void 0}),o.startx=g,o.starty=v,n.touchstarttime=u(),t.allowclick=!0,t.updatesize(),t.swipedirection=void 0,l.threshold>0&&(n.allowthresholdmove=!1),"touchstart"!==c.type){let e=!0;h.is(n.focusableelements)&&(e=!1),s.activeelement&&d(s.activeelement).is(n.focusableelements)&&s.activeelement!==h[0]&&s.activeelement.blur();const a=e&&t.allowtouchmove&&l.touchstartpreventdefault;!l.touchstartforcepreventdefault&&!a||h[0].iscontenteditable||c.preventdefault()}t.emit("touchstart",c)}function m(e){const t=a(),s=this,i=s.toucheventsdata,{params:r,touches:n,rtltranslate:l,enabled:o}=s;if(!o)return;let p=e;if(p.originalevent&&(p=p.originalevent),!i.istouched)return void(i.startmoving&&i.isscrolling&&s.emit("touchmoveopposite",p));if(i.istouchevent&&"touchmove"!==p.type)return;const c="touchmove"===p.type&&p.targettouches&&(p.targettouches[0]||p.changedtouches[0]),h="touchmove"===p.type?c.pagex:p.pagex,m="touchmove"===p.type?c.pagey:p.pagey;if(p.preventedbynestedswiper)return n.startx=h,void(n.starty=m);if(!s.allowtouchmove)return s.allowclick=!1,void(i.istouched&&(object.assign(n,{startx:h,starty:m,currentx:h,currenty:m}),i.touchstarttime=u()));if(i.istouchevent&&r.touchreleaseonedges&&!r.loop)if(s.isvertical()){if(mn.starty&&s.translate>=s.mintranslate())return i.istouched=!1,void(i.ismoved=!1)}else if(hn.startx&&s.translate>=s.mintranslate())return;if(i.istouchevent&&t.activeelement&&p.target===t.activeelement&&d(p.target).is(i.focusableelements))return i.ismoved=!0,void(s.allowclick=!1);if(i.allowtouchcallbacks&&s.emit("touchmove",p),p.targettouches&&p.targettouches.length>1)return;n.currentx=h,n.currenty=m;const f=n.currentx-n.startx,g=n.currenty-n.starty;if(s.params.threshold&&math.sqrt(f**2+g**2)=25&&(e=180*math.atan2(math.abs(g),math.abs(f))/math.pi,i.isscrolling=s.ishorizontal()?e>r.touchangle:90-e>r.touchangle)}if(i.isscrolling&&s.emit("touchmoveopposite",p),void 0===i.startmoving&&(n.currentx===n.startx&&n.currenty===n.starty||(i.startmoving=!0)),i.isscrolling)return void(i.istouched=!1);if(!i.startmoving)return;s.allowclick=!1,!r.cssmode&&p.cancelable&&p.preventdefault(),r.touchmovestoppropagation&&!r.nested&&p.stoppropagation(),i.ismoved||(r.loop&&!r.cssmode&&s.loopfix(),i.starttranslate=s.gettranslate(),s.settransition(0),s.animating&&s.$wrapperel.trigger("webkittransitionend transitionend"),i.allowmomentumbounce=!1,!r.grabcursor||!0!==s.allowslidenext&&!0!==s.allowslideprev||s.setgrabcursor(!0),s.emit("sliderfirstmove",p)),s.emit("slidermove",p),i.ismoved=!0;let v=s.ishorizontal()?f:g;n.diff=v,v*=r.touchratio,l&&(v=-v),s.swipedirection=v>0?"prev":"next",i.currenttranslate=v+i.starttranslate;let w=!0,b=r.resistanceratio;if(r.touchreleaseonedges&&(b=0),v>0&&i.currenttranslate>s.mintranslate()?(w=!1,r.resistance&&(i.currenttranslate=s.mintranslate()-1+(-s.mintranslate()+i.starttranslate+v)**b)):v<0&&i.currenttranslatei.starttranslate&&(i.currenttranslate=i.starttranslate),s.allowslideprev||s.allowslidenext||(i.currenttranslate=i.starttranslate),r.threshold>0){if(!(math.abs(v)>r.threshold||i.allowthresholdmove))return void(i.currenttranslate=i.starttranslate);if(!i.allowthresholdmove)return i.allowthresholdmove=!0,n.startx=n.currentx,n.starty=n.currenty,i.currenttranslate=i.starttranslate,void(n.diff=s.ishorizontal()?n.currentx-n.startx:n.currenty-n.starty)}r.followfinger&&!r.cssmode&&((r.freemode&&r.freemode.enabled&&s.freemode||r.watchslidesprogress)&&(s.updateactiveindex(),s.updateslidesclasses()),s.params.freemode&&r.freemode.enabled&&s.freemode&&s.freemode.ontouchmove(),s.updateprogress(i.currenttranslate),s.settranslate(i.currenttranslate))}function p(e){const t=this,s=t.toucheventsdata,{params:a,touches:i,rtltranslate:r,slidesgrid:n,enabled:l}=t;if(!l)return;let o=e;if(o.originalevent&&(o=o.originalevent),s.allowtouchcallbacks&&t.emit("touchend",o),s.allowtouchcallbacks=!1,!s.istouched)return s.ismoved&&a.grabcursor&&t.setgrabcursor(!1),s.ismoved=!1,void(s.startmoving=!1);a.grabcursor&&s.ismoved&&s.istouched&&(!0===t.allowslidenext||!0===t.allowslideprev)&&t.setgrabcursor(!1);const d=u(),p=d-s.touchstarttime;if(t.allowclick){const e=o.path||o.composedpath&&o.composedpath();t.updateclickedslide(e&&e[0]||o.target),t.emit("tap click",o),p<300&&d-s.lastclicktime<300&&t.emit("doubletap doubleclick",o)}if(s.lastclicktime=u(),c((()=>{t.destroyed||(t.allowclick=!0)})),!s.istouched||!s.ismoved||!t.swipedirection||0===i.diff||s.currenttranslate===s.starttranslate)return s.istouched=!1,s.ismoved=!1,void(s.startmoving=!1);let h;if(s.istouched=!1,s.ismoved=!1,s.startmoving=!1,h=a.followfinger?r?t.translate:-t.translate:-s.currenttranslate,a.cssmode)return;if(t.params.freemode&&a.freemode.enabled)return void t.freemode.ontouchend({currentpos:h});let m=0,f=t.slidessizesgrid[0];for(let e=0;e=n[e]&&h=n[e]&&(m=e,f=n[n.length-1]-n[n.length-2])}const g=(h-n[m])/f,v=ma.longswipesms){if(!a.longswipes)return void t.slideto(t.activeindex);"next"===t.swipedirection&&(g>=a.longswipesratio?t.slideto(m+v):t.slideto(m)),"prev"===t.swipedirection&&(g>1-a.longswipesratio?t.slideto(m+v):t.slideto(m))}else{if(!a.shortswipes)return void t.slideto(t.activeindex);t.navigation&&(o.target===t.navigation.nextel||o.target===t.navigation.prevel)?o.target===t.navigation.nextel?t.slideto(m+v):t.slideto(m):("next"===t.swipedirection&&t.slideto(m+v),"prev"===t.swipedirection&&t.slideto(m))}}function k(){const e=this,{params:t,el:s}=e;if(s&&0===s.offsetwidth)return;t.breakpoints&&e.setbreakpoint();const{allowslidenext:a,allowslideprev:i,snapgrid:r}=e;e.allowslidenext=!0,e.allowslideprev=!0,e.updatesize(),e.updateslides(),e.updateslidesclasses(),("auto"===t.slidesperview||t.slidesperview>1)&&e.isend&&!e.isbeginning&&!e.params.centeredslides?e.slideto(e.slides.length-1,0,!1,!0):e.slideto(e.activeindex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowslideprev=i,e.allowslidenext=a,e.params.watchoverflow&&r!==e.snapgrid&&e.checkoverflow()}function z(e){const t=this;t.enabled&&(t.allowclick||(t.params.preventclicks&&e.preventdefault(),t.params.preventclickspropagation&&t.animating&&(e.stoppropagation(),e.stopimmediatepropagation())))}function o(){const e=this,{wrapperel:t,rtltranslate:s,enabled:a}=e;if(!a)return;let i;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 r=e.maxtranslate()-e.mintranslate();i=0===r?0:(e.translate-e.mintranslate())/r,i!==e.progress&&e.updateprogress(s?-e.translate:e.translate),e.emit("settranslate",e.translate,!1)}let i=!1;function l(){}const a=(e,t)=>{const s=a(),{params:i,touchevents:r,el:n,wrapperel:l,device:o,support:d}=e,p=!!i.nested,c="on"===t?"addeventlistener":"removeeventlistener",u=t;if(d.touch){const t=!("touchstart"!==r.start||!d.passivelistener||!i.passivelisteners)&&{passive:!0,capture:!1};n[c](r.start,e.ontouchstart,t),n[c](r.move,e.ontouchmove,d.passivelistener?{passive:!1,capture:p}:p),n[c](r.end,e.ontouchend,t),r.cancel&&n[c](r.cancel,e.ontouchend,t)}else n[c](r.start,e.ontouchstart,!1),s[c](r.move,e.ontouchmove,p),s[c](r.end,e.ontouchend,!1);(i.preventclicks||i.preventclickspropagation)&&n[c]("click",e.onclick,!0),i.cssmode&&l[c]("scroll",e.onscroll),i.updateonwindowresize?e[u](o.ios||o.android?"resize orientationchange observerupdate":"resize observerupdate",k,!0):e[u]("observerupdate",k,!0)};const d=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var g={init:!0,direction:"horizontal",toucheventstarget:"wrapper",initialslide:0,speed:300,cssmode:!1,updateonwindowresize:!0,resizeobserver:!0,nested:!1,createelements:!1,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,watchoverflow:!0,roundlengths:!1,touchratio:1,touchangle:45,simulatetouch:!0,shortswipes:!0,longswipes:!0,longswipesratio:.5,longswipesms:300,followfinger:!0,allowtouchmove:!0,threshold:0,touchmovestoppropagation:!1,touchstartpreventdefault:!0,touchstartforcepreventdefault:!1,touchreleaseonedges:!1,uniquenavelements:!0,resistance:!0,resistanceratio:.85,watchslidesprogress:!1,grabcursor:!1,preventclicks:!0,preventclickspropagation:!0,slidetoclickedslide:!1,preloadimages:!0,updateonimagesready:!0,loop:!1,loopadditionalslides:0,loopedslides:null,loopfillgroupwithblank:!1,looppreventsslide:!0,rewind:!1,allowslideprev:!0,allowslidenext:!0,swipehandler:null,noswiping:!0,noswipingclass:"swiper-no-swiping",noswipingselector:null,passivelisteners:!0,containermodifierclass:"swiper-",slideclass:"swiper-slide",slideblankclass:"swiper-slide-invisible-blank",slideactiveclass:"swiper-slide-active",slideduplicateactiveclass:"swiper-slide-duplicate-active",slidevisibleclass:"swiper-slide-visible",slideduplicateclass:"swiper-slide-duplicate",slidenextclass:"swiper-slide-next",slideduplicatenextclass:"swiper-slide-duplicate-next",slideprevclass:"swiper-slide-prev",slideduplicateprevclass:"swiper-slide-duplicate-prev",wrapperclass:"swiper-wrapper",runcallbacksoninit:!0,_emitclasses:!1};function n(e,t){return function(s={}){const a=object.keys(s)[0],i=s[a];"object"==typeof i&&null!==i?(["navigation","pagination","scrollbar"].indexof(a)>=0&&!0===e[a]&&(e[a]={auto:!0}),a in e&&"enabled"in i?(!0===e[a]&&(e[a]={enabled:!0}),"object"!=typeof e[a]||"enabled"in e[a]||(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),f(t,s)):f(t,s)):f(t,s)}}const b={eventsemitter:c,update:{updatesize:function(){const e=this;let t,s;const a=e.$el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:a[0].clientwidth,s=void 0!==e.params.height&&null!==e.params.height?e.params.height:a[0].clientheight,0===t&&e.ishorizontal()||0===s&&e.isvertical()||(t=t-parseint(a.css("padding-left")||0,10)-parseint(a.css("padding-right")||0,10),s=s-parseint(a.css("padding-top")||0,10)-parseint(a.css("padding-bottom")||0,10),number.isnan(t)&&(t=0),number.isnan(s)&&(s=0),object.assign(e,{width:t,height:s,size:e.ishorizontal()?t:s}))},updateslides:function(){const e=this;function t(t){return e.ishorizontal()?t:{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"}[t]}function s(e,s){return parsefloat(e.getpropertyvalue(t(s))||0)}const a=e.params,{$wrapperel:i,size:r,rtltranslate:n,wrongrtl:l}=e,o=e.virtual&&a.virtual.enabled,d=o?e.virtual.slides.length:e.slides.length,p=i.children(`.${e.params.slideclass}`),c=o?e.virtual.slides.length:p.length;let u=[];const h=[],m=[];let f=a.slidesoffsetbefore;"function"==typeof f&&(f=a.slidesoffsetbefore.call(e));let v=a.slidesoffsetafter;"function"==typeof v&&(v=a.slidesoffsetafter.call(e));const w=e.snapgrid.length,b=e.slidesgrid.length;let x=a.spacebetween,y=-f,e=0,t=0;if(void 0===r)return;"string"==typeof x&&x.indexof("%")>=0&&(x=parsefloat(x.replace("%",""))/100*r),e.virtualsize=-x,n?p.css({marginleft:"",marginbottom:"",margintop:""}):p.css({marginright:"",marginbottom:"",margintop:""}),a.centeredslides&&a.cssmode&&(g(e.wrapperel,"--swiper-centered-offset-before",""),g(e.wrapperel,"--swiper-centered-offset-after",""));const c=a.grid&&a.grid.rows>1&&e.grid;let $;c&&e.grid.initslides(c);const s="auto"===a.slidesperview&&a.breakpoints&&object.keys(a.breakpoints).filter((e=>void 0!==a.breakpoints[e].slidesperview)).length>0;for(let i=0;i1&&u.push(e.virtualsize-r)}if(0===u.length&&(u=[0]),0!==a.spacebetween){const s=e.ishorizontal()&&n?"marginleft":t("marginright");p.filter(((e,t)=>!a.cssmode||t!==p.length-1)).css({[s]:`${x}px`})}if(a.centeredslides&&a.centeredslidesbounds){let e=0;m.foreach((t=>{e+=t+(a.spacebetween?a.spacebetween:0)})),e-=a.spacebetween;const t=e-r;u=u.map((e=>e<0?-f:e>t?t+v:e))}if(a.centerinsufficientslides){let e=0;if(m.foreach((t=>{e+=t+(a.spacebetween?a.spacebetween:0)})),e-=a.spacebetween,e{u[s]=e-t})),h.foreach(((e,s)=>{h[s]=e+t}))}}if(object.assign(e,{slides:p,snapgrid:u,slidesgrid:h,slidessizesgrid:m}),a.centeredslides&&a.cssmode&&!a.centeredslidesbounds){g(e.wrapperel,"--swiper-centered-offset-before",-u[0]+"px"),g(e.wrapperel,"--swiper-centered-offset-after",e.size/2-m[m.length-1]/2+"px");const t=-e.snapgrid[0],s=-e.slidesgrid[0];e.snapgrid=e.snapgrid.map((e=>e+t)),e.slidesgrid=e.slidesgrid.map((e=>e+s))}c!==d&&e.emit("slideslengthchange"),u.length!==w&&(e.params.watchoverflow&&e.checkoverflow(),e.emit("snapgridlengthchange")),h.length!==b&&e.emit("slidesgridlengthchange"),a.watchslidesprogress&&e.updateslidesoffset()},updateautoheight:function(e){const t=this,s=[],a=t.virtual&&t.params.virtual.enabled;let i,r=0;"number"==typeof e?t.settransition(e):!0===e&&t.settransition(t.params.speed);const n=e=>a?t.slides.filter((t=>parseint(t.getattribute("data-swiper-slide-index"),10)===e))[0]:t.slides.eq(e)[0];if("auto"!==t.params.slidesperview&&t.params.slidesperview>1)if(t.params.centeredslides)t.visibleslides.each((e=>{s.push(e)}));else for(i=0;it.slides.length&&!a)break;s.push(n(e))}else s.push(n(t.activeindex));for(i=0;ir?e:r}(r||0===r)&&t.$wrapperel.css("height",`${r}px`)},updateslidesoffset:function(){const e=this,t=e.slides;for(let s=0;s=0&&c1&&u<=t.size||c<=0&&u>=t.size)&&(t.visibleslides.push(l),t.visibleslidesindexes.push(e),a.eq(e).addclass(s.slidevisibleclass)),l.progress=i?-d:d,l.originalprogress=i?-p:p}t.visibleslides=d(t.visibleslides)},updateprogress:function(e){const t=this;if(void 0===e){const s=t.rtltranslate?-1:1;e=t&&t.translate&&t.translate*s||0}const s=t.params,a=t.maxtranslate()-t.mintranslate();let{progress:i,isbeginning:r,isend:n}=t;const l=r,o=n;0===a?(i=0,r=!0,n=!0):(i=(e-t.mintranslate())/a,r=i<=0,n=i>=1),object.assign(t,{progress:i,isbeginning:r,isend:n}),(s.watchslidesprogress||s.centeredslides&&s.autoheight)&&t.updateslidesprogress(e),r&&!l&&t.emit("reachbeginning toedge"),n&&!o&&t.emit("reachend toedge"),(l&&!r||o&&!n)&&t.emit("fromedge"),t.emit("progress",i)},updateslidesclasses:function(){const e=this,{slides:t,params:s,$wrapperel:a,activeindex:i,realindex:r}=e,n=e.virtual&&s.virtual.enabled;let l;t.removeclass(`${s.slideactiveclass} ${s.slidenextclass} ${s.slideprevclass} ${s.slideduplicateactiveclass} ${s.slideduplicatenextclass} ${s.slideduplicateprevclass}`),l=n?e.$wrapperel.find(`.${s.slideclass}[data-swiper-slide-index="${i}"]`):t.eq(i),l.addclass(s.slideactiveclass),s.loop&&(l.hasclass(s.slideduplicateclass)?a.children(`.${s.slideclass}:not(.${s.slideduplicateclass})[data-swiper-slide-index="${r}"]`).addclass(s.slideduplicateactiveclass):a.children(`.${s.slideclass}.${s.slideduplicateclass}[data-swiper-slide-index="${r}"]`).addclass(s.slideduplicateactiveclass));let o=l.nextall(`.${s.slideclass}`).eq(0).addclass(s.slidenextclass);s.loop&&0===o.length&&(o=t.eq(0),o.addclass(s.slidenextclass));let d=l.prevall(`.${s.slideclass}`).eq(0).addclass(s.slideprevclass);s.loop&&0===d.length&&(d=t.eq(-1),d.addclass(s.slideprevclass)),s.loop&&(o.hasclass(s.slideduplicateclass)?a.children(`.${s.slideclass}:not(.${s.slideduplicateclass})[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addclass(s.slideduplicatenextclass):a.children(`.${s.slideclass}.${s.slideduplicateclass}[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addclass(s.slideduplicatenextclass),d.hasclass(s.slideduplicateclass)?a.children(`.${s.slideclass}:not(.${s.slideduplicateclass})[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addclass(s.slideduplicateprevclass):a.children(`.${s.slideclass}.${s.slideduplicateclass}[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addclass(s.slideduplicateprevclass)),e.emitslidesclasses()},updateactiveindex:function(e){const t=this,s=t.rtltranslate?t.translate:-t.translate,{slidesgrid:a,snapgrid:i,params:r,activeindex:n,realindex:l,snapindex:o}=t;let d,p=e;if(void 0===p){for(let e=0;e=a[e]&&s=a[e]&&s=a[e]&&(p=e);r.normalizeslideindex&&(p<0||void 0===p)&&(p=0)}if(i.indexof(s)>=0)d=i.indexof(s);else{const e=math.min(r.slidespergroupskip,p);d=e+math.floor((p-e)/r.slidespergroup)}if(d>=i.length&&(d=i.length-1),p===n)return void(d!==o&&(t.snapindex=d,t.emit("snapindexchange")));const c=parseint(t.slides.eq(p).attr("data-swiper-slide-index")||p,10);object.assign(t,{snapindex:d,realindex:c,previousindex:n,activeindex:p}),t.emit("activeindexchange"),t.emit("snapindexchange"),l!==c&&t.emit("realindexchange"),(t.initialized||t.params.runcallbacksoninit)&&t.emit("slidechange")},updateclickedslide:function(e){const t=this,s=t.params,a=d(e).closest(`.${s.slideclass}`)[0];let i,r=!1;if(a)for(let e=0;eo?o:a&&e=o.length&&(g=o.length-1),(c||l.initialslide||0)===(p||0)&&s&&r.emit("beforeslidechangestart");const w=-o[g];if(r.updateprogress(w),l.normalizeslideindex)for(let e=0;e=s&&t=s&&t=s&&(n=e)}if(r.initialized&&n!==c){if(!r.allowslidenext&&wr.translate&&w>r.maxtranslate()&&(c||0)!==n)return!1}let b;if(b=n>c?"next":n{r.wrapperel.style.scrollsnaptype="",r._swiperimmediatevirtual=!1}))}else{if(!r.support.smoothscroll)return v({swiper:r,targetposition:s,side:e?"left":"top"}),!0;h.scrollto({[e?"left":"top"]:s,behavior:"smooth"})}return!0}return r.settransition(t),r.settranslate(w),r.updateactiveindex(n),r.updateslidesclasses(),r.emit("beforetransitionstart",t,a),r.transitionstart(s,b),0===t?r.transitionend(s,b):r.animating||(r.animating=!0,r.onslidetowrappertransitionend||(r.onslidetowrappertransitionend=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperel[0].removeeventlistener("transitionend",r.onslidetowrappertransitionend),r.$wrapperel[0].removeeventlistener("webkittransitionend",r.onslidetowrappertransitionend),r.onslidetowrappertransitionend=null,delete r.onslidetowrappertransitionend,r.transitionend(s,b))}),r.$wrapperel[0].addeventlistener("transitionend",r.onslidetowrappertransitionend),r.$wrapperel[0].addeventlistener("webkittransitionend",r.onslidetowrappertransitionend)),!0},slidetoloop:function(e=0,t=this.params.speed,s=!0,a){const i=this;let r=e;return i.params.loop&&(r+=i.loopedslides),i.slideto(r,t,s,a)},slidenext:function(e=this.params.speed,t=!0,s){const a=this,{animating:i,enabled:r,params:n}=a;if(!r)return a;let l=n.slidespergroup;"auto"===n.slidesperview&&1===n.slidespergroup&&n.slidespergroupauto&&(l=math.max(a.slidesperviewdynamic("current",!0),1));const o=a.activeindexp(e)));let h=n[u.indexof(c)-1];if(void 0===h&&i.cssmode){let e;n.foreach(((t,s)=>{c>=t&&(e=s)})),void 0!==e&&(h=n[e>0?e-1:e])}let m=0;return void 0!==h&&(m=l.indexof(h),m<0&&(m=a.activeindex-1),"auto"===i.slidesperview&&1===i.slidespergroup&&i.slidespergroupauto&&(m=m-a.slidesperviewdynamic("previous",!0)+1,m=math.max(m,0))),i.rewind&&a.isbeginning?a.slideto(a.slides.length-1,e,t,s):a.slideto(m,e,t,s)},slidereset:function(e=this.params.speed,t=!0,s){return this.slideto(this.activeindex,e,t,s)},slidetoclosest:function(e=this.params.speed,t=!0,s,a=.5){const i=this;let r=i.activeindex;const n=math.min(i.params.slidespergroupskip,r),l=n+math.floor((r-n)/i.params.slidespergroup),o=i.rtltranslate?i.translate:-i.translate;if(o>=i.snapgrid[l]){const e=i.snapgrid[l];o-e>(i.snapgrid[l+1]-e)*a&&(r+=i.params.slidespergroup)}else{const e=i.snapgrid[l-1];o-e<=(i.snapgrid[l]-e)*a&&(r-=i.params.slidespergroup)}return r=math.max(r,0),r=math.min(r,i.slidesgrid.length-1),i.slideto(r,e,t,s)},slidetoclickedslide:function(){const e=this,{params:t,$wrapperel:s}=e,a="auto"===t.slidesperview?e.slidesperviewdynamic():t.slidesperview;let i,r=e.clickedindex;if(t.loop){if(e.animating)return;i=parseint(d(e.clickedslide).attr("data-swiper-slide-index"),10),t.centeredslides?re.slides.length-e.loopedslides+a/2?(e.loopfix(),r=s.children(`.${t.slideclass}[data-swiper-slide-index="${i}"]:not(.${t.slideduplicateclass})`).eq(0).index(),c((()=>{e.slideto(r)}))):e.slideto(r):r>e.slides.length-a?(e.loopfix(),r=s.children(`.${t.slideclass}[data-swiper-slide-index="${i}"]:not(.${t.slideduplicateclass})`).eq(0).index(),c((()=>{e.slideto(r)}))):e.slideto(r)}else e.slideto(r)}},loop:{loopcreate:function(){const e=this,t=a(),{params:s,$wrapperel:i}=e,r=i.children().length>0?d(i.children()[0].parentnode):i;r.children(`.${s.slideclass}.${s.slideduplicateclass}`).remove();let n=r.children(`.${s.slideclass}`);if(s.loopfillgroupwithblank){const e=s.slidespergroup-n.length%s.slidespergroup;if(e!==s.slidespergroup){for(let a=0;an.length&&(e.loopedslides=n.length);const l=[],o=[];n.each(((t,s)=>{const a=d(t);s=n.length-e.loopedslides&&l.push(t),a.attr("data-swiper-slide-index",s)}));for(let e=0;e=0;e-=1)r.prepend(d(l[e].clonenode(!0)).addclass(s.slideduplicateclass))},loopfix:function(){const e=this;e.emit("beforeloopfix");const{activeindex:t,slides:s,loopedslides:a,allowslideprev:i,allowslidenext:r,snapgrid:n,rtltranslate:l}=e;let o;e.allowslideprev=!0,e.allowslidenext=!0;const d=-n[t]-e.gettranslate();if(t=s.length-a){o=-s.length+t+a,o+=a;e.slideto(o,0,!1,!0)&&0!==d&&e.settranslate((l?-e.translate:e.translate)-d)}e.allowslideprev=i,e.allowslidenext=r,e.emit("loopfix")},loopdestroy:function(){const{$wrapperel:e,params:t,slides:s}=this;e.children(`.${t.slideclass}.${t.slideduplicateclass},.${t.slideclass}.${t.slideblankclass}`).remove(),s.removeattr("data-swiper-slide-index")}},grabcursor:{setgrabcursor:function(e){const t=this;if(t.support.touch||!t.params.simulatetouch||t.params.watchoverflow&&t.islocked||t.params.cssmode)return;const s="container"===t.params.toucheventstarget?t.el:t.wrapperel;s.style.cursor="move",s.style.cursor=e?"-webkit-grabbing":"-webkit-grab",s.style.cursor=e?"-moz-grabbin":"-moz-grab",s.style.cursor=e?"grabbing":"grab"},unsetgrabcursor:function(){const e=this;e.support.touch||e.params.watchoverflow&&e.islocked||e.params.cssmode||(e["container"===e.params.toucheventstarget?"el":"wrapperel"].style.cursor="")}},events:{attachevents:function(){const e=this,t=a(),{params:s,support:i}=e;e.ontouchstart=s.bind(e),e.ontouchmove=m.bind(e),e.ontouchend=p.bind(e),s.cssmode&&(e.onscroll=o.bind(e)),e.onclick=z.bind(e),i.touch&&!i&&(t.addeventlistener("touchstart",l),i=!0),a(e,"on")},detachevents:function(){a(this,"off")}},breakpoints:{setbreakpoint:function(){const e=this,{activeindex:t,initialized:s,loopedslides:a=0,params:i,$el:r}=e,n=i.breakpoints;if(!n||n&&0===object.keys(n).length)return;const l=e.getbreakpoint(n,e.params.breakpointsbase,e.el);if(!l||e.currentbreakpoint===l)return;const o=(l in n?n[l]:void 0)||e.originalparams,d=d(e,i),p=d(e,o),c=i.enabled;d&&!p?(r.removeclass(`${i.containermodifierclass}grid ${i.containermodifierclass}grid-column`),e.emitcontainerclasses()):!d&&p&&(r.addclass(`${i.containermodifierclass}grid`),(o.grid.fill&&"column"===o.grid.fill||!o.grid.fill&&"column"===i.grid.fill)&&r.addclass(`${i.containermodifierclass}grid-column`),e.emitcontainerclasses());const u=o.direction&&o.direction!==i.direction,h=i.loop&&(o.slidesperview!==i.slidesperview||u);u&&s&&e.changedirection(),f(e.params,o);const m=e.params.enabled;object.assign(e,{allowtouchmove:e.params.allowtouchmove,allowslidenext:e.params.allowslidenext,allowslideprev:e.params.allowslideprev}),c&&!m?e.disable():!c&&m&&e.enable(),e.currentbreakpoint=l,e.emit("_beforebreakpoint",o),h&&s&&(e.loopdestroy(),e.loopcreate(),e.updateslides(),e.slideto(t-a+e.loopedslides,0,!1)),e.emit("breakpoint",o)},getbreakpoint:function(e,t="window",s){if(!e||"container"===t&&!s)return;let a=!1;const i=r(),n="window"===t?i.innerheight:s.clientheight,l=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}}));l.sort(((e,t)=>parseint(e.value,10)-parseint(t.value,10)));for(let e=0;es}else e.islocked=1===e.snapgrid.length;!0===s.allowslidenext&&(e.allowslidenext=!e.islocked),!0===s.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:s,rtl:a,$el:i,device:r,support:n}=e,l=function(e,t){const s=[];return e.foreach((e=>{"object"==typeof e?object.keys(e).foreach((a=>{e[a]&&s.push(t+a)})):"string"==typeof e&&s.push(t+e)})),s}(["initialized",s.direction,{"pointer-events":!n.touch},{"free-mode":e.params.freemode&&s.freemode.enabled},{autoheight:s.autoheight},{rtl:a},{grid:s.grid&&s.grid.rows>1},{"grid-column":s.grid&&s.grid.rows>1&&"column"===s.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":s.cssmode},{centered:s.cssmode&&s.centeredslides}],s.containermodifierclass);t.push(...l),i.addclass([...t].join(" ")),e.emitcontainerclasses()},removeclasses:function(){const{$el:e,classnames:t}=this;e.removeclass(t.join(" ")),this.emitcontainerclasses()}},images:{loadimage:function(e,t,s,a,i,n){const l=r();let o;function p(){n&&n()}d(e).parent("picture")[0]||e.complete&&i?p():t?(o=new l.image,o.onload=p,o.onerror=p,a&&(o.sizes=a),s&&(o.srcset=s),t&&(o.src=t)):p()},preloadimages:function(){const e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesloaded&&(e.imagesloaded+=1),e.imagesloaded===e.imagestoload.length&&(e.params.updateonimagesready&&e.update(),e.emit("imagesready")))}e.imagestoload=e.$el.find("img");for(let s=0;s1){const e=[];return d(s.el).each((t=>{const a=f({},s,{el:t});e.push(new h(a))})),e}const a=this;a.__swiper__=!0,a.support=y(),a.device=e({useragent:s.useragent}),a.browser=t(),a.eventslisteners={},a.eventsanylisteners=[],a.modules=[...a.__modules__],s.modules&&array.isarray(s.modules)&&a.modules.push(...s.modules);const i={};a.modules.foreach((e=>{e({swiper:a,extendparams:n(s,i),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})}));const r=f({},g,i);return a.params=f({},r,x,s),a.originalparams=f({},a.params),a.passedparams=f({},s),a.params&&a.params.on&&object.keys(a.params.on).foreach((e=>{a.on(e,a.params.on[e])})),a.params&&a.params.onany&&a.onany(a.params.onany),a.$=d,object.assign(a,{enabled:a.params.enabled,el:t,classnames:[],slides:d(),slidesgrid:[],snapgrid:[],slidessizesgrid:[],ishorizontal:()=>"horizontal"===a.params.direction,isvertical:()=>"vertical"===a.params.direction,activeindex:0,realindex:0,isbeginning:!0,isend:!1,translate:0,previoustranslate:0,progress:0,velocity:0,animating:!1,allowslidenext:a.params.allowslidenext,allowslideprev:a.params.allowslideprev,touchevents:function(){const e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return a.toucheventstouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},a.toucheventsdesktop={start:t[0],move:t[1],end:t[2]},a.support.touch||!a.params.simulatetouch?a.toucheventstouch:a.toucheventsdesktop}(),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:a.params.focusableelements,lastclicktime:u(),clicktimeout:void 0,velocities:[],allowmomentumbounce:void 0,istouchevent:void 0,startmoving:void 0},allowclick:!0,allowtouchmove:a.params.allowtouchmove,touches:{startx:0,starty:0,currentx:0,currenty:0,diff:0},imagestoload:[],imagesloaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}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 s=this;e=math.min(math.max(e,0),1);const a=s.mintranslate(),i=(s.maxtranslate()-a)*e+a;s.translateto(i,void 0===t?0:t),s.updateactiveindex(),s.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 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.each((s=>{const a=e.getslideclasses(s);t.push({slideel:s,classnames:a}),e.emit("_slideclass",s,a)})),e.emit("_slideclasses",t)}slidesperviewdynamic(e="current",t=!1){const{params:s,slides:a,slidesgrid:i,slidessizesgrid:r,size:n,activeindex:l}=this;let o=1;if(s.centeredslides){let e,t=a[l].swiperslidesize;for(let s=l+1;sn&&(e=!0));for(let s=l-1;s>=0;s-=1)a[s]&&!e&&(t+=a[s].swiperslidesize,o+=1,t>n&&(e=!0))}else if("current"===e)for(let e=l+1;e=0;e-=1){i[l]-i[e]1)&&e.isend&&!e.params.centeredslides?e.slideto(e.slides.length-1,0,!1,!0):e.slideto(e.activeindex,0,!1,!0),i||a()),s.watchoverflow&&t!==e.snapgrid&&e.checkoverflow(),e.emit("update")}changedirection(e,t=!0){const s=this,a=s.params.direction;return e||(e="horizontal"===a?"vertical":"horizontal"),e===a||"horizontal"!==e&&"vertical"!==e||(s.$el.removeclass(`${s.params.containermodifierclass}${a}`).addclass(`${s.params.containermodifierclass}${e}`),s.emitcontainerclasses(),s.params.direction=e,s.slides.each((t=>{"vertical"===e?t.style.width="":t.style.height=""})),s.emit("changedirection"),t&&s.update()),s}mount(e){const t=this;if(t.mounted)return!0;const s=d(e||t.params.el);if(!(e=s[0]))return!1;e.swiper=t;const i=()=>`.${(t.params.wrapperclass||"").trim().split(" ").join(".")}`;let r=(()=>{if(e&&e.shadowroot&&e.shadowroot.queryselector){const t=d(e.shadowroot.queryselector(i()));return t.children=e=>s.children(e),t}return s.children(i())})();if(0===r.length&&t.params.createelements){const e=a().createelement("div");r=d(e),e.classname=t.params.wrapperclass,s.append(e),s.children(`.${t.params.slideclass}`).each((e=>{r.append(e)}))}return object.assign(t,{$el:s,el:e,$wrapperel:r,wrapperel:r[0],mounted:!0,rtl:"rtl"===e.dir.tolowercase()||"rtl"===s.css("direction"),rtltranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.tolowercase()||"rtl"===s.css("direction")),wrongrtl:"-webkit-box"===r.css("display")}),!0}init(e){const t=this;if(t.initialized)return t;return!1===t.mount(e)||(t.emit("beforeinit"),t.params.breakpoints&&t.setbreakpoint(),t.addclasses(),t.params.loop&&t.loopcreate(),t.updatesize(),t.updateslides(),t.params.watchoverflow&&t.checkoverflow(),t.params.grabcursor&&t.enabled&&t.setgrabcursor(),t.params.preloadimages&&t.preloadimages(),t.params.loop?t.slideto(t.params.initialslide+t.loopedslides,0,t.params.runcallbacksoninit,!1,!0):t.slideto(t.params.initialslide,0,t.params.runcallbacksoninit,!1,!0),t.attachevents(),t.initialized=!0,t.emit("init"),t.emit("afterinit")),t}destroy(e=!0,t=!0){const s=this,{params:a,$el:i,$wrapperel:r,slides:n}=s;return void 0===s.params||s.destroyed||(s.emit("beforedestroy"),s.initialized=!1,s.detachevents(),a.loop&&s.loopdestroy(),t&&(s.removeclasses(),i.removeattr("style"),r.removeattr("style"),n&&n.length&&n.removeclass([a.slidevisibleclass,a.slideactiveclass,a.slidenextclass,a.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-slide-index")),s.emit("destroy"),object.keys(s.eventslisteners).foreach((e=>{s.off(e)})),!1!==e&&(s.$el[0].swiper=null,function(e){const t=e;object.keys(t).foreach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(s)),s.destroyed=!0),null}static extenddefaults(e){f(x,e)}static get extendeddefaults(){return x}static get defaults(){return g}static installmodule(e){h.prototype.__modules__||(h.prototype.__modules__=[]);const t=h.prototype.__modules__;"function"==typeof e&&t.indexof(e)<0&&t.push(e)}static use(e){return array.isarray(e)?(e.foreach((e=>h.installmodule(e))),h):(h.installmodule(e),h)}}function y(e,t,s,i){const r=a();return e.params.createelements&&object.keys(i).foreach((a=>{if(!s[a]&&!0===s.auto){let n=e.$el.children(`.${i[a]}`)[0];n||(n=r.createelement("div"),n.classname=i[a],e.$el.append(n)),s[a]=n,t[a]=n}})),s}function w(e=""){return`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function r(e){const t=this,{$wrapperel:s,params:a}=t;if(a.loop&&t.loopdestroy(),"object"==typeof e&&"length"in e)for(let t=0;t=l)return void s.appendslide(t);let o=n>e?n+1:n;const d=[];for(let t=l-1;t>=e;t-=1){const e=s.slides.eq(t);e.remove(),d.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;ee?n+t.length:n}else a.append(t);for(let e=0;e{if(s.params.effect!==t)return;s.classnames.push(`${s.params.containermodifierclass}${t}`),l&&l()&&s.classnames.push(`${s.params.containermodifierclass}3d`);const e=n?n():{};object.assign(s.params,e),object.assign(s.originalparams,e)})),a("settranslate",(()=>{s.params.effect===t&&i()})),a("settransition",((e,a)=>{s.params.effect===t&&r(a)}))}function u(e,t){return e.transformel?t.find(e.transformel).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):t}function k({swiper:e,duration:t,transformel:s,allslides:a}){const{slides:i,activeindex:r,$wrapperel:n}=e;if(e.params.virtualtranslate&&0!==t){let t,l=!1;t=a?s?i.find(s):i:s?i.eq(r).find(s):i.eq(r),t.transitionend((()=>{if(l)return;if(!e||e.destroyed)return;l=!0,e.animating=!1;const t=["webkittransitionend","transitionend"];for(let e=0;e`),i.append(r)),r}object.keys(b).foreach((e=>{object.keys(b[e]).foreach((t=>{h.prototype[t]=b[e][t]}))})),h.use([function({swiper:e,on:t,emit:s}){const a=r();let i=null;const n=()=>{e&&!e.destroyed&&e.initialized&&(s("beforeresize"),s("resize"))},l=()=>{e&&!e.destroyed&&e.initialized&&s("orientationchange")};t("init",(()=>{e.params.resizeobserver&&void 0!==a.resizeobserver?e&&!e.destroyed&&e.initialized&&(i=new resizeobserver((t=>{const{width:s,height:a}=e;let i=s,r=a;t.foreach((({contentboxsize:t,contentrect:s,target:a})=>{a&&a!==e.el||(i=s?s.width:(t[0]||t).inlinesize,r=s?s.height:(t[0]||t).blocksize)})),i===s&&r===a||n()})),i.observe(e.el)):(a.addeventlistener("resize",n),a.addeventlistener("orientationchange",l))})),t("destroy",(()=>{i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null),a.removeeventlistener("resize",n),a.removeeventlistener("orientationchange",l)}))},function({swiper:e,extendparams:t,on:s,emit:a}){const i=[],n=r(),l=(e,t={})=>{const s=new(n.mutationobserver||n.webkitmutationobserver)((e=>{if(1===e.length)return void a("observerupdate",e[0]);const t=function(){a("observerupdate",e[0])};n.requestanimationframe?n.requestanimationframe(t):n.settimeout(t,0)}));s.observe(e,{attributes:void 0===t.attributes||t.attributes,childlist:void 0===t.childlist||t.childlist,characterdata:void 0===t.characterdata||t.characterdata}),i.push(s)};t({observer:!1,observeparents:!1,observeslidechildren:!1}),s("init",(()=>{if(e.params.observer){if(e.params.observeparents){const t=e.$el.parents();for(let e=0;e{i.foreach((e=>{e.disconnect()})),i.splice(0,i.length)}))}]);const j=[function({swiper:e,extendparams:t,on:s}){let a;function i(t,s){const a=e.params.virtual;if(a.cache&&e.virtual.cache[s])return e.virtual.cache[s];const i=a.renderslide?d(a.renderslide.call(e,t,s)):d(`
${t}
`);return i.attr("data-swiper-slide-index")||i.attr("data-swiper-slide-index",s),a.cache&&(e.virtual.cache[s]=i),i}function r(t){const{slidesperview:s,slidespergroup:a,centeredslides:r}=e.params,{addslidesbefore:n,addslidesafter:l}=e.params.virtual,{from:o,to:d,slides:p,slidesgrid:c,offset:u}=e.virtual;e.params.cssmode||e.updateactiveindex();const h=e.activeindex||0;let m,f,g;m=e.rtltranslate?"right":e.ishorizontal()?"left":"top",r?(f=math.floor(s/2)+a+l,g=math.floor(s/2)+a+n):(f=s+(a-1)+l,g=a+n);const v=math.max((h||0)-g,0),w=math.min((h||0)+f,p.length-1),b=(e.slidesgrid[v]||0)-(e.slidesgrid[0]||0);function x(){e.updateslides(),e.updateprogress(),e.updateslidesclasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load()}if(object.assign(e.virtual,{from:v,to:w,offset:b,slidesgrid:e.slidesgrid}),o===v&&d===w&&!t)return e.slidesgrid!==c&&b!==u&&e.slides.css(m,`${b}px`),void e.updateprogress();if(e.params.virtual.renderexternal)return e.params.virtual.renderexternal.call(e,{offset:b,from:v,to:w,slides:function(){const e=[];for(let t=v;t<=w;t+=1)e.push(p[t]);return e}()}),void(e.params.virtual.renderexternalupdate&&x());const y=[],e=[];if(t)e.$wrapperel.find(`.${e.params.slideclass}`).remove();else for(let t=o;t<=d;t+=1)(tw)&&e.$wrapperel.find(`.${e.params.slideclass}[data-swiper-slide-index="${t}"]`).remove();for(let e=0;e=v&&e<=w&&(void 0===d||t?e.push(e):(e>d&&e.push(e),e{e.$wrapperel.append(i(p[t],t))})),y.sort(((e,t)=>t-e)).foreach((t=>{e.$wrapperel.prepend(i(p[t],t))})),e.$wrapperel.children(".swiper-slide").css(m,`${b}px`),x()}t({virtual:{enabled:!1,slides:[],cache:!0,renderslide:null,renderexternal:null,renderexternalupdate:!0,addslidesbefore:0,addslidesafter:0}}),e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesgrid:[]},s("beforeinit",(()=>{e.params.virtual.enabled&&(e.virtual.slides=e.params.virtual.slides,e.classnames.push(`${e.params.containermodifierclass}virtual`),e.params.watchslidesprogress=!0,e.originalparams.watchslidesprogress=!0,e.params.initialslide||r())})),s("settranslate",(()=>{e.params.virtual.enabled&&(e.params.cssmode&&!e._immediatevirtual?(cleartimeout(a),a=settimeout((()=>{r()}),100)):r())})),s("init update resize",(()=>{e.params.virtual.enabled&&e.params.cssmode&&g(e.wrapperel,"--swiper-virtual-size",`${e.virtualsize}px`)})),object.assign(e.virtual,{appendslide:function(t){if("object"==typeof t&&"length"in t)for(let s=0;s{const a=t[e],r=a.attr("data-swiper-slide-index");r&&a.attr("data-swiper-slide-index",parseint(r,10)+i),s[parseint(e,10)+i]=a})),e.virtual.cache=s}r(!0),e.slideto(a,0)},removeslide:function(t){if(null==t)return;let s=e.activeindex;if(array.isarray(t))for(let a=t.length-1;a>=0;a-=1)e.virtual.slides.splice(t[a],1),e.params.virtual.cache&&delete e.virtual.cache[t[a]],t[a]0&&0===e.$el.parents(`.${e.params.slideactiveclass}`).length)return;const a=e.$el,i=a[0].clientwidth,r=a[0].clientheight,n=l.innerwidth,o=l.innerheight,d=e.$el.offset();s&&(d.left-=e.$el[0].scrollleft);const p=[[d.left,d.top],[d.left+i,d.top],[d.left,d.top+r],[d.left+i,d.top+r]];for(let e=0;e=0&&s[0]<=n&&s[1]>=0&&s[1]<=o){if(0===s[0]&&0===s[1])continue;t=!0}}if(!t)return}e.ishorizontal()?((d||p||c||u)&&(a.preventdefault?a.preventdefault():a.returnvalue=!1),((p||u)&&!s||(d||c)&&s)&&e.slidenext(),((d||c)&&!s||(p||u)&&s)&&e.slideprev()):((d||p||h||m)&&(a.preventdefault?a.preventdefault():a.returnvalue=!1),(p||m)&&e.slidenext(),(d||h)&&e.slideprev()),i("keypress",r)}}function p(){e.keyboard.enabled||(d(n).on("keydown",o),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(d(n).off("keydown",o),e.keyboard.enabled=!1)}e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyinviewport:!0,pageupdown:!0}}),s("init",(()=>{e.params.keyboard.enabled&&p()})),s("destroy",(()=>{e.keyboard.enabled&&c()})),object.assign(e.keyboard,{enable:p,disable:c})},function({swiper:e,extendparams:t,on:s,emit:a}){const i=r();let n;t({mousewheel:{enabled:!1,releaseonedges:!1,invert:!1,forcetoaxis:!1,sensitivity:1,eventstarget:"container",thresholddelta:null,thresholdtime:null}}),e.mousewheel={enabled:!1};let l,o=u();const p=[];function h(){e.enabled&&(e.mouseentered=!0)}function m(){e.enabled&&(e.mouseentered=!1)}function f(t){return!(e.params.mousewheel.thresholddelta&&t.delta=6&&u()-o<60||(t.direction<0?e.isend&&!e.params.loop||e.animating||(e.slidenext(),a("scroll",t.raw)):e.isbeginning&&!e.params.loop||e.animating||(e.slideprev(),a("scroll",t.raw)),o=(new i.date).gettime(),!1)))}function g(t){let s=t,i=!0;if(!e.enabled)return;const r=e.params.mousewheel;e.params.cssmode&&s.preventdefault();let o=e.$el;if("container"!==e.params.mousewheel.eventstarget&&(o=d(e.params.mousewheel.eventstarget)),!e.mouseentered&&!o[0].contains(s.target)&&!r.releaseonedges)return!0;s.originalevent&&(s=s.originalevent);let h=0;const m=e.rtltranslate?-1:1,g=function(e){let t=0,s=0,a=0,i=0;return"detail"in e&&(s=e.detail),"wheeldelta"in e&&(s=-e.wheeldelta/120),"wheeldeltay"in e&&(s=-e.wheeldeltay/120),"wheeldeltax"in e&&(t=-e.wheeldeltax/120),"axis"in e&&e.axis===e.horizontal_axis&&(t=s,s=0),a=10*t,i=10*s,"deltay"in e&&(i=e.deltay),"deltax"in e&&(a=e.deltax),e.shiftkey&&!a&&(a=i,i=0),(a||i)&&e.deltamode&&(1===e.deltamode?(a*=40,i*=40):(a*=800,i*=800)),a&&!t&&(t=a<1?-1:1),i&&!s&&(s=i<1?-1:1),{spinx:t,spiny:s,pixelx:a,pixely:i}}(s);if(r.forcetoaxis)if(e.ishorizontal()){if(!(math.abs(g.pixelx)>math.abs(g.pixely)))return!0;h=-g.pixelx*m}else{if(!(math.abs(g.pixely)>math.abs(g.pixelx)))return!0;h=-g.pixely}else h=math.abs(g.pixelx)>math.abs(g.pixely)?-g.pixelx*m:-g.pixely;if(0===h)return!0;r.invert&&(h=-h);let v=e.gettranslate()+h*r.sensitivity;if(v>=e.mintranslate()&&(v=e.mintranslate()),v<=e.maxtranslate()&&(v=e.maxtranslate()),i=!!e.params.loop||!(v===e.mintranslate()||v===e.maxtranslate()),i&&e.params.nested&&s.stoppropagation(),e.params.freemode&&e.params.freemode.enabled){const t={time:u(),delta:math.abs(h),direction:math.sign(h)},i=l&&t.time=e.mintranslate()&&(o=e.mintranslate()),o<=e.maxtranslate()&&(o=e.maxtranslate()),e.settransition(0),e.settranslate(o),e.updateprogress(),e.updateactiveindex(),e.updateslidesclasses(),(!d&&e.isbeginning||!u&&e.isend)&&e.updateslidesclasses(),e.params.freemode.sticky){cleartimeout(n),n=void 0,p.length>=15&&p.shift();const s=p.length?p[p.length-1]:void 0,a=p[0];if(p.push(t),s&&(t.delta>s.delta||t.direction!==s.direction))p.splice(0);else if(p.length>=15&&t.time-a.time<500&&a.delta-t.delta>=1&&t.delta<=6){const s=h>0?.8:.2;l=t,p.splice(0),n=c((()=>{e.slidetoclosest(e.params.speed,!0,void 0,s)}),0)}n||(n=c((()=>{l=t,p.splice(0),e.slidetoclosest(e.params.speed,!0,void 0,.5)}),500))}if(i||a("scroll",s),e.params.autoplay&&e.params.autoplaydisableoninteraction&&e.autoplay.stop(),o===e.mintranslate()||o===e.maxtranslate())return!0}}else{const s={time:u(),delta:math.abs(h),direction:math.sign(h),raw:t};p.length>=2&&p.shift();const a=p.length?p[p.length-1]:void 0;if(p.push(s),a?(s.direction!==a.direction||s.delta>a.delta||s.time>a.time+150)&&f(s):f(s),function(t){const s=e.params.mousewheel;if(t.direction<0){if(e.isend&&!e.params.loop&&s.releaseonedges)return!0}else if(e.isbeginning&&!e.params.loop&&s.releaseonedges)return!0;return!1}(s))return!0}return s.preventdefault?s.preventdefault():s.returnvalue=!1,!1}function v(t){let s=e.$el;"container"!==e.params.mousewheel.eventstarget&&(s=d(e.params.mousewheel.eventstarget)),s[t]("mouseenter",h),s[t]("mouseleave",m),s[t]("wheel",g)}function w(){return e.params.cssmode?(e.wrapperel.removeeventlistener("wheel",g),!0):!e.mousewheel.enabled&&(v("on"),e.mousewheel.enabled=!0,!0)}function b(){return e.params.cssmode?(e.wrapperel.addeventlistener(event,g),!0):!!e.mousewheel.enabled&&(v("off"),e.mousewheel.enabled=!1,!0)}s("init",(()=>{!e.params.mousewheel.enabled&&e.params.cssmode&&b(),e.params.mousewheel.enabled&&w()})),s("destroy",(()=>{e.params.cssmode&&w(),e.mousewheel.enabled&&b()})),object.assign(e.mousewheel,{enable:w,disable:b})},function({swiper:e,extendparams:t,on:s,emit:a}){function i(t){let s;return t&&(s=d(t),e.params.uniquenavelements&&"string"==typeof t&&s.length>1&&1===e.$el.find(t).length&&(s=e.$el.find(t))),s}function r(t,s){const a=e.params.navigation;t&&t.length>0&&(t[s?"addclass":"removeclass"](a.disabledclass),t[0]&&"button"===t[0].tagname&&(t[0].disabled=s),e.params.watchoverflow&&e.enabled&&t[e.islocked?"addclass":"removeclass"](a.lockclass))}function n(){if(e.params.loop)return;const{$nextel:t,$prevel:s}=e.navigation;r(s,e.isbeginning&&!e.params.rewind),r(t,e.isend&&!e.params.rewind)}function l(t){t.preventdefault(),(!e.isbeginning||e.params.loop||e.params.rewind)&&e.slideprev()}function o(t){t.preventdefault(),(!e.isend||e.params.loop||e.params.rewind)&&e.slidenext()}function p(){const t=e.params.navigation;if(e.params.navigation=y(e,e.originalparams.navigation,e.params.navigation,{nextel:"swiper-button-next",prevel:"swiper-button-prev"}),!t.nextel&&!t.prevel)return;const s=i(t.nextel),a=i(t.prevel);s&&s.length>0&&s.on("click",o),a&&a.length>0&&a.on("click",l),object.assign(e.navigation,{$nextel:s,nextel:s&&s[0],$prevel:a,prevel:a&&a[0]}),e.enabled||(s&&s.addclass(t.lockclass),a&&a.addclass(t.lockclass))}function c(){const{$nextel:t,$prevel:s}=e.navigation;t&&t.length&&(t.off("click",o),t.removeclass(e.params.navigation.disabledclass)),s&&s.length&&(s.off("click",l),s.removeclass(e.params.navigation.disabledclass))}t({navigation:{nextel:null,prevel:null,hideonclick:!1,disabledclass:"swiper-button-disabled",hiddenclass:"swiper-button-hidden",lockclass:"swiper-button-lock"}}),e.navigation={nextel:null,$nextel:null,prevel:null,$prevel:null},s("init",(()=>{p(),n()})),s("toedge fromedge lock unlock",(()=>{n()})),s("destroy",(()=>{c()})),s("enable disable",(()=>{const{$nextel:t,$prevel:s}=e.navigation;t&&t[e.enabled?"removeclass":"addclass"](e.params.navigation.lockclass),s&&s[e.enabled?"removeclass":"addclass"](e.params.navigation.lockclass)})),s("click",((t,s)=>{const{$nextel:i,$prevel:r}=e.navigation,n=s.target;if(e.params.navigation.hideonclick&&!d(n).is(r)&&!d(n).is(i)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===n||e.pagination.el.contains(n)))return;let t;i?t=i.hasclass(e.params.navigation.hiddenclass):r&&(t=r.hasclass(e.params.navigation.hiddenclass)),a(!0===t?"navigationshow":"navigationhide"),i&&i.toggleclass(e.params.navigation.hiddenclass),r&&r.toggleclass(e.params.navigation.hiddenclass)}})),object.assign(e.navigation,{update:n,init:p,destroy:c})},function({swiper:e,extendparams:t,on:s,emit:a}){const i="swiper-pagination";let r;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:`${i}-bullet`,bulletactiveclass:`${i}-bullet-active`,modifierclass:`${i}-`,currentclass:`${i}-current`,totalclass:`${i}-total`,hiddenclass:`${i}-hidden`,progressbarfillclass:`${i}-progressbar-fill`,progressbaroppositeclass:`${i}-progressbar-opposite`,clickableclass:`${i}-clickable`,lockclass:`${i}-lock`,horizontalclass:`${i}-horizontal`,verticalclass:`${i}-vertical`}}),e.pagination={el:null,$el:null,bullets:[]};let n=0;function l(){return!e.params.pagination.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length}function o(t,s){const{bulletactiveclass:a}=e.params.pagination;t[s]().addclass(`${a}-${s}`)[s]().addclass(`${a}-${s}-${s}`)}function p(){const t=e.rtl,s=e.params.pagination;if(l())return;const i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,p=e.pagination.$el;let c;const u=e.params.loop?math.ceil((i-2*e.loopedslides)/e.params.slidespergroup):e.snapgrid.length;if(e.params.loop?(c=math.ceil((e.activeindex-e.loopedslides)/e.params.slidespergroup),c>i-1-2*e.loopedslides&&(c-=i-2*e.loopedslides),c>u-1&&(c-=u),c<0&&"bullets"!==e.params.paginationtype&&(c=u+c)):c=void 0!==e.snapindex?e.snapindex:e.activeindex||0,"bullets"===s.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const a=e.pagination.bullets;let i,l,u;if(s.dynamicbullets&&(r=a.eq(0)[e.ishorizontal()?"outerwidth":"outerheight"](!0),p.css(e.ishorizontal()?"width":"height",r*(s.dynamicmainbullets+4)+"px"),s.dynamicmainbullets>1&&void 0!==e.previousindex&&(n+=c-(e.previousindex-e.loopedslides||0),n>s.dynamicmainbullets-1?n=s.dynamicmainbullets-1:n<0&&(n=0)),i=math.max(c-n,0),l=i+(math.min(a.length,s.dynamicmainbullets)-1),u=(l+i)/2),a.removeclass(["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${s.bulletactiveclass}${e}`)).join(" ")),p.length>1)a.each((e=>{const t=d(e),a=t.index();a===c&&t.addclass(s.bulletactiveclass),s.dynamicbullets&&(a>=i&&a<=l&&t.addclass(`${s.bulletactiveclass}-main`),a===i&&o(t,"prev"),a===l&&o(t,"next"))}));else{const t=a.eq(c),r=t.index();if(t.addclass(s.bulletactiveclass),s.dynamicbullets){const t=a.eq(i),n=a.eq(l);for(let e=i;e<=l;e+=1)a.eq(e).addclass(`${s.bulletactiveclass}-main`);if(e.params.loop)if(r>=a.length){for(let e=s.dynamicmainbullets;e>=0;e-=1)a.eq(a.length-e).addclass(`${s.bulletactiveclass}-main`);a.eq(a.length-s.dynamicmainbullets-1).addclass(`${s.bulletactiveclass}-prev`)}else o(t,"prev"),o(n,"next");else o(t,"prev"),o(n,"next")}}if(s.dynamicbullets){const i=math.min(a.length,s.dynamicmainbullets+4),n=(r*i-r)/2-u*r,l=t?"right":"left";a.css(e.ishorizontal()?l:"top",`${n}px`)}}if("fraction"===s.type&&(p.find(w(s.currentclass)).text(s.formatfractioncurrent(c+1)),p.find(w(s.totalclass)).text(s.formatfractiontotal(u))),"progressbar"===s.type){let t;t=s.progressbaropposite?e.ishorizontal()?"vertical":"horizontal":e.ishorizontal()?"horizontal":"vertical";const a=(c+1)/u;let i=1,r=1;"horizontal"===t?i=a:r=a,p.find(w(s.progressbarfillclass)).transform(`translate3d(0,0,0) scalex(${i}) scaley(${r})`).transition(e.params.speed)}"custom"===s.type&&s.rendercustom?(p.html(s.rendercustom(e,c+1,u)),a("paginationrender",p[0])):a("paginationupdate",p[0]),e.params.watchoverflow&&e.enabled&&p[e.islocked?"addclass":"removeclass"](s.lockclass)}function c(){const t=e.params.pagination;if(l())return;const s=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,i=e.pagination.$el;let r="";if("bullets"===t.type){let a=e.params.loop?math.ceil((s-2*e.loopedslides)/e.params.slidespergroup):e.snapgrid.length;e.params.freemode&&e.params.freemode.enabled&&!e.params.loop&&a>s&&(a=s);for(let s=0;s`;i.html(r),e.pagination.bullets=i.find(w(t.bulletclass))}"fraction"===t.type&&(r=t.renderfraction?t.renderfraction.call(e,t.currentclass,t.totalclass):` / `,i.html(r)),"progressbar"===t.type&&(r=t.renderprogressbar?t.renderprogressbar.call(e,t.progressbarfillclass):``,i.html(r)),"custom"!==t.type&&a("paginationrender",e.pagination.$el[0])}function u(){e.params.pagination=y(e,e.originalparams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let s=d(t.el);0!==s.length&&(e.params.uniquenavelements&&"string"==typeof t.el&&s.length>1&&(s=e.$el.find(t.el),s.length>1&&(s=s.filter((t=>d(t).parents(".swiper")[0]===e.el)))),"bullets"===t.type&&t.clickable&&s.addclass(t.clickableclass),s.addclass(t.modifierclass+t.type),s.addclass(t.modifierclass+e.params.direction),"bullets"===t.type&&t.dynamicbullets&&(s.addclass(`${t.modifierclass}${t.type}-dynamic`),n=0,t.dynamicmainbullets<1&&(t.dynamicmainbullets=1)),"progressbar"===t.type&&t.progressbaropposite&&s.addclass(t.progressbaroppositeclass),t.clickable&&s.on("click",w(t.bulletclass),(function(t){t.preventdefault();let s=d(this).index()*e.params.slidespergroup;e.params.loop&&(s+=e.loopedslides),e.slideto(s)})),object.assign(e.pagination,{$el:s,el:s[0]}),e.enabled||s.addclass(t.lockclass))}function h(){const t=e.params.pagination;if(l())return;const s=e.pagination.$el;s.removeclass(t.hiddenclass),s.removeclass(t.modifierclass+t.type),s.removeclass(t.modifierclass+e.params.direction),e.pagination.bullets&&e.pagination.bullets.removeclass&&e.pagination.bullets.removeclass(t.bulletactiveclass),t.clickable&&s.off("click",w(t.bulletclass))}s("init",(()=>{u(),c(),p()})),s("activeindexchange",(()=>{(e.params.loop||void 0===e.snapindex)&&p()})),s("snapindexchange",(()=>{e.params.loop||p()})),s("slideslengthchange",(()=>{e.params.loop&&(c(),p())})),s("snapgridlengthchange",(()=>{e.params.loop||(c(),p())})),s("destroy",(()=>{h()})),s("enable disable",(()=>{const{$el:t}=e.pagination;t&&t[e.enabled?"removeclass":"addclass"](e.params.pagination.lockclass)})),s("lock unlock",(()=>{p()})),s("click",((t,s)=>{const i=s.target,{$el:r}=e.pagination;if(e.params.pagination.el&&e.params.pagination.hideonclick&&r.length>0&&!d(i).hasclass(e.params.pagination.bulletclass)){if(e.navigation&&(e.navigation.nextel&&i===e.navigation.nextel||e.navigation.prevel&&i===e.navigation.prevel))return;const t=r.hasclass(e.params.pagination.hiddenclass);a(!0===t?"paginationshow":"paginationhide"),r.toggleclass(e.params.pagination.hiddenclass)}})),object.assign(e.pagination,{render:c,update:p,init:u,destroy:h})},function({swiper:e,extendparams:t,on:s,emit:i}){const r=a();let n,l,o,p,u=!1,h=null,m=null;function f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t,rtltranslate:s,progress:a}=e,{$dragel:i,$el:r}=t,n=e.params.scrollbar;let d=l,p=(o-l)*a;s?(p=-p,p>0?(d=l-p,p=0):-p+l>o&&(d=o+p)):p<0?(d=l+p,p=0):p+l>o&&(d=o-p),e.ishorizontal()?(i.transform(`translate3d(${p}px, 0, 0)`),i[0].style.width=`${d}px`):(i.transform(`translate3d(0px, ${p}px, 0)`),i[0].style.height=`${d}px`),n.hide&&(cleartimeout(h),r[0].style.opacity=1,h=settimeout((()=>{r[0].style.opacity=0,r.transition(400)}),1e3))}function g(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t}=e,{$dragel:s,$el:a}=t;s[0].style.width="",s[0].style.height="",o=e.ishorizontal()?a[0].offsetwidth:a[0].offsetheight,p=e.size/(e.virtualsize+e.params.slidesoffsetbefore-(e.params.centeredslides?e.snapgrid[0]:0)),l="auto"===e.params.scrollbar.dragsize?o*p:parseint(e.params.scrollbar.dragsize,10),e.ishorizontal()?s[0].style.width=`${l}px`:s[0].style.height=`${l}px`,a[0].style.display=p>=1?"none":"",e.params.scrollbar.hide&&(a[0].style.opacity=0),e.params.watchoverflow&&e.enabled&&t.$el[e.islocked?"addclass":"removeclass"](e.params.scrollbar.lockclass)}function v(t){return e.ishorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targettouches[0].clientx:t.clientx:"touchstart"===t.type||"touchmove"===t.type?t.targettouches[0].clienty:t.clienty}function w(t){const{scrollbar:s,rtltranslate:a}=e,{$el:i}=s;let r;r=(v(t)-i.offset()[e.ishorizontal()?"left":"top"]-(null!==n?n:l/2))/(o-l),r=math.max(math.min(r,1),0),a&&(r=1-r);const d=e.mintranslate()+(e.maxtranslate()-e.mintranslate())*r;e.updateprogress(d),e.settranslate(d),e.updateactiveindex(),e.updateslidesclasses()}function b(t){const s=e.params.scrollbar,{scrollbar:a,$wrapperel:r}=e,{$el:l,$dragel:o}=a;u=!0,n=t.target===o[0]||t.target===o?v(t)-t.target.getboundingclientrect()[e.ishorizontal()?"left":"top"]:null,t.preventdefault(),t.stoppropagation(),r.transition(100),o.transition(100),w(t),cleartimeout(m),l.transition(0),s.hide&&l.css("opacity",1),e.params.cssmode&&e.$wrapperel.css("scroll-snap-type","none"),i("scrollbardragstart",t)}function x(t){const{scrollbar:s,$wrapperel:a}=e,{$el:r,$dragel:n}=s;u&&(t.preventdefault?t.preventdefault():t.returnvalue=!1,w(t),a.transition(0),r.transition(0),n.transition(0),i("scrollbardragmove",t))}function y(t){const s=e.params.scrollbar,{scrollbar:a,$wrapperel:r}=e,{$el:n}=a;u&&(u=!1,e.params.cssmode&&(e.$wrapperel.css("scroll-snap-type",""),r.transition("")),s.hide&&(cleartimeout(m),m=c((()=>{n.css("opacity",0),n.transition(400)}),1e3)),i("scrollbardragend",t),s.snaponrelease&&e.slidetoclosest())}function e(t){const{scrollbar:s,toucheventstouch:a,toucheventsdesktop:i,params:n,support:l}=e,o=s.$el[0],d=!(!l.passivelistener||!n.passivelisteners)&&{passive:!1,capture:!1},p=!(!l.passivelistener||!n.passivelisteners)&&{passive:!0,capture:!1};if(!o)return;const c="on"===t?"addeventlistener":"removeeventlistener";l.touch?(o[c](a.start,b,d),o[c](a.move,x,d),o[c](a.end,y,p)):(o[c](i.start,b,d),r[c](i.move,x,d),r[c](i.end,y,p))}function t(){const{scrollbar:t,$el:s}=e;e.params.scrollbar=y(e,e.originalparams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const a=e.params.scrollbar;if(!a.el)return;let i=d(a.el);e.params.uniquenavelements&&"string"==typeof a.el&&i.length>1&&1===s.find(a.el).length&&(i=s.find(a.el));let r=i.find(`.${e.params.scrollbar.dragclass}`);0===r.length&&(r=d(`
`),i.append(r)),object.assign(t,{$el:i,el:i[0],$dragel:r,dragel:r[0]}),a.draggable&&e.params.scrollbar.el&&e("on"),i&&i[e.enabled?"removeclass":"addclass"](e.params.scrollbar.lockclass)}function c(){e.params.scrollbar.el&&e("off")}t({scrollbar:{el:null,dragsize:"auto",hide:!1,draggable:!1,snaponrelease:!0,lockclass:"swiper-scrollbar-lock",dragclass:"swiper-scrollbar-drag"}}),e.scrollbar={el:null,dragel:null,$el:null,$dragel:null},s("init",(()=>{t(),g(),f()})),s("update resize observerupdate lock unlock",(()=>{g()})),s("settranslate",(()=>{f()})),s("settransition",((t,s)=>{!function(t){e.params.scrollbar.el&&e.scrollbar.el&&e.scrollbar.$dragel.transition(t)}(s)})),s("enable disable",(()=>{const{$el:t}=e.scrollbar;t&&t[e.enabled?"removeclass":"addclass"](e.params.scrollbar.lockclass)})),s("destroy",(()=>{c()})),object.assign(e.scrollbar,{updatesize:g,settranslate:f,init:t,destroy:c})},function({swiper:e,extendparams:t,on:s}){t({parallax:{enabled:!1}});const a=(t,s)=>{const{rtl:a}=e,i=d(t),r=a?-1:1,n=i.attr("data-swiper-parallax")||"0";let l=i.attr("data-swiper-parallax-x"),o=i.attr("data-swiper-parallax-y");const p=i.attr("data-swiper-parallax-scale"),c=i.attr("data-swiper-parallax-opacity");if(l||o?(l=l||"0",o=o||"0"):e.ishorizontal()?(l=n,o="0"):(o=n,l="0"),l=l.indexof("%")>=0?parseint(l,10)*s*r+"%":l*s*r+"px",o=o.indexof("%")>=0?parseint(o,10)*s+"%":o*s+"px",null!=c){const e=c-(c-1)*(1-math.abs(s));i[0].style.opacity=e}if(null==p)i.transform(`translate3d(${l}, ${o}, 0px)`);else{const e=p-(p-1)*(1-math.abs(s));i.transform(`translate3d(${l}, ${o}, 0px) scale(${e})`)}},i=()=>{const{$el:t,slides:s,progress:i,snapgrid:r}=e;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e=>{a(e,i)})),s.each(((t,s)=>{let n=t.progress;e.params.slidespergroup>1&&"auto"!==e.params.slidesperview&&(n+=math.ceil(s/2)-i*(r.length-1)),n=math.min(math.max(n,-1),1),d(t).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e=>{a(e,n)}))}))};s("beforeinit",(()=>{e.params.parallax.enabled&&(e.params.watchslidesprogress=!0,e.originalparams.watchslidesprogress=!0)})),s("init",(()=>{e.params.parallax.enabled&&i()})),s("settranslate",(()=>{e.params.parallax.enabled&&i()})),s("settransition",((t,s)=>{e.params.parallax.enabled&&((t=e.params.speed)=>{const{$el:s}=e;s.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e=>{const s=d(e);let a=parseint(s.attr("data-swiper-parallax-duration"),10)||t;0===t&&(a=0),s.transition(a)}))})(s)}))},function({swiper:e,extendparams:t,on:s,emit:a}){const i=r();t({zoom:{enabled:!1,maxratio:3,minratio:1,toggle:!0,containerclass:"swiper-zoom-container",zoomedslideclass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let n,l,o,p=1,c=!1;const u={$slideel:void 0,slidewidth:void 0,slideheight:void 0,$imageel:void 0,$imagewrapel:void 0,maxratio:3},m={istouched:void 0,ismoved:void 0,currentx:void 0,currenty:void 0,minx:void 0,miny:void 0,maxx:void 0,maxy:void 0,width:void 0,height:void 0,startx:void 0,starty:void 0,touchesstart:{},touchescurrent:{}},f={x:void 0,y:void 0,prevpositionx:void 0,prevpositiony:void 0,prevtime:void 0};let g=1;function v(e){if(e.targettouches.length<2)return 1;const t=e.targettouches[0].pagex,s=e.targettouches[0].pagey,a=e.targettouches[1].pagex,i=e.targettouches[1].pagey;return math.sqrt((a-t)**2+(i-s)**2)}function w(t){const s=e.support,a=e.params.zoom;if(l=!1,o=!1,!s.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targettouches.length<2)return;l=!0,u.scalestart=v(t)}u.$slideel&&u.$slideel.length||(u.$slideel=d(t.target).closest(`.${e.params.slideclass}`),0===u.$slideel.length&&(u.$slideel=e.slides.eq(e.activeindex)),u.$imageel=u.$slideel.find(`.${a.containerclass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),u.$imagewrapel=u.$imageel.parent(`.${a.containerclass}`),u.maxratio=u.$imagewrapel.attr("data-swiper-zoom")||a.maxratio,0!==u.$imagewrapel.length)?(u.$imageel&&u.$imageel.transition(0),c=!0):u.$imageel=void 0}function b(t){const s=e.support,a=e.params.zoom,i=e.zoom;if(!s.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targettouches.length<2)return;o=!0,u.scalemove=v(t)}u.$imageel&&0!==u.$imageel.length?(s.gestures?i.scale=t.scale*p:i.scale=u.scalemove/u.scalestart*p,i.scale>u.maxratio&&(i.scale=u.maxratio-1+(i.scale-u.maxratio+1)**.5),i.scalem.touchesstart.x))return void(m.istouched=!1);if(!e.ishorizontal()&&(math.floor(m.miny)===math.floor(m.starty)&&m.touchescurrent.ym.touchesstart.y))return void(m.istouched=!1)}t.cancelable&&t.preventdefault(),t.stoppropagation(),m.ismoved=!0,m.currentx=m.touchescurrent.x-m.touchesstart.x+m.startx,m.currenty=m.touchescurrent.y-m.touchesstart.y+m.starty,m.currentxm.maxx&&(m.currentx=m.maxx-1+(m.currentx-m.maxx+1)**.8),m.currentym.maxy&&(m.currenty=m.maxy-1+(m.currenty-m.maxy+1)**.8),f.prevpositionx||(f.prevpositionx=m.touchescurrent.x),f.prevpositiony||(f.prevpositiony=m.touchescurrent.y),f.prevtime||(f.prevtime=date.now()),f.x=(m.touchescurrent.x-f.prevpositionx)/(date.now()-f.prevtime)/2,f.y=(m.touchescurrent.y-f.prevpositiony)/(date.now()-f.prevtime)/2,math.abs(m.touchescurrent.x-f.prevpositionx)<2&&(f.x=0),math.abs(m.touchescurrent.y-f.prevpositiony)<2&&(f.y=0),f.prevpositionx=m.touchescurrent.x,f.prevpositiony=m.touchescurrent.y,f.prevtime=date.now(),u.$imagewrapel.transform(`translate3d(${m.currentx}px, ${m.currenty}px,0)`)}}function e(){const t=e.zoom;u.$slideel&&e.previousindex!==e.activeindex&&(u.$imageel&&u.$imageel.transform("translate3d(0,0,0) scale(1)"),u.$imagewrapel&&u.$imagewrapel.transform("translate3d(0,0,0)"),t.scale=1,p=1,u.$slideel=void 0,u.$imageel=void 0,u.$imagewrapel=void 0)}function t(t){const s=e.zoom,a=e.params.zoom;if(u.$slideel||(t&&t.target&&(u.$slideel=d(t.target).closest(`.${e.params.slideclass}`)),u.$slideel||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?u.$slideel=e.$wrapperel.children(`.${e.params.slideactiveclass}`):u.$slideel=e.slides.eq(e.activeindex)),u.$imageel=u.$slideel.find(`.${a.containerclass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),u.$imagewrapel=u.$imageel.parent(`.${a.containerclass}`)),!u.$imageel||0===u.$imageel.length||!u.$imagewrapel||0===u.$imagewrapel.length)return;let r,n,l,o,c,h,f,g,v,w,b,x,y,e,t,c,$,s;e.params.cssmode&&(e.wrapperel.style.overflow="hidden",e.wrapperel.style.touchaction="none"),u.$slideel.addclass(`${a.zoomedslideclass}`),void 0===m.touchesstart.x&&t?(r="touchend"===t.type?t.changedtouches[0].pagex:t.pagex,n="touchend"===t.type?t.changedtouches[0].pagey:t.pagey):(r=m.touchesstart.x,n=m.touchesstart.y),s.scale=u.$imagewrapel.attr("data-swiper-zoom")||a.maxratio,p=u.$imagewrapel.attr("data-swiper-zoom")||a.maxratio,t?($=u.$slideel[0].offsetwidth,s=u.$slideel[0].offsetheight,l=u.$slideel.offset().left+i.scrollx,o=u.$slideel.offset().top+i.scrolly,c=l+$/2-r,h=o+s/2-n,v=u.$imageel[0].offsetwidth,w=u.$imageel[0].offsetheight,b=v*s.scale,x=w*s.scale,y=math.min($/2-b/2,0),e=math.min(s/2-x/2,0),t=-y,c=-e,f=c*s.scale,g=h*s.scale,ft&&(f=t),gc&&(g=c)):(f=0,g=0),u.$imagewrapel.transition(300).transform(`translate3d(${f}px, ${g}px,0)`),u.$imageel.transition(300).transform(`translate3d(0,0,0) scale(${s.scale})`)}function c(){const t=e.zoom,s=e.params.zoom;u.$slideel||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?u.$slideel=e.$wrapperel.children(`.${e.params.slideactiveclass}`):u.$slideel=e.slides.eq(e.activeindex),u.$imageel=u.$slideel.find(`.${s.containerclass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),u.$imagewrapel=u.$imageel.parent(`.${s.containerclass}`)),u.$imageel&&0!==u.$imageel.length&&u.$imagewrapel&&0!==u.$imagewrapel.length&&(e.params.cssmode&&(e.wrapperel.style.overflow="",e.wrapperel.style.touchaction=""),t.scale=1,p=1,u.$imagewrapel.transition(300).transform("translate3d(0,0,0)"),u.$imageel.transition(300).transform("translate3d(0,0,0) scale(1)"),u.$slideel.removeclass(`${s.zoomedslideclass}`),u.$slideel=void 0)}function $(t){const s=e.zoom;s.scale&&1!==s.scale?c():t(t)}function s(){const t=e.support;return{passivelistener:!("touchstart"!==e.touchevents.start||!t.passivelistener||!e.params.passivelisteners)&&{passive:!0,capture:!1},activelistenerwithcapture:!t.passivelistener||{passive:!1,capture:!0}}}function m(){return`.${e.params.slideclass}`}function p(t){const{passivelistener:s}=s(),a=m();e.$wrapperel[t]("gesturestart",a,w,s),e.$wrapperel[t]("gesturechange",a,b,s),e.$wrapperel[t]("gestureend",a,x,s)}function k(){n||(n=!0,p("on"))}function z(){n&&(n=!1,p("off"))}function o(){const t=e.zoom;if(t.enabled)return;t.enabled=!0;const s=e.support,{passivelistener:a,activelistenerwithcapture:i}=s(),r=m();s.gestures?(e.$wrapperel.on(e.touchevents.start,k,a),e.$wrapperel.on(e.touchevents.end,z,a)):"touchstart"===e.touchevents.start&&(e.$wrapperel.on(e.touchevents.start,r,w,a),e.$wrapperel.on(e.touchevents.move,r,b,i),e.$wrapperel.on(e.touchevents.end,r,x,a),e.touchevents.cancel&&e.$wrapperel.on(e.touchevents.cancel,r,x,a)),e.$wrapperel.on(e.touchevents.move,`.${e.params.zoom.containerclass}`,y,i)}function i(){const t=e.zoom;if(!t.enabled)return;const s=e.support;t.enabled=!1;const{passivelistener:a,activelistenerwithcapture:i}=s(),r=m();s.gestures?(e.$wrapperel.off(e.touchevents.start,k,a),e.$wrapperel.off(e.touchevents.end,z,a)):"touchstart"===e.touchevents.start&&(e.$wrapperel.off(e.touchevents.start,r,w,a),e.$wrapperel.off(e.touchevents.move,r,b,i),e.$wrapperel.off(e.touchevents.end,r,x,a),e.touchevents.cancel&&e.$wrapperel.off(e.touchevents.cancel,r,x,a)),e.$wrapperel.off(e.touchevents.move,`.${e.params.zoom.containerclass}`,y,i)}object.defineproperty(e.zoom,"scale",{get:()=>g,set(e){if(g!==e){const t=u.$imageel?u.$imageel[0]:void 0,s=u.$slideel?u.$slideel[0]:void 0;a("zoomchange",e,t,s)}g=e}}),s("init",(()=>{e.params.zoom.enabled&&o()})),s("destroy",(()=>{i()})),s("touchstart",((t,s)=>{e.zoom.enabled&&function(t){const s=e.device;u.$imageel&&0!==u.$imageel.length&&(m.istouched||(s.android&&t.cancelable&&t.preventdefault(),m.istouched=!0,m.touchesstart.x="touchstart"===t.type?t.targettouches[0].pagex:t.pagex,m.touchesstart.y="touchstart"===t.type?t.targettouches[0].pagey:t.pagey))}(s)})),s("touchend",((t,s)=>{e.zoom.enabled&&function(){const t=e.zoom;if(!u.$imageel||0===u.$imageel.length)return;if(!m.istouched||!m.ismoved)return m.istouched=!1,void(m.ismoved=!1);m.istouched=!1,m.ismoved=!1;let s=300,a=300;const i=f.x*s,r=m.currentx+i,n=f.y*a,l=m.currenty+n;0!==f.x&&(s=math.abs((r-m.currentx)/f.x)),0!==f.y&&(a=math.abs((l-m.currenty)/f.y));const o=math.max(s,a);m.currentx=r,m.currenty=l;const d=m.width*t.scale,p=m.height*t.scale;m.minx=math.min(u.slidewidth/2-d/2,0),m.maxx=-m.minx,m.miny=math.min(u.slideheight/2-p/2,0),m.maxy=-m.miny,m.currentx=math.max(math.min(m.currentx,m.maxx),m.minx),m.currenty=math.max(math.min(m.currenty,m.maxy),m.miny),u.$imagewrapel.transition(o).transform(`translate3d(${m.currentx}px, ${m.currenty}px,0)`)}()})),s("doubletap",((t,s)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&$(s)})),s("transitionend",(()=>{e.zoom.enabled&&e.params.zoom.enabled&&e()})),s("slidechange",(()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssmode&&e()})),object.assign(e.zoom,{enable:o,disable:i,in:t,out:c,toggle:$})},function({swiper:e,extendparams:t,on:s,emit:a}){t({lazy:{checkinview:!1,enabled:!1,loadprevnext:!1,loadprevnextamount:1,loadontransitionstart:!1,scrollingelement:"",elementclass:"swiper-lazy",loadingclass:"swiper-lazy-loading",loadedclass:"swiper-lazy-loaded",preloaderclass:"swiper-lazy-preloader"}}),e.lazy={};let i=!1,n=!1;function l(t,s=!0){const i=e.params.lazy;if(void 0===t)return;if(0===e.slides.length)return;const r=e.virtual&&e.params.virtual.enabled?e.$wrapperel.children(`.${e.params.slideclass}[data-swiper-slide-index="${t}"]`):e.slides.eq(t),n=r.find(`.${i.elementclass}:not(.${i.loadedclass}):not(.${i.loadingclass})`);!r.hasclass(i.elementclass)||r.hasclass(i.loadedclass)||r.hasclass(i.loadingclass)||n.push(r[0]),0!==n.length&&n.each((t=>{const n=d(t);n.addclass(i.loadingclass);const o=n.attr("data-background"),p=n.attr("data-src"),c=n.attr("data-srcset"),u=n.attr("data-sizes"),h=n.parent("picture");e.loadimage(n[0],p||o,c,u,!1,(()=>{if(null!=e&&e&&(!e||e.params)&&!e.destroyed){if(o?(n.css("background-image",`url("${o}")`),n.removeattr("data-background")):(c&&(n.attr("srcset",c),n.removeattr("data-srcset")),u&&(n.attr("sizes",u),n.removeattr("data-sizes")),h.length&&h.children("source").each((e=>{const t=d(e);t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeattr("data-srcset"))})),p&&(n.attr("src",p),n.removeattr("data-src"))),n.addclass(i.loadedclass).removeclass(i.loadingclass),r.find(`.${i.preloaderclass}`).remove(),e.params.loop&&s){const t=r.attr("data-swiper-slide-index");if(r.hasclass(e.params.slideduplicateclass)){l(e.$wrapperel.children(`[data-swiper-slide-index="${t}"]:not(.${e.params.slideduplicateclass})`).index(),!1)}else{l(e.$wrapperel.children(`.${e.params.slideduplicateclass}[data-swiper-slide-index="${t}"]`).index(),!1)}}a("lazyimageready",r[0],n[0]),e.params.autoheight&&e.updateautoheight()}})),a("lazyimageload",r[0],n[0])}))}function o(){const{$wrapperel:t,params:s,slides:a,activeindex:i}=e,r=e.virtual&&s.virtual.enabled,o=s.lazy;let p=s.slidesperview;function c(e){if(r){if(t.children(`.${s.slideclass}[data-swiper-slide-index="${e}"]`).length)return!0}else if(a[e])return!0;return!1}function u(e){return r?d(e).attr("data-swiper-slide-index"):d(e).index()}if("auto"===p&&(p=0),n||(n=!0),e.params.watchslidesprogress)t.children(`.${s.slidevisibleclass}`).each((e=>{l(r?d(e).attr("data-swiper-slide-index"):d(e).index())}));else if(p>1)for(let e=i;e1||o.loadprevnextamount&&o.loadprevnextamount>1){const e=o.loadprevnextamount,t=p,s=math.min(i+t+math.max(e,t),a.length),r=math.max(i-math.max(t,e),0);for(let e=i+p;e0&&l(u(e));const a=t.children(`.${s.slideprevclass}`);a.length>0&&l(u(a))}}function p(){const t=r();if(!e||e.destroyed)return;const s=e.params.lazy.scrollingelement?d(e.params.lazy.scrollingelement):d(t),a=s[0]===t,n=a?t.innerwidth:s[0].offsetwidth,l=a?t.innerheight:s[0].offsetheight,c=e.$el.offset(),{rtltranslate:u}=e;let h=!1;u&&(c.left-=e.$el[0].scrollleft);const m=[[c.left,c.top],[c.left+e.width,c.top],[c.left,c.top+e.height],[c.left+e.width,c.top+e.height]];for(let e=0;e=0&&t[0]<=n&&t[1]>=0&&t[1]<=l){if(0===t[0]&&0===t[1])continue;h=!0}}const f=!("touchstart"!==e.touchevents.start||!e.support.passivelistener||!e.params.passivelisteners)&&{passive:!0,capture:!1};h?(o(),s.off("scroll",p,f)):i||(i=!0,s.on("scroll",p,f))}s("beforeinit",(()=>{e.params.lazy.enabled&&e.params.preloadimages&&(e.params.preloadimages=!1)})),s("init",(()=>{e.params.lazy.enabled&&(e.params.lazy.checkinview?p():o())})),s("scroll",(()=>{e.params.freemode&&e.params.freemode.enabled&&!e.params.freemode.sticky&&o()})),s("scrollbardragmove resize _freemodenomomentumrelease",(()=>{e.params.lazy.enabled&&(e.params.lazy.checkinview?p():o())})),s("transitionstart",(()=>{e.params.lazy.enabled&&(e.params.lazy.loadontransitionstart||!e.params.lazy.loadontransitionstart&&!n)&&(e.params.lazy.checkinview?p():o())})),s("transitionend",(()=>{e.params.lazy.enabled&&!e.params.lazy.loadontransitionstart&&(e.params.lazy.checkinview?p():o())})),s("slidechange",(()=>{const{lazy:t,cssmode:s,watchslidesprogress:a,touchreleaseonedges:i,resistanceratio:r}=e.params;t.enabled&&(s||a&&(i||0===r))&&o()})),object.assign(e.lazy,{load:o,loadinslide:l})},function({swiper:e,extendparams:t,on:s}){function a(e,t){const s=function(){let e,t,s;return(a,i)=>{for(t=-1,e=a.length;e-t>1;)s=e+t>>1,a[s]<=i?t=s:e=s;return e}}();let a,i;return this.x=e,this.y=t,this.lastindex=e.length-1,this.interpolate=function(e){return e?(i=s(this.x,e),a=i-1,(e-this.x[a])*(this.y[i]-this.y[a])/(this.x[i]-this.x[a])+this.y[a]):0},this}function i(){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)}t({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0},s("beforeinit",(()=>{e.controller.control=e.params.controller.control})),s("update",(()=>{i()})),s("resize",(()=>{i()})),s("observerupdate",(()=>{i()})),s("settranslate",((t,s,a)=>{e.controller.control&&e.controller.settranslate(s,a)})),s("settransition",((t,s,a)=>{e.controller.control&&e.controller.settransition(s,a)})),object.assign(e.controller,{settranslate:function(t,s){const i=e.controller.control;let r,n;const l=e.constructor;function o(t){const s=e.rtltranslate?-e.translate:e.translate;"slide"===e.params.controller.by&&(!function(t){e.controller.spline||(e.controller.spline=e.params.loop?new a(e.slidesgrid,t.slidesgrid):new a(e.snapgrid,t.snapgrid))}(t),n=-e.controller.spline.interpolate(-s)),n&&"container"!==e.params.controller.by||(r=(t.maxtranslate()-t.mintranslate())/(e.maxtranslate()-e.mintranslate()),n=(s-e.mintranslate())*r+t.mintranslate()),e.params.controller.inverse&&(n=t.maxtranslate()-n),t.updateprogress(n),t.settranslate(n,e),t.updateactiveindex(),t.updateslidesclasses()}if(array.isarray(i))for(let e=0;e{s.updateautoheight()})),s.$wrapperel.transitionend((()=>{i&&(s.params.loop&&"slide"===e.params.controller.by&&s.loopfix(),s.transitionend())})))}if(array.isarray(i))for(r=0;r0&&(e.isbeginning?(c(s),n(s)):(u(s),r(s))),t&&t.length>0&&(e.isend?(c(t),n(t)):(u(t),r(t)))}function f(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function g(){return f()&&e.params.pagination.clickable}const v=(e,t,s)=>{r(e),"button"!==e[0].tagname&&(l(e,"button"),e.on("keydown",h)),p(e,s),function(e,t){e.attr("aria-controls",t)}(e,t)};function w(){const t=e.params.a11y;e.$el.append(a);const s=e.$el;t.containerroledescriptionmessage&&o(s,t.containerroledescriptionmessage),t.containermessage&&p(s,t.containermessage);const i=e.$wrapperel,r=i.attr("id")||`swiper-wrapper-${function(e=16){return"x".repeat(e).replace(/x/g,(()=>math.round(16*math.random()).tostring(16)))}(16)}`,n=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";var c;c=r,i.attr("id",c),function(e,t){e.attr("aria-live",t)}(i,n),t.itemroledescriptionmessage&&o(d(e.slides),t.itemroledescriptionmessage),l(d(e.slides),t.sliderole);const u=e.params.loop?e.slides.filter((t=>!t.classlist.contains(e.params.slideduplicateclass))).length:e.slides.length;let m,f;e.slides.each(((s,a)=>{const i=d(s),r=e.params.loop?parseint(i.attr("data-swiper-slide-index"),10):a;p(i,t.slidelabelmessage.replace(/\{\{index\}\}/,r+1).replace(/\{\{slideslength\}\}/,u))})),e.navigation&&e.navigation.$nextel&&(m=e.navigation.$nextel),e.navigation&&e.navigation.$prevel&&(f=e.navigation.$prevel),m&&m.length&&v(m,r,t.nextslidemessage),f&&f.length&&v(f,r,t.prevslidemessage),g()&&e.pagination.$el.on("keydown",w(e.params.pagination.bulletclass),h)}s("beforeinit",(()=>{a=d(``)})),s("afterinit",(()=>{e.params.a11y.enabled&&(w(),m())})),s("toedge",(()=>{e.params.a11y.enabled&&m()})),s("fromedge",(()=>{e.params.a11y.enabled&&m()})),s("paginationupdate",(()=>{e.params.a11y.enabled&&function(){const t=e.params.a11y;f()&&e.pagination.bullets.each((s=>{const a=d(s);e.params.pagination.clickable&&(r(a),e.params.pagination.renderbullet||(l(a,"button"),p(a,t.paginationbulletmessage.replace(/\{\{index\}\}/,a.index()+1)))),a.is(`.${e.params.pagination.bulletactiveclass}`)?a.attr("aria-current","true"):a.removeattr("aria-current")}))}()})),s("destroy",(()=>{e.params.a11y.enabled&&function(){let t,s;a&&a.length>0&&a.remove(),e.navigation&&e.navigation.$nextel&&(t=e.navigation.$nextel),e.navigation&&e.navigation.$prevel&&(s=e.navigation.$prevel),t&&t.off("keydown",h),s&&s.off("keydown",h),g()&&e.pagination.$el.off("keydown",w(e.params.pagination.bulletclass),h)}()}))},function({swiper:e,extendparams:t,on:s}){t({history:{enabled:!1,root:"",replacestate:!1,key:"slides"}});let a=!1,i={};const n=e=>e.tostring().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),l=e=>{const t=r();let s;s=e?new url(e):t.location;const a=s.pathname.slice(1).split("/").filter((e=>""!==e)),i=a.length;return{key:a[i-2],value:a[i-1]}},o=(t,s)=>{const i=r();if(!a||!e.params.history.enabled)return;let l;l=e.params.url?new url(e.params.url):i.location;const o=e.slides.eq(s);let d=n(o.attr("data-history"));if(e.params.history.root.length>0){let s=e.params.history.root;"/"===s[s.length-1]&&(s=s.slice(0,s.length-1)),d=`${s}/${t}/${d}`}else l.pathname.includes(t)||(d=`${t}/${d}`);const p=i.history.state;p&&p.value===d||(e.params.history.replacestate?i.history.replacestate({value:d},null,d):i.history.pushstate({value:d},null,d))},d=(t,s,a)=>{if(s)for(let i=0,r=e.slides.length;i{i=l(e.params.url),d(e.params.speed,e.paths.value,!1)};s("init",(()=>{e.params.history.enabled&&(()=>{const t=r();if(e.params.history){if(!t.history||!t.history.pushstate)return e.params.history.enabled=!1,void(e.params.hashnavigation.enabled=!0);a=!0,i=l(e.params.url),(i.key||i.value)&&(d(0,i.value,e.params.runcallbacksoninit),e.params.history.replacestate||t.addeventlistener("popstate",p))}})()})),s("destroy",(()=>{e.params.history.enabled&&(()=>{const t=r();e.params.history.replacestate||t.removeeventlistener("popstate",p)})()})),s("transitionend _freemodenomomentumrelease",(()=>{a&&o(e.params.history.key,e.activeindex)})),s("slidechange",(()=>{a&&e.params.cssmode&&o(e.params.history.key,e.activeindex)}))},function({swiper:e,extendparams:t,emit:s,on:i}){let n=!1;const l=a(),o=r();t({hashnavigation:{enabled:!1,replacestate:!1,watchstate:!1}});const p=()=>{s("hashchange");const t=l.location.hash.replace("#","");if(t!==e.slides.eq(e.activeindex).attr("data-hash")){const s=e.$wrapperel.children(`.${e.params.slideclass}[data-hash="${t}"]`).index();if(void 0===s)return;e.slideto(s)}},c=()=>{if(n&&e.params.hashnavigation.enabled)if(e.params.hashnavigation.replacestate&&o.history&&o.history.replacestate)o.history.replacestate(null,null,`#${e.slides.eq(e.activeindex).attr("data-hash")}`||""),s("hashset");else{const t=e.slides.eq(e.activeindex),a=t.attr("data-hash")||t.attr("data-history");l.location.hash=a||"",s("hashset")}};i("init",(()=>{e.params.hashnavigation.enabled&&(()=>{if(!e.params.hashnavigation.enabled||e.params.history&&e.params.history.enabled)return;n=!0;const t=l.location.hash.replace("#","");if(t){const s=0;for(let a=0,i=e.slides.length;a{e.params.hashnavigation.enabled&&e.params.hashnavigation.watchstate&&d(o).off("hashchange",p)})),i("transitionend _freemodenomomentumrelease",(()=>{n&&c()})),i("slidechange",(()=>{n&&e.params.cssmode&&c()}))},function({swiper:e,extendparams:t,on:s,emit:i}){let r;function n(){const t=e.slides.eq(e.activeindex);let s=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(s=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),cleartimeout(r),r=c((()=>{let t;e.params.autoplay.reversedirection?e.params.loop?(e.loopfix(),t=e.slideprev(e.params.speed,!0,!0),i("autoplay")):e.isbeginning?e.params.autoplay.stoponlastslide?o():(t=e.slideto(e.slides.length-1,e.params.speed,!0,!0),i("autoplay")):(t=e.slideprev(e.params.speed,!0,!0),i("autoplay")):e.params.loop?(e.loopfix(),t=e.slidenext(e.params.speed,!0,!0),i("autoplay")):e.isend?e.params.autoplay.stoponlastslide?o():(t=e.slideto(0,e.params.speed,!0,!0),i("autoplay")):(t=e.slidenext(e.params.speed,!0,!0),i("autoplay")),(e.params.cssmode&&e.autoplay.running||!1===t)&&n()}),s)}function l(){return void 0===r&&(!e.autoplay.running&&(e.autoplay.running=!0,i("autoplaystart"),n(),!0))}function o(){return!!e.autoplay.running&&(void 0!==r&&(r&&(cleartimeout(r),r=void 0),e.autoplay.running=!1,i("autoplaystop"),!0))}function d(t){e.autoplay.running&&(e.autoplay.paused||(r&&cleartimeout(r),e.autoplay.paused=!0,0!==t&&e.params.autoplay.waitfortransition?["transitionend","webkittransitionend"].foreach((t=>{e.$wrapperel[0].addeventlistener(t,u)})):(e.autoplay.paused=!1,n())))}function p(){const t=a();"hidden"===t.visibilitystate&&e.autoplay.running&&d(),"visible"===t.visibilitystate&&e.autoplay.paused&&(n(),e.autoplay.paused=!1)}function u(t){e&&!e.destroyed&&e.$wrapperel&&t.target===e.$wrapperel[0]&&(["transitionend","webkittransitionend"].foreach((t=>{e.$wrapperel[0].removeeventlistener(t,u)})),e.autoplay.paused=!1,e.autoplay.running?n():o())}function h(){e.params.autoplay.disableoninteraction?o():d(),["transitionend","webkittransitionend"].foreach((t=>{e.$wrapperel[0].removeeventlistener(t,u)}))}function m(){e.params.autoplay.disableoninteraction||(e.autoplay.paused=!1,n())}e.autoplay={running:!1,paused:!1},t({autoplay:{enabled:!1,delay:3e3,waitfortransition:!0,disableoninteraction:!0,stoponlastslide:!1,reversedirection:!1,pauseonmouseenter:!1}}),s("init",(()=>{if(e.params.autoplay.enabled){l();a().addeventlistener("visibilitychange",p),e.params.autoplay.pauseonmouseenter&&(e.$el.on("mouseenter",h),e.$el.on("mouseleave",m))}})),s("beforetransitionstart",((t,s,a)=>{e.autoplay.running&&(a||!e.params.autoplay.disableoninteraction?e.autoplay.pause(s):o())})),s("sliderfirstmove",(()=>{e.autoplay.running&&(e.params.autoplay.disableoninteraction?o():d())})),s("touchend",(()=>{e.params.cssmode&&e.autoplay.paused&&!e.params.autoplay.disableoninteraction&&n()})),s("destroy",(()=>{e.$el.off("mouseenter",h),e.$el.off("mouseleave",m),e.autoplay.running&&o();a().removeeventlistener("visibilitychange",p)})),object.assign(e.autoplay,{pause:d,run:n,start:l,stop:o})},function({swiper:e,extendparams:t,on:s}){t({thumbs:{swiper:null,multipleactivethumbs:!0,autoscrolloffset:0,slidethumbactiveclass:"swiper-slide-thumb-active",thumbscontainerclass:"swiper-thumbs"}});let a=!1,i=!1;function r(){const t=e.thumbs.swiper;if(!t)return;const s=t.clickedindex,a=t.clickedslide;if(a&&d(a).hasclass(e.params.thumbs.slidethumbactiveclass))return;if(null==s)return;let i;if(i=t.params.loop?parseint(d(t.clickedslide).attr("data-swiper-slide-index"),10):s,e.params.loop){let t=e.activeindex;e.slides.eq(t).hasclass(e.params.slideduplicateclass)&&(e.loopfix(),e._clientleft=e.$wrapperel[0].clientleft,t=e.activeindex);const s=e.slides.eq(t).prevall(`[data-swiper-slide-index="${i}"]`).eq(0).index(),a=e.slides.eq(t).nextall(`[data-swiper-slide-index="${i}"]`).eq(0).index();i=void 0===s?a:void 0===a?s:a-t1?a:o:a-oe.previousindex?"next":"prev"}else n=e.realindex,l=n>e.previousindex?"next":"prev";r&&(n+="next"===l?i:-1*i),s.visibleslidesindexes&&s.visibleslidesindexes.indexof(n)<0&&(s.params.centeredslides?n=n>o?n-math.floor(a/2)+1:n+math.floor(a/2)-1:n>o&&s.params.slidespergroup,s.slideto(n,t?0:void 0))}let n=1;const l=e.params.thumbs.slidethumbactiveclass;if(e.params.slidesperview>1&&!e.params.centeredslides&&(n=e.params.slidesperview),e.params.thumbs.multipleactivethumbs||(n=1),n=math.floor(n),s.slides.removeclass(l),s.params.loop||s.params.virtual&&s.params.virtual.enabled)for(let t=0;t{const{thumbs:t}=e.params;t&&t.swiper&&(n(),l(!0))})),s("slidechange update resize observerupdate",(()=>{e.thumbs.swiper&&l()})),s("settransition",((t,s)=>{const a=e.thumbs.swiper;a&&a.settransition(s)})),s("beforedestroy",(()=>{const t=e.thumbs.swiper;t&&i&&t&&t.destroy()})),object.assign(e.thumbs,{init:n,update:l})},function({swiper:e,extendparams:t,emit:s,once:a}){t({freemode:{enabled:!1,momentum:!0,momentumratio:1,momentumbounce:!0,momentumbounceratio:1,momentumvelocityratio:1,sticky:!1,minimumvelocity:.02}}),object.assign(e,{freemode:{ontouchmove:function(){const{toucheventsdata:t,touches:s}=e;0===t.velocities.length&&t.velocities.push({position:s[e.ishorizontal()?"startx":"starty"],time:t.touchstarttime}),t.velocities.push({position:s[e.ishorizontal()?"currentx":"currenty"],time:u()})},ontouchend:function({currentpos:t}){const{params:i,$wrapperel:r,rtltranslate:n,snapgrid:l,toucheventsdata:o}=e,d=u()-o.touchstarttime;if(t<-e.mintranslate())e.slideto(e.activeindex);else if(t>-e.maxtranslate())e.slides.length1){const t=o.velocities.pop(),s=o.velocities.pop(),a=t.position-s.position,r=t.time-s.time;e.velocity=a/r,e.velocity/=2,math.abs(e.velocity)150||u()-t.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=i.freemode.momentumvelocityratio,o.velocities.length=0;let t=1e3*i.freemode.momentumratio;const d=e.velocity*t;let p=e.translate+d;n&&(p=-p);let c,h=!1;const m=20*math.abs(e.velocity)*i.freemode.momentumbounceratio;let f;if(pe.mintranslate())i.freemode.momentumbounce?(p-e.mintranslate()>m&&(p=e.mintranslate()+m),c=e.mintranslate(),h=!0,o.allowmomentumbounce=!0):p=e.mintranslate(),i.loop&&i.centeredslides&&(f=!0);else if(i.freemode.sticky){let t;for(let e=0;e-p){t=e;break}p=math.abs(l[t]-p){e.loopfix()})),0!==e.velocity){if(t=n?math.abs((-p-e.translate)/e.velocity):math.abs((p-e.translate)/e.velocity),i.freemode.sticky){const s=math.abs((n?-p:p)-e.translate),a=e.slidessizesgrid[e.activeindex];t=s{e&&!e.destroyed&&o.allowmomentumbounce&&(s("momentumbounce"),e.settransition(i.speed),settimeout((()=>{e.settranslate(c),r.transitionend((()=>{e&&!e.destroyed&&e.transitionend()}))}),0))}))):e.velocity?(s("_freemodenomomentumrelease"),e.updateprogress(p),e.settransition(t),e.settranslate(p),e.transitionstart(!0,e.swipedirection),e.animating||(e.animating=!0,r.transitionend((()=>{e&&!e.destroyed&&e.transitionend()})))):e.updateprogress(p),e.updateactiveindex(),e.updateslidesclasses()}else{if(i.freemode.sticky)return void e.slidetoclosest();i.freemode&&s("_freemodenomomentumrelease")}(!i.freemode.momentum||d>=i.longswipesms)&&(e.updateprogress(),e.updateactiveindex(),e.updateslidesclasses())}}}})},function({swiper:e,extendparams:t}){let s,a,i;t({grid:{rows:1,fill:"column"}}),e.grid={initslides:t=>{const{slidesperview:r}=e.params,{rows:n,fill:l}=e.params.grid;a=s/n,i=math.floor(t/n),s=math.floor(t/n)===t/n?t:math.ceil(t/n)*n,"auto"!==r&&"row"===l&&(s=math.max(s,r*n))},updateslide:(t,r,n,l)=>{const{slidespergroup:o,spacebetween:d}=e.params,{rows:p,fill:c}=e.params.grid;let u,h,m;if("row"===c&&o>1){const e=math.floor(t/(o*p)),a=t-p*o*e,i=0===e?o:math.min(math.ceil((n-e*p*o)/p),o);m=math.floor(a/i),h=a-m*i+e*o,u=h+m*s/p,r.css({"-webkit-order":u,order:u})}else"column"===c?(h=math.floor(t/p),m=t-h*p,(h>i||h===i&&m===p-1)&&(m+=1,m>=p&&(m=0,h+=1))):(m=math.floor(t/a),h=t-m*a);r.css(l("margin-top"),0!==m?d&&`${d}px`:"")},updatewrappersize:(t,a,i)=>{const{spacebetween:r,centeredslides:n,roundlengths:l}=e.params,{rows:o}=e.params.grid;if(e.virtualsize=(t+r)*s,e.virtualsize=math.ceil(e.virtualsize/o)-r,e.$wrapperel.css({[i("width")]:`${e.virtualsize+r}px`}),n){a.splice(0,a.length);const t=[];for(let s=0;s{const{slides:t}=e,s=e.params.fadeeffect;for(let a=0;a{const{transformel:s}=e.params.fadeeffect;(s?e.slides.find(s):e.slides).transition(t),k({swiper:e,duration:t,transformel:s,allslides:!0})},overwriteparams:()=>({slidesperview:1,slidespergroup:1,watchslidesprogress:!0,spacebetween:0,virtualtranslate:!e.params.cssmode})})},function({swiper:e,extendparams:t,on:s}){t({cubeeffect:{slideshadows:!0,shadow:!0,shadowoffset:20,shadowscale:.94}}),f({effect:"cube",swiper:e,on:s,settranslate:()=>{const{$el:t,$wrapperel:s,slides:a,width:i,height:r,rtltranslate:n,size:l,browser:o}=e,p=e.params.cubeeffect,c=e.ishorizontal(),u=e.virtual&&e.params.virtual.enabled;let h,m=0;p.shadow&&(c?(h=s.find(".swiper-cube-shadow"),0===h.length&&(h=d('
'),s.append(h)),h.css({height:`${i}px`})):(h=t.find(".swiper-cube-shadow"),0===h.length&&(h=d('
'),t.append(h))));for(let e=0;e-1&&(m=90*s+90*o,n&&(m=90*-s-90*o)),t.transform(v),p.slideshadows){let e=c?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),s=c?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom");0===e.length&&(e=d(`
`),t.append(e)),0===s.length&&(s=d(`
`),t.append(s)),e.length&&(e[0].style.opacity=math.max(-o,0)),s.length&&(s[0].style.opacity=math.max(o,0))}}if(s.css({"-webkit-transform-origin":`50% 50% -${l/2}px`,"transform-origin":`50% 50% -${l/2}px`}),p.shadow)if(c)h.transform(`translate3d(0px, ${i/2+p.shadowoffset}px, ${-i/2}px) rotatex(90deg) rotatez(0deg) scale(${p.shadowscale})`);else{const e=math.abs(m)-90*math.floor(math.abs(m)/90),t=1.5-(math.sin(2*e*math.pi/360)/2+math.cos(2*e*math.pi/360)/2),s=p.shadowscale,a=p.shadowscale/t,i=p.shadowoffset;h.transform(`scale3d(${s}, 1, ${a}) translate3d(0px, ${r/2+i}px, ${-r/2/a}px) rotatex(-90deg)`)}const f=o.issafari||o.iswebview?-l/2:0;s.transform(`translate3d(0px,0,${f}px) rotatex(${e.ishorizontal()?0:m}deg) rotatey(${e.ishorizontal()?-m:0}deg)`)},settransition:t=>{const{$el:s,slides:a}=e;a.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.cubeeffect.shadow&&!e.ishorizontal()&&s.find(".swiper-cube-shadow").transition(t)},perspective:()=>!0,overwriteparams:()=>({slidesperview:1,slidespergroup:1,watchslidesprogress:!0,resistanceratio:0,spacebetween:0,centeredslides:!1,virtualtranslate:!0})})},function({swiper:e,extendparams:t,on:s}){t({flipeffect:{slideshadows:!0,limitrotation:!0,transformel:null}}),f({effect:"flip",swiper:e,on:s,settranslate:()=>{const{slides:t,rtltranslate:s}=e,a=e.params.flipeffect;for(let i=0;i{const{transformel:s}=e.params.flipeffect;(s?e.slides.find(s):e.slides).transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),k({swiper:e,duration:t,transformel:s})},perspective:()=>!0,overwriteparams:()=>({slidesperview:1,slidespergroup:1,watchslidesprogress:!0,spacebetween:0,virtualtranslate:!e.params.cssmode})})},function({swiper:e,extendparams:t,on:s}){t({coverfloweffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideshadows:!0,transformel:null}}),f({effect:"coverflow",swiper:e,on:s,settranslate:()=>{const{width:t,height:s,slides:a,slidessizesgrid:i}=e,r=e.params.coverfloweffect,n=e.ishorizontal(),l=e.translate,o=n?t/2-l:s/2-l,d=n?r.rotate:-r.rotate,p=r.depth;for(let e=0,t=a.length;e0?l:0),s.length&&(s[0].style.opacity=-l>0?-l:0)}}},settransition:t=>{const{transformel:s}=e.params.coverfloweffect;(s?e.slides.find(s):e.slides).transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)},perspective:()=>!0,overwriteparams:()=>({watchslidesprogress:!0})})},function({swiper:e,extendparams:t,on:s}){t({creativeeffect:{transformel:null,limitprogress:1,shadowperprogress:!1,progressmultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const a=e=>"string"==typeof e?e:`${e}px`;f({effect:"creative",swiper:e,on:s,settranslate:()=>{const{slides:t,$wrapperel:s,slidessizesgrid:i}=e,r=e.params.creativeeffect,{progressmultiplier:n}=r,l=e.params.centeredslides;if(l){const t=i[0]/2-e.params.slidesoffsetbefore||0;s.transform(`translatex(calc(50% - ${t}px))`)}for(let s=0;s0&&(f=r.prev,m=!0),u.foreach(((e,t)=>{u[t]=`calc(${e}px + (${a(f.translate[t])} * ${math.abs(d*n)}))`})),h.foreach(((e,t)=>{h[t]=f.rotate[t]*math.abs(d*n)})),i[0].style.zindex=-math.abs(math.round(o))+t.length;const g=u.join(", "),v=`rotatex(${h[0]}deg) rotatey(${h[1]}deg) rotatez(${h[2]}deg)`,w=p<0?`scale(${1+(1-f.scale)*p*n})`:`scale(${1-(1-f.scale)*p*n})`,b=p<0?1+(1-f.opacity)*p*n:1-(1-f.opacity)*p*n,x=`translate3d(${g}) ${v} ${w}`;if(m&&f.shadow||!m){let e=i.children(".swiper-slide-shadow");if(0===e.length&&f.shadow&&(e=z(r,i)),e.length){const t=r.shadowperprogress?d*(1/r.limitprogress):d;e[0].style.opacity=math.min(math.max(math.abs(t),0),1)}}const y=u(r,i);y.transform(x).css({opacity:b}),f.origin&&y.css("transform-origin",f.origin)}},settransition:t=>{const{transformel:s}=e.params.creativeeffect;(s?e.slides.find(s):e.slides).transition(t).find(".swiper-slide-shadow").transition(t),k({swiper:e,duration:t,transformel:s,allslides:!0})},perspective:()=>e.params.creativeeffect.perspective,overwriteparams:()=>({watchslidesprogress:!0,virtualtranslate:!e.params.cssmode})})},function({swiper:e,extendparams:t,on:s}){t({cardseffect:{slideshadows:!0,transformel:null}}),f({effect:"cards",swiper:e,on:s,settranslate:()=>{const{slides:t,activeindex:s}=e,a=e.params.cardseffect,{starttranslate:i,istouched:r}=e.toucheventsdata,n=e.translate;for(let l=0;l0&&p<1&&(r||e.params.cssmode)&&n-1&&(r||e.params.cssmode)&&n>i;if(w||b){const e=(1-math.abs((math.abs(p)-.5)/.5))**.5;g+=-28*p*e,f+=-.5*e,v+=96*e,h=-25*e*math.abs(p)+"%"}if(u=p<0?`calc(${u}px + (${v*math.abs(p)}%))`:p>0?`calc(${u}px + (-${v*math.abs(p)}%))`:`${u}px`,!e.ishorizontal()){const e=h;h=u,u=e}const x=`\n translate3d(${u}, ${h}, ${m}px)\n rotatez(${g}deg)\n scale(${p<0?""+(1+(1-f)*p):""+(1-(1-f)*p)})\n `;if(a.slideshadows){let e=o.find(".swiper-slide-shadow");0===e.length&&(e=z(a,o)),e.length&&(e[0].style.opacity=math.min(math.max((math.abs(p)-.5)/.5,0),1))}o[0].style.zindex=-math.abs(math.round(d))+t.length;u(a,o).transform(x)}},settransition:t=>{const{transformel:s}=e.params.cardseffect;(s?e.slides.find(s):e.slides).transition(t).find(".swiper-slide-shadow").transition(t),k({swiper:e,duration:t,transformel:s})},perspective:()=>!0,overwriteparams:()=>({watchslidesprogress:!0,virtualtranslate:!e.params.cssmode})})}];return h.use(j),h})); /*theia-sticky-sidebar.min*/ !function(gad){gad.fn.theiastickysidebar=function(qcj){function bdg(qcj,bdg){var bpg=zfq(qcj,bdg);bpg||(console.log("tss: body width smaller than options.minwidth. init is delayed."),gad(document).on("scroll."+qcj.namespace,function(qcj,bdg){return function(bpg){var dee=zfq(qcj,bdg);dee&&gad(this).unbind(bpg)}}(qcj,bdg)),gad(window).on("resize."+qcj.namespace,function(qcj,bdg){return function(bpg){var dee=zfq(qcj,bdg);dee&&gad(this).unbind(bpg)}}(qcj,bdg)))}function zfq(qcj,bdg){return qcj.initialized===!0||!(gad("body").width().theiastickysidebar:after {content: ""; display: table; clear: both;}')),bdg.each(function(){function bdg(){bpg.fixedscrolltop=0,bpg.sidebar.css({"min-height":"1px"}),bpg.stickysidebar.css({position:"static",width:"",transform:"none"})}function zfq(qcj){var bdg=qcj.height();return qcj.children().each(function(){bdg=math.max(bdg,gad(this).height())}),bdg}var bpg={};if(bpg.sidebar=gad(this),bpg.options=qcj||{},bpg.container=gad(bpg.options.containerselector),0==bpg.container.length&&(bpg.container=bpg.sidebar.parent()),bpg.sidebar.parents().css("-webkit-transform","none"),bpg.sidebar.css({position:bpg.options.defaultposition,overflow:"visible","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","box-sizing":"border-box"}),bpg.stickysidebar=bpg.sidebar.find(".theiastickysidebar"),0==bpg.stickysidebar.length){var fwc=/(?:text|application)\/(?:x-)?(?:javascript|ecmascript)/i;bpg.sidebar.find("script").filter(function(gad,qcj){return 0===qcj.type.length||qcj.type.match(fwc)}).remove(),bpg.stickysidebar=gad("
").addclass("theiastickysidebar").append(bpg.sidebar.children()),bpg.sidebar.append(bpg.stickysidebar)}bpg.marginbottom=parseint(bpg.sidebar.css("margin-bottom")),bpg.paddingtop=parseint(bpg.sidebar.css("padding-top")),bpg.paddingbottom=parseint(bpg.sidebar.css("padding-bottom"));var gee=bpg.stickysidebar.offset().top,bog=bpg.stickysidebar.outerheight();bpg.stickysidebar.css("padding-top",1),bpg.stickysidebar.css("padding-bottom",1),gee-=bpg.stickysidebar.offset().top,bog=bpg.stickysidebar.outerheight()-bog-gee,0==gee?(bpg.stickysidebar.css("padding-top",0),bpg.stickysidebarpaddingtop=0):bpg.stickysidebarpaddingtop=1,0==bog?(bpg.stickysidebar.css("padding-bottom",0),bpg.stickysidebarpaddingbottom=0):bpg.stickysidebarpaddingbottom=1,bpg.previousscrolltop=null,bpg.fixedscrolltop=0,bdg(),bpg.onscroll=function(bpg){if(bpg.stickysidebar.is(":visible")){if(gad("body").width()bpg.container.width())return void bdg()}var gee=gad(document).scrolltop(),bog="static";if(gee>=bpg.sidebar.offset().top+(bpg.paddingtop-bpg.options.additionalmargintop)){var uec,aff=bpg.paddingtop+qcj.additionalmargintop,jce=bpg.paddingbottom+bpg.marginbottom+qcj.additionalmarginbottom,die=bpg.sidebar.offset().top,ffc=bpg.sidebar.offset().top+zfq(bpg.container),cqc=0+qcj.additionalmargintop,mfc=bpg.stickysidebar.outerheight()+aff+jce0?math.min(edh,cqc):math.max(edh,uec-bpg.stickysidebar.outerheight()),edh=math.max(edh,dge),edh=math.min(edh,ebm-bpg.stickysidebar.outerheight());var gadgad=bpg.container.height()==bpg.stickysidebar.outerheight();bog=(gadgad||edh!=cqc)&&(gadgad||edh!=uec-bpg.stickysidebar.outerheight())?gee+edh-bpg.sidebar.offset().top-bpg.paddingtop<=qcj.additionalmargintop?"static":"absolute":"fixed"}if("fixed"==bog){var qcjgad=gad(document).scrollleft();bpg.stickysidebar.css({position:"fixed",width:dee(bpg.stickysidebar)+"px",transform:"translatey("+edh+"px)",left:bpg.sidebar.offset().left+parseint(bpg.sidebar.css("padding-left"))-qcjgad+"px",top:"0px"})}else if("absolute"==bog){var bdggad={};"absolute"!=bpg.stickysidebar.css("position")&&(bdggad.position="absolute",bdggad.transform="translatey("+(gee+edh-bpg.sidebar.offset().top-bpg.stickysidebarpaddingtop-bpg.stickysidebarpaddingbottom)+"px)",bdggad.top="0px"),bdggad.width=dee(bpg.stickysidebar)+"px",bdggad.left="",bpg.stickysidebar.css(bdggad)}else"static"==bog&&bdg();"static"!=bog&&1==bpg.options.updatesidebarheight&&bpg.sidebar.css({"min-height":bpg.stickysidebar.outerheight()+bpg.stickysidebar.offset().top-bpg.sidebar.offset().top+bpg.paddingbottom}),bpg.previousscrolltop=gee}},bpg.onscroll(bpg),gad(document).on("scroll."+bpg.options.namespace,function(gad){return function(){gad.onscroll(gad)}}(bpg)),gad(window).on("resize."+bpg.options.namespace,function(gad){return function(){gad.stickysidebar.css({position:"static"}),gad.onscroll(gad)}}(bpg)),"undefined"!=typeof resizesensor&&new resizesensor(bpg.stickysidebar[0],function(gad){return function(){gad.onscroll(gad)}}(bpg))})}function dee(gad){var qcj;try{qcj=gad[0].getboundingclientrect().width}catch(gad){}return"undefined"==typeof qcj&&(qcj=gad.width()),qcj}var fwc={containerselector:"",additionalmargintop:0,additionalmarginbottom:0,updatesidebarheight:!0,minwidth:0,disableonresponsivelayouts:!0,sidebarbehavior:"modern",defaultposition:"relative",namespace:"tss"};return qcj=gad.extend(fwc,qcj),qcj.additionalmargintop=parseint(qcj.additionalmargintop)||0,qcj.additionalmarginbottom=parseint(qcj.additionalmarginbottom)||0,bdg(qcj,this),this}}(jquery);