1!function(t){t.fn.ezMark=function(i){var s={checkboxCls:(i=i||{}).checkboxCls||"ez-checkbox",radioCls:i.radioCls||"ez-radio",checkedCls:i.checkedCls||"ez-checked",selectedCls:i.selectedCls||"ez-selected",hideCls:"ez-hide"};return this.each(function(){var i=t(this),e="checkbox"==i.attr("type")?'<div class="'+s.checkboxCls+'">':'<div class="'+s.radioCls+'">';"checkbox"==i.attr("type")?(i.addClass(s.hideCls).wrap(e).change(function(){t(this).is(":checked")?t(this).parent().addClass(s.checkedCls):t(this).parent().removeClass(s.checkedCls)}),i.is(":checked")&&i.parent().addClass(s.checkedCls)):"radio"==i.attr("type")&&(i.addClass(s.hideCls).wrap(e).change(function(){t('input[name="'+t(this).attr("name")+'"]').each(function(){t(this).is(":checked")?t(this).parent().addClass(s.selectedCls):t(this).parent().removeClass(s.selectedCls)})}),i.is(":checked")&&i.parent().addClass(s.selectedCls))})}}(jQuery),function(t){t.fn.touchwipe=function(i){var s={min_move_x:20,min_move_y:20,wipeLeft:function(){},wipeRight:function(){},wipeUp:function(){},wipeDown:function(){},preventDefaultEvents:!0};return i&&t.extend(s,i),this.each(function(){var t,i,e=!1;function o(){this.removeEventListener("touchmove",n),t=null,e=!1}
1function n(n){if(s.preventDefaultEvents&&n.preventDefault(),e){var a=n.touches[0].pageX,r=n.touches[0].pageY,h=t-a,c=i-r;Math.abs(h)>=s.min_move_x?(o(),h>0?s.wipeLeft():s.wipeRight()):Math.abs(c)>=s.min_move_y&&(o(),c>0?s.wipeDown():s.wipeUp())}}"ontouchstart"in document.documentElement&&this.addEventListener("touchstart",function s(o){1==o.touches.length&&(t=o.touches[0].pageX,i=o.touches[0].pageY,e=!0,this.addEventListener("touchmove",n,!1))},!1)}),this}}(jQuery),function(t){t.fn.unveil=function(i,s){var e,o=t(window),n=i||0,a=window.devicePixelRatio>1?"data-src-retina":"data-src",r=this;function h(){e=r.filter(function(){var i=t(this),s=o.scrollTop(),e=s+o.height(),a=i.offset().top;return a+i.height()>=s-n&&a<=e+n}).trigger("unveil"),r=r.not(e)}return this.one("unveil",function(){var t=this.getAttribute(a);(t=t||this.getAttribute("data-src"))&&(this.setAttribute("src",t),"function"==typeof s&&s.call(this))}),o.on("scroll.unveil resize.unveil lookup.unveil",h),h(),this}}(window.jQuery||window.Zepto),function(t){("undefined"==typeof jQuery||!jQuery)&&"function"==typeof define&&define.amd?define(["jquery"],function(i){return t(i,document,window,navigator)}):"undefined"!=typeof jQuery&&jQuery||"object"!=typeof exports?t(jQuery,document,window,navigator):t(require("jquery"),document,window,navigator)}(function(t,i,s,e,o){"use strict";var n,a,r,h=0,c=(a=e.userAgent,r=/msie\s\d+/i,a.search(r)>0&&(n=(n=r.exec(a).toString()).split(" ")[1])<9&&(t("html").addClass("lt-ie9"),!0));Function.prototype.bind||(Function.prototype.bind=function t(i){var s=this,e=[].slice;if("function"!=typeof s)throw TypeError();var o=e.call(arguments,1),n=function(){if(!(this instanceof n))return s.apply(i,o.concat(e.call(arguments)));var t=function(){};t.prototype=s.prototype;var a=new t,r=s.apply(a,o.concat(e.call(arguments)));return Object(r)===r?r:a};return n}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t,i){if(this==null)throw TypeError('"this" is null or not defined');var s,e=Object(this),o=e.length>>>0;if(0===o)return -1;var n=+i||0;if(Math.abs(n)===1/0&&(n=0),n>=o)return -1;for(s=Math.max(n>=0?n:o-Math.abs(n),0);s<o;){if(s in e&&e[s]===t)return s;s++}return -1});var l=function(e,n,a){this.VERSION="2.3.1",this.input=e,this.plugin_count=a,this.current_plugin=0,this.calc_count=0,this.update_tm=0,this.old_from=0,this.old_to=0,this.old_min_interval=null,this.raf_id=null,this.dragging=!1,this.force_redraw=!1,this.no_diapason=!1,this.has_tab_index=!0,this.is_key=!1,this.is_update=!1,this.is_start=!0,this.is_finish=!1,this.is_active=!1,this.is_resize=!1,this.is_click=!1,n=n||{},this.$cache={win:t(s),body:t(i.body),input:t(e),cont:null,rs:null,min:null,max:null,from:null,to:null,single:null,bar:null,line:null,s_single:null,s_from:null,s_to:null,shad_single:null,shad_from:null,shad_to:null,edge:null,grid:null,grid_labels:[]},this.coords={x_gap:0,x_pointer:0,w_rs:0,w_rs_old:0,w_handle:0,p_gap:0,p_gap_left:0,p_gap_right:0,p_step:0,p_pointer:0,p_handle:0,p_single_fake:0,p_single_real:0,p_from_fake:0,p_from_real:0,p_to_fake:0,p_to_real:0,p_bar_x:0,p_bar_w:0,grid_gap:0,big_num:0,big:[],big_w:[],big_p:[],big_x:[]},this.labels={w_min:0,w_max:0,w_from:0,w_to:0,w_single:0,p_min:0,p_max:0,p_from_fake:0,p_from_left:0,p_to_fake:0,p_to_left:0,p_single_fake:0,p_single_left:0};var r,h,c,l=this.$cache.input,p=l.prop("value");for(c in r={skin:"flat",type:"single",min:10,max:100,from:null,to:null,step:1,min_interval:0,max_interval:0,drag_interval:!1,values:[],p_values:[],from_fixed:!1,from_min:null,from_max:null,from_shadow:!1,to_fixed:!1,to_min:null,to_max:null,to_shadow:!1,prettify_enabled:!0,prettify_separator:" ",prettify:null,force_edges:!1,keyboard:!0,grid:!1,grid_margin:!0,grid_num:4,grid_snap:!1,hide_min_max:!1,hide_from_to:!1,prefix:"",postfix:"",max_postfix:"",decorate_both:!0,values_separator:" â ",input_values_separator:";",disable:!1,block:!1,extra_classes:"",scope:null,onStart:null,onChange:null,onFinish:null,onUpdate:null},"INPUT"!==l[0].nodeName&&console&&console.warn&&console.warn("Base element should be <input>!",l[0]),(h={skin:l.data("skin"),type:l.data("type"),min:l.data("min"),max:l.data("max"),from:l.data("from"),to:l.data("to"),step:l.data("step"),min_interval:l.data("minInterval"),max_interval:l.data("maxInterval"),drag_interval:l.data("dragInterval"),values:l.data("values"),from_fixed:l.data("fromFixed"),from_min:l.data("fromMin"),from_max:l.data("fromMax"),from_shadow:l.data("fromShadow"),to_fixed:l.data("toFixed"),to_min:l.data("toMin"),to_max:l.data("toMax"),to_shadow:l.data("toShadow"),prettify_enabled:l.data("prettifyEnabled"),prettify_separator:l.data("prettifySeparator"),force_edges:l.data("forceEdges"),keyboard:l.data("keyboard"),grid:l.data("grid"),grid_margin:l.data("gridMargin"),grid_num:l.data("gridNum"),grid_snap:l.data("gridSnap"),hide_min_max:l.data("hideMinMax"),hide_from_to:l.data("hideFromTo"),prefix:l.data("prefix"),postfix:l.data("postfix"),max_postfix:l.data("maxPostfix"),decorate_both:l.data("decorateBoth"),values_separator:l.data("valuesSeparator"),input_values_separator:l.data("inputValuesSeparator"),disable:l.data("disable"),block:l.data("block"),extra_classes:l.data("extraClasse
1s")}).values=h.values&&h.values.split(","),h)h.hasOwnProperty(c)&&(o===h[c]||""===h[c])&&delete h[c];p!==o&&""!==p&&((p=p.split(h.input_values_separator||n.input_values_separator||";"))[0]&&p[0]==+p[0]&&(p[0]=+p[0]),p[1]&&p[1]==+p[1]&&(p[1]=+p[1]),n&&n.values&&n.values.length?(r.from=p[0]&&n.values.indexOf(p[0]),r.to=p[1]&&n.values.indexOf(p[1])):(r.from=p[0]&&+p[0],r.to=p[1]&&+p[1])),t.extend(r,n),t.extend(r,h),this.options=r,this.update_check={},this.validate(),this.result={input:this.$cache.input,slider:null,min:this.options.min,max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null},this.init()};l.prototype={init:function(t){this.no_diapason=!1,this.coords.p_step=this.convertToPercent(this.options.step,!0),this.target="base",this.toggleInput(),this.append(),this.setMinMax(),t?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStar
vendor: 2,640 bytes, line 1
1t()),this.updateScene()},append:function(){var t='<span class="irs irs--'+this.options.skin+" js-irs-"+this.plugin_count+" "+this.options.extra_classes+'"></span>';this.$cache.input.before(t),this.$cache.input.prop("readonly",!0),this.$cache.cont=this.$cache.input.prev(),this.result.slider=this.$cache.cont,this.$cache.cont.html('<span class="irs"><span class="irs-line" tabindex="0"></span><span class="irs-min">0</span><span class="irs-max">1</span><span class="irs-from">0</span><span class="irs-to">0</span><span class="irs-single">0</span></span><span class="irs-grid"></span>'),this.$cache.rs=this.$cache.cont.find(".irs"),this.$cache.min=this.$cache.cont.find(".irs-min"),this.$cache.max=this.$cache.cont.find(".irs-max"),this.$cache.from=this.$cache.cont.find(".irs-from"),this.$cache.to=this.$cache.cont.find(".irs-to"),this.$cache.single=this.$cache.cont.find(".irs-single"),this.$cache.line=this.$cache.cont.find(".irs-line"),this.$cache.grid=this.$cache.cont.find(".irs-grid"),"single"===this.options.type?(this.$cache.cont.append('<span class="irs-bar irs-bar--single"></span><span class="irs-shadow shadow-single"></span><span class="irs-handle single"><i></i><i></i><i></i></span>'),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.edge=this.$cache.cont.find(".irs-bar-edge"),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append('<span class="irs-bar"></span><span class="irs-shadow shadow-from"></span><span class="irs-shadow shadow-to"></span><span class="irs-handle from"><i></i><i></i><i></i></span><span class="irs-handle to"><i></i><i></i><i></i></span>'),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to"),this.setTopHandler()),this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none"),this.appendGrid(),this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.input[0].disabled=!1,this.removeDisableMask(),this.bindEvents()),this.options.disable||(this.options.block?this.appendDisableMask():this.removeDisableMask()),this.options.drag_interval&&(this.$cache.bar[0].style.cursor="ew-resize")},setTopHandler:function(){var t=this.options.min,i=this.options.max,s=this.options.from,
vendor: 4,978 bytes, line 1
1e=this.options.to;s>t&&e===i?this.$cache.s_from.addClass("type_last"):e<i&&this.$cache.s_to.addClass("type_last")},changeLevel:function(t){switch(t){case"single":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_single_fake),this.$cache.s_single.addClass("state_hover");break;case"from":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.$cache.s_from.addClass("state_hover"),this.$cache.s_from.addClass("type_last"),this.$cache.s_to.removeClass("type_last");break;case"to":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_to_fake),this.$cache.s_to.addClass("state_hover"),this.$cache.s_to.addClass("type_last"),this.$cache.s_from.removeClass("type_last");break;case"both":this.coords.p_gap_left=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.coords.p_gap_right=this.toFixed(this.coords.p_to_fake-this.coords.p_pointer),this.$cache.s_to.removeClass("type_last"),this.$cache.s_from.removeClass("type_last")}},appendDisableMask:function(){this.$cache.cont.append('<span class="irs-disable-mask"></span>'),this.$cache.cont.addClass("irs-disabled")},removeDisableMask:function(){this.$cache.cont.remove(".irs-disable-mask"),this.$cache.cont.removeClass("irs-disabled")},remove:function(){this.$cache.cont.remove(),this.$cache.cont=null,this.$cache.line.off("keydown.irs_"+this.plugin_count),this.$cache.body.off("touchmove.irs_"+this.plugin_count),this.$cache.body.off("mousemove.irs_"+this.plugin_count),this.$cache.win.off("touchend.irs_"+this.plugin_count),this.$cache.win.off("mouseup.irs_"+this.plugin_count),c&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count)),this.$cache.grid_labels=[],this.coords.big=[],this.coords.big_w=[],this.coords.big_p=[],this.coords.big_x=[],cancelAnimationFrame(this.raf_id)},bindEvents:function(){!this.no_diapason&&(this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("focus.irs_"+this.plugin_count,this.pointerFocus.bind(this)),this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),"single"===this.options.type?(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.edge.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),this.options.keyboard&&this.$cache.line.on("key
1down.irs_"+this.plugin_count,this.key.bind(this,"keyboard")),c&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this))))},pointerFocus:function(t){if(!this.target){var i,s;i=(s="single"===this.options.type?this.$cache.single:this.$cache.from).offset().left,i+=s.width()/2-1,this.pointerClick("single",{preventDefault:function(){},pageX:i})}},pointerMove:function(t){if(this.dragging){var i=t.pageX||t.originalEvent.touches&&t.originalEvent.touches[0].pageX;this.coords.x_pointer=i-this.coords.x_gap,this.calc()}},pointerUp:function(i){if(this.current_plugin===this.plugin_count)this.is_active&&(this.is_active=!1,this.$cache.cont.find(".state_hover").removeClass("state_hover"),this.force_redraw=!0,c&&t("*").prop("unselectable",!1),this.updateScene(),this.restoreOriginalMinInterval(),(t.contains(this.$cache.cont[0],i.target)||this.dragging)&&this.callOnFinish(),this.dragging=!1)},pointerDown:function(i,s){s.preventDefault();var e=s.pageX||s.originalEvent.touches&&s.originalEvent.touches[0].pageX;2!==s.button&&("both"===i&&this.setTempMinInterval(),i||(i=this.target||"from"),this.current_plugin=this.plugin_count,this.target=i,this.is_active=!0,this.dragging=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=e-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(i),c&&t("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(t,i){i.preventDefault();var s=i.pageX||i.originalEvent.touches&&i.originalEvent.touches[0].pageX;2!==i.button&&(this.current_plugin=this.plugin_count,this.target=t,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(s-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(t,i){if(this.current_plugin===this.plugin_count&&!i.altKey&&!i.ctrlKey&&!i.shiftKey&&!i.metaKey){switch(i.which){case 83:case 65:case 40:case 37:i.preventDefault(),this.moveByKey(!1);break;case 87:case 68:case 38:case 39:i.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(t){var i=this.coords.p_pointer,s=(this.options.max-this.options.min)/100;s=this.options.step/s,t?i+=s:i-=s,this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*i),this.is_key=!0,this.calc()},setMinMax:function(){if(this.options){if(this.options.hide_min_max){this.$cache.min[0].style.display="none",this.$cache.max[0].style.display="none";return}if(this.options.values.length)this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]));else{var t=this._prettify(this.options.min),i=this._prettify(this.options.max);this.result.min_pretty=t,this.result.max_pretty=i,this.$cache.min.html(this.decorate(t,this.options.min)),this.$cache.max.html(this.decorate(i,this.options.max))}this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)}},setTempMinInterval:function(){var t=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval),this.options.min_interval=t},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(t){if(this.options){if(this.calc_count++,(10===this.calc_count||t)&&(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent()),this.coords.w_rs){this.calcPointerPercent();var i=this.getHandleX();switch("both"===this.target&&(this.coords.p_gap=0,i=this.getHandleX()),"click"===this.target&&(this.coords.p_gap=this.coords.p_handle/2,i=this.getHandleX(),this.options.drag_interval?this.target="both_one":this.target=this.chooseHandle(i)),this.target){case"base":var s=(this.options.max-this.options.min)/100,e=(this.result.from-this.options.min)/s,o=(this.result.to-this.options.min)/s;this.coords.p_single_real=this.toFixed(e),this.coords.p_from_real=this.toFixed(e),this.coords.p_to_real=this.toFixed(o),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real),this.target=null;break;case"single":if(this.options.from_fixed)break;this.coords.p_single_real=this.convertToRealPercent(i),this.coords.p_single_real=this.calcWithStep(this.coords.p_single_real),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);break;case"from":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(i),this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case"to":if(this.options.to_fixed)break;this.coords.p_to_real=this.convertToRealPercent(i),this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real<this.coords.p_from_real&&(this.coords.p_to_real=this.coords.p_from_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_real=this.checkMaxInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both":if(this.options.from_fixed||this.options.to_fixed)break;i=this.toFixed(i+.001*this.coords.p_handle),this.coords.p_from_real=this.convertToRealPercent(i)-this.coords.p_gap_left,this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.convertToRealPercent(i)+this.coords.p_gap_right,this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both_one":if(this.options.from_fixed||this.options.to_fixed)break;var n=this.convertToRealPercent(i),a=this.result.from_percent,r=this.result.to_percent-a,h=r/2,c=n-h,l=n+h;c<0&&(l=(c=0)+r),l>100&&(c=(l=100)-r),this.coords.p_from_real=this.calcWithStep(c),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.calcWithStep(l),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real)}"single"===this.options.type?(this.coords.p_bar_x=this.coords.p_handle/2,this.coords.p_bar_w=this.coords.p_single_fake,this.result.from_percent=this.coords.p_single_real,this.result.from=this.convertToValue(this.coords.p_single_real),this.result.from_pretty=this._prettify(this.result.from),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from])):(this.coords.p_bar_x=this.toFixed(this.coords.p_from_fake+this.coords.p_handle/2),this.coords.p_bar_w=this.toFixed(this.coords.p_to_fake-this.coords.p_from_fake),this.result.from_percent=this.coords.p_from_real,this.result.from=this.convertToValue(this.coords.p_from_real),this.result.from_pretty=this._prettify(this.result.from),this.result.to_percent=this.coords.p_to_real,this.result.to=this.convertToValue(this.coords.p_to_real),this.result.to_pretty=this._prettify(this.result.to),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from],this.result.to_value=this.options.values[this.result.to])),this.calcMinMax(),this.calcLabels()}}},calcPointerPercent:function(){if(!this.coords.w_rs){this.coords.p_pointer=0;return}this.coords.x_pointer<0||isNaN(this.coords.x_pointer)?this.coords.x_pointer=0:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)},convertToRealPercent:function(t){return t/(100-this.coords.p_handle)*100},convertToFakePercent:function(t){return t/100*(100-this.coords.p_handle)}
1,getHandleX:function(){var t=100-this.coords.p_handle,i=this.toFixed(this.coords.p_pointer-this.coords.p_gap);return i<0?i=0:i>t&&(i=t),i},calcHandlePercent:function(){"single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100)},chooseHandle:function(t){return"single"===this.options.type?"single":t>=this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2?this.options.to_fixed?"from":"to":this.options.from_fixed?"to":"from"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&("single"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single_fake+this.coords.p_handle/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake)):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from_fake=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=this.coords.p_from_fake+this.coords.p_handle/2-this.labels.p_from_fake/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from_fake),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to_fake=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to_fake+this.coords.p_handle/2-this.labels.p_to_fake/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=this.checkEdges(this.labels.p_to_left,this.labels.p_to_fake),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to_fake)/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake)))},updateScene:function(){this.raf_id&&(cancelAnimationFrame(this.raf_id),this.raf_id=null),clearTimeout(this.update_tm),this.update_tm=null,this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){if(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs)this.coords.w_rs!==this.coords.w_rs_old&&(this.target="base",this.is_resize=!0),(this.coords.w_rs!==this.coords.w_rs_old||this.force_redraw)&&(this.setMinMax(),this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow()),this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)&&((this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||this.is_key)&&(this.drawLabels(),this.$cache.bar[0].style.left=this.coords.p_bar_x+"%",this.$cache.bar[0].style.width=this.coords.p_bar_w+"%","single"===this.options.type?(this.$cache.bar[0].style.left=0,this.$cache.bar[0].style.width=this.coords.p_bar_w+this.coords.p_bar_x+"%",this.$cache.s_single[0].style.left=this.coords.p_single_fake+"%",this.$cache.single[0].style.left=this.labels.p_single_left+"%"):(this.$cache.s_from[0].style.left=this.coords.p_from_fake+"%",this.$cache.s_to[0].style.left=this.coords.p_to_fake+"%",(this.old_from!==this.result.from||this.force_redraw)&&(this.$cache.from[0].style.left=this.labels.p_from_left+"%"),(this.old_to!==this.result.to||this.force_redraw)&&(this.$cache.to[0].style.left=this.labels.p_to_left+"%"),this.$cache.single[0].style.left=this.labels.p_single_left+"%"),this.writeToInput(),this.old_from===this.result.from&&this.old_to===this.result.to||this.is_start||(this.$cache.input.trigger("change"),this.$cache.input.trigger("input")),this.old_from=this.result.from,this.old_to=this.result.to,this.is_resize||this.is_update||this.is_start||this.is_finish||this.callOnChange(),(this.is_key||this.is_click)&&(this.is_key=!1,this.is_click=!1,this.callOnFinish()),this.is_update=!1,this.is_resize=!1,this.is_finish=!1),this.is_start=!1,this.is_key=!1,this.is_click=!1,this.force_redraw=!1)},drawLabels:function(){if(this.options){var t,i,s,e,o,n=this.options.values.length,a=this.options.p_values;if(!this.options.hide_from_to){if("single"===this.options.type)n?(t=this.decorate(a[this.result.from]),this.$cache.single.html(t)):(e=this._prettify(this.result.from),t=this.decorate(e,this.result.from),this.$cache.single.html(t)),this.calcLabels(),this.labels.p_single_left<this.labels.p_min+1?this.$cache.min[0].style.visibility="hidden":this.$cache.min[0].style.visibility="visible",this.labels.p_single_left+this.labels.p_single_fake>100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible";else{n?(this.options.decorate_both?(t=this.decorate(a[this.result.from]),t+=this.options.values_separator,t+=this.decorate(a[this.result.to])):t=this.decorate(a[this.result.from]+this.options.values_separator+a[this.result.to]),i=this.decorate(a[this.result.from]),s=this.decorate(a[this.result.to]),this.$cache.single.html(t),this.$cache.from.html(i),this.$cache.to.html(s)):(e=this._prettify(this.result.from),o=this._prettify(this.result.to),this.options.decorate_both?(t=this.decorate(e,this.result.from),t+=this.options.values_separator,t+=this.decorate(o,this.result.to)):t=this.decorate(e+this.options.values_separator+o,this.result.to),i=this.decorate(e,this.result.from),s=this.decorate(o,this.result.to),this.$cache.single.html(t),this.$cache.from.html(i),this.$cache.to.html(s)),this.calcLabels();var r=Math.min(this.labels.p_single_left,this.labels.p_from_left),h=this.labels.p_single_left+this.labels.p_single_fake,c=this.labels.p_to_left+this.labels.p_to_fake,l=Math.max(h,c);this.labels.p_from_left+this.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",this.result.from===this.result.to?("from"===this.target?this.$cache.from[0].style.visibility="visible":"to"===this.target?this.$cache.to[0].style.visibility="visible":this.target||(this.$cache.from[0].style.visibility="visible"),this.$cache.single[0].style.visibility="hidden",l=c):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",l=Math.max(h,c))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),r<this.labels.p_min+1?this.$cache.min[0].style.visibility="hidden":this.$cache.min[0].style.visibility="visible",l>100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible"}}}},drawShadow:function(){var t,i,s,e,o=this.options,n=this.$cache,a="number"==typeof o.from_min&&!isNaN(o.from_min),r="number"==typeof o.from_max&&!isNaN(o.from_max),h="number"==typeof o.to_min&&!isNaN(o.to_min),c="number"==typeof o.to_max&&!isNaN(o.to_max);"single"===o.type?o.from_shadow&&(a||r)?(t=this.convertToPercent(a?o.from_min:o.min),i=this.convertToPercent(r?o.from_max:o.max)-t,t=this.toFixed(t-this.coords.p_handle/100*t),i=this.toFixed(i-this.coords.p_handle/100*i),t+=this.coords.p_handle/2,n.shad_single[0].style.display="block",n.shad_single[0].style.left=t+"%",n.shad_single[0].style.width=i+"%"):n.shad_single[0].style.display="none":(o.from_shadow&&(a||r)?(t=this.convertToPercent(a?o.from_min:o.min),i=this.convertToPercent(r?o.from_max:o.max)-t,t=this.toFixed(t-this.coords.p_handle/100*t),i=this.toFixed(i-this.coords.p_handle/100*i),t+=this.coords.p_handle/2,n.shad_from[0].style.display="block",n.shad_from[0].style.left=t+"%",n.shad_from[0].style.width=i+"%"):n.shad_from[0].style.display="none",o.to_shadow&&(h||c)?(s=this.convertToPercent(h?o.to_min:o.min),e=this.convertToPercent(c?o.to_max:o.max)-s,s=this.toFixed(s-this.coords.p_handle/100*s),e=this.toFixed(e-this.coords.p_handle/100*e),s+=this.coords.p_handle/2,n.shad_to[0].style.display="block",n.shad_to[0].style.left=s+"%",n.shad_to[0].style.width=e+"%"):n.shad_to[0].style.display="none")}
1,writeToInput:function(){"single"===this.options.type?(this.options.values.length?this.$cache.input.prop("value",this.result.from_value):this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from)):(this.options.values.length?this.$cache.input.prop("value",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop("value",this.result.from+this.options.input_values_separator+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to))},callOnStart:function(){this.writeToInput(),this.options.onStart&&"function"==typeof this.options.onStart&&(this.options.scope?this.options.onStart.call(this.options.scope,this.result):this.options.onStart(this.result))},callOnChange:function(){this.writeToInput(),this.options.onChange&&"function"==typeof this.options.onChange&&(this.options.scope?this.options.onChange.call(this.options.scope,this.result):this.options.onChange(this.result))},callOnFinish:function(){this.writeToInput(),this.options.onFinish&&"function"==typeof this.options.onFinish&&(this.options.scope?this.options.onFinish.call(this.options.scope,this.result):this.options.onFinish(this.result))},callOnUpdate:function(){this.writeToInput(),this.options.onUpdate&&"function"==typeof this.options.onUpdate&&(this.options.scope?this.options.onUpdate.call(this.options.scope,this.result):this.options.onUpdate(this.result))},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input"),this.has_tab_index?this.$cache.input.prop("tabindex",-1):this.$cache.input.removeProp("tabindex"),this.has_tab_index=!this.has_tab_index},convertToPercent:function(t,i){var s,e,o=this.options.max-this.options.min;return o?(e=(s=i?t:t-this.options.min)/(o/100),this.toFixed(e)):(this.no_diapason=!0,0)},convertToValue:function(t){var i,s,e=this.options.min,o=this.options.max,n=e.toString().split(".")[1],a=o.toString().split(".")[1],r=0,h=0;if(0===t)return this.options.min;if(100===t)return this.options.max;n&&(r=i=n.length),a&&(r=s=a.length),i&&s&&(r=i>=s?i:s),e<0&&(h=Math.abs(e),e=+(e+h).toFixed(r),o=+(o+h).toFixed(r));var c,l=(o-e)/100*t+e,p=this.options.step.toString().split(".")[1];return p?l=+l.toFixed(p.length):(l/=this.options.step,l*=this.options.step,l=+l.toFixed(0)),h&&(l-=h),(c=p?+l.toFixed(p.length):this.toFixed(l))<this.options.min?c=this.options.min:c>this.options.max&&(c=this.options.max),c},calcWithStep:function(t){var i=Math.round(t/this.coords.p_step)*this.coords.p_step;return i>100&&(i=100),100===t&&(i=100),this.toFixed(i)},checkMinInterval:function(t,i,s){var e,o,n=this.options;return n.min_interval?(e=this.convertToValue(t),o=this.convertToValue(i),"from"===s?o-e<n.min_interval&&(e=o-n.min_interval):e-o<n.min_interval&&(e=o+n.min_interval),this.convertToPercent(e)):t},checkMaxInterval:function(t,i,s){var e,o,n=this.options;return n.max_interval?(e=this.convertToValue(t),o=this.convertToValue(i),"from"===s?o-e>n.max_interval&&(e=o-n.max_interval):e-o>n.max_interval&&(e=o+n.max_interval),this.convertToPercent(e)):t},checkDiapason:function(t,i,s){var e=this.convertToValue(t),o=this.options;return"number"!=typeof i&&(i=o.min),"number"!=typeof s&&(s=o.max),e<i&&(e=i),e>s&&(e=s),this.convertToPercent(e)},toFixed:function(t){return+(t=t.toFixed(20))},_prettify:function(t){return this.options.prettify_enabled?this.options.prettify&&"function"==typeof this.options.prettify?this.options.prettify(t):this.prettify(t):t},prettify:function(t){return t.toString().replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+this.options.prettify_separator)},checkEdges:function(t,i){return this.options.force_edges&&(t<0?t=0:t>100-i&&(t=100-i)),this.toFixed(t)},validate:function(){var t,i,s=this.options,e=this.result,o=s.values,n=o.length;if("string"==typeof s.min&&(s.min=+s.min),"string"==typeof s.max&&(s.max=+s.max),"string"==typeof s.from&&(s.from=+s.from),"string"==typeof s.to&&(s.to=+s.to),"string"==typeof s.step&&(s.step=+s.step),"string"==typeof s.from_min&&(s.from_min=+s.from_min),"string"==typeof s.from_max&&(s.from_max=+s.from_max),"string"==typeof s.to_min&&(s.to_min=+s.to_min),"string"==typeof s.to_max&&(s.to_max=+s.to_max),"string"==typeof s.grid_num&&(s.grid_num=+s.grid_num),s.max<s.min&&(s.max=s.min),n)for(i=0,s.p_values=[],s.min=0,s.max=n-1,s.step=1,s.grid_num=s.max,s.grid_snap=!0;i<n;i++)isNaN(t=+o[i])?t=o[i]:(o[i]=t,t=this._prettify(t)),s.p_values.push(t);("number"!=typeof s.from||isNaN(s.from))&&(s.from=s.min),("number"!=typeof s.to||isNaN(s.to))&&(s.to=s.max),"single"===s.type?(s.from<s.min&&(s.from=s.min),s.from>
1s.max&&(s.from=s.max)):(s.from<s.min&&(s.from=s.min),s.from>s.max&&(s.from=s.max),s.to<s.min&&(s.to=s.min),s.to>s.max&&(s.to=s.max),this.update_check.from&&(this.update_check.from!==s.from&&s.from>s.to&&(s.from=s.to),this.update_check.to!==s.to&&s.to<s.from&&(s.to=s.from)),s.from>s.to&&(s.from=s.to),s.to<s.from&&(s.to=s.from)),("number"!=typeof s.step||isNaN(s.step)||!s.step||s.step<0)&&(s.step=1),"number"==typeof s.from_min&&s.from<s.from_min&&(s.from=s.from_min),"number"==typeof s.from_max&&s.from>s.from_max&&(s.from=s.from_max),"number"==typeof s.to_min&&s.to<s.to_min&&(s.to=s.to_min),"number"==typeof s.to_max&&s.from>s.to_max&&(s.to=s.to_max),e&&(e.min!==s.min&&(e.min=s.min),e.max!==s.max&&(e.max=s.max),(e.from<e.min||e.from>e.max)&&(e.from=s.from),(e.to<e.min||e.to>e.max)&&(e.to=s.to)),("number"!=typeof s.min_interval||isNaN(s.min_interval)||!s.min_interval||s.min_interval<0)&&(s.min_interval=0),("number"!=typeof s.max_interval||isNaN(s.max_interval)||!s.max_interval||s.max_interval<0)&&(s.max_interval=0),s.min_interval&&s.min_interval>s.max-s.min&&(s.min_interval=s.max-s.min),s.max_interval&&s.max_interval>s.max-s.min&&(s.max_interval=s.max-s.min)},decorate:function(t,i){var s="",e=this.options;return e.prefix&&(s+=e.prefix),s+=t,e.max_postfix&&(e.values.length&&t===e.p_values[e.max]?(s+=e.max_postfix,e.postfix&&(s+=" ")):i===e.max&&(s+=e.max_postfix,e.postfix&&(s+=" "))),e.postfix&&(s+=e.postfix),s},updateFrom:function(){this.result.from=this.options.from,this.result.from_percent=this.convertToPercent(this.result.from),this.result.from_pretty=this._prettify(this.result.from),this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to,this.result.to_percent=this.convertToPercent(this.result.to),this.result.to_pretty=this._prettify(this.result.to),this.options.values&&(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min,this.result.max=this.options.max,this.updateFrom(),this.updateTo()},appendGrid:function(){if(this.options.grid){var t,i,s,e,o,n=this.options,a=n.max-n.min,r=n.grid_num,h=0,c=0,l=4,p=0,u="";for(this.calcGridMargin(),n.grid_snap&&(r=a/n.step),r>50&&(r=50),h=this.toFixed(100/r),r>4&&(l=3),r>7&&(l=2),r>14&&(l=1),r>28&&(l=0),t=0;t<r+1;t++){for(s=l,(c=this.toFixed(h*t))>100&&(c=100),this.coords.big[t]=c,e=(c-h*(t-1))/(s+1),i=1;i<=s&&0!==c;i++)u+='<span class="irs-grid-pol small" style="left: '+(p=this.toFixed(c-e*i))+'%"></span>';
1u+='<span class="irs-grid-pol" style="left: '+c+'%"></span>',o=this.convertToValue(c),u+='<span class="irs-grid-text js-grid-text-'+t+'" style="left: '+c+'%">'+(o=n.values.length?n.p_values[o]:this._prettify(o))+"</span>"}this.coords.big_num=Math.ceil(r+1),this.$cache.cont.addClass("irs-with-grid"),this.$cache.grid.html(u),this.cacheGridLabels()}},cacheGridLabels:function(){var t,i,s=this.coords.big_num;for(i=0;i<s;i++)t=this.$cache.grid.find(".js-grid-text-"+i),this.$cache.grid_labels.push(t);this.calcGridLabels()},calcGridLabels:function(){var t,i,s=[],e=[],o=this.coords.big_num;for(t=0;t<o;t++)this.coords.big_w[t]=this.$cache.grid_labels[t].outerWidth(!1),this.coords.big_p[t]=this.toFixed(this.coords.big_w[t]/this.coords.w_rs*100),this.coords.big_x[t]=this.toFixed(this.coords.big_p[t]/2),s[t]=this.toFixed(this.coords.big[t]-this.coords.big_x[t]),e[t]=this.toFixed(s[t]+this.coords.big_p[t]);for(this.options.force_edges&&(s[0]<-this.coords.grid_gap&&(s[0]=-this.coords.grid_gap,e[0]=this.toFixed(s[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),e[o-1]>100+this.coords.grid_gap&&(e[o-1]=100+this.coords.grid_gap,s[o-1]=this.toFixed(e[o-1]-this.coords.big_p[o-1]),this.coords.big_x[o-1]=this.toFixed(this.coords.big_p[o-1]-this.coords.grid_gap))),this.calcGridCollision(2,s,e),this.calcGridCollision(4,s,e),t=0;t<o;t++)i=this.$cache.grid_labels[t][0],this.coords.big_x[t]!==Number.POSITIVE_INFINITY&&(i.style.marginLeft=-this.coords.big_x[t]+"%")},calcGridCollision:function(t,i,s){var e,o,n,a=this.coords.big_num;for(e=0;e<a&&!((o=e+t/2)>=a);e+=t)n=this.$cache.grid_labels[o][0],s[e]<=i[o]?n.style.visibility="visible":n.style.visibility="hidden"},calcGridMargin:function(){if(this.options.grid_margin)this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&("single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[
10].style.width=this.toFixed(100-this.coords.p_handle)+"%",this.$cache.grid[0].style.left=this.coords.grid_gap+"%")},update:function(i){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.update_check.from=this.result.from,this.update_check.to=this.result.to,this.options=t.extend(this.options,i),this.validate(),this.updateResult(i),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(),this.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop("readonly",!1),t.data(this.input,"ionRangeSlider",null),this.remove(),this.input=null,this.options=null)}},t.fn.ionRangeSlider=function(i){return this.each(function(){t.data(this,"ionRangeSlider")||t.data(this,"ionRangeSlider",new l(this,i,h++))})},function(){for(var t=0,i=["ms","moz","webkit","o"],e=0;e<i.length&&!s.requestAnimationFrame;++e)s.requestAnimationFrame=s[i[e]+"RequestAnimationFrame"],s.cancelAnimationFrame=s[i[e]+"CancelAnimationFrame"]||s[i[e]+"CancelRequestAnimationFrame"];s.requestAnimationFrame||(s.requestAnimationFrame=function(i,e){var o=new Date().getTime(),n=Math.max(0,16-(o-t)),a=s.setTimeout(function(){i(o+n)},n);return t=o+n,a}),s.cancelAnimationFrame||(s.cancelAnimationFrame=function(t){clearTimeout(t)})}()});var $w,$d,$b,crossDomainResizeHandler,w=window,d=document,b=document.body;function isTouch(){return!!("ontouchstart"in window||navigator.msMaxTouchPoints)}function urldecode(t){return decodeURIComponent((t+"").replace(/\+/g,"%20"))}function urlencode(t){return encodeURIComponent(t=(t+"").toString()).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")}function appendSubShopId(t){let i="sub_shop_id="+subShopId;return t.includes(i)||-1===subShopId?t:t+(t.includes("?")?"&"+i:"?"+i)}function uploadImages(t){if(void 0!==window.pictureDropzoneObjects){var i=window.pictureDropzoneObjects,s=document.getElementById("cart_quantity");!function e(o){if(o>=i.length){t&&t();return}if(i[o].isCropped()){var n=i[o].getContainer().getAttribute("data-area-name");$.post("image_upload/canvas.php",{data:i[o].toDataURL()}).done(function(t){var i=document.createElement("input");i.type="hidden",i.name="upload_files["+n+"]",i.value=t.filename,s.appendChild(i)}).always(function(){e(o+1)})}else e(o+1)}(0)}}function isInstanceArrayFilled(){return"undefined"!=typeof pictureDropzoneObjects&&pictureDropzoneObjects.length>0}function isOffsetInViewport(t){var i=$(window).scrollTop(),s=i+$(window).height();return t>i&&t<s}function scrollToElement(t,i){if(window.parent!=window)crossDomainIframeResize(!0,parseInt(t.offset().top)+(i||0));else{var s=0;isOffsetInViewport(s=void 0!==t&&t.length&&t.offset()?parseInt(t.offset().top)+(i||0):i||0)||$("html, body").animate({scrollTop:s},500)}}function round(t,i){void 0===i&&(i=1);var s=Math.pow(10,i);return Math.round(t*s)/s}function goBack(){$("#inneriframe").remove(),history.length>1?history.go(-1):window.close(),preventDefault()}function showError(t){var i=$(".inc-error-box");0==i.length&&(i=$("<div>").addClass("inc-error-box").insertBefore($(".button-row, .buttonRow, .buttons-right").first()).slideUp(0)),i.html(t).slideDown()}function hideError(){$(".inc-error-box").slideUp()}function setupBirthdateSelect(){if($("#dob-input-container")&&$(".birthdate-select"))for(var t=new Date().getFullYear(),i=t-17;i>t-110;i--)$("#birthdate_year").append(new Option(i,i))}function splitBirthdate(){var t=$("#dob-input-container").find("input").val().split(".");$("#birthdate_day").val(t[0]),$("#birthdate_month").val(t[1]),$("#birthdate_year").val(t[2])}function adjustCartQuantity(t,i,s){let e=i;e=s?i+1:i-1,$.ajax({url:appendSubShopId("api/frontend/shoppingCart/change"),type:"PUT",data:JSON.stringify({cartProductId:""+t,quantity:e}),success(t,i,s){200==s.status&&updateShoppingCart(t)},error(t){console.log("error loading data on shoppingCart change")}})}function deleteCartItem(t){$.ajax({url:appendSubShopId("api/frontend/shoppingCart/delete/"+t),type:"DELETE",success(t,i,s){200==s.status&&updateShoppingCart(t)},error(t){console.log("error loading data on shoppingCart change")}})}function loadShoppingCart(){$.ajax({url:appendSubShopId("api/frontend/shoppingCart"),type:"GET",success(t,i,s){!1===t.commentsAllowed&&$(".inc-order-comment").remove(),200==s.status&&updateShoppingCart(t)},error(t){console.log("error get data")}})}function updateShoppingCartComment(){let t=$("#inc-order-comment-textarea").val();$.ajax({url:appendSubShopId("api/frontend/shoppingCart/comment"),type:"GET",data:JSON.stringify({comment:t}),error(t){console.log("error get data")}})}
1function redeemVoucher(){let t=$("#infobox-cart-redeem-coupon-input").val();$.ajax({url:appendSubShopId("api/frontend/shoppingCart/addPromocode"),type:"POST",data:JSON.stringify({gv_redeem_code:t}),success(t,i,s){200==s.status&&t.items?(updateShoppingCart(t),$("#infobox-cart-redeem-message").html("Coupon wurde eingel\xf6st").removeClass().addClass("inc-success-box")):$("#infobox-cart-redeem-message").html("Coupon konnte nicht eingel\xf6st werden").removeClass().addClass("inc-message-box")},error(t){console.log("error get data")}}),loadShoppingCart()}function updateShoppingCart(t){let i=0;if($(".infobox-cart-content-tbody").html(""),t.items&&t.items.length>0)for(let s of t.items){let e='<tr class="infobox-cart-items" data-qty="'+s.quantity+'">';var o="",n="";if(i+=s.quantity,"1"===showCartItemQuantity||!0===showCartItemQuantity){let a="";1===s.quantity&&(a="inc-cart-quantity-adjust-disabled"),o=' <div class="inc-cart-quantity-inner"> <button class="inc-cart-quantity-adjust inc-cart-quantity-adjust-minus '+a+'" onclick="adjustCartQuantity(`'+s.id+"`,"+s.quantity+', false)"> <span class="icon-minus" aria-hidden="true"></span> <span class="sr-only">Ein Produkt entfernen</span> </button> <span class="cart-items-info-qty">'+s.quantity+'</span> <button class="inc-cart-quantity-adjust inc-cart-quantity-adjust-plus" onclick="adjustCartQuantity(`'+s.id+"`,"+s.quantity+', true)"> <span class="icon-plus" aria-hidden="true"></span> <span class="sr-only">Weiteres Produkt hinzuf\xfcgen</span> </button> </div>\n'}else n='<span class="cart-items-info-qty">'+s.quantity+" x </span>";let r="";("1"===showCartItemDelete||!0===showCartItemDelete)&&(r='<span class="cart-items-info-delete"> <button class="inc-cart-delete" onclick="deleteCartItem(`'+s.id+'`)"> <span class="icon-close" aria-hidden="true" aria-label="Delete"></span> </button> </span>');let h="";s.additionalData.points&&(h=1===s.additionalData.points?'<span class="inc-price-points">'+s.additionalData.points+pointSingleLabel+"</span>":'<span class="inc-price-points">'+s.additionalData.points+pointsMultipleLabel+"</span>"),e="1"===showCartImage||!0===showCartImage?e+'<td class="cart-items-image"><img src="'+s.product.media?.data?.source+'" alt="'+s.product.name+'" aria-hidden="true"/></td><td class="cart-items-text" colspan="2"> <div class="cart-items-info-row">'+n+s.product.name+r+'</div><div class="cart-items-info-row">'+o+'<span class="cart-items-info-price">'+s.product.priceInfo.priceFormatted+h+"</span></div></td></tr>":e+' <td class="cart-items-text">'+n+s.product.name+o+'</td><td class="cart-items-price">'+s.product.priceInfo.priceFormatted+h+r+"</td></tr>",$(".infobox-cart-content-tbody").append(e),$(".infobox-cart").removeClass("infobox-cart-empty")}else $(".infobox-cart").addClass("infobox-cart-empty");if($("#infobox-cart-total-sum").html(t.priceTotal?.priceFormatted),t.bonusPoints?.totalPoints){let c='<span class="inc-price-points">';t.bonusPoints?.totalPoints===1?c+=t.bonusPoints?.totalPoints+pointSingleLabel:c+=t.bonusPoints?.totalPoints+pointsMultipleLabel,c+="</span>",$("#infobox-cart-total-points").html(c)}$("#inc-cartItemCount").html(i)}$().ready(function(){$w=$(w),$d=$(d),$b=$("body"),$(window).scroll(function(){$(window).scrollTop()>300?$(".standalone").addClass("scrolling"):$(".standalone").removeClass("scrolling")});var t=$(".sidebar-inc");if(t.length>0){var i=$("#navtrail_anchor");t.height()>i.height()&&i.css("min-height",t.height())}function s(){"function"==typeof crossDomainIframeResize&&(crossDomainResizeHandler&&clearTimeout(crossDomainResizeHandler),crossDomainResizeHandler=setTimeout(function(){crossDomainIframeResize(!1)},500))}$(".tooltip-container").on("mouseover",function(){$(this).parent().find(".tooltip").addClass("show-tooltip")}).on("mouseout",function(){$(this).parent().find(".tooltip").removeClass("show-tooltip")}),$d.on("click","#show-share-links-toggle",function(){$(this).parent().toggleClass("social-bar-visible")}),$d.find(".inc-nav-item:not(.inc-nav-item-modal-sidebar)").each(function(){$d.on("mouseleave",".inc-nav-item:not(.inc-nav-item-modal-sidebar)",function(t){$(this).removeClass("open")});var t=null,i=this;function s(){$(i).addClass("open"),$(i).find(".inc-nav-link").attr("aria-expanded","true"),window.clearTimeout(t),t=null}$(i).on("focusin",s),$(i).on("mouseenter",".inc-nav-link",s),$(i).on("mouseleave focusout",function s(){t=window.setTimeout(function(){$(i).removeClass("open"),$(i).find(".inc-nav-link").attr("aria-expanded","fal
1se")},200)})}),$d.on("click",".inc-nav-item-modal-sidebar .inc-nav-link",function(t){$(this).parent().hasClass("open")?($(this).parent().removeClass("open"),$(".body").removeClass("prevent-scrolling")):($(this).parent().addClass("open"),$(".body").addClass("prevent-scrolling")),loadShoppingCart()}),$d.on("click",".inc-cart-close",function(t){$(".inc-nav-item-modal-sidebar").removeClass("open"),$(".body").removeClass("prevent-scrolling")}),$d.on("click",".inc-modal-menu-sidebar-outside-click",function(t){$(".inc-nav-item-modal-sidebar").removeClass("open"),$(".body").removeClass("prevent-scrolling")}),$d.on("click",".inc-nav-link.inc-nav-cart.inc-modal-control",function(t){try{document.createEvent("TouchEvent"),t.preventDefault()}catch(i){return}}),$(".inc-form-group *").each(function(){var t;("TEXTAREA"==this.tagName||"INPUT"==this.tagName)&&(t=$(this).is("#ticket-filter-price")?$(this).parent().parent():$(this).parent(),(""!=this.value||$(this).is(":focus"))&&t.addClass("touched"))}),$d.on("focusin",".inc-form-group *",function(){var t;if("TEXTAREA"==this.tagName||"INPUT"==this.tagName){if(t=$(this).is("#ticket-filter-price")?$(this).parent().parent():$(this).parent(),this.classList.contains("touched"))return;t.addClass("touched")}}),$d.on("focusout propertychange change click keyup input paste",".inc-form-group *",function(){var t;if(!("TEXTAREA"!=this.tagName&&"INPUT"!=this.tagName||$(this).is(":focus"))){if(t=$(this).is("#ticket-filter-price")?$(this).parent().parent():$(this).parent(),""==this.value)t.removeClass("touched");else{if(this.classList.contains("touched"))return;t.addClass("touched")}}}),$d.on("click",".inc-lightbox-close",function(t){t.preventDefault(),window.closeLightbox()}),$d.on("click",".inc-lightbox-inner",function(t){t.stopPropagation()}),$(".inc-lightbox-switch.inc-prev").click(function(t){var i=parseInt($(".inc-lightbox-content>*:first-child").attr("lightboxpos"))-1;i<0&&(i=lightboxContent.length-1),window.navigateLightbox(i,lightboxContent)}),$(".inc-lightbox-switch.inc-next").click(function(t){var i=parseInt($(".inc-lightbox-content>*:first-child").attr("lightboxpos"))+1;i>=lightboxContent.length&&(i=0),window.navigateLightbox(i,lightboxContent)}),$d.on("click","a.ajax.popup",function(t){var i=$(this).attr("href");return w.open(i,"Versandkosten","scrollbars=1,width=600,height=400"),t.preventDefault(),!1}),$("[name=gender] [value=c]").length>0&&($(".form-section-hide-company").css("display","none"),$("[name=gender]").bind("input change",function(){"c"===$("[name=gender]").val()?$(".form-section-hide-company").slideDown(void 0,function(){s()}
1):$(".form-section-hide-company").slideUp(void 0,function(){s()})}).trigger("change")),$("[name=gender_billing] [value=c]").length>0&&($(".form-section-hide-company-billing").css("display","none"),$("[name=gender_billing]").bind("input change",function(){"c"===$("[name=gender_billing]").val()?$(".form-section-hide-company-billing").slideDown(void 0,function(){s()}):$(".form-section-hide-company-billing").slideUp(void 0,function(){s()})}).trigger("change")),$(".inc-product-item-image img").on("load",function(){s()}),$(window).resize(function(){s()}),adjustProductsListHandler=setTimeout(function(){s()},100),$d.on("keydown","input[type=text],input[type=number]",function(t){if("0"==this.value||parseInt(this.value)>0&&99>parseInt(this.value)&&parseInt(this.value).toString().length==this.value.length)switch(t.which){case 38:case 107:case 187:return this.value=parseInt(this.value)+1,$(this).select().trigger("change"),!1;case 40:case 109:case 189:return"products_qty"==this.name?parseInt(this.value)>1&&(this.value=parseInt(this.value)-1):parseInt(this.value)>0&&(this.value=parseInt(this.value)-1),$(this).select().trigger("change"),!1}}),$d.on("click",".inc-cart-remove a, .cart-delete a, a.inc-cart-quantity-adjust",function(){$("body").addClass("loading")});var e=$("input[name=card_lookup_id]");function o(t){var i=$("#inc-product-item-"+t.attr("data-product-id"));i.find(".inc-product-item-image img").attr("src",t.attr("data-color-image")),i.find(".inc-product-item-desc h3").text(t.attr("data-color-headline"))}e.length&&"undefined"!=typeof textCardId&&e.attr("placeholder",textCardId),$d.on("click",".inc-header a.mobile-sidebar-toggle",function(){$(this).toggleClass("active"),$(".body-inc").toggleClass("show-sidebar")}),$("form").attr("autocomplete","on"),$("body").removeClass("load"),void 0!==$.fn.unveil&&$("img[data-src]").unveil(200),$(".inc-variant-color-directbuy").click(function(){var t=$(this).attr("data-color-buy-now-link"),i=$(this).attr("data-product-id"),s=$("#inc-product-item-"+i);$("#direct-buy-"+i).attr("action",t),s.find(".inc-variant-color").removeClass("inc-variant-color-selected"),$(this).addClass("inc-variant-color-selected"),o($(this)),s.find(".inc-product-item-image-url-hidden").val($(this).attr("data-color-image")),s.find(".inc-product-item-hidden-name").val($(this).attr("data-color-headline"))}),$(".inc-product-item-extras .inc-variant-color").mouseenter(function(){o($(this)),$(this).find(".tooltip").show()}),$(".inc-product-item-extras .inc-variant-color").mouseleave(function(){var t=$(this).attr("data-product-id"),i=$("#inc-product-item-"+t);i.find(".inc-product-item-image img").attr("src",i.find(".inc-product-item-image-url-hidden").val()),i.find(".inc-product-item-desc h3").text(i.find(".inc-product-item-hidden-name").val()),$(this).find(".tooltip").hide()}),$("input[type=checkbox],input[type=radio]").ezMark();var n=!1;$d.on("click",".moduleRowCheckout, .moduleRowSelectedCheckout",function(){if(!n){n=!0,$(this).parent().find(".moduleRowCheckout .ez-radio, .moduleRowSelectedCheckout .ez-radio").removeClass("ez-selected"),$(this).find(".ez-radio").addClass("ez-selected"),n=!1;let t=$(this).next();t.hasClass("moduleRowCheckout-subselect")&&t.find(".moduleSubRowCheckout:first-child").trigger("click")}}),$d.on("click",".moduleSubRowCheckout",function(){n||(n=!0,$(this).parent().find(".moduleSubRowCheckout > .ez-radio").removeClass("ez-selected"),$(this).children(".ez-radio").addClass("ez-selected"),n=!1)}),$(".product-sale-countdown").find(".countdown-inner").each(function(){var t=$(this);void 0!==$.fn.countdown&&t.countdown(t.data("datetime"),function(t){$(this).html(t.strftime("%DT %Hh %Mm %Ss"))})});var a=!0;window.showDropzones=function(t){a=t,$(".inc-product-voucher-image .dropzone").toggleClass("no-style",!t);var i=$(".inc-voucher-preview-button.inc-voucher-preview-button-hide-fields");t?i.text(i.data("hide-text")):i.text(i.data("show-text"))},$d.on("click",".inc-voucher-preview-button.inc-voucher-preview-button-hide-fields",function(t){return window.showDropzones(!a),!1}),$d.on("click",".accordion-button",function(t){var i,e,o=$(this)[0];$(this).parent().toggleClass("open");let n=$(this).siblings(".accordion-content")[0];"true"===o.getAttribute("aria-expanded")?(o.setAttribute("aria-expanded","fal
1se"),(i=n).style.height="0px",i.setAttribute("data-collapsed","true")):(o.setAttribute("aria-expanded","true"),(e=n).style.height=e.scrollHeight+"px",e.setAttribute("data-collapsed","false")),setTimeout(s(),300)});var r=$("#cookie-bar");try{"1"!=localStorage.getItem("cookiesallowed")&&r.css("display","block")}catch(h){console.log("Couldn't get cookie bar localStorage item. "+h)}$("#cookie-btn").click(function(){try{r.slideDown,localStorage.setItem("cookiesallowed","1"),r.css("display","none")}catch(t){console.log("Couldn't set cookie bar localStorage item. "+t)}}),(history.length<=1||-1===document.referrer.indexOf(location.host))&&$("[data-goback-fallback]").each(function(){$(this).attr("href",$(this).data("goback-fallback")).text($(this).data("goback-fallback-text"))})}),$().ready(function(){setupBirthdateSelect(),$("#dob").val()&&splitBirthdate(),$("input, select").bind("input change",function(){if("birthdate_day"===this.id||"birthdate_month"===this.id||"birthdate_year"===this.id){var t=$("#dob-input-container").find("input");if(t.length>0){var i=t.val().split(".");i[0]=$("#birthdate_day").val(),i[1]=$("#birthdate_month").val(),i[2]=$("#birthdate_year").val(),null!=i[0]||null!=i[1]||null!=i[2]?t.val(i.join(".")).addClass("not-empty"):""!==t.val()&&splitBirthdate()}}}).trigger("input")}),"undefined"==typeof twoColumnWindowWidth&&(twoColumnWindowWidth=767),"undefined"==typeof oneColumnWindowWidth&&(oneColumnWindowWidth=400),"undefined"==typeof cSliderMinItems&&(cSliderMinItems=1),"undefined"==typeof cSliderMaxItems&&(cSliderMaxItems=3),"undefined"==typeof voucherSliderCenterMode&&(voucherSliderCenterMode=!1),$().ready(function(){"function"==typeof $.fn.slick&&$(".inc-category-list-item-wrapper.scrollable").slick({infinite:!1,slidesToShow:cSliderMaxItems,slidesToScroll:cSliderMaxItems,centerMode:voucherSliderCenterMode,arrows:voucherSliderShowArrows,dots:voucherSliderShowDots,customPaging:function(t,i){return"<button>"+(i+1).toString()+"</button>"},responsive:[{breakpoint:twoColumnWindowWidth,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:oneColumnWindowWidth,settings:{slidesToShow:cSliderMinItems,slidesToScroll:cSliderMinItems}}]})}),"undefined"==typeof twoColumnWindowWidth&&(twoColumnWindowWidth=767),"undefined"==typeof oneColumnWindowWidth&&(oneColumnWindowWidth=400),"undefined"==typeof vSliderMinItems&&(vSliderMinItems=1),"undefined"==typeof vSliderMaxItems&&(vSliderMaxItems=3),"undefined"==typeof voucherSliderCenterMode&&(voucherSliderCenterMode=!1),$().ready(function(){"function"==typeof $.fn.slick&&$(".inc-product-list-item-wrapper.scrollable").slick({infinite:!1,slidesToShow:vSliderMaxItems,slidesToScroll:vSliderMaxItems,centerMode:voucherSliderCenterMode,arrows:voucherSliderShowArrows,dots:voucherSliderShowDots,customPaging:function(t,i){return"<button>"+(i+1).toString()+"</button>"},responsive:[{breakpoint:twoColumnWindowWidth,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:oneColumnWindowWidth,settings:{slidesToShow:vSliderMinItems,slidesToScroll:vSliderMinItems}}]})}),function(t,i){function s(i){Array.isArray(i)&&i.length>1&&($(".inc-lightbox-switch").attr("disabled",!1),t.removeEventListener("keydown",o),t.addEventListener("keydown",o))}function e(s,e,o){var a=$("#inc-lightbox");if(!a.length)throw Error("No lightbox was found");if(!a.hasClass("show")){c=l=a[0],r=i.activeElement,h=i.activeElement,i.addEventListener("focus",p,!0),a.find(".inc-lightbox-content").append(s);var l,u=a.find(".inc-lightbox-header");e?(u.show(),u.html(e)):u.hide(),o&&a.addClass(o),t.removeEventListener("keydown",n),t.addEventListener("keydown",n),a.addClass("show"),$("input[type=checkbox]:not(.ez-hide),input[type=radio]:not(.ez-hide)").ezMark()}}function o(t){switch(t.key){case"Left":case"ArrowLeft":$(".inc-lightbox-switch.inc-prev").trigger("click");break;case"Right":case"ArrowRight":$(".inc-lightbox-switch.inc-next").trigger("click")}}function n(i){switch(i.key){case"Esc":case"Escape":t.closeLightbox()}}t.showImageLightbox=function(t,i=[]){s(i);e('<img lightboxpos="'+i.indexOf(i.find(i=>i.data==t&&"img"==i.type))+'" src="'+t+'" alt="" onload="javascript:window.repositionLightbox();">')},t.showLightbox=function(t,i="",s=""){e($(t).html(),i,s)},t.showVideoLightbox=function(t,i=[]){s(i);e(` 2 <div class="inc-video-container" id="video-lightbox" lightboxpos="${i.indexOf(i.find(i=>i.data.title==t.title&&"vid"==i.type))}"> 3 <video class="inc-video" id="video-player-lightbox" muted autoplay controls> 4 <source src="${t.videoSrc}" /> 5 </video> 6 </div>`,"","")},t.navigateLightbox=function(t,i=[]){let s=i[t];switch($(".inc-lightbox-content").empty(),s.type){case"img":$("#inc-lightbox .inc-lightbox-inner").addClass("lightbox-img"),$(".inc-lightbox-content").append(`<img lightboxpos="${t}" src="${s.data}" alt="" onload="javascript:window.repositionLightbox();">`);break;case"vid":$("#inc-lightbox .inc-lightbox-inner").removeClass("lightbox-img"),$(".inc-lightbox-content").append(` 7 <div class="inc-video-container" id="video-lightbox" lightboxpos="${t}"> 8 <video class="inc-video" id="video-player-lightbox" muted autoplay controls> 9 <source src="${s.data.videoSrc}" /> 10 </video> 11 </div>`)}},t.showAboEdit=function(i,s,e,o){$("#inc-lightbox .inc-abo-edit>h3").html(i),$("#inc-lightbox .inc-abo-edit>.inc-lightbox-message").html(s),$("#inc-lightbox .inc-abo-edit>.inc-abo-options").html(e),$("#inc-lightbox .inc-abo-edit>.inc-lightbox-buttons>div").html(o),$("#inc-lightbox .inc-abo-edit-inc").addClass("show"),$("#inc-lightbox").addClass("show"),t.repositionLightbox()},t.closeLightbox=function(){i.removeEventListener("focus",p,!0),h&&h!==i.body&&(h.focus(),h=null),$(".inc-lightbox-switch").attr("disabled",!0),t.removeEventListener("keydown",o),t.removeEventListener("keydown",n),$(".inc-lightbox-overlay").removeClass("show"),setTimeout(()=>{$(".inc-added-to-cart").removeClass("visible lightbox-anchor"),$(".inc-ticket-overlay").removeClass("show"),$(".inc-cart-info").removeClass("show"),$(".inc-lightbox-content").empty(),$(".inc-lightbox-header").html(""),$("#inc-lightbox .inc-lightbox-inner").removeClass("lightbox-img lightbox-voucher"),$("#inc-lightbox").removeClass().addClass("inc-lightbox-overlay inc-lightbox-close")},500)},t.repositionLightbox=function(){t.parent!=t&&scrollToElement($(".inc-lightbox-inner"),-50)};var a=!1,r=null,h=null,c=null;function l(t){if(!function t(i){if(i.tabIndex<0||i.disabled)return!1;switch(i.nodeName){case"A":return!!i.href&&"ignore"!==i.rel;case"INPUT":return"hidden"!==i.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0}return!1}(t))return!1;a=!0;try{t.focus()}catch(s){}return a=!1,i.activeElement===t}function p(t){!a&&c&&(c.contains(t.target)?r=t.target:(function t(i){for(var s=0;s<i.childNodes.length;++s){var e=i.childNodes[s];if(l(e)||t(e))return!0}return!1}(c),r===i.activeElement&&function t(i){for(var s=i.childNodes.length-1;s>=0;--s){var e=i.childNodes[s];if(l(e)||t(e))return!0}return!1}(c),r=i.activeElement))}}(window,document),$().ready(function(){if("undefined"!=typeof voucher_print_positions&&voucher_print_positions){var t=[];if(void 0!==voucher_print_positions.picture){t=voucher_print_positions.picture;for(var i=0;i<t.length;
11i++)o("picture",t[i],i+1)}var s=[];if(void 0!==voucher_print_positions.video){s=voucher_print_positions.video;for(var i=0;i<s.length;i++)o("video",s[i])}var e=[];if(void 0!==voucher_print_positions.text){e=voucher_print_positions.text;for(var i=0;i<e.length;i++)o("text",e[i])}"undefined"!=typeof resizeDropzones&&resizeDropzones()}function o(t,i,s){if("undefined"==typeof dropzone_scale&&(dropzone_scale=5),void 0===i)return!1;var e=$("<div>");if("picture"==t){var o=i.h/i.w*(voucher_paper_size.h/voucher_paper_size.w),n=150*dropzone_scale;e.addClass("dropzone picture"),e.attr({"crop-width":n.toString(),"crop-height":(n*o).toString(),"crop-btn-disable-left":"true","crop-btn-disable-horizontal":"true","crop-btn-disable-fit":"true","crop-input":"false","crop-scale":"expand",for:"image_upload_"+i.area_name,"data-area-name":i.area_name});var a='<input class="optional" type="file" name="'+i.area_name+'" id="image_upload_'+i.area_name+'" accept="image/*" />';e.html(a),e.click(function(){$("#personalize_text_desktop_tab").trigger("click")})}return"video"==t&&(e.addClass("dropzone video"),e.attr("for","video_upload_"+i.area_name),e.attr("data-caption",dropzone_add_video||"Video"),e.click(function(){$("#personalize_picture_desktop_tab").trigger("click"),setTimeout(function(){$(".tab-button-mobile.video").is(":visible")&&scrollToElement($(".tab-button-mobile.video"))},500)})),"text"==t&&(e.addClass("dropzone text"),e.attr("for","cke_vouchertext"),e.attr("data-caption",dropzone_add_text||"Text einf\xfcgen"),e.click(function(){$("#personalize_video_desktop_tab").trigger("click"),setTimeout(function(){let t=$("#cke_vouchertext:visible, #vouchertext:visible");t.length&&scrollToElement(t),"object"==typeof CKEDITOR&&CKEDITOR.instances&&CKEDITOR.instances.vouchertext?CKEDITOR.instances.vouchertext.focus():t.length&&t.get(0).focus()},0)}),"number"==typeof VOUCHER_CUSTOMIZE_ANGLE&&0!==VOUCHER_CUSTOMIZE_ANGLE&&e.css({transform:"rotate(-"+VOUCHER_CUSTOMIZE_ANGLE+"deg)","transform-origin":"top left"})),void 0!==i.area_name&&e.attr("data-area-name",i.area_name),e.css({position:"absolute",left:100*i.correctedX+"%",top:100*i.correctedY+"%",width:100*i.correctedW+"%",height:100*i.correctedH+"%"}),100*i.correctedX+100*i.correctedW<50?e.addClass("crop-container-left"):e.addClass("crop-container-right"),e.appendTo($(".voucher-area-target")),!0}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.