1/*! 2* Circle Progress - v0.1.0 - 2020-01-13 3* https://tigrr.github.io/circle-progress/ 4* Copyright (c) Tigran Sargsyan 5* Licensed MIT 6*/ 7function _classCallCheck(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}!function(m){typeof jQuery<"u"&&jQuery||"function"!=typeof define||!define.amd?m(typeof jQuery<"u"&&jQuery||"object"!=typeof exports?jQuery:require("jquery"),document,window,navigator):define(["jquery"],function(y){return m(y,document,window,navigator)})}(function(m,y,v,n,_){"use strict";var d,e,o=0,l=0<(d=n.userAgent).search(e=/msie\s\d+/i)&&e.exec(d).toString().split(" ")[1]<9&&(m("html").addClass("lt-ie9"),!0);function a(i,s,t){this.VERSION="2.3.1",this.input=i,this.plugin_count=t,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,s=s||{},this.$cache={win:m(v),body:m(y.body),input:m(i),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,p,c=this.$cache.input,u=c.prop("value");for(p 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:" \u2014 ",input_values_separator:";",disable:!1,block:!1,extra_classes:"",scope:null,onStart:null,onChange:null,onFinish:null,onUpdate:null},"INPUT"!==c[0].nodeName&&console&&console.warn&&console.warn("Base element should be <input>!",c[0]),(h={skin:c.data("skin"),type:c.data("type"),min:c.data("min"),max:c.data("max"),from:c.data("from"),to:c.data("to"),step:c.data("step"),min_interval:c.data("minInterval"),max_interval:c.data("maxInterval"),drag_interval:c.data("dragInterval"),values:c.data("values"),from_fixed:c.data("fromFixed"),from_min:c.data("fromMin"),from_max:c.data("fromMax"),from_shadow:c.data("fromShadow"),to_fixed:c.data("toFixed"),to_min:c.data("toMin"),to_max:c.data("toMax"),to_shadow:c.data("toShadow"),prettify_enabled:c.data("prettifyEnabled"),prettify_separator:c.data("prettifySeparator"),force_edges:c.data("forceEdges"),keyboard:c.data("keyboard"),grid:c.data("grid"),grid_margin:c.data("gridMargin"),grid_num:c.data("gridNum"),grid_snap:c.data("gridSnap"),hide_min_max:c.data("hideMinMax"),hide_from_to:c.data("hideFromTo"),prefix:c.data("prefix"),postfix:c.data("postfix"),max_postfix:c.data("maxPostfix"),decorate_both:c.data("decorateBoth"),values_separator:c.data("valuesSeparator"),input_values_separator:c.data("inputValuesSeparator"),disable:c.data("disable"),block:c.data("block"),extra_classes:c.data("extraClasses")}).values=h.values&&h.values.split(","),h)h.hasOwnProperty(p)&&(h[p]!==_&&""!==h[p]||delete h[p]);u!==_&&""!==u&&((u=u.split(h.input_values_separator||s.input_values_separator||";"))[0]&&u[0]==+u[0]&&(u[0]=+u[0]),u[1]&&u[1]==+u[1]&&(u[1]=+u[1]),s&&s.values&&s.values.length?(r.from=u[0]&&s.values.indexOf(u[0]),r.to=u[1]&&s.values.indexOf(u[1])):(r.from=u[0]&&+u[0],r.to=u[1]&&+u[1])),m.extend(r,s),m.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()}Function.prototype.bind||(Function.prototype.bind=function(i){var s=this,t=[].slice;if("function"!=typeof s)throw new TypeError;
7var r=t.call(arguments,1),h=function(){if(this instanceof h){var p=function(){};p.prototype=s.prototype;var c=new p,u=s.apply(c,r.concat(t.call(arguments)));return Object(u)===u?u:c}return s.apply(i,r.concat(t.call(arguments)))};return h}),Array.prototype.indexOf||(Array.prototype.indexOf=function(i,s){var t;if(null==this)throw new TypeError('"this" is null or not defined');var r=Object(this),h=r.length>>>0;if(0==h)return-1;var p=+s||0;if(Math.abs(p)===1/0&&(p=0),h<=p)return-1;for(t=Math.max(0<=p?p:h-Math.abs(p),0);t<h;){if(t in r&&r[t]===i)return t;t++}return-1}),a.prototype={init:function(i){this.no_diapason=!1,this.coords.p_step=this.convertToPercent(this.options.step,!0),this.target="base",this.toggleInput(),this.append(),this.setMinMax(),i?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart()),this.updateScene()},append:function(){this.$cache.input.before('<span class="irs irs--'+this.options.skin+" js-irs-"+this.plugin_count+" "+this.options.extra_classes+'"></span>'
vendor: 2,392 bytes, line 7
7),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
vendor: 5,027 bytes, line 7
7s=this.options.max,r=this.options.to;this.options.min<this.options.from&&r===s?this.$cache.s_from.addClass("type_last"):r<s&&this.$cache.s_to.addClass("type_last")},changeLevel:function(i){switch(i){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),l&&(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
7down.irs_"+this.plugin_count,this.key.bind(this,"keyboard")),l&&(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(i){var s,t;this.target||(s=(t="single"===this.options.type?this.$cache.single:this.$cache.from).offset().left,s+=t.width()/2-1,this.pointerClick("single",{preventDefault:function(){},pageX:s}))},pointerMove:function(i){this.dragging&&(this.coords.x_pointer=(i.pageX||i.originalEvent.touches&&i.originalEvent.touches[0].pageX)-this.coords.x_gap,this.calc())},pointerUp:function(i){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,l&&m("*").prop("unselectable",!1),this.updateScene(),this.restoreOriginalMinInterval(),(m.contains(this.$cache.cont[0],i.target)||this.dragging)&&this.callOnFinish(),this.dragging=!1)},pointerDown:function(i,s){s.preventDefault();var t=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=t-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(i),l&&m("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(i,s){s.preventDefault();var t=s.pageX||s.originalEvent.touches&&s.originalEvent.touches[0].pageX;2!==s.button&&(this.current_plugin=this.plugin_count,this.target=i,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(t-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(i,s){if(!(this.current_plugin!==this.plugin_count||s.altKey||s.ctrlKey||s.shiftKey||s.metaKey)){switch(s.which){case 83:case 65:case 40:case 37:s.preventDefault(),this.moveByKey(!1);break;case 87:case 68:case 38:case 39:s.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(i){var s=this.coords.p_pointer,t=(this.options.max-this.options.min)/100;t=this.options.step/t,i?s+=t:s-=t,this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*s),this.is_key=!0,this.calc()},setMinMax:function(){if(this.options){if(this.options.hide_min_max)return this.$cache.min[0].style.display="none",void(this.$cache.max[0].style.display="none");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 i=this._prettify(this.options.min),s=this._prettify(this.options.max);this.result.min_pretty=i,this.result.max_pretty=s,this.$cache.min.html(this.decorate(i,this.options.min)),this.$cache.max.html(this.decorate(s,this.options.max))}this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)}},setTempMinInterval:function(){var i=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval),this.options.min_interval=i},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(i){if(this.options&&(this.calc_count++,10!==this.calc_count&&!i||(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent()),this.coords.w_rs)){this.calcPointerPercent();var s=this.getHandleX();switch("both"===this.target&&(this.coords.p_gap=0,s=this.getHandleX()),"click"===this.target&&(this.coords.p_gap=this.coords.p_handle/2,s=this.getHandleX(),this.target=this.options.drag_interval?"both_one":this.chooseHandle(s)),this.target){case"base":var t=(this.options.max-this.options.min)/100,r=(this.result.from-this.options.min)/t,h=(this.result.to-this.options.min)/t;this.coords.p_single_real=this.toFixed(r),this.coords.p_from_real=this.toFixed(r),this.coords.p_to_real=this.toFixed(h),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(s),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(s),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(s),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;s=this.toFixed(s+.001*this.coords.p_handle),this.coords.p_from_real=this.convertToRealPercent(s)-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(s)+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 p=this.convertToRealPercent(s),u=this.result.to_percent-this.result.from_percent,g=u/2,f=p-g,x=p+g;f<0&&(x=(f=0)+u),100<x&&(f=(x=100)-u),this.coords.p_from_real=this.calcWithStep(f),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(x),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()}}
vendor: 8,596 bytes, line 7
7,calcPointerPercent:function(){this.coords.w_rs?(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)):this.coords.p_pointer=0},convertToRealPercent:function(i){return i/(100-this.coords.p_handle)*100},convertToFakePercent:function(i){return i/100*(100-this.coords.p_handle)},getHandleX:function(){var i=100-this.coords.p_handle,s=this.toFixed(this.coords.p_pointer-this.coords.p_gap);return s<0?s=0:i<s&&(s=i),s},calcHandlePercent:function(){this.coords.w_handle="single"===this.options.type?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100)},chooseHandle:function(i){return"single"===this.options.type?"single":this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2<=i?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.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(){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.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 i,s,t,r,h,p=this.options.values.length,c=this.options.p_values;if(!this.options.hide_from_to)if("single"===this.options.type)i=p?this.decorate(c[this.result.from]):(r=this._prettify(this.result.from),this.decorate(r,this.result.from)),this.$cache.single.html(i),this.calcLabels(),this.$cache.min[0].style.visibility=this.labels.p_single_left<this.labels.p_min+1?"hidden":"visible",this.$cache.max[0].style.visibility=this.labels.p_single_left+this.labels.p_single_fake>100-this.labels.p_max-1?"hidden":"visible";else{t=p?(this.options.decorate_both?(i=this.decorate(c[this.result.from]),i+=this.options.values_separator,i+=this.decorate(c[this.result.to])):i=this.decorate(c[this.result.from]+this.options.values_separator+c[this.result.to]),s=this.decorate(c[this.result.from]),this.decorate(c[this.result.to])):(r=this._prettify(this.result.from),h=this._prettify(this.result.to),this.options.decorate_both?(i=this.decorate(r,this.result.from),i+=this.options.values_separator,i+=this.decorate(h,this.result.to)):i=this.decorate(r+this.options.values_separator+h,this.result.to),s=this.decorate(r,this.result.from),this.decorate(h,this.result.to)),this.$cache.single.html(i),this.$cache.from.html(s),this.$cache.to.html(t),this.calcLabels();var u=Math.min(this.labels.p_single_left,this.labels.p_from_left),g=this.labels.p_single_left+this.labels.p_single_fake,f=this.labels.p_to_left+this.labels.p_to_fake,x=Math.max(g,f);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",x=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",f):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",Math.max(g,f))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),this.$cache.min[0].style.visibility=u<this.labels.p_min+1?"hidden":"visible",this.$cache.max[0].style.visibility=x>100-this.labels.p_max-1?"hidden":"visible"}}},drawShadow:function(){var i,s,t,r,h=this.options,p=this.$cache,c="number"==typeof h.from_min&&!isNaN(h.from_min),u="number"==typeof h.from_max&&!isNaN(h.from_max),g="number"==typeof h.to_min&&!isNaN(h.to_min),f="number"==typeof h.to_max&&!isNaN(h.to_max);"single"===h.type?h.from_shadow&&(c||u)?(i=this.convertToPercent(c?h.from_min:h.min),s=this.convertToPercent(u?h.from_max:h.max)-i,i=this.toFixed(i-this.coords.p_handle/100*i),s=this.toFixed(s-this.coords.p_handle/100*s),i+=this.coords.p_handle/2,p.shad_single[0].style.display="block",p.shad_single[0].style.left=i+"%",p.shad_single[0].style.width=s+"%"):p.shad_single[0].style.display="none":(h.from_shadow&&(c||u)?(i=this.convertToPercent(c?h.from_min:h.min),s=this.convertToPercent(u?h.from_max:h.max)-i,i=this.toFixed(i-this.coords.p_handle/100*i),s=this.toFixed(s-this.coords.p_handle/100*s),i+=this.coords.p_handle/2,p.shad_from[0].style.display="block",p.shad_from[0].style.left=i+"%",p.shad_from[0].style.width=s+"%"):p.shad_from[0].style.display="none",h.to_shadow&&(g||f)?(t=this.convertToPercent(g?h.to_min:h.min),r=this.convertToPercent(f?h.to_max:h.max)-t,t=this.toFixed(t-this.coords.p_handle/100*t),r=this.toFixed(r-this.coords.p_handle/100*r),t+=this.coords.p_handle/2,p.shad_to[0].style.display="block",p.shad_to[0].style.left=t+"%",p.shad_to[0].style.width=r+"%"):p.shad_to[0].style.display="none")}
7,writeToInput:function(){"single"===this.options.type?(this.$cache.input.prop("value",this.options.values.length?this.result.from_value:this.result.from),this.$cache.input.data("from",this.result.from)):(this.$cache.input.prop("value",this.options.values.length?this.result.from_value+this.options.input_values_separator+this.result.to_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(i,s){var r=this.options.max-this.options.min;return r?this.toFixed((s?i:i-this.options.min)/(r/100)):(this.no_diapason=!0,0)},convertToValue:function(i){var s,t,r=this.options.min,h=this.options.max,p=r.toString().split(".")[1],c=h.toString().split(".")[1],u=0,g=0;if(0===i)return this.options.min;if(100===i)return this.options.max;p&&(u=s=p.length),c&&(u=t=c.length),s&&t&&(u=t<=s?s:t),r<0&&(r=+(r+(g=Math.abs(r))).toFixed(u),h=+(h+g).toFixed(u));var f,x=(h-r)/100*i+r,b=this.options.step.toString().split(".")[1];return x=b?+x.toFixed(b.length):(x/=this.options.step,+(x*=this.options.step).toFixed(0)),g&&(x-=g),(f=b?+x.toFixed(b.length):this.toFixed(x))<this.options.min?f=this.options.min:f>this.options.max&&(f=this.options.max),f},calcWithStep:function(i){var s=Math.round(i/this.coords.p_step)*this.coords.p_step;return 100<s&&(s=100),100===i&&(s=100),this.toFixed(s)},checkMinInterval:function(i,s,t){var r,h,p=this.options;return p.min_interval?(r=this.convertToValue(i),h=this.convertToValue(s),"from"===t?h-r<p.min_interval&&(r=h-p.min_interval):r-h<p.min_interval&&(r=h+p.min_interval),this.convertToPercent(r)):i},checkMaxInterval:function(i,s,t){var r,h,p=this.options;return p.max_interval?(r=this.convertToValue(i),h=this.convertToValue(s),"from"===t?h-r>p.max_interval&&(r=h-p.max_interval):r-h>p.max_interval&&(r=h+p.max_interval),this.convertToPercent(r)):i},checkDiapason:function(i,s,t){var r=this.convertToValue(i),h=this.options;return"number"!=typeof s&&(s=h.min),"number"!=typeof t&&(t=h.max),r<s&&(r=s),t<r&&(r=t),this.convertToPercent(r)},toFixed:function(i){return+(i=i.toFixed(20))},_prettify:function(i){return this.options.prettify_enabled?this.options.prettify&&"function"==typeof this.options.prettify?this.options.prettify(i):this.prettify(i):i},prettify:function(i){return i.toString().replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+this.options.prettify_separator)},checkEdges:function(i,s){return this.options.force_edges&&(i<0?i=0:100-s<i&&(i=100-s)),this.toFixed(i)},validate:function(){var i,s,t=this.options,r=this.result,h=t.values,p=h.length;if("string"==typeof t.min&&(t.min=+t.min),"string"==typeof t.max&&(t.max=+t.max),"string"==typeof t.from&&(t.from=+t.from),"string"==typeof t.to&&(t.to=+t.to),"string"==typeof t.step&&(t.step=+t.step),"string"==typeof t.from_min&&(t.from_min=+t.from_min),"string"==typeof t.from_max&&(t.from_max=+t.from_max),"string"==typeof t.to_min&&(t.to_min=+t.to_min),"string"==typeof t.to_max&&(t.to_max=+t.to_max),"string"==typeof t.grid_num&&(t.grid_num=+t.grid_num),t.max<t.min&&(t.max=t.min),p)for(t.p_values=[],t.min=0,t.max=p-1,t.step=1,t.grid_num=t.max,t.grid_snap=!0,s=0;s<p;s++)i=+h[s],i=isNaN(i)?h[s]:(h[s]=i,this._prettify(i)),t.p_values.push(i);"number"==typeof t.from&&!isNaN(t.from)||(t.from=t.min),"number"==typeof t.to&&!isNaN(t.to)||(t.to=t.max),"single"===t.type?(t.from<t.min&&(t.from=t.min),t.from>t.max&&(t.from=t.max)):(t.from<t.min&&(t.from=t.min),t.from>t.max&&(t.from=t.max),t.to<t.min&&(t.to=t.min),t.to>t.max&&(t.to=t.max),this.update_check.from&&(this.update_check.from!==t.from&&t.from>t.to&&(t.from=t.to),this.update_check.to!==t.to&&t.to<t.from&&(t.to=t.from)),t.from>t.to&&(t.from=t.to),t.to<t.from&&(t.to=t.from)),("number"!=typeof t.step||isNaN(t.step)||!t.step||t.step<0)&&(t.step=1),"number"==typeof t.from_min&&t.from<t.from_min&&(t.from=t.from_min),"number"==typeof t.from_max&&t.from>t.from_max&&(t.from=t.from_max),"number"==typeof t.to_min&&t.to<t.to_min&&(t.to=t.to_min),"number"==typeof t.to_max&&t.from>t.to_max&&(t.to=t.to_max),r&&(r.min!==t.min&&(r.min=t.min),r.max!==t.max&&(r.max=t.max),(r.from<r.min||r.from>r.max)&&(r.from=t.from),(r.to<r.min||r.to>r.max)&&(r.to=t.to)),("number"!=typeof t.min_interval||isNaN(t.min_interval)||!t.min_interval||t.min_interval<0)&&(t.min_interval=0),("number"!=typeof t.max_interval||isNaN(t.max_interval)||!t.max_interval||t.max_interval<0)&&(t.max_interval=0),t.min_interval&&t.min_interval>t.max-t.min&&(t.min_interval=t.max-t.min),t.max_interval&&t.max_interval>t.max-t.min&&(t.max_interval=t.max-t.min)},decorate:function(i,s){var t="",r=this.options;return r.prefix&&(t+=r.prefix),t+=i,r.max_postfix&&(r.values.length&&i===r.p_values[r.max]||s===r.max)&&(t+=r.max_postfix,r.postfix&&(t+=" ")),r.postfix&&(t+=r.postfix),t},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 i,s,t,r,h,p,c=this.options,u=c.max-c.min,g=c.grid_num,f=0,x=4,b="";for(this.calcGridMargin(),c.grid_snap&&(g=u/c.step),50<g&&(g=50),t=this.toFixed(100/g),4<g&&(x=3),7<g&&(x=2),14<g&&(x=1),28<g&&(x=0),i=0;i<g+1;i++){for(r=x,100<(f=this.toFixed(t*i))&&(f=100),h=((this.coords.big[i]=f)-t*(i-1))/(r+1),s=1;s<=r&&0!==f;s++)b+='<span class="irs-grid-pol small" style="left: '+this.toFixed(f-h*s)+'%"></span>';b+='<span class="irs-grid-pol" style="left: '+f+'%"></span>',p=this.convertToValue(f),b+='<span class="irs-grid-text js-grid-text-'+i+'" style="left: '+f+'%">'+(p=c.values.length?c.p_values[p]:this._prettify(p))+"</span>"}this.coords.big_num=Math.ceil(g+1),this.$cache.cont.addClass("irs-with-grid"),this.$cache.grid.html(b),this.cacheGridLabels()}}
7,cacheGridLabels:function(){var i,s,t=this.coords.big_num;for(s=0;s<t;s++)i=this.$cache.grid.find(".js-grid-text-"+s),this.$cache.grid_labels.push(i);this.calcGridLabels()},calcGridLabels:function(){var i,t=[],r=[],h=this.coords.big_num;for(i=0;i<h;i++)this.coords.big_w[i]=this.$cache.grid_labels[i].outerWidth(!1),this.coords.big_p[i]=this.toFixed(this.coords.big_w[i]/this.coords.w_rs*100),this.coords.big_x[i]=this.toFixed(this.coords.big_p[i]/2),t[i]=this.toFixed(this.coords.big[i]-this.coords.big_x[i]),r[i]=this.toFixed(t[i]+this.coords.big_p[i]);for(this.options.force_edges&&(t[0]<-this.coords.grid_gap&&(t[0]=-this.coords.grid_gap,r[0]=this.toFixed(t[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),r[h-1]>100+this.coords.grid_gap&&(r[h-1]=100+this.coords.grid_gap,t[h-1]=this.toFixed(r[h-1]-this.coords.big_p[h-1]),this.coords.big_x[h-1]=this.toFixed(this.coords.big_p[h-1]-this.coords.grid_gap))),this.calcGridCollision(2,t,r),this.calcGridCollision(4,t,r),i=0;i<h;i++)this.coords.big_x[i]!==Number.POSITIVE_INFINITY&&(this.$cache.grid_labels[i][0].style.marginLeft=-this.coords.big_x[i]+"%")},calcGridCollision:function(i,s,t){var r,h,c=this.coords.big_num;for(r=0;r<c&&!(c<=(h=r+i/2));r+=i)this.$cache.grid_labels[h][0].style.visibility=t[r]<=s[h]?"visible":"hidden"},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_handle="single"===this.options.type?this.$cache.s_single.outerWidth(!1):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[
70].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=m.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),m.data(this.input,"ionRangeSlider",null),this.remove(),this.input=null,this.options=null)}},m.fn.ionRangeSlider=function(i){return this.each(function(){m.data(this,"ionRangeSlider")||m.data(this,"ionRangeSlider",new a(this,i,o++))})},function(){for(var i=0,s=["ms","moz","webkit","o"],t=0;t<s.length&&!v.requestAnimationFrame;++t)v.requestAnimationFrame=v[s[t]+"RequestAnimationFrame"],v.cancelAnimationFrame=v[s[t]+"CancelAnimationFrame"]||v[s[t]+"CancelRequestAnimationFrame"];v.requestAnimationFrame||(v.requestAnimationFrame=function(r,h){var p=(new Date).getTime(),c=Math.max(0,16-(p-i)),u=v.setTimeout(function(){r(p+c)},c);return i=p+c,u}),v.cancelAnimationFrame||(v.cancelAnimationFrame=function(r){clearTimeout(r)})}()});var _extends=Object.assign||function(m){for(var y=1;y<arguments.length;y++){var v=arguments[y];for(var n in v)Object.prototype.hasOwnProperty.call(v,n)&&(m[n]=v[n])}return m},_createClass=function(){function m(y,v){for(var n=0;n<v.length;n++){var _=v[n];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,_.key,_)}}return function(y,v,n){return v&&m(y.prototype,v),n&&m(y,n),y}}(),_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(m){return typeof m}:function(m){return m&&"function"==typeof Symbol&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},CircleProgress=function(){SVGElement.prototype.hasOwnProperty("innerHTML")||Object.defineProperty(SVGElement.prototype,"innerHTML",{get:function(){var d,e,o,l;for(d=document.createElement("div"),e=0,o=(l=this.cloneNode(!0).childNodes).length;o>e;e++)d.appendChild(l[e]);return d.innerHTML},set:function(n){for(var _,o,l,a,i;this.firstChild;)this.firstChild.parentNode.removeChild(this.firstChild);for(n="<svg id='wrapper' xmlns='http://www.w3.org/2000/svg'>"+n+"</svg>",(_=document.createElement("div")).innerHTML=n,i=[],o=0,l=(a=_.querySelector("svg#wrapper").childNodes).length;l>o;o++)i.push(this.appendChild(a[o]));return i},enumerable:!1,configurable:!0});var n,_,d,e,m=(n=function(o,l,a,i){var s,t;return i=i||document,t=Object.create(_),"string"==typeof o&&(o=i.querySelector(o)),o?((s=i.createElementNS("http://www.w3.org/2000/svg","svg")).setAttribute("version","1.1"),l&&s.setAttribute("width",l),a&&s.setAttribute("height",a),l&&a&&s.setAttribute("viewBox","0 0 "+l+" "+a),o.appendChild(s),t.svg=s,t):void 0},_={element:function(o,l,a,i){var s;return s=d(this,o,l,i),a&&(s.el.innerHTML=a),s},_shortcutElement:function(o,l){var a,i,s={};switch(o){case"rect":a=["x","y","width","height","r"];break;case"circle":a=["cx","cy","r"];break;case"path":a=["d"];break;case"text":a=["x","y"],i=l[3]}if(a.length!==l.length)throw new Error("Unexpected number of arguments to "+o+". Expected "+a.length+" arguments, got "+l.length);return a.forEach(function(t){s[t]=l[t]}),this.element.apply(this,[o,s,i])},rect:function(){return this._shortcutElement("rect",arguments)},circle:function(){return this._shortcutElement("circle",arguments)},path:function(){return this._shortcutElement("path",arguments)}},d=function(o,l,a,i,s){var t;return s=s||document,(t=Object.create(e)).el=s.createElementNS("http://www.w3.org/2000/svg",l),t.attr(a),(i?i.el||i:o.svg).appendChild(t.el),t},e={attr:function(o,l){if(void 0===o)return this;if("object"===(typeof o>"u"?"undefined":_typeof(o))){for(var a in o)this.attr(a,o[a]);return this}return void 0===l?this.el.getAttributeNS(null,o):(this.el.setAttribute(o,l),this)},content:function(o){return this.el.innerHTML=o,this}},n);
7!function(){for(var n=0,_=["ms","moz","webkit","o"],d=0;d<_.length&&!window.requestAnimationFrame;++d)window.requestAnimationFrame=window[_[d]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[_[d]+"CancelAnimationFrame"]||window[_[d]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,o){var l=Date.now(),a=Math.max(0,16-(l-n)),i=window.setTimeout(function(){e(l+a)},a);return n=l+a,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}();var y=function n(_,d,e,o,l){var a=n.easings[_],i=window.performance.now?window.performance.now():Date.now();requestAnimationFrame(function t(){var r=(window.performance.now?window.performance.now():Date.now())-i,h=a(r,d,e,o);l(h),o>r?requestAnimationFrame(t):l(d+e)})};y.easings={linear:function(n,_,d,e){return d*n/e+_},easeInCubic:function(n,_,d,e){return d*(n/=e)*n*n+_},easeOutCubic:function(n,_,d,e){return n/=e,d*(--n*n*n+1)+_},easeInOutCubic:function(n,_,d,e){return 1>(n/=e/2)?d/2*n*n*n+_:d/2*((n-=2)*n*n+2)+_},easeInQuadr:function(n,_,d,e){return d*(n/=e)*n*n*n+_},easeOutQuadr:function(n,_,d,e){return n/=e,-d*(--n*n*n*n-1)+_},easeInOutQuadr:function(n,_,d,e){return 1>(n/=e/2)?d/2*n*n*n*n+_:-d/2*((n-=2)*n*n*n-2)+_}};var v=function(){var n_math_polarToCartesian=function(d,e){return{x:d*Math.cos(e*Math.PI/180),y:d*Math.sin(e*Math.PI/180)}},_=function(){function d(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;_classCallCheck(this,d);var a=void 0;if("string"==typeof e&&(e=l.querySelector(e)),!e)throw new Error("CircleProgress: you must pass the container element as the first argument");return e.circleProgress?e.circleProgress:(e.circleProgress=this,this.doc=l,e.setAttribute("role","progressbar"),this.el=e,o=_extends({},d.defaults,o),Object.defineProperty(this,"_attrs",{value:{},enumerable:!1}),a="valueOnCircle"===o.textFormat?16:8,this.graph={paper:m(e,100,100),angle:0},this.graph.paper.svg.setAttribute("class","circle-progress"),this.graph.circle=this.graph.paper.element("circle").attr({class:"circle-progress-circle",cx:50,cy:50,r:47-a/2,fill:"none",stroke:"#ddd","stroke-width":a}),this.graph.sector=this.graph.paper.path(d._makeSectorPath(50,50,47-a/2,0,0)).attr({class:"circle-progress-value",fill:"none",stroke:"#00E699","stroke-width":a}),this.graph.text=this.graph.paper.element("text",{class:"circle-progress-text",x:50,y:50,font:"16px Arial, sans-serif","text-anchor":"middle",fill:"#999"}),this._initText(),void this.attr(["indeterminateText","textFormat","startAngle","clockwise","animation","animationDuration","constrain","min","max","value"].filter(function(i){return i in o}).map(function(i){return[i,o[i]]})))}return _createClass(d,[{key:"value",get:function(){return this._attrs.value},set:function(e){this.attr("value",e)}},{key:"min",get:function(){return this._attrs.min},set:function(e){this.attr("min",e)}},{key:"max",get:function(){return this._attrs.max},set:function(e){this.attr("max",e)}},{key:"startAngle",get:function(){return this._attrs.startAngle},set:function(e){this.attr("startAngle",e)}},{key:"clockwise",get:function(){return this._attrs.clockwise},set:function(e){this.attr("clockwise",e)}},{key:"constrain",get:function(){return this._attrs.constrain},set:function(e){this.attr("constrain",e)}},{key:"indeterminateText",get:function(){return this._attrs.indeterminateText},set:function(e){this.attr("indeterminateText",e)}},{key:"textFormat",get:function(){return this._attrs.textFormat},set:function(e){this.attr("textFormat",e)}},{key:"animation",get:function(){return this._attrs.animation},set:function(e){this.attr("animation",e)}},{key:"animationDuration",get:function(){return this._attrs.animationDuration},set:function(e){this.attr("animationDuration",e)}}]),_createClass(d,[{key:"attr",value:function(e){var o=this;if("string"==typeof e)return 1===arguments.length?this._attrs[e]:(this._set(arguments[0],arguments[1]),this._updateGraph(),this);if("object"!==(typeof e>"u"?"undefined":_typeof(e)))throw new TypeError('Wrong argument passed to attr. Expected object, got "'+(typeof e>"u"?"undefined":_typeof(e))+'"');return Array.isArray(e)||(e=Object.keys(e).map(function(l){return[l,e[l]]})),e.forEach(function(l){return o._set(l[0],l[1])}),this._updateGraph(),this}},{key:"_set",value:function(e,o){var l={value:"aria-valuenow",min:"aria-valuemin",max:"aria-valuemax"},a=void 0;if(void 0===(o=this._formatValue(e,o)))throw new TypeError("Failed to set the "+e+" property on CircleProgress: The provided value is non-finite.");this._attrs[e]!==o&&("min"===e&&o>=this.max||"max"===e&&o<=this.min||("value"===e&&void 0!==o&&this.constrain&&(null!=this.min&&o<this.min&&(o=this.min),null!=this.max&&o>this.max&&(o=this.max)),this._attrs[e]=o,e in l&&(void 0!==o?this.el.setAttribute(l[e],o):this.el.removeAttribute(l[e])),-1!==["min","max","constrain"].indexOf(e)&&(this.value>this.max||this.value<this.min)&&(this.value=Math.min(this.max,Math.max(this.min,this.value))),"textFormat"===e&&(this._initText(),this.graph.sector.attr("stroke-width",a="valueOnCircle"===o?16:8),this.graph.circle.attr("stroke-width",a))))}},{key:"_formatValue",value:function(e,o){switch(e){case"value":case"min":case"max":o=parseFloat(o),isFinite(o)||(o=void 0);break;
7case"startAngle":o=parseFloat(o),o=isFinite(o)?Math.max(0,Math.min(360,o)):void 0;break;case"clockwise":case"constrain":o=!!o;break;case"indeterminateText":o=""+o;break;case"textFormat":if("function"!=typeof o&&-1===["valueOnCircle","horizontal","vertical","percent","value","none"].indexOf(o))throw new Error('Failed to set the "textFormat" property on CircleProgress: the provided value "'+o+'" is not a legal textFormat identifier.');break;case"animation":if("string"!=typeof o)throw new TypeError('Failed to set "animation" property on CircleProgress: the value must be string, '+(typeof o>"u"?"undefined":_typeof(o))+" passed.");if("none"!==o&&!y.easings[o])throw new Error('Failed to set "animation" on CircleProgress: the provided value '+o+" is not a legal easing function name.")}return o}},{key:"_valToAngle",value:function(){var e;return this._isIndeterminate()?0:0===this.max?this.value?360:0:(e=(this.value-this.min)/this.max*360,e=Math.min(360,Math.max(0,e)))}},{key:"_isIndeterminate",value:function(){return!("number"==typeof this.value&&"number"==typeof this.max&&"number"==typeof this.min)}},{key:"_positionValueText",value:function(e){var o=n_math_polarToCartesian(this._getRadius(),e);this.graph.textVal.attr({x:50+o.x,y:50+o.y})}},{key:"_initText",value:function(){switch(this.graph.text.content(""),this.textFormat){case"valueOnCircle":this.graph.textVal=this.graph.paper.element("tspan",{x:0,y:0,class:"circle-progress-text-value","font-size":"12",fill:"valueOnCircle"===this.textFormat?"#fff":"#888"},"",this.graph.text),this.graph.textMax=this.graph.paper.element("tspan",{x:50,y:50,class:"circle-progress-text-max","font-size":"22","font-weight":"bold",fill:"#ddd"},"",this.graph.text),this.graph.text.el.hasAttribute("dominant-baseline")||this.graph.textMax.attr("dy","0.4em");break;case"horizontal":this.graph.textVal=this.graph.paper.element("tspan",{class:"circle-progress-text-value"},"",this.graph.text),this.graph.textSeparator=this.graph.paper.element("tspan",{class:"circle-progress-text-separator"},"/",this.graph.text),this.graph.textMax=this.graph.paper.element("tspan",{class:"circle-progress-text-max"},"",this.graph.text);break;case"vertical":this.graph.text.el.hasAttribute("dominant-baseline")&&this.graph.text.attr("dominant-baseline","text-after-edge"),this.graph.textVal=this.graph.paper.element("tspan",{class:"circle-progress-text-value",x:50,dy:"-0.2em"},"",this.graph.text),this.graph.textSeparator=this.graph.paper.element("tspan",{class:"circle-progress-text-separator",x:50,dy:"0.1em","font-family":"Arial, sans-serif"},"___",this.graph.text),this.graph.textMax=this.graph.paper.element("tspan",{class:"circle-progress-text-max",x:50,dy:"1.2em"},"",this.graph.text)}"vertical"!==this.textFormat&&(this.graph.text.el.hasAttribute("dominant-baseline")?this.graph.text.attr("dominant-baseline","central"):this.graph.text.attr("dy","0.4em"))}},{key:"_updateGraph",value:function(){var e=this,o=this.startAngle-90,l=void 0,a=void 0,i=void 0;this._isIndeterminate()?"valueOnCircle"===this.textFormat&&this._positionValueText(o):(l=this._valToAngle(this.value),a=this._getRadius(),i=this.clockwise,"none"!==this.animation&&l!==this.graph.angle?y(this.animation,this.graph.angle,l-this.graph.angle,this.animationDuration,function(s){e.graph.sector.attr("d",d._makeSectorPath(50,50,a,o,s,i)),e.graph.circle.attr("r",a)}):(this.graph.sector.attr("d",d._makeSectorPath(50,50,a,o,l,i)),this.graph.circle.attr("r",a)),this.graph.angle=l,"valueOnCircle"===this.textFormat&&this._positionValueText((2*o+l)/2)),"function"==typeof this.textFormat?this.graph.text.content(this.textFormat(this.value,this.max)):"value"===this.textFormat?this.graph.text.el.textContent=void 0!==this.value?this.value:this.indeterminateText:"percent"===this.textFormat?this.graph.text.el.textContent=(void 0!==this.value&&null!=this.max?Math.round(this.value/this.max*100):this.indeterminateText)+"%":"none"===this.textFormat?this.graph.text.el.textContent="":(this.graph.textVal.el.textContent=void 0!==this.value?this.value:this.indeterminateText,this.graph.textMax.el.textContent=void 0!==this.max?this.max:this.indeterminateText)}},{key:"_getRadius",value:function(){return 47-Math.max(parseFloat(this.doc.defaultView.getComputedStyle(this.graph.circle.el,null)["stroke-width"]),parseFloat(this.doc.defaultView.getComputedStyle(this.graph.sector.el,null)["stroke-width"]))/2}}],[{key:"_makeSectorPath",value:function(e,o,l,a,i,s){var t=a+(360===i?i-.001:i)*(2*(s=!!s)-1),r=n_math_polarToCartesian(l,a),h=n_math_polarToCartesian(l,t);return["M",e+r.x,o+r.y,"A",l,l,0,+(i>180),+s,e+h.x,o+h.y].join(" ")}}]),d}();return _.defaults={startAngle:0,min:0,max:1,constrain:!0,indeterminateText:"?",clockwise:!0,textFormat:"horizontal",animation:"easeInOutCubic",animationDuration:600},_}();return function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){var _=0,d=Array.prototype.slice;n.cleanData=function(e){return function(o){var l,a,i;for(i=0;null!=(a=o[i]);i++)try{(l=n._data(a,"events"))&&l.remove&&n(a).triggerHandler("remove")}catch{}e(o)}}(n.cleanData),n.widget=function(e,o,l){var a,i,s,t,r={},h=e.split(".")[0];return e=e.split(".")[1],l||(l=o,o=n.Widget),n.expr[":"][(a=h+"-"+e).toLowerCase()]=function(p){return!!n.data(p,a)},n[h]=n[h]||{},i=n[h][e],s=n[h][e]=function(p,c){return this._createWidget?void(arguments.length&&this._createWidget(p,c)):new s(p,c)},n.extend(s,i,{version:l.version,_proto:n.extend({},l),_childConstructors:[]}),(t=new o).options=n.widget.extend({},t.options),n.each(l,function(p,c){return n.isFunction(c)?void(r[p]=(u=function(){return o.prototype[p].apply(this,arguments)},g=function(f){return o.prototype[p].apply(this,f)},function(){var f,x=this._super,b=this._superApply;return this._super=u,this._superApply=g,f=c.apply(this,arguments),this._super=x,this._superApply=b,f})):void(r[p]=c);var u,g}),s.prototype=n.widget.extend(t,{widgetEventPrefix:i&&t.widgetEventPrefix||e},r,{constructor:s,namespace:h,widgetName:e,widgetFullName:a}),i?(n.each(i._childConstructors,function(p,c){var u=c.prototype;n.widget(u.namespace+"."+u.widgetName,s,c._proto)}),delete i._childConstructors):o._childConstructors.push(s),n.widget.bridge(e,s),s}
vendor: 4,760 bytes, line 7
7,n.widget.extend=function(e){for(var o,l,a=d.call(arguments,1),i=0,s=a.length;s>i;i++)for(o in a[i])l=a[i][o],a[i].hasOwnProperty(o)&&void 0!==l&&(e[o]=n.isPlainObject(l)?n.isPlainObject(e[o])?n.widget.extend({},e[o],l):n.widget.extend({},l):l);return e},n.widget.bridge=function(e,o){var l=o.prototype.widgetFullName||e;n.fn[e]=function(a){var i="string"==typeof a,s=d.call(arguments,1),t=this;return i?this.each(function(){var r,h=n.data(this,l);return"instance"===a?(t=h,!1):h?n.isFunction(h[a])&&"_"!==a.charAt(0)?(r=h[a].apply(h,s))!==h&&void 0!==r?(t=r&&r.jquery?t.pushStack(r.get()):r,!1):void 0:n.error("no such method '"+a+"' for "+e+" widget instance"):n.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+a+"'")}):(s.length&&(a=n.widget.extend.apply(null,[a].concat(s))),this.each(function(){var r=n.data(this,l);r?(r.option(a||{}),r._init&&r._init()):n.data(this,l,new o(a,this))})),t}},n.Widget=function(){},n.Widget._childConstructors=[],n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,o){o=n(o||this.defaultElement||this)[0],this.element=n(o),this.uuid=_++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=n(),this.hoverable=n(),this.focusable=n(),o!==this&&(n.data(o,this.widgetFullName,this),this._on(!0,this.element,{remove:function(l){l.target===o&&this.destroy()}}),this.document=n(o.style?o.ownerDocument:o.document||o),this.window=n(this.document[0].defaultView||this.document[0].parentWindow)),this.options=n.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:n.noop,_getCreateEventData:n.noop,_create:n.noop,_init:n.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(n.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:n.noop,widget:function(){return this.element},option:function(e,o){var l,a,i,s=e;if(0===arguments.length)return n.widget.extend({},this.options);if("string"==typeof e)if(s={},l=e.split("."),e=l.shift(),l.length){for(a=s[e]=n.widget.extend({},this.options[e]),i=0;i<l.length-1;i++)a[l[i]]=a[l[i]]||{},a=a[l[i]];if(e=l.pop(),1===arguments.length)return void 0===a[e]?null:a[e];a[e]=o}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];s[e]=o}return this._setOptions(s),this},_setOptions:function(e){var o;for(o in e)this._setOption(o,e[o]);return this},_setOption:function(e,o){return this.options[e]=o,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!o),o&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(e,o,l){var a,i=this;"boolean"!=typeof e&&(l=o,o=e,e=!1),l?(o=a=n(o),this.bindings=this.bindings.add(o)):(l=o,o=this.element,a=this.widget()),n.each(l,function(s,t){function r(){return e||!0!==i.options.disabled&&!n(this).hasClass("ui-state-disabled")?("string"==typeof t?i[t]:t).apply(i,arguments):void 0}"string"!=typeof t&&(r.guid=t.guid=t.guid||r.guid||n.guid++);var h=s.match(/^([\w:-]*)\s*(.*)$/),p=h[1]+i.eventNamespace,c=h[2];c?a.delegate(c,p,r):o.bind(p,r)})},_off:function(e,o){o=(o||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(o).undelegate(o),this.bindings=n(this.bindings.not(e).get()),this.focusable=n(this.focusable.not(e).get()),this.hoverable=n(this.hoverable.not(e).get())},_delay:function(e,o){var a=this;return setTimeout(function l(){return("string"==typeof e?a[e]:e).apply(a,arguments)},o||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(o){n(o.currentTarget).addClass("ui-state-hover")},mouseleave:function(o){n(o.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(o){n(o.currentTarget).addClass("ui-state-focus")},focusout:function(o){n(o.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,o,l){var a,i,s=this.options[e];if(l=l||{},(o=n.Event(o)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),o.target=this.element[0],i=o.originalEvent)for(a in i)a in o||(o[a]=i[a]);return this.element.trigger(o,l),!(n.isFunction(s)&&!1===s.apply(this.element[0],[o
7].concat(l))||o.isDefaultPrevented())}},n.each({show:"fadeIn",hide:"fadeOut"},function(e,o){n.Widget.prototype["_"+e]=function(l,a,i){"string"==typeof a&&(a={effect:a});var s,t=a?!0===a||"number"==typeof a?o:a.effect||o:e;"number"==typeof(a=a||{})&&(a={duration:a}),s=!n.isEmptyObject(a),a.complete=i,a.delay&&l.delay(a.delay),s&&n.effects&&n.effects.effect[t]?l[e](a):t!==e&&l[t]?l[t](a.duration,a.easing,i):l.queue(function(r){n(this)[e](),i&&i.call(l[0]),r()})}})}),jQuery.widget("tl.circleProgress",{options:jQuery.extend({},v.defaults),_create:function(){this.circleProgress=new v(this.element[0],this.options),this.options=this.circleProgress._attrs},_destroy:function(){},_setOptions:function(n){this.circleProgress.attr(n)},value:function(n){return void 0===n?this.options.value:void this._setOptions({value:n})},min:function(n){return void 0===n?this.options.min:void this._setOptions({min:n})},max:function(n){return void 0===n?this.options.max:void this._setOptions({max:n})}}),jQuery.fn.circleProgress.defaults=v.defaults,v}(); 8//# sourceMappingURL=scripts.113ae77e68deea57.js.map
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.