1"use strict";function _typeof2(t){return(_typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof2(exports))&&"object"===("undefined"==typeof module?"undefined":_typeof2(module))?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define([],e):"object"===("undefined"==typeof exports?"undefined":_typeof2(exports))?exports["vue-slider-component"]=e(require("vue")):t["vue-slider-component"]=e(t.Vue)}("undefined"!=typeof self?self:void 0,function(n){return r={2350:function(t,e){t.exports=function(n){var s=[];return s.toString=function(){return this.map(function(t){var e=function(t,e){var n=t[1]||"",r=t[3];return r?e&&"function"==typeof btoa?(t=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(r),e=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"}),[n].concat(e).concat([t]).join("\n")):[n].join("\n"):n}(t,n);return t[2]?"@media "+t[2]+"{"+e+"}":e}).join("")},s.i=function(t,e){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(n[o]=!0)}for(r=0;r<t.length;r++){var i=t[r];"number"==typeof i[0]&&n[i[0]]||(e&&!i[2]?i[2]=e:e&&(i[2]="("+i[2]+") and ("+e+")"),s.push(i))}},s}},2638:function(t,e,n){function u(){return(u=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)}function c(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}var d=["attrs","props","domProps"],f=["class","style","directives"],p=["on","nativeOn"];t.exports=function(t){return t.reduce(function(t,e){for(var n in e)if(t[n])if(-1!==d.indexOf(n))t[n]=u({},t[n],e[n]);else if(-1!==f.indexOf(n)){var r=t[n]instanceof Array?t[n]:[t[n]],o=e[n]instanceof Array?e[n]:[e[n]];t[n]=r.concat(o)}else if(-1!==p.indexOf(n))for(var i in e[n]){var s,a;t[n][i]?(s=t[n][i]instanceof Array?t[n][i]:[t[n][i]],a=e[n][i]instanceof Array?e[n][i]:[e[n][i]],t[n][i]=s.concat(a)):t[n][i]=e[n][i]}else if("hook"==n)for(var l in e[n])t[n][l]=t[n][l]?c(t[n][l],e[n][l]):e[n][l];else t[n]=e[n];else t[n]=e[n];return t},{})}},"499e":function(t,e,n){function l(t,e){for(var n=[],r={},o=0;o<e.length;o++){var s=(i=e[o])[0],i={id:t+":"+o,css:i[1],media:i[2],sourceMap:i[3]};r[s]?r[s].parts.push(i):n.push(r[s]={id:s,parts:[i]})}return n}if(n.r(e),n.d(e,"default",function(){return o}),e="undefined"!=typeof document,"undefined"!=typeof DEBUG&&DEBUG&&!e)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");function i(){}var u={},r=e&&(document.head||document.getElementsByTagName("head")[0]),s=null,a=0,c=!1,d=null,f="data-vue-ssr-id",p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function o(s,t,e,n){c=e,d=n||{};var a=l(s,t);return h(a),function(t){for(var e=[],n=0;n<a.length;n++){var r=a[n];(o=u[r.id]).refs--,e.push(o)}t?h(a=l(s,t)):a=[];var o;for(n=0;n<e.length;n++)if(0===(o=e[n]).refs){for(var i=0;i<o.parts.length;i++)o.parts[i]();delete u[o.id]}}}function h(t){for(var e=0;e<t.length;e++){var n=t[e],r=u[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(v(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var i=[];for(o=0;o<n.parts.length;o++)i.push(v(n.parts[o]));u[n.id]={id:n.id,refs:1,parts:i}}}}function y(){var t=document.createElement("style");return t.type="text/css",r.appendChild(t),t}function v(e){var t,n,r,o=document.querySelector("style["+f+'~="'+e.id+'"]');if(o){if(c)return i;o.parentNode.removeChild(o)}return r=p?(t=a++,o=s=s||y(),n=g.bind(null,o,t,!1),g.bind(null,o,t,!0)):(o=y(),n=function(t,e){var n=e.css,r=e.media,o=e.sourceMap;if(r&&t.setAttribute("media",r),d.ssrId&&t.setAttribute(f,e.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,o),function(){o.parentNode.removeChild(o)}),n(e),function(t){t?t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap||n(e=t):r()}}var m,b=(m=[],function(t,e){return m[t]=e,m.filter(Boolean).join("\n")});
1function g(t,e,n,r){n=n?"":r.css,t.styleSheet?t.styleSheet.cssText=b(e,n):(r=document.createTextNode(n),(n=t.childNodes)[e]&&t.removeChild(n[e]),n.length?t.insertBefore(r,n[e]):t.appendChild(r))}},"4abb":function(t,e,n){var r=n("df80");(r="string"==typeof r?[[t.i,r,""]]:r).locals&&(t.exports=r.locals),(0,n("499e").default)("3e7284f8",r,!0,{sourceMap:!1,shadowMode:!1})},"4ed8":function(t,e,n){var r=n("ae61");(r="string"==typeof r?[[t.i,r,""]]:r).locals&&(t.exports=r.locals),(0,n("499e").default)("57c2b2f0",r,!0,{sourceMap:!1,shadowMode:!1})},"556c":function(t,e,n){var r=n("d5ac");(r="string"==typeof r?[[t.i,r,""]]:r).locals&&(t.exports=r.locals),(0,n("499e").default)("f3ffc7f8",r,!0,{sourceMap:!1,shadowMode:!1})},"65d9":function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r,c=(r=n("8bbf"))&&"object"===_typeof2(r)&&"default"in r?r.default:r,d="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function f(n,r,o){(o?Reflect.getOwnMetadataKeys(r,o):Reflect.getOwnMetadataKeys(r)).forEach(function(t){var e=o?Reflect.getOwnMetadata(t,r,o):Reflect.getOwnMetadata(t,r);o?Reflect.defineMetadata(t,e,n,o):Reflect.defineMetadata(t,e,n)})}var p={__proto__:[]}instanceof Array,h=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function o(t,r){(r=void 0===r?{}:r).name=r.name||t._componentTag||t.name;var o=t.prototype;Object.getOwnPropertyNames(o).forEach(function(e){var n;"constructor"!==e&&(-1<h.indexOf(e)?r[e]=o[e]:void 0!==(n=Object.getOwnPropertyDescriptor(o,e)).value?"function"==typeof n.value?(r.methods||(r.methods={}))[e]=n.value:(r.mixins||(r.mixins=[])).push({data:function(){var t={};return t[e]=n.value,t}}):(n.get||n.set)&&((r.computed||(r.computed={}))[e]={get:n.get,set:n.set}))}),(r.mixins||(r.mixins=[])).push({data:function(){return function(r,t){var e=t.prototype._init;t.prototype._init=function(){var t=this,e=Object.getOwnPropertyNames(r);if(r.$options.props)for(var n in r.$options.props)r.hasOwnProperty(n)||e.push(n);e.forEach(function(e){"_"!==e.charAt(0)&&Object.defineProperty(t,e,{get:function(){return r[e]},set:function(t){r[e]=t},configurable:!0})})};var n=new t;t.prototype._init=e;var o={};return Object.keys(n).forEach(function(t){void 0!==n[t]&&(o[t]=n[t])}),o}(this,t)}}),(e=t.__decorators__)&&(e.forEach(function(t){return t(r)}),delete t.__decorators__);var i,s,a,n,l,e,u=(e=(u=Object.getPrototypeOf(t.prototype))instanceof c?u.constructor:c).extend(r);return i=u,s=t,a=e,Object.getOwnPropertyNames(s).forEach(function(t){if("prototype"!==t){var e=Object.getOwnPropertyDescriptor(i,t);if(!e||e.configurable){var n,r=Object.getOwnPropertyDescriptor(s,t);if(!p){if("cid"===t)return;var o=Object.getOwnPropertyDescriptor(a,t);if(e=_typeof2(n=r.value),null!=n&&("object"===e||"function"===e)&&o&&o.value===r.value)return}Object.defineProperty(i,t,r)}}}),d&&(f(n=u,l=t),Object.getOwnPropertyNames(l.prototype).forEach(function(t){f(n.prototype,l.prototype,t)}),Object.getOwnPropertyNames(l).forEach(function(t){f(n,l,t)})),u}function i(e){return"function"==typeof e?o(e):function(t){return o(t,e)}}i.registerHooks=function(t){h.push.apply(h,t)},e.default=i,e.createDecorator=function(r){return function(t,e,n){(t="function"==typeof t?t:t.constructor).__decorators__||(t.__decorators__=[]),"number"!=typeof n&&(n=void 0),t.__decorators__.push(function(t){return r(t,e,n)})}},e.mixins=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return c.extend({mixins:t})}},"8bbf":function(t,e){t.exports=n},ae61:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".vue-slider-dot{position:absolute;will-change:transform;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}",""])},d5ac:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-btt .vue-slider-mark,.vue-slider-ttb .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-btt .vue-slider-mark-step,.vue-slider-ttb .vue-slider-mark-step{left:0}.vue-slider-btt .vue-slider-mark-label,.vue-slider-ttb .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-label,.vue-slider-mark-step{position:absolute}",""])},df80:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}",""])},fb15:function(t,e,n){n.r(e),"undefined"!=typeof window&&(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]);var r=n("2638"),i=n.n(r);function o(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===("undefined"==typeof Reflect?"undefined":_typeof2(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;0<=a;
1a--)(o=t[a])&&(s=(i<3?o(s):3<i?o(e,n,s):o(e,n))||s);return 3<i&&s&&Object.defineProperty(e,n,s),s}var s=n("8bbf"),a=n.n(s),l=n("65d9");r=n.n(l);function u(n){return void 0===n&&(n={}),Object(l.createDecorator)(function(t,e){(t.props||(t.props={}))[e]=n})}function c(t){return(c="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(t){return _typeof2(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":_typeof2(t)})(t)}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n("4ed8"),s=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,p(t).apply(this,arguments))}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(t,a.a),e=t,(n=[{key:"dragStart",value:function(t){if(this.disabled)return!1;this.$emit("drag-start")}},{key:"render",value:function(){var t=arguments[0];return t("div",{ref:"dot",class:this.dotClasses,on:{mousedown:this.dragStart,touchstart:this.dragStart}},[this.$slots.dot||t("div",{class:this.handleClasses,style:this.dotStyle}),"none"!==this.tooltip?t("div",{class:this.tooltipClasses},[this.$slots.tooltip||t("div",{class:this.tooltipInnerClasses,style:this.tooltipStyle},[t("span",{class:"vue-slider-dot-tooltip-text"},[this.tooltipValue])])]):null])}},{key:"dotClasses",get:function(){return["vue-slider-dot",{"vue-slider-dot-disabled":this.disabled,"vue-slider-dot-focus":this.focus}]}},{key:"handleClasses",get:function(){return["vue-slider-dot-handle",{"vue-slider-dot-handle-disabled":this.disabled,"vue-slider-dot-handle-focus":this.focus}]}},{key:"tooltipClasses",get:function(){return["vue-slider-dot-tooltip",["vue-slider-dot-tooltip-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-show":this.showTooltip}]}},{key:"tooltipInnerClasses",get:function(){return["vue-slider-dot-tooltip-inner",["vue-slider-dot-tooltip-inner-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-inner-disabled":this.disabled,"vue-slider-dot-tooltip-inner-focus":this.focus}]}},{key:"showTooltip",get:function(){switch(this.tooltip){case"always":return!0;case"none":return!1;case"focus":return!!this.focus;default:return!1}}},{key:"tooltipValue",get:function(){return this.tooltipFormatter?"string"==typeof this.tooltipFormatter?this.tooltipFormatter.replace(/\{value\}/,String(this.value)):this.tooltipFormatter(this.value):this.value}}])&&d(e.prototype,n),t}(),o([u({default:0})],s.prototype,"value",void 0),o([u()],s.prototype,"tooltip",void 0),o([u()],s.prototype,"dotStyle",void 0),o([u()],s.prototype,"tooltipStyle",void 0),o([u({type:String,validator:function(t){return-1<["top","right","bottom","left"].indexOf(t)},required:!0})],s.prototype,"tooltipPlacement",void 0),o([u({type:[String,Function]})],s.prototype,"tooltipFormatter",void 0),o([u({type:Boolean,default:!1})],s.prototype,"focus",void 0),o([u({default:!1})],s.prototype,"disabled",void 0);var y=s=o([r.a],s);function v(t){return(v="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(t){return _typeof2(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":_typeof2(t)})(t)}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
1function k(t,e){return(k=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function x(t){return"number"==typeof t?"".concat(t,"px"):t}n("556c"),s=function(){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){return!e||"object"!==v(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,g(t).apply(this,arguments))}var e,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&k(t,e)}(t,a.a),e=t,(n=[{key:"labelClickHandle",value:function(t){t.stopPropagation(),this.$emit("pressLabel",this.mark.pos)}},{key:"render",value:function(){var t=arguments[0],e=this.mark;return t("div",{class:this.marksClasses},[this.$slots.step||t("div",{class:this.stepClasses,style:[this.stepStyle,e.style,e.active?this.stepActiveStyle:null,e.active?e.activeStyle:null]}),this.hideLabel?null:this.$slots.label||t("div",{class:this.labelClasses,style:[this.labelStyle,e.labelStyle,e.active?this.labelActiveStyle:null,e.active?e.labelActiveStyle:null],on:{click:this.labelClickHandle}},[e.label])])}},{key:"marksClasses",get:function(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]}},{key:"stepClasses",get:function(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]}},{key:"labelClasses",get:function(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}}])&&m(e.prototype,n),t}(),o([u({required:!0})],s.prototype,"mark",void 0),o([u(Boolean)],s.prototype,"hideLabel",void 0),o([u()],s.prototype,"stepStyle",void 0),o([u()],s.prototype,"stepActiveStyle",void 0),o([u()],s.prototype,"labelStyle",void 0),o([u()],s.prototype,"labelActiveStyle",void 0);var S,P=s=o([r.a],s);function O(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(s=S=S||{})[s.PAGE_UP=33]="PAGE_UP",s[s.PAGE_DOWN=34]="PAGE_DOWN",s[s.END=35]="END",s[s.HOME=36]="HOME",s[s.LEFT=37]="LEFT",s[s.UP=38]="UP",s[s.RIGHT=39]="RIGHT",s[s.DOWN=40]="DOWN";var R,E=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.num=t}var t,n;return t=e,(n=[{key:"decimal",value:function(t,e){var n=this.num,r=this.getDecimalLen(n),o=this.getDecimalLen(t),i=0;switch(e){case"+":i=this.getExponent(r,o),this.num=(this.safeRoundUp(n,i)+this.safeRoundUp(t,i))/i;break;case"-":i=this.getExponent(r,o),this.num=(this.safeRoundUp(n,i)-this.safeRoundUp(t,i))/i;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(n,this.getExponent(r)),this.safeRoundUp(t,this.getExponent(o)))/this.getExponent(r+o);break;case"/":i=this.getExponent(r,o),this.num=this.safeRoundUp(n,i)/this.safeRoundUp(t,i);break;case"%":i=this.getExponent(r,o),this.num=this.safeRoundUp(n,i)%this.safeRoundUp(t,i)/i}return this}},{key:"plus",value:function(t){return this.decimal(t,"+")}},{key:"minus",value:function(t){return this.decimal(t,"-")}},{key:"multiply",value:function(t){return this.decimal(t,"*")}},{key:"divide",value:function(t){return this.decimal(t,"/")}},{key:"remainder",value:function(t){return this.decimal(t,"%")}},{key:"toNumber",value:function(){return this.num}},{key:"getDecimalLen",value:function(t){return("".concat(t).split(".")[1]||"").length}},{key:"getExponent",value:function(t,e){return Math.pow(10,void 0!==e?Math.max(t,e):t)}},{key:"safeRoundUp",value:function(t,e){return Math.round(t*e)}}])&&O(t.prototype,n),e}();function A(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function _(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function j(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}(s=R=R||{})[s.VALUE=1]="VALUE",s[s.INTERVAL=2]="INTERVAL",s[s.MIN=3]="MIN",s[s.MAX=4]="MAX",s[s.ORDER=5]="ORDER";var V=(j(s={},R.VALUE,'The type of the "value" is illegal'),j(s,R.INTERVAL,'The prop "interval" is invali
1d, "(max - min)" cannot be divisible by "interval"'),j(s,R.MIN,'The "value" cannot be less than the minimum.'),j(s,R.MAX,'The "value" cannot be greater than the maximum.'),j(s,R.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),s),C=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.dotsPos=[],this.dotsValue=[],this.data=t.data,this.max=t.max,this.min=t.min,this.interval=t.interval,this.order=t.order,this.marks=t.marks,this.included=t.included,this.process=t.process,this.adsorb=t.adsorb,this.dotOptions=t.dotOptions,this.onError=t.onError,this.order?(this.minRange=t.minRange||0,this.maxRange=t.maxRange||0,this.enableCross=t.enableCross,this.fixed=t.fixed):((t.minRange||t.maxRange||!t.enableCross||t.fixed)&&this.emitError(R.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(t.value)}var t,n;return t=e,(n=[{key:"setValue",value:function(t){this.setDotsValue(Array.isArray(t)?A(t):[t],!0)}},{key:"setDotsValue",value:function(t,e){this.dotsValue=t,e&&this.syncDotsPos()}},{key:"setDotsPos",value:function(t){var e=this;t=this.order?A(t).sort(function(t,e){return t-e}):t;this.dotsPos=t,this.setDotsValue(t.map(function(t){return e.getValueByPos(t)}),this.adsorb)}},{key:"getValueByPos",value:function(n){var r,o=this.parsePos(n);return this.included&&(r=100,this.markList.forEach(function(t){var e=Math.abs(t.pos-n);e<r&&(r=e,o=t.value)})),o}},{key:"syncDotsPos",value:function(){var e=this;this.dotsPos=this.dotsValue.map(function(t){return e.parseValue(t)})}},{key:"getRecentDot",value:function(e){var t=this.dotsPos.map(function(t){return Math.abs(t-e)});return t.indexOf(Math.min.apply(Math,A(t)))}},{key:"getIndexByValue",value:function(t){return this.data?this.data.indexOf(t):new E(+t).minus(this.min).divide(this.interval).toNumber()}},{key:"getValueByIndex",value:function(t){return t<0?t=0:t>this.total&&(t=this.total),this.data?this.data[t]:new E(t).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(t,e){var n,r=(t=this.getValidPos(t,e).pos)-this.dotsPos[e];r&&(n=new Array(this.dotsPos.length),this.fixed?n=this.getFixedChangePosArr(r,e):this.minRange||this.maxRange?n=this.getLimitRangeChangePosArr(t,r,e):n[e]=r,this.setDotsPos(this.dotsPos.map(function(t,e){return t+(n[e]||0)})))}},{key:"getFixedChangePosArr",value:function(r,o){var i=this;return this.dotsPos.forEach(function(t,e){var n;e!==o&&(e=(n=i.getValidPos(t+r,e)).pos,n.inRange||(r=Math.min(Math.abs(e-t),Math.abs(r))*(r<0?-1:1)))}),this.dotsPos.map(function(t){return r})}},{key:"getLimitRangeChangePosArr",value:function(l,u,c){var d=this,f=[{index:c,changePos:u}],p=u;return[this.minRange,this.maxRange].forEach(function(t,e){if(!t)return!1;for(var r,n=0===e,o=(e=0<u,c+(r=n?e?1:-1:e?-1:1)),i=d.dotsPos[o],s=l;d.isPos(i)&&function(t,e){return e=Math.abs(t-e),n?e<d.minRangeDir:e>d.maxRangeDir}(i,s);){var a=d.getValidPos(i+p,o).pos;f.push({index:o,changePos:a-i}),o+=r,s=a,i=d.dotsPos[o]}}),this.dotsPos.map(function(t,e){var n=f.filter(function(t){return t.index===e});return n.length?n[0].changePos:0})}},{key:"isPos",value:function(t){return"number"==typeof t}},{key:"getValidPos",value:function(t,e){var n=this.valuePosRange[e];e=!0;return t<n[0]?(t=n[0],e=!1):t>n[1]&&(t=n[1],e=!1),{pos:t,inRange:e}}},{key:"parseValue",value:function(t){if(this.data)t=this.data.indexOf(t);else if("number"==typeof t||"string"==typeof t){if((t=+t)<this.min)return this.emitError(R.MIN),0;if(t>this.max)return this.emitError(R.MAX),0;if("number"!=typeof t||t!=t)return this.emitError(R.VALUE),0;t=new E(t).minus(this.min).divide(this.interval).toNumber()}return(t=new E(t).multiply(this.gap).toNumber())<0?0:100<t?100:t}},{key:"parsePos",value:function(t){return t=Math.round(t/this.gap),this.getValueByIndex(t)}},{key:"isActiveByPos",value:function(n){return this.processArray.some(function(t){t=(e=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(t,2))[0];var e=e[1];return t<=n&&n<=e})}},{key:"getValues",value:function(){if(this.data)return this.data;for(var t=[],e=0;e<=this.total;e++)t.push(new E(e).multiply(this.interval).plus(this.min).toNumber());return t}},{key:"emitError",value:function(t){this.onError&&this.onError(t,V[t])}},{key:"getDotRange",value:function(t,e,n){return this.dotOptions&&(t=Array.isArray(this.dotOptions)?this.dotOptions[t]:this.dotOptions)&&void 0!==t[e]?this.parseValue(t[e]):n}},{key:"markList",get:function(){var r=this;if(!this.marks)return[];function n(t,e){var n=r.parseValue(t);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);(r="function"==typeof Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})):r).forEach(function(t){j(e,t,n[t])})}return e}({pos:n,value:t,label:t,active:r.isActiveByPos(n)},e)}return!0===this.marks?this.getValues().map(function(t){return n(t)}):"[object Object]"===Object.prototype.toString.call(this.marks)?Object.keys(this.marks).sort(function(t,e){return+t-+e}).map(function(t){var e=r.marks[t];return n(t,"string"!=typeof e?e:{label:e})}):Array.isArray(this.marks)?this.marks.map(function(t){return n(t)}):"function"==typeof this.marks?this.getValues().map(function(t){return{value:t,result:r.marks(t)}}).filter(function(t){return!!t.result}).map(function(t){return n(t.value,t=t.result)}):[]}},{key:"processArray",get:function(){if(this.process){if("function"==typeof this.process)return this.process(this.dotsPos);if(1===this.dotsPos.length)return[[0,this.dotsPos[0]]];if(1<this.dotsPos.length)return[[Math.min.apply(Math,A(this.dotsPos)),Math.max.apply(Math,A(this.dotsPos))]]}return[]}},{key:"total",get:function(){var t;return(t=this.data?this.data.length-1:new E(this.max).minus(this.min).divide(this.interval).toNumber())-Math.floor(t)!=0?(this.emitError(R.INTERVAL),0):t}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.minRange?this.minRange*this.gap:0}},{key:"maxRangeDir",get:function(){return this.maxRange?this.maxRange*this.gap:100}},{key:"valuePosRange",get:function(){var n=this,r=this.dotsPos,o=[];return r.forEach(function(t,e){o.push([Math.max(n.minRange?n.minRangeDir*e:0,!n.enableCross&&r[e-1]||0,n.getDotRange(e,"min",0)),Math.min(n.minRange?100-n.minRangeDir*(r.length-1-e):100,!n.enableCross&&r[e+1]||100,n.getDotRange(e,"max",100))])}),o}},{key:"dotsIndex",get:function(){var e=this;return this.dotsValue.map(function(t){return e.getIndexByValue(t)})}}])&&_(t.prototype,n),e}();function M(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var L=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.states=0,this.map=t}var t,n;return t=e,(n=[{key:"add",value:function(t){this.states|=t}},{key:"delete",value:function(t){this.states&=~t}},{key:"toggle",value:function(t){this.has(t)?this.delete(t):this.add(t)}},{key:"has",value:function(t){return!!(this.states&t)}}])&&M(t.prototype,n),e}();function N(t){return(N="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(t){return _typeof2(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":_typeof2(t)})(t)}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);(r="function"==typeof Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})):r).forEach(function(t){I(e,t,n[t])})}return e}function B(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function I(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function H(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function z(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function F(t){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function $(t,e){return($=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n("4abb");var G,X,K,Y,q,J,Q={None:0,Drag:2,Focus:4};s=function(){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=function(t,e){return!e||"object"!==N(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,F(e).apply(this,arguments))).states=new L(Q),t.scale=1,t.focusDotIndex=0,t}var t,n;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$(t,e)}(e,a.a),t=e,(n=[{key:"onValueChanged",value:function(){!this.states.has(Q.Drag)&&this.isNotSync&&this.control.setValue(this.value)}},{key:"created",value:function(){this.initControl()}},{key:"mounted",value:function(){this.bindEvent()}},{key:"beforeDestroy",value:function(){this.unbindEvent()}},{key:"bindEvent",value:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)}},{key:"unbindEvent",value:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)}},{key:"setScale",value:function(){this.scale=new E(Math.floor(this.isHorizontal?this.$el.offsetWidth:this.$el.offsetHeight)).divide(100).toNumber()}},{key:"initControl",value:function(){var n=this;this.control=new C({value:this.value,data:this.data,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.marks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach(function(e){n.$watch(e,function(t){return!("data"===e&&Array.isArray(n.control.data)&&Array.isArray(t)&&n.control.data.length===t.length&&t.every(function(t,e){return t===n.control.data[e]}))&&(n.control[e]=t,void(-1<["data","max","min","interval"].indexOf(e)&&n.control.syncDotsPos()))})})}},{key:"syncValueByPos",value:function(){var t=this.control.dotsValue;this.isDiff(t,Array.isArray(this.value)?this.value:[this.value])&&this.$emit("change",1===t.length?t[0]:H(t))}},{key:"isDiff",value:function(t,n){return t.length!==n.length||t.some(function(t,e){return t!==n[e]})}},{key:"emitError",value:function(t,e){this.silent||console.error("[VueSlider error]: ".concat(e)),this.$emit("error",t,e)}},{key:"dragStartOnProcess",value:function(t){var e;this.dragOnClick&&(this.setScale(),e=this.getPosByEvent(t),t=this.control.getRecentDot(e),this.dots[t].disabled||(this.dragStart(t),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos()))}},{key:"dragStart",value:function(t){this.focusDotIndex=t,this.setScale(),this.states.add(Q.Drag),this.states.add(Q.Focus),this.$emit("drag-start")}},{key:"dragMove",value:function(t){if(!this.states.has(Q.Drag))return!1;t.preventDefault(),t=this.getPosByEvent(t),this.isCrossDot(t),this.control.setDotPos(t,this.focusDotIndex),this.lazy||this.syncValueByPos(),t=this.control.dotsValue,this.$emit("dragging",1===t.length?t[0]:H(t))}},{key:"isCrossDot",value:function(t){var e;this.canSort&&(e=this.focusDotIndex,(t=t)>this.dragRange[1]?(t=this.dragRange[1],this.focusDotIndex++):t<this.dragRange[0]&&(t=this.dragRange[0],this.focusDotIndex--),e!==this.focusDotIndex&&this.control.setDotPos(t,e))}},{key:"dragEnd",value:function(){var t=this;if(!this.states.has(Q.Drag))return!1;setTimeout(function(){t.included&&t.isNotSync?t.control.setValue(t.value):t.control.syncDotsPos(),t.lazy&&t.syncValueByPos(),t.states.delete(Q.Drag),t.useKeyboard||t.states.delete(Q.Focus),t.$emit("drag-end")})}},{key:"blurHandle",value:function(t){if(!this.states.has(Q.Focus)||!this.$refs.container||this.$refs.container.contains(t.target))return!1;this.states.delete(Q.Focus)}},{key:"clickHandle",value:function(t){if(!this.clickable||this.disabled)return!1;this.states.has(Q.Drag)||(this.setScale(),t=this.getPosByEvent(t),this.setValueByPos(t))}},{key:"focus",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;this.states.add(Q.Focus),this.focusDotIndex=t}},{key:"blur",value:function(){this.states.delete(Q.Focus)}},{key:"getValue",value:function(){var t=this.control.dotsValue;return 1===t.length?t[0]:t}},{key:"getIndex",value:function(){var t=this.control.dotsIndex;return 1===t.length?t[0]:t}},{key:"setValue",value:function(t){this.control.setValue(Array.isArray(t)?H(t):[t]),this.syncValueByPos()}},{key:"setIndex",value:function(t){var e=this;t=Array.isArray(t)?t.map(function(t){return e.control.getValueByIndex(t)}):this.control.getValueByIndex(t);this.setValue(t)}},{key:"setValueByPos",value:function(t){var e=this,n=this.control.getRecentDot(t);if(this.disabled||this.dots[n].disabled)return!1;this.focusDotIndex=n,this.control.setDotPos(t,n),this.syncValueByPos(),this.useKeyboard&&this.states.add(Q.Focus),setTimeout(function(){e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos()})}},{key:"keydownHandle",value:function(t){var n=this;if(!this.useKeyboard||!this.states.has(Q.Focus))return!1;var r,e=this.included&&this.marks,o=function(t,e){if(e.hook){var n=e.hook(t);if("function"==typeof n)return n;if(!n)return null}switch(t.keyCode){case S.UP:return function(t){return"ttb"===e.direction?t-1:t+1};case S.RIGHT:return function(t){return"rtl"===e.direction?t-1:t+1};case S.DOWN:return function(t){return"ttb"===e.direction?t+1:t-1};case S.LEFT:return function(t){return"rtl"===e.direction?t+1:t-1};case S.END:return function(){return e.max};case S.HOME:return function(){return e.min};case S.PAGE_UP:return function(t){return t+10};case S.PAGE_DOWN:return function(t){return t-10};default:return null}}(t,{direction:this.direction,max:e?this.control.markList.length-1:this.control.total,min:0,hook:this.keydownHook});
1o&&(t.preventDefault(),r=-1,t=0,t=e?(this.control.markList.some(function(t,e){return t.value===n.control.dotsValue[n.focusDotIndex]&&(r=o(e),!0)}),r<0?r=0:r>this.control.markList.length-1&&(r=this.control.markList.length-1),this.control.markList[r].pos):(r=o(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])),this.control.parseValue(this.control.getValueByIndex(r))),this.isCrossDot(t),this.control.setDotPos(t,this.focusDotIndex),this.syncValueByPos())}},{key:"getPosByEvent",value:function(t){return function(t,e,n){var r,o="targetTouches"in t?t.targetTouches[0]:t,i=(r=e,i=document.documentElement,t=document.body,{y:(r=r.getBoundingClientRect()).top+(window.pageYOffset||i.scrollTop)-(i.clientTop||t.clientTop||0),x:r.left+(window.pageXOffset||i.scrollLeft)-(i.clientLeft||t.clientLeft||0)});return t=o.pageX-i.x,i=o.pageY-i.y,{x:n?e.offsetWidth-t:t,y:n?e.offsetHeight-i:i}}(t,this.$el,this.isReverse)[this.isHorizontal?"x":"y"]/this.scale}},{key:"renderSlot",value:function(t,e,n,r){var o=this.$createElement,i=this.$scopedSlots[t];return i?r?i(e):o("template",{slot:t},[i(e)]):n}},{key:"render",value:function(){var r=this,o=arguments[0];return o("div",i()([{ref:"container",class:this.containerClasses,style:this.containerStyles,on:{click:this.clickHandle,touchstart:this.dragStartOnProcess,mousedown:this.dragStartOnProcess}},this.$attrs]),[o("div",{class:"vue-slider-rail",style:this.railStyle},[this.processArray.map(function(t,e){return r.renderSlot("process",t,o("div",{class:"vue-slider-process",key:"process-".concat(e),style:t.style}),!0)}),this.marks?o("div",{class:"vue-slider-marks"},[this.control.markList.map(function(t,e){return r.renderSlot("mark",t,o("vue-slider-mark",{key:"mark-".concat(e),attrs:{mark:t,hideLabel:r.hideLabel,stepStyle:r.stepStyle,stepActiveStyle:r.stepActiveStyle,labelStyle:r.labelStyle,labelActiveStyle:r.labelActiveStyle},style:(I(e={},r.isHorizontal?"height":"width","100%"),I(e,r.isHorizontal?"width":"height",r.tailSize),I(e,r.mainDirection,"".concat(t.pos,"%")),e),on:{pressLabel:function(t){return r.setValueByPos(t)}}},[r.renderSlot("step",t,null),r.renderSlot("label",t,null)]),!0)})]):null,this.dots.map(function(t,e){var n;return o("vue-slider-dot",{ref:"dot-".concat(e),key:"dot-".concat(e),attrs:{value:t.value,disabled:t.disabled,focus:t.focus,"dot-style":[t.style,t.disabled?t.disabledStyle:null,t.focus?t.focusStyle:null],tooltip:t.tooltip||r.tooltip,"tooltip-style":[r.tooltipStyle,t.tooltipStyle,t.disabled?t.tooltipDisabledStyle:null,t.focus?t.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(r.tooltipFormatter)?r.tooltipFormatter[e]:r.tooltipFormatter,"tooltip-placement":r.tooltipDirections[e]},style:[r.dotBaseStyle,(I(n={},r.mainDirection,"".concat(t.pos,"%")),I(n,"transition","".concat(r.mainDirection," ").concat(r.animateTime,"s")),n)],on:{"drag-start":function(){return r.dragStart(e)}}},[r.renderSlot("dot",t,null),r.renderSlot("tooltip",t,null)])}),this.renderSlot("default",null,null,!0)])])}},{key:"tailSize",get:function(){return x((this.isHorizontal?this.height:this.width)||4)}},{key:"containerClasses",get:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]}},{key:"containerStyles",get:function(){var e=(t=B(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2))[0],n=t[1],r=this.width?x(this.width):this.isHorizontal?"auto":x(4),t=this.height?x(this.height):this.isHorizontal?x(4):"auto";return{padding:this.contained?"".concat(n/2,"px ").concat(e/2,"px"):this.isHorizontal?"".concat(n/2,"px 0"):"0 ".concat(e/2,"px"),width:r,height:t}}},{key:"processArray",get:function(){var i=this;return this.control.processArray.map(function(t,e){var r=(n=B(t,3))[0],n=(t=n[1],n[2]);t<r&&(r=(o=[t,r])[0],t=o[1]);var o=i.isHorizontal?"width":"height";return{start:r,end:t,index:e,style:T((I(e={},i.isHorizontal?"height":"width","100%"),I(e,i.isHorizontal?"top":"left",0),I(e,i.mainDirection,"".concat(r,"%")),I(e,o,"".concat(t-r,"%")),I(e,"transitionProperty","".concat(o,",").concat(i.mainDirection)),I(e,"transitionDuration","".concat(i.animateTime,"s")),e),i.processStyle,n)}})}},{key:"dotBaseStyle",get:function(){var e=(t=B(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2))[0],n=t[1],t=this.isHorizontal?I({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),WebkitTransform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},"ltr"===this.direction?"left":"right","0"):I({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),WebkitTransform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},"btt"===this.direction?"bottom":"top","0");return T({width:"".concat(e,"px"),height:"".concat(n,"px")},t)}},{key:"mainDirection",get:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top"}}},{key:"isHorizontal",get:function(){return"ltr"===this.direction||"rtl"===this.direction}},{key:"isReverse",get:function(){return"rtl"===this.direction||"btt"===this.direction}},{key:"tooltipDirections",get:function(){var t=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(t)?t:this.dots.map(function(){return t})}},{key:"dots",get:function(){var n=this;return this.control.dotsPos.map(function(t,e){return T({pos:t,index:e,value:n.control.dotsValue[e],focus:n.states.has(Q.Focus)&&n.focusDotIndex===e,disabled:n.disabled,style:n.dotStyle},(Array.isArray(n.dotOptions)?n.dotOptions[e]:n.dotOptions)||{})})}},{key:"animateTime",get:function(){return this.states.has(Q.Drag)?0:this.duration}},{key:"canSort",get:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross}},{key:"isNotSync",get:function(){var n=this.control.dotsValue;return Array.isArray(this.value)?this.value.length!==n.length||this.value.some(function(t,e){return t!==n[e]}):this.value!==n[0]}},{key:"dragRange",get:function(){var t=this.dots[this.focusDotIndex-1],e=this.dots[this.focusDotIndex+1];
1return[t?t.pos:-1/0,e?e.pos:1/0]}}])&&z(t.prototype,n),e}();o([("change",void 0===(G={default:0})&&(G={}),Object(l.createDecorator)(function(t,e){(t.props||(t.props={}))[e]=G,t.model={prop:e,event:"change"}}))],s.prototype,"value",void 0),o([u({type:Boolean,default:!1})],s.prototype,"silent",void 0),o([u({default:"ltr",validator:function(t){return-1<["ltr","rtl","ttb","btt"].indexOf(t)}})],s.prototype,"direction",void 0),o([u({type:[Number,String]})],s.prototype,"width",void 0),o([u({type:[Number,String]})],s.prototype,"height",void 0),o([u({default:14})],s.prototype,"dotSize",void 0),o([u({default:!1})],s.prototype,"contained",void 0),o([u({type:Number,default:0})],s.prototype,"min",void 0),o([u({type:Number,default:100})],s.prototype,"max",void 0),o([u({type:Number,default:1})],s.prototype,"interval",void 0),o([u({type:Boolean,default:!1})],s.prototype,"disabled",void 0),o([u({type:Boolean,default:!0})],s.prototype,"clickable",void 0),o([u({type:Boolean,default:!1})],s.prototype,"dragOnClick",void 0),o([u({type:Number,default:.5})],s.prototype,"duration",void 0),o([u(Array)],s.prototype,"data",void 0),o([u({type:Boolean,default:!1})],s.prototype,"lazy",void 0),o([u({type:String,validator:function(t){return-1<["none","always","focus"].indexOf(t)},default:"focus"})],s.prototype,"tooltip",void 0),o([u({type:[String,Array],validator:function(t){return(Array.isArray(t)?t:[t]).every(function(t){return-1<["top","right","bottom","left"].indexOf(t)})}})],s.prototype,"tooltipPlacement",void 0),o([u({type:[String,Array,Function]})],s.prototype,"tooltipFormatter",void 0),o([u({type:Boolean,default:!1})],s.prototype,"useKeyboard",void 0),o([u(Function)],s.prototype,"keydownHook",void 0),o([u({type:Boolean,default:!0})],s.prototype,"enableCross",void 0),o([u({type:Boolean,default:!1})],s.prototype,"fixed",void 0),o([u({type:Boolean,default:!0})],s.prototype,"order",void 0),o([u(Number)],s.prototype,"minRange",void 0),o([u(Number)],s.prototype,"maxRange",void 0),o([u({type:[Boolean,Object,Array,Function],default:!1})],s.prototype,"marks",void 0),o([u({type:[Boolean,Function],default:!0})],s.prototype,"process",void 0),o([u(Boolean)],s.prototype,"included",void 0),o([u(Boolean)],s.prototype,"adsorb",void 0),o([u(Boolean)],s.prototype,"hideLabel",void 0),o([u()],s.prototype,"dotOptions",void 0),o([u()],s.prototype,"railStyle",void 0),o([u()],s.prototype,"processStyle",void 0),o([u()],s.prototype,"dotStyle",void 0),o([u()],s.prototype,"tooltipStyle",void 0),o([u()],s.prototype,"stepStyle",void 0),o([u()],s.prototype,"stepActiveStyle",void 0),o([u()],s.prototype,"labelStyle",void 0),o([u()],s.prototype,"labelActiveStyle",void 0),o([(X="value",Y=(K=void 0===K?{}:K).deep,q=void 0!==Y&&Y,J=void 0!==(K=K.immediate)&&K,Object(l.createDecorator)(function(t,e){"object"!==_typeof2(t.watch)&&(t.watch=Object.create(null)),"object"!==_typeof2((t=t.watch)[X])||Array.isArray(t[X])?void 0===t[X]&&(t[X]=[]):t[X]=[t[X]],t[X].push({handler:e,deep:q,immediate:J})}))],s.prototype,"onValueChanged",null),(s=o([r()({data:function(){return{control:null}},components:{VueSliderDot:y,VueSliderMark:P}})],s)).VueSliderMark=P,s.VueSliderDot=y,n.d(e,"ERROR_TYPE",function(){return R}),n.d(e,"VueSliderMark",function(){return P}),n.d(e,"VueSliderDot",function(){return y}),e.default=s}},i={},o.m=r,o.c=i,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"===_typeof2(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s="fb15").default;function o(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var r,i});var wRangeSlider={name:"wRangeSlider",components:{VueSlider:window["vue-slider-component"]},filters:"undefined"!=typeof USE_VUEJS_SPLIT?{}:{translate:Translator.translate},template:'\n <div>\n <div v-if="isHandleValueStatic" class="w-range-slider-wrapper">\n <vue-slider\n v-model="content"\n :dotSize="10"\n :min="minPrice"\n :max="maxPrice"\n :clickable="false"\n :tooltip="\'none\'"\n :direction="rngDirection"\n :height="rngHeight"\n :tooltipPlacement="tipPlacement"\n v-on:drag-end="emitContent"\n :minRange="1">\n </vue-slider>\n\n <div class="range-values">
1\n <span class=\'vue-slider-dot-tooltip-text min-value\'>{{ content[0] }}</span>\n <span class=\'vue-slider-dot-tooltip-text max-value\'>{{ content[1] }}</span>\n </div>\n </div>\n\n <vue-slider\n v-else\n v-model="content"\n :dotSize="10"\n :min="minPrice"\n :max="maxPrice"\n :clickable="false"\n :tooltip="\'always\'"\n :direction="rngDirection"\n :height="rngHeight"\n :tooltipPlacement="tipPlacement"\n v-on:drag-end="emitContent"\n :minRange="1">\n </vue-slider>\n </div>\n ',props:{init:null,minPrice:Number,maxPrice:Number,rngDirection:{type:String,default:"ltr"},rngHeight:{type:Number,default:4},tipPlacement:{type:String,default:"bottom"},isHandleValueStatic:{type:Boolean,default:!1}},data:function(){return{content:this.init}},methods:{emitContent:function(){this.$emit("drag-end",this.content)},reloadTemplate:function(){this.content=this.init,this.$forceUpdate()},refreshPricesRange:function(){void 0!==wShop.pricesRange&&(wShop.pricesRange=this.content)}}};
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.