vue-slider-timer-control 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,905 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("vue"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define([], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["vue-slider-timer-control"] = factory(require("vue"));
8
+ else
9
+ root["vue-slider-timer-control"] = factory(root["Vue"]);
10
+ })((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__274__) {
11
+ return /******/ (function() { // webpackBootstrap
12
+ /******/ var __webpack_modules__ = ({
13
+
14
+ /***/ 46:
15
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
16
+
17
+ // style-loader: Adds some css to the DOM by adding a <style> tag
18
+
19
+ // load the styles
20
+ var content = __webpack_require__(113);
21
+ if(content.__esModule) content = content.default;
22
+ if(typeof content === 'string') content = [[module.id, content, '']];
23
+ if(content.locals) module.exports = content.locals;
24
+ // add the styles to the DOM
25
+ var add = (__webpack_require__(548)/* ["default"] */ .A)
26
+ var update = add("b06be540", content, true, {"sourceMap":false,"shadowMode":false});
27
+
28
+ /***/ }),
29
+
30
+ /***/ 72:
31
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
32
+
33
+ // style-loader: Adds some css to the DOM by adding a <style> tag
34
+
35
+ // load the styles
36
+ var content = __webpack_require__(853);
37
+ if(content.__esModule) content = content.default;
38
+ if(typeof content === 'string') content = [[module.id, content, '']];
39
+ if(content.locals) module.exports = content.locals;
40
+ // add the styles to the DOM
41
+ var add = (__webpack_require__(548)/* ["default"] */ .A)
42
+ var update = add("3f289cee", content, true, {"sourceMap":false,"shadowMode":false});
43
+
44
+ /***/ }),
45
+
46
+ /***/ 113:
47
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
48
+
49
+ "use strict";
50
+ __webpack_require__.r(__webpack_exports__);
51
+ /* harmony import */ var _css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
52
+ /* harmony import */ var _css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
53
+ /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
54
+ /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
55
+ // Imports
56
+
57
+
58
+ var ___CSS_LOADER_EXPORT___ = _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
59
+ // Module
60
+ ___CSS_LOADER_EXPORT___.push([module.id, ".vue-slider-disabled{opacity:.5;cursor:not-allowed}.vue-slider-rail{background-color:#ccc;border-radius:15px}.vue-slider-process{background-color:#3498db;border-radius:15px}.vue-slider-mark{z-index:4}.vue-slider-mark:first-child .vue-slider-mark-step,.vue-slider-mark:last-child .vue-slider-mark-step{display:none}.vue-slider-mark-step{width:100%;height:100%;border-radius:50%;background-color:rgba(0,0,0,.16)}.vue-slider-mark-label{font-size:14px;white-space:nowrap}.vue-slider-dot-handle{cursor:pointer;width:100%;height:100%;border-radius:50%;background-color:#fff;box-sizing:border-box;box-shadow:.5px .5px 2px 1px rgba(0,0,0,.32)}.vue-slider-dot-handle-focus{box-shadow:0 0 1px 2px rgba(52,152,219,.36)}.vue-slider-dot-handle-disabled{cursor:not-allowed;background-color:#ccc}.vue-slider-dot-tooltip-inner{font-size:14px;white-space:nowrap;padding:2px 5px;min-width:20px;text-align:center;color:#fff;border-radius:5px;border-color:#3498db;background-color:#3498db;box-sizing:content-box}.vue-slider-dot-tooltip-inner:after{content:\"\";position:absolute}.vue-slider-dot-tooltip-inner-top:after{top:100%;left:50%;transform:translate(-50%);height:0;width:0;border-color:transparent;border-style:solid;border-width:5px;border-top-color:inherit}.vue-slider-dot-tooltip-inner-bottom:after{bottom:100%;left:50%;transform:translate(-50%);height:0;width:0;border-color:transparent;border-style:solid;border-width:5px;border-bottom-color:inherit}.vue-slider-dot-tooltip-inner-left:after{left:100%;top:50%;transform:translateY(-50%);height:0;width:0;border-color:transparent;border-style:solid;border-width:5px;border-left-color:inherit}.vue-slider-dot-tooltip-inner-right:after{right:100%;top:50%;transform:translateY(-50%);height:0;width:0;border-color:transparent;border-style:solid;border-width:5px;border-right-color:inherit}.vue-slider-dot-tooltip-wrapper{opacity:0;transition:all .3s}.vue-slider-dot-tooltip-wrapper-show{opacity:1}", ""]);
61
+ // Exports
62
+ /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
63
+
64
+
65
+ /***/ }),
66
+
67
+ /***/ 274:
68
+ /***/ (function(module) {
69
+
70
+ "use strict";
71
+ module.exports = __WEBPACK_EXTERNAL_MODULE__274__;
72
+
73
+ /***/ }),
74
+
75
+ /***/ 314:
76
+ /***/ (function(module) {
77
+
78
+ "use strict";
79
+
80
+
81
+ /*
82
+ MIT License http://www.opensource.org/licenses/mit-license.php
83
+ Author Tobias Koppers @sokra
84
+ */
85
+ module.exports = function (cssWithMappingToString) {
86
+ var list = [];
87
+
88
+ // return the list of modules as css string
89
+ list.toString = function toString() {
90
+ return this.map(function (item) {
91
+ var content = "";
92
+ var needLayer = typeof item[5] !== "undefined";
93
+ if (item[4]) {
94
+ content += "@supports (".concat(item[4], ") {");
95
+ }
96
+ if (item[2]) {
97
+ content += "@media ".concat(item[2], " {");
98
+ }
99
+ if (needLayer) {
100
+ content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
101
+ }
102
+ content += cssWithMappingToString(item);
103
+ if (needLayer) {
104
+ content += "}";
105
+ }
106
+ if (item[2]) {
107
+ content += "}";
108
+ }
109
+ if (item[4]) {
110
+ content += "}";
111
+ }
112
+ return content;
113
+ }).join("");
114
+ };
115
+
116
+ // import a list of modules into the list
117
+ list.i = function i(modules, media, dedupe, supports, layer) {
118
+ if (typeof modules === "string") {
119
+ modules = [[null, modules, undefined]];
120
+ }
121
+ var alreadyImportedModules = {};
122
+ if (dedupe) {
123
+ for (var k = 0; k < this.length; k++) {
124
+ var id = this[k][0];
125
+ if (id != null) {
126
+ alreadyImportedModules[id] = true;
127
+ }
128
+ }
129
+ }
130
+ for (var _k = 0; _k < modules.length; _k++) {
131
+ var item = [].concat(modules[_k]);
132
+ if (dedupe && alreadyImportedModules[item[0]]) {
133
+ continue;
134
+ }
135
+ if (typeof layer !== "undefined") {
136
+ if (typeof item[5] === "undefined") {
137
+ item[5] = layer;
138
+ } else {
139
+ item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
140
+ item[5] = layer;
141
+ }
142
+ }
143
+ if (media) {
144
+ if (!item[2]) {
145
+ item[2] = media;
146
+ } else {
147
+ item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
148
+ item[2] = media;
149
+ }
150
+ }
151
+ if (supports) {
152
+ if (!item[4]) {
153
+ item[4] = "".concat(supports);
154
+ } else {
155
+ item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
156
+ item[4] = supports;
157
+ }
158
+ }
159
+ list.push(item);
160
+ }
161
+ };
162
+ return list;
163
+ };
164
+
165
+ /***/ }),
166
+
167
+ /***/ 378:
168
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
169
+
170
+ (function(t,e){ true?module.exports=e(__webpack_require__(274)):0})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="fb15")}({"091b":function(t,e,r){var n=r("24fb");e=n(!1),e.push([t.i,".vue-slider-dot{position:absolute;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot:focus{outline:none}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-hover:hover .vue-slider-dot-tooltip,.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%)}",""]),t.exports=e},"24fb":function(t,e,r){"use strict";function n(t,e){var r=t[1]||"",n=t[3];if(!n)return r;if(e&&"function"===typeof btoa){var i=o(n),a=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[r].concat(a).concat([i]).join("\n")}return[r].join("\n")}function o(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(r," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=n(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"===typeof t&&(t=[[null,t,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<t.length;s++){var u=[].concat(t[s]);n&&o[u[0]]||(r&&(u[2]?u[2]="".concat(r," and ").concat(u[2]):u[2]=r),e.push(u))}},e}},2638:function(t,e,r){"use strict";function n(){return n=Object.assign||function(t){for(var e,r=1;r<arguments.length;r++)for(var n in e=arguments[r],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},n.apply(this,arguments)}var o=["attrs","props","domProps"],i=["class","style","directives"],a=["on","nativeOn"],s=function(t){return t.reduce((function(t,e){for(var r in e)if(t[r])if(-1!==o.indexOf(r))t[r]=n({},t[r],e[r]);else if(-1!==i.indexOf(r)){var s=t[r]instanceof Array?t[r]:[t[r]],l=e[r]instanceof Array?e[r]:[e[r]];t[r]=s.concat(l)}else if(-1!==a.indexOf(r))for(var c in e[r])if(t[r][c]){var d=t[r][c]instanceof Array?t[r][c]:[t[r][c]],f=e[r][c]instanceof Array?e[r][c]:[e[r][c]];t[r][c]=d.concat(f)}else t[r][c]=e[r][c];else if("hook"==r)for(var h in e[r])t[r][h]=t[r][h]?u(t[r][h],e[r][h]):e[r][h];else t[r]=e[r];else t[r]=e[r];return t}),{})},u=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=s},"499e":function(t,e,r){"use strict";function n(t,e){for(var r=[],n={},o=0;o<e.length;o++){var i=e[o],a=i[0],s=i[1],u=i[2],l=i[3],c={id:t+":"+o,css:s,media:u,sourceMap:l};n[a]?n[a].parts.push(c):r.push(n[a]={id:a,parts:[c]})}return r}r.r(e),r.d(e,"default",(function(){return p}));var o="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!o)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.");var i={},a=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,u=0,l=!1,c=function(){},d=null,f="data-vue-ssr-id",h="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,r,o){l=r,d=o||{};var a=n(t,e);return y(a),function(e){for(var r=[],o=0;o<a.length;o++){var s=a[o],u=i[s.id];u.refs--,r.push(u)}e?(a=n(t,e),y(a)):a=[];for(o=0;o<r.length;o++){u=r[o];if(0===u.refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete i[u.id]}}}}function y(t){for(var e=0;e<t.length;e++){var r=t[e],n=i[r.id];if(n){n.refs++;for(var o=0;o<n.parts.length;o++)n.parts[o](r.parts[o]);for(;o<r.parts.length;o++)n.parts.push(m(r.parts[o]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{var a=[];for(o=0;o<r.parts.length;o++)a.push(m(r.parts[o]));i[r.id]={id:r.id,refs:1,parts:a}}}}function v(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function m(t){var e,r,n=document.querySelector("style["+f+'~="'+t.id+'"]');if(n){if(l)return c;n.parentNode.removeChild(n)}if(h){var o=u++;n=s||(s=v()),e=g.bind(null,n,o,!1),r=g.bind(null,n,o,!0)}else n=v(),e=k.bind(null,n),r=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else r()}}var b=function(){var t=[];return function(e,r){return t[e]=r,t.filter(Boolean).join("\n")}}();function g(t,e,r,n){var o=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=b(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function k(t,e){var r=e.css,n=e.media,o=e.sourceMap;if(n&&t.setAttribute("media",n),d.ssrId&&t.setAttribute(f,e.id),o&&(r+="\n/*# sourceURL="+o.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}},"4abb":function(t,e,r){var n=r("7a57");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=r("499e").default;o("b2af7572",n,!0,{sourceMap:!1,shadowMode:!1})},"4ed8":function(t,e,r){var n=r("091b");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=r("499e").default;o("2f6bee1a",n,!0,{sourceMap:!1,shadowMode:!1})},"556c":function(t,e,r){var n=r("eef2");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=r("499e").default;o("1209fd47",n,!0,{sourceMap:!1,shadowMode:!1})},"65d9":function(t,e,r){"use strict";
171
+ /**
172
+ * vue-class-component v7.0.1
173
+ * (c) 2015-present Evan You
174
+ * @license MIT
175
+ */function n(t){return t&&"object"===typeof t&&"default"in t?t["default"]:t}Object.defineProperty(e,"__esModule",{value:!0});var o=n(r("8bbf")),i="undefined"!==typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function a(t,e){s(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(r){s(t.prototype,e.prototype,r)})),Object.getOwnPropertyNames(e).forEach((function(r){s(t,e,r)}))}function s(t,e,r){var n=r?Reflect.getOwnMetadataKeys(e,r):Reflect.getOwnMetadataKeys(e);n.forEach((function(n){var o=r?Reflect.getOwnMetadata(n,e,r):Reflect.getOwnMetadata(n,e);r?Reflect.defineMetadata(n,o,t,r):Reflect.defineMetadata(n,o,t)}))}var u={__proto__:[]},l=u instanceof Array;function c(t){return function(e,r,n){var o="function"===typeof e?e:e.constructor;o.__decorators__||(o.__decorators__=[]),"number"!==typeof n&&(n=void 0),o.__decorators__.push((function(e){return t(e,r,n)}))}}function d(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o.extend({mixins:t})}function f(t){var e=typeof t;return null==t||"object"!==e&&"function"!==e}function h(t,e){var r=e.prototype._init;e.prototype._init=function(){var e=this,r=Object.getOwnPropertyNames(t);if(t.$options.props)for(var n in t.$options.props)t.hasOwnProperty(n)||r.push(n);r.forEach((function(r){"_"!==r.charAt(0)&&Object.defineProperty(e,r,{get:function(){return t[r]},set:function(e){t[r]=e},configurable:!0})}))};var n=new e;e.prototype._init=r;var o={};return Object.keys(n).forEach((function(t){void 0!==n[t]&&(o[t]=n[t])})),o}var p=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function y(t,e){void 0===e&&(e={}),e.name=e.name||t._componentTag||t.name;var r=t.prototype;Object.getOwnPropertyNames(r).forEach((function(t){if("constructor"!==t)if(p.indexOf(t)>-1)e[t]=r[t];else{var n=Object.getOwnPropertyDescriptor(r,t);void 0!==n.value?"function"===typeof n.value?(e.methods||(e.methods={}))[t]=n.value:(e.mixins||(e.mixins=[])).push({data:function(){var e;return e={},e[t]=n.value,e}}):(n.get||n.set)&&((e.computed||(e.computed={}))[t]={get:n.get,set:n.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return h(this,t)}});var n=t.__decorators__;n&&(n.forEach((function(t){return t(e)})),delete t.__decorators__);var s=Object.getPrototypeOf(t.prototype),u=s instanceof o?s.constructor:o,l=u.extend(e);return v(l,t,u),i&&a(l,t),l}function v(t,e,r){Object.getOwnPropertyNames(e).forEach((function(n){if("prototype"!==n){var o=Object.getOwnPropertyDescriptor(t,n);if(!o||o.configurable){var i=Object.getOwnPropertyDescriptor(e,n);if(!l){if("cid"===n)return;var a=Object.getOwnPropertyDescriptor(r,n);if(!f(i.value)&&a&&a.value===i.value)return}0,Object.defineProperty(t,n,i)}}}))}function m(t){return"function"===typeof t?y(t):function(e){return y(e,t)}}m.registerHooks=function(t){p.push.apply(p,t)},e.default=m,e.createDecorator=c,e.mixins=d},"7a57":function(t,e,r){var n=r("24fb");e=n(!1),e.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}",""]),t.exports=e},8875:function(t,e,r){var n,o,i;(function(r,a){o=[],n=a,i="function"===typeof n?n.apply(e,o):n,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(h){var r,n,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=i.exec(h.stack)||a.exec(h.stack),u=s&&s[1]||!1,l=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");u===c&&(r=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=r.replace(n,"$1").trim());for(var f=0;f<d.length;f++){if("interactive"===d[f].readyState)return d[f];if(d[f].src===u)return d[f];if(u===c&&d[f].innerHTML&&d[f].innerHTML.trim()===o)return d[f]}return null}}return t}))},"8bbf":function(e,r){e.exports=t},eef2:function(t,e,r){var n=r("24fb");e=n(!1),e.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}",""]),t.exports=e},fb15:function(t,e,r){"use strict";if(r.r(e),r.d(e,"ERROR_TYPE",(function(){return J})),r.d(e,"VueSliderMark",(function(){return U})),r.d(e,"VueSliderDot",(function(){return j})),"undefined"!==typeof window){var n=window.document.currentScript,o=r("8875");n=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var a=r("2638"),s=r.n(a);function u(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}var l=r("8bbf"),c=r.n(l),d=r("65d9"),f=r.n(d);function h(t,e){return void 0===e&&(e={}),Object(d["createDecorator"])((function(r,n){(r.props||(r.props={}))[n]=e,r.model={prop:n,event:t||n}}))}function p(t){return void 0===t&&(t={}),Object(d["createDecorator"])((function(e,r){(e.props||(e.props={}))[r]=t}))}function y(t,e){void 0===e&&(e={});var r=e.deep,n=void 0!==r&&r,o=e.immediate,i=void 0!==o&&o;return Object(d["createDecorator"])((function(e,r){"object"!==typeof e.watch&&(e.watch=Object.create(null));var o=e.watch;"object"!==typeof o[t]||Array.isArray(o[t])?"undefined"===typeof o[t]&&(o[t]=[]):o[t]=[o[t]],o[t].push({handler:r,deep:n,immediate:i})}))}r("4ed8");function v(t){return v="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},v(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function g(t,e,r){return e&&b(t.prototype,e),r&&b(t,r),t}function k(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&&O(t,e)}function O(t,e){return O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},O(t,e)}function x(t){var e=P();return function(){var r,n=D(t);if(e){var o=D(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return w(this,r)}}function w(t,e){return!e||"object"!==v(e)&&"function"!==typeof e?S(t):e}function S(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function P(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function D(t){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},D(t)}var R=function(){var t=function(t){k(r,t);var e=x(r);function r(){return m(this,r),e.apply(this,arguments)}return g(r,[{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,attrs:{"aria-valuetext":"number"===typeof this.tooltipValue?this.tooltipValue.toString():this.tooltipValue},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-hover":"hover"===this.tooltip||"active"===this.tooltip,"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":case"active":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}}]),r}(c.a);return u([p({default:0})],t.prototype,"value",void 0),u([p()],t.prototype,"tooltip",void 0),u([p()],t.prototype,"dotStyle",void 0),u([p()],t.prototype,"tooltipStyle",void 0),u([p({type:String,validator:function(t){return["top","right","bottom","left"].indexOf(t)>-1},required:!0})],t.prototype,"tooltipPlacement",void 0),u([p({type:[String,Function]})],t.prototype,"tooltipFormatter",void 0),u([p({type:Boolean,default:!1})],t.prototype,"focus",void 0),u([p({default:!1})],t.prototype,"disabled",void 0),t=u([f()({name:"VueSliderDot"})],t),t}(),j=R;r("556c");function E(t){return E="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},E(t)}function A(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function V(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function M(t,e,r){return e&&V(t.prototype,e),r&&V(t,r),t}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&&C(t,e)}function C(t,e){return C=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},C(t,e)}function I(t){var e=B();return function(){var r,n=N(t);if(e){var o=N(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return L(this,r)}}function L(t,e){return!e||"object"!==E(e)&&"function"!==typeof e?T(t):e}function T(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function B(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function N(t){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},N(t)}var z,H=function(){var t=function(t){_(r,t);var e=I(r);function r(){return A(this,r),e.apply(this,arguments)}return M(r,[{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||{},e.active&&e.activeStyle||{}]}),this.hideLabel?null:this.$slots.label||t("div",{class:this.labelClasses,style:[this.labelStyle||{},e.labelStyle||{},e.active&&this.labelActiveStyle||{},e.active&&e.labelActiveStyle||{}],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}]}}]),r}(c.a);return u([p({required:!0})],t.prototype,"mark",void 0),u([p(Boolean)],t.prototype,"hideLabel",void 0),u([p()],t.prototype,"stepStyle",void 0),u([p()],t.prototype,"stepActiveStyle",void 0),u([p()],t.prototype,"labelStyle",void 0),u([p()],t.prototype,"labelActiveStyle",void 0),t=u([f()({name:"VueSlideMark"})],t),t}(),U=H,F=function(t){return"number"===typeof t?"".concat(t,"px"):t},$=function(t){var e=document.documentElement,r=document.body,n=t.getBoundingClientRect(),o={y:n.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||r.clientTop||0),x:n.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||r.clientLeft||0)};return o},W=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o="targetTouches"in t?t.targetTouches[0]:t,i=$(e),a={x:o.pageX-i.x,y:o.pageY-i.y};return{x:r?e.offsetWidth*n-a.x:a.x,y:r?e.offsetHeight*n-a.y:a.y}};(function(t){t[t["PAGE_UP"]=33]="PAGE_UP",t[t["PAGE_DOWN"]=34]="PAGE_DOWN",t[t["END"]=35]="END",t[t["HOME"]=36]="HOME",t[t["LEFT"]=37]="LEFT",t[t["UP"]=38]="UP",t[t["RIGHT"]=39]="RIGHT",t[t["DOWN"]=40]="DOWN"})(z||(z={}));var G=function(t,e){if(e.hook){var r=e.hook(t);if("function"===typeof r)return r;if(!r)return null}switch(t.keyCode){case z.UP:return function(t){return"ttb"===e.direction?t-1:t+1};case z.RIGHT:return function(t){return"rtl"===e.direction?t-1:t+1};case z.DOWN:return function(t){return"ttb"===e.direction?t+1:t-1};case z.LEFT:return function(t){return"rtl"===e.direction?t+1:t-1};case z.END:return function(){return e.max};case z.HOME:return function(){return e.min};case z.PAGE_UP:return function(t){return t+10};case z.PAGE_DOWN:return function(t){return t-10};default:return null}};function X(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function q(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function K(t,e,r){return e&&q(t.prototype,e),r&&q(t,r),t}var Y,J,Q=function(){function t(e){X(this,t),this.num=e}return K(t,[{key:"decimal",value:function(t,e){var r=this.num,n=this.getDecimalLen(r),o=this.getDecimalLen(t),i=0;switch(e){case"+":i=this.getExponent(n,o),this.num=(this.safeRoundUp(r,i)+this.safeRoundUp(t,i))/i;break;case"-":i=this.getExponent(n,o),this.num=(this.safeRoundUp(r,i)-this.safeRoundUp(t,i))/i;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(r,this.getExponent(n)),this.safeRoundUp(t,this.getExponent(o)))/this.getExponent(n+o);break;case"/":i=this.getExponent(n,o),this.num=this.safeRoundUp(r,i)/this.safeRoundUp(t,i);break;case"%":i=this.getExponent(n,o),this.num=this.safeRoundUp(r,i)%this.safeRoundUp(t,i)/i;break}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){var e="".concat(t).split("e");return("".concat(e[0]).split(".")[1]||"").length-(e[1]?+e[1]:0)}},{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)}}]),t}();function Z(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(r),!0).forEach((function(e){pt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function et(t,e){return ot(t)||nt(t,e)||st(t,e)||rt()}function rt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function nt(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(u){o=!0,i=u}finally{try{n||null==s["return"]||s["return"]()}finally{if(o)throw i}}return r}}function ot(t){if(Array.isArray(t))return t}function it(t){return lt(t)||ut(t)||st(t)||at()}function at(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function st(t,e){if(t){if("string"===typeof t)return ct(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ct(t,e):void 0}}function ut(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function lt(t){if(Array.isArray(t))return ct(t)}function ct(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function dt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ft(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ht(t,e,r){return e&&ft(t.prototype,e),r&&ft(t,r),t}function pt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}(function(t){t[t["VALUE"]=1]="VALUE",t[t["INTERVAL"]=2]="INTERVAL",t[t["MIN"]=3]="MIN",t[t["MAX"]=4]="MAX",t[t["ORDER"]=5]="ORDER"})(J||(J={}));var yt=(Y={},pt(Y,J.VALUE,'The type of the "value" is illegal'),pt(Y,J.INTERVAL,'The prop "interval" is invalid, "(max - min)" must be divisible by "interval"'),pt(Y,J.MIN,'The "value" must be greater than or equal to the "min".'),pt(Y,J.MAX,'The "value" must be less than or equal to the "max".'),pt(Y,J.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),Y),vt=function(){function t(e){dt(this,t),this.dotsPos=[],this.dotsValue=[],this.cacheRangeDir={},this.data=e.data,this.max=e.max,this.min=e.min,this.interval=e.interval,this.order=e.order,this.marks=e.marks,this.included=e.included,this.process=e.process,this.adsorb=e.adsorb,this.dotOptions=e.dotOptions,this.onError=e.onError,this.order?(this.minRange=e.minRange||0,this.maxRange=e.maxRange||0,this.enableCross=e.enableCross,this.fixed=e.fixed):((e.minRange||e.maxRange||!e.enableCross||e.fixed)&&this.emitError(J.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(e.value)}return ht(t,[{key:"setValue",value:function(t){var e=this;this.setDotsValue(Array.isArray(t)?this.order?it(t).sort((function(t,r){return e.getIndexByValue(t)-e.getIndexByValue(r)})):it(t):[t],!0)}},{key:"setDotsValue",value:function(t,e){this.dotsValue=t,e&&this.syncDotsPos()}},{key:"setDotsPos",value:function(t){var e=this,r=this.order?it(t).sort((function(t,e){return t-e})):t;this.dotsPos=r,this.setDotsValue(r.map((function(t){return e.getValueByPos(t)})),this.adsorb)}},{key:"getValueByPos",value:function(t){var e=this.parsePos(t);if(this.included){var r=100;this.markList.forEach((function(n){var o=Math.abs(n.pos-t);o<r&&(r=o,e=n.value)}))}return e}},{key:"syncDotsPos",value:function(){var t=this;this.dotsPos=this.dotsValue.map((function(e){return t.parseValue(e)}))}},{key:"getRecentDot",value:function(t){var e=this,r=this.dotsPos.filter((function(t,r){return!(e.getDotOption(r)&&e.getDotOption(r).disabled)})).map((function(e){return Math.abs(e-t)}));return r.indexOf(Math.min.apply(Math,it(r)))}},{key:"getIndexByValue",value:function(t){return this.data?this.data.indexOf(t):new Q(+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 Q(t).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(t,e){t=this.getValidPos(t,e).pos;var r=t-this.dotsPos[e];if(r){var 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(t,e){var r=this;return this.dotsPos.forEach((function(n,o){if(o!==e){var i=r.getValidPos(n+t,o),a=i.pos,s=i.inRange;s||(t=Math.min(Math.abs(a-n),Math.abs(t))*(t<0?-1:1))}})),this.dotsPos.map((function(e){return t}))}},{key:"getLimitRangeChangePosArr",value:function(t,e,r){var n=this,o=[{index:r,changePos:e}],i=e;return[this.minRange,this.maxRange].forEach((function(a,s){if(!a)return!1;var u=0===s,l=e>0,c=0;c=u?l?1:-1:l?-1:1;var d=function(t,e){var r=Math.abs(t-e);return u?r<n.minRangeDir:r>n.maxRangeDir},f=r+c,h=n.dotsPos[f],p=t;while(n.isPos(h)&&d(h,p)){var y=n.getValidPos(h+i,f),v=y.pos;o.push({index:f,changePos:v-h}),f+=c,p=v,h=n.dotsPos[f]}})),this.dotsPos.map((function(t,e){var r=o.filter((function(t){return t.index===e}));return r.length?r[0].changePos:0}))}},{key:"isPos",value:function(t){return"number"===typeof t}},{key:"getValidPos",value:function(t,e){var r=this.valuePosRange[e],n=!0;return t<r[0]?(t=r[0],n=!1):t>r[1]&&(t=r[1],n=!1),{pos:t,inRange:n}}},{key:"parseValue",value:function(t){if(this.data)t=this.data.indexOf(t);else if("number"===typeof t||"string"===typeof t){if(t=+t,t<this.min)return this.emitError(J.MIN),0;if(t>this.max)return this.emitError(J.MAX),0;if("number"!==typeof t||t!==t)return this.emitError(J.VALUE),0;t=new Q(t).minus(this.min).divide(this.interval).toNumber()}var e=new Q(t).multiply(this.gap).toNumber();return e<0?0:e>100?100:e}},{key:"parsePos",value:function(t){var e=Math.round(t/this.gap);return this.getValueByIndex(e)}},{key:"isActiveByPos",value:function(t){return this.processArray.some((function(e){var r=et(e,2),n=r[0],o=r[1];return t>=n&&t<=o}))}},{key:"getValues",value:function(){if(this.data)return this.data;for(var t=[],e=0;e<=this.total;e++)t.push(new Q(e).multiply(this.interval).plus(this.min).toNumber());return t}},{key:"getRangeDir",value:function(t){return t?new Q(t).divide(new Q(this.data?this.data.length-1:this.max).minus(this.data?0:this.min).toNumber()).multiply(100).toNumber():100}},{key:"emitError",value:function(t){this.onError&&this.onError(t,yt[t])}},{key:"getDotOption",value:function(t){return Array.isArray(this.dotOptions)?this.dotOptions[t]:this.dotOptions}},{key:"getDotRange",value:function(t,e,r){if(!this.dotOptions)return r;var n=this.getDotOption(t);return n&&void 0!==n[e]?this.parseValue(n[e]):r}},{key:"markList",get:function(){var t=this;if(!this.marks)return[];var e=function(e,r){var n=t.parseValue(e);return tt({pos:n,value:e,label:e,active:t.isActiveByPos(n)},r)};return!0===this.marks?this.getValues().map((function(t){return e(t)})):"[object Object]"===Object.prototype.toString.call(this.marks)?Object.keys(this.marks).sort((function(t,e){return+t-+e})).map((function(r){var n=t.marks[r];return e(r,"string"!==typeof n?n:{label:n})})):Array.isArray(this.marks)?this.marks.map((function(t){return e(t)})):"function"===typeof this.marks?this.getValues().map((function(e){return{value:e,result:t.marks(e)}})).filter((function(t){var e=t.result;return!!e})).map((function(t){var r=t.value,n=t.result;return e(r,n)})):[]}},{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(this.dotsPos.length>1)return[[Math.min.apply(Math,it(this.dotsPos)),Math.max.apply(Math,it(this.dotsPos))]]}return[]}},{key:"total",get:function(){var t=0;return t=this.data?this.data.length-1:new Q(this.max).minus(this.min).divide(this.interval).toNumber(),t-Math.floor(t)!==0?(this.emitError(J.INTERVAL),0):t}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.cacheRangeDir[this.minRange]?this.cacheRangeDir[this.minRange]:this.cacheRangeDir[this.minRange]=this.getRangeDir(this.minRange)}},{key:"maxRangeDir",get:function(){return this.cacheRangeDir[this.maxRange]?this.cacheRangeDir[this.maxRange]:this.cacheRangeDir[this.maxRange]=this.getRangeDir(this.maxRange)}},{key:"valuePosRange",get:function(){var t=this,e=this.dotsPos,r=[];return e.forEach((function(n,o){r.push([Math.max(t.minRange?t.minRangeDir*o:0,t.enableCross?0:e[o-1]||0,t.getDotRange(o,"min",0)),Math.min(t.minRange?100-t.minRangeDir*(e.length-1-o):100,t.enableCross?100:e[o+1]||100,t.getDotRange(o,"max",100))])})),r}},{key:"dotsIndex",get:function(){var t=this;return this.dotsValue.map((function(e){return t.getIndexByValue(e)}))}}]),t}();function mt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function gt(t,e,r){return e&&bt(t.prototype,e),r&&bt(t,r),t}var kt=function(){function t(e){mt(this,t),this.states=0,this.map=e}return gt(t,[{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)}}]),t}();r("4abb");function Ot(t,e){return St(t)||wt(t,e)||At(t,e)||xt()}function xt(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function wt(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(u){o=!0,i=u}finally{try{n||null==s["return"]||s["return"]()}finally{if(o)throw i}}return r}}function St(t){if(Array.isArray(t))return t}function Pt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Dt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Pt(Object(r),!0).forEach((function(e){Rt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Rt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jt(t){return Mt(t)||Vt(t)||At(t)||Et()}function Et(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function At(t,e){if(t){if("string"===typeof t)return _t(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_t(t,e):void 0}}function Vt(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function Mt(t){if(Array.isArray(t))return _t(t)}function _t(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ct(t){return Ct="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},Ct(t)}function It(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Tt(t,e,r){return e&&Lt(t.prototype,e),r&&Lt(t,r),t}function Bt(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&&Nt(t,e)}function Nt(t,e){return Nt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Nt(t,e)}function zt(t){var e=Ft();return function(){var r,n=$t(t);if(e){var o=$t(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Ht(this,r)}}function Ht(t,e){return!e||"object"!==Ct(e)&&"function"!==typeof e?Ut(t):e}function Ut(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ft(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function $t(t){return $t=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},$t(t)}var Wt={None:0,Drag:2,Focus:4},Gt=4,Xt=function(){var t=function(t){Bt(r,t);var e=zt(r);function r(){var t;return It(this,r),t=e.apply(this,arguments),t.states=new kt(Wt),t.scale=1,t.focusDotIndex=0,t}return Tt(r,[{key:"isObjectData",value:function(t){return!!t&&"[object Object]"===Object.prototype.toString.call(t)}},{key:"isObjectArrayData",value:function(t){return!!t&&Array.isArray(t)&&t.length>0&&"object"===Ct(t[0])}},{key:"onValueChanged",value:function(){this.control&&!this.states.has(Wt.Drag)&&this.isNotSync&&(this.control.setValue(this.value),this.syncValueByPos())}},{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,{passive:!1}),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(){var t=new Q(Math.floor(this.isHorizontal?this.$refs.rail.offsetWidth:this.$refs.rail.offsetHeight));void 0!==this.zoom&&t.multiply(this.zoom),t.divide(100),this.scale=t.toNumber()}},{key:"initControl",value:function(){var t=this;this.control=new vt({value:this.value,data:this.sliderData,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.sliderMarks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),this.syncValueByPos(),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach((function(e){t.$watch(e,(function(r){if("data"===e&&Array.isArray(t.control.data)&&Array.isArray(r)&&t.control.data.length===r.length&&r.every((function(e,r){return e===t.control.data[r]})))return!1;switch(e){case"data":case"dataLabel":case"dataValue":t.control.data=t.sliderData;break;case"mark":t.control.marks=t.sliderMarks;break;default:t.control[e]=r}["data","max","min","interval"].indexOf(e)>-1&&t.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]:jt(t),this.focusDotIndex)}},{key:"isDiff",value:function(t,e){return t.length!==e.length||t.some((function(t,r){return t!==e[r]}))}},{key:"emitError",value:function(t,e){this.silent||console.error("[VueSlider error]: ".concat(e)),this.$emit("error",t,e)}},{key:"dragStartOnProcess",value:function(t){if(this.dragOnClick){this.setScale();var e=this.getPosByEvent(t),r=this.control.getRecentDot(e);if(this.dots[r].disabled)return;this.dragStart(r),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos()}}},{key:"dragStart",value:function(t){this.focusDotIndex=t,this.setScale(),this.states.add(Wt.Drag),this.states.add(Wt.Focus),this.$emit("drag-start",this.focusDotIndex)}},{key:"dragMove",value:function(t){if(!this.states.has(Wt.Drag))return!1;t.preventDefault();var e=this.getPosByEvent(t);this.isCrossDot(e),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos();var r=this.control.dotsValue;this.$emit("dragging",1===r.length?r[0]:jt(r),this.focusDotIndex)}},{key:"isCrossDot",value:function(t){if(this.canSort){var e=this.focusDotIndex,r=t;if(r>this.dragRange[1]?(r=this.dragRange[1],this.focusDotIndex++):r<this.dragRange[0]&&(r=this.dragRange[0],this.focusDotIndex--),e!==this.focusDotIndex){var n=this.$refs["dot-".concat(this.focusDotIndex)];n&&n.$el&&n.$el.focus(),this.control.setDotPos(r,e)}}}},{key:"dragEnd",value:function(t){var e=this;if(!this.states.has(Wt.Drag))return!1;setTimeout((function(){e.lazy&&e.syncValueByPos(),e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos(),e.states.delete(Wt.Drag),e.useKeyboard&&!("targetTouches"in t)||e.states.delete(Wt.Focus),e.$emit("drag-end",e.focusDotIndex)}))}},{key:"blurHandle",value:function(t){if(!this.states.has(Wt.Focus)||!this.$refs.container||this.$refs.container.contains(t.target))return!1;this.states.delete(Wt.Focus)}},{key:"clickHandle",value:function(t){if(!this.clickable||this.disabled)return!1;if(!this.states.has(Wt.Drag)){this.setScale();var e=this.getPosByEvent(t);this.setValueByPos(e)}}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.states.add(Wt.Focus),this.focusDotIndex=t}},{key:"blur",value:function(){this.states.delete(Wt.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)?jt(t):[t]),this.syncValueByPos()}},{key:"setIndex",value:function(t){var e=this,r=Array.isArray(t)?t.map((function(t){return e.control.getValueByIndex(t)})):this.control.getValueByIndex(t);this.setValue(r)}},{key:"setValueByPos",value:function(t){var e=this,r=this.control.getRecentDot(t);if(this.disabled||this.dots[r].disabled)return!1;this.focusDotIndex=r,this.control.setDotPos(t,r),this.syncValueByPos(),this.useKeyboard&&this.states.add(Wt.Focus),setTimeout((function(){e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos()}))}},{key:"keydownHandle",value:function(t){var e=this;if(!this.useKeyboard||!this.states.has(Wt.Focus))return!1;var r=this.included&&this.marks,n=G(t,{direction:this.direction,max:r?this.control.markList.length-1:this.control.total,min:0,hook:this.keydownHook});if(n){t.preventDefault();var o=-1,i=0;r?(this.control.markList.some((function(t,r){return t.value===e.control.dotsValue[e.focusDotIndex]&&(o=n(r),!0)})),o<0?o=0:o>this.control.markList.length-1&&(o=this.control.markList.length-1),i=this.control.markList[o].pos):(o=n(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])),i=this.control.parseValue(this.control.getValueByIndex(o))),this.isCrossDot(i),this.control.setDotPos(i,this.focusDotIndex),this.syncValueByPos()}}},{key:"getPosByEvent",value:function(t){return W(t,this.$refs.rail,this.isReverse,this.zoom)[this.isHorizontal?"x":"y"]/this.scale}},{key:"renderSlot",value:function(t,e,r,n){var o=this.$createElement,i=this.$scopedSlots[t];return i?n?i(e):o("template",{slot:t},[i(e)]):r}},{key:"render",value:function(){var t=this,e=arguments[0];return e("div",s()([{ref:"container",class:this.containerClasses,style:this.containerStyles,on:{click:this.clickHandle,touchstart:this.dragStartOnProcess,mousedown:this.dragStartOnProcess}},this.$attrs]),[e("div",{ref:"rail",class:"vue-slider-rail",style:this.railStyle},[this.processArray.map((function(r,n){return t.renderSlot("process",r,e("div",{class:"vue-slider-process",key:"process-".concat(n),style:r.style}),!0)})),this.sliderMarks?e("div",{class:"vue-slider-marks"},[this.control.markList.map((function(r,n){var o;return t.renderSlot("mark",r,e("vue-slider-mark",{key:"mark-".concat(n),attrs:{mark:r,hideLabel:t.hideLabel,stepStyle:t.stepStyle,stepActiveStyle:t.stepActiveStyle,labelStyle:t.labelStyle,labelActiveStyle:t.labelActiveStyle},style:(o={},Rt(o,t.isHorizontal?"height":"width","100%"),Rt(o,t.isHorizontal?"width":"height",t.tailSize),Rt(o,t.mainDirection,"".concat(r.pos,"%")),o),on:{pressLabel:function(e){return t.clickable&&t.setValueByPos(e)}}},[t.renderSlot("step",r,null),t.renderSlot("label",r,null)]),!0)}))]):null,this.dots.map((function(r,n){var o;return e("vue-slider-dot",{ref:"dot-".concat(n),key:"dot-".concat(n),attrs:Dt({value:r.value,disabled:r.disabled,focus:r.focus,"dot-style":[r.style,r.disabled?r.disabledStyle:null,r.focus?r.focusStyle:null],tooltip:r.tooltip||t.tooltip,"tooltip-style":[t.tooltipStyle,r.tooltipStyle,r.disabled?r.tooltipDisabledStyle:null,r.focus?r.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(t.sliderTooltipFormatter)?t.sliderTooltipFormatter[n]:t.sliderTooltipFormatter,"tooltip-placement":t.tooltipDirections[n],role:"slider","aria-valuenow":r.value,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-orientation":t.isHorizontal?"horizontal":"vertical",tabindex:"0"},t.dotAttrs),style:[t.dotBaseStyle,(o={},Rt(o,t.mainDirection,"".concat(r.pos,"%")),Rt(o,"transition","".concat(t.mainDirection," ").concat(t.animateTime,"s")),o)],on:{"drag-start":function(){return t.dragStart(n)}},nativeOn:{focus:function(){return!r.disabled&&t.focus(n)},blur:function(){return t.blur()}}},[t.renderSlot("dot",r,null),t.renderSlot("tooltip",r,null)])})),this.renderSlot("default",{value:this.getValue()},null,!0)])])}},{key:"tailSize",get:function(){return F((this.isHorizontal?this.height:this.width)||Gt)}},{key:"containerClasses",get:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]}},{key:"containerStyles",get:function(){var t=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],e=Ot(t,2),r=e[0],n=e[1],o=this.width?F(this.width):this.isHorizontal?"auto":F(Gt),i=this.height?F(this.height):this.isHorizontal?F(Gt):"auto";return{padding:this.contained?"".concat(n/2,"px ").concat(r/2,"px"):this.isHorizontal?"".concat(n/2,"px 0"):"0 ".concat(r/2,"px"),width:o,height:i}}},{key:"processArray",get:function(){var t=this;return this.control.processArray.map((function(e,r){var n,o=Ot(e,3),i=o[0],a=o[1],s=o[2];if(i>a){var u=[a,i];i=u[0],a=u[1]}var l=t.isHorizontal?"width":"height";return{start:i,end:a,index:r,style:Dt(Dt((n={},Rt(n,t.isHorizontal?"height":"width","100%"),Rt(n,t.isHorizontal?"top":"left",0),Rt(n,t.mainDirection,"".concat(i,"%")),Rt(n,l,"".concat(a-i,"%")),Rt(n,"transitionProperty","".concat(l,",").concat(t.mainDirection)),Rt(n,"transitionDuration","".concat(t.animateTime,"s")),n),t.processStyle),s)}}))}},{key:"dotBaseStyle",get:function(){var t,e=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],r=Ot(e,2),n=r[0],o=r[1];return t=this.isHorizontal?Rt({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),"-WebkitTransform":"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},"ltr"===this.direction?"left":"right","0"):Rt({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),"-WebkitTransform":"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},"btt"===this.direction?"bottom":"top","0"),Dt({width:"".concat(n,"px"),height:"".concat(o,"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 t=this;return this.control.dotsPos.map((function(e,r){return Dt({pos:e,index:r,value:t.control.dotsValue[r],focus:t.states.has(Wt.Focus)&&t.focusDotIndex===r,disabled:t.disabled,style:t.dotStyle},(Array.isArray(t.dotOptions)?t.dotOptions[r]:t.dotOptions)||{})}))}},{key:"animateTime",get:function(){return this.states.has(Wt.Drag)?0:this.duration}},{key:"canSort",get:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross}},{key:"sliderData",get:function(){var t=this;return this.isObjectArrayData(this.data)?this.data.map((function(e){return e[t.dataValue]})):this.isObjectData(this.data)?Object.keys(this.data):this.data}},{key:"sliderMarks",get:function(){var t=this;return this.marks?this.marks:this.isObjectArrayData(this.data)?function(e){var r={label:e};return t.data.some((function(n){return n[t.dataValue]===e&&(r.label=n[t.dataLabel],!0)})),r}:this.isObjectData(this.data)?this.data:void 0}},{key:"sliderTooltipFormatter",get:function(){var t=this;if(this.tooltipFormatter)return this.tooltipFormatter;if(this.isObjectArrayData(this.data))return function(e){var r=""+e;return t.data.some((function(n){return n[t.dataValue]===e&&(r=n[t.dataLabel],!0)})),r};if(this.isObjectData(this.data)){var e=this.data;return function(t){return e[t]}}}},{key:"isNotSync",get:function(){var t=this.control.dotsValue;return Array.isArray(this.value)?this.value.length!==t.length||this.value.some((function(e,r){return e!==t[r]})):this.value!==t[0]}},{key:"dragRange",get:function(){var t=this.dots[this.focusDotIndex-1],e=this.dots[this.focusDotIndex+1];return[t?t.pos:-1/0,e?e.pos:1/0]}}]),r}(c.a);return u([h("change",{default:0})],t.prototype,"value",void 0),u([p({type:Boolean,default:!1})],t.prototype,"silent",void 0),u([p({default:"ltr",validator:function(t){return["ltr","rtl","ttb","btt"].indexOf(t)>-1}})],t.prototype,"direction",void 0),u([p({type:[Number,String]})],t.prototype,"width",void 0),u([p({type:[Number,String]})],t.prototype,"height",void 0),u([p({default:14})],t.prototype,"dotSize",void 0),u([p({default:!1})],t.prototype,"contained",void 0),u([p({type:Number,default:0})],t.prototype,"min",void 0),u([p({type:Number,default:100})],t.prototype,"max",void 0),u([p({type:Number,default:1})],t.prototype,"interval",void 0),u([p({type:Boolean,default:!1})],t.prototype,"disabled",void 0),u([p({type:Boolean,default:!0})],t.prototype,"clickable",void 0),u([p({type:Boolean,default:!1})],t.prototype,"dragOnClick",void 0),u([p({type:Number,default:.5})],t.prototype,"duration",void 0),u([p({type:[Object,Array]})],t.prototype,"data",void 0),u([p({type:String,default:"value"})],t.prototype,"dataValue",void 0),u([p({type:String,default:"label"})],t.prototype,"dataLabel",void 0),u([p({type:Boolean,default:!1})],t.prototype,"lazy",void 0),u([p({type:String,validator:function(t){return["none","always","focus","hover","active"].indexOf(t)>-1},default:"active"})],t.prototype,"tooltip",void 0),u([p({type:[String,Array],validator:function(t){return(Array.isArray(t)?t:[t]).every((function(t){return["top","right","bottom","left"].indexOf(t)>-1}))}})],t.prototype,"tooltipPlacement",void 0),u([p({type:[String,Array,Function]})],t.prototype,"tooltipFormatter",void 0),u([p({type:Boolean,default:!0})],t.prototype,"useKeyboard",void 0),u([p(Function)],t.prototype,"keydownHook",void 0),u([p({type:Boolean,default:!0})],t.prototype,"enableCross",void 0),u([p({type:Boolean,default:!1})],t.prototype,"fixed",void 0),u([p({type:Boolean,default:!0})],t.prototype,"order",void 0),u([p(Number)],t.prototype,"minRange",void 0),u([p(Number)],t.prototype,"maxRange",void 0),u([p({type:[Boolean,Object,Array,Function],default:!1})],t.prototype,"marks",void 0),u([p({type:[Boolean,Function],default:!0})],t.prototype,"process",void 0),u([p({type:[Number]})],t.prototype,"zoom",void 0),u([p(Boolean)],t.prototype,"included",void 0),u([p(Boolean)],t.prototype,"adsorb",void 0),u([p(Boolean)],t.prototype,"hideLabel",void 0),u([p()],t.prototype,"dotOptions",void 0),u([p()],t.prototype,"dotAttrs",void 0),u([p()],t.prototype,"railStyle",void 0),u([p()],t.prototype,"processStyle",void 0),u([p()],t.prototype,"dotStyle",void 0),u([p()],t.prototype,"tooltipStyle",void 0),u([p()],t.prototype,"stepStyle",void 0),u([p()],t.prototype,"stepActiveStyle",void 0),u([p()],t.prototype,"labelStyle",void 0),u([p()],t.prototype,"labelActiveStyle",void 0),u([y("value")],t.prototype,"onValueChanged",null),t=u([f()({name:"VueSlider",data:function(){return{control:null}},components:{VueSliderDot:j,VueSliderMark:U}})],t),t}(),qt=Xt;qt.VueSliderMark=U,qt.VueSliderDot=j;var Kt=qt;e["default"]=Kt}})["default"]}));
176
+ //# sourceMappingURL=vue-slider-component.umd.min.js.map
177
+
178
+ /***/ }),
179
+
180
+ /***/ 548:
181
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
182
+
183
+ "use strict";
184
+
185
+ // EXPORTS
186
+ __webpack_require__.d(__webpack_exports__, {
187
+ A: function() { return /* binding */ addStylesClient; }
188
+ });
189
+
190
+ ;// ./node_modules/vue-style-loader/lib/listToStyles.js
191
+ /**
192
+ * Translates the list format produced by css-loader into something
193
+ * easier to manipulate.
194
+ */
195
+ function listToStyles (parentId, list) {
196
+ var styles = []
197
+ var newStyles = {}
198
+ for (var i = 0; i < list.length; i++) {
199
+ var item = list[i]
200
+ var id = item[0]
201
+ var css = item[1]
202
+ var media = item[2]
203
+ var sourceMap = item[3]
204
+ var part = {
205
+ id: parentId + ':' + i,
206
+ css: css,
207
+ media: media,
208
+ sourceMap: sourceMap
209
+ }
210
+ if (!newStyles[id]) {
211
+ styles.push(newStyles[id] = { id: id, parts: [part] })
212
+ } else {
213
+ newStyles[id].parts.push(part)
214
+ }
215
+ }
216
+ return styles
217
+ }
218
+
219
+ ;// ./node_modules/vue-style-loader/lib/addStylesClient.js
220
+ /*
221
+ MIT License http://www.opensource.org/licenses/mit-license.php
222
+ Author Tobias Koppers @sokra
223
+ Modified by Evan You @yyx990803
224
+ */
225
+
226
+
227
+
228
+ var hasDocument = typeof document !== 'undefined'
229
+
230
+ if (typeof DEBUG !== 'undefined' && DEBUG) {
231
+ if (!hasDocument) {
232
+ throw new Error(
233
+ 'vue-style-loader cannot be used in a non-browser environment. ' +
234
+ "Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
235
+ ) }
236
+ }
237
+
238
+ /*
239
+ type StyleObject = {
240
+ id: number;
241
+ parts: Array<StyleObjectPart>
242
+ }
243
+
244
+ type StyleObjectPart = {
245
+ css: string;
246
+ media: string;
247
+ sourceMap: ?string
248
+ }
249
+ */
250
+
251
+ var stylesInDom = {/*
252
+ [id: number]: {
253
+ id: number,
254
+ refs: number,
255
+ parts: Array<(obj?: StyleObjectPart) => void>
256
+ }
257
+ */}
258
+
259
+ var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
260
+ var singletonElement = null
261
+ var singletonCounter = 0
262
+ var isProduction = false
263
+ var noop = function () {}
264
+ var options = null
265
+ var ssrIdKey = 'data-vue-ssr-id'
266
+
267
+ // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
268
+ // tags it will allow on a page
269
+ var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
270
+
271
+ function addStylesClient (parentId, list, _isProduction, _options) {
272
+ isProduction = _isProduction
273
+
274
+ options = _options || {}
275
+
276
+ var styles = listToStyles(parentId, list)
277
+ addStylesToDom(styles)
278
+
279
+ return function update (newList) {
280
+ var mayRemove = []
281
+ for (var i = 0; i < styles.length; i++) {
282
+ var item = styles[i]
283
+ var domStyle = stylesInDom[item.id]
284
+ domStyle.refs--
285
+ mayRemove.push(domStyle)
286
+ }
287
+ if (newList) {
288
+ styles = listToStyles(parentId, newList)
289
+ addStylesToDom(styles)
290
+ } else {
291
+ styles = []
292
+ }
293
+ for (var i = 0; i < mayRemove.length; i++) {
294
+ var domStyle = mayRemove[i]
295
+ if (domStyle.refs === 0) {
296
+ for (var j = 0; j < domStyle.parts.length; j++) {
297
+ domStyle.parts[j]()
298
+ }
299
+ delete stylesInDom[domStyle.id]
300
+ }
301
+ }
302
+ }
303
+ }
304
+
305
+ function addStylesToDom (styles /* Array<StyleObject> */) {
306
+ for (var i = 0; i < styles.length; i++) {
307
+ var item = styles[i]
308
+ var domStyle = stylesInDom[item.id]
309
+ if (domStyle) {
310
+ domStyle.refs++
311
+ for (var j = 0; j < domStyle.parts.length; j++) {
312
+ domStyle.parts[j](item.parts[j])
313
+ }
314
+ for (; j < item.parts.length; j++) {
315
+ domStyle.parts.push(addStyle(item.parts[j]))
316
+ }
317
+ if (domStyle.parts.length > item.parts.length) {
318
+ domStyle.parts.length = item.parts.length
319
+ }
320
+ } else {
321
+ var parts = []
322
+ for (var j = 0; j < item.parts.length; j++) {
323
+ parts.push(addStyle(item.parts[j]))
324
+ }
325
+ stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }
326
+ }
327
+ }
328
+ }
329
+
330
+ function createStyleElement () {
331
+ var styleElement = document.createElement('style')
332
+ styleElement.type = 'text/css'
333
+ head.appendChild(styleElement)
334
+ return styleElement
335
+ }
336
+
337
+ function addStyle (obj /* StyleObjectPart */) {
338
+ var update, remove
339
+ var styleElement = document.querySelector('style[' + ssrIdKey + '~="' + obj.id + '"]')
340
+
341
+ if (styleElement) {
342
+ if (isProduction) {
343
+ // has SSR styles and in production mode.
344
+ // simply do nothing.
345
+ return noop
346
+ } else {
347
+ // has SSR styles but in dev mode.
348
+ // for some reason Chrome can't handle source map in server-rendered
349
+ // style tags - source maps in <style> only works if the style tag is
350
+ // created and inserted dynamically. So we remove the server rendered
351
+ // styles and inject new ones.
352
+ styleElement.parentNode.removeChild(styleElement)
353
+ }
354
+ }
355
+
356
+ if (isOldIE) {
357
+ // use singleton mode for IE9.
358
+ var styleIndex = singletonCounter++
359
+ styleElement = singletonElement || (singletonElement = createStyleElement())
360
+ update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
361
+ remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
362
+ } else {
363
+ // use multi-style-tag mode in all other cases
364
+ styleElement = createStyleElement()
365
+ update = applyToTag.bind(null, styleElement)
366
+ remove = function () {
367
+ styleElement.parentNode.removeChild(styleElement)
368
+ }
369
+ }
370
+
371
+ update(obj)
372
+
373
+ return function updateStyle (newObj /* StyleObjectPart */) {
374
+ if (newObj) {
375
+ if (newObj.css === obj.css &&
376
+ newObj.media === obj.media &&
377
+ newObj.sourceMap === obj.sourceMap) {
378
+ return
379
+ }
380
+ update(obj = newObj)
381
+ } else {
382
+ remove()
383
+ }
384
+ }
385
+ }
386
+
387
+ var replaceText = (function () {
388
+ var textStore = []
389
+
390
+ return function (index, replacement) {
391
+ textStore[index] = replacement
392
+ return textStore.filter(Boolean).join('\n')
393
+ }
394
+ })()
395
+
396
+ function applyToSingletonTag (styleElement, index, remove, obj) {
397
+ var css = remove ? '' : obj.css
398
+
399
+ if (styleElement.styleSheet) {
400
+ styleElement.styleSheet.cssText = replaceText(index, css)
401
+ } else {
402
+ var cssNode = document.createTextNode(css)
403
+ var childNodes = styleElement.childNodes
404
+ if (childNodes[index]) styleElement.removeChild(childNodes[index])
405
+ if (childNodes.length) {
406
+ styleElement.insertBefore(cssNode, childNodes[index])
407
+ } else {
408
+ styleElement.appendChild(cssNode)
409
+ }
410
+ }
411
+ }
412
+
413
+ function applyToTag (styleElement, obj) {
414
+ var css = obj.css
415
+ var media = obj.media
416
+ var sourceMap = obj.sourceMap
417
+
418
+ if (media) {
419
+ styleElement.setAttribute('media', media)
420
+ }
421
+ if (options.ssrId) {
422
+ styleElement.setAttribute(ssrIdKey, obj.id)
423
+ }
424
+
425
+ if (sourceMap) {
426
+ // https://developer.chrome.com/devtools/docs/javascript-debugging
427
+ // this makes source maps inside style tags work properly in Chrome
428
+ css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */'
429
+ // http://stackoverflow.com/a/26603875
430
+ css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'
431
+ }
432
+
433
+ if (styleElement.styleSheet) {
434
+ styleElement.styleSheet.cssText = css
435
+ } else {
436
+ while (styleElement.firstChild) {
437
+ styleElement.removeChild(styleElement.firstChild)
438
+ }
439
+ styleElement.appendChild(document.createTextNode(css))
440
+ }
441
+ }
442
+
443
+
444
+ /***/ }),
445
+
446
+ /***/ 601:
447
+ /***/ (function(module) {
448
+
449
+ "use strict";
450
+
451
+
452
+ module.exports = function (i) {
453
+ return i[1];
454
+ };
455
+
456
+ /***/ }),
457
+
458
+ /***/ 853:
459
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
460
+
461
+ "use strict";
462
+ __webpack_require__.r(__webpack_exports__);
463
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
464
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
465
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
466
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
467
+ // Imports
468
+
469
+
470
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
471
+ // Module
472
+ ___CSS_LOADER_EXPORT___.push([module.id, ".time-slider-container[data-v-2836fa1c]{position:relative;padding:20px;width:100%;box-sizing:border-box}", ""]);
473
+ // Exports
474
+ /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
475
+
476
+
477
+ /***/ })
478
+
479
+ /******/ });
480
+ /************************************************************************/
481
+ /******/ // The module cache
482
+ /******/ var __webpack_module_cache__ = {};
483
+ /******/
484
+ /******/ // The require function
485
+ /******/ function __webpack_require__(moduleId) {
486
+ /******/ // Check if module is in cache
487
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
488
+ /******/ if (cachedModule !== undefined) {
489
+ /******/ return cachedModule.exports;
490
+ /******/ }
491
+ /******/ // Create a new module (and put it into the cache)
492
+ /******/ var module = __webpack_module_cache__[moduleId] = {
493
+ /******/ id: moduleId,
494
+ /******/ // no module.loaded needed
495
+ /******/ exports: {}
496
+ /******/ };
497
+ /******/
498
+ /******/ // Execute the module function
499
+ /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
500
+ /******/
501
+ /******/ // Return the exports of the module
502
+ /******/ return module.exports;
503
+ /******/ }
504
+ /******/
505
+ /************************************************************************/
506
+ /******/ /* webpack/runtime/compat get default export */
507
+ /******/ !function() {
508
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
509
+ /******/ __webpack_require__.n = function(module) {
510
+ /******/ var getter = module && module.__esModule ?
511
+ /******/ function() { return module['default']; } :
512
+ /******/ function() { return module; };
513
+ /******/ __webpack_require__.d(getter, { a: getter });
514
+ /******/ return getter;
515
+ /******/ };
516
+ /******/ }();
517
+ /******/
518
+ /******/ /* webpack/runtime/define property getters */
519
+ /******/ !function() {
520
+ /******/ // define getter functions for harmony exports
521
+ /******/ __webpack_require__.d = function(exports, definition) {
522
+ /******/ for(var key in definition) {
523
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
524
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
525
+ /******/ }
526
+ /******/ }
527
+ /******/ };
528
+ /******/ }();
529
+ /******/
530
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
531
+ /******/ !function() {
532
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
533
+ /******/ }();
534
+ /******/
535
+ /******/ /* webpack/runtime/make namespace object */
536
+ /******/ !function() {
537
+ /******/ // define __esModule on exports
538
+ /******/ __webpack_require__.r = function(exports) {
539
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
540
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
541
+ /******/ }
542
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
543
+ /******/ };
544
+ /******/ }();
545
+ /******/
546
+ /******/ /* webpack/runtime/publicPath */
547
+ /******/ !function() {
548
+ /******/ __webpack_require__.p = "";
549
+ /******/ }();
550
+ /******/
551
+ /************************************************************************/
552
+ var __webpack_exports__ = {};
553
+ // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
554
+ !function() {
555
+ "use strict";
556
+ // ESM COMPAT FLAG
557
+ __webpack_require__.r(__webpack_exports__);
558
+
559
+ // EXPORTS
560
+ __webpack_require__.d(__webpack_exports__, {
561
+ VueSliderTimerControl: function() { return /* reexport */ VueSliderTimerControl; },
562
+ "default": function() { return /* binding */ entry_lib; }
563
+ });
564
+
565
+ ;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
566
+ /* eslint-disable no-var */
567
+ // This file is imported into lib/wc client bundles.
568
+
569
+ if (typeof window !== 'undefined') {
570
+ var currentScript = window.document.currentScript
571
+ if (false) { var getCurrentScript; }
572
+
573
+ var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
574
+ if (src) {
575
+ __webpack_require__.p = src[1] // eslint-disable-line
576
+ }
577
+ }
578
+
579
+ // Indicate to webpack that this file can be concatenated
580
+ /* harmony default export */ var setPublicPath = (null);
581
+
582
+ ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/VueSliderTimerControl/index.vue?vue&type=template&id=2836fa1c&scoped=true
583
+ var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:"sliderWrapper",staticClass:"time-slider-container"},[(_vm.showCurrentTime)?_c('div',{staticClass:"time-label",style:(_vm.timeLabelStyle)},[_vm._v(" "+_vm._s(_vm.formattedTime)+" ")]):_vm._e(),_c('vue-slider',{ref:"slider",attrs:{"min":_vm.min,"max":_vm.max,"step":_vm.step,"tooltip":_vm.tooltip,"tooltip-formatter":_vm.tooltipFormatter || _vm.formatTooltip,"rail-style":_vm.railStyle,"process-style":_vm.processStyle,"dot-style":_vm.dotStyle},on:{"change":_vm.handleSeek},model:{value:(_vm.currentSecond),callback:function ($$v) {_vm.currentSecond=$$v},expression:"currentSecond"}}),(_vm.showHoverTooltip && _vm.hoverVisible)?_c('div',{style:([_vm.hoverTooltipStyle, { left: _vm.hoverX + 'px' }])},[_vm._v(" "+_vm._s((_vm.tooltipFormatter || _vm.formatTooltip)(_vm.hoverSecond))+" ")]):_vm._e(),(_vm.showTickLabels)?_c('div',{staticClass:"tick-labels",style:(_vm.tickLabelsStyle)},_vm._l((_vm.tickLabels),function(label){return _c('span',{key:label},[_vm._v(_vm._s(label))])}),0):_vm._e()],1)
584
+ }
585
+ var staticRenderFns = []
586
+
587
+
588
+ // EXTERNAL MODULE: ./node_modules/vue-slider-component/dist/vue-slider-component.umd.min.js
589
+ var vue_slider_component_umd_min = __webpack_require__(378);
590
+ var vue_slider_component_umd_min_default = /*#__PURE__*/__webpack_require__.n(vue_slider_component_umd_min);
591
+ // EXTERNAL MODULE: ./node_modules/vue-slider-component/theme/default.css
592
+ var theme_default = __webpack_require__(46);
593
+ ;// ./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/VueSliderTimerControl/index.vue?vue&type=script&lang=js
594
+
595
+
596
+
597
+
598
+ /* harmony default export */ var VueSliderTimerControlvue_type_script_lang_js = ({
599
+ name: "VueSliderTimerControl",
600
+ components: { VueSlider: (vue_slider_component_umd_min_default()) },
601
+ props: {
602
+ min: { type: Number, default: 0 },
603
+ max: { type: Number, default: 86400 },
604
+ step: { type: Number, default: 1 },
605
+ currentTime: { type: Number, default: 0 },
606
+
607
+ // 是否显示当前时间
608
+ showCurrentTime: { type: Boolean, default: false },
609
+
610
+ // 当前时间样式
611
+ timeLabelStyle: {
612
+ type: Object,
613
+ default: () => ({
614
+ textAlign: "center",
615
+ fontSize: "18px",
616
+ fontWeight: "500",
617
+ marginBottom: "10px",
618
+ }),
619
+ },
620
+
621
+ // hover 提示是否显示
622
+ showHoverTooltip: { type: Boolean, default: true },
623
+ hoverTooltipStyle: {
624
+ type: Object,
625
+ default: () => ({
626
+ position: "absolute",
627
+ top: "58px",
628
+ transform: "translateY(-70%)",
629
+ backgroundColor: "rgba(0, 0, 0, 0.75)",
630
+ color: "#fff",
631
+ padding: "2px 6px",
632
+ borderRadius: "4px",
633
+ fontSize: "12px",
634
+ pointerEvents: "none",
635
+ whiteSpace: "nowrap",
636
+ zIndex: 10,
637
+ }),
638
+ },
639
+
640
+ // 是否显示刻度
641
+ showTickLabels: { type: Boolean, default: false },
642
+ tickLabels: {
643
+ type: Array,
644
+ default: () => ["00:00", "12:00", "24:00"],
645
+ },
646
+ tickLabelsStyle: {
647
+ type: Object,
648
+ default: () => ({
649
+ display: "flex",
650
+ justifyContent: "space-between",
651
+ fontSize: "14px",
652
+ color: "#666",
653
+ marginTop: "6px",
654
+ padding: "0 2px",
655
+ }),
656
+ },
657
+
658
+ // 滑块样式配置
659
+ railStyle: {
660
+ type: Object,
661
+ default: () => ({ backgroundColor: "#d3d3d3" }),
662
+ },
663
+ processStyle: {
664
+ type: Object,
665
+ default: () => ({ backgroundColor: "#409EFF" }),
666
+ },
667
+ dotStyle: {
668
+ type: Object,
669
+ default: () => ({ backgroundColor: "#409EFF", border: "none" }),
670
+ },
671
+
672
+ tooltip: { type: [Boolean, String], default: "always" },
673
+ tooltipFormatter: { type: Function, default: null },
674
+ },
675
+ data() {
676
+ return {
677
+ rawSecond: 0,
678
+ hoverVisible: false,
679
+ hoverSecond: 0,
680
+ hoverX: 0,
681
+ };
682
+ },
683
+ computed: {
684
+ currentSecond: {
685
+ get() {
686
+ return this.rawSecond;
687
+ },
688
+ set(val) {
689
+ this.rawSecond = val;
690
+ this.$emit("seek", val);
691
+ },
692
+ },
693
+ formattedTime() {
694
+ return (this.tooltipFormatter || this.formatTooltip)(this.currentSecond);
695
+ },
696
+ },
697
+ watch: {
698
+ currentTime(val) {
699
+ if (val !== this.rawSecond) {
700
+ this.rawSecond = val;
701
+ }
702
+ },
703
+ },
704
+ mounted() {
705
+ this.$nextTick(() => {
706
+ const rail = this.$refs.slider?.$el?.querySelector(".vue-slider-rail");
707
+ if (rail && this.showHoverTooltip) {
708
+ rail.addEventListener("mousemove", this.handleHover);
709
+ rail.addEventListener("mouseleave", this.hideHoverTime);
710
+ }
711
+ });
712
+ },
713
+ methods: {
714
+ formatTooltip(val) {
715
+ const h = String(Math.floor(val / 3600)).padStart(2, "0");
716
+ const m = String(Math.floor((val % 3600) / 60)).padStart(2, "0");
717
+ const s = String(val % 60).padStart(2, "0");
718
+ return `${h}:${m}:${s}`;
719
+ },
720
+ handleHover(e) {
721
+ const rail = this.$refs.slider?.$el?.querySelector(".vue-slider-rail");
722
+ if (!rail) return;
723
+
724
+ const rect = rail.getBoundingClientRect();
725
+ const offsetX = e.clientX - rect.left;
726
+ const ratio = Math.min(Math.max(offsetX / rect.width, 0), 1);
727
+ const second = Math.round((this.max - this.min) * ratio + this.min);
728
+
729
+ this.hoverVisible = true;
730
+ this.hoverX = offsetX;
731
+ this.hoverSecond = second;
732
+ },
733
+ hideHoverTime() {
734
+ this.hoverVisible = false;
735
+ },
736
+ handleSeek(val) {
737
+ this.$emit("seek", val);
738
+ },
739
+ },
740
+ });
741
+
742
+ ;// ./src/components/VueSliderTimerControl/index.vue?vue&type=script&lang=js
743
+ /* harmony default export */ var components_VueSliderTimerControlvue_type_script_lang_js = (VueSliderTimerControlvue_type_script_lang_js);
744
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/VueSliderTimerControl/index.vue?vue&type=style&index=0&id=2836fa1c&prod&scoped=true&lang=css
745
+ var VueSliderTimerControlvue_type_style_index_0_id_2836fa1c_prod_scoped_true_lang_css = __webpack_require__(72);
746
+ ;// ./src/components/VueSliderTimerControl/index.vue?vue&type=style&index=0&id=2836fa1c&prod&scoped=true&lang=css
747
+
748
+ ;// ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
749
+ /* globals __VUE_SSR_CONTEXT__ */
750
+
751
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
752
+ // This module is a runtime utility for cleaner component module output and will
753
+ // be included in the final webpack user bundle.
754
+
755
+ function normalizeComponent(
756
+ scriptExports,
757
+ render,
758
+ staticRenderFns,
759
+ functionalTemplate,
760
+ injectStyles,
761
+ scopeId,
762
+ moduleIdentifier /* server only */,
763
+ shadowMode /* vue-cli only */
764
+ ) {
765
+ // Vue.extend constructor export interop
766
+ var options =
767
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
768
+
769
+ // render functions
770
+ if (render) {
771
+ options.render = render
772
+ options.staticRenderFns = staticRenderFns
773
+ options._compiled = true
774
+ }
775
+
776
+ // functional template
777
+ if (functionalTemplate) {
778
+ options.functional = true
779
+ }
780
+
781
+ // scopedId
782
+ if (scopeId) {
783
+ options._scopeId = 'data-v-' + scopeId
784
+ }
785
+
786
+ var hook
787
+ if (moduleIdentifier) {
788
+ // server build
789
+ hook = function (context) {
790
+ // 2.3 injection
791
+ context =
792
+ context || // cached call
793
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
794
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
795
+ // 2.2 with runInNewContext: true
796
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
797
+ context = __VUE_SSR_CONTEXT__
798
+ }
799
+ // inject component styles
800
+ if (injectStyles) {
801
+ injectStyles.call(this, context)
802
+ }
803
+ // register component module identifier for async chunk inferrence
804
+ if (context && context._registeredComponents) {
805
+ context._registeredComponents.add(moduleIdentifier)
806
+ }
807
+ }
808
+ // used by ssr in case component is cached and beforeCreate
809
+ // never gets called
810
+ options._ssrRegister = hook
811
+ } else if (injectStyles) {
812
+ hook = shadowMode
813
+ ? function () {
814
+ injectStyles.call(
815
+ this,
816
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
817
+ )
818
+ }
819
+ : injectStyles
820
+ }
821
+
822
+ if (hook) {
823
+ if (options.functional) {
824
+ // for template-only hot-reload because in that case the render fn doesn't
825
+ // go through the normalizer
826
+ options._injectStyles = hook
827
+ // register for functional component in vue file
828
+ var originalRender = options.render
829
+ options.render = function renderWithStyleInjection(h, context) {
830
+ hook.call(context)
831
+ return originalRender(h, context)
832
+ }
833
+ } else {
834
+ // inject component registration as beforeCreate hook
835
+ var existing = options.beforeCreate
836
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
837
+ }
838
+ }
839
+
840
+ return {
841
+ exports: scriptExports,
842
+ options: options
843
+ }
844
+ }
845
+
846
+ ;// ./src/components/VueSliderTimerControl/index.vue
847
+
848
+
849
+
850
+ ;
851
+
852
+
853
+ /* normalize component */
854
+
855
+ var component = normalizeComponent(
856
+ components_VueSliderTimerControlvue_type_script_lang_js,
857
+ render,
858
+ staticRenderFns,
859
+ false,
860
+ null,
861
+ "2836fa1c",
862
+ null
863
+
864
+ )
865
+
866
+ /* harmony default export */ var VueSliderTimerControl = (component.exports);
867
+ ;// ./index.js
868
+ // 这个文件是插件的入口文件,它的作用是将插件注册到Vue中,这样就可以在Vue的任何组件中使用插件了。
869
+
870
+ //import vue文件的name from 路径
871
+
872
+
873
+ const components = [VueSliderTimerControl];
874
+
875
+ const install = function (Vue) {
876
+ if (install.installed) return;
877
+ install.installed = true;
878
+ components.forEach(component => Vue.component(component.name, component));
879
+ };
880
+
881
+ if (typeof window !== "undefined" && window.Vue) {
882
+ install(window.Vue);
883
+ }
884
+
885
+ // 暴露安装方法和组件
886
+ const ChatRobotPlugin = {
887
+ install,
888
+ VueSliderTimerControl: VueSliderTimerControl,
889
+ };
890
+
891
+ /* harmony default export */ var index = (ChatRobotPlugin);
892
+
893
+
894
+ ;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
895
+
896
+
897
+ /* harmony default export */ var entry_lib = (index);
898
+
899
+
900
+ }();
901
+ /******/ return __webpack_exports__;
902
+ /******/ })()
903
+ ;
904
+ });
905
+ //# sourceMappingURL=vue-slider-timer-control.umd.js.map